@feedmepos/mf-report 5.22.20 → 5.22.21
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-CV-8gueR.js → App-BDOKRDlB.js} +5 -5
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-Dl_whIhf.js → BaseDialog.vue_vue_type_script_setup_true_lang-SlRLX1gF.js} +600 -596
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CmhriBtF.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-vgSunprg.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D_3SqJLu.js → Default.vue_vue_type_script_setup_true_lang-Dd2wp79k.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-zCG9b3bX.js → FilterSelector.vue_vue_type_script_setup_true_lang-DB3pGihd.js} +6 -6
- package/dist/{InsightView-CedVO1S9.js → InsightView-ODs4l4ti.js} +6 -6
- package/dist/{Integration-Cwtx0Es5.js → Integration-CQi-77Jd.js} +4 -4
- package/dist/{Integrations-Cn6BV11O.js → Integrations-DYw_IUm2.js} +4 -4
- package/dist/{Layout-BBDcSXEq.js → Layout-BnMhL99c.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DH_q_O9L.js → MenuTab.vue_vue_type_script_setup_true_lang-BEHz6I2P.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D7Ppw2eR.js → NavigationTab.vue_vue_type_script_setup_true_lang-BUHwdh8Q.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DlMpL2Zf.js → NoData.vue_vue_type_script_setup_true_lang-C6zwR2kY.js} +1 -1
- package/dist/{OverviewView-z6IC10cy.js → OverviewView-Dy_7MUm-.js} +5 -5
- package/dist/{Report-Dkc5b6yN.js → Report-tVLL1DVH.js} +4 -4
- package/dist/{ReportEditor-DiS_Si-s.js → ReportEditor-CT649CF-.js} +6 -6
- package/dist/{ReportView-BsgQ4AV0.js → ReportView-BmS3IZDq.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-D_TcBker.js → SelectComponent.vue_vue_type_script_setup_true_lang-BoiZUiO-.js} +1 -1
- package/dist/{Setting-Bc3_acMp.js → Setting-CondOj9g.js} +5 -5
- package/dist/{TileEditor-r4Q2IKao.js → TileEditor-D_dISsyB.js} +8 -8
- package/dist/{TransitionFade-_rrrd0F-.js → TransitionFade-zIA2rKed.js} +6 -6
- package/dist/{app-CO44OkB6.js → app-wSvkNO87.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-DTIP1eSW.js → useRestaurantPermission-CzHqhgp5.js} +3 -3
- package/dist/{vue-i18n-wDEySS7y.js → vue-i18n-BMc5RusE.js} +1299 -1301
- package/package.json +2 -2
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { a as $0, F as m0, l as E0, m as Oe, c as $e, k as Z0,
|
|
1
|
+
import { a as $0, F as m0, l as E0, m as Oe, c as $e, k as Z0, n as C0, A as ee, b as G0, d as we, r as re, u as ve } from "./vue-i18n-BMc5RusE.js";
|
|
2
2
|
import { storeToRefs as d0, defineStore as Q0 } from "pinia";
|
|
3
|
-
import { ref as
|
|
3
|
+
import { ref as _0, computed as R0, watch as z0, h as Be, defineComponent as ye, mergeModels as Y0, useModel as te, resolveComponent as v0, createElementBlock as W0, openBlock as U0, createVNode as b0, withCtx as J0, createElementVNode as w0, createCommentVNode as Pe, Fragment as oe, renderList as Je, createBlock as me, createTextVNode as ge, withDirectives as He, toDisplayString as P0, unref as S0, vShow as Ne, renderSlot as ke } from "vue";
|
|
4
4
|
import { useSnackbar as he, components as Ue } from "@feedmepos/ui-library";
|
|
5
5
|
import { useCoreStore as ne, detectLocale as H0 } from "@feedmepos/mf-common";
|
|
6
|
-
import { d as A0 } from "./app-
|
|
6
|
+
import { d as A0 } from "./app-wSvkNO87.js";
|
|
7
7
|
import { useRouter as qe } from "vue-router";
|
|
8
|
-
import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-vgSunprg.js";
|
|
9
9
|
function Se(A) {
|
|
10
10
|
throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
11
11
|
}
|
|
12
12
|
var Ee = {};
|
|
13
13
|
(function(A) {
|
|
14
14
|
var I = typeof globalThis < "u" ? globalThis : window, O = Object.create(I);
|
|
15
|
-
O.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
16
|
-
setImmediate(
|
|
17
|
-
} : function(
|
|
18
|
-
setTimeout(
|
|
15
|
+
O.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
|
|
16
|
+
setImmediate(N);
|
|
17
|
+
} : function(N) {
|
|
18
|
+
setTimeout(N, 0);
|
|
19
19
|
}, O.exports = A, typeof process < "u" && (O.process = process), typeof __dirname < "u" && (O.__dirname = __dirname), typeof __filename < "u" && (O.__filename = __filename), typeof Buffer < "u" && (O.Buffer = Buffer);
|
|
20
|
-
var
|
|
20
|
+
var P = !I.window;
|
|
21
21
|
try {
|
|
22
|
-
typeof WorkerGlobalScope < "u" && I instanceof WorkerGlobalScope && (
|
|
22
|
+
typeof WorkerGlobalScope < "u" && I instanceof WorkerGlobalScope && (P = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (P = !0);
|
|
23
23
|
} catch {
|
|
24
24
|
}
|
|
25
|
-
if (
|
|
25
|
+
if (P) {
|
|
26
26
|
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
|
|
27
27
|
Object.defineProperty(O, "location", {
|
|
28
28
|
value: {
|
|
29
29
|
get href() {
|
|
30
30
|
return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
31
|
-
var
|
|
32
|
-
return process.platform != "win32" ?
|
|
31
|
+
var N = process.cwd();
|
|
32
|
+
return process.platform != "win32" ? N : "/" + N.replace(/\\/g, "/");
|
|
33
33
|
}() + "/";
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}), function() {
|
|
37
|
-
function
|
|
37
|
+
function N() {
|
|
38
38
|
try {
|
|
39
39
|
throw new Error();
|
|
40
40
|
} catch (X) {
|
|
41
|
-
var
|
|
41
|
+
var H = X.stack, k = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
|
|
42
42
|
do {
|
|
43
|
-
var V =
|
|
44
|
-
V != null && (
|
|
43
|
+
var V = k.exec(H);
|
|
44
|
+
V != null && (Q = V);
|
|
45
45
|
} while (V != null);
|
|
46
|
-
return
|
|
46
|
+
return Q[1];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var J = null;
|
|
50
50
|
Object.defineProperty(O, "document", {
|
|
51
51
|
value: {
|
|
52
52
|
get currentScript() {
|
|
53
|
-
return
|
|
53
|
+
return J == null && (J = { src: N() }), J;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
}(), O.dartDeferredLibraryLoader = function(
|
|
57
|
+
}(), O.dartDeferredLibraryLoader = function(N, J, H) {
|
|
58
58
|
try {
|
|
59
|
-
load(
|
|
60
|
-
} catch (
|
|
61
|
-
|
|
59
|
+
load(N), J();
|
|
60
|
+
} catch (k) {
|
|
61
|
+
H(k);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
(function() {
|
|
66
|
-
function
|
|
66
|
+
function J(r, e) {
|
|
67
67
|
for (var n = Object.keys(r), i = 0; i < n.length; i++) {
|
|
68
68
|
var a = n[i];
|
|
69
69
|
e[a] = r[a];
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function H(r, e) {
|
|
73
73
|
for (var n = Object.keys(r), i = 0; i < n.length; i++) {
|
|
74
74
|
var a = n[i];
|
|
75
75
|
e.hasOwnProperty(a) || (e[a] = r[a]);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function k(r, e) {
|
|
79
79
|
Object.assign(e, r);
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var Q = function() {
|
|
82
82
|
var r = function() {
|
|
83
83
|
};
|
|
84
84
|
r.prototype = { p: {} };
|
|
@@ -99,25 +99,25 @@ var Ee = {};
|
|
|
99
99
|
}();
|
|
100
100
|
function V(r, e) {
|
|
101
101
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
|
-
if (
|
|
102
|
+
if (Q) {
|
|
103
103
|
r.prototype.__proto__ = e.prototype;
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
var n = Object.create(e.prototype);
|
|
107
|
-
|
|
107
|
+
J(r.prototype, n), r.prototype = n;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function X(r, e) {
|
|
111
111
|
for (var n = 0; n < e.length; n++)
|
|
112
112
|
V(e[n], r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function r0(r, e) {
|
|
115
|
+
k(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function z(r, e) {
|
|
118
|
+
H(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function K(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 Ee = {};
|
|
|
134
134
|
return s;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function q(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 Ee = {};
|
|
|
142
142
|
}, r[e];
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Z(r, e, n, i) {
|
|
146
146
|
var a = r;
|
|
147
147
|
r[e] = a, r[n] = function() {
|
|
148
148
|
if (r[e] === a) {
|
|
@@ -155,17 +155,17 @@ var Ee = {};
|
|
|
155
155
|
}, o;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function u0(r) {
|
|
159
159
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
160
160
|
}
|
|
161
161
|
function s0(r) {
|
|
162
162
|
return r;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function l0(r) {
|
|
165
165
|
for (var e = 0; e < r.length; ++e)
|
|
166
166
|
r[e];
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function c0(r, e) {
|
|
169
169
|
var n = null;
|
|
170
170
|
return r ? function(i) {
|
|
171
171
|
return n === null && (n = t.closureFromTearOff(e)), new n(i, this);
|
|
@@ -180,52 +180,52 @@ var Ee = {};
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
var Y = 0;
|
|
183
|
-
function
|
|
183
|
+
function G(r, e, n, i, a, s, o, l, D, d) {
|
|
184
184
|
return typeof l == "number" && (l += Y), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
var D =
|
|
186
|
+
function i0(r, e, n, i, a, s, o, l) {
|
|
187
|
+
var D = G(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
|
|
188
188
|
r[e] = d;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function t0(r, e, n, i, a, s, o, l, D, d) {
|
|
191
191
|
n = !!n;
|
|
192
|
-
var c =
|
|
192
|
+
var c = G(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 a0(r) {
|
|
196
196
|
var e = b.interceptorsByTag;
|
|
197
197
|
if (!e) {
|
|
198
198
|
b.interceptorsByTag = r;
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
J(r, e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function W(r) {
|
|
204
204
|
var e = b.leafTags;
|
|
205
205
|
if (!e) {
|
|
206
206
|
b.leafTags = r;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
J(r, e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function n0(r) {
|
|
212
212
|
var e = b.types, n = e.length;
|
|
213
213
|
return e.push.apply(e, r), n;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
215
|
+
function D0(r, e) {
|
|
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
|
-
return
|
|
221
|
+
return t0(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 i0(o, l, n, i, a, [D], d, s);
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
return { inherit: V, inheritMany: X, mixin:
|
|
228
|
+
return { inherit: V, inheritMany: X, mixin: r0, mixinHard: z, installStaticTearOff: i0, installInstanceTearOff: t0, _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: u0, lazy: q, lazyFinal: Z, lazyOld: K, updateHolder: D0, convertToFastObject: s0, updateTypes: n0, setOrUpdateInterceptorsByTag: a0, setOrUpdateLeafTags: W };
|
|
229
229
|
}(), t = {
|
|
230
230
|
JS_CONST: function() {
|
|
231
231
|
},
|
|
@@ -272,8 +272,8 @@ var Ee = {};
|
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
Sort__dualPivotQuicksort(r, e, n, i) {
|
|
275
|
-
var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M),
|
|
276
|
-
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v,
|
|
275
|
+
var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), U = x.$index(r, E);
|
|
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, E, 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 Ee = {};
|
|
|
1811
1811
|
return D === 12 ? e === f.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === f.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
|
|
1812
1812
|
},
|
|
1813
1813
|
_isFunctionSubtype(r, e, n, i, a) {
|
|
1814
|
-
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
1814
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j;
|
|
1815
1815
|
if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, d + g < c + h))
|
|
1816
1816
|
return !1;
|
|
1817
1817
|
for (E = 0; E < d; ++E)
|
|
@@ -1825,14 +1825,14 @@ var Ee = {};
|
|
|
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 (j = F[L - 2], U < v) {
|
|
1831
|
+
if (j)
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
continue;
|
|
1834
1834
|
}
|
|
1835
|
-
if (C = M[w + 1],
|
|
1835
|
+
if (C = M[w + 1], j && !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, E, C, F, M, x, R, L);
|
|
2988
2988
|
},
|
|
2989
2989
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_qFQ, 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 =
|
|
2990
|
+
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_qFQ, 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")), j = 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)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, o0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(U, j, 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);
|
|
@@ -9046,10 +9046,10 @@ Arguments: [` + D + "]";
|
|
|
9046
9046
|
$signature: 1
|
|
9047
9047
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9048
9048
|
call$1(r) {
|
|
9049
|
-
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal",
|
|
9049
|
+
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", U = "layerOtherChargeTotal", j = "customAttributes", f0 = "layerZeroParentId", g0 = "collectedAt", o0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", I0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", F0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", M0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9050
9050
|
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)
|
|
9051
9051
|
`, !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
|
|
9052
|
-
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge",
|
|
9052
|
+
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", 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", j, j, 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", I0, I0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", x0, x0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", L0, L0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", F0, F0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", O0, O0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", M0, M0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
|
|
9053
9053
|
},
|
|
9054
9054
|
$signature: 0
|
|
9055
9055
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -10506,12 +10506,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
10506
10506
|
var e = u.LegacyJavaScriptObject.prototype;
|
|
10507
10507
|
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;
|
|
10508
10508
|
}(), function() {
|
|
10509
|
-
var e =
|
|
10509
|
+
var e = e0._static_2, n = e0._static_1, i = e0._instance_1u, a = e0._instance_0u;
|
|
10510
10510
|
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);
|
|
10511
10511
|
var s;
|
|
10512
10512
|
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);
|
|
10513
10513
|
}(), function() {
|
|
10514
|
-
var e =
|
|
10514
|
+
var e = e0.mixin, n = e0.inherit, i = e0.inheritMany;
|
|
10515
10515
|
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.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.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);
|
|
10516
10516
|
}();
|
|
10517
10517
|
var b = {
|
|
@@ -10697,7 +10697,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10697
10697
|
};
|
|
10698
10698
|
}();
|
|
10699
10699
|
(function() {
|
|
10700
|
-
var e =
|
|
10700
|
+
var e = e0.makeConstList;
|
|
10701
10701
|
_.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) {
|
|
10702
10702
|
var a = Object.prototype.toString.call(i);
|
|
10703
10703
|
return a.substring(8, a.length - 1);
|
|
@@ -10799,7 +10799,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10799
10799
|
})(), function() {
|
|
10800
10800
|
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$();
|
|
10801
10801
|
}(), function() {
|
|
10802
|
-
var e =
|
|
10802
|
+
var e = e0.lazyFinal, n = e0.lazy;
|
|
10803
10803
|
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({
|
|
10804
10804
|
toString: function() {
|
|
10805
10805
|
return "$receiver$";
|
|
@@ -10836,8 +10836,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10836
10836
|
return i.message;
|
|
10837
10837
|
}
|
|
10838
10838
|
}())), 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", () => {
|
|
10839
|
-
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2),
|
|
10840
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de",
|
|
10839
|
+
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), U = t.DeLocale$(_.StartOfWeek_2), j = 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), I0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), F0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
|
|
10840
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", U, "de_at", j, "de_ch", f0, "it", g0, "it_ch", o0, "ar", h0, "ar_ly", I0, "ar_dz", x0, "ar_kw", L0, "ar_sa", T0, "ar_ma", F0, "ar_tn", O0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], f.String, t.findType("Locale"));
|
|
10841
10841
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10842
10842
|
var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
|
|
10843
10843
|
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);
|
|
@@ -11188,7 +11188,7 @@ WHERE (
|
|
|
11188
11188
|
(function() {
|
|
11189
11189
|
var e = function(l) {
|
|
11190
11190
|
var D = {};
|
|
11191
|
-
return D[l] = 1, Object.keys(
|
|
11191
|
+
return D[l] = 1, Object.keys(e0.convertToFastObject(D))[0];
|
|
11192
11192
|
};
|
|
11193
11193
|
b.getIsolateTag = function(l) {
|
|
11194
11194
|
return e("___dart_" + l + b.isolateTag);
|
|
@@ -11201,7 +11201,7 @@ WHERE (
|
|
|
11201
11201
|
}
|
|
11202
11202
|
}
|
|
11203
11203
|
b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
|
|
11204
|
-
})(),
|
|
11204
|
+
})(), 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";
|
|
11205
11205
|
}(), Function.prototype.call$1 = function(r) {
|
|
11206
11206
|
return this(r);
|
|
11207
11207
|
}, Function.prototype.call$0 = function() {
|
|
@@ -11216,7 +11216,7 @@ WHERE (
|
|
|
11216
11216
|
return this(r, e, n, i, a, s, o, l);
|
|
11217
11217
|
}, Function.prototype.call$1$0 = function() {
|
|
11218
11218
|
return this();
|
|
11219
|
-
},
|
|
11219
|
+
}, l0($), function(r) {
|
|
11220
11220
|
if (typeof document > "u") {
|
|
11221
11221
|
r(null);
|
|
11222
11222
|
return;
|
|
@@ -11244,65 +11244,65 @@ const Ve = Ee;
|
|
|
11244
11244
|
var Ye = Ve, Ae = {};
|
|
11245
11245
|
(function(A) {
|
|
11246
11246
|
A.load = function(I, O) {
|
|
11247
|
-
var
|
|
11248
|
-
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
11249
|
-
setImmediate(
|
|
11250
|
-
} : function(
|
|
11251
|
-
setTimeout(
|
|
11252
|
-
}, B.exports = O || A, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer),
|
|
11253
|
-
var
|
|
11247
|
+
var P = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = P ? Object.create(globalThis) : globalThis;
|
|
11248
|
+
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(J) {
|
|
11249
|
+
setImmediate(J);
|
|
11250
|
+
} : function(J) {
|
|
11251
|
+
setTimeout(J, 0);
|
|
11252
|
+
}, B.exports = O || A, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
|
|
11253
|
+
var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
|
|
11254
11254
|
Object.defineProperty(B, "location", {
|
|
11255
11255
|
value: {
|
|
11256
11256
|
get href() {
|
|
11257
|
-
return
|
|
11258
|
-
var
|
|
11259
|
-
return process.platform != "win32" ?
|
|
11257
|
+
return N.pathToFileURL ? N.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
11258
|
+
var J = process.cwd();
|
|
11259
|
+
return process.platform != "win32" ? J : "/" + J.replace(/\\/g, "/");
|
|
11260
11260
|
}() + "/";
|
|
11261
11261
|
}
|
|
11262
11262
|
}
|
|
11263
11263
|
}), function() {
|
|
11264
|
-
function
|
|
11264
|
+
function J() {
|
|
11265
11265
|
try {
|
|
11266
11266
|
throw new Error();
|
|
11267
|
-
} catch (
|
|
11268
|
-
var
|
|
11267
|
+
} catch (r0) {
|
|
11268
|
+
var k = r0.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
11269
11269
|
do {
|
|
11270
|
-
var X =
|
|
11270
|
+
var X = Q.exec(k);
|
|
11271
11271
|
X != null && (V = X);
|
|
11272
11272
|
} while (X != null);
|
|
11273
11273
|
return V[1];
|
|
11274
11274
|
}
|
|
11275
11275
|
}
|
|
11276
|
-
var
|
|
11276
|
+
var H = null;
|
|
11277
11277
|
Object.defineProperty(B, "document", {
|
|
11278
11278
|
value: {
|
|
11279
11279
|
get currentScript() {
|
|
11280
|
-
return
|
|
11280
|
+
return H == null && (H = { src: J() }), H;
|
|
11281
11281
|
}
|
|
11282
11282
|
}
|
|
11283
11283
|
});
|
|
11284
|
-
}(), B.dartDeferredLibraryLoader = function(
|
|
11284
|
+
}(), B.dartDeferredLibraryLoader = function(J, H, k) {
|
|
11285
11285
|
try {
|
|
11286
|
-
load(
|
|
11287
|
-
} catch (
|
|
11288
|
-
|
|
11286
|
+
load(J), H();
|
|
11287
|
+
} catch (Q) {
|
|
11288
|
+
k(Q);
|
|
11289
11289
|
}
|
|
11290
11290
|
};
|
|
11291
11291
|
}
|
|
11292
11292
|
(function() {
|
|
11293
|
-
function
|
|
11293
|
+
function H(e, n) {
|
|
11294
11294
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11295
11295
|
var s = i[a];
|
|
11296
11296
|
n[s] = e[s];
|
|
11297
11297
|
}
|
|
11298
11298
|
}
|
|
11299
|
-
function
|
|
11299
|
+
function k(e, n) {
|
|
11300
11300
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11301
11301
|
var s = i[a];
|
|
11302
11302
|
n.hasOwnProperty(s) || (n[s] = e[s]);
|
|
11303
11303
|
}
|
|
11304
11304
|
}
|
|
11305
|
-
function
|
|
11305
|
+
function Q(e, n) {
|
|
11306
11306
|
Object.assign(n, e);
|
|
11307
11307
|
}
|
|
11308
11308
|
var V = function() {
|
|
@@ -11331,20 +11331,20 @@ var Ye = Ve, Ae = {};
|
|
|
11331
11331
|
return;
|
|
11332
11332
|
}
|
|
11333
11333
|
var i = Object.create(n.prototype);
|
|
11334
|
-
|
|
11334
|
+
H(e.prototype, i), e.prototype = i;
|
|
11335
11335
|
}
|
|
11336
11336
|
}
|
|
11337
|
-
function
|
|
11337
|
+
function r0(e, n) {
|
|
11338
11338
|
for (var i = 0; i < n.length; i++)
|
|
11339
11339
|
X(n[i], e);
|
|
11340
11340
|
}
|
|
11341
|
-
function Q(e, n) {
|
|
11342
|
-
q(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11343
|
-
}
|
|
11344
11341
|
function z(e, n) {
|
|
11345
|
-
|
|
11342
|
+
Q(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11343
|
+
}
|
|
11344
|
+
function K(e, n) {
|
|
11345
|
+
k(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11346
11346
|
}
|
|
11347
|
-
function
|
|
11347
|
+
function q(e, n, i, a) {
|
|
11348
11348
|
var s = e;
|
|
11349
11349
|
e[n] = s, e[i] = function() {
|
|
11350
11350
|
e[i] = function() {
|
|
@@ -11361,7 +11361,7 @@ var Ye = Ve, Ae = {};
|
|
|
11361
11361
|
return o;
|
|
11362
11362
|
};
|
|
11363
11363
|
}
|
|
11364
|
-
function
|
|
11364
|
+
function Z(e, n, i, a) {
|
|
11365
11365
|
var s = e;
|
|
11366
11366
|
e[n] = s, e[i] = function() {
|
|
11367
11367
|
return e[n] === s && (e[n] = a()), e[i] = function() {
|
|
@@ -11369,7 +11369,7 @@ var Ye = Ve, Ae = {};
|
|
|
11369
11369
|
}, e[n];
|
|
11370
11370
|
};
|
|
11371
11371
|
}
|
|
11372
|
-
function
|
|
11372
|
+
function u0(e, n, i, a) {
|
|
11373
11373
|
var s = e;
|
|
11374
11374
|
e[n] = s, e[i] = function() {
|
|
11375
11375
|
if (e[n] === s) {
|
|
@@ -11385,10 +11385,10 @@ var Ye = Ve, Ae = {};
|
|
|
11385
11385
|
function s0(e) {
|
|
11386
11386
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
11387
11387
|
}
|
|
11388
|
-
function
|
|
11388
|
+
function l0(e) {
|
|
11389
11389
|
return e;
|
|
11390
11390
|
}
|
|
11391
|
-
function
|
|
11391
|
+
function c0(e) {
|
|
11392
11392
|
for (var n = 0; n < e.length; ++n)
|
|
11393
11393
|
e[n];
|
|
11394
11394
|
}
|
|
@@ -11406,53 +11406,53 @@ var Ye = Ve, Ae = {};
|
|
|
11406
11406
|
return n === null && (n = u.closureFromTearOff(e).prototype), n;
|
|
11407
11407
|
};
|
|
11408
11408
|
}
|
|
11409
|
-
var
|
|
11410
|
-
function
|
|
11411
|
-
return typeof D == "number" && (D +=
|
|
11409
|
+
var G = 0;
|
|
11410
|
+
function i0(e, n, i, a, s, o, l, D, d, c) {
|
|
11411
|
+
return typeof D == "number" && (D += G), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
|
|
11412
11412
|
}
|
|
11413
|
-
function
|
|
11414
|
-
var d =
|
|
11413
|
+
function t0(e, n, i, a, s, o, l, D) {
|
|
11414
|
+
var d = i0(e, !0, !1, i, a, s, o, l, D, !1), c = Y(d);
|
|
11415
11415
|
e[n] = c;
|
|
11416
11416
|
}
|
|
11417
|
-
function
|
|
11417
|
+
function a0(e, n, i, a, s, o, l, D, d, c) {
|
|
11418
11418
|
i = !!i;
|
|
11419
|
-
var p =
|
|
11419
|
+
var p = i0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
|
|
11420
11420
|
e[n] = y;
|
|
11421
11421
|
}
|
|
11422
|
-
function
|
|
11422
|
+
function W(e) {
|
|
11423
11423
|
var n = T.interceptorsByTag;
|
|
11424
11424
|
if (!n) {
|
|
11425
11425
|
T.interceptorsByTag = e;
|
|
11426
11426
|
return;
|
|
11427
11427
|
}
|
|
11428
|
-
|
|
11428
|
+
H(e, n);
|
|
11429
11429
|
}
|
|
11430
|
-
function
|
|
11430
|
+
function n0(e) {
|
|
11431
11431
|
var n = T.leafTags;
|
|
11432
11432
|
if (!n) {
|
|
11433
11433
|
T.leafTags = e;
|
|
11434
11434
|
return;
|
|
11435
11435
|
}
|
|
11436
|
-
|
|
11436
|
+
H(e, n);
|
|
11437
11437
|
}
|
|
11438
|
-
function
|
|
11438
|
+
function D0(e) {
|
|
11439
11439
|
var n = T.types, i = n.length;
|
|
11440
11440
|
return n.push.apply(n, e), i;
|
|
11441
11441
|
}
|
|
11442
|
-
function
|
|
11443
|
-
return
|
|
11442
|
+
function e0(e, n) {
|
|
11443
|
+
return H(n, e), e;
|
|
11444
11444
|
}
|
|
11445
11445
|
var t = function() {
|
|
11446
11446
|
var e = function(i, a, s, o, l) {
|
|
11447
11447
|
return function(D, d, c, p) {
|
|
11448
|
-
return
|
|
11448
|
+
return a0(D, d, i, a, s, o, [c], p, l, !1);
|
|
11449
11449
|
};
|
|
11450
11450
|
}, n = function(i, a, s, o) {
|
|
11451
11451
|
return function(l, D, d, c) {
|
|
11452
|
-
return
|
|
11452
|
+
return t0(l, D, i, a, s, [d], c, o);
|
|
11453
11453
|
};
|
|
11454
11454
|
};
|
|
11455
|
-
return { inherit: X, inheritMany:
|
|
11455
|
+
return { inherit: X, inheritMany: r0, mixin: z, mixinHard: K, installStaticTearOff: t0, installInstanceTearOff: a0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: Z, lazyFinal: u0, lazyOld: q, updateHolder: e0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: n0 };
|
|
11456
11456
|
}(), u = {
|
|
11457
11457
|
JS_CONST: function() {
|
|
11458
11458
|
},
|
|
@@ -11502,8 +11502,8 @@ var Ye = Ve, Ae = {};
|
|
|
11502
11502
|
}
|
|
11503
11503
|
},
|
|
11504
11504
|
Sort__dualPivotQuicksort(e, n, i, a) {
|
|
11505
|
-
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F),
|
|
11506
|
-
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(
|
|
11505
|
+
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F), U = R.$index(e, x), j = R.$index(e, C);
|
|
11506
|
+
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(U, j) > 0 && (s = j, j = 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, j) > 0 && (s = j, j = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(U, j) > 0 && (s = j, j = U, U = s), R.$indexSet(e, E, L), R.$indexSet(e, F, v), R.$indexSet(e, C, j), 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)) {
|
|
11507
11507
|
for (D = o; D <= l; ++D)
|
|
11508
11508
|
if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
|
|
11509
11509
|
if (c < 0)
|
|
@@ -11525,9 +11525,9 @@ var Ye = Ve, Ae = {};
|
|
|
11525
11525
|
for (D = o; D <= l; ++D)
|
|
11526
11526
|
if (d = R.$index(e, D), a.call$2(d, w) < 0)
|
|
11527
11527
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11528
|
-
else if (a.call$2(d,
|
|
11528
|
+
else if (a.call$2(d, U) > 0)
|
|
11529
11529
|
for (; ; )
|
|
11530
|
-
if (a.call$2(R.$index(e, l),
|
|
11530
|
+
if (a.call$2(R.$index(e, l), U) > 0) {
|
|
11531
11531
|
if (--l, l < D)
|
|
11532
11532
|
break;
|
|
11533
11533
|
continue;
|
|
@@ -11537,18 +11537,18 @@ var Ye = Ve, Ae = {};
|
|
|
11537
11537
|
}
|
|
11538
11538
|
m = !1;
|
|
11539
11539
|
}
|
|
11540
|
-
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,
|
|
11540
|
+
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)
|
|
11541
11541
|
if (o < E && l > C) {
|
|
11542
11542
|
for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
|
|
11543
11543
|
++o;
|
|
11544
|
-
for (; _.$eq$(a.call$2(R.$index(e, l),
|
|
11544
|
+
for (; _.$eq$(a.call$2(R.$index(e, l), U), 0); )
|
|
11545
11545
|
--l;
|
|
11546
11546
|
for (D = o; D <= l; ++D)
|
|
11547
11547
|
if (d = R.$index(e, D), a.call$2(d, w) === 0)
|
|
11548
11548
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11549
|
-
else if (a.call$2(d,
|
|
11549
|
+
else if (a.call$2(d, U) === 0)
|
|
11550
11550
|
for (; ; )
|
|
11551
|
-
if (a.call$2(R.$index(e, l),
|
|
11551
|
+
if (a.call$2(R.$index(e, l), U) === 0) {
|
|
11552
11552
|
if (--l, l < D)
|
|
11553
11553
|
break;
|
|
11554
11554
|
continue;
|
|
@@ -11913,8 +11913,8 @@ var Ye = Ve, Ae = {};
|
|
|
11913
11913
|
var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, E = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
|
|
11914
11914
|
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() {
|
|
11915
11915
|
this.$initialize();
|
|
11916
|
-
} : i = function(v,
|
|
11917
|
-
this.$initialize(v,
|
|
11916
|
+
} : i = function(v, U) {
|
|
11917
|
+
this.$initialize(v, U);
|
|
11918
11918
|
}, 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)
|
|
11919
11919
|
D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = F[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, g, h)), n[p] = D), l === E && (o = D);
|
|
11920
11920
|
return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
@@ -12650,24 +12650,24 @@ var Ye = Ve, Ae = {};
|
|
|
12650
12650
|
return o + "})";
|
|
12651
12651
|
},
|
|
12652
12652
|
_functionRtiToString(e, n, i) {
|
|
12653
|
-
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
12653
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U = ", ";
|
|
12654
12654
|
if (i != null) {
|
|
12655
12655
|
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)
|
|
12656
12656
|
n.push("T" + (o + l));
|
|
12657
|
-
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p =
|
|
12657
|
+
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = U)
|
|
12658
12658
|
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));
|
|
12659
12659
|
c += ">";
|
|
12660
12660
|
} else
|
|
12661
12661
|
c = "", s = null;
|
|
12662
|
-
for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v =
|
|
12662
|
+
for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = U)
|
|
12663
12663
|
w += v + u._rtiToString(E[l], n);
|
|
12664
12664
|
if (M > 0) {
|
|
12665
|
-
for (w += v + "[", v = "", l = 0; l < M; ++l, v =
|
|
12665
|
+
for (w += v + "[", v = "", l = 0; l < M; ++l, v = U)
|
|
12666
12666
|
w += v + u._rtiToString(F[l], n);
|
|
12667
12667
|
w += "]";
|
|
12668
12668
|
}
|
|
12669
12669
|
if (R > 0) {
|
|
12670
|
-
for (w += v + "{", v = "", l = 0; l < R; l += 3, v =
|
|
12670
|
+
for (w += v + "{", v = "", l = 0; l < R; l += 3, v = U)
|
|
12671
12671
|
w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
|
|
12672
12672
|
w += "}";
|
|
12673
12673
|
}
|
|
@@ -13029,7 +13029,7 @@ var Ye = Ve, Ae = {};
|
|
|
13029
13029
|
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);
|
|
13030
13030
|
},
|
|
13031
13031
|
_isFunctionSubtype(e, n, i, a, s) {
|
|
13032
|
-
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
13032
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j, f0;
|
|
13033
13033
|
if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, E = g.length, c + h < p + E))
|
|
13034
13034
|
return !1;
|
|
13035
13035
|
for (C = 0; C < c; ++C)
|
|
@@ -13042,15 +13042,15 @@ var Ye = Ve, Ae = {};
|
|
|
13042
13042
|
if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
|
|
13043
13043
|
return !1;
|
|
13044
13044
|
for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
|
|
13045
|
-
for (
|
|
13046
|
-
if (w >= R || (
|
|
13045
|
+
for (U = x[v]; ; ) {
|
|
13046
|
+
if (w >= R || (j = M[w], w += 3, U < j))
|
|
13047
13047
|
return !1;
|
|
13048
|
-
if (
|
|
13049
|
-
if (
|
|
13048
|
+
if (f0 = M[w - 2], j < U) {
|
|
13049
|
+
if (f0)
|
|
13050
13050
|
return !1;
|
|
13051
13051
|
continue;
|
|
13052
13052
|
}
|
|
13053
|
-
if (F = x[v + 1],
|
|
13053
|
+
if (F = x[v + 1], f0 && !F || (F = M[w - 1], !u._isSubtype(e, x[v + 2], s, F, i)))
|
|
13054
13054
|
return !1;
|
|
13055
13055
|
break;
|
|
13056
13056
|
}
|
|
@@ -14493,7 +14493,7 @@ var Ye = Ve, Ae = {};
|
|
|
14493
14493
|
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;
|
|
14494
14494
|
},
|
|
14495
14495
|
formatBaseXYChartData(e, n, i, a, s) {
|
|
14496
|
-
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
14496
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U, j, f0, g0, o0, h0, I0, x0, L0, T0, F0, O0, M0, N0 = null;
|
|
14497
14497
|
if (i.length === 0)
|
|
14498
14498
|
return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? N0 : D.dateRange, N0));
|
|
14499
14499
|
for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
|
|
@@ -14511,11 +14511,11 @@ var Ye = Ve, Ae = {};
|
|
|
14511
14511
|
C.$indexSet(0, d[R].id, R);
|
|
14512
14512
|
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));
|
|
14513
14513
|
}
|
|
14514
|
-
for (C = r.JSArray_String, v = u._setArrayType([], C),
|
|
14515
|
-
|
|
14516
|
-
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(
|
|
14517
|
-
for (
|
|
14518
|
-
O0 = v[F0], M0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0,
|
|
14514
|
+
for (C = r.JSArray_String, v = u._setArrayType([], C), U = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
|
|
14515
|
+
j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), U.push(_.toString$0$(L.$index(j, 1)));
|
|
14516
|
+
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, E = 0; E < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++E) {
|
|
14517
|
+
for (o0 = f0[E], h0 = u._setArrayType([], L), I0 = u._setArrayType([], L), x0 = x.$index(0, o0), w = l.$index(0, x0 ?? o0), L0 = w === !0, w = M.$index(0, o0), T0 = w ?? D.$index(0, o0), T0 == null && (T0 = o0), w = v.length, F0 = 0; F0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++F0)
|
|
14518
|
+
O0 = v[F0], M0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, o0)), h0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)), C.get$length(m) !== 0 && (M0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(O0, o0)), I0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)));
|
|
14519
14519
|
g0.push(new u.XYDatasetModel(T0, !1, h0)), I0.length !== 0 && g0.push(new u.XYDatasetModel(T0, !0, I0));
|
|
14520
14520
|
}
|
|
14521
14521
|
return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? N0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, g0, new u.DateComparison(o, l == null ? N0 : l.dateRange));
|
|
@@ -14725,16 +14725,16 @@ var Ye = Ve, Ae = {};
|
|
|
14725
14725
|
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")));
|
|
14726
14726
|
},
|
|
14727
14727
|
formatTableChartData(e, n, i, a) {
|
|
14728
|
-
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
14728
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, U = {};
|
|
14729
14729
|
if (n.length === 0)
|
|
14730
14730
|
return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
|
|
14731
|
-
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 =
|
|
14731
|
+
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>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
|
|
14732
14732
|
M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14733
|
-
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s =
|
|
14733
|
+
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = U.comparison.columns, F < s.length; ++F)
|
|
14734
14734
|
M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14735
14735
|
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
|
|
14736
14736
|
M = E[L], o = M.key, w = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, w), l == null && (l = -1), D = x.$index(0, w), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
|
|
14737
|
-
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 =
|
|
14737
|
+
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")));
|
|
14738
14738
|
},
|
|
14739
14739
|
_formatTableResponse_closure: function(n) {
|
|
14740
14740
|
this.config = n;
|
|
@@ -18980,18 +18980,18 @@ Arguments: [` + d + "]";
|
|
|
18980
18980
|
$signature: 0
|
|
18981
18981
|
}, u._formatTableResponse_closure5.prototype = {
|
|
18982
18982
|
call$2(e, n) {
|
|
18983
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic,
|
|
18983
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, U = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
|
|
18984
18984
|
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)
|
|
18985
18985
|
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)
|
|
18986
|
-
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c =
|
|
18987
|
-
C =
|
|
18986
|
+
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, E = 0; E < U.length; U.length === c || (0, u.throwConcurrentModificationError)(U), ++E)
|
|
18987
|
+
C = U[E], m ? (F = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F);
|
|
18988
18988
|
else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
|
|
18989
18989
|
for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
|
|
18990
|
-
R = l[x], u.ListExtension_elementAtOrNull(
|
|
18990
|
+
R = l[x], u.ListExtension_elementAtOrNull(U, x) == null && (U.push(u.List_List$of(U[0], !0, a)), j.push(u.List_List$of(j[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, j[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);
|
|
18991
18991
|
else
|
|
18992
|
-
for (L = 0; L <
|
|
18993
|
-
c =
|
|
18994
|
-
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(
|
|
18992
|
+
for (L = 0; L < U.length; ++L)
|
|
18993
|
+
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, j[L].push(i.$index(0, p));
|
|
18994
|
+
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(U, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
18995
18995
|
},
|
|
18996
18996
|
$signature: 79
|
|
18997
18997
|
}, u._formatTableResponse__closure4.prototype = {
|
|
@@ -19230,9 +19230,9 @@ Arguments: [` + d + "]";
|
|
|
19230
19230
|
$signature: 99
|
|
19231
19231
|
}, u.formatTableChartData_closure9.prototype = {
|
|
19232
19232
|
call$2(e, n) {
|
|
19233
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells,
|
|
19233
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells, U = _.getInterceptor$asx(v), j = U.get$length(v);
|
|
19234
19234
|
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)
|
|
19235
|
-
p = i[c], y = p.mainIndex, m = y >= 0 && y <
|
|
19235
|
+
p = i[c], y = p.mainIndex, m = y >= 0 && y < j ? 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 ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), F = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
|
|
19236
19236
|
return n.copyWith$2$cells$comparisonCells(L, w);
|
|
19237
19237
|
},
|
|
19238
19238
|
$signature: 7
|
|
@@ -19671,8 +19671,8 @@ Arguments: [` + d + "]";
|
|
|
19671
19671
|
return a.message;
|
|
19672
19672
|
}
|
|
19673
19673
|
}())), 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", () => {
|
|
19674
|
-
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1),
|
|
19675
|
-
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de",
|
|
19674
|
+
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), U = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), I0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), F0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), M0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
|
|
19675
|
+
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", U, "de_de", j, "de_at", f0, "de_ch", g0, "it", o0, "it_ch", h0, "ar", I0, "ar_ly", x0, "ar_dz", L0, "ar_kw", T0, "ar_sa", F0, "ar_ma", O0, "ar_tn", M0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
|
|
19676
19676
|
}), n(b, "_UTC", "$get$_UTC", () => {
|
|
19677
19677
|
var a = r.JSArray_int;
|
|
19678
19678
|
return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -19707,7 +19707,7 @@ Arguments: [` + d + "]";
|
|
|
19707
19707
|
return this(e, n, i);
|
|
19708
19708
|
}, Function.prototype.call$8 = function(e, n, i, a, s, o, l, D) {
|
|
19709
19709
|
return this(e, n, i, a, s, o, l, D);
|
|
19710
|
-
},
|
|
19710
|
+
}, c0(S), function(e) {
|
|
19711
19711
|
if (typeof document > "u") {
|
|
19712
19712
|
e(null);
|
|
19713
19713
|
return;
|
|
@@ -19746,70 +19746,70 @@ function _e(A) {
|
|
|
19746
19746
|
if (A == null || A === "") return null;
|
|
19747
19747
|
const I = String(A).trim();
|
|
19748
19748
|
if (I === "") return null;
|
|
19749
|
-
const O = I.toLowerCase().slice(0, 3),
|
|
19750
|
-
if (
|
|
19751
|
-
return { type: "dayName", value:
|
|
19749
|
+
const O = I.toLowerCase().slice(0, 3), P = ze.indexOf(O);
|
|
19750
|
+
if (P !== -1 && I.length <= 3)
|
|
19751
|
+
return { type: "dayName", value: P };
|
|
19752
19752
|
const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19753
19753
|
if (B) {
|
|
19754
|
-
const [,
|
|
19754
|
+
const [, Q, V, X, r0, z, K = "0"] = B;
|
|
19755
19755
|
return {
|
|
19756
19756
|
type: "fullDateTime",
|
|
19757
19757
|
value: new Date(
|
|
19758
19758
|
parseInt(X),
|
|
19759
19759
|
parseInt(V) - 1,
|
|
19760
|
-
parseInt(q),
|
|
19761
|
-
parseInt(t0),
|
|
19762
19760
|
parseInt(Q),
|
|
19763
|
-
parseInt(
|
|
19761
|
+
parseInt(r0),
|
|
19762
|
+
parseInt(z),
|
|
19763
|
+
parseInt(K)
|
|
19764
19764
|
).getTime()
|
|
19765
19765
|
};
|
|
19766
19766
|
}
|
|
19767
|
-
const
|
|
19768
|
-
if (
|
|
19769
|
-
const [,
|
|
19767
|
+
const N = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
19768
|
+
if (N) {
|
|
19769
|
+
const [, Q, V, X] = N;
|
|
19770
19770
|
return {
|
|
19771
19771
|
type: "date",
|
|
19772
|
-
value: new Date(parseInt(X), parseInt(V) - 1, parseInt(
|
|
19772
|
+
value: new Date(parseInt(X), parseInt(V) - 1, parseInt(Q)).getTime()
|
|
19773
19773
|
};
|
|
19774
19774
|
}
|
|
19775
|
-
const
|
|
19776
|
-
if (
|
|
19777
|
-
const [,
|
|
19775
|
+
const J = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
19776
|
+
if (J) {
|
|
19777
|
+
const [, Q, V, X] = J;
|
|
19778
19778
|
return {
|
|
19779
19779
|
type: "date",
|
|
19780
|
-
value: new Date(parseInt(
|
|
19780
|
+
value: new Date(parseInt(Q), parseInt(V) - 1, parseInt(X)).getTime()
|
|
19781
19781
|
};
|
|
19782
19782
|
}
|
|
19783
|
-
const
|
|
19784
|
-
if (
|
|
19785
|
-
const [,
|
|
19783
|
+
const H = I.match(/^(\d{1,2})\/(\d{4})$/);
|
|
19784
|
+
if (H) {
|
|
19785
|
+
const [, Q, V] = H;
|
|
19786
19786
|
return {
|
|
19787
19787
|
type: "monthYear",
|
|
19788
|
-
value: new Date(parseInt(V), parseInt(
|
|
19788
|
+
value: new Date(parseInt(V), parseInt(Q) - 1, 1).getTime()
|
|
19789
19789
|
};
|
|
19790
19790
|
}
|
|
19791
|
-
const
|
|
19792
|
-
if (
|
|
19793
|
-
const [,
|
|
19791
|
+
const k = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19792
|
+
if (k) {
|
|
19793
|
+
const [, Q, V, X = "0"] = k;
|
|
19794
19794
|
return {
|
|
19795
19795
|
type: "time",
|
|
19796
|
-
value: parseInt(
|
|
19796
|
+
value: parseInt(Q) * 3600 + parseInt(V) * 60 + parseInt(X)
|
|
19797
19797
|
};
|
|
19798
19798
|
}
|
|
19799
19799
|
return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
|
|
19800
19800
|
}
|
|
19801
19801
|
function De(A, I) {
|
|
19802
|
-
const O = _e(A),
|
|
19803
|
-
return !O && !
|
|
19802
|
+
const O = _e(A), P = _e(I);
|
|
19803
|
+
return !O && !P ? null : O ? P ? (O.type === P.type, O.value - P.value) : -1 : 1;
|
|
19804
19804
|
}
|
|
19805
19805
|
function We(A, I) {
|
|
19806
|
-
var
|
|
19806
|
+
var P;
|
|
19807
19807
|
const O = { isRollup: A.isRollup };
|
|
19808
19808
|
for (let B = 0; B < I.length; B++) {
|
|
19809
|
-
const
|
|
19810
|
-
|
|
19809
|
+
const N = I[B].key;
|
|
19810
|
+
N && (O[N] = {
|
|
19811
19811
|
main: A.cells[B],
|
|
19812
|
-
comparison: (
|
|
19812
|
+
comparison: (P = A.comparisonCells) == null ? void 0 : P[B]
|
|
19813
19813
|
});
|
|
19814
19814
|
}
|
|
19815
19815
|
return O;
|
|
@@ -19817,93 +19817,93 @@ function We(A, I) {
|
|
|
19817
19817
|
function je(A, I) {
|
|
19818
19818
|
if (A <= 0) return [];
|
|
19819
19819
|
const O = {};
|
|
19820
|
-
for (const
|
|
19820
|
+
for (const P of I) O[P.key] = void 0;
|
|
19821
19821
|
return Array.from({ length: A }, () => ({ ...O }));
|
|
19822
19822
|
}
|
|
19823
19823
|
function X0(A, I, O) {
|
|
19824
|
-
var B,
|
|
19824
|
+
var B, N;
|
|
19825
19825
|
if (((B = A[I]) == null ? void 0 : B.main) !== void 0) return A[I].main;
|
|
19826
|
-
const
|
|
19827
|
-
return
|
|
19826
|
+
const P = O.findIndex((J) => J.key === I);
|
|
19827
|
+
return P >= 0 ? (N = A.cells) == null ? void 0 : N[P] : void 0;
|
|
19828
19828
|
}
|
|
19829
19829
|
function Ke(A) {
|
|
19830
|
-
var
|
|
19830
|
+
var Z, u0, s0, l0, c0, p0;
|
|
19831
19831
|
const {
|
|
19832
19832
|
rows: I = [],
|
|
19833
19833
|
columns: O = [],
|
|
19834
|
-
globalSorts:
|
|
19834
|
+
globalSorts: P = [],
|
|
19835
19835
|
filter: B = null,
|
|
19836
|
-
grandTotalPosition:
|
|
19837
|
-
pageSize:
|
|
19836
|
+
grandTotalPosition: N = null,
|
|
19837
|
+
pageSize: J = 0
|
|
19838
19838
|
} = A;
|
|
19839
|
-
let
|
|
19840
|
-
|
|
19841
|
-
let
|
|
19842
|
-
for (const Y of
|
|
19843
|
-
Y.isRollup &&
|
|
19844
|
-
const q = {};
|
|
19845
|
-
for (const Y of O) q[Y.key] = Y.type === "NUMERIC";
|
|
19846
|
-
const V = J.filter(
|
|
19847
|
-
(Y) => Y.key && O.some((W) => W.key === Y.key)
|
|
19848
|
-
), X = V.length > 0;
|
|
19849
|
-
let t0 = I;
|
|
19850
|
-
B !== null && (t0 = t0.filter((Y) => !(B !== "" && (Y.isRollup === !0 || !Y.cells.some((W) => ((W == null ? void 0 : W.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Y) => ({ ...We(Y, O), groupIndex: Y.groupIndex })));
|
|
19839
|
+
let H = Array.isArray(I) ? [...I] : [];
|
|
19840
|
+
N === "BOTTOM" && ((Z = H.at(-1)) != null && Z.isRollup) && H.pop(), N === "TOP" && ((u0 = H[0]) != null && u0.isRollup) && H.shift();
|
|
19841
|
+
let k = 0;
|
|
19842
|
+
for (const Y of H)
|
|
19843
|
+
Y.isRollup && k++, Y.groupIndex = k;
|
|
19851
19844
|
const Q = {};
|
|
19852
|
-
for (const Y of
|
|
19853
|
-
|
|
19854
|
-
|
|
19845
|
+
for (const Y of O) Q[Y.key] = Y.type === "NUMERIC";
|
|
19846
|
+
const V = P.filter(
|
|
19847
|
+
(Y) => Y.key && O.some((G) => G.key === Y.key)
|
|
19848
|
+
), X = V.length > 0;
|
|
19849
|
+
let r0 = I;
|
|
19850
|
+
B !== null && (r0 = r0.filter((Y) => !(B !== "" && (Y.isRollup === !0 || !Y.cells.some((G) => ((G == null ? void 0 : G.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Y) => ({ ...We(Y, O), groupIndex: Y.groupIndex })));
|
|
19851
|
+
const z = {};
|
|
19852
|
+
for (const Y of r0) {
|
|
19853
|
+
const G = Y.groupIndex;
|
|
19854
|
+
G !== void 0 && (z[G] || (z[G] = [])).push(Y);
|
|
19855
19855
|
}
|
|
19856
|
-
X && Object.values(
|
|
19857
|
-
const
|
|
19858
|
-
|
|
19859
|
-
for (const { key:
|
|
19860
|
-
const
|
|
19861
|
-
if (
|
|
19862
|
-
const u = Number(
|
|
19863
|
-
if (u !== 0) return u *
|
|
19856
|
+
X && Object.values(z).forEach((Y) => {
|
|
19857
|
+
const G = Y.filter((t0) => t0.isRollup), i0 = Y.filter((t0) => !t0.isRollup);
|
|
19858
|
+
i0.sort((t0, a0) => {
|
|
19859
|
+
for (const { key: W, type: n0 } of V) {
|
|
19860
|
+
const D0 = n0 === "ASC" ? 1 : -1, e0 = X0(t0, W, O) ?? "", t = X0(a0, W, O) ?? "";
|
|
19861
|
+
if (Q[W]) {
|
|
19862
|
+
const u = Number(e0) - Number(t);
|
|
19863
|
+
if (u !== 0) return u * D0;
|
|
19864
19864
|
} else {
|
|
19865
|
-
const u = De(
|
|
19865
|
+
const u = De(e0, t);
|
|
19866
19866
|
if (u !== null && u !== 0)
|
|
19867
|
-
return u *
|
|
19868
|
-
const _ = le.compare(String(
|
|
19869
|
-
if (_ !== 0) return _ *
|
|
19867
|
+
return u * D0;
|
|
19868
|
+
const _ = le.compare(String(e0), String(t));
|
|
19869
|
+
if (_ !== 0) return _ * D0;
|
|
19870
19870
|
}
|
|
19871
19871
|
}
|
|
19872
19872
|
return 0;
|
|
19873
|
-
}),
|
|
19873
|
+
}), z[Y[0].groupIndex] = G.concat(i0);
|
|
19874
19874
|
});
|
|
19875
|
-
let
|
|
19875
|
+
let K;
|
|
19876
19876
|
if (X) {
|
|
19877
|
-
const Y =
|
|
19878
|
-
const
|
|
19879
|
-
const
|
|
19880
|
-
return
|
|
19877
|
+
const Y = N === null ? (() => {
|
|
19878
|
+
const t0 = Object.keys(z).find((a0) => {
|
|
19879
|
+
const W = z[a0] || [], n0 = W.some((e0) => e0.isRollup), D0 = W.some((e0) => !e0.isRollup);
|
|
19880
|
+
return n0 && !D0;
|
|
19881
19881
|
});
|
|
19882
|
-
return
|
|
19883
|
-
})() : -1,
|
|
19884
|
-
|
|
19885
|
-
if (!
|
|
19882
|
+
return t0 !== void 0 ? Number(t0) : -1;
|
|
19883
|
+
})() : -1, G = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((l0 = O.find((t0) => Q[t0.key])) == null ? void 0 : l0.key), i0 = ((c0 = V[0]) == null ? void 0 : c0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
|
|
19884
|
+
K = Object.keys(z).map(Number).sort((t0, a0) => {
|
|
19885
|
+
if (!G) return t0 - a0;
|
|
19886
19886
|
if (Y !== -1) {
|
|
19887
|
-
if (
|
|
19888
|
-
if (
|
|
19887
|
+
if (t0 === Y) return -1;
|
|
19888
|
+
if (a0 === Y) return 1;
|
|
19889
19889
|
}
|
|
19890
|
-
const
|
|
19891
|
-
if (
|
|
19892
|
-
const t = De(
|
|
19893
|
-
return t !== null ? t *
|
|
19890
|
+
const W = z[t0].find((u) => u.isRollup), n0 = z[a0].find((u) => u.isRollup), D0 = W ? X0(W, G, O) ?? "" : "", e0 = n0 ? X0(n0, G, O) ?? "" : "";
|
|
19891
|
+
if (Q[G]) return (Number(D0) - Number(e0)) * i0;
|
|
19892
|
+
const t = De(D0, e0);
|
|
19893
|
+
return t !== null ? t * i0 : le.compare(String(D0), String(e0)) * i0;
|
|
19894
19894
|
});
|
|
19895
19895
|
} else
|
|
19896
|
-
|
|
19897
|
-
const
|
|
19898
|
-
for (const Y of
|
|
19899
|
-
for (const { groupIndex:
|
|
19900
|
-
|
|
19901
|
-
if (
|
|
19902
|
-
const Y =
|
|
19903
|
-
let
|
|
19904
|
-
Y > 0 ?
|
|
19896
|
+
K = Object.keys(z).map(Number).sort((Y, G) => Y - G);
|
|
19897
|
+
const q = [];
|
|
19898
|
+
for (const Y of K)
|
|
19899
|
+
for (const { groupIndex: G, ...i0 } of z[Y])
|
|
19900
|
+
q.push(i0);
|
|
19901
|
+
if (J > 0) {
|
|
19902
|
+
const Y = q.length % J;
|
|
19903
|
+
let G = 0;
|
|
19904
|
+
Y > 0 ? G = J - Y : q.length === 0 && (G = J), G > 0 && q.push(...je(G, O));
|
|
19905
19905
|
}
|
|
19906
|
-
return { data:
|
|
19906
|
+
return { data: q };
|
|
19907
19907
|
}
|
|
19908
19908
|
var Ze = { processTableData: Ke };
|
|
19909
19909
|
const et = Ye, tt = Ge, rt = Ze;
|
|
@@ -19974,12 +19974,12 @@ const B0 = "/report-settings", lt = async () => {
|
|
|
19974
19974
|
};
|
|
19975
19975
|
return E0.fetch(O);
|
|
19976
19976
|
}, ar = (A, I) => {
|
|
19977
|
-
const { businessId: O } = d0($0()),
|
|
19977
|
+
const { businessId: O } = d0($0()), P = {
|
|
19978
19978
|
fetchType: m0.Put,
|
|
19979
19979
|
url: `${B0}/${O.value}/reports/${A}/pos-support`,
|
|
19980
19980
|
data: { isSupportPos: I }
|
|
19981
19981
|
};
|
|
19982
|
-
return E0.fetch(
|
|
19982
|
+
return E0.fetch(P);
|
|
19983
19983
|
}, ft = async () => {
|
|
19984
19984
|
const { businessId: A } = d0($0());
|
|
19985
19985
|
if (A) {
|
|
@@ -20036,12 +20036,12 @@ const k0 = {
|
|
|
20036
20036
|
};
|
|
20037
20037
|
return E0.fetch(A);
|
|
20038
20038
|
}, gt = "mf-reportschema-store", ht = Q0(gt, () => {
|
|
20039
|
-
const A =
|
|
20039
|
+
const A = _0([]), I = he();
|
|
20040
20040
|
async function O() {
|
|
20041
20041
|
try {
|
|
20042
20042
|
A.value = await mt();
|
|
20043
|
-
} catch (
|
|
20044
|
-
console.log(
|
|
20043
|
+
} catch (P) {
|
|
20044
|
+
console.log(P), I.open({
|
|
20045
20045
|
title: "Get Schema Error",
|
|
20046
20046
|
message: "Internal Server Error",
|
|
20047
20047
|
type: "error"
|
|
@@ -20059,104 +20059,108 @@ async function St(A, I) {
|
|
|
20059
20059
|
return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
|
|
20060
20060
|
if (!A || !I)
|
|
20061
20061
|
return Promise.reject(new Error("Failed to grant permission. Permission key or report label is not defined"));
|
|
20062
|
-
const
|
|
20062
|
+
const P = {
|
|
20063
20063
|
fetchType: m0.Post,
|
|
20064
20064
|
url: `/businesses/${O.value}/my-permissions/report-manage`,
|
|
20065
20065
|
data: { permissionKey: A, label: I }
|
|
20066
20066
|
};
|
|
20067
|
-
await Oe.fetch(
|
|
20067
|
+
await Oe.fetch(P);
|
|
20068
20068
|
}
|
|
20069
20069
|
function Et(A) {
|
|
20070
20070
|
const I = A.permissionKey || A.id;
|
|
20071
20071
|
return I ? `business::report::reports::${I}` : null;
|
|
20072
20072
|
}
|
|
20073
20073
|
function Ce() {
|
|
20074
|
-
const { sessionUser: A } = ne(), I = $e(), { country: O } = d0($0()),
|
|
20075
|
-
const
|
|
20076
|
-
(
|
|
20074
|
+
const { sessionUser: A } = ne(), I = $e(), { country: O } = d0($0()), P = "business::report::allDefaultReports", B = "business::report::allCustomReports", N = R0(() => {
|
|
20075
|
+
const q = I.flags.find(
|
|
20076
|
+
(Z) => Z.key === Z0.report_portal_permission_th_control_temp
|
|
20077
20077
|
);
|
|
20078
|
-
return O.value.toUpperCase() === "TH" && (
|
|
20079
|
-
}),
|
|
20080
|
-
if (
|
|
20078
|
+
return O.value.toUpperCase() === "TH" && (q == null ? void 0 : q.value) === !0;
|
|
20079
|
+
}), J = R0(() => {
|
|
20080
|
+
if (N.value)
|
|
20081
20081
|
return !0;
|
|
20082
|
-
const
|
|
20083
|
-
(
|
|
20082
|
+
const q = I.flags.find(
|
|
20083
|
+
(Z) => Z.key === Z0.report_portal_permission
|
|
20084
20084
|
);
|
|
20085
|
-
return (
|
|
20085
|
+
return (q == null ? void 0 : q.value) === !0;
|
|
20086
20086
|
}), H = R0(
|
|
20087
20087
|
() => {
|
|
20088
|
-
var
|
|
20089
|
-
return Array.isArray((
|
|
20088
|
+
var q, Z;
|
|
20089
|
+
return Array.isArray((q = A.value) == null ? void 0 : q.permissions) ? (Z = A.value) == null ? void 0 : Z.permissions : [];
|
|
20090
20090
|
}
|
|
20091
20091
|
);
|
|
20092
|
-
function
|
|
20093
|
-
if (!
|
|
20094
|
-
const
|
|
20095
|
-
return !
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20092
|
+
function k(q, Z) {
|
|
20093
|
+
if (!J.value) return !0;
|
|
20094
|
+
const u0 = Et(q);
|
|
20095
|
+
return !u0 || !H.value.length ? !1 : Z.some((s0) => {
|
|
20096
|
+
const l0 = {
|
|
20097
|
+
action: s0,
|
|
20098
|
+
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
20099
|
+
subject: u0,
|
|
20100
|
+
coverSubject: q != null && q.isDefault ? P : B
|
|
20101
|
+
};
|
|
20102
|
+
return ee([l0], H.value).granted;
|
|
20103
|
+
});
|
|
20100
20104
|
}
|
|
20101
|
-
function
|
|
20102
|
-
return
|
|
20105
|
+
function Q(q) {
|
|
20106
|
+
return k(q, [C0.update, C0.manage]);
|
|
20103
20107
|
}
|
|
20104
|
-
function
|
|
20105
|
-
return
|
|
20108
|
+
function V(q) {
|
|
20109
|
+
return k(q, [C0.read, C0.manage]);
|
|
20106
20110
|
}
|
|
20107
|
-
function q
|
|
20108
|
-
return
|
|
20111
|
+
function X(q) {
|
|
20112
|
+
return k(q, [C0.delete, C0.manage]);
|
|
20109
20113
|
}
|
|
20110
|
-
function
|
|
20111
|
-
return
|
|
20114
|
+
function r0(q) {
|
|
20115
|
+
return k(q, [C0.manage]);
|
|
20112
20116
|
}
|
|
20113
|
-
function
|
|
20114
|
-
return
|
|
20117
|
+
function z(q) {
|
|
20118
|
+
return k(q, [C0.create, C0.manage]);
|
|
20115
20119
|
}
|
|
20116
|
-
const
|
|
20117
|
-
if (!
|
|
20118
|
-
const
|
|
20119
|
-
return H.value.length ? [C0.create, C0.manage].some((
|
|
20120
|
-
action:
|
|
20121
|
-
subject:
|
|
20120
|
+
const K = R0(() => {
|
|
20121
|
+
if (!J.value) return !0;
|
|
20122
|
+
const q = "business::report::createReport";
|
|
20123
|
+
return H.value.length ? [C0.create, C0.manage].some((Z) => ee([{
|
|
20124
|
+
action: Z,
|
|
20125
|
+
subject: q
|
|
20122
20126
|
}], H.value).granted) : !1;
|
|
20123
20127
|
});
|
|
20124
20128
|
return {
|
|
20125
|
-
isReportPermissionEnabled:
|
|
20126
|
-
canRead:
|
|
20127
|
-
canUpdate:
|
|
20128
|
-
canDelete:
|
|
20129
|
-
canManage:
|
|
20130
|
-
canDuplicate:
|
|
20131
|
-
canCreateReport:
|
|
20129
|
+
isReportPermissionEnabled: J,
|
|
20130
|
+
canRead: V,
|
|
20131
|
+
canUpdate: Q,
|
|
20132
|
+
canDelete: X,
|
|
20133
|
+
canManage: r0,
|
|
20134
|
+
canDuplicate: z,
|
|
20135
|
+
canCreateReport: K
|
|
20132
20136
|
};
|
|
20133
20137
|
}
|
|
20134
20138
|
const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
20135
|
-
const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags:
|
|
20136
|
-
const f =
|
|
20139
|
+
const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags: P } = d0($e()), B = _0([]), N = _0([]), J = _0(0), H = he(), k = R0(() => B.value.filter((f) => f.editable)), Q = R0(() => B.value.filter((f) => !f.editable)), V = _0(!1), X = _0(""), r0 = _0(), z = _0(), K = R0(() => {
|
|
20140
|
+
const f = P.value.find(
|
|
20137
20141
|
(r) => r.key === Z0.report_portal_integration_custom_report
|
|
20138
20142
|
);
|
|
20139
20143
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
20140
|
-
}), { isReportPermissionEnabled:
|
|
20141
|
-
async function
|
|
20142
|
-
return
|
|
20144
|
+
}), { isReportPermissionEnabled: q } = Ce(), Z = R0(() => K.value === null ? !0 : K.value - k.value.length > 0);
|
|
20145
|
+
async function u0() {
|
|
20146
|
+
return z.value = await ft(), z.value;
|
|
20143
20147
|
}
|
|
20144
20148
|
async function s0() {
|
|
20145
20149
|
var f;
|
|
20146
20150
|
try {
|
|
20147
|
-
B.value = await lt(),
|
|
20151
|
+
B.value = await lt(), N.value = await yt(), B.value.find((e) => e.id === X.value) || (X.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
|
|
20148
20152
|
} catch (r) {
|
|
20149
|
-
console.log(r),
|
|
20153
|
+
console.log(r), H.open({
|
|
20150
20154
|
title: "Report Fetch Error",
|
|
20151
20155
|
message: "Internal Server Error",
|
|
20152
20156
|
type: "error"
|
|
20153
20157
|
});
|
|
20154
20158
|
}
|
|
20155
20159
|
}
|
|
20156
|
-
const
|
|
20160
|
+
const l0 = R0(
|
|
20157
20161
|
() => B.value.find((f) => f.id === X.value)
|
|
20158
20162
|
);
|
|
20159
|
-
function
|
|
20163
|
+
function c0(f) {
|
|
20160
20164
|
var e;
|
|
20161
20165
|
const r = (e = O.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
|
|
20162
20166
|
return r == null ? void 0 : r.type;
|
|
@@ -20164,27 +20168,27 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
|
20164
20168
|
z0(
|
|
20165
20169
|
() => {
|
|
20166
20170
|
var f;
|
|
20167
|
-
return (f =
|
|
20171
|
+
return (f = l0.value) == null ? void 0 : f.globalFilters;
|
|
20168
20172
|
},
|
|
20169
20173
|
(f) => {
|
|
20170
20174
|
I.value = (f ?? []).map((r) => ({
|
|
20171
20175
|
...r,
|
|
20172
20176
|
values: Array.isArray(r.values) ? [...r.values] : [],
|
|
20173
|
-
type:
|
|
20177
|
+
type: c0(r)
|
|
20174
20178
|
}));
|
|
20175
20179
|
},
|
|
20176
20180
|
{ deep: !0 }
|
|
20177
20181
|
);
|
|
20178
|
-
const p0 =
|
|
20179
|
-
async function
|
|
20180
|
-
const r =
|
|
20182
|
+
const p0 = _0(), Y = _0(0), G = _0(), i0 = _0(null), t0 = _0(null), a0 = _0(!1), W = _0(!1), n0 = _0(!1);
|
|
20183
|
+
async function D0(f) {
|
|
20184
|
+
const r = k.value.findIndex((n) => n.id === f.id);
|
|
20181
20185
|
let e;
|
|
20182
20186
|
if (r >= 0)
|
|
20183
20187
|
e = await _t(f);
|
|
20184
20188
|
else {
|
|
20185
20189
|
e = await Dt(f);
|
|
20186
20190
|
try {
|
|
20187
|
-
if (
|
|
20191
|
+
if (q.value) {
|
|
20188
20192
|
await St(e.id, e.name);
|
|
20189
20193
|
const n = ne(), { businessId: i } = d0($0());
|
|
20190
20194
|
await n.fetchUserPermissions(void 0, i.value);
|
|
@@ -20198,16 +20202,16 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
|
20198
20202
|
}
|
|
20199
20203
|
return u(e.id), await s0(), e;
|
|
20200
20204
|
}
|
|
20201
|
-
async function
|
|
20205
|
+
async function e0(f) {
|
|
20202
20206
|
await dt(f), await s0();
|
|
20203
20207
|
}
|
|
20204
20208
|
async function t(f) {
|
|
20205
|
-
await ct(f), await
|
|
20209
|
+
await ct(f), await u0();
|
|
20206
20210
|
}
|
|
20207
20211
|
function u(f) {
|
|
20208
20212
|
X.value = f;
|
|
20209
20213
|
}
|
|
20210
|
-
const _ =
|
|
20214
|
+
const _ = _0(null);
|
|
20211
20215
|
function $() {
|
|
20212
20216
|
var f;
|
|
20213
20217
|
if ((f = A.value) != null && f._id) {
|
|
@@ -20238,33 +20242,33 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
|
20238
20242
|
return await pt();
|
|
20239
20243
|
}
|
|
20240
20244
|
return {
|
|
20241
|
-
isOpenDownloadDialog:
|
|
20242
|
-
isOpenFeedbackDialog:
|
|
20243
|
-
isOpenEmailDialog:
|
|
20244
|
-
currentSelectWidgetType:
|
|
20245
|
+
isOpenDownloadDialog: a0,
|
|
20246
|
+
isOpenFeedbackDialog: W,
|
|
20247
|
+
isOpenEmailDialog: n0,
|
|
20248
|
+
currentSelectWidgetType: r0,
|
|
20245
20249
|
reports: B,
|
|
20246
|
-
categories:
|
|
20247
|
-
currentReport:
|
|
20250
|
+
categories: N,
|
|
20251
|
+
currentReport: l0,
|
|
20248
20252
|
editingReport: p0,
|
|
20249
20253
|
editingTileIndex: Y,
|
|
20250
|
-
editingTile:
|
|
20251
|
-
editingGlobalFilterIndex:
|
|
20252
|
-
editingGlobalFilter:
|
|
20254
|
+
editingTile: G,
|
|
20255
|
+
editingGlobalFilterIndex: i0,
|
|
20256
|
+
editingGlobalFilter: t0,
|
|
20253
20257
|
currentReportId: X,
|
|
20254
|
-
editableReports:
|
|
20255
|
-
nonEditableReports:
|
|
20258
|
+
editableReports: k,
|
|
20259
|
+
nonEditableReports: Q,
|
|
20256
20260
|
isOpenAddReportDialog: V,
|
|
20257
|
-
overviewReport:
|
|
20261
|
+
overviewReport: z,
|
|
20258
20262
|
pinReport: _,
|
|
20259
|
-
scrollPositionY:
|
|
20260
|
-
customReportQuota:
|
|
20261
|
-
canCreateCustomReport:
|
|
20262
|
-
createOrUpdateReport:
|
|
20263
|
-
removeReport:
|
|
20263
|
+
scrollPositionY: J,
|
|
20264
|
+
customReportQuota: K,
|
|
20265
|
+
canCreateCustomReport: Z,
|
|
20266
|
+
createOrUpdateReport: D0,
|
|
20267
|
+
removeReport: e0,
|
|
20264
20268
|
updateCurrentReportId: u,
|
|
20265
20269
|
getReports: s0,
|
|
20266
20270
|
updateDefaultReport: t,
|
|
20267
|
-
getOverviewReport:
|
|
20271
|
+
getOverviewReport: u0,
|
|
20268
20272
|
refreshPinReport: $,
|
|
20269
20273
|
cachePinReport: S,
|
|
20270
20274
|
clearPinReport: b,
|
|
@@ -20272,19 +20276,19 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
|
20272
20276
|
};
|
|
20273
20277
|
}), Tt = "mf-reportnavigation", be = Q0(Tt, () => {
|
|
20274
20278
|
const { disabled: A } = d0(we()), { sessionUser: I } = ne(), { isReportPermissionEnabled: O } = Ce();
|
|
20275
|
-
function
|
|
20276
|
-
var
|
|
20279
|
+
function P(V) {
|
|
20280
|
+
var K;
|
|
20277
20281
|
if (!O.value) return !0;
|
|
20278
|
-
const X = ((
|
|
20282
|
+
const X = ((K = I.value) == null ? void 0 : K.permissions) ?? [];
|
|
20279
20283
|
if (!Array.isArray(X) || X.length === 0) return !1;
|
|
20280
|
-
const
|
|
20284
|
+
const r0 = {
|
|
20281
20285
|
action: C0.manage,
|
|
20282
20286
|
subject: V
|
|
20283
20287
|
};
|
|
20284
|
-
return ee([
|
|
20288
|
+
return ee([r0], X).granted;
|
|
20285
20289
|
}
|
|
20286
|
-
const B =
|
|
20287
|
-
const V = !
|
|
20290
|
+
const B = _0("v5"), N = _0(!1), J = R0(() => {
|
|
20291
|
+
const V = !P("business::report::accessInsight"), X = !P("business::report::accessSetting"), r0 = !P("business::report::accessIntegration"), z = [
|
|
20288
20292
|
{
|
|
20289
20293
|
label: "overview",
|
|
20290
20294
|
value: "overview",
|
|
@@ -20309,45 +20313,45 @@ const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
|
20309
20313
|
disabled: X
|
|
20310
20314
|
}
|
|
20311
20315
|
];
|
|
20312
|
-
return A.value ||
|
|
20316
|
+
return A.value || z.push({
|
|
20313
20317
|
label: "integration",
|
|
20314
20318
|
value: "integration",
|
|
20315
20319
|
route: "integrations",
|
|
20316
|
-
disabled:
|
|
20317
|
-
}),
|
|
20318
|
-
}),
|
|
20319
|
-
function
|
|
20320
|
+
disabled: r0
|
|
20321
|
+
}), z;
|
|
20322
|
+
}), H = _0(""), { currentRoute: k } = qe();
|
|
20323
|
+
function Q(V) {
|
|
20320
20324
|
switch (V.name) {
|
|
20321
20325
|
case "report":
|
|
20322
20326
|
case "reports":
|
|
20323
|
-
|
|
20327
|
+
H.value = "report";
|
|
20324
20328
|
break;
|
|
20325
20329
|
case "overview":
|
|
20326
|
-
|
|
20330
|
+
H.value = "overview";
|
|
20327
20331
|
break;
|
|
20328
20332
|
case "setting":
|
|
20329
|
-
|
|
20333
|
+
H.value = "setting";
|
|
20330
20334
|
break;
|
|
20331
20335
|
case "insights":
|
|
20332
|
-
|
|
20336
|
+
H.value = "insight";
|
|
20333
20337
|
break;
|
|
20334
20338
|
case "integration":
|
|
20335
20339
|
case "integrations":
|
|
20336
|
-
|
|
20340
|
+
H.value = "integration";
|
|
20337
20341
|
break;
|
|
20338
20342
|
}
|
|
20339
20343
|
}
|
|
20340
20344
|
return z0(
|
|
20341
|
-
|
|
20345
|
+
k,
|
|
20342
20346
|
(V) => {
|
|
20343
|
-
|
|
20347
|
+
Q(V);
|
|
20344
20348
|
},
|
|
20345
20349
|
{ immediate: !0 }
|
|
20346
20350
|
), {
|
|
20347
|
-
selectedNavigationTab:
|
|
20348
|
-
navigationTabs:
|
|
20351
|
+
selectedNavigationTab: H,
|
|
20352
|
+
navigationTabs: J,
|
|
20349
20353
|
version: B,
|
|
20350
|
-
suppressReportRouteSync:
|
|
20354
|
+
suppressReportRouteSync: N
|
|
20351
20355
|
};
|
|
20352
20356
|
});
|
|
20353
20357
|
var Ie = /* @__PURE__ */ ((A) => (A.generating = "GENERATING", A.completed = "COMPLETED", A.failed = "FAILED", A.canceled = "CANCELLED", A))(Ie || {});
|
|
@@ -20360,55 +20364,55 @@ async function bt(A) {
|
|
|
20360
20364
|
return de(K0.get(A));
|
|
20361
20365
|
let I = A;
|
|
20362
20366
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
20363
|
-
const B = new URL(A.replace(/^\//, ""), import.meta.url).href,
|
|
20364
|
-
I = URL.createObjectURL(
|
|
20367
|
+
const B = new URL(A.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((H) => H.text()), J = new Blob([N], { type: "application/javascript" });
|
|
20368
|
+
I = URL.createObjectURL(J);
|
|
20365
20369
|
}
|
|
20366
|
-
const
|
|
20367
|
-
return K0.set(A, I),
|
|
20370
|
+
const P = de(I);
|
|
20371
|
+
return K0.set(A, I), P;
|
|
20368
20372
|
}
|
|
20369
20373
|
async function It(A, I) {
|
|
20370
20374
|
const O = await bt(A);
|
|
20371
|
-
return O.postMessage(I), await new Promise((
|
|
20375
|
+
return O.postMessage(I), await new Promise((P) => {
|
|
20372
20376
|
O.onmessage = async (B) => {
|
|
20373
|
-
const
|
|
20374
|
-
O.terminate(),
|
|
20377
|
+
const N = B.data;
|
|
20378
|
+
O.terminate(), P(N);
|
|
20375
20379
|
};
|
|
20376
20380
|
});
|
|
20377
20381
|
}
|
|
20378
20382
|
const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
|
|
20379
|
-
const A =
|
|
20380
|
-
function I(O,
|
|
20383
|
+
const A = _0([]);
|
|
20384
|
+
function I(O, P) {
|
|
20381
20385
|
var B;
|
|
20382
20386
|
try {
|
|
20383
20387
|
if (!O) return;
|
|
20384
|
-
let
|
|
20385
|
-
const
|
|
20386
|
-
if (
|
|
20387
|
-
const
|
|
20388
|
-
|
|
20388
|
+
let N;
|
|
20389
|
+
const J = O.$el, H = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
|
|
20390
|
+
if (H) {
|
|
20391
|
+
const k = H.getBoundingClientRect();
|
|
20392
|
+
N = { width: Math.round(k.width), height: Math.round(k.height) };
|
|
20389
20393
|
}
|
|
20390
|
-
if (
|
|
20391
|
-
return typeof
|
|
20392
|
-
} catch (
|
|
20393
|
-
console.log(
|
|
20394
|
+
if (N && N.width > 0 && N.height > 0)
|
|
20395
|
+
return typeof P == "number" && (A.value[P] = N), N;
|
|
20396
|
+
} catch (N) {
|
|
20397
|
+
console.log(N);
|
|
20394
20398
|
}
|
|
20395
20399
|
}
|
|
20396
20400
|
return { sizes: A, extractChartSize: I };
|
|
20397
20401
|
}), Mt = "mf-reportreport-sort-store", Me = Q0(Mt, () => {
|
|
20398
|
-
const A =
|
|
20399
|
-
function I(B,
|
|
20402
|
+
const A = _0([]);
|
|
20403
|
+
function I(B, N) {
|
|
20400
20404
|
if (B == null) return;
|
|
20401
|
-
const
|
|
20402
|
-
|
|
20405
|
+
const J = Array.isArray(N) ? N.filter((Q) => Q && Q.key) : [], H = A.value.findIndex((Q) => Q.tileIndex === B), k = { tileIndex: B, sorts: J };
|
|
20406
|
+
H !== -1 ? A.value.splice(H, 1, k) : A.value.push(k);
|
|
20403
20407
|
}
|
|
20404
20408
|
function O(B) {
|
|
20405
|
-
var
|
|
20406
|
-
return B == null ? [] : ((
|
|
20409
|
+
var N;
|
|
20410
|
+
return B == null ? [] : ((N = A.value.find((J) => J.tileIndex === B)) == null ? void 0 : N.sorts) ?? [];
|
|
20407
20411
|
}
|
|
20408
|
-
function
|
|
20409
|
-
typeof B == "number" ? A.value = A.value.filter((
|
|
20412
|
+
function P(B) {
|
|
20413
|
+
typeof B == "number" ? A.value = A.value.filter((N) => N.tileIndex !== B) : A.value = [];
|
|
20410
20414
|
}
|
|
20411
|
-
return { tileSort: A, setTileSorts: I, getTileSorts: O, clearTileSorts:
|
|
20415
|
+
return { tileSort: A, setTileSorts: I, getTileSorts: O, clearTileSorts: P };
|
|
20412
20416
|
});
|
|
20413
20417
|
function Re(A = []) {
|
|
20414
20418
|
return Array.from(
|
|
@@ -20425,7 +20429,7 @@ function Rt(A) {
|
|
|
20425
20429
|
].join(":");
|
|
20426
20430
|
}
|
|
20427
20431
|
function xt(A) {
|
|
20428
|
-
const I = (O,
|
|
20432
|
+
const I = (O, P) => A0().set("hour", O).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
|
|
20429
20433
|
return !A.startTime || !A.endTime ? [] : [
|
|
20430
20434
|
I(A.startTime.hour, A.startTime.minute),
|
|
20431
20435
|
I(A.endTime.hour, A.endTime.minute)
|
|
@@ -20455,39 +20459,39 @@ function Ot(A, I) {
|
|
|
20455
20459
|
};
|
|
20456
20460
|
}
|
|
20457
20461
|
function wt(A) {
|
|
20458
|
-
var
|
|
20462
|
+
var P, B, N, J;
|
|
20459
20463
|
const I = Array.from(
|
|
20460
|
-
new Set((A.values ?? []).map((
|
|
20464
|
+
new Set((A.values ?? []).map((H) => H === "" ? "NULL" : H))
|
|
20461
20465
|
);
|
|
20462
20466
|
if (I.length === 1 && String(I[0]) === "(EMPTY)") {
|
|
20463
|
-
const
|
|
20467
|
+
const H = Object.values(q0).includes(
|
|
20464
20468
|
String(A.option ?? "")
|
|
20465
|
-
),
|
|
20469
|
+
), k = A.option === q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [H ? "-1" : "(EMPTY)"];
|
|
20466
20470
|
return [
|
|
20467
20471
|
{
|
|
20468
20472
|
schemaName: A.schemaName,
|
|
20469
20473
|
name: A.name,
|
|
20470
20474
|
operator: A.operator,
|
|
20471
20475
|
option: A.option ?? null,
|
|
20472
|
-
values:
|
|
20476
|
+
values: k,
|
|
20473
20477
|
dataFormula: A.dataFormula,
|
|
20474
20478
|
isGlobalFilter: !0
|
|
20475
20479
|
}
|
|
20476
20480
|
];
|
|
20477
20481
|
}
|
|
20478
|
-
if ((((
|
|
20479
|
-
const
|
|
20480
|
-
return ((B = A.customTimeRanges) == null ? void 0 : B.filter((
|
|
20481
|
-
const
|
|
20482
|
-
return
|
|
20483
|
-
}).map((
|
|
20482
|
+
if ((((P = A.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
|
|
20483
|
+
const H = new Set(I.map((k) => String(k)));
|
|
20484
|
+
return ((B = A.customTimeRanges) == null ? void 0 : B.filter((k) => {
|
|
20485
|
+
const Q = String(k.name ?? "");
|
|
20486
|
+
return H.has(Q);
|
|
20487
|
+
}).map((k) => Ot(A, k)).filter((k) => !!k)) ?? [];
|
|
20484
20488
|
}
|
|
20485
|
-
if ((((
|
|
20486
|
-
const
|
|
20487
|
-
return ((
|
|
20488
|
-
const
|
|
20489
|
-
return
|
|
20490
|
-
}).map((
|
|
20489
|
+
if ((((N = A.customOptions) == null ? void 0 : N.length) ?? 0) > 0) {
|
|
20490
|
+
const H = new Set(I.map((k) => String(k)));
|
|
20491
|
+
return ((J = A.customOptions) == null ? void 0 : J.filter((k) => {
|
|
20492
|
+
const Q = String(k.label ?? "");
|
|
20493
|
+
return H.has(Q);
|
|
20494
|
+
}).map((k) => Lt(A, k)).filter((k) => Array.isArray(k.values) && k.values.length > 0)) ?? [];
|
|
20491
20495
|
}
|
|
20492
20496
|
return I.length === 0 ? [] : [
|
|
20493
20497
|
{
|
|
@@ -20507,54 +20511,54 @@ function ce({
|
|
|
20507
20511
|
schemaNames: O
|
|
20508
20512
|
}) {
|
|
20509
20513
|
if (!I.some(
|
|
20510
|
-
(
|
|
20514
|
+
(H) => O == null ? void 0 : O.includes(H.schemaName)
|
|
20511
20515
|
))
|
|
20512
20516
|
return [...A];
|
|
20513
|
-
const B = /* @__PURE__ */ new Map(),
|
|
20514
|
-
if (!
|
|
20515
|
-
const
|
|
20516
|
-
...
|
|
20517
|
-
values: Re(
|
|
20517
|
+
const B = /* @__PURE__ */ new Map(), N = [], J = (H) => {
|
|
20518
|
+
if (!H || !Array.isArray(H.values) || H.values.length === 0) return;
|
|
20519
|
+
const k = {
|
|
20520
|
+
...H,
|
|
20521
|
+
values: Re(H.values)
|
|
20518
20522
|
};
|
|
20519
|
-
if (
|
|
20520
|
-
|
|
20523
|
+
if (k.option === q0.TimeOfDay && k.operator === ae.Between) {
|
|
20524
|
+
N.push(k);
|
|
20521
20525
|
return;
|
|
20522
20526
|
}
|
|
20523
|
-
const V = Rt(
|
|
20527
|
+
const V = Rt(k), X = B.get(V);
|
|
20524
20528
|
if (!X) {
|
|
20525
|
-
B.set(V,
|
|
20529
|
+
B.set(V, k);
|
|
20526
20530
|
return;
|
|
20527
20531
|
}
|
|
20528
20532
|
X.values = [
|
|
20529
20533
|
...X.values ?? [],
|
|
20530
|
-
...
|
|
20534
|
+
...k.values
|
|
20531
20535
|
], B.set(V, X);
|
|
20532
20536
|
};
|
|
20533
|
-
return A.forEach(
|
|
20537
|
+
return A.forEach(J), I.forEach(J), [...Array.from(B.values()), ...N];
|
|
20534
20538
|
}
|
|
20535
20539
|
function se(A, I, O) {
|
|
20536
|
-
var
|
|
20537
|
-
const
|
|
20538
|
-
var
|
|
20539
|
-
return (
|
|
20540
|
-
}).flatMap((
|
|
20540
|
+
var N;
|
|
20541
|
+
const P = JSON.parse(JSON.stringify(A)), B = I.filter((J) => {
|
|
20542
|
+
var H;
|
|
20543
|
+
return (H = J.tileIds) == null ? void 0 : H.includes(O);
|
|
20544
|
+
}).flatMap((J) => wt(J));
|
|
20541
20545
|
return {
|
|
20542
|
-
...
|
|
20546
|
+
...P,
|
|
20543
20547
|
config: {
|
|
20544
|
-
...
|
|
20548
|
+
...P.config,
|
|
20545
20549
|
filters: ce({
|
|
20546
|
-
originalFilters:
|
|
20550
|
+
originalFilters: P.config.filters ?? [],
|
|
20547
20551
|
globalFilters: B ?? [],
|
|
20548
|
-
schemaNames:
|
|
20552
|
+
schemaNames: P.config.schemaNames
|
|
20549
20553
|
}),
|
|
20550
|
-
joinDatasources: ((
|
|
20551
|
-
var
|
|
20554
|
+
joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J, H) => {
|
|
20555
|
+
var k;
|
|
20552
20556
|
return {
|
|
20553
|
-
...
|
|
20557
|
+
...J,
|
|
20554
20558
|
filters: ce({
|
|
20555
|
-
originalFilters:
|
|
20559
|
+
originalFilters: J.filters ?? [],
|
|
20556
20560
|
globalFilters: B ?? [],
|
|
20557
|
-
schemaNames: (
|
|
20561
|
+
schemaNames: (k = P.config.joinDatasources) == null ? void 0 : k[H].schemaNames
|
|
20558
20562
|
})
|
|
20559
20563
|
};
|
|
20560
20564
|
})) ?? []
|
|
@@ -20565,62 +20569,62 @@ async function vt(A, I) {
|
|
|
20565
20569
|
for (let O = 0; O < A.length; O++)
|
|
20566
20570
|
try {
|
|
20567
20571
|
return await A[O]();
|
|
20568
|
-
} catch (
|
|
20569
|
-
if (
|
|
20572
|
+
} catch (P) {
|
|
20573
|
+
if (P.message === "Unauthorized" || O === A.length - 1) throw P;
|
|
20570
20574
|
await new Promise((B) => setTimeout(B, I));
|
|
20571
20575
|
}
|
|
20572
20576
|
throw new Error("No callback");
|
|
20573
20577
|
}
|
|
20574
20578
|
const ur = async (A, I, O) => {
|
|
20575
|
-
var s0,
|
|
20576
|
-
const { businessId:
|
|
20577
|
-
selectedRestaurantIds:
|
|
20578
|
-
selectedWarehouseIds:
|
|
20579
|
-
selectedLocationIds:
|
|
20580
|
-
dateRange:
|
|
20579
|
+
var s0, l0, c0, p0;
|
|
20580
|
+
const { businessId: P, country: B } = d0($0()), { currentReport: N } = ue(), {
|
|
20581
|
+
selectedRestaurantIds: J,
|
|
20582
|
+
selectedWarehouseIds: H,
|
|
20583
|
+
selectedLocationIds: k,
|
|
20584
|
+
dateRange: Q,
|
|
20581
20585
|
compareDateRange: V,
|
|
20582
20586
|
timeRange: X,
|
|
20583
|
-
globalFilters:
|
|
20584
|
-
timezone:
|
|
20587
|
+
globalFilters: r0,
|
|
20588
|
+
timezone: z
|
|
20585
20589
|
} = G0();
|
|
20586
|
-
if (
|
|
20590
|
+
if (k.length === 0)
|
|
20587
20591
|
return null;
|
|
20588
|
-
const
|
|
20592
|
+
const K = se(A, r0, O ?? ""), q = {
|
|
20589
20593
|
fetchType: m0.Post,
|
|
20590
|
-
url: `/${
|
|
20594
|
+
url: `/${P.value}/postgres-query`,
|
|
20591
20595
|
data: ie.getQueryRequests({
|
|
20592
|
-
widget:
|
|
20593
|
-
dateRange: [
|
|
20596
|
+
widget: K,
|
|
20597
|
+
dateRange: [Q.startDate, Q.endDate],
|
|
20594
20598
|
compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
|
|
20595
20599
|
timeRange: [
|
|
20596
|
-
A0().tz(
|
|
20597
|
-
A0().tz(
|
|
20600
|
+
A0().tz(z).hour(Number((s0 = X.start) == null ? void 0 : s0.hour)).minute(Number((l0 = X.start) == null ? void 0 : l0.minute)).toISOString(),
|
|
20601
|
+
A0().tz(z).hour(Number((c0 = X.end) == null ? void 0 : c0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
|
|
20598
20602
|
],
|
|
20599
|
-
businessIds:
|
|
20600
|
-
restaurantIds:
|
|
20601
|
-
warehouseIds:
|
|
20602
|
-
timezone:
|
|
20603
|
-
}).map((Y,
|
|
20604
|
-
const
|
|
20603
|
+
businessIds: P.value ? [P.value] : [],
|
|
20604
|
+
restaurantIds: J,
|
|
20605
|
+
warehouseIds: H,
|
|
20606
|
+
timezone: z
|
|
20607
|
+
}).map((Y, G) => {
|
|
20608
|
+
const i0 = G === 0 ? 3e3 : 12e3;
|
|
20605
20609
|
return {
|
|
20606
20610
|
...Y,
|
|
20607
|
-
limit:
|
|
20608
|
-
skipStringSpaceGrouping: !!(
|
|
20609
|
-
reportId:
|
|
20611
|
+
limit: J.length > 50 ? A.config.limit || i0 : A.config.limit,
|
|
20612
|
+
skipStringSpaceGrouping: !!(N != null && N.batch),
|
|
20613
|
+
reportId: N == null ? void 0 : N.id
|
|
20610
20614
|
};
|
|
20611
20615
|
}),
|
|
20612
20616
|
requestConfig: {
|
|
20613
20617
|
timeout: 1e3 * 60 * 5,
|
|
20614
20618
|
signal: I
|
|
20615
20619
|
}
|
|
20616
|
-
},
|
|
20617
|
-
|
|
20618
|
-
const
|
|
20620
|
+
}, Z = [() => E0.fetch(q)];
|
|
20621
|
+
J.length < 50 && Z.push(() => E0.fetch(q)), Z.push(() => (q.url = q.url.replace("postgres-query", "query"), E0.fetch(q)));
|
|
20622
|
+
const u0 = await vt(Z, 2e3);
|
|
20619
20623
|
return (await It(Ct, {
|
|
20620
|
-
responses:
|
|
20624
|
+
responses: u0,
|
|
20621
20625
|
widget: JSON.parse(JSON.stringify(A)),
|
|
20622
20626
|
country: B.value,
|
|
20623
|
-
timezone:
|
|
20627
|
+
timezone: z
|
|
20624
20628
|
})).data;
|
|
20625
20629
|
};
|
|
20626
20630
|
function xe(A) {
|
|
@@ -20674,78 +20678,78 @@ const sr = async ({
|
|
|
20674
20678
|
reportType: A,
|
|
20675
20679
|
index: I,
|
|
20676
20680
|
orientationTypes: O,
|
|
20677
|
-
isCombinedLocationLayout:
|
|
20681
|
+
isCombinedLocationLayout: P,
|
|
20678
20682
|
locationIds: B,
|
|
20679
|
-
timeRange:
|
|
20680
|
-
dateRange:
|
|
20683
|
+
timeRange: N,
|
|
20684
|
+
dateRange: J
|
|
20681
20685
|
}) => {
|
|
20682
|
-
const { businessId:
|
|
20683
|
-
let
|
|
20684
|
-
|
|
20685
|
-
const
|
|
20686
|
+
const { businessId: H } = d0($0()), { restaurants: k, warehouses: Q, globalFilters: V, timezone: X } = G0(), { currentReport: r0, overviewReport: z } = ue(), { selectedNavigationTab: K } = be(), { sizes: q } = Fe(), { getTileSorts: Z } = Me();
|
|
20687
|
+
let u0 = r0 == null ? void 0 : r0.id, s0 = (r0 == null ? void 0 : r0.tiles) ?? [];
|
|
20688
|
+
K === "overview" && z && (u0 = z == null ? void 0 : z.id, s0 = (z == null ? void 0 : z.tiles) ?? []);
|
|
20689
|
+
const l0 = s0.filter((a0, W) => typeof I == "number" ? W === I : !0).map((a0) => se(a0.widget, V, a0.id)), c0 = {
|
|
20686
20690
|
fetchType: m0.Post,
|
|
20687
|
-
url: `/${
|
|
20691
|
+
url: `/${H.value}/file?lang=${H0()}`,
|
|
20688
20692
|
data: {
|
|
20689
20693
|
configs: [
|
|
20690
|
-
...
|
|
20691
|
-
var
|
|
20692
|
-
const
|
|
20694
|
+
...l0.map((a0, W) => {
|
|
20695
|
+
var D0, e0, t, u;
|
|
20696
|
+
const n0 = q[I ?? W];
|
|
20693
20697
|
return {
|
|
20694
20698
|
requests: ie.getQueryRequests({
|
|
20695
|
-
widget:
|
|
20696
|
-
dateRange: [
|
|
20699
|
+
widget: a0,
|
|
20700
|
+
dateRange: [J.startDate, J.endDate],
|
|
20697
20701
|
timeRange: [
|
|
20698
|
-
A0().tz(X).set("hour", Number((
|
|
20699
|
-
A0().tz(X).set("hour", Number((t =
|
|
20702
|
+
A0().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(),
|
|
20703
|
+
A0().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()
|
|
20700
20704
|
],
|
|
20701
|
-
businessIds:
|
|
20705
|
+
businessIds: H ? [H.value] : [],
|
|
20702
20706
|
restaurantIds: B.filter(
|
|
20703
|
-
(_) =>
|
|
20707
|
+
(_) => k.find(($) => $.id === _)
|
|
20704
20708
|
),
|
|
20705
20709
|
warehouseIds: B.filter(
|
|
20706
|
-
(_) =>
|
|
20710
|
+
(_) => Q.find(($) => $.id === _)
|
|
20707
20711
|
),
|
|
20708
20712
|
timezone: X
|
|
20709
20713
|
}),
|
|
20710
|
-
index: I ||
|
|
20714
|
+
index: I || W,
|
|
20711
20715
|
drillDimension: null,
|
|
20712
|
-
chartWidth: (
|
|
20713
|
-
chartHeight: (
|
|
20714
|
-
...xe(
|
|
20715
|
-
...Le(
|
|
20716
|
-
globalSorts:
|
|
20716
|
+
chartWidth: (n0 == null ? void 0 : n0.width) ?? a0.config.chartWidth,
|
|
20717
|
+
chartHeight: (n0 == null ? void 0 : n0.height) ?? a0.config.chartHeight,
|
|
20718
|
+
...xe(a0),
|
|
20719
|
+
...Le(a0),
|
|
20720
|
+
globalSorts: Z(I ?? W)
|
|
20717
20721
|
};
|
|
20718
20722
|
})
|
|
20719
20723
|
],
|
|
20720
|
-
reportId:
|
|
20724
|
+
reportId: u0,
|
|
20721
20725
|
type: A,
|
|
20722
20726
|
orientationTypes: O,
|
|
20723
|
-
isCombinedLocationLayout:
|
|
20727
|
+
isCombinedLocationLayout: P
|
|
20724
20728
|
},
|
|
20725
20729
|
requestConfig: {
|
|
20726
20730
|
responseType: "arraybuffer",
|
|
20727
20731
|
timeout: 1e3 * 60 * 60 * 24
|
|
20728
20732
|
}
|
|
20729
|
-
}, { headers: p0, data: Y } = await re.rawFetch(
|
|
20730
|
-
|
|
20733
|
+
}, { headers: p0, data: Y } = await re.rawFetch(c0), G = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), i0 = window.URL.createObjectURL(new Blob([new Uint8Array(Y).buffer])), t0 = document.createElement("a");
|
|
20734
|
+
t0.href = i0, t0.setAttribute("download", decodeURIComponent(G)), document.body.appendChild(t0), t0.click(), t0.remove();
|
|
20731
20735
|
}, or = async ({
|
|
20732
20736
|
emails: A,
|
|
20733
20737
|
types: I,
|
|
20734
20738
|
dateRange: O,
|
|
20735
|
-
timeRange:
|
|
20739
|
+
timeRange: P,
|
|
20736
20740
|
locationIds: B,
|
|
20737
|
-
orientationTypes:
|
|
20738
|
-
isCombinedLocationLayout:
|
|
20741
|
+
orientationTypes: N,
|
|
20742
|
+
isCombinedLocationLayout: J
|
|
20739
20743
|
}) => {
|
|
20740
|
-
const { businessId:
|
|
20744
|
+
const { businessId: H } = d0($0()), { currentReport: k, overviewReport: Q } = ue(), { selectedNavigationTab: V } = be(), { restaurants: X, warehouses: r0, globalFilters: z, timezone: K } = G0(), { sizes: q } = Fe(), { getTileSorts: Z } = Me();
|
|
20741
20745
|
if (A.length === 0) {
|
|
20742
20746
|
console.error("No email addresses provided.");
|
|
20743
20747
|
return;
|
|
20744
20748
|
}
|
|
20745
|
-
let
|
|
20746
|
-
V === "overview" &&
|
|
20747
|
-
const
|
|
20748
|
-
businessId:
|
|
20749
|
+
let u0 = (k == null ? void 0 : k.id) || "", s0 = (k == null ? void 0 : k.name) || "", l0 = (k == null ? void 0 : k.tiles) ?? [];
|
|
20750
|
+
V === "overview" && Q && (u0 = Q == null ? void 0 : Q.id, s0 = Q.name, l0 = (Q == null ? void 0 : Q.tiles) ?? []);
|
|
20751
|
+
const c0 = l0.map((Y) => se(Y.widget, z, Y.id)), p0 = {
|
|
20752
|
+
businessId: H.value,
|
|
20749
20753
|
status: Ie.generating,
|
|
20750
20754
|
dateRange: {
|
|
20751
20755
|
start: O.startDate,
|
|
@@ -20753,43 +20757,43 @@ const sr = async ({
|
|
|
20753
20757
|
},
|
|
20754
20758
|
reportName: s0,
|
|
20755
20759
|
emails: A,
|
|
20756
|
-
configs:
|
|
20757
|
-
var
|
|
20758
|
-
const
|
|
20760
|
+
configs: c0.map((Y, G) => {
|
|
20761
|
+
var t0, a0, W, n0;
|
|
20762
|
+
const i0 = q[G];
|
|
20759
20763
|
return {
|
|
20760
20764
|
requests: ie.getQueryRequests({
|
|
20761
20765
|
widget: Y,
|
|
20762
20766
|
dateRange: [O.startDate, O.endDate],
|
|
20763
20767
|
timeRange: [
|
|
20764
|
-
A0().tz(
|
|
20765
|
-
A0().tz(
|
|
20768
|
+
A0().tz(K).hour(Number((t0 = P.start) == null ? void 0 : t0.hour)).minute(Number((a0 = P.start) == null ? void 0 : a0.minute)).toISOString(),
|
|
20769
|
+
A0().tz(K).hour(Number((W = P.end) == null ? void 0 : W.hour)).minute(Number((n0 = P.end) == null ? void 0 : n0.minute)).endOf("minutes").toISOString()
|
|
20766
20770
|
],
|
|
20767
|
-
businessIds:
|
|
20771
|
+
businessIds: H ? [H.value] : [],
|
|
20768
20772
|
restaurantIds: B.filter(
|
|
20769
|
-
(
|
|
20773
|
+
(D0) => X.find((e0) => e0.id === D0)
|
|
20770
20774
|
),
|
|
20771
20775
|
warehouseIds: B.filter(
|
|
20772
|
-
(
|
|
20776
|
+
(D0) => r0.find((e0) => e0.id === D0)
|
|
20773
20777
|
),
|
|
20774
|
-
timezone:
|
|
20778
|
+
timezone: K
|
|
20775
20779
|
}),
|
|
20776
|
-
index:
|
|
20780
|
+
index: G,
|
|
20777
20781
|
drillDimension: null,
|
|
20778
|
-
chartWidth: (
|
|
20779
|
-
chartHeight: (
|
|
20782
|
+
chartWidth: (i0 == null ? void 0 : i0.width) ?? Y.config.chartWidth,
|
|
20783
|
+
chartHeight: (i0 == null ? void 0 : i0.height) ?? Y.config.chartHeight,
|
|
20780
20784
|
...xe(Y),
|
|
20781
20785
|
...Le(Y),
|
|
20782
|
-
globalSorts:
|
|
20786
|
+
globalSorts: Z(G)
|
|
20783
20787
|
};
|
|
20784
20788
|
}),
|
|
20785
|
-
reportId:
|
|
20789
|
+
reportId: u0,
|
|
20786
20790
|
type: I,
|
|
20787
|
-
orientationTypes:
|
|
20788
|
-
isCombinedLocationLayout:
|
|
20791
|
+
orientationTypes: N,
|
|
20792
|
+
isCombinedLocationLayout: J
|
|
20789
20793
|
};
|
|
20790
20794
|
await re.fetch({
|
|
20791
20795
|
fetchType: m0.Post,
|
|
20792
|
-
url: `/${
|
|
20796
|
+
url: `/${H.value}/reports/email?lang=${H0()}`,
|
|
20793
20797
|
data: p0,
|
|
20794
20798
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20795
20799
|
});
|
|
@@ -20835,14 +20839,14 @@ function dr(A, I, O) {
|
|
|
20835
20839
|
if (fe.randomUUID && !I && !A)
|
|
20836
20840
|
return fe.randomUUID();
|
|
20837
20841
|
A = A || {};
|
|
20838
|
-
const
|
|
20839
|
-
if (
|
|
20842
|
+
const P = A.random || (A.rng || Pt)();
|
|
20843
|
+
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, I) {
|
|
20840
20844
|
O = O || 0;
|
|
20841
20845
|
for (let B = 0; B < 16; ++B)
|
|
20842
|
-
I[O + B] =
|
|
20846
|
+
I[O + B] = P[B];
|
|
20843
20847
|
return I;
|
|
20844
20848
|
}
|
|
20845
|
-
return Jt(
|
|
20849
|
+
return Jt(P);
|
|
20846
20850
|
}
|
|
20847
20851
|
const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).locale(I).format("h:mm A"), Nt = (A, I) => {
|
|
20848
20852
|
const O = A0().set("hour", A.hour).set("minute", A.minute);
|
|
@@ -20888,94 +20892,94 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20888
20892
|
}),
|
|
20889
20893
|
emits: /* @__PURE__ */ Y0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
20890
20894
|
setup(A, { emit: I }) {
|
|
20891
|
-
const { t: O, locale:
|
|
20892
|
-
function
|
|
20893
|
-
|
|
20895
|
+
const { t: O, locale: P } = ve(), B = te(A, "timeRange"), N = I, J = te(A, "selectTimeDefault");
|
|
20896
|
+
function H(K) {
|
|
20897
|
+
K && (B.value = K, N("update", B.value)), X.value = !1;
|
|
20894
20898
|
}
|
|
20895
|
-
function
|
|
20896
|
-
const
|
|
20899
|
+
function k(K) {
|
|
20900
|
+
const q = K.split(":"), Z = A0().set("hour", Number(q[0])).set("minute", Number(q[1]));
|
|
20897
20901
|
return {
|
|
20898
|
-
hours: Number(
|
|
20899
|
-
minutes: Number(
|
|
20900
|
-
period:
|
|
20902
|
+
hours: Number(Z.format("h")),
|
|
20903
|
+
minutes: Number(Z.format("m")),
|
|
20904
|
+
period: Z.format("A")
|
|
20901
20905
|
};
|
|
20902
20906
|
}
|
|
20903
|
-
const
|
|
20904
|
-
function V(
|
|
20905
|
-
|
|
20907
|
+
const Q = _0(JSON.parse(JSON.stringify(B.value)));
|
|
20908
|
+
function V(K, q) {
|
|
20909
|
+
Q.value.start = JSON.parse(JSON.stringify(K)), Q.value.end = JSON.parse(JSON.stringify(q));
|
|
20906
20910
|
}
|
|
20907
20911
|
z0(
|
|
20908
20912
|
() => [B.value, A.defaultDateRange],
|
|
20909
20913
|
() => {
|
|
20910
20914
|
if (B.value) {
|
|
20911
|
-
const
|
|
20912
|
-
(
|
|
20913
|
-
var
|
|
20914
|
-
return
|
|
20915
|
+
const K = A.defaultDateRange.findIndex(
|
|
20916
|
+
(q) => {
|
|
20917
|
+
var Z, u0, s0, l0;
|
|
20918
|
+
return q.startTime.hour === ((Z = B.value.start) == null ? void 0 : Z.hour) && q.startTime.minute === ((u0 = B.value.start) == null ? void 0 : u0.minute) && q.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && q.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
|
|
20915
20919
|
}
|
|
20916
20920
|
) + 1;
|
|
20917
|
-
|
|
20921
|
+
K !== 0 ? J.value = K : J.value = A.defaultDateRange.length + 1;
|
|
20918
20922
|
}
|
|
20919
20923
|
},
|
|
20920
20924
|
{ deep: !0, immediate: !0 }
|
|
20921
20925
|
);
|
|
20922
|
-
const X =
|
|
20923
|
-
function
|
|
20924
|
-
|
|
20926
|
+
const X = _0(!1);
|
|
20927
|
+
function r0(K) {
|
|
20928
|
+
N("chip-closed", K);
|
|
20925
20929
|
}
|
|
20926
|
-
const
|
|
20930
|
+
const z = R0(() => A.label ? A.label : Qe({
|
|
20927
20931
|
startTime: B.value.start,
|
|
20928
20932
|
endTime: B.value.end,
|
|
20929
|
-
locale:
|
|
20933
|
+
locale: P.value
|
|
20930
20934
|
}));
|
|
20931
|
-
return (
|
|
20932
|
-
const
|
|
20935
|
+
return (K, q) => {
|
|
20936
|
+
const Z = v0("FmChip"), u0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), l0 = v0("FmRadioGroup"), c0 = v0("FmTimeInput"), p0 = v0("FmButton"), Y = v0("FmPopover");
|
|
20933
20937
|
return U0(), W0("div", null, [
|
|
20934
20938
|
b0(Y, {
|
|
20935
20939
|
"show-popover": X.value,
|
|
20936
20940
|
placement: "bottom",
|
|
20937
|
-
onPopoverChanged:
|
|
20941
|
+
onPopoverChanged: q[6] || (q[6] = (G) => X.value = G)
|
|
20938
20942
|
}, {
|
|
20939
20943
|
"popover-button": J0(() => [
|
|
20940
20944
|
b0(Xe, {
|
|
20941
20945
|
"left-icon": A.label ? "filter_alt" : "schedule",
|
|
20942
|
-
label:
|
|
20946
|
+
label: z.value,
|
|
20943
20947
|
removable: A.removable,
|
|
20944
|
-
onChipClosed:
|
|
20948
|
+
onChipClosed: q[0] || (q[0] = (G) => r0(!0))
|
|
20945
20949
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
20946
20950
|
]),
|
|
20947
20951
|
default: J0(() => {
|
|
20948
|
-
var
|
|
20952
|
+
var G, i0, t0, a0;
|
|
20949
20953
|
return [
|
|
20950
20954
|
w0("div", kt, [
|
|
20951
|
-
b0(
|
|
20952
|
-
modelValue:
|
|
20953
|
-
"onUpdate:modelValue":
|
|
20955
|
+
b0(l0, {
|
|
20956
|
+
modelValue: J.value,
|
|
20957
|
+
"onUpdate:modelValue": q[1] || (q[1] = (W) => J.value = W)
|
|
20954
20958
|
}, {
|
|
20955
20959
|
default: J0(() => [
|
|
20956
|
-
(U0(!0), W0(oe, null, Je(A.defaultDateRange, (
|
|
20957
|
-
key: `range_${
|
|
20958
|
-
value:
|
|
20959
|
-
label:
|
|
20960
|
-
onClick: (
|
|
20960
|
+
(U0(!0), W0(oe, null, Je(A.defaultDateRange, (W, n0) => (U0(), me(u0, {
|
|
20961
|
+
key: `range_${n0}`,
|
|
20962
|
+
value: n0 + 1,
|
|
20963
|
+
label: W.name,
|
|
20964
|
+
onClick: (D0) => V(W.startTime, W.endTime)
|
|
20961
20965
|
}, {
|
|
20962
20966
|
label: J0(() => [
|
|
20963
20967
|
w0("p", Ut, [
|
|
20964
|
-
ge(P0(
|
|
20965
|
-
He(b0(
|
|
20968
|
+
ge(P0(W.name) + " ", 1),
|
|
20969
|
+
He(b0(Z, {
|
|
20966
20970
|
label: S0(O)("report.common.default"),
|
|
20967
20971
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
20968
20972
|
compact: ""
|
|
20969
20973
|
}, null, 8, ["label"]), [
|
|
20970
|
-
[Ne,
|
|
20974
|
+
[Ne, W.isDefault]
|
|
20971
20975
|
])
|
|
20972
20976
|
]),
|
|
20973
|
-
w0("p", qt, P0(S0(pe)(
|
|
20977
|
+
w0("p", qt, P0(S0(pe)(W.startTime, S0(H0)())) + " - " + P0(S0(pe)(W.endTime, S0(H0)())) + " " + P0(S0(Nt)(W.startTime, W.endTime)), 1)
|
|
20974
20978
|
]),
|
|
20975
20979
|
_: 2
|
|
20976
20980
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
20977
20981
|
b0(s0),
|
|
20978
|
-
b0(
|
|
20982
|
+
b0(u0, {
|
|
20979
20983
|
key: "range_custom",
|
|
20980
20984
|
label: S0(O)("report.common.custom"),
|
|
20981
20985
|
value: A.defaultDateRange.length + 1
|
|
@@ -20983,46 +20987,46 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20983
20987
|
]),
|
|
20984
20988
|
_: 1
|
|
20985
20989
|
}, 8, ["modelValue"]),
|
|
20986
|
-
|
|
20990
|
+
J.value === A.defaultDateRange.length + 1 ? (U0(), W0(oe, { key: 0 }, [
|
|
20987
20991
|
w0("p", Qt, P0(S0(O)("report.date.startingTime")), 1),
|
|
20988
20992
|
w0("div", Xt, [
|
|
20989
|
-
b0(
|
|
20990
|
-
"model-value":
|
|
20991
|
-
"onUpdate:modelValue":
|
|
20992
|
-
if (
|
|
20993
|
-
const
|
|
20993
|
+
b0(c0, {
|
|
20994
|
+
"model-value": k(`${(G = Q.value.start) == null ? void 0 : G.hour}:${(i0 = Q.value.start) == null ? void 0 : i0.minute}`),
|
|
20995
|
+
"onUpdate:modelValue": q[2] || (q[2] = (W) => {
|
|
20996
|
+
if (Q.value.start) {
|
|
20997
|
+
const n0 = S0(A0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
20994
20998
|
S0(H0)()
|
|
20995
20999
|
);
|
|
20996
|
-
|
|
21000
|
+
Q.value.start.hour = n0.get("hour"), Q.value.start.minute = n0.get("minute");
|
|
20997
21001
|
}
|
|
20998
21002
|
})
|
|
20999
21003
|
}, null, 8, ["model-value"])
|
|
21000
21004
|
]),
|
|
21001
21005
|
w0("p", Vt, P0(S0(O)("report.date.endingTime")), 1),
|
|
21002
21006
|
w0("div", Yt, [
|
|
21003
|
-
b0(
|
|
21004
|
-
"model-value":
|
|
21005
|
-
"onUpdate:modelValue":
|
|
21006
|
-
if (
|
|
21007
|
-
const
|
|
21007
|
+
b0(c0, {
|
|
21008
|
+
"model-value": k(`${(t0 = Q.value.end) == null ? void 0 : t0.hour}:${(a0 = Q.value.end) == null ? void 0 : a0.minute}`),
|
|
21009
|
+
"onUpdate:modelValue": q[3] || (q[3] = (W) => {
|
|
21010
|
+
if (Q.value.end) {
|
|
21011
|
+
const n0 = S0(A0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
21008
21012
|
S0(H0)()
|
|
21009
21013
|
);
|
|
21010
|
-
|
|
21014
|
+
Q.value.end.hour = n0.get("hour"), Q.value.end.minute = n0.get("minute");
|
|
21011
21015
|
}
|
|
21012
21016
|
})
|
|
21013
21017
|
}, null, 8, ["model-value"])
|
|
21014
21018
|
])
|
|
21015
21019
|
], 64)) : Pe("", !0),
|
|
21016
21020
|
w0("div", Gt, [
|
|
21017
|
-
|
|
21021
|
+
q[7] || (q[7] = w0("div", { class: "grow" }, null, -1)),
|
|
21018
21022
|
b0(p0, {
|
|
21019
21023
|
label: S0(O)("report.common.cancel"),
|
|
21020
21024
|
variant: "tertiary",
|
|
21021
|
-
onClick:
|
|
21025
|
+
onClick: q[4] || (q[4] = (W) => X.value = !1)
|
|
21022
21026
|
}, null, 8, ["label"]),
|
|
21023
21027
|
b0(p0, {
|
|
21024
21028
|
label: S0(O)("report.common.apply"),
|
|
21025
|
-
onClick:
|
|
21029
|
+
onClick: q[5] || (q[5] = () => H(JSON.parse(JSON.stringify(Q.value))))
|
|
21026
21030
|
}, null, 8, ["label"])
|
|
21027
21031
|
])
|
|
21028
21032
|
])
|
|
@@ -21054,33 +21058,33 @@ const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
21054
21058
|
}),
|
|
21055
21059
|
emits: /* @__PURE__ */ Y0(["confirm"], ["update:modelValue"]),
|
|
21056
21060
|
setup(A, { emit: I }) {
|
|
21057
|
-
const O = te(A, "modelValue"),
|
|
21061
|
+
const O = te(A, "modelValue"), P = A, B = I;
|
|
21058
21062
|
return z0(O, () => {
|
|
21059
21063
|
O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
21060
|
-
}), (
|
|
21061
|
-
const
|
|
21062
|
-
return U0(), me(
|
|
21064
|
+
}), (N, J) => {
|
|
21065
|
+
const H = v0("FmButton"), k = v0("FmDialog");
|
|
21066
|
+
return U0(), me(k, {
|
|
21063
21067
|
modelValue: O.value,
|
|
21064
|
-
"onUpdate:modelValue":
|
|
21068
|
+
"onUpdate:modelValue": J[2] || (J[2] = (Q) => O.value = Q),
|
|
21065
21069
|
overlay: ""
|
|
21066
21070
|
}, {
|
|
21067
21071
|
"dialog-header": J0(() => [
|
|
21068
|
-
ge(P0(
|
|
21072
|
+
ge(P0(P.title), 1)
|
|
21069
21073
|
]),
|
|
21070
21074
|
default: J0(() => [
|
|
21071
|
-
ke(
|
|
21075
|
+
ke(N.$slots, "content")
|
|
21072
21076
|
]),
|
|
21073
21077
|
"dialog-footer": J0(() => [
|
|
21074
|
-
|
|
21075
|
-
b0(
|
|
21076
|
-
label:
|
|
21078
|
+
J[3] || (J[3] = w0("div", { class: "grow" }, null, -1)),
|
|
21079
|
+
b0(H, {
|
|
21080
|
+
label: P.secondaryButtonLabel,
|
|
21077
21081
|
variant: "tertiary",
|
|
21078
|
-
onClick:
|
|
21082
|
+
onClick: J[0] || (J[0] = (Q) => O.value = !1)
|
|
21079
21083
|
}, null, 8, ["label"]),
|
|
21080
|
-
b0(
|
|
21081
|
-
label:
|
|
21084
|
+
b0(H, {
|
|
21085
|
+
label: P.primaryButtonLabel,
|
|
21082
21086
|
variant: "primary",
|
|
21083
|
-
onClick:
|
|
21087
|
+
onClick: J[1] || (J[1] = (Q) => B("confirm"))
|
|
21084
21088
|
}, null, 8, ["label"])
|
|
21085
21089
|
]),
|
|
21086
21090
|
_: 3
|