@feedmepos/mf-report 5.22.25 → 5.22.26
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-3HFmWp7u.js +298 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js → BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js} +1128 -1292
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js} +5 -5
- package/dist/{Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js → Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js → FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js} +19 -19
- package/dist/InsightView-B8Wrd2SX.js +664 -0
- package/dist/{Integration-CAsNSCR4.js → Integration-D_jZxPMn.js} +40 -40
- package/dist/{Integrations-CIeyn0dF.js → Integrations-B1igzxZG.js} +14 -13
- package/dist/Layout-Dt6yE5XC.js +19 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CBY5Meyc.js → MenuTab.vue_vue_type_script_setup_true_lang-Dtv5xe0O.js} +13 -13
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js → NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js} +24 -24
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
- package/dist/OverviewView-hz2kZmm7.js +62 -0
- package/dist/{Report-CMYhrVbI.js → Report-nrJWlkN-.js} +15 -14
- package/dist/{ReportEditor-BU6Hq9yx.js → ReportEditor-YV-2UXDU.js} +24 -23
- package/dist/{ReportView-8F14F_jz.js → ReportView-CM1PfMk6.js} +18 -17
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
- package/dist/Setting-B1Xrl09c.js +326 -0
- package/dist/{TileEditor-BRHXTLEK.js → TileEditor-CF0aNTKV.js} +131 -131
- package/dist/{TransitionFade-DbsPAg2T.js → TransitionFade-D2bsz2iV.js} +12 -12
- package/dist/app-C2vt2B-i.js +11540 -0
- package/dist/app.js +1 -1
- package/dist/useRestaurantPermission-DRvKGVtO.js +65 -0
- package/dist/vue-i18n-DVWuTfed.js +2727 -0
- package/package.json +1 -1
- package/dist/App-C5_KJN8G.js +0 -294
- package/dist/InsightView-BCZKzqRM.js +0 -670
- package/dist/Layout-BFvrEBq5.js +0 -29
- package/dist/NoPermission.vue_vue_type_script_setup_true_lang-obph7BUZ.js +0 -25
- package/dist/OverviewView-gvsp6532.js +0 -63
- package/dist/Setting-BtWmZpk0.js +0 -328
- package/dist/app-WBPZfxon.js +0 -6658
- package/dist/useRestaurantPermission-BtPLwoC9.js +0 -64
- package/dist/vue-i18n-CvU0g5WR.js +0 -7253
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { storeToRefs as d0, defineStore as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
throw new Error('Could not dynamically require "' + E + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1
|
+
import { u as y0, F as m0, x as E0, y as Ie, a as V0, b as Fe, w as Me, g as Re, d as A0, c as de, r as K0 } from "./app-C2vt2B-i.js";
|
|
2
|
+
import { storeToRefs as d0, defineStore as Y0 } from "pinia";
|
|
3
|
+
import { ref as D0, computed as H0, watch as Z0, defineComponent as ce, mergeModels as X0, useModel as j0, resolveComponent as O0, createElementBlock as G0, openBlock as k0, createVNode as C0, withCtx as B0, createElementVNode as L0, createCommentVNode as xe, Fragment as ie, renderList as Le, createBlock as fe, createTextVNode as pe, withDirectives as Oe, toDisplayString as v0, unref as S0, vShow as we, renderSlot as ve } from "vue";
|
|
4
|
+
import { useSnackbar as $e } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as Be } from "./vue-i18n-DVWuTfed.js";
|
|
6
|
+
import { useCoreStore as Pe, detectLocale as P0 } from "@feedmepos/mf-common";
|
|
7
|
+
import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js";
|
|
8
|
+
function ye(A) {
|
|
9
|
+
throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
11
10
|
}
|
|
12
|
-
var
|
|
13
|
-
(function(
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
setImmediate(
|
|
17
|
-
} : function(
|
|
18
|
-
setTimeout(
|
|
19
|
-
},
|
|
20
|
-
var P = !
|
|
11
|
+
var me = {};
|
|
12
|
+
(function(A) {
|
|
13
|
+
var F = typeof globalThis < "u" ? globalThis : window, w = Object.create(F);
|
|
14
|
+
w.scheduleImmediate = typeof setImmediate < "u" ? function(k) {
|
|
15
|
+
setImmediate(k);
|
|
16
|
+
} : function(k) {
|
|
17
|
+
setTimeout(k, 0);
|
|
18
|
+
}, w.exports = A, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
|
|
19
|
+
var P = !F.window;
|
|
21
20
|
try {
|
|
22
|
-
typeof WorkerGlobalScope < "u" &&
|
|
21
|
+
typeof WorkerGlobalScope < "u" && F instanceof WorkerGlobalScope && (P = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (P = !0);
|
|
23
22
|
} catch {
|
|
24
23
|
}
|
|
25
24
|
if (P) {
|
|
26
|
-
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ :
|
|
27
|
-
Object.defineProperty(
|
|
25
|
+
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
|
|
26
|
+
Object.defineProperty(w, "location", {
|
|
28
27
|
value: {
|
|
29
28
|
get href() {
|
|
30
29
|
return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
31
|
-
var
|
|
32
|
-
return process.platform != "win32" ?
|
|
30
|
+
var k = process.cwd();
|
|
31
|
+
return process.platform != "win32" ? k : "/" + k.replace(/\\/g, "/");
|
|
33
32
|
}() + "/";
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
}), function() {
|
|
37
|
-
function
|
|
36
|
+
function k() {
|
|
38
37
|
try {
|
|
39
38
|
throw new Error();
|
|
40
|
-
} catch (
|
|
41
|
-
var
|
|
39
|
+
} catch (z) {
|
|
40
|
+
var q = z.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), N = null;
|
|
42
41
|
do {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
} while (
|
|
46
|
-
return
|
|
42
|
+
var V = U.exec(q);
|
|
43
|
+
V != null && (N = V);
|
|
44
|
+
} while (V != null);
|
|
45
|
+
return N[1];
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
var J = null;
|
|
50
|
-
Object.defineProperty(
|
|
49
|
+
Object.defineProperty(w, "document", {
|
|
51
50
|
value: {
|
|
52
51
|
get currentScript() {
|
|
53
|
-
return J == null && (J = { src:
|
|
52
|
+
return J == null && (J = { src: k() }), J;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
|
-
}(),
|
|
56
|
+
}(), w.dartDeferredLibraryLoader = function(k, J, q) {
|
|
58
57
|
try {
|
|
59
|
-
load(
|
|
60
|
-
} catch (
|
|
61
|
-
|
|
58
|
+
load(k), J();
|
|
59
|
+
} catch (U) {
|
|
60
|
+
q(U);
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
63
|
}
|
|
@@ -69,16 +68,16 @@ var Ee = {};
|
|
|
69
68
|
e[a] = r[a];
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function q(r, e) {
|
|
73
72
|
for (var n = Object.keys(r), i = 0; i < n.length; i++) {
|
|
74
73
|
var a = n[i];
|
|
75
74
|
e.hasOwnProperty(a) || (e[a] = r[a]);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function U(r, e) {
|
|
79
78
|
Object.assign(e, r);
|
|
80
79
|
}
|
|
81
|
-
var
|
|
80
|
+
var N = function() {
|
|
82
81
|
var r = function() {
|
|
83
82
|
};
|
|
84
83
|
r.prototype = { p: {} };
|
|
@@ -97,9 +96,9 @@ var Ee = {};
|
|
|
97
96
|
}
|
|
98
97
|
return !1;
|
|
99
98
|
}();
|
|
100
|
-
function
|
|
99
|
+
function V(r, e) {
|
|
101
100
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
|
-
if (
|
|
101
|
+
if (N) {
|
|
103
102
|
r.prototype.__proto__ = e.prototype;
|
|
104
103
|
return;
|
|
105
104
|
}
|
|
@@ -107,17 +106,17 @@ var Ee = {};
|
|
|
107
106
|
J(r.prototype, n), r.prototype = n;
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
|
-
function
|
|
109
|
+
function z(r, e) {
|
|
111
110
|
for (var n = 0; n < e.length; n++)
|
|
112
|
-
|
|
111
|
+
V(e[n], r);
|
|
113
112
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
function r0(r, e) {
|
|
114
|
+
U(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
115
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
function W(r, e) {
|
|
117
|
+
q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
119
118
|
}
|
|
120
|
-
function
|
|
119
|
+
function Z(r, e, n, i) {
|
|
121
120
|
var a = r;
|
|
122
121
|
r[e] = a, r[n] = function() {
|
|
123
122
|
r[n] = function() {
|
|
@@ -134,7 +133,7 @@ var Ee = {};
|
|
|
134
133
|
return s;
|
|
135
134
|
};
|
|
136
135
|
}
|
|
137
|
-
function
|
|
136
|
+
function X(r, e, n, i) {
|
|
138
137
|
var a = r;
|
|
139
138
|
r[e] = a, r[n] = function() {
|
|
140
139
|
return r[e] === a && (r[e] = i()), r[n] = function() {
|
|
@@ -142,7 +141,7 @@ var Ee = {};
|
|
|
142
141
|
}, r[e];
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function u0(r, e, n, i) {
|
|
146
145
|
var a = r;
|
|
147
146
|
r[e] = a, r[n] = function() {
|
|
148
147
|
if (r[e] === a) {
|
|
@@ -155,17 +154,17 @@ var Ee = {};
|
|
|
155
154
|
}, o;
|
|
156
155
|
};
|
|
157
156
|
}
|
|
158
|
-
function
|
|
157
|
+
function o0(r) {
|
|
159
158
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
160
159
|
}
|
|
161
|
-
function
|
|
160
|
+
function s0(r) {
|
|
162
161
|
return r;
|
|
163
162
|
}
|
|
164
|
-
function
|
|
163
|
+
function _0(r) {
|
|
165
164
|
for (var e = 0; e < r.length; ++e)
|
|
166
165
|
r[e];
|
|
167
166
|
}
|
|
168
|
-
function
|
|
167
|
+
function f0(r, e) {
|
|
169
168
|
var n = null;
|
|
170
169
|
return r ? function(i) {
|
|
171
170
|
return n === null && (n = t.closureFromTearOff(e)), new n(i, this);
|
|
@@ -179,20 +178,20 @@ var Ee = {};
|
|
|
179
178
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
return typeof l == "number" && (l +=
|
|
181
|
+
var Q = 0;
|
|
182
|
+
function Y(r, e, n, i, a, s, o, l, D, d) {
|
|
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 };
|
|
185
184
|
}
|
|
186
|
-
function
|
|
187
|
-
var D =
|
|
185
|
+
function n0(r, e, n, i, a, s, o, l) {
|
|
186
|
+
var D = Y(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
|
|
188
187
|
r[e] = d;
|
|
189
188
|
}
|
|
190
|
-
function
|
|
189
|
+
function e0(r, e, n, i, a, s, o, l, D, d) {
|
|
191
190
|
n = !!n;
|
|
192
|
-
var c =
|
|
191
|
+
var c = Y(r, !1, n, i, a, s, o, l, D, !!d), p = f0(n, c);
|
|
193
192
|
r[e] = p;
|
|
194
193
|
}
|
|
195
|
-
function
|
|
194
|
+
function i0(r) {
|
|
196
195
|
var e = b.interceptorsByTag;
|
|
197
196
|
if (!e) {
|
|
198
197
|
b.interceptorsByTag = r;
|
|
@@ -200,7 +199,7 @@ var Ee = {};
|
|
|
200
199
|
}
|
|
201
200
|
J(r, e);
|
|
202
201
|
}
|
|
203
|
-
function
|
|
202
|
+
function G(r) {
|
|
204
203
|
var e = b.leafTags;
|
|
205
204
|
if (!e) {
|
|
206
205
|
b.leafTags = r;
|
|
@@ -208,24 +207,24 @@ var Ee = {};
|
|
|
208
207
|
}
|
|
209
208
|
J(r, e);
|
|
210
209
|
}
|
|
211
|
-
function
|
|
210
|
+
function t0(r) {
|
|
212
211
|
var e = b.types, n = e.length;
|
|
213
212
|
return e.push.apply(e, r), n;
|
|
214
213
|
}
|
|
215
|
-
function
|
|
214
|
+
function l0(r, e) {
|
|
216
215
|
return J(e, r), r;
|
|
217
216
|
}
|
|
218
|
-
var
|
|
217
|
+
var K = function() {
|
|
219
218
|
var r = function(n, i, a, s, o) {
|
|
220
219
|
return function(l, D, d, c) {
|
|
221
|
-
return
|
|
220
|
+
return e0(l, D, n, i, a, s, [d], c, o, !1);
|
|
222
221
|
};
|
|
223
222
|
}, e = function(n, i, a, s) {
|
|
224
223
|
return function(o, l, D, d) {
|
|
225
|
-
return
|
|
224
|
+
return n0(o, l, n, i, a, [D], d, s);
|
|
226
225
|
};
|
|
227
226
|
};
|
|
228
|
-
return { inherit:
|
|
227
|
+
return { inherit: V, inheritMany: z, mixin: r0, mixinHard: W, installStaticTearOff: n0, installInstanceTearOff: e0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: o0, lazy: X, lazyFinal: u0, lazyOld: Z, updateHolder: l0, convertToFastObject: s0, updateTypes: t0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: G };
|
|
229
228
|
}(), t = {
|
|
230
229
|
JS_CONST: function() {
|
|
231
230
|
},
|
|
@@ -272,8 +271,8 @@ var Ee = {};
|
|
|
272
271
|
}
|
|
273
272
|
},
|
|
274
273
|
Sort__dualPivotQuicksort(r, e, n, i) {
|
|
275
|
-
var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g,
|
|
276
|
-
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, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, I), O = x.$index(r, C), v = x.$index(r, M), H = x.$index(r, E);
|
|
275
|
+
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), i.call$2(R, O) > 0 && (a = O, O = R, R = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(O, v) > 0 && (a = v, v = O, O = a), i.call$2(L, H) > 0 && (a = H, H = L, L = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, O), x.$indexSet(r, E, H), x.$indexSet(r, I, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
|
|
277
276
|
for (l = s; l <= o; ++l)
|
|
278
277
|
if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
|
|
279
278
|
if (d < 0)
|
|
@@ -308,7 +307,7 @@ var Ee = {};
|
|
|
308
307
|
y = !1;
|
|
309
308
|
}
|
|
310
309
|
if (m = s - 1, x.$indexSet(r, e, x.$index(r, m)), x.$indexSet(r, m, L), m = o + 1, x.$indexSet(r, n, x.$index(r, m)), x.$indexSet(r, m, v), t.Sort__doSort(r, e, s - 2, i), t.Sort__doSort(r, o + 2, n, i), !y)
|
|
311
|
-
if (s < h && o >
|
|
310
|
+
if (s < h && o > E) {
|
|
312
311
|
for (; u.$eq$(i.call$2(x.$index(r, s), L), 0); )
|
|
313
312
|
++s;
|
|
314
313
|
for (; u.$eq$(i.call$2(x.$index(r, o), v), 0); )
|
|
@@ -576,14 +575,14 @@ var Ee = {};
|
|
|
576
575
|
return t.Primitives__generalApplyFunction(r, e, n);
|
|
577
576
|
},
|
|
578
577
|
Primitives__generalApplyFunction(r, e, n) {
|
|
579
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h = Array.isArray(e) ? e : t.List_List$of(e, !0, f.dynamic),
|
|
580
|
-
if (
|
|
578
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h = Array.isArray(e) ? e : t.List_List$of(e, !0, f.dynamic), E = h.length, C = r.$requiredArgCount;
|
|
579
|
+
if (E < C)
|
|
581
580
|
return t.Primitives_functionNoSuchMethod(r, h, n);
|
|
582
581
|
if (i = r.$defaultValues, a = i == null, s = a ? null : i(), o = u.getInterceptor$(r), l = o["call*"], typeof l == "string" && (l = o[l]), a)
|
|
583
|
-
return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) :
|
|
582
|
+
return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : E === C ? l.apply(r, h) : t.Primitives_functionNoSuchMethod(r, h, n);
|
|
584
583
|
if (Array.isArray(s))
|
|
585
|
-
return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : (D = C + s.length,
|
|
586
|
-
if (
|
|
584
|
+
return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, h, n) : (D = C + s.length, E > D ? t.Primitives_functionNoSuchMethod(r, h, null) : (E < D && (d = s.slice(E - C), h === e && (h = t.List_List$of(h, !0, f.dynamic)), _.JSArray_methods.addAll$1(h, d)), l.apply(r, h)));
|
|
585
|
+
if (E > C)
|
|
587
586
|
return t.Primitives_functionNoSuchMethod(r, h, n);
|
|
588
587
|
if (h === e && (h = t.List_List$of(h, !0, f.dynamic)), c = Object.keys(s), n == null)
|
|
589
588
|
for (a = c.length, p = 0; p < c.length; c.length === a || (0, t.throwConcurrentModificationError)(c), ++p) {
|
|
@@ -673,9 +672,9 @@ var Ee = {};
|
|
|
673
672
|
case 5007:
|
|
674
673
|
return a = t.S(e), t.saveStackTrace(r, new t.NullError(a + " (Error " + i + ")", h));
|
|
675
674
|
}
|
|
676
|
-
return r instanceof TypeError ? (s = S.$get$TypeErrorDecoder_noSuchMethodPattern(), o = S.$get$TypeErrorDecoder_notClosurePattern(), l = S.$get$TypeErrorDecoder_nullCallPattern(), D = S.$get$TypeErrorDecoder_nullLiteralCallPattern(), d = S.$get$TypeErrorDecoder_undefinedCallPattern(), c = S.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), p = S.$get$TypeErrorDecoder_nullPropertyPattern(), S.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), y = S.$get$TypeErrorDecoder_undefinedPropertyPattern(), m = S.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = s.matchTypeError$1(e), g != null ? t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g)) : (g = o.matchTypeError$1(e), g != null ? (g.method = "call", t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g))) : (g = l.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = d.matchTypeError$1(e), g == null ? (g = c.matchTypeError$1(e), g == null ? (g = p.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = y.matchTypeError$1(e), g == null ? (g = m.matchTypeError$1(e), a = g != null) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0, a ? t.saveStackTrace(r, new t.NullError(e, g == null ? h : g.method)) : t.saveStackTrace(r, new t.UnknownJsTypeError(typeof e == "string" ? e : ""))))) : r instanceof RangeError ? typeof e == "string" && e.indexOf("call stack") !== -1 ? new t.StackOverflowError() : (e = function(
|
|
675
|
+
return r instanceof TypeError ? (s = S.$get$TypeErrorDecoder_noSuchMethodPattern(), o = S.$get$TypeErrorDecoder_notClosurePattern(), l = S.$get$TypeErrorDecoder_nullCallPattern(), D = S.$get$TypeErrorDecoder_nullLiteralCallPattern(), d = S.$get$TypeErrorDecoder_undefinedCallPattern(), c = S.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), p = S.$get$TypeErrorDecoder_nullPropertyPattern(), S.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), y = S.$get$TypeErrorDecoder_undefinedPropertyPattern(), m = S.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = s.matchTypeError$1(e), g != null ? t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g)) : (g = o.matchTypeError$1(e), g != null ? (g.method = "call", t.saveStackTrace(r, t.JsNoSuchMethodError$(e, g))) : (g = l.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = d.matchTypeError$1(e), g == null ? (g = c.matchTypeError$1(e), g == null ? (g = p.matchTypeError$1(e), g == null ? (g = D.matchTypeError$1(e), g == null ? (g = y.matchTypeError$1(e), g == null ? (g = m.matchTypeError$1(e), a = g != null) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0) : a = !0, a ? t.saveStackTrace(r, new t.NullError(e, g == null ? h : g.method)) : t.saveStackTrace(r, new t.UnknownJsTypeError(typeof e == "string" ? e : ""))))) : r instanceof RangeError ? typeof e == "string" && e.indexOf("call stack") !== -1 ? new t.StackOverflowError() : (e = function(E) {
|
|
677
676
|
try {
|
|
678
|
-
return String(
|
|
677
|
+
return String(E);
|
|
679
678
|
} catch {
|
|
680
679
|
}
|
|
681
680
|
return null;
|
|
@@ -697,13 +696,13 @@ var Ee = {};
|
|
|
697
696
|
return e;
|
|
698
697
|
},
|
|
699
698
|
Closure_fromTearOff(r) {
|
|
700
|
-
var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI,
|
|
699
|
+
var e, n, i, a, s, o, l, D, d, c, p = r.co, y = r.iS, m = r.iI, g = r.nDA, h = r.aI, E = r.fs, C = r.cs, I = E[0], M = C[0], x = p[I], R = r.fT;
|
|
701
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() {
|
|
702
701
|
this.$initialize();
|
|
703
|
-
} : n = function(
|
|
704
|
-
this.$initialize(
|
|
705
|
-
}, e.constructor = n, n.prototype = e, e.$_name =
|
|
706
|
-
l =
|
|
702
|
+
} : n = function(O, v) {
|
|
703
|
+
this.$initialize(O, v);
|
|
704
|
+
}, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(I, x, m, g) : (e.$static_name = I, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(R, y, m), e[M] = a, s = a, o = 1; o < E.length; ++o)
|
|
705
|
+
l = E[o], typeof l == "string" ? (D = p[l], d = l, l = D) : d = "", c = C[o], c != null && (i && (l = t.Closure_forwardCallTo(d, l, m, g)), e[c] = l), o === h && (s = l);
|
|
707
706
|
return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
|
|
708
707
|
},
|
|
709
708
|
Closure__computeSignatureFunctionNewRti(r, e, n) {
|
|
@@ -1149,7 +1148,7 @@ var Ee = {};
|
|
|
1149
1148
|
return t._Universe_eval(b.typeUniverse, r, !1);
|
|
1150
1149
|
},
|
|
1151
1150
|
_substitute(r, e, n, i) {
|
|
1152
|
-
var a, s, o, l, D, d, c, p, y, m, g, h,
|
|
1151
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x = e._kind;
|
|
1153
1152
|
switch (x) {
|
|
1154
1153
|
case 5:
|
|
1155
1154
|
case 1:
|
|
@@ -1170,9 +1169,9 @@ var Ee = {};
|
|
|
1170
1169
|
case 12:
|
|
1171
1170
|
return y = e._primary, m = t._substitute(r, y, n, i), g = e._rest, h = t._substituteFunctionParameters(r, g, n, i), m === y && h === g ? e : t._Universe__lookupFunctionRti(r, m, h);
|
|
1172
1171
|
case 13:
|
|
1173
|
-
return
|
|
1172
|
+
return E = e._rest, i += E.length, C = t._substituteArray(r, E, n, i), D = e._primary, d = t._substitute(r, D, n, i), C === E && d === D ? e : t._Universe__lookupGenericFunctionRti(r, d, C, !0);
|
|
1174
1173
|
case 14:
|
|
1175
|
-
return
|
|
1174
|
+
return I = e._primary, I < i || (M = n[I - i], M == null) ? e : M;
|
|
1176
1175
|
default:
|
|
1177
1176
|
throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + x));
|
|
1178
1177
|
}
|
|
@@ -1432,7 +1431,7 @@ var Ee = {};
|
|
|
1432
1431
|
return s + "})";
|
|
1433
1432
|
},
|
|
1434
1433
|
_functionRtiToString(r, e, n) {
|
|
1435
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
1434
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v = ", ";
|
|
1436
1435
|
if (n != null) {
|
|
1437
1436
|
for (i = n.length, e == null ? (e = t._setArrayType([], f.JSArray_String), a = null) : a = e.length, s = e.length, o = i; o > 0; --o)
|
|
1438
1437
|
e.push("T" + (s + o));
|
|
@@ -1441,16 +1440,16 @@ var Ee = {};
|
|
|
1441
1440
|
d += ">";
|
|
1442
1441
|
} else
|
|
1443
1442
|
d = "", a = null;
|
|
1444
|
-
for (l = r._primary, g = r._rest, h = g._requiredPositional,
|
|
1445
|
-
L +=
|
|
1446
|
-
if (
|
|
1447
|
-
for (L +=
|
|
1448
|
-
L +=
|
|
1443
|
+
for (l = r._primary, g = r._rest, h = g._requiredPositional, E = h.length, C = g._optionalPositional, I = C.length, M = g._named, x = M.length, R = t._rtiToString(l, e), L = "", O = "", o = 0; o < E; ++o, O = v)
|
|
1444
|
+
L += O + t._rtiToString(h[o], e);
|
|
1445
|
+
if (I > 0) {
|
|
1446
|
+
for (L += O + "[", O = "", o = 0; o < I; ++o, O = v)
|
|
1447
|
+
L += O + t._rtiToString(C[o], e);
|
|
1449
1448
|
L += "]";
|
|
1450
1449
|
}
|
|
1451
1450
|
if (x > 0) {
|
|
1452
|
-
for (L +=
|
|
1453
|
-
L +=
|
|
1451
|
+
for (L += O + "{", O = "", o = 0; o < x; o += 3, O = v)
|
|
1452
|
+
L += O, M[o + 1] && (L += "required "), L += t._rtiToString(M[o + 2], e) + " " + M[o];
|
|
1454
1453
|
L += "}";
|
|
1455
1454
|
}
|
|
1456
1455
|
return a != null && (e.toString, e.length = a), d + "(" + L + ") => " + R;
|
|
@@ -1811,33 +1810,33 @@ var Ee = {};
|
|
|
1811
1810
|
return D === 12 ? e === f.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === f.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
|
|
1812
1811
|
},
|
|
1813
1812
|
_isFunctionSubtype(r, e, n, i, a) {
|
|
1814
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
1813
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j;
|
|
1815
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, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, d + g < c + h))
|
|
1816
1815
|
return !1;
|
|
1817
|
-
for (
|
|
1818
|
-
if (C = l[
|
|
1816
|
+
for (E = 0; E < d; ++E)
|
|
1817
|
+
if (C = l[E], !t._isSubtype(r, D[E], a, C, n))
|
|
1819
1818
|
return !1;
|
|
1820
|
-
for (
|
|
1821
|
-
if (C = y[
|
|
1819
|
+
for (E = 0; E < p; ++E)
|
|
1820
|
+
if (C = y[E], !t._isSubtype(r, D[d + E], a, C, n))
|
|
1822
1821
|
return !1;
|
|
1823
|
-
for (
|
|
1824
|
-
if (C = y[p +
|
|
1822
|
+
for (E = 0; E < h; ++E)
|
|
1823
|
+
if (C = y[p + E], !t._isSubtype(r, m[E], a, C, n))
|
|
1825
1824
|
return !1;
|
|
1826
|
-
for (
|
|
1827
|
-
for (v = M[
|
|
1828
|
-
if (L >= x || (
|
|
1825
|
+
for (I = s._named, M = o._named, x = I.length, R = M.length, L = 0, O = 0; O < R; O += 3)
|
|
1826
|
+
for (v = M[O]; ; ) {
|
|
1827
|
+
if (L >= x || (H = I[L], L += 3, v < H))
|
|
1829
1828
|
return !1;
|
|
1830
|
-
if (
|
|
1831
|
-
if (
|
|
1829
|
+
if (j = I[L - 2], H < v) {
|
|
1830
|
+
if (j)
|
|
1832
1831
|
return !1;
|
|
1833
1832
|
continue;
|
|
1834
1833
|
}
|
|
1835
|
-
if (C = M[
|
|
1834
|
+
if (C = M[O + 1], j && !C || (C = I[L - 1], !t._isSubtype(r, M[O + 2], a, C, n)))
|
|
1836
1835
|
return !1;
|
|
1837
1836
|
break;
|
|
1838
1837
|
}
|
|
1839
1838
|
for (; L < x; ) {
|
|
1840
|
-
if (
|
|
1839
|
+
if (I[L + 1])
|
|
1841
1840
|
return !1;
|
|
1842
1841
|
L += 3;
|
|
1843
1842
|
}
|
|
@@ -2297,11 +2296,11 @@ var Ee = {};
|
|
|
2297
2296
|
return new t.DateTime(Date.now(), !1);
|
|
2298
2297
|
},
|
|
2299
2298
|
DateTime_parse(r) {
|
|
2300
|
-
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
2299
|
+
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C = S.$get$DateTime__parseFormat().firstMatch$1(r);
|
|
2301
2300
|
if (C != null) {
|
|
2302
|
-
if (e = new t.DateTime_parse_parseIntOrZero(), n = C._match, i = n[1], i.toString, a = t.int_parse(i), i = n[2], i.toString, s = t.int_parse(i), i = n[3], i.toString, o = t.int_parse(i), l = e.call$1(n[4]), D = e.call$1(n[5]), d = e.call$1(n[6]), c = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), p = _.JSInt_methods._tdivFast$1(c, 1e3), n[8] != null ? (y = n[9], y != null && (m = y === "-" ? -1 : 1, i = n[10], i.toString, g = t.int_parse(i), D -= m * (e.call$1(n[11]) + 60 * g)), h = !0) : h = !1,
|
|
2301
|
+
if (e = new t.DateTime_parse_parseIntOrZero(), n = C._match, i = n[1], i.toString, a = t.int_parse(i), i = n[2], i.toString, s = t.int_parse(i), i = n[3], i.toString, o = t.int_parse(i), l = e.call$1(n[4]), D = e.call$1(n[5]), d = e.call$1(n[6]), c = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), p = _.JSInt_methods._tdivFast$1(c, 1e3), n[8] != null ? (y = n[9], y != null && (m = y === "-" ? -1 : 1, i = n[10], i.toString, g = t.int_parse(i), D -= m * (e.call$1(n[11]) + 60 * g)), h = !0) : h = !1, E = t.Primitives_valueFromDecomposedDate(a, s, o, l, D, d, p + _.JSNumber_methods.round$0(c % 1e3 / 1e3), h), E == null)
|
|
2303
2302
|
throw t.wrapException(t.FormatException$("Time out of range", r, null));
|
|
2304
|
-
return t.DateTime$_withValue(
|
|
2303
|
+
return t.DateTime$_withValue(E, h);
|
|
2305
2304
|
} else
|
|
2306
2305
|
throw t.wrapException(t.FormatException$("Invalid date format", r, null));
|
|
2307
2306
|
},
|
|
@@ -2508,8 +2507,8 @@ var Ee = {};
|
|
|
2508
2507
|
o.digest = e, o._extended = n, o._hash_sink$_sink = i, o._currentChunk = a, o._lengthInBytes = 0, o._pendingData = s, o._isClosed = !1;
|
|
2509
2508
|
},
|
|
2510
2509
|
DateSymbols: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2510
|
+
var E = this;
|
|
2511
|
+
E.NAME = e, E.ERAS = n, E.ERANAMES = i, E.NARROWMONTHS = a, E.STANDALONENARROWMONTHS = s, E.MONTHS = o, E.STANDALONEMONTHS = l, E.SHORTMONTHS = D, E.STANDALONESHORTMONTHS = d, E.WEEKDAYS = c, E.STANDALONEWEEKDAYS = p, E.SHORTWEEKDAYS = y, E.STANDALONESHORTWEEKDAYS = m, E.STANDALONENARROWWEEKDAYS = g, E.AMPMS = h;
|
|
2513
2512
|
},
|
|
2514
2513
|
DateBuilder: function(e, n) {
|
|
2515
2514
|
var i = this;
|
|
@@ -2811,7 +2810,7 @@ var Ee = {};
|
|
|
2811
2810
|
`;
|
|
2812
2811
|
},
|
|
2813
2812
|
Materialize_getMergeSql(r, e, n, i, a, s, o) {
|
|
2814
|
-
var l, D, d, c, p, y, m, g, h,
|
|
2813
|
+
var l, D, d, c, p, y, m, g, h, E, C, I, 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;
|
|
2815
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(), f.String).join$1(0, ", '_', ") + ")", c = L.timeColumn, c.toString, p = `WITH docs as
|
|
2816
2815
|
(
|
|
2817
2816
|
select * from (SELECT TO_JSON_STRING(src) AS data, ` + d + " AS id, '' AS db_name, " + c + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + D.join$1(l, ",") + " ORDER BY " + c + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + c + " between TIMESTAMP('" + i + M + n + `')) WHERE rn=1
|
|
@@ -2826,15 +2825,15 @@ var Ee = {};
|
|
|
2826
2825
|
SELECT
|
|
2827
2826
|
` + m + `
|
|
2828
2827
|
FROM raw_table ` + L + `
|
|
2829
|
-
`, L = c.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 : "",
|
|
2830
|
-
`), u.get$isNotEmpty$asx(e) ? (c = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "",
|
|
2828
|
+
`, L = c.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 : "", E = u.getInterceptor$asx(a), C = E.get$isNotEmpty(a) ? R : "", D = c.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) ? (c = r.get$fullMaterializedTableName(), l = l.get$isNotEmpty(o) ? x : "", E = E.get$isNotEmpty(a) ? R : "", I = "DELETE FROM `" + c + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + g + `) source_table
|
|
2831
2830
|
WHERE source_table.id = target_table.id
|
|
2832
2831
|
and source_table.docId = target_table.docId
|
|
2833
2832
|
)
|
|
2834
2833
|
` + l + `
|
|
2835
|
-
` +
|
|
2834
|
+
` + E + `
|
|
2836
2835
|
and target_table.docId in UNNEST(@docIds)
|
|
2837
|
-
`) :
|
|
2836
|
+
`) : I = "", "MERGE INTO `" + L + "` AS target_table USING (\n" + g + `
|
|
2838
2837
|
) AS source_table ON
|
|
2839
2838
|
target_table.id = source_table.id
|
|
2840
2839
|
and target_table.docId = source_table.docId
|
|
@@ -2848,22 +2847,22 @@ and target_table.docId in UNNEST(@docIds)
|
|
|
2848
2847
|
when not matched by target
|
|
2849
2848
|
then insert (` + h + ") values (" + h + `);
|
|
2850
2849
|
|
|
2851
|
-
` +
|
|
2850
|
+
` + I + `
|
|
2852
2851
|
`;
|
|
2853
2852
|
},
|
|
2854
2853
|
Materialize_getMaterializeInfoSql(r, e, n, i, a) {
|
|
2855
|
-
var s, o, l, D, d, c, p, y, m, g, h = '") AND TIMESTAMP("',
|
|
2856
|
-
return
|
|
2854
|
+
var s, o, l, D, d, c, p, y, m, g, h = '") AND TIMESTAMP("', E = "CAST(JSON_VALUE(", C = ", '$._restaurantId') AS STRING) AS restaurantId,", I = r.source, M = I.field, x = M != null;
|
|
2855
|
+
return I.type === _.SOURCE_TYPE_2 ? (s = I.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(), f.String).join$1(0, ", '_', ") + ")", D = I.timeColumn, D.toString, d = o.join$1(s, ","), c = I.dateColumns, c == null && (c = t._setArrayType([], f.JSArray_String)), p = D + ' between TIMESTAMP("' + i + h + e + '")', I = u.getInterceptor$asx(c), y = I.get$isNotEmpty(c) ? "SELECT * REPLACE(" + I.map$1$1(c, new t.Materialize_getMaterializeInfoSql_closure0(a), f.String).join$1(0, ", ") + ") FROM `" + r.get$fullRawTableName() + "` WHERE " + p : "SELECT * FROM `" + r.get$fullRawTableName() + "` WHERE " + p, m = `docs AS (
|
|
2857
2856
|
SELECT * FROM (
|
|
2858
2857
|
SELECT TO_JSON_STRING(src) AS data, ` + l + " AS id, '' AS db_name, " + D + ` AS publish_time, false AS deleted,
|
|
2859
2858
|
ROW_NUMBER() OVER (PARTITION BY ` + d + " ORDER BY " + D + ` DESC) as rn
|
|
2860
2859
|
FROM (` + y + `) AS src
|
|
2861
2860
|
) WHERE rn=1
|
|
2862
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 + `")
|
|
2863
|
-
)`,
|
|
2862
|
+
)`, I = r.getTransformedTableQuery$1$getParentDocs(!0), s = x ? `child_table AS (
|
|
2864
2863
|
` + r.getTransformedTableQuery$1$getParentDocs(!1) + `
|
|
2865
2864
|
),
|
|
2866
|
-
` : "", o = r.name._name, D = n ?
|
|
2865
|
+
` : "", o = r.name._name, D = n ? E + o + C : "", x ? (g = n ? E + o + C : "", M = ` UNION ALL
|
|
2867
2866
|
SELECT
|
|
2868
2867
|
CAST(JSON_VALUE(` + o + `, '$._docId') AS STRING) AS docId,
|
|
2869
2868
|
` + g + `
|
|
@@ -2873,7 +2872,7 @@ and target_table.docId in UNNEST(@docIds)
|
|
|
2873
2872
|
`) : M = "", g = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
|
|
2874
2873
|
` + m + `,
|
|
2875
2874
|
parent_table AS (
|
|
2876
|
-
` +
|
|
2875
|
+
` + I + `
|
|
2877
2876
|
),
|
|
2878
2877
|
` + s + `
|
|
2879
2878
|
formatted_table as (SELECT
|
|
@@ -2979,16 +2978,16 @@ select
|
|
|
2979
2978
|
Index$(r, e, n) {
|
|
2980
2979
|
return new t.Index(r, e, n);
|
|
2981
2980
|
},
|
|
2982
|
-
Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
2983
|
-
return new t.Schema(
|
|
2981
|
+
Schema$(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L) {
|
|
2982
|
+
return new t.Schema(I, h, s, g, L, R, y, m, c, p, D, x, a, C, E, M, i, l, o, d, e, r, n);
|
|
2984
2983
|
},
|
|
2985
|
-
Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
2986
|
-
var
|
|
2987
|
-
return t.Schema$(r, e, n, i, a,
|
|
2984
|
+
Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L) {
|
|
2985
|
+
var O = s.call$1(I), v = g.call$1(I);
|
|
2986
|
+
return t.Schema$(r, e, n, i, a, O, o, l, D ?? 300, d, c, p, y, m, v, h, E, C, I, M, x, R, L);
|
|
2988
2987
|
},
|
|
2989
2988
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
2991
|
-
return h0 = h0 == null ?
|
|
2989
|
+
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_ZR3, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), O = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), H = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), j = v.$index(0, "table"), c0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), a0 = f.nullable_List_dynamic, h0 = a0._as(v.$index(0, "uniqueKey"));
|
|
2990
|
+
return h0 = h0 == null ? I : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = a0._as(v.$index(0, "dateColumns")), v = v == null ? I : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? I : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? I : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), a0 = a0._as(r.$index(0, "aiKeywords")), a0 = a0 == null ? I : u.cast$1$0$ax(a0, f.String), a0 == null && (a0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, a0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(H, j, c0, g0, h0, e, v), O);
|
|
2992
2991
|
},
|
|
2993
2992
|
Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
|
|
2994
2993
|
return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
|
|
@@ -3003,16 +3002,16 @@ select
|
|
|
3003
3002
|
return new t._BoolField(s, o, _.DATA_TYPE_2, e, a, l, n, D, i, !1, r);
|
|
3004
3003
|
},
|
|
3005
3004
|
Field_fromJson(r) {
|
|
3006
|
-
var e, n, i, a, s, o, l, D, d = "name", c = "schemaName", p = "pointTo", y = "formula", m = "label", g = "hidden", h = "isAiHidden",
|
|
3005
|
+
var e, n, i, a, s, o, l, D, d = "name", c = "schemaName", p = "pointTo", y = "formula", m = "label", g = "hidden", h = "isAiHidden", E = null, C = "description";
|
|
3007
3006
|
switch (t.EnumByName_byName(_.List_k6a, r.$index(0, "type")).index) {
|
|
3008
3007
|
case 0:
|
|
3009
|
-
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), D = r.$index(0, "isCompareIgnoreSpaces"), D == null && (D = !1), t.Field_Field$string(r.$index(0, C), a, o, l, D, s, e, i,
|
|
3008
|
+
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), D = r.$index(0, "isCompareIgnoreSpaces"), D == null && (D = !1), t.Field_Field$string(r.$index(0, C), a, o, l, D, s, e, i, E, n);
|
|
3010
3009
|
case 2:
|
|
3011
|
-
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$bool(r.$index(0, C), a, o, l, s, e, i,
|
|
3010
|
+
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$bool(r.$index(0, C), a, o, l, s, e, i, E, n);
|
|
3012
3011
|
case 3:
|
|
3013
|
-
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$numeric(r.$index(0, C), a, o, l, s, e, i,
|
|
3012
|
+
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$numeric(r.$index(0, C), a, o, l, s, e, i, E, n);
|
|
3014
3013
|
case 1:
|
|
3015
|
-
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$timestamp(r.$index(0, C), a, o, l, s, e, i,
|
|
3014
|
+
return e = r.$index(0, d), n = t.EnumByName_byName(_.List_ZR3, r.$index(0, c)), i = r.$index(0, p), a = r.$index(0, y), s = r.$index(0, m), o = r.$index(0, g), l = r.$index(0, h), t.Field_Field$timestamp(r.$index(0, C), a, o, l, s, e, i, E, n);
|
|
3016
3015
|
}
|
|
3017
3016
|
},
|
|
3018
3017
|
Join_fromJson(r) {
|
|
@@ -3111,9 +3110,9 @@ select
|
|
|
3111
3110
|
Index: function(e, n, i) {
|
|
3112
3111
|
this.column = e, this.customName = n, this.indexMethod = i;
|
|
3113
3112
|
},
|
|
3114
|
-
Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
3113
|
+
Schema: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O) {
|
|
3115
3114
|
var v = this;
|
|
3116
|
-
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 = c, v.interval = p, v.rawTableName = y, v.dynamicRawTable = m, v.materializedTableName = g, v.materializedPostgresqlTableName = h, v.partition =
|
|
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 = c, v.interval = p, v.rawTableName = y, v.dynamicRawTable = m, v.materializedTableName = g, v.materializedPostgresqlTableName = h, v.partition = E, v.clusters = C, v.indexes = I, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = M, v.isAiHidden = x, v.aiKeywords = R, v.aiCategory = L, v.aiPriority = O;
|
|
3117
3116
|
},
|
|
3118
3117
|
Schema_visualizationSchema_closure: function() {
|
|
3119
3118
|
},
|
|
@@ -3312,8 +3311,8 @@ select
|
|
|
3312
3311
|
s.field = e, s.id = n, s.alias = i, s.formula = a;
|
|
3313
3312
|
},
|
|
3314
3313
|
QueryRequest: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
|
|
3315
|
-
var
|
|
3316
|
-
|
|
3314
|
+
var E = this;
|
|
3315
|
+
E.schemaName = e, E.dimensions = n, E.metrics = i, E.joins = a, E.timeDimension = s, E.restaurantIds = o, E.warehouseIds = l, E.businessIds = D, E.filters = d, E.sorts = c, E.limit = p, E.timezone = y, E.rollup = m, E.rollupPosition = g, E.blendConditions = h;
|
|
3317
3316
|
},
|
|
3318
3317
|
QueryRequest_closure: function() {
|
|
3319
3318
|
},
|
|
@@ -4013,9 +4012,9 @@ select
|
|
|
4013
4012
|
DataSourceRowColumnConfig_columnIds_closure1: function(e) {
|
|
4014
4013
|
this.$this = e;
|
|
4015
4014
|
},
|
|
4016
|
-
TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
4015
|
+
TableDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x) {
|
|
4017
4016
|
var R = this;
|
|
4018
|
-
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 = c, R._table_datasource_config_model$_joinDatasources = p, R.schemaNames = y, R.dimensions = m, R.metrics = g, R.filters = h, R.sorts =
|
|
4017
|
+
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 = c, R._table_datasource_config_model$_joinDatasources = p, R.schemaNames = y, R.dimensions = m, R.metrics = g, R.filters = h, R.sorts = E, R.limit = C, R.isComparable = I, R.periodType = M, R.timezone = x;
|
|
4019
4018
|
},
|
|
4020
4019
|
TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
|
|
4021
4020
|
this.$this = e;
|
|
@@ -4077,9 +4076,9 @@ select
|
|
|
4077
4076
|
var e, n, i, a, s, o = "breakdownDimension", l = t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(r), D = r.$index(0, o) != null ? t.QueryRequestDimension_fromJson(r.$index(0, o)) : null, d = r.$index(0, "isTransposed");
|
|
4078
4077
|
return d == null && (d = !1), e = r.$index(0, "showLabel"), e == null && (e = !1), n = r.$index(0, "drillDimension"), i = r.$index(0, "isBlend"), i == null && (i = !1), a = r.$index(0, "joinDatasources"), a == null && (a = []), a = t.List_List$from(a, f.Map_String_dynamic), s = t._arrayInstanceType(a)._eval$1("MappedListIterable<1,JoinDatasourceConfig>"), s = t.List_List$of(new t.MappedListIterable(a, new t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure(l), s), !0, s._eval$1("ListIterable.E")), new t.BaseXYDatasourceConfigModel(e, n, D, d, i, r.$index(0, "isCumulative"), s, l.schemaNames, l.dimensions, l.metrics, l.filters, l.sorts, l.limit, l.isComparable, l.periodType, l.timezone);
|
|
4079
4078
|
},
|
|
4080
|
-
BaseXYDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
4079
|
+
BaseXYDatasourceConfigModel: function(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E) {
|
|
4081
4080
|
var C = this;
|
|
4082
|
-
C.showLabel = e, C._xy_datasource_config_model$_drillDimension = n, C.breakdownDimension = i, C.isTransposed = a, C.isBlend = s, C.isCumulative = o, C._joinDatasources = l, C.schemaNames = D, C.dimensions = d, C.metrics = c, C.filters = p, C.sorts = y, C.limit = m, C.isComparable = g, C.periodType = h, C.timezone =
|
|
4081
|
+
C.showLabel = e, C._xy_datasource_config_model$_drillDimension = n, C.breakdownDimension = i, C.isTransposed = a, C.isBlend = s, C.isCumulative = o, C._joinDatasources = l, C.schemaNames = D, C.dimensions = d, C.metrics = c, C.filters = p, C.sorts = y, C.limit = m, C.isComparable = g, C.periodType = h, C.timezone = E;
|
|
4083
4082
|
},
|
|
4084
4083
|
BaseXYDatasourceConfigModel_joinDatasources_closure: function(e) {
|
|
4085
4084
|
this.$this = e;
|
|
@@ -4206,40 +4205,40 @@ select
|
|
|
4206
4205
|
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));
|
|
4207
4206
|
},
|
|
4208
4207
|
getMergeInfoSql(r) {
|
|
4209
|
-
var e, n, i, a = _.C_JsonCodec.decode$2$reviver(
|
|
4208
|
+
var e, n, i, a = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
|
|
4210
4209
|
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);
|
|
4211
4210
|
},
|
|
4212
4211
|
getClearTableSql(r) {
|
|
4213
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4212
|
+
var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4214
4213
|
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;
|
|
4215
4214
|
`;
|
|
4216
4215
|
},
|
|
4217
4216
|
getMergeSql(r) {
|
|
4218
|
-
var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(
|
|
4217
|
+
var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), l = u.getInterceptor$asx(o), D = t._getQueryEngine(l.$index(o, "bigQuery"));
|
|
4219
4218
|
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);
|
|
4220
4219
|
},
|
|
4221
4220
|
getSchemas(r) {
|
|
4222
|
-
var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(
|
|
4223
|
-
return
|
|
4221
|
+
var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
|
|
4222
|
+
return w.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));
|
|
4224
4223
|
},
|
|
4225
4224
|
getVisualizationSchemas(r) {
|
|
4226
|
-
var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(
|
|
4227
|
-
return
|
|
4225
|
+
var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
|
|
4226
|
+
return w.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));
|
|
4228
4227
|
},
|
|
4229
4228
|
requestJsonToSql(r) {
|
|
4230
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4231
|
-
return
|
|
4229
|
+
var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
|
|
4230
|
+
return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], f.JSArray_QueryRequest)), null));
|
|
4232
4231
|
},
|
|
4233
4232
|
sqlResponsesToQueryResponses(r) {
|
|
4234
|
-
var e, n = _.C_JsonCodec.decode$2$reviver(
|
|
4235
|
-
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), f.QueryRequest, f.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"),
|
|
4233
|
+
var e, n = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
|
|
4234
|
+
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), f.QueryRequest, f.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), w.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));
|
|
4236
4235
|
},
|
|
4237
4236
|
getQueryRequests(r) {
|
|
4238
|
-
var e, n, i, a, s, o, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(
|
|
4239
|
-
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, f.QueryRequest), c = 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(), c), !0, c._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,@>>"),
|
|
4237
|
+
var e, n, i, a, s, o, l, D, d, c, p = _.C_JsonCodec.decode$2$reviver(w.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");
|
|
4238
|
+
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, f.QueryRequest), c = 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(), c), !0, c._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,@>>"), w.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));
|
|
4240
4239
|
},
|
|
4241
4240
|
getCreateMaterializedTableSql(r) {
|
|
4242
|
-
var e = _.C_JsonCodec.decode$2$reviver(
|
|
4241
|
+
var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
|
|
4243
4242
|
return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
|
|
4244
4243
|
},
|
|
4245
4244
|
getSchemas_closure: function() {
|
|
@@ -4278,7 +4277,7 @@ select
|
|
|
4278
4277
|
Exports: function() {
|
|
4279
4278
|
},
|
|
4280
4279
|
main() {
|
|
4281
|
-
t.initializeTimeZones(), u.set$requestJsonToSql$x(
|
|
4280
|
+
t.initializeTimeZones(), u.set$requestJsonToSql$x(w.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(w.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(w.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(w.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(w.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(w.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(w.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
|
|
4282
4281
|
},
|
|
4283
4282
|
_Exports: function() {
|
|
4284
4283
|
},
|
|
@@ -4582,16 +4581,16 @@ select
|
|
|
4582
4581
|
}, f.Location);
|
|
4583
4582
|
},
|
|
4584
4583
|
_deserializeLocation(r) {
|
|
4585
|
-
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), c = 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([], f.JSArray_String),
|
|
4584
|
+
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), c = 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([], f.JSArray_String), E = t._setArrayType([], f.JSArray_TimeZone), C = f.JSArray_int, I = t._setArrayType([], C), M = t._setArrayType([], C), x = D + d;
|
|
4586
4585
|
for (e = D, n = e; e < x; ++e)
|
|
4587
4586
|
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);
|
|
4588
4587
|
for (n = c, e = 0; e < p; ++e, n = a)
|
|
4589
|
-
a = n + 8,
|
|
4588
|
+
a = n + 8, E.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, h[s.getUint8(n + 5)]));
|
|
4590
4589
|
for (n = y, e = 0; e < m; ++e)
|
|
4591
|
-
|
|
4590
|
+
I.push(_.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
|
|
4592
4591
|
for (e = 0; e < m; ++e)
|
|
4593
4592
|
M.push(s.getUint8(n)), ++n;
|
|
4594
|
-
return t.Location$(g,
|
|
4593
|
+
return t.Location$(g, I, M, E);
|
|
4595
4594
|
}
|
|
4596
4595
|
}, u = {
|
|
4597
4596
|
makeDispatchRecord(r, e, n, i) {
|
|
@@ -8191,8 +8190,8 @@ Arguments: [` + D + "]";
|
|
|
8191
8190
|
return _.JSArray_methods.fold$2(this._getJoins$1(r), "", new t.QueryRequest__getSqlJoins_closure(this, r));
|
|
8192
8191
|
},
|
|
8193
8192
|
_getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(r, e, n, i) {
|
|
8194
|
-
var a, s, o, l, D, d, c, p, y = this, m = r != null, g = y.dimensions, h = f.QueryRequestDimension,
|
|
8195
|
-
return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h,
|
|
8193
|
+
var a, s, o, l, D, d, c, p, y = this, m = r != null, g = y.dimensions, h = f.QueryRequestDimension, E = t.ListExtensions_whereIndexed(g, new t.QueryRequest__getRollupSelect_closure(r), h), C = E.get$isEmpty(E) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(E, new t.QueryRequest__getRollupSelect_closure0(), E.$ti._eval$1("Iterable.E"), f.String).join$1(0, ","), I = f.String;
|
|
8194
|
+
return h = t.List_List$of(t.ListExtensions_mapIndexed(g, new t.QueryRequest__getRollupSelect_closure1(y, e, r, C), h, I), !0, I), a = y.metrics, s = f.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), c = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure4(i), I), !0, I), _.JSArray_methods.addAll$1(c, u.fold$2$ax(a, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(i, m))), _.JSArray_methods.addAll$1(c, new t.MappedListIterable(o, new t.QueryRequest__getRollupSelect_closure6(), D)), c.push("" + m + " _is_rollup"), p = "select " + _.JSArray_methods.join$1(c, ",") + " from (" + ("select " + h + " from " + n) + ")", d.get$isNotEmpty(g) && (g = t.List_List$of(d.map$1$1(g, new t.QueryRequest__getRollupSelect_closure7(), I), !0, I), 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;
|
|
8196
8195
|
},
|
|
8197
8196
|
get$_hasFillGap() {
|
|
8198
8197
|
var r = u.where$1$ax(this.dimensions, new t.QueryRequest__hasFillGap_closure());
|
|
@@ -8222,10 +8221,10 @@ Arguments: [` + D + "]";
|
|
|
8222
8221
|
return new t._GetSourceTableResponse("SELECT " + new t.MappedListIterable(i, new t.QueryRequest__getSourceTable_closure0(p), a).join$1(0, ",") + " FROM (" + ("SELECT " + s + " FROM `" + o + "` AS " + l + D + d + c) + ")", p);
|
|
8223
8222
|
},
|
|
8224
8223
|
_getFillGapTable$2$schemaLibrary$sourceTableName(r, e) {
|
|
8225
|
-
var n, i, a, s, o, l, D, d, c, p, y, m = this, g = " CROSS JOIN ", h = f.JSArray_String,
|
|
8224
|
+
var n, i, a, s, o, l, D, d, c, p, y, m = this, g = " CROSS JOIN ", h = f.JSArray_String, E = t._setArrayType([], h), C = m._getTimeFilters$1(r.getSchema$1(m.schemaName));
|
|
8226
8225
|
for (n = m.dimensions, i = u.getInterceptor$ax(n), a = i.get$iterator(n), s = m.timeDimension != null, o = m.timezone; a.moveNext$0(); )
|
|
8227
|
-
l = a.get$current(), D = l.getColumn$1(r), l.fillGap && D.dataType === _.DATA_TYPE_1 && s && (d = l.generateTimestampArraySql$2$timeFilters$timezone(C, o), D = l.option, D.toString,
|
|
8228
|
-
return a = f.String, c = t.ListExtensions_mapIndexed(
|
|
8226
|
+
l = a.get$current(), D = l.getColumn$1(r), l.fillGap && D.dataType === _.DATA_TYPE_1 && s && (d = l.generateTimestampArraySql$2$timeFilters$timezone(C, o), D = l.option, D.toString, E.push("SELECT " + t.DimensionOptionExtension_formatSql(D, t.uniqueAlias(l.get$alias()), o) + " " + t.uniqueAlias(l.get$alias()) + " FROM " + t.S(d) + " " + t.uniqueAlias(l.get$alias()) + " GROUP BY " + t.uniqueAlias(l.get$alias())));
|
|
8227
|
+
return a = f.String, c = t.ListExtensions_mapIndexed(E, new t.QueryRequest__getFillGapTable_closure(), a, a).join$1(0, g), a = t.List_List$of(i.map$1$1(n, new t.QueryRequest__getFillGapTable_closure0(), a), !0, a), _.JSArray_methods.addAll$1(a, u.fold$2$ax(m.metrics, t._setArrayType([], h), new t.QueryRequest__getFillGapTable_closure1(m, r))), s = m.sorts, _.JSArray_methods.addAll$1(a, new t.MappedListIterable(s, new t.QueryRequest__getFillGapTable_closure2(m, r), t._arrayInstanceType(s)._eval$1("MappedListIterable<1,String>"))), p = t._setArrayType(["SELECT " + _.JSArray_methods.join$1(a, ",") + " FROM (" + c + ")"], h), y = i.where$1(n, new t.QueryRequest__getFillGapTable_closure3()), y.get$isEmpty(y) || p.push("(SELECT DISTINCT " + new t.MappedIterable(y, new t.QueryRequest__getFillGapTable_closure4(), y.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ",") + " FROM " + e + ")"), _.JSArray_methods.join$1(p, g);
|
|
8229
8228
|
},
|
|
8230
8229
|
_getFullTable$3$fillGapTableName$schemaLibrary$sourceTableName(r, e, n) {
|
|
8231
8230
|
var i, a = "fill_gap_table", s = this.dimensions, o = f.String, l = u.getInterceptor$ax(s), D = t.List_List$of(l.map$1$1(s, new t.QueryRequest__getFullTable_closure(a, n), o), !0, o);
|
|
@@ -8860,8 +8859,8 @@ Arguments: [` + D + "]";
|
|
|
8860
8859
|
$signature: 1
|
|
8861
8860
|
}, t.billSchema_closure.prototype = {
|
|
8862
8861
|
call$1(r) {
|
|
8863
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice",
|
|
8864
|
-
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", c, c, 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",
|
|
8862
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
|
|
8863
|
+
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", c, c, 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", E, E, 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", I, I, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, 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", O, O, 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)], f.JSArray_Field);
|
|
8865
8864
|
},
|
|
8866
8865
|
$signature: 0
|
|
8867
8866
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -9000,8 +8999,8 @@ Arguments: [` + D + "]";
|
|
|
9000
8999
|
$signature: 1
|
|
9001
9000
|
}, t.completeTimeBillSchema_closure.prototype = {
|
|
9002
9001
|
call$1(r) {
|
|
9003
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice",
|
|
9004
|
-
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", c, c, 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",
|
|
9002
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", m = "grossTotal", g = "rounding", h = "takeawayPrice", E = "thirdPartyExtraCharge", C = "deliveryFee", I = "nettTotal", M = "deliveryFeeWithTax", x = "deliveryFeeWithoutTax", R = "otherChargeWithTax", L = "otherChargeWithoutTax", O = "discountInclusiveTaxTotal";
|
|
9003
|
+
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", c, c, 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", E, E, 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", I, I, T.COALESn, r), t.Field_Field$numeric(e, T.x28IFNULgx2bd, !1, !1, "Item gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bd, 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", O, O, T.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, T.x28selecstC, r)], f.JSArray_Field);
|
|
9005
9004
|
},
|
|
9006
9005
|
$signature: 0
|
|
9007
9006
|
}, t.completeTimeBillSchema_closure0.prototype = {
|
|
@@ -9070,10 +9069,10 @@ Arguments: [` + D + "]";
|
|
|
9070
9069
|
$signature: 1
|
|
9071
9070
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9072
9071
|
call$1(r) {
|
|
9073
|
-
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal",
|
|
9072
|
+
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", O = "layerTaxTotal", v = "layerScTotal", H = "layerOtherChargeTotal", j = "customAttributes", c0 = "layerZeroParentId", g0 = "collectedAt", a0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", b0 = "itemAdjustmentInclusiveTaxTotal", M0 = "layerBillAdjustmentInclusiveTaxTotal", R0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", I0 = "itemAdjustmentExclusiveTaxTotal", x0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9074
9073
|
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
9075
9074
|
`, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
9076
|
-
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price",
|
|
9075
|
+
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", T.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", I, I, "@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", O, O, "@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", H, H, "@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", c0, c0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", a0, a0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", 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)], f.JSArray_Field);
|
|
9077
9076
|
},
|
|
9078
9077
|
$signature: 0
|
|
9079
9078
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -9180,8 +9179,8 @@ Arguments: [` + D + "]";
|
|
|
9180
9179
|
$signature: 1
|
|
9181
9180
|
}, t.inventoryAdjustmentSkuSchema_closure.prototype = {
|
|
9182
9181
|
call$1(r) {
|
|
9183
|
-
var e = null, n = "locationId", i = "inventoryAdjustmentId", a = "fromBalance", s = "toBalance", o = "unitPrecision", l = "unitName", D = "unitAbbrev", d = "amountCost", c = "fromBalanceCost", p = "toBalanceCost", y = "trackingAmount", m = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion",
|
|
9184
|
-
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$string(e, e, !1, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", 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$string(e, e, !1, !1, !1, "Location ID", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inventory Adjustment ID", i, i, e, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, !1, "Amount", "amount", "amount", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, !1, "In", "in", e, T.CASE_Wax3e, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, !1, "Out", "out", e, T.CASE_Wax3c, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$numeric(e, e, !1, !1, "From balance", a, a, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", 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, "Unit ID", "unitId", "unitId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit Precision", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "SKU ID", "skuId", "skuId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit abbrev.", D, D, e, r), t.Field_Field$numeric(e, e, !1, !1, "Amount cost", d, d, "case when @amount<0 then -@amount_cost else @amount_cost end", r), t.Field_Field$numeric(e, e, !1, !1, "From balance cost", c, c, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance cost", p, p, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", r), t.Field_Field$numeric(e, e, !1, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", r), t.Field_Field$numeric(e, e, !1, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", r), t.Field_Field$numeric(e, e, !1, !1, "Tracking amount", y, y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit", m, m, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit abbrev.", g, g, e, r), t.Field_Field$numeric(e, e, !1, !1, "Conversion", h, h, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes",
|
|
9182
|
+
var e = null, n = "locationId", i = "inventoryAdjustmentId", a = "fromBalance", s = "toBalance", o = "unitPrecision", l = "unitName", D = "unitAbbrev", d = "amountCost", c = "fromBalanceCost", p = "toBalanceCost", y = "trackingAmount", m = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion", E = "customAttributes", C = "defaultCostPerUnit";
|
|
9183
|
+
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$string(e, e, !1, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", 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$string(e, e, !1, !1, !1, "Location ID", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Inventory Adjustment ID", i, i, e, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, !1, "Amount", "amount", "amount", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, !1, "In", "in", e, T.CASE_Wax3e, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, !1, "Out", "out", e, T.CASE_Wax3c, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$numeric(e, e, !1, !1, "From balance", a, a, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", 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, "Unit ID", "unitId", "unitId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit Precision", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "SKU ID", "skuId", "skuId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit abbrev.", D, D, e, r), t.Field_Field$numeric(e, e, !1, !1, "Amount cost", d, d, "case when @amount<0 then -@amount_cost else @amount_cost end", r), t.Field_Field$numeric(e, e, !1, !1, "From balance cost", c, c, e, r), t.Field_Field$numeric(e, e, !1, !1, "To balance cost", p, p, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", r), t.Field_Field$numeric(e, e, !1, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", r), t.Field_Field$numeric(e, e, !1, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", r), t.Field_Field$numeric(e, e, !1, !1, "Tracking amount", y, y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit", m, m, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Tracking unit abbrev.", g, g, e, r), t.Field_Field$numeric(e, e, !1, !1, "Conversion", h, h, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", E, E, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Ref", "ref", "ref", e, r), t.Field_Field$numeric(e, e, !1, !1, "Default unit cost", C, C, e, r), t.Field_Field$bool(e, e, !1, !1, "From closing template", "fromClosingTemplate", e, "((select 1 from closing_draft_skus where closing_adjustment_id = @inventory_adjustment_id and sku_id = @sku_id limit 1) is not null)", r), t.Field_Field$numeric(e, e, !1, !1, "Default cost", "defaultCost", e, "@default_cost_per_unit*@amount", r)], f.JSArray_Field);
|
|
9185
9184
|
},
|
|
9186
9185
|
$signature: 0
|
|
9187
9186
|
}, t.inventoryAdjustmentSkuSchema_closure0.prototype = {
|
|
@@ -9550,8 +9549,8 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
9550
9549
|
$signature: 1
|
|
9551
9550
|
}, t.refundBillSchema_closure.prototype = {
|
|
9552
9551
|
call$1(r) {
|
|
9553
|
-
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "Takeaway", d = "completedAt", c = "integratedOrderId", p = "itemCount", y = "taxTotal", m = "discountTotal", g = "grossTotal", h = "rounding",
|
|
9554
|
-
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", c, c, 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,
|
|
9552
|
+
var e = null, n = "seqNumber", i = "deliveryName", a = "isRefund", s = "isPickup", o = "isInHouseDelivery", l = "isDelivery", D = "Takeaway", d = "completedAt", c = "integratedOrderId", p = "itemCount", y = "taxTotal", m = "discountTotal", g = "grossTotal", h = "rounding", E = "takeawayPrice", C = "thirdPartyExtraCharge", I = "deliveryFee", M = "nettTotal";
|
|
9553
|
+
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", c, c, 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, E, E, 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", I, I, 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)], f.JSArray_Field);
|
|
9555
9554
|
},
|
|
9556
9555
|
$signature: 0
|
|
9557
9556
|
}, t.refundBillSchema_closure0.prototype = {
|
|
@@ -10554,12 +10553,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
10554
10553
|
var e = u.LegacyJavaScriptObject.prototype;
|
|
10555
10554
|
e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
|
|
10556
10555
|
}(), function() {
|
|
10557
|
-
var e =
|
|
10556
|
+
var e = K._static_2, n = K._static_1, i = K._instance_1u, a = K._instance_0u;
|
|
10558
10557
|
e(u, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 49), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 37), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 37), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 49);
|
|
10559
10558
|
var s;
|
|
10560
10559
|
i(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), i(s, "get$setMonth", "setMonth$1", 7), i(s, "get$setDay", "setDay$1", 7), i(s, "get$setDayOfYear", "setDayOfYear$1", 7), i(s, "get$setHour", "setHour$1", 7), i(s, "get$setMinute", "setMinute$1", 7), i(s, "get$setSecond", "setSecond$1", 7), i(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 75), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
|
|
10561
10560
|
}(), function() {
|
|
10562
|
-
var e =
|
|
10561
|
+
var e = K.mixin, n = K.inherit, i = K.inheritMany;
|
|
10563
10562
|
n(t.Object, null), i(t.Object, [t.JS_CONST, u.Interceptor, u.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, t.NativeTypedData]), n(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), i(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), i(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), i(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), i(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), i(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), i(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), i(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), i(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), i(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), i(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), i(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), i(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
|
|
10564
10563
|
}();
|
|
10565
10564
|
var b = {
|
|
@@ -10745,7 +10744,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10745
10744
|
};
|
|
10746
10745
|
}();
|
|
10747
10746
|
(function() {
|
|
10748
|
-
var e =
|
|
10747
|
+
var e = K.makeConstList;
|
|
10749
10748
|
_.Interceptor_methods = u.Interceptor.prototype, _.JSArray_methods = u.JSArray.prototype, _.JSInt_methods = u.JSInt.prototype, _.JSNumber_methods = u.JSNumber.prototype, _.JSString_methods = u.JSString.prototype, _.JavaScriptFunction_methods = u.JavaScriptFunction.prototype, _.JavaScriptObject_methods = u.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = u.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = u.UnknownJavaScriptObject.prototype, _.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), _.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), _.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), _.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), _.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), _.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), _.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), _.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), _.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), _.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), _.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), _.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), _.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), _.AsciiDecoder_false = new t.AsciiDecoder(!1), _.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), _.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), _.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), _.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), _.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), _.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), _.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), _.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), _.C_AsciiCodec = new t.AsciiCodec(), _.C_EmptyIterator = new t.EmptyIterator(), _.C_Endian = new t.Endian(), _.C_Endian0 = new t.Endian(), _.C_JS_CONST = function(i) {
|
|
10750
10749
|
var a = Object.prototype.toString.call(i);
|
|
10751
10750
|
return a.substring(8, a.length - 1);
|
|
@@ -10762,7 +10761,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10762
10761
|
}
|
|
10763
10762
|
}
|
|
10764
10763
|
function s(d, c) {
|
|
10765
|
-
return
|
|
10764
|
+
return w.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
|
|
10766
10765
|
}
|
|
10767
10766
|
function o(d) {
|
|
10768
10767
|
if (typeof window > "u" || typeof window[d] > "u") return null;
|
|
@@ -10847,7 +10846,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10847
10846
|
})(), function() {
|
|
10848
10847
|
S._JS_INTEROP_INTERCEPTOR_TAG = null, S.Primitives__identityHashCodeProperty = null, S.BoundClosure__receiverFieldNameCache = null, S.BoundClosure__interceptorFieldNameCache = null, S.getTagFunction = null, S.alternateTagFunction = null, S.prototypeForTagFunction = null, S.dispatchRecordsForInstanceTags = null, S.interceptorsForUncacheableTags = null, S.initNativeDispatchFlag = null, S._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), S.cachedDateSymbols = null, S.lastDateSymbolLocale = null, S._defaultLocale = null, S.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(f.String, f.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(f.String, t.findType("RegExp")), S.Jiffy____defaultLocale = t._Cell$(), S.VisualizationField__filterDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_5, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9], f.JSArray_DIMENSION_OPTION), S.VisualizationField__fillGapDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_1, _.DIMENSION_OPTION_2, _.DIMENSION_OPTION_3, _.DIMENSION_OPTION_4, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9, _.DIMENSION_OPTION_10, _.DIMENSION_OPTION_11], f.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], f.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
|
|
10849
10848
|
}(), function() {
|
|
10850
|
-
var e =
|
|
10849
|
+
var e = K.lazyFinal, n = K.lazy;
|
|
10851
10850
|
e(S, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => t.getIsolateAffinityTag("_$dart_dartClosure")), e(S, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => t.TypeErrorDecoder_extractPattern(t.TypeErrorDecoder_provokeCallErrorOn({
|
|
10852
10851
|
toString: function() {
|
|
10853
10852
|
return "$receiver$";
|
|
@@ -10884,8 +10883,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10884
10883
|
return i.message;
|
|
10885
10884
|
}
|
|
10886
10885
|
}())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(_.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], f.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? _.C_Endian0 : _.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", _.List_BC_AD, _.List_6xs, _.List_qpm, _.List_qpm, _.List_cIc, _.List_cIc, _.List_h8w, _.List_h8w, _.List_wMy, _.List_wMy, _.List_gc6, _.List_gc6, _.List_3US, _.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", _.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
|
|
10887
|
-
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2),
|
|
10888
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us",
|
|
10886
|
+
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), I = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), O = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), H = t.DeLocale$(_.StartOfWeek_2), j = t.DeLocale$(_.StartOfWeek_2), c0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), a0 = t.ItLocale$(_.StartOfWeek_2), h0 = 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);
|
|
10887
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", I, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", O, "de", v, "de_de", H, "de_at", j, "de_ch", c0, "it", g0, "it_ch", a0, "ar", h0, "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()], f.String, t.findType("Locale"));
|
|
10889
10888
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10890
10889
|
var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
|
|
10891
10890
|
return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], f.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
|
|
@@ -11309,7 +11308,7 @@ from member_store_purchases
|
|
|
11309
11308
|
(function() {
|
|
11310
11309
|
var e = function(l) {
|
|
11311
11310
|
var D = {};
|
|
11312
|
-
return D[l] = 1, Object.keys(
|
|
11311
|
+
return D[l] = 1, Object.keys(K.convertToFastObject(D))[0];
|
|
11313
11312
|
};
|
|
11314
11313
|
b.getIsolateTag = function(l) {
|
|
11315
11314
|
return e("___dart_" + l + b.isolateTag);
|
|
@@ -11322,7 +11321,7 @@ from member_store_purchases
|
|
|
11322
11321
|
}
|
|
11323
11322
|
}
|
|
11324
11323
|
b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
|
|
11325
|
-
})(),
|
|
11324
|
+
})(), K.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), K.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
|
|
11326
11325
|
}(), Function.prototype.call$1 = function(r) {
|
|
11327
11326
|
return this(r);
|
|
11328
11327
|
}, Function.prototype.call$0 = function() {
|
|
@@ -11337,7 +11336,7 @@ from member_store_purchases
|
|
|
11337
11336
|
return this(r, e, n, i, a, s, o, l);
|
|
11338
11337
|
}, Function.prototype.call$1$0 = function() {
|
|
11339
11338
|
return this();
|
|
11340
|
-
},
|
|
11339
|
+
}, _0($), function(r) {
|
|
11341
11340
|
if (typeof document > "u") {
|
|
11342
11341
|
r(null);
|
|
11343
11342
|
return;
|
|
@@ -11360,22 +11359,22 @@ from member_store_purchases
|
|
|
11360
11359
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
11361
11360
|
});
|
|
11362
11361
|
})();
|
|
11363
|
-
})(
|
|
11364
|
-
const
|
|
11365
|
-
var
|
|
11366
|
-
(function(
|
|
11367
|
-
|
|
11362
|
+
})(me);
|
|
11363
|
+
const Ne = me;
|
|
11364
|
+
var ke = Ne, ge = {};
|
|
11365
|
+
(function(A) {
|
|
11366
|
+
A.load = function(F, w) {
|
|
11368
11367
|
var P = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = P ? Object.create(globalThis) : globalThis;
|
|
11369
11368
|
if (B.scheduleImmediate = typeof setImmediate < "u" ? function(J) {
|
|
11370
11369
|
setImmediate(J);
|
|
11371
11370
|
} : function(J) {
|
|
11372
11371
|
setTimeout(J, 0);
|
|
11373
|
-
}, B.exports =
|
|
11374
|
-
var
|
|
11372
|
+
}, B.exports = w || A, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
|
|
11373
|
+
var k = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : ye)("url");
|
|
11375
11374
|
Object.defineProperty(B, "location", {
|
|
11376
11375
|
value: {
|
|
11377
11376
|
get href() {
|
|
11378
|
-
return
|
|
11377
|
+
return k.pathToFileURL ? k.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
11379
11378
|
var J = process.cwd();
|
|
11380
11379
|
return process.platform != "win32" ? J : "/" + J.replace(/\\/g, "/");
|
|
11381
11380
|
}() + "/";
|
|
@@ -11385,48 +11384,48 @@ var Ge = Ye, Te = {};
|
|
|
11385
11384
|
function J() {
|
|
11386
11385
|
try {
|
|
11387
11386
|
throw new Error();
|
|
11388
|
-
} catch (
|
|
11389
|
-
var
|
|
11387
|
+
} catch (r0) {
|
|
11388
|
+
var U = r0.stack, N = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
11390
11389
|
do {
|
|
11391
|
-
var
|
|
11392
|
-
|
|
11393
|
-
} while (
|
|
11394
|
-
return
|
|
11390
|
+
var z = N.exec(U);
|
|
11391
|
+
z != null && (V = z);
|
|
11392
|
+
} while (z != null);
|
|
11393
|
+
return V[1];
|
|
11395
11394
|
}
|
|
11396
11395
|
}
|
|
11397
|
-
var
|
|
11396
|
+
var q = null;
|
|
11398
11397
|
Object.defineProperty(B, "document", {
|
|
11399
11398
|
value: {
|
|
11400
11399
|
get currentScript() {
|
|
11401
|
-
return
|
|
11400
|
+
return q == null && (q = { src: J() }), q;
|
|
11402
11401
|
}
|
|
11403
11402
|
}
|
|
11404
11403
|
});
|
|
11405
|
-
}(), B.dartDeferredLibraryLoader = function(J,
|
|
11404
|
+
}(), B.dartDeferredLibraryLoader = function(J, q, U) {
|
|
11406
11405
|
try {
|
|
11407
|
-
load(J),
|
|
11408
|
-
} catch (
|
|
11409
|
-
|
|
11406
|
+
load(J), q();
|
|
11407
|
+
} catch (N) {
|
|
11408
|
+
U(N);
|
|
11410
11409
|
}
|
|
11411
11410
|
};
|
|
11412
11411
|
}
|
|
11413
11412
|
(function() {
|
|
11414
|
-
function
|
|
11413
|
+
function q(e, n) {
|
|
11415
11414
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11416
11415
|
var s = i[a];
|
|
11417
11416
|
n[s] = e[s];
|
|
11418
11417
|
}
|
|
11419
11418
|
}
|
|
11420
|
-
function
|
|
11419
|
+
function U(e, n) {
|
|
11421
11420
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11422
11421
|
var s = i[a];
|
|
11423
11422
|
n.hasOwnProperty(s) || (n[s] = e[s]);
|
|
11424
11423
|
}
|
|
11425
11424
|
}
|
|
11426
|
-
function
|
|
11425
|
+
function N(e, n) {
|
|
11427
11426
|
Object.assign(n, e);
|
|
11428
11427
|
}
|
|
11429
|
-
var
|
|
11428
|
+
var V = function() {
|
|
11430
11429
|
var e = function() {
|
|
11431
11430
|
};
|
|
11432
11431
|
e.prototype = { p: {} };
|
|
@@ -11445,27 +11444,27 @@ var Ge = Ye, Te = {};
|
|
|
11445
11444
|
}
|
|
11446
11445
|
return !1;
|
|
11447
11446
|
}();
|
|
11448
|
-
function
|
|
11447
|
+
function z(e, n) {
|
|
11449
11448
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
11450
|
-
if (
|
|
11449
|
+
if (V) {
|
|
11451
11450
|
e.prototype.__proto__ = n.prototype;
|
|
11452
11451
|
return;
|
|
11453
11452
|
}
|
|
11454
11453
|
var i = Object.create(n.prototype);
|
|
11455
|
-
|
|
11454
|
+
q(e.prototype, i), e.prototype = i;
|
|
11456
11455
|
}
|
|
11457
11456
|
}
|
|
11458
|
-
function
|
|
11457
|
+
function r0(e, n) {
|
|
11459
11458
|
for (var i = 0; i < n.length; i++)
|
|
11460
|
-
|
|
11459
|
+
z(n[i], e);
|
|
11461
11460
|
}
|
|
11462
|
-
function
|
|
11463
|
-
|
|
11461
|
+
function W(e, n) {
|
|
11462
|
+
N(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11464
11463
|
}
|
|
11465
|
-
function
|
|
11466
|
-
|
|
11464
|
+
function Z(e, n) {
|
|
11465
|
+
U(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11467
11466
|
}
|
|
11468
|
-
function
|
|
11467
|
+
function X(e, n, i, a) {
|
|
11469
11468
|
var s = e;
|
|
11470
11469
|
e[n] = s, e[i] = function() {
|
|
11471
11470
|
e[i] = function() {
|
|
@@ -11482,7 +11481,7 @@ var Ge = Ye, Te = {};
|
|
|
11482
11481
|
return o;
|
|
11483
11482
|
};
|
|
11484
11483
|
}
|
|
11485
|
-
function
|
|
11484
|
+
function u0(e, n, i, a) {
|
|
11486
11485
|
var s = e;
|
|
11487
11486
|
e[n] = s, e[i] = function() {
|
|
11488
11487
|
return e[n] === s && (e[n] = a()), e[i] = function() {
|
|
@@ -11490,7 +11489,7 @@ var Ge = Ye, Te = {};
|
|
|
11490
11489
|
}, e[n];
|
|
11491
11490
|
};
|
|
11492
11491
|
}
|
|
11493
|
-
function
|
|
11492
|
+
function o0(e, n, i, a) {
|
|
11494
11493
|
var s = e;
|
|
11495
11494
|
e[n] = s, e[i] = function() {
|
|
11496
11495
|
if (e[n] === s) {
|
|
@@ -11503,13 +11502,13 @@ var Ge = Ye, Te = {};
|
|
|
11503
11502
|
}, l;
|
|
11504
11503
|
};
|
|
11505
11504
|
}
|
|
11506
|
-
function
|
|
11505
|
+
function s0(e) {
|
|
11507
11506
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
11508
11507
|
}
|
|
11509
|
-
function
|
|
11508
|
+
function _0(e) {
|
|
11510
11509
|
return e;
|
|
11511
11510
|
}
|
|
11512
|
-
function
|
|
11511
|
+
function f0(e) {
|
|
11513
11512
|
for (var n = 0; n < e.length; ++n)
|
|
11514
11513
|
e[n];
|
|
11515
11514
|
}
|
|
@@ -11521,59 +11520,59 @@ var Ge = Ye, Te = {};
|
|
|
11521
11520
|
return i === null && (i = u.closureFromTearOff(n)), new i(this, null);
|
|
11522
11521
|
};
|
|
11523
11522
|
}
|
|
11524
|
-
function
|
|
11523
|
+
function Q(e) {
|
|
11525
11524
|
var n = null;
|
|
11526
11525
|
return function() {
|
|
11527
11526
|
return n === null && (n = u.closureFromTearOff(e).prototype), n;
|
|
11528
11527
|
};
|
|
11529
11528
|
}
|
|
11530
|
-
var
|
|
11531
|
-
function
|
|
11532
|
-
return typeof D == "number" && (D +=
|
|
11529
|
+
var Y = 0;
|
|
11530
|
+
function n0(e, n, i, a, s, o, l, D, d, c) {
|
|
11531
|
+
return typeof D == "number" && (D += Y), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
|
|
11533
11532
|
}
|
|
11534
|
-
function
|
|
11535
|
-
var d =
|
|
11533
|
+
function e0(e, n, i, a, s, o, l, D) {
|
|
11534
|
+
var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c = Q(d);
|
|
11536
11535
|
e[n] = c;
|
|
11537
11536
|
}
|
|
11538
|
-
function
|
|
11537
|
+
function i0(e, n, i, a, s, o, l, D, d, c) {
|
|
11539
11538
|
i = !!i;
|
|
11540
|
-
var p =
|
|
11539
|
+
var p = n0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
|
|
11541
11540
|
e[n] = y;
|
|
11542
11541
|
}
|
|
11543
|
-
function
|
|
11542
|
+
function G(e) {
|
|
11544
11543
|
var n = T.interceptorsByTag;
|
|
11545
11544
|
if (!n) {
|
|
11546
11545
|
T.interceptorsByTag = e;
|
|
11547
11546
|
return;
|
|
11548
11547
|
}
|
|
11549
|
-
|
|
11548
|
+
q(e, n);
|
|
11550
11549
|
}
|
|
11551
|
-
function
|
|
11550
|
+
function t0(e) {
|
|
11552
11551
|
var n = T.leafTags;
|
|
11553
11552
|
if (!n) {
|
|
11554
11553
|
T.leafTags = e;
|
|
11555
11554
|
return;
|
|
11556
11555
|
}
|
|
11557
|
-
|
|
11556
|
+
q(e, n);
|
|
11558
11557
|
}
|
|
11559
|
-
function
|
|
11558
|
+
function l0(e) {
|
|
11560
11559
|
var n = T.types, i = n.length;
|
|
11561
11560
|
return n.push.apply(n, e), i;
|
|
11562
11561
|
}
|
|
11563
|
-
function
|
|
11564
|
-
return
|
|
11562
|
+
function K(e, n) {
|
|
11563
|
+
return q(n, e), e;
|
|
11565
11564
|
}
|
|
11566
11565
|
var t = function() {
|
|
11567
11566
|
var e = function(i, a, s, o, l) {
|
|
11568
11567
|
return function(D, d, c, p) {
|
|
11569
|
-
return
|
|
11568
|
+
return i0(D, d, i, a, s, o, [c], p, l, !1);
|
|
11570
11569
|
};
|
|
11571
11570
|
}, n = function(i, a, s, o) {
|
|
11572
11571
|
return function(l, D, d, c) {
|
|
11573
|
-
return
|
|
11572
|
+
return e0(l, D, i, a, s, [d], c, o);
|
|
11574
11573
|
};
|
|
11575
11574
|
};
|
|
11576
|
-
return { inherit:
|
|
11575
|
+
return { inherit: z, inheritMany: r0, mixin: W, mixinHard: Z, installStaticTearOff: e0, installInstanceTearOff: i0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: s0, lazy: u0, lazyFinal: o0, lazyOld: X, updateHolder: K, convertToFastObject: _0, updateTypes: l0, setOrUpdateInterceptorsByTag: G, setOrUpdateLeafTags: t0 };
|
|
11577
11576
|
}(), u = {
|
|
11578
11577
|
JS_CONST: function() {
|
|
11579
11578
|
},
|
|
@@ -11623,15 +11622,15 @@ var Ge = Ye, Te = {};
|
|
|
11623
11622
|
}
|
|
11624
11623
|
},
|
|
11625
11624
|
Sort__dualPivotQuicksort(e, n, i, a) {
|
|
11626
|
-
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6),
|
|
11627
|
-
if (a.call$2(L,
|
|
11625
|
+
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), M = I - h, x = I + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), O = R.$index(e, M), v = R.$index(e, I), H = R.$index(e, x), j = R.$index(e, C);
|
|
11626
|
+
if (a.call$2(L, O) > 0 && (s = O, O = L, L = s), a.call$2(H, j) > 0 && (s = j, j = H, H = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(v, H) > 0 && (s = H, H = v, v = s), a.call$2(O, j) > 0 && (s = j, j = O, O = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(H, j) > 0 && (s = j, j = H, H = s), R.$indexSet(e, E, L), R.$indexSet(e, I, 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(O, H), 0)) {
|
|
11628
11627
|
for (D = o; D <= l; ++D)
|
|
11629
|
-
if (d = R.$index(e, D), c = a.call$2(d,
|
|
11628
|
+
if (d = R.$index(e, D), c = a.call$2(d, O), c !== 0)
|
|
11630
11629
|
if (c < 0)
|
|
11631
11630
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11632
11631
|
else
|
|
11633
11632
|
for (; ; )
|
|
11634
|
-
if (c = a.call$2(R.$index(e, l),
|
|
11633
|
+
if (c = a.call$2(R.$index(e, l), O), c > 0) {
|
|
11635
11634
|
--l;
|
|
11636
11635
|
continue;
|
|
11637
11636
|
} else if (p = l - 1, c < 0) {
|
|
@@ -11644,37 +11643,37 @@ var Ge = Ye, Te = {};
|
|
|
11644
11643
|
m = !0;
|
|
11645
11644
|
} else {
|
|
11646
11645
|
for (D = o; D <= l; ++D)
|
|
11647
|
-
if (d = R.$index(e, D), a.call$2(d,
|
|
11646
|
+
if (d = R.$index(e, D), a.call$2(d, O) < 0)
|
|
11648
11647
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11649
|
-
else if (a.call$2(d,
|
|
11648
|
+
else if (a.call$2(d, H) > 0)
|
|
11650
11649
|
for (; ; )
|
|
11651
|
-
if (a.call$2(R.$index(e, l),
|
|
11650
|
+
if (a.call$2(R.$index(e, l), H) > 0) {
|
|
11652
11651
|
if (--l, l < D)
|
|
11653
11652
|
break;
|
|
11654
11653
|
continue;
|
|
11655
11654
|
} else {
|
|
11656
|
-
p = l - 1, a.call$2(R.$index(e, l),
|
|
11655
|
+
p = l - 1, a.call$2(R.$index(e, l), O) < 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;
|
|
11657
11656
|
break;
|
|
11658
11657
|
}
|
|
11659
11658
|
m = !1;
|
|
11660
11659
|
}
|
|
11661
|
-
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g,
|
|
11662
|
-
if (o <
|
|
11663
|
-
for (; _.$eq$(a.call$2(R.$index(e, o),
|
|
11660
|
+
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, O), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, H), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
|
|
11661
|
+
if (o < E && l > C) {
|
|
11662
|
+
for (; _.$eq$(a.call$2(R.$index(e, o), O), 0); )
|
|
11664
11663
|
++o;
|
|
11665
|
-
for (; _.$eq$(a.call$2(R.$index(e, l),
|
|
11664
|
+
for (; _.$eq$(a.call$2(R.$index(e, l), H), 0); )
|
|
11666
11665
|
--l;
|
|
11667
11666
|
for (D = o; D <= l; ++D)
|
|
11668
|
-
if (d = R.$index(e, D), a.call$2(d,
|
|
11667
|
+
if (d = R.$index(e, D), a.call$2(d, O) === 0)
|
|
11669
11668
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11670
|
-
else if (a.call$2(d,
|
|
11669
|
+
else if (a.call$2(d, H) === 0)
|
|
11671
11670
|
for (; ; )
|
|
11672
|
-
if (a.call$2(R.$index(e, l),
|
|
11671
|
+
if (a.call$2(R.$index(e, l), H) === 0) {
|
|
11673
11672
|
if (--l, l < D)
|
|
11674
11673
|
break;
|
|
11675
11674
|
continue;
|
|
11676
11675
|
} else {
|
|
11677
|
-
p = l - 1, a.call$2(R.$index(e, l),
|
|
11676
|
+
p = l - 1, a.call$2(R.$index(e, l), O) < 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;
|
|
11678
11677
|
break;
|
|
11679
11678
|
}
|
|
11680
11679
|
u.Sort__doSort(e, o, l, a);
|
|
@@ -11916,34 +11915,34 @@ var Ge = Ye, Te = {};
|
|
|
11916
11915
|
return u.Primitives__generalApplyFunction(e, n, i);
|
|
11917
11916
|
},
|
|
11918
11917
|
Primitives__generalApplyFunction(e, n, i) {
|
|
11919
|
-
var a, s, o, l, D, d, c, p, y, m, g, h,
|
|
11920
|
-
if (C <
|
|
11921
|
-
return u.Primitives_functionNoSuchMethod(e,
|
|
11918
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, E = Array.isArray(n) ? n : u.List_List$of(n, !0, r.dynamic), C = E.length, I = e.$requiredArgCount;
|
|
11919
|
+
if (C < I)
|
|
11920
|
+
return u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11922
11921
|
if (a = e.$defaultValues, s = a == null, o = s ? null : a(), l = _.getInterceptor$(e), D = l["call*"], typeof D == "string" && (D = l[D]), s)
|
|
11923
|
-
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e,
|
|
11922
|
+
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, E, i) : C === I ? D.apply(e, E) : u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11924
11923
|
if (Array.isArray(o))
|
|
11925
|
-
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e,
|
|
11926
|
-
if (C >
|
|
11927
|
-
return u.Primitives_functionNoSuchMethod(e,
|
|
11928
|
-
if (
|
|
11924
|
+
return i != null && i.__js_helper$_length !== 0 ? u.Primitives_functionNoSuchMethod(e, E, i) : (d = I + o.length, C > d ? u.Primitives_functionNoSuchMethod(e, E, null) : (C < d && (c = o.slice(C - I), E === n && (E = u.List_List$of(E, !0, r.dynamic)), $.JSArray_methods.addAll$1(E, c)), D.apply(e, E)));
|
|
11925
|
+
if (C > I)
|
|
11926
|
+
return u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11927
|
+
if (E === n && (E = u.List_List$of(E, !0, r.dynamic)), p = Object.keys(o), i == null)
|
|
11929
11928
|
for (s = p.length, y = 0; y < p.length; p.length === s || (0, u.throwConcurrentModificationError)(p), ++y) {
|
|
11930
11929
|
if (m = o[p[y]], $.C__Required === m)
|
|
11931
|
-
return u.Primitives_functionNoSuchMethod(e,
|
|
11932
|
-
$.JSArray_methods.add$1(
|
|
11930
|
+
return u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11931
|
+
$.JSArray_methods.add$1(E, m);
|
|
11933
11932
|
}
|
|
11934
11933
|
else {
|
|
11935
11934
|
for (s = p.length, g = 0, y = 0; y < p.length; p.length === s || (0, u.throwConcurrentModificationError)(p), ++y)
|
|
11936
11935
|
if (h = p[y], i.containsKey$1(h))
|
|
11937
|
-
++g, $.JSArray_methods.add$1(
|
|
11936
|
+
++g, $.JSArray_methods.add$1(E, i.$index(0, h));
|
|
11938
11937
|
else {
|
|
11939
11938
|
if (m = o[h], $.C__Required === m)
|
|
11940
|
-
return u.Primitives_functionNoSuchMethod(e,
|
|
11941
|
-
$.JSArray_methods.add$1(
|
|
11939
|
+
return u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11940
|
+
$.JSArray_methods.add$1(E, m);
|
|
11942
11941
|
}
|
|
11943
11942
|
if (g !== i.__js_helper$_length)
|
|
11944
|
-
return u.Primitives_functionNoSuchMethod(e,
|
|
11943
|
+
return u.Primitives_functionNoSuchMethod(e, E, i);
|
|
11945
11944
|
}
|
|
11946
|
-
return D.apply(e,
|
|
11945
|
+
return D.apply(e, E);
|
|
11947
11946
|
},
|
|
11948
11947
|
diagnoseIndexError(e, n) {
|
|
11949
11948
|
var i, a = "index";
|
|
@@ -12002,24 +12001,24 @@ var Ge = Ye, Te = {};
|
|
|
12002
12001
|
return r.Error._is(n) && n.$thrownJsError == null && (n.$thrownJsError = e), n;
|
|
12003
12002
|
},
|
|
12004
12003
|
_unwrapNonDartException(e) {
|
|
12005
|
-
var n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
12004
|
+
var n, i, a, s, o, l, D, d, c, p, y, m, g, h, E = null;
|
|
12006
12005
|
if (!("message" in e))
|
|
12007
12006
|
return e;
|
|
12008
12007
|
if (n = e.message, "number" in e && typeof e.number == "number" && (i = e.number, a = i & 65535, ($.JSInt_methods._shrOtherPositive$1(i, 16) & 8191) === 10))
|
|
12009
12008
|
switch (a) {
|
|
12010
12009
|
case 438:
|
|
12011
|
-
return u.saveStackTrace(e, u.JsNoSuchMethodError$(u.S(n) + " (Error " + a + ")",
|
|
12010
|
+
return u.saveStackTrace(e, u.JsNoSuchMethodError$(u.S(n) + " (Error " + a + ")", E));
|
|
12012
12011
|
case 445:
|
|
12013
12012
|
case 5007:
|
|
12014
|
-
return s = u.S(n), u.saveStackTrace(e, new u.NullError(s + " (Error " + a + ")",
|
|
12013
|
+
return s = u.S(n), u.saveStackTrace(e, new u.NullError(s + " (Error " + a + ")", E));
|
|
12015
12014
|
}
|
|
12016
|
-
return e instanceof TypeError ? (o = b.$get$TypeErrorDecoder_noSuchMethodPattern(), l = b.$get$TypeErrorDecoder_notClosurePattern(), D = b.$get$TypeErrorDecoder_nullCallPattern(), d = b.$get$TypeErrorDecoder_nullLiteralCallPattern(), c = b.$get$TypeErrorDecoder_undefinedCallPattern(), p = b.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), y = b.$get$TypeErrorDecoder_nullPropertyPattern(), b.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), m = b.$get$TypeErrorDecoder_undefinedPropertyPattern(), g = b.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), h = o.matchTypeError$1(n), h != null ? u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h)) : (h = l.matchTypeError$1(n), h != null ? (h.method = "call", u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h))) : (h = D.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = c.matchTypeError$1(n), h == null ? (h = p.matchTypeError$1(n), h == null ? (h = y.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = m.matchTypeError$1(n), h == null ? (h = g.matchTypeError$1(n), s = h != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? u.saveStackTrace(e, new u.NullError(n, h == null ?
|
|
12015
|
+
return e instanceof TypeError ? (o = b.$get$TypeErrorDecoder_noSuchMethodPattern(), l = b.$get$TypeErrorDecoder_notClosurePattern(), D = b.$get$TypeErrorDecoder_nullCallPattern(), d = b.$get$TypeErrorDecoder_nullLiteralCallPattern(), c = b.$get$TypeErrorDecoder_undefinedCallPattern(), p = b.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), y = b.$get$TypeErrorDecoder_nullPropertyPattern(), b.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), m = b.$get$TypeErrorDecoder_undefinedPropertyPattern(), g = b.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), h = o.matchTypeError$1(n), h != null ? u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h)) : (h = l.matchTypeError$1(n), h != null ? (h.method = "call", u.saveStackTrace(e, u.JsNoSuchMethodError$(n, h))) : (h = D.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = c.matchTypeError$1(n), h == null ? (h = p.matchTypeError$1(n), h == null ? (h = y.matchTypeError$1(n), h == null ? (h = d.matchTypeError$1(n), h == null ? (h = m.matchTypeError$1(n), h == null ? (h = g.matchTypeError$1(n), s = h != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? u.saveStackTrace(e, new u.NullError(n, h == null ? E : h.method)) : u.saveStackTrace(e, new u.UnknownJsTypeError(typeof n == "string" ? n : ""))))) : e instanceof RangeError ? typeof n == "string" && n.indexOf("call stack") !== -1 ? new u.StackOverflowError() : (n = function(C) {
|
|
12017
12016
|
try {
|
|
12018
12017
|
return String(C);
|
|
12019
12018
|
} catch {
|
|
12020
12019
|
}
|
|
12021
12020
|
return null;
|
|
12022
|
-
}(e), u.saveStackTrace(e, new u.ArgumentError(!1,
|
|
12021
|
+
}(e), u.saveStackTrace(e, new u.ArgumentError(!1, E, E, typeof n == "string" ? n.replace(/^RangeError:\s*/, "") : n))) : typeof InternalError == "function" && e instanceof InternalError && typeof n == "string" && n === "too much recursion" ? new u.StackOverflowError() : e;
|
|
12023
12022
|
},
|
|
12024
12023
|
objectHashCode(e) {
|
|
12025
12024
|
return e == null || typeof e != "object" ? _.get$hashCode$(e) : u.Primitives_objectHashCode(e);
|
|
@@ -12031,13 +12030,13 @@ var Ge = Ye, Te = {};
|
|
|
12031
12030
|
return n;
|
|
12032
12031
|
},
|
|
12033
12032
|
Closure_fromTearOff(e) {
|
|
12034
|
-
var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA,
|
|
12033
|
+
var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, E = e.aI, C = e.fs, I = e.cs, M = C[0], x = I[0], R = y[M], L = e.fT;
|
|
12035
12034
|
for (L.toString, n = Object.create(m ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, m ? i = function() {
|
|
12036
12035
|
this.$initialize();
|
|
12037
|
-
} : i = function(v,
|
|
12038
|
-
this.$initialize(v,
|
|
12036
|
+
} : i = function(v, H) {
|
|
12037
|
+
this.$initialize(v, H);
|
|
12039
12038
|
}, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !m, a ? s = u.Closure_forwardCallTo(M, R, g, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, m, g), n[x] = s, o = s, l = 1; l < C.length; ++l)
|
|
12040
|
-
D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p =
|
|
12039
|
+
D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = I[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, g, h)), n[p] = D), l === E && (o = D);
|
|
12041
12040
|
return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
12042
12041
|
},
|
|
12043
12042
|
Closure__computeSignatureFunctionNewRti(e, n, i) {
|
|
@@ -12484,7 +12483,7 @@ var Ge = Ye, Te = {};
|
|
|
12484
12483
|
return u._Universe_eval(T.typeUniverse, e, !1);
|
|
12485
12484
|
},
|
|
12486
12485
|
_substitute(e, n, i, a) {
|
|
12487
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
12486
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R = n._kind;
|
|
12488
12487
|
switch (R) {
|
|
12489
12488
|
case 5:
|
|
12490
12489
|
case 1:
|
|
@@ -12503,9 +12502,9 @@ var Ge = Ye, Te = {};
|
|
|
12503
12502
|
case 10:
|
|
12504
12503
|
return d = n._primary, c = u._substitute(e, d, i, a), p = n._rest, y = u._substituteArray(e, p, i, a), c === d && y === p ? n : u._Universe__lookupBindingRti(e, c, y);
|
|
12505
12504
|
case 12:
|
|
12506
|
-
return m = n._primary, g = u._substitute(e, m, i, a), h = n._rest,
|
|
12505
|
+
return m = n._primary, g = u._substitute(e, m, i, a), h = n._rest, E = u._substituteFunctionParameters(e, h, i, a), g === m && E === h ? n : u._Universe__lookupFunctionRti(e, g, E);
|
|
12507
12506
|
case 13:
|
|
12508
|
-
return C = n._rest, a += C.length,
|
|
12507
|
+
return C = n._rest, a += C.length, I = u._substituteArray(e, C, i, a), d = n._primary, c = u._substitute(e, d, i, a), I === C && c === d ? n : u._Universe__lookupGenericFunctionRti(e, c, I, !0);
|
|
12509
12508
|
case 14:
|
|
12510
12509
|
return M = n._primary, M < a || (x = i[M - a], x == null) ? n : x;
|
|
12511
12510
|
default:
|
|
@@ -12771,28 +12770,28 @@ var Ge = Ye, Te = {};
|
|
|
12771
12770
|
return o + "})";
|
|
12772
12771
|
},
|
|
12773
12772
|
_functionRtiToString(e, n, i) {
|
|
12774
|
-
var a, s, o, l, D, d, c, p, y, m, g, h,
|
|
12773
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H = ", ";
|
|
12775
12774
|
if (i != null) {
|
|
12776
12775
|
for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
|
|
12777
12776
|
n.push("T" + (o + l));
|
|
12778
|
-
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p =
|
|
12777
|
+
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = H)
|
|
12779
12778
|
c = $.JSString_methods.$add(c + p, n[n.length - 1 - l]), y = i[l], m = y._kind, m === 2 || m === 3 || m === 4 || m === 5 || y === D ? g = !0 : y !== d ? g = !1 : g = !0, g || (c += " extends " + u._rtiToString(y, n));
|
|
12780
12779
|
c += ">";
|
|
12781
12780
|
} else
|
|
12782
12781
|
c = "", s = null;
|
|
12783
|
-
for (D = e._primary, h = e._rest,
|
|
12784
|
-
|
|
12782
|
+
for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, I = h._optionalPositional, M = I.length, x = h._named, R = x.length, L = u._rtiToString(D, n), O = "", v = "", l = 0; l < C; ++l, v = H)
|
|
12783
|
+
O += v + u._rtiToString(E[l], n);
|
|
12785
12784
|
if (M > 0) {
|
|
12786
|
-
for (
|
|
12787
|
-
|
|
12788
|
-
|
|
12785
|
+
for (O += v + "[", v = "", l = 0; l < M; ++l, v = H)
|
|
12786
|
+
O += v + u._rtiToString(I[l], n);
|
|
12787
|
+
O += "]";
|
|
12789
12788
|
}
|
|
12790
12789
|
if (R > 0) {
|
|
12791
|
-
for (
|
|
12792
|
-
|
|
12793
|
-
|
|
12790
|
+
for (O += v + "{", v = "", l = 0; l < R; l += 3, v = H)
|
|
12791
|
+
O += v, x[l + 1] && (O += "required "), O += u._rtiToString(x[l + 2], n) + " " + x[l];
|
|
12792
|
+
O += "}";
|
|
12794
12793
|
}
|
|
12795
|
-
return s != null && (n.toString, n.length = s), c + "(" +
|
|
12794
|
+
return s != null && (n.toString, n.length = s), c + "(" + O + ") => " + L;
|
|
12796
12795
|
},
|
|
12797
12796
|
_rtiToString(e, n) {
|
|
12798
12797
|
var i, a, s, o, l, D, d = e._kind;
|
|
@@ -12912,8 +12911,8 @@ var Ge = Ye, Te = {};
|
|
|
12912
12911
|
return l ?? (a = new u.Rti(null, null), a._kind = 11, a._primary = n, a._rest = i, a._canonicalRecipe = o, s = u._Universe__installTypeTests(e, a), e.eC.set(o, s), s);
|
|
12913
12912
|
},
|
|
12914
12913
|
_Universe__lookupFunctionRti(e, n, i) {
|
|
12915
|
-
var a, s, o, l, D, d = n._canonicalRecipe, c = i._requiredPositional, p = c.length, y = i._optionalPositional, m = y.length, g = i._named, h = g.length,
|
|
12916
|
-
return m > 0 && (a = p > 0 ? "," : "",
|
|
12914
|
+
var a, s, o, l, D, d = n._canonicalRecipe, c = i._requiredPositional, p = c.length, y = i._optionalPositional, m = y.length, g = i._named, h = g.length, E = "(" + u._Universe__canonicalRecipeJoin(c);
|
|
12915
|
+
return m > 0 && (a = p > 0 ? "," : "", E += a + "[" + u._Universe__canonicalRecipeJoin(y) + "]"), h > 0 && (a = p > 0 ? "," : "", E += a + "{" + u._Universe__canonicalRecipeJoinNamed(g) + "}"), s = d + (E + ")"), o = e.eC.get(s), o ?? (l = new u.Rti(null, null), l._kind = 12, l._primary = n, l._rest = i, l._canonicalRecipe = s, D = u._Universe__installTypeTests(e, l), e.eC.set(s, D), D);
|
|
12917
12916
|
},
|
|
12918
12917
|
_Universe__lookupGenericFunctionRti(e, n, i, a) {
|
|
12919
12918
|
var s, o = n._canonicalRecipe + ("<" + u._Universe__canonicalRecipeJoin(i) + ">"), l = e.eC.get(o);
|
|
@@ -13150,35 +13149,35 @@ var Ge = Ye, Te = {};
|
|
|
13150
13149
|
return d === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? d !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && d === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
|
|
13151
13150
|
},
|
|
13152
13151
|
_isFunctionSubtype(e, n, i, a, s) {
|
|
13153
|
-
var o, l, D, d, c, p, y, m, g, h,
|
|
13154
|
-
if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length,
|
|
13152
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j, c0;
|
|
13153
|
+
if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, E = g.length, c + h < p + E))
|
|
13155
13154
|
return !1;
|
|
13156
13155
|
for (C = 0; C < c; ++C)
|
|
13157
|
-
if (
|
|
13156
|
+
if (I = D[C], !u._isSubtype(e, d[C], s, I, i))
|
|
13158
13157
|
return !1;
|
|
13159
13158
|
for (C = 0; C < y; ++C)
|
|
13160
|
-
if (
|
|
13159
|
+
if (I = m[C], !u._isSubtype(e, d[c + C], s, I, i))
|
|
13161
13160
|
return !1;
|
|
13162
|
-
for (C = 0; C <
|
|
13163
|
-
if (
|
|
13161
|
+
for (C = 0; C < E; ++C)
|
|
13162
|
+
if (I = m[y + C], !u._isSubtype(e, g[C], s, I, i))
|
|
13164
13163
|
return !1;
|
|
13165
|
-
for (M = o._named, x = l._named, R = M.length, L = x.length,
|
|
13166
|
-
for (
|
|
13167
|
-
if (
|
|
13164
|
+
for (M = o._named, x = l._named, R = M.length, L = x.length, O = 0, v = 0; v < L; v += 3)
|
|
13165
|
+
for (H = x[v]; ; ) {
|
|
13166
|
+
if (O >= R || (j = M[O], O += 3, H < j))
|
|
13168
13167
|
return !1;
|
|
13169
|
-
if (
|
|
13170
|
-
if (
|
|
13168
|
+
if (c0 = M[O - 2], j < H) {
|
|
13169
|
+
if (c0)
|
|
13171
13170
|
return !1;
|
|
13172
13171
|
continue;
|
|
13173
13172
|
}
|
|
13174
|
-
if (
|
|
13173
|
+
if (I = x[v + 1], c0 && !I || (I = M[O - 1], !u._isSubtype(e, x[v + 2], s, I, i)))
|
|
13175
13174
|
return !1;
|
|
13176
13175
|
break;
|
|
13177
13176
|
}
|
|
13178
|
-
for (;
|
|
13179
|
-
if (M[
|
|
13177
|
+
for (; O < R; ) {
|
|
13178
|
+
if (M[O + 1])
|
|
13180
13179
|
return !1;
|
|
13181
|
-
|
|
13180
|
+
O += 3;
|
|
13182
13181
|
}
|
|
13183
13182
|
return !0;
|
|
13184
13183
|
},
|
|
@@ -13608,11 +13607,11 @@ var Ge = Ye, Te = {};
|
|
|
13608
13607
|
return new u.DateTime(Date.now(), !1);
|
|
13609
13608
|
},
|
|
13610
13609
|
DateTime_parse(e) {
|
|
13611
|
-
var n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
13612
|
-
if (
|
|
13613
|
-
if (n = new u.DateTime_parse_parseIntOrZero(), i =
|
|
13610
|
+
var n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I = b.$get$DateTime__parseFormat().firstMatch$1(e);
|
|
13611
|
+
if (I != null) {
|
|
13612
|
+
if (n = new u.DateTime_parse_parseIntOrZero(), i = I.__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]), c = 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)), E = !0) : E = !1, C = u.Primitives_valueFromDecomposedDate(s, o, l, D, d, c, y + $.JSNumber_methods.round$0(p % 1e3 / 1e3), E), C == null)
|
|
13614
13613
|
throw u.wrapException(u.FormatException$("Time out of range", e, null));
|
|
13615
|
-
return u.DateTime$_withValue(C,
|
|
13614
|
+
return u.DateTime$_withValue(C, E);
|
|
13616
13615
|
} else
|
|
13617
13616
|
throw u.wrapException(u.FormatException$("Invalid date format", e, null));
|
|
13618
13617
|
},
|
|
@@ -13870,9 +13869,9 @@ var Ge = Ye, Te = {};
|
|
|
13870
13869
|
var l = this;
|
|
13871
13870
|
l.digest = n, l._extended = i, l._hash_sink$_sink = a, l._currentChunk = s, l._lengthInBytes = 0, l._pendingData = o, l._isClosed = !1;
|
|
13872
13871
|
},
|
|
13873
|
-
DateSymbols: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
13872
|
+
DateSymbols: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I) {
|
|
13874
13873
|
var M = this;
|
|
13875
|
-
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 = c, M.WEEKDAYS = p, M.STANDALONEWEEKDAYS = y, M.SHORTWEEKDAYS = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS =
|
|
13874
|
+
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 = c, M.WEEKDAYS = p, M.STANDALONEWEEKDAYS = y, M.SHORTWEEKDAYS = m, M.STANDALONESHORTWEEKDAYS = g, M.STANDALONENARROWWEEKDAYS = h, M.SHORTQUARTERS = E, M.QUARTERS = C, M.AMPMS = I;
|
|
13876
13875
|
},
|
|
13877
13876
|
DateBuilder: function(n, i) {
|
|
13878
13877
|
var a = this;
|
|
@@ -14483,8 +14482,8 @@ var Ge = Ye, Te = {};
|
|
|
14483
14482
|
var m = this;
|
|
14484
14483
|
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 = c, m.periodType = p, m.timezone = y;
|
|
14485
14484
|
},
|
|
14486
|
-
TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
14487
|
-
return new u.TableDatasourceConfigModel(n, D,
|
|
14485
|
+
TableDatasourceConfigModel$(e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x) {
|
|
14486
|
+
return new u.TableDatasourceConfigModel(n, D, I, m, g, E, o, a, h, e, d, C, i, p, s, M, c, l, y, x);
|
|
14488
14487
|
},
|
|
14489
14488
|
TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
|
|
14490
14489
|
var n, i, a, s, o, l, D, d, c, p = "showGrandTotal", y = u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), m = e.$index(0, "rollup");
|
|
@@ -14528,9 +14527,9 @@ var Ge = Ye, Te = {};
|
|
|
14528
14527
|
DataSourceRowColumnConfig_columnIds_closure1: function(n) {
|
|
14529
14528
|
this.$this = n;
|
|
14530
14529
|
},
|
|
14531
|
-
TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
14530
|
+
TableDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R) {
|
|
14532
14531
|
var L = this;
|
|
14533
|
-
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 = c, L._columnIds = p, L._joinDatasources = y, L.schemaNames = m, L.dimensions = g, L.metrics = h, L.filters =
|
|
14532
|
+
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 = c, L._columnIds = p, L._joinDatasources = y, L.schemaNames = m, L.dimensions = g, L.metrics = h, L.filters = E, L.sorts = C, L.limit = I, L.isComparable = M, L.periodType = x, L.timezone = R;
|
|
14534
14533
|
},
|
|
14535
14534
|
TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
|
|
14536
14535
|
this.$this = n;
|
|
@@ -14581,8 +14580,8 @@ var Ge = Ye, Te = {};
|
|
|
14581
14580
|
return d == null && (d = !1), n = e.$index(0, "showLabel"), n == null && (n = !1), i = e.$index(0, "drillDimension"), e.$index(0, "isBlend"), a = e.$index(0, "joinDatasources"), a == null && (a = []), a = u.List_List$from(a, r.Map_String_dynamic), s = u._arrayInstanceType(a)._eval$1("MappedListIterable<1,JoinDatasourceConfig>"), u.List_List$of(new u.MappedListIterable(a, new u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure(l), s), !0, s._eval$1("ListIterable.E")), new u.BaseXYDatasourceConfigModel(n, i, D, d, e.$index(0, "isCumulative"), l.schemaNames, l.dimensions, l.metrics, l.filters, l.sorts, l.limit, l.isComparable, l.periodType, l.timezone);
|
|
14582
14581
|
},
|
|
14583
14582
|
BaseXYDatasourceConfigModel: function(n, i, a, s, o, l, D, d, c, p, y, m, g, h) {
|
|
14584
|
-
var
|
|
14585
|
-
|
|
14583
|
+
var E = this;
|
|
14584
|
+
E.showLabel = n, E._xy_datasource_config_model$_drillDimension = i, E.breakdownDimension = a, E.isTransposed = s, E.isCumulative = o, E.schemaNames = l, E.dimensions = D, E.metrics = d, E.filters = c, E.sorts = p, E.limit = y, E.isComparable = m, E.periodType = g, E.timezone = h;
|
|
14586
14585
|
},
|
|
14587
14586
|
BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure: function(n) {
|
|
14588
14587
|
this.baseConfig = n;
|
|
@@ -14614,32 +14613,32 @@ var Ge = Ye, Te = {};
|
|
|
14614
14613
|
return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
|
|
14615
14614
|
},
|
|
14616
14615
|
formatBaseXYChartData(e, n, i, a, s) {
|
|
14617
|
-
var o, l, D, d, c, p, y, m, g, h,
|
|
14616
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H, j, c0, g0, a0, h0, b0, M0, R0, T0, I0, x0, F0, J0 = null;
|
|
14618
14617
|
if (i.length === 0)
|
|
14619
|
-
return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ?
|
|
14620
|
-
for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length,
|
|
14621
|
-
|
|
14622
|
-
for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o),
|
|
14623
|
-
|
|
14618
|
+
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));
|
|
14619
|
+
for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
|
|
14620
|
+
I = p[E], l.$indexSet(0, I.id, I.nullable);
|
|
14621
|
+
for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), E = 0; E < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++E)
|
|
14622
|
+
I = p[E], D.$indexSet(0, I.id, I.label);
|
|
14624
14623
|
if (M = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
|
|
14625
14624
|
for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
|
|
14626
14625
|
C.$indexSet(0, d[R].id, R);
|
|
14627
|
-
for (M.addAll$1(0, D), L = p.length,
|
|
14628
|
-
|
|
14626
|
+
for (M.addAll$1(0, D), L = p.length, E = 0; E < p.length; p.length === L || (0, u.throwConcurrentModificationError)(p), ++E)
|
|
14627
|
+
O = p[E].id, x.$indexSet(0, O, O);
|
|
14629
14628
|
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")));
|
|
14630
14629
|
} else if (c.length > 1) {
|
|
14631
14630
|
for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), R = 0; R < d.length; ++R)
|
|
14632
14631
|
C.$indexSet(0, d[R].id, R);
|
|
14633
14632
|
C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, M, x), y = C.call$1(y), m.length !== 0 && (m = C.call$1(m));
|
|
14634
14633
|
}
|
|
14635
|
-
for (C = r.JSArray_String, v = u._setArrayType([], C),
|
|
14636
|
-
|
|
14637
|
-
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(
|
|
14638
|
-
for (
|
|
14639
|
-
|
|
14640
|
-
g0.push(new u.XYDatasetModel(
|
|
14634
|
+
for (C = r.JSArray_String, v = u._setArrayType([], C), H = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
|
|
14635
|
+
j = y[E], L = _.getInterceptor$asx(j), v.push(_.toString$0$(L.$index(j, 0))), H.push(_.toString$0$(L.$index(j, 1)));
|
|
14636
|
+
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(H, o), c0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = c0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === o || (0, u.throwConcurrentModificationError)(c0), ++E) {
|
|
14637
|
+
for (a0 = c0[E], h0 = u._setArrayType([], L), b0 = u._setArrayType([], L), M0 = x.$index(0, a0), O = l.$index(0, M0 ?? a0), R0 = O === !0, O = M.$index(0, a0), T0 = O ?? D.$index(0, a0), T0 == null && (T0 = a0), O = v.length, I0 = 0; I0 < v.length; v.length === O || (0, u.throwConcurrentModificationError)(v), ++I0)
|
|
14638
|
+
x0 = v[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, a0)), h0.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, a0)), b0.push(u._parseMetricValue(F0 == null ? J0 : u.ListExtension_elementAtOrNull(F0, 2), R0)));
|
|
14639
|
+
g0.push(new u.XYDatasetModel(T0, !1, h0)), b0.length !== 0 && g0.push(new u.XYDatasetModel(T0, !0, b0));
|
|
14641
14640
|
}
|
|
14642
|
-
return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ?
|
|
14641
|
+
return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? J0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, g0, new u.DateComparison(o, l == null ? J0 : l.dateRange));
|
|
14643
14642
|
},
|
|
14644
14643
|
_formatRows_closure: function(n, i) {
|
|
14645
14644
|
this.response = n, this.timezone = i;
|
|
@@ -14706,14 +14705,14 @@ var Ge = Ye, Te = {};
|
|
|
14706
14705
|
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")));
|
|
14707
14706
|
},
|
|
14708
14707
|
formatCircularChartData(e, n, i, a) {
|
|
14709
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
14708
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M = null;
|
|
14710
14709
|
if (n.length === 0)
|
|
14711
14710
|
return s = u._setArrayType([], r.JSArray_String), new u.CircularDataModel(u._setArrayType([], r.JSArray_CircularDatasetModel), s, new u.DateComparison(M, M));
|
|
14712
14711
|
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")), c = u.compare(new u.ComparisonData(d, l), new u.ComparisonData(d, o)), l = c.comparison, o = c.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)
|
|
14713
14712
|
p.push(_.toString$0$(_.$index$asx(o[m], 0)));
|
|
14714
14713
|
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)
|
|
14715
|
-
h = p[m],
|
|
14716
|
-
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,
|
|
14714
|
+
h = p[m], E = u.IterableExtension_firstWhereOrNull(o, new u.formatCircularChartData_closure0(h)), C = E == null ? M : u.ListExtension_elementAtOrNull(E, 1), C == null && (C = 0), l.length !== 0 ? (E = u.IterableExtension_firstWhereOrNull(l, new u.formatCircularChartData_closure1(h)), I = E == null ? M : u.ListExtension_elementAtOrNull(E, 1), I == null && (I = 0)) : I = M, g.push(new u.CircularDatasetModel(h, u.num_parse(C), I));
|
|
14715
|
+
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, E = u.ListExtension_elementAtOrNull(n, 1), new u.CircularDataModel(g, s, new u.DateComparison(y, E == null ? M : E.dateRange));
|
|
14717
14716
|
},
|
|
14718
14717
|
_formatRows_closure0: function(n, i) {
|
|
14719
14718
|
this.response = n, this.timezone = i;
|
|
@@ -14742,14 +14741,14 @@ var Ge = Ye, Te = {};
|
|
|
14742
14741
|
return new u.RowInfo(o, _.map$1$1$ax(i, new u._getRowInfo_closure(e, n, a, o), s).join$0(0));
|
|
14743
14742
|
},
|
|
14744
14743
|
compare(e, n) {
|
|
14745
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
14746
|
-
for (
|
|
14747
|
-
if (h = d[g],
|
|
14748
|
-
for (C =
|
|
14744
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O = {};
|
|
14745
|
+
for (O.comparisonDateIndex = O.mainDateIndex = null, i = O.comparisonIndexesCompleted = O.mainIndexesCompleted = !1, a = n.columns, s = r.JSArray_int, o = u.IterableExtension_foldIndexed(a, u._setArrayType([], s), new u.compare_closure(O)), l = u.IterableExtension_foldIndexed(e.columns, u._setArrayType([], s), new u.compare_closure0(O)), s = r.JSArray_String, O.dates = u._setArrayType([], s), (O.mainDateIndex != null ? O.comparisonDateIndex != null : i) && (i = r.String, i = u.ListExtensions_mapIndexed($.JSArray_methods.fold$2(n.rows, u._setArrayType([], s), new u.compare_closure1(O)), new u.compare_closure2($.JSArray_methods.fold$2(e.rows, u._setArrayType([], s), new u.compare_closure3(O))), i, i), O.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(O, e, l)), i = r.JSArray_List_dynamic, s = u._setArrayType([], i), i = u._setArrayType([], i), d = n.rows, c = d.length, p = r.JSArray_dynamic, y = _.getInterceptor$asx(o), m = r.dynamic, g = 0; g < d.length; d.length === c || (0, u.throwConcurrentModificationError)(d), ++g) {
|
|
14746
|
+
if (h = d[g], E = u._getRowInfo(a, O.dates, o, h), C = D.$index(0, E.id), I = C == null ? null : _.toList$0$ax(C), I == null) {
|
|
14747
|
+
for (C = E.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)
|
|
14749
14748
|
R[L] = null;
|
|
14750
|
-
$.JSArray_methods.addAll$1(M, R),
|
|
14749
|
+
$.JSArray_methods.addAll$1(M, R), I = M;
|
|
14751
14750
|
}
|
|
14752
|
-
s.push(
|
|
14751
|
+
s.push(E.row), i.push(I);
|
|
14753
14752
|
}
|
|
14754
14753
|
return new u.ComparisonResult(s, i);
|
|
14755
14754
|
},
|
|
@@ -14791,21 +14790,21 @@ var Ge = Ye, Te = {};
|
|
|
14791
14790
|
this._box_0 = n, this.comparison = i, this.comparisonIndexes = a;
|
|
14792
14791
|
},
|
|
14793
14792
|
_formatSparkline(e, n, i, a) {
|
|
14794
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
14793
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C;
|
|
14795
14794
|
if (n == null)
|
|
14796
14795
|
return null;
|
|
14797
14796
|
for (s = n.rows, o = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(s, new u._formatSparkline_closure(n, i, a), o), !0, o._eval$1("ListIterable.E")), o = u._arrayInstanceType(l)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(l, new u._formatSparkline_closure0(n, $.JSArray_methods.indexWhere$1(n.columns, new u._formatSparkline_closure1())), o), !0, o._eval$1("ListIterable.E")), o = r.JSArray_String, D = u._setArrayType([], o), d = u._setArrayType([], o), s = l.length, c = 0; c < l.length; l.length === s || (0, u.throwConcurrentModificationError)(l), ++c)
|
|
14798
14797
|
p = l[c], o = _.getInterceptor$asx(p), D.push(_.toString$0$(o.$index(p, 0))), d.push(_.toString$0$(o.$index(p, 1)));
|
|
14799
14798
|
for (s = r.String, o = u.LinkedHashSet_LinkedHashSet$from(D, s), D = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), s = u.LinkedHashSet_LinkedHashSet$from(d, s), d = u.List_List$of(s, !0, u._instanceType(s)._precomputed1), y = u._setArrayType([], r.JSArray_XYDatasetModel), s = d.length, o = r.JSArray_num, c = 0; c < d.length; d.length === s || (0, u.throwConcurrentModificationError)(d), ++c) {
|
|
14800
|
-
for (m = d[c], g = u._setArrayType([], o), h = D.length,
|
|
14801
|
-
C = u.IterableExtension_firstWhereOrNull(l, new u._formatSparkline_closure2(D[
|
|
14799
|
+
for (m = d[c], g = u._setArrayType([], o), h = D.length, E = 0; E < D.length; D.length === h || (0, u.throwConcurrentModificationError)(D), ++E)
|
|
14800
|
+
C = u.IterableExtension_firstWhereOrNull(l, new u._formatSparkline_closure2(D[E], m)), C = C == null ? null : u.ListExtension_elementAtOrNull(C, 2), g.push(C ?? 0);
|
|
14802
14801
|
y.push(new u.XYDatasetModel(m, !1, g));
|
|
14803
14802
|
}
|
|
14804
14803
|
return new u.SparklineDataModel($.SparklineType_0, D, u.accumulate(e, y));
|
|
14805
14804
|
},
|
|
14806
14805
|
formatScoreCardChartData(e, n, i, a) {
|
|
14807
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
14808
|
-
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, c = 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,
|
|
14806
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M = null;
|
|
14807
|
+
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, c = 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, E = o.timeFormatter, C = o.formatter, l = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, E, a, l), I = y == null, (I ? M : y.value.$index(0, o.id)) != null ? s = u.DataTypeExtension_toDisplay(s, g, i, h, m, C, !1, E, a, I ? M : y.value.$index(0, o.id)) : s = M, new u.ScorecardDataModel(M, l, s, u._formatSparkline(e, c, i, a)));
|
|
14809
14808
|
},
|
|
14810
14809
|
_formatSparkline_closure: function(n, i, a) {
|
|
14811
14810
|
this.response = n, this.country = i, this.timezone = a;
|
|
@@ -14828,14 +14827,14 @@ var Ge = Ye, Te = {};
|
|
|
14828
14827
|
formatScoreCardChartData_closure: function() {
|
|
14829
14828
|
},
|
|
14830
14829
|
_formatTableResponse(e, n, i, a) {
|
|
14831
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
14832
|
-
for (
|
|
14830
|
+
var s, o, l, D, d, c, p, y, m, g, h, E = null, C = i.columns, I = u._arrayInstanceType(C), M = I._eval$1("WhereIterable<1>"), x = r.String;
|
|
14831
|
+
for (I = u.List_List$of(new u.MappedIterable(new u.WhereIterable(C, new u._formatTableResponse_closure(e), M), new u._formatTableResponse_closure0(), I._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(I, 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)
|
|
14833
14832
|
c = D[d], M.$indexSet(0, c.id, c);
|
|
14834
|
-
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),
|
|
14833
|
+
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), I = y.length, d = 0; d < y.length; y.length === I || (0, u.throwConcurrentModificationError)(y), ++d)
|
|
14835
14834
|
C.push(y[d]);
|
|
14836
|
-
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",
|
|
14835
|
+
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", E, E, $.DATA_TYPE_3, E, E, !1, E, E, E, !1)], r.JSArray__Header_dynamic)), C.push(u._setArrayType([new u._Header("_is_rollup", "Rollup", E, E, $.DATA_TYPE_2, E, E, !0, E, E, E, !1)], r.JSArray__Header_dynamic)), I = r.Map_String_dynamic, m = u.LinkedHashMap_LinkedHashMap$_empty(x, I), 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(); )
|
|
14837
14836
|
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"))));
|
|
14838
|
-
return M = m.get$values(m),
|
|
14837
|
+
return M = m.get$values(m), I = u.ListExtensions_mapIndexed(u.List_List$of(M, !0, u._instanceType(M)._eval$1("Iterable.E")), new u._formatTableResponse_closure7(), I, r.TableRowModel), M = u._arrayInstanceType(C)._eval$1("MappedListIterable<1,TableColumnModel>"), new u.TableDataModel(u.List_List$of(I, !0, I.$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")));
|
|
14839
14838
|
},
|
|
14840
14839
|
_formatTableData(e, n, i, a) {
|
|
14841
14840
|
var s, o, l, D, d, c, p, y, m, g, h = {};
|
|
@@ -14846,16 +14845,16 @@ var Ge = Ye, Te = {};
|
|
|
14846
14845
|
return s = h.mainResponse, c = s.rows, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(c, new u._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
|
|
14847
14846
|
},
|
|
14848
14847
|
formatTableChartData(e, n, i, a) {
|
|
14849
|
-
var s, o, l, D, d, c, p, y, m, g, h,
|
|
14848
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O, v, H = {};
|
|
14850
14849
|
if (n.length === 0)
|
|
14851
14850
|
return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
|
|
14852
|
-
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g =
|
|
14853
|
-
M = s[
|
|
14854
|
-
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l),
|
|
14855
|
-
M = s[
|
|
14856
|
-
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s =
|
|
14857
|
-
M =
|
|
14858
|
-
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s =
|
|
14851
|
+
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = H.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), H.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; I < s.length; ++I)
|
|
14852
|
+
M = s[I], C.$indexSet(0, M.key + "_" + M.hide, I);
|
|
14853
|
+
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; s = H.comparison.columns, I < s.length; ++I)
|
|
14854
|
+
M = s[I], x.$indexSet(0, M.key + "_" + M.hide, I);
|
|
14855
|
+
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
|
|
14856
|
+
M = E[L], o = M.key, O = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, O), l == null && (l = -1), D = x.$index(0, O), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
|
|
14857
|
+
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 = H.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(H, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
|
|
14859
14858
|
},
|
|
14860
14859
|
_formatTableResponse_closure: function(n) {
|
|
14861
14860
|
this.config = n;
|
|
@@ -15102,8 +15101,8 @@ var Ge = Ye, Te = {};
|
|
|
15102
15101
|
IterableExtension_mapIndexed$body(e, n, i, a, s) {
|
|
15103
15102
|
return u._makeSyncStarIterable(function() {
|
|
15104
15103
|
var o = e, l = n, D = 0, d = 1, c, p, y, m;
|
|
15105
|
-
return function(h,
|
|
15106
|
-
for (h === 1 && (c =
|
|
15104
|
+
return function(h, E) {
|
|
15105
|
+
for (h === 1 && (c = E, D = d); ; )
|
|
15107
15106
|
switch (D) {
|
|
15108
15107
|
case 0:
|
|
15109
15108
|
p = o.get$iterator(o), y = 0;
|
|
@@ -15251,11 +15250,11 @@ var Ge = Ye, Te = {};
|
|
|
15251
15250
|
}, r.Location);
|
|
15252
15251
|
},
|
|
15253
15252
|
_deserializeLocation(e) {
|
|
15254
|
-
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), c = 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)),
|
|
15253
|
+
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), c = 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)), E = u._setArrayType([], r.JSArray_String), C = u._setArrayType([], r.JSArray_TimeZone), I = r.JSArray_int, M = u._setArrayType([], I), x = u._setArrayType([], I), R = d + c;
|
|
15255
15254
|
for (n = d, i = n; n < R; ++n)
|
|
15256
|
-
e[n] === 0 && (
|
|
15255
|
+
e[n] === 0 && (I = e.buffer, a = e.byteOffset, I = new Uint8Array(I, a + i, n - i), E.push($.C_AsciiCodec.decode$1(I)), i = n + 1);
|
|
15257
15256
|
for (i = p, n = 0; n < y; ++n, i = s)
|
|
15258
|
-
s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1,
|
|
15257
|
+
s = i + 8, C.push(new u.TimeZone(o.getInt32(i, !1) * 1e3, o.getUint8(i + 4) === 1, E[o.getUint8(i + 5)]));
|
|
15259
15258
|
for (i = m, n = 0; n < g; ++n)
|
|
15260
15259
|
M.push($.JSNumber_methods.toInt$0(o.getFloat64(i, !1)) * 1e3), i += 8;
|
|
15261
15260
|
for (n = 0; n < g; ++n)
|
|
@@ -17273,21 +17272,21 @@ Arguments: [` + d + "]";
|
|
|
17273
17272
|
}
|
|
17274
17273
|
}, u.FormatException.prototype = {
|
|
17275
17274
|
toString$0(e) {
|
|
17276
|
-
var n, i, a, s, o, l, D, d, c, p, y, m = this.message, g = m !== "" ? "FormatException: " + m : "FormatException", h = this.offset,
|
|
17277
|
-
if (typeof
|
|
17278
|
-
if (h != null ? n = h < 0 || h >
|
|
17279
|
-
return
|
|
17280
|
-
` +
|
|
17275
|
+
var n, i, a, s, o, l, D, d, c, p, y, m = this.message, g = m !== "" ? "FormatException: " + m : "FormatException", h = this.offset, E = this.source;
|
|
17276
|
+
if (typeof E == "string") {
|
|
17277
|
+
if (h != null ? n = h < 0 || h > E.length : n = !1, n && (h = null), h == null)
|
|
17278
|
+
return E.length > 78 && (E = $.JSString_methods.substring$2(E, 0, 75) + "..."), g + `
|
|
17279
|
+
` + E;
|
|
17281
17280
|
for (i = 1, a = 0, s = !1, o = 0; o < h; ++o)
|
|
17282
|
-
l = $.JSString_methods._codeUnitAt$1(
|
|
17281
|
+
l = $.JSString_methods._codeUnitAt$1(E, o), l === 10 ? ((a !== o || !s) && ++i, a = o + 1, s = !1) : l === 13 && (++i, a = o + 1, s = !0);
|
|
17283
17282
|
for (g = i > 1 ? g + (" (at line " + i + ", character " + (h - a + 1) + `)
|
|
17284
17283
|
`) : g + (" (at character " + (h + 1) + `)
|
|
17285
|
-
`), D =
|
|
17286
|
-
if (l = $.JSString_methods.codeUnitAt$1(
|
|
17284
|
+
`), D = E.length, o = h; o < D; ++o)
|
|
17285
|
+
if (l = $.JSString_methods.codeUnitAt$1(E, o), l === 10 || l === 13) {
|
|
17287
17286
|
D = o;
|
|
17288
17287
|
break;
|
|
17289
17288
|
}
|
|
17290
|
-
return D - a > 78 ? h - a < 75 ? (d = a + 75, c = a, p = "", y = "...") : (D - h < 75 ? (c = D - 75, d = D, y = "") : (c = h - 36, d = h + 36, y = "..."), p = "...") : (d = D, c = a, p = "", y = ""), g + p + $.JSString_methods.substring$2(
|
|
17289
|
+
return D - a > 78 ? h - a < 75 ? (d = a + 75, c = a, p = "", y = "...") : (D - h < 75 ? (c = D - 75, d = D, y = "") : (c = h - 36, d = h + 36, y = "..."), p = "...") : (d = D, c = a, p = "", y = ""), g + p + $.JSString_methods.substring$2(E, c, d) + y + `
|
|
17291
17290
|
` + $.JSString_methods.$mul(" ", h - c + p.length) + `^
|
|
17292
17291
|
`;
|
|
17293
17292
|
} else
|
|
@@ -18296,8 +18295,8 @@ Arguments: [` + d + "]";
|
|
|
18296
18295
|
}
|
|
18297
18296
|
}, u.QueryResponse_fromJson_closure.prototype = {
|
|
18298
18297
|
call$1(e) {
|
|
18299
|
-
var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_eNF, e.$index(0, "schema")), c = 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,
|
|
18300
|
-
return M == null && (M = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(d, c, p, y, m, g, h,
|
|
18298
|
+
var n, i, a = null, s = "aggregationType", o = "optionType", l = "timeFormatter", D = "formatter", d = u.EnumByName_byName($.List_eNF, e.$index(0, "schema")), c = 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, E = e.$index(0, "decimal"), C = e.$index(0, l) != null ? u.EnumByName_byName($.List_YsB, e.$index(0, l)) : a, I = e.$index(0, D) != null ? u.EnumByName_byName($.List_0, e.$index(0, D)) : a, M = e.$index(0, "nullable");
|
|
18299
|
+
return M == null && (M = !1), n = e.$index(0, "hide"), n == null && (n = !1), i = e.$index(0, "dateComparison"), new u.QueryResponseColumn(d, c, p, y, m, g, h, E, C, I, M, n, i ?? !1);
|
|
18301
18300
|
},
|
|
18302
18301
|
$signature: 96
|
|
18303
18302
|
}, u.QueryResponse_fromJson_closure0.prototype = {
|
|
@@ -19101,18 +19100,18 @@ Arguments: [` + d + "]";
|
|
|
19101
19100
|
$signature: 0
|
|
19102
19101
|
}, u._formatTableResponse_closure5.prototype = {
|
|
19103
19102
|
call$2(e, n) {
|
|
19104
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
19103
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R, L, O = null, v = r.JSArray_List_dynamic, H = u._setArrayType([[]], v), j = u._setArrayType([[]], v);
|
|
19105
19104
|
for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < v.length; ++D)
|
|
19106
19105
|
if (d = v[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
|
|
19107
|
-
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c =
|
|
19108
|
-
C =
|
|
19106
|
+
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = H.length, g = y.type, h = y.columnValue, E = 0; E < H.length; H.length === c || (0, u.throwConcurrentModificationError)(H), ++E)
|
|
19107
|
+
C = H[E], m ? (I = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, O, !1, a)), C[D] = I) : (I = g == null ? O : u.DataTypeExtension_toData(g, O), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, O, !1, a)), C[D] = I);
|
|
19109
19108
|
else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
|
|
19110
19109
|
for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
|
|
19111
|
-
R = l[x], u.ListExtension_elementAtOrNull(
|
|
19110
|
+
R = l[x], u.ListExtension_elementAtOrNull(H, x) == null && (H.push(u.List_List$of(H[0], !0, a)), j.push(u.List_List$of(j[0], !0, a))), g ? (h = H[x], I = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, O, !1, a)), h[D] = I, j[x].push(I)) : c && (h = H[x], I = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, O, !1, a)), h[D] = I);
|
|
19112
19111
|
else
|
|
19113
|
-
for (L = 0; L <
|
|
19114
|
-
c =
|
|
19115
|
-
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(
|
|
19112
|
+
for (L = 0; L < H.length; ++L)
|
|
19113
|
+
c = H[L], g = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, O, !1, a)), c[D] = g, j[L].push(i.$index(0, p));
|
|
19114
|
+
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(H, new u._formatTableResponse__closure8(j, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
19116
19115
|
},
|
|
19117
19116
|
$signature: 79
|
|
19118
19117
|
}, u._formatTableResponse__closure4.prototype = {
|
|
@@ -19351,10 +19350,10 @@ Arguments: [` + d + "]";
|
|
|
19351
19350
|
$signature: 99
|
|
19352
19351
|
}, u.formatTableChartData_closure9.prototype = {
|
|
19353
19352
|
call$2(e, n) {
|
|
19354
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h,
|
|
19353
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, I, M, x, R = this, L = [], O = [], v = n.cells, H = _.getInterceptor$asx(v), j = H.get$length(v);
|
|
19355
19354
|
for (i = R.columnMappings, a = i.length, s = R.hasComparison, o = R.country, l = R.timezone, D = e < R.comparisonRowsLength, d = R._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
|
|
19356
|
-
p = i[c], y = p.mainIndex, m = y >= 0 && y <
|
|
19357
|
-
return n.copyWith$2$cells$comparisonCells(L,
|
|
19355
|
+
p = i[c], y = p.mainIndex, m = y >= 0 && y < j ? H.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), I = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < I ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), O.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
|
|
19356
|
+
return n.copyWith$2$cells$comparisonCells(L, O);
|
|
19358
19357
|
},
|
|
19359
19358
|
$signature: 7
|
|
19360
19359
|
}, u.TZDateTime.prototype = {
|
|
@@ -19792,8 +19791,8 @@ Arguments: [` + d + "]";
|
|
|
19792
19791
|
return a.message;
|
|
19793
19792
|
}
|
|
19794
19793
|
}())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
|
|
19795
|
-
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2),
|
|
19796
|
-
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do",
|
|
19794
|
+
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), I = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), O = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), H = u.DeLocale$($.StartOfWeek_2), j = u.DeLocale$($.StartOfWeek_2), c0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), a0 = u.ItLocale$($.StartOfWeek_2), h0 = 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);
|
|
19795
|
+
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", I, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", O, "zh_tw", v, "de", H, "de_de", j, "de_at", c0, "de_ch", g0, "it", a0, "it_ch", h0, "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"));
|
|
19797
19796
|
}), n(b, "_UTC", "$get$_UTC", () => {
|
|
19798
19797
|
var a = r.JSArray_int;
|
|
19799
19798
|
return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -19828,7 +19827,7 @@ Arguments: [` + d + "]";
|
|
|
19828
19827
|
return this(e, n, i);
|
|
19829
19828
|
}, Function.prototype.call$8 = function(e, n, i, a, s, o, l, D) {
|
|
19830
19829
|
return this(e, n, i, a, s, o, l, D);
|
|
19831
|
-
},
|
|
19830
|
+
}, f0(S), function(e) {
|
|
19832
19831
|
if (typeof document > "u") {
|
|
19833
19832
|
e(null);
|
|
19834
19833
|
return;
|
|
@@ -19852,189 +19851,189 @@ Arguments: [` + d + "]";
|
|
|
19852
19851
|
});
|
|
19853
19852
|
})();
|
|
19854
19853
|
};
|
|
19855
|
-
})(
|
|
19856
|
-
const
|
|
19857
|
-
|
|
19858
|
-
var
|
|
19859
|
-
const
|
|
19860
|
-
const
|
|
19854
|
+
})(ge);
|
|
19855
|
+
const he = ge;
|
|
19856
|
+
he.load({});
|
|
19857
|
+
var Ue = he;
|
|
19858
|
+
const ae = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), qe = (() => {
|
|
19859
|
+
const A = new Intl.DateTimeFormat("en-US", { weekday: "short" });
|
|
19861
19860
|
return Array.from(
|
|
19862
19861
|
{ length: 7 },
|
|
19863
|
-
(
|
|
19862
|
+
(F, w) => A.format(new Date(1970, 0, 4 + w)).toLowerCase().slice(0, 3)
|
|
19864
19863
|
);
|
|
19865
19864
|
})();
|
|
19866
|
-
function
|
|
19867
|
-
if (
|
|
19868
|
-
const
|
|
19869
|
-
if (
|
|
19870
|
-
const
|
|
19871
|
-
if (P !== -1 &&
|
|
19865
|
+
function ue(A) {
|
|
19866
|
+
if (A == null || A === "") return null;
|
|
19867
|
+
const F = String(A).trim();
|
|
19868
|
+
if (F === "") return null;
|
|
19869
|
+
const w = F.toLowerCase().slice(0, 3), P = qe.indexOf(w);
|
|
19870
|
+
if (P !== -1 && F.length <= 3)
|
|
19872
19871
|
return { type: "dayName", value: P };
|
|
19873
|
-
const B =
|
|
19872
|
+
const B = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19874
19873
|
if (B) {
|
|
19875
|
-
const [,
|
|
19874
|
+
const [, N, V, z, r0, W, Z = "0"] = B;
|
|
19876
19875
|
return {
|
|
19877
19876
|
type: "fullDateTime",
|
|
19878
19877
|
value: new Date(
|
|
19879
|
-
parseInt(
|
|
19880
|
-
parseInt(
|
|
19881
|
-
parseInt(
|
|
19882
|
-
parseInt(
|
|
19883
|
-
parseInt(
|
|
19884
|
-
parseInt(
|
|
19878
|
+
parseInt(z),
|
|
19879
|
+
parseInt(V) - 1,
|
|
19880
|
+
parseInt(N),
|
|
19881
|
+
parseInt(r0),
|
|
19882
|
+
parseInt(W),
|
|
19883
|
+
parseInt(Z)
|
|
19885
19884
|
).getTime()
|
|
19886
19885
|
};
|
|
19887
19886
|
}
|
|
19888
|
-
const
|
|
19889
|
-
if (
|
|
19890
|
-
const [,
|
|
19887
|
+
const k = F.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
19888
|
+
if (k) {
|
|
19889
|
+
const [, N, V, z] = k;
|
|
19891
19890
|
return {
|
|
19892
19891
|
type: "date",
|
|
19893
|
-
value: new Date(parseInt(
|
|
19892
|
+
value: new Date(parseInt(z), parseInt(V) - 1, parseInt(N)).getTime()
|
|
19894
19893
|
};
|
|
19895
19894
|
}
|
|
19896
|
-
const J =
|
|
19895
|
+
const J = F.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
19897
19896
|
if (J) {
|
|
19898
|
-
const [,
|
|
19897
|
+
const [, N, V, z] = J;
|
|
19899
19898
|
return {
|
|
19900
19899
|
type: "date",
|
|
19901
|
-
value: new Date(parseInt(
|
|
19900
|
+
value: new Date(parseInt(N), parseInt(V) - 1, parseInt(z)).getTime()
|
|
19902
19901
|
};
|
|
19903
19902
|
}
|
|
19904
|
-
const
|
|
19905
|
-
if (
|
|
19906
|
-
const [,
|
|
19903
|
+
const q = F.match(/^(\d{1,2})\/(\d{4})$/);
|
|
19904
|
+
if (q) {
|
|
19905
|
+
const [, N, V] = q;
|
|
19907
19906
|
return {
|
|
19908
19907
|
type: "monthYear",
|
|
19909
|
-
value: new Date(parseInt(
|
|
19908
|
+
value: new Date(parseInt(V), parseInt(N) - 1, 1).getTime()
|
|
19910
19909
|
};
|
|
19911
19910
|
}
|
|
19912
|
-
const
|
|
19913
|
-
if (
|
|
19914
|
-
const [,
|
|
19911
|
+
const U = F.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19912
|
+
if (U) {
|
|
19913
|
+
const [, N, V, z = "0"] = U;
|
|
19915
19914
|
return {
|
|
19916
19915
|
type: "time",
|
|
19917
|
-
value: parseInt(
|
|
19916
|
+
value: parseInt(N) * 3600 + parseInt(V) * 60 + parseInt(z)
|
|
19918
19917
|
};
|
|
19919
19918
|
}
|
|
19920
|
-
return /^\d+$/.test(
|
|
19919
|
+
return /^\d+$/.test(F) ? { type: "number", value: parseInt(F) } : null;
|
|
19921
19920
|
}
|
|
19922
|
-
function
|
|
19923
|
-
const
|
|
19924
|
-
return !
|
|
19921
|
+
function se(A, F) {
|
|
19922
|
+
const w = ue(A), P = ue(F);
|
|
19923
|
+
return !w && !P ? null : w ? P ? (w.type === P.type, w.value - P.value) : -1 : 1;
|
|
19925
19924
|
}
|
|
19926
|
-
function
|
|
19925
|
+
function Qe(A, F) {
|
|
19927
19926
|
var P;
|
|
19928
|
-
const
|
|
19929
|
-
for (let B = 0; B <
|
|
19930
|
-
const
|
|
19931
|
-
|
|
19932
|
-
main:
|
|
19933
|
-
comparison: (P =
|
|
19927
|
+
const w = { isRollup: A.isRollup };
|
|
19928
|
+
for (let B = 0; B < F.length; B++) {
|
|
19929
|
+
const k = F[B].key;
|
|
19930
|
+
k && (w[k] = {
|
|
19931
|
+
main: A.cells[B],
|
|
19932
|
+
comparison: (P = A.comparisonCells) == null ? void 0 : P[B]
|
|
19934
19933
|
});
|
|
19935
19934
|
}
|
|
19936
|
-
return
|
|
19935
|
+
return w;
|
|
19937
19936
|
}
|
|
19938
|
-
function
|
|
19939
|
-
if (
|
|
19940
|
-
const
|
|
19941
|
-
for (const P of
|
|
19942
|
-
return Array.from({ length:
|
|
19937
|
+
function Xe(A, F) {
|
|
19938
|
+
if (A <= 0) return [];
|
|
19939
|
+
const w = {};
|
|
19940
|
+
for (const P of F) w[P.key] = void 0;
|
|
19941
|
+
return Array.from({ length: A }, () => ({ ...w }));
|
|
19943
19942
|
}
|
|
19944
|
-
function
|
|
19945
|
-
var B,
|
|
19946
|
-
if (((B =
|
|
19947
|
-
const P =
|
|
19948
|
-
return P >= 0 ? (
|
|
19943
|
+
function q0(A, F, w) {
|
|
19944
|
+
var B, k;
|
|
19945
|
+
if (((B = A[F]) == null ? void 0 : B.main) !== void 0) return A[F].main;
|
|
19946
|
+
const P = w.findIndex((J) => J.key === F);
|
|
19947
|
+
return P >= 0 ? (k = A.cells) == null ? void 0 : k[P] : void 0;
|
|
19949
19948
|
}
|
|
19950
|
-
function
|
|
19951
|
-
var
|
|
19949
|
+
function Ve(A) {
|
|
19950
|
+
var u0, o0, s0, _0, f0, p0;
|
|
19952
19951
|
const {
|
|
19953
|
-
rows:
|
|
19954
|
-
columns:
|
|
19952
|
+
rows: F = [],
|
|
19953
|
+
columns: w = [],
|
|
19955
19954
|
globalSorts: P = [],
|
|
19956
19955
|
filter: B = null,
|
|
19957
|
-
grandTotalPosition:
|
|
19956
|
+
grandTotalPosition: k = null,
|
|
19958
19957
|
pageSize: J = 0
|
|
19959
|
-
} =
|
|
19960
|
-
let
|
|
19961
|
-
|
|
19962
|
-
let
|
|
19963
|
-
for (const
|
|
19964
|
-
|
|
19965
|
-
const
|
|
19966
|
-
for (const
|
|
19967
|
-
const
|
|
19968
|
-
(
|
|
19969
|
-
),
|
|
19970
|
-
let
|
|
19971
|
-
B !== null && (
|
|
19972
|
-
const
|
|
19973
|
-
for (const
|
|
19974
|
-
const
|
|
19975
|
-
|
|
19958
|
+
} = A;
|
|
19959
|
+
let q = Array.isArray(F) ? [...F] : [];
|
|
19960
|
+
k === "BOTTOM" && ((u0 = q.at(-1)) != null && u0.isRollup) && q.pop(), k === "TOP" && ((o0 = q[0]) != null && o0.isRollup) && q.shift();
|
|
19961
|
+
let U = 0;
|
|
19962
|
+
for (const Q of q)
|
|
19963
|
+
Q.isRollup && U++, Q.groupIndex = U;
|
|
19964
|
+
const N = {};
|
|
19965
|
+
for (const Q of w) N[Q.key] = Q.type === "NUMERIC";
|
|
19966
|
+
const V = P.filter(
|
|
19967
|
+
(Q) => Q.key && w.some((Y) => Y.key === Q.key)
|
|
19968
|
+
), z = V.length > 0;
|
|
19969
|
+
let r0 = F;
|
|
19970
|
+
B !== null && (r0 = r0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((Y) => ((Y == null ? void 0 : Y.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...Qe(Q, w), groupIndex: Q.groupIndex })));
|
|
19971
|
+
const W = {};
|
|
19972
|
+
for (const Q of r0) {
|
|
19973
|
+
const Y = Q.groupIndex;
|
|
19974
|
+
Y !== void 0 && (W[Y] || (W[Y] = [])).push(Q);
|
|
19976
19975
|
}
|
|
19977
|
-
|
|
19978
|
-
const
|
|
19979
|
-
|
|
19980
|
-
for (const { key:
|
|
19981
|
-
const
|
|
19982
|
-
if (
|
|
19983
|
-
const u = Number(
|
|
19984
|
-
if (u !== 0) return u *
|
|
19976
|
+
z && Object.values(W).forEach((Q) => {
|
|
19977
|
+
const Y = Q.filter((e0) => e0.isRollup), n0 = Q.filter((e0) => !e0.isRollup);
|
|
19978
|
+
n0.sort((e0, i0) => {
|
|
19979
|
+
for (const { key: G, type: t0 } of V) {
|
|
19980
|
+
const l0 = t0 === "ASC" ? 1 : -1, K = q0(e0, G, w) ?? "", t = q0(i0, G, w) ?? "";
|
|
19981
|
+
if (N[G]) {
|
|
19982
|
+
const u = Number(K) - Number(t);
|
|
19983
|
+
if (u !== 0) return u * l0;
|
|
19985
19984
|
} else {
|
|
19986
|
-
const u =
|
|
19985
|
+
const u = se(K, t);
|
|
19987
19986
|
if (u !== null && u !== 0)
|
|
19988
|
-
return u *
|
|
19989
|
-
const _ =
|
|
19990
|
-
if (_ !== 0) return _ *
|
|
19987
|
+
return u * l0;
|
|
19988
|
+
const _ = ae.compare(String(K), String(t));
|
|
19989
|
+
if (_ !== 0) return _ * l0;
|
|
19991
19990
|
}
|
|
19992
19991
|
}
|
|
19993
19992
|
return 0;
|
|
19994
|
-
}),
|
|
19993
|
+
}), W[Q[0].groupIndex] = Y.concat(n0);
|
|
19995
19994
|
});
|
|
19996
|
-
let
|
|
19997
|
-
if (
|
|
19998
|
-
const
|
|
19999
|
-
const
|
|
20000
|
-
const
|
|
20001
|
-
return
|
|
19995
|
+
let Z;
|
|
19996
|
+
if (z) {
|
|
19997
|
+
const Q = k === null ? (() => {
|
|
19998
|
+
const e0 = Object.keys(W).find((i0) => {
|
|
19999
|
+
const G = W[i0] || [], t0 = G.some((K) => K.isRollup), l0 = G.some((K) => !K.isRollup);
|
|
20000
|
+
return t0 && !l0;
|
|
20002
20001
|
});
|
|
20003
|
-
return
|
|
20004
|
-
})() : -1,
|
|
20005
|
-
|
|
20006
|
-
if (!
|
|
20007
|
-
if (
|
|
20008
|
-
if (
|
|
20009
|
-
if (
|
|
20002
|
+
return e0 !== void 0 ? Number(e0) : -1;
|
|
20003
|
+
})() : -1, Y = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((_0 = w.find((e0) => N[e0.key])) == null ? void 0 : _0.key), n0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
|
|
20004
|
+
Z = Object.keys(W).map(Number).sort((e0, i0) => {
|
|
20005
|
+
if (!Y) return e0 - i0;
|
|
20006
|
+
if (Q !== -1) {
|
|
20007
|
+
if (e0 === Q) return -1;
|
|
20008
|
+
if (i0 === Q) return 1;
|
|
20010
20009
|
}
|
|
20011
|
-
const
|
|
20012
|
-
if (
|
|
20013
|
-
const t =
|
|
20014
|
-
return t !== null ? t *
|
|
20010
|
+
const G = W[e0].find((u) => u.isRollup), t0 = W[i0].find((u) => u.isRollup), l0 = G ? q0(G, Y, w) ?? "" : "", K = t0 ? q0(t0, Y, w) ?? "" : "";
|
|
20011
|
+
if (N[Y]) return (Number(l0) - Number(K)) * n0;
|
|
20012
|
+
const t = se(l0, K);
|
|
20013
|
+
return t !== null ? t * n0 : ae.compare(String(l0), String(K)) * n0;
|
|
20015
20014
|
});
|
|
20016
20015
|
} else
|
|
20017
|
-
|
|
20018
|
-
const
|
|
20019
|
-
for (const
|
|
20020
|
-
for (const { groupIndex:
|
|
20021
|
-
|
|
20016
|
+
Z = Object.keys(W).map(Number).sort((Q, Y) => Q - Y);
|
|
20017
|
+
const X = [];
|
|
20018
|
+
for (const Q of Z)
|
|
20019
|
+
for (const { groupIndex: Y, ...n0 } of W[Q])
|
|
20020
|
+
X.push(n0);
|
|
20022
20021
|
if (J > 0) {
|
|
20023
|
-
const
|
|
20024
|
-
let
|
|
20025
|
-
|
|
20022
|
+
const Q = X.length % J;
|
|
20023
|
+
let Y = 0;
|
|
20024
|
+
Q > 0 ? Y = J - Q : X.length === 0 && (Y = J), Y > 0 && X.push(...Xe(Y, w));
|
|
20026
20025
|
}
|
|
20027
|
-
return { data:
|
|
20026
|
+
return { data: X };
|
|
20028
20027
|
}
|
|
20029
|
-
var
|
|
20030
|
-
const
|
|
20031
|
-
var
|
|
20032
|
-
...
|
|
20033
|
-
...
|
|
20034
|
-
...
|
|
20035
|
-
},
|
|
20036
|
-
function
|
|
20037
|
-
switch (
|
|
20028
|
+
var Ye = { processTableData: Ve };
|
|
20029
|
+
const Ge = ke, ze = Ue, We = Ye;
|
|
20030
|
+
var ee = {
|
|
20031
|
+
...We,
|
|
20032
|
+
...ze,
|
|
20033
|
+
...Ge
|
|
20034
|
+
}, U0 = /* @__PURE__ */ ((A) => (A.DateTime = "DATE_TIME", A.Hour = "HOUR", A.Day = "DAY", A.Week = "WEEK", A.Month = "MONTH", A.TimeOfDay = "TIME_OF_DAY", A.HourOfDay = "HOUR_OF_DAY", A.DayOfWeek = "DAY_OF_WEEK", A.DayOfMonth = "DAY_OF_MONTH", A.MonthOfYear = "MONTH_OF_YEAR", A.Year = "YEAR", A.YearMonthDay = "YEAR_MONTH_DAY", A))(U0 || {}), je = /* @__PURE__ */ ((A) => (A.Asc = "ASC", A.Desc = "DESC", A))(je || {}), te = /* @__PURE__ */ ((A) => (A.Equal = "EQUAL", A.NotEqual = "NOT_EQUAL", A.GreaterThan = "GREATER_THAN", A.LessThan = "LESS_THAN", A.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", A.LessThanOrEqual = "LESS_THAN_OR_EQUAL", A.Between = "BETWEEN", A.Like = "LIKE", A.NotLike = "NOT_LIKE", A.And = "AND", A.Or = "OR", A))(te || {}), Ke = /* @__PURE__ */ ((A) => (A.String = "STRING", A.Timestamp = "TIMESTAMP", A.Bool = "BOOL", A.Numeric = "NUMERIC", A))(Ke || {}), Ze = /* @__PURE__ */ ((A) => (A.MTD = "MTD", A))(Ze || {}), et = /* @__PURE__ */ ((A) => (A.Scorecard = "SCORECARD", A.Spacer = "SPACER", A.Table = "TABLE", A.BarChart = "BARCHART", A.StackBarChart = "STACKBARCHART", A.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", A.LineChart = "LINECHART", A.StackLineChart = "STACKLINECHART", A.Circular = "CIRCULAR", A))(et || {}), tt = /* @__PURE__ */ ((A) => (A.EXCEL = "excel", A.PDF = "pdf", A.PDFFULLSIZE = "pdfFullSize", A.PDFRECEIPT = "pdfReceipt", A))(tt || {}), rt = /* @__PURE__ */ ((A) => (A.PORTRAIT = "portrait", A.LANDSCAPE = "landscape", A))(rt || {});
|
|
20035
|
+
function Gt(A) {
|
|
20036
|
+
switch (A) {
|
|
20038
20037
|
case "excel":
|
|
20039
20038
|
return "Excel";
|
|
20040
20039
|
case "pdf":
|
|
@@ -20047,8 +20046,8 @@ function ir(E) {
|
|
|
20047
20046
|
return "Unknown";
|
|
20048
20047
|
}
|
|
20049
20048
|
}
|
|
20050
|
-
function
|
|
20051
|
-
switch (
|
|
20049
|
+
function zt(A) {
|
|
20050
|
+
switch (A) {
|
|
20052
20051
|
case "landscape":
|
|
20053
20052
|
return "report.common.landscape";
|
|
20054
20053
|
case "portrait":
|
|
@@ -20057,112 +20056,112 @@ function ar(E) {
|
|
|
20057
20056
|
return "report.input.unknown";
|
|
20058
20057
|
}
|
|
20059
20058
|
}
|
|
20060
|
-
const
|
|
20061
|
-
const { businessId:
|
|
20062
|
-
if (
|
|
20063
|
-
const
|
|
20059
|
+
const w0 = "/report-settings", nt = async () => {
|
|
20060
|
+
const { businessId: A } = d0(y0());
|
|
20061
|
+
if (A) {
|
|
20062
|
+
const F = {
|
|
20064
20063
|
fetchType: m0.Get,
|
|
20065
|
-
url: `${
|
|
20064
|
+
url: `${w0}/${A.value}/reports`
|
|
20066
20065
|
};
|
|
20067
|
-
return E0.fetch(
|
|
20066
|
+
return E0.fetch(F);
|
|
20068
20067
|
} else
|
|
20069
20068
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20070
|
-
},
|
|
20071
|
-
const { businessId:
|
|
20069
|
+
}, it = (A) => {
|
|
20070
|
+
const { businessId: F } = d0(y0()), w = {
|
|
20072
20071
|
fetchType: m0.Put,
|
|
20073
|
-
url: `${
|
|
20074
|
-
data:
|
|
20072
|
+
url: `${w0}/${F.value}/reports/${A.id}`,
|
|
20073
|
+
data: A
|
|
20075
20074
|
};
|
|
20076
|
-
return E0.fetch(
|
|
20077
|
-
},
|
|
20078
|
-
const { businessId:
|
|
20075
|
+
return E0.fetch(w);
|
|
20076
|
+
}, at = (A) => {
|
|
20077
|
+
const { businessId: F } = d0(y0()), w = {
|
|
20079
20078
|
fetchType: m0.Post,
|
|
20080
|
-
url: `${
|
|
20081
|
-
data:
|
|
20079
|
+
url: `${w0}/${F.value}/reports`,
|
|
20080
|
+
data: A
|
|
20082
20081
|
};
|
|
20083
|
-
return E0.fetch(
|
|
20084
|
-
},
|
|
20085
|
-
const { businessId:
|
|
20082
|
+
return E0.fetch(w);
|
|
20083
|
+
}, ut = (A) => {
|
|
20084
|
+
const { businessId: F } = d0(y0()), w = {
|
|
20086
20085
|
fetchType: m0.Delete,
|
|
20087
|
-
url: `${
|
|
20086
|
+
url: `${w0}/${F.value}/reports/${A.id}`
|
|
20088
20087
|
};
|
|
20089
|
-
return E0.fetch(
|
|
20090
|
-
},
|
|
20091
|
-
const { businessId:
|
|
20088
|
+
return E0.fetch(w);
|
|
20089
|
+
}, st = (A) => {
|
|
20090
|
+
const { businessId: F } = d0(y0()), w = {
|
|
20092
20091
|
fetchType: m0.Put,
|
|
20093
|
-
url: `${
|
|
20094
|
-
data: { defaultReport:
|
|
20092
|
+
url: `${w0}/${F.value}/reports/default`,
|
|
20093
|
+
data: { defaultReport: A }
|
|
20095
20094
|
};
|
|
20096
|
-
return E0.fetch(
|
|
20097
|
-
},
|
|
20098
|
-
const { businessId:
|
|
20095
|
+
return E0.fetch(w);
|
|
20096
|
+
}, Wt = (A, F) => {
|
|
20097
|
+
const { businessId: w } = d0(y0()), P = {
|
|
20099
20098
|
fetchType: m0.Put,
|
|
20100
|
-
url: `${
|
|
20101
|
-
data: { isSupportPos:
|
|
20099
|
+
url: `${w0}/${w.value}/reports/${A}/pos-support`,
|
|
20100
|
+
data: { isSupportPos: F }
|
|
20102
20101
|
};
|
|
20103
20102
|
return E0.fetch(P);
|
|
20104
|
-
},
|
|
20105
|
-
const { businessId:
|
|
20106
|
-
if (
|
|
20107
|
-
const
|
|
20103
|
+
}, ot = async () => {
|
|
20104
|
+
const { businessId: A } = d0(y0());
|
|
20105
|
+
if (A) {
|
|
20106
|
+
const F = {
|
|
20108
20107
|
fetchType: m0.Get,
|
|
20109
|
-
url: `${
|
|
20108
|
+
url: `${w0}/${A.value}/overview-report`
|
|
20110
20109
|
};
|
|
20111
|
-
return E0.fetch(
|
|
20110
|
+
return E0.fetch(F);
|
|
20112
20111
|
} else
|
|
20113
20112
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20114
|
-
},
|
|
20115
|
-
const { businessId:
|
|
20116
|
-
if (
|
|
20117
|
-
const
|
|
20113
|
+
}, lt = async () => {
|
|
20114
|
+
const { businessId: A } = d0(y0());
|
|
20115
|
+
if (A) {
|
|
20116
|
+
const F = {
|
|
20118
20117
|
fetchType: m0.Get,
|
|
20119
|
-
url: `${
|
|
20118
|
+
url: `${w0}/${A.value}/config`
|
|
20120
20119
|
};
|
|
20121
|
-
return E0.fetch(
|
|
20120
|
+
return E0.fetch(F);
|
|
20122
20121
|
} else
|
|
20123
20122
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20124
|
-
},
|
|
20125
|
-
const { businessId:
|
|
20126
|
-
if (
|
|
20127
|
-
const
|
|
20123
|
+
}, _t = "/report-settings", Dt = async () => {
|
|
20124
|
+
const { businessId: A } = d0(y0());
|
|
20125
|
+
if (A) {
|
|
20126
|
+
const F = {
|
|
20128
20127
|
fetchType: m0.Get,
|
|
20129
|
-
url: `${
|
|
20128
|
+
url: `${_t}/${A.value}/categories`
|
|
20130
20129
|
};
|
|
20131
|
-
return E0.fetch(
|
|
20130
|
+
return E0.fetch(F);
|
|
20132
20131
|
} else
|
|
20133
20132
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20134
20133
|
};
|
|
20135
|
-
function
|
|
20136
|
-
const
|
|
20137
|
-
return
|
|
20134
|
+
function z0(A, F = {}) {
|
|
20135
|
+
const w = localStorage.getItem(A);
|
|
20136
|
+
return w === null && (F == null ? void 0 : F.fallback) !== void 0 ? F.fallback : w === null ? null : F.format ? F.format(w) : w;
|
|
20138
20137
|
}
|
|
20139
|
-
const
|
|
20140
|
-
get:
|
|
20141
|
-
getJson: (
|
|
20138
|
+
const N0 = {
|
|
20139
|
+
get: z0,
|
|
20140
|
+
getJson: (A) => z0(A, {
|
|
20142
20141
|
fallback: {},
|
|
20143
|
-
format: (
|
|
20142
|
+
format: (F) => JSON.parse(F)
|
|
20144
20143
|
}),
|
|
20145
|
-
getNumber: (
|
|
20144
|
+
getNumber: (A) => z0(A, {
|
|
20146
20145
|
fallback: null,
|
|
20147
|
-
format: (
|
|
20146
|
+
format: (F) => Number(F)
|
|
20148
20147
|
}),
|
|
20149
20148
|
set: localStorage.setItem,
|
|
20150
|
-
setJson: (
|
|
20151
|
-
localStorage.setItem(
|
|
20149
|
+
setJson: (A, F) => {
|
|
20150
|
+
localStorage.setItem(A, JSON.stringify(F));
|
|
20152
20151
|
}
|
|
20153
|
-
},
|
|
20154
|
-
const
|
|
20152
|
+
}, dt = () => {
|
|
20153
|
+
const A = {
|
|
20155
20154
|
fetchType: m0.Get,
|
|
20156
20155
|
url: "/schemas"
|
|
20157
20156
|
};
|
|
20158
|
-
return E0.fetch(
|
|
20159
|
-
},
|
|
20160
|
-
const
|
|
20161
|
-
async function
|
|
20157
|
+
return E0.fetch(A);
|
|
20158
|
+
}, ct = "mf-reportschema-store", ft = Y0(ct, () => {
|
|
20159
|
+
const A = D0([]), F = $e();
|
|
20160
|
+
async function w() {
|
|
20162
20161
|
try {
|
|
20163
|
-
|
|
20162
|
+
A.value = await dt();
|
|
20164
20163
|
} catch (P) {
|
|
20165
|
-
console.log(P),
|
|
20164
|
+
console.log(P), F.open({
|
|
20166
20165
|
title: "Get Schema Error",
|
|
20167
20166
|
message: "Internal Server Error",
|
|
20168
20167
|
type: "error"
|
|
@@ -20170,148 +20169,79 @@ const U0 = {
|
|
|
20170
20169
|
}
|
|
20171
20170
|
}
|
|
20172
20171
|
return {
|
|
20173
|
-
schemas:
|
|
20174
|
-
getSchema:
|
|
20172
|
+
schemas: A,
|
|
20173
|
+
getSchema: w
|
|
20175
20174
|
};
|
|
20176
20175
|
});
|
|
20177
|
-
async function
|
|
20178
|
-
const { businessId:
|
|
20179
|
-
if (!
|
|
20176
|
+
async function pt(A, F) {
|
|
20177
|
+
const { businessId: w } = d0(y0());
|
|
20178
|
+
if (!w.value)
|
|
20180
20179
|
return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
|
|
20181
|
-
if (!
|
|
20180
|
+
if (!A || !F)
|
|
20182
20181
|
return Promise.reject(new Error("Failed to grant permission. Permission key or report label is not defined"));
|
|
20183
20182
|
const P = {
|
|
20184
20183
|
fetchType: m0.Post,
|
|
20185
|
-
url: `/businesses/${
|
|
20186
|
-
data: { permissionKey:
|
|
20184
|
+
url: `/businesses/${w.value}/my-permissions/report-manage`,
|
|
20185
|
+
data: { permissionKey: A, label: F }
|
|
20187
20186
|
};
|
|
20188
|
-
await
|
|
20189
|
-
}
|
|
20190
|
-
function Et(E) {
|
|
20191
|
-
const I = E.permissionKey || E.id;
|
|
20192
|
-
return I ? `business::report::reports::${I}` : null;
|
|
20187
|
+
await Ie.fetch(P);
|
|
20193
20188
|
}
|
|
20194
|
-
|
|
20195
|
-
const {
|
|
20196
|
-
const k = I.flags.find(
|
|
20197
|
-
(K) => K.key === ee.report_portal_permission_th_control_temp
|
|
20198
|
-
);
|
|
20199
|
-
return O.value.toUpperCase() === "TH" && (k == null ? void 0 : k.value) === !0;
|
|
20200
|
-
}), J = A0(() => {
|
|
20201
|
-
if (N.value)
|
|
20202
|
-
return !0;
|
|
20203
|
-
const k = I.flags.find(
|
|
20204
|
-
(K) => K.key === ee.report_portal_permission
|
|
20205
|
-
);
|
|
20206
|
-
return (k == null ? void 0 : k.value) === !0;
|
|
20207
|
-
}), Q = A0(
|
|
20208
|
-
() => {
|
|
20209
|
-
var k, K;
|
|
20210
|
-
return Array.isArray((k = E.value) == null ? void 0 : k.permissions) ? (K = E.value) == null ? void 0 : K.permissions : [];
|
|
20211
|
-
}
|
|
20212
|
-
);
|
|
20213
|
-
function q(k, K) {
|
|
20214
|
-
if (!J.value) return !0;
|
|
20215
|
-
const a0 = Et(k);
|
|
20216
|
-
return !a0 || !Q.value.length ? !1 : K.some((n0) => {
|
|
20217
|
-
const l0 = {
|
|
20218
|
-
action: n0,
|
|
20219
|
-
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
20220
|
-
subject: a0,
|
|
20221
|
-
coverSubject: k != null && k.isDefault ? P : B
|
|
20222
|
-
};
|
|
20223
|
-
return te([l0], Q.value).granted;
|
|
20224
|
-
});
|
|
20225
|
-
}
|
|
20226
|
-
function H(k) {
|
|
20227
|
-
return q(k, [b0.update, b0.manage]);
|
|
20228
|
-
}
|
|
20229
|
-
function Y(k) {
|
|
20230
|
-
return q(k, [b0.read, b0.manage]);
|
|
20231
|
-
}
|
|
20232
|
-
function X(k) {
|
|
20233
|
-
return q(k, [b0.delete, b0.manage]);
|
|
20234
|
-
}
|
|
20235
|
-
function t0(k) {
|
|
20236
|
-
return q(k, [b0.manage]);
|
|
20237
|
-
}
|
|
20238
|
-
function G(k) {
|
|
20239
|
-
return q(k, [b0.create, b0.manage]);
|
|
20240
|
-
}
|
|
20241
|
-
const j = A0(() => {
|
|
20242
|
-
if (!J.value) return !0;
|
|
20243
|
-
const k = J0.report_createReport;
|
|
20244
|
-
return Q.value.length ? [b0.create, b0.manage].some((K) => te([{
|
|
20245
|
-
action: K,
|
|
20246
|
-
subject: k
|
|
20247
|
-
}], Q.value).granted) : !1;
|
|
20248
|
-
});
|
|
20249
|
-
return {
|
|
20250
|
-
isReportPermissionEnabled: J,
|
|
20251
|
-
canRead: Y,
|
|
20252
|
-
canUpdate: H,
|
|
20253
|
-
canDelete: X,
|
|
20254
|
-
canManage: t0,
|
|
20255
|
-
canDuplicate: G,
|
|
20256
|
-
canCreateReport: j
|
|
20257
|
-
};
|
|
20258
|
-
}
|
|
20259
|
-
const Tt = "mf-reportreport-store", se = X0(Tt, () => {
|
|
20260
|
-
const { business: E, globalFilters: I } = d0(z0()), { schemas: O } = d0(St()), { flags: P } = d0(ye()), B = _0([]), N = _0([]), J = _0(0), Q = Se(), q = A0(() => B.value.filter((f) => f.editable)), H = A0(() => B.value.filter((f) => !f.editable)), Y = _0(!1), X = _0(""), t0 = _0(), G = _0(), j = A0(() => {
|
|
20189
|
+
const $t = "mf-reportreport-store", re = Y0($t, () => {
|
|
20190
|
+
const { business: A, globalFilters: F } = d0(V0()), { schemas: w } = d0(ft()), { flags: P } = d0(Fe()), B = D0([]), k = D0([]), J = D0(0), q = $e(), U = H0(() => B.value.filter((f) => f.editable)), N = H0(() => B.value.filter((f) => !f.editable)), V = D0(!1), z = D0(""), r0 = D0(), W = D0(), Z = H0(() => {
|
|
20261
20191
|
const f = P.value.find(
|
|
20262
|
-
(r) => r.key ===
|
|
20192
|
+
(r) => r.key === Me.report_portal_integration_custom_report
|
|
20263
20193
|
);
|
|
20264
20194
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
20265
|
-
}), { isReportPermissionEnabled:
|
|
20266
|
-
async function
|
|
20267
|
-
return
|
|
20195
|
+
}), { isReportPermissionEnabled: X } = Re(), u0 = H0(() => Z.value === null ? !0 : Z.value - U.value.length > 0);
|
|
20196
|
+
async function o0() {
|
|
20197
|
+
return W.value = await ot(), W.value;
|
|
20268
20198
|
}
|
|
20269
|
-
async function
|
|
20199
|
+
async function s0() {
|
|
20270
20200
|
var f;
|
|
20271
20201
|
try {
|
|
20272
|
-
B.value = await
|
|
20202
|
+
B.value = await nt(), k.value = await Dt(), B.value.find((e) => e.id === z.value) || (z.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
|
|
20273
20203
|
} catch (r) {
|
|
20274
|
-
console.log(r),
|
|
20204
|
+
console.log(r), q.open({
|
|
20275
20205
|
title: "Report Fetch Error",
|
|
20276
20206
|
message: "Internal Server Error",
|
|
20277
20207
|
type: "error"
|
|
20278
20208
|
});
|
|
20279
20209
|
}
|
|
20280
20210
|
}
|
|
20281
|
-
const
|
|
20282
|
-
() => B.value.find((f) => f.id ===
|
|
20211
|
+
const _0 = H0(
|
|
20212
|
+
() => B.value.find((f) => f.id === z.value)
|
|
20283
20213
|
);
|
|
20284
|
-
function
|
|
20214
|
+
function f0(f) {
|
|
20285
20215
|
var e;
|
|
20286
|
-
const r = (e =
|
|
20216
|
+
const r = (e = w.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
|
|
20287
20217
|
return r == null ? void 0 : r.type;
|
|
20288
20218
|
}
|
|
20289
|
-
|
|
20219
|
+
Z0(
|
|
20290
20220
|
() => {
|
|
20291
20221
|
var f;
|
|
20292
|
-
return (f =
|
|
20222
|
+
return (f = _0.value) == null ? void 0 : f.globalFilters;
|
|
20293
20223
|
},
|
|
20294
20224
|
(f) => {
|
|
20295
|
-
|
|
20225
|
+
F.value = (f ?? []).map((r) => ({
|
|
20296
20226
|
...r,
|
|
20297
20227
|
values: Array.isArray(r.values) ? [...r.values] : [],
|
|
20298
|
-
type:
|
|
20228
|
+
type: f0(r)
|
|
20299
20229
|
}));
|
|
20300
20230
|
},
|
|
20301
20231
|
{ deep: !0 }
|
|
20302
20232
|
);
|
|
20303
|
-
const p0 =
|
|
20304
|
-
async function
|
|
20305
|
-
const r =
|
|
20233
|
+
const p0 = D0(), Q = D0(0), Y = D0(), n0 = D0(null), e0 = D0(null), i0 = D0(!1), G = D0(!1), t0 = D0(!1);
|
|
20234
|
+
async function l0(f) {
|
|
20235
|
+
const r = U.value.findIndex((n) => n.id === f.id);
|
|
20306
20236
|
let e;
|
|
20307
20237
|
if (r >= 0)
|
|
20308
|
-
e = await
|
|
20238
|
+
e = await it(f);
|
|
20309
20239
|
else {
|
|
20310
|
-
e = await
|
|
20240
|
+
e = await at(f);
|
|
20311
20241
|
try {
|
|
20312
|
-
if (
|
|
20313
|
-
await
|
|
20314
|
-
const n =
|
|
20242
|
+
if (X.value) {
|
|
20243
|
+
await pt(e.id, e.name);
|
|
20244
|
+
const n = Pe(), { businessId: i } = d0(y0());
|
|
20315
20245
|
await n.fetchUserPermissions(void 0, i.value);
|
|
20316
20246
|
}
|
|
20317
20247
|
} catch (n) {
|
|
@@ -20321,22 +20251,22 @@ const Tt = "mf-reportreport-store", se = X0(Tt, () => {
|
|
|
20321
20251
|
});
|
|
20322
20252
|
}
|
|
20323
20253
|
}
|
|
20324
|
-
return u(e.id), await
|
|
20254
|
+
return u(e.id), await s0(), e;
|
|
20325
20255
|
}
|
|
20326
|
-
async function
|
|
20327
|
-
await
|
|
20256
|
+
async function K(f) {
|
|
20257
|
+
await ut(f), await s0();
|
|
20328
20258
|
}
|
|
20329
20259
|
async function t(f) {
|
|
20330
|
-
await
|
|
20260
|
+
await st(f), await o0();
|
|
20331
20261
|
}
|
|
20332
20262
|
function u(f) {
|
|
20333
|
-
|
|
20263
|
+
z.value = f;
|
|
20334
20264
|
}
|
|
20335
|
-
const _ =
|
|
20265
|
+
const _ = D0(null);
|
|
20336
20266
|
function $() {
|
|
20337
20267
|
var f;
|
|
20338
|
-
if ((f =
|
|
20339
|
-
const r =
|
|
20268
|
+
if ((f = A.value) != null && f._id) {
|
|
20269
|
+
const r = N0.getJson("pinReport")[A.value._id];
|
|
20340
20270
|
if ((r == null ? void 0 : r.length) > 0) {
|
|
20341
20271
|
_.value = r;
|
|
20342
20272
|
return;
|
|
@@ -20346,645 +20276,553 @@ const Tt = "mf-reportreport-store", se = X0(Tt, () => {
|
|
|
20346
20276
|
}
|
|
20347
20277
|
function S(f) {
|
|
20348
20278
|
var r;
|
|
20349
|
-
if (
|
|
20350
|
-
const e =
|
|
20351
|
-
e[(r =
|
|
20279
|
+
if (A.value && f) {
|
|
20280
|
+
const e = N0.getJson("pinReport");
|
|
20281
|
+
e[(r = A.value) == null ? void 0 : r._id] ? e[A.value._id].push(f.id) : e[A.value._id] = [f.id], N0.setJson("pinReport", e), $();
|
|
20352
20282
|
}
|
|
20353
20283
|
}
|
|
20354
20284
|
function b(f) {
|
|
20355
|
-
if (
|
|
20356
|
-
const r =
|
|
20357
|
-
r[
|
|
20285
|
+
if (A.value) {
|
|
20286
|
+
const r = N0.getJson("pinReport");
|
|
20287
|
+
r[A.value._id].length === 1 ? r[A.value._id] = [] : r[A.value._id] = r[A.value._id].filter(
|
|
20358
20288
|
(e) => e !== f
|
|
20359
|
-
),
|
|
20289
|
+
), N0.setJson("pinReport", r), $();
|
|
20360
20290
|
}
|
|
20361
20291
|
}
|
|
20362
20292
|
async function T() {
|
|
20363
|
-
return await
|
|
20293
|
+
return await lt();
|
|
20364
20294
|
}
|
|
20365
20295
|
return {
|
|
20366
|
-
isOpenDownloadDialog:
|
|
20367
|
-
isOpenFeedbackDialog:
|
|
20368
|
-
isOpenEmailDialog:
|
|
20369
|
-
currentSelectWidgetType:
|
|
20296
|
+
isOpenDownloadDialog: i0,
|
|
20297
|
+
isOpenFeedbackDialog: G,
|
|
20298
|
+
isOpenEmailDialog: t0,
|
|
20299
|
+
currentSelectWidgetType: r0,
|
|
20370
20300
|
reports: B,
|
|
20371
|
-
categories:
|
|
20372
|
-
currentReport:
|
|
20301
|
+
categories: k,
|
|
20302
|
+
currentReport: _0,
|
|
20373
20303
|
editingReport: p0,
|
|
20374
|
-
editingTileIndex:
|
|
20375
|
-
editingTile:
|
|
20376
|
-
editingGlobalFilterIndex:
|
|
20377
|
-
editingGlobalFilter:
|
|
20378
|
-
currentReportId:
|
|
20379
|
-
editableReports:
|
|
20380
|
-
nonEditableReports:
|
|
20381
|
-
isOpenAddReportDialog:
|
|
20382
|
-
overviewReport:
|
|
20304
|
+
editingTileIndex: Q,
|
|
20305
|
+
editingTile: Y,
|
|
20306
|
+
editingGlobalFilterIndex: n0,
|
|
20307
|
+
editingGlobalFilter: e0,
|
|
20308
|
+
currentReportId: z,
|
|
20309
|
+
editableReports: U,
|
|
20310
|
+
nonEditableReports: N,
|
|
20311
|
+
isOpenAddReportDialog: V,
|
|
20312
|
+
overviewReport: W,
|
|
20383
20313
|
pinReport: _,
|
|
20384
20314
|
scrollPositionY: J,
|
|
20385
|
-
customReportQuota:
|
|
20386
|
-
canCreateCustomReport:
|
|
20387
|
-
createOrUpdateReport:
|
|
20388
|
-
removeReport:
|
|
20315
|
+
customReportQuota: Z,
|
|
20316
|
+
canCreateCustomReport: u0,
|
|
20317
|
+
createOrUpdateReport: l0,
|
|
20318
|
+
removeReport: K,
|
|
20389
20319
|
updateCurrentReportId: u,
|
|
20390
|
-
getReports:
|
|
20320
|
+
getReports: s0,
|
|
20391
20321
|
updateDefaultReport: t,
|
|
20392
|
-
getOverviewReport:
|
|
20322
|
+
getOverviewReport: o0,
|
|
20393
20323
|
refreshPinReport: $,
|
|
20394
20324
|
cachePinReport: S,
|
|
20395
20325
|
clearPinReport: b,
|
|
20396
20326
|
getReportConfig: T
|
|
20397
20327
|
};
|
|
20398
|
-
}), Ct = "mf-reportnavigation", Ie = X0(Ct, () => {
|
|
20399
|
-
const { disabled: E } = d0(ve()), { sessionUser: I } = ie(), { isReportPermissionEnabled: O } = be();
|
|
20400
|
-
function P(j) {
|
|
20401
|
-
var n0;
|
|
20402
|
-
if (!O.value) return !0;
|
|
20403
|
-
const k = Array.isArray((n0 = I.value) == null ? void 0 : n0.permissions) ? I.value.permissions : [];
|
|
20404
|
-
if (!Array.isArray(k) || k.length === 0) return !1;
|
|
20405
|
-
const K = {
|
|
20406
|
-
action: b0.manage,
|
|
20407
|
-
subject: j
|
|
20408
|
-
};
|
|
20409
|
-
return te([K], k).granted;
|
|
20410
|
-
}
|
|
20411
|
-
const B = _0("v5"), N = _0(!1), J = A0(
|
|
20412
|
-
() => P(J0.report_accessOverview)
|
|
20413
|
-
), Q = A0(
|
|
20414
|
-
() => P(J0.report_accessInsight)
|
|
20415
|
-
), q = A0(
|
|
20416
|
-
() => P(J0.report_accessSetting)
|
|
20417
|
-
), H = A0(
|
|
20418
|
-
() => P(J0.report_accessIntegration)
|
|
20419
|
-
), Y = A0(() => {
|
|
20420
|
-
const j = !J.value, k = !Q.value, K = !q.value, a0 = !H.value, n0 = [
|
|
20421
|
-
{
|
|
20422
|
-
label: "overview",
|
|
20423
|
-
value: "overview",
|
|
20424
|
-
route: "overview",
|
|
20425
|
-
disabled: j
|
|
20426
|
-
},
|
|
20427
|
-
{
|
|
20428
|
-
label: "report",
|
|
20429
|
-
value: "report",
|
|
20430
|
-
route: "reports"
|
|
20431
|
-
},
|
|
20432
|
-
{
|
|
20433
|
-
label: "insight",
|
|
20434
|
-
value: "insight",
|
|
20435
|
-
route: "insights",
|
|
20436
|
-
badge: () => Pe(qe.FmPill, { variant: "beta" }),
|
|
20437
|
-
disabled: k
|
|
20438
|
-
},
|
|
20439
|
-
{
|
|
20440
|
-
label: "setting",
|
|
20441
|
-
value: "setting",
|
|
20442
|
-
route: "setting",
|
|
20443
|
-
disabled: K
|
|
20444
|
-
}
|
|
20445
|
-
];
|
|
20446
|
-
return E.value || n0.push({
|
|
20447
|
-
label: "integration",
|
|
20448
|
-
value: "integration",
|
|
20449
|
-
route: "integrations",
|
|
20450
|
-
disabled: a0
|
|
20451
|
-
}), n0;
|
|
20452
|
-
}), X = _0(""), { currentRoute: t0 } = Qe();
|
|
20453
|
-
function G(j) {
|
|
20454
|
-
switch (j.name) {
|
|
20455
|
-
case "report":
|
|
20456
|
-
case "reports":
|
|
20457
|
-
X.value = "report";
|
|
20458
|
-
break;
|
|
20459
|
-
case "overview":
|
|
20460
|
-
X.value = "overview";
|
|
20461
|
-
break;
|
|
20462
|
-
case "setting":
|
|
20463
|
-
X.value = "setting";
|
|
20464
|
-
break;
|
|
20465
|
-
case "insights":
|
|
20466
|
-
X.value = "insight";
|
|
20467
|
-
break;
|
|
20468
|
-
case "integration":
|
|
20469
|
-
case "integrations":
|
|
20470
|
-
X.value = "integration";
|
|
20471
|
-
break;
|
|
20472
|
-
}
|
|
20473
|
-
}
|
|
20474
|
-
return W0(
|
|
20475
|
-
t0,
|
|
20476
|
-
(j) => {
|
|
20477
|
-
G(j);
|
|
20478
|
-
},
|
|
20479
|
-
{ immediate: !0 }
|
|
20480
|
-
), {
|
|
20481
|
-
selectedNavigationTab: X,
|
|
20482
|
-
navigationTabs: Y,
|
|
20483
|
-
isOverviewAccessible: J,
|
|
20484
|
-
isInsightAccessible: Q,
|
|
20485
|
-
isSettingAccessible: q,
|
|
20486
|
-
isIntegrationAccessible: H,
|
|
20487
|
-
version: B,
|
|
20488
|
-
suppressReportRouteSync: N
|
|
20489
|
-
};
|
|
20490
20328
|
});
|
|
20491
|
-
var
|
|
20492
|
-
const
|
|
20493
|
-
function
|
|
20494
|
-
return new Worker(
|
|
20329
|
+
var Se = /* @__PURE__ */ ((A) => (A.generating = "GENERATING", A.completed = "COMPLETED", A.failed = "FAILED", A.canceled = "CANCELLED", A))(Se || {});
|
|
20330
|
+
const yt = "/assets/formatChartData.worker-BQ5WtHKL.js", W0 = /* @__PURE__ */ new Map();
|
|
20331
|
+
function oe(A) {
|
|
20332
|
+
return new Worker(A, { type: "module" });
|
|
20495
20333
|
}
|
|
20496
|
-
async function
|
|
20497
|
-
if (
|
|
20498
|
-
return
|
|
20499
|
-
let
|
|
20334
|
+
async function mt(A) {
|
|
20335
|
+
if (W0.has(A))
|
|
20336
|
+
return oe(W0.get(A));
|
|
20337
|
+
let F = A;
|
|
20500
20338
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
20501
|
-
const B = new URL(
|
|
20502
|
-
|
|
20339
|
+
const B = new URL(A.replace(/^\//, ""), import.meta.url).href, k = await fetch(B).then((q) => q.text()), J = new Blob([k], { type: "application/javascript" });
|
|
20340
|
+
F = URL.createObjectURL(J);
|
|
20503
20341
|
}
|
|
20504
|
-
const P =
|
|
20505
|
-
return
|
|
20342
|
+
const P = oe(F);
|
|
20343
|
+
return W0.set(A, F), P;
|
|
20506
20344
|
}
|
|
20507
|
-
async function
|
|
20508
|
-
const
|
|
20509
|
-
return
|
|
20510
|
-
|
|
20511
|
-
const
|
|
20512
|
-
|
|
20345
|
+
async function gt(A, F) {
|
|
20346
|
+
const w = await mt(A);
|
|
20347
|
+
return w.postMessage(F), await new Promise((P) => {
|
|
20348
|
+
w.onmessage = async (B) => {
|
|
20349
|
+
const k = B.data;
|
|
20350
|
+
w.terminate(), P(k);
|
|
20513
20351
|
};
|
|
20514
20352
|
});
|
|
20515
20353
|
}
|
|
20516
|
-
const
|
|
20517
|
-
const
|
|
20518
|
-
function
|
|
20354
|
+
const ht = "mf-reportwidget-size", Ee = Y0(ht, () => {
|
|
20355
|
+
const A = D0([]);
|
|
20356
|
+
function F(w, P) {
|
|
20519
20357
|
var B;
|
|
20520
20358
|
try {
|
|
20521
|
-
if (!
|
|
20522
|
-
let
|
|
20523
|
-
const J =
|
|
20524
|
-
if (
|
|
20525
|
-
const
|
|
20526
|
-
|
|
20359
|
+
if (!w) return;
|
|
20360
|
+
let k;
|
|
20361
|
+
const J = w.$el, q = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
|
|
20362
|
+
if (q) {
|
|
20363
|
+
const U = q.getBoundingClientRect();
|
|
20364
|
+
k = { width: Math.round(U.width), height: Math.round(U.height) };
|
|
20527
20365
|
}
|
|
20528
|
-
if (
|
|
20529
|
-
return typeof P == "number" && (
|
|
20530
|
-
} catch (
|
|
20531
|
-
console.log(
|
|
20366
|
+
if (k && k.width > 0 && k.height > 0)
|
|
20367
|
+
return typeof P == "number" && (A.value[P] = k), k;
|
|
20368
|
+
} catch (k) {
|
|
20369
|
+
console.log(k);
|
|
20532
20370
|
}
|
|
20533
20371
|
}
|
|
20534
|
-
return { sizes:
|
|
20535
|
-
}),
|
|
20536
|
-
const
|
|
20537
|
-
function
|
|
20372
|
+
return { sizes: A, extractChartSize: F };
|
|
20373
|
+
}), St = "mf-reportreport-sort-store", Ae = Y0(St, () => {
|
|
20374
|
+
const A = D0([]);
|
|
20375
|
+
function F(B, k) {
|
|
20538
20376
|
if (B == null) return;
|
|
20539
|
-
const J = Array.isArray(
|
|
20540
|
-
|
|
20377
|
+
const J = Array.isArray(k) ? k.filter((N) => N && N.key) : [], q = A.value.findIndex((N) => N.tileIndex === B), U = { tileIndex: B, sorts: J };
|
|
20378
|
+
q !== -1 ? A.value.splice(q, 1, U) : A.value.push(U);
|
|
20541
20379
|
}
|
|
20542
|
-
function
|
|
20543
|
-
var
|
|
20544
|
-
return B == null ? [] : ((
|
|
20380
|
+
function w(B) {
|
|
20381
|
+
var k;
|
|
20382
|
+
return B == null ? [] : ((k = A.value.find((J) => J.tileIndex === B)) == null ? void 0 : k.sorts) ?? [];
|
|
20545
20383
|
}
|
|
20546
20384
|
function P(B) {
|
|
20547
|
-
typeof B == "number" ?
|
|
20385
|
+
typeof B == "number" ? A.value = A.value.filter((k) => k.tileIndex !== B) : A.value = [];
|
|
20548
20386
|
}
|
|
20549
|
-
return { tileSort:
|
|
20387
|
+
return { tileSort: A, setTileSorts: F, getTileSorts: w, clearTileSorts: P };
|
|
20550
20388
|
});
|
|
20551
|
-
function
|
|
20389
|
+
function Te(A = []) {
|
|
20552
20390
|
return Array.from(
|
|
20553
|
-
new Set(
|
|
20391
|
+
new Set(A.map((F) => F === "" ? "NULL" : F))
|
|
20554
20392
|
);
|
|
20555
20393
|
}
|
|
20556
|
-
function
|
|
20394
|
+
function Et(A) {
|
|
20557
20395
|
return [
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20561
|
-
|
|
20562
|
-
|
|
20396
|
+
A.schemaName,
|
|
20397
|
+
A.name,
|
|
20398
|
+
A.option ?? "",
|
|
20399
|
+
A.dataFormula ?? "",
|
|
20400
|
+
A.operator
|
|
20563
20401
|
].join(":");
|
|
20564
20402
|
}
|
|
20565
|
-
function
|
|
20566
|
-
const
|
|
20567
|
-
return !
|
|
20568
|
-
|
|
20569
|
-
|
|
20403
|
+
function At(A) {
|
|
20404
|
+
const F = (w, P) => A0().set("hour", w).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
|
|
20405
|
+
return !A.startTime || !A.endTime ? [] : [
|
|
20406
|
+
F(A.startTime.hour, A.startTime.minute),
|
|
20407
|
+
F(A.endTime.hour, A.endTime.minute)
|
|
20570
20408
|
];
|
|
20571
20409
|
}
|
|
20572
|
-
function
|
|
20410
|
+
function Tt(A, F) {
|
|
20573
20411
|
return {
|
|
20574
|
-
schemaName:
|
|
20575
|
-
name:
|
|
20576
|
-
operator:
|
|
20577
|
-
option:
|
|
20578
|
-
values:
|
|
20579
|
-
dataFormula:
|
|
20412
|
+
schemaName: A.schemaName,
|
|
20413
|
+
name: A.name,
|
|
20414
|
+
operator: F.operator,
|
|
20415
|
+
option: A.option ?? null,
|
|
20416
|
+
values: Te(F.values),
|
|
20417
|
+
dataFormula: A.dataFormula,
|
|
20580
20418
|
isGlobalFilter: !0
|
|
20581
20419
|
};
|
|
20582
20420
|
}
|
|
20583
|
-
function
|
|
20584
|
-
const
|
|
20585
|
-
return
|
|
20586
|
-
schemaName:
|
|
20587
|
-
name:
|
|
20588
|
-
operator:
|
|
20589
|
-
option:
|
|
20590
|
-
values:
|
|
20591
|
-
dataFormula:
|
|
20421
|
+
function Ct(A, F) {
|
|
20422
|
+
const w = At(F);
|
|
20423
|
+
return w.length !== 2 ? null : {
|
|
20424
|
+
schemaName: A.schemaName,
|
|
20425
|
+
name: A.name,
|
|
20426
|
+
operator: te.Between,
|
|
20427
|
+
option: A.option ?? U0.TimeOfDay,
|
|
20428
|
+
values: w,
|
|
20429
|
+
dataFormula: A.dataFormula,
|
|
20592
20430
|
isGlobalFilter: !0
|
|
20593
20431
|
};
|
|
20594
20432
|
}
|
|
20595
|
-
function
|
|
20596
|
-
var P, B,
|
|
20597
|
-
const
|
|
20598
|
-
new Set((
|
|
20433
|
+
function bt(A) {
|
|
20434
|
+
var P, B, k, J;
|
|
20435
|
+
const F = Array.from(
|
|
20436
|
+
new Set((A.values ?? []).map((q) => q === "" ? "NULL" : q))
|
|
20599
20437
|
);
|
|
20600
|
-
if (
|
|
20601
|
-
const
|
|
20602
|
-
String(
|
|
20603
|
-
),
|
|
20438
|
+
if (F.length === 1 && String(F[0]) === "(EMPTY)") {
|
|
20439
|
+
const q = Object.values(U0).includes(
|
|
20440
|
+
String(A.option ?? "")
|
|
20441
|
+
), U = A.option === U0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [q ? "-1" : "(EMPTY)"];
|
|
20604
20442
|
return [
|
|
20605
20443
|
{
|
|
20606
|
-
schemaName:
|
|
20607
|
-
name:
|
|
20608
|
-
operator:
|
|
20609
|
-
option:
|
|
20610
|
-
values:
|
|
20611
|
-
dataFormula:
|
|
20444
|
+
schemaName: A.schemaName,
|
|
20445
|
+
name: A.name,
|
|
20446
|
+
operator: A.operator,
|
|
20447
|
+
option: A.option ?? null,
|
|
20448
|
+
values: U,
|
|
20449
|
+
dataFormula: A.dataFormula,
|
|
20612
20450
|
isGlobalFilter: !0
|
|
20613
20451
|
}
|
|
20614
20452
|
];
|
|
20615
20453
|
}
|
|
20616
|
-
if ((((P =
|
|
20617
|
-
const
|
|
20618
|
-
return ((B =
|
|
20619
|
-
const
|
|
20620
|
-
return
|
|
20621
|
-
}).map((
|
|
20454
|
+
if ((((P = A.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
|
|
20455
|
+
const q = new Set(F.map((U) => String(U)));
|
|
20456
|
+
return ((B = A.customTimeRanges) == null ? void 0 : B.filter((U) => {
|
|
20457
|
+
const N = String(U.name ?? "");
|
|
20458
|
+
return q.has(N);
|
|
20459
|
+
}).map((U) => Ct(A, U)).filter((U) => !!U)) ?? [];
|
|
20622
20460
|
}
|
|
20623
|
-
if ((((
|
|
20624
|
-
const
|
|
20625
|
-
return ((J =
|
|
20626
|
-
const
|
|
20627
|
-
return
|
|
20628
|
-
}).map((
|
|
20461
|
+
if ((((k = A.customOptions) == null ? void 0 : k.length) ?? 0) > 0) {
|
|
20462
|
+
const q = new Set(F.map((U) => String(U)));
|
|
20463
|
+
return ((J = A.customOptions) == null ? void 0 : J.filter((U) => {
|
|
20464
|
+
const N = String(U.label ?? "");
|
|
20465
|
+
return q.has(N);
|
|
20466
|
+
}).map((U) => Tt(A, U)).filter((U) => Array.isArray(U.values) && U.values.length > 0)) ?? [];
|
|
20629
20467
|
}
|
|
20630
|
-
return
|
|
20468
|
+
return F.length === 0 ? [] : [
|
|
20631
20469
|
{
|
|
20632
|
-
schemaName:
|
|
20633
|
-
name:
|
|
20634
|
-
operator:
|
|
20635
|
-
option:
|
|
20636
|
-
values:
|
|
20637
|
-
dataFormula:
|
|
20470
|
+
schemaName: A.schemaName,
|
|
20471
|
+
name: A.name,
|
|
20472
|
+
operator: A.operator,
|
|
20473
|
+
option: A.option ?? null,
|
|
20474
|
+
values: F,
|
|
20475
|
+
dataFormula: A.dataFormula,
|
|
20638
20476
|
isGlobalFilter: !0
|
|
20639
20477
|
}
|
|
20640
20478
|
];
|
|
20641
20479
|
}
|
|
20642
|
-
function
|
|
20643
|
-
originalFilters:
|
|
20644
|
-
globalFilters:
|
|
20645
|
-
schemaNames:
|
|
20480
|
+
function le({
|
|
20481
|
+
originalFilters: A,
|
|
20482
|
+
globalFilters: F,
|
|
20483
|
+
schemaNames: w
|
|
20646
20484
|
}) {
|
|
20647
|
-
const P = /* @__PURE__ */ new Map(), B = [],
|
|
20648
|
-
if (!
|
|
20485
|
+
const P = /* @__PURE__ */ new Map(), B = [], k = new Set((w ?? []).map((N) => String(N))), J = (N) => k.has(N.schemaName ?? ""), q = F.filter(J), U = (N) => {
|
|
20486
|
+
if (!N || !J(N) || !Array.isArray(N.values) || N.values.length === 0)
|
|
20649
20487
|
return;
|
|
20650
|
-
const
|
|
20651
|
-
...
|
|
20652
|
-
values:
|
|
20488
|
+
const V = {
|
|
20489
|
+
...N,
|
|
20490
|
+
values: Te(N.values)
|
|
20653
20491
|
};
|
|
20654
|
-
if (
|
|
20655
|
-
B.push(
|
|
20492
|
+
if (V.option === U0.TimeOfDay && V.operator === te.Between) {
|
|
20493
|
+
B.push(V);
|
|
20656
20494
|
return;
|
|
20657
20495
|
}
|
|
20658
|
-
const
|
|
20659
|
-
if (!
|
|
20660
|
-
P.set(
|
|
20496
|
+
const r0 = Et(V), W = P.get(r0);
|
|
20497
|
+
if (!W) {
|
|
20498
|
+
P.set(r0, V);
|
|
20661
20499
|
return;
|
|
20662
20500
|
}
|
|
20663
|
-
|
|
20664
|
-
...
|
|
20665
|
-
...
|
|
20666
|
-
], P.set(
|
|
20501
|
+
W.values = [
|
|
20502
|
+
...W.values ?? [],
|
|
20503
|
+
...V.values
|
|
20504
|
+
], P.set(r0, W);
|
|
20667
20505
|
};
|
|
20668
|
-
return
|
|
20506
|
+
return A.forEach(U), q.forEach(U), [...Array.from(P.values()), ...B];
|
|
20669
20507
|
}
|
|
20670
|
-
function
|
|
20671
|
-
var
|
|
20672
|
-
const P = JSON.parse(JSON.stringify(
|
|
20673
|
-
var
|
|
20674
|
-
return (
|
|
20675
|
-
}).flatMap((J) =>
|
|
20508
|
+
function ne(A, F, w) {
|
|
20509
|
+
var k;
|
|
20510
|
+
const P = JSON.parse(JSON.stringify(A)), B = F.filter((J) => {
|
|
20511
|
+
var q;
|
|
20512
|
+
return (q = J.tileIds) == null ? void 0 : q.includes(w);
|
|
20513
|
+
}).flatMap((J) => bt(J));
|
|
20676
20514
|
return {
|
|
20677
20515
|
...P,
|
|
20678
20516
|
config: {
|
|
20679
20517
|
...P.config,
|
|
20680
|
-
filters:
|
|
20518
|
+
filters: le({
|
|
20681
20519
|
originalFilters: P.config.filters ?? [],
|
|
20682
20520
|
globalFilters: B ?? [],
|
|
20683
20521
|
schemaNames: P.config.schemaNames
|
|
20684
20522
|
}),
|
|
20685
|
-
joinDatasources: ((
|
|
20686
|
-
var
|
|
20523
|
+
joinDatasources: ((k = P.config.joinDatasources) == null ? void 0 : k.map((J, q) => {
|
|
20524
|
+
var U;
|
|
20687
20525
|
return {
|
|
20688
20526
|
...J,
|
|
20689
|
-
filters:
|
|
20527
|
+
filters: le({
|
|
20690
20528
|
originalFilters: J.filters ?? [],
|
|
20691
20529
|
globalFilters: B ?? [],
|
|
20692
|
-
schemaNames: (
|
|
20530
|
+
schemaNames: (U = P.config.joinDatasources) == null ? void 0 : U[q].schemaNames
|
|
20693
20531
|
})
|
|
20694
20532
|
};
|
|
20695
20533
|
})) ?? []
|
|
20696
20534
|
}
|
|
20697
20535
|
};
|
|
20698
20536
|
}
|
|
20699
|
-
async function
|
|
20700
|
-
for (let
|
|
20537
|
+
async function It(A, F) {
|
|
20538
|
+
for (let w = 0; w < A.length; w++)
|
|
20701
20539
|
try {
|
|
20702
|
-
return await
|
|
20540
|
+
return await A[w]();
|
|
20703
20541
|
} catch (P) {
|
|
20704
|
-
if (P.message === "Unauthorized" ||
|
|
20705
|
-
await new Promise((B) => setTimeout(B,
|
|
20542
|
+
if (P.message === "Unauthorized" || w === A.length - 1) throw P;
|
|
20543
|
+
await new Promise((B) => setTimeout(B, F));
|
|
20706
20544
|
}
|
|
20707
20545
|
throw new Error("No callback");
|
|
20708
20546
|
}
|
|
20709
|
-
const
|
|
20710
|
-
var
|
|
20711
|
-
const { businessId: P, country: B } = d0(
|
|
20547
|
+
const jt = async (A, F, w) => {
|
|
20548
|
+
var s0, _0, f0, p0;
|
|
20549
|
+
const { businessId: P, country: B } = d0(y0()), { currentReport: k } = re(), {
|
|
20712
20550
|
selectedRestaurantIds: J,
|
|
20713
|
-
selectedWarehouseIds:
|
|
20714
|
-
selectedLocationIds:
|
|
20715
|
-
dateRange:
|
|
20716
|
-
compareDateRange:
|
|
20717
|
-
timeRange:
|
|
20718
|
-
globalFilters:
|
|
20719
|
-
timezone:
|
|
20720
|
-
} =
|
|
20721
|
-
if (
|
|
20551
|
+
selectedWarehouseIds: q,
|
|
20552
|
+
selectedLocationIds: U,
|
|
20553
|
+
dateRange: N,
|
|
20554
|
+
compareDateRange: V,
|
|
20555
|
+
timeRange: z,
|
|
20556
|
+
globalFilters: r0,
|
|
20557
|
+
timezone: W
|
|
20558
|
+
} = V0();
|
|
20559
|
+
if (U.length === 0)
|
|
20722
20560
|
return null;
|
|
20723
|
-
const
|
|
20561
|
+
const Z = ne(A, r0, w ?? ""), X = {
|
|
20724
20562
|
fetchType: m0.Post,
|
|
20725
20563
|
url: `/${P.value}/postgres-query`,
|
|
20726
|
-
data:
|
|
20727
|
-
widget:
|
|
20728
|
-
dateRange: [
|
|
20729
|
-
compareDateRange:
|
|
20564
|
+
data: ee.getQueryRequests({
|
|
20565
|
+
widget: Z,
|
|
20566
|
+
dateRange: [N.startDate, N.endDate],
|
|
20567
|
+
compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
|
|
20730
20568
|
timeRange: [
|
|
20731
|
-
|
|
20732
|
-
|
|
20569
|
+
A0().tz(W).hour(Number((s0 = z.start) == null ? void 0 : s0.hour)).minute(Number((_0 = z.start) == null ? void 0 : _0.minute)).toISOString(),
|
|
20570
|
+
A0().tz(W).hour(Number((f0 = z.end) == null ? void 0 : f0.hour)).minute(Number((p0 = z.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
|
|
20733
20571
|
],
|
|
20734
20572
|
businessIds: P.value ? [P.value] : [],
|
|
20735
20573
|
restaurantIds: J,
|
|
20736
|
-
warehouseIds:
|
|
20737
|
-
timezone:
|
|
20738
|
-
}).map((
|
|
20739
|
-
const
|
|
20574
|
+
warehouseIds: q,
|
|
20575
|
+
timezone: W
|
|
20576
|
+
}).map((Q, Y) => {
|
|
20577
|
+
const n0 = Y === 0 ? 3e3 : 12e3;
|
|
20740
20578
|
return {
|
|
20741
|
-
...
|
|
20742
|
-
limit: J.length > 50 ?
|
|
20743
|
-
skipStringSpaceGrouping: !!(
|
|
20744
|
-
reportId:
|
|
20579
|
+
...Q,
|
|
20580
|
+
limit: J.length > 50 ? A.config.limit || n0 : A.config.limit,
|
|
20581
|
+
skipStringSpaceGrouping: !!(k != null && k.batch),
|
|
20582
|
+
reportId: k == null ? void 0 : k.id
|
|
20745
20583
|
};
|
|
20746
20584
|
}),
|
|
20747
20585
|
requestConfig: {
|
|
20748
20586
|
timeout: 1e3 * 60 * 5,
|
|
20749
|
-
signal:
|
|
20587
|
+
signal: F
|
|
20750
20588
|
}
|
|
20751
|
-
},
|
|
20752
|
-
J.length < 50 &&
|
|
20753
|
-
const
|
|
20754
|
-
return (await
|
|
20755
|
-
responses:
|
|
20756
|
-
widget: JSON.parse(JSON.stringify(
|
|
20589
|
+
}, u0 = [() => E0.fetch(X)];
|
|
20590
|
+
J.length < 50 && u0.push(() => E0.fetch(X)), u0.push(() => (X.url = X.url.replace("postgres-query", "query"), E0.fetch(X)));
|
|
20591
|
+
const o0 = await It(u0, 2e3);
|
|
20592
|
+
return (await gt(yt, {
|
|
20593
|
+
responses: o0,
|
|
20594
|
+
widget: JSON.parse(JSON.stringify(A)),
|
|
20757
20595
|
country: B.value,
|
|
20758
|
-
timezone:
|
|
20596
|
+
timezone: W
|
|
20759
20597
|
})).data;
|
|
20760
20598
|
};
|
|
20761
|
-
function
|
|
20762
|
-
const
|
|
20599
|
+
function Ce(A) {
|
|
20600
|
+
const F = A.config;
|
|
20763
20601
|
return {
|
|
20764
|
-
showTitle:
|
|
20765
|
-
titleFontSize:
|
|
20766
|
-
titleBold:
|
|
20767
|
-
titleItalic:
|
|
20768
|
-
titleUnderline:
|
|
20769
|
-
chartColors:
|
|
20770
|
-
chartColorLayers:
|
|
20771
|
-
chartBreakdownColors:
|
|
20772
|
-
chartUseSecondaryMetricShades:
|
|
20773
|
-
chartColorBinding:
|
|
20774
|
-
stackBarOverlap:
|
|
20775
|
-
lineStyles:
|
|
20776
|
-
lineStyleBinding:
|
|
20777
|
-
showLabel:
|
|
20778
|
-
labelAlign:
|
|
20779
|
-
labelAnchor:
|
|
20780
|
-
labelRotation:
|
|
20781
|
-
labelOffset:
|
|
20782
|
-
labelFontSize:
|
|
20783
|
-
showX:
|
|
20784
|
-
xPosition:
|
|
20785
|
-
showXGrid:
|
|
20786
|
-
showXTick:
|
|
20787
|
-
xTickFontSize:
|
|
20788
|
-
showY:
|
|
20789
|
-
yPosition:
|
|
20790
|
-
showYGrid:
|
|
20791
|
-
showYTick:
|
|
20792
|
-
yTickFontSize:
|
|
20793
|
-
showLegend:
|
|
20794
|
-
legendPosition:
|
|
20795
|
-
usePointStyle:
|
|
20796
|
-
legendFontSize:
|
|
20797
|
-
legendColor:
|
|
20798
|
-
legendMaxWidth:
|
|
20602
|
+
showTitle: F.showTitle,
|
|
20603
|
+
titleFontSize: F.titleFontSize,
|
|
20604
|
+
titleBold: F.titleBold,
|
|
20605
|
+
titleItalic: F.titleItalic,
|
|
20606
|
+
titleUnderline: F.titleUnderline,
|
|
20607
|
+
chartColors: F.chartColors,
|
|
20608
|
+
chartColorLayers: F.chartColorLayers,
|
|
20609
|
+
chartBreakdownColors: F.chartBreakdownColors,
|
|
20610
|
+
chartUseSecondaryMetricShades: F.chartUseSecondaryMetricShades,
|
|
20611
|
+
chartColorBinding: F.chartColorBinding,
|
|
20612
|
+
stackBarOverlap: F.stackBarOverlap,
|
|
20613
|
+
lineStyles: F.lineStyles,
|
|
20614
|
+
lineStyleBinding: F.lineStyleBinding,
|
|
20615
|
+
showLabel: F.showLabel,
|
|
20616
|
+
labelAlign: F.labelAlign,
|
|
20617
|
+
labelAnchor: F.labelAnchor,
|
|
20618
|
+
labelRotation: F.labelRotation,
|
|
20619
|
+
labelOffset: F.labelOffset,
|
|
20620
|
+
labelFontSize: F.labelFontSize,
|
|
20621
|
+
showX: F.showX,
|
|
20622
|
+
xPosition: F.xPosition,
|
|
20623
|
+
showXGrid: F.showXGrid,
|
|
20624
|
+
showXTick: F.showXTick,
|
|
20625
|
+
xTickFontSize: F.xTickFontSize,
|
|
20626
|
+
showY: F.showY,
|
|
20627
|
+
yPosition: F.yPosition,
|
|
20628
|
+
showYGrid: F.showYGrid,
|
|
20629
|
+
showYTick: F.showYTick,
|
|
20630
|
+
yTickFontSize: F.yTickFontSize,
|
|
20631
|
+
showLegend: F.showLegend,
|
|
20632
|
+
legendPosition: F.legendPosition,
|
|
20633
|
+
usePointStyle: F.usePointStyle,
|
|
20634
|
+
legendFontSize: F.legendFontSize,
|
|
20635
|
+
legendColor: F.legendColor,
|
|
20636
|
+
legendMaxWidth: F.legendMaxWidth
|
|
20799
20637
|
};
|
|
20800
20638
|
}
|
|
20801
|
-
function
|
|
20802
|
-
const
|
|
20639
|
+
function be(A) {
|
|
20640
|
+
const F = A.config;
|
|
20803
20641
|
return {
|
|
20804
|
-
rowHeight:
|
|
20805
|
-
colWidths:
|
|
20642
|
+
rowHeight: F.rowHeight,
|
|
20643
|
+
colWidths: F.colWidths
|
|
20806
20644
|
};
|
|
20807
20645
|
}
|
|
20808
|
-
const
|
|
20809
|
-
reportType:
|
|
20810
|
-
index:
|
|
20811
|
-
orientationTypes:
|
|
20646
|
+
const Kt = async ({
|
|
20647
|
+
reportType: A,
|
|
20648
|
+
index: F,
|
|
20649
|
+
orientationTypes: w,
|
|
20812
20650
|
isCombinedLocationLayout: P,
|
|
20813
20651
|
locationIds: B,
|
|
20814
|
-
timeRange:
|
|
20652
|
+
timeRange: k,
|
|
20815
20653
|
dateRange: J
|
|
20816
20654
|
}) => {
|
|
20817
|
-
const { businessId:
|
|
20818
|
-
let
|
|
20819
|
-
|
|
20820
|
-
const
|
|
20655
|
+
const { businessId: q } = d0(y0()), { restaurants: U, warehouses: N, globalFilters: V, timezone: z } = V0(), { currentReport: r0, overviewReport: W } = re(), { selectedNavigationTab: Z } = de(), { sizes: X } = Ee(), { getTileSorts: u0 } = Ae();
|
|
20656
|
+
let o0 = r0 == null ? void 0 : r0.id, s0 = (r0 == null ? void 0 : r0.tiles) ?? [];
|
|
20657
|
+
Z === "overview" && W && (o0 = W == null ? void 0 : W.id, s0 = (W == null ? void 0 : W.tiles) ?? []);
|
|
20658
|
+
const _0 = s0.filter((i0, G) => typeof F == "number" ? G === F : !0).map((i0) => ne(i0.widget, V, i0.id)), f0 = {
|
|
20821
20659
|
fetchType: m0.Post,
|
|
20822
|
-
url: `/${
|
|
20660
|
+
url: `/${q.value}/file?lang=${P0()}`,
|
|
20823
20661
|
data: {
|
|
20824
20662
|
configs: [
|
|
20825
|
-
...
|
|
20826
|
-
var
|
|
20827
|
-
const
|
|
20663
|
+
..._0.map((i0, G) => {
|
|
20664
|
+
var l0, K, t, u;
|
|
20665
|
+
const t0 = X[F ?? G];
|
|
20828
20666
|
return {
|
|
20829
|
-
requests:
|
|
20830
|
-
widget:
|
|
20667
|
+
requests: ee.getQueryRequests({
|
|
20668
|
+
widget: i0,
|
|
20831
20669
|
dateRange: [J.startDate, J.endDate],
|
|
20832
20670
|
timeRange: [
|
|
20833
|
-
|
|
20834
|
-
|
|
20671
|
+
A0().tz(z).set("hour", Number((l0 = k.start) == null ? void 0 : l0.hour)).set("minute", Number((K = k.start) == null ? void 0 : K.minute)).toISOString(),
|
|
20672
|
+
A0().tz(z).set("hour", Number((t = k.end) == null ? void 0 : t.hour)).set("minute", Number((u = k.end) == null ? void 0 : u.minute)).toISOString()
|
|
20835
20673
|
],
|
|
20836
|
-
businessIds:
|
|
20674
|
+
businessIds: q ? [q.value] : [],
|
|
20837
20675
|
restaurantIds: B.filter(
|
|
20838
|
-
(_) =>
|
|
20676
|
+
(_) => U.find(($) => $.id === _)
|
|
20839
20677
|
),
|
|
20840
20678
|
warehouseIds: B.filter(
|
|
20841
|
-
(_) =>
|
|
20679
|
+
(_) => N.find(($) => $.id === _)
|
|
20842
20680
|
),
|
|
20843
|
-
timezone:
|
|
20681
|
+
timezone: z
|
|
20844
20682
|
}),
|
|
20845
|
-
index:
|
|
20683
|
+
index: F || G,
|
|
20846
20684
|
drillDimension: null,
|
|
20847
|
-
chartWidth: (
|
|
20848
|
-
chartHeight: (
|
|
20849
|
-
...
|
|
20850
|
-
...
|
|
20851
|
-
globalSorts:
|
|
20685
|
+
chartWidth: (t0 == null ? void 0 : t0.width) ?? i0.config.chartWidth,
|
|
20686
|
+
chartHeight: (t0 == null ? void 0 : t0.height) ?? i0.config.chartHeight,
|
|
20687
|
+
...Ce(i0),
|
|
20688
|
+
...be(i0),
|
|
20689
|
+
globalSorts: u0(F ?? G)
|
|
20852
20690
|
};
|
|
20853
20691
|
})
|
|
20854
20692
|
],
|
|
20855
|
-
reportId:
|
|
20856
|
-
type:
|
|
20857
|
-
orientationTypes:
|
|
20693
|
+
reportId: o0,
|
|
20694
|
+
type: A,
|
|
20695
|
+
orientationTypes: w,
|
|
20858
20696
|
isCombinedLocationLayout: P
|
|
20859
20697
|
},
|
|
20860
20698
|
requestConfig: {
|
|
20861
20699
|
responseType: "arraybuffer",
|
|
20862
20700
|
timeout: 1e3 * 60 * 60 * 24
|
|
20863
20701
|
}
|
|
20864
|
-
}, { headers: p0, data:
|
|
20865
|
-
|
|
20866
|
-
},
|
|
20867
|
-
emails:
|
|
20868
|
-
types:
|
|
20869
|
-
dateRange:
|
|
20702
|
+
}, { headers: p0, data: Q } = await K0.rawFetch(f0), Y = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
|
|
20703
|
+
e0.href = n0, e0.setAttribute("download", decodeURIComponent(Y)), document.body.appendChild(e0), e0.click(), e0.remove();
|
|
20704
|
+
}, Zt = async ({
|
|
20705
|
+
emails: A,
|
|
20706
|
+
types: F,
|
|
20707
|
+
dateRange: w,
|
|
20870
20708
|
timeRange: P,
|
|
20871
20709
|
locationIds: B,
|
|
20872
|
-
orientationTypes:
|
|
20710
|
+
orientationTypes: k,
|
|
20873
20711
|
isCombinedLocationLayout: J
|
|
20874
20712
|
}) => {
|
|
20875
|
-
const { businessId:
|
|
20876
|
-
if (
|
|
20713
|
+
const { businessId: q } = d0(y0()), { currentReport: U, overviewReport: N } = re(), { selectedNavigationTab: V } = de(), { restaurants: z, warehouses: r0, globalFilters: W, timezone: Z } = V0(), { sizes: X } = Ee(), { getTileSorts: u0 } = Ae();
|
|
20714
|
+
if (A.length === 0) {
|
|
20877
20715
|
console.error("No email addresses provided.");
|
|
20878
20716
|
return;
|
|
20879
20717
|
}
|
|
20880
|
-
let
|
|
20881
|
-
|
|
20882
|
-
const
|
|
20883
|
-
businessId:
|
|
20884
|
-
status:
|
|
20718
|
+
let o0 = (U == null ? void 0 : U.id) || "", s0 = (U == null ? void 0 : U.name) || "", _0 = (U == null ? void 0 : U.tiles) ?? [];
|
|
20719
|
+
V === "overview" && N && (o0 = N == null ? void 0 : N.id, s0 = N.name, _0 = (N == null ? void 0 : N.tiles) ?? []);
|
|
20720
|
+
const f0 = _0.map((Q) => ne(Q.widget, W, Q.id)), p0 = {
|
|
20721
|
+
businessId: q.value,
|
|
20722
|
+
status: Se.generating,
|
|
20885
20723
|
dateRange: {
|
|
20886
|
-
start:
|
|
20887
|
-
end:
|
|
20724
|
+
start: w.startDate,
|
|
20725
|
+
end: w.endDate
|
|
20888
20726
|
},
|
|
20889
|
-
reportName:
|
|
20890
|
-
emails:
|
|
20891
|
-
configs:
|
|
20892
|
-
var
|
|
20893
|
-
const
|
|
20727
|
+
reportName: s0,
|
|
20728
|
+
emails: A,
|
|
20729
|
+
configs: f0.map((Q, Y) => {
|
|
20730
|
+
var e0, i0, G, t0;
|
|
20731
|
+
const n0 = X[Y];
|
|
20894
20732
|
return {
|
|
20895
|
-
requests:
|
|
20896
|
-
widget:
|
|
20897
|
-
dateRange: [
|
|
20733
|
+
requests: ee.getQueryRequests({
|
|
20734
|
+
widget: Q,
|
|
20735
|
+
dateRange: [w.startDate, w.endDate],
|
|
20898
20736
|
timeRange: [
|
|
20899
|
-
|
|
20900
|
-
|
|
20737
|
+
A0().tz(Z).hour(Number((e0 = P.start) == null ? void 0 : e0.hour)).minute(Number((i0 = P.start) == null ? void 0 : i0.minute)).toISOString(),
|
|
20738
|
+
A0().tz(Z).hour(Number((G = P.end) == null ? void 0 : G.hour)).minute(Number((t0 = P.end) == null ? void 0 : t0.minute)).endOf("minutes").toISOString()
|
|
20901
20739
|
],
|
|
20902
|
-
businessIds:
|
|
20740
|
+
businessIds: q ? [q.value] : [],
|
|
20903
20741
|
restaurantIds: B.filter(
|
|
20904
|
-
(
|
|
20742
|
+
(l0) => z.find((K) => K.id === l0)
|
|
20905
20743
|
),
|
|
20906
20744
|
warehouseIds: B.filter(
|
|
20907
|
-
(
|
|
20745
|
+
(l0) => r0.find((K) => K.id === l0)
|
|
20908
20746
|
),
|
|
20909
|
-
timezone:
|
|
20747
|
+
timezone: Z
|
|
20910
20748
|
}),
|
|
20911
|
-
index:
|
|
20749
|
+
index: Y,
|
|
20912
20750
|
drillDimension: null,
|
|
20913
|
-
chartWidth: (
|
|
20914
|
-
chartHeight: (
|
|
20915
|
-
...
|
|
20916
|
-
...
|
|
20917
|
-
globalSorts:
|
|
20751
|
+
chartWidth: (n0 == null ? void 0 : n0.width) ?? Q.config.chartWidth,
|
|
20752
|
+
chartHeight: (n0 == null ? void 0 : n0.height) ?? Q.config.chartHeight,
|
|
20753
|
+
...Ce(Q),
|
|
20754
|
+
...be(Q),
|
|
20755
|
+
globalSorts: u0(Y)
|
|
20918
20756
|
};
|
|
20919
20757
|
}),
|
|
20920
|
-
reportId:
|
|
20921
|
-
type:
|
|
20922
|
-
orientationTypes:
|
|
20758
|
+
reportId: o0,
|
|
20759
|
+
type: F,
|
|
20760
|
+
orientationTypes: k,
|
|
20923
20761
|
isCombinedLocationLayout: J
|
|
20924
20762
|
};
|
|
20925
|
-
await
|
|
20763
|
+
await K0.fetch({
|
|
20926
20764
|
fetchType: m0.Post,
|
|
20927
|
-
url: `/${
|
|
20765
|
+
url: `/${q.value}/reports/email?lang=${P0()}`,
|
|
20928
20766
|
data: p0,
|
|
20929
20767
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20930
20768
|
});
|
|
20931
|
-
},
|
|
20932
|
-
const { businessId:
|
|
20933
|
-
await
|
|
20769
|
+
}, er = async (A) => {
|
|
20770
|
+
const { businessId: F } = d0(y0());
|
|
20771
|
+
await K0.fetch({
|
|
20934
20772
|
fetchType: m0.Post,
|
|
20935
|
-
url: `/${
|
|
20936
|
-
data: { jobId:
|
|
20773
|
+
url: `/${F.value}/reports/resend-email?lang=${P0()}`,
|
|
20774
|
+
data: { jobId: A },
|
|
20937
20775
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20938
20776
|
});
|
|
20939
|
-
},
|
|
20940
|
-
const { businessId:
|
|
20777
|
+
}, tr = async () => {
|
|
20778
|
+
const { businessId: A } = d0(y0());
|
|
20941
20779
|
return await E0.fetch({
|
|
20942
20780
|
fetchType: m0.Get,
|
|
20943
|
-
url: `/${
|
|
20781
|
+
url: `/${A.value}/reports/email-recipients`
|
|
20944
20782
|
});
|
|
20945
|
-
},
|
|
20946
|
-
const { businessId:
|
|
20783
|
+
}, rr = async (A) => {
|
|
20784
|
+
const { businessId: F } = d0(y0());
|
|
20947
20785
|
await E0.fetch({
|
|
20948
20786
|
fetchType: m0.Post,
|
|
20949
|
-
url: `/${
|
|
20950
|
-
data: { email:
|
|
20787
|
+
url: `/${F.value}/reports/email-recipient/delete`,
|
|
20788
|
+
data: { email: A }
|
|
20951
20789
|
});
|
|
20952
20790
|
};
|
|
20953
|
-
let
|
|
20954
|
-
const
|
|
20955
|
-
function
|
|
20956
|
-
if (!
|
|
20791
|
+
let Q0;
|
|
20792
|
+
const Ft = new Uint8Array(16);
|
|
20793
|
+
function Mt() {
|
|
20794
|
+
if (!Q0 && (Q0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Q0))
|
|
20957
20795
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
20958
|
-
return
|
|
20796
|
+
return Q0(Ft);
|
|
20959
20797
|
}
|
|
20960
|
-
const
|
|
20961
|
-
for (let
|
|
20962
|
-
|
|
20963
|
-
function
|
|
20964
|
-
return
|
|
20798
|
+
const $0 = [];
|
|
20799
|
+
for (let A = 0; A < 256; ++A)
|
|
20800
|
+
$0.push((A + 256).toString(16).slice(1));
|
|
20801
|
+
function Rt(A, F = 0) {
|
|
20802
|
+
return $0[A[F + 0]] + $0[A[F + 1]] + $0[A[F + 2]] + $0[A[F + 3]] + "-" + $0[A[F + 4]] + $0[A[F + 5]] + "-" + $0[A[F + 6]] + $0[A[F + 7]] + "-" + $0[A[F + 8]] + $0[A[F + 9]] + "-" + $0[A[F + 10]] + $0[A[F + 11]] + $0[A[F + 12]] + $0[A[F + 13]] + $0[A[F + 14]] + $0[A[F + 15]];
|
|
20965
20803
|
}
|
|
20966
|
-
const
|
|
20967
|
-
randomUUID:
|
|
20804
|
+
const xt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _e = {
|
|
20805
|
+
randomUUID: xt
|
|
20968
20806
|
};
|
|
20969
|
-
function
|
|
20970
|
-
if (
|
|
20971
|
-
return
|
|
20972
|
-
|
|
20973
|
-
const P =
|
|
20974
|
-
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128,
|
|
20975
|
-
|
|
20807
|
+
function nr(A, F, w) {
|
|
20808
|
+
if (_e.randomUUID && !F && !A)
|
|
20809
|
+
return _e.randomUUID();
|
|
20810
|
+
A = A || {};
|
|
20811
|
+
const P = A.random || (A.rng || Mt)();
|
|
20812
|
+
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, F) {
|
|
20813
|
+
w = w || 0;
|
|
20976
20814
|
for (let B = 0; B < 16; ++B)
|
|
20977
|
-
|
|
20978
|
-
return
|
|
20815
|
+
F[w + B] = P[B];
|
|
20816
|
+
return F;
|
|
20979
20817
|
}
|
|
20980
|
-
return
|
|
20818
|
+
return Rt(P);
|
|
20981
20819
|
}
|
|
20982
|
-
const
|
|
20983
|
-
const
|
|
20984
|
-
return
|
|
20985
|
-
},
|
|
20820
|
+
const De = (A, F = "en") => A0().set("hour", A.hour).set("minute", A.minute).locale(F).format("h:mm A"), Lt = (A, F) => {
|
|
20821
|
+
const w = A0().set("hour", A.hour).set("minute", A.minute);
|
|
20822
|
+
return A0().set("hour", F.hour).set("minute", F.minute) < w ? "+1" : "";
|
|
20823
|
+
}, Ot = { class: "px-24 py-16 rounded-lg shadow-light-300" }, wt = { class: "text-fm-color-typo-primary" }, vt = { class: "text-fm-color-typo-secondary" }, Bt = { class: "fm-typo-en-body-lg-600 mb-8" }, Pt = { class: "flex items-center justify-center w-full" }, Jt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ht = { class: "flex items-center justify-center" }, Nt = { class: "flex flex-row mb-4 px-4 gap-2" }, ir = /* @__PURE__ */ ce({
|
|
20986
20824
|
__name: "TimeRangeSelect",
|
|
20987
|
-
props: /* @__PURE__ */
|
|
20825
|
+
props: /* @__PURE__ */ X0({
|
|
20988
20826
|
defaultDateRange: {
|
|
20989
20827
|
type: Array,
|
|
20990
20828
|
default: () => [
|
|
@@ -21021,143 +20859,143 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21021
20859
|
},
|
|
21022
20860
|
selectTimeDefaultModifiers: {}
|
|
21023
20861
|
}),
|
|
21024
|
-
emits: /* @__PURE__ */
|
|
21025
|
-
setup(
|
|
21026
|
-
const { t:
|
|
21027
|
-
function
|
|
21028
|
-
|
|
20862
|
+
emits: /* @__PURE__ */ X0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
20863
|
+
setup(A, { emit: F }) {
|
|
20864
|
+
const { t: w, locale: P } = Be(), B = j0(A, "timeRange"), k = F, J = j0(A, "selectTimeDefault");
|
|
20865
|
+
function q(Z) {
|
|
20866
|
+
Z && (B.value = Z, k("update", B.value)), z.value = !1;
|
|
21029
20867
|
}
|
|
21030
|
-
function
|
|
21031
|
-
const
|
|
20868
|
+
function U(Z) {
|
|
20869
|
+
const X = Z.split(":"), u0 = A0().set("hour", Number(X[0])).set("minute", Number(X[1]));
|
|
21032
20870
|
return {
|
|
21033
|
-
hours: Number(
|
|
21034
|
-
minutes: Number(
|
|
21035
|
-
period:
|
|
20871
|
+
hours: Number(u0.format("h")),
|
|
20872
|
+
minutes: Number(u0.format("m")),
|
|
20873
|
+
period: u0.format("A")
|
|
21036
20874
|
};
|
|
21037
20875
|
}
|
|
21038
|
-
const
|
|
21039
|
-
function
|
|
21040
|
-
|
|
20876
|
+
const N = D0(JSON.parse(JSON.stringify(B.value)));
|
|
20877
|
+
function V(Z, X) {
|
|
20878
|
+
N.value.start = JSON.parse(JSON.stringify(Z)), N.value.end = JSON.parse(JSON.stringify(X));
|
|
21041
20879
|
}
|
|
21042
|
-
|
|
21043
|
-
() => [B.value,
|
|
20880
|
+
Z0(
|
|
20881
|
+
() => [B.value, A.defaultDateRange],
|
|
21044
20882
|
() => {
|
|
21045
20883
|
if (B.value) {
|
|
21046
|
-
const
|
|
21047
|
-
(
|
|
21048
|
-
var
|
|
21049
|
-
return
|
|
20884
|
+
const Z = A.defaultDateRange.findIndex(
|
|
20885
|
+
(X) => {
|
|
20886
|
+
var u0, o0, s0, _0;
|
|
20887
|
+
return X.startTime.hour === ((u0 = B.value.start) == null ? void 0 : u0.hour) && X.startTime.minute === ((o0 = B.value.start) == null ? void 0 : o0.minute) && X.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && X.endTime.minute === ((_0 = B.value.end) == null ? void 0 : _0.minute);
|
|
21050
20888
|
}
|
|
21051
20889
|
) + 1;
|
|
21052
|
-
|
|
20890
|
+
Z !== 0 ? J.value = Z : J.value = A.defaultDateRange.length + 1;
|
|
21053
20891
|
}
|
|
21054
20892
|
},
|
|
21055
20893
|
{ deep: !0, immediate: !0 }
|
|
21056
20894
|
);
|
|
21057
|
-
const
|
|
21058
|
-
function
|
|
21059
|
-
|
|
20895
|
+
const z = D0(!1);
|
|
20896
|
+
function r0(Z) {
|
|
20897
|
+
k("chip-closed", Z);
|
|
21060
20898
|
}
|
|
21061
|
-
const
|
|
20899
|
+
const W = H0(() => A.label ? A.label : Je({
|
|
21062
20900
|
startTime: B.value.start,
|
|
21063
20901
|
endTime: B.value.end,
|
|
21064
20902
|
locale: P.value
|
|
21065
20903
|
}));
|
|
21066
|
-
return (
|
|
21067
|
-
const
|
|
21068
|
-
return
|
|
21069
|
-
|
|
21070
|
-
"show-popover":
|
|
20904
|
+
return (Z, X) => {
|
|
20905
|
+
const u0 = O0("FmChip"), o0 = O0("FmRadio"), s0 = O0("FmMenuDivider"), _0 = O0("FmRadioGroup"), f0 = O0("FmTimeInput"), p0 = O0("FmButton"), Q = O0("FmPopover");
|
|
20906
|
+
return k0(), G0("div", null, [
|
|
20907
|
+
C0(Q, {
|
|
20908
|
+
"show-popover": z.value,
|
|
21071
20909
|
placement: "bottom",
|
|
21072
|
-
onPopoverChanged:
|
|
20910
|
+
onPopoverChanged: X[6] || (X[6] = (Y) => z.value = Y)
|
|
21073
20911
|
}, {
|
|
21074
|
-
"popover-button":
|
|
21075
|
-
|
|
21076
|
-
"left-icon":
|
|
21077
|
-
label:
|
|
21078
|
-
removable:
|
|
21079
|
-
onChipClosed:
|
|
20912
|
+
"popover-button": B0(() => [
|
|
20913
|
+
C0(He, {
|
|
20914
|
+
"left-icon": A.label ? "filter_alt" : "schedule",
|
|
20915
|
+
label: W.value,
|
|
20916
|
+
removable: A.removable,
|
|
20917
|
+
onChipClosed: X[0] || (X[0] = (Y) => r0(!0))
|
|
21080
20918
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
21081
20919
|
]),
|
|
21082
|
-
default:
|
|
21083
|
-
var
|
|
20920
|
+
default: B0(() => {
|
|
20921
|
+
var Y, n0, e0, i0;
|
|
21084
20922
|
return [
|
|
21085
|
-
|
|
21086
|
-
|
|
20923
|
+
L0("div", Ot, [
|
|
20924
|
+
C0(_0, {
|
|
21087
20925
|
modelValue: J.value,
|
|
21088
|
-
"onUpdate:modelValue":
|
|
20926
|
+
"onUpdate:modelValue": X[1] || (X[1] = (G) => J.value = G)
|
|
21089
20927
|
}, {
|
|
21090
|
-
default:
|
|
21091
|
-
(
|
|
21092
|
-
key: `range_${
|
|
21093
|
-
value:
|
|
21094
|
-
label:
|
|
21095
|
-
onClick: (
|
|
20928
|
+
default: B0(() => [
|
|
20929
|
+
(k0(!0), G0(ie, null, Le(A.defaultDateRange, (G, t0) => (k0(), fe(o0, {
|
|
20930
|
+
key: `range_${t0}`,
|
|
20931
|
+
value: t0 + 1,
|
|
20932
|
+
label: G.name,
|
|
20933
|
+
onClick: (l0) => V(G.startTime, G.endTime)
|
|
21096
20934
|
}, {
|
|
21097
|
-
label:
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
label: S0(
|
|
20935
|
+
label: B0(() => [
|
|
20936
|
+
L0("p", wt, [
|
|
20937
|
+
pe(v0(G.name) + " ", 1),
|
|
20938
|
+
Oe(C0(u0, {
|
|
20939
|
+
label: S0(w)("report.common.default"),
|
|
21102
20940
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
21103
20941
|
compact: ""
|
|
21104
20942
|
}, null, 8, ["label"]), [
|
|
21105
|
-
[
|
|
20943
|
+
[we, G.isDefault]
|
|
21106
20944
|
])
|
|
21107
20945
|
]),
|
|
21108
|
-
|
|
20946
|
+
L0("p", vt, v0(S0(De)(G.startTime, S0(P0)())) + " - " + v0(S0(De)(G.endTime, S0(P0)())) + " " + v0(S0(Lt)(G.startTime, G.endTime)), 1)
|
|
21109
20947
|
]),
|
|
21110
20948
|
_: 2
|
|
21111
20949
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
21112
|
-
|
|
21113
|
-
|
|
20950
|
+
C0(s0),
|
|
20951
|
+
C0(o0, {
|
|
21114
20952
|
key: "range_custom",
|
|
21115
|
-
label: S0(
|
|
21116
|
-
value:
|
|
20953
|
+
label: S0(w)("report.common.custom"),
|
|
20954
|
+
value: A.defaultDateRange.length + 1
|
|
21117
20955
|
}, null, 8, ["label", "value"])
|
|
21118
20956
|
]),
|
|
21119
20957
|
_: 1
|
|
21120
20958
|
}, 8, ["modelValue"]),
|
|
21121
|
-
J.value ===
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
"model-value":
|
|
21126
|
-
"onUpdate:modelValue":
|
|
21127
|
-
if (
|
|
21128
|
-
const
|
|
21129
|
-
S0(
|
|
20959
|
+
J.value === A.defaultDateRange.length + 1 ? (k0(), G0(ie, { key: 0 }, [
|
|
20960
|
+
L0("p", Bt, v0(S0(w)("report.date.startingTime")), 1),
|
|
20961
|
+
L0("div", Pt, [
|
|
20962
|
+
C0(f0, {
|
|
20963
|
+
"model-value": U(`${(Y = N.value.start) == null ? void 0 : Y.hour}:${(n0 = N.value.start) == null ? void 0 : n0.minute}`),
|
|
20964
|
+
"onUpdate:modelValue": X[2] || (X[2] = (G) => {
|
|
20965
|
+
if (N.value.start) {
|
|
20966
|
+
const t0 = S0(A0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
|
|
20967
|
+
S0(P0)()
|
|
21130
20968
|
);
|
|
21131
|
-
|
|
20969
|
+
N.value.start.hour = t0.get("hour"), N.value.start.minute = t0.get("minute");
|
|
21132
20970
|
}
|
|
21133
20971
|
})
|
|
21134
20972
|
}, null, 8, ["model-value"])
|
|
21135
20973
|
]),
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
"model-value":
|
|
21140
|
-
"onUpdate:modelValue":
|
|
21141
|
-
if (
|
|
21142
|
-
const
|
|
21143
|
-
S0(
|
|
20974
|
+
L0("p", Jt, v0(S0(w)("report.date.endingTime")), 1),
|
|
20975
|
+
L0("div", Ht, [
|
|
20976
|
+
C0(f0, {
|
|
20977
|
+
"model-value": U(`${(e0 = N.value.end) == null ? void 0 : e0.hour}:${(i0 = N.value.end) == null ? void 0 : i0.minute}`),
|
|
20978
|
+
"onUpdate:modelValue": X[3] || (X[3] = (G) => {
|
|
20979
|
+
if (N.value.end) {
|
|
20980
|
+
const t0 = S0(A0)(`${G.hours}:${G.minutes} ${G.period}`, "h:m A").locale(
|
|
20981
|
+
S0(P0)()
|
|
21144
20982
|
);
|
|
21145
|
-
|
|
20983
|
+
N.value.end.hour = t0.get("hour"), N.value.end.minute = t0.get("minute");
|
|
21146
20984
|
}
|
|
21147
20985
|
})
|
|
21148
20986
|
}, null, 8, ["model-value"])
|
|
21149
20987
|
])
|
|
21150
|
-
], 64)) :
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
label: S0(
|
|
20988
|
+
], 64)) : xe("", !0),
|
|
20989
|
+
L0("div", Nt, [
|
|
20990
|
+
X[7] || (X[7] = L0("div", { class: "grow" }, null, -1)),
|
|
20991
|
+
C0(p0, {
|
|
20992
|
+
label: S0(w)("report.common.cancel"),
|
|
21155
20993
|
variant: "tertiary",
|
|
21156
|
-
onClick:
|
|
20994
|
+
onClick: X[4] || (X[4] = (G) => z.value = !1)
|
|
21157
20995
|
}, null, 8, ["label"]),
|
|
21158
|
-
|
|
21159
|
-
label: S0(
|
|
21160
|
-
onClick:
|
|
20996
|
+
C0(p0, {
|
|
20997
|
+
label: S0(w)("report.common.apply"),
|
|
20998
|
+
onClick: X[5] || (X[5] = () => q(JSON.parse(JSON.stringify(N.value))))
|
|
21161
20999
|
}, null, 8, ["label"])
|
|
21162
21000
|
])
|
|
21163
21001
|
])
|
|
@@ -21168,9 +21006,9 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21168
21006
|
]);
|
|
21169
21007
|
};
|
|
21170
21008
|
}
|
|
21171
|
-
}),
|
|
21009
|
+
}), ar = /* @__PURE__ */ ce({
|
|
21172
21010
|
__name: "BaseDialog",
|
|
21173
|
-
props: /* @__PURE__ */
|
|
21011
|
+
props: /* @__PURE__ */ X0({
|
|
21174
21012
|
title: {
|
|
21175
21013
|
type: String,
|
|
21176
21014
|
default: "Title"
|
|
@@ -21187,35 +21025,35 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21187
21025
|
modelValue: { type: Boolean, required: !0 },
|
|
21188
21026
|
modelModifiers: {}
|
|
21189
21027
|
}),
|
|
21190
|
-
emits: /* @__PURE__ */
|
|
21191
|
-
setup(
|
|
21192
|
-
const
|
|
21193
|
-
return
|
|
21194
|
-
|
|
21195
|
-
}), (
|
|
21196
|
-
const
|
|
21197
|
-
return
|
|
21198
|
-
modelValue:
|
|
21199
|
-
"onUpdate:modelValue": J[2] || (J[2] = (
|
|
21028
|
+
emits: /* @__PURE__ */ X0(["confirm"], ["update:modelValue"]),
|
|
21029
|
+
setup(A, { emit: F }) {
|
|
21030
|
+
const w = j0(A, "modelValue"), P = A, B = F;
|
|
21031
|
+
return Z0(w, () => {
|
|
21032
|
+
w.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
21033
|
+
}), (k, J) => {
|
|
21034
|
+
const q = O0("FmButton"), U = O0("FmDialog");
|
|
21035
|
+
return k0(), fe(U, {
|
|
21036
|
+
modelValue: w.value,
|
|
21037
|
+
"onUpdate:modelValue": J[2] || (J[2] = (N) => w.value = N),
|
|
21200
21038
|
overlay: ""
|
|
21201
21039
|
}, {
|
|
21202
|
-
"dialog-header":
|
|
21203
|
-
|
|
21040
|
+
"dialog-header": B0(() => [
|
|
21041
|
+
pe(v0(P.title), 1)
|
|
21204
21042
|
]),
|
|
21205
|
-
default:
|
|
21206
|
-
|
|
21043
|
+
default: B0(() => [
|
|
21044
|
+
ve(k.$slots, "content")
|
|
21207
21045
|
]),
|
|
21208
|
-
"dialog-footer":
|
|
21209
|
-
J[3] || (J[3] =
|
|
21210
|
-
|
|
21046
|
+
"dialog-footer": B0(() => [
|
|
21047
|
+
J[3] || (J[3] = L0("div", { class: "grow" }, null, -1)),
|
|
21048
|
+
C0(q, {
|
|
21211
21049
|
label: P.secondaryButtonLabel,
|
|
21212
21050
|
variant: "tertiary",
|
|
21213
|
-
onClick: J[0] || (J[0] = (
|
|
21051
|
+
onClick: J[0] || (J[0] = (N) => w.value = !1)
|
|
21214
21052
|
}, null, 8, ["label"]),
|
|
21215
|
-
|
|
21053
|
+
C0(q, {
|
|
21216
21054
|
label: P.primaryButtonLabel,
|
|
21217
21055
|
variant: "primary",
|
|
21218
|
-
onClick: J[1] || (J[1] = (
|
|
21056
|
+
onClick: J[1] || (J[1] = (N) => B("confirm"))
|
|
21219
21057
|
}, null, 8, ["label"])
|
|
21220
21058
|
]),
|
|
21221
21059
|
_: 3
|
|
@@ -21224,34 +21062,32 @@ const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21224
21062
|
}
|
|
21225
21063
|
});
|
|
21226
21064
|
export {
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
cr as v,
|
|
21256
|
-
lr as w
|
|
21065
|
+
te as C,
|
|
21066
|
+
Ke as D,
|
|
21067
|
+
Ze as P,
|
|
21068
|
+
tt as R,
|
|
21069
|
+
je as S,
|
|
21070
|
+
et as W,
|
|
21071
|
+
ir as _,
|
|
21072
|
+
ft as a,
|
|
21073
|
+
U0 as b,
|
|
21074
|
+
ar as c,
|
|
21075
|
+
Ee as d,
|
|
21076
|
+
Ae as e,
|
|
21077
|
+
gt as f,
|
|
21078
|
+
rt as g,
|
|
21079
|
+
Kt as h,
|
|
21080
|
+
Gt as i,
|
|
21081
|
+
Lt as j,
|
|
21082
|
+
rr as k,
|
|
21083
|
+
tr as l,
|
|
21084
|
+
zt as m,
|
|
21085
|
+
Se as n,
|
|
21086
|
+
Zt as o,
|
|
21087
|
+
jt as q,
|
|
21088
|
+
er as r,
|
|
21089
|
+
Wt as s,
|
|
21090
|
+
De as t,
|
|
21091
|
+
re as u,
|
|
21092
|
+
nr as v
|
|
21257
21093
|
};
|