@feedmepos/mf-report 5.19.20 → 5.19.21-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-CpPkDCME.js → App-C4x7ZEye.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BLVm6EP9.js → BaseDialog.vue_vue_type_script_setup_true_lang-CosulEnD.js} +862 -662
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js +282 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DTHkWGvx.js → Default.vue_vue_type_script_setup_true_lang-g1a2ZeGy.js} +2 -2
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-Cgc4ZMrl.js +2455 -0
- package/dist/{InsightView-wYbhKrWa.js → InsightView-jAOVvZfx.js} +5 -5
- package/dist/{Integration-GkPCivXG.js → Integration-BovNO2yX.js} +2 -2
- package/dist/{Integrations-BGNXoeWI.js → Integrations-DIXSWGS_.js} +3 -3
- package/dist/{Layout-B7pJLV4_.js → Layout-CptBKFVs.js} +1 -1
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BGEMZOKu.js +107 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cl6q8Efn.js → NavigationTab.vue_vue_type_script_setup_true_lang-B3sRs2Tc.js} +7331 -7518
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js → NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js} +1 -1
- package/dist/{OverviewView-DzumtIfB.js → OverviewView-DVL5KgO_.js} +5 -5
- package/dist/{Report-B_SX8ejx.js → Report-C6U6OiZy.js} +4 -4
- package/dist/ReportEditor-DD8jAl9a.js +1070 -0
- package/dist/{ReportView-DPMurcsC.js → ReportView-DAL1aJFD.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js → SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js} +1 -1
- package/dist/{Setting-BsikuNba.js → Setting-DpyuOpXG.js} +4 -4
- package/dist/TileEditor-B4NsHTN2.js +2744 -0
- package/dist/TransitionFade-z0DXUsgP.js +2366 -0
- package/dist/app.js +41 -15
- package/dist/{vue-i18n-D33f1SSo.js → vue-i18n-BJW_sJot.js} +405 -400
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js +0 -185
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DVY4vxAN.js +0 -1669
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-C7pQMilo.js +0 -352
- package/dist/ReportEditor-D5OHT5As.js +0 -1013
- package/dist/TileEditor-Bzk4U52d.js +0 -2735
- package/dist/TransitionFade-Blz6m84x.js +0 -2499
- package/dist/helper-B2iB0Dbh.js +0 -75
|
@@ -1,60 +1,61 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { detectLocale as
|
|
7
|
-
|
|
1
|
+
import { a as m0, F as y0, w as g0, b as k0, c as Ee, v as Te, e as Ce, d as h0, r as K0, m as be, u as Fe } from "./vue-i18n-BJW_sJot.js";
|
|
2
|
+
import { storeToRefs as p0, defineStore as P0 } from "pinia";
|
|
3
|
+
import { ref as o0, computed as C0, watch as U0, h as Ie, defineComponent as se, mergeModels as N0, useModel as W0, resolveComponent as E0, createElementBlock as V0, openBlock as B0, createVNode as S0, withCtx as b0, createElementVNode as A0, createCommentVNode as Me, Fragment as re, renderList as xe, createBlock as le, createTextVNode as _e, withDirectives as Re, toDisplayString as T0, unref as $0, vShow as Le, renderSlot as Oe } from "vue";
|
|
4
|
+
import { useSnackbar as De, components as we } from "@feedmepos/ui-library";
|
|
5
|
+
import { useRouter as ve } from "vue-router";
|
|
6
|
+
import { detectLocale as F0 } from "@feedmepos/mf-common";
|
|
7
|
+
import { c as Be, a as Pe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
|
|
8
|
+
function de(T) {
|
|
8
9
|
throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
9
10
|
}
|
|
10
|
-
var
|
|
11
|
+
var ce = {};
|
|
11
12
|
(function(T) {
|
|
12
|
-
var R = typeof globalThis < "u" ? globalThis : window,
|
|
13
|
-
|
|
14
|
-
setImmediate(
|
|
15
|
-
} : function(
|
|
16
|
-
setTimeout(
|
|
17
|
-
},
|
|
13
|
+
var R = typeof globalThis < "u" ? globalThis : window, O = Object.create(R);
|
|
14
|
+
O.scheduleImmediate = typeof setImmediate < "u" ? function(P) {
|
|
15
|
+
setImmediate(P);
|
|
16
|
+
} : function(P) {
|
|
17
|
+
setTimeout(P, 0);
|
|
18
|
+
}, O.exports = T, typeof process < "u" && (O.process = process), typeof __dirname < "u" && (O.__dirname = __dirname), typeof __filename < "u" && (O.__filename = __filename), typeof Buffer < "u" && (O.Buffer = Buffer);
|
|
18
19
|
var H = !R.window;
|
|
19
20
|
try {
|
|
20
21
|
typeof WorkerGlobalScope < "u" && R instanceof WorkerGlobalScope && (H = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (H = !0);
|
|
21
22
|
} catch {
|
|
22
23
|
}
|
|
23
24
|
if (H) {
|
|
24
|
-
var
|
|
25
|
-
Object.defineProperty(
|
|
25
|
+
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : de)("url");
|
|
26
|
+
Object.defineProperty(O, "location", {
|
|
26
27
|
value: {
|
|
27
28
|
get href() {
|
|
28
|
-
return
|
|
29
|
-
var
|
|
30
|
-
return process.platform != "win32" ?
|
|
29
|
+
return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
30
|
+
var P = process.cwd();
|
|
31
|
+
return process.platform != "win32" ? P : "/" + P.replace(/\\/g, "/");
|
|
31
32
|
}() + "/";
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}), function() {
|
|
35
|
-
function
|
|
36
|
+
function P() {
|
|
36
37
|
try {
|
|
37
38
|
throw new Error();
|
|
38
39
|
} catch (z) {
|
|
39
|
-
var k = z.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"),
|
|
40
|
+
var k = z.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), U = null;
|
|
40
41
|
do {
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
} while (
|
|
44
|
-
return
|
|
42
|
+
var W = q.exec(k);
|
|
43
|
+
W != null && (U = W);
|
|
44
|
+
} while (W != null);
|
|
45
|
+
return U[1];
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
var N = null;
|
|
48
|
-
Object.defineProperty(
|
|
49
|
+
Object.defineProperty(O, "document", {
|
|
49
50
|
value: {
|
|
50
51
|
get currentScript() {
|
|
51
|
-
return N == null && (N = { src:
|
|
52
|
+
return N == null && (N = { src: P() }), N;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
|
-
}(),
|
|
56
|
+
}(), O.dartDeferredLibraryLoader = function(P, N, k) {
|
|
56
57
|
try {
|
|
57
|
-
load(
|
|
58
|
+
load(P), N();
|
|
58
59
|
} catch (q) {
|
|
59
60
|
k(q);
|
|
60
61
|
}
|
|
@@ -76,7 +77,7 @@ var re = {};
|
|
|
76
77
|
function q(r, e) {
|
|
77
78
|
Object.assign(e, r);
|
|
78
79
|
}
|
|
79
|
-
var
|
|
80
|
+
var U = function() {
|
|
80
81
|
var r = function() {
|
|
81
82
|
};
|
|
82
83
|
r.prototype = { p: {} };
|
|
@@ -95,9 +96,9 @@ var re = {};
|
|
|
95
96
|
}
|
|
96
97
|
return !1;
|
|
97
98
|
}();
|
|
98
|
-
function
|
|
99
|
+
function W(r, e) {
|
|
99
100
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
100
|
-
if (
|
|
101
|
+
if (U) {
|
|
101
102
|
r.prototype.__proto__ = e.prototype;
|
|
102
103
|
return;
|
|
103
104
|
}
|
|
@@ -107,15 +108,15 @@ var re = {};
|
|
|
107
108
|
}
|
|
108
109
|
function z(r, e) {
|
|
109
110
|
for (var n = 0; n < e.length; n++)
|
|
110
|
-
|
|
111
|
+
W(e[n], r);
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function i0(r, e) {
|
|
113
114
|
q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function j(r, e) {
|
|
116
117
|
k(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function Z(r, e, n, i) {
|
|
119
120
|
var u = r;
|
|
120
121
|
r[e] = u, r[n] = function() {
|
|
121
122
|
r[n] = function() {
|
|
@@ -132,7 +133,7 @@ var re = {};
|
|
|
132
133
|
return o;
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function X(r, e, n, i) {
|
|
136
137
|
var u = r;
|
|
137
138
|
r[e] = u, r[n] = function() {
|
|
138
139
|
return r[e] === u && (r[e] = i()), r[n] = function() {
|
|
@@ -140,7 +141,7 @@ var re = {};
|
|
|
140
141
|
}, r[e];
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function u0(r, e, n, i) {
|
|
144
145
|
var u = r;
|
|
145
146
|
r[e] = u, r[n] = function() {
|
|
146
147
|
if (r[e] === u) {
|
|
@@ -153,17 +154,17 @@ var re = {};
|
|
|
153
154
|
}, s;
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function a0(r) {
|
|
157
158
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
158
159
|
}
|
|
159
160
|
function s0(r) {
|
|
160
161
|
return r;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
+
function l0(r) {
|
|
163
164
|
for (var e = 0; e < r.length; ++e)
|
|
164
165
|
r[e];
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function d0(r, e) {
|
|
167
168
|
var n = null;
|
|
168
169
|
return r ? function(i) {
|
|
169
170
|
return n === null && (n = t.closureFromTearOff(e)), new n(i, this);
|
|
@@ -171,26 +172,26 @@ var re = {};
|
|
|
171
172
|
return n === null && (n = t.closureFromTearOff(e)), new n(this, null);
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
|
-
function
|
|
175
|
+
function c0(r) {
|
|
175
176
|
var e = null;
|
|
176
177
|
return function() {
|
|
177
178
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
182
|
-
return typeof l == "number" && (l +=
|
|
181
|
+
var Q = 0;
|
|
182
|
+
function V(r, e, n, i, u, o, s, l, D, d) {
|
|
183
|
+
return typeof l == "number" && (l += Q), { co: r, iS: e, iI: n, rC: i, dV: u, cs: o, fs: s, fT: l, aI: D || 0, nDA: d };
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
var D =
|
|
185
|
+
function r0(r, e, n, i, u, o, s, l) {
|
|
186
|
+
var D = V(r, !0, !1, n, i, u, o, s, l, !1), d = c0(D);
|
|
186
187
|
r[e] = d;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function K(r, e, n, i, u, o, s, l, D, d) {
|
|
189
190
|
n = !!n;
|
|
190
|
-
var c =
|
|
191
|
+
var c = V(r, !1, n, i, u, o, s, l, D, !!d), p = d0(n, c);
|
|
191
192
|
r[e] = p;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function e0(r) {
|
|
194
195
|
var e = C.interceptorsByTag;
|
|
195
196
|
if (!e) {
|
|
196
197
|
C.interceptorsByTag = r;
|
|
@@ -198,7 +199,7 @@ var re = {};
|
|
|
198
199
|
}
|
|
199
200
|
N(r, e);
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
+
function G(r) {
|
|
202
203
|
var e = C.leafTags;
|
|
203
204
|
if (!e) {
|
|
204
205
|
C.leafTags = r;
|
|
@@ -206,24 +207,24 @@ var re = {};
|
|
|
206
207
|
}
|
|
207
208
|
N(r, e);
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
+
function n0(r) {
|
|
210
211
|
var e = C.types, n = e.length;
|
|
211
212
|
return e.push.apply(e, r), n;
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function D0(r, e) {
|
|
214
215
|
return N(e, r), r;
|
|
215
216
|
}
|
|
216
|
-
var
|
|
217
|
+
var t0 = function() {
|
|
217
218
|
var r = function(n, i, u, o, s) {
|
|
218
219
|
return function(l, D, d, c) {
|
|
219
|
-
return
|
|
220
|
+
return K(l, D, n, i, u, o, [d], c, s, !1);
|
|
220
221
|
};
|
|
221
222
|
}, e = function(n, i, u, o) {
|
|
222
223
|
return function(s, l, D, d) {
|
|
223
|
-
return
|
|
224
|
+
return r0(s, l, n, i, u, [D], d, o);
|
|
224
225
|
};
|
|
225
226
|
};
|
|
226
|
-
return { inherit:
|
|
227
|
+
return { inherit: W, inheritMany: z, mixin: i0, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: K, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: a0, lazy: X, lazyFinal: u0, lazyOld: Z, updateHolder: D0, convertToFastObject: s0, updateTypes: n0, setOrUpdateInterceptorsByTag: e0, setOrUpdateLeafTags: G };
|
|
227
228
|
}(), t = {
|
|
228
229
|
JS_CONST: function() {
|
|
229
230
|
},
|
|
@@ -260,15 +261,15 @@ var re = {};
|
|
|
260
261
|
}
|
|
261
262
|
},
|
|
262
263
|
Sort__dualPivotQuicksort(r, e, n, i) {
|
|
263
|
-
var u, o, s, l, D, d, c, p, y, g, h = _.JSInt_methods._tdivFast$1(n - e + 1, 6), m = e + h, E = n - h, b = _.JSInt_methods._tdivFast$1(e + n, 2), F = b - h, M = b + h, I = a.getInterceptor$asx(r), x = I.$index(r, m),
|
|
264
|
-
if (i.call$2(x,
|
|
264
|
+
var u, o, s, l, D, d, c, p, y, g, h = _.JSInt_methods._tdivFast$1(n - e + 1, 6), m = e + h, E = n - h, b = _.JSInt_methods._tdivFast$1(e + n, 2), F = b - h, M = b + h, I = a.getInterceptor$asx(r), x = I.$index(r, m), w = I.$index(r, F), L = I.$index(r, b), J = I.$index(r, M), v = I.$index(r, E);
|
|
265
|
+
if (i.call$2(x, w) > 0 && (u = w, w = x, x = u), i.call$2(J, v) > 0 && (u = v, v = J, J = u), i.call$2(x, L) > 0 && (u = L, L = x, x = u), i.call$2(w, L) > 0 && (u = L, L = w, w = u), i.call$2(x, J) > 0 && (u = J, J = x, x = u), i.call$2(L, J) > 0 && (u = J, J = L, L = u), i.call$2(w, v) > 0 && (u = v, v = w, w = u), i.call$2(w, L) > 0 && (u = L, L = w, w = u), i.call$2(J, v) > 0 && (u = v, v = J, J = u), I.$indexSet(r, m, x), I.$indexSet(r, b, L), I.$indexSet(r, E, v), I.$indexSet(r, F, I.$index(r, e)), I.$indexSet(r, M, I.$index(r, n)), o = e + 1, s = n - 1, a.$eq$(i.call$2(w, J), 0)) {
|
|
265
266
|
for (l = o; l <= s; ++l)
|
|
266
|
-
if (D = I.$index(r, l), d = i.call$2(D,
|
|
267
|
+
if (D = I.$index(r, l), d = i.call$2(D, w), d !== 0)
|
|
267
268
|
if (d < 0)
|
|
268
269
|
l !== o && (I.$indexSet(r, l, I.$index(r, o)), I.$indexSet(r, o, D)), ++o;
|
|
269
270
|
else
|
|
270
271
|
for (; ; )
|
|
271
|
-
if (d = i.call$2(I.$index(r, s),
|
|
272
|
+
if (d = i.call$2(I.$index(r, s), w), d > 0) {
|
|
272
273
|
--s;
|
|
273
274
|
continue;
|
|
274
275
|
} else if (c = s - 1, d < 0) {
|
|
@@ -281,7 +282,7 @@ var re = {};
|
|
|
281
282
|
y = !0;
|
|
282
283
|
} else {
|
|
283
284
|
for (l = o; l <= s; ++l)
|
|
284
|
-
if (D = I.$index(r, l), i.call$2(D,
|
|
285
|
+
if (D = I.$index(r, l), i.call$2(D, w) < 0)
|
|
285
286
|
l !== o && (I.$indexSet(r, l, I.$index(r, o)), I.$indexSet(r, o, D)), ++o;
|
|
286
287
|
else if (i.call$2(D, J) > 0)
|
|
287
288
|
for (; ; )
|
|
@@ -290,19 +291,19 @@ var re = {};
|
|
|
290
291
|
break;
|
|
291
292
|
continue;
|
|
292
293
|
} else {
|
|
293
|
-
c = s - 1, i.call$2(I.$index(r, s),
|
|
294
|
+
c = s - 1, i.call$2(I.$index(r, s), w) < 0 ? (I.$indexSet(r, l, I.$index(r, o)), p = o + 1, I.$indexSet(r, o, I.$index(r, s)), I.$indexSet(r, s, D), o = p) : (I.$indexSet(r, l, I.$index(r, s)), I.$indexSet(r, s, D)), s = c;
|
|
294
295
|
break;
|
|
295
296
|
}
|
|
296
297
|
y = !1;
|
|
297
298
|
}
|
|
298
|
-
if (g = o - 1, I.$indexSet(r, e, I.$index(r, g)), I.$indexSet(r, g,
|
|
299
|
+
if (g = o - 1, I.$indexSet(r, e, I.$index(r, g)), I.$indexSet(r, g, w), g = s + 1, I.$indexSet(r, n, I.$index(r, g)), I.$indexSet(r, g, J), t.Sort__doSort(r, e, o - 2, i), t.Sort__doSort(r, s + 2, n, i), !y)
|
|
299
300
|
if (o < m && s > E) {
|
|
300
|
-
for (; a.$eq$(i.call$2(I.$index(r, o),
|
|
301
|
+
for (; a.$eq$(i.call$2(I.$index(r, o), w), 0); )
|
|
301
302
|
++o;
|
|
302
303
|
for (; a.$eq$(i.call$2(I.$index(r, s), J), 0); )
|
|
303
304
|
--s;
|
|
304
305
|
for (l = o; l <= s; ++l)
|
|
305
|
-
if (D = I.$index(r, l), i.call$2(D,
|
|
306
|
+
if (D = I.$index(r, l), i.call$2(D, w) === 0)
|
|
306
307
|
l !== o && (I.$indexSet(r, l, I.$index(r, o)), I.$indexSet(r, o, D)), ++o;
|
|
307
308
|
else if (i.call$2(D, J) === 0)
|
|
308
309
|
for (; ; )
|
|
@@ -311,7 +312,7 @@ var re = {};
|
|
|
311
312
|
break;
|
|
312
313
|
continue;
|
|
313
314
|
} else {
|
|
314
|
-
c = s - 1, i.call$2(I.$index(r, s),
|
|
315
|
+
c = s - 1, i.call$2(I.$index(r, s), w) < 0 ? (I.$indexSet(r, l, I.$index(r, o)), p = o + 1, I.$indexSet(r, o, I.$index(r, s)), I.$indexSet(r, s, D), o = p) : (I.$indexSet(r, l, I.$index(r, s)), I.$indexSet(r, s, D)), s = c;
|
|
315
316
|
break;
|
|
316
317
|
}
|
|
317
318
|
t.Sort__doSort(r, o, s, i);
|
|
@@ -1393,7 +1394,7 @@ var re = {};
|
|
|
1393
1394
|
return o + "})";
|
|
1394
1395
|
},
|
|
1395
1396
|
_functionRtiToString(r, e, n) {
|
|
1396
|
-
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
1397
|
+
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J = ", ";
|
|
1397
1398
|
if (n != null) {
|
|
1398
1399
|
for (i = n.length, e == null ? (e = t._setArrayType([], f.JSArray_String), u = null) : u = e.length, o = e.length, s = i; s > 0; --s)
|
|
1399
1400
|
e.push("T" + (o + s));
|
|
@@ -1402,19 +1403,19 @@ var re = {};
|
|
|
1402
1403
|
d += ">";
|
|
1403
1404
|
} else
|
|
1404
1405
|
d = "", u = null;
|
|
1405
|
-
for (l = r._primary, h = r._rest, m = h._requiredPositional, E = m.length, b = h._optionalPositional, F = b.length, M = h._named, I = M.length, x = t._rtiToString(l, e),
|
|
1406
|
-
|
|
1406
|
+
for (l = r._primary, h = r._rest, m = h._requiredPositional, E = m.length, b = h._optionalPositional, F = b.length, M = h._named, I = M.length, x = t._rtiToString(l, e), w = "", L = "", s = 0; s < E; ++s, L = J)
|
|
1407
|
+
w += L + t._rtiToString(m[s], e);
|
|
1407
1408
|
if (F > 0) {
|
|
1408
|
-
for (
|
|
1409
|
-
|
|
1410
|
-
|
|
1409
|
+
for (w += L + "[", L = "", s = 0; s < F; ++s, L = J)
|
|
1410
|
+
w += L + t._rtiToString(b[s], e);
|
|
1411
|
+
w += "]";
|
|
1411
1412
|
}
|
|
1412
1413
|
if (I > 0) {
|
|
1413
|
-
for (
|
|
1414
|
-
|
|
1415
|
-
|
|
1414
|
+
for (w += L + "{", L = "", s = 0; s < I; s += 3, L = J)
|
|
1415
|
+
w += L, M[s + 1] && (w += "required "), w += t._rtiToString(M[s + 2], e) + " " + M[s];
|
|
1416
|
+
w += "}";
|
|
1416
1417
|
}
|
|
1417
|
-
return u != null && (e.toString, e.length = u), d + "(" +
|
|
1418
|
+
return u != null && (e.toString, e.length = u), d + "(" + w + ") => " + x;
|
|
1418
1419
|
},
|
|
1419
1420
|
_rtiToString(r, e) {
|
|
1420
1421
|
var n, i, u, o, s, l, D = r._kind;
|
|
@@ -1772,7 +1773,7 @@ var re = {};
|
|
|
1772
1773
|
return D === 12 ? e === f.JavaScriptFunction ? !0 : o ? !1 : t._isFunctionSubtype(r, e, n, i, u) : s === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, u) : (o = s === 11, o && i === f.Record ? !0 : o && D === 11 ? t._isRecordSubtype(r, e, n, i, u) : !1);
|
|
1773
1774
|
},
|
|
1774
1775
|
_isFunctionSubtype(r, e, n, i, u) {
|
|
1775
|
-
var o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
1776
|
+
var o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J, v, Y;
|
|
1776
1777
|
if (!t._isSubtype(r, e._primary, n, i._primary, u) || (o = e._rest, s = i._rest, l = o._requiredPositional, D = s._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = o._optionalPositional, g = s._optionalPositional, h = y.length, m = g.length, d + h < c + m))
|
|
1777
1778
|
return !1;
|
|
1778
1779
|
for (E = 0; E < d; ++E)
|
|
@@ -1784,23 +1785,23 @@ var re = {};
|
|
|
1784
1785
|
for (E = 0; E < m; ++E)
|
|
1785
1786
|
if (b = y[p + E], !t._isSubtype(r, g[E], u, b, n))
|
|
1786
1787
|
return !1;
|
|
1787
|
-
for (F = o._named, M = s._named, I = F.length, x = M.length,
|
|
1788
|
+
for (F = o._named, M = s._named, I = F.length, x = M.length, w = 0, L = 0; L < x; L += 3)
|
|
1788
1789
|
for (J = M[L]; ; ) {
|
|
1789
|
-
if (
|
|
1790
|
+
if (w >= I || (v = F[w], w += 3, J < v))
|
|
1790
1791
|
return !1;
|
|
1791
|
-
if (
|
|
1792
|
-
if (
|
|
1792
|
+
if (Y = F[w - 2], v < J) {
|
|
1793
|
+
if (Y)
|
|
1793
1794
|
return !1;
|
|
1794
1795
|
continue;
|
|
1795
1796
|
}
|
|
1796
|
-
if (b = M[L + 1],
|
|
1797
|
+
if (b = M[L + 1], Y && !b || (b = F[w - 1], !t._isSubtype(r, M[L + 2], u, b, n)))
|
|
1797
1798
|
return !1;
|
|
1798
1799
|
break;
|
|
1799
1800
|
}
|
|
1800
|
-
for (;
|
|
1801
|
-
if (F[
|
|
1801
|
+
for (; w < I; ) {
|
|
1802
|
+
if (F[w + 1])
|
|
1802
1803
|
return !1;
|
|
1803
|
-
|
|
1804
|
+
w += 3;
|
|
1804
1805
|
}
|
|
1805
1806
|
return !0;
|
|
1806
1807
|
},
|
|
@@ -4029,7 +4030,7 @@ and target_table.docId in UNNEST(@docIds)
|
|
|
4029
4030
|
return i = new t.Connection("", "", i.$index(r, "sourceDatasetId"), i.$index(r, "targetDatasetId")), e = S.$get$defaultSchemas(), n = new t.SchemaLibrary(e), n.SchemaLibrary$2$connection$schemas(i, e), new t.QueryEngine(new t.QueryEngineContext(i, n));
|
|
4030
4031
|
},
|
|
4031
4032
|
getMergeInfoSql(r) {
|
|
4032
|
-
var e, n, i, u, o, s, l, D, d, c, p = "CAST(JSON_VALUE(", y = ", '$._restaurantId') AS STRING) AS restaurantId,", g = _.C_JsonCodec.decode$2$reviver(
|
|
4033
|
+
var e, n, i, u, o, s, l, D, d, c, p = "CAST(JSON_VALUE(", y = ", '$._restaurantId') AS STRING) AS restaurantId,", g = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), h = a.getInterceptor$asx(g), m = t._getQueryEngine(h.$index(g, "bigQuery"));
|
|
4033
4034
|
return h = h.$index(g, "request"), e = t.Schema_fromJson(h.$index(0, "schema")), n = h.$index(0, "start"), h = h.$index(0, "end"), e.setConnection$1(m.context.connection), i = a.contains$1$asx(e.clusters, "restaurantId"), u = e.source.field, o = u != null, s = e.get$fullRawTableName(), l = e.getTransformedTableQuery$1$getParentDocs(!0), D = o ? `child_table AS (
|
|
4034
4035
|
` + e.getTransformedTableQuery$1$getParentDocs(!1) + `
|
|
4035
4036
|
),
|
|
@@ -4066,36 +4067,36 @@ select
|
|
|
4066
4067
|
`;
|
|
4067
4068
|
},
|
|
4068
4069
|
getClearTableSql(r) {
|
|
4069
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4070
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = a.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4070
4071
|
return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), "DELETE FROM " + n.get$fullMaterializedTableName() + ` where true;
|
|
4071
4072
|
`;
|
|
4072
4073
|
},
|
|
4073
4074
|
getMergeSql(r) {
|
|
4074
|
-
var e, n, i, u, o, s = _.C_JsonCodec.decode$2$reviver(
|
|
4075
|
+
var e, n, i, u, o, s = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), l = a.getInterceptor$asx(s), D = t._getQueryEngine(l.$index(s, "bigQuery"));
|
|
4075
4076
|
return l = l.$index(s, "request"), e = t.Schema_fromJson(l.$index(0, "schema")), n = l.$index(0, "publishStartedAt"), i = l.$index(0, "publishEndedAt"), u = l.$index(0, "docIds"), o = l.$index(0, "restaurantIds"), l = l.$index(0, "updateTimestamps"), e.setConnection$1(D.context.connection), t.Materialize_getMergeSql(e, u, i, n, o, e, l);
|
|
4076
4077
|
},
|
|
4077
4078
|
getSchemas(r) {
|
|
4078
|
-
var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(
|
|
4079
|
-
return
|
|
4079
|
+
var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
|
|
4080
|
+
return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
|
|
4080
4081
|
},
|
|
4081
4082
|
getVisualizationSchemas(r) {
|
|
4082
|
-
var e = t._getQueryEngine(a.$index$asx(_.C_JsonCodec.decode$2$reviver(
|
|
4083
|
-
return
|
|
4083
|
+
var e = t._getQueryEngine(a.$index$asx(_.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
|
|
4084
|
+
return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
|
|
4084
4085
|
},
|
|
4085
4086
|
requestJsonToSql(r) {
|
|
4086
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4087
|
-
return
|
|
4087
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = a.getInterceptor$asx(e);
|
|
4088
|
+
return O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], f.JSArray_QueryRequest)), null));
|
|
4088
4089
|
},
|
|
4089
4090
|
sqlResponsesToQueryResponses(r) {
|
|
4090
|
-
var e, n = _.C_JsonCodec.decode$2$reviver(
|
|
4091
|
-
return i = t.ListExtensions_mapIndexed(a.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), u), f.QueryRequest, f.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"),
|
|
4091
|
+
var e, n = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), i = a.getInterceptor$asx(n), u = t._getQueryEngine(i.$index(n, "bigQuery"));
|
|
4092
|
+
return i = t.ListExtensions_mapIndexed(a.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), u), f.QueryRequest, f.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.sqlResponsesToQueryResponses_closure1(), i), !0, i._eval$1("ListIterable.E")), null));
|
|
4092
4093
|
},
|
|
4093
4094
|
getQueryRequests(r) {
|
|
4094
|
-
var e, n, i, u, o, s, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(
|
|
4095
|
-
return m == null && (m = []), e = a.map$1$ax(m, new t.getQueryRequests_closure0()).toList$0(0), n = a.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = a.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), u = a.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), o = a.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), s = y.$index(p, "timezone"), y = g.config, m = t._arrayInstanceType(h)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(h, new t.getQueryRequests_closure5(), m), !0, m._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, D), i, u, o, !1, s)), e.length !== 0 && y.isComparable === !0 && (m = t.List_List$of(d, !0, f.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(m, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, D), i, u, o, !0, s))), d = m), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"),
|
|
4095
|
+
var e, n, i, u, o, s, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), y = a.getInterceptor$asx(p), g = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), h = a.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), m = y.$index(p, "compareDateRange");
|
|
4096
|
+
return m == null && (m = []), e = a.map$1$ax(m, new t.getQueryRequests_closure0()).toList$0(0), n = a.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = a.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), u = a.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), o = a.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), s = y.$index(p, "timezone"), y = g.config, m = t._arrayInstanceType(h)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(h, new t.getQueryRequests_closure5(), m), !0, m._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, D), i, u, o, !1, s)), e.length !== 0 && y.isComparable === !0 && (m = t.List_List$of(d, !0, f.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(m, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, D), i, u, o, !0, s))), d = m), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), O.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(d, new t.getQueryRequests_closure9(), y), !0, y._eval$1("ListIterable.E")), null));
|
|
4096
4097
|
},
|
|
4097
4098
|
getCreateMaterializedTableSql(r) {
|
|
4098
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4099
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = a.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4099
4100
|
return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
|
|
4100
4101
|
},
|
|
4101
4102
|
getSchemas_closure: function() {
|
|
@@ -4134,7 +4135,7 @@ select
|
|
|
4134
4135
|
Exports: function() {
|
|
4135
4136
|
},
|
|
4136
4137
|
main() {
|
|
4137
|
-
t.initializeTimeZones(), a.set$requestJsonToSql$x(
|
|
4138
|
+
t.initializeTimeZones(), a.set$requestJsonToSql$x(O.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), a.set$getSchemas$x(O.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), a.set$getMergeInfoSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), a.set$getMergeSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), a.set$getClearTableSql$x(O.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), a.set$getCreateMaterializedTableSql$x(O.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), a.set$getVisualizationSchemas$x(O.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), a.set$getQueryRequests$x(O.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), a.set$sqlResponsesToQueryResponses$x(O.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
|
|
4138
4139
|
},
|
|
4139
4140
|
_Exports: function() {
|
|
4140
4141
|
},
|
|
@@ -8354,8 +8355,8 @@ Arguments: [` + D + "]";
|
|
|
8354
8355
|
$signature: 1
|
|
8355
8356
|
}, t.billSchema_closure.prototype = {
|
|
8356
8357
|
call$1(r) {
|
|
8357
|
-
var e = null, n = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", h = "rounding", m = "takeawayPrice", E = "thirdPartyExtraCharge", b = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax",
|
|
8358
|
-
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", n, n, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", u, u, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", A.x28case__, r), t.Field_Field$string(e, !1, "Type", "type", "type", A.x28case_u, r), t.Field_Field$bool(e, !0, "Pickup", o, o, e, r), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, r), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(A.IFNULLi, !0, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(A.IFNULLdiT, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(A.IFNULLg, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(A.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(A.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(A.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(A.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(A.IFNULLta, !1, "Takeaway", m, m, A.COALEStak, r), t.Field_Field$numeric(A.IFNULLth, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(A.IFNULLde_, !1, "Delivery fee", b, b, A.COALESdex2c, r), t.Field_Field$numeric(A.IFNULLn, !1, "Nett", F, F, A.COALESn, r), t.Field_Field$numeric(A.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(A.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(A.IFNULLdeWT, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(A.IFNULLdeWo, !1, "Delivery fee without tax", I, I, A.COALESdex5fo, r), t.Field_Field$numeric(A.IFNULLoT, !1, "Other charge with tax", x, x, A.COALESo_, r), t.Field_Field$numeric(A.IFNULLoo, !1, "Other charge without tax",
|
|
8358
|
+
var e = null, n = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", h = "rounding", m = "takeawayPrice", E = "thirdPartyExtraCharge", b = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax", w = "otherChargeWithoutTax", L = "discountInclusiveTaxTotal";
|
|
8359
|
+
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", n, n, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", u, u, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", A.x28case__, r), t.Field_Field$string(e, !1, "Type", "type", "type", A.x28case_u, r), t.Field_Field$bool(e, !0, "Pickup", o, o, e, r), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, r), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(A.IFNULLi, !0, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(A.IFNULLdiT, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(A.IFNULLg, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(A.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(A.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(A.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(A.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(A.IFNULLta, !1, "Takeaway", m, m, A.COALEStak, r), t.Field_Field$numeric(A.IFNULLth, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(A.IFNULLde_, !1, "Delivery fee", b, b, A.COALESdex2c, r), t.Field_Field$numeric(A.IFNULLn, !1, "Nett", F, F, A.COALESn, r), t.Field_Field$numeric(A.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(A.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(A.IFNULLdeWT, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(A.IFNULLdeWo, !1, "Delivery fee without tax", I, I, A.COALESdex5fo, r), t.Field_Field$numeric(A.IFNULLoT, !1, "Other charge with tax", x, x, A.COALESo_, r), t.Field_Field$numeric(A.IFNULLoo, !1, "Other charge without tax", w, w, A.COALESoo, r), t.Field_Field$numeric(e, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, !1, "Payments", "payments", e, A.x28selecstdn, r), t.Field_Field$string(e, !1, "Items", "items", e, A.x28selecstC, r), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, A.x28selecstda, r), t.Field_Field$numeric(A.IFNULLdiI, !1, "Discount inc tax", L, L, A.COALESdii, r), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstdC, r)], f.JSArray_Field);
|
|
8359
8360
|
},
|
|
8360
8361
|
$signature: 0
|
|
8361
8362
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -8482,8 +8483,8 @@ Arguments: [` + D + "]";
|
|
|
8482
8483
|
$signature: 1
|
|
8483
8484
|
}, t.completeTimeBillSchema_closure.prototype = {
|
|
8484
8485
|
call$1(r) {
|
|
8485
|
-
var e = null, n = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", h = "rounding", m = "takeawayPrice", E = "thirdPartyExtraCharge", b = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax",
|
|
8486
|
-
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", n, n, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", u, u, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", A.x28case__, r), t.Field_Field$string(e, !1, "Type", "type", "type", A.x28case_u, r), t.Field_Field$bool(e, !0, "Pickup", o, o, e, r), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, r), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(A.IFNULLi, !0, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(A.IFNULLdiT, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(A.IFNULLg, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(A.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(A.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(A.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(A.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(A.IFNULLta, !1, "Takeaway", m, m, A.COALEStak, r), t.Field_Field$numeric(A.IFNULLth, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(A.IFNULLde_, !1, "Delivery fee", b, b, A.COALESdex2c, r), t.Field_Field$numeric(A.IFNULLn, !1, "Nett", F, F, A.COALESn, r), t.Field_Field$numeric(A.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(A.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(A.IFNULLdeWT, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(A.IFNULLdeWo, !1, "Delivery fee without tax", I, I, A.COALESdex5fo, r), t.Field_Field$numeric(A.IFNULLoT, !1, "Other charge with tax", x, x, A.COALESo_, r), t.Field_Field$numeric(A.IFNULLoo, !1, "Other charge without tax",
|
|
8486
|
+
var e = null, n = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", h = "rounding", m = "takeawayPrice", E = "thirdPartyExtraCharge", b = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", x = "otherChargeWithTax", w = "otherChargeWithoutTax", L = "discountInclusiveTaxTotal";
|
|
8487
|
+
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", n, n, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", u, u, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", A.x28case__, r), t.Field_Field$string(e, !1, "Type", "type", "type", A.x28case_u, r), t.Field_Field$bool(e, !0, "Pickup", o, o, e, r), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, r), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", A.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(A.IFNULLi, !0, "Item count", c, c, A.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, A.COALEStax, r), t.Field_Field$numeric(A.IFNULLdiT, !1, "Discount", y, y, A.COALESdit, r), t.Field_Field$numeric(A.IFNULLg, !1, "Item gross", g, g, A.COALESg, r), t.Field_Field$numeric(A.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, A.x28COALEnC, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, A.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", A.COALESss, r), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(A.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", A.COALESse, r), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(A.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", A.x28COALEo, r), t.Field_Field$numeric(A.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, A.x28COALEgx2d, r), t.Field_Field$numeric(A.IFNULLta, !1, "Takeaway", m, m, A.COALEStak, r), t.Field_Field$numeric(A.IFNULLth, !1, "Extra charge", E, E, A.COALESth, r), t.Field_Field$numeric(A.IFNULLde_, !1, "Delivery fee", b, b, A.COALESdex2c, r), t.Field_Field$numeric(A.IFNULLn, !1, "Nett", F, F, A.COALESn, r), t.Field_Field$numeric(A.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bd, r), t.Field_Field$numeric(A.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, A.x28COALEn_, r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, A.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, A.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, A.SUM__n, r), t.Field_Field$numeric(A.IFNULLdeWT, !1, "Delivery fee with tax", M, M, A.COALESdex5f_, r), t.Field_Field$numeric(A.IFNULLdeWo, !1, "Delivery fee without tax", I, I, A.COALESdex5fo, r), t.Field_Field$numeric(A.IFNULLoT, !1, "Other charge with tax", x, x, A.COALESo_, r), t.Field_Field$numeric(A.IFNULLoo, !1, "Other charge without tax", w, w, A.COALESoo, r), t.Field_Field$numeric(e, !1, "Duration", "duration", e, A.EXTRAC, r), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, A.x28selecn, r), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, A.x28selecS, r), t.Field_Field$string(e, !1, "Payments", "payments", e, A.x28selecstdn, r), t.Field_Field$string(e, !1, "Items", "items", e, A.x28selecstC, r), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, A.x28selecstda, r), t.Field_Field$numeric(A.IFNULLdiI, !1, "Discount inc tax", L, L, A.COALESdii, r), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, A.x28selecstdC, r)], f.JSArray_Field);
|
|
8487
8488
|
},
|
|
8488
8489
|
$signature: 0
|
|
8489
8490
|
}, t.completeTimeBillSchema_closure0.prototype = {
|
|
@@ -8528,10 +8529,10 @@ Arguments: [` + D + "]";
|
|
|
8528
8529
|
$signature: 1
|
|
8529
8530
|
}, t.flattenItemSchema_closure.prototype = {
|
|
8530
8531
|
call$1(r) {
|
|
8531
|
-
var e = null, n = "itemCreatedAt", i = "billCompletedAt", u = "perXUnit", o = "takeawayId", s = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", h = "itemAdjustmentTotal", m = "grossTotal", E = "takeawayPrice", b = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", x = "layerGrossTotal",
|
|
8532
|
+
var e = null, n = "itemCreatedAt", i = "billCompletedAt", u = "perXUnit", o = "takeawayId", s = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", h = "itemAdjustmentTotal", m = "grossTotal", E = "takeawayPrice", b = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", x = "layerGrossTotal", w = "layerTakeawayPrice", L = "layerTaxTotal", J = "layerScTotal", v = "layerOtherChargeTotal", Y = "customAttributes", _0 = "layerZeroParentId", M0 = "collectedAt", x0 = "subCategories", R0 = "billAdjustmentInclusiveTaxTotal", L0 = "itemAdjustmentInclusiveTaxTotal", O0 = "layerBillAdjustmentInclusiveTaxTotal", w0 = "layerItemAdjustmentInclusiveTaxTotal";
|
|
8532
8533
|
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", u, u, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`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)
|
|
8533
8534
|
`, !1, "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
|
|
8534
|
-
`, r), t.Field_Field$string(e, !1, "Takeaway ID", o, o, e, r), t.Field_Field$string(e, !1, "Takeaway name", s, s, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", D, D, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", p, p, A.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", y, y, A.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", A.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", A.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", A.x40other, r), t.Field_Field$numeric(A.x40billA, !1, "Bill discount", g, g, A.x40bill_, r), t.Field_Field$numeric(A.x40itemA, !1, "Item discount", h, h, A.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", m, m, A.x40gross, r), t.Field_Field$numeric(A.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, A.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, A.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", b, b, A.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", A.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(A.x28IFNULb, !1, "Discount", "discountTotal", e, A.x28COALEb, r), t.Field_Field$numeric(A.x28IFNULgx2bb, !1, "Gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bb, r), t.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !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("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -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("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", x, x, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price",
|
|
8535
|
+
`, r), t.Field_Field$string(e, !1, "Takeaway ID", o, o, e, r), t.Field_Field$string(e, !1, "Takeaway name", s, s, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", D, D, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !0, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", p, p, A.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", y, y, A.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", A.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", A.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", A.x40other, r), t.Field_Field$numeric(A.x40billA, !1, "Bill discount", g, g, A.x40bill_, r), t.Field_Field$numeric(A.x40itemA, !1, "Item discount", h, h, A.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", m, m, A.x40gross, r), t.Field_Field$numeric(A.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, A.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, A.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", b, b, A.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", A.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(A.x28IFNULb, !1, "Discount", "discountTotal", e, A.x28COALEb, r), t.Field_Field$numeric(A.x28IFNULgx2bb, !1, "Gross before charges", "grossBeforeCharges", e, A.x28COALEgx2bb, r), t.Field_Field$string("CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !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("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -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("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", x, x, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", w, w, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", J, J, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", v, v, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -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, !1, "Custom attributes", Y, Y, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", _0, _0, e, r), t.Field_Field$string(e, !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, !1, "Collected time", M0, M0, e, r), t.Field_Field$numeric(e, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric("ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("(@nettTotal-coalesce(@costing, 0))", !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, !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, !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, !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, !1, "Sub categories", x0, x0, e, r), t.Field_Field$numeric("@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Bill discount inc tax", R0, R0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Item discount inc tax", L0, L0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount inc tax", O0, O0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount inc tax", w0, w0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
|
|
8535
8536
|
},
|
|
8536
8537
|
$signature: 0
|
|
8537
8538
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -9896,12 +9897,12 @@ Arguments: [` + D + "]";
|
|
|
9896
9897
|
var e = a.LegacyJavaScriptObject.prototype;
|
|
9897
9898
|
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.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;
|
|
9898
9899
|
}(), function() {
|
|
9899
|
-
var e =
|
|
9900
|
+
var e = t0._static_2, n = t0._static_1, i = t0._instance_1u, u = t0._instance_0u;
|
|
9900
9901
|
e(t, "collection___defaultEquals$closure", "_defaultEquals", 33), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 22), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 3), n(t, "core__identityHashCode$closure", "identityHashCode", 22), n(t, "core_RegExp_escape$closure", "RegExp_escape", 4), e(t, "core__identical$closure", "identical", 33);
|
|
9901
9902
|
var o;
|
|
9902
9903
|
i(o = t.DateBuilder.prototype, "get$setYear", "setYear$1", 6), i(o, "get$setMonth", "setMonth$1", 6), i(o, "get$setDay", "setDay$1", 6), i(o, "get$setDayOfYear", "setDayOfYear$1", 6), i(o, "get$setHour", "setHour$1", 6), i(o, "get$setMinute", "setMinute$1", 6), i(o, "get$setSecond", "setSecond$1", 6), i(o, "get$setFractionalSecond", "setFractionalSecond$1", 6), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 76), u(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 48), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 4), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 3), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 3), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 3), n(t, "js_compiler__getSchemas$closure", "getSchemas", 3), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 3), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 3), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 3), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 3), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 3);
|
|
9903
9904
|
}(), function() {
|
|
9904
|
-
var e =
|
|
9905
|
+
var e = t0.mixin, n = t0.inherit, i = t0.inheritMany;
|
|
9905
9906
|
n(t.Object, null), i(t.Object, [t.JS_CONST, a.Interceptor, a.ArrayIterator, t.Error, t._ListBase_Object_ListMixin, t.Iterable, 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.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(a.Interceptor, [a.JSBool, a.JSNull, a.JavaScriptObject, a.JSArray, a.JSNumber, a.JSString, t.NativeTypedData]), n(a.LegacyJavaScriptObject, a.JavaScriptObject), i(a.LegacyJavaScriptObject, [a.PlainJavaScriptObject, a.UnknownJavaScriptObject, a.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(a.JSUnmodifiableArray, a.JSArray), i(a.JSNumber, [a.JSInt, a.JSNumNotInt]), 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.Iterable, [t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), 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]), 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.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.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.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.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.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.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.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.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._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);
|
|
9906
9907
|
}();
|
|
9907
9908
|
var C = {
|
|
@@ -10082,7 +10083,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10082
10083
|
};
|
|
10083
10084
|
}();
|
|
10084
10085
|
(function() {
|
|
10085
|
-
var e =
|
|
10086
|
+
var e = t0.makeConstList;
|
|
10086
10087
|
_.Interceptor_methods = a.Interceptor.prototype, _.JSArray_methods = a.JSArray.prototype, _.JSInt_methods = a.JSInt.prototype, _.JSNumber_methods = a.JSNumber.prototype, _.JSString_methods = a.JSString.prototype, _.JavaScriptFunction_methods = a.JavaScriptFunction.prototype, _.JavaScriptObject_methods = a.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = a.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = a.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) {
|
|
10087
10088
|
var u = Object.prototype.toString.call(i);
|
|
10088
10089
|
return u.substring(8, u.length - 1);
|
|
@@ -10099,7 +10100,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10099
10100
|
}
|
|
10100
10101
|
}
|
|
10101
10102
|
function o(d, c) {
|
|
10102
|
-
return
|
|
10103
|
+
return O.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : u(d, c);
|
|
10103
10104
|
}
|
|
10104
10105
|
function s(d) {
|
|
10105
10106
|
if (typeof window > "u" || typeof window[d] > "u") return null;
|
|
@@ -10184,7 +10185,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10184
10185
|
})(), function() {
|
|
10185
10186
|
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$();
|
|
10186
10187
|
}(), function() {
|
|
10187
|
-
var e =
|
|
10188
|
+
var e = t0.lazyFinal, n = t0.lazy;
|
|
10188
10189
|
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({
|
|
10189
10190
|
toString: function() {
|
|
10190
10191
|
return "$receiver$";
|
|
@@ -10221,8 +10222,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10221
10222
|
return i.message;
|
|
10222
10223
|
}
|
|
10223
10224
|
}())), 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", () => {
|
|
10224
|
-
var i, u, o = t.EnLocale$(_.StartOfWeek_1), s = 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), g = t.EnLocale$(_.StartOfWeek_1), h = t.EsLocale$(_.StartOfWeek_2), m = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), b = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), I = t.ZhCnLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1),
|
|
10225
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), u = 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", o, "en_us", s, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", h, "es_do", m, "es_us", E, "fr", b, "fr_ch", F, "fr_ca", M, "zh", I, "zh_cn", x, "zh_hk",
|
|
10225
|
+
var i, u, o = t.EnLocale$(_.StartOfWeek_1), s = 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), g = t.EnLocale$(_.StartOfWeek_1), h = t.EsLocale$(_.StartOfWeek_2), m = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), b = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), I = t.ZhCnLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), J = t.DeLocale$(_.StartOfWeek_2), v = t.DeLocale$(_.StartOfWeek_2), Y = t.DeLocale$(_.StartOfWeek_2), _0 = t.DeLocale$(_.StartOfWeek_2), M0 = t.ItLocale$(_.StartOfWeek_2), x0 = t.ItLocale$(_.StartOfWeek_2), R0 = t.ArLyLocale$(!0, _.StartOfWeek_0), L0 = t.ArLyLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), w0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), q0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), Q0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), X0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
|
|
10226
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), u = 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", o, "en_us", s, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", g, "es", h, "es_do", m, "es_us", E, "fr", b, "fr_ch", F, "fr_ca", M, "zh", I, "zh_cn", x, "zh_hk", w, "zh_tw", L, "de", J, "de_de", v, "de_at", Y, "de_ch", _0, "it", M0, "it_ch", x0, "ar", R0, "ar_ly", L0, "ar_dz", O0, "ar_kw", w0, "ar_sa", q0, "ar_ma", Q0, "ar_tn", X0, "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", u, "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"));
|
|
10226
10227
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10227
10228
|
var i = "createdAt", u = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
|
|
10228
10229
|
return t.Schema_Schema$build(t._setArrayType(["restaurantId"], f.JSArray_String), null, new t.addonFlattenItemSchema_closure(), _.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", u, o);
|
|
@@ -10493,7 +10494,7 @@ WHERE (
|
|
|
10493
10494
|
(function() {
|
|
10494
10495
|
var e = function(l) {
|
|
10495
10496
|
var D = {};
|
|
10496
|
-
return D[l] = 1, Object.keys(
|
|
10497
|
+
return D[l] = 1, Object.keys(t0.convertToFastObject(D))[0];
|
|
10497
10498
|
};
|
|
10498
10499
|
C.getIsolateTag = function(l) {
|
|
10499
10500
|
return e("___dart_" + l + C.isolateTag);
|
|
@@ -10506,7 +10507,7 @@ WHERE (
|
|
|
10506
10507
|
}
|
|
10507
10508
|
}
|
|
10508
10509
|
C.dispatchPropertyName = C.getIsolateTag("dispatch_record");
|
|
10509
|
-
})(),
|
|
10510
|
+
})(), t0.setOrUpdateInterceptorsByTag({ ArrayBuffer: a.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), t0.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";
|
|
10510
10511
|
}(), Function.prototype.call$1 = function(r) {
|
|
10511
10512
|
return this(r);
|
|
10512
10513
|
}, Function.prototype.call$0 = function() {
|
|
@@ -10519,7 +10520,7 @@ WHERE (
|
|
|
10519
10520
|
return this(r, e, n);
|
|
10520
10521
|
}, Function.prototype.call$8 = function(r, e, n, i, u, o, s, l) {
|
|
10521
10522
|
return this(r, e, n, i, u, o, s, l);
|
|
10522
|
-
},
|
|
10523
|
+
}, l0($), function(r) {
|
|
10523
10524
|
if (typeof document > "u") {
|
|
10524
10525
|
r(null);
|
|
10525
10526
|
return;
|
|
@@ -10542,22 +10543,22 @@ WHERE (
|
|
|
10542
10543
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
10543
10544
|
});
|
|
10544
10545
|
})();
|
|
10545
|
-
})(
|
|
10546
|
-
const
|
|
10547
|
-
var
|
|
10546
|
+
})(ce);
|
|
10547
|
+
const Je = ce;
|
|
10548
|
+
var He = Je, pe = {};
|
|
10548
10549
|
(function(T) {
|
|
10549
|
-
T.load = function(R,
|
|
10550
|
-
var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"),
|
|
10551
|
-
if (
|
|
10550
|
+
T.load = function(R, O) {
|
|
10551
|
+
var H = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = H ? Object.create(globalThis) : globalThis;
|
|
10552
|
+
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
|
|
10552
10553
|
setImmediate(N);
|
|
10553
10554
|
} : function(N) {
|
|
10554
10555
|
setTimeout(N, 0);
|
|
10555
|
-
},
|
|
10556
|
-
var
|
|
10557
|
-
Object.defineProperty(
|
|
10556
|
+
}, B.exports = O || T, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), H) {
|
|
10557
|
+
var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : de)("url");
|
|
10558
|
+
Object.defineProperty(B, "location", {
|
|
10558
10559
|
value: {
|
|
10559
10560
|
get href() {
|
|
10560
|
-
return
|
|
10561
|
+
return P.pathToFileURL ? P.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
10561
10562
|
var N = process.cwd();
|
|
10562
10563
|
return process.platform != "win32" ? N : "/" + N.replace(/\\/g, "/");
|
|
10563
10564
|
}() + "/";
|
|
@@ -10567,28 +10568,28 @@ var Ie = Fe, ne = {};
|
|
|
10567
10568
|
function N() {
|
|
10568
10569
|
try {
|
|
10569
10570
|
throw new Error();
|
|
10570
|
-
} catch (
|
|
10571
|
-
var q =
|
|
10571
|
+
} catch (i0) {
|
|
10572
|
+
var q = i0.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), W = null;
|
|
10572
10573
|
do {
|
|
10573
|
-
var z =
|
|
10574
|
-
z != null && (
|
|
10574
|
+
var z = U.exec(q);
|
|
10575
|
+
z != null && (W = z);
|
|
10575
10576
|
} while (z != null);
|
|
10576
|
-
return
|
|
10577
|
+
return W[1];
|
|
10577
10578
|
}
|
|
10578
10579
|
}
|
|
10579
10580
|
var k = null;
|
|
10580
|
-
Object.defineProperty(
|
|
10581
|
+
Object.defineProperty(B, "document", {
|
|
10581
10582
|
value: {
|
|
10582
10583
|
get currentScript() {
|
|
10583
10584
|
return k == null && (k = { src: N() }), k;
|
|
10584
10585
|
}
|
|
10585
10586
|
}
|
|
10586
10587
|
});
|
|
10587
|
-
}(),
|
|
10588
|
+
}(), B.dartDeferredLibraryLoader = function(N, k, q) {
|
|
10588
10589
|
try {
|
|
10589
10590
|
load(N), k();
|
|
10590
|
-
} catch (
|
|
10591
|
-
q(
|
|
10591
|
+
} catch (U) {
|
|
10592
|
+
q(U);
|
|
10592
10593
|
}
|
|
10593
10594
|
};
|
|
10594
10595
|
}
|
|
@@ -10605,10 +10606,10 @@ var Ie = Fe, ne = {};
|
|
|
10605
10606
|
n.hasOwnProperty(o) || (n[o] = e[o]);
|
|
10606
10607
|
}
|
|
10607
10608
|
}
|
|
10608
|
-
function
|
|
10609
|
+
function U(e, n) {
|
|
10609
10610
|
Object.assign(n, e);
|
|
10610
10611
|
}
|
|
10611
|
-
var
|
|
10612
|
+
var W = function() {
|
|
10612
10613
|
var e = function() {
|
|
10613
10614
|
};
|
|
10614
10615
|
e.prototype = { p: {} };
|
|
@@ -10629,7 +10630,7 @@ var Ie = Fe, ne = {};
|
|
|
10629
10630
|
}();
|
|
10630
10631
|
function z(e, n) {
|
|
10631
10632
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
10632
|
-
if (
|
|
10633
|
+
if (W) {
|
|
10633
10634
|
e.prototype.__proto__ = n.prototype;
|
|
10634
10635
|
return;
|
|
10635
10636
|
}
|
|
@@ -10637,17 +10638,17 @@ var Ie = Fe, ne = {};
|
|
|
10637
10638
|
k(e.prototype, i), e.prototype = i;
|
|
10638
10639
|
}
|
|
10639
10640
|
}
|
|
10640
|
-
function
|
|
10641
|
+
function i0(e, n) {
|
|
10641
10642
|
for (var i = 0; i < n.length; i++)
|
|
10642
10643
|
z(n[i], e);
|
|
10643
10644
|
}
|
|
10644
|
-
function
|
|
10645
|
-
|
|
10645
|
+
function j(e, n) {
|
|
10646
|
+
U(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
10646
10647
|
}
|
|
10647
|
-
function
|
|
10648
|
+
function Z(e, n) {
|
|
10648
10649
|
q(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
10649
10650
|
}
|
|
10650
|
-
function
|
|
10651
|
+
function X(e, n, i, u) {
|
|
10651
10652
|
var o = e;
|
|
10652
10653
|
e[n] = o, e[i] = function() {
|
|
10653
10654
|
e[i] = function() {
|
|
@@ -10664,7 +10665,7 @@ var Ie = Fe, ne = {};
|
|
|
10664
10665
|
return s;
|
|
10665
10666
|
};
|
|
10666
10667
|
}
|
|
10667
|
-
function
|
|
10668
|
+
function u0(e, n, i, u) {
|
|
10668
10669
|
var o = e;
|
|
10669
10670
|
e[n] = o, e[i] = function() {
|
|
10670
10671
|
return e[n] === o && (e[n] = u()), e[i] = function() {
|
|
@@ -10672,7 +10673,7 @@ var Ie = Fe, ne = {};
|
|
|
10672
10673
|
}, e[n];
|
|
10673
10674
|
};
|
|
10674
10675
|
}
|
|
10675
|
-
function
|
|
10676
|
+
function a0(e, n, i, u) {
|
|
10676
10677
|
var o = e;
|
|
10677
10678
|
e[n] = o, e[i] = function() {
|
|
10678
10679
|
if (e[n] === o) {
|
|
@@ -10688,14 +10689,14 @@ var Ie = Fe, ne = {};
|
|
|
10688
10689
|
function s0(e) {
|
|
10689
10690
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
10690
10691
|
}
|
|
10691
|
-
function
|
|
10692
|
+
function l0(e) {
|
|
10692
10693
|
return e;
|
|
10693
10694
|
}
|
|
10694
|
-
function
|
|
10695
|
+
function d0(e) {
|
|
10695
10696
|
for (var n = 0; n < e.length; ++n)
|
|
10696
10697
|
e[n];
|
|
10697
10698
|
}
|
|
10698
|
-
function
|
|
10699
|
+
function c0(e, n) {
|
|
10699
10700
|
var i = null;
|
|
10700
10701
|
return e ? function(u) {
|
|
10701
10702
|
return i === null && (i = a.closureFromTearOff(n)), new i(u, this);
|
|
@@ -10703,26 +10704,26 @@ var Ie = Fe, ne = {};
|
|
|
10703
10704
|
return i === null && (i = a.closureFromTearOff(n)), new i(this, null);
|
|
10704
10705
|
};
|
|
10705
10706
|
}
|
|
10706
|
-
function
|
|
10707
|
+
function Q(e) {
|
|
10707
10708
|
var n = null;
|
|
10708
10709
|
return function() {
|
|
10709
10710
|
return n === null && (n = a.closureFromTearOff(e).prototype), n;
|
|
10710
10711
|
};
|
|
10711
10712
|
}
|
|
10712
|
-
var
|
|
10713
|
-
function
|
|
10714
|
-
return typeof D == "number" && (D +=
|
|
10713
|
+
var V = 0;
|
|
10714
|
+
function r0(e, n, i, u, o, s, l, D, d, c) {
|
|
10715
|
+
return typeof D == "number" && (D += V), { co: e, iS: n, iI: i, rC: u, dV: o, cs: s, fs: l, fT: D, aI: d || 0, nDA: c };
|
|
10715
10716
|
}
|
|
10716
|
-
function
|
|
10717
|
-
var d =
|
|
10717
|
+
function K(e, n, i, u, o, s, l, D) {
|
|
10718
|
+
var d = r0(e, !0, !1, i, u, o, s, l, D, !1), c = Q(d);
|
|
10718
10719
|
e[n] = c;
|
|
10719
10720
|
}
|
|
10720
|
-
function
|
|
10721
|
+
function e0(e, n, i, u, o, s, l, D, d, c) {
|
|
10721
10722
|
i = !!i;
|
|
10722
|
-
var p =
|
|
10723
|
+
var p = r0(e, !1, i, u, o, s, l, D, d, !!c), y = c0(i, p);
|
|
10723
10724
|
e[n] = y;
|
|
10724
10725
|
}
|
|
10725
|
-
function
|
|
10726
|
+
function G(e) {
|
|
10726
10727
|
var n = A.interceptorsByTag;
|
|
10727
10728
|
if (!n) {
|
|
10728
10729
|
A.interceptorsByTag = e;
|
|
@@ -10730,7 +10731,7 @@ var Ie = Fe, ne = {};
|
|
|
10730
10731
|
}
|
|
10731
10732
|
k(e, n);
|
|
10732
10733
|
}
|
|
10733
|
-
function
|
|
10734
|
+
function n0(e) {
|
|
10734
10735
|
var n = A.leafTags;
|
|
10735
10736
|
if (!n) {
|
|
10736
10737
|
A.leafTags = e;
|
|
@@ -10738,24 +10739,24 @@ var Ie = Fe, ne = {};
|
|
|
10738
10739
|
}
|
|
10739
10740
|
k(e, n);
|
|
10740
10741
|
}
|
|
10741
|
-
function
|
|
10742
|
+
function D0(e) {
|
|
10742
10743
|
var n = A.types, i = n.length;
|
|
10743
10744
|
return n.push.apply(n, e), i;
|
|
10744
10745
|
}
|
|
10745
|
-
function
|
|
10746
|
+
function t0(e, n) {
|
|
10746
10747
|
return k(n, e), e;
|
|
10747
10748
|
}
|
|
10748
10749
|
var t = function() {
|
|
10749
10750
|
var e = function(i, u, o, s, l) {
|
|
10750
10751
|
return function(D, d, c, p) {
|
|
10751
|
-
return
|
|
10752
|
+
return e0(D, d, i, u, o, s, [c], p, l, !1);
|
|
10752
10753
|
};
|
|
10753
10754
|
}, n = function(i, u, o, s) {
|
|
10754
10755
|
return function(l, D, d, c) {
|
|
10755
|
-
return
|
|
10756
|
+
return K(l, D, i, u, o, [d], c, s);
|
|
10756
10757
|
};
|
|
10757
10758
|
};
|
|
10758
|
-
return { inherit: z, inheritMany:
|
|
10759
|
+
return { inherit: z, inheritMany: i0, mixin: j, mixinHard: Z, installStaticTearOff: K, installInstanceTearOff: e0, _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: u0, lazyFinal: a0, lazyOld: X, updateHolder: t0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: G, setOrUpdateLeafTags: n0 };
|
|
10759
10760
|
}(), a = {
|
|
10760
10761
|
JS_CONST: function() {
|
|
10761
10762
|
},
|
|
@@ -10805,8 +10806,8 @@ var Ie = Fe, ne = {};
|
|
|
10805
10806
|
}
|
|
10806
10807
|
},
|
|
10807
10808
|
Sort__dualPivotQuicksort(e, n, i, u) {
|
|
10808
|
-
var o, s, l, D, d, c, p, y, g, h, m = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + m, b = i - m, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - m, I = F + m, x = _.getInterceptor$asx(e),
|
|
10809
|
-
if (u.call$2(
|
|
10809
|
+
var o, s, l, D, d, c, p, y, g, h, m = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + m, b = i - m, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - m, I = F + m, x = _.getInterceptor$asx(e), w = x.$index(e, E), L = x.$index(e, M), J = x.$index(e, F), v = x.$index(e, I), Y = x.$index(e, b);
|
|
10810
|
+
if (u.call$2(w, L) > 0 && (o = L, L = w, w = o), u.call$2(v, Y) > 0 && (o = Y, Y = v, v = o), u.call$2(w, J) > 0 && (o = J, J = w, w = o), u.call$2(L, J) > 0 && (o = J, J = L, L = o), u.call$2(w, v) > 0 && (o = v, v = w, w = o), u.call$2(J, v) > 0 && (o = v, v = J, J = o), u.call$2(L, Y) > 0 && (o = Y, Y = L, L = o), u.call$2(L, J) > 0 && (o = J, J = L, L = o), u.call$2(v, Y) > 0 && (o = Y, Y = v, v = o), x.$indexSet(e, E, w), x.$indexSet(e, F, J), x.$indexSet(e, b, Y), x.$indexSet(e, M, x.$index(e, n)), x.$indexSet(e, I, x.$index(e, i)), s = n + 1, l = i - 1, _.$eq$(u.call$2(L, v), 0)) {
|
|
10810
10811
|
for (D = s; D <= l; ++D)
|
|
10811
10812
|
if (d = x.$index(e, D), c = u.call$2(d, L), c !== 0)
|
|
10812
10813
|
if (c < 0)
|
|
@@ -11206,12 +11207,12 @@ var Ie = Fe, ne = {};
|
|
|
11206
11207
|
return n;
|
|
11207
11208
|
},
|
|
11208
11209
|
Closure_fromTearOff(e) {
|
|
11209
|
-
var n, i, u, o, s, l, D, d, c, p, y = e.co, g = e.iS, h = e.iI, m = e.nDA, E = e.aI, b = e.fs, F = e.cs, M = b[0], I = F[0], x = y[M],
|
|
11210
|
-
for (
|
|
11210
|
+
var n, i, u, o, s, l, D, d, c, p, y = e.co, g = e.iS, h = e.iI, m = e.nDA, E = e.aI, b = e.fs, F = e.cs, M = b[0], I = F[0], x = y[M], w = e.fT;
|
|
11211
|
+
for (w.toString, n = Object.create(g ? new a.StaticClosure().constructor.prototype : new a.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, g ? i = function() {
|
|
11211
11212
|
this.$initialize();
|
|
11212
11213
|
} : i = function(J, v) {
|
|
11213
11214
|
this.$initialize(J, v);
|
|
11214
|
-
}, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = x, u = !g, u ? o = a.Closure_forwardCallTo(M, x, h, m) : (n.$static_name = M, o = x), n.$signature = a.Closure__computeSignatureFunctionNewRti(
|
|
11215
|
+
}, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = x, u = !g, u ? o = a.Closure_forwardCallTo(M, x, h, m) : (n.$static_name = M, o = x), n.$signature = a.Closure__computeSignatureFunctionNewRti(w, g, h), n[I] = o, s = o, l = 1; l < b.length; ++l)
|
|
11215
11216
|
D = b[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = F[l], p != null && (u && (D = a.Closure_forwardCallTo(c, D, h, m)), n[p] = D), l === E && (s = D);
|
|
11216
11217
|
return n["call*"] = s, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
11217
11218
|
},
|
|
@@ -11946,7 +11947,7 @@ var Ie = Fe, ne = {};
|
|
|
11946
11947
|
return s + "})";
|
|
11947
11948
|
},
|
|
11948
11949
|
_functionRtiToString(e, n, i) {
|
|
11949
|
-
var u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
11950
|
+
var u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J, v = ", ";
|
|
11950
11951
|
if (i != null) {
|
|
11951
11952
|
for (u = i.length, n == null ? (n = a._setArrayType([], r.JSArray_String), o = null) : o = n.length, s = n.length, l = u; l > 0; --l)
|
|
11952
11953
|
n.push("T" + (s + l));
|
|
@@ -11955,7 +11956,7 @@ var Ie = Fe, ne = {};
|
|
|
11955
11956
|
c += ">";
|
|
11956
11957
|
} else
|
|
11957
11958
|
c = "", o = null;
|
|
11958
|
-
for (D = e._primary, m = e._rest, E = m._requiredPositional, b = E.length, F = m._optionalPositional, M = F.length, I = m._named, x = I.length,
|
|
11959
|
+
for (D = e._primary, m = e._rest, E = m._requiredPositional, b = E.length, F = m._optionalPositional, M = F.length, I = m._named, x = I.length, w = a._rtiToString(D, n), L = "", J = "", l = 0; l < b; ++l, J = v)
|
|
11959
11960
|
L += J + a._rtiToString(E[l], n);
|
|
11960
11961
|
if (M > 0) {
|
|
11961
11962
|
for (L += J + "[", J = "", l = 0; l < M; ++l, J = v)
|
|
@@ -11967,7 +11968,7 @@ var Ie = Fe, ne = {};
|
|
|
11967
11968
|
L += J, I[l + 1] && (L += "required "), L += a._rtiToString(I[l + 2], n) + " " + I[l];
|
|
11968
11969
|
L += "}";
|
|
11969
11970
|
}
|
|
11970
|
-
return o != null && (n.toString, n.length = o), c + "(" + L + ") => " +
|
|
11971
|
+
return o != null && (n.toString, n.length = o), c + "(" + L + ") => " + w;
|
|
11971
11972
|
},
|
|
11972
11973
|
_rtiToString(e, n) {
|
|
11973
11974
|
var i, u, o, s, l, D, d = e._kind;
|
|
@@ -12325,7 +12326,7 @@ var Ie = Fe, ne = {};
|
|
|
12325
12326
|
return d === 12 ? n === r.JavaScriptFunction ? !0 : s ? !1 : a._isFunctionSubtype(e, n, i, u, o) : l === 9 ? d !== 9 ? !1 : a._isInterfaceSubtype(e, n, i, u, o) : (s = l === 11, s && u === r.Record ? !0 : s && d === 11 ? a._isRecordSubtype(e, n, i, u, o) : !1);
|
|
12326
12327
|
},
|
|
12327
12328
|
_isFunctionSubtype(e, n, i, u, o) {
|
|
12328
|
-
var s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
12329
|
+
var s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J, v, Y, _0;
|
|
12329
12330
|
if (!a._isSubtype(e, n._primary, i, u._primary, o) || (s = n._rest, l = u._rest, D = s._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, g = s._optionalPositional, h = l._optionalPositional, m = g.length, E = h.length, c + m < p + E))
|
|
12330
12331
|
return !1;
|
|
12331
12332
|
for (b = 0; b < c; ++b)
|
|
@@ -12337,16 +12338,16 @@ var Ie = Fe, ne = {};
|
|
|
12337
12338
|
for (b = 0; b < E; ++b)
|
|
12338
12339
|
if (F = g[y + b], !a._isSubtype(e, h[b], o, F, i))
|
|
12339
12340
|
return !1;
|
|
12340
|
-
for (M = s._named, I = l._named, x = M.length,
|
|
12341
|
+
for (M = s._named, I = l._named, x = M.length, w = I.length, L = 0, J = 0; J < w; J += 3)
|
|
12341
12342
|
for (v = I[J]; ; ) {
|
|
12342
|
-
if (L >= x || (
|
|
12343
|
+
if (L >= x || (Y = M[L], L += 3, v < Y))
|
|
12343
12344
|
return !1;
|
|
12344
|
-
if (
|
|
12345
|
-
if (
|
|
12345
|
+
if (_0 = M[L - 2], Y < v) {
|
|
12346
|
+
if (_0)
|
|
12346
12347
|
return !1;
|
|
12347
12348
|
continue;
|
|
12348
12349
|
}
|
|
12349
|
-
if (F = I[J + 1],
|
|
12350
|
+
if (F = I[J + 1], _0 && !F || (F = M[L - 1], !a._isSubtype(e, I[J + 2], o, F, i)))
|
|
12350
12351
|
return !1;
|
|
12351
12352
|
break;
|
|
12352
12353
|
}
|
|
@@ -13681,8 +13682,8 @@ var Ie = Fe, ne = {};
|
|
|
13681
13682
|
this.$this = n;
|
|
13682
13683
|
},
|
|
13683
13684
|
TableDatasourceConfigModel: function(n, i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x) {
|
|
13684
|
-
var
|
|
13685
|
-
|
|
13685
|
+
var w = this;
|
|
13686
|
+
w.columnsWidth = n, w.isDrillable = i, w.showGrandTotal = u, w.rollup = o, w.rollupPosition = s, w.rowsPerPage = l, w.isBlend = D, w._drillDimension = d, w._rowIds = c, w._columnIds = p, w._joinDatasources = y, w.schemaNames = g, w.dimensions = h, w.metrics = m, w.filters = E, w.sorts = b, w.limit = F, w.isComparable = M, w.periodType = I, w.timezone = x;
|
|
13686
13687
|
},
|
|
13687
13688
|
TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
|
|
13688
13689
|
this.$this = n;
|
|
@@ -13743,17 +13744,17 @@ var Ie = Fe, ne = {};
|
|
|
13743
13744
|
return e instanceof a.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof a.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, a.List_List$of(a.ListExtensions_mapIndexed(n, new a.accumulate_closure(e), i, i), !0, i)) : n;
|
|
13744
13745
|
},
|
|
13745
13746
|
formatBaseXYChartData(e, n, i, u, o) {
|
|
13746
|
-
var s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
13747
|
+
var s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J, v, Y, _0 = null;
|
|
13747
13748
|
if (i.length === 0)
|
|
13748
|
-
return s = a._setArrayType([], r.JSArray_String), l = a._setArrayType([], r.JSArray_XYDatasetModel), D = a.IterableExtension_get_firstOrNull(i), new a.BaseXYChartDataModel(e, s, l, new a.DateComparison(D == null ?
|
|
13749
|
+
return s = a._setArrayType([], r.JSArray_String), l = a._setArrayType([], r.JSArray_XYDatasetModel), D = a.IterableExtension_get_firstOrNull(i), new a.BaseXYChartDataModel(e, s, l, new a.DateComparison(D == null ? _0 : D.dateRange, _0));
|
|
13749
13750
|
for (d = $.JSArray_methods.get$first(i).columns, s = r.QueryResponse, c = a._formatRows(a.ListExtension_sublistOrEmpty(i, 0, 1, s), o), p = a._formatRows(a.ListExtension_sublistOrEmpty(i, 1, 2, s), o), p.length !== 0 && (s = a._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), y = a.List_List$of(new a.MappedListIterable(d, new a.formatBaseXYChartData_closure(), s), !0, s._eval$1("ListIterable.E")), g = a.compare(new a.ComparisonData(y, p), new a.ComparisonData(y, c)), p = g.comparison, c = g.main), n.breakdownDimension == null && (h = $.JSArray_methods.indexWhere$1(d, new a.formatBaseXYChartData_closure0()), s = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,List<@>>"), c = a.List_List$of(new a.MappedListIterable(c, new a.formatBaseXYChartData_closure1(d, h), s), !0, s._eval$1("ListIterable.E")), p.length !== 0 && (s = a._arrayInstanceType(p)._eval$1("MappedListIterable<1,List<@>>"), p = a.List_List$of(new a.MappedListIterable(p, new a.formatBaseXYChartData_closure2(d, h), s), !0, s._eval$1("ListIterable.E")))), s = r.JSArray_String, m = a._setArrayType([], s), E = a._setArrayType([], s), s = c.length, b = 0; b < c.length; c.length === s || (0, a.throwConcurrentModificationError)(c), ++b)
|
|
13750
13751
|
F = c[b], l = _.getInterceptor$asx(F), m.push(_.toString$0$(l.$index(F, 0))), E.push(_.toString$0$(l.$index(F, 1)));
|
|
13751
13752
|
for (s = r.String, l = a.LinkedHashSet_LinkedHashSet$from(m, s), m = a.List_List$of(l, !0, a._instanceType(l)._precomputed1), s = a.LinkedHashSet_LinkedHashSet$from(E, s), E = a.List_List$of(s, !0, a._instanceType(s)._precomputed1), M = a._setArrayType([], r.JSArray_XYDatasetModel), s = E.length, l = r.JSArray_num, b = 0; b < E.length; E.length === s || (0, a.throwConcurrentModificationError)(E), ++b) {
|
|
13752
|
-
for (I = E[b], x = a._setArrayType([], l),
|
|
13753
|
-
J = m[L], v = a.IterableExtension_firstWhereOrNull(c, new a.formatBaseXYChartData_closure3(J, I)), v == null ? v =
|
|
13754
|
-
M.push(new a.XYDatasetModel(I, !1, x)),
|
|
13753
|
+
for (I = E[b], x = a._setArrayType([], l), w = a._setArrayType([], l), D = m.length, L = 0; L < m.length; m.length === D || (0, a.throwConcurrentModificationError)(m), ++L)
|
|
13754
|
+
J = m[L], v = a.IterableExtension_firstWhereOrNull(c, new a.formatBaseXYChartData_closure3(J, I)), v == null ? v = _0 : (v = a.ListExtension_elementAtOrNull(v, 2), v = v == null ? _0 : _.toString$0$(v)), Y = $.JSString_methods.trim$0(v ?? "0"), v = a.Primitives_parseInt(Y, _0), v == null && (v = a.Primitives_parseDouble(Y)), x.push(v ?? 0), p.length !== 0 && (v = a.IterableExtension_firstWhereOrNull(p, new a.formatBaseXYChartData_closure4(J, I)), v == null ? v = _0 : (v = a.ListExtension_elementAtOrNull(v, 2), v = v == null ? _0 : _.toString$0$(v)), Y = $.JSString_methods.trim$0(v ?? "0"), v = a.Primitives_parseInt(Y, _0), v == null && (v = a.Primitives_parseDouble(Y)), w.push(v ?? 0));
|
|
13755
|
+
M.push(new a.XYDatasetModel(I, !1, x)), w.length !== 0 && M.push(new a.XYDatasetModel(I, !0, w));
|
|
13755
13756
|
}
|
|
13756
|
-
return M = a.accumulate(n, M), s = a.IterableExtension_get_firstOrNull(i), s = s == null ?
|
|
13757
|
+
return M = a.accumulate(n, M), s = a.IterableExtension_get_firstOrNull(i), s = s == null ? _0 : s.dateRange, l = a.ListExtension_elementAtOrNull(i, 1), new a.BaseXYChartDataModel(e, m, M, new a.DateComparison(s, l == null ? _0 : l.dateRange));
|
|
13757
13758
|
},
|
|
13758
13759
|
_formatRows_closure: function(n, i) {
|
|
13759
13760
|
this.response = n, this.timezone = i;
|
|
@@ -13833,11 +13834,11 @@ var Ie = Fe, ne = {};
|
|
|
13833
13834
|
return new a.RowInfo(s, _.map$1$1$ax(i, new a._getRowInfo_closure(e, n, u, s), o).join$0(0));
|
|
13834
13835
|
},
|
|
13835
13836
|
compare(e, n) {
|
|
13836
|
-
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
13837
|
+
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L = {};
|
|
13837
13838
|
for (L.comparisonDateIndex = L.mainDateIndex = null, i = L.comparisonIndexesCompleted = L.mainIndexesCompleted = !1, u = n.columns, o = r.JSArray_int, s = a.IterableExtension_foldIndexed(u, a._setArrayType([], o), new a.compare_closure(L)), l = a.IterableExtension_foldIndexed(e.columns, a._setArrayType([], o), new a.compare_closure0(L)), o = r.JSArray_String, L.dates = a._setArrayType([], o), (L.mainDateIndex != null ? L.comparisonDateIndex != null : i) && (i = r.String, i = a.ListExtensions_mapIndexed($.JSArray_methods.fold$2(n.rows, a._setArrayType([], o), new a.compare_closure1(L)), new a.compare_closure2($.JSArray_methods.fold$2(e.rows, a._setArrayType([], o), new a.compare_closure3(L))), i, i), L.dates = a.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), D = $.JSArray_methods.fold$2(e.rows, a.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new a.compare_closure4(L, e, l)), i = r.JSArray_List_dynamic, o = a._setArrayType([], i), i = a._setArrayType([], i), d = n.rows, c = d.length, p = r.JSArray_dynamic, y = _.getInterceptor$asx(s), g = r.dynamic, h = 0; h < d.length; d.length === c || (0, a.throwConcurrentModificationError)(d), ++h) {
|
|
13838
13839
|
if (m = d[h], E = a._getRowInfo(u, L.dates, s, m), b = D.$index(0, E.id), F = b == null ? null : _.toList$0$ax(b), F == null) {
|
|
13839
|
-
for (b = E.row, M = a.List_List$of(a.ListExtensions_slice(b, 0, y.get$length(s), g), !0, g), I = b.length - y.get$length(s), I < 0 && a.throwExpression(a.ArgumentError$("Length must be a non-negative integer: " + I)), x = a._setArrayType(new Array(I), p),
|
|
13840
|
-
x[
|
|
13840
|
+
for (b = E.row, M = a.List_List$of(a.ListExtensions_slice(b, 0, y.get$length(s), g), !0, g), I = b.length - y.get$length(s), I < 0 && a.throwExpression(a.ArgumentError$("Length must be a non-negative integer: " + I)), x = a._setArrayType(new Array(I), p), w = 0; w < I; ++w)
|
|
13841
|
+
x[w] = null;
|
|
13841
13842
|
$.JSArray_methods.addAll$1(M, x), F = M;
|
|
13842
13843
|
}
|
|
13843
13844
|
o.push(E.row), i.push(F);
|
|
@@ -13935,15 +13936,15 @@ var Ie = Fe, ne = {};
|
|
|
13935
13936
|
return o = m.mainResponse, c = o.rows, p = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), o.copyWith$1$rows(a.List_List$of(new a.MappedListIterable(c, new a._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
|
|
13936
13937
|
},
|
|
13937
13938
|
formatTableChartData(e, n, i, u) {
|
|
13938
|
-
var o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
13939
|
+
var o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L, J, v = {};
|
|
13939
13940
|
if (n.length === 0)
|
|
13940
13941
|
return new a.TableDataModel(a._setArrayType([], r.JSArray_TableRowModel), a._setArrayType([], r.JSArray_TableColumnModel));
|
|
13941
13942
|
for (e.isBlend && (o = a.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], r.JSArray_QueryRequestDimension), new a.formatTableChartData_closure())), s = a.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), a._setArrayType([], r.JSArray_QueryRequestMetric), new a.formatTableChartData_closure0())), l = a._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = a.TableDatasourceConfigModel$(d, e.columnsWidth, o, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, s, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, o = r.QueryResponse, g = a._formatTableData(e, a.ListExtension_sublistOrEmpty(n, 0, y, o), i, u), h = v.comparison = a._formatTableData(e, a.ListExtension_sublistOrEmpty(n, y, y * 2, o), i, u), o = h.rows, o.length !== 0 && (s = g.rows, l = a._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), l = a.List_List$of(new a.MappedListIterable(s, new a.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = a._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = a.List_List$of(new a.MappedListIterable(D, new a.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = a._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), D = a.List_List$of(new a.MappedListIterable(o, new a.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = h.columns, p = a._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), m = a.compare(new a.ComparisonData(a.List_List$of(new a.MappedListIterable(c, new a.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new a.ComparisonData(d, l)), l = r.TableRowModel, s = a.ListExtensions_mapIndexed(s, new a.formatTableChartData_closure5(m), l, l), g = g.copyWith$1$rows(a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))), l = a.ListExtensions_mapIndexed(o, new a.formatTableChartData_closure6(m), l, l), v.comparison = h.copyWith$1$rows(a.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), o = g.columns, s = a._arrayInstanceType(o)._eval$1("WhereIterable<1>"), E = a.List_List$of(new a.WhereIterable(o, new a.formatTableChartData_closure7(), s), !0, s._eval$1("Iterable.E")), s = r.String, l = r.int, b = a.LinkedHashMap_LinkedHashMap$_empty(s, l), F = 0; F < o.length; ++F)
|
|
13942
13943
|
M = o[F], b.$indexSet(0, M.key + "_" + M.hide, F);
|
|
13943
13944
|
for (I = a.LinkedHashMap_LinkedHashMap$_empty(s, l), F = 0; o = v.comparison.columns, F < o.length; ++F)
|
|
13944
13945
|
M = o[F], I.$indexSet(0, M.key + "_" + M.hide, F);
|
|
13945
|
-
for (x = a._setArrayType([], r.JSArray__ColumnMapping), o = E.length,
|
|
13946
|
-
M = E[
|
|
13946
|
+
for (x = a._setArrayType([], r.JSArray__ColumnMapping), o = E.length, w = 0; w < o; ++w)
|
|
13947
|
+
M = E[w], s = M.key, L = s + "_" + M.hide, s = a.stringReplaceAllUnchecked(s, ".", "_"), l = b.$index(0, L), l == null && (l = -1), D = I.$index(0, L), x.push(new a._ColumnMapping(M, s, l, D ?? -1));
|
|
13947
13948
|
return o = r.MappedListIterable__ColumnMapping_TableColumnModel, J = a.List_List$of(new a.MappedListIterable(x, new a.formatTableChartData_closure8(), o), !0, o._eval$1("ListIterable.E")), o = v.comparison.rows.length, s = r.TableRowModel, s = a.ListExtensions_mapIndexed(g.rows, new a.formatTableChartData_closure9(v, x, i, u, o !== 0, o), s, s), g.copyWith$2$columns$rows(J, a.List_List$of(s, !0, s.$ti._eval$1("Iterable.E")));
|
|
13948
13949
|
},
|
|
13949
13950
|
_formatTableResponse_closure: function(n) {
|
|
@@ -14155,15 +14156,15 @@ var Ie = Fe, ne = {};
|
|
|
14155
14156
|
}
|
|
14156
14157
|
},
|
|
14157
14158
|
formatChartData(e) {
|
|
14158
|
-
var n, i = $.C_JsonCodec.decode$2$reviver(
|
|
14159
|
-
return l instanceof a.CircularDatasourceConfigModel ? n = a.formatCircularChartData(l, s, d, c).toJson$0() : l instanceof a.BaseXYDatasourceConfigModel ? n = a.formatBaseXYChartData(D, l, s, d, c).toJson$0() : l instanceof a.TableDatasourceConfigModel ? n = a.formatTableChartData(l, s, d, c).toJson$0() : n = D === $.ChartType_3 ? a.formatScoreCardChartData(l, s, d, c).toJson$0() : null,
|
|
14159
|
+
var n, i = $.C_JsonCodec.decode$2$reviver(B.JSON.stringify(e), null), u = _.getInterceptor$asx(i), o = _.map$1$1$ax(r.List_dynamic._as(u.$index(i, "responses")), new a.formatChartData_closure(), r.QueryResponse), s = a.List_List$of(o, !0, o.$ti._eval$1("ListIterable.E")), l = a._getConfig(u.$index(i, "widget")), D = a.EnumByName_byName($.List_OX3, _.$index$asx(u.$index(i, "widget"), "type")), d = u.$index(i, "country"), c = u.$index(i, "timezone");
|
|
14160
|
+
return l instanceof a.CircularDatasourceConfigModel ? n = a.formatCircularChartData(l, s, d, c).toJson$0() : l instanceof a.BaseXYDatasourceConfigModel ? n = a.formatBaseXYChartData(D, l, s, d, c).toJson$0() : l instanceof a.TableDatasourceConfigModel ? n = a.formatTableChartData(l, s, d, c).toJson$0() : n = D === $.ChartType_3 ? a.formatScoreCardChartData(l, s, d, c).toJson$0() : null, B.JSON.parse($.C_JsonCodec.encode$2$toEncodable(n, null));
|
|
14160
14161
|
},
|
|
14161
14162
|
formatChartData_closure: function() {
|
|
14162
14163
|
},
|
|
14163
14164
|
Exports: function() {
|
|
14164
14165
|
},
|
|
14165
14166
|
main() {
|
|
14166
|
-
a.initializeTimeZones(), _.set$formatChartData$x(
|
|
14167
|
+
a.initializeTimeZones(), _.set$formatChartData$x(B.exports, a.allowInterop(a.js__formatChartData$closure()));
|
|
14167
14168
|
},
|
|
14168
14169
|
_Exports: function() {
|
|
14169
14170
|
},
|
|
@@ -18064,18 +18065,18 @@ Arguments: [` + d + "]";
|
|
|
18064
18065
|
$signature: 0
|
|
18065
18066
|
}, a._formatTableResponse_closure5.prototype = {
|
|
18066
18067
|
call$2(e, n) {
|
|
18067
|
-
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x,
|
|
18068
|
+
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x, w, L = null, J = r.JSArray_List_dynamic, v = a._setArrayType([[]], J), Y = a._setArrayType([[]], J);
|
|
18068
18069
|
for (J = this.headers, i = n.value, u = r.dynamic, o = r.JSArray_String, s = r.String, l = this.metricColumns, D = 0; D < J.length; ++D)
|
|
18069
18070
|
if (d = J[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new a._formatTableResponse__closure4(), s).join$1(0, "|"), a.IterableExtension_firstWhereOrNull(d, new a._formatTableResponse__closure5()) != null)
|
|
18070
18071
|
for (y = c.firstWhere$1(d, new a._formatTableResponse__closure6()), g = c.fold$2(d, !0, new a._formatTableResponse__closure7(n)), c = v.length, h = y.type, m = y.columnValue, E = 0; E < v.length; v.length === c || (0, a.throwConcurrentModificationError)(v), ++E)
|
|
18071
18072
|
b = v[E], g ? (F = i.$index(0, m), M = b.length, D >= M && $.JSArray_methods.addAll$1(b, a.List_List$filled(D - M + 1, L, !1, u)), b[D] = F) : (F = h == null ? L : a.DataTypeExtension_toData(h, L), M = b.length, D >= M && $.JSArray_methods.addAll$1(b, a.List_List$filled(D - M + 1, L, !1, u)), b[D] = F);
|
|
18072
18073
|
else if ($.JSArray_methods.contains$1(a._setArrayType(["_metric_name", "_metric_value"], o), p))
|
|
18073
18074
|
for (c = p === "_metric_value", h = p === "_metric_name", I = 0; I < l.length; ++I)
|
|
18074
|
-
x = l[I], a.ListExtension_elementAtOrNull(v, I) == null && (v.push(a.List_List$of(v[0], !0, u)),
|
|
18075
|
+
x = l[I], a.ListExtension_elementAtOrNull(v, I) == null && (v.push(a.List_List$of(v[0], !0, u)), Y.push(a.List_List$of(Y[0], !0, u))), h ? (m = v[I], F = x.label, M = m.length, D >= M && $.JSArray_methods.addAll$1(m, a.List_List$filled(D - M + 1, L, !1, u)), m[D] = F, Y[I].push(F)) : c && (m = v[I], F = i.$index(0, x.id), M = m.length, D >= M && $.JSArray_methods.addAll$1(m, a.List_List$filled(D - M + 1, L, !1, u)), m[D] = F);
|
|
18075
18076
|
else
|
|
18076
|
-
for (
|
|
18077
|
-
c = v[
|
|
18078
|
-
return _.addAll$1$ax(e, a.ListExtensions_mapIndexed(v, new a._formatTableResponse__closure8(
|
|
18077
|
+
for (w = 0; w < v.length; ++w)
|
|
18078
|
+
c = v[w], h = i.$index(0, p), m = c.length, D >= m && $.JSArray_methods.addAll$1(c, a.List_List$filled(D - m + 1, L, !1, u)), c[D] = h, Y[w].push(i.$index(0, p));
|
|
18079
|
+
return _.addAll$1$ax(e, a.ListExtensions_mapIndexed(v, new a._formatTableResponse__closure8(Y, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
18079
18080
|
},
|
|
18080
18081
|
$signature: 75
|
|
18081
18082
|
}, a._formatTableResponse__closure4.prototype = {
|
|
@@ -18314,10 +18315,10 @@ Arguments: [` + d + "]";
|
|
|
18314
18315
|
$signature: 95
|
|
18315
18316
|
}, a.formatTableChartData_closure9.prototype = {
|
|
18316
18317
|
call$2(e, n) {
|
|
18317
|
-
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x = this,
|
|
18318
|
+
var i, u, o, s, l, D, d, c, p, y, g, h, m, E, b, F, M, I, x = this, w = [], L = [], J = n.cells, v = _.getInterceptor$asx(J), Y = v.get$length(J);
|
|
18318
18319
|
for (i = x.columnMappings, u = i.length, o = x.hasComparison, s = x.country, l = x.timezone, D = e < x.comparisonRowsLength, d = x._box_0, c = 0; c < i.length; i.length === u || (0, a.throwConcurrentModificationError)(i), ++c)
|
|
18319
|
-
p = i[c], y = p.mainIndex, g = y >= 0 && y <
|
|
18320
|
-
return n.copyWith$2$cells$comparisonCells(
|
|
18320
|
+
p = i[c], y = p.mainIndex, g = y >= 0 && y < Y ? v.$index(J, y) : a.ListExtension_elementAtOrNull(J, y), y = p.column, h = y.type, m = h == null, w.push(m ? null : a.DataTypeExtension_toDisplay(h, y.aggregationType, s, y.decimal, y.dimensionOption, y.timeFormatter, l, g)), o && (D ? (E = d.comparison.rows[e].cells, b = _.getInterceptor$asx(E), F = b.get$length(E), M = p.comparisonIndex, I = M >= 0 && M < F ? b.$index(E, M) : a.ListExtension_elementAtOrNull(E, M)) : I = a.ListExtension_elementAtOrNull([], p.comparisonIndex), L.push(m ? null : a.DataTypeExtension_toDisplay(h, y.aggregationType, s, y.decimal, y.dimensionOption, y.timeFormatter, l, I)));
|
|
18321
|
+
return n.copyWith$2$cells$comparisonCells(w, L);
|
|
18321
18322
|
},
|
|
18322
18323
|
$signature: 6
|
|
18323
18324
|
}, a.TZDateTime.prototype = {
|
|
@@ -18625,7 +18626,7 @@ Arguments: [` + d + "]";
|
|
|
18625
18626
|
}
|
|
18626
18627
|
}
|
|
18627
18628
|
function s(c, p) {
|
|
18628
|
-
return
|
|
18629
|
+
return B.HTMLElement && c instanceof HTMLElement ? "HTMLElement" : o(c, p);
|
|
18629
18630
|
}
|
|
18630
18631
|
function l(c) {
|
|
18631
18632
|
if (typeof window > "u" || typeof window[c] > "u") return null;
|
|
@@ -18750,8 +18751,8 @@ Arguments: [` + d + "]";
|
|
|
18750
18751
|
return u.message;
|
|
18751
18752
|
}
|
|
18752
18753
|
}())), n(C, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => a.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(C, "_hashSeed", "$get$_hashSeed", () => a.objectHashCode($.Type_Object_xQ6)), n(C, "Endian_host", "$get$Endian_host", () => a.NativeByteData_NativeByteData$view(a.NativeUint16List_NativeUint16List$fromList(a._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(C, "_clockKey", "$get$_clockKey", () => new a.Object()), n(C, "en_USSymbols", "$get$en_USSymbols", () => new a.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(C, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => a.UninitializedLocaleData$("initializeDateFormatting(<locale>)", C.$get$en_USSymbols())), i(C, "dateTimePatterns", "$get$dateTimePatterns", () => a.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(C, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(C, "DateFormat__matchers", "$get$DateFormat__matchers", () => a._setArrayType([a.RegExp_RegExp("^'(?:[^']|'')*'", !1), a.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), a.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], a.findType("JSArray<RegExp>"))), n(C, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => a.RegExp_RegExp("''", !1)), n(C, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => a.RegExp_RegExp("^\\d+", !1)), i(C, "_availableLocales", "$get$_availableLocales", () => {
|
|
18753
|
-
var u, o, s = a.EnLocale$($.StartOfWeek_1), l = a.EnLocale$($.StartOfWeek_1), D = a.EnLocale$($.StartOfWeek_1), d = a.EnLocale$($.StartOfWeek_1), c = a.EnLocale$($.StartOfWeek_1), p = a.EnLocale$($.StartOfWeek_2), y = a.EnLocale$($.StartOfWeek_2), g = a.EnLocale$($.StartOfWeek_1), h = a.EnLocale$($.StartOfWeek_1), m = a.EsLocale$($.StartOfWeek_2), E = a.EsLocale$($.StartOfWeek_2), b = a.EsLocale$($.StartOfWeek_1), F = a.FrLocale$($.StartOfWeek_2), M = a.FrLocale$($.StartOfWeek_2), I = a.FrLocale$($.StartOfWeek_1), x = a.ZhCnLocale$($.StartOfWeek_1),
|
|
18754
|
-
return a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), u = a.PtLocale$($.StartOfWeek_2), o = a.PtLocale$($.StartOfWeek_1), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", h, "es", m, "es_do", E, "es_us", b, "fr", F, "fr_ch", M, "fr_ca", I, "zh", x, "zh_cn",
|
|
18754
|
+
var u, o, s = a.EnLocale$($.StartOfWeek_1), l = a.EnLocale$($.StartOfWeek_1), D = a.EnLocale$($.StartOfWeek_1), d = a.EnLocale$($.StartOfWeek_1), c = a.EnLocale$($.StartOfWeek_1), p = a.EnLocale$($.StartOfWeek_2), y = a.EnLocale$($.StartOfWeek_2), g = a.EnLocale$($.StartOfWeek_1), h = a.EnLocale$($.StartOfWeek_1), m = a.EsLocale$($.StartOfWeek_2), E = a.EsLocale$($.StartOfWeek_2), b = a.EsLocale$($.StartOfWeek_1), F = a.FrLocale$($.StartOfWeek_2), M = a.FrLocale$($.StartOfWeek_2), I = a.FrLocale$($.StartOfWeek_1), x = a.ZhCnLocale$($.StartOfWeek_1), w = a.ZhCnLocale$($.StartOfWeek_1), L = a.ZhLocale$($.StartOfWeek_1), J = a.ZhLocale$($.StartOfWeek_1), v = a.DeLocale$($.StartOfWeek_2), Y = a.DeLocale$($.StartOfWeek_2), _0 = a.DeLocale$($.StartOfWeek_2), M0 = a.DeLocale$($.StartOfWeek_2), x0 = a.ItLocale$($.StartOfWeek_2), R0 = a.ItLocale$($.StartOfWeek_2), L0 = a.ArLyLocale$(!0, $.StartOfWeek_0), O0 = a.ArLyLocale$(!1, $.StartOfWeek_0), w0 = a.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), q0 = a.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), Q0 = a.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), X0 = a.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), Ae = a.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
|
|
18755
|
+
return a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), u = a.PtLocale$($.StartOfWeek_2), o = a.PtLocale$($.StartOfWeek_1), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.createSentinel(), a.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", g, "en_nz", h, "es", m, "es_do", E, "es_us", b, "fr", F, "fr_ch", M, "fr_ca", I, "zh", x, "zh_cn", w, "zh_hk", L, "zh_tw", J, "de", v, "de_de", Y, "de_at", _0, "de_ch", M0, "it", x0, "it_ch", R0, "ar", L0, "ar_ly", O0, "ar_dz", w0, "ar_kw", q0, "ar_sa", Q0, "ar_ma", X0, "ar_tn", Ae, "az", new a.AzLocale($.StartOfWeek_2), "id", new a.IdLocale($.StartOfWeek_1), "ja", new a.JaLocale($.StartOfWeek_1), "ko", new a.KoLocale($.StartOfWeek_1), "ru", new a.RuLocale($.StartOfWeek_2), "uk", new a.UkLocale($.StartOfWeek_2), "hi", new a.HiLocale($.StartOfWeek_1), "pt", u, "pt_br", o, "pl", new a.PlLocale($.StartOfWeek_2), "tr", new a.TrLocale($.StartOfWeek_2), "sv", new a.SvLocale($.StartOfWeek_2), "nb", new a.NbLocale($.StartOfWeek_2), "fa", new a.FaLocale($.StartOfWeek_0), "bn", new a.BnLocale($.StartOfWeek_1), "nl", new a.NlLocale($.StartOfWeek_2), "th", new a.ThLocale($.StartOfWeek_1)], r.String, a.findType("Locale"));
|
|
18755
18756
|
}), n(C, "_UTC", "$get$_UTC", () => {
|
|
18756
18757
|
var u = r.JSArray_int;
|
|
18757
18758
|
return a.Location$("UTC", a._setArrayType([-864e13], u), a._setArrayType([0], u), a._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -18786,7 +18787,7 @@ Arguments: [` + d + "]";
|
|
|
18786
18787
|
return this(e, n, i);
|
|
18787
18788
|
}, Function.prototype.call$8 = function(e, n, i, u, o, s, l, D) {
|
|
18788
18789
|
return this(e, n, i, u, o, s, l, D);
|
|
18789
|
-
},
|
|
18790
|
+
}, d0(S), function(e) {
|
|
18790
18791
|
if (typeof document > "u") {
|
|
18791
18792
|
e(null);
|
|
18792
18793
|
return;
|
|
@@ -18810,116 +18811,116 @@ Arguments: [` + d + "]";
|
|
|
18810
18811
|
});
|
|
18811
18812
|
})();
|
|
18812
18813
|
};
|
|
18813
|
-
})(
|
|
18814
|
-
const
|
|
18815
|
-
|
|
18816
|
-
var
|
|
18817
|
-
const
|
|
18818
|
-
function
|
|
18814
|
+
})(pe);
|
|
18815
|
+
const fe = pe;
|
|
18816
|
+
fe.load({});
|
|
18817
|
+
var Ne = fe;
|
|
18818
|
+
const ne = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" });
|
|
18819
|
+
function ke(T, R) {
|
|
18819
18820
|
var H;
|
|
18820
|
-
const
|
|
18821
|
-
for (let
|
|
18822
|
-
const
|
|
18823
|
-
|
|
18824
|
-
main: T.cells[
|
|
18825
|
-
comparison: (H = T.comparisonCells) == null ? void 0 : H[
|
|
18821
|
+
const O = { isRollup: T.isRollup };
|
|
18822
|
+
for (let B = 0; B < R.length; B++) {
|
|
18823
|
+
const P = R[B].key;
|
|
18824
|
+
P && (O[P] = {
|
|
18825
|
+
main: T.cells[B],
|
|
18826
|
+
comparison: (H = T.comparisonCells) == null ? void 0 : H[B]
|
|
18826
18827
|
});
|
|
18827
18828
|
}
|
|
18828
|
-
return
|
|
18829
|
+
return O;
|
|
18829
18830
|
}
|
|
18830
|
-
function
|
|
18831
|
+
function Ue(T, R) {
|
|
18831
18832
|
if (T <= 0) return [];
|
|
18832
|
-
const
|
|
18833
|
-
for (const H of R)
|
|
18834
|
-
return Array.from({ length: T }, () => ({ ...
|
|
18833
|
+
const O = {};
|
|
18834
|
+
for (const H of R) O[H.key] = void 0;
|
|
18835
|
+
return Array.from({ length: T }, () => ({ ...O }));
|
|
18835
18836
|
}
|
|
18836
|
-
function
|
|
18837
|
-
var
|
|
18838
|
-
if (((
|
|
18839
|
-
const H =
|
|
18840
|
-
return H >= 0 ? (
|
|
18837
|
+
function J0(T, R, O) {
|
|
18838
|
+
var B, P;
|
|
18839
|
+
if (((B = T[R]) == null ? void 0 : B.main) !== void 0) return T[R].main;
|
|
18840
|
+
const H = O.findIndex((N) => N.key === R);
|
|
18841
|
+
return H >= 0 ? (P = T.cells) == null ? void 0 : P[H] : void 0;
|
|
18841
18842
|
}
|
|
18842
|
-
function
|
|
18843
|
-
var
|
|
18843
|
+
function qe(T) {
|
|
18844
|
+
var u0, a0, s0, l0, d0, c0;
|
|
18844
18845
|
const {
|
|
18845
18846
|
rows: R = [],
|
|
18846
|
-
columns:
|
|
18847
|
+
columns: O = [],
|
|
18847
18848
|
globalSorts: H = [],
|
|
18848
|
-
filter:
|
|
18849
|
-
grandTotalPosition:
|
|
18849
|
+
filter: B = null,
|
|
18850
|
+
grandTotalPosition: P = null,
|
|
18850
18851
|
pageSize: N = 0
|
|
18851
18852
|
} = T;
|
|
18852
18853
|
let k = Array.isArray(R) ? [...R] : [];
|
|
18853
|
-
|
|
18854
|
+
P === "BOTTOM" && ((u0 = k.at(-1)) != null && u0.isRollup) && k.pop(), P === "TOP" && ((a0 = k[0]) != null && a0.isRollup) && k.shift();
|
|
18854
18855
|
let q = 0;
|
|
18855
|
-
for (const
|
|
18856
|
-
|
|
18857
|
-
const
|
|
18858
|
-
for (const
|
|
18859
|
-
const
|
|
18860
|
-
(
|
|
18861
|
-
), z =
|
|
18862
|
-
let
|
|
18863
|
-
|
|
18864
|
-
const
|
|
18865
|
-
for (const
|
|
18866
|
-
const
|
|
18867
|
-
|
|
18856
|
+
for (const Q of k)
|
|
18857
|
+
Q.isRollup && q++, Q.groupIndex = q;
|
|
18858
|
+
const U = {};
|
|
18859
|
+
for (const Q of O) U[Q.key] = Q.type === "NUMERIC";
|
|
18860
|
+
const W = H.filter(
|
|
18861
|
+
(Q) => Q.key && O.some((V) => V.key === Q.key)
|
|
18862
|
+
), z = W.length > 0;
|
|
18863
|
+
let i0 = R;
|
|
18864
|
+
B !== null && (i0 = i0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((V) => ((V == null ? void 0 : V.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...ke(Q, O), groupIndex: Q.groupIndex })));
|
|
18865
|
+
const j = {};
|
|
18866
|
+
for (const Q of i0) {
|
|
18867
|
+
const V = Q.groupIndex;
|
|
18868
|
+
V !== void 0 && (j[V] || (j[V] = [])).push(Q);
|
|
18868
18869
|
}
|
|
18869
|
-
z && Object.values(
|
|
18870
|
-
const
|
|
18871
|
-
|
|
18872
|
-
for (const { key:
|
|
18873
|
-
const
|
|
18874
|
-
if (
|
|
18875
|
-
const a = Number(
|
|
18876
|
-
if (a !== 0) return a *
|
|
18870
|
+
z && Object.values(j).forEach((Q) => {
|
|
18871
|
+
const V = Q.filter((K) => K.isRollup), r0 = Q.filter((K) => !K.isRollup);
|
|
18872
|
+
r0.sort((K, e0) => {
|
|
18873
|
+
for (const { key: G, type: n0 } of W) {
|
|
18874
|
+
const D0 = n0 === "ASC" ? 1 : -1, t0 = J0(K, G, O) ?? "", t = J0(e0, G, O) ?? "";
|
|
18875
|
+
if (U[G]) {
|
|
18876
|
+
const a = Number(t0) - Number(t);
|
|
18877
|
+
if (a !== 0) return a * D0;
|
|
18877
18878
|
} else {
|
|
18878
|
-
const a =
|
|
18879
|
-
if (a !== 0) return a *
|
|
18879
|
+
const a = ne.compare(String(t0), String(t));
|
|
18880
|
+
if (a !== 0) return a * D0;
|
|
18880
18881
|
}
|
|
18881
18882
|
}
|
|
18882
18883
|
return 0;
|
|
18883
|
-
}),
|
|
18884
|
+
}), j[Q[0].groupIndex] = V.concat(r0);
|
|
18884
18885
|
});
|
|
18885
|
-
let
|
|
18886
|
+
let Z;
|
|
18886
18887
|
if (z) {
|
|
18887
|
-
const
|
|
18888
|
-
const
|
|
18889
|
-
(
|
|
18888
|
+
const Q = P === null ? (() => {
|
|
18889
|
+
const K = Object.keys(j).find(
|
|
18890
|
+
(e0) => j[e0].some((G) => G.isRollup)
|
|
18890
18891
|
);
|
|
18891
|
-
return
|
|
18892
|
-
})() : -1,
|
|
18893
|
-
|
|
18894
|
-
if (!
|
|
18895
|
-
if (
|
|
18896
|
-
if (
|
|
18897
|
-
if (
|
|
18892
|
+
return K !== void 0 ? Number(K) : -1;
|
|
18893
|
+
})() : -1, V = ((s0 = W[0]) == null ? void 0 : s0.key) ?? ((l0 = O.find((K) => U[K.key])) == null ? void 0 : l0.key), r0 = ((d0 = W[0]) == null ? void 0 : d0.type) === "ASC" ? 1 : (((c0 = W[0]) == null ? void 0 : c0.type) === "DESC", -1);
|
|
18894
|
+
Z = Object.keys(j).map(Number).sort((K, e0) => {
|
|
18895
|
+
if (!V) return K - e0;
|
|
18896
|
+
if (Q !== -1) {
|
|
18897
|
+
if (K === Q) return -1;
|
|
18898
|
+
if (e0 === Q) return 1;
|
|
18898
18899
|
}
|
|
18899
|
-
const
|
|
18900
|
-
return
|
|
18900
|
+
const G = j[K].find((t) => t.isRollup), n0 = j[e0].find((t) => t.isRollup), D0 = G ? J0(G, V, O) ?? "" : "", t0 = n0 ? J0(n0, V, O) ?? "" : "";
|
|
18901
|
+
return U[V] ? (Number(D0) - Number(t0)) * r0 : ne.compare(String(D0), String(t0)) * r0;
|
|
18901
18902
|
});
|
|
18902
18903
|
} else
|
|
18903
|
-
|
|
18904
|
-
const
|
|
18905
|
-
for (const
|
|
18906
|
-
for (const { groupIndex:
|
|
18907
|
-
|
|
18904
|
+
Z = Object.keys(j).map(Number).sort((Q, V) => Q - V);
|
|
18905
|
+
const X = [];
|
|
18906
|
+
for (const Q of Z)
|
|
18907
|
+
for (const { groupIndex: V, ...r0 } of j[Q])
|
|
18908
|
+
X.push(r0);
|
|
18908
18909
|
if (N > 0) {
|
|
18909
|
-
const
|
|
18910
|
-
let
|
|
18911
|
-
|
|
18910
|
+
const Q = X.length % N;
|
|
18911
|
+
let V = 0;
|
|
18912
|
+
Q > 0 ? V = N - Q : X.length === 0 && (V = N), V > 0 && X.push(...Ue(V, O));
|
|
18912
18913
|
}
|
|
18913
|
-
return { data:
|
|
18914
|
+
return { data: X };
|
|
18914
18915
|
}
|
|
18915
|
-
var
|
|
18916
|
-
const
|
|
18917
|
-
var
|
|
18918
|
-
...
|
|
18919
|
-
...
|
|
18920
|
-
...
|
|
18921
|
-
},
|
|
18922
|
-
function
|
|
18916
|
+
var Qe = { processTableData: qe };
|
|
18917
|
+
const Xe = He, Ve = Ne, Ge = Qe;
|
|
18918
|
+
var Z0 = {
|
|
18919
|
+
...Ge,
|
|
18920
|
+
...Ve,
|
|
18921
|
+
...Xe
|
|
18922
|
+
}, Y0 = /* @__PURE__ */ ((T) => (T.DateTime = "DATE_TIME", T.Hour = "HOUR", T.Day = "DAY", T.Week = "WEEK", T.Month = "MONTH", T.TimeOfDay = "TIME_OF_DAY", T.HourOfDay = "HOUR_OF_DAY", T.DayOfWeek = "DAY_OF_WEEK", T.DayOfMonth = "DAY_OF_MONTH", T.MonthOfYear = "MONTH_OF_YEAR", T.Year = "YEAR", T.YearMonthDay = "YEAR_MONTH_DAY", T))(Y0 || {}), ze = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(ze || {}), j0 = /* @__PURE__ */ ((T) => (T.Equal = "EQUAL", T.NotEqual = "NOT_EQUAL", T.GreaterThan = "GREATER_THAN", T.LessThan = "LESS_THAN", T.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", T.LessThanOrEqual = "LESS_THAN_OR_EQUAL", T.Between = "BETWEEN", T.Like = "LIKE", T.NotLike = "NOT_LIKE", T.And = "AND", T.Or = "OR", T))(j0 || {}), We = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(We || {}), Ye = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(Ye || {}), je = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(je || {}), Ke = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(Ke || {}), Ze = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(Ze || {});
|
|
18923
|
+
function kt(T) {
|
|
18923
18924
|
switch (T) {
|
|
18924
18925
|
case "excel":
|
|
18925
18926
|
return "Excel";
|
|
@@ -18933,7 +18934,7 @@ function ht(T) {
|
|
|
18933
18934
|
return "Unknown";
|
|
18934
18935
|
}
|
|
18935
18936
|
}
|
|
18936
|
-
function
|
|
18937
|
+
function Ut(T) {
|
|
18937
18938
|
switch (T) {
|
|
18938
18939
|
case "landscape":
|
|
18939
18940
|
return "report.common.landscape";
|
|
@@ -18943,85 +18944,85 @@ function St(T) {
|
|
|
18943
18944
|
return "report.input.unknown";
|
|
18944
18945
|
}
|
|
18945
18946
|
}
|
|
18946
|
-
const
|
|
18947
|
-
const { businessId: T } =
|
|
18947
|
+
const I0 = "/report-settings", et = async () => {
|
|
18948
|
+
const { businessId: T } = p0(m0());
|
|
18948
18949
|
if (T) {
|
|
18949
18950
|
const R = {
|
|
18950
|
-
fetchType:
|
|
18951
|
-
url: `${
|
|
18951
|
+
fetchType: y0.Get,
|
|
18952
|
+
url: `${I0}/${T.value}/reports`
|
|
18952
18953
|
};
|
|
18953
|
-
return
|
|
18954
|
+
return g0.fetch(R);
|
|
18954
18955
|
} else
|
|
18955
18956
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18956
|
-
},
|
|
18957
|
-
const { businessId: R } =
|
|
18958
|
-
fetchType:
|
|
18959
|
-
url: `${
|
|
18957
|
+
}, tt = (T) => {
|
|
18958
|
+
const { businessId: R } = p0(m0()), O = {
|
|
18959
|
+
fetchType: y0.Put,
|
|
18960
|
+
url: `${I0}/${R.value}/reports/${T.id}`,
|
|
18960
18961
|
data: T
|
|
18961
18962
|
};
|
|
18962
|
-
return
|
|
18963
|
-
},
|
|
18964
|
-
const { businessId: R } =
|
|
18965
|
-
fetchType:
|
|
18966
|
-
url: `${
|
|
18963
|
+
return g0.fetch(O);
|
|
18964
|
+
}, rt = (T) => {
|
|
18965
|
+
const { businessId: R } = p0(m0()), O = {
|
|
18966
|
+
fetchType: y0.Post,
|
|
18967
|
+
url: `${I0}/${R.value}/reports`,
|
|
18967
18968
|
data: T
|
|
18968
18969
|
};
|
|
18969
|
-
return
|
|
18970
|
-
},
|
|
18971
|
-
const { businessId: R } =
|
|
18972
|
-
fetchType:
|
|
18973
|
-
url: `${
|
|
18970
|
+
return g0.fetch(O);
|
|
18971
|
+
}, nt = (T) => {
|
|
18972
|
+
const { businessId: R } = p0(m0()), O = {
|
|
18973
|
+
fetchType: y0.Delete,
|
|
18974
|
+
url: `${I0}/${R.value}/reports/${T.id}`
|
|
18974
18975
|
};
|
|
18975
|
-
return
|
|
18976
|
-
},
|
|
18977
|
-
const { businessId: R } =
|
|
18978
|
-
fetchType:
|
|
18979
|
-
url: `${
|
|
18976
|
+
return g0.fetch(O);
|
|
18977
|
+
}, it = (T) => {
|
|
18978
|
+
const { businessId: R } = p0(m0()), O = {
|
|
18979
|
+
fetchType: y0.Put,
|
|
18980
|
+
url: `${I0}/${R.value}/reports/default`,
|
|
18980
18981
|
data: { defaultReport: T }
|
|
18981
18982
|
};
|
|
18982
|
-
return
|
|
18983
|
-
},
|
|
18984
|
-
const { businessId: T } =
|
|
18983
|
+
return g0.fetch(O);
|
|
18984
|
+
}, ut = async () => {
|
|
18985
|
+
const { businessId: T } = p0(m0());
|
|
18985
18986
|
if (T) {
|
|
18986
18987
|
const R = {
|
|
18987
|
-
fetchType:
|
|
18988
|
-
url: `${
|
|
18988
|
+
fetchType: y0.Get,
|
|
18989
|
+
url: `${I0}/${T.value}/overview-report`
|
|
18989
18990
|
};
|
|
18990
|
-
return
|
|
18991
|
+
return g0.fetch(R);
|
|
18991
18992
|
} else
|
|
18992
18993
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18993
|
-
},
|
|
18994
|
-
const { businessId: T } =
|
|
18994
|
+
}, at = async () => {
|
|
18995
|
+
const { businessId: T } = p0(m0());
|
|
18995
18996
|
if (T) {
|
|
18996
18997
|
const R = {
|
|
18997
|
-
fetchType:
|
|
18998
|
-
url: `${
|
|
18998
|
+
fetchType: y0.Get,
|
|
18999
|
+
url: `${I0}/${T.value}/config`
|
|
18999
19000
|
};
|
|
19000
|
-
return
|
|
19001
|
+
return g0.fetch(R);
|
|
19001
19002
|
} else
|
|
19002
19003
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
19003
|
-
},
|
|
19004
|
-
const { businessId: T } =
|
|
19004
|
+
}, ot = "/report-settings", st = async () => {
|
|
19005
|
+
const { businessId: T } = p0(m0());
|
|
19005
19006
|
if (T) {
|
|
19006
19007
|
const R = {
|
|
19007
|
-
fetchType:
|
|
19008
|
-
url: `${
|
|
19008
|
+
fetchType: y0.Get,
|
|
19009
|
+
url: `${ot}/${T.value}/categories`
|
|
19009
19010
|
};
|
|
19010
|
-
return
|
|
19011
|
+
return g0.fetch(R);
|
|
19011
19012
|
} else
|
|
19012
19013
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
19013
19014
|
};
|
|
19014
|
-
function
|
|
19015
|
-
const
|
|
19016
|
-
return
|
|
19015
|
+
function G0(T, R = {}) {
|
|
19016
|
+
const O = localStorage.getItem(T);
|
|
19017
|
+
return O === null && (R == null ? void 0 : R.fallback) !== void 0 ? R.fallback : O === null ? null : R.format ? R.format(O) : O;
|
|
19017
19018
|
}
|
|
19018
|
-
const
|
|
19019
|
-
get:
|
|
19020
|
-
getJson: (T) =>
|
|
19019
|
+
const v0 = {
|
|
19020
|
+
get: G0,
|
|
19021
|
+
getJson: (T) => G0(T, {
|
|
19021
19022
|
fallback: {},
|
|
19022
19023
|
format: (R) => JSON.parse(R)
|
|
19023
19024
|
}),
|
|
19024
|
-
getNumber: (T) =>
|
|
19025
|
+
getNumber: (T) => G0(T, {
|
|
19025
19026
|
fallback: null,
|
|
19026
19027
|
format: (R) => Number(R)
|
|
19027
19028
|
}),
|
|
@@ -19029,17 +19030,17 @@ const I0 = {
|
|
|
19029
19030
|
setJson: (T, R) => {
|
|
19030
19031
|
localStorage.setItem(T, JSON.stringify(R));
|
|
19031
19032
|
}
|
|
19032
|
-
},
|
|
19033
|
+
}, lt = () => {
|
|
19033
19034
|
const T = {
|
|
19034
|
-
fetchType:
|
|
19035
|
+
fetchType: y0.Get,
|
|
19035
19036
|
url: "/schemas"
|
|
19036
19037
|
};
|
|
19037
|
-
return
|
|
19038
|
-
},
|
|
19039
|
-
const T =
|
|
19040
|
-
async function
|
|
19038
|
+
return g0.fetch(T);
|
|
19039
|
+
}, _t = "mf-reportschema-store", Dt = P0(_t, () => {
|
|
19040
|
+
const T = o0([]), R = De();
|
|
19041
|
+
async function O() {
|
|
19041
19042
|
try {
|
|
19042
|
-
T.value = await
|
|
19043
|
+
T.value = await lt();
|
|
19043
19044
|
} catch (H) {
|
|
19044
19045
|
console.log(H), R.open({
|
|
19045
19046
|
title: "Get Schema Error",
|
|
@@ -19050,22 +19051,22 @@ const I0 = {
|
|
|
19050
19051
|
}
|
|
19051
19052
|
return {
|
|
19052
19053
|
schemas: T,
|
|
19053
|
-
getSchema:
|
|
19054
|
+
getSchema: O
|
|
19054
19055
|
};
|
|
19055
|
-
}),
|
|
19056
|
-
const { business: T, globalFilters: R } =
|
|
19056
|
+
}), dt = "mf-reportreport-store", ee = P0(dt, () => {
|
|
19057
|
+
const { business: T, globalFilters: R } = p0(k0()), { schemas: O } = p0(Dt()), { flags: H } = p0(Ee()), B = o0([]), P = o0([]), N = o0(0), k = De(), q = C0(() => B.value.filter((A) => A.editable)), U = C0(() => B.value.filter((A) => !A.editable)), W = o0(!1), z = o0(""), i0 = o0(), j = o0(), Z = C0(() => {
|
|
19057
19058
|
const A = H.value.find(
|
|
19058
|
-
(f) => f.key ===
|
|
19059
|
+
(f) => f.key === Te.report_portal_integration_custom_report
|
|
19059
19060
|
);
|
|
19060
19061
|
return typeof (A == null ? void 0 : A.value) == "number" ? A.value : null;
|
|
19061
|
-
}),
|
|
19062
|
-
async function
|
|
19063
|
-
return
|
|
19062
|
+
}), X = C0(() => Z.value === null ? !0 : Z.value - q.value.length > 0);
|
|
19063
|
+
async function u0() {
|
|
19064
|
+
return j.value = await ut(), j.value;
|
|
19064
19065
|
}
|
|
19065
|
-
async function
|
|
19066
|
+
async function a0() {
|
|
19066
19067
|
var A;
|
|
19067
19068
|
try {
|
|
19068
|
-
|
|
19069
|
+
B.value = await et(), P.value = await st(), B.value.find((r) => r.id === z.value) || (z.value = ((A = B.value.find((r) => r.isDefault)) == null ? void 0 : A.id) || B.value[0].id);
|
|
19069
19070
|
} catch (f) {
|
|
19070
19071
|
console.log(f), k.open({
|
|
19071
19072
|
title: "Report Fetch Error",
|
|
@@ -19074,12 +19075,12 @@ const I0 = {
|
|
|
19074
19075
|
});
|
|
19075
19076
|
}
|
|
19076
19077
|
}
|
|
19077
|
-
const s0 =
|
|
19078
|
-
() =>
|
|
19078
|
+
const s0 = C0(
|
|
19079
|
+
() => B.value.find((A) => A.id === z.value)
|
|
19079
19080
|
);
|
|
19080
|
-
function
|
|
19081
|
+
function l0(A) {
|
|
19081
19082
|
var r;
|
|
19082
|
-
const f = (r =
|
|
19083
|
+
const f = (r = O.value.find((e) => e.name === A.schemaName)) == null ? void 0 : r.fields.find((e) => e.name === A.name);
|
|
19083
19084
|
return f == null ? void 0 : f.type;
|
|
19084
19085
|
}
|
|
19085
19086
|
U0(
|
|
@@ -19090,33 +19091,32 @@ const I0 = {
|
|
|
19090
19091
|
(A) => {
|
|
19091
19092
|
R.value = (A ?? []).map((f) => ({
|
|
19092
19093
|
...f,
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
type: c0(f)
|
|
19094
|
+
values: Array.isArray(f.values) ? [...f.values] : [],
|
|
19095
|
+
type: l0(f)
|
|
19096
19096
|
}));
|
|
19097
19097
|
},
|
|
19098
19098
|
{ deep: !0 }
|
|
19099
19099
|
);
|
|
19100
|
-
const
|
|
19101
|
-
async function
|
|
19100
|
+
const d0 = o0(), c0 = o0(0), Q = o0(), V = o0(null), r0 = o0(null), K = o0(!1), e0 = o0(!1), G = o0(!1);
|
|
19101
|
+
async function n0(A) {
|
|
19102
19102
|
const f = q.value.findIndex((e) => e.id === A.id);
|
|
19103
19103
|
let r;
|
|
19104
|
-
return f >= 0 ? r = await
|
|
19104
|
+
return f >= 0 ? r = await tt(A) : r = await rt(A), t(r.id), await a0(), r;
|
|
19105
19105
|
}
|
|
19106
|
-
async function
|
|
19107
|
-
await
|
|
19106
|
+
async function D0(A) {
|
|
19107
|
+
await nt(A), await a0();
|
|
19108
19108
|
}
|
|
19109
|
-
async function
|
|
19110
|
-
await
|
|
19109
|
+
async function t0(A) {
|
|
19110
|
+
await it(A), await a0();
|
|
19111
19111
|
}
|
|
19112
19112
|
function t(A) {
|
|
19113
19113
|
z.value = A;
|
|
19114
19114
|
}
|
|
19115
|
-
const a =
|
|
19115
|
+
const a = o0(null);
|
|
19116
19116
|
function _() {
|
|
19117
19117
|
var A;
|
|
19118
19118
|
if ((A = T.value) != null && A._id) {
|
|
19119
|
-
const f =
|
|
19119
|
+
const f = v0.getJson("pinReport")[T.value._id];
|
|
19120
19120
|
if ((f == null ? void 0 : f.length) > 0) {
|
|
19121
19121
|
a.value = f;
|
|
19122
19122
|
return;
|
|
@@ -19127,56 +19127,56 @@ const I0 = {
|
|
|
19127
19127
|
function $(A) {
|
|
19128
19128
|
var f;
|
|
19129
19129
|
if (T.value && A) {
|
|
19130
|
-
const r =
|
|
19131
|
-
r[(f = T.value) == null ? void 0 : f._id] ? r[T.value._id].push(A.id) : r[T.value._id] = [A.id],
|
|
19130
|
+
const r = v0.getJson("pinReport");
|
|
19131
|
+
r[(f = T.value) == null ? void 0 : f._id] ? r[T.value._id].push(A.id) : r[T.value._id] = [A.id], v0.setJson("pinReport", r), _();
|
|
19132
19132
|
}
|
|
19133
19133
|
}
|
|
19134
19134
|
function S(A) {
|
|
19135
19135
|
if (T.value) {
|
|
19136
|
-
const f =
|
|
19136
|
+
const f = v0.getJson("pinReport");
|
|
19137
19137
|
f[T.value._id].length === 1 ? f[T.value._id] = [] : f[T.value._id] = f[T.value._id].filter(
|
|
19138
19138
|
(r) => r !== A
|
|
19139
|
-
),
|
|
19139
|
+
), v0.setJson("pinReport", f), _();
|
|
19140
19140
|
}
|
|
19141
19141
|
}
|
|
19142
19142
|
async function C() {
|
|
19143
|
-
return await
|
|
19143
|
+
return await at();
|
|
19144
19144
|
}
|
|
19145
19145
|
return {
|
|
19146
|
-
isOpenDownloadDialog:
|
|
19147
|
-
isOpenFeedbackDialog:
|
|
19148
|
-
isOpenEmailDialog:
|
|
19149
|
-
currentSelectWidgetType:
|
|
19150
|
-
reports:
|
|
19151
|
-
categories:
|
|
19146
|
+
isOpenDownloadDialog: K,
|
|
19147
|
+
isOpenFeedbackDialog: e0,
|
|
19148
|
+
isOpenEmailDialog: G,
|
|
19149
|
+
currentSelectWidgetType: i0,
|
|
19150
|
+
reports: B,
|
|
19151
|
+
categories: P,
|
|
19152
19152
|
currentReport: s0,
|
|
19153
|
-
editingReport:
|
|
19154
|
-
editingTileIndex:
|
|
19155
|
-
editingTile:
|
|
19156
|
-
editingGlobalFilterIndex:
|
|
19157
|
-
editingGlobalFilter:
|
|
19153
|
+
editingReport: d0,
|
|
19154
|
+
editingTileIndex: c0,
|
|
19155
|
+
editingTile: Q,
|
|
19156
|
+
editingGlobalFilterIndex: V,
|
|
19157
|
+
editingGlobalFilter: r0,
|
|
19158
19158
|
currentReportId: z,
|
|
19159
19159
|
editableReports: q,
|
|
19160
|
-
nonEditableReports:
|
|
19161
|
-
isOpenAddReportDialog:
|
|
19162
|
-
overviewReport:
|
|
19160
|
+
nonEditableReports: U,
|
|
19161
|
+
isOpenAddReportDialog: W,
|
|
19162
|
+
overviewReport: j,
|
|
19163
19163
|
pinReport: a,
|
|
19164
19164
|
scrollPositionY: N,
|
|
19165
|
-
customReportQuota:
|
|
19166
|
-
canCreateCustomReport:
|
|
19167
|
-
createOrUpdateReport:
|
|
19168
|
-
removeReport:
|
|
19165
|
+
customReportQuota: Z,
|
|
19166
|
+
canCreateCustomReport: X,
|
|
19167
|
+
createOrUpdateReport: n0,
|
|
19168
|
+
removeReport: D0,
|
|
19169
19169
|
updateCurrentReportId: t,
|
|
19170
|
-
getReports:
|
|
19171
|
-
updateDefaultReport:
|
|
19172
|
-
getOverviewReport:
|
|
19170
|
+
getReports: a0,
|
|
19171
|
+
updateDefaultReport: t0,
|
|
19172
|
+
getOverviewReport: u0,
|
|
19173
19173
|
refreshPinReport: _,
|
|
19174
19174
|
cachePinReport: $,
|
|
19175
19175
|
clearPinReport: S,
|
|
19176
19176
|
getReportConfig: C
|
|
19177
19177
|
};
|
|
19178
|
-
}),
|
|
19179
|
-
const { disabled: T } =
|
|
19178
|
+
}), ct = "mf-reportnavigation", $e = P0(ct, () => {
|
|
19179
|
+
const { disabled: T } = p0(Ce()), R = o0("v5"), O = o0(!1), H = C0(() => {
|
|
19180
19180
|
const k = [
|
|
19181
19181
|
{
|
|
19182
19182
|
label: "overview",
|
|
@@ -19192,7 +19192,7 @@ const I0 = {
|
|
|
19192
19192
|
label: "insight",
|
|
19193
19193
|
value: "insight",
|
|
19194
19194
|
route: "insights",
|
|
19195
|
-
badge: () =>
|
|
19195
|
+
badge: () => Ie(we.FmPill, { variant: "beta" })
|
|
19196
19196
|
},
|
|
19197
19197
|
{
|
|
19198
19198
|
label: "setting",
|
|
@@ -19205,165 +19205,165 @@ const I0 = {
|
|
|
19205
19205
|
value: "integration",
|
|
19206
19206
|
route: "integrations"
|
|
19207
19207
|
}), k;
|
|
19208
|
-
}),
|
|
19208
|
+
}), B = o0(""), { currentRoute: P } = ve();
|
|
19209
19209
|
function N(k) {
|
|
19210
19210
|
switch (k.name) {
|
|
19211
19211
|
case "report":
|
|
19212
19212
|
case "reports":
|
|
19213
|
-
|
|
19213
|
+
B.value = "report";
|
|
19214
19214
|
break;
|
|
19215
19215
|
case "overview":
|
|
19216
|
-
|
|
19216
|
+
B.value = "overview";
|
|
19217
19217
|
break;
|
|
19218
19218
|
case "setting":
|
|
19219
|
-
|
|
19219
|
+
B.value = "setting";
|
|
19220
19220
|
break;
|
|
19221
19221
|
case "insights":
|
|
19222
|
-
|
|
19222
|
+
B.value = "insight";
|
|
19223
19223
|
break;
|
|
19224
19224
|
case "integration":
|
|
19225
19225
|
case "integrations":
|
|
19226
|
-
|
|
19226
|
+
B.value = "integration";
|
|
19227
19227
|
break;
|
|
19228
19228
|
}
|
|
19229
19229
|
}
|
|
19230
19230
|
return U0(
|
|
19231
|
-
|
|
19231
|
+
P,
|
|
19232
19232
|
(k) => {
|
|
19233
19233
|
N(k);
|
|
19234
19234
|
},
|
|
19235
19235
|
{ immediate: !0 }
|
|
19236
19236
|
), {
|
|
19237
|
-
selectedNavigationTab:
|
|
19237
|
+
selectedNavigationTab: B,
|
|
19238
19238
|
navigationTabs: H,
|
|
19239
19239
|
version: R,
|
|
19240
|
-
suppressReportRouteSync:
|
|
19240
|
+
suppressReportRouteSync: O
|
|
19241
19241
|
};
|
|
19242
19242
|
});
|
|
19243
|
-
var
|
|
19244
|
-
const
|
|
19245
|
-
function
|
|
19243
|
+
var ye = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(ye || {});
|
|
19244
|
+
const pt = "/assets/formatChartData.worker-CO5zKPH5.js", z0 = /* @__PURE__ */ new Map();
|
|
19245
|
+
function ie(T) {
|
|
19246
19246
|
return new Worker(T, { type: "module" });
|
|
19247
19247
|
}
|
|
19248
|
-
async function
|
|
19249
|
-
if (
|
|
19250
|
-
return
|
|
19248
|
+
async function ft(T) {
|
|
19249
|
+
if (z0.has(T))
|
|
19250
|
+
return ie(z0.get(T));
|
|
19251
19251
|
let R = T;
|
|
19252
19252
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
19253
|
-
const
|
|
19253
|
+
const B = new URL(T.replace(/^\//, ""), import.meta.url).href, P = await fetch(B).then((k) => k.text()), N = new Blob([P], { type: "application/javascript" });
|
|
19254
19254
|
R = URL.createObjectURL(N);
|
|
19255
19255
|
}
|
|
19256
|
-
const H =
|
|
19257
|
-
return
|
|
19256
|
+
const H = ie(R);
|
|
19257
|
+
return z0.set(T, R), H;
|
|
19258
19258
|
}
|
|
19259
|
-
async function
|
|
19260
|
-
const
|
|
19261
|
-
return
|
|
19262
|
-
|
|
19263
|
-
const
|
|
19264
|
-
|
|
19259
|
+
async function $t(T, R) {
|
|
19260
|
+
const O = await ft(T);
|
|
19261
|
+
return O.postMessage(R), await new Promise((H) => {
|
|
19262
|
+
O.onmessage = async (B) => {
|
|
19263
|
+
const P = B.data;
|
|
19264
|
+
O.terminate(), H(P);
|
|
19265
19265
|
};
|
|
19266
19266
|
});
|
|
19267
19267
|
}
|
|
19268
|
-
const
|
|
19269
|
-
const T =
|
|
19270
|
-
function R(
|
|
19271
|
-
var
|
|
19268
|
+
const yt = "mf-reportwidget-size", ge = P0(yt, () => {
|
|
19269
|
+
const T = o0([]);
|
|
19270
|
+
function R(O, H) {
|
|
19271
|
+
var B;
|
|
19272
19272
|
try {
|
|
19273
|
-
if (!
|
|
19274
|
-
let
|
|
19275
|
-
const N =
|
|
19273
|
+
if (!O) return;
|
|
19274
|
+
let P;
|
|
19275
|
+
const N = O.$el, k = (B = N == null ? void 0 : N.querySelector) == null ? void 0 : B.call(N, "canvas");
|
|
19276
19276
|
if (k) {
|
|
19277
19277
|
const q = k.getBoundingClientRect();
|
|
19278
|
-
|
|
19278
|
+
P = { width: Math.round(q.width), height: Math.round(q.height) };
|
|
19279
19279
|
}
|
|
19280
|
-
if (
|
|
19281
|
-
return typeof H == "number" && (T.value[H] =
|
|
19282
|
-
} catch (
|
|
19283
|
-
console.log(
|
|
19280
|
+
if (P && P.width > 0 && P.height > 0)
|
|
19281
|
+
return typeof H == "number" && (T.value[H] = P), P;
|
|
19282
|
+
} catch (P) {
|
|
19283
|
+
console.log(P);
|
|
19284
19284
|
}
|
|
19285
19285
|
}
|
|
19286
19286
|
return { sizes: T, extractChartSize: R };
|
|
19287
|
-
}),
|
|
19288
|
-
const T =
|
|
19289
|
-
function R(
|
|
19290
|
-
if (
|
|
19291
|
-
const N = Array.isArray(
|
|
19287
|
+
}), gt = "mf-reportreport-sort-store", me = P0(gt, () => {
|
|
19288
|
+
const T = o0([]);
|
|
19289
|
+
function R(B, P) {
|
|
19290
|
+
if (B == null) return;
|
|
19291
|
+
const N = Array.isArray(P) ? P.filter((U) => U && U.key) : [], k = T.value.findIndex((U) => U.tileIndex === B), q = { tileIndex: B, sorts: N };
|
|
19292
19292
|
k !== -1 ? T.value.splice(k, 1, q) : T.value.push(q);
|
|
19293
19293
|
}
|
|
19294
|
-
function
|
|
19295
|
-
var
|
|
19296
|
-
return
|
|
19294
|
+
function O(B) {
|
|
19295
|
+
var P;
|
|
19296
|
+
return B == null ? [] : ((P = T.value.find((N) => N.tileIndex === B)) == null ? void 0 : P.sorts) ?? [];
|
|
19297
19297
|
}
|
|
19298
|
-
function H(
|
|
19299
|
-
typeof
|
|
19298
|
+
function H(B) {
|
|
19299
|
+
typeof B == "number" ? T.value = T.value.filter((P) => P.tileIndex !== B) : T.value = [];
|
|
19300
19300
|
}
|
|
19301
|
-
return { tileSort: T, setTileSorts: R, getTileSorts:
|
|
19301
|
+
return { tileSort: T, setTileSorts: R, getTileSorts: O, clearTileSorts: H };
|
|
19302
19302
|
});
|
|
19303
|
-
|
|
19304
|
-
async function
|
|
19305
|
-
for (let
|
|
19303
|
+
h0.extend(be);
|
|
19304
|
+
async function mt(T, R) {
|
|
19305
|
+
for (let O = 0; O < T.length; O++)
|
|
19306
19306
|
try {
|
|
19307
|
-
return await T[
|
|
19307
|
+
return await T[O]();
|
|
19308
19308
|
} catch (H) {
|
|
19309
|
-
if (H.message === "Unauthorized" ||
|
|
19310
|
-
await new Promise((
|
|
19309
|
+
if (H.message === "Unauthorized" || O === T.length - 1) throw H;
|
|
19310
|
+
await new Promise((B) => setTimeout(B, R));
|
|
19311
19311
|
}
|
|
19312
19312
|
throw new Error("No callback");
|
|
19313
19313
|
}
|
|
19314
|
-
const
|
|
19315
|
-
var s0,
|
|
19316
|
-
const { businessId: H, country:
|
|
19314
|
+
const qt = async (T, R, O) => {
|
|
19315
|
+
var s0, l0, d0, c0;
|
|
19316
|
+
const { businessId: H, country: B } = p0(m0()), { currentReport: P } = ee(), {
|
|
19317
19317
|
selectedRestaurantIds: N,
|
|
19318
19318
|
selectedWarehouseIds: k,
|
|
19319
19319
|
selectedLocationIds: q,
|
|
19320
|
-
dateRange:
|
|
19321
|
-
compareDateRange:
|
|
19320
|
+
dateRange: U,
|
|
19321
|
+
compareDateRange: W,
|
|
19322
19322
|
timeRange: z,
|
|
19323
|
-
globalFilters:
|
|
19324
|
-
timezone:
|
|
19325
|
-
} =
|
|
19323
|
+
globalFilters: i0,
|
|
19324
|
+
timezone: j
|
|
19325
|
+
} = k0();
|
|
19326
19326
|
if (q.length === 0)
|
|
19327
19327
|
return null;
|
|
19328
|
-
const
|
|
19329
|
-
fetchType:
|
|
19328
|
+
const Z = te(T, i0, O ?? ""), X = {
|
|
19329
|
+
fetchType: y0.Post,
|
|
19330
19330
|
url: `/${H.value}/postgres-query`,
|
|
19331
|
-
data:
|
|
19332
|
-
widget:
|
|
19333
|
-
dateRange: [
|
|
19334
|
-
compareDateRange:
|
|
19331
|
+
data: Z0.getQueryRequests({
|
|
19332
|
+
widget: Z,
|
|
19333
|
+
dateRange: [U.startDate, U.endDate],
|
|
19334
|
+
compareDateRange: W.startDate && W.endDate ? [W.startDate, W.endDate] : void 0,
|
|
19335
19335
|
timeRange: [
|
|
19336
|
-
|
|
19337
|
-
|
|
19336
|
+
h0().tz(j).set("hour", Number((s0 = z.start) == null ? void 0 : s0.hour)).set("minute", Number((l0 = z.start) == null ? void 0 : l0.minute)).toISOString(),
|
|
19337
|
+
h0().tz(j).set("hour", Number((d0 = z.end) == null ? void 0 : d0.hour)).set("minute", Number((c0 = z.end) == null ? void 0 : c0.minute)).toISOString()
|
|
19338
19338
|
],
|
|
19339
19339
|
businessIds: H.value ? [H.value] : [],
|
|
19340
19340
|
restaurantIds: N,
|
|
19341
19341
|
warehouseIds: k,
|
|
19342
|
-
timezone:
|
|
19343
|
-
}).map((
|
|
19344
|
-
const
|
|
19342
|
+
timezone: j
|
|
19343
|
+
}).map((Q, V) => {
|
|
19344
|
+
const r0 = V === 0 ? 3e3 : 12e3;
|
|
19345
19345
|
return {
|
|
19346
|
-
...
|
|
19347
|
-
limit: N.length > 50 ? T.config.limit ||
|
|
19348
|
-
skipStringSpaceGrouping: !!(
|
|
19349
|
-
reportId:
|
|
19346
|
+
...Q,
|
|
19347
|
+
limit: N.length > 50 ? T.config.limit || r0 : T.config.limit,
|
|
19348
|
+
skipStringSpaceGrouping: !!(P != null && P.batch),
|
|
19349
|
+
reportId: P == null ? void 0 : P.id
|
|
19350
19350
|
};
|
|
19351
19351
|
}),
|
|
19352
19352
|
requestConfig: {
|
|
19353
19353
|
timeout: 1e3 * 60 * 5,
|
|
19354
19354
|
signal: R
|
|
19355
19355
|
}
|
|
19356
|
-
},
|
|
19357
|
-
N.length < 50 &&
|
|
19358
|
-
const
|
|
19359
|
-
return (await
|
|
19360
|
-
responses:
|
|
19356
|
+
}, u0 = [() => g0.fetch(X)];
|
|
19357
|
+
N.length < 50 && u0.push(() => g0.fetch(X)), u0.push(() => (X.url = X.url.replace("postgres-query", "query"), g0.fetch(X)));
|
|
19358
|
+
const a0 = await mt(u0, 2e3);
|
|
19359
|
+
return (await $t(pt, {
|
|
19360
|
+
responses: a0,
|
|
19361
19361
|
widget: JSON.parse(JSON.stringify(T)),
|
|
19362
|
-
country:
|
|
19363
|
-
timezone:
|
|
19362
|
+
country: B.value,
|
|
19363
|
+
timezone: j
|
|
19364
19364
|
})).data;
|
|
19365
19365
|
};
|
|
19366
|
-
function
|
|
19366
|
+
function he(T) {
|
|
19367
19367
|
const R = T.config;
|
|
19368
19368
|
return {
|
|
19369
19369
|
showTitle: R.showTitle,
|
|
@@ -19394,249 +19394,446 @@ function le(T) {
|
|
|
19394
19394
|
legendMaxWidth: R.legendMaxWidth
|
|
19395
19395
|
};
|
|
19396
19396
|
}
|
|
19397
|
-
function
|
|
19397
|
+
function Se(T) {
|
|
19398
19398
|
const R = T.config;
|
|
19399
19399
|
return {
|
|
19400
19400
|
rowHeight: R.rowHeight,
|
|
19401
19401
|
colWidths: R.colWidths
|
|
19402
19402
|
};
|
|
19403
19403
|
}
|
|
19404
|
-
const
|
|
19404
|
+
const Qt = async ({
|
|
19405
19405
|
reportType: T,
|
|
19406
19406
|
index: R,
|
|
19407
|
-
orientationTypes:
|
|
19407
|
+
orientationTypes: O,
|
|
19408
19408
|
isCombinedLocationLayout: H,
|
|
19409
|
-
locationIds:
|
|
19410
|
-
timeRange:
|
|
19409
|
+
locationIds: B,
|
|
19410
|
+
timeRange: P,
|
|
19411
19411
|
dateRange: N
|
|
19412
19412
|
}) => {
|
|
19413
|
-
const { businessId: k } =
|
|
19414
|
-
let
|
|
19415
|
-
|
|
19416
|
-
const
|
|
19417
|
-
fetchType:
|
|
19418
|
-
url: `/${k.value}/file?lang=${
|
|
19413
|
+
const { businessId: k } = p0(m0()), { restaurants: q, warehouses: U, globalFilters: W, timezone: z } = k0(), { currentReport: i0, overviewReport: j } = ee(), { selectedNavigationTab: Z } = $e(), { sizes: X } = ge(), { getTileSorts: u0 } = me();
|
|
19414
|
+
let a0 = i0 == null ? void 0 : i0.id, s0 = (i0 == null ? void 0 : i0.tiles) ?? [];
|
|
19415
|
+
Z === "overview" && j && (a0 = j == null ? void 0 : j.id, s0 = (j == null ? void 0 : j.tiles) ?? []);
|
|
19416
|
+
const l0 = s0.filter((e0, G) => typeof R == "number" ? G === R : !0).map((e0) => te(e0.widget, W, e0.id)), d0 = {
|
|
19417
|
+
fetchType: y0.Post,
|
|
19418
|
+
url: `/${k.value}/file?lang=${F0()}`,
|
|
19419
19419
|
data: {
|
|
19420
19420
|
configs: [
|
|
19421
|
-
...
|
|
19422
|
-
var
|
|
19423
|
-
const
|
|
19421
|
+
...l0.map((e0, G) => {
|
|
19422
|
+
var D0, t0, t, a;
|
|
19423
|
+
const n0 = X[R ?? G];
|
|
19424
19424
|
return {
|
|
19425
|
-
requests:
|
|
19426
|
-
widget:
|
|
19425
|
+
requests: Z0.getQueryRequests({
|
|
19426
|
+
widget: e0,
|
|
19427
19427
|
dateRange: [N.startDate, N.endDate],
|
|
19428
19428
|
timeRange: [
|
|
19429
|
-
|
|
19430
|
-
|
|
19429
|
+
h0().tz(z).set("hour", Number((D0 = P.start) == null ? void 0 : D0.hour)).set("minute", Number((t0 = P.start) == null ? void 0 : t0.minute)).toISOString(),
|
|
19430
|
+
h0().tz(z).set("hour", Number((t = P.end) == null ? void 0 : t.hour)).set("minute", Number((a = P.end) == null ? void 0 : a.minute)).toISOString()
|
|
19431
19431
|
],
|
|
19432
19432
|
businessIds: k ? [k.value] : [],
|
|
19433
|
-
restaurantIds:
|
|
19433
|
+
restaurantIds: B.filter(
|
|
19434
19434
|
(_) => q.find(($) => $.id === _)
|
|
19435
19435
|
),
|
|
19436
|
-
warehouseIds:
|
|
19437
|
-
(_) =>
|
|
19436
|
+
warehouseIds: B.filter(
|
|
19437
|
+
(_) => U.find(($) => $.id === _)
|
|
19438
19438
|
),
|
|
19439
19439
|
timezone: z
|
|
19440
19440
|
}),
|
|
19441
|
-
index: R ||
|
|
19441
|
+
index: R || G,
|
|
19442
19442
|
drillDimension: null,
|
|
19443
|
-
chartWidth: (
|
|
19444
|
-
chartHeight: (
|
|
19445
|
-
...
|
|
19446
|
-
...
|
|
19447
|
-
globalSorts:
|
|
19443
|
+
chartWidth: (n0 == null ? void 0 : n0.width) ?? e0.config.chartWidth,
|
|
19444
|
+
chartHeight: (n0 == null ? void 0 : n0.height) ?? e0.config.chartHeight,
|
|
19445
|
+
...he(e0),
|
|
19446
|
+
...Se(e0),
|
|
19447
|
+
globalSorts: u0(R ?? G)
|
|
19448
19448
|
};
|
|
19449
19449
|
})
|
|
19450
19450
|
],
|
|
19451
|
-
reportId:
|
|
19451
|
+
reportId: a0,
|
|
19452
19452
|
type: T,
|
|
19453
|
-
orientationTypes:
|
|
19453
|
+
orientationTypes: O,
|
|
19454
19454
|
isCombinedLocationLayout: H
|
|
19455
19455
|
},
|
|
19456
19456
|
requestConfig: {
|
|
19457
19457
|
responseType: "arraybuffer",
|
|
19458
19458
|
timeout: 1e3 * 60 * 60 * 24
|
|
19459
19459
|
}
|
|
19460
|
-
}, { headers:
|
|
19461
|
-
|
|
19462
|
-
},
|
|
19460
|
+
}, { headers: c0, data: Q } = await K0.rawFetch(d0), V = c0["content-disposition"].split("filename=")[1].replaceAll('"', ""), r0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), K = document.createElement("a");
|
|
19461
|
+
K.href = r0, K.setAttribute("download", decodeURIComponent(V)), document.body.appendChild(K), K.click(), K.remove();
|
|
19462
|
+
}, Xt = async ({
|
|
19463
19463
|
emails: T,
|
|
19464
19464
|
types: R,
|
|
19465
|
-
dateRange:
|
|
19465
|
+
dateRange: O,
|
|
19466
19466
|
timeRange: H,
|
|
19467
|
-
locationIds:
|
|
19468
|
-
orientationTypes:
|
|
19467
|
+
locationIds: B,
|
|
19468
|
+
orientationTypes: P,
|
|
19469
19469
|
isCombinedLocationLayout: N
|
|
19470
19470
|
}) => {
|
|
19471
|
-
const { businessId: k } =
|
|
19471
|
+
const { businessId: k } = p0(m0()), { currentReport: q, overviewReport: U } = ee(), { selectedNavigationTab: W } = $e(), { restaurants: z, warehouses: i0, globalFilters: j, timezone: Z } = k0(), { sizes: X } = ge(), { getTileSorts: u0 } = me();
|
|
19472
19472
|
if (T.length === 0) {
|
|
19473
19473
|
console.error("No email addresses provided.");
|
|
19474
19474
|
return;
|
|
19475
19475
|
}
|
|
19476
|
-
let
|
|
19477
|
-
|
|
19478
|
-
const
|
|
19476
|
+
let a0 = (q == null ? void 0 : q.id) || "", s0 = (q == null ? void 0 : q.name) || "", l0 = (q == null ? void 0 : q.tiles) ?? [];
|
|
19477
|
+
W === "overview" && U && (a0 = U == null ? void 0 : U.id, s0 = U.name, l0 = (U == null ? void 0 : U.tiles) ?? []);
|
|
19478
|
+
const d0 = l0.map((Q) => te(Q.widget, j, Q.id)), c0 = {
|
|
19479
19479
|
businessId: k.value,
|
|
19480
|
-
status:
|
|
19480
|
+
status: ye.generating,
|
|
19481
19481
|
dateRange: {
|
|
19482
|
-
start:
|
|
19483
|
-
end:
|
|
19482
|
+
start: O.startDate,
|
|
19483
|
+
end: O.endDate
|
|
19484
19484
|
},
|
|
19485
19485
|
reportName: s0,
|
|
19486
19486
|
emails: T,
|
|
19487
|
-
configs:
|
|
19488
|
-
var
|
|
19489
|
-
const
|
|
19487
|
+
configs: d0.map((Q, V) => {
|
|
19488
|
+
var K, e0, G, n0;
|
|
19489
|
+
const r0 = X[V];
|
|
19490
19490
|
return {
|
|
19491
|
-
requests:
|
|
19492
|
-
widget:
|
|
19493
|
-
dateRange: [
|
|
19491
|
+
requests: Z0.getQueryRequests({
|
|
19492
|
+
widget: Q,
|
|
19493
|
+
dateRange: [O.startDate, O.endDate],
|
|
19494
19494
|
timeRange: [
|
|
19495
|
-
|
|
19496
|
-
|
|
19495
|
+
h0().tz(Z).hour(Number((K = H.start) == null ? void 0 : K.hour)).minute(Number((e0 = H.start) == null ? void 0 : e0.minute)).toISOString(),
|
|
19496
|
+
h0().tz(Z).hour(Number((G = H.end) == null ? void 0 : G.hour)).minute(Number((n0 = H.end) == null ? void 0 : n0.minute)).toISOString()
|
|
19497
19497
|
],
|
|
19498
19498
|
businessIds: k ? [k.value] : [],
|
|
19499
|
-
restaurantIds:
|
|
19500
|
-
(
|
|
19499
|
+
restaurantIds: B.filter(
|
|
19500
|
+
(D0) => z.find((t0) => t0.id === D0)
|
|
19501
19501
|
),
|
|
19502
|
-
warehouseIds:
|
|
19503
|
-
(
|
|
19502
|
+
warehouseIds: B.filter(
|
|
19503
|
+
(D0) => i0.find((t0) => t0.id === D0)
|
|
19504
19504
|
),
|
|
19505
|
-
timezone:
|
|
19505
|
+
timezone: Z
|
|
19506
19506
|
}),
|
|
19507
|
-
index:
|
|
19507
|
+
index: V,
|
|
19508
19508
|
drillDimension: null,
|
|
19509
|
-
chartWidth: (
|
|
19510
|
-
chartHeight: (
|
|
19511
|
-
...
|
|
19512
|
-
...
|
|
19513
|
-
globalSorts:
|
|
19509
|
+
chartWidth: (r0 == null ? void 0 : r0.width) ?? Q.config.chartWidth,
|
|
19510
|
+
chartHeight: (r0 == null ? void 0 : r0.height) ?? Q.config.chartHeight,
|
|
19511
|
+
...he(Q),
|
|
19512
|
+
...Se(Q),
|
|
19513
|
+
globalSorts: u0(V)
|
|
19514
19514
|
};
|
|
19515
19515
|
}),
|
|
19516
|
-
reportId:
|
|
19516
|
+
reportId: a0,
|
|
19517
19517
|
type: R,
|
|
19518
|
-
orientationTypes:
|
|
19518
|
+
orientationTypes: P,
|
|
19519
19519
|
isCombinedLocationLayout: N
|
|
19520
19520
|
};
|
|
19521
|
-
await
|
|
19522
|
-
fetchType:
|
|
19523
|
-
url: `/${k.value}/reports/email?lang=${
|
|
19524
|
-
data:
|
|
19521
|
+
await K0.fetch({
|
|
19522
|
+
fetchType: y0.Post,
|
|
19523
|
+
url: `/${k.value}/reports/email?lang=${F0()}`,
|
|
19524
|
+
data: c0,
|
|
19525
19525
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
19526
19526
|
});
|
|
19527
|
-
},
|
|
19528
|
-
const { businessId: R } =
|
|
19529
|
-
await
|
|
19530
|
-
fetchType:
|
|
19531
|
-
url: `/${R.value}/reports/resend-email?lang=${
|
|
19527
|
+
}, Vt = async (T) => {
|
|
19528
|
+
const { businessId: R } = p0(m0());
|
|
19529
|
+
await K0.fetch({
|
|
19530
|
+
fetchType: y0.Post,
|
|
19531
|
+
url: `/${R.value}/reports/resend-email?lang=${F0()}`,
|
|
19532
19532
|
data: { jobId: T },
|
|
19533
19533
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
19534
19534
|
});
|
|
19535
|
-
},
|
|
19536
|
-
const { businessId: T } =
|
|
19537
|
-
return await
|
|
19538
|
-
fetchType:
|
|
19535
|
+
}, Gt = async () => {
|
|
19536
|
+
const { businessId: T } = p0(m0());
|
|
19537
|
+
return await g0.fetch({
|
|
19538
|
+
fetchType: y0.Get,
|
|
19539
19539
|
url: `/${T.value}/reports/email-recipients`
|
|
19540
19540
|
});
|
|
19541
|
-
},
|
|
19542
|
-
const { businessId: R } =
|
|
19543
|
-
await
|
|
19544
|
-
fetchType:
|
|
19541
|
+
}, zt = async (T) => {
|
|
19542
|
+
const { businessId: R } = p0(m0());
|
|
19543
|
+
await g0.fetch({
|
|
19544
|
+
fetchType: y0.Post,
|
|
19545
19545
|
url: `/${R.value}/reports/email-recipient/delete`,
|
|
19546
19546
|
data: { email: T }
|
|
19547
19547
|
});
|
|
19548
19548
|
};
|
|
19549
|
-
function
|
|
19550
|
-
const
|
|
19551
|
-
for (const
|
|
19552
|
-
if (!
|
|
19553
|
-
if (
|
|
19554
|
-
|
|
19549
|
+
function ue(T = [], R = []) {
|
|
19550
|
+
const O = (P) => `${P.schemaName}:${P.name}:${P.operator}`, H = /* @__PURE__ */ new Map(), B = [];
|
|
19551
|
+
for (const P of T) {
|
|
19552
|
+
if (!P || !Array.isArray(P.values) || P.values.length === 0) continue;
|
|
19553
|
+
if (P.option === Y0.DateTime || P.operator === j0.Between) {
|
|
19554
|
+
B.push({ ...P });
|
|
19555
19555
|
continue;
|
|
19556
19556
|
}
|
|
19557
|
-
const k =
|
|
19558
|
-
H.set(k, { ...
|
|
19557
|
+
const k = O(P);
|
|
19558
|
+
H.set(k, { ...P });
|
|
19559
19559
|
}
|
|
19560
|
-
for (const
|
|
19561
|
-
if (!
|
|
19562
|
-
if (
|
|
19563
|
-
|
|
19560
|
+
for (const P of R) {
|
|
19561
|
+
if (!P || !Array.isArray(P.values) || P.values.length === 0) continue;
|
|
19562
|
+
if (P.option === Y0.DateTime || P.operator === j0.Between) {
|
|
19563
|
+
B.push({ ...P });
|
|
19564
19564
|
continue;
|
|
19565
19565
|
}
|
|
19566
|
-
const k =
|
|
19566
|
+
const k = O(P);
|
|
19567
19567
|
if (H.has(k)) {
|
|
19568
|
-
const q = H.get(k),
|
|
19569
|
-
/* @__PURE__ */ new Set([...q.values ?? [], ...
|
|
19568
|
+
const q = H.get(k), U = Array.from(
|
|
19569
|
+
/* @__PURE__ */ new Set([...q.values ?? [], ...P.values ?? []])
|
|
19570
19570
|
);
|
|
19571
|
-
q.values =
|
|
19571
|
+
q.values = U, H.set(k, q);
|
|
19572
19572
|
} else
|
|
19573
|
-
H.set(k, { ...
|
|
19573
|
+
H.set(k, { ...P });
|
|
19574
19574
|
}
|
|
19575
|
-
return [...Array.from(H.values()), ...
|
|
19575
|
+
return [...Array.from(H.values()), ...B];
|
|
19576
19576
|
}
|
|
19577
|
-
function
|
|
19578
|
-
const H = [],
|
|
19579
|
-
return T.forEach((
|
|
19580
|
-
|
|
19577
|
+
function ht(T, R, O) {
|
|
19578
|
+
const H = [], B = /* @__PURE__ */ new Map();
|
|
19579
|
+
return T.forEach((P) => {
|
|
19580
|
+
P && (R.includes(P.schemaName) && H.push(P), O.forEach((N, k) => {
|
|
19581
19581
|
var q;
|
|
19582
|
-
N.includes(
|
|
19582
|
+
N.includes(P.schemaName) && (B.has(k) || B.set(k, []), (q = B.get(k)) == null || q.push(P));
|
|
19583
19583
|
}));
|
|
19584
|
-
}), { mainFilters: H, joinFilters:
|
|
19584
|
+
}), { mainFilters: H, joinFilters: B };
|
|
19585
19585
|
}
|
|
19586
|
-
function
|
|
19587
|
-
var q,
|
|
19588
|
-
const H = JSON.parse(JSON.stringify(T)),
|
|
19586
|
+
function te(T, R, O) {
|
|
19587
|
+
var q, U;
|
|
19588
|
+
const H = JSON.parse(JSON.stringify(T)), B = R.filter((W) => {
|
|
19589
19589
|
var z;
|
|
19590
|
-
return (z =
|
|
19591
|
-
})
|
|
19592
|
-
|
|
19590
|
+
return (z = W.tileIds) == null ? void 0 : z.includes(O);
|
|
19591
|
+
}).map((W) => {
|
|
19592
|
+
var z;
|
|
19593
|
+
return {
|
|
19594
|
+
...W,
|
|
19595
|
+
values: Array.from(
|
|
19596
|
+
new Set(((z = W.values) == null ? void 0 : z.map((i0) => i0 === "" ? "NULL" : i0)) ?? [])
|
|
19597
|
+
)
|
|
19598
|
+
};
|
|
19599
|
+
}), P = ((q = H.config.joinDatasources) == null ? void 0 : q.map((W) => W.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: k } = ht(
|
|
19600
|
+
B,
|
|
19593
19601
|
H.config.schemaNames,
|
|
19594
|
-
|
|
19602
|
+
P
|
|
19595
19603
|
);
|
|
19596
19604
|
return {
|
|
19597
19605
|
...H,
|
|
19598
19606
|
config: {
|
|
19599
19607
|
...H.config,
|
|
19600
|
-
filters:
|
|
19601
|
-
joinDatasources: ((
|
|
19602
|
-
...
|
|
19603
|
-
filters:
|
|
19608
|
+
filters: ue(H.config.filters ?? [], N),
|
|
19609
|
+
joinDatasources: ((U = H.config.joinDatasources) == null ? void 0 : U.map((W, z) => ({
|
|
19610
|
+
...W,
|
|
19611
|
+
filters: ue(W.filters ?? [], k.get(z) ?? [])
|
|
19604
19612
|
}))) ?? []
|
|
19605
19613
|
}
|
|
19606
19614
|
};
|
|
19607
19615
|
}
|
|
19608
|
-
let
|
|
19609
|
-
const
|
|
19610
|
-
function
|
|
19611
|
-
if (!
|
|
19616
|
+
let H0;
|
|
19617
|
+
const St = new Uint8Array(16);
|
|
19618
|
+
function At() {
|
|
19619
|
+
if (!H0 && (H0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !H0))
|
|
19612
19620
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
19613
|
-
return
|
|
19621
|
+
return H0(St);
|
|
19614
19622
|
}
|
|
19615
|
-
const
|
|
19623
|
+
const f0 = [];
|
|
19616
19624
|
for (let T = 0; T < 256; ++T)
|
|
19617
|
-
|
|
19618
|
-
function
|
|
19619
|
-
return
|
|
19625
|
+
f0.push((T + 256).toString(16).slice(1));
|
|
19626
|
+
function Et(T, R = 0) {
|
|
19627
|
+
return f0[T[R + 0]] + f0[T[R + 1]] + f0[T[R + 2]] + f0[T[R + 3]] + "-" + f0[T[R + 4]] + f0[T[R + 5]] + "-" + f0[T[R + 6]] + f0[T[R + 7]] + "-" + f0[T[R + 8]] + f0[T[R + 9]] + "-" + f0[T[R + 10]] + f0[T[R + 11]] + f0[T[R + 12]] + f0[T[R + 13]] + f0[T[R + 14]] + f0[T[R + 15]];
|
|
19620
19628
|
}
|
|
19621
|
-
const
|
|
19622
|
-
randomUUID:
|
|
19629
|
+
const Tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ae = {
|
|
19630
|
+
randomUUID: Tt
|
|
19623
19631
|
};
|
|
19624
|
-
function
|
|
19625
|
-
if (
|
|
19626
|
-
return
|
|
19632
|
+
function Wt(T, R, O) {
|
|
19633
|
+
if (ae.randomUUID && !R && !T)
|
|
19634
|
+
return ae.randomUUID();
|
|
19627
19635
|
T = T || {};
|
|
19628
|
-
const H = T.random || (T.rng ||
|
|
19636
|
+
const H = T.random || (T.rng || At)();
|
|
19629
19637
|
if (H[6] = H[6] & 15 | 64, H[8] = H[8] & 63 | 128, R) {
|
|
19630
|
-
|
|
19631
|
-
for (let
|
|
19632
|
-
R[
|
|
19638
|
+
O = O || 0;
|
|
19639
|
+
for (let B = 0; B < 16; ++B)
|
|
19640
|
+
R[O + B] = H[B];
|
|
19633
19641
|
return R;
|
|
19634
19642
|
}
|
|
19635
|
-
return
|
|
19643
|
+
return Et(H);
|
|
19636
19644
|
}
|
|
19637
|
-
const
|
|
19645
|
+
const oe = (T, R = "en") => h0().set("hour", T.hour).set("minute", T.minute).locale(R).format("h:mm A"), Ct = (T, R) => {
|
|
19646
|
+
const O = h0().set("hour", T.hour).set("minute", T.minute);
|
|
19647
|
+
return h0().set("hour", R.hour).set("minute", R.minute) < O ? "+1" : "";
|
|
19648
|
+
}, bt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Ft = { class: "text-fm-color-typo-primary" }, It = { class: "text-fm-color-typo-secondary" }, Mt = { class: "fm-typo-en-body-lg-600 mb-8" }, xt = { class: "flex items-center justify-center w-full" }, Rt = { class: "fm-typo-en-body-lg-600 mb-8" }, Lt = { class: "flex items-center justify-center" }, Ot = { class: "flex flex-row mb-4 px-4 gap-2" }, Yt = /* @__PURE__ */ se({
|
|
19649
|
+
__name: "TimeRangeSelect",
|
|
19650
|
+
props: /* @__PURE__ */ N0({
|
|
19651
|
+
defaultDateRange: {
|
|
19652
|
+
type: Array,
|
|
19653
|
+
default: () => [
|
|
19654
|
+
{
|
|
19655
|
+
name: "All day",
|
|
19656
|
+
isDefault: !0,
|
|
19657
|
+
startTime: { hour: 0, minute: 0 },
|
|
19658
|
+
endTime: { hour: 23, minute: 59 }
|
|
19659
|
+
}
|
|
19660
|
+
]
|
|
19661
|
+
},
|
|
19662
|
+
label: {
|
|
19663
|
+
type: String,
|
|
19664
|
+
required: !1,
|
|
19665
|
+
default: null
|
|
19666
|
+
},
|
|
19667
|
+
removable: {
|
|
19668
|
+
type: Boolean,
|
|
19669
|
+
required: !1,
|
|
19670
|
+
default: !1
|
|
19671
|
+
}
|
|
19672
|
+
}, {
|
|
19673
|
+
timeRange: {
|
|
19674
|
+
type: Object,
|
|
19675
|
+
default: () => ({
|
|
19676
|
+
start: { hour: 0, minute: 0 },
|
|
19677
|
+
end: { hour: 23, minute: 59 }
|
|
19678
|
+
})
|
|
19679
|
+
},
|
|
19680
|
+
timeRangeModifiers: {},
|
|
19681
|
+
selectTimeDefault: {
|
|
19682
|
+
type: Number,
|
|
19683
|
+
default: 1
|
|
19684
|
+
},
|
|
19685
|
+
selectTimeDefaultModifiers: {}
|
|
19686
|
+
}),
|
|
19687
|
+
emits: /* @__PURE__ */ N0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
19688
|
+
setup(T, { emit: R }) {
|
|
19689
|
+
const { t: O, locale: H } = Fe(), B = W0(T, "timeRange"), P = R, N = W0(T, "selectTimeDefault");
|
|
19690
|
+
function k(Z) {
|
|
19691
|
+
Z && (B.value = Z, P("update", B.value)), z.value = !1;
|
|
19692
|
+
}
|
|
19693
|
+
function q(Z) {
|
|
19694
|
+
const X = Z.split(":"), u0 = h0().set("hour", Number(X[0])).set("minute", Number(X[1]));
|
|
19695
|
+
return {
|
|
19696
|
+
hours: Number(u0.format("h")),
|
|
19697
|
+
minutes: Number(u0.format("m")),
|
|
19698
|
+
period: u0.format("A")
|
|
19699
|
+
};
|
|
19700
|
+
}
|
|
19701
|
+
const U = o0(JSON.parse(JSON.stringify(B.value)));
|
|
19702
|
+
function W(Z, X) {
|
|
19703
|
+
U.value.start = JSON.parse(JSON.stringify(Z)), U.value.end = JSON.parse(JSON.stringify(X));
|
|
19704
|
+
}
|
|
19705
|
+
U0(
|
|
19706
|
+
() => [() => B.value, () => N.value],
|
|
19707
|
+
() => {
|
|
19708
|
+
if (B.value) {
|
|
19709
|
+
const Z = T.defaultDateRange.findIndex(
|
|
19710
|
+
(X) => {
|
|
19711
|
+
var u0, a0, s0, l0;
|
|
19712
|
+
return X.startTime.hour === ((u0 = B.value.start) == null ? void 0 : u0.hour) && X.startTime.minute === ((a0 = B.value.start) == null ? void 0 : a0.minute) && X.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && X.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
|
|
19713
|
+
}
|
|
19714
|
+
) + 1;
|
|
19715
|
+
Z !== 0 ? N.value = Z : N.value = T.defaultDateRange.length + 1;
|
|
19716
|
+
}
|
|
19717
|
+
},
|
|
19718
|
+
{ deep: !0 }
|
|
19719
|
+
);
|
|
19720
|
+
const z = o0(!1);
|
|
19721
|
+
function i0(Z) {
|
|
19722
|
+
P("chip-closed", Z);
|
|
19723
|
+
}
|
|
19724
|
+
const j = C0(() => T.label ? T.label : Be({
|
|
19725
|
+
startTime: B.value.start,
|
|
19726
|
+
endTime: B.value.end,
|
|
19727
|
+
locale: H.value
|
|
19728
|
+
}));
|
|
19729
|
+
return (Z, X) => {
|
|
19730
|
+
const u0 = E0("FmChip"), a0 = E0("FmRadio"), s0 = E0("FmMenuDivider"), l0 = E0("FmRadioGroup"), d0 = E0("FmTimeInput"), c0 = E0("FmButton"), Q = E0("FmPopover");
|
|
19731
|
+
return B0(), V0("div", null, [
|
|
19732
|
+
S0(Q, {
|
|
19733
|
+
"show-popover": z.value,
|
|
19734
|
+
placement: "bottom",
|
|
19735
|
+
onPopoverChanged: X[6] || (X[6] = (V) => z.value = V)
|
|
19736
|
+
}, {
|
|
19737
|
+
"popover-button": b0(() => [
|
|
19738
|
+
S0(Pe, {
|
|
19739
|
+
"left-icon": T.label ? "filter_alt" : "schedule",
|
|
19740
|
+
label: j.value,
|
|
19741
|
+
removable: T.removable,
|
|
19742
|
+
onChipClosed: X[0] || (X[0] = (V) => i0(!0))
|
|
19743
|
+
}, null, 8, ["left-icon", "label", "removable"])
|
|
19744
|
+
]),
|
|
19745
|
+
default: b0(() => {
|
|
19746
|
+
var V, r0, K, e0;
|
|
19747
|
+
return [
|
|
19748
|
+
A0("div", bt, [
|
|
19749
|
+
S0(l0, {
|
|
19750
|
+
modelValue: N.value,
|
|
19751
|
+
"onUpdate:modelValue": X[1] || (X[1] = (G) => N.value = G)
|
|
19752
|
+
}, {
|
|
19753
|
+
default: b0(() => [
|
|
19754
|
+
(B0(!0), V0(re, null, xe(T.defaultDateRange, (G, n0) => (B0(), le(a0, {
|
|
19755
|
+
key: `range_${n0}`,
|
|
19756
|
+
value: n0 + 1,
|
|
19757
|
+
label: G.name,
|
|
19758
|
+
onClick: (D0) => W(G.startTime, G.endTime)
|
|
19759
|
+
}, {
|
|
19760
|
+
label: b0(() => [
|
|
19761
|
+
A0("p", Ft, [
|
|
19762
|
+
_e(T0(G.name) + " ", 1),
|
|
19763
|
+
Re(S0(u0, {
|
|
19764
|
+
label: $0(O)("report.common.default"),
|
|
19765
|
+
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
19766
|
+
compact: ""
|
|
19767
|
+
}, null, 8, ["label"]), [
|
|
19768
|
+
[Le, G.isDefault]
|
|
19769
|
+
])
|
|
19770
|
+
]),
|
|
19771
|
+
A0("p", It, T0($0(oe)(G.startTime, $0(F0)())) + " - " + T0($0(oe)(G.endTime, $0(F0)())) + " " + T0($0(Ct)(G.startTime, G.endTime)), 1)
|
|
19772
|
+
]),
|
|
19773
|
+
_: 2
|
|
19774
|
+
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
19775
|
+
S0(s0),
|
|
19776
|
+
S0(a0, {
|
|
19777
|
+
key: "range_custom",
|
|
19778
|
+
label: $0(O)("report.common.custom"),
|
|
19779
|
+
value: T.defaultDateRange.length + 1
|
|
19780
|
+
}, null, 8, ["label", "value"])
|
|
19781
|
+
]),
|
|
19782
|
+
_: 1
|
|
19783
|
+
}, 8, ["modelValue"]),
|
|
19784
|
+
N.value === T.defaultDateRange.length + 1 ? (B0(), V0(re, { key: 0 }, [
|
|
19785
|
+
A0("p", Mt, T0($0(O)("report.date.startingTime")), 1),
|
|
19786
|
+
A0("div", xt, [
|
|
19787
|
+
S0(d0, {
|
|
19788
|
+
"model-value": q(`${(V = U.value.start) == null ? void 0 : V.hour}:${(r0 = U.value.start) == null ? void 0 : r0.minute}`),
|
|
19789
|
+
"onUpdate:modelValue": X[2] || (X[2] = (G) => {
|
|
19790
|
+
if (U.value.start) {
|
|
19791
|
+
const n0 = $0(h0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
|
|
19792
|
+
$0(F0)()
|
|
19793
|
+
);
|
|
19794
|
+
U.value.start.hour = n0.get("hour"), U.value.start.minute = n0.get("minute");
|
|
19795
|
+
}
|
|
19796
|
+
})
|
|
19797
|
+
}, null, 8, ["model-value"])
|
|
19798
|
+
]),
|
|
19799
|
+
A0("p", Rt, T0($0(O)("report.date.endingTime")), 1),
|
|
19800
|
+
A0("div", Lt, [
|
|
19801
|
+
S0(d0, {
|
|
19802
|
+
"model-value": q(`${(K = U.value.end) == null ? void 0 : K.hour}:${(e0 = U.value.end) == null ? void 0 : e0.minute}`),
|
|
19803
|
+
"onUpdate:modelValue": X[3] || (X[3] = (G) => {
|
|
19804
|
+
if (U.value.end) {
|
|
19805
|
+
const n0 = $0(h0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
|
|
19806
|
+
$0(F0)()
|
|
19807
|
+
);
|
|
19808
|
+
U.value.end.hour = n0.get("hour"), U.value.end.minute = n0.get("minute");
|
|
19809
|
+
}
|
|
19810
|
+
})
|
|
19811
|
+
}, null, 8, ["model-value"])
|
|
19812
|
+
])
|
|
19813
|
+
], 64)) : Me("", !0),
|
|
19814
|
+
A0("div", Ot, [
|
|
19815
|
+
X[7] || (X[7] = A0("div", { class: "grow" }, null, -1)),
|
|
19816
|
+
S0(c0, {
|
|
19817
|
+
label: $0(O)("report.common.cancel"),
|
|
19818
|
+
variant: "tertiary",
|
|
19819
|
+
onClick: X[4] || (X[4] = (G) => z.value = !1)
|
|
19820
|
+
}, null, 8, ["label"]),
|
|
19821
|
+
S0(c0, {
|
|
19822
|
+
label: $0(O)("report.common.apply"),
|
|
19823
|
+
onClick: X[5] || (X[5] = () => k(JSON.parse(JSON.stringify(U.value))))
|
|
19824
|
+
}, null, 8, ["label"])
|
|
19825
|
+
])
|
|
19826
|
+
])
|
|
19827
|
+
];
|
|
19828
|
+
}),
|
|
19829
|
+
_: 1
|
|
19830
|
+
}, 8, ["show-popover"])
|
|
19831
|
+
]);
|
|
19832
|
+
};
|
|
19833
|
+
}
|
|
19834
|
+
}), jt = /* @__PURE__ */ se({
|
|
19638
19835
|
__name: "BaseDialog",
|
|
19639
|
-
props: /* @__PURE__ */
|
|
19836
|
+
props: /* @__PURE__ */ N0({
|
|
19640
19837
|
title: {
|
|
19641
19838
|
type: String,
|
|
19642
19839
|
default: "Title"
|
|
@@ -19653,35 +19850,35 @@ const Mt = /* @__PURE__ */ ye({
|
|
|
19653
19850
|
modelValue: { type: Boolean, required: !0 },
|
|
19654
19851
|
modelModifiers: {}
|
|
19655
19852
|
}),
|
|
19656
|
-
emits: /* @__PURE__ */
|
|
19853
|
+
emits: /* @__PURE__ */ N0(["confirm"], ["update:modelValue"]),
|
|
19657
19854
|
setup(T, { emit: R }) {
|
|
19658
|
-
const
|
|
19659
|
-
return U0(
|
|
19660
|
-
|
|
19661
|
-
}), (
|
|
19662
|
-
const k =
|
|
19663
|
-
return
|
|
19664
|
-
modelValue:
|
|
19665
|
-
"onUpdate:modelValue": N[2] || (N[2] = (
|
|
19855
|
+
const O = W0(T, "modelValue"), H = T, B = R;
|
|
19856
|
+
return U0(O, () => {
|
|
19857
|
+
O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
19858
|
+
}), (P, N) => {
|
|
19859
|
+
const k = E0("FmButton"), q = E0("FmDialog");
|
|
19860
|
+
return B0(), le(q, {
|
|
19861
|
+
modelValue: O.value,
|
|
19862
|
+
"onUpdate:modelValue": N[2] || (N[2] = (U) => O.value = U),
|
|
19666
19863
|
overlay: ""
|
|
19667
19864
|
}, {
|
|
19668
|
-
"dialog-header":
|
|
19669
|
-
|
|
19865
|
+
"dialog-header": b0(() => [
|
|
19866
|
+
_e(T0(H.title), 1)
|
|
19670
19867
|
]),
|
|
19671
|
-
default:
|
|
19672
|
-
|
|
19868
|
+
default: b0(() => [
|
|
19869
|
+
Oe(P.$slots, "content")
|
|
19673
19870
|
]),
|
|
19674
|
-
"dialog-footer":
|
|
19675
|
-
N[3] || (N[3] =
|
|
19676
|
-
|
|
19871
|
+
"dialog-footer": b0(() => [
|
|
19872
|
+
N[3] || (N[3] = A0("div", { class: "grow" }, null, -1)),
|
|
19873
|
+
S0(k, {
|
|
19677
19874
|
label: H.secondaryButtonLabel,
|
|
19678
19875
|
variant: "tertiary",
|
|
19679
|
-
onClick: N[0] || (N[0] = (
|
|
19876
|
+
onClick: N[0] || (N[0] = (U) => O.value = !1)
|
|
19680
19877
|
}, null, 8, ["label"]),
|
|
19681
|
-
|
|
19878
|
+
S0(k, {
|
|
19682
19879
|
label: H.primaryButtonLabel,
|
|
19683
19880
|
variant: "primary",
|
|
19684
|
-
onClick: N[1] || (N[1] = (
|
|
19881
|
+
onClick: N[1] || (N[1] = (U) => B("confirm"))
|
|
19685
19882
|
}, null, 8, ["label"])
|
|
19686
19883
|
]),
|
|
19687
19884
|
_: 3
|
|
@@ -19690,29 +19887,32 @@ const Mt = /* @__PURE__ */ ye({
|
|
|
19690
19887
|
}
|
|
19691
19888
|
});
|
|
19692
19889
|
export {
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19890
|
+
j0 as C,
|
|
19891
|
+
We as D,
|
|
19892
|
+
Ye as P,
|
|
19893
|
+
Ke as R,
|
|
19894
|
+
ze as S,
|
|
19895
|
+
je as W,
|
|
19896
|
+
Yt as _,
|
|
19897
|
+
ee as a,
|
|
19898
|
+
Dt as b,
|
|
19899
|
+
Y0 as c,
|
|
19900
|
+
jt as d,
|
|
19901
|
+
ge as e,
|
|
19902
|
+
me as f,
|
|
19903
|
+
$t as g,
|
|
19904
|
+
Ze as h,
|
|
19905
|
+
Qt as i,
|
|
19906
|
+
kt as j,
|
|
19907
|
+
zt as k,
|
|
19908
|
+
Gt as l,
|
|
19909
|
+
Ut as m,
|
|
19910
|
+
ye as n,
|
|
19911
|
+
Xt as o,
|
|
19912
|
+
qt as q,
|
|
19913
|
+
Vt as r,
|
|
19914
|
+
Ct as s,
|
|
19915
|
+
oe as t,
|
|
19916
|
+
$e as u,
|
|
19917
|
+
Wt as v
|
|
19718
19918
|
};
|