@feedmepos/mf-report 5.22.31 → 5.23.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-DrNd0OhG.js → App-CLg-JHbI.js} +4 -4
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DT0G5YTp.js → BaseDialog.vue_vue_type_script_setup_true_lang-xeRRM67q.js} +914 -870
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D03qImVk.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cfqi9IdQ.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-SYfUr7CV.js → Default.vue_vue_type_script_setup_true_lang-CA6a15LW.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BAlKmQBN.js → FilterSelector.vue_vue_type_script_setup_true_lang-C1paTZUf.js} +3 -3
- package/dist/{InsightView-BKxwhqE-.js → InsightView-DljEmdnJ.js} +4 -4
- package/dist/{Integration-CSe9xLiD.js → Integration-BhHZLsxL.js} +3 -3
- package/dist/{Integrations-DstbRAv7.js → Integrations-Dzawkc1P.js} +2 -2
- package/dist/{Layout-KqHc-oe1.js → Layout-1y8qFyo1.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D353Xres.js → MenuTab.vue_vue_type_script_setup_true_lang-D9jfKPNk.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-m8FuKdYv.js → NavigationTab.vue_vue_type_script_setup_true_lang-DE2KZ0HC.js} +7 -5
- package/dist/{OverviewView-DyMe7oQN.js → OverviewView-BY0ZL6ch.js} +4 -4
- package/dist/{Report-DQiEnVY1.js → Report-rJSJxgxS.js} +3 -3
- package/dist/{ReportEditor-z5Ca_cPt.js → ReportEditor-D-Eh2pzd.js} +509 -496
- package/dist/{ReportView-CU5RY0cS.js → ReportView-DMXwoj61.js} +6 -6
- package/dist/{Setting-BlyScc05.js → Setting-CHYCvIj2.js} +3 -3
- package/dist/{TileEditor-CJHk2GIH.js → TileEditor-BAxMjm-s.js} +5 -5
- package/dist/{TransitionFade-Bo_RUoyJ.js → TransitionFade-D19LRrDq.js} +4 -4
- package/dist/{app-Ceu3CTy8.js → app-D2I8ZDs1.js} +15 -15
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-D7hSebq7.js → useRestaurantPermission-DAyNjHLa.js} +1 -1
- package/package.json +1 -1
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import { ref as
|
|
1
|
+
import { u as $0, F as y0, x as g0, y as Fe, a as q0, b as Me, w as Re, g as xe, d as E0, c as De, r as ee } from "./app-D2I8ZDs1.js";
|
|
2
|
+
import { storeToRefs as c0, defineStore as Y0 } from "pinia";
|
|
3
|
+
import { ref as D0, computed as H0, watch as te, defineComponent as ce, mergeModels as V0, useModel as Z0, resolveComponent as O0, createElementBlock as W0, openBlock as k0, createVNode as C0, withCtx as B0, createElementVNode as L0, createCommentVNode as Le, Fragment as ie, renderList as Oe, createBlock as fe, createTextVNode as pe, withDirectives as we, toDisplayString as v0, unref as A0, vShow as ve, renderSlot as Be } from "vue";
|
|
4
4
|
import { useSnackbar as $e } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as
|
|
6
|
-
import { useCoreStore as
|
|
7
|
-
import { c as
|
|
5
|
+
import { u as Pe } from "./vue-i18n-DVWuTfed.js";
|
|
6
|
+
import { useCoreStore as Je, detectLocale as P0 } from "@feedmepos/mf-common";
|
|
7
|
+
import { c as He, a as Ne } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cfqi9IdQ.js";
|
|
8
8
|
function ye(E) {
|
|
9
9
|
throw new Error('Could not dynamically require "' + E + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
10
10
|
}
|
|
11
11
|
var me = {};
|
|
12
12
|
(function(E) {
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
setImmediate(
|
|
16
|
-
} : function(
|
|
17
|
-
setTimeout(
|
|
18
|
-
},
|
|
19
|
-
var P = !
|
|
13
|
+
var I = typeof globalThis < "u" ? globalThis : window, O = Object.create(I);
|
|
14
|
+
O.scheduleImmediate = typeof setImmediate < "u" ? function(J) {
|
|
15
|
+
setImmediate(J);
|
|
16
|
+
} : function(J) {
|
|
17
|
+
setTimeout(J, 0);
|
|
18
|
+
}, O.exports = E, typeof process < "u" && (O.process = process), typeof __dirname < "u" && (O.__dirname = __dirname), typeof __filename < "u" && (O.__filename = __filename), typeof Buffer < "u" && (O.Buffer = Buffer);
|
|
19
|
+
var P = !I.window;
|
|
20
20
|
try {
|
|
21
|
-
typeof WorkerGlobalScope < "u" &&
|
|
21
|
+
typeof WorkerGlobalScope < "u" && I instanceof WorkerGlobalScope && (P = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (P = !0);
|
|
22
22
|
} catch {
|
|
23
23
|
}
|
|
24
24
|
if (P) {
|
|
25
25
|
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
|
|
26
|
-
Object.defineProperty(
|
|
26
|
+
Object.defineProperty(O, "location", {
|
|
27
27
|
value: {
|
|
28
28
|
get href() {
|
|
29
29
|
return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
30
|
-
var
|
|
31
|
-
return process.platform != "win32" ?
|
|
30
|
+
var J = process.cwd();
|
|
31
|
+
return process.platform != "win32" ? J : "/" + J.replace(/\\/g, "/");
|
|
32
32
|
}() + "/";
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}), function() {
|
|
36
|
-
function
|
|
36
|
+
function J() {
|
|
37
37
|
try {
|
|
38
38
|
throw new Error();
|
|
39
|
-
} catch (
|
|
40
|
-
var q =
|
|
39
|
+
} catch (Y) {
|
|
40
|
+
var q = Y.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), N = null;
|
|
41
41
|
do {
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
} while (
|
|
42
|
+
var X = U.exec(q);
|
|
43
|
+
X != null && (N = X);
|
|
44
|
+
} while (X != null);
|
|
45
45
|
return N[1];
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
Object.defineProperty(
|
|
48
|
+
var H = null;
|
|
49
|
+
Object.defineProperty(O, "document", {
|
|
50
50
|
value: {
|
|
51
51
|
get currentScript() {
|
|
52
|
-
return
|
|
52
|
+
return H == null && (H = { src: J() }), H;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
}(),
|
|
56
|
+
}(), O.dartDeferredLibraryLoader = function(J, H, q) {
|
|
57
57
|
try {
|
|
58
|
-
load(
|
|
58
|
+
load(J), H();
|
|
59
59
|
} catch (U) {
|
|
60
60
|
q(U);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
(function() {
|
|
65
|
-
function
|
|
65
|
+
function H(r, e) {
|
|
66
66
|
for (var n = Object.keys(r), i = 0; i < n.length; i++) {
|
|
67
67
|
var a = n[i];
|
|
68
68
|
e[a] = r[a];
|
|
@@ -96,27 +96,27 @@ var me = {};
|
|
|
96
96
|
}
|
|
97
97
|
return !1;
|
|
98
98
|
}();
|
|
99
|
-
function
|
|
99
|
+
function X(r, e) {
|
|
100
100
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
101
101
|
if (N) {
|
|
102
102
|
r.prototype.__proto__ = e.prototype;
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
var n = Object.create(e.prototype);
|
|
106
|
-
|
|
106
|
+
H(r.prototype, n), r.prototype = n;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Y(r, e) {
|
|
110
110
|
for (var n = 0; n < e.length; n++)
|
|
111
|
-
|
|
111
|
+
X(e[n], r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function t0(r, e) {
|
|
114
114
|
U(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function G(r, e) {
|
|
117
117
|
q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function K(r, e, n, i) {
|
|
120
120
|
var a = r;
|
|
121
121
|
r[e] = a, r[n] = function() {
|
|
122
122
|
r[n] = function() {
|
|
@@ -133,7 +133,7 @@ var me = {};
|
|
|
133
133
|
return s;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function V(r, e, n, i) {
|
|
137
137
|
var a = r;
|
|
138
138
|
r[e] = a, r[n] = function() {
|
|
139
139
|
return r[e] === a && (r[e] = i()), r[n] = function() {
|
|
@@ -154,17 +154,17 @@ var me = {};
|
|
|
154
154
|
}, o;
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function s0(r) {
|
|
158
158
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function a0(r) {
|
|
161
161
|
return r;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function l0(r) {
|
|
164
164
|
for (var e = 0; e < r.length; ++e)
|
|
165
165
|
r[e];
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function d0(r, e) {
|
|
168
168
|
var n = null;
|
|
169
169
|
return r ? function(i) {
|
|
170
170
|
return n === null && (n = t.closureFromTearOff(e)), new n(i, this);
|
|
@@ -179,16 +179,16 @@ var me = {};
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
var Q = 0;
|
|
182
|
-
function
|
|
182
|
+
function z(r, e, n, i, a, s, o, l, d, D) {
|
|
183
183
|
return typeof l == "number" && (l += Q), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: d || 0, nDA: D };
|
|
184
184
|
}
|
|
185
185
|
function n0(r, e, n, i, a, s, o, l) {
|
|
186
|
-
var d =
|
|
186
|
+
var d = z(r, !0, !1, n, i, a, s, o, l, !1), D = p0(d);
|
|
187
187
|
r[e] = D;
|
|
188
188
|
}
|
|
189
189
|
function e0(r, e, n, i, a, s, o, l, d, D) {
|
|
190
190
|
n = !!n;
|
|
191
|
-
var f =
|
|
191
|
+
var f = z(r, !1, n, i, a, s, o, l, d, !!D), p = d0(n, f);
|
|
192
192
|
r[e] = p;
|
|
193
193
|
}
|
|
194
194
|
function i0(r) {
|
|
@@ -197,24 +197,24 @@ var me = {};
|
|
|
197
197
|
b.interceptorsByTag = r;
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
H(r, e);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function W(r) {
|
|
203
203
|
var e = b.leafTags;
|
|
204
204
|
if (!e) {
|
|
205
205
|
b.leafTags = r;
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
H(r, e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function r0(r) {
|
|
211
211
|
var e = b.types, n = e.length;
|
|
212
212
|
return e.push.apply(e, r), n;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return
|
|
214
|
+
function _0(r, e) {
|
|
215
|
+
return H(e, r), r;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var Z = function() {
|
|
218
218
|
var r = function(n, i, a, s, o) {
|
|
219
219
|
return function(l, d, D, f) {
|
|
220
220
|
return e0(l, d, n, i, a, s, [D], f, o, !1);
|
|
@@ -224,7 +224,7 @@ var me = {};
|
|
|
224
224
|
return n0(o, l, n, i, a, [d], D, s);
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
return { inherit:
|
|
227
|
+
return { inherit: X, inheritMany: Y, mixin: t0, mixinHard: G, installStaticTearOff: n0, installInstanceTearOff: e0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: s0, lazy: V, lazyFinal: u0, lazyOld: K, updateHolder: _0, convertToFastObject: a0, updateTypes: r0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: W };
|
|
228
228
|
}(), t = {
|
|
229
229
|
JS_CONST: function() {
|
|
230
230
|
},
|
|
@@ -271,8 +271,8 @@ var me = {};
|
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
Sort__dualPivotQuicksort(r, e, n, i) {
|
|
274
|
-
var a, s, o, l, d, D, f, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, A = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2),
|
|
275
|
-
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v,
|
|
274
|
+
var a, s, o, l, d, D, f, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, A = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), k = x.$index(r, A);
|
|
275
|
+
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, k) > 0 && (a = k, k = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, A, k), x.$indexSet(r, F, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
|
|
276
276
|
for (l = s; l <= o; ++l)
|
|
277
277
|
if (d = x.$index(r, l), D = i.call$2(d, L), D !== 0)
|
|
278
278
|
if (D < 0)
|
|
@@ -696,12 +696,12 @@ var me = {};
|
|
|
696
696
|
return e;
|
|
697
697
|
},
|
|
698
698
|
Closure_fromTearOff(r) {
|
|
699
|
-
var e, n, i, a, s, o, l, d, D, f, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI, A = r.fs, C = r.cs,
|
|
699
|
+
var e, n, i, a, s, o, l, d, D, f, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI, A = r.fs, C = r.cs, F = A[0], M = C[0], x = p[F], R = r.fT;
|
|
700
700
|
for (R.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? n = function() {
|
|
701
701
|
this.$initialize();
|
|
702
|
-
} : n = function(
|
|
703
|
-
this.$initialize(
|
|
704
|
-
}, e.constructor = n, n.prototype = e, e.$_name =
|
|
702
|
+
} : n = function(w, v) {
|
|
703
|
+
this.$initialize(w, v);
|
|
704
|
+
}, e.constructor = n, n.prototype = e, e.$_name = F, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(F, x, m, g) : (e.$static_name = F, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, m), e[M] = a, s = a, o = 1; o < A.length; ++o)
|
|
705
705
|
l = A[o], typeof l == "string" ? (d = p[l], D = l, l = d) : D = "", f = C[o], f != null && (i && (l = t.Closure_forwardCallTo(D, l, m, g)), e[f] = l), o === h && (s = l);
|
|
706
706
|
return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
|
|
707
707
|
},
|
|
@@ -1148,7 +1148,7 @@ var me = {};
|
|
|
1148
1148
|
return t._Universe_eval(b.typeUniverse, r, !1);
|
|
1149
1149
|
},
|
|
1150
1150
|
_substitute(r, e, n, i) {
|
|
1151
|
-
var a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
1151
|
+
var a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x = e._kind;
|
|
1152
1152
|
switch (x) {
|
|
1153
1153
|
case 5:
|
|
1154
1154
|
case 1:
|
|
@@ -1171,7 +1171,7 @@ var me = {};
|
|
|
1171
1171
|
case 13:
|
|
1172
1172
|
return A = e._rest, i += A.length, C = t._substituteArray(r, A, n, i), d = e._primary, D = t._substitute(r, d, n, i), C === A && D === d ? e : t._Universe__lookupGenericFunctionRti(r, D, C, !0);
|
|
1173
1173
|
case 14:
|
|
1174
|
-
return
|
|
1174
|
+
return F = e._primary, F < i || (M = n[F - i], M == null) ? e : M;
|
|
1175
1175
|
default:
|
|
1176
1176
|
throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + x));
|
|
1177
1177
|
}
|
|
@@ -1431,7 +1431,7 @@ var me = {};
|
|
|
1431
1431
|
return s + "})";
|
|
1432
1432
|
},
|
|
1433
1433
|
_functionRtiToString(r, e, n) {
|
|
1434
|
-
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
1434
|
+
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v = ", ";
|
|
1435
1435
|
if (n != null) {
|
|
1436
1436
|
for (i = n.length, e == null ? (e = t._setArrayType([], c.JSArray_String), a = null) : a = e.length, s = e.length, o = i; o > 0; --o)
|
|
1437
1437
|
e.push("T" + (s + o));
|
|
@@ -1440,16 +1440,16 @@ var me = {};
|
|
|
1440
1440
|
D += ">";
|
|
1441
1441
|
} else
|
|
1442
1442
|
D = "", a = null;
|
|
1443
|
-
for (l = r._primary, g = r._rest, h = g._requiredPositional, A = h.length, C = g._optionalPositional,
|
|
1444
|
-
L +=
|
|
1445
|
-
if (
|
|
1446
|
-
for (L +=
|
|
1447
|
-
L +=
|
|
1443
|
+
for (l = r._primary, g = r._rest, h = g._requiredPositional, A = h.length, C = g._optionalPositional, F = C.length, M = g._named, x = M.length, R = t._rtiToString(l, e), L = "", w = "", o = 0; o < A; ++o, w = v)
|
|
1444
|
+
L += w + t._rtiToString(h[o], e);
|
|
1445
|
+
if (F > 0) {
|
|
1446
|
+
for (L += w + "[", w = "", o = 0; o < F; ++o, w = v)
|
|
1447
|
+
L += w + t._rtiToString(C[o], e);
|
|
1448
1448
|
L += "]";
|
|
1449
1449
|
}
|
|
1450
1450
|
if (x > 0) {
|
|
1451
|
-
for (L +=
|
|
1452
|
-
L +=
|
|
1451
|
+
for (L += w + "{", w = "", o = 0; o < x; o += 3, w = v)
|
|
1452
|
+
L += w, M[o + 1] && (L += "required "), L += t._rtiToString(M[o + 2], e) + " " + M[o];
|
|
1453
1453
|
L += "}";
|
|
1454
1454
|
}
|
|
1455
1455
|
return a != null && (e.toString, e.length = a), D + "(" + L + ") => " + R;
|
|
@@ -1810,7 +1810,7 @@ var me = {};
|
|
|
1810
1810
|
return d === 12 ? e === c.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? d !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === c.Record ? !0 : s && d === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
|
|
1811
1811
|
},
|
|
1812
1812
|
_isFunctionSubtype(r, e, n, i, a) {
|
|
1813
|
-
var s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
1813
|
+
var s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v, k, j;
|
|
1814
1814
|
if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, d = o._requiredPositional, D = l.length, f = d.length, D > f) || (p = f - D, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, D + g < f + h))
|
|
1815
1815
|
return !1;
|
|
1816
1816
|
for (A = 0; A < D; ++A)
|
|
@@ -1822,21 +1822,21 @@ var me = {};
|
|
|
1822
1822
|
for (A = 0; A < h; ++A)
|
|
1823
1823
|
if (C = y[p + A], !t._isSubtype(r, m[A], a, C, n))
|
|
1824
1824
|
return !1;
|
|
1825
|
-
for (
|
|
1826
|
-
for (v = M[
|
|
1827
|
-
if (L >= x || (
|
|
1825
|
+
for (F = s._named, M = o._named, x = F.length, R = M.length, L = 0, w = 0; w < R; w += 3)
|
|
1826
|
+
for (v = M[w]; ; ) {
|
|
1827
|
+
if (L >= x || (k = F[L], L += 3, v < k))
|
|
1828
1828
|
return !1;
|
|
1829
|
-
if (j =
|
|
1829
|
+
if (j = F[L - 2], k < v) {
|
|
1830
1830
|
if (j)
|
|
1831
1831
|
return !1;
|
|
1832
1832
|
continue;
|
|
1833
1833
|
}
|
|
1834
|
-
if (C = M[
|
|
1834
|
+
if (C = M[w + 1], j && !C || (C = F[L - 1], !t._isSubtype(r, M[w + 2], a, C, n)))
|
|
1835
1835
|
return !1;
|
|
1836
1836
|
break;
|
|
1837
1837
|
}
|
|
1838
1838
|
for (; L < x; ) {
|
|
1839
|
-
if (
|
|
1839
|
+
if (F[L + 1])
|
|
1840
1840
|
return !1;
|
|
1841
1841
|
L += 3;
|
|
1842
1842
|
}
|
|
@@ -2810,7 +2810,7 @@ var me = {};
|
|
|
2810
2810
|
`;
|
|
2811
2811
|
},
|
|
2812
2812
|
Materialize_getMergeSql(r, e, n, i, a, s, o) {
|
|
2813
|
-
var l, d, D, f, p, y, m, g, h, A, C,
|
|
2813
|
+
var l, d, D, f, p, y, m, g, h, A, C, F, M = "') AND TIMESTAMP('", x = "and TIMESTAMP_TRUNC(target_table.createdAt, DAY, 'UTC') in UNNEST(@updateTimestamps)", R = "and target_table.restaurantId in UNNEST(@restaurantIds)", L = r.source;
|
|
2814
2814
|
return L.type === _.SOURCE_TYPE_2 ? (l = L.uniqueKey, l.toString, d = u.getInterceptor$asx(l), D = d.get$length(l) === 1 ? "CAST(" + t.S(d.get$first(l)) + " AS STRING)" : "CONCAT(" + d.map$1$1(l, new t.Materialize_getMergeSql_closure(), c.String).join$1(0, ", '_', ") + ")", f = L.timeColumn, f.toString, p = `WITH docs as
|
|
2815
2815
|
(
|
|
2816
2816
|
select * from (SELECT TO_JSON_STRING(src) AS data, ` + D + " AS id, '' AS db_name, " + f + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + d.join$1(l, ",") + " ORDER BY " + f + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + f + " between TIMESTAMP('" + i + M + n + `')) WHERE rn=1
|
|
@@ -2826,14 +2826,14 @@ SELECT
|
|
|
2826
2826
|
` + m + `
|
|
2827
2827
|
FROM raw_table ` + L + `
|
|
2828
2828
|
`, L = f.where$1(d, new t.Materialize_getMergeSql_closure2()), h = new t.MappedIterable(L, new t.Materialize_getMergeSql_closure3(), L.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ","), L = r.get$fullMaterializedTableName(), l = u.getInterceptor$asx(o), m = l.get$isNotEmpty(o) ? x : "", A = u.getInterceptor$asx(a), C = A.get$isNotEmpty(a) ? R : "", d = f.where$1(d, new t.Materialize_getMergeSql_closure4()), d = new t.MappedIterable(d, new t.Materialize_getMergeSql_closure5(), d.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
|
|
2829
|
-
`), u.get$isNotEmpty$asx(e) ? (f = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "", A = A.get$isNotEmpty(a) ? R : "",
|
|
2829
|
+
`), u.get$isNotEmpty$asx(e) ? (f = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "", A = A.get$isNotEmpty(a) ? R : "", F = "DELETE FROM `" + f + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + g + `) source_table
|
|
2830
2830
|
WHERE source_table.id = target_table.id
|
|
2831
2831
|
and source_table.docId = target_table.docId
|
|
2832
2832
|
)
|
|
2833
2833
|
` + l + `
|
|
2834
2834
|
` + A + `
|
|
2835
2835
|
and target_table.docId in UNNEST(@docIds)
|
|
2836
|
-
`) :
|
|
2836
|
+
`) : F = "", "MERGE INTO `" + L + "` AS target_table USING (\n" + g + `
|
|
2837
2837
|
) AS source_table ON
|
|
2838
2838
|
target_table.id = source_table.id
|
|
2839
2839
|
and target_table.docId = source_table.docId
|
|
@@ -2847,19 +2847,19 @@ and target_table.docId in UNNEST(@docIds)
|
|
|
2847
2847
|
when not matched by target
|
|
2848
2848
|
then insert (` + h + ") values (" + h + `);
|
|
2849
2849
|
|
|
2850
|
-
` +
|
|
2850
|
+
` + F + `
|
|
2851
2851
|
`;
|
|
2852
2852
|
},
|
|
2853
2853
|
Materialize_getMaterializeInfoSql(r, e, n, i, a) {
|
|
2854
|
-
var s, o, l, d, D, f, p, y, m, g, h = '") AND TIMESTAMP("', A = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,",
|
|
2855
|
-
return
|
|
2854
|
+
var s, o, l, d, D, f, p, y, m, g, h = '") AND TIMESTAMP("', A = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", F = r.source, M = F.field, x = M != null;
|
|
2855
|
+
return F.type === _.SOURCE_TYPE_2 ? (s = F.uniqueKey, s.toString, o = u.getInterceptor$asx(s), l = o.get$length(s) === 1 ? "CAST(" + t.S(o.get$first(s)) + " AS STRING)" : "CONCAT(" + o.map$1$1(s, new t.Materialize_getMaterializeInfoSql_closure(), c.String).join$1(0, ", '_', ") + ")", d = F.timeColumn, d.toString, D = o.join$1(s, ","), f = F.dateColumns, f == null && (f = t._setArrayType([], c.JSArray_String)), p = d + ' between TIMESTAMP("' + i + h + e + '")', F = u.getInterceptor$asx(f), y = F.get$isNotEmpty(f) ? "SELECT * REPLACE(" + F.map$1$1(f, new t.Materialize_getMaterializeInfoSql_closure0(a), c.String).join$1(0, ", ") + ") FROM `" + r.get$fullRawTableName() + "` WHERE " + p : "SELECT * FROM `" + r.get$fullRawTableName() + "` WHERE " + p, m = `docs AS (
|
|
2856
2856
|
SELECT * FROM (
|
|
2857
2857
|
SELECT TO_JSON_STRING(src) AS data, ` + l + " AS id, '' AS db_name, " + d + ` AS publish_time, false AS deleted,
|
|
2858
2858
|
ROW_NUMBER() OVER (PARTITION BY ` + D + " ORDER BY " + d + ` DESC) as rn
|
|
2859
2859
|
FROM (` + y + `) AS src
|
|
2860
2860
|
) WHERE rn=1
|
|
2861
2861
|
)`) : m = "docs AS (\n SELECT data, db_name, publish_time, deleted, id FROM `" + r.get$fullRawTableName() + '`\n WHERE publish_time between TIMESTAMP("' + i + h + e + `")
|
|
2862
|
-
)`,
|
|
2862
|
+
)`, F = r.getTransformedTableQuery$1$getParentDocs(!0), s = x ? `child_table AS (
|
|
2863
2863
|
` + r.getTransformedTableQuery$1$getParentDocs(!1) + `
|
|
2864
2864
|
),
|
|
2865
2865
|
` : "", o = r.name._name, d = n ? A + o + C : "", x ? (g = n ? A + o + C : "", M = ` UNION ALL
|
|
@@ -2872,7 +2872,7 @@ and target_table.docId in UNNEST(@docIds)
|
|
|
2872
2872
|
`) : M = "", g = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
|
|
2873
2873
|
` + m + `,
|
|
2874
2874
|
parent_table AS (
|
|
2875
|
-
` +
|
|
2875
|
+
` + F + `
|
|
2876
2876
|
),
|
|
2877
2877
|
` + s + `
|
|
2878
2878
|
formatted_table as (SELECT
|
|
@@ -2978,16 +2978,16 @@ select
|
|
|
2978
2978
|
Index$(r, e, n) {
|
|
2979
2979
|
return new t.Index(r, e, n);
|
|
2980
2980
|
},
|
|
2981
|
-
Schema$(r, e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
2982
|
-
return new t.Schema(
|
|
2981
|
+
Schema$(r, e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L) {
|
|
2982
|
+
return new t.Schema(F, h, s, g, L, R, y, m, f, p, d, x, a, C, A, M, i, l, o, D, e, r, n);
|
|
2983
2983
|
},
|
|
2984
|
-
Schema_Schema$build(r, e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
2985
|
-
var
|
|
2986
|
-
return t.Schema$(r, e, n, i, a,
|
|
2984
|
+
Schema_Schema$build(r, e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L) {
|
|
2985
|
+
var w = s.call$1(F), v = g.call$1(F);
|
|
2986
|
+
return t.Schema$(r, e, n, i, a, w, o, l, d ?? 300, D, f, p, y, m, v, h, A, C, F, M, x, R, L);
|
|
2987
2987
|
},
|
|
2988
2988
|
Schema_fromJson(r) {
|
|
2989
|
-
var e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
2990
|
-
return
|
|
2989
|
+
var e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_ahf, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), k = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), j = v.$index(0, "table"), f0 = v.$index(0, "field"), h0 = v.$index(0, "dataset"), o0 = c.nullable_List_dynamic, S0 = o0._as(v.$index(0, "uniqueKey"));
|
|
2990
|
+
return S0 = S0 == null ? F : u.cast$1$0$ax(S0, c.String), e = v.$index(0, "timeColumn"), v = o0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, c.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), d = r.$index(0, "isContinuousUpdate"), D = r.$index(0, "interval"), f = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], c.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], c.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], c.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, c.String), o0 == null && (o0 = t._setArrayType([], c.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, o0, C, p, i, M, m, y, D, h, d, g, o, l, L, x, s, a, R, f, n, new t.Source(k, j, f0, h0, S0, e, v), w);
|
|
2991
2991
|
},
|
|
2992
2992
|
Field_Field$numeric(r, e, n, i, a, s, o, l, d) {
|
|
2993
2993
|
return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, d, i, !1, r);
|
|
@@ -3110,9 +3110,9 @@ select
|
|
|
3110
3110
|
Index: function(e, n, i) {
|
|
3111
3111
|
this.column = e, this.customName = n, this.indexMethod = i;
|
|
3112
3112
|
},
|
|
3113
|
-
Schema: function(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
3113
|
+
Schema: function(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w) {
|
|
3114
3114
|
var v = this;
|
|
3115
|
-
v.name = e, v.label = n, v.fields = i, v.joins = a, v.topLevelFilters = s, v.source = o, v.isJoinOnly = l, v.isMaterializeOnly = d, v.isContinuousUpdate = D, v.isGlobal = f, v.interval = p, v.rawTableName = y, v.dynamicRawTable = m, v.materializedTableName = g, v.materializedPostgresqlTableName = h, v.partition = A, v.clusters = C, v.indexes =
|
|
3115
|
+
v.name = e, v.label = n, v.fields = i, v.joins = a, v.topLevelFilters = s, v.source = o, v.isJoinOnly = l, v.isMaterializeOnly = d, v.isContinuousUpdate = D, v.isGlobal = f, v.interval = p, v.rawTableName = y, v.dynamicRawTable = m, v.materializedTableName = g, v.materializedPostgresqlTableName = h, v.partition = A, v.clusters = C, v.indexes = F, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = M, v.isAiHidden = x, v.aiKeywords = R, v.aiCategory = L, v.aiPriority = w;
|
|
3116
3116
|
},
|
|
3117
3117
|
Schema_visualizationSchema_closure: function() {
|
|
3118
3118
|
},
|
|
@@ -4020,9 +4020,9 @@ select
|
|
|
4020
4020
|
DataSourceRowColumnConfig_columnIds_closure1: function(e) {
|
|
4021
4021
|
this.$this = e;
|
|
4022
4022
|
},
|
|
4023
|
-
TableDatasourceConfigModel: function(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
4023
|
+
TableDatasourceConfigModel: function(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x) {
|
|
4024
4024
|
var R = this;
|
|
4025
|
-
R.columnsWidth = e, R.isDrillable = n, R.showGrandTotal = i, R.rollup = a, R.rollupPosition = s, R.rowsPerPage = o, R.isBlend = l, R._table_datasource_config_model$_drillDimension = d, R._rowIds = D, R._columnIds = f, R._table_datasource_config_model$_joinDatasources = p, R.schemaNames = y, R.dimensions = m, R.metrics = g, R.filters = h, R.sorts = A, R.limit = C, R.isComparable =
|
|
4025
|
+
R.columnsWidth = e, R.isDrillable = n, R.showGrandTotal = i, R.rollup = a, R.rollupPosition = s, R.rowsPerPage = o, R.isBlend = l, R._table_datasource_config_model$_drillDimension = d, R._rowIds = D, R._columnIds = f, R._table_datasource_config_model$_joinDatasources = p, R.schemaNames = y, R.dimensions = m, R.metrics = g, R.filters = h, R.sorts = A, R.limit = C, R.isComparable = F, R.periodType = M, R.timezone = x;
|
|
4026
4026
|
},
|
|
4027
4027
|
TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
|
|
4028
4028
|
this.$this = e;
|
|
@@ -4213,40 +4213,40 @@ select
|
|
|
4213
4213
|
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));
|
|
4214
4214
|
},
|
|
4215
4215
|
getMergeInfoSql(r) {
|
|
4216
|
-
var e, n, i, a = _.C_JsonCodec.decode$2$reviver(
|
|
4216
|
+
var e, n, i, a = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
|
|
4217
4217
|
return s = s.$index(a, "request"), e = t.Schema_fromJson(s.$index(0, "schema")), n = s.$index(0, "start"), i = s.$index(0, "end"), s = s.$index(0, "tz"), s == null && (s = "UTC"), e.setConnection$1(o.context.connection), t.Materialize_getMaterializeInfoSql(e, i, u.contains$1$asx(e.clusters, "restaurantId"), n, s);
|
|
4218
4218
|
},
|
|
4219
4219
|
getClearTableSql(r) {
|
|
4220
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4220
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4221
4221
|
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;
|
|
4222
4222
|
`;
|
|
4223
4223
|
},
|
|
4224
4224
|
getMergeSql(r) {
|
|
4225
|
-
var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(
|
|
4225
|
+
var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), l = u.getInterceptor$asx(o), d = t._getQueryEngine(l.$index(o, "bigQuery"));
|
|
4226
4226
|
return l = l.$index(o, "request"), e = t.Schema_fromJson(l.$index(0, "schema")), n = l.$index(0, "publishStartedAt"), i = l.$index(0, "publishEndedAt"), a = l.$index(0, "docIds"), s = l.$index(0, "restaurantIds"), l = l.$index(0, "updateTimestamps"), e.setConnection$1(d.context.connection), t.Materialize_getMergeSql(e, a, i, n, s, e, l);
|
|
4227
4227
|
},
|
|
4228
4228
|
getSchemas(r) {
|
|
4229
|
-
var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(
|
|
4230
|
-
return
|
|
4229
|
+
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,@>>");
|
|
4230
|
+
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));
|
|
4231
4231
|
},
|
|
4232
4232
|
getVisualizationSchemas(r) {
|
|
4233
|
-
var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(
|
|
4234
|
-
return
|
|
4233
|
+
var e = t._getQueryEngine(u.$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,@>>");
|
|
4234
|
+
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));
|
|
4235
4235
|
},
|
|
4236
4236
|
requestJsonToSql(r) {
|
|
4237
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4238
|
-
return
|
|
4237
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
|
|
4238
|
+
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"))], c.JSArray_QueryRequest)), null));
|
|
4239
4239
|
},
|
|
4240
4240
|
sqlResponsesToQueryResponses(r) {
|
|
4241
|
-
var e, n = _.C_JsonCodec.decode$2$reviver(
|
|
4242
|
-
return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), c.QueryRequest, c.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"),
|
|
4241
|
+
var e, n = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
|
|
4242
|
+
return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), c.QueryRequest, c.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));
|
|
4243
4243
|
},
|
|
4244
4244
|
getQueryRequests(r) {
|
|
4245
|
-
var e, n, i, a, s, o, l, d, D, f, p = _.C_JsonCodec.decode$2$reviver(
|
|
4246
|
-
return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(p, "timezone"), y = m.config, h = t._arrayInstanceType(g)._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(g, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, d), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(D, !0, c.QueryRequest), f = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), f), !0, f._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, d), i, a, s, !0, o))), D = h), y = t._arrayInstanceType(D)._eval$1("MappedListIterable<1,Map<String,@>>"),
|
|
4245
|
+
var e, n, i, a, s, o, l, d, D, f, p = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), y = u.getInterceptor$asx(p), m = t.ReportWidgetModel_fromJson(y.$index(p, "widget")), g = u.map$1$ax(y.$index(p, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(p, "compareDateRange");
|
|
4246
|
+
return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(p, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(p, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(p, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(p, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(p, "timezone"), y = m.config, h = t._arrayInstanceType(g)._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(g, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, d), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(D, !0, c.QueryRequest), f = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), f), !0, f._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, d), i, a, s, !0, o))), D = h), 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));
|
|
4247
4247
|
},
|
|
4248
4248
|
getCreateMaterializedTableSql(r) {
|
|
4249
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4249
|
+
var e = _.C_JsonCodec.decode$2$reviver(O.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4250
4250
|
return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
|
|
4251
4251
|
},
|
|
4252
4252
|
getSchemas_closure: function() {
|
|
@@ -4285,7 +4285,7 @@ select
|
|
|
4285
4285
|
Exports: function() {
|
|
4286
4286
|
},
|
|
4287
4287
|
main() {
|
|
4288
|
-
t.initializeTimeZones(), u.set$requestJsonToSql$x(
|
|
4288
|
+
t.initializeTimeZones(), u.set$requestJsonToSql$x(O.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(O.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(O.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(O.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(O.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(O.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(O.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(O.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
|
|
4289
4289
|
},
|
|
4290
4290
|
_Exports: function() {
|
|
4291
4291
|
},
|
|
@@ -4589,16 +4589,16 @@ select
|
|
|
4589
4589
|
}, c.Location);
|
|
4590
4590
|
},
|
|
4591
4591
|
_deserializeLocation(r) {
|
|
4592
|
-
var e, n, i, a, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), o = s.getUint32(0, !1), l = s.getUint32(4, !1), d = s.getUint32(8, !1), D = s.getUint32(12, !1), f = s.getUint32(16, !1), p = s.getUint32(20, !1), y = s.getUint32(24, !1), m = s.getUint32(28, !1), g = _.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + o, l)), h = t._setArrayType([], c.JSArray_String), A = t._setArrayType([], c.JSArray_TimeZone), C = c.JSArray_int,
|
|
4592
|
+
var e, n, i, a, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), o = s.getUint32(0, !1), l = s.getUint32(4, !1), d = s.getUint32(8, !1), D = s.getUint32(12, !1), f = s.getUint32(16, !1), p = s.getUint32(20, !1), y = s.getUint32(24, !1), m = s.getUint32(28, !1), g = _.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + o, l)), h = t._setArrayType([], c.JSArray_String), A = t._setArrayType([], c.JSArray_TimeZone), C = c.JSArray_int, F = t._setArrayType([], C), M = t._setArrayType([], C), x = d + D;
|
|
4593
4593
|
for (e = d, n = e; e < x; ++e)
|
|
4594
4594
|
r[e] === 0 && (C = r.buffer, i = r.byteOffset, C = new Uint8Array(C, i + n, e - n), h.push(_.C_AsciiCodec.decode$1(C)), n = e + 1);
|
|
4595
4595
|
for (n = f, e = 0; e < p; ++e, n = a)
|
|
4596
4596
|
a = n + 8, A.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, h[s.getUint8(n + 5)]));
|
|
4597
4597
|
for (n = y, e = 0; e < m; ++e)
|
|
4598
|
-
|
|
4598
|
+
F.push(_.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
|
|
4599
4599
|
for (e = 0; e < m; ++e)
|
|
4600
4600
|
M.push(s.getUint8(n)), ++n;
|
|
4601
|
-
return t.Location$(g,
|
|
4601
|
+
return t.Location$(g, F, M, A);
|
|
4602
4602
|
}
|
|
4603
4603
|
}, u = {
|
|
4604
4604
|
makeDispatchRecord(r, e, n, i) {
|
|
@@ -8198,8 +8198,8 @@ Arguments: [` + d + "]";
|
|
|
8198
8198
|
return _.JSArray_methods.fold$2(this._getJoins$1(r), "", new t.QueryRequest__getSqlJoins_closure(this, r));
|
|
8199
8199
|
},
|
|
8200
8200
|
_getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(r, e, n, i) {
|
|
8201
|
-
var a, s, o, l, d, D, f, p, y = this, m = r != null, g = y.dimensions, h = c.QueryRequestDimension, A = t.ListExtensions_whereIndexed(g, new t.QueryRequest__getRollupSelect_closure(r), h), C = A.get$isEmpty(A) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(A, new t.QueryRequest__getRollupSelect_closure0(), A.$ti._eval$1("Iterable.E"), c.String).join$1(0, ","),
|
|
8202
|
-
return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h,
|
|
8201
|
+
var a, s, o, l, d, D, f, p, y = this, m = r != null, g = y.dimensions, h = c.QueryRequestDimension, A = t.ListExtensions_whereIndexed(g, new t.QueryRequest__getRollupSelect_closure(r), h), C = A.get$isEmpty(A) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(A, new t.QueryRequest__getRollupSelect_closure0(), A.$ti._eval$1("Iterable.E"), c.String).join$1(0, ","), F = c.String;
|
|
8202
|
+
return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h, F), !0, F), a = y.metrics, s = c.JSArray_String, _.JSArray_methods.addAll$1(h, t.IterableExtension_foldIndexed(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(y, e, r, C))), o = y.sorts, l = t._arrayInstanceType(o), d = l._eval$1("MappedListIterable<1,String>"), _.JSArray_methods.addAll$1(h, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure3(y, e, r, C), d)), h = _.JSArray_methods.join$1(h, ","), D = u.getInterceptor$ax(g), f = t.List_List$of(D.map$1$1(g, new t.QueryRequest__getRollupSelect_closure4(i), F), !0, F), _.JSArray_methods.addAll$1(f, u.fold$2$ax(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(i, m))), _.JSArray_methods.addAll$1(f, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure6(), d)), f.push("" + m + " _is_rollup"), p = "select " + _.JSArray_methods.join$1(f, ",") + " from (" + ("select " + h + " from " + n) + ")", D.get$isNotEmpty(g) && (g = t.List_List$of(D.map$1$1(g, new t.QueryRequest__getRollupSelect_closure7(), F), !0, F), h = l._eval$1("MappedIterable<1,String>"), _.JSArray_methods.addAll$1(g, t.List_List$of(new t.MappedIterable(new t.WhereIterable(o, new t.QueryRequest__getRollupSelect_closure8(), l._eval$1("WhereIterable<1>")), new t.QueryRequest__getRollupSelect_closure9(), h), !0, h._eval$1("Iterable.E"))), p = p + " group by " + _.JSArray_methods.join$1(g, ",")), p;
|
|
8203
8203
|
},
|
|
8204
8204
|
get$_hasFillGap() {
|
|
8205
8205
|
var r = u.where$1$ax(this.dimensions, new t.QueryRequest__hasFillGap_closure());
|
|
@@ -8867,8 +8867,8 @@ Arguments: [` + d + "]";
|
|
|
8867
8867
|
$signature: 1
|
|
8868
8868
|
}, t.billSchema_closure.prototype = {
|
|
8869
8869
|
call$1(r) {
|
|
8870
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "completedAt", D = "integratedOrderId", f = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee",
|
|
8871
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", T.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", D, D, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", f, f, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett",
|
|
8870
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "completedAt", D = "integratedOrderId", f = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
|
|
8871
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", T.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", D, D, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", f, f, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", F, F, T.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", w, w, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.x28selecstC, r), t.Field_Field$numeric(e, e, !1, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric(e, e, !1, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Use SUM to count bills", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r)], c.JSArray_Field);
|
|
8872
8872
|
},
|
|
8873
8873
|
$signature: 0
|
|
8874
8874
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -9007,8 +9007,8 @@ Arguments: [` + d + "]";
|
|
|
9007
9007
|
$signature: 1
|
|
9008
9008
|
}, t.completeTimeBillSchema_closure.prototype = {
|
|
9009
9009
|
call$1(r) {
|
|
9010
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "completedAt", D = "integratedOrderId", f = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee",
|
|
9011
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", T.x28case_, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", D, D, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", f, f, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett",
|
|
9010
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "completedAt", D = "integratedOrderId", f = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", C = "deliveryFee", F = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
|
|
9011
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", T.x28case_, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", D, D, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", f, f, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", p, p, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", y, y, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Item gross", m, m, T.COALESg, r), t.Field_Field$numeric(e, T.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, T.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", g, g, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, "Takeaway", h, h, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", A, A, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", C, C, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", F, F, T.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, T.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, !1, "Delivery fee with tax", M, M, T.COALESdex5f_, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, !1, "Delivery fee without tax", x, x, T.COALESdex5fo, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, !1, "Other charge with tax", R, R, T.COALESo_, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, !1, "Other charge without tax", L, L, T.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, T.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, T.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, T.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, T.x28selecsta, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, !1, "Discount inc tax", w, w, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.x28selecstC, r)], c.JSArray_Field);
|
|
9012
9012
|
},
|
|
9013
9013
|
$signature: 0
|
|
9014
9014
|
}, t.completeTimeBillSchema_closure0.prototype = {
|
|
@@ -9077,10 +9077,10 @@ Arguments: [` + d + "]";
|
|
|
9077
9077
|
$signature: 1
|
|
9078
9078
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9079
9079
|
call$1(r) {
|
|
9080
|
-
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", d = "isRefund", D = "servedAt", f = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", C = "nettTotal",
|
|
9080
|
+
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", d = "isRefund", D = "servedAt", f = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", k = "layerOtherChargeTotal", j = "customAttributes", f0 = "layerZeroParentId", h0 = "collectedAt", o0 = "subCategories", S0 = "billAdjustmentInclusiveTaxTotal", b0 = "itemAdjustmentInclusiveTaxTotal", M0 = "layerBillAdjustmentInclusiveTaxTotal", R0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", I0 = "itemAdjustmentExclusiveTaxTotal", x0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9081
9081
|
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
9082
9082
|
`, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
9083
|
-
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", d, d, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", D, D, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", A, A, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett",
|
|
9083
|
+
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", d, d, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", D, D, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", A, A, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", M, M, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", R, R, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", k, k, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", j, j, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", f0, f0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", h0, h0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", o0, o0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", S0, S0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", b0, b0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", M0, M0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", R0, R0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", I0, I0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", x0, x0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", F0, F0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], c.JSArray_Field);
|
|
9084
9084
|
},
|
|
9085
9085
|
$signature: 0
|
|
9086
9086
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -9580,8 +9580,8 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
9580
9580
|
$signature: 1
|
|
9581
9581
|
}, t.refundBillSchema_closure.prototype = {
|
|
9582
9582
|
call$1(r) {
|
|
9583
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "Takeaway", D = "completedAt", f = "integratedOrderId", p = "itemCount", y = "taxTotal", m = "discountTotal", g = "grossTotal", h = "rounding", A = "takeawayPrice", C = "thirdPartyExtraCharge",
|
|
9584
|
-
return t._setArrayType([t.Field_Field$string(e, "_", !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, e, !1, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !1, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !1, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !1, !1, d, "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", f, f, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", p, p, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", m, m, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Gross", g, g, T.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, d, A, A, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", C, C, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee",
|
|
9583
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", d = "Takeaway", D = "completedAt", f = "integratedOrderId", p = "itemCount", y = "taxTotal", m = "discountTotal", g = "grossTotal", h = "rounding", A = "takeawayPrice", C = "thirdPartyExtraCharge", F = "deliveryFee", M = "nettTotal";
|
|
9584
|
+
return t._setArrayType([t.Field_Field$string(e, "_", !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", a, a, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, e, !1, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !1, !1, "Is in house delivery", o, o, e, r), t.Field_Field$bool(e, e, !1, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !1, !1, d, "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !1, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", T.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", f, f, e, r), t.Field_Field$numeric(e, T.IFNULLi, !0, !1, "Item count", p, p, T.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, !1, e, y, y, T.COALEStax, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, !1, "Discount", m, m, T.COALESdit, r), t.Field_Field$numeric(e, T.IFNULLg, !1, !1, "Gross", g, g, T.COALESg, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", h, h, T.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "nettTaxes.SST.total", T.COALESss, r), t.Field_Field$string(e, e, !1, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, T.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.COALESse, r), t.Field_Field$string(e, e, !1, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, T.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, r), t.Field_Field$numeric(e, T.IFNULLta, !1, !1, d, A, A, T.COALEStak, r), t.Field_Field$numeric(e, T.IFNULLth, !1, !1, "Extra charge", C, C, T.COALESth, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, !1, "Delivery fee", F, F, T.COALESdex2c, r), t.Field_Field$numeric(e, T.IFNULLn, !1, !1, "Nett", M, M, T.COALESn, r), t.Field_Field$numeric(e, "IFNULL(@grossTotal,0)*IF(@isRefund, -1, 1)+IFNULL(@deliveryFee,0)*IF(@isRefund, -1, 1)+IFNULL(@discountTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Gross before charges", "grossBeforeCharges", e, "COALESCE(@gross_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@delivery_fee,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@discount_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, T.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, T.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, T.SUM__n, r)], c.JSArray_Field);
|
|
9585
9585
|
},
|
|
9586
9586
|
$signature: 0
|
|
9587
9587
|
}, t.refundBillSchema_closure0.prototype = {
|
|
@@ -10584,12 +10584,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
10584
10584
|
var e = u.LegacyJavaScriptObject.prototype;
|
|
10585
10585
|
e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
|
|
10586
10586
|
}(), function() {
|
|
10587
|
-
var e =
|
|
10587
|
+
var e = Z._static_2, n = Z._static_1, i = Z._instance_1u, a = Z._instance_0u;
|
|
10588
10588
|
e(u, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 49), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 37), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 37), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 49);
|
|
10589
10589
|
var s;
|
|
10590
10590
|
i(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), i(s, "get$setMonth", "setMonth$1", 7), i(s, "get$setDay", "setDay$1", 7), i(s, "get$setDayOfYear", "setDayOfYear$1", 7), i(s, "get$setHour", "setHour$1", 7), i(s, "get$setMinute", "setMinute$1", 7), i(s, "get$setSecond", "setSecond$1", 7), i(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 75), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
|
|
10591
10591
|
}(), function() {
|
|
10592
|
-
var e =
|
|
10592
|
+
var e = Z.mixin, n = Z.inherit, i = Z.inheritMany;
|
|
10593
10593
|
n(t.Object, null), i(t.Object, [t.JS_CONST, u.Interceptor, u.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, t.NativeTypedData]), n(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), i(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), i(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_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.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), i(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), i(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), i(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), i(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), i(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), i(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), i(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), i(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), i(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), i(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
|
|
10594
10594
|
}();
|
|
10595
10595
|
var b = {
|
|
@@ -10773,7 +10773,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10773
10773
|
};
|
|
10774
10774
|
}();
|
|
10775
10775
|
(function() {
|
|
10776
|
-
var e =
|
|
10776
|
+
var e = Z.makeConstList;
|
|
10777
10777
|
_.Interceptor_methods = u.Interceptor.prototype, _.JSArray_methods = u.JSArray.prototype, _.JSInt_methods = u.JSInt.prototype, _.JSNumber_methods = u.JSNumber.prototype, _.JSString_methods = u.JSString.prototype, _.JavaScriptFunction_methods = u.JavaScriptFunction.prototype, _.JavaScriptObject_methods = u.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = u.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = u.UnknownJavaScriptObject.prototype, _.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), _.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), _.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), _.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), _.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), _.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), _.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), _.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), _.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), _.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), _.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), _.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), _.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), _.AsciiDecoder_false = new t.AsciiDecoder(!1), _.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), _.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), _.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), _.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), _.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), _.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), _.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), _.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), _.C_AsciiCodec = new t.AsciiCodec(), _.C_EmptyIterator = new t.EmptyIterator(), _.C_Endian = new t.Endian(), _.C_Endian0 = new t.Endian(), _.C_JS_CONST = function(i) {
|
|
10778
10778
|
var a = Object.prototype.toString.call(i);
|
|
10779
10779
|
return a.substring(8, a.length - 1);
|
|
@@ -10790,7 +10790,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10790
10790
|
}
|
|
10791
10791
|
}
|
|
10792
10792
|
function s(D, f) {
|
|
10793
|
-
return
|
|
10793
|
+
return O.HTMLElement && D instanceof HTMLElement ? "HTMLElement" : a(D, f);
|
|
10794
10794
|
}
|
|
10795
10795
|
function o(D) {
|
|
10796
10796
|
if (typeof window > "u" || typeof window[D] > "u") return null;
|
|
@@ -10875,7 +10875,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10875
10875
|
})(), function() {
|
|
10876
10876
|
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(c.String, c.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(c.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], c.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], c.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], c.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
|
|
10877
10877
|
}(), function() {
|
|
10878
|
-
var e =
|
|
10878
|
+
var e = Z.lazyFinal, n = Z.lazy;
|
|
10879
10879
|
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({
|
|
10880
10880
|
toString: function() {
|
|
10881
10881
|
return "$receiver$";
|
|
@@ -10912,8 +10912,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10912
10912
|
return i.message;
|
|
10913
10913
|
}
|
|
10914
10914
|
}())), 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], c.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", () => {
|
|
10915
|
-
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), f = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2),
|
|
10916
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", d, "en_ca", D, "en_gb", f, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", A, "fr", C, "fr_ch",
|
|
10915
|
+
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), f = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), k = t.DeLocale$(_.StartOfWeek_2), j = t.DeLocale$(_.StartOfWeek_2), f0 = t.DeLocale$(_.StartOfWeek_2), h0 = t.ItLocale$(_.StartOfWeek_2), o0 = t.ItLocale$(_.StartOfWeek_2), S0 = t.ArLyLocale$(!0, _.StartOfWeek_0), b0 = t.ArLyLocale$(!1, _.StartOfWeek_0), M0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), R0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), I0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
|
|
10916
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", d, "en_ca", D, "en_gb", f, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", A, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", k, "de_at", j, "de_ch", f0, "it", h0, "it_ch", o0, "ar", S0, "ar_ly", b0, "ar_dz", M0, "ar_kw", R0, "ar_sa", T0, "ar_ma", I0, "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", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], c.String, t.findType("Locale"));
|
|
10917
10917
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10918
10918
|
var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], c.JSArray_Permission), i);
|
|
10919
10919
|
return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], c.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
|
|
@@ -11343,7 +11343,7 @@ from member_store_purchases
|
|
|
11343
11343
|
(function() {
|
|
11344
11344
|
var e = function(l) {
|
|
11345
11345
|
var d = {};
|
|
11346
|
-
return d[l] = 1, Object.keys(
|
|
11346
|
+
return d[l] = 1, Object.keys(Z.convertToFastObject(d))[0];
|
|
11347
11347
|
};
|
|
11348
11348
|
b.getIsolateTag = function(l) {
|
|
11349
11349
|
return e("___dart_" + l + b.isolateTag);
|
|
@@ -11356,7 +11356,7 @@ from member_store_purchases
|
|
|
11356
11356
|
}
|
|
11357
11357
|
}
|
|
11358
11358
|
b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
|
|
11359
|
-
})(),
|
|
11359
|
+
})(), Z.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), Z.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";
|
|
11360
11360
|
}(), Function.prototype.call$1 = function(r) {
|
|
11361
11361
|
return this(r);
|
|
11362
11362
|
}, Function.prototype.call$0 = function() {
|
|
@@ -11371,7 +11371,7 @@ from member_store_purchases
|
|
|
11371
11371
|
return this(r, e, n, i, a, s, o, l);
|
|
11372
11372
|
}, Function.prototype.call$1$0 = function() {
|
|
11373
11373
|
return this();
|
|
11374
|
-
},
|
|
11374
|
+
}, l0($), function(r) {
|
|
11375
11375
|
if (typeof document > "u") {
|
|
11376
11376
|
r(null);
|
|
11377
11377
|
return;
|
|
@@ -11395,50 +11395,50 @@ from member_store_purchases
|
|
|
11395
11395
|
});
|
|
11396
11396
|
})();
|
|
11397
11397
|
})(me);
|
|
11398
|
-
const
|
|
11399
|
-
var
|
|
11398
|
+
const ke = me;
|
|
11399
|
+
var Ue = ke, ge = {};
|
|
11400
11400
|
(function(E) {
|
|
11401
|
-
E.load = function(
|
|
11401
|
+
E.load = function(I, O) {
|
|
11402
11402
|
var P = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = P ? Object.create(globalThis) : globalThis;
|
|
11403
|
-
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
11404
|
-
setImmediate(
|
|
11405
|
-
} : function(
|
|
11406
|
-
setTimeout(
|
|
11407
|
-
}, B.exports =
|
|
11408
|
-
var
|
|
11403
|
+
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(H) {
|
|
11404
|
+
setImmediate(H);
|
|
11405
|
+
} : function(H) {
|
|
11406
|
+
setTimeout(H, 0);
|
|
11407
|
+
}, B.exports = O || E, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
|
|
11408
|
+
var J = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
|
|
11409
11409
|
Object.defineProperty(B, "location", {
|
|
11410
11410
|
value: {
|
|
11411
11411
|
get href() {
|
|
11412
|
-
return
|
|
11413
|
-
var
|
|
11414
|
-
return process.platform != "win32" ?
|
|
11412
|
+
return J.pathToFileURL ? J.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
11413
|
+
var H = process.cwd();
|
|
11414
|
+
return process.platform != "win32" ? H : "/" + H.replace(/\\/g, "/");
|
|
11415
11415
|
}() + "/";
|
|
11416
11416
|
}
|
|
11417
11417
|
}
|
|
11418
11418
|
}), function() {
|
|
11419
|
-
function
|
|
11419
|
+
function H() {
|
|
11420
11420
|
try {
|
|
11421
11421
|
throw new Error();
|
|
11422
|
-
} catch (
|
|
11423
|
-
var U =
|
|
11422
|
+
} catch (t0) {
|
|
11423
|
+
var U = t0.stack, N = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), X = null;
|
|
11424
11424
|
do {
|
|
11425
|
-
var
|
|
11426
|
-
|
|
11427
|
-
} while (
|
|
11428
|
-
return
|
|
11425
|
+
var Y = N.exec(U);
|
|
11426
|
+
Y != null && (X = Y);
|
|
11427
|
+
} while (Y != null);
|
|
11428
|
+
return X[1];
|
|
11429
11429
|
}
|
|
11430
11430
|
}
|
|
11431
11431
|
var q = null;
|
|
11432
11432
|
Object.defineProperty(B, "document", {
|
|
11433
11433
|
value: {
|
|
11434
11434
|
get currentScript() {
|
|
11435
|
-
return q == null && (q = { src:
|
|
11435
|
+
return q == null && (q = { src: H() }), q;
|
|
11436
11436
|
}
|
|
11437
11437
|
}
|
|
11438
11438
|
});
|
|
11439
|
-
}(), B.dartDeferredLibraryLoader = function(
|
|
11439
|
+
}(), B.dartDeferredLibraryLoader = function(H, q, U) {
|
|
11440
11440
|
try {
|
|
11441
|
-
load(
|
|
11441
|
+
load(H), q();
|
|
11442
11442
|
} catch (N) {
|
|
11443
11443
|
U(N);
|
|
11444
11444
|
}
|
|
@@ -11460,7 +11460,7 @@ var ke = Ne, ge = {};
|
|
|
11460
11460
|
function N(e, n) {
|
|
11461
11461
|
Object.assign(n, e);
|
|
11462
11462
|
}
|
|
11463
|
-
var
|
|
11463
|
+
var X = function() {
|
|
11464
11464
|
var e = function() {
|
|
11465
11465
|
};
|
|
11466
11466
|
e.prototype = { p: {} };
|
|
@@ -11479,9 +11479,9 @@ var ke = Ne, ge = {};
|
|
|
11479
11479
|
}
|
|
11480
11480
|
return !1;
|
|
11481
11481
|
}();
|
|
11482
|
-
function
|
|
11482
|
+
function Y(e, n) {
|
|
11483
11483
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
11484
|
-
if (
|
|
11484
|
+
if (X) {
|
|
11485
11485
|
e.prototype.__proto__ = n.prototype;
|
|
11486
11486
|
return;
|
|
11487
11487
|
}
|
|
@@ -11489,17 +11489,17 @@ var ke = Ne, ge = {};
|
|
|
11489
11489
|
q(e.prototype, i), e.prototype = i;
|
|
11490
11490
|
}
|
|
11491
11491
|
}
|
|
11492
|
-
function
|
|
11492
|
+
function t0(e, n) {
|
|
11493
11493
|
for (var i = 0; i < n.length; i++)
|
|
11494
|
-
|
|
11494
|
+
Y(n[i], e);
|
|
11495
11495
|
}
|
|
11496
|
-
function
|
|
11496
|
+
function G(e, n) {
|
|
11497
11497
|
N(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11498
11498
|
}
|
|
11499
|
-
function
|
|
11499
|
+
function K(e, n) {
|
|
11500
11500
|
U(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11501
11501
|
}
|
|
11502
|
-
function
|
|
11502
|
+
function V(e, n, i, a) {
|
|
11503
11503
|
var s = e;
|
|
11504
11504
|
e[n] = s, e[i] = function() {
|
|
11505
11505
|
e[i] = function() {
|
|
@@ -11524,7 +11524,7 @@ var ke = Ne, ge = {};
|
|
|
11524
11524
|
}, e[n];
|
|
11525
11525
|
};
|
|
11526
11526
|
}
|
|
11527
|
-
function
|
|
11527
|
+
function s0(e, n, i, a) {
|
|
11528
11528
|
var s = e;
|
|
11529
11529
|
e[n] = s, e[i] = function() {
|
|
11530
11530
|
if (e[n] === s) {
|
|
@@ -11537,13 +11537,13 @@ var ke = Ne, ge = {};
|
|
|
11537
11537
|
}, l;
|
|
11538
11538
|
};
|
|
11539
11539
|
}
|
|
11540
|
-
function
|
|
11540
|
+
function a0(e) {
|
|
11541
11541
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
11542
11542
|
}
|
|
11543
|
-
function
|
|
11543
|
+
function l0(e) {
|
|
11544
11544
|
return e;
|
|
11545
11545
|
}
|
|
11546
|
-
function
|
|
11546
|
+
function d0(e) {
|
|
11547
11547
|
for (var n = 0; n < e.length; ++n)
|
|
11548
11548
|
e[n];
|
|
11549
11549
|
}
|
|
@@ -11561,9 +11561,9 @@ var ke = Ne, ge = {};
|
|
|
11561
11561
|
return n === null && (n = u.closureFromTearOff(e).prototype), n;
|
|
11562
11562
|
};
|
|
11563
11563
|
}
|
|
11564
|
-
var
|
|
11564
|
+
var z = 0;
|
|
11565
11565
|
function n0(e, n, i, a, s, o, l, d, D, f) {
|
|
11566
|
-
return typeof d == "number" && (d +=
|
|
11566
|
+
return typeof d == "number" && (d += z), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: d, aI: D || 0, nDA: f };
|
|
11567
11567
|
}
|
|
11568
11568
|
function e0(e, n, i, a, s, o, l, d) {
|
|
11569
11569
|
var D = n0(e, !0, !1, i, a, s, o, l, d, !1), f = Q(D);
|
|
@@ -11574,7 +11574,7 @@ var ke = Ne, ge = {};
|
|
|
11574
11574
|
var p = n0(e, !1, i, a, s, o, l, d, D, !!f), y = p0(i, p);
|
|
11575
11575
|
e[n] = y;
|
|
11576
11576
|
}
|
|
11577
|
-
function
|
|
11577
|
+
function W(e) {
|
|
11578
11578
|
var n = T.interceptorsByTag;
|
|
11579
11579
|
if (!n) {
|
|
11580
11580
|
T.interceptorsByTag = e;
|
|
@@ -11582,7 +11582,7 @@ var ke = Ne, ge = {};
|
|
|
11582
11582
|
}
|
|
11583
11583
|
q(e, n);
|
|
11584
11584
|
}
|
|
11585
|
-
function
|
|
11585
|
+
function r0(e) {
|
|
11586
11586
|
var n = T.leafTags;
|
|
11587
11587
|
if (!n) {
|
|
11588
11588
|
T.leafTags = e;
|
|
@@ -11590,11 +11590,11 @@ var ke = Ne, ge = {};
|
|
|
11590
11590
|
}
|
|
11591
11591
|
q(e, n);
|
|
11592
11592
|
}
|
|
11593
|
-
function
|
|
11593
|
+
function _0(e) {
|
|
11594
11594
|
var n = T.types, i = n.length;
|
|
11595
11595
|
return n.push.apply(n, e), i;
|
|
11596
11596
|
}
|
|
11597
|
-
function
|
|
11597
|
+
function Z(e, n) {
|
|
11598
11598
|
return q(n, e), e;
|
|
11599
11599
|
}
|
|
11600
11600
|
var t = function() {
|
|
@@ -11607,7 +11607,7 @@ var ke = Ne, ge = {};
|
|
|
11607
11607
|
return e0(l, d, i, a, s, [D], f, o);
|
|
11608
11608
|
};
|
|
11609
11609
|
};
|
|
11610
|
-
return { inherit:
|
|
11610
|
+
return { inherit: Y, inheritMany: t0, mixin: G, mixinHard: K, installStaticTearOff: e0, installInstanceTearOff: i0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: a0, lazy: u0, lazyFinal: s0, lazyOld: V, updateHolder: Z, convertToFastObject: l0, updateTypes: _0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: r0 };
|
|
11611
11611
|
}(), u = {
|
|
11612
11612
|
JS_CONST: function() {
|
|
11613
11613
|
},
|
|
@@ -11657,15 +11657,15 @@ var ke = Ne, ge = {};
|
|
|
11657
11657
|
}
|
|
11658
11658
|
},
|
|
11659
11659
|
Sort__dualPivotQuicksort(e, n, i, a) {
|
|
11660
|
-
var s, o, l, d, D, f, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = n + h, C = i - h,
|
|
11661
|
-
if (a.call$2(L,
|
|
11660
|
+
var s, o, l, d, D, f, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, A), w = R.$index(e, M), v = R.$index(e, F), k = R.$index(e, x), j = R.$index(e, C);
|
|
11661
|
+
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(k, j) > 0 && (s = j, j = k, k = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, k) > 0 && (s = k, k = L, L = s), a.call$2(v, k) > 0 && (s = k, k = v, v = s), a.call$2(w, j) > 0 && (s = j, j = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(k, j) > 0 && (s = j, j = k, k = s), R.$indexSet(e, A, L), R.$indexSet(e, F, v), R.$indexSet(e, C, j), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, k), 0)) {
|
|
11662
11662
|
for (d = o; d <= l; ++d)
|
|
11663
|
-
if (D = R.$index(e, d), f = a.call$2(D,
|
|
11663
|
+
if (D = R.$index(e, d), f = a.call$2(D, w), f !== 0)
|
|
11664
11664
|
if (f < 0)
|
|
11665
11665
|
d !== o && (R.$indexSet(e, d, R.$index(e, o)), R.$indexSet(e, o, D)), ++o;
|
|
11666
11666
|
else
|
|
11667
11667
|
for (; ; )
|
|
11668
|
-
if (f = a.call$2(R.$index(e, l),
|
|
11668
|
+
if (f = a.call$2(R.$index(e, l), w), f > 0) {
|
|
11669
11669
|
--l;
|
|
11670
11670
|
continue;
|
|
11671
11671
|
} else if (p = l - 1, f < 0) {
|
|
@@ -11678,37 +11678,37 @@ var ke = Ne, ge = {};
|
|
|
11678
11678
|
m = !0;
|
|
11679
11679
|
} else {
|
|
11680
11680
|
for (d = o; d <= l; ++d)
|
|
11681
|
-
if (D = R.$index(e, d), a.call$2(D,
|
|
11681
|
+
if (D = R.$index(e, d), a.call$2(D, w) < 0)
|
|
11682
11682
|
d !== o && (R.$indexSet(e, d, R.$index(e, o)), R.$indexSet(e, o, D)), ++o;
|
|
11683
|
-
else if (a.call$2(D,
|
|
11683
|
+
else if (a.call$2(D, k) > 0)
|
|
11684
11684
|
for (; ; )
|
|
11685
|
-
if (a.call$2(R.$index(e, l),
|
|
11685
|
+
if (a.call$2(R.$index(e, l), k) > 0) {
|
|
11686
11686
|
if (--l, l < d)
|
|
11687
11687
|
break;
|
|
11688
11688
|
continue;
|
|
11689
11689
|
} else {
|
|
11690
|
-
p = l - 1, a.call$2(R.$index(e, l),
|
|
11690
|
+
p = l - 1, a.call$2(R.$index(e, l), w) < 0 ? (R.$indexSet(e, d, R.$index(e, o)), y = o + 1, R.$indexSet(e, o, R.$index(e, l)), R.$indexSet(e, l, D), o = y) : (R.$indexSet(e, d, R.$index(e, l)), R.$indexSet(e, l, D)), l = p;
|
|
11691
11691
|
break;
|
|
11692
11692
|
}
|
|
11693
11693
|
m = !1;
|
|
11694
11694
|
}
|
|
11695
|
-
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g,
|
|
11695
|
+
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, k), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
|
|
11696
11696
|
if (o < A && l > C) {
|
|
11697
|
-
for (; _.$eq$(a.call$2(R.$index(e, o),
|
|
11697
|
+
for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
|
|
11698
11698
|
++o;
|
|
11699
|
-
for (; _.$eq$(a.call$2(R.$index(e, l),
|
|
11699
|
+
for (; _.$eq$(a.call$2(R.$index(e, l), k), 0); )
|
|
11700
11700
|
--l;
|
|
11701
11701
|
for (d = o; d <= l; ++d)
|
|
11702
|
-
if (D = R.$index(e, d), a.call$2(D,
|
|
11702
|
+
if (D = R.$index(e, d), a.call$2(D, w) === 0)
|
|
11703
11703
|
d !== o && (R.$indexSet(e, d, R.$index(e, o)), R.$indexSet(e, o, D)), ++o;
|
|
11704
|
-
else if (a.call$2(D,
|
|
11704
|
+
else if (a.call$2(D, k) === 0)
|
|
11705
11705
|
for (; ; )
|
|
11706
|
-
if (a.call$2(R.$index(e, l),
|
|
11706
|
+
if (a.call$2(R.$index(e, l), k) === 0) {
|
|
11707
11707
|
if (--l, l < d)
|
|
11708
11708
|
break;
|
|
11709
11709
|
continue;
|
|
11710
11710
|
} else {
|
|
11711
|
-
p = l - 1, a.call$2(R.$index(e, l),
|
|
11711
|
+
p = l - 1, a.call$2(R.$index(e, l), w) < 0 ? (R.$indexSet(e, d, R.$index(e, o)), y = o + 1, R.$indexSet(e, o, R.$index(e, l)), R.$indexSet(e, l, D), o = y) : (R.$indexSet(e, d, R.$index(e, l)), R.$indexSet(e, l, D)), l = p;
|
|
11712
11712
|
break;
|
|
11713
11713
|
}
|
|
11714
11714
|
u.Sort__doSort(e, o, l, a);
|
|
@@ -11950,14 +11950,14 @@ var ke = Ne, ge = {};
|
|
|
11950
11950
|
return u.Primitives__generalApplyFunction(e, n, i);
|
|
11951
11951
|
},
|
|
11952
11952
|
Primitives__generalApplyFunction(e, n, i) {
|
|
11953
|
-
var a, s, o, l, d, D, f, p, y, m, g, h, A = Array.isArray(n) ? n : u.List_List$of(n, !0, r.dynamic), C = A.length,
|
|
11954
|
-
if (C <
|
|
11953
|
+
var a, s, o, l, d, D, f, p, y, m, g, h, A = Array.isArray(n) ? n : u.List_List$of(n, !0, r.dynamic), C = A.length, F = e.$requiredArgCount;
|
|
11954
|
+
if (C < F)
|
|
11955
11955
|
return u.Primitives_functionNoSuchMethod(e, A, i);
|
|
11956
11956
|
if (a = e.$defaultValues, s = a == null, o = s ? null : a(), l = _.getInterceptor$(e), d = l["call*"], typeof d == "string" && (d = l[d]), s)
|
|
11957
|
-
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : C ===
|
|
11957
|
+
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : C === F ? d.apply(e, A) : u.Primitives_functionNoSuchMethod(e, A, i);
|
|
11958
11958
|
if (Array.isArray(o))
|
|
11959
|
-
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : (D =
|
|
11960
|
-
if (C >
|
|
11959
|
+
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, A, i) : (D = F + o.length, C > D ? u.Primitives_functionNoSuchMethod(e, A, null) : (C < D && (f = o.slice(C - F), A === n && (A = u.List_List$of(A, !0, r.dynamic)), $.JSArray_methods.addAll$1(A, f)), d.apply(e, A)));
|
|
11960
|
+
if (C > F)
|
|
11961
11961
|
return u.Primitives_functionNoSuchMethod(e, A, i);
|
|
11962
11962
|
if (A === n && (A = u.List_List$of(A, !0, r.dynamic)), p = Object.keys(o), i == null)
|
|
11963
11963
|
for (s = p.length, y = 0; y < p.length; p.length === s || (0, u.throwConcurrentModificationError)(p), ++y) {
|
|
@@ -12065,13 +12065,13 @@ var ke = Ne, ge = {};
|
|
|
12065
12065
|
return n;
|
|
12066
12066
|
},
|
|
12067
12067
|
Closure_fromTearOff(e) {
|
|
12068
|
-
var n, i, a, s, o, l, d, D, f, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, A = e.aI, C = e.fs,
|
|
12068
|
+
var n, i, a, s, o, l, d, D, f, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, A = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
|
|
12069
12069
|
for (L.toString, n = Object.create(m ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, m ? i = function() {
|
|
12070
12070
|
this.$initialize();
|
|
12071
|
-
} : i = function(v,
|
|
12072
|
-
this.$initialize(v,
|
|
12071
|
+
} : i = function(v, k) {
|
|
12072
|
+
this.$initialize(v, k);
|
|
12073
12073
|
}, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !m, a ? s = u.Closure_forwardCallTo(M, R, g, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, m, g), n[x] = s, o = s, l = 1; l < C.length; ++l)
|
|
12074
|
-
d = C[l], typeof d == "string" ? (D = y[d], f = d, d = D) : f = "", p =
|
|
12074
|
+
d = C[l], typeof d == "string" ? (D = y[d], f = d, d = D) : f = "", p = F[l], p != null && (a && (d = u.Closure_forwardCallTo(f, d, g, h)), n[p] = d), l === A && (o = d);
|
|
12075
12075
|
return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
12076
12076
|
},
|
|
12077
12077
|
Closure__computeSignatureFunctionNewRti(e, n, i) {
|
|
@@ -12518,7 +12518,7 @@ var ke = Ne, ge = {};
|
|
|
12518
12518
|
return u._Universe_eval(T.typeUniverse, e, !1);
|
|
12519
12519
|
},
|
|
12520
12520
|
_substitute(e, n, i, a) {
|
|
12521
|
-
var s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
12521
|
+
var s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R = n._kind;
|
|
12522
12522
|
switch (R) {
|
|
12523
12523
|
case 5:
|
|
12524
12524
|
case 1:
|
|
@@ -12539,7 +12539,7 @@ var ke = Ne, ge = {};
|
|
|
12539
12539
|
case 12:
|
|
12540
12540
|
return m = n._primary, g = u._substitute(e, m, i, a), h = n._rest, A = u._substituteFunctionParameters(e, h, i, a), g === m && A === h ? n : u._Universe__lookupFunctionRti(e, g, A);
|
|
12541
12541
|
case 13:
|
|
12542
|
-
return C = n._rest, a += C.length,
|
|
12542
|
+
return C = n._rest, a += C.length, F = u._substituteArray(e, C, i, a), D = n._primary, f = u._substitute(e, D, i, a), F === C && f === D ? n : u._Universe__lookupGenericFunctionRti(e, f, F, !0);
|
|
12543
12543
|
case 14:
|
|
12544
12544
|
return M = n._primary, M < a || (x = i[M - a], x == null) ? n : x;
|
|
12545
12545
|
default:
|
|
@@ -12805,28 +12805,28 @@ var ke = Ne, ge = {};
|
|
|
12805
12805
|
return o + "})";
|
|
12806
12806
|
},
|
|
12807
12807
|
_functionRtiToString(e, n, i) {
|
|
12808
|
-
var a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
12808
|
+
var a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v, k = ", ";
|
|
12809
12809
|
if (i != null) {
|
|
12810
12810
|
for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
|
|
12811
12811
|
n.push("T" + (o + l));
|
|
12812
|
-
for (d = r.nullable_Object, D = r.legacy_Object, f = "<", p = "", l = 0; l < a; ++l, p =
|
|
12812
|
+
for (d = r.nullable_Object, D = r.legacy_Object, f = "<", p = "", l = 0; l < a; ++l, p = k)
|
|
12813
12813
|
f = $.JSString_methods.$add(f + p, n[n.length - 1 - l]), y = i[l], m = y._kind, m === 2 || m === 3 || m === 4 || m === 5 || y === d ? g = !0 : y !== D ? g = !1 : g = !0, g || (f += " extends " + u._rtiToString(y, n));
|
|
12814
12814
|
f += ">";
|
|
12815
12815
|
} else
|
|
12816
12816
|
f = "", s = null;
|
|
12817
|
-
for (d = e._primary, h = e._rest, A = h._requiredPositional, C = A.length,
|
|
12818
|
-
|
|
12817
|
+
for (d = e._primary, h = e._rest, A = h._requiredPositional, C = A.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(d, n), w = "", v = "", l = 0; l < C; ++l, v = k)
|
|
12818
|
+
w += v + u._rtiToString(A[l], n);
|
|
12819
12819
|
if (M > 0) {
|
|
12820
|
-
for (
|
|
12821
|
-
|
|
12822
|
-
|
|
12820
|
+
for (w += v + "[", v = "", l = 0; l < M; ++l, v = k)
|
|
12821
|
+
w += v + u._rtiToString(F[l], n);
|
|
12822
|
+
w += "]";
|
|
12823
12823
|
}
|
|
12824
12824
|
if (R > 0) {
|
|
12825
|
-
for (
|
|
12826
|
-
|
|
12827
|
-
|
|
12825
|
+
for (w += v + "{", v = "", l = 0; l < R; l += 3, v = k)
|
|
12826
|
+
w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
|
|
12827
|
+
w += "}";
|
|
12828
12828
|
}
|
|
12829
|
-
return s != null && (n.toString, n.length = s), f + "(" +
|
|
12829
|
+
return s != null && (n.toString, n.length = s), f + "(" + w + ") => " + L;
|
|
12830
12830
|
},
|
|
12831
12831
|
_rtiToString(e, n) {
|
|
12832
12832
|
var i, a, s, o, l, d, D = e._kind;
|
|
@@ -13184,35 +13184,35 @@ var ke = Ne, ge = {};
|
|
|
13184
13184
|
return D === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? D !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && D === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
|
|
13185
13185
|
},
|
|
13186
13186
|
_isFunctionSubtype(e, n, i, a, s) {
|
|
13187
|
-
var o, l, d, D, f, p, y, m, g, h, A, C,
|
|
13187
|
+
var o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v, k, j, f0;
|
|
13188
13188
|
if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, d = o._requiredPositional, D = l._requiredPositional, f = d.length, p = D.length, f > p) || (y = p - f, m = o._optionalPositional, g = l._optionalPositional, h = m.length, A = g.length, f + h < p + A))
|
|
13189
13189
|
return !1;
|
|
13190
13190
|
for (C = 0; C < f; ++C)
|
|
13191
|
-
if (
|
|
13191
|
+
if (F = d[C], !u._isSubtype(e, D[C], s, F, i))
|
|
13192
13192
|
return !1;
|
|
13193
13193
|
for (C = 0; C < y; ++C)
|
|
13194
|
-
if (
|
|
13194
|
+
if (F = m[C], !u._isSubtype(e, D[f + C], s, F, i))
|
|
13195
13195
|
return !1;
|
|
13196
13196
|
for (C = 0; C < A; ++C)
|
|
13197
|
-
if (
|
|
13197
|
+
if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
|
|
13198
13198
|
return !1;
|
|
13199
|
-
for (M = o._named, x = l._named, R = M.length, L = x.length,
|
|
13200
|
-
for (
|
|
13201
|
-
if (
|
|
13199
|
+
for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
|
|
13200
|
+
for (k = x[v]; ; ) {
|
|
13201
|
+
if (w >= R || (j = M[w], w += 3, k < j))
|
|
13202
13202
|
return !1;
|
|
13203
|
-
if (
|
|
13204
|
-
if (
|
|
13203
|
+
if (f0 = M[w - 2], j < k) {
|
|
13204
|
+
if (f0)
|
|
13205
13205
|
return !1;
|
|
13206
13206
|
continue;
|
|
13207
13207
|
}
|
|
13208
|
-
if (
|
|
13208
|
+
if (F = x[v + 1], f0 && !F || (F = M[w - 1], !u._isSubtype(e, x[v + 2], s, F, i)))
|
|
13209
13209
|
return !1;
|
|
13210
13210
|
break;
|
|
13211
13211
|
}
|
|
13212
|
-
for (;
|
|
13213
|
-
if (M[
|
|
13212
|
+
for (; w < R; ) {
|
|
13213
|
+
if (M[w + 1])
|
|
13214
13214
|
return !1;
|
|
13215
|
-
|
|
13215
|
+
w += 3;
|
|
13216
13216
|
}
|
|
13217
13217
|
return !0;
|
|
13218
13218
|
},
|
|
@@ -13642,9 +13642,9 @@ var ke = Ne, ge = {};
|
|
|
13642
13642
|
return new u.DateTime(Date.now(), !1);
|
|
13643
13643
|
},
|
|
13644
13644
|
DateTime_parse(e) {
|
|
13645
|
-
var n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
13646
|
-
if (
|
|
13647
|
-
if (n = new u.DateTime_parse_parseIntOrZero(), i =
|
|
13645
|
+
var n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F = b.$get$DateTime__parseFormat().firstMatch$1(e);
|
|
13646
|
+
if (F != null) {
|
|
13647
|
+
if (n = new u.DateTime_parse_parseIntOrZero(), i = F.__js_helper$_match, a = i[1], a.toString, s = u.int_parse(a), a = i[2], a.toString, o = u.int_parse(a), a = i[3], a.toString, l = u.int_parse(a), d = n.call$1(i[4]), D = n.call$1(i[5]), f = n.call$1(i[6]), p = new u.DateTime_parse_parseMilliAndMicroseconds().call$1(i[7]), y = $.JSInt_methods._tdivFast$1(p, 1e3), i[8] != null ? (m = i[9], m != null && (g = m === "-" ? -1 : 1, a = i[10], a.toString, h = u.int_parse(a), D -= g * (n.call$1(i[11]) + 60 * h)), A = !0) : A = !1, C = u.Primitives_valueFromDecomposedDate(s, o, l, d, D, f, y + $.JSNumber_methods.round$0(p % 1e3 / 1e3), A), C == null)
|
|
13648
13648
|
throw u.wrapException(u.FormatException$("Time out of range", e, null));
|
|
13649
13649
|
return u.DateTime$_withValue(C, A);
|
|
13650
13650
|
} else
|
|
@@ -13904,9 +13904,9 @@ var ke = Ne, ge = {};
|
|
|
13904
13904
|
var l = this;
|
|
13905
13905
|
l.digest = n, l._extended = i, l._hash_sink$_sink = a, l._currentChunk = s, l._lengthInBytes = 0, l._pendingData = o, l._isClosed = !1;
|
|
13906
13906
|
},
|
|
13907
|
-
DateSymbols: function(n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
13907
|
+
DateSymbols: function(n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F) {
|
|
13908
13908
|
var M = this;
|
|
13909
|
-
M.NAME = n, M.ERAS = i, M.ERANAMES = a, M.NARROWMONTHS = s, M.STANDALONENARROWMONTHS = o, M.MONTHS = l, M.STANDALONEMONTHS = d, M.SHORTMONTHS = D, M.STANDALONESHORTMONTHS = f, M.WEEKDAYS = p, M.STANDALONEWEEKDAYS = y, M.SHORTWEEKDAYS = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = A, M.QUARTERS = C, M.AMPMS =
|
|
13909
|
+
M.NAME = n, M.ERAS = i, M.ERANAMES = a, M.NARROWMONTHS = s, M.STANDALONENARROWMONTHS = o, M.MONTHS = l, M.STANDALONEMONTHS = d, M.SHORTMONTHS = D, M.STANDALONESHORTMONTHS = f, M.WEEKDAYS = p, M.STANDALONEWEEKDAYS = y, M.SHORTWEEKDAYS = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = A, M.QUARTERS = C, M.AMPMS = F;
|
|
13910
13910
|
},
|
|
13911
13911
|
DateBuilder: function(n, i) {
|
|
13912
13912
|
var a = this;
|
|
@@ -14517,8 +14517,8 @@ var ke = Ne, ge = {};
|
|
|
14517
14517
|
var m = this;
|
|
14518
14518
|
m.sparklineDimension = n, m.isCumulative = i, m.schemaNames = a, m.dimensions = s, m.metrics = o, m.filters = l, m.sorts = d, m.limit = D, m.isComparable = f, m.periodType = p, m.timezone = y;
|
|
14519
14519
|
},
|
|
14520
|
-
TableDatasourceConfigModel$(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14521
|
-
return new u.TableDatasourceConfigModel(n, d,
|
|
14520
|
+
TableDatasourceConfigModel$(e, n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x) {
|
|
14521
|
+
return new u.TableDatasourceConfigModel(n, d, F, m, g, A, o, a, h, e, D, C, i, p, s, M, f, l, y, x);
|
|
14522
14522
|
},
|
|
14523
14523
|
TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
|
|
14524
14524
|
var n, i, a, s, o, l, d, D, f, p = "showGrandTotal", y = u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), m = e.$index(0, "rollup");
|
|
@@ -14562,9 +14562,9 @@ var ke = Ne, ge = {};
|
|
|
14562
14562
|
DataSourceRowColumnConfig_columnIds_closure1: function(n) {
|
|
14563
14563
|
this.$this = n;
|
|
14564
14564
|
},
|
|
14565
|
-
TableDatasourceConfigModel: function(n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14565
|
+
TableDatasourceConfigModel: function(n, i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R) {
|
|
14566
14566
|
var L = this;
|
|
14567
|
-
L.columnsWidth = n, L.isDrillable = i, L.showGrandTotal = a, L.rollup = s, L.rollupPosition = o, L.rowsPerPage = l, L.isBlend = d, L._drillDimension = D, L._rowIds = f, L._columnIds = p, L._joinDatasources = y, L.schemaNames = m, L.dimensions = g, L.metrics = h, L.filters = A, L.sorts = C, L.limit =
|
|
14567
|
+
L.columnsWidth = n, L.isDrillable = i, L.showGrandTotal = a, L.rollup = s, L.rollupPosition = o, L.rowsPerPage = l, L.isBlend = d, L._drillDimension = D, L._rowIds = f, L._columnIds = p, L._joinDatasources = y, L.schemaNames = m, L.dimensions = g, L.metrics = h, L.filters = A, L.sorts = C, L.limit = F, L.isComparable = M, L.periodType = x, L.timezone = R;
|
|
14568
14568
|
},
|
|
14569
14569
|
TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
|
|
14570
14570
|
this.$this = n;
|
|
@@ -14648,32 +14648,32 @@ var ke = Ne, ge = {};
|
|
|
14648
14648
|
return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
|
|
14649
14649
|
},
|
|
14650
14650
|
formatBaseXYChartData(e, n, i, a, s) {
|
|
14651
|
-
var o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14651
|
+
var o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v, k, j, f0, h0, o0, S0, b0, M0, R0, T0, I0, x0, F0, J0 = null;
|
|
14652
14652
|
if (i.length === 0)
|
|
14653
14653
|
return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), d = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(d == null ? J0 : d.dateRange, J0));
|
|
14654
14654
|
for (D = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(D), l = o._eval$1("WhereIterable<1>"), f = u.List_List$of(new u.WhereIterable(D, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(f)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(f, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(D, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), d = p.length, A = 0; C = p.length, A < C; p.length === d || (0, u.throwConcurrentModificationError)(p), ++A)
|
|
14655
|
-
|
|
14655
|
+
F = p[A], l.$indexSet(0, F.id, F.nullable);
|
|
14656
14656
|
for (d = u.LinkedHashMap_LinkedHashMap$_empty(o, o), A = 0; A < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++A)
|
|
14657
|
-
|
|
14657
|
+
F = p[A], d.$indexSet(0, F.id, F.label);
|
|
14658
14658
|
if (M = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
|
|
14659
14659
|
for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < D.length; ++R)
|
|
14660
14660
|
C.$indexSet(0, D[R].id, R);
|
|
14661
14661
|
for (M.addAll$1(0, d), L = p.length, A = 0; A < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++A)
|
|
14662
|
-
|
|
14662
|
+
w = p[A].id, x.$indexSet(0, w, w);
|
|
14663
14663
|
L = u._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = u.List_List$of(new u.ExpandIterable(y, new u.formatBaseXYChartData_closure2(p, C), L), !0, L._eval$1("Iterable.E")), m.length !== 0 && (L = u._arrayInstanceType(m)._eval$1("ExpandIterable<1,List<@>>"), m = u.List_List$of(new u.ExpandIterable(m, new u.formatBaseXYChartData_closure3(p, C), L), !0, L._eval$1("Iterable.E")));
|
|
14664
14664
|
} else if (f.length > 1) {
|
|
14665
14665
|
for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < D.length; ++R)
|
|
14666
14666
|
C.$indexSet(0, D[R].id, R);
|
|
14667
14667
|
C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(D, new u.formatBaseXYChartData_closure4(n)), p, C, d, M, x), y = C.call$1(y), m.length !== 0 && (m = C.call$1(m));
|
|
14668
14668
|
}
|
|
14669
|
-
for (C = r.JSArray_String, v = u._setArrayType([], C),
|
|
14670
|
-
j = y[A], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))),
|
|
14671
|
-
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(
|
|
14672
|
-
for (
|
|
14673
|
-
x0 = v[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0,
|
|
14674
|
-
|
|
14669
|
+
for (C = r.JSArray_String, v = u._setArrayType([], C), k = u._setArrayType([], C), C = y.length, A = 0; A < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++A)
|
|
14670
|
+
j = y[A], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), k.push(_.toString$0$(L.$index(j, 1)));
|
|
14671
|
+
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(k, o), f0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), h0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = f0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, A = 0; A < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++A) {
|
|
14672
|
+
for (o0 = f0[A], S0 = u._setArrayType([], L), b0 = u._setArrayType([], L), M0 = x.$index(0, o0), w = l.$index(0, M0 ?? o0), R0 = w === !0, w = M.$index(0, o0), T0 = w ?? d.$index(0, o0), T0 == null && (T0 = o0), w = v.length, I0 = 0; I0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++I0)
|
|
14673
|
+
x0 = v[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, o0)), S0.push(u._parseMetricValue(F0 == null ? J0 : u.ListExtension_elementAtOrNull(F0, 2), R0)), C.get$length(m) !== 0 && (F0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(x0, o0)), b0.push(u._parseMetricValue(F0 == null ? J0 : u.ListExtension_elementAtOrNull(F0, 2), R0)));
|
|
14674
|
+
h0.push(new u.XYDatasetModel(T0, !1, S0)), b0.length !== 0 && h0.push(new u.XYDatasetModel(T0, !0, b0));
|
|
14675
14675
|
}
|
|
14676
|
-
return
|
|
14676
|
+
return h0 = u.accumulate(n, h0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? J0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, h0, new u.DateComparison(o, l == null ? J0 : l.dateRange));
|
|
14677
14677
|
},
|
|
14678
14678
|
_formatRows_closure: function(n, i) {
|
|
14679
14679
|
this.response = n, this.timezone = i;
|
|
@@ -14740,13 +14740,13 @@ var ke = Ne, ge = {};
|
|
|
14740
14740
|
return n.length === 0 ? u._setArrayType([], r.JSArray_List_dynamic) : (a = $.JSArray_methods.get$first(n), s = a.rows, o = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), u.List_List$of(new u.MappedListIterable(s, new u._formatRows_closure0(a, i), o), !0, o._eval$1("ListIterable.E")));
|
|
14741
14741
|
},
|
|
14742
14742
|
formatCircularChartData(e, n, i, a) {
|
|
14743
|
-
var s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14743
|
+
var s, o, l, d, D, f, p, y, m, g, h, A, C, F, M = null;
|
|
14744
14744
|
if (n.length === 0)
|
|
14745
14745
|
return s = u._setArrayType([], r.JSArray_String), new u.CircularDataModel(u._setArrayType([], r.JSArray_CircularDatasetModel), s, new u.DateComparison(M, M));
|
|
14746
14746
|
for (s = r.QueryResponse, o = u._formatRows0(e, u.ListExtension_sublistOrEmpty(n, 0, 1, s), a), l = u._formatRows0(e, u.ListExtension_sublistOrEmpty(n, 1, 2, s), a), d = $.JSArray_methods.get$first(n).columns, l.length !== 0 && (s = u._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), D = u.List_List$of(new u.MappedListIterable(d, new u.formatCircularChartData_closure(), s), !0, s._eval$1("ListIterable.E")), f = u.compare(new u.ComparisonData(D, l), new u.ComparisonData(D, o)), l = f.comparison, o = f.main), s = r.JSArray_String, p = u._setArrayType([], s), y = o.length, m = 0; m < o.length; o.length === y || (0, u.throwConcurrentModificationError)(o), ++m)
|
|
14747
14747
|
p.push(_.toString$0$(_.$index$asx(o[m], 0)));
|
|
14748
14748
|
for (y = u.LinkedHashSet_LinkedHashSet$from(p, r.String), p = u.List_List$of(y, !0, u._instanceType(y)._precomputed1), g = u._setArrayType([], r.JSArray_CircularDatasetModel), y = p.length, m = 0; m < y; ++m)
|
|
14749
|
-
h = p[m], A = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = A == null ? M : u.ListExtension_elementAtOrNull(A, 1), C == null && (C = 0), l.length !== 0 ? (A = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)),
|
|
14749
|
+
h = p[m], A = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = A == null ? M : u.ListExtension_elementAtOrNull(A, 1), C == null && (C = 0), l.length !== 0 ? (A = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)), F = A == null ? M : u.ListExtension_elementAtOrNull(A, 1), F == null && (F = 0)) : F = M, g.push(new u.CircularDatasetModel(h, u.num_parse(C), F));
|
|
14750
14750
|
return s = u.IterableExtension_foldIndexed(d, u._setArrayType([], s), new u.formatCircularChartData_closure2()), y = u.IterableExtension_get_firstOrNull(n), y = y == null ? M : y.dateRange, A = u.ListExtension_elementAtOrNull(n, 1), new u.CircularDataModel(g, s, new u.DateComparison(y, A == null ? M : A.dateRange));
|
|
14751
14751
|
},
|
|
14752
14752
|
_formatRows_closure0: function(n, i) {
|
|
@@ -14776,14 +14776,14 @@ var ke = Ne, ge = {};
|
|
|
14776
14776
|
return new u.RowInfo(o, _.map$1$1$ax(i, new u._getRowInfo_closure(e, n, a, o), s).join$0(0));
|
|
14777
14777
|
},
|
|
14778
14778
|
compare(e, n) {
|
|
14779
|
-
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14780
|
-
for (
|
|
14781
|
-
if (h = D[g], A = u._getRowInfo(a,
|
|
14779
|
+
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w = {};
|
|
14780
|
+
for (w.comparisonDateIndex = w.mainDateIndex = null, i = w.comparisonIndexesCompleted = w.mainIndexesCompleted = !1, a = n.columns, s = r.JSArray_int, o = u.IterableExtension_foldIndexed(a, u._setArrayType([], s), new u.compare_closure(w)), l = u.IterableExtension_foldIndexed(e.columns, u._setArrayType([], s), new u.compare_closure0(w)), s = r.JSArray_String, w.dates = u._setArrayType([], s), (w.mainDateIndex != null ? w.comparisonDateIndex != null : i) && (i = r.String, i = u.ListExtensions_mapIndexed($.JSArray_methods.fold$2(n.rows, u._setArrayType([], s), new u.compare_closure1(w)), new u.compare_closure2($.JSArray_methods.fold$2(e.rows, u._setArrayType([], s), new u.compare_closure3(w))), i, i), w.dates = u.List_List$of(i, !0, i.$ti._eval$1("Iterable.E"))), d = $.JSArray_methods.fold$2(e.rows, u.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new u.compare_closure4(w, e, l)), i = r.JSArray_List_dynamic, s = u._setArrayType([], i), i = u._setArrayType([], i), D = n.rows, f = D.length, p = r.JSArray_dynamic, y = _.getInterceptor$asx(o), m = r.dynamic, g = 0; g < D.length; D.length === f || (0, u.throwConcurrentModificationError)(D), ++g) {
|
|
14781
|
+
if (h = D[g], A = u._getRowInfo(a, w.dates, o, h), C = d.$index(0, A.id), F = C == null ? null : _.toList$0$ax(C), F == null) {
|
|
14782
14782
|
for (C = A.row, M = u.List_List$of(u.ListExtensions_slice(C, 0, y.get$length(o), m), !0, m), x = C.length - y.get$length(o), x < 0 && u.throwExpression(u.ArgumentError$("Length must be a non-negative integer: " + x)), R = u._setArrayType(new Array(x), p), L = 0; L < x; ++L)
|
|
14783
14783
|
R[L] = null;
|
|
14784
|
-
$.JSArray_methods.addAll$1(M, R),
|
|
14784
|
+
$.JSArray_methods.addAll$1(M, R), F = M;
|
|
14785
14785
|
}
|
|
14786
|
-
s.push(A.row), i.push(
|
|
14786
|
+
s.push(A.row), i.push(F);
|
|
14787
14787
|
}
|
|
14788
14788
|
return new u.ComparisonResult(s, i);
|
|
14789
14789
|
},
|
|
@@ -14838,8 +14838,8 @@ var ke = Ne, ge = {};
|
|
|
14838
14838
|
return new u.SparklineDataModel($.SparklineType_0, d, u.accumulate(e, y));
|
|
14839
14839
|
},
|
|
14840
14840
|
formatScoreCardChartData(e, n, i, a) {
|
|
14841
|
-
var s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14842
|
-
return n.length === 0 ? new u.ScorecardDataModel(M, M, M, M) : (s = $.JSArray_methods.get$first(n).columns, s = new u.WhereIterable(s, new u.formatScoreCardChartData_closure(), u._arrayInstanceType(s)._eval$1("WhereIterable<1>")), o = s.get$first(s), s = r.QueryResponse, l = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 0, 1, s)), d = l == null ? M : u.IterableExtension_get_firstOrNull(l.rows), D = e.sparklineDimension != null, f = D ? u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 1, 2, s)) : M, p = D ? 2 : 1, s = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, p, p + 1, s)), y = s == null ? M : u.IterableExtension_get_firstOrNull(s.rows), s = o.dataType, l = d == null ? M : d.value.$index(0, o.id), m = o.optionType, g = o.aggregationType, h = o.decimal, A = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, A, a, l),
|
|
14841
|
+
var s, o, l, d, D, f, p, y, m, g, h, A, C, F, M = null;
|
|
14842
|
+
return n.length === 0 ? new u.ScorecardDataModel(M, M, M, M) : (s = $.JSArray_methods.get$first(n).columns, s = new u.WhereIterable(s, new u.formatScoreCardChartData_closure(), u._arrayInstanceType(s)._eval$1("WhereIterable<1>")), o = s.get$first(s), s = r.QueryResponse, l = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 0, 1, s)), d = l == null ? M : u.IterableExtension_get_firstOrNull(l.rows), D = e.sparklineDimension != null, f = D ? u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, 1, 2, s)) : M, p = D ? 2 : 1, s = u.IterableExtension_get_firstOrNull(u.ListExtension_sublistOrEmpty(n, p, p + 1, s)), y = s == null ? M : u.IterableExtension_get_firstOrNull(s.rows), s = o.dataType, l = d == null ? M : d.value.$index(0, o.id), m = o.optionType, g = o.aggregationType, h = o.decimal, A = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, A, a, l), F = y == null, (F ? M : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, A, a, F ? M : y.value.$index(0, o.id)) : s = M, new u.ScorecardDataModel(M, l, s, u._formatSparkline(e, f, i, a)));
|
|
14843
14843
|
},
|
|
14844
14844
|
_formatSparkline_closure: function(n, i, a) {
|
|
14845
14845
|
this.response = n, this.country = i, this.timezone = a;
|
|
@@ -14862,14 +14862,14 @@ var ke = Ne, ge = {};
|
|
|
14862
14862
|
formatScoreCardChartData_closure: function() {
|
|
14863
14863
|
},
|
|
14864
14864
|
_formatTableResponse(e, n, i, a) {
|
|
14865
|
-
var s, o, l, d, D, f, p, y, m, g, h, A = null, C = i.columns,
|
|
14866
|
-
for (
|
|
14865
|
+
var s, o, l, d, D, f, p, y, m, g, h, A = null, C = i.columns, F = u._arrayInstanceType(C), M = F._eval$1("WhereIterable<1>"), x = r.String;
|
|
14866
|
+
for (F = u.List_List$of(new u.MappedIterable(new u.WhereIterable(C, new u._formatTableResponse_closure(e), M), new u._formatTableResponse_closure0(), F._eval$1("MappedIterable<1,String>")), !0, x), s = e.get$rowIds(), o = r.List__Header_dynamic, s = u.List_List$of(new u.MappedListIterable(s, new u._formatTableResponse_closure1(i), u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, o), l = r.JSArray_List__Header_dynamic, $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(F, u._setArrayType([], l), new u._formatTableResponse_closure2(i))), d = u.List_List$of(new u.WhereIterable(C, new u._formatTableResponse_closure3(), M), !0, M._eval$1("Iterable.E")), M = u.LinkedHashMap_LinkedHashMap$_empty(x, r.QueryResponseColumn), C = d.length, D = 0; D < d.length; d.length === C || (0, u.throwConcurrentModificationError)(d), ++D)
|
|
14867
14867
|
f = d[D], M.$indexSet(0, f.id, f);
|
|
14868
|
-
for (C = u.List_List$of(u.ListExtensions_mapIndexed(e.get$columnIds(), new u._formatTableResponse_closure4(e, M, i), x, o), !0, o), C.length !== 0 ? (p = u._setArrayType([], l), u._getRecursivePermutations(C, p, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), y = p) : y = [], C = u.List_List$of(s, !0, o),
|
|
14868
|
+
for (C = u.List_List$of(u.ListExtensions_mapIndexed(e.get$columnIds(), new u._formatTableResponse_closure4(e, M, i), x, o), !0, o), C.length !== 0 ? (p = u._setArrayType([], l), u._getRecursivePermutations(C, p, 0, u._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), y = p) : y = [], C = u.List_List$of(s, !0, o), F = y.length, D = 0; D < y.length; y.length === F || (0, u.throwConcurrentModificationError)(y), ++D)
|
|
14869
14869
|
C.push(y[D]);
|
|
14870
|
-
for (e.get$columnIds().length === 0 && $.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && C.push(u._setArrayType([new u._Header("_metric_value", "Value", A, A, $.DATA_TYPE_3, A, A, !1, A, A, A, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", A, A, $.DATA_TYPE_2, A, A, !0, A, A, A, !1)], r.JSArray__Header_dynamic)),
|
|
14870
|
+
for (e.get$columnIds().length === 0 && $.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && C.push(u._setArrayType([new u._Header("_metric_value", "Value", A, A, $.DATA_TYPE_3, A, A, !1, A, A, A, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", A, A, $.DATA_TYPE_2, A, A, !0, A, A, A, !1)], r.JSArray__Header_dynamic)), F = r.Map_String_dynamic, m = u.LinkedHashMap_LinkedHashMap$_empty(x, F), M = _.get$iterator$ax($.JSArray_methods.fold$2(i.rows, u._setArrayType([], r.JSArray_Map_String_dynamic), new u._formatTableResponse_closure5(C, d))), x = r.dynamic; M.moveNext$0(); )
|
|
14871
14871
|
s = M.get$current(), g = u._asString(s.$index(0, "id")), h = m.$index(0, g), h == null ? m.$indexSet(0, g, s) : (s = u.ListExtensions_mapIndexed(u.List_List$from(h.$index(0, "value"), x), new u._formatTableResponse_closure6(C, s), x, x), h.$indexSet(0, "value", u.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
|
|
14872
|
-
return M = m.get$values(m),
|
|
14872
|
+
return M = m.get$values(m), F = u.ListExtensions_mapIndexed(u.List_List$of(M, !0, u._instanceType(M)._eval$1("Iterable.E")), new u._formatTableResponse_closure7(), F, r.TableRowModel), M = u._arrayInstanceType(C)._eval$1("MappedListIterable<1,TableColumnModel>"), new u.TableDataModel(u.List_List$of(F, !0, F.$ti._eval$1("Iterable.E")), u.List_List$of(new u.MappedListIterable(C, new u._formatTableResponse_closure8(n, a), M), !0, M._eval$1("ListIterable.E")));
|
|
14873
14873
|
},
|
|
14874
14874
|
_formatTableData(e, n, i, a) {
|
|
14875
14875
|
var s, o, l, d, D, f, p, y, m, g, h = {};
|
|
@@ -14880,16 +14880,16 @@ var ke = Ne, ge = {};
|
|
|
14880
14880
|
return s = h.mainResponse, f = s.rows, p = u._arrayInstanceType(f)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(f, new u._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
|
|
14881
14881
|
},
|
|
14882
14882
|
formatTableChartData(e, n, i, a) {
|
|
14883
|
-
var s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
14883
|
+
var s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w, v, k = {};
|
|
14884
14884
|
if (n.length === 0)
|
|
14885
14885
|
return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
|
|
14886
|
-
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), d = e.rowsPerPage, D = e.get$columnIds(), f = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(D, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, f, d, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g =
|
|
14887
|
-
M = s[
|
|
14888
|
-
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l),
|
|
14889
|
-
M = s[
|
|
14886
|
+
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), d = e.rowsPerPage, D = e.get$columnIds(), f = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(D, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, f, d, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = k.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), d = m.columns, D = u._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), D = u.List_List$of(new u.MappedListIterable(d, new u.formatTableChartData_closure2(), D), !0, D._eval$1("ListIterable.E")), d = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), d = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), d), !0, d._eval$1("ListIterable.E")), f = g.columns, p = u._arrayInstanceType(f)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(f, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), d), new u.ComparisonData(D, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), k.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), A = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
|
|
14887
|
+
M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14888
|
+
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = k.comparison.columns, F < s.length; ++F)
|
|
14889
|
+
M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14890
14890
|
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = A.length, L = 0; L < s; ++L)
|
|
14891
|
-
M = A[L], o = M.key,
|
|
14892
|
-
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s =
|
|
14891
|
+
M = A[L], o = M.key, w = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, w), l == null && (l = -1), d = x.$index(0, w), R.push(new u._ColumnMapping(M, o, l, d ?? -1));
|
|
14892
|
+
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = k.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(k, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
|
|
14893
14893
|
},
|
|
14894
14894
|
_formatTableResponse_closure: function(n) {
|
|
14895
14895
|
this.config = n;
|
|
@@ -15285,9 +15285,9 @@ var ke = Ne, ge = {};
|
|
|
15285
15285
|
}, r.Location);
|
|
15286
15286
|
},
|
|
15287
15287
|
_deserializeLocation(e) {
|
|
15288
|
-
var n, i, a, s, o = u.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = o.getUint32(0, !1), d = o.getUint32(4, !1), D = o.getUint32(8, !1), f = o.getUint32(12, !1), p = o.getUint32(16, !1), y = o.getUint32(20, !1), m = o.getUint32(24, !1), g = o.getUint32(28, !1), h = $.C_AsciiCodec.decode$1(u.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, d)), A = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone),
|
|
15288
|
+
var n, i, a, s, o = u.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), l = o.getUint32(0, !1), d = o.getUint32(4, !1), D = o.getUint32(8, !1), f = o.getUint32(12, !1), p = o.getUint32(16, !1), y = o.getUint32(20, !1), m = o.getUint32(24, !1), g = o.getUint32(28, !1), h = $.C_AsciiCodec.decode$1(u.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + l, d)), A = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone), F = r.JSArray_int, M = u._setArrayType([], F), x = u._setArrayType([], F), R = D + f;
|
|
15289
15289
|
for (n = D, i = n; n < R; ++n)
|
|
15290
|
-
e[n] === 0 && (
|
|
15290
|
+
e[n] === 0 && (F = e.buffer, a = e.byteOffset, F = new Uint8Array(F, a + i, n - i), A.push($.C_AsciiCodec.decode$1(F)), i = n + 1);
|
|
15291
15291
|
for (i = p, n = 0; n < y; ++n, i = s)
|
|
15292
15292
|
s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1, A[o.getUint8(i + 5)]));
|
|
15293
15293
|
for (i = m, n = 0; n < g; ++n)
|
|
@@ -18330,8 +18330,8 @@ Arguments: [` + D + "]";
|
|
|
18330
18330
|
}
|
|
18331
18331
|
}, u.QueryResponse_fromJson_closure.prototype = {
|
|
18332
18332
|
call$1(e) {
|
|
18333
|
-
var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", d = "formatter", D = u.EnumByName_byName($.List_MUw, e.$index(0, "schema")), f = e.$index(0, "label"), p = u.EnumByName_byName($.List_eOU, e.$index(0, "dataType")), y = u.EnumByName_byName($.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), m = e.$index(0, "id"), g = e.$index(0, s) != null ? u.EnumByName_byName($.List_Tuq, e.$index(0, s)) : a, h = e.$index(0, o) != null ? u.EnumByName_byName($.List_Ioo, e.$index(0, o)) : a, A = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a,
|
|
18334
|
-
return M == null && (M = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(D, f, p, y, m, g, h, A, C,
|
|
18333
|
+
var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", d = "formatter", D = u.EnumByName_byName($.List_MUw, e.$index(0, "schema")), f = e.$index(0, "label"), p = u.EnumByName_byName($.List_eOU, e.$index(0, "dataType")), y = u.EnumByName_byName($.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), m = e.$index(0, "id"), g = e.$index(0, s) != null ? u.EnumByName_byName($.List_Tuq, e.$index(0, s)) : a, h = e.$index(0, o) != null ? u.EnumByName_byName($.List_Ioo, e.$index(0, o)) : a, A = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a, F = e.$index(0, d) != null ? u.EnumByName_byName($.List_0, e.$index(0, d)) : a, M = e.$index(0, "nullable");
|
|
18334
|
+
return M == null && (M = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(D, f, p, y, m, g, h, A, C, F, M, n, i ?? !1);
|
|
18335
18335
|
},
|
|
18336
18336
|
$signature: 96
|
|
18337
18337
|
}, u.QueryResponse_fromJson_closure0.prototype = {
|
|
@@ -19135,18 +19135,18 @@ Arguments: [` + D + "]";
|
|
|
19135
19135
|
$signature: 0
|
|
19136
19136
|
}, u._formatTableResponse_closure5.prototype = {
|
|
19137
19137
|
call$2(e, n) {
|
|
19138
|
-
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
19138
|
+
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, k = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
|
|
19139
19139
|
for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, d = 0; d < v.length; ++d)
|
|
19140
19140
|
if (D = v[d], f = _.getInterceptor$ax(D), p = f.map$1$1(D, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(D, new u._formatTableResponse__closure5()) != null)
|
|
19141
|
-
for (y = f.firstWhere$1(D, new u._formatTableResponse__closure6()), m = f.fold$2(D, !0, new u._formatTableResponse__closure7(n)), f =
|
|
19142
|
-
C =
|
|
19141
|
+
for (y = f.firstWhere$1(D, new u._formatTableResponse__closure6()), m = f.fold$2(D, !0, new u._formatTableResponse__closure7(n)), f = k.length, g = y.type, h = y.columnValue, A = 0; A < k.length; k.length === f || (0, u.throwConcurrentModificationError)(k), ++A)
|
|
19142
|
+
C = k[A], m ? (F = i.$index(0, h), M = C.length, d >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(d - M + 1, w, !1, a)), C[d] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, d >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(d - M + 1, w, !1, a)), C[d] = F);
|
|
19143
19143
|
else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
|
|
19144
19144
|
for (f = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
|
|
19145
|
-
R = l[x], u.ListExtension_elementAtOrNull(
|
|
19145
|
+
R = l[x], u.ListExtension_elementAtOrNull(k, x) == null && (k.push(u.List_List$of(k[0], !0, a)), j.push(u.List_List$of(j[0], !0, a))), g ? (h = k[x], F = R.label, M = h.length, d >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(d - M + 1, w, !1, a)), h[d] = F, j[x].push(F)) : f && (h = k[x], F = i.$index(0, R.id), M = h.length, d >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(d - M + 1, w, !1, a)), h[d] = F);
|
|
19146
19146
|
else
|
|
19147
|
-
for (L = 0; L <
|
|
19148
|
-
f =
|
|
19149
|
-
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(
|
|
19147
|
+
for (L = 0; L < k.length; ++L)
|
|
19148
|
+
f = k[L], g = i.$index(0, p), h = f.length, d >= h && $.JSArray_methods.addAll$1(f, u.List_List$filled(d - h + 1, w, !1, a)), f[d] = g, j[L].push(i.$index(0, p));
|
|
19149
|
+
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(k, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
19150
19150
|
},
|
|
19151
19151
|
$signature: 79
|
|
19152
19152
|
}, u._formatTableResponse__closure4.prototype = {
|
|
@@ -19385,10 +19385,10 @@ Arguments: [` + D + "]";
|
|
|
19385
19385
|
$signature: 99
|
|
19386
19386
|
}, u.formatTableChartData_closure9.prototype = {
|
|
19387
19387
|
call$2(e, n) {
|
|
19388
|
-
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C,
|
|
19388
|
+
var i, a, s, o, l, d, D, f, p, y, m, g, h, A, C, F, M, x, R = this, L = [], w = [], v = n.cells, k = _.getInterceptor$asx(v), j = k.get$length(v);
|
|
19389
19389
|
for (i = R.columnMappings, a = i.length, s = R.hasComparison, o = R.country, l = R.timezone, d = e < R.comparisonRowsLength, D = R._box_0, f = 0; f < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++f)
|
|
19390
|
-
p = i[f], y = p.mainIndex, m = y >= 0 && y < j ?
|
|
19391
|
-
return n.copyWith$2$cells$comparisonCells(L,
|
|
19390
|
+
p = i[f], y = p.mainIndex, m = y >= 0 && y < j ? k.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (d ? (A = D.comparison.rows[e].cells, C = _.getInterceptor$asx(A), F = C.get$length(A), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(A, M) : u.ListExtension_elementAtOrNull(A, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
|
|
19391
|
+
return n.copyWith$2$cells$comparisonCells(L, w);
|
|
19392
19392
|
},
|
|
19393
19393
|
$signature: 7
|
|
19394
19394
|
}, u.TZDateTime.prototype = {
|
|
@@ -19826,8 +19826,8 @@ Arguments: [` + D + "]";
|
|
|
19826
19826
|
return a.message;
|
|
19827
19827
|
}
|
|
19828
19828
|
}())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
|
|
19829
|
-
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), f = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), A = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1),
|
|
19830
|
-
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", d, "en_au", D, "en_ca", f, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", A, "es_us", C, "fr",
|
|
19829
|
+
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), f = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), A = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), k = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), h0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), S0 = u.ItLocale$($.StartOfWeek_2), b0 = u.ArLyLocale$(!0, $.StartOfWeek_0), M0 = u.ArLyLocale$(!1, $.StartOfWeek_0), R0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), I0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), x0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
|
|
19830
|
+
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", d, "en_au", D, "en_ca", f, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", A, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", k, "de_de", j, "de_at", f0, "de_ch", h0, "it", o0, "it_ch", S0, "ar", b0, "ar_ly", M0, "ar_dz", R0, "ar_kw", T0, "ar_sa", I0, "ar_ma", x0, "ar_tn", F0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
|
|
19831
19831
|
}), n(b, "_UTC", "$get$_UTC", () => {
|
|
19832
19832
|
var a = r.JSArray_int;
|
|
19833
19833
|
return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -19862,7 +19862,7 @@ Arguments: [` + D + "]";
|
|
|
19862
19862
|
return this(e, n, i);
|
|
19863
19863
|
}, Function.prototype.call$8 = function(e, n, i, a, s, o, l, d) {
|
|
19864
19864
|
return this(e, n, i, a, s, o, l, d);
|
|
19865
|
-
},
|
|
19865
|
+
}, d0(S), function(e) {
|
|
19866
19866
|
if (typeof document > "u") {
|
|
19867
19867
|
e(null);
|
|
19868
19868
|
return;
|
|
@@ -19889,185 +19889,185 @@ Arguments: [` + D + "]";
|
|
|
19889
19889
|
})(ge);
|
|
19890
19890
|
const he = ge;
|
|
19891
19891
|
he.load({});
|
|
19892
|
-
var
|
|
19893
|
-
const ae = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }),
|
|
19892
|
+
var qe = he;
|
|
19893
|
+
const ae = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), Qe = (() => {
|
|
19894
19894
|
const E = new Intl.DateTimeFormat("en-US", { weekday: "short" });
|
|
19895
19895
|
return Array.from(
|
|
19896
19896
|
{ length: 7 },
|
|
19897
|
-
(
|
|
19897
|
+
(I, O) => E.format(new Date(1970, 0, 4 + O)).toLowerCase().slice(0, 3)
|
|
19898
19898
|
);
|
|
19899
19899
|
})();
|
|
19900
19900
|
function ue(E) {
|
|
19901
19901
|
if (E == null || E === "") return null;
|
|
19902
|
-
const
|
|
19903
|
-
if (
|
|
19904
|
-
const
|
|
19905
|
-
if (P !== -1 &&
|
|
19902
|
+
const I = String(E).trim();
|
|
19903
|
+
if (I === "") return null;
|
|
19904
|
+
const O = I.toLowerCase().slice(0, 3), P = Qe.indexOf(O);
|
|
19905
|
+
if (P !== -1 && I.length <= 3)
|
|
19906
19906
|
return { type: "dayName", value: P };
|
|
19907
|
-
const B =
|
|
19907
|
+
const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19908
19908
|
if (B) {
|
|
19909
|
-
const [, N,
|
|
19909
|
+
const [, N, X, Y, t0, G, K = "0"] = B;
|
|
19910
19910
|
return {
|
|
19911
19911
|
type: "fullDateTime",
|
|
19912
19912
|
value: new Date(
|
|
19913
|
-
parseInt(
|
|
19914
|
-
parseInt(
|
|
19913
|
+
parseInt(Y),
|
|
19914
|
+
parseInt(X) - 1,
|
|
19915
19915
|
parseInt(N),
|
|
19916
|
-
parseInt(
|
|
19917
|
-
parseInt(
|
|
19918
|
-
parseInt(
|
|
19916
|
+
parseInt(t0),
|
|
19917
|
+
parseInt(G),
|
|
19918
|
+
parseInt(K)
|
|
19919
19919
|
).getTime()
|
|
19920
19920
|
};
|
|
19921
19921
|
}
|
|
19922
|
-
const
|
|
19923
|
-
if (
|
|
19924
|
-
const [, N,
|
|
19922
|
+
const J = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
19923
|
+
if (J) {
|
|
19924
|
+
const [, N, X, Y] = J;
|
|
19925
19925
|
return {
|
|
19926
19926
|
type: "date",
|
|
19927
|
-
value: new Date(parseInt(
|
|
19927
|
+
value: new Date(parseInt(Y), parseInt(X) - 1, parseInt(N)).getTime()
|
|
19928
19928
|
};
|
|
19929
19929
|
}
|
|
19930
|
-
const
|
|
19931
|
-
if (
|
|
19932
|
-
const [, N,
|
|
19930
|
+
const H = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
19931
|
+
if (H) {
|
|
19932
|
+
const [, N, X, Y] = H;
|
|
19933
19933
|
return {
|
|
19934
19934
|
type: "date",
|
|
19935
|
-
value: new Date(parseInt(N), parseInt(
|
|
19935
|
+
value: new Date(parseInt(N), parseInt(X) - 1, parseInt(Y)).getTime()
|
|
19936
19936
|
};
|
|
19937
19937
|
}
|
|
19938
|
-
const q =
|
|
19938
|
+
const q = I.match(/^(\d{1,2})\/(\d{4})$/);
|
|
19939
19939
|
if (q) {
|
|
19940
|
-
const [, N,
|
|
19940
|
+
const [, N, X] = q;
|
|
19941
19941
|
return {
|
|
19942
19942
|
type: "monthYear",
|
|
19943
|
-
value: new Date(parseInt(
|
|
19943
|
+
value: new Date(parseInt(X), parseInt(N) - 1, 1).getTime()
|
|
19944
19944
|
};
|
|
19945
19945
|
}
|
|
19946
|
-
const U =
|
|
19946
|
+
const U = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19947
19947
|
if (U) {
|
|
19948
|
-
const [, N,
|
|
19948
|
+
const [, N, X, Y = "0"] = U;
|
|
19949
19949
|
return {
|
|
19950
19950
|
type: "time",
|
|
19951
|
-
value: parseInt(N) * 3600 + parseInt(
|
|
19951
|
+
value: parseInt(N) * 3600 + parseInt(X) * 60 + parseInt(Y)
|
|
19952
19952
|
};
|
|
19953
19953
|
}
|
|
19954
|
-
return /^\d+$/.test(
|
|
19954
|
+
return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
|
|
19955
19955
|
}
|
|
19956
|
-
function se(E,
|
|
19957
|
-
const
|
|
19958
|
-
return !
|
|
19956
|
+
function se(E, I) {
|
|
19957
|
+
const O = ue(E), P = ue(I);
|
|
19958
|
+
return !O && !P ? null : O ? P ? (O.type === P.type, O.value - P.value) : -1 : 1;
|
|
19959
19959
|
}
|
|
19960
|
-
function
|
|
19960
|
+
function Xe(E, I) {
|
|
19961
19961
|
var P;
|
|
19962
|
-
const
|
|
19963
|
-
for (let B = 0; B <
|
|
19964
|
-
const
|
|
19965
|
-
|
|
19962
|
+
const O = { isRollup: E.isRollup };
|
|
19963
|
+
for (let B = 0; B < I.length; B++) {
|
|
19964
|
+
const J = I[B].key;
|
|
19965
|
+
J && (O[J] = {
|
|
19966
19966
|
main: E.cells[B],
|
|
19967
19967
|
comparison: (P = E.comparisonCells) == null ? void 0 : P[B]
|
|
19968
19968
|
});
|
|
19969
19969
|
}
|
|
19970
|
-
return
|
|
19970
|
+
return O;
|
|
19971
19971
|
}
|
|
19972
|
-
function
|
|
19972
|
+
function Ve(E, I) {
|
|
19973
19973
|
if (E <= 0) return [];
|
|
19974
|
-
const
|
|
19975
|
-
for (const P of
|
|
19976
|
-
return Array.from({ length: E }, () => ({ ...
|
|
19974
|
+
const O = {};
|
|
19975
|
+
for (const P of I) O[P.key] = void 0;
|
|
19976
|
+
return Array.from({ length: E }, () => ({ ...O }));
|
|
19977
19977
|
}
|
|
19978
|
-
function
|
|
19979
|
-
var B,
|
|
19980
|
-
if (((B = E[
|
|
19981
|
-
const P =
|
|
19982
|
-
return P >= 0 ? (
|
|
19978
|
+
function Q0(E, I, O) {
|
|
19979
|
+
var B, J;
|
|
19980
|
+
if (((B = E[I]) == null ? void 0 : B.main) !== void 0) return E[I].main;
|
|
19981
|
+
const P = O.findIndex((H) => H.key === I);
|
|
19982
|
+
return P >= 0 ? (J = E.cells) == null ? void 0 : J[P] : void 0;
|
|
19983
19983
|
}
|
|
19984
|
-
function
|
|
19985
|
-
var u0,
|
|
19984
|
+
function Ye(E) {
|
|
19985
|
+
var u0, s0, a0, l0, d0, p0;
|
|
19986
19986
|
const {
|
|
19987
|
-
rows:
|
|
19988
|
-
columns:
|
|
19987
|
+
rows: I = [],
|
|
19988
|
+
columns: O = [],
|
|
19989
19989
|
globalSorts: P = [],
|
|
19990
19990
|
filter: B = null,
|
|
19991
|
-
grandTotalPosition:
|
|
19992
|
-
pageSize:
|
|
19991
|
+
grandTotalPosition: J = null,
|
|
19992
|
+
pageSize: H = 0
|
|
19993
19993
|
} = E;
|
|
19994
|
-
let q = Array.isArray(
|
|
19995
|
-
|
|
19994
|
+
let q = Array.isArray(I) ? [...I] : [];
|
|
19995
|
+
J === "BOTTOM" && ((u0 = q.at(-1)) != null && u0.isRollup) && q.pop(), J === "TOP" && ((s0 = q[0]) != null && s0.isRollup) && q.shift();
|
|
19996
19996
|
let U = 0;
|
|
19997
19997
|
for (const Q of q)
|
|
19998
19998
|
Q.isRollup && U++, Q.groupIndex = U;
|
|
19999
19999
|
const N = {};
|
|
20000
|
-
for (const Q of
|
|
20001
|
-
const
|
|
20002
|
-
(Q) => Q.key &&
|
|
20003
|
-
),
|
|
20004
|
-
let
|
|
20005
|
-
B !== null && (
|
|
20006
|
-
const
|
|
20007
|
-
for (const Q of
|
|
20008
|
-
const
|
|
20009
|
-
|
|
20000
|
+
for (const Q of O) N[Q.key] = Q.type === "NUMERIC";
|
|
20001
|
+
const X = P.filter(
|
|
20002
|
+
(Q) => Q.key && O.some((z) => z.key === Q.key)
|
|
20003
|
+
), Y = X.length > 0;
|
|
20004
|
+
let t0 = I;
|
|
20005
|
+
B !== null && (t0 = t0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((z) => ((z == null ? void 0 : z.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...Xe(Q, O), groupIndex: Q.groupIndex })));
|
|
20006
|
+
const G = {};
|
|
20007
|
+
for (const Q of t0) {
|
|
20008
|
+
const z = Q.groupIndex;
|
|
20009
|
+
z !== void 0 && (G[z] || (G[z] = [])).push(Q);
|
|
20010
20010
|
}
|
|
20011
|
-
|
|
20012
|
-
const
|
|
20011
|
+
Y && Object.values(G).forEach((Q) => {
|
|
20012
|
+
const z = Q.filter((e0) => e0.isRollup), n0 = Q.filter((e0) => !e0.isRollup);
|
|
20013
20013
|
n0.sort((e0, i0) => {
|
|
20014
|
-
for (const { key:
|
|
20015
|
-
const
|
|
20016
|
-
if (N[
|
|
20017
|
-
const u = Number(
|
|
20018
|
-
if (u !== 0) return u *
|
|
20014
|
+
for (const { key: W, type: r0 } of X) {
|
|
20015
|
+
const _0 = r0 === "ASC" ? 1 : -1, Z = Q0(e0, W, O) ?? "", t = Q0(i0, W, O) ?? "";
|
|
20016
|
+
if (N[W]) {
|
|
20017
|
+
const u = Number(Z) - Number(t);
|
|
20018
|
+
if (u !== 0) return u * _0;
|
|
20019
20019
|
} else {
|
|
20020
|
-
const u = se(
|
|
20020
|
+
const u = se(Z, t);
|
|
20021
20021
|
if (u !== null && u !== 0)
|
|
20022
|
-
return u *
|
|
20023
|
-
const _ = ae.compare(String(
|
|
20024
|
-
if (_ !== 0) return _ *
|
|
20022
|
+
return u * _0;
|
|
20023
|
+
const _ = ae.compare(String(Z), String(t));
|
|
20024
|
+
if (_ !== 0) return _ * _0;
|
|
20025
20025
|
}
|
|
20026
20026
|
}
|
|
20027
20027
|
return 0;
|
|
20028
|
-
}),
|
|
20028
|
+
}), G[Q[0].groupIndex] = z.concat(n0);
|
|
20029
20029
|
});
|
|
20030
|
-
let
|
|
20031
|
-
if (
|
|
20032
|
-
const Q =
|
|
20033
|
-
const e0 = Object.keys(
|
|
20034
|
-
const
|
|
20035
|
-
return
|
|
20030
|
+
let K;
|
|
20031
|
+
if (Y) {
|
|
20032
|
+
const Q = J === null ? (() => {
|
|
20033
|
+
const e0 = Object.keys(G).find((i0) => {
|
|
20034
|
+
const W = G[i0] || [], r0 = W.some((Z) => Z.isRollup), _0 = W.some((Z) => !Z.isRollup);
|
|
20035
|
+
return r0 && !_0;
|
|
20036
20036
|
});
|
|
20037
20037
|
return e0 !== void 0 ? Number(e0) : -1;
|
|
20038
|
-
})() : -1,
|
|
20039
|
-
|
|
20040
|
-
if (!
|
|
20038
|
+
})() : -1, z = ((a0 = X[0]) == null ? void 0 : a0.key) ?? ((l0 = O.find((e0) => N[e0.key])) == null ? void 0 : l0.key), n0 = ((d0 = X[0]) == null ? void 0 : d0.type) === "ASC" ? 1 : (((p0 = X[0]) == null ? void 0 : p0.type) === "DESC", -1);
|
|
20039
|
+
K = Object.keys(G).map(Number).sort((e0, i0) => {
|
|
20040
|
+
if (!z) return e0 - i0;
|
|
20041
20041
|
if (Q !== -1) {
|
|
20042
20042
|
if (e0 === Q) return -1;
|
|
20043
20043
|
if (i0 === Q) return 1;
|
|
20044
20044
|
}
|
|
20045
|
-
const
|
|
20046
|
-
if (N[
|
|
20047
|
-
const t = se(
|
|
20048
|
-
return t !== null ? t * n0 : ae.compare(String(
|
|
20045
|
+
const W = G[e0].find((u) => u.isRollup), r0 = G[i0].find((u) => u.isRollup), _0 = W ? Q0(W, z, O) ?? "" : "", Z = r0 ? Q0(r0, z, O) ?? "" : "";
|
|
20046
|
+
if (N[z]) return (Number(_0) - Number(Z)) * n0;
|
|
20047
|
+
const t = se(_0, Z);
|
|
20048
|
+
return t !== null ? t * n0 : ae.compare(String(_0), String(Z)) * n0;
|
|
20049
20049
|
});
|
|
20050
20050
|
} else
|
|
20051
|
-
|
|
20052
|
-
const
|
|
20053
|
-
for (const Q of
|
|
20054
|
-
for (const { groupIndex:
|
|
20055
|
-
|
|
20056
|
-
if (
|
|
20057
|
-
const Q =
|
|
20058
|
-
let
|
|
20059
|
-
Q > 0 ?
|
|
20051
|
+
K = Object.keys(G).map(Number).sort((Q, z) => Q - z);
|
|
20052
|
+
const V = [];
|
|
20053
|
+
for (const Q of K)
|
|
20054
|
+
for (const { groupIndex: z, ...n0 } of G[Q])
|
|
20055
|
+
V.push(n0);
|
|
20056
|
+
if (H > 0) {
|
|
20057
|
+
const Q = V.length % H;
|
|
20058
|
+
let z = 0;
|
|
20059
|
+
Q > 0 ? z = H - Q : V.length === 0 && (z = H), z > 0 && V.push(...Ve(z, O));
|
|
20060
20060
|
}
|
|
20061
|
-
return { data:
|
|
20061
|
+
return { data: V };
|
|
20062
20062
|
}
|
|
20063
|
-
var
|
|
20064
|
-
const
|
|
20065
|
-
var
|
|
20063
|
+
var Ge = { processTableData: Ye };
|
|
20064
|
+
const ze = Ue, We = qe, je = Ge;
|
|
20065
|
+
var re = {
|
|
20066
|
+
...je,
|
|
20066
20067
|
...We,
|
|
20067
|
-
...ze
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
function Gt(E) {
|
|
20068
|
+
...ze
|
|
20069
|
+
}, U0 = /* @__PURE__ */ ((E) => (E.DateTime = "DATE_TIME", E.Hour = "HOUR", E.Day = "DAY", E.Week = "WEEK", E.Month = "MONTH", E.TimeOfDay = "TIME_OF_DAY", E.HourOfDay = "HOUR_OF_DAY", E.DayOfWeek = "DAY_OF_WEEK", E.DayOfMonth = "DAY_OF_MONTH", E.MonthOfYear = "MONTH_OF_YEAR", E.Year = "YEAR", E.YearMonthDay = "YEAR_MONTH_DAY", E))(U0 || {}), Ke = /* @__PURE__ */ ((E) => (E.Asc = "ASC", E.Desc = "DESC", E))(Ke || {}), ne = /* @__PURE__ */ ((E) => (E.Equal = "EQUAL", E.NotEqual = "NOT_EQUAL", E.GreaterThan = "GREATER_THAN", E.LessThan = "LESS_THAN", E.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", E.LessThanOrEqual = "LESS_THAN_OR_EQUAL", E.Between = "BETWEEN", E.Like = "LIKE", E.NotLike = "NOT_LIKE", E.And = "AND", E.Or = "OR", E))(ne || {}), Ze = /* @__PURE__ */ ((E) => (E.String = "STRING", E.Timestamp = "TIMESTAMP", E.Bool = "BOOL", E.Numeric = "NUMERIC", E))(Ze || {}), et = /* @__PURE__ */ ((E) => (E.MTD = "MTD", E))(et || {}), tt = /* @__PURE__ */ ((E) => (E.Scorecard = "SCORECARD", E.Spacer = "SPACER", E.Table = "TABLE", E.BarChart = "BARCHART", E.StackBarChart = "STACKBARCHART", E.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", E.LineChart = "LINECHART", E.StackLineChart = "STACKLINECHART", E.Circular = "CIRCULAR", E))(tt || {}), rt = /* @__PURE__ */ ((E) => (E.EXCEL = "excel", E.PDF = "pdf", E.PDFFULLSIZE = "pdfFullSize", E.PDFRECEIPT = "pdfReceipt", E))(rt || {}), nt = /* @__PURE__ */ ((E) => (E.PORTRAIT = "portrait", E.LANDSCAPE = "landscape", E))(nt || {});
|
|
20070
|
+
function Wt(E) {
|
|
20071
20071
|
switch (E) {
|
|
20072
20072
|
case "excel":
|
|
20073
20073
|
return "Excel";
|
|
@@ -20081,7 +20081,7 @@ function Gt(E) {
|
|
|
20081
20081
|
return "Unknown";
|
|
20082
20082
|
}
|
|
20083
20083
|
}
|
|
20084
|
-
function
|
|
20084
|
+
function jt(E) {
|
|
20085
20085
|
switch (E) {
|
|
20086
20086
|
case "landscape":
|
|
20087
20087
|
return "report.common.landscape";
|
|
@@ -20091,112 +20091,112 @@ function zt(E) {
|
|
|
20091
20091
|
return "report.input.unknown";
|
|
20092
20092
|
}
|
|
20093
20093
|
}
|
|
20094
|
-
const w0 = "/report-settings",
|
|
20095
|
-
const { businessId: E } =
|
|
20094
|
+
const w0 = "/report-settings", it = async () => {
|
|
20095
|
+
const { businessId: E } = c0($0());
|
|
20096
20096
|
if (E) {
|
|
20097
|
-
const
|
|
20098
|
-
fetchType:
|
|
20097
|
+
const I = {
|
|
20098
|
+
fetchType: y0.Get,
|
|
20099
20099
|
url: `${w0}/${E.value}/reports`
|
|
20100
20100
|
};
|
|
20101
|
-
return
|
|
20101
|
+
return g0.fetch(I);
|
|
20102
20102
|
} else
|
|
20103
20103
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20104
|
-
}, it = (E) => {
|
|
20105
|
-
const { businessId: F } = D0(y0()), w = {
|
|
20106
|
-
fetchType: m0.Put,
|
|
20107
|
-
url: `${w0}/${F.value}/reports/${E.id}`,
|
|
20108
|
-
data: E
|
|
20109
|
-
};
|
|
20110
|
-
return A0.fetch(w);
|
|
20111
20104
|
}, at = (E) => {
|
|
20112
|
-
const { businessId:
|
|
20113
|
-
fetchType:
|
|
20114
|
-
url: `${w0}/${
|
|
20105
|
+
const { businessId: I } = c0($0()), O = {
|
|
20106
|
+
fetchType: y0.Put,
|
|
20107
|
+
url: `${w0}/${I.value}/reports/${E.id}`,
|
|
20115
20108
|
data: E
|
|
20116
20109
|
};
|
|
20117
|
-
return
|
|
20110
|
+
return g0.fetch(O);
|
|
20118
20111
|
}, ut = (E) => {
|
|
20119
|
-
const { businessId:
|
|
20120
|
-
fetchType:
|
|
20121
|
-
url: `${w0}/${
|
|
20112
|
+
const { businessId: I } = c0($0()), O = {
|
|
20113
|
+
fetchType: y0.Post,
|
|
20114
|
+
url: `${w0}/${I.value}/reports`,
|
|
20115
|
+
data: E
|
|
20122
20116
|
};
|
|
20123
|
-
return
|
|
20117
|
+
return g0.fetch(O);
|
|
20124
20118
|
}, st = (E) => {
|
|
20125
|
-
const { businessId:
|
|
20126
|
-
fetchType:
|
|
20127
|
-
url: `${w0}/${
|
|
20119
|
+
const { businessId: I } = c0($0()), O = {
|
|
20120
|
+
fetchType: y0.Delete,
|
|
20121
|
+
url: `${w0}/${I.value}/reports/${E.id}`
|
|
20122
|
+
};
|
|
20123
|
+
return g0.fetch(O);
|
|
20124
|
+
}, ot = (E) => {
|
|
20125
|
+
const { businessId: I } = c0($0()), O = {
|
|
20126
|
+
fetchType: y0.Put,
|
|
20127
|
+
url: `${w0}/${I.value}/reports/default`,
|
|
20128
20128
|
data: { defaultReport: E }
|
|
20129
20129
|
};
|
|
20130
|
-
return
|
|
20131
|
-
},
|
|
20132
|
-
const { businessId:
|
|
20133
|
-
fetchType:
|
|
20134
|
-
url: `${w0}/${
|
|
20135
|
-
data: { isSupportPos:
|
|
20130
|
+
return g0.fetch(O);
|
|
20131
|
+
}, Kt = (E, I) => {
|
|
20132
|
+
const { businessId: O } = c0($0()), P = {
|
|
20133
|
+
fetchType: y0.Put,
|
|
20134
|
+
url: `${w0}/${O.value}/reports/${E}/pos-support`,
|
|
20135
|
+
data: { isSupportPos: I }
|
|
20136
20136
|
};
|
|
20137
|
-
return
|
|
20138
|
-
},
|
|
20139
|
-
const { businessId: E } =
|
|
20137
|
+
return g0.fetch(P);
|
|
20138
|
+
}, lt = async () => {
|
|
20139
|
+
const { businessId: E } = c0($0());
|
|
20140
20140
|
if (E) {
|
|
20141
|
-
const
|
|
20142
|
-
fetchType:
|
|
20141
|
+
const I = {
|
|
20142
|
+
fetchType: y0.Get,
|
|
20143
20143
|
url: `${w0}/${E.value}/overview-report`
|
|
20144
20144
|
};
|
|
20145
|
-
return
|
|
20145
|
+
return g0.fetch(I);
|
|
20146
20146
|
} else
|
|
20147
20147
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20148
|
-
},
|
|
20149
|
-
const { businessId: E } =
|
|
20148
|
+
}, _t = async () => {
|
|
20149
|
+
const { businessId: E } = c0($0());
|
|
20150
20150
|
if (E) {
|
|
20151
|
-
const
|
|
20152
|
-
fetchType:
|
|
20151
|
+
const I = {
|
|
20152
|
+
fetchType: y0.Get,
|
|
20153
20153
|
url: `${w0}/${E.value}/config`
|
|
20154
20154
|
};
|
|
20155
|
-
return
|
|
20155
|
+
return g0.fetch(I);
|
|
20156
20156
|
} else
|
|
20157
20157
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20158
|
-
},
|
|
20159
|
-
const { businessId: E } =
|
|
20158
|
+
}, dt = "/report-settings", Dt = async () => {
|
|
20159
|
+
const { businessId: E } = c0($0());
|
|
20160
20160
|
if (E) {
|
|
20161
|
-
const
|
|
20162
|
-
fetchType:
|
|
20163
|
-
url: `${
|
|
20161
|
+
const I = {
|
|
20162
|
+
fetchType: y0.Get,
|
|
20163
|
+
url: `${dt}/${E.value}/categories`
|
|
20164
20164
|
};
|
|
20165
|
-
return
|
|
20165
|
+
return g0.fetch(I);
|
|
20166
20166
|
} else
|
|
20167
20167
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20168
20168
|
};
|
|
20169
|
-
function
|
|
20170
|
-
const
|
|
20171
|
-
return
|
|
20169
|
+
function j0(E, I = {}) {
|
|
20170
|
+
const O = localStorage.getItem(E);
|
|
20171
|
+
return O === null && (I == null ? void 0 : I.fallback) !== void 0 ? I.fallback : O === null ? null : I.format ? I.format(O) : O;
|
|
20172
20172
|
}
|
|
20173
20173
|
const N0 = {
|
|
20174
|
-
get:
|
|
20175
|
-
getJson: (E) =>
|
|
20174
|
+
get: j0,
|
|
20175
|
+
getJson: (E) => j0(E, {
|
|
20176
20176
|
fallback: {},
|
|
20177
|
-
format: (
|
|
20177
|
+
format: (I) => JSON.parse(I)
|
|
20178
20178
|
}),
|
|
20179
|
-
getNumber: (E) =>
|
|
20179
|
+
getNumber: (E) => j0(E, {
|
|
20180
20180
|
fallback: null,
|
|
20181
|
-
format: (
|
|
20181
|
+
format: (I) => Number(I)
|
|
20182
20182
|
}),
|
|
20183
20183
|
set: localStorage.setItem,
|
|
20184
|
-
setJson: (E,
|
|
20185
|
-
localStorage.setItem(E, JSON.stringify(
|
|
20184
|
+
setJson: (E, I) => {
|
|
20185
|
+
localStorage.setItem(E, JSON.stringify(I));
|
|
20186
20186
|
}
|
|
20187
|
-
},
|
|
20187
|
+
}, ct = () => {
|
|
20188
20188
|
const E = {
|
|
20189
|
-
fetchType:
|
|
20189
|
+
fetchType: y0.Get,
|
|
20190
20190
|
url: "/schemas"
|
|
20191
20191
|
};
|
|
20192
|
-
return
|
|
20193
|
-
},
|
|
20194
|
-
const E =
|
|
20195
|
-
async function
|
|
20192
|
+
return g0.fetch(E);
|
|
20193
|
+
}, ft = "mf-reportschema-store", pt = Y0(ft, () => {
|
|
20194
|
+
const E = D0([]), I = $e();
|
|
20195
|
+
async function O() {
|
|
20196
20196
|
try {
|
|
20197
|
-
E.value = await
|
|
20197
|
+
E.value = await ct();
|
|
20198
20198
|
} catch (P) {
|
|
20199
|
-
console.log(P),
|
|
20199
|
+
console.log(P), I.open({
|
|
20200
20200
|
title: "Get Schema Error",
|
|
20201
20201
|
message: "Internal Server Error",
|
|
20202
20202
|
type: "error"
|
|
@@ -20205,36 +20205,36 @@ const N0 = {
|
|
|
20205
20205
|
}
|
|
20206
20206
|
return {
|
|
20207
20207
|
schemas: E,
|
|
20208
|
-
getSchema:
|
|
20208
|
+
getSchema: O
|
|
20209
20209
|
};
|
|
20210
20210
|
});
|
|
20211
|
-
async function
|
|
20212
|
-
const { businessId:
|
|
20213
|
-
if (!
|
|
20211
|
+
async function $t(E, I) {
|
|
20212
|
+
const { businessId: O } = c0($0());
|
|
20213
|
+
if (!O.value)
|
|
20214
20214
|
return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
|
|
20215
|
-
if (!E || !
|
|
20215
|
+
if (!E || !I)
|
|
20216
20216
|
return Promise.reject(new Error("Failed to grant permission. Permission key or report label is not defined"));
|
|
20217
20217
|
const P = {
|
|
20218
|
-
fetchType:
|
|
20219
|
-
url: `/businesses/${
|
|
20220
|
-
data: { permissionKey: E, label:
|
|
20218
|
+
fetchType: y0.Post,
|
|
20219
|
+
url: `/businesses/${O.value}/my-permissions/report-manage`,
|
|
20220
|
+
data: { permissionKey: E, label: I }
|
|
20221
20221
|
};
|
|
20222
|
-
await
|
|
20222
|
+
await Fe.fetch(P);
|
|
20223
20223
|
}
|
|
20224
|
-
const
|
|
20225
|
-
const { business: E, globalFilters:
|
|
20224
|
+
const yt = "mf-reportreport-store", G0 = Y0(yt, () => {
|
|
20225
|
+
const { business: E, globalFilters: I } = c0(q0()), { schemas: O } = c0(pt()), { flags: P } = c0(Me()), B = D0([]), J = D0([]), H = D0(0), q = $e(), U = H0(() => B.value.filter((c) => c.editable)), N = H0(() => B.value.filter((c) => !c.editable)), X = D0(!1), Y = D0(""), t0 = D0(), G = D0(), K = H0(() => {
|
|
20226
20226
|
const c = P.value.find(
|
|
20227
|
-
(r) => r.key ===
|
|
20227
|
+
(r) => r.key === Re.report_portal_integration_custom_report
|
|
20228
20228
|
);
|
|
20229
20229
|
return typeof (c == null ? void 0 : c.value) == "number" ? c.value : null;
|
|
20230
|
-
}), { isReportPermissionEnabled:
|
|
20231
|
-
async function o0() {
|
|
20232
|
-
return W.value = await ot(), W.value;
|
|
20233
|
-
}
|
|
20230
|
+
}), { isReportPermissionEnabled: V } = xe(), u0 = H0(() => K.value === null ? !0 : K.value - U.value.length > 0);
|
|
20234
20231
|
async function s0() {
|
|
20232
|
+
return G.value = await lt(), G.value;
|
|
20233
|
+
}
|
|
20234
|
+
async function a0() {
|
|
20235
20235
|
var c;
|
|
20236
20236
|
try {
|
|
20237
|
-
B.value = await
|
|
20237
|
+
B.value = await it(), J.value = await Dt(), B.value.find((e) => e.id === Y.value) || (Y.value = ((c = B.value.find((e) => e.isDefault)) == null ? void 0 : c.id) || B.value[0].id);
|
|
20238
20238
|
} catch (r) {
|
|
20239
20239
|
console.log(r), q.open({
|
|
20240
20240
|
title: "Report Fetch Error",
|
|
@@ -20243,40 +20243,40 @@ const $t = "mf-reportreport-store", re = Y0($t, () => {
|
|
|
20243
20243
|
});
|
|
20244
20244
|
}
|
|
20245
20245
|
}
|
|
20246
|
-
const
|
|
20247
|
-
() => B.value.find((c) => c.id ===
|
|
20246
|
+
const l0 = H0(
|
|
20247
|
+
() => B.value.find((c) => c.id === Y.value)
|
|
20248
20248
|
);
|
|
20249
|
-
function
|
|
20249
|
+
function d0(c) {
|
|
20250
20250
|
var e;
|
|
20251
|
-
const r = (e =
|
|
20251
|
+
const r = (e = O.value.find((n) => n.name === c.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === c.name);
|
|
20252
20252
|
return r == null ? void 0 : r.type;
|
|
20253
20253
|
}
|
|
20254
|
-
|
|
20254
|
+
te(
|
|
20255
20255
|
() => {
|
|
20256
20256
|
var c;
|
|
20257
|
-
return (c =
|
|
20257
|
+
return (c = l0.value) == null ? void 0 : c.globalFilters;
|
|
20258
20258
|
},
|
|
20259
20259
|
(c) => {
|
|
20260
|
-
|
|
20260
|
+
I.value = (c ?? []).map((r) => ({
|
|
20261
20261
|
...r,
|
|
20262
20262
|
values: Array.isArray(r.values) ? [...r.values] : [],
|
|
20263
|
-
type:
|
|
20263
|
+
type: d0(r)
|
|
20264
20264
|
}));
|
|
20265
20265
|
},
|
|
20266
20266
|
{ deep: !0 }
|
|
20267
20267
|
);
|
|
20268
|
-
const p0 =
|
|
20269
|
-
async function
|
|
20268
|
+
const p0 = D0(), Q = D0(0), z = D0(), n0 = D0(null), e0 = D0(null), i0 = D0(!1), W = D0(!1), r0 = D0(!1);
|
|
20269
|
+
async function _0(c) {
|
|
20270
20270
|
const r = U.value.findIndex((n) => n.id === c.id);
|
|
20271
20271
|
let e;
|
|
20272
20272
|
if (r >= 0)
|
|
20273
|
-
e = await it(c);
|
|
20274
|
-
else {
|
|
20275
20273
|
e = await at(c);
|
|
20274
|
+
else {
|
|
20275
|
+
e = await ut(c);
|
|
20276
20276
|
try {
|
|
20277
|
-
if (
|
|
20278
|
-
await
|
|
20279
|
-
const n =
|
|
20277
|
+
if (V.value) {
|
|
20278
|
+
await $t(e.id, e.name);
|
|
20279
|
+
const n = Je(), { businessId: i } = c0($0());
|
|
20280
20280
|
await n.fetchUserPermissions(void 0, i.value);
|
|
20281
20281
|
}
|
|
20282
20282
|
} catch (n) {
|
|
@@ -20286,18 +20286,18 @@ const $t = "mf-reportreport-store", re = Y0($t, () => {
|
|
|
20286
20286
|
});
|
|
20287
20287
|
}
|
|
20288
20288
|
}
|
|
20289
|
-
return u(e.id), await
|
|
20289
|
+
return u(e.id), await a0(), e;
|
|
20290
20290
|
}
|
|
20291
|
-
async function
|
|
20292
|
-
await
|
|
20291
|
+
async function Z(c) {
|
|
20292
|
+
await st(c), await a0();
|
|
20293
20293
|
}
|
|
20294
20294
|
async function t(c) {
|
|
20295
|
-
await
|
|
20295
|
+
await ot(c), await s0();
|
|
20296
20296
|
}
|
|
20297
20297
|
function u(c) {
|
|
20298
|
-
|
|
20298
|
+
Y.value = c;
|
|
20299
20299
|
}
|
|
20300
|
-
const _ =
|
|
20300
|
+
const _ = D0(null);
|
|
20301
20301
|
function $() {
|
|
20302
20302
|
var c;
|
|
20303
20303
|
if ((c = E.value) != null && c._id) {
|
|
@@ -20325,36 +20325,36 @@ const $t = "mf-reportreport-store", re = Y0($t, () => {
|
|
|
20325
20325
|
}
|
|
20326
20326
|
}
|
|
20327
20327
|
async function T() {
|
|
20328
|
-
return await
|
|
20328
|
+
return await _t();
|
|
20329
20329
|
}
|
|
20330
20330
|
return {
|
|
20331
20331
|
isOpenDownloadDialog: i0,
|
|
20332
|
-
isOpenFeedbackDialog:
|
|
20333
|
-
isOpenEmailDialog:
|
|
20334
|
-
currentSelectWidgetType:
|
|
20332
|
+
isOpenFeedbackDialog: W,
|
|
20333
|
+
isOpenEmailDialog: r0,
|
|
20334
|
+
currentSelectWidgetType: t0,
|
|
20335
20335
|
reports: B,
|
|
20336
|
-
categories:
|
|
20337
|
-
currentReport:
|
|
20336
|
+
categories: J,
|
|
20337
|
+
currentReport: l0,
|
|
20338
20338
|
editingReport: p0,
|
|
20339
20339
|
editingTileIndex: Q,
|
|
20340
|
-
editingTile:
|
|
20340
|
+
editingTile: z,
|
|
20341
20341
|
editingGlobalFilterIndex: n0,
|
|
20342
20342
|
editingGlobalFilter: e0,
|
|
20343
|
-
currentReportId:
|
|
20343
|
+
currentReportId: Y,
|
|
20344
20344
|
editableReports: U,
|
|
20345
20345
|
nonEditableReports: N,
|
|
20346
|
-
isOpenAddReportDialog:
|
|
20347
|
-
overviewReport:
|
|
20346
|
+
isOpenAddReportDialog: X,
|
|
20347
|
+
overviewReport: G,
|
|
20348
20348
|
pinReport: _,
|
|
20349
|
-
scrollPositionY:
|
|
20350
|
-
customReportQuota:
|
|
20349
|
+
scrollPositionY: H,
|
|
20350
|
+
customReportQuota: K,
|
|
20351
20351
|
canCreateCustomReport: u0,
|
|
20352
|
-
createOrUpdateReport:
|
|
20353
|
-
removeReport:
|
|
20352
|
+
createOrUpdateReport: _0,
|
|
20353
|
+
removeReport: Z,
|
|
20354
20354
|
updateCurrentReportId: u,
|
|
20355
|
-
getReports:
|
|
20355
|
+
getReports: a0,
|
|
20356
20356
|
updateDefaultReport: t,
|
|
20357
|
-
getOverviewReport:
|
|
20357
|
+
getOverviewReport: s0,
|
|
20358
20358
|
refreshPinReport: $,
|
|
20359
20359
|
cachePinReport: S,
|
|
20360
20360
|
clearPinReport: b,
|
|
@@ -20362,71 +20362,71 @@ const $t = "mf-reportreport-store", re = Y0($t, () => {
|
|
|
20362
20362
|
};
|
|
20363
20363
|
});
|
|
20364
20364
|
var Se = /* @__PURE__ */ ((E) => (E.generating = "GENERATING", E.completed = "COMPLETED", E.failed = "FAILED", E.canceled = "CANCELLED", E))(Se || {});
|
|
20365
|
-
const
|
|
20365
|
+
const mt = "/assets/formatChartData.worker-DR8QpYfd.js", K0 = /* @__PURE__ */ new Map();
|
|
20366
20366
|
function oe(E) {
|
|
20367
20367
|
return new Worker(E, { type: "module" });
|
|
20368
20368
|
}
|
|
20369
|
-
async function
|
|
20370
|
-
if (
|
|
20371
|
-
return oe(
|
|
20372
|
-
let
|
|
20369
|
+
async function gt(E) {
|
|
20370
|
+
if (K0.has(E))
|
|
20371
|
+
return oe(K0.get(E));
|
|
20372
|
+
let I = E;
|
|
20373
20373
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
20374
|
-
const B = new URL(E.replace(/^\//, ""), import.meta.url).href,
|
|
20375
|
-
|
|
20374
|
+
const B = new URL(E.replace(/^\//, ""), import.meta.url).href, J = await fetch(B).then((q) => q.text()), H = new Blob([J], { type: "application/javascript" });
|
|
20375
|
+
I = URL.createObjectURL(H);
|
|
20376
20376
|
}
|
|
20377
|
-
const P = oe(
|
|
20378
|
-
return
|
|
20377
|
+
const P = oe(I);
|
|
20378
|
+
return K0.set(E, I), P;
|
|
20379
20379
|
}
|
|
20380
|
-
async function
|
|
20381
|
-
const
|
|
20382
|
-
return
|
|
20383
|
-
|
|
20384
|
-
const
|
|
20385
|
-
|
|
20380
|
+
async function ht(E, I) {
|
|
20381
|
+
const O = await gt(E);
|
|
20382
|
+
return O.postMessage(I), await new Promise((P) => {
|
|
20383
|
+
O.onmessage = async (B) => {
|
|
20384
|
+
const J = B.data;
|
|
20385
|
+
O.terminate(), P(J);
|
|
20386
20386
|
};
|
|
20387
20387
|
});
|
|
20388
20388
|
}
|
|
20389
|
-
const
|
|
20390
|
-
const E =
|
|
20391
|
-
function
|
|
20389
|
+
const St = "mf-reportwidget-size", Ae = Y0(St, () => {
|
|
20390
|
+
const E = D0([]);
|
|
20391
|
+
function I(O, P) {
|
|
20392
20392
|
var B;
|
|
20393
20393
|
try {
|
|
20394
|
-
if (!
|
|
20395
|
-
let
|
|
20396
|
-
const
|
|
20394
|
+
if (!O) return;
|
|
20395
|
+
let J;
|
|
20396
|
+
const H = O.$el, q = (B = H == null ? void 0 : H.querySelector) == null ? void 0 : B.call(H, "canvas");
|
|
20397
20397
|
if (q) {
|
|
20398
20398
|
const U = q.getBoundingClientRect();
|
|
20399
|
-
|
|
20399
|
+
J = { width: Math.round(U.width), height: Math.round(U.height) };
|
|
20400
20400
|
}
|
|
20401
|
-
if (
|
|
20402
|
-
return typeof P == "number" && (E.value[P] =
|
|
20403
|
-
} catch (
|
|
20404
|
-
console.log(
|
|
20401
|
+
if (J && J.width > 0 && J.height > 0)
|
|
20402
|
+
return typeof P == "number" && (E.value[P] = J), J;
|
|
20403
|
+
} catch (J) {
|
|
20404
|
+
console.log(J);
|
|
20405
20405
|
}
|
|
20406
20406
|
}
|
|
20407
|
-
return { sizes: E, extractChartSize:
|
|
20408
|
-
}),
|
|
20409
|
-
const E =
|
|
20410
|
-
function
|
|
20407
|
+
return { sizes: E, extractChartSize: I };
|
|
20408
|
+
}), At = "mf-reportreport-sort-store", Ee = Y0(At, () => {
|
|
20409
|
+
const E = D0([]);
|
|
20410
|
+
function I(B, J) {
|
|
20411
20411
|
if (B == null) return;
|
|
20412
|
-
const
|
|
20412
|
+
const H = Array.isArray(J) ? J.filter((N) => N && N.key) : [], q = E.value.findIndex((N) => N.tileIndex === B), U = { tileIndex: B, sorts: H };
|
|
20413
20413
|
q !== -1 ? E.value.splice(q, 1, U) : E.value.push(U);
|
|
20414
20414
|
}
|
|
20415
|
-
function
|
|
20416
|
-
var
|
|
20417
|
-
return B == null ? [] : ((
|
|
20415
|
+
function O(B) {
|
|
20416
|
+
var J;
|
|
20417
|
+
return B == null ? [] : ((J = E.value.find((H) => H.tileIndex === B)) == null ? void 0 : J.sorts) ?? [];
|
|
20418
20418
|
}
|
|
20419
20419
|
function P(B) {
|
|
20420
|
-
typeof B == "number" ? E.value = E.value.filter((
|
|
20420
|
+
typeof B == "number" ? E.value = E.value.filter((J) => J.tileIndex !== B) : E.value = [];
|
|
20421
20421
|
}
|
|
20422
|
-
return { tileSort: E, setTileSorts:
|
|
20422
|
+
return { tileSort: E, setTileSorts: I, getTileSorts: O, clearTileSorts: P };
|
|
20423
20423
|
});
|
|
20424
20424
|
function Te(E = []) {
|
|
20425
20425
|
return Array.from(
|
|
20426
|
-
new Set(E.map((
|
|
20426
|
+
new Set(E.map((I) => I === "" ? "NULL" : I))
|
|
20427
20427
|
);
|
|
20428
20428
|
}
|
|
20429
|
-
function
|
|
20429
|
+
function Et(E) {
|
|
20430
20430
|
return [
|
|
20431
20431
|
E.schemaName,
|
|
20432
20432
|
E.name,
|
|
@@ -20435,42 +20435,42 @@ function At(E) {
|
|
|
20435
20435
|
E.operator
|
|
20436
20436
|
].join(":");
|
|
20437
20437
|
}
|
|
20438
|
-
function
|
|
20439
|
-
const
|
|
20438
|
+
function Tt(E) {
|
|
20439
|
+
const I = (O, P) => E0().set("hour", O).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
|
|
20440
20440
|
return !E.startTime || !E.endTime ? [] : [
|
|
20441
|
-
|
|
20442
|
-
|
|
20441
|
+
I(E.startTime.hour, E.startTime.minute),
|
|
20442
|
+
I(E.endTime.hour, E.endTime.minute)
|
|
20443
20443
|
];
|
|
20444
20444
|
}
|
|
20445
|
-
function
|
|
20445
|
+
function Ct(E, I) {
|
|
20446
20446
|
return {
|
|
20447
20447
|
schemaName: E.schemaName,
|
|
20448
20448
|
name: E.name,
|
|
20449
|
-
operator:
|
|
20449
|
+
operator: I.operator,
|
|
20450
20450
|
option: E.option ?? null,
|
|
20451
|
-
values: Te(
|
|
20451
|
+
values: Te(I.values),
|
|
20452
20452
|
dataFormula: E.dataFormula,
|
|
20453
20453
|
isGlobalFilter: !0
|
|
20454
20454
|
};
|
|
20455
20455
|
}
|
|
20456
|
-
function
|
|
20457
|
-
const
|
|
20458
|
-
return
|
|
20456
|
+
function bt(E, I) {
|
|
20457
|
+
const O = Tt(I);
|
|
20458
|
+
return O.length !== 2 ? null : {
|
|
20459
20459
|
schemaName: E.schemaName,
|
|
20460
20460
|
name: E.name,
|
|
20461
|
-
operator:
|
|
20461
|
+
operator: ne.Between,
|
|
20462
20462
|
option: E.option ?? U0.TimeOfDay,
|
|
20463
|
-
values:
|
|
20463
|
+
values: O,
|
|
20464
20464
|
dataFormula: E.dataFormula,
|
|
20465
20465
|
isGlobalFilter: !0
|
|
20466
20466
|
};
|
|
20467
20467
|
}
|
|
20468
|
-
function
|
|
20469
|
-
var P, B,
|
|
20470
|
-
const
|
|
20468
|
+
function It(E) {
|
|
20469
|
+
var P, B, J, H;
|
|
20470
|
+
const I = Array.from(
|
|
20471
20471
|
new Set((E.values ?? []).map((q) => q === "" ? "NULL" : q))
|
|
20472
20472
|
);
|
|
20473
|
-
if (
|
|
20473
|
+
if (I.length === 1 && String(I[0]) === "(EMPTY)") {
|
|
20474
20474
|
const q = Object.values(U0).includes(
|
|
20475
20475
|
String(E.option ?? "")
|
|
20476
20476
|
), U = E.option === U0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [q ? "-1" : "(EMPTY)"];
|
|
@@ -20487,26 +20487,26 @@ function bt(E) {
|
|
|
20487
20487
|
];
|
|
20488
20488
|
}
|
|
20489
20489
|
if ((((P = E.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
|
|
20490
|
-
const q = new Set(
|
|
20490
|
+
const q = new Set(I.map((U) => String(U)));
|
|
20491
20491
|
return ((B = E.customTimeRanges) == null ? void 0 : B.filter((U) => {
|
|
20492
20492
|
const N = String(U.name ?? "");
|
|
20493
20493
|
return q.has(N);
|
|
20494
|
-
}).map((U) =>
|
|
20494
|
+
}).map((U) => bt(E, U)).filter((U) => !!U)) ?? [];
|
|
20495
20495
|
}
|
|
20496
|
-
if ((((
|
|
20497
|
-
const q = new Set(
|
|
20498
|
-
return ((
|
|
20496
|
+
if ((((J = E.customOptions) == null ? void 0 : J.length) ?? 0) > 0) {
|
|
20497
|
+
const q = new Set(I.map((U) => String(U)));
|
|
20498
|
+
return ((H = E.customOptions) == null ? void 0 : H.filter((U) => {
|
|
20499
20499
|
const N = String(U.label ?? "");
|
|
20500
20500
|
return q.has(N);
|
|
20501
|
-
}).map((U) =>
|
|
20501
|
+
}).map((U) => Ct(E, U)).filter((U) => Array.isArray(U.values) && U.values.length > 0)) ?? [];
|
|
20502
20502
|
}
|
|
20503
|
-
return
|
|
20503
|
+
return I.length === 0 ? [] : [
|
|
20504
20504
|
{
|
|
20505
20505
|
schemaName: E.schemaName,
|
|
20506
20506
|
name: E.name,
|
|
20507
20507
|
operator: E.operator,
|
|
20508
20508
|
option: E.option ?? null,
|
|
20509
|
-
values:
|
|
20509
|
+
values: I,
|
|
20510
20510
|
dataFormula: E.dataFormula,
|
|
20511
20511
|
isGlobalFilter: !0
|
|
20512
20512
|
}
|
|
@@ -20514,38 +20514,38 @@ function bt(E) {
|
|
|
20514
20514
|
}
|
|
20515
20515
|
function le({
|
|
20516
20516
|
originalFilters: E,
|
|
20517
|
-
globalFilters:
|
|
20518
|
-
schemaNames:
|
|
20517
|
+
globalFilters: I,
|
|
20518
|
+
schemaNames: O
|
|
20519
20519
|
}) {
|
|
20520
|
-
const P = /* @__PURE__ */ new Map(), B = [],
|
|
20521
|
-
if (!N || !
|
|
20520
|
+
const P = /* @__PURE__ */ new Map(), B = [], J = new Set((O ?? []).map((N) => String(N))), H = (N) => J.has(N.schemaName ?? ""), q = I.filter(H), U = (N) => {
|
|
20521
|
+
if (!N || !H(N) || !Array.isArray(N.values) || N.values.length === 0)
|
|
20522
20522
|
return;
|
|
20523
|
-
const
|
|
20523
|
+
const X = {
|
|
20524
20524
|
...N,
|
|
20525
20525
|
values: Te(N.values)
|
|
20526
20526
|
};
|
|
20527
|
-
if (
|
|
20528
|
-
B.push(
|
|
20527
|
+
if (X.option === U0.TimeOfDay && X.operator === ne.Between) {
|
|
20528
|
+
B.push(X);
|
|
20529
20529
|
return;
|
|
20530
20530
|
}
|
|
20531
|
-
const
|
|
20532
|
-
if (!
|
|
20533
|
-
P.set(
|
|
20531
|
+
const t0 = Et(X), G = P.get(t0);
|
|
20532
|
+
if (!G) {
|
|
20533
|
+
P.set(t0, X);
|
|
20534
20534
|
return;
|
|
20535
20535
|
}
|
|
20536
|
-
|
|
20537
|
-
...
|
|
20538
|
-
...
|
|
20539
|
-
], P.set(
|
|
20536
|
+
G.values = [
|
|
20537
|
+
...G.values ?? [],
|
|
20538
|
+
...X.values
|
|
20539
|
+
], P.set(t0, G);
|
|
20540
20540
|
};
|
|
20541
20541
|
return E.forEach(U), q.forEach(U), [...Array.from(P.values()), ...B];
|
|
20542
20542
|
}
|
|
20543
|
-
function
|
|
20544
|
-
var
|
|
20545
|
-
const P = JSON.parse(JSON.stringify(E)), B =
|
|
20543
|
+
function z0(E, I, O) {
|
|
20544
|
+
var J;
|
|
20545
|
+
const P = JSON.parse(JSON.stringify(E)), B = I.filter((H) => {
|
|
20546
20546
|
var q;
|
|
20547
|
-
return (q =
|
|
20548
|
-
}).flatMap((
|
|
20547
|
+
return (q = H.tileIds) == null ? void 0 : q.includes(O);
|
|
20548
|
+
}).flatMap((H) => It(H));
|
|
20549
20549
|
return {
|
|
20550
20550
|
...P,
|
|
20551
20551
|
config: {
|
|
@@ -20555,12 +20555,12 @@ function ne(E, F, w) {
|
|
|
20555
20555
|
globalFilters: B ?? [],
|
|
20556
20556
|
schemaNames: P.config.schemaNames
|
|
20557
20557
|
}),
|
|
20558
|
-
joinDatasources: ((
|
|
20558
|
+
joinDatasources: ((J = P.config.joinDatasources) == null ? void 0 : J.map((H, q) => {
|
|
20559
20559
|
var U;
|
|
20560
20560
|
return {
|
|
20561
|
-
...
|
|
20561
|
+
...H,
|
|
20562
20562
|
filters: le({
|
|
20563
|
-
originalFilters:
|
|
20563
|
+
originalFilters: H.filters ?? [],
|
|
20564
20564
|
globalFilters: B ?? [],
|
|
20565
20565
|
schemaNames: (U = P.config.joinDatasources) == null ? void 0 : U[q].schemaNames
|
|
20566
20566
|
})
|
|
@@ -20569,142 +20569,186 @@ function ne(E, F, w) {
|
|
|
20569
20569
|
}
|
|
20570
20570
|
};
|
|
20571
20571
|
}
|
|
20572
|
-
|
|
20573
|
-
|
|
20572
|
+
function Ft(E) {
|
|
20573
|
+
return (E == null ? void 0 : E.queryVersion) === "v2";
|
|
20574
|
+
}
|
|
20575
|
+
async function Ce(E, I) {
|
|
20576
|
+
for (let O = 0; O < E.length; O++)
|
|
20574
20577
|
try {
|
|
20575
|
-
return await E[
|
|
20578
|
+
return await E[O]();
|
|
20576
20579
|
} catch (P) {
|
|
20577
|
-
if (P.message === "Unauthorized" ||
|
|
20578
|
-
await new Promise((B) => setTimeout(B,
|
|
20580
|
+
if (P.message === "Unauthorized" || O === E.length - 1) throw P;
|
|
20581
|
+
await new Promise((B) => setTimeout(B, I));
|
|
20579
20582
|
}
|
|
20580
20583
|
throw new Error("No callback");
|
|
20581
20584
|
}
|
|
20582
|
-
const
|
|
20583
|
-
var s0,
|
|
20584
|
-
const { businessId: P, country: B } =
|
|
20585
|
-
selectedRestaurantIds:
|
|
20585
|
+
const Mt = async (E, I, O) => {
|
|
20586
|
+
var s0, a0, l0, d0;
|
|
20587
|
+
const { businessId: P, country: B } = c0($0()), { currentReport: J } = G0(), {
|
|
20588
|
+
selectedRestaurantIds: H,
|
|
20589
|
+
selectedWarehouseIds: q,
|
|
20590
|
+
selectedLocationIds: U,
|
|
20591
|
+
dateRange: N,
|
|
20592
|
+
compareDateRange: X,
|
|
20593
|
+
timeRange: Y,
|
|
20594
|
+
globalFilters: t0,
|
|
20595
|
+
timezone: G
|
|
20596
|
+
} = q0();
|
|
20597
|
+
if (U.length === 0)
|
|
20598
|
+
return null;
|
|
20599
|
+
const K = z0(E, t0, O ?? ""), V = {
|
|
20600
|
+
fetchType: y0.Post,
|
|
20601
|
+
url: `/${P.value}/v2/query`,
|
|
20602
|
+
data: {
|
|
20603
|
+
widget: K,
|
|
20604
|
+
dateRange: [N.startDate, N.endDate],
|
|
20605
|
+
compareDateRange: X.startDate && X.endDate ? [X.startDate, X.endDate] : void 0,
|
|
20606
|
+
timeRange: [
|
|
20607
|
+
E0().tz(G).hour(Number((s0 = Y.start) == null ? void 0 : s0.hour)).minute(Number((a0 = Y.start) == null ? void 0 : a0.minute)).toISOString(),
|
|
20608
|
+
E0().tz(G).hour(Number((l0 = Y.end) == null ? void 0 : l0.hour)).minute(Number((d0 = Y.end) == null ? void 0 : d0.minute)).endOf("minutes").toISOString()
|
|
20609
|
+
],
|
|
20610
|
+
businessIds: P.value ? [P.value] : [],
|
|
20611
|
+
restaurantIds: H,
|
|
20612
|
+
warehouseIds: q,
|
|
20613
|
+
timezone: G,
|
|
20614
|
+
skipStringSpaceGrouping: !!(J != null && J.batch),
|
|
20615
|
+
reportId: J == null ? void 0 : J.id
|
|
20616
|
+
},
|
|
20617
|
+
requestConfig: {
|
|
20618
|
+
timeout: 1e3 * 60 * 5,
|
|
20619
|
+
signal: I
|
|
20620
|
+
}
|
|
20621
|
+
};
|
|
20622
|
+
return await Ce([() => g0.fetch(V)], 2e3);
|
|
20623
|
+
}, Zt = async (E, I, O) => {
|
|
20624
|
+
var a0, l0, d0, p0;
|
|
20625
|
+
const { businessId: P, country: B } = c0($0()), { currentReport: J } = G0();
|
|
20626
|
+
if (Ft(J))
|
|
20627
|
+
return Mt(E, I, O);
|
|
20628
|
+
const {
|
|
20629
|
+
selectedRestaurantIds: H,
|
|
20586
20630
|
selectedWarehouseIds: q,
|
|
20587
20631
|
selectedLocationIds: U,
|
|
20588
20632
|
dateRange: N,
|
|
20589
|
-
compareDateRange:
|
|
20590
|
-
timeRange:
|
|
20591
|
-
globalFilters:
|
|
20592
|
-
timezone:
|
|
20593
|
-
} =
|
|
20633
|
+
compareDateRange: X,
|
|
20634
|
+
timeRange: Y,
|
|
20635
|
+
globalFilters: t0,
|
|
20636
|
+
timezone: G
|
|
20637
|
+
} = q0();
|
|
20594
20638
|
if (U.length === 0)
|
|
20595
20639
|
return null;
|
|
20596
|
-
const
|
|
20597
|
-
fetchType:
|
|
20640
|
+
const K = z0(E, t0, O ?? ""), V = {
|
|
20641
|
+
fetchType: y0.Post,
|
|
20598
20642
|
url: `/${P.value}/postgres-query`,
|
|
20599
|
-
data:
|
|
20600
|
-
widget:
|
|
20643
|
+
data: re.getQueryRequests({
|
|
20644
|
+
widget: K,
|
|
20601
20645
|
dateRange: [N.startDate, N.endDate],
|
|
20602
|
-
compareDateRange:
|
|
20646
|
+
compareDateRange: X.startDate && X.endDate ? [X.startDate, X.endDate] : void 0,
|
|
20603
20647
|
timeRange: [
|
|
20604
|
-
E0().tz(
|
|
20605
|
-
E0().tz(
|
|
20648
|
+
E0().tz(G).hour(Number((a0 = Y.start) == null ? void 0 : a0.hour)).minute(Number((l0 = Y.start) == null ? void 0 : l0.minute)).toISOString(),
|
|
20649
|
+
E0().tz(G).hour(Number((d0 = Y.end) == null ? void 0 : d0.hour)).minute(Number((p0 = Y.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
|
|
20606
20650
|
],
|
|
20607
20651
|
businessIds: P.value ? [P.value] : [],
|
|
20608
|
-
restaurantIds:
|
|
20652
|
+
restaurantIds: H,
|
|
20609
20653
|
warehouseIds: q,
|
|
20610
|
-
timezone:
|
|
20611
|
-
}).map((Q,
|
|
20612
|
-
const n0 =
|
|
20654
|
+
timezone: G
|
|
20655
|
+
}).map((Q, z) => {
|
|
20656
|
+
const n0 = z === 0 ? 3e3 : 12e3;
|
|
20613
20657
|
return {
|
|
20614
20658
|
...Q,
|
|
20615
|
-
limit:
|
|
20616
|
-
skipStringSpaceGrouping: !!(
|
|
20617
|
-
reportId:
|
|
20659
|
+
limit: H.length > 50 ? E.config.limit || n0 : E.config.limit,
|
|
20660
|
+
skipStringSpaceGrouping: !!(J != null && J.batch),
|
|
20661
|
+
reportId: J == null ? void 0 : J.id
|
|
20618
20662
|
};
|
|
20619
20663
|
}),
|
|
20620
20664
|
requestConfig: {
|
|
20621
20665
|
timeout: 1e3 * 60 * 5,
|
|
20622
|
-
signal:
|
|
20666
|
+
signal: I
|
|
20623
20667
|
}
|
|
20624
|
-
}, u0 = [() =>
|
|
20625
|
-
|
|
20626
|
-
const
|
|
20627
|
-
return (await
|
|
20628
|
-
responses:
|
|
20668
|
+
}, u0 = [() => g0.fetch(V)];
|
|
20669
|
+
H.length < 50 && u0.push(() => g0.fetch(V)), u0.push(() => (V.url = V.url.replace("postgres-query", "query"), g0.fetch(V)));
|
|
20670
|
+
const s0 = await Ce(u0, 2e3);
|
|
20671
|
+
return (await ht(mt, {
|
|
20672
|
+
responses: s0,
|
|
20629
20673
|
widget: JSON.parse(JSON.stringify(E)),
|
|
20630
20674
|
country: B.value,
|
|
20631
|
-
timezone:
|
|
20675
|
+
timezone: G
|
|
20632
20676
|
})).data;
|
|
20633
20677
|
};
|
|
20634
|
-
function
|
|
20635
|
-
const
|
|
20678
|
+
function be(E) {
|
|
20679
|
+
const I = E.config;
|
|
20636
20680
|
return {
|
|
20637
|
-
showTitle:
|
|
20638
|
-
titleFontSize:
|
|
20639
|
-
titleBold:
|
|
20640
|
-
titleItalic:
|
|
20641
|
-
titleUnderline:
|
|
20642
|
-
chartColors:
|
|
20643
|
-
chartColorLayers:
|
|
20644
|
-
chartBreakdownColors:
|
|
20645
|
-
chartUseSecondaryMetricShades:
|
|
20646
|
-
chartColorBinding:
|
|
20647
|
-
stackBarOverlap:
|
|
20648
|
-
lineStyles:
|
|
20649
|
-
lineStyleBinding:
|
|
20650
|
-
showLabel:
|
|
20651
|
-
labelAlign:
|
|
20652
|
-
labelAnchor:
|
|
20653
|
-
labelRotation:
|
|
20654
|
-
labelOffset:
|
|
20655
|
-
labelFontSize:
|
|
20656
|
-
showX:
|
|
20657
|
-
xPosition:
|
|
20658
|
-
showXGrid:
|
|
20659
|
-
showXTick:
|
|
20660
|
-
xTickFontSize:
|
|
20661
|
-
showY:
|
|
20662
|
-
yPosition:
|
|
20663
|
-
showYGrid:
|
|
20664
|
-
showYTick:
|
|
20665
|
-
yTickFontSize:
|
|
20666
|
-
showLegend:
|
|
20667
|
-
legendPosition:
|
|
20668
|
-
usePointStyle:
|
|
20669
|
-
legendFontSize:
|
|
20670
|
-
legendColor:
|
|
20671
|
-
legendMaxWidth:
|
|
20681
|
+
showTitle: I.showTitle,
|
|
20682
|
+
titleFontSize: I.titleFontSize,
|
|
20683
|
+
titleBold: I.titleBold,
|
|
20684
|
+
titleItalic: I.titleItalic,
|
|
20685
|
+
titleUnderline: I.titleUnderline,
|
|
20686
|
+
chartColors: I.chartColors,
|
|
20687
|
+
chartColorLayers: I.chartColorLayers,
|
|
20688
|
+
chartBreakdownColors: I.chartBreakdownColors,
|
|
20689
|
+
chartUseSecondaryMetricShades: I.chartUseSecondaryMetricShades,
|
|
20690
|
+
chartColorBinding: I.chartColorBinding,
|
|
20691
|
+
stackBarOverlap: I.stackBarOverlap,
|
|
20692
|
+
lineStyles: I.lineStyles,
|
|
20693
|
+
lineStyleBinding: I.lineStyleBinding,
|
|
20694
|
+
showLabel: I.showLabel,
|
|
20695
|
+
labelAlign: I.labelAlign,
|
|
20696
|
+
labelAnchor: I.labelAnchor,
|
|
20697
|
+
labelRotation: I.labelRotation,
|
|
20698
|
+
labelOffset: I.labelOffset,
|
|
20699
|
+
labelFontSize: I.labelFontSize,
|
|
20700
|
+
showX: I.showX,
|
|
20701
|
+
xPosition: I.xPosition,
|
|
20702
|
+
showXGrid: I.showXGrid,
|
|
20703
|
+
showXTick: I.showXTick,
|
|
20704
|
+
xTickFontSize: I.xTickFontSize,
|
|
20705
|
+
showY: I.showY,
|
|
20706
|
+
yPosition: I.yPosition,
|
|
20707
|
+
showYGrid: I.showYGrid,
|
|
20708
|
+
showYTick: I.showYTick,
|
|
20709
|
+
yTickFontSize: I.yTickFontSize,
|
|
20710
|
+
showLegend: I.showLegend,
|
|
20711
|
+
legendPosition: I.legendPosition,
|
|
20712
|
+
usePointStyle: I.usePointStyle,
|
|
20713
|
+
legendFontSize: I.legendFontSize,
|
|
20714
|
+
legendColor: I.legendColor,
|
|
20715
|
+
legendMaxWidth: I.legendMaxWidth
|
|
20672
20716
|
};
|
|
20673
20717
|
}
|
|
20674
|
-
function
|
|
20675
|
-
const
|
|
20718
|
+
function Ie(E) {
|
|
20719
|
+
const I = E.config;
|
|
20676
20720
|
return {
|
|
20677
|
-
rowHeight:
|
|
20678
|
-
colWidths:
|
|
20721
|
+
rowHeight: I.rowHeight,
|
|
20722
|
+
colWidths: I.colWidths
|
|
20679
20723
|
};
|
|
20680
20724
|
}
|
|
20681
|
-
const
|
|
20725
|
+
const er = async ({
|
|
20682
20726
|
reportType: E,
|
|
20683
|
-
index:
|
|
20684
|
-
orientationTypes:
|
|
20727
|
+
index: I,
|
|
20728
|
+
orientationTypes: O,
|
|
20685
20729
|
isCombinedLocationLayout: P,
|
|
20686
20730
|
locationIds: B,
|
|
20687
|
-
timeRange:
|
|
20688
|
-
dateRange:
|
|
20731
|
+
timeRange: J,
|
|
20732
|
+
dateRange: H
|
|
20689
20733
|
}) => {
|
|
20690
|
-
const { businessId: q } =
|
|
20691
|
-
let
|
|
20692
|
-
|
|
20693
|
-
const
|
|
20694
|
-
fetchType:
|
|
20734
|
+
const { businessId: q } = c0($0()), { restaurants: U, warehouses: N, globalFilters: X, timezone: Y } = q0(), { currentReport: t0, overviewReport: G } = G0(), { selectedNavigationTab: K } = De(), { sizes: V } = Ae(), { getTileSorts: u0 } = Ee();
|
|
20735
|
+
let s0 = t0 == null ? void 0 : t0.id, a0 = (t0 == null ? void 0 : t0.tiles) ?? [];
|
|
20736
|
+
K === "overview" && G && (s0 = G == null ? void 0 : G.id, a0 = (G == null ? void 0 : G.tiles) ?? []);
|
|
20737
|
+
const l0 = a0.filter((i0, W) => typeof I == "number" ? W === I : !0).map((i0) => z0(i0.widget, X, i0.id)), d0 = {
|
|
20738
|
+
fetchType: y0.Post,
|
|
20695
20739
|
url: `/${q.value}/file?lang=${P0()}`,
|
|
20696
20740
|
data: {
|
|
20697
20741
|
configs: [
|
|
20698
|
-
...
|
|
20699
|
-
var
|
|
20700
|
-
const
|
|
20742
|
+
...l0.map((i0, W) => {
|
|
20743
|
+
var _0, Z, t, u;
|
|
20744
|
+
const r0 = V[I ?? W];
|
|
20701
20745
|
return {
|
|
20702
|
-
requests:
|
|
20746
|
+
requests: re.getQueryRequests({
|
|
20703
20747
|
widget: i0,
|
|
20704
|
-
dateRange: [
|
|
20748
|
+
dateRange: [H.startDate, H.endDate],
|
|
20705
20749
|
timeRange: [
|
|
20706
|
-
E0().tz(
|
|
20707
|
-
E0().tz(
|
|
20750
|
+
E0().tz(Y).set("hour", Number((_0 = J.start) == null ? void 0 : _0.hour)).set("minute", Number((Z = J.start) == null ? void 0 : Z.minute)).toISOString(),
|
|
20751
|
+
E0().tz(Y).set("hour", Number((t = J.end) == null ? void 0 : t.hour)).set("minute", Number((u = J.end) == null ? void 0 : u.minute)).toISOString()
|
|
20708
20752
|
],
|
|
20709
20753
|
businessIds: q ? [q.value] : [],
|
|
20710
20754
|
restaurantIds: B.filter(
|
|
@@ -20713,151 +20757,151 @@ const Kt = async ({
|
|
|
20713
20757
|
warehouseIds: B.filter(
|
|
20714
20758
|
(_) => N.find(($) => $.id === _)
|
|
20715
20759
|
),
|
|
20716
|
-
timezone:
|
|
20760
|
+
timezone: Y
|
|
20717
20761
|
}),
|
|
20718
|
-
index:
|
|
20762
|
+
index: I || W,
|
|
20719
20763
|
drillDimension: null,
|
|
20720
|
-
chartWidth: (
|
|
20721
|
-
chartHeight: (
|
|
20722
|
-
...Ce(i0),
|
|
20764
|
+
chartWidth: (r0 == null ? void 0 : r0.width) ?? i0.config.chartWidth,
|
|
20765
|
+
chartHeight: (r0 == null ? void 0 : r0.height) ?? i0.config.chartHeight,
|
|
20723
20766
|
...be(i0),
|
|
20724
|
-
|
|
20767
|
+
...Ie(i0),
|
|
20768
|
+
globalSorts: u0(I ?? W)
|
|
20725
20769
|
};
|
|
20726
20770
|
})
|
|
20727
20771
|
],
|
|
20728
|
-
reportId:
|
|
20772
|
+
reportId: s0,
|
|
20729
20773
|
type: E,
|
|
20730
|
-
orientationTypes:
|
|
20774
|
+
orientationTypes: O,
|
|
20731
20775
|
isCombinedLocationLayout: P
|
|
20732
20776
|
},
|
|
20733
20777
|
requestConfig: {
|
|
20734
20778
|
responseType: "arraybuffer",
|
|
20735
20779
|
timeout: 1e3 * 60 * 60 * 24
|
|
20736
20780
|
}
|
|
20737
|
-
}, { headers: p0, data: Q } = await
|
|
20738
|
-
e0.href = n0, e0.setAttribute("download", decodeURIComponent(
|
|
20739
|
-
},
|
|
20781
|
+
}, { headers: p0, data: Q } = await ee.rawFetch(d0), z = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
|
|
20782
|
+
e0.href = n0, e0.setAttribute("download", decodeURIComponent(z)), document.body.appendChild(e0), e0.click(), e0.remove();
|
|
20783
|
+
}, tr = async ({
|
|
20740
20784
|
emails: E,
|
|
20741
|
-
types:
|
|
20742
|
-
dateRange:
|
|
20785
|
+
types: I,
|
|
20786
|
+
dateRange: O,
|
|
20743
20787
|
timeRange: P,
|
|
20744
20788
|
locationIds: B,
|
|
20745
|
-
orientationTypes:
|
|
20746
|
-
isCombinedLocationLayout:
|
|
20789
|
+
orientationTypes: J,
|
|
20790
|
+
isCombinedLocationLayout: H
|
|
20747
20791
|
}) => {
|
|
20748
|
-
const { businessId: q } =
|
|
20792
|
+
const { businessId: q } = c0($0()), { currentReport: U, overviewReport: N } = G0(), { selectedNavigationTab: X } = De(), { restaurants: Y, warehouses: t0, globalFilters: G, timezone: K } = q0(), { sizes: V } = Ae(), { getTileSorts: u0 } = Ee();
|
|
20749
20793
|
if (E.length === 0) {
|
|
20750
20794
|
console.error("No email addresses provided.");
|
|
20751
20795
|
return;
|
|
20752
20796
|
}
|
|
20753
|
-
let
|
|
20754
|
-
|
|
20755
|
-
const
|
|
20797
|
+
let s0 = (U == null ? void 0 : U.id) || "", a0 = (U == null ? void 0 : U.name) || "", l0 = (U == null ? void 0 : U.tiles) ?? [];
|
|
20798
|
+
X === "overview" && N && (s0 = N == null ? void 0 : N.id, a0 = N.name, l0 = (N == null ? void 0 : N.tiles) ?? []);
|
|
20799
|
+
const d0 = l0.map((Q) => z0(Q.widget, G, Q.id)), p0 = {
|
|
20756
20800
|
businessId: q.value,
|
|
20757
20801
|
status: Se.generating,
|
|
20758
20802
|
dateRange: {
|
|
20759
|
-
start:
|
|
20760
|
-
end:
|
|
20803
|
+
start: O.startDate,
|
|
20804
|
+
end: O.endDate
|
|
20761
20805
|
},
|
|
20762
|
-
reportName:
|
|
20806
|
+
reportName: a0,
|
|
20763
20807
|
emails: E,
|
|
20764
|
-
configs:
|
|
20765
|
-
var e0, i0,
|
|
20766
|
-
const n0 =
|
|
20808
|
+
configs: d0.map((Q, z) => {
|
|
20809
|
+
var e0, i0, W, r0;
|
|
20810
|
+
const n0 = V[z];
|
|
20767
20811
|
return {
|
|
20768
|
-
requests:
|
|
20812
|
+
requests: re.getQueryRequests({
|
|
20769
20813
|
widget: Q,
|
|
20770
|
-
dateRange: [
|
|
20814
|
+
dateRange: [O.startDate, O.endDate],
|
|
20771
20815
|
timeRange: [
|
|
20772
|
-
E0().tz(
|
|
20773
|
-
E0().tz(
|
|
20816
|
+
E0().tz(K).hour(Number((e0 = P.start) == null ? void 0 : e0.hour)).minute(Number((i0 = P.start) == null ? void 0 : i0.minute)).toISOString(),
|
|
20817
|
+
E0().tz(K).hour(Number((W = P.end) == null ? void 0 : W.hour)).minute(Number((r0 = P.end) == null ? void 0 : r0.minute)).endOf("minutes").toISOString()
|
|
20774
20818
|
],
|
|
20775
20819
|
businessIds: q ? [q.value] : [],
|
|
20776
20820
|
restaurantIds: B.filter(
|
|
20777
|
-
(
|
|
20821
|
+
(_0) => Y.find((Z) => Z.id === _0)
|
|
20778
20822
|
),
|
|
20779
20823
|
warehouseIds: B.filter(
|
|
20780
|
-
(
|
|
20824
|
+
(_0) => t0.find((Z) => Z.id === _0)
|
|
20781
20825
|
),
|
|
20782
|
-
timezone:
|
|
20826
|
+
timezone: K
|
|
20783
20827
|
}),
|
|
20784
|
-
index:
|
|
20828
|
+
index: z,
|
|
20785
20829
|
drillDimension: null,
|
|
20786
20830
|
chartWidth: (n0 == null ? void 0 : n0.width) ?? Q.config.chartWidth,
|
|
20787
20831
|
chartHeight: (n0 == null ? void 0 : n0.height) ?? Q.config.chartHeight,
|
|
20788
|
-
...Ce(Q),
|
|
20789
20832
|
...be(Q),
|
|
20790
|
-
|
|
20833
|
+
...Ie(Q),
|
|
20834
|
+
globalSorts: u0(z)
|
|
20791
20835
|
};
|
|
20792
20836
|
}),
|
|
20793
|
-
reportId:
|
|
20794
|
-
type:
|
|
20795
|
-
orientationTypes:
|
|
20796
|
-
isCombinedLocationLayout:
|
|
20837
|
+
reportId: s0,
|
|
20838
|
+
type: I,
|
|
20839
|
+
orientationTypes: J,
|
|
20840
|
+
isCombinedLocationLayout: H
|
|
20797
20841
|
};
|
|
20798
|
-
await
|
|
20799
|
-
fetchType:
|
|
20842
|
+
await ee.fetch({
|
|
20843
|
+
fetchType: y0.Post,
|
|
20800
20844
|
url: `/${q.value}/reports/email?lang=${P0()}`,
|
|
20801
20845
|
data: p0,
|
|
20802
20846
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20803
20847
|
});
|
|
20804
|
-
},
|
|
20805
|
-
const { businessId:
|
|
20806
|
-
await
|
|
20807
|
-
fetchType:
|
|
20808
|
-
url: `/${
|
|
20848
|
+
}, rr = async (E) => {
|
|
20849
|
+
const { businessId: I } = c0($0());
|
|
20850
|
+
await ee.fetch({
|
|
20851
|
+
fetchType: y0.Post,
|
|
20852
|
+
url: `/${I.value}/reports/resend-email?lang=${P0()}`,
|
|
20809
20853
|
data: { jobId: E },
|
|
20810
20854
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20811
20855
|
});
|
|
20812
|
-
},
|
|
20813
|
-
const { businessId: E } =
|
|
20814
|
-
return await
|
|
20815
|
-
fetchType:
|
|
20856
|
+
}, nr = async () => {
|
|
20857
|
+
const { businessId: E } = c0($0());
|
|
20858
|
+
return await g0.fetch({
|
|
20859
|
+
fetchType: y0.Get,
|
|
20816
20860
|
url: `/${E.value}/reports/email-recipients`
|
|
20817
20861
|
});
|
|
20818
|
-
},
|
|
20819
|
-
const { businessId:
|
|
20820
|
-
await
|
|
20821
|
-
fetchType:
|
|
20822
|
-
url: `/${
|
|
20862
|
+
}, ir = async (E) => {
|
|
20863
|
+
const { businessId: I } = c0($0());
|
|
20864
|
+
await g0.fetch({
|
|
20865
|
+
fetchType: y0.Post,
|
|
20866
|
+
url: `/${I.value}/reports/email-recipient/delete`,
|
|
20823
20867
|
data: { email: E }
|
|
20824
20868
|
});
|
|
20825
20869
|
};
|
|
20826
|
-
let
|
|
20827
|
-
const
|
|
20828
|
-
function
|
|
20829
|
-
if (!
|
|
20870
|
+
let X0;
|
|
20871
|
+
const Rt = new Uint8Array(16);
|
|
20872
|
+
function xt() {
|
|
20873
|
+
if (!X0 && (X0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !X0))
|
|
20830
20874
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
20831
|
-
return
|
|
20875
|
+
return X0(Rt);
|
|
20832
20876
|
}
|
|
20833
|
-
const
|
|
20877
|
+
const m0 = [];
|
|
20834
20878
|
for (let E = 0; E < 256; ++E)
|
|
20835
|
-
|
|
20836
|
-
function
|
|
20837
|
-
return
|
|
20879
|
+
m0.push((E + 256).toString(16).slice(1));
|
|
20880
|
+
function Lt(E, I = 0) {
|
|
20881
|
+
return m0[E[I + 0]] + m0[E[I + 1]] + m0[E[I + 2]] + m0[E[I + 3]] + "-" + m0[E[I + 4]] + m0[E[I + 5]] + "-" + m0[E[I + 6]] + m0[E[I + 7]] + "-" + m0[E[I + 8]] + m0[E[I + 9]] + "-" + m0[E[I + 10]] + m0[E[I + 11]] + m0[E[I + 12]] + m0[E[I + 13]] + m0[E[I + 14]] + m0[E[I + 15]];
|
|
20838
20882
|
}
|
|
20839
|
-
const
|
|
20840
|
-
randomUUID:
|
|
20883
|
+
const Ot = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _e = {
|
|
20884
|
+
randomUUID: Ot
|
|
20841
20885
|
};
|
|
20842
|
-
function
|
|
20843
|
-
if (_e.randomUUID && !
|
|
20886
|
+
function ar(E, I, O) {
|
|
20887
|
+
if (_e.randomUUID && !I && !E)
|
|
20844
20888
|
return _e.randomUUID();
|
|
20845
20889
|
E = E || {};
|
|
20846
|
-
const P = E.random || (E.rng ||
|
|
20847
|
-
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128,
|
|
20848
|
-
|
|
20890
|
+
const P = E.random || (E.rng || xt)();
|
|
20891
|
+
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, I) {
|
|
20892
|
+
O = O || 0;
|
|
20849
20893
|
for (let B = 0; B < 16; ++B)
|
|
20850
|
-
|
|
20851
|
-
return
|
|
20894
|
+
I[O + B] = P[B];
|
|
20895
|
+
return I;
|
|
20852
20896
|
}
|
|
20853
|
-
return
|
|
20897
|
+
return Lt(P);
|
|
20854
20898
|
}
|
|
20855
|
-
const de = (E,
|
|
20856
|
-
const
|
|
20857
|
-
return E0().set("hour",
|
|
20858
|
-
},
|
|
20899
|
+
const de = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).locale(I).format("h:mm A"), wt = (E, I) => {
|
|
20900
|
+
const O = E0().set("hour", E.hour).set("minute", E.minute);
|
|
20901
|
+
return E0().set("hour", I.hour).set("minute", I.minute) < O ? "+1" : "";
|
|
20902
|
+
}, vt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Bt = { class: "text-fm-color-typo-primary" }, Pt = { class: "text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ht = { class: "flex items-center justify-center w-full" }, Nt = { class: "fm-typo-en-body-lg-600 mb-8" }, kt = { class: "flex items-center justify-center" }, Ut = { class: "flex flex-row mb-4 px-4 gap-2" }, ur = /* @__PURE__ */ ce({
|
|
20859
20903
|
__name: "TimeRangeSelect",
|
|
20860
|
-
props: /* @__PURE__ */
|
|
20904
|
+
props: /* @__PURE__ */ V0({
|
|
20861
20905
|
defaultDateRange: {
|
|
20862
20906
|
type: Array,
|
|
20863
20907
|
default: () => [
|
|
@@ -20894,143 +20938,143 @@ const de = (E, F = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
20894
20938
|
},
|
|
20895
20939
|
selectTimeDefaultModifiers: {}
|
|
20896
20940
|
}),
|
|
20897
|
-
emits: /* @__PURE__ */
|
|
20898
|
-
setup(E, { emit:
|
|
20899
|
-
const { t:
|
|
20900
|
-
function q(
|
|
20901
|
-
|
|
20941
|
+
emits: /* @__PURE__ */ V0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
20942
|
+
setup(E, { emit: I }) {
|
|
20943
|
+
const { t: O, locale: P } = Pe(), B = Z0(E, "timeRange"), J = I, H = Z0(E, "selectTimeDefault");
|
|
20944
|
+
function q(K) {
|
|
20945
|
+
K && (B.value = K, J("update", B.value)), Y.value = !1;
|
|
20902
20946
|
}
|
|
20903
|
-
function U(
|
|
20904
|
-
const
|
|
20947
|
+
function U(K) {
|
|
20948
|
+
const V = K.split(":"), u0 = E0().set("hour", Number(V[0])).set("minute", Number(V[1]));
|
|
20905
20949
|
return {
|
|
20906
20950
|
hours: Number(u0.format("h")),
|
|
20907
20951
|
minutes: Number(u0.format("m")),
|
|
20908
20952
|
period: u0.format("A")
|
|
20909
20953
|
};
|
|
20910
20954
|
}
|
|
20911
|
-
const N =
|
|
20912
|
-
function
|
|
20913
|
-
N.value.start = JSON.parse(JSON.stringify(
|
|
20955
|
+
const N = D0(JSON.parse(JSON.stringify(B.value)));
|
|
20956
|
+
function X(K, V) {
|
|
20957
|
+
N.value.start = JSON.parse(JSON.stringify(K)), N.value.end = JSON.parse(JSON.stringify(V));
|
|
20914
20958
|
}
|
|
20915
|
-
|
|
20959
|
+
te(
|
|
20916
20960
|
() => [B.value, E.defaultDateRange],
|
|
20917
20961
|
() => {
|
|
20918
20962
|
if (B.value) {
|
|
20919
|
-
const
|
|
20920
|
-
(
|
|
20921
|
-
var u0,
|
|
20922
|
-
return
|
|
20963
|
+
const K = E.defaultDateRange.findIndex(
|
|
20964
|
+
(V) => {
|
|
20965
|
+
var u0, s0, a0, l0;
|
|
20966
|
+
return V.startTime.hour === ((u0 = B.value.start) == null ? void 0 : u0.hour) && V.startTime.minute === ((s0 = B.value.start) == null ? void 0 : s0.minute) && V.endTime.hour === ((a0 = B.value.end) == null ? void 0 : a0.hour) && V.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
|
|
20923
20967
|
}
|
|
20924
20968
|
) + 1;
|
|
20925
|
-
|
|
20969
|
+
K !== 0 ? H.value = K : H.value = E.defaultDateRange.length + 1;
|
|
20926
20970
|
}
|
|
20927
20971
|
},
|
|
20928
20972
|
{ deep: !0, immediate: !0 }
|
|
20929
20973
|
);
|
|
20930
|
-
const
|
|
20931
|
-
function
|
|
20932
|
-
|
|
20974
|
+
const Y = D0(!1);
|
|
20975
|
+
function t0(K) {
|
|
20976
|
+
J("chip-closed", K);
|
|
20933
20977
|
}
|
|
20934
|
-
const
|
|
20978
|
+
const G = H0(() => E.label ? E.label : He({
|
|
20935
20979
|
startTime: B.value.start,
|
|
20936
20980
|
endTime: B.value.end,
|
|
20937
20981
|
locale: P.value
|
|
20938
20982
|
}));
|
|
20939
|
-
return (
|
|
20940
|
-
const u0 = O0("FmChip"),
|
|
20941
|
-
return k0(),
|
|
20983
|
+
return (K, V) => {
|
|
20984
|
+
const u0 = O0("FmChip"), s0 = O0("FmRadio"), a0 = O0("FmMenuDivider"), l0 = O0("FmRadioGroup"), d0 = O0("FmTimeInput"), p0 = O0("FmButton"), Q = O0("FmPopover");
|
|
20985
|
+
return k0(), W0("div", null, [
|
|
20942
20986
|
C0(Q, {
|
|
20943
|
-
"show-popover":
|
|
20987
|
+
"show-popover": Y.value,
|
|
20944
20988
|
placement: "bottom",
|
|
20945
|
-
onPopoverChanged:
|
|
20989
|
+
onPopoverChanged: V[6] || (V[6] = (z) => Y.value = z)
|
|
20946
20990
|
}, {
|
|
20947
20991
|
"popover-button": B0(() => [
|
|
20948
|
-
C0(
|
|
20992
|
+
C0(Ne, {
|
|
20949
20993
|
"left-icon": E.label ? "filter_alt" : "schedule",
|
|
20950
|
-
label:
|
|
20994
|
+
label: G.value,
|
|
20951
20995
|
removable: E.removable,
|
|
20952
|
-
onChipClosed:
|
|
20996
|
+
onChipClosed: V[0] || (V[0] = (z) => t0(!0))
|
|
20953
20997
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
20954
20998
|
]),
|
|
20955
20999
|
default: B0(() => {
|
|
20956
|
-
var
|
|
21000
|
+
var z, n0, e0, i0;
|
|
20957
21001
|
return [
|
|
20958
|
-
L0("div",
|
|
20959
|
-
C0(
|
|
20960
|
-
modelValue:
|
|
20961
|
-
"onUpdate:modelValue":
|
|
21002
|
+
L0("div", vt, [
|
|
21003
|
+
C0(l0, {
|
|
21004
|
+
modelValue: H.value,
|
|
21005
|
+
"onUpdate:modelValue": V[1] || (V[1] = (W) => H.value = W)
|
|
20962
21006
|
}, {
|
|
20963
21007
|
default: B0(() => [
|
|
20964
|
-
(k0(!0),
|
|
20965
|
-
key: `range_${
|
|
20966
|
-
value:
|
|
20967
|
-
label:
|
|
20968
|
-
onClick: (
|
|
21008
|
+
(k0(!0), W0(ie, null, Oe(E.defaultDateRange, (W, r0) => (k0(), fe(s0, {
|
|
21009
|
+
key: `range_${r0}`,
|
|
21010
|
+
value: r0 + 1,
|
|
21011
|
+
label: W.name,
|
|
21012
|
+
onClick: (_0) => X(W.startTime, W.endTime)
|
|
20969
21013
|
}, {
|
|
20970
21014
|
label: B0(() => [
|
|
20971
|
-
L0("p",
|
|
20972
|
-
pe(v0(
|
|
20973
|
-
|
|
20974
|
-
label:
|
|
21015
|
+
L0("p", Bt, [
|
|
21016
|
+
pe(v0(W.name) + " ", 1),
|
|
21017
|
+
we(C0(u0, {
|
|
21018
|
+
label: A0(O)("report.common.default"),
|
|
20975
21019
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
20976
21020
|
compact: ""
|
|
20977
21021
|
}, null, 8, ["label"]), [
|
|
20978
|
-
[
|
|
21022
|
+
[ve, W.isDefault]
|
|
20979
21023
|
])
|
|
20980
21024
|
]),
|
|
20981
|
-
L0("p",
|
|
21025
|
+
L0("p", Pt, v0(A0(de)(W.startTime, A0(P0)())) + " - " + v0(A0(de)(W.endTime, A0(P0)())) + " " + v0(A0(wt)(W.startTime, W.endTime)), 1)
|
|
20982
21026
|
]),
|
|
20983
21027
|
_: 2
|
|
20984
21028
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
20985
|
-
C0(
|
|
20986
|
-
C0(
|
|
21029
|
+
C0(a0),
|
|
21030
|
+
C0(s0, {
|
|
20987
21031
|
key: "range_custom",
|
|
20988
|
-
label:
|
|
21032
|
+
label: A0(O)("report.common.custom"),
|
|
20989
21033
|
value: E.defaultDateRange.length + 1
|
|
20990
21034
|
}, null, 8, ["label", "value"])
|
|
20991
21035
|
]),
|
|
20992
21036
|
_: 1
|
|
20993
21037
|
}, 8, ["modelValue"]),
|
|
20994
|
-
|
|
20995
|
-
L0("p",
|
|
20996
|
-
L0("div",
|
|
20997
|
-
C0(
|
|
20998
|
-
"model-value": U(`${(
|
|
20999
|
-
"onUpdate:modelValue":
|
|
21038
|
+
H.value === E.defaultDateRange.length + 1 ? (k0(), W0(ie, { key: 0 }, [
|
|
21039
|
+
L0("p", Jt, v0(A0(O)("report.date.startingTime")), 1),
|
|
21040
|
+
L0("div", Ht, [
|
|
21041
|
+
C0(d0, {
|
|
21042
|
+
"model-value": U(`${(z = N.value.start) == null ? void 0 : z.hour}:${(n0 = N.value.start) == null ? void 0 : n0.minute}`),
|
|
21043
|
+
"onUpdate:modelValue": V[2] || (V[2] = (W) => {
|
|
21000
21044
|
if (N.value.start) {
|
|
21001
|
-
const
|
|
21002
|
-
|
|
21045
|
+
const r0 = A0(E0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
21046
|
+
A0(P0)()
|
|
21003
21047
|
);
|
|
21004
|
-
N.value.start.hour =
|
|
21048
|
+
N.value.start.hour = r0.get("hour"), N.value.start.minute = r0.get("minute");
|
|
21005
21049
|
}
|
|
21006
21050
|
})
|
|
21007
21051
|
}, null, 8, ["model-value"])
|
|
21008
21052
|
]),
|
|
21009
|
-
L0("p",
|
|
21010
|
-
L0("div",
|
|
21011
|
-
C0(
|
|
21053
|
+
L0("p", Nt, v0(A0(O)("report.date.endingTime")), 1),
|
|
21054
|
+
L0("div", kt, [
|
|
21055
|
+
C0(d0, {
|
|
21012
21056
|
"model-value": U(`${(e0 = N.value.end) == null ? void 0 : e0.hour}:${(i0 = N.value.end) == null ? void 0 : i0.minute}`),
|
|
21013
|
-
"onUpdate:modelValue":
|
|
21057
|
+
"onUpdate:modelValue": V[3] || (V[3] = (W) => {
|
|
21014
21058
|
if (N.value.end) {
|
|
21015
|
-
const
|
|
21016
|
-
|
|
21059
|
+
const r0 = A0(E0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
21060
|
+
A0(P0)()
|
|
21017
21061
|
);
|
|
21018
|
-
N.value.end.hour =
|
|
21062
|
+
N.value.end.hour = r0.get("hour"), N.value.end.minute = r0.get("minute");
|
|
21019
21063
|
}
|
|
21020
21064
|
})
|
|
21021
21065
|
}, null, 8, ["model-value"])
|
|
21022
21066
|
])
|
|
21023
|
-
], 64)) :
|
|
21024
|
-
L0("div",
|
|
21025
|
-
|
|
21067
|
+
], 64)) : Le("", !0),
|
|
21068
|
+
L0("div", Ut, [
|
|
21069
|
+
V[7] || (V[7] = L0("div", { class: "grow" }, null, -1)),
|
|
21026
21070
|
C0(p0, {
|
|
21027
|
-
label:
|
|
21071
|
+
label: A0(O)("report.common.cancel"),
|
|
21028
21072
|
variant: "tertiary",
|
|
21029
|
-
onClick:
|
|
21073
|
+
onClick: V[4] || (V[4] = (W) => Y.value = !1)
|
|
21030
21074
|
}, null, 8, ["label"]),
|
|
21031
21075
|
C0(p0, {
|
|
21032
|
-
label:
|
|
21033
|
-
onClick:
|
|
21076
|
+
label: A0(O)("report.common.apply"),
|
|
21077
|
+
onClick: V[5] || (V[5] = () => q(JSON.parse(JSON.stringify(N.value))))
|
|
21034
21078
|
}, null, 8, ["label"])
|
|
21035
21079
|
])
|
|
21036
21080
|
])
|
|
@@ -21041,9 +21085,9 @@ const de = (E, F = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21041
21085
|
]);
|
|
21042
21086
|
};
|
|
21043
21087
|
}
|
|
21044
|
-
}),
|
|
21088
|
+
}), sr = /* @__PURE__ */ ce({
|
|
21045
21089
|
__name: "BaseDialog",
|
|
21046
|
-
props: /* @__PURE__ */
|
|
21090
|
+
props: /* @__PURE__ */ V0({
|
|
21047
21091
|
title: {
|
|
21048
21092
|
type: String,
|
|
21049
21093
|
default: "Title"
|
|
@@ -21060,35 +21104,35 @@ const de = (E, F = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21060
21104
|
modelValue: { type: Boolean, required: !0 },
|
|
21061
21105
|
modelModifiers: {}
|
|
21062
21106
|
}),
|
|
21063
|
-
emits: /* @__PURE__ */
|
|
21064
|
-
setup(E, { emit:
|
|
21065
|
-
const
|
|
21066
|
-
return
|
|
21067
|
-
|
|
21068
|
-
}), (
|
|
21107
|
+
emits: /* @__PURE__ */ V0(["confirm"], ["update:modelValue"]),
|
|
21108
|
+
setup(E, { emit: I }) {
|
|
21109
|
+
const O = Z0(E, "modelValue"), P = E, B = I;
|
|
21110
|
+
return te(O, () => {
|
|
21111
|
+
O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
21112
|
+
}), (J, H) => {
|
|
21069
21113
|
const q = O0("FmButton"), U = O0("FmDialog");
|
|
21070
21114
|
return k0(), fe(U, {
|
|
21071
|
-
modelValue:
|
|
21072
|
-
"onUpdate:modelValue":
|
|
21115
|
+
modelValue: O.value,
|
|
21116
|
+
"onUpdate:modelValue": H[2] || (H[2] = (N) => O.value = N),
|
|
21073
21117
|
overlay: ""
|
|
21074
21118
|
}, {
|
|
21075
21119
|
"dialog-header": B0(() => [
|
|
21076
21120
|
pe(v0(P.title), 1)
|
|
21077
21121
|
]),
|
|
21078
21122
|
default: B0(() => [
|
|
21079
|
-
|
|
21123
|
+
Be(J.$slots, "content")
|
|
21080
21124
|
]),
|
|
21081
21125
|
"dialog-footer": B0(() => [
|
|
21082
|
-
|
|
21126
|
+
H[3] || (H[3] = L0("div", { class: "grow" }, null, -1)),
|
|
21083
21127
|
C0(q, {
|
|
21084
21128
|
label: P.secondaryButtonLabel,
|
|
21085
21129
|
variant: "tertiary",
|
|
21086
|
-
onClick:
|
|
21130
|
+
onClick: H[0] || (H[0] = (N) => O.value = !1)
|
|
21087
21131
|
}, null, 8, ["label"]),
|
|
21088
21132
|
C0(q, {
|
|
21089
21133
|
label: P.primaryButtonLabel,
|
|
21090
21134
|
variant: "primary",
|
|
21091
|
-
onClick:
|
|
21135
|
+
onClick: H[1] || (H[1] = (N) => B("confirm"))
|
|
21092
21136
|
}, null, 8, ["label"])
|
|
21093
21137
|
]),
|
|
21094
21138
|
_: 3
|
|
@@ -21097,32 +21141,32 @@ const de = (E, F = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21097
21141
|
}
|
|
21098
21142
|
});
|
|
21099
21143
|
export {
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21144
|
+
ne as C,
|
|
21145
|
+
Ze as D,
|
|
21146
|
+
et as P,
|
|
21147
|
+
rt as R,
|
|
21148
|
+
Ke as S,
|
|
21149
|
+
tt as W,
|
|
21150
|
+
ur as _,
|
|
21151
|
+
pt as a,
|
|
21108
21152
|
U0 as b,
|
|
21109
|
-
|
|
21153
|
+
sr as c,
|
|
21110
21154
|
Ae as d,
|
|
21111
21155
|
Ee as e,
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
|
|
21156
|
+
ht as f,
|
|
21157
|
+
nt as g,
|
|
21158
|
+
er as h,
|
|
21159
|
+
Wt as i,
|
|
21160
|
+
wt as j,
|
|
21161
|
+
ir as k,
|
|
21162
|
+
nr as l,
|
|
21163
|
+
jt as m,
|
|
21120
21164
|
Se as n,
|
|
21121
|
-
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21165
|
+
tr as o,
|
|
21166
|
+
Zt as q,
|
|
21167
|
+
rr as r,
|
|
21168
|
+
Kt as s,
|
|
21125
21169
|
de as t,
|
|
21126
|
-
|
|
21127
|
-
|
|
21170
|
+
G0 as u,
|
|
21171
|
+
ar as v
|
|
21128
21172
|
};
|