@feedmepos/mf-report 5.5.0-beta.0 → 5.5.0-beta.2
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-Cgynv4z6.js → App-3AA82w93.js} +3 -3
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DoZjQrXi.js → Default.vue_vue_type_script_setup_true_lang-C9Z0V0n1.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-9HLzKjix.js → DynamicWidget.vue_vue_type_script_setup_true_lang-C6n257cI.js} +1 -1
- package/dist/{InsightView-CazscxFM.js → InsightView-Ni6vW3aD.js} +7 -8
- package/dist/{Layout-B6nbTiWn.js → Layout-DVo5xdO3.js} +1 -1
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-Bb3LInGT.js +101 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DfXW3V-Z.js → NavigationTab.vue_vue_type_script_setup_true_lang-zwKrwMyb.js} +16152 -7953
- package/dist/{OverviewView-D4f5GD94.js → OverviewView-CElfEZSC.js} +4 -4
- package/dist/{Report-t5C_RytN.js → Report-BfJv7BYZ.js} +2 -2
- package/dist/{ReportEditor-CyI-OeIq.js → ReportEditor-CACAI5rx.js} +3 -3
- package/dist/{ReportView-DSa6UBCG.js → ReportView-Buv6RyGB.js} +5 -5
- package/dist/{Setting-C3cEoUqd.js → Setting-EjtiAOJn.js} +2 -2
- package/dist/{TileEditor-DpD-oLcv.js → TileEditor-DnDiDIo3.js} +3 -3
- package/dist/{TransitionFade-DGn_cYeQ.js → TransitionFade-DBduwk2M.js} +2 -2
- package/dist/app.js +9 -9
- package/dist/{v4-BDHq16P_.js → v4-BS8SFGqd.js} +378 -364
- package/package.json +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-BRAZAoJz.js +0 -7988
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BdDMXz7S.js +0 -276
- package/dist/timeFormat-CAyeO7-a.js +0 -9
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { j as xe, a as
|
|
2
|
-
import { storeToRefs as
|
|
1
|
+
import { j as xe, a as te, F as re, h as X, b as Je, c as ke, n as Ye, d as ue, e as je, k as ze } from "./global-loader-BqFQzk46.js";
|
|
2
|
+
import { storeToRefs as W, defineStore as He } from "pinia";
|
|
3
3
|
import { ref as K, computed as Ae, h as Ke, watch as Xe } from "vue";
|
|
4
4
|
import { useSnackbar as Ze, components as et } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as tt } from "vue-router";
|
|
6
6
|
function qe(O) {
|
|
7
7
|
throw new Error('Could not dynamically require "' + O + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var Ie = {};
|
|
10
10
|
(function(O) {
|
|
11
|
-
var
|
|
12
|
-
w.scheduleImmediate = typeof setImmediate < "u" ? function(
|
|
13
|
-
setImmediate(
|
|
14
|
-
} : function(
|
|
15
|
-
setTimeout(
|
|
11
|
+
var J = typeof xe < "u" ? xe : window, w = Object.create(J);
|
|
12
|
+
w.scheduleImmediate = typeof setImmediate < "u" ? function(q) {
|
|
13
|
+
setImmediate(q);
|
|
14
|
+
} : function(q) {
|
|
15
|
+
setTimeout(q, 0);
|
|
16
16
|
}, w.exports = O, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
|
|
17
|
-
var
|
|
17
|
+
var U = !J.window;
|
|
18
18
|
try {
|
|
19
|
-
typeof WorkerGlobalScope < "u" &&
|
|
19
|
+
typeof WorkerGlobalScope < "u" && J instanceof WorkerGlobalScope && (U = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (U = !0);
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
|
-
if (
|
|
23
|
-
var
|
|
22
|
+
if (U) {
|
|
23
|
+
var k = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : qe)("url");
|
|
24
24
|
Object.defineProperty(w, "location", {
|
|
25
25
|
value: {
|
|
26
26
|
get href() {
|
|
27
|
-
return
|
|
28
|
-
var
|
|
29
|
-
return process.platform != "win32" ?
|
|
27
|
+
return k.pathToFileURL ? k.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
28
|
+
var q = process.cwd();
|
|
29
|
+
return process.platform != "win32" ? q : "/" + q.replace(/\\/g, "/");
|
|
30
30
|
}() + "/";
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}), function() {
|
|
34
|
-
function
|
|
34
|
+
function q() {
|
|
35
35
|
try {
|
|
36
36
|
throw new Error();
|
|
37
37
|
} catch (G) {
|
|
38
|
-
var
|
|
38
|
+
var N = G.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
|
|
39
39
|
do {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
} while (
|
|
43
|
-
return
|
|
40
|
+
var V = B.exec(N);
|
|
41
|
+
V != null && (Q = V);
|
|
42
|
+
} while (V != null);
|
|
43
|
+
return Q[1];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var P = null;
|
|
47
47
|
Object.defineProperty(w, "document", {
|
|
48
48
|
value: {
|
|
49
49
|
get currentScript() {
|
|
50
|
-
return
|
|
50
|
+
return P == null && (P = { src: q() }), P;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
}(), w.dartDeferredLibraryLoader = function(
|
|
54
|
+
}(), w.dartDeferredLibraryLoader = function(q, P, N) {
|
|
55
55
|
try {
|
|
56
|
-
load(
|
|
57
|
-
} catch (
|
|
58
|
-
|
|
56
|
+
load(q), P();
|
|
57
|
+
} catch (B) {
|
|
58
|
+
N(B);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
(function() {
|
|
63
|
-
function
|
|
63
|
+
function P(r, e) {
|
|
64
64
|
for (var i = Object.keys(r), n = 0; n < i.length; n++) {
|
|
65
65
|
var a = i[n];
|
|
66
66
|
e[a] = r[a];
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function N(r, e) {
|
|
70
70
|
for (var i = Object.keys(r), n = 0; n < i.length; n++) {
|
|
71
71
|
var a = i[n];
|
|
72
72
|
e.hasOwnProperty(a) || (e[a] = r[a]);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function B(r, e) {
|
|
76
76
|
Object.assign(e, r);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Q = function() {
|
|
79
79
|
var r = function() {
|
|
80
80
|
};
|
|
81
81
|
r.prototype = { p: {} };
|
|
@@ -94,27 +94,27 @@ var Me = {};
|
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
96
|
}();
|
|
97
|
-
function
|
|
97
|
+
function V(r, e) {
|
|
98
98
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
99
|
-
if (
|
|
99
|
+
if (Q) {
|
|
100
100
|
r.prototype.__proto__ = e.prototype;
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
var i = Object.create(e.prototype);
|
|
104
|
-
|
|
104
|
+
P(r.prototype, i), r.prototype = i;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
function G(r, e) {
|
|
108
108
|
for (var i = 0; i < e.length; i++)
|
|
109
|
-
|
|
109
|
+
V(e[i], r);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
111
|
+
function Y(r, e) {
|
|
112
|
+
B(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function oe(r, e) {
|
|
115
|
+
N(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Z(r, e, i, n) {
|
|
118
118
|
var a = r;
|
|
119
119
|
r[e] = a, r[i] = function() {
|
|
120
120
|
r[i] = function() {
|
|
@@ -131,7 +131,7 @@ var Me = {};
|
|
|
131
131
|
return s;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ee(r, e, i, n) {
|
|
135
135
|
var a = r;
|
|
136
136
|
r[e] = a, r[i] = function() {
|
|
137
137
|
return r[e] === a && (r[e] = n()), r[i] = function() {
|
|
@@ -139,7 +139,7 @@ var Me = {};
|
|
|
139
139
|
}, r[e];
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ae(r, e, i, n) {
|
|
143
143
|
var a = r;
|
|
144
144
|
r[e] = a, r[i] = function() {
|
|
145
145
|
if (r[e] === a) {
|
|
@@ -152,17 +152,17 @@ var Me = {};
|
|
|
152
152
|
}, l;
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function se(r) {
|
|
156
156
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ie(r) {
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ne(r) {
|
|
162
162
|
for (var e = 0; e < r.length; ++e)
|
|
163
163
|
r[e];
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function de(r, e) {
|
|
166
166
|
var i = null;
|
|
167
167
|
return r ? function(n) {
|
|
168
168
|
return i === null && (i = t.closureFromTearOff(e)), new i(n, this);
|
|
@@ -170,23 +170,23 @@ var Me = {};
|
|
|
170
170
|
return i === null && (i = t.closureFromTearOff(e)), new i(this, null);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ce(r) {
|
|
174
174
|
var e = null;
|
|
175
175
|
return function() {
|
|
176
176
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return typeof _ == "number" && (_ +=
|
|
179
|
+
var fe = 0;
|
|
180
|
+
function pe(r, e, i, n, a, s, l, _, d, c) {
|
|
181
|
+
return typeof _ == "number" && (_ += fe), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
var d =
|
|
183
|
+
function le(r, e, i, n, a, s, l, _) {
|
|
184
|
+
var d = pe(r, !0, !1, i, n, a, s, l, _, !1), c = ce(d);
|
|
185
185
|
r[e] = c;
|
|
186
186
|
}
|
|
187
187
|
function ye(r, e, i, n, a, s, l, _, d, c) {
|
|
188
188
|
i = !!i;
|
|
189
|
-
var p =
|
|
189
|
+
var p = pe(r, !1, i, n, a, s, l, _, d, !!c), $ = de(i, p);
|
|
190
190
|
r[e] = $;
|
|
191
191
|
}
|
|
192
192
|
function he(r) {
|
|
@@ -195,7 +195,7 @@ var Me = {};
|
|
|
195
195
|
T.interceptorsByTag = r;
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
P(r, e);
|
|
199
199
|
}
|
|
200
200
|
function Te(r) {
|
|
201
201
|
var e = T.leafTags;
|
|
@@ -203,14 +203,14 @@ var Me = {};
|
|
|
203
203
|
T.leafTags = r;
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
P(r, e);
|
|
207
207
|
}
|
|
208
208
|
function $e(r) {
|
|
209
209
|
var e = T.types, i = e.length;
|
|
210
210
|
return e.push.apply(e, r), i;
|
|
211
211
|
}
|
|
212
212
|
function ge(r, e) {
|
|
213
|
-
return
|
|
213
|
+
return P(e, r), r;
|
|
214
214
|
}
|
|
215
215
|
var j = function() {
|
|
216
216
|
var r = function(i, n, a, s, l) {
|
|
@@ -219,10 +219,10 @@ var Me = {};
|
|
|
219
219
|
};
|
|
220
220
|
}, e = function(i, n, a, s) {
|
|
221
221
|
return function(l, _, d, c) {
|
|
222
|
-
return
|
|
222
|
+
return le(l, _, i, n, a, [d], c, s);
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
return { inherit:
|
|
225
|
+
return { inherit: V, inheritMany: G, mixin: Y, mixinHard: oe, installStaticTearOff: le, installInstanceTearOff: ye, _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: se, lazy: ee, lazyFinal: ae, lazyOld: Z, updateHolder: ge, convertToFastObject: ie, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
|
|
226
226
|
}(), t = {
|
|
227
227
|
JS_CONST: function() {
|
|
228
228
|
},
|
|
@@ -259,8 +259,8 @@ var Me = {};
|
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
Sort__dualPivotQuicksort(r, e, i, n) {
|
|
262
|
-
var a, s, l, _, d, c, p, $, g, m, h = u.JSInt_methods._tdivFast$1(i - e + 1, 6), A = e + h, E = i - h, M = u.JSInt_methods._tdivFast$1(e + i, 2), b = M - h, R = M + h, C = o.getInterceptor$asx(r), F = C.$index(r, A), D = C.$index(r, b), L = C.$index(r, M), v = C.$index(r, R),
|
|
263
|
-
if (n.call$2(F, D) > 0 && (a = D, D = F, F = a), n.call$2(v,
|
|
262
|
+
var a, s, l, _, d, c, p, $, g, m, h = u.JSInt_methods._tdivFast$1(i - e + 1, 6), A = e + h, E = i - h, M = u.JSInt_methods._tdivFast$1(e + i, 2), b = M - h, R = M + h, C = o.getInterceptor$asx(r), F = C.$index(r, A), D = C.$index(r, b), L = C.$index(r, M), v = C.$index(r, R), x = C.$index(r, E);
|
|
263
|
+
if (n.call$2(F, D) > 0 && (a = D, D = F, F = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), n.call$2(F, L) > 0 && (a = L, L = F, F = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(F, v) > 0 && (a = v, v = F, F = a), n.call$2(L, v) > 0 && (a = v, v = L, L = a), n.call$2(D, x) > 0 && (a = x, x = D, D = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), C.$indexSet(r, A, F), C.$indexSet(r, M, L), C.$indexSet(r, E, x), C.$indexSet(r, b, C.$index(r, e)), C.$indexSet(r, R, C.$index(r, i)), s = e + 1, l = i - 1, o.$eq$(n.call$2(D, v), 0)) {
|
|
264
264
|
for (_ = s; _ <= l; ++_)
|
|
265
265
|
if (d = C.$index(r, _), c = n.call$2(d, D), c !== 0)
|
|
266
266
|
if (c < 0)
|
|
@@ -1757,7 +1757,7 @@ var Me = {};
|
|
|
1757
1757
|
return d === 12 ? e === y.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, i, n, a) : l === 9 ? d !== 9 ? !1 : t._isInterfaceSubtype(r, e, i, n, a) : (s = l === 11, s && n === y.Record ? !0 : s && d === 11 ? t._isRecordSubtype(r, e, i, n, a) : !1);
|
|
1758
1758
|
},
|
|
1759
1759
|
_isFunctionSubtype(r, e, i, n, a) {
|
|
1760
|
-
var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v,
|
|
1760
|
+
var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H;
|
|
1761
1761
|
if (!t._isSubtype(r, e._primary, i, n._primary, a) || (s = e._rest, l = n._rest, _ = s._requiredPositional, d = l._requiredPositional, c = _.length, p = d.length, c > p) || ($ = p - c, g = s._optionalPositional, m = l._optionalPositional, h = g.length, A = m.length, c + h < p + A))
|
|
1762
1762
|
return !1;
|
|
1763
1763
|
for (E = 0; E < c; ++E)
|
|
@@ -1771,14 +1771,14 @@ var Me = {};
|
|
|
1771
1771
|
return !1;
|
|
1772
1772
|
for (b = s._named, R = l._named, C = b.length, F = R.length, D = 0, L = 0; L < F; L += 3)
|
|
1773
1773
|
for (v = R[L]; ; ) {
|
|
1774
|
-
if (D >= C || (
|
|
1774
|
+
if (D >= C || (x = b[D], D += 3, v < x))
|
|
1775
1775
|
return !1;
|
|
1776
|
-
if (
|
|
1777
|
-
if (
|
|
1776
|
+
if (H = b[D - 2], x < v) {
|
|
1777
|
+
if (H)
|
|
1778
1778
|
return !1;
|
|
1779
1779
|
continue;
|
|
1780
1780
|
}
|
|
1781
|
-
if (M = R[L + 1],
|
|
1781
|
+
if (M = R[L + 1], H && !M || (M = b[D - 1], !t._isSubtype(r, R[L + 2], a, M, i)))
|
|
1782
1782
|
return !1;
|
|
1783
1783
|
break;
|
|
1784
1784
|
}
|
|
@@ -8342,10 +8342,10 @@ Arguments: [` + d + "]";
|
|
|
8342
8342
|
$signature: 1
|
|
8343
8343
|
}, t.flattenItemSchema_closure.prototype = {
|
|
8344
8344
|
call$1(r) {
|
|
8345
|
-
var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", F = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal",
|
|
8345
|
+
var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", F = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", H = "customAttributes", _e = "layerZeroParentId";
|
|
8346
8346
|
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", i, i, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", n, n, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
8347
8347
|
`, !1, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
8348
|
-
`, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", F, F, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge",
|
|
8348
|
+
`, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", F, F, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", H, H, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", _e, _e, e, r), t.Field_Field$string(e, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code in ('SST','GST'))", r)], y.JSArray_Field);
|
|
8349
8349
|
},
|
|
8350
8350
|
$signature: 0
|
|
8351
8351
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -9822,8 +9822,8 @@ Arguments: [` + d + "]";
|
|
|
9822
9822
|
return n.message;
|
|
9823
9823
|
}
|
|
9824
9824
|
}())), 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))?)?)?$")), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List__create1(t._ensureNativeList(t._setArrayType([1], y.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", u.List_BC_AD, u.List_6xs, u.List_qpm, u.List_qpm, u.List_cIc, u.List_cIc, u.List_h8w, u.List_h8w, u.List_wMy, u.List_wMy, u.List_gc6, u.List_gc6, u.List_3US, u.List_AM_PM)), i(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), i(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'"), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''")), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+")), i(S, "_availableLocales", "$get$_availableLocales", () => {
|
|
9825
|
-
var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2),
|
|
9826
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.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", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", F, "zh_hk", D, "zh_tw", L, "de", v, "de_de",
|
|
9825
|
+
var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), H = t.DeLocale$(u.StartOfWeek_2), _e = t.DeLocale$(u.StartOfWeek_2), Me = t.ItLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ArLyLocale$(!0, u.StartOfWeek_0), Re = t.ArLyLocale$(!1, u.StartOfWeek_0), Fe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
|
|
9826
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.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", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", F, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", H, "de_ch", _e, "it", Me, "it_ch", Ce, "ar", be, "ar_ly", Re, "ar_dz", Fe, "ar_kw", Oe, "ar_sa", Le, "ar_ma", ve, "ar_tn", De, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
|
|
9827
9827
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
9828
9828
|
var n = "createdAt", a = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], y.JSArray_Permission), n);
|
|
9829
9829
|
return t.Schema_Schema$build(t._setArrayType(["restaurantId"], y.JSArray_String), null, new t.addonFlattenItemSchema_closure(), u.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.SCHEMA_NAME_6, n, "", a, s);
|
|
@@ -10074,7 +10074,7 @@ Arguments: [` + d + "]";
|
|
|
10074
10074
|
return this(r, e, i);
|
|
10075
10075
|
}, Function.prototype.call$8 = function(r, e, i, n, a, s, l, _) {
|
|
10076
10076
|
return this(r, e, i, n, a, s, l, _);
|
|
10077
|
-
},
|
|
10077
|
+
}, ne(f), function(r) {
|
|
10078
10078
|
if (typeof document > "u") {
|
|
10079
10079
|
r(null);
|
|
10080
10080
|
return;
|
|
@@ -10097,72 +10097,72 @@ Arguments: [` + d + "]";
|
|
|
10097
10097
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
10098
10098
|
});
|
|
10099
10099
|
})();
|
|
10100
|
-
})(
|
|
10100
|
+
})(Ie);
|
|
10101
10101
|
var Ue = {};
|
|
10102
10102
|
(function(O) {
|
|
10103
|
-
O.load = function(
|
|
10104
|
-
var
|
|
10105
|
-
if (
|
|
10106
|
-
setImmediate(
|
|
10107
|
-
} : function(
|
|
10108
|
-
setTimeout(
|
|
10109
|
-
},
|
|
10110
|
-
var
|
|
10111
|
-
Object.defineProperty(
|
|
10103
|
+
O.load = function(J, w) {
|
|
10104
|
+
var U = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), k = U ? Object.create(globalThis) : globalThis;
|
|
10105
|
+
if (k.scheduleImmediate = typeof setImmediate < "u" ? function(P) {
|
|
10106
|
+
setImmediate(P);
|
|
10107
|
+
} : function(P) {
|
|
10108
|
+
setTimeout(P, 0);
|
|
10109
|
+
}, k.exports = w || O, typeof process < "u" && (k.process = process), typeof __dirname < "u" && (k.__dirname = __dirname), typeof __filename < "u" && (k.__filename = __filename), typeof Buffer < "u" && (k.Buffer = Buffer), U) {
|
|
10110
|
+
var q = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : qe)("url");
|
|
10111
|
+
Object.defineProperty(k, "location", {
|
|
10112
10112
|
value: {
|
|
10113
10113
|
get href() {
|
|
10114
|
-
return
|
|
10115
|
-
var
|
|
10116
|
-
return process.platform != "win32" ?
|
|
10114
|
+
return q.pathToFileURL ? q.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
|
|
10115
|
+
var P = process.cwd();
|
|
10116
|
+
return process.platform != "win32" ? P : "/" + P.replace(/\\/g, "/");
|
|
10117
10117
|
}() + "/";
|
|
10118
10118
|
}
|
|
10119
10119
|
}
|
|
10120
10120
|
}), function() {
|
|
10121
|
-
function
|
|
10121
|
+
function P() {
|
|
10122
10122
|
try {
|
|
10123
10123
|
throw new Error();
|
|
10124
|
-
} catch (
|
|
10125
|
-
var
|
|
10124
|
+
} catch (Y) {
|
|
10125
|
+
var B = Y.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
10126
10126
|
do {
|
|
10127
|
-
var G =
|
|
10128
|
-
G != null && (
|
|
10127
|
+
var G = Q.exec(B);
|
|
10128
|
+
G != null && (V = G);
|
|
10129
10129
|
} while (G != null);
|
|
10130
|
-
return
|
|
10130
|
+
return V[1];
|
|
10131
10131
|
}
|
|
10132
10132
|
}
|
|
10133
|
-
var
|
|
10134
|
-
Object.defineProperty(
|
|
10133
|
+
var N = null;
|
|
10134
|
+
Object.defineProperty(k, "document", {
|
|
10135
10135
|
value: {
|
|
10136
10136
|
get currentScript() {
|
|
10137
|
-
return
|
|
10137
|
+
return N == null && (N = { src: P() }), N;
|
|
10138
10138
|
}
|
|
10139
10139
|
}
|
|
10140
10140
|
});
|
|
10141
|
-
}(),
|
|
10141
|
+
}(), k.dartDeferredLibraryLoader = function(P, N, B) {
|
|
10142
10142
|
try {
|
|
10143
|
-
load(
|
|
10144
|
-
} catch (
|
|
10145
|
-
|
|
10143
|
+
load(P), N();
|
|
10144
|
+
} catch (Q) {
|
|
10145
|
+
B(Q);
|
|
10146
10146
|
}
|
|
10147
10147
|
};
|
|
10148
10148
|
}
|
|
10149
10149
|
(function() {
|
|
10150
|
-
function
|
|
10150
|
+
function N(e, i) {
|
|
10151
10151
|
for (var n = Object.keys(e), a = 0; a < n.length; a++) {
|
|
10152
10152
|
var s = n[a];
|
|
10153
10153
|
i[s] = e[s];
|
|
10154
10154
|
}
|
|
10155
10155
|
}
|
|
10156
|
-
function
|
|
10156
|
+
function B(e, i) {
|
|
10157
10157
|
for (var n = Object.keys(e), a = 0; a < n.length; a++) {
|
|
10158
10158
|
var s = n[a];
|
|
10159
10159
|
i.hasOwnProperty(s) || (i[s] = e[s]);
|
|
10160
10160
|
}
|
|
10161
10161
|
}
|
|
10162
|
-
function
|
|
10162
|
+
function Q(e, i) {
|
|
10163
10163
|
Object.assign(i, e);
|
|
10164
10164
|
}
|
|
10165
|
-
var
|
|
10165
|
+
var V = function() {
|
|
10166
10166
|
var e = function() {
|
|
10167
10167
|
};
|
|
10168
10168
|
e.prototype = { p: {} };
|
|
@@ -10183,25 +10183,25 @@ var Ue = {};
|
|
|
10183
10183
|
}();
|
|
10184
10184
|
function G(e, i) {
|
|
10185
10185
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, i != null) {
|
|
10186
|
-
if (
|
|
10186
|
+
if (V) {
|
|
10187
10187
|
e.prototype.__proto__ = i.prototype;
|
|
10188
10188
|
return;
|
|
10189
10189
|
}
|
|
10190
10190
|
var n = Object.create(i.prototype);
|
|
10191
|
-
|
|
10191
|
+
N(e.prototype, n), e.prototype = n;
|
|
10192
10192
|
}
|
|
10193
10193
|
}
|
|
10194
|
-
function
|
|
10194
|
+
function Y(e, i) {
|
|
10195
10195
|
for (var n = 0; n < i.length; n++)
|
|
10196
10196
|
G(i[n], e);
|
|
10197
10197
|
}
|
|
10198
|
-
function ae(e, i) {
|
|
10199
|
-
H(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10200
|
-
}
|
|
10201
10198
|
function oe(e, i) {
|
|
10202
|
-
|
|
10199
|
+
Q(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10203
10200
|
}
|
|
10204
|
-
function
|
|
10201
|
+
function Z(e, i) {
|
|
10202
|
+
B(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10203
|
+
}
|
|
10204
|
+
function ee(e, i, n, a) {
|
|
10205
10205
|
var s = e;
|
|
10206
10206
|
e[i] = s, e[n] = function() {
|
|
10207
10207
|
e[n] = function() {
|
|
@@ -10218,7 +10218,7 @@ var Ue = {};
|
|
|
10218
10218
|
return l;
|
|
10219
10219
|
};
|
|
10220
10220
|
}
|
|
10221
|
-
function
|
|
10221
|
+
function ae(e, i, n, a) {
|
|
10222
10222
|
var s = e;
|
|
10223
10223
|
e[i] = s, e[n] = function() {
|
|
10224
10224
|
return e[i] === s && (e[i] = a()), e[n] = function() {
|
|
@@ -10226,7 +10226,7 @@ var Ue = {};
|
|
|
10226
10226
|
}, e[i];
|
|
10227
10227
|
};
|
|
10228
10228
|
}
|
|
10229
|
-
function
|
|
10229
|
+
function se(e, i, n, a) {
|
|
10230
10230
|
var s = e;
|
|
10231
10231
|
e[i] = s, e[n] = function() {
|
|
10232
10232
|
if (e[i] === s) {
|
|
@@ -10239,17 +10239,17 @@ var Ue = {};
|
|
|
10239
10239
|
}, _;
|
|
10240
10240
|
};
|
|
10241
10241
|
}
|
|
10242
|
-
function
|
|
10242
|
+
function ie(e) {
|
|
10243
10243
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
10244
10244
|
}
|
|
10245
|
-
function
|
|
10245
|
+
function ne(e) {
|
|
10246
10246
|
return e;
|
|
10247
10247
|
}
|
|
10248
|
-
function
|
|
10248
|
+
function de(e) {
|
|
10249
10249
|
for (var i = 0; i < e.length; ++i)
|
|
10250
10250
|
e[i];
|
|
10251
10251
|
}
|
|
10252
|
-
function
|
|
10252
|
+
function ce(e, i) {
|
|
10253
10253
|
var n = null;
|
|
10254
10254
|
return e ? function(a) {
|
|
10255
10255
|
return n === null && (n = o.closureFromTearOff(i)), new n(a, this);
|
|
@@ -10257,23 +10257,23 @@ var Ue = {};
|
|
|
10257
10257
|
return n === null && (n = o.closureFromTearOff(i)), new n(this, null);
|
|
10258
10258
|
};
|
|
10259
10259
|
}
|
|
10260
|
-
function
|
|
10260
|
+
function fe(e) {
|
|
10261
10261
|
var i = null;
|
|
10262
10262
|
return function() {
|
|
10263
10263
|
return i === null && (i = o.closureFromTearOff(e).prototype), i;
|
|
10264
10264
|
};
|
|
10265
10265
|
}
|
|
10266
|
-
var
|
|
10267
|
-
function
|
|
10268
|
-
return typeof d == "number" && (d +=
|
|
10266
|
+
var pe = 0;
|
|
10267
|
+
function le(e, i, n, a, s, l, _, d, c, p) {
|
|
10268
|
+
return typeof d == "number" && (d += pe), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: p };
|
|
10269
10269
|
}
|
|
10270
10270
|
function ye(e, i, n, a, s, l, _, d) {
|
|
10271
|
-
var c =
|
|
10271
|
+
var c = le(e, !0, !1, n, a, s, l, _, d, !1), p = fe(c);
|
|
10272
10272
|
e[i] = p;
|
|
10273
10273
|
}
|
|
10274
10274
|
function he(e, i, n, a, s, l, _, d, c, p) {
|
|
10275
10275
|
n = !!n;
|
|
10276
|
-
var $ =
|
|
10276
|
+
var $ = le(e, !1, n, a, s, l, _, d, c, !!p), g = ce(n, $);
|
|
10277
10277
|
e[i] = g;
|
|
10278
10278
|
}
|
|
10279
10279
|
function Te(e) {
|
|
@@ -10282,7 +10282,7 @@ var Ue = {};
|
|
|
10282
10282
|
I.interceptorsByTag = e;
|
|
10283
10283
|
return;
|
|
10284
10284
|
}
|
|
10285
|
-
|
|
10285
|
+
N(e, i);
|
|
10286
10286
|
}
|
|
10287
10287
|
function $e(e) {
|
|
10288
10288
|
var i = I.leafTags;
|
|
@@ -10290,14 +10290,14 @@ var Ue = {};
|
|
|
10290
10290
|
I.leafTags = e;
|
|
10291
10291
|
return;
|
|
10292
10292
|
}
|
|
10293
|
-
|
|
10293
|
+
N(e, i);
|
|
10294
10294
|
}
|
|
10295
10295
|
function ge(e) {
|
|
10296
10296
|
var i = I.types, n = i.length;
|
|
10297
10297
|
return i.push.apply(i, e), n;
|
|
10298
10298
|
}
|
|
10299
10299
|
function j(e, i) {
|
|
10300
|
-
return
|
|
10300
|
+
return N(i, e), e;
|
|
10301
10301
|
}
|
|
10302
10302
|
var t = function() {
|
|
10303
10303
|
var e = function(n, a, s, l, _) {
|
|
@@ -10309,7 +10309,7 @@ var Ue = {};
|
|
|
10309
10309
|
return ye(_, d, n, a, s, [c], p, l);
|
|
10310
10310
|
};
|
|
10311
10311
|
};
|
|
10312
|
-
return { inherit: G, inheritMany:
|
|
10312
|
+
return { inherit: G, inheritMany: Y, mixin: oe, mixinHard: Z, installStaticTearOff: ye, installInstanceTearOff: he, _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: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: ie, lazy: ae, lazyFinal: se, lazyOld: ee, updateHolder: j, convertToFastObject: ne, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
|
|
10313
10313
|
}(), o = {
|
|
10314
10314
|
JS_CONST: function() {
|
|
10315
10315
|
},
|
|
@@ -10355,8 +10355,8 @@ var Ue = {};
|
|
|
10355
10355
|
}
|
|
10356
10356
|
},
|
|
10357
10357
|
Sort__dualPivotQuicksort(e, i, n, a) {
|
|
10358
|
-
var s, l, _, d, c, p, $, g, m, h, A = f.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = f.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, F = u.getInterceptor$asx(e), D = F.$index(e, E), L = F.$index(e, R), v = F.$index(e, b),
|
|
10359
|
-
if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(
|
|
10358
|
+
var s, l, _, d, c, p, $, g, m, h, A = f.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = f.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, F = u.getInterceptor$asx(e), D = F.$index(e, E), L = F.$index(e, R), v = F.$index(e, b), x = F.$index(e, C), H = F.$index(e, M);
|
|
10359
|
+
if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), a.call$2(D, v) > 0 && (s = v, v = D, D = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(D, x) > 0 && (s = x, x = D, D = s), a.call$2(v, x) > 0 && (s = x, x = v, v = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), F.$indexSet(e, E, D), F.$indexSet(e, b, v), F.$indexSet(e, M, H), F.$indexSet(e, R, F.$index(e, i)), F.$indexSet(e, C, F.$index(e, n)), l = i + 1, _ = n - 1, u.$eq$(a.call$2(L, x), 0)) {
|
|
10360
10360
|
for (d = l; d <= _; ++d)
|
|
10361
10361
|
if (c = F.$index(e, d), p = a.call$2(c, L), p !== 0)
|
|
10362
10362
|
if (p < 0)
|
|
@@ -10378,9 +10378,9 @@ var Ue = {};
|
|
|
10378
10378
|
for (d = l; d <= _; ++d)
|
|
10379
10379
|
if (c = F.$index(e, d), a.call$2(c, L) < 0)
|
|
10380
10380
|
d !== l && (F.$indexSet(e, d, F.$index(e, l)), F.$indexSet(e, l, c)), ++l;
|
|
10381
|
-
else if (a.call$2(c,
|
|
10381
|
+
else if (a.call$2(c, x) > 0)
|
|
10382
10382
|
for (; ; )
|
|
10383
|
-
if (a.call$2(F.$index(e, _),
|
|
10383
|
+
if (a.call$2(F.$index(e, _), x) > 0) {
|
|
10384
10384
|
if (--_, _ < d)
|
|
10385
10385
|
break;
|
|
10386
10386
|
continue;
|
|
@@ -10390,18 +10390,18 @@ var Ue = {};
|
|
|
10390
10390
|
}
|
|
10391
10391
|
m = !1;
|
|
10392
10392
|
}
|
|
10393
|
-
if (h = l - 1, F.$indexSet(e, i, F.$index(e, h)), F.$indexSet(e, h, L), h = _ + 1, F.$indexSet(e, n, F.$index(e, h)), F.$indexSet(e, h,
|
|
10393
|
+
if (h = l - 1, F.$indexSet(e, i, F.$index(e, h)), F.$indexSet(e, h, L), h = _ + 1, F.$indexSet(e, n, F.$index(e, h)), F.$indexSet(e, h, x), o.Sort__doSort(e, i, l - 2, a), o.Sort__doSort(e, _ + 2, n, a), !m)
|
|
10394
10394
|
if (l < E && _ > M) {
|
|
10395
10395
|
for (; u.$eq$(a.call$2(F.$index(e, l), L), 0); )
|
|
10396
10396
|
++l;
|
|
10397
|
-
for (; u.$eq$(a.call$2(F.$index(e, _),
|
|
10397
|
+
for (; u.$eq$(a.call$2(F.$index(e, _), x), 0); )
|
|
10398
10398
|
--_;
|
|
10399
10399
|
for (d = l; d <= _; ++d)
|
|
10400
10400
|
if (c = F.$index(e, d), a.call$2(c, L) === 0)
|
|
10401
10401
|
d !== l && (F.$indexSet(e, d, F.$index(e, l)), F.$indexSet(e, l, c)), ++l;
|
|
10402
|
-
else if (a.call$2(c,
|
|
10402
|
+
else if (a.call$2(c, x) === 0)
|
|
10403
10403
|
for (; ; )
|
|
10404
|
-
if (a.call$2(F.$index(e, _),
|
|
10404
|
+
if (a.call$2(F.$index(e, _), x) === 0) {
|
|
10405
10405
|
if (--_, _ < d)
|
|
10406
10406
|
break;
|
|
10407
10407
|
continue;
|
|
@@ -10743,8 +10743,8 @@ var Ue = {};
|
|
|
10743
10743
|
var i, n, a, s, l, _, d, c, p, $, g = e.co, m = e.iS, h = e.iI, A = e.nDA, E = e.aI, M = e.fs, b = e.cs, R = M[0], C = b[0], F = g[R], D = e.fT;
|
|
10744
10744
|
for (D.toString, i = Object.create(m ? new o.StaticClosure().constructor.prototype : new o.BoundClosure(null, null).constructor.prototype), i.$initialize = i.constructor, m ? n = function() {
|
|
10745
10745
|
this.$initialize();
|
|
10746
|
-
} : n = function(v,
|
|
10747
|
-
this.$initialize(v,
|
|
10746
|
+
} : n = function(v, x) {
|
|
10747
|
+
this.$initialize(v, x);
|
|
10748
10748
|
}, i.constructor = n, n.prototype = i, i.$_name = R, i.$_target = F, a = !m, a ? s = o.Closure_forwardCallTo(R, F, h, A) : (i.$static_name = R, s = F), i.$signature = o.Closure__computeSignatureFunctionNewRti(D, m, h), i[C] = s, l = s, _ = 1; _ < M.length; ++_)
|
|
10749
10749
|
d = M[_], typeof d == "string" ? (c = g[d], p = d, d = c) : p = "", $ = b[_], $ != null && (a && (d = o.Closure_forwardCallTo(p, d, h, A)), i[$] = d), _ === E && (l = d);
|
|
10750
10750
|
return i["call*"] = l, i.$requiredArgCount = e.rC, i.$defaultValues = e.dV, n;
|
|
@@ -11473,24 +11473,24 @@ var Ue = {};
|
|
|
11473
11473
|
return l + "})";
|
|
11474
11474
|
},
|
|
11475
11475
|
_functionRtiToString(e, i, n) {
|
|
11476
|
-
var a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v,
|
|
11476
|
+
var a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x = ", ";
|
|
11477
11477
|
if (n != null) {
|
|
11478
11478
|
for (a = n.length, i == null ? (i = o._setArrayType([], r.JSArray_String), s = null) : s = i.length, l = i.length, _ = a; _ > 0; --_)
|
|
11479
11479
|
i.push("T" + (l + _));
|
|
11480
|
-
for (d = r.nullable_Object, c = r.legacy_Object, p = "<", $ = "", _ = 0; _ < a; ++_, $ =
|
|
11480
|
+
for (d = r.nullable_Object, c = r.legacy_Object, p = "<", $ = "", _ = 0; _ < a; ++_, $ = x)
|
|
11481
11481
|
p = f.JSString_methods.$add(p + $, i[i.length - 1 - _]), g = n[_], m = g._kind, m === 2 || m === 3 || m === 4 || m === 5 || g === d ? h = !0 : g !== c ? h = !1 : h = !0, h || (p += " extends " + o._rtiToString(g, i));
|
|
11482
11482
|
p += ">";
|
|
11483
11483
|
} else
|
|
11484
11484
|
p = "", s = null;
|
|
11485
|
-
for (d = e._primary, A = e._rest, E = A._requiredPositional, M = E.length, b = A._optionalPositional, R = b.length, C = A._named, F = C.length, D = o._rtiToString(d, i), L = "", v = "", _ = 0; _ < M; ++_, v =
|
|
11485
|
+
for (d = e._primary, A = e._rest, E = A._requiredPositional, M = E.length, b = A._optionalPositional, R = b.length, C = A._named, F = C.length, D = o._rtiToString(d, i), L = "", v = "", _ = 0; _ < M; ++_, v = x)
|
|
11486
11486
|
L += v + o._rtiToString(E[_], i);
|
|
11487
11487
|
if (R > 0) {
|
|
11488
|
-
for (L += v + "[", v = "", _ = 0; _ < R; ++_, v =
|
|
11488
|
+
for (L += v + "[", v = "", _ = 0; _ < R; ++_, v = x)
|
|
11489
11489
|
L += v + o._rtiToString(b[_], i);
|
|
11490
11490
|
L += "]";
|
|
11491
11491
|
}
|
|
11492
11492
|
if (F > 0) {
|
|
11493
|
-
for (L += v + "{", v = "", _ = 0; _ < F; _ += 3, v =
|
|
11493
|
+
for (L += v + "{", v = "", _ = 0; _ < F; _ += 3, v = x)
|
|
11494
11494
|
L += v, C[_ + 1] && (L += "required "), L += o._rtiToString(C[_ + 2], i) + " " + C[_];
|
|
11495
11495
|
L += "}";
|
|
11496
11496
|
}
|
|
@@ -11852,7 +11852,7 @@ var Ue = {};
|
|
|
11852
11852
|
return c === 12 ? i === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, i, n, a, s) : _ === 9 ? c !== 9 ? !1 : o._isInterfaceSubtype(e, i, n, a, s) : (l = _ === 11, l && a === r.Record ? !0 : l && c === 11 ? o._isRecordSubtype(e, i, n, a, s) : !1);
|
|
11853
11853
|
},
|
|
11854
11854
|
_isFunctionSubtype(e, i, n, a, s) {
|
|
11855
|
-
var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v,
|
|
11855
|
+
var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H, _e;
|
|
11856
11856
|
if (!o._isSubtype(e, i._primary, n, a._primary, s) || (l = i._rest, _ = a._rest, d = l._requiredPositional, c = _._requiredPositional, p = d.length, $ = c.length, p > $) || (g = $ - p, m = l._optionalPositional, h = _._optionalPositional, A = m.length, E = h.length, p + A < $ + E))
|
|
11857
11857
|
return !1;
|
|
11858
11858
|
for (M = 0; M < p; ++M)
|
|
@@ -11865,15 +11865,15 @@ var Ue = {};
|
|
|
11865
11865
|
if (b = m[g + M], !o._isSubtype(e, h[M], s, b, n))
|
|
11866
11866
|
return !1;
|
|
11867
11867
|
for (R = l._named, C = _._named, F = R.length, D = C.length, L = 0, v = 0; v < D; v += 3)
|
|
11868
|
-
for (
|
|
11869
|
-
if (L >= F || (
|
|
11868
|
+
for (x = C[v]; ; ) {
|
|
11869
|
+
if (L >= F || (H = R[L], L += 3, x < H))
|
|
11870
11870
|
return !1;
|
|
11871
|
-
if (
|
|
11872
|
-
if (
|
|
11871
|
+
if (_e = R[L - 2], H < x) {
|
|
11872
|
+
if (_e)
|
|
11873
11873
|
return !1;
|
|
11874
11874
|
continue;
|
|
11875
11875
|
}
|
|
11876
|
-
if (b = C[v + 1],
|
|
11876
|
+
if (b = C[v + 1], _e && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
|
|
11877
11877
|
return !1;
|
|
11878
11878
|
break;
|
|
11879
11879
|
}
|
|
@@ -13230,17 +13230,17 @@ var Ue = {};
|
|
|
13230
13230
|
return e instanceof o.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? n = !0 : n = e instanceof o.ScorecardDatasourceConfigModel && e.isCumulative, n ? (n = r.XYDatasetModel, o.List_List$of(o.ListExtensions_mapIndexed(i, new o.accumulate_closure(e), n, n), !0, n)) : i;
|
|
13231
13231
|
},
|
|
13232
13232
|
formatBaseXYChartData(e, i, n, a) {
|
|
13233
|
-
var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v,
|
|
13233
|
+
var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x = null;
|
|
13234
13234
|
if (n.length === 0)
|
|
13235
|
-
return s = o._setArrayType([], r.JSArray_String), l = o._setArrayType([], r.JSArray_XYDatasetModel), _ = o.IterableExtension_get_firstOrNull(n), new o.BaseXYChartDataModel(e, s, l, new o.DateComparison(_ == null ?
|
|
13235
|
+
return s = o._setArrayType([], r.JSArray_String), l = o._setArrayType([], r.JSArray_XYDatasetModel), _ = o.IterableExtension_get_firstOrNull(n), new o.BaseXYChartDataModel(e, s, l, new o.DateComparison(_ == null ? x : _.dateRange, x));
|
|
13236
13236
|
for (d = f.JSArray_methods.get$first(n).columns, s = r.QueryResponse, c = o._formatRows(o.ListExtension_sublistOrEmpty(n, 0, 1, s)), p = o._formatRows(o.ListExtension_sublistOrEmpty(n, 1, 2, s)), p.length !== 0 && (s = o._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), $ = o.List_List$of(new o.MappedListIterable(d, new o.formatBaseXYChartData_closure(), s), !0, s._eval$1("ListIterable.E")), g = o.compare(new o.ComparisonData($, p), new o.ComparisonData($, c)), p = g.comparison, c = g.main), i.breakdownDimension == null && (m = f.JSArray_methods.indexWhere$1(d, new o.formatBaseXYChartData_closure0()), s = o._arrayInstanceType(c)._eval$1("MappedListIterable<1,List<@>>"), c = o.List_List$of(new o.MappedListIterable(c, new o.formatBaseXYChartData_closure1(d, m), s), !0, s._eval$1("ListIterable.E")), p.length !== 0 && (s = o._arrayInstanceType(p)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(p, new o.formatBaseXYChartData_closure2(d, m), s), !0, s._eval$1("ListIterable.E")))), s = r.JSArray_String, h = o._setArrayType([], s), A = o._setArrayType([], s), s = c.length, E = 0; E < c.length; c.length === s || (0, o.throwConcurrentModificationError)(c), ++E)
|
|
13237
13237
|
M = c[E], l = u.getInterceptor$asx(M), h.push(u.toString$0$(l.$index(M, 0))), A.push(u.toString$0$(l.$index(M, 1)));
|
|
13238
13238
|
for (s = r.String, l = o.LinkedHashSet_LinkedHashSet$from(h, s), h = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), s = o.LinkedHashSet_LinkedHashSet$from(A, s), A = o.List_List$of(s, !0, o._instanceType(s)._precomputed1), b = o._setArrayType([], r.JSArray_XYDatasetModel), s = A.length, l = r.JSArray_num, E = 0; E < A.length; A.length === s || (0, o.throwConcurrentModificationError)(A), ++E) {
|
|
13239
13239
|
for (R = A[E], C = o._setArrayType([], l), F = o._setArrayType([], l), _ = h.length, D = 0; D < h.length; h.length === _ || (0, o.throwConcurrentModificationError)(h), ++D)
|
|
13240
|
-
L = h[D], v = o.IterableExtension_firstWhereOrNull(c, new o.formatBaseXYChartData_closure3(L, R)), v = v == null ?
|
|
13240
|
+
L = h[D], v = o.IterableExtension_firstWhereOrNull(c, new o.formatBaseXYChartData_closure3(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), C.push(v ?? 0), p.length !== 0 && (v = o.IterableExtension_firstWhereOrNull(p, new o.formatBaseXYChartData_closure4(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), F.push(v ?? 0));
|
|
13241
13241
|
b.push(new o.XYDatasetModel(R, !1, C)), F.length !== 0 && b.push(new o.XYDatasetModel(R, !0, F));
|
|
13242
13242
|
}
|
|
13243
|
-
return b = o.accumulate(i, b), s = o.IterableExtension_get_firstOrNull(n), s = s == null ?
|
|
13243
|
+
return b = o.accumulate(i, b), s = o.IterableExtension_get_firstOrNull(n), s = s == null ? x : s.dateRange, l = o.ListExtension_elementAtOrNull(n, 1), new o.BaseXYChartDataModel(e, h, b, new o.DateComparison(s, l == null ? x : l.dateRange));
|
|
13244
13244
|
},
|
|
13245
13245
|
_formatRows_closure: function(i) {
|
|
13246
13246
|
this.response = i;
|
|
@@ -13583,15 +13583,15 @@ var Ue = {};
|
|
|
13583
13583
|
}
|
|
13584
13584
|
},
|
|
13585
13585
|
formatChartData(e) {
|
|
13586
|
-
var i, n = f.C_JsonCodec.decode$2$reviver(
|
|
13587
|
-
return _ instanceof o.CircularDatasourceConfigModel ? i = o.formatCircularChartData(_, l, c).toJson$0() : _ instanceof o.BaseXYDatasourceConfigModel ? i = o.formatBaseXYChartData(d, _, l, c).toJson$0() : _ instanceof o.TableDatasourceConfigModel ? i = o.formatTableChartData(_, l, c).toJson$0() : i = d === f.ChartType_3 ? o.formatScoreCardChartData(_, l, c).toJson$0() : null,
|
|
13586
|
+
var i, n = f.C_JsonCodec.decode$2$reviver(k.JSON.stringify(e), null), a = u.getInterceptor$asx(n), s = u.map$1$1$ax(r.List_dynamic._as(a.$index(n, "responses")), new o.formatChartData_closure(), r.QueryResponse), l = o.List_List$of(s, !0, s.$ti._eval$1("ListIterable.E")), _ = o._getConfig(a.$index(n, "widget")), d = o.EnumByName_byName(f.List_OX3, u.$index$asx(a.$index(n, "widget"), "type")), c = a.$index(n, "country");
|
|
13587
|
+
return _ instanceof o.CircularDatasourceConfigModel ? i = o.formatCircularChartData(_, l, c).toJson$0() : _ instanceof o.BaseXYDatasourceConfigModel ? i = o.formatBaseXYChartData(d, _, l, c).toJson$0() : _ instanceof o.TableDatasourceConfigModel ? i = o.formatTableChartData(_, l, c).toJson$0() : i = d === f.ChartType_3 ? o.formatScoreCardChartData(_, l, c).toJson$0() : null, k.JSON.parse(f.C_JsonCodec.encode$2$toEncodable(i, null));
|
|
13588
13588
|
},
|
|
13589
13589
|
formatChartData_closure: function() {
|
|
13590
13590
|
},
|
|
13591
13591
|
Exports: function() {
|
|
13592
13592
|
},
|
|
13593
13593
|
main() {
|
|
13594
|
-
u.set$formatChartData$x(
|
|
13594
|
+
u.set$formatChartData$x(k.exports, o.allowInterop(o.js__formatChartData$closure()));
|
|
13595
13595
|
},
|
|
13596
13596
|
_Exports: function() {
|
|
13597
13597
|
},
|
|
@@ -17363,18 +17363,18 @@ Arguments: [` + c + "]";
|
|
|
17363
17363
|
$signature: 0
|
|
17364
17364
|
}, o._formatTableResponse_closure5.prototype = {
|
|
17365
17365
|
call$2(e, i) {
|
|
17366
|
-
var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L = null, v = r.JSArray_List_dynamic,
|
|
17366
|
+
var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L = null, v = r.JSArray_List_dynamic, x = o._setArrayType([[]], v), H = o._setArrayType([[]], v);
|
|
17367
17367
|
for (v = this.headers, n = i.value, a = r.dynamic, s = r.JSArray_String, l = r.String, _ = this.metricColumns, d = 0; d < v.length; ++d)
|
|
17368
17368
|
if (c = v[d], p = u.getInterceptor$ax(c), $ = p.map$1$1(c, new o._formatTableResponse__closure5(), l).join$1(0, "|"), o.IterableExtension_firstWhereOrNull(c, new o._formatTableResponse__closure6()) != null)
|
|
17369
|
-
for (g = p.firstWhere$1(c, new o._formatTableResponse__closure7()), m = p.fold$2(c, !0, new o._formatTableResponse__closure8(i)), p =
|
|
17370
|
-
M =
|
|
17369
|
+
for (g = p.firstWhere$1(c, new o._formatTableResponse__closure7()), m = p.fold$2(c, !0, new o._formatTableResponse__closure8(i)), p = x.length, h = g.type, A = g.columnValue, E = 0; E < x.length; x.length === p || (0, o.throwConcurrentModificationError)(x), ++E)
|
|
17370
|
+
M = x[E], m ? (b = n.$index(0, A), R = M.length, d >= R && f.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b) : (b = h == null ? L : o.DataTypeExtension_toData(h, L), R = M.length, d >= R && f.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b);
|
|
17371
17371
|
else if (f.JSArray_methods.contains$1(o._setArrayType(["_metric_name", "_metric_value"], s), $))
|
|
17372
17372
|
for (p = $ === "_metric_value", h = $ === "_metric_name", C = 0; C < _.length; ++C)
|
|
17373
|
-
F = _[C], o.ListExtension_elementAtOrNull(
|
|
17373
|
+
F = _[C], o.ListExtension_elementAtOrNull(x, C) == null && (x.push(o.List_List$of(x[0], !0, a)), H.push(o.List_List$of(H[0], !0, a))), h ? (A = x[C], b = F.label, R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b, H[C].push(b)) : p && (A = x[C], b = n.$index(0, F.id), R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b);
|
|
17374
17374
|
else
|
|
17375
|
-
for (D = 0; D <
|
|
17376
|
-
p =
|
|
17377
|
-
return v = r.Map_String_dynamic, n = o.List_List$of(e, !0, v), f.JSArray_methods.addAll$1(n, o.ListExtensions_mapIndexed(
|
|
17375
|
+
for (D = 0; D < x.length; ++D)
|
|
17376
|
+
p = x[D], h = n.$index(0, $), A = p.length, d >= A && f.JSArray_methods.addAll$1(p, o.List_List$filled(d - A + 1, L, !1, a)), p[d] = h, H[D].push(n.$index(0, $));
|
|
17377
|
+
return v = r.Map_String_dynamic, n = o.List_List$of(e, !0, v), f.JSArray_methods.addAll$1(n, o.ListExtensions_mapIndexed(x, new o._formatTableResponse__closure9(H, i), r.List_dynamic, v)), n;
|
|
17378
17378
|
},
|
|
17379
17379
|
$signature: 76
|
|
17380
17380
|
}, o._formatTableResponse__closure5.prototype = {
|
|
@@ -17792,7 +17792,7 @@ Arguments: [` + c + "]";
|
|
|
17792
17792
|
}
|
|
17793
17793
|
}
|
|
17794
17794
|
function l(p, $) {
|
|
17795
|
-
return
|
|
17795
|
+
return k.HTMLElement && p instanceof HTMLElement ? "HTMLElement" : s(p, $);
|
|
17796
17796
|
}
|
|
17797
17797
|
function _(p) {
|
|
17798
17798
|
if (typeof window > "u" || typeof window[p] > "u") return null;
|
|
@@ -17917,8 +17917,8 @@ Arguments: [` + c + "]";
|
|
|
17917
17917
|
return a.message;
|
|
17918
17918
|
}
|
|
17919
17919
|
}())), i(T, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => o.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), i(T, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(f.Type_Object_xQ6)), i(T, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List__create1(o._ensureNativeList(o._setArrayType([1], r.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? f.C_Endian0 : f.C_Endian), i(T, "_clockKey", "$get$_clockKey", () => new o.Object()), i(T, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", f.List_BC_AD, f.List_6xs, f.List_qpm, f.List_qpm, f.List_cIc, f.List_cIc, f.List_h8w, f.List_h8w, f.List_wMy, f.List_wMy, f.List_gc6, f.List_gc6, f.List_3US, f.List_Q1_Q2_Q3_Q4, f.List_bJM, f.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", f.Map_EQ6TW)), i(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), i(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'"), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], o.findType("JSArray<RegExp>"))), i(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''")), i(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+")), n(T, "_availableLocales", "$get$_availableLocales", () => {
|
|
17920
|
-
var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), F = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1),
|
|
17921
|
-
return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", F, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de",
|
|
17920
|
+
var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), F = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1), x = o.DeLocale$(f.StartOfWeek_2), H = o.DeLocale$(f.StartOfWeek_2), _e = o.DeLocale$(f.StartOfWeek_2), Me = o.DeLocale$(f.StartOfWeek_2), Ce = o.ItLocale$(f.StartOfWeek_2), be = o.ItLocale$(f.StartOfWeek_2), Re = o.ArLyLocale$(!0, f.StartOfWeek_0), Fe = o.ArLyLocale$(!1, f.StartOfWeek_0), Oe = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), Le = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), We = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
|
|
17921
|
+
return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", F, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", H, "de_at", _e, "de_ch", Me, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", ve, "ar_ma", De, "ar_tn", We, "az", new o.AzLocale(f.StartOfWeek_2), "id", new o.IdLocale(f.StartOfWeek_1), "ja", new o.JaLocale(f.StartOfWeek_1), "ko", new o.KoLocale(f.StartOfWeek_1), "ru", new o.RuLocale(f.StartOfWeek_2), "uk", new o.UkLocale(f.StartOfWeek_2), "hi", new o.HiLocale(f.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(f.StartOfWeek_2), "tr", new o.TrLocale(f.StartOfWeek_2), "sv", new o.SvLocale(f.StartOfWeek_2), "nb", new o.NbLocale(f.StartOfWeek_2), "fa", new o.FaLocale(f.StartOfWeek_0), "bn", new o.BnLocale(f.StartOfWeek_1), "nl", new o.NlLocale(f.StartOfWeek_2), "th", new o.ThLocale(f.StartOfWeek_1)], r.String, o.findType("Locale"));
|
|
17922
17922
|
});
|
|
17923
17923
|
}(), function() {
|
|
17924
17924
|
(function() {
|
|
@@ -17950,7 +17950,7 @@ Arguments: [` + c + "]";
|
|
|
17950
17950
|
return this(e, i, n, a, s, l, _, d);
|
|
17951
17951
|
}, Function.prototype.call$3 = function(e, i, n) {
|
|
17952
17952
|
return this(e, i, n);
|
|
17953
|
-
},
|
|
17953
|
+
}, de(S), function(e) {
|
|
17954
17954
|
if (typeof document > "u") {
|
|
17955
17955
|
e(null);
|
|
17956
17956
|
return;
|
|
@@ -17991,146 +17991,146 @@ function Mt(O) {
|
|
|
17991
17991
|
}
|
|
17992
17992
|
}
|
|
17993
17993
|
const Se = "/report-settings", nt = async () => {
|
|
17994
|
-
const { businessId: O } =
|
|
17994
|
+
const { businessId: O } = W(te());
|
|
17995
17995
|
if (O) {
|
|
17996
|
-
const
|
|
17997
|
-
fetchType:
|
|
17996
|
+
const J = {
|
|
17997
|
+
fetchType: re.Get,
|
|
17998
17998
|
url: `${Se}/${O.value}/reports`
|
|
17999
17999
|
};
|
|
18000
|
-
return
|
|
18000
|
+
return X.fetch(J);
|
|
18001
18001
|
} else
|
|
18002
18002
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18003
18003
|
}, at = (O) => {
|
|
18004
|
-
const { businessId:
|
|
18005
|
-
fetchType:
|
|
18006
|
-
url: `${Se}/${
|
|
18004
|
+
const { businessId: J } = W(te()), w = {
|
|
18005
|
+
fetchType: re.Put,
|
|
18006
|
+
url: `${Se}/${J.value}/reports/${O.id}`,
|
|
18007
18007
|
data: O
|
|
18008
18008
|
};
|
|
18009
|
-
return
|
|
18009
|
+
return X.fetch(w);
|
|
18010
18010
|
}, ot = (O) => {
|
|
18011
|
-
const { businessId:
|
|
18012
|
-
fetchType:
|
|
18013
|
-
url: `${Se}/${
|
|
18011
|
+
const { businessId: J } = W(te()), w = {
|
|
18012
|
+
fetchType: re.Post,
|
|
18013
|
+
url: `${Se}/${J.value}/reports`,
|
|
18014
18014
|
data: O
|
|
18015
18015
|
};
|
|
18016
|
-
return
|
|
18016
|
+
return X.fetch(w);
|
|
18017
18017
|
}, st = (O) => {
|
|
18018
|
-
const { businessId:
|
|
18019
|
-
fetchType:
|
|
18020
|
-
url: `${Se}/${
|
|
18018
|
+
const { businessId: J } = W(te()), w = {
|
|
18019
|
+
fetchType: re.Delete,
|
|
18020
|
+
url: `${Se}/${J.value}/reports/${O.id}`
|
|
18021
18021
|
};
|
|
18022
|
-
return
|
|
18022
|
+
return X.fetch(w);
|
|
18023
18023
|
}, lt = (O) => {
|
|
18024
|
-
const { businessId:
|
|
18025
|
-
fetchType:
|
|
18026
|
-
url: `${Se}/${
|
|
18024
|
+
const { businessId: J } = W(te()), w = {
|
|
18025
|
+
fetchType: re.Put,
|
|
18026
|
+
url: `${Se}/${J.value}/reports/default`,
|
|
18027
18027
|
data: { defaultReport: O }
|
|
18028
18028
|
};
|
|
18029
|
-
return
|
|
18029
|
+
return X.fetch(w);
|
|
18030
18030
|
}, _t = async () => {
|
|
18031
|
-
const { businessId: O } =
|
|
18031
|
+
const { businessId: O } = W(te());
|
|
18032
18032
|
if (O) {
|
|
18033
|
-
const
|
|
18034
|
-
fetchType:
|
|
18033
|
+
const J = {
|
|
18034
|
+
fetchType: re.Get,
|
|
18035
18035
|
url: `${Se}/${O.value}/overview-report`
|
|
18036
18036
|
};
|
|
18037
|
-
return
|
|
18037
|
+
return X.fetch(J);
|
|
18038
18038
|
} else
|
|
18039
18039
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18040
18040
|
}, ut = async () => {
|
|
18041
|
-
const { businessId: O } =
|
|
18041
|
+
const { businessId: O } = W(te());
|
|
18042
18042
|
if (O) {
|
|
18043
|
-
const
|
|
18044
|
-
fetchType:
|
|
18043
|
+
const J = {
|
|
18044
|
+
fetchType: re.Get,
|
|
18045
18045
|
url: `${Se}/${O.value}/config`
|
|
18046
18046
|
};
|
|
18047
|
-
return
|
|
18047
|
+
return X.fetch(J);
|
|
18048
18048
|
} else
|
|
18049
18049
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18050
18050
|
}, dt = "/report-settings", ct = async () => {
|
|
18051
|
-
const { businessId: O } =
|
|
18051
|
+
const { businessId: O } = W(te());
|
|
18052
18052
|
if (O) {
|
|
18053
|
-
const
|
|
18054
|
-
fetchType:
|
|
18053
|
+
const J = {
|
|
18054
|
+
fetchType: re.Get,
|
|
18055
18055
|
url: `${dt}/${O.value}/categories`
|
|
18056
18056
|
};
|
|
18057
|
-
return
|
|
18057
|
+
return X.fetch(J);
|
|
18058
18058
|
} else
|
|
18059
18059
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18060
18060
|
}, pt = (O) => {
|
|
18061
|
-
const { businessId:
|
|
18062
|
-
fetchType:
|
|
18063
|
-
url: `/report-settings/${
|
|
18061
|
+
const { businessId: J } = W(te()), w = {
|
|
18062
|
+
fetchType: re.Post,
|
|
18063
|
+
url: `/report-settings/${J.value}/date-settings`,
|
|
18064
18064
|
data: {
|
|
18065
18065
|
...O
|
|
18066
18066
|
}
|
|
18067
18067
|
};
|
|
18068
|
-
return
|
|
18068
|
+
return X.fetch(w);
|
|
18069
18069
|
};
|
|
18070
|
-
function
|
|
18070
|
+
function we(O, J = {}) {
|
|
18071
18071
|
const w = localStorage.getItem(O);
|
|
18072
|
-
return w === null && (
|
|
18072
|
+
return w === null && (J == null ? void 0 : J.fallback) !== void 0 ? J.fallback : w === null ? null : J.format ? J.format(w) : w;
|
|
18073
18073
|
}
|
|
18074
18074
|
const me = {
|
|
18075
|
-
get:
|
|
18076
|
-
getJson: (O) =>
|
|
18075
|
+
get: we,
|
|
18076
|
+
getJson: (O) => we(O, {
|
|
18077
18077
|
fallback: {},
|
|
18078
|
-
format: (
|
|
18078
|
+
format: (J) => JSON.parse(J)
|
|
18079
18079
|
}),
|
|
18080
|
-
getNumber: (O) =>
|
|
18080
|
+
getNumber: (O) => we(O, {
|
|
18081
18081
|
fallback: null,
|
|
18082
|
-
format: (
|
|
18082
|
+
format: (J) => Number(J)
|
|
18083
18083
|
}),
|
|
18084
18084
|
set: localStorage.setItem,
|
|
18085
|
-
setJson: (O,
|
|
18086
|
-
localStorage.setItem(O, JSON.stringify(
|
|
18085
|
+
setJson: (O, J) => {
|
|
18086
|
+
localStorage.setItem(O, JSON.stringify(J));
|
|
18087
18087
|
}
|
|
18088
18088
|
}, ft = "mf-reportreport-store", Qe = He(ft, () => {
|
|
18089
|
-
const { business: O } =
|
|
18090
|
-
const f =
|
|
18089
|
+
const { business: O } = W(Je()), { flags: J } = W(ke()), w = K([]), U = K([]), k = K(0), q = Ze(), P = Ae(() => w.value.filter((f) => f.editable)), N = Ae(() => w.value.filter((f) => !f.editable)), B = K(!1), Q = K(""), V = K(), G = K(), Y = Ae(() => {
|
|
18090
|
+
const f = J.value.find(
|
|
18091
18091
|
(S) => S.key === Ye.report_portal_integration_custom_report
|
|
18092
18092
|
);
|
|
18093
18093
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
18094
|
-
}),
|
|
18095
|
-
async function
|
|
18094
|
+
}), oe = Ae(() => Y.value === null ? !0 : Y.value - P.value.length > 0);
|
|
18095
|
+
async function Z() {
|
|
18096
18096
|
return G.value = await _t(), G.value;
|
|
18097
18097
|
}
|
|
18098
|
-
async function
|
|
18098
|
+
async function ee() {
|
|
18099
18099
|
var f;
|
|
18100
18100
|
try {
|
|
18101
|
-
w.value = await nt(),
|
|
18101
|
+
w.value = await nt(), U.value = await ct(), w.value.find((T) => T.id === Q.value) || (Q.value = ((f = w.value.find((T) => T.isDefault)) == null ? void 0 : f.id) || w.value[0].id);
|
|
18102
18102
|
} catch (S) {
|
|
18103
|
-
console.log(S),
|
|
18103
|
+
console.log(S), q.open({
|
|
18104
18104
|
title: "Report Fetch Error",
|
|
18105
18105
|
message: "Internal Server Error",
|
|
18106
18106
|
type: "error"
|
|
18107
18107
|
});
|
|
18108
18108
|
}
|
|
18109
18109
|
}
|
|
18110
|
-
const
|
|
18111
|
-
() => w.value.find((f) => f.id ===
|
|
18112
|
-
),
|
|
18113
|
-
async function
|
|
18114
|
-
if (
|
|
18110
|
+
const ae = Ae(
|
|
18111
|
+
() => w.value.find((f) => f.id === Q.value)
|
|
18112
|
+
), se = K(), ie = K(0), ne = K(), de = K(!1), ce = K(!1), fe = K(!1);
|
|
18113
|
+
async function pe(f) {
|
|
18114
|
+
if (P.value.findIndex((T) => T.id === f.id) >= 0) {
|
|
18115
18115
|
const T = await at(f);
|
|
18116
|
-
|
|
18116
|
+
Q.value = T.id;
|
|
18117
18117
|
} else {
|
|
18118
18118
|
const T = await ot(f);
|
|
18119
|
-
|
|
18119
|
+
Q.value = T.id;
|
|
18120
18120
|
}
|
|
18121
|
-
await
|
|
18121
|
+
await ee();
|
|
18122
18122
|
}
|
|
18123
|
-
async function
|
|
18123
|
+
async function le(f) {
|
|
18124
18124
|
return await pt(f);
|
|
18125
18125
|
}
|
|
18126
18126
|
async function ye(f) {
|
|
18127
|
-
await st(f), await
|
|
18127
|
+
await st(f), await ee();
|
|
18128
18128
|
}
|
|
18129
18129
|
async function he(f) {
|
|
18130
|
-
await lt(f), await
|
|
18130
|
+
await lt(f), await ee();
|
|
18131
18131
|
}
|
|
18132
18132
|
function Te(f) {
|
|
18133
|
-
w.value.findIndex((T) => T.id === f) !== -1 && (
|
|
18133
|
+
w.value.findIndex((T) => T.id === f) !== -1 && (Q.value = f);
|
|
18134
18134
|
}
|
|
18135
18135
|
const $e = K(null);
|
|
18136
18136
|
function ge() {
|
|
@@ -18164,12 +18164,12 @@ const me = {
|
|
|
18164
18164
|
const f = me.getJson("feedback");
|
|
18165
18165
|
if (!f[O.value._id])
|
|
18166
18166
|
f[O.value._id] = {
|
|
18167
|
-
date:
|
|
18167
|
+
date: ue().local().format("YYYY-MM-DD"),
|
|
18168
18168
|
feedback: !1
|
|
18169
18169
|
};
|
|
18170
18170
|
else {
|
|
18171
|
-
const S =
|
|
18172
|
-
Math.abs(S.diff(
|
|
18171
|
+
const S = ue(f[O.value._id].date).local();
|
|
18172
|
+
Math.abs(S.diff(ue().endOf("day").local(), "d")) >= 1 && !f[O.value._id].feedback && (ce.value = !0);
|
|
18173
18173
|
}
|
|
18174
18174
|
me.setJson("feedback", f);
|
|
18175
18175
|
}
|
|
@@ -18178,41 +18178,41 @@ const me = {
|
|
|
18178
18178
|
return await ut();
|
|
18179
18179
|
}
|
|
18180
18180
|
return {
|
|
18181
|
-
isOpenDownloadDialog:
|
|
18182
|
-
isOpenFeedbackDialog:
|
|
18183
|
-
isOpenEmailDialog:
|
|
18184
|
-
currentSelectWidgetType:
|
|
18181
|
+
isOpenDownloadDialog: de,
|
|
18182
|
+
isOpenFeedbackDialog: ce,
|
|
18183
|
+
isOpenEmailDialog: fe,
|
|
18184
|
+
currentSelectWidgetType: V,
|
|
18185
18185
|
reports: w,
|
|
18186
|
-
categories:
|
|
18187
|
-
currentReport:
|
|
18188
|
-
editingReport:
|
|
18189
|
-
editingIndex:
|
|
18190
|
-
editingTile:
|
|
18191
|
-
currentReportId:
|
|
18192
|
-
editableReports:
|
|
18193
|
-
nonEditableReports:
|
|
18194
|
-
isOpenAddReportDialog:
|
|
18186
|
+
categories: U,
|
|
18187
|
+
currentReport: ae,
|
|
18188
|
+
editingReport: se,
|
|
18189
|
+
editingIndex: ie,
|
|
18190
|
+
editingTile: ne,
|
|
18191
|
+
currentReportId: Q,
|
|
18192
|
+
editableReports: P,
|
|
18193
|
+
nonEditableReports: N,
|
|
18194
|
+
isOpenAddReportDialog: B,
|
|
18195
18195
|
overviewReport: G,
|
|
18196
18196
|
pinReport: $e,
|
|
18197
|
-
scrollPositionY:
|
|
18198
|
-
customReportQuota:
|
|
18199
|
-
canCreateCustomReport:
|
|
18200
|
-
createOrUpdateReport:
|
|
18197
|
+
scrollPositionY: k,
|
|
18198
|
+
customReportQuota: Y,
|
|
18199
|
+
canCreateCustomReport: oe,
|
|
18200
|
+
createOrUpdateReport: pe,
|
|
18201
18201
|
removeReport: ye,
|
|
18202
18202
|
updateCurrentReportId: Te,
|
|
18203
|
-
getReports:
|
|
18203
|
+
getReports: ee,
|
|
18204
18204
|
updateDefaultReport: he,
|
|
18205
18205
|
checkFeedback: o,
|
|
18206
|
-
getOverviewReport:
|
|
18206
|
+
getOverviewReport: Z,
|
|
18207
18207
|
refreshPinReport: ge,
|
|
18208
18208
|
cachePinReport: j,
|
|
18209
18209
|
clearPinReport: t,
|
|
18210
18210
|
getReportConfig: u,
|
|
18211
|
-
submitFeedback:
|
|
18211
|
+
submitFeedback: le
|
|
18212
18212
|
};
|
|
18213
18213
|
}), yt = "mf-reportnavigation", Ve = He(yt, () => {
|
|
18214
|
-
const { disabled: O } =
|
|
18215
|
-
const
|
|
18214
|
+
const { disabled: O } = W(je()), { isIntegrationWhitelist: J } = W(ke()), w = K("v5"), U = Ae(() => {
|
|
18215
|
+
const N = [
|
|
18216
18216
|
{
|
|
18217
18217
|
label: "overview",
|
|
18218
18218
|
value: "overview",
|
|
@@ -18235,194 +18235,207 @@ const me = {
|
|
|
18235
18235
|
route: "setting"
|
|
18236
18236
|
}
|
|
18237
18237
|
];
|
|
18238
|
-
return !O.value &&
|
|
18238
|
+
return !O.value && J.value && N.push({
|
|
18239
18239
|
label: "integration",
|
|
18240
18240
|
value: "integration",
|
|
18241
18241
|
route: "integrations"
|
|
18242
|
-
}),
|
|
18243
|
-
}),
|
|
18244
|
-
function
|
|
18245
|
-
switch (
|
|
18242
|
+
}), N;
|
|
18243
|
+
}), k = K(""), { currentRoute: q } = tt();
|
|
18244
|
+
function P(N) {
|
|
18245
|
+
switch (N.name) {
|
|
18246
18246
|
case "report":
|
|
18247
18247
|
case "reports":
|
|
18248
|
-
|
|
18248
|
+
k.value = "report";
|
|
18249
18249
|
break;
|
|
18250
18250
|
case "overview":
|
|
18251
|
-
|
|
18251
|
+
k.value = "overview";
|
|
18252
18252
|
break;
|
|
18253
18253
|
case "setting":
|
|
18254
|
-
|
|
18254
|
+
k.value = "setting";
|
|
18255
18255
|
break;
|
|
18256
18256
|
case "insights":
|
|
18257
|
-
|
|
18257
|
+
k.value = "insight";
|
|
18258
18258
|
break;
|
|
18259
18259
|
case "integration":
|
|
18260
18260
|
case "integrations":
|
|
18261
|
-
|
|
18261
|
+
k.value = "integration";
|
|
18262
18262
|
break;
|
|
18263
18263
|
}
|
|
18264
18264
|
}
|
|
18265
18265
|
return Xe(
|
|
18266
|
-
|
|
18267
|
-
(
|
|
18268
|
-
|
|
18266
|
+
q,
|
|
18267
|
+
(N) => {
|
|
18268
|
+
P(N);
|
|
18269
18269
|
},
|
|
18270
18270
|
{ immediate: !0 }
|
|
18271
18271
|
), {
|
|
18272
|
-
selectedNavigationTab:
|
|
18273
|
-
navigationTabs:
|
|
18272
|
+
selectedNavigationTab: k,
|
|
18273
|
+
navigationTabs: U,
|
|
18274
18274
|
version: w
|
|
18275
18275
|
};
|
|
18276
18276
|
});
|
|
18277
18277
|
var Ge = /* @__PURE__ */ ((O) => (O.generating = "GENERATING", O.completed = "COMPLETED", O.failed = "FAILED", O.canceled = "CANCELLED", O))(Ge || {});
|
|
18278
|
-
|
|
18279
|
-
const Ct = async (O,
|
|
18280
|
-
var
|
|
18281
|
-
const { businessId: w, country:
|
|
18282
|
-
selectedRestaurantIds:
|
|
18283
|
-
selectedWarehouseIds:
|
|
18284
|
-
selectedLocationIds:
|
|
18285
|
-
dateRange:
|
|
18286
|
-
compareDateRange:
|
|
18287
|
-
timeRange:
|
|
18288
|
-
} =
|
|
18289
|
-
if (
|
|
18278
|
+
ue.extend(ze);
|
|
18279
|
+
const Ct = async (O, J) => {
|
|
18280
|
+
var oe, Z, ee, ae;
|
|
18281
|
+
const { businessId: w, country: U } = W(te()), {
|
|
18282
|
+
selectedRestaurantIds: k,
|
|
18283
|
+
selectedWarehouseIds: q,
|
|
18284
|
+
selectedLocationIds: P,
|
|
18285
|
+
dateRange: N,
|
|
18286
|
+
compareDateRange: B,
|
|
18287
|
+
timeRange: Q
|
|
18288
|
+
} = Je();
|
|
18289
|
+
if (P.length === 0)
|
|
18290
18290
|
return null;
|
|
18291
|
-
const
|
|
18292
|
-
fetchType:
|
|
18291
|
+
const V = {
|
|
18292
|
+
fetchType: re.Post,
|
|
18293
18293
|
url: `/${w.value}/postgres-query`,
|
|
18294
|
-
data:
|
|
18294
|
+
data: Ie.getQueryRequests({
|
|
18295
18295
|
widget: O,
|
|
18296
|
-
dateRange: [
|
|
18297
|
-
compareDateRange:
|
|
18296
|
+
dateRange: [N.startDate, N.endDate],
|
|
18297
|
+
compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
|
|
18298
18298
|
timeRange: [
|
|
18299
|
-
|
|
18300
|
-
|
|
18299
|
+
ue().set("hour", Number((oe = Q.start) == null ? void 0 : oe.hour)).set("minute", Number((Z = Q.start) == null ? void 0 : Z.minute)).toISOString(),
|
|
18300
|
+
ue().set("hour", Number((ee = Q.end) == null ? void 0 : ee.hour)).set("minute", Number((ae = Q.end) == null ? void 0 : ae.minute)).toISOString()
|
|
18301
18301
|
],
|
|
18302
18302
|
businessIds: w.value ? [w.value] : [],
|
|
18303
|
-
restaurantIds:
|
|
18304
|
-
warehouseIds:
|
|
18303
|
+
restaurantIds: k,
|
|
18304
|
+
warehouseIds: q
|
|
18305
18305
|
}),
|
|
18306
18306
|
requestConfig: {
|
|
18307
18307
|
timeout: 1e3 * 60 * 5,
|
|
18308
|
-
signal:
|
|
18308
|
+
signal: J
|
|
18309
18309
|
}
|
|
18310
18310
|
};
|
|
18311
|
-
let G,
|
|
18311
|
+
let G, Y = [];
|
|
18312
18312
|
try {
|
|
18313
|
-
|
|
18314
|
-
responses:
|
|
18313
|
+
Y = await X.fetch(V), G = Pe.formatChartData({
|
|
18314
|
+
responses: Y,
|
|
18315
18315
|
widget: O,
|
|
18316
|
-
country:
|
|
18316
|
+
country: U.value
|
|
18317
18317
|
});
|
|
18318
|
-
} catch (
|
|
18319
|
-
console.log(
|
|
18320
|
-
responses:
|
|
18318
|
+
} catch (se) {
|
|
18319
|
+
console.log(se), V.url = V.url.replace("postgres-query", "query"), Y = await X.fetch(V), G = Pe.formatChartData({
|
|
18320
|
+
responses: Y,
|
|
18321
18321
|
widget: O,
|
|
18322
|
-
country:
|
|
18322
|
+
country: U.value
|
|
18323
18323
|
});
|
|
18324
18324
|
}
|
|
18325
18325
|
return G;
|
|
18326
|
-
}, bt = async (O,
|
|
18327
|
-
const { businessId: w } =
|
|
18328
|
-
let
|
|
18329
|
-
|
|
18330
|
-
const
|
|
18331
|
-
fetchType:
|
|
18326
|
+
}, bt = async (O, J) => {
|
|
18327
|
+
const { businessId: w } = W(te()), { selectedRestaurantIds: U, selectedWarehouseIds: k, dateRange: q, timeRange: P } = Je(), { currentReport: N, overviewReport: B } = Qe(), { selectedNavigationTab: Q } = Ve();
|
|
18328
|
+
let V = N == null ? void 0 : N.id, G = (N == null ? void 0 : N.tiles) ?? [];
|
|
18329
|
+
Q === "overview" && B && (V = B == null ? void 0 : B.id, G = (B == null ? void 0 : B.tiles) ?? []);
|
|
18330
|
+
const Y = G.filter((ne, de) => typeof J == "number" ? de === J : !0).map((ne) => ne.widget), oe = {
|
|
18331
|
+
fetchType: re.Post,
|
|
18332
18332
|
url: `/${w.value}/file`,
|
|
18333
18333
|
data: {
|
|
18334
18334
|
configs: [
|
|
18335
|
-
...
|
|
18336
|
-
var
|
|
18335
|
+
...Y.map((ne, de) => {
|
|
18336
|
+
var ce, fe, pe, le;
|
|
18337
18337
|
return {
|
|
18338
|
-
requests:
|
|
18339
|
-
widget:
|
|
18340
|
-
dateRange: [
|
|
18338
|
+
requests: Ie.getQueryRequests({
|
|
18339
|
+
widget: ne,
|
|
18340
|
+
dateRange: [q.startDate, q.endDate],
|
|
18341
18341
|
// TODO: export with comparable data?
|
|
18342
18342
|
// compareDateRange:
|
|
18343
18343
|
// compareDateRange.start && compareDateRange.end
|
|
18344
18344
|
// ? [compareDateRange.start.toUTC().toISO(), compareDateRange.end.toUTC().toISO()]
|
|
18345
18345
|
// : undefined,
|
|
18346
18346
|
timeRange: [
|
|
18347
|
-
|
|
18348
|
-
|
|
18347
|
+
ue().set("hour", Number((ce = P.start) == null ? void 0 : ce.hour)).set("minute", Number((fe = P.start) == null ? void 0 : fe.minute)).toISOString(),
|
|
18348
|
+
ue().set("hour", Number((pe = P.end) == null ? void 0 : pe.hour)).set("minute", Number((le = P.end) == null ? void 0 : le.minute)).toISOString()
|
|
18349
18349
|
],
|
|
18350
18350
|
businessIds: w ? [w.value] : [],
|
|
18351
|
-
restaurantIds:
|
|
18352
|
-
warehouseIds:
|
|
18351
|
+
restaurantIds: U,
|
|
18352
|
+
warehouseIds: k
|
|
18353
18353
|
}),
|
|
18354
|
-
index:
|
|
18355
|
-
showLabel:
|
|
18354
|
+
index: J || de,
|
|
18355
|
+
showLabel: ne.config.showLabel,
|
|
18356
18356
|
drillDimension: null
|
|
18357
18357
|
};
|
|
18358
18358
|
})
|
|
18359
18359
|
],
|
|
18360
|
-
reportId:
|
|
18360
|
+
reportId: V,
|
|
18361
18361
|
type: O
|
|
18362
18362
|
},
|
|
18363
18363
|
requestConfig: {
|
|
18364
18364
|
responseType: "arraybuffer",
|
|
18365
18365
|
timeout: 1e3 * 60 * 3
|
|
18366
18366
|
}
|
|
18367
|
-
}, { headers:
|
|
18368
|
-
|
|
18369
|
-
}, Rt = async (
|
|
18370
|
-
|
|
18367
|
+
}, { headers: Z, data: ee } = await X.rawFetch(oe), ae = Z["content-disposition"].split("filename=")[1].replaceAll('"', ""), se = window.URL.createObjectURL(new Blob([new Uint8Array(ee).buffer])), ie = document.createElement("a");
|
|
18368
|
+
ie.href = se, ie.setAttribute("download", decodeURIComponent(ae)), document.body.appendChild(ie), ie.click(), ie.remove();
|
|
18369
|
+
}, Rt = async ({
|
|
18370
|
+
emails: O,
|
|
18371
|
+
types: J,
|
|
18372
|
+
dateRange: w,
|
|
18373
|
+
timeRange: U,
|
|
18374
|
+
locationIds: k
|
|
18375
|
+
}) => {
|
|
18376
|
+
const { businessId: q } = W(te()), { currentReport: P, overviewReport: N } = Qe(), { selectedNavigationTab: B } = Ve();
|
|
18371
18377
|
if (O.length === 0) {
|
|
18372
18378
|
console.error("No email addresses provided.");
|
|
18373
18379
|
return;
|
|
18374
18380
|
}
|
|
18375
|
-
let
|
|
18376
|
-
|
|
18377
|
-
const
|
|
18378
|
-
|
|
18379
|
-
businessId: N.value,
|
|
18381
|
+
let Q = (P == null ? void 0 : P.id) || "", V = (P == null ? void 0 : P.name) || "", G = (P == null ? void 0 : P.tiles) ?? [];
|
|
18382
|
+
B === "overview" && N && (Q = N == null ? void 0 : N.id, V = N.name, G = (N == null ? void 0 : N.tiles) ?? []);
|
|
18383
|
+
const Y = G.map((Z) => Z.widget), oe = {
|
|
18384
|
+
businessId: q.value,
|
|
18380
18385
|
status: Ge.generating,
|
|
18381
18386
|
dateRange: {
|
|
18382
|
-
start:
|
|
18383
|
-
end:
|
|
18387
|
+
start: w.startDate,
|
|
18388
|
+
end: w.endDate
|
|
18384
18389
|
},
|
|
18385
|
-
reportName:
|
|
18390
|
+
reportName: V,
|
|
18386
18391
|
emails: O,
|
|
18387
|
-
configs:
|
|
18388
|
-
var
|
|
18392
|
+
configs: Y.map((Z, ee) => {
|
|
18393
|
+
var ae, se, ie, ne;
|
|
18389
18394
|
return {
|
|
18390
|
-
requests:
|
|
18395
|
+
requests: Ie.getQueryRequests({
|
|
18391
18396
|
widget: Z,
|
|
18392
|
-
dateRange: [
|
|
18397
|
+
dateRange: [w.startDate, w.endDate],
|
|
18393
18398
|
timeRange: [
|
|
18394
|
-
|
|
18395
|
-
|
|
18399
|
+
ue().hour(Number((ae = U.start) == null ? void 0 : ae.hour)).minute(Number((se = U.start) == null ? void 0 : se.minute)).toISOString(),
|
|
18400
|
+
ue().hour(Number((ie = U.end) == null ? void 0 : ie.hour)).minute(Number((ne = U.end) == null ? void 0 : ne.minute)).toISOString()
|
|
18396
18401
|
],
|
|
18397
|
-
businessIds:
|
|
18398
|
-
restaurantIds:
|
|
18402
|
+
businessIds: q ? [q.value] : [],
|
|
18403
|
+
restaurantIds: k,
|
|
18399
18404
|
warehouseIds: k
|
|
18400
18405
|
}),
|
|
18401
|
-
index:
|
|
18406
|
+
index: ee,
|
|
18402
18407
|
showLabel: Z.config.showLabel,
|
|
18403
18408
|
drillDimension: null
|
|
18404
18409
|
};
|
|
18405
18410
|
}),
|
|
18406
|
-
reportId:
|
|
18407
|
-
type:
|
|
18411
|
+
reportId: Q,
|
|
18412
|
+
type: J
|
|
18408
18413
|
};
|
|
18409
|
-
await
|
|
18410
|
-
fetchType:
|
|
18411
|
-
url: `/${
|
|
18412
|
-
data:
|
|
18414
|
+
await X.fetch({
|
|
18415
|
+
fetchType: re.Post,
|
|
18416
|
+
url: `/${q.value}/reports/email`,
|
|
18417
|
+
data: oe,
|
|
18418
|
+
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18419
|
+
});
|
|
18420
|
+
}, Ft = async (O) => {
|
|
18421
|
+
const { businessId: J } = W(te());
|
|
18422
|
+
await X.fetch({
|
|
18423
|
+
fetchType: re.Post,
|
|
18424
|
+
url: `/${J.value}/reports/resend-email`,
|
|
18425
|
+
data: { jobId: O },
|
|
18413
18426
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18414
18427
|
});
|
|
18415
|
-
},
|
|
18416
|
-
const { businessId: O } =
|
|
18417
|
-
return await
|
|
18418
|
-
fetchType:
|
|
18428
|
+
}, Ot = async () => {
|
|
18429
|
+
const { businessId: O } = W(te());
|
|
18430
|
+
return await X.fetch({
|
|
18431
|
+
fetchType: re.Get,
|
|
18419
18432
|
url: `/${O.value}/reports/email-recipients`
|
|
18420
18433
|
});
|
|
18421
|
-
},
|
|
18422
|
-
const { businessId:
|
|
18423
|
-
await
|
|
18424
|
-
fetchType:
|
|
18425
|
-
url: `/${
|
|
18434
|
+
}, Lt = async (O) => {
|
|
18435
|
+
const { businessId: J } = W(te());
|
|
18436
|
+
await X.fetch({
|
|
18437
|
+
fetchType: re.Post,
|
|
18438
|
+
url: `/${J.value}/reports/email-recipient/delete`,
|
|
18426
18439
|
data: { email: O }
|
|
18427
18440
|
});
|
|
18428
18441
|
};
|
|
@@ -18436,36 +18449,37 @@ function gt() {
|
|
|
18436
18449
|
const z = [];
|
|
18437
18450
|
for (let O = 0; O < 256; ++O)
|
|
18438
18451
|
z.push((O + 256).toString(16).slice(1));
|
|
18439
|
-
function mt(O,
|
|
18440
|
-
return z[O[
|
|
18452
|
+
function mt(O, J = 0) {
|
|
18453
|
+
return z[O[J + 0]] + z[O[J + 1]] + z[O[J + 2]] + z[O[J + 3]] + "-" + z[O[J + 4]] + z[O[J + 5]] + "-" + z[O[J + 6]] + z[O[J + 7]] + "-" + z[O[J + 8]] + z[O[J + 9]] + "-" + z[O[J + 10]] + z[O[J + 11]] + z[O[J + 12]] + z[O[J + 13]] + z[O[J + 14]] + z[O[J + 15]];
|
|
18441
18454
|
}
|
|
18442
18455
|
const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ne = {
|
|
18443
18456
|
randomUUID: St
|
|
18444
18457
|
};
|
|
18445
|
-
function
|
|
18446
|
-
if (Ne.randomUUID && !
|
|
18458
|
+
function vt(O, J, w) {
|
|
18459
|
+
if (Ne.randomUUID && !J && !O)
|
|
18447
18460
|
return Ne.randomUUID();
|
|
18448
18461
|
O = O || {};
|
|
18449
|
-
const
|
|
18450
|
-
if (
|
|
18462
|
+
const U = O.random || (O.rng || gt)();
|
|
18463
|
+
if (U[6] = U[6] & 15 | 64, U[8] = U[8] & 63 | 128, J) {
|
|
18451
18464
|
w = w || 0;
|
|
18452
|
-
for (let
|
|
18453
|
-
|
|
18454
|
-
return
|
|
18465
|
+
for (let k = 0; k < 16; ++k)
|
|
18466
|
+
J[w + k] = U[k];
|
|
18467
|
+
return J;
|
|
18455
18468
|
}
|
|
18456
|
-
return mt(
|
|
18469
|
+
return mt(U);
|
|
18457
18470
|
}
|
|
18458
18471
|
export {
|
|
18459
18472
|
it as R,
|
|
18460
18473
|
rt as W,
|
|
18461
18474
|
Qe as a,
|
|
18462
18475
|
Ge as b,
|
|
18463
|
-
|
|
18476
|
+
Ot as c,
|
|
18464
18477
|
bt as d,
|
|
18465
|
-
|
|
18478
|
+
Lt as e,
|
|
18466
18479
|
Mt as g,
|
|
18467
18480
|
Ct as q,
|
|
18481
|
+
Ft as r,
|
|
18468
18482
|
Rt as s,
|
|
18469
18483
|
Ve as u,
|
|
18470
|
-
|
|
18484
|
+
vt as v
|
|
18471
18485
|
};
|