@feedmepos/mf-report 5.27.4 → 5.27.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DSuxKJ9P.js → App-CFy7uVWa.js} +60 -60
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DKMUlWwU.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BeQGMwaJ.js} +125 -121
- package/dist/{Default.vue_vue_type_script_setup_true_lang-C4whbVXF.js → Default.vue_vue_type_script_setup_true_lang-Clr6FpOC.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BOXyAHWY.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4no6fWm5.js} +167 -167
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Bq-DMwgI.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZgNkimr.js} +423 -423
- package/dist/{InsightView-CvU47sJZ.js → InsightView-DU8zljsK.js} +4 -4
- package/dist/{Integration-CQCN_kEz.js → Integration-CYzbIowW.js} +3 -3
- package/dist/{Integrations-DIjq5ZcG.js → Integrations-Bduuzxhw.js} +2 -2
- package/dist/{Layout-DvK82b14.js → Layout-BVwIE7cw.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-ntdpYP8w.js → MenuTab.vue_vue_type_script_setup_true_lang-BVchswag.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CUF9qJDG.js → NavigationTab.vue_vue_type_script_setup_true_lang-YP0CF-o8.js} +3 -3
- package/dist/{OverviewView-C1gdxgsj.js → OverviewView-Bdx32y3s.js} +4 -4
- package/dist/{Report-BzytoOgL.js → Report-_zTTyNSJ.js} +3 -3
- package/dist/{ReportEditor-CwBgSOon.js → ReportEditor-DYEOVuv-.js} +5 -5
- package/dist/{ReportView-D6Q2iNXv.js → ReportView-CwL2OqAA.js} +6 -6
- package/dist/{Setting-WYA8Ewhw.js → Setting-7r18HuYT.js} +3 -3
- package/dist/{Template-BsLZkxJT.js → Template-DktljGgT.js} +3 -3
- package/dist/{TileEditor-MlG5cKZR.js → TileEditor-CJZ-J8q-.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-BcWgISqp.js → TileGrid.vue_vue_type_script_setup_true_lang-jAvfQmuu.js} +1 -1
- package/dist/{TransitionFade-1C6f7Xta.js → TransitionFade-CJHCf0fY.js} +4 -4
- package/dist/{app-CoOO1CM8.js → app-DrMXbBEc.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-CM1Z4AJT.js → formatChartData.worker-BPj1kHSl.js} +9 -9
- package/dist/assets/{processTableData.worker-DlxE2vZ8.js → processTableData.worker-BNG4ahN0.js} +9 -9
- package/dist/{useRestaurantPermission-BBV-xOEB.js → useRestaurantPermission-CEpSe7Xz.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as C0, computed as z1, watch as x1, defineComponent as zt, mergeModels as Ce, useModel as at, resolveComponent as G0, createElementBlock as l1, openBlock as Y0, createVNode as x0, withCtx as n1, createElementVNode as H0, createCommentVNode as he, Fragment as G1, renderList as ot, createBlock as m1, createTextVNode as We, withDirectives as On, toDisplayString as p1, unref as L0, vShow as An, renderSlot as ir, normalizeStyle as Dn, normalizeClass as Ht, withModifiers as Ve } from "vue";
|
|
2
|
-
import { c as Xt, h as sr, f as ur, _ as fn, i as $n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { o as yn, j as mn, u as P0, F as J0, r as U0, p as qn, a as H1, b as gn, m as hn, g as Tn, d as
|
|
2
|
+
import { c as Xt, h as sr, f as ur, _ as fn, i as $n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeQGMwaJ.js";
|
|
3
|
+
import { o as yn, j as mn, u as P0, F as J0, r as U0, p as qn, a as H1, b as gn, m as hn, g as Tn, d as w0, c as be, h as Ot } from "./app-DrMXbBEc.js";
|
|
4
4
|
import { storeToRefs as g0, defineStore as xe } from "pinia";
|
|
5
5
|
import { useSnackbar as lr } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as pr } from "./vue-i18n-DVWuTfed.js";
|
|
7
|
-
import { useCoreStore as En, detectLocale as
|
|
7
|
+
import { useCoreStore as En, detectLocale as v1 } from "@feedmepos/mf-common";
|
|
8
8
|
import { _ as Sn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
|
|
9
9
|
function cr(c) {
|
|
10
10
|
throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -38,12 +38,12 @@ var Mr = {};
|
|
|
38
38
|
try {
|
|
39
39
|
throw new Error();
|
|
40
40
|
} catch (K) {
|
|
41
|
-
var x = K.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"),
|
|
41
|
+
var x = K.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), v = null;
|
|
42
42
|
do {
|
|
43
43
|
var H = P.exec(x);
|
|
44
|
-
H != null && (
|
|
44
|
+
H != null && (v = H);
|
|
45
45
|
} while (H != null);
|
|
46
|
-
return
|
|
46
|
+
return v[1];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
var L = null;
|
|
@@ -78,7 +78,7 @@ var Mr = {};
|
|
|
78
78
|
function P(r, e) {
|
|
79
79
|
Object.assign(e, r);
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var v = function() {
|
|
82
82
|
var r = function() {
|
|
83
83
|
};
|
|
84
84
|
r.prototype = { p: {} };
|
|
@@ -99,7 +99,7 @@ var Mr = {};
|
|
|
99
99
|
}();
|
|
100
100
|
function H(r, e) {
|
|
101
101
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
|
-
if (
|
|
102
|
+
if (v) {
|
|
103
103
|
r.prototype.__proto__ = e.prototype;
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -134,7 +134,7 @@ var Mr = {};
|
|
|
134
134
|
return s;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Q(r, e, n, a) {
|
|
138
138
|
var o = r;
|
|
139
139
|
r[e] = o, r[n] = function() {
|
|
140
140
|
return r[e] === o && (r[e] = a()), r[n] = function() {
|
|
@@ -208,7 +208,7 @@ var Mr = {};
|
|
|
208
208
|
}
|
|
209
209
|
L(r, e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function O0(r) {
|
|
212
212
|
var e = F.types, n = e.length;
|
|
213
213
|
return e.push.apply(e, r), n;
|
|
214
214
|
}
|
|
@@ -225,7 +225,7 @@ var Mr = {};
|
|
|
225
225
|
return u0(u, l, n, a, o, [M], d, s);
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
return { inherit: H, inheritMany: K, mixin: o0, mixinHard: Z, installStaticTearOff: u0, installInstanceTearOff: l0, _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: j, lazy:
|
|
228
|
+
return { inherit: H, inheritMany: K, mixin: o0, mixinHard: Z, installStaticTearOff: u0, installInstanceTearOff: l0, _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: j, lazy: Q, lazyFinal: e0, lazyOld: U, updateHolder: D0, convertToFastObject: V, updateTypes: O0, setOrUpdateInterceptorsByTag: f0, setOrUpdateLeafTags: c0 };
|
|
229
229
|
}(), t = {
|
|
230
230
|
JS_CONST: function() {
|
|
231
231
|
},
|
|
@@ -272,8 +272,8 @@ var Mr = {};
|
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
Sort__dualPivotQuicksort(r, e, n, a) {
|
|
275
|
-
var o, s, u, l, M, d, _, z, f, y, q = p.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + q, S = n - q, R = p.JSInt_methods._tdivFast$1(e + n, 2), g = R - q, C = R + q, B = i.getInterceptor$asx(r), I = B.$index(r, h), N = B.$index(r, g),
|
|
276
|
-
if (a.call$2(I, N) > 0 && (o = N, N = I, I = o), a.call$2(J, X) > 0 && (o = X, X = J, J = o), a.call$2(I,
|
|
275
|
+
var o, s, u, l, M, d, _, z, f, y, q = p.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + q, S = n - q, R = p.JSInt_methods._tdivFast$1(e + n, 2), g = R - q, C = R + q, B = i.getInterceptor$asx(r), I = B.$index(r, h), N = B.$index(r, g), w = B.$index(r, R), J = B.$index(r, C), X = B.$index(r, S);
|
|
276
|
+
if (a.call$2(I, N) > 0 && (o = N, N = I, I = o), a.call$2(J, X) > 0 && (o = X, X = J, J = o), a.call$2(I, w) > 0 && (o = w, w = I, I = o), a.call$2(N, w) > 0 && (o = w, w = N, N = o), a.call$2(I, J) > 0 && (o = J, J = I, I = o), a.call$2(w, J) > 0 && (o = J, J = w, w = o), a.call$2(N, X) > 0 && (o = X, X = N, N = o), a.call$2(N, w) > 0 && (o = w, w = N, N = o), a.call$2(J, X) > 0 && (o = X, X = J, J = o), B.$indexSet(r, h, I), B.$indexSet(r, R, w), B.$indexSet(r, S, X), B.$indexSet(r, g, B.$index(r, e)), B.$indexSet(r, C, B.$index(r, n)), s = e + 1, u = n - 1, i.$eq$(a.call$2(N, J), 0)) {
|
|
277
277
|
for (l = s; l <= u; ++l)
|
|
278
278
|
if (M = B.$index(r, l), d = a.call$2(M, N), d !== 0)
|
|
279
279
|
if (d < 0)
|
|
@@ -700,8 +700,8 @@ var Mr = {};
|
|
|
700
700
|
var e, n, a, o, s, u, l, M, d, _, z = r.co, f = r.iS, y = r.iI, q = r.nDA, h = r.aI, S = r.fs, R = r.cs, g = S[0], C = R[0], B = z[g], I = r.fT;
|
|
701
701
|
for (I.toString, e = Object.create(f ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, f ? n = function() {
|
|
702
702
|
this.$initialize();
|
|
703
|
-
} : n = function(
|
|
704
|
-
this.$initialize(
|
|
703
|
+
} : n = function(w, J) {
|
|
704
|
+
this.$initialize(w, J);
|
|
705
705
|
}, e.constructor = n, n.prototype = e, e.$_name = g, e.$_target = B, a = !f, a ? o = t.Closure_forwardCallTo(g, B, y, q) : (e.$static_name = g, o = B), e.$signature = t.Closure__computeSignatureFunctionNewRti(I, f, y), e[C] = o, s = o, u = 1; u < S.length; ++u)
|
|
706
706
|
l = S[u], typeof l == "string" ? (M = z[l], d = l, l = M) : d = "", _ = R[u], _ != null && (a && (l = t.Closure_forwardCallTo(d, l, y, q)), e[_] = l), u === h && (s = l);
|
|
707
707
|
return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
|
|
@@ -1432,7 +1432,7 @@ var Mr = {};
|
|
|
1432
1432
|
return s + "})";
|
|
1433
1433
|
},
|
|
1434
1434
|
_functionRtiToString(r, e, n) {
|
|
1435
|
-
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
1435
|
+
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J = ", ";
|
|
1436
1436
|
if (n != null) {
|
|
1437
1437
|
for (a = n.length, e == null ? (e = t._setArrayType([], O.JSArray_String), o = null) : o = e.length, s = e.length, u = a; u > 0; --u)
|
|
1438
1438
|
e.push("T" + (s + u));
|
|
@@ -1441,16 +1441,16 @@ var Mr = {};
|
|
|
1441
1441
|
d += ">";
|
|
1442
1442
|
} else
|
|
1443
1443
|
d = "", o = null;
|
|
1444
|
-
for (l = r._primary, q = r._rest, h = q._requiredPositional, S = h.length, R = q._optionalPositional, g = R.length, C = q._named, B = C.length, I = t._rtiToString(l, e), N = "",
|
|
1445
|
-
N +=
|
|
1444
|
+
for (l = r._primary, q = r._rest, h = q._requiredPositional, S = h.length, R = q._optionalPositional, g = R.length, C = q._named, B = C.length, I = t._rtiToString(l, e), N = "", w = "", u = 0; u < S; ++u, w = J)
|
|
1445
|
+
N += w + t._rtiToString(h[u], e);
|
|
1446
1446
|
if (g > 0) {
|
|
1447
|
-
for (N +=
|
|
1448
|
-
N +=
|
|
1447
|
+
for (N += w + "[", w = "", u = 0; u < g; ++u, w = J)
|
|
1448
|
+
N += w + t._rtiToString(R[u], e);
|
|
1449
1449
|
N += "]";
|
|
1450
1450
|
}
|
|
1451
1451
|
if (B > 0) {
|
|
1452
|
-
for (N +=
|
|
1453
|
-
N +=
|
|
1452
|
+
for (N += w + "{", w = "", u = 0; u < B; u += 3, w = J)
|
|
1453
|
+
N += w, C[u + 1] && (N += "required "), N += t._rtiToString(C[u + 2], e) + " " + C[u];
|
|
1454
1454
|
N += "}";
|
|
1455
1455
|
}
|
|
1456
1456
|
return o != null && (e.toString, e.length = o), d + "(" + N + ") => " + I;
|
|
@@ -1811,7 +1811,7 @@ var Mr = {};
|
|
|
1811
1811
|
return M === 12 ? e === O.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, a, o) : u === 9 ? M !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, a, o) : (s = u === 11, s && a === O.Record ? !0 : s && M === 11 ? t._isRecordSubtype(r, e, n, a, o) : !1);
|
|
1812
1812
|
},
|
|
1813
1813
|
_isFunctionSubtype(r, e, n, a, o) {
|
|
1814
|
-
var s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
1814
|
+
var s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X, Y;
|
|
1815
1815
|
if (!t._isSubtype(r, e._primary, n, a._primary, o) || (s = e._rest, u = a._rest, l = s._requiredPositional, M = u._requiredPositional, d = l.length, _ = M.length, d > _) || (z = _ - d, f = s._optionalPositional, y = u._optionalPositional, q = f.length, h = y.length, d + q < _ + h))
|
|
1816
1816
|
return !1;
|
|
1817
1817
|
for (S = 0; S < d; ++S)
|
|
@@ -1823,16 +1823,16 @@ var Mr = {};
|
|
|
1823
1823
|
for (S = 0; S < h; ++S)
|
|
1824
1824
|
if (R = f[z + S], !t._isSubtype(r, y[S], o, R, n))
|
|
1825
1825
|
return !1;
|
|
1826
|
-
for (g = s._named, C = u._named, B = g.length, I = C.length, N = 0,
|
|
1827
|
-
for (J = C[
|
|
1826
|
+
for (g = s._named, C = u._named, B = g.length, I = C.length, N = 0, w = 0; w < I; w += 3)
|
|
1827
|
+
for (J = C[w]; ; ) {
|
|
1828
1828
|
if (N >= B || (X = g[N], N += 3, J < X))
|
|
1829
1829
|
return !1;
|
|
1830
|
-
if (
|
|
1831
|
-
if (
|
|
1830
|
+
if (Y = g[N - 2], X < J) {
|
|
1831
|
+
if (Y)
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
continue;
|
|
1834
1834
|
}
|
|
1835
|
-
if (R = C[
|
|
1835
|
+
if (R = C[w + 1], Y && !R || (R = g[N - 1], !t._isSubtype(r, C[w + 2], o, R, n)))
|
|
1836
1836
|
return !1;
|
|
1837
1837
|
break;
|
|
1838
1838
|
}
|
|
@@ -2979,16 +2979,16 @@ select
|
|
|
2979
2979
|
Index$(r, e, n, a) {
|
|
2980
2980
|
return new t.Index(r, e, a, n);
|
|
2981
2981
|
},
|
|
2982
|
-
Schema$(r, e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
2983
|
-
return new t.Schema(C, h, s, q, J,
|
|
2982
|
+
Schema$(r, e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J) {
|
|
2983
|
+
return new t.Schema(C, h, s, q, J, w, f, y, _, z, M, I, o, R, S, B, N, a, l, u, d, e, r, n, g);
|
|
2984
2984
|
},
|
|
2985
|
-
Schema_Schema$build(r, e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
2986
|
-
var X = s.call$1(C),
|
|
2987
|
-
return t.Schema$(r, e, n, a, o, X, u, l, M ?? 300, d, _, z, f, y,
|
|
2985
|
+
Schema_Schema$build(r, e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J) {
|
|
2986
|
+
var X = s.call$1(C), Y = q.call$1(C);
|
|
2987
|
+
return t.Schema$(r, e, n, a, o, X, u, l, M ?? 300, d, _, z, f, y, Y, h, S, R, g, C, B, I, N, w, J);
|
|
2988
2988
|
},
|
|
2989
2989
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B = null, I = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), N = r.$index(0, "label"),
|
|
2991
|
-
return E0 = E0 == null ? B : i.cast$1$0$ax(E0, O.String), e =
|
|
2990
|
+
var e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B = null, I = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), N = r.$index(0, "label"), w = t.EnumByName_byName(p.List_fLz, r.$index(0, "name")), J = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), X = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), Y = r.$index(0, "source"), z0 = t.EnumByName_byName(p.List_ytA, Y.$index(0, "type")), d0 = Y.$index(0, "table"), k = Y.$index(0, "field"), q0 = Y.$index(0, "dataset"), _0 = O.nullable_List_dynamic, E0 = _0._as(Y.$index(0, "uniqueKey"));
|
|
2991
|
+
return E0 = E0 == null ? B : i.cast$1$0$ax(E0, O.String), e = Y.$index(0, "timeColumn"), Y = _0._as(Y.$index(0, "dateColumns")), Y = Y == null ? B : i.cast$1$0$ax(Y, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "dynamicRawTable"), o = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), u = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), M = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), _ = r.$index(0, "partition"), z = r.$index(0, "requirePartitionFilter"), z == null && (z = !0), f = r.$index(0, "clusters"), f == null && (f = t._setArrayType([], O.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? B : i.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], O.JSArray_Index)), q = r.$index(0, "filters"), q = q == null ? B : i.map$1$ax(q, new t.Schema_fromJson_closure2()).toList$0(0), q == null && (q = t._setArrayType([], O.JSArray_QueryRequestFilter)), h = r.$index(0, "isGlobal"), h == null && (h = !1), S = r.$index(0, "isAiHidden"), S == null && (S = !1), _0 = _0._as(r.$index(0, "aiKeywords")), _0 = _0 == null ? B : i.cast$1$0$ax(_0, O.String), _0 == null && (_0 = t._setArrayType([], O.JSArray_String)), R = r.$index(0, "aiCategory"), g = r.$index(0, "aiPriority"), g == null && (g = 3), C = r.$index(0, "mergeFilterType"), t.Schema$(R, _0, g, f, a, I, q, y, d, S, M, h, u, l, J, N, s, o, t.EnumByName_byName(p.List_EfK, C ?? "dates"), w, _, n, z, new t.Source(z0, d0, k, q0, E0, e, Y), X);
|
|
2992
2992
|
},
|
|
2993
2993
|
Field_Field$numeric(r, e, n, a, o, s, u, l, M) {
|
|
2994
2994
|
return new t._NumericField(s, u, p.DATA_TYPE_3, e, o, l, n, M, a, !1, r);
|
|
@@ -3115,9 +3115,9 @@ select
|
|
|
3115
3115
|
var s = this;
|
|
3116
3116
|
s.column = e, s.customName = n, s.indexMethod = a, s.include = o;
|
|
3117
3117
|
},
|
|
3118
|
-
Schema: function(e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3118
|
+
Schema: function(e, n, a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X) {
|
|
3119
|
+
var Y = this;
|
|
3120
|
+
Y.name = e, Y.label = n, Y.fields = a, Y.joins = o, Y.topLevelFilters = s, Y.source = u, Y.isJoinOnly = l, Y.isMaterializeOnly = M, Y.isContinuousUpdate = d, Y.isGlobal = _, Y.interval = z, Y.rawTableName = f, Y.dynamicRawTable = y, Y.materializedTableName = q, Y.materializedPostgresqlTableName = h, Y.partition = S, Y.requirePartitionFilter = R, Y.clusters = g, Y.indexes = C, Y._materializeTablePrefix = Y._rawTablePrefix = "", Y.filters = B, Y.isAiHidden = I, Y.aiKeywords = N, Y.aiCategory = w, Y.aiPriority = J, Y.mergeFilterType = X;
|
|
3121
3121
|
},
|
|
3122
3122
|
Schema_visualizationSchema_closure: function() {
|
|
3123
3123
|
},
|
|
@@ -8894,8 +8894,8 @@ Arguments: [` + M + "]";
|
|
|
8894
8894
|
$signature: 1
|
|
8895
8895
|
}, t.billSchema_closure.prototype = {
|
|
8896
8896
|
call$1(r) {
|
|
8897
|
-
var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", l = "isDelivery", M = "completedAt", d = "integratedOrderId", _ = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", h = "takeawayPrice", S = "thirdPartyExtraCharge", R = "deliveryFee", g = "nettTotal", C = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", N = "otherChargeWithoutTax",
|
|
8898
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", u, u, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", M, M, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, W.IFNULLi, !0, !1, "Item count", _, _, W.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, W.COALEStax, r), t.Field_Field$numeric(e, W.IFNULLdiT, !1, !1, "Discount", f, f, W.COALESdit, r), t.Field_Field$numeric(e, W.IFNULLg, !1, !1, "Item gross", y, y, W.COALESg, r), t.Field_Field$numeric(e, W.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, W.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, W.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", W.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, W.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", W.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, W.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", W.x28COALEo, r), t.Field_Field$numeric(e, W.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, W.x28COALEgx2d, r), t.Field_Field$numeric(e, W.IFNULLta, !1, !1, "Takeaway", h, h, W.COALEStak, r), t.Field_Field$numeric(e, W.IFNULLth, !1, !1, "Extra charge", S, S, W.COALESth, r), t.Field_Field$numeric(e, W.IFNULLde_, !1, !1, "Delivery fee", R, R, W.COALESdex2c, r), t.Field_Field$numeric(e, W.IFNULLn, !1, !1, "Nett", g, g, W.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, W.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, W.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, W.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, W.SUM__n, r), t.Field_Field$numeric(e, W.IFNULLdeWT, !1, !1, "Delivery fee with tax", C, C, W.COALESdex5f_, r), t.Field_Field$numeric(e, W.IFNULLdeWo, !1, !1, "Delivery fee without tax", B, B, W.COALESdex5fo, r), t.Field_Field$numeric(e, W.IFNULLoT, !1, !1, "Other charge with tax", I, I, W.COALESo_, r), t.Field_Field$numeric(e, W.IFNULLoo, !1, !1, "Other charge without tax", N, N, W.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, W.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, W.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, W.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, W.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, W.x28selecsta, r), t.Field_Field$numeric(e, W.IFNULLdiI, !1, !1, "Discount inc tax",
|
|
8897
|
+
var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", l = "isDelivery", M = "completedAt", d = "integratedOrderId", _ = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", h = "takeawayPrice", S = "thirdPartyExtraCharge", R = "deliveryFee", g = "nettTotal", C = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", N = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal", J = "customerName", X = "customerPhone", Y = "customerAddress", z0 = "customerRemark", d0 = "fulfillmentAt";
|
|
8898
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string("Values: COMPLETED, DRAFT, VOIDED, REFUNDED", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string("Order source. Values: FEEDME (POS), GRABFOOD, FOODPANDA, SHOPEEFOOD, etc.", e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string("Order type. Values: DINE IN, TAKEAWAY, PICKUP, DELIVERY, DRIVE THRU", e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when upper(@type)='DRIVE THRU' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", u, u, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", M, M, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, W.IFNULLi, !0, !1, "Item count", _, _, W.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, W.COALEStax, r), t.Field_Field$numeric(e, W.IFNULLdiT, !1, !1, "Discount", f, f, W.COALESdit, r), t.Field_Field$numeric(e, W.IFNULLg, !1, !1, "Item gross", y, y, W.COALESg, r), t.Field_Field$numeric(e, W.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, W.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, W.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", W.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, W.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", W.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, W.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", W.x28COALEo, r), t.Field_Field$numeric(e, W.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, W.x28COALEgx2d, r), t.Field_Field$numeric(e, W.IFNULLta, !1, !1, "Takeaway", h, h, W.COALEStak, r), t.Field_Field$numeric(e, W.IFNULLth, !1, !1, "Extra charge", S, S, W.COALESth, r), t.Field_Field$numeric(e, W.IFNULLde_, !1, !1, "Delivery fee", R, R, W.COALESdex2c, r), t.Field_Field$numeric(e, W.IFNULLn, !1, !1, "Nett", g, g, W.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, W.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, W.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, W.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, W.SUM__n, r), t.Field_Field$numeric(e, W.IFNULLdeWT, !1, !1, "Delivery fee with tax", C, C, W.COALESdex5f_, r), t.Field_Field$numeric(e, W.IFNULLdeWo, !1, !1, "Delivery fee without tax", B, B, W.COALESdex5fo, r), t.Field_Field$numeric(e, W.IFNULLoT, !1, !1, "Other charge with tax", I, I, W.COALESo_, r), t.Field_Field$numeric(e, W.IFNULLoo, !1, !1, "Other charge without tax", N, N, W.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, W.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, W.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, W.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, W.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, W.x28selecsta, r), t.Field_Field$numeric(e, W.IFNULLdiI, !1, !1, "Discount inc tax", w, w, W.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, W.x28selecstC, r), t.Field_Field$numeric(e, e, !1, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric(e, e, !1, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Use SUM to count bills", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, !1, !1, "Customer", J, J, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer phone", X, X, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer address", Y, Y, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, !1, !1, "Customer remark", z0, z0, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, !1, "Fulfillment time", d0, d0, e, r)], O.JSArray_Field);
|
|
8899
8899
|
},
|
|
8900
8900
|
$signature: 0
|
|
8901
8901
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -9034,8 +9034,8 @@ Arguments: [` + M + "]";
|
|
|
9034
9034
|
$signature: 1
|
|
9035
9035
|
}, t.completeTimeBillSchema_closure.prototype = {
|
|
9036
9036
|
call$1(r) {
|
|
9037
|
-
var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", l = "isDelivery", M = "completedAt", d = "integratedOrderId", _ = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", h = "takeawayPrice", S = "thirdPartyExtraCharge", R = "deliveryFee", g = "nettTotal", C = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", N = "otherChargeWithoutTax",
|
|
9038
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", u, u, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", M, M, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", W.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, W.IFNULLi, !0, !1, "Item count", _, _, W.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, W.COALEStax, r), t.Field_Field$numeric(e, W.IFNULLdiT, !1, !1, "Discount", f, f, W.COALESdit, r), t.Field_Field$numeric(e, W.IFNULLg, !1, !1, "Item gross", y, y, W.COALESg, r), t.Field_Field$numeric(e, W.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, W.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, W.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", W.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, W.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", W.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, W.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", W.x28COALEo, r), t.Field_Field$numeric(e, W.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, W.x28COALEgx2d, r), t.Field_Field$numeric(e, W.IFNULLta, !1, !1, "Takeaway", h, h, W.COALEStak, r), t.Field_Field$numeric(e, W.IFNULLth, !1, !1, "Extra charge", S, S, W.COALESth, r), t.Field_Field$numeric(e, W.IFNULLde_, !1, !1, "Delivery fee", R, R, W.COALESdex2c, r), t.Field_Field$numeric(e, W.IFNULLn, !1, !1, "Nett", g, g, W.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, W.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, W.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, W.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, W.SUM__n, r), t.Field_Field$numeric(e, W.IFNULLdeWT, !1, !1, "Delivery fee with tax", C, C, W.COALESdex5f_, r), t.Field_Field$numeric(e, W.IFNULLdeWo, !1, !1, "Delivery fee without tax", B, B, W.COALESdex5fo, r), t.Field_Field$numeric(e, W.IFNULLoT, !1, !1, "Other charge with tax", I, I, W.COALESo_, r), t.Field_Field$numeric(e, W.IFNULLoo, !1, !1, "Other charge without tax", N, N, W.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, W.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, W.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, W.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, W.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, W.x28selecsta, r), t.Field_Field$numeric(e, W.IFNULLdiI, !1, !1, "Discount inc tax",
|
|
9037
|
+
var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", l = "isDelivery", M = "completedAt", d = "integratedOrderId", _ = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", h = "takeawayPrice", S = "thirdPartyExtraCharge", R = "deliveryFee", g = "nettTotal", C = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", N = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
|
|
9038
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !1, "No.", n, n, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Delivery", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", o, o, e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Source", "source", "source", W.x28case_, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", r), t.Field_Field$bool(e, e, !0, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, e, !0, !1, "Is in house delivery", u, u, e, r), t.Field_Field$bool(e, e, !0, !1, "Is other delivery", l, l, e, r), t.Field_Field$bool(e, e, !0, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Closed at", M, M, e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, e, !0, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, e, !0, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, !1, "Pax", "pax", "person", W.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", d, d, e, r), t.Field_Field$numeric(e, W.IFNULLi, !0, !1, "Item count", _, _, W.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, W.COALEStax, r), t.Field_Field$numeric(e, W.IFNULLdiT, !1, !1, "Discount", f, f, W.COALESdit, r), t.Field_Field$numeric(e, W.IFNULLg, !1, !1, "Item gross", y, y, W.COALESg, r), t.Field_Field$numeric(e, W.x28IFNULnI, !1, !1, "Bill gross", "billGrossTotal", e, W.x28COALEnC, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, W.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", W.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, W.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", W.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, W.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", W.x28COALEo, r), t.Field_Field$numeric(e, W.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, W.x28COALEgx2d, r), t.Field_Field$numeric(e, W.IFNULLta, !1, !1, "Takeaway", h, h, W.COALEStak, r), t.Field_Field$numeric(e, W.IFNULLth, !1, !1, "Extra charge", S, S, W.COALESth, r), t.Field_Field$numeric(e, W.IFNULLde_, !1, !1, "Delivery fee", R, R, W.COALESdex2c, r), t.Field_Field$numeric(e, W.IFNULLn, !1, !1, "Nett", g, g, W.COALESn, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULn_, !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, W.x28COALEn_, r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, W.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, W.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, W.SUM__n, r), t.Field_Field$numeric(e, W.IFNULLdeWT, !1, !1, "Delivery fee with tax", C, C, W.COALESdex5f_, r), t.Field_Field$numeric(e, W.IFNULLdeWo, !1, !1, "Delivery fee without tax", B, B, W.COALESdex5fo, r), t.Field_Field$numeric(e, W.IFNULLoT, !1, !1, "Other charge with tax", I, I, W.COALESo_, r), t.Field_Field$numeric(e, W.IFNULLoo, !1, !1, "Other charge without tax", N, N, W.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, W.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, W.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, W.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, W.x28selecstn, r), t.Field_Field$string(e, e, !1, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Discount reasons", "discountReasons", e, W.x28selecsta, r), t.Field_Field$numeric(e, W.IFNULLdiI, !1, !1, "Discount inc tax", w, w, W.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, W.x28selecstC, r)], O.JSArray_Field);
|
|
9039
9039
|
},
|
|
9040
9040
|
$signature: 0
|
|
9041
9041
|
}, t.completeTimeBillSchema_closure0.prototype = {
|
|
@@ -9104,16 +9104,16 @@ Arguments: [` + M + "]";
|
|
|
9104
9104
|
$signature: 1
|
|
9105
9105
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9106
9106
|
call$1(r) {
|
|
9107
|
-
var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", S = "takeawayPrice", R = "nettTotal", g = "layerNettTotal", C = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice",
|
|
9107
|
+
var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", S = "takeawayPrice", R = "nettTotal", g = "layerNettTotal", C = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice", w = "layerTaxTotal", J = "layerScTotal", X = "layerOtherChargeTotal", Y = "customAttributes", z0 = "layerZeroParentId", d0 = "collectedAt", k = "subCategories", q0 = "billAdjustmentInclusiveTaxTotal", _0 = "itemAdjustmentInclusiveTaxTotal", E0 = "layerBillAdjustmentInclusiveTaxTotal", y0 = "layerItemAdjustmentInclusiveTaxTotal", S0 = "billAdjustmentExclusiveTaxTotal", R0 = "itemAdjustmentExclusiveTaxTotal", j0 = "layerBillAdjustmentExclusiveTaxTotal", I0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9108
9108
|
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
9109
9109
|
`, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
9110
|
-
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", S, S, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", C, C, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", J, J, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", X, X, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", Q, Q, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", A0, A0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", d0, d0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", k, k, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", q0, q0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", _0, _0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", E0, E0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", y0, y0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", S0, S0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", R0, R0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", j0, j0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], O.JSArray_Field);
|
|
9110
|
+
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", S, S, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", C, C, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", w, w, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", J, J, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", X, X, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", Y, Y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", z0, z0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", d0, d0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", k, k, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", q0, q0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", _0, _0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", E0, E0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", y0, y0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", S0, S0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", R0, R0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", j0, j0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, "IF(@variantId IS NULL OR @variantId = '', @productId, CONCAT(@productId, '/', @variantId))", !0, !1, !1, "Menu item ID", "menuItemId", e, "CASE WHEN @variant_id IS NULL OR @variant_id = '' THEN @product_id ELSE @product_id || '/' || @variant_id END", r)], O.JSArray_Field);
|
|
9111
9111
|
},
|
|
9112
9112
|
$signature: 0
|
|
9113
9113
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
9114
9114
|
call$1(r) {
|
|
9115
9115
|
var e = "id", n = null, a = "restaurantId", o = "parentId", s = "locationId", u = O.JSArray_String, l = O.JSArray_JoinCondition;
|
|
9116
|
-
return t._setArrayType([new t.Join(p.SCHEMA_NAME_0, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_21, t._setArrayType([new t.JoinCondition("itemId", t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_12, t._setArrayType([new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition("billId", t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(o, t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_7, t._setArrayType([new t.JoinCondition(o, t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_6, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["parentId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !0, r, n), new t.Join(p.SCHEMA_NAME_53, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["groupId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_10, t._setArrayType([new t.JoinCondition("billId", t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_23, t._setArrayType([new t.JoinCondition("ref", t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_57, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["
|
|
9116
|
+
return t._setArrayType([new t.Join(p.SCHEMA_NAME_0, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_21, t._setArrayType([new t.JoinCondition("itemId", t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_12, t._setArrayType([new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition("billId", t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(o, t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_7, t._setArrayType([new t.JoinCondition(o, t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_6, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["parentId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !0, r, n), new t.Join(p.SCHEMA_NAME_53, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["groupId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_10, t._setArrayType([new t.JoinCondition("billId", t._setArrayType(["billId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(a, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_23, t._setArrayType([new t.JoinCondition("ref", t._setArrayType(["id"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n), new t.Join(p.SCHEMA_NAME_57, t._setArrayType([new t.JoinCondition(e, t._setArrayType(["menuItemId"], u), p.COMPARISON_OPERATOR_0, n), new t.JoinCondition(s, t._setArrayType(["restaurantId"], u), p.COMPARISON_OPERATOR_0, n)], l), !1, r, n)], O.JSArray_Join);
|
|
9117
9117
|
},
|
|
9118
9118
|
$signature: 1
|
|
9119
9119
|
}, t.hourlyForecastSalesSchema_closure.prototype = {
|
|
@@ -10985,8 +10985,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10985
10985
|
return a.message;
|
|
10986
10986
|
}
|
|
10987
10987
|
}())), e(T, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(T, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(p.Type_Object_xQ6)), e(T, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], O.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? p.C_Endian0 : p.C_Endian), e(T, "_clockKey", "$get$_clockKey", () => new t.Object()), e(T, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", p.List_BC_AD, p.List_6xs, p.List_qpm, p.List_qpm, p.List_cIc, p.List_cIc, p.List_h8w, p.List_h8w, p.List_wMy, p.List_wMy, p.List_gc6, p.List_gc6, p.List_3US, p.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.Map_EQ6TW)), e(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(T, "_availableLocales", "$get$_availableLocales", () => {
|
|
10988
|
-
var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), f = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), S = t.EsLocale$(p.StartOfWeek_1), R = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), C = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1),
|
|
10989
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.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", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", h, "es_us", S, "fr", R, "fr_ch", g, "fr_ca", C, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw",
|
|
10988
|
+
var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), f = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), S = t.EsLocale$(p.StartOfWeek_1), R = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), C = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1), w = t.ZhLocale$(p.StartOfWeek_1), J = t.DeLocale$(p.StartOfWeek_2), X = t.DeLocale$(p.StartOfWeek_2), Y = t.DeLocale$(p.StartOfWeek_2), z0 = t.DeLocale$(p.StartOfWeek_2), d0 = t.ItLocale$(p.StartOfWeek_2), k = t.ItLocale$(p.StartOfWeek_2), q0 = t.ArLyLocale$(!0, p.StartOfWeek_0), _0 = t.ArLyLocale$(!1, p.StartOfWeek_0), E0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), y0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), S0 = t.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), R0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), j0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
|
|
10989
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.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", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", h, "es_us", S, "fr", R, "fr_ch", g, "fr_ca", C, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw", w, "de", J, "de_de", X, "de_at", Y, "de_ch", z0, "it", d0, "it_ch", k, "ar", q0, "ar_ly", _0, "ar_dz", E0, "ar_kw", y0, "ar_sa", S0, "ar_ma", R0, "ar_tn", j0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", o, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], O.String, t.findType("Locale"));
|
|
10990
10990
|
}), e(T, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10991
10991
|
var a = "createdAt", o = null, s = t.Source_Source$couchdb("", ""), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
|
|
10992
10992
|
return t.Schema_Schema$build(o, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), o, new t.addonFlattenItemSchema_closure(), p.List_empty, o, o, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", p.MERGE_FILTER_TYPE_0, p.SCHEMA_NAME_7, a, "", !0, s, u);
|
|
@@ -11568,9 +11568,9 @@ var Cn = Rn, br = {};
|
|
|
11568
11568
|
try {
|
|
11569
11569
|
throw new Error();
|
|
11570
11570
|
} catch (o0) {
|
|
11571
|
-
var P = o0.stack,
|
|
11571
|
+
var P = o0.stack, v = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
|
|
11572
11572
|
do {
|
|
11573
|
-
var K =
|
|
11573
|
+
var K = v.exec(P);
|
|
11574
11574
|
K != null && (H = K);
|
|
11575
11575
|
} while (K != null);
|
|
11576
11576
|
return H[1];
|
|
@@ -11587,8 +11587,8 @@ var Cn = Rn, br = {};
|
|
|
11587
11587
|
}(), m.dartDeferredLibraryLoader = function(L, x, P) {
|
|
11588
11588
|
try {
|
|
11589
11589
|
load(L), x();
|
|
11590
|
-
} catch (
|
|
11591
|
-
P(
|
|
11590
|
+
} catch (v) {
|
|
11591
|
+
P(v);
|
|
11592
11592
|
}
|
|
11593
11593
|
};
|
|
11594
11594
|
}
|
|
@@ -11605,7 +11605,7 @@ var Cn = Rn, br = {};
|
|
|
11605
11605
|
n.hasOwnProperty(s) || (n[s] = e[s]);
|
|
11606
11606
|
}
|
|
11607
11607
|
}
|
|
11608
|
-
function
|
|
11608
|
+
function v(e, n) {
|
|
11609
11609
|
Object.assign(n, e);
|
|
11610
11610
|
}
|
|
11611
11611
|
var H = function() {
|
|
@@ -11642,12 +11642,12 @@ var Cn = Rn, br = {};
|
|
|
11642
11642
|
K(n[a], e);
|
|
11643
11643
|
}
|
|
11644
11644
|
function Z(e, n) {
|
|
11645
|
-
|
|
11645
|
+
v(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11646
11646
|
}
|
|
11647
11647
|
function U(e, n) {
|
|
11648
11648
|
P(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11649
11649
|
}
|
|
11650
|
-
function
|
|
11650
|
+
function Q(e, n, a, o) {
|
|
11651
11651
|
var s = e;
|
|
11652
11652
|
e[n] = s, e[a] = function() {
|
|
11653
11653
|
e[a] = function() {
|
|
@@ -11730,7 +11730,7 @@ var Cn = Rn, br = {};
|
|
|
11730
11730
|
}
|
|
11731
11731
|
x(e, n);
|
|
11732
11732
|
}
|
|
11733
|
-
function
|
|
11733
|
+
function O0(e) {
|
|
11734
11734
|
var n = W.leafTags;
|
|
11735
11735
|
if (!n) {
|
|
11736
11736
|
W.leafTags = e;
|
|
@@ -11755,7 +11755,7 @@ var Cn = Rn, br = {};
|
|
|
11755
11755
|
return l0(l, M, a, o, s, [d], _, u);
|
|
11756
11756
|
};
|
|
11757
11757
|
};
|
|
11758
|
-
return { inherit: K, inheritMany: o0, mixin: Z, mixinHard: U, installStaticTearOff: l0, installInstanceTearOff: f0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: V, lazy: e0, lazyFinal: j, lazyOld:
|
|
11758
|
+
return { inherit: K, inheritMany: o0, mixin: Z, mixinHard: U, installStaticTearOff: l0, installInstanceTearOff: f0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: V, lazy: e0, lazyFinal: j, lazyOld: Q, updateHolder: M0, convertToFastObject: s0, updateTypes: D0, setOrUpdateInterceptorsByTag: c0, setOrUpdateLeafTags: O0 };
|
|
11759
11759
|
}(), i = {
|
|
11760
11760
|
JS_CONST: function() {
|
|
11761
11761
|
},
|
|
@@ -11805,15 +11805,15 @@ var Cn = Rn, br = {};
|
|
|
11805
11805
|
}
|
|
11806
11806
|
},
|
|
11807
11807
|
Sort__dualPivotQuicksort(e, n, a, o) {
|
|
11808
|
-
var s, u, l, M, d, _, z, f, y, q, h = A.JSInt_methods._tdivFast$1(a - n + 1, 6), S = n + h, R = a - h, g = A.JSInt_methods._tdivFast$1(n + a, 2), C = g - h, B = g + h, I = p.getInterceptor$asx(e), N = I.$index(e, S),
|
|
11809
|
-
if (o.call$2(N,
|
|
11808
|
+
var s, u, l, M, d, _, z, f, y, q, h = A.JSInt_methods._tdivFast$1(a - n + 1, 6), S = n + h, R = a - h, g = A.JSInt_methods._tdivFast$1(n + a, 2), C = g - h, B = g + h, I = p.getInterceptor$asx(e), N = I.$index(e, S), w = I.$index(e, C), J = I.$index(e, g), X = I.$index(e, B), Y = I.$index(e, R);
|
|
11809
|
+
if (o.call$2(N, w) > 0 && (s = w, w = N, N = s), o.call$2(X, Y) > 0 && (s = Y, Y = X, X = s), o.call$2(N, J) > 0 && (s = J, J = N, N = s), o.call$2(w, J) > 0 && (s = J, J = w, w = s), o.call$2(N, X) > 0 && (s = X, X = N, N = s), o.call$2(J, X) > 0 && (s = X, X = J, J = s), o.call$2(w, Y) > 0 && (s = Y, Y = w, w = s), o.call$2(w, J) > 0 && (s = J, J = w, w = s), o.call$2(X, Y) > 0 && (s = Y, Y = X, X = s), I.$indexSet(e, S, N), I.$indexSet(e, g, J), I.$indexSet(e, R, Y), I.$indexSet(e, C, I.$index(e, n)), I.$indexSet(e, B, I.$index(e, a)), u = n + 1, l = a - 1, p.$eq$(o.call$2(w, X), 0)) {
|
|
11810
11810
|
for (M = u; M <= l; ++M)
|
|
11811
|
-
if (d = I.$index(e, M), _ = o.call$2(d,
|
|
11811
|
+
if (d = I.$index(e, M), _ = o.call$2(d, w), _ !== 0)
|
|
11812
11812
|
if (_ < 0)
|
|
11813
11813
|
M !== u && (I.$indexSet(e, M, I.$index(e, u)), I.$indexSet(e, u, d)), ++u;
|
|
11814
11814
|
else
|
|
11815
11815
|
for (; ; )
|
|
11816
|
-
if (_ = o.call$2(I.$index(e, l),
|
|
11816
|
+
if (_ = o.call$2(I.$index(e, l), w), _ > 0) {
|
|
11817
11817
|
--l;
|
|
11818
11818
|
continue;
|
|
11819
11819
|
} else if (z = l - 1, _ < 0) {
|
|
@@ -11826,7 +11826,7 @@ var Cn = Rn, br = {};
|
|
|
11826
11826
|
y = !0;
|
|
11827
11827
|
} else {
|
|
11828
11828
|
for (M = u; M <= l; ++M)
|
|
11829
|
-
if (d = I.$index(e, M), o.call$2(d,
|
|
11829
|
+
if (d = I.$index(e, M), o.call$2(d, w) < 0)
|
|
11830
11830
|
M !== u && (I.$indexSet(e, M, I.$index(e, u)), I.$indexSet(e, u, d)), ++u;
|
|
11831
11831
|
else if (o.call$2(d, X) > 0)
|
|
11832
11832
|
for (; ; )
|
|
@@ -11835,19 +11835,19 @@ var Cn = Rn, br = {};
|
|
|
11835
11835
|
break;
|
|
11836
11836
|
continue;
|
|
11837
11837
|
} else {
|
|
11838
|
-
z = l - 1, o.call$2(I.$index(e, l),
|
|
11838
|
+
z = l - 1, o.call$2(I.$index(e, l), w) < 0 ? (I.$indexSet(e, M, I.$index(e, u)), f = u + 1, I.$indexSet(e, u, I.$index(e, l)), I.$indexSet(e, l, d), u = f) : (I.$indexSet(e, M, I.$index(e, l)), I.$indexSet(e, l, d)), l = z;
|
|
11839
11839
|
break;
|
|
11840
11840
|
}
|
|
11841
11841
|
y = !1;
|
|
11842
11842
|
}
|
|
11843
|
-
if (q = u - 1, I.$indexSet(e, n, I.$index(e, q)), I.$indexSet(e, q,
|
|
11843
|
+
if (q = u - 1, I.$indexSet(e, n, I.$index(e, q)), I.$indexSet(e, q, w), q = l + 1, I.$indexSet(e, a, I.$index(e, q)), I.$indexSet(e, q, X), i.Sort__doSort(e, n, u - 2, o), i.Sort__doSort(e, l + 2, a, o), !y)
|
|
11844
11844
|
if (u < S && l > R) {
|
|
11845
|
-
for (; p.$eq$(o.call$2(I.$index(e, u),
|
|
11845
|
+
for (; p.$eq$(o.call$2(I.$index(e, u), w), 0); )
|
|
11846
11846
|
++u;
|
|
11847
11847
|
for (; p.$eq$(o.call$2(I.$index(e, l), X), 0); )
|
|
11848
11848
|
--l;
|
|
11849
11849
|
for (M = u; M <= l; ++M)
|
|
11850
|
-
if (d = I.$index(e, M), o.call$2(d,
|
|
11850
|
+
if (d = I.$index(e, M), o.call$2(d, w) === 0)
|
|
11851
11851
|
M !== u && (I.$indexSet(e, M, I.$index(e, u)), I.$indexSet(e, u, d)), ++u;
|
|
11852
11852
|
else if (o.call$2(d, X) === 0)
|
|
11853
11853
|
for (; ; )
|
|
@@ -11856,7 +11856,7 @@ var Cn = Rn, br = {};
|
|
|
11856
11856
|
break;
|
|
11857
11857
|
continue;
|
|
11858
11858
|
} else {
|
|
11859
|
-
z = l - 1, o.call$2(I.$index(e, l),
|
|
11859
|
+
z = l - 1, o.call$2(I.$index(e, l), w) < 0 ? (I.$indexSet(e, M, I.$index(e, u)), f = u + 1, I.$indexSet(e, u, I.$index(e, l)), I.$indexSet(e, l, d), u = f) : (I.$indexSet(e, M, I.$index(e, l)), I.$indexSet(e, l, d)), l = z;
|
|
11860
11860
|
break;
|
|
11861
11861
|
}
|
|
11862
11862
|
i.Sort__doSort(e, u, l, o);
|
|
@@ -12953,7 +12953,7 @@ var Cn = Rn, br = {};
|
|
|
12953
12953
|
return u + "})";
|
|
12954
12954
|
},
|
|
12955
12955
|
_functionRtiToString(e, n, a) {
|
|
12956
|
-
var o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
12956
|
+
var o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X = ", ";
|
|
12957
12957
|
if (a != null) {
|
|
12958
12958
|
for (o = a.length, n == null ? (n = i._setArrayType([], r.JSArray_String), s = null) : s = n.length, u = n.length, l = o; l > 0; --l)
|
|
12959
12959
|
n.push("T" + (u + l));
|
|
@@ -12962,19 +12962,19 @@ var Cn = Rn, br = {};
|
|
|
12962
12962
|
_ += ">";
|
|
12963
12963
|
} else
|
|
12964
12964
|
_ = "", s = null;
|
|
12965
|
-
for (M = e._primary, h = e._rest, S = h._requiredPositional, R = S.length, g = h._optionalPositional, C = g.length, B = h._named, I = B.length, N = i._rtiToString(M, n),
|
|
12966
|
-
|
|
12965
|
+
for (M = e._primary, h = e._rest, S = h._requiredPositional, R = S.length, g = h._optionalPositional, C = g.length, B = h._named, I = B.length, N = i._rtiToString(M, n), w = "", J = "", l = 0; l < R; ++l, J = X)
|
|
12966
|
+
w += J + i._rtiToString(S[l], n);
|
|
12967
12967
|
if (C > 0) {
|
|
12968
|
-
for (
|
|
12969
|
-
|
|
12970
|
-
|
|
12968
|
+
for (w += J + "[", J = "", l = 0; l < C; ++l, J = X)
|
|
12969
|
+
w += J + i._rtiToString(g[l], n);
|
|
12970
|
+
w += "]";
|
|
12971
12971
|
}
|
|
12972
12972
|
if (I > 0) {
|
|
12973
|
-
for (
|
|
12974
|
-
|
|
12975
|
-
|
|
12973
|
+
for (w += J + "{", J = "", l = 0; l < I; l += 3, J = X)
|
|
12974
|
+
w += J, B[l + 1] && (w += "required "), w += i._rtiToString(B[l + 2], n) + " " + B[l];
|
|
12975
|
+
w += "}";
|
|
12976
12976
|
}
|
|
12977
|
-
return s != null && (n.toString, n.length = s), _ + "(" +
|
|
12977
|
+
return s != null && (n.toString, n.length = s), _ + "(" + w + ") => " + N;
|
|
12978
12978
|
},
|
|
12979
12979
|
_rtiToString(e, n) {
|
|
12980
12980
|
var a, o, s, u, l, M, d = e._kind;
|
|
@@ -13332,7 +13332,7 @@ var Cn = Rn, br = {};
|
|
|
13332
13332
|
return d === 12 ? n === r.JavaScriptFunction ? !0 : u ? !1 : i._isFunctionSubtype(e, n, a, o, s) : l === 9 ? d !== 9 ? !1 : i._isInterfaceSubtype(e, n, a, o, s) : (u = l === 11, u && o === r.Record ? !0 : u && d === 11 ? i._isRecordSubtype(e, n, a, o, s) : !1);
|
|
13333
13333
|
},
|
|
13334
13334
|
_isFunctionSubtype(e, n, a, o, s) {
|
|
13335
|
-
var u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
13335
|
+
var u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X, Y, z0;
|
|
13336
13336
|
if (!i._isSubtype(e, n._primary, a, o._primary, s) || (u = n._rest, l = o._rest, M = u._requiredPositional, d = l._requiredPositional, _ = M.length, z = d.length, _ > z) || (f = z - _, y = u._optionalPositional, q = l._optionalPositional, h = y.length, S = q.length, _ + h < z + S))
|
|
13337
13337
|
return !1;
|
|
13338
13338
|
for (R = 0; R < _; ++R)
|
|
@@ -13344,23 +13344,23 @@ var Cn = Rn, br = {};
|
|
|
13344
13344
|
for (R = 0; R < S; ++R)
|
|
13345
13345
|
if (g = y[f + R], !i._isSubtype(e, q[R], s, g, a))
|
|
13346
13346
|
return !1;
|
|
13347
|
-
for (C = u._named, B = l._named, I = C.length, N = B.length,
|
|
13347
|
+
for (C = u._named, B = l._named, I = C.length, N = B.length, w = 0, J = 0; J < N; J += 3)
|
|
13348
13348
|
for (X = B[J]; ; ) {
|
|
13349
|
-
if (
|
|
13349
|
+
if (w >= I || (Y = C[w], w += 3, X < Y))
|
|
13350
13350
|
return !1;
|
|
13351
|
-
if (
|
|
13352
|
-
if (
|
|
13351
|
+
if (z0 = C[w - 2], Y < X) {
|
|
13352
|
+
if (z0)
|
|
13353
13353
|
return !1;
|
|
13354
13354
|
continue;
|
|
13355
13355
|
}
|
|
13356
|
-
if (g = B[J + 1],
|
|
13356
|
+
if (g = B[J + 1], z0 && !g || (g = C[w - 1], !i._isSubtype(e, B[J + 2], s, g, a)))
|
|
13357
13357
|
return !1;
|
|
13358
13358
|
break;
|
|
13359
13359
|
}
|
|
13360
|
-
for (;
|
|
13361
|
-
if (C[
|
|
13360
|
+
for (; w < I; ) {
|
|
13361
|
+
if (C[w + 1])
|
|
13362
13362
|
return !1;
|
|
13363
|
-
|
|
13363
|
+
w += 3;
|
|
13364
13364
|
}
|
|
13365
13365
|
return !0;
|
|
13366
13366
|
},
|
|
@@ -14800,7 +14800,7 @@ var Cn = Rn, br = {};
|
|
|
14800
14800
|
return e instanceof i.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? a = !0 : a = e instanceof i.ScorecardDatasourceConfigModel && e.isCumulative, a ? (a = r.XYDatasetModel, i.List_List$of(i.ListExtensions_mapIndexed(n, new i.accumulate_closure(e), a, a), !0, a)) : n;
|
|
14801
14801
|
},
|
|
14802
14802
|
formatBaseXYChartData(e, n, a, o, s) {
|
|
14803
|
-
var u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
14803
|
+
var u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X, Y, z0, d0, k, q0, _0, E0, y0, S0, R0, j0, I0, K0 = null;
|
|
14804
14804
|
if (a.length === 0)
|
|
14805
14805
|
return u = i._setArrayType([], r.JSArray_String), l = i._setArrayType([], r.JSArray_XYDatasetModel), M = i.IterableExtension_get_firstOrNull(a), new i.BaseXYChartDataModel(e, u, l, new i.DateComparison(M == null ? K0 : M.dateRange, K0));
|
|
14806
14806
|
for (d = A.JSArray_methods.get$first(a).columns, u = i._arrayInstanceType(d), l = u._eval$1("WhereIterable<1>"), _ = i.List_List$of(new i.WhereIterable(d, new i.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = i._arrayInstanceType(_)._eval$1("WhereIterable<1>"), z = i.List_List$of(new i.WhereIterable(_, new i.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, f = i._formatRows(i.ListExtension_sublistOrEmpty(a, 0, 1, l), s), y = i._formatRows(i.ListExtension_sublistOrEmpty(a, 1, 2, l), s), y.length !== 0 && (u = u._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = i.List_List$of(new i.MappedListIterable(d, new i.formatBaseXYChartData_closure1(), u), !0, u._eval$1("ListIterable.E")), h = i.compare(new i.ComparisonData(q, y), new i.ComparisonData(q, f)), y = h.comparison, f = h.main), u = r.String, l = i.LinkedHashMap_LinkedHashMap$_empty(u, r.bool), M = z.length, S = 0; R = z.length, S < R; z.length === M || (0, i.throwConcurrentModificationError)(z), ++S)
|
|
@@ -14811,7 +14811,7 @@ var Cn = Rn, br = {};
|
|
|
14811
14811
|
for (R = i.LinkedHashMap_LinkedHashMap$_empty(u, r.int), I = 0; I < d.length; ++I)
|
|
14812
14812
|
R.$indexSet(0, d[I].id, I);
|
|
14813
14813
|
for (C.addAll$1(0, M), N = z.length, S = 0; S < z.length; z.length === N || (0, i.throwConcurrentModificationError)(z), ++S)
|
|
14814
|
-
|
|
14814
|
+
w = z[S].id, B.$indexSet(0, w, w);
|
|
14815
14815
|
N = i._arrayInstanceType(f)._eval$1("ExpandIterable<1,List<@>>"), f = i.List_List$of(new i.ExpandIterable(f, new i.formatBaseXYChartData_closure2(z, R), N), !0, N._eval$1("Iterable.E")), y.length !== 0 && (N = i._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = i.List_List$of(new i.ExpandIterable(y, new i.formatBaseXYChartData_closure3(z, R), N), !0, N._eval$1("Iterable.E")));
|
|
14816
14816
|
} else if (_.length > 1) {
|
|
14817
14817
|
for (R = i.LinkedHashMap_LinkedHashMap$_empty(u, r.int), I = 0; I < d.length; ++I)
|
|
@@ -14819,9 +14819,9 @@ var Cn = Rn, br = {};
|
|
|
14819
14819
|
R = new i.formatBaseXYChartData_expandRowsByMetric(A.JSArray_methods.indexWhere$1(d, new i.formatBaseXYChartData_closure4(n)), z, R, M, C, B), f = R.call$1(f), y.length !== 0 && (y = R.call$1(y));
|
|
14820
14820
|
}
|
|
14821
14821
|
for (R = r.JSArray_String, J = i._setArrayType([], R), X = i._setArrayType([], R), R = f.length, S = 0; S < f.length; f.length === R || (0, i.throwConcurrentModificationError)(f), ++S)
|
|
14822
|
-
|
|
14823
|
-
for (R = i.LinkedHashSet_LinkedHashSet$from(J, u), J = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(X, u),
|
|
14824
|
-
for (k =
|
|
14822
|
+
Y = f[S], N = p.getInterceptor$asx(Y), J.push(p.toString$0$(N.$index(Y, 0))), X.push(p.toString$0$(N.$index(Y, 1)));
|
|
14823
|
+
for (R = i.LinkedHashSet_LinkedHashSet$from(J, u), J = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(X, u), z0 = i.List_List$of(u, !0, i._instanceType(u)._precomputed1), d0 = i._setArrayType([], r.JSArray_XYDatasetModel), u = z0.length, R = p.getInterceptor$asx(y), N = r.JSArray_nullable_num, S = 0; S < z0.length; z0.length === u || (0, i.throwConcurrentModificationError)(z0), ++S) {
|
|
14824
|
+
for (k = z0[S], q0 = i._setArrayType([], N), _0 = i._setArrayType([], N), E0 = B.$index(0, k), w = l.$index(0, E0 ?? k), y0 = w === !0, w = C.$index(0, k), S0 = w ?? M.$index(0, k), S0 == null && (S0 = k), w = J.length, R0 = 0; R0 < J.length; J.length === w || (0, i.throwConcurrentModificationError)(J), ++R0)
|
|
14825
14825
|
j0 = J[R0], I0 = i.IterableExtension_firstWhereOrNull(f, new i.formatBaseXYChartData_closure5(j0, k)), q0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), y0)), R.get$length(y) !== 0 && (I0 = i.IterableExtension_firstWhereOrNull(y, new i.formatBaseXYChartData_closure6(j0, k)), _0.push(i._parseMetricValue(I0 == null ? K0 : i.ListExtension_elementAtOrNull(I0, 2), y0)));
|
|
14826
14826
|
d0.push(new i.XYDatasetModel(S0, !1, q0)), _0.length !== 0 && d0.push(new i.XYDatasetModel(S0, !0, _0));
|
|
14827
14827
|
}
|
|
@@ -14928,9 +14928,9 @@ var Cn = Rn, br = {};
|
|
|
14928
14928
|
return new i.RowInfo(u, p.map$1$1$ax(a, new i._getRowInfo_closure(e, n, o, u), s).join$0(0));
|
|
14929
14929
|
},
|
|
14930
14930
|
compare(e, n) {
|
|
14931
|
-
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
14932
|
-
for (
|
|
14933
|
-
if (h = d[q], S = i._getRowInfo(o,
|
|
14931
|
+
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w = {};
|
|
14932
|
+
for (w.comparisonDateIndex = w.mainDateIndex = null, a = w.comparisonIndexesCompleted = w.mainIndexesCompleted = !1, o = n.columns, s = r.JSArray_int, u = i.IterableExtension_foldIndexed(o, i._setArrayType([], s), new i.compare_closure(w)), l = i.IterableExtension_foldIndexed(e.columns, i._setArrayType([], s), new i.compare_closure0(w)), s = r.JSArray_String, w.dates = i._setArrayType([], s), (w.mainDateIndex != null ? w.comparisonDateIndex != null : a) && (a = r.String, a = i.ListExtensions_mapIndexed(A.JSArray_methods.fold$2(n.rows, i._setArrayType([], s), new i.compare_closure1(w)), new i.compare_closure2(A.JSArray_methods.fold$2(e.rows, i._setArrayType([], s), new i.compare_closure3(w))), a, a), w.dates = i.List_List$of(a, !0, a.$ti._eval$1("Iterable.E"))), M = A.JSArray_methods.fold$2(e.rows, i.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new i.compare_closure4(w, e, l)), a = r.JSArray_List_dynamic, s = i._setArrayType([], a), a = i._setArrayType([], a), d = n.rows, _ = d.length, z = r.JSArray_dynamic, f = p.getInterceptor$asx(u), y = r.dynamic, q = 0; q < d.length; d.length === _ || (0, i.throwConcurrentModificationError)(d), ++q) {
|
|
14933
|
+
if (h = d[q], S = i._getRowInfo(o, w.dates, u, h), R = M.$index(0, S.id), g = R == null ? null : p.toList$0$ax(R), g == null) {
|
|
14934
14934
|
for (R = S.row, C = i.List_List$of(i.ListExtensions_slice(R, 0, f.get$length(u), y), !0, y), B = R.length - f.get$length(u), B < 0 && i.throwExpression(i.ArgumentError$("Length must be a non-negative integer: " + B)), I = i._setArrayType(new Array(B), z), N = 0; N < B; ++N)
|
|
14935
14935
|
I[N] = null;
|
|
14936
14936
|
A.JSArray_methods.addAll$1(C, I), g = C;
|
|
@@ -15032,7 +15032,7 @@ var Cn = Rn, br = {};
|
|
|
15032
15032
|
return s = h.mainResponse, _ = s.rows, z = i._arrayInstanceType(_)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(i.List_List$of(new i.MappedListIterable(_, new i._formatTableData_closure3(), z), !0, z._eval$1("ListIterable.E")));
|
|
15033
15033
|
},
|
|
15034
15034
|
formatTableChartData(e, n, a, o) {
|
|
15035
|
-
var s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
15035
|
+
var s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w, J, X = {};
|
|
15036
15036
|
if (n.length === 0)
|
|
15037
15037
|
return new i.TableDataModel(i._setArrayType([], r.JSArray_TableRowModel), i._setArrayType([], r.JSArray_TableColumnModel));
|
|
15038
15038
|
for (e.isBlend && (s = i.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), A.JSArray_methods.addAll$1(s, A.JSArray_methods.fold$2(e.get$joinDatasources(), i._setArrayType([], r.JSArray_QueryRequestDimension), new i.formatTableChartData_closure())), u = i.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), A.JSArray_methods.addAll$1(u, A.JSArray_methods.fold$2(e.get$joinDatasources(), i._setArrayType([], r.JSArray_QueryRequestMetric), new i.formatTableChartData_closure0())), l = i._setArrayType([], r.JSArray_JoinDatasourceConfig), M = e.rowsPerPage, d = e.get$columnIds(), _ = e.get$rowIds(), z = e.get$drillDimension(), e = i.TableDatasourceConfigModel$(d, e.columnsWidth, s, z, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, u, e.periodType, e.rollup, e.rollupPosition, _, M, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), f = e.get$joinDatasources().length + 1, s = r.QueryResponse, y = i._formatTableData(e, i.ListExtension_sublistOrEmpty(n, 0, f, s), a, o), q = X.comparison = i._formatTableData(e, i.ListExtension_sublistOrEmpty(n, f, f * 2, s), a, o), s = q.rows, s.length !== 0 && (u = y.rows, l = i._arrayInstanceType(u)._eval$1("MappedListIterable<1,List<@>>"), l = i.List_List$of(new i.MappedListIterable(u, new i.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), M = y.columns, d = i._arrayInstanceType(M)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = i.List_List$of(new i.MappedListIterable(M, new i.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), M = i._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), M = i.List_List$of(new i.MappedListIterable(s, new i.formatTableChartData_closure3(), M), !0, M._eval$1("ListIterable.E")), _ = q.columns, z = i._arrayInstanceType(_)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = i.compare(new i.ComparisonData(i.List_List$of(new i.MappedListIterable(_, new i.formatTableChartData_closure4(), z), !0, z._eval$1("ListIterable.E")), M), new i.ComparisonData(d, l)), l = r.TableRowModel, u = i.ListExtensions_mapIndexed(u, new i.formatTableChartData_closure5(h), l, l), y = y.copyWith$1$rows(i.List_List$of(u, !0, u.$ti._eval$1("Iterable.E"))), l = i.ListExtensions_mapIndexed(s, new i.formatTableChartData_closure6(h), l, l), X.comparison = q.copyWith$1$rows(i.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = y.columns, u = i._arrayInstanceType(s)._eval$1("WhereIterable<1>"), S = i.List_List$of(new i.WhereIterable(s, new i.formatTableChartData_closure7(), u), !0, u._eval$1("Iterable.E")), u = r.String, l = r.int, R = i.LinkedHashMap_LinkedHashMap$_empty(u, l), g = 0; g < s.length; ++g)
|
|
@@ -15040,7 +15040,7 @@ var Cn = Rn, br = {};
|
|
|
15040
15040
|
for (B = i.LinkedHashMap_LinkedHashMap$_empty(u, l), g = 0; s = X.comparison.columns, g < s.length; ++g)
|
|
15041
15041
|
C = s[g], B.$indexSet(0, C.key + "_" + C.hide, g);
|
|
15042
15042
|
for (I = i._setArrayType([], r.JSArray__ColumnMapping), s = S.length, N = 0; N < s; ++N)
|
|
15043
|
-
C = S[N], u = C.key,
|
|
15043
|
+
C = S[N], u = C.key, w = u + "_" + C.hide, u = i.stringReplaceAllUnchecked(u, ".", "_"), l = R.$index(0, w), l == null && (l = -1), M = B.$index(0, w), I.push(new i._ColumnMapping(C, u, l, M ?? -1));
|
|
15044
15044
|
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, J = i.List_List$of(new i.MappedListIterable(I, new i.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = X.comparison.rows.length, u = r.TableRowModel, u = i.ListExtensions_mapIndexed(y.rows, new i.formatTableChartData_closure9(X, I, a, o, s !== 0, s), u, u), y.copyWith$2$columns$rows(J, i.List_List$of(u, !0, u.$ti._eval$1("Iterable.E")));
|
|
15045
15045
|
},
|
|
15046
15046
|
_formatTableResponse_closure: function(n) {
|
|
@@ -19287,18 +19287,18 @@ Arguments: [` + d + "]";
|
|
|
19287
19287
|
$signature: 0
|
|
19288
19288
|
}, i._formatTableResponse_closure5.prototype = {
|
|
19289
19289
|
call$2(e, n) {
|
|
19290
|
-
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N,
|
|
19290
|
+
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I, N, w = null, J = r.JSArray_List_dynamic, X = i._setArrayType([[]], J), Y = i._setArrayType([[]], J);
|
|
19291
19291
|
for (J = this.headers, a = n.value, o = r.dynamic, s = r.JSArray_String, u = r.String, l = this.metricColumns, M = 0; M < J.length; ++M)
|
|
19292
19292
|
if (d = J[M], _ = p.getInterceptor$ax(d), z = _.map$1$1(d, new i._formatTableResponse__closure4(), u).join$1(0, "|"), i.IterableExtension_firstWhereOrNull(d, new i._formatTableResponse__closure5()) != null)
|
|
19293
19293
|
for (f = _.firstWhere$1(d, new i._formatTableResponse__closure6()), y = _.fold$2(d, !0, new i._formatTableResponse__closure7(n)), _ = X.length, q = f.type, h = f.columnValue, S = 0; S < X.length; X.length === _ || (0, i.throwConcurrentModificationError)(X), ++S)
|
|
19294
|
-
R = X[S], y ? (g = a.$index(0, h), C = R.length, M >= C && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - C + 1,
|
|
19294
|
+
R = X[S], y ? (g = a.$index(0, h), C = R.length, M >= C && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - C + 1, w, !1, o)), R[M] = g) : (g = q == null ? w : i.DataTypeExtension_toData(q, w), C = R.length, M >= C && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - C + 1, w, !1, o)), R[M] = g);
|
|
19295
19295
|
else if (A.JSArray_methods.contains$1(i._setArrayType(["_metric_name", "_metric_value"], s), z))
|
|
19296
19296
|
for (_ = z === "_metric_value", q = z === "_metric_name", B = 0; B < l.length; ++B)
|
|
19297
|
-
I = l[B], i.ListExtension_elementAtOrNull(X, B) == null && (X.push(i.List_List$of(X[0], !0, o)),
|
|
19297
|
+
I = l[B], i.ListExtension_elementAtOrNull(X, B) == null && (X.push(i.List_List$of(X[0], !0, o)), Y.push(i.List_List$of(Y[0], !0, o))), q ? (h = X[B], g = I.label, C = h.length, M >= C && A.JSArray_methods.addAll$1(h, i.List_List$filled(M - C + 1, w, !1, o)), h[M] = g, Y[B].push(g)) : _ && (h = X[B], g = a.$index(0, I.id), C = h.length, M >= C && A.JSArray_methods.addAll$1(h, i.List_List$filled(M - C + 1, w, !1, o)), h[M] = g);
|
|
19298
19298
|
else
|
|
19299
19299
|
for (N = 0; N < X.length; ++N)
|
|
19300
|
-
_ = X[N], q = a.$index(0, z), h = _.length, M >= h && A.JSArray_methods.addAll$1(_, i.List_List$filled(M - h + 1,
|
|
19301
|
-
return p.addAll$1$ax(e, i.ListExtensions_mapIndexed(X, new i._formatTableResponse__closure8(
|
|
19300
|
+
_ = X[N], q = a.$index(0, z), h = _.length, M >= h && A.JSArray_methods.addAll$1(_, i.List_List$filled(M - h + 1, w, !1, o)), _[M] = q, Y[N].push(a.$index(0, z));
|
|
19301
|
+
return p.addAll$1$ax(e, i.ListExtensions_mapIndexed(X, new i._formatTableResponse__closure8(Y, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
19302
19302
|
},
|
|
19303
19303
|
$signature: 79
|
|
19304
19304
|
}, i._formatTableResponse__closure4.prototype = {
|
|
@@ -19537,10 +19537,10 @@ Arguments: [` + d + "]";
|
|
|
19537
19537
|
$signature: 99
|
|
19538
19538
|
}, i.formatTableChartData_closure9.prototype = {
|
|
19539
19539
|
call$2(e, n) {
|
|
19540
|
-
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I = this, N = [],
|
|
19540
|
+
var a, o, s, u, l, M, d, _, z, f, y, q, h, S, R, g, C, B, I = this, N = [], w = [], J = n.cells, X = p.getInterceptor$asx(J), Y = X.get$length(J);
|
|
19541
19541
|
for (a = I.columnMappings, o = a.length, s = I.hasComparison, u = I.country, l = I.timezone, M = e < I.comparisonRowsLength, d = I._box_0, _ = 0; _ < a.length; a.length === o || (0, i.throwConcurrentModificationError)(a), ++_)
|
|
19542
|
-
z = a[_], f = z.mainIndex, y = f >= 0 && f <
|
|
19543
|
-
return n.copyWith$2$cells$comparisonCells(N,
|
|
19542
|
+
z = a[_], f = z.mainIndex, y = f >= 0 && f < Y ? X.$index(J, f) : i.ListExtension_elementAtOrNull(J, f), f = z.column, q = f.type, h = q == null, N.push(h ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, l, y)), s && (M ? (S = d.comparison.rows[e].cells, R = p.getInterceptor$asx(S), g = R.get$length(S), C = z.comparisonIndex, B = C >= 0 && C < g ? R.$index(S, C) : i.ListExtension_elementAtOrNull(S, C)) : B = i.ListExtension_elementAtOrNull([], z.comparisonIndex), w.push(h ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, l, B)));
|
|
19543
|
+
return n.copyWith$2$cells$comparisonCells(N, w);
|
|
19544
19544
|
},
|
|
19545
19545
|
$signature: 7
|
|
19546
19546
|
}, i.TZDateTime.prototype = {
|
|
@@ -19978,8 +19978,8 @@ Arguments: [` + d + "]";
|
|
|
19978
19978
|
return o.message;
|
|
19979
19979
|
}
|
|
19980
19980
|
}())), n(F, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => i.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(F, "_hashSeed", "$get$_hashSeed", () => i.objectHashCode(A.Type_Object_xQ6)), n(F, "Endian_host", "$get$Endian_host", () => i.NativeByteData_NativeByteData$view(i.NativeUint16List_NativeUint16List$fromList(i._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? A.C_Endian0 : A.C_Endian), n(F, "_clockKey", "$get$_clockKey", () => new i.Object()), n(F, "en_USSymbols", "$get$en_USSymbols", () => new i.DateSymbols("en_US", A.List_BC_AD, A.List_6xs, A.List_qpm, A.List_qpm, A.List_cIc, A.List_cIc, A.List_h8w, A.List_h8w, A.List_wMy, A.List_wMy, A.List_gc6, A.List_gc6, A.List_3US, A.List_Q1_Q2_Q3_Q4, A.List_bJM, A.List_AM_PM)), a(F, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", F.$get$en_USSymbols())), a(F, "dateTimePatterns", "$get$dateTimePatterns", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", A.Map_EQ6TW)), n(F, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(F, "DateFormat__matchers", "$get$DateFormat__matchers", () => i._setArrayType([i.RegExp_RegExp("^'(?:[^']|'')*'", !1), i.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), i.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], i.findType("JSArray<RegExp>"))), n(F, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => i.RegExp_RegExp("''", !1)), n(F, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => i.RegExp_RegExp("^\\d+", !1)), a(F, "_availableLocales", "$get$_availableLocales", () => {
|
|
19981
|
-
var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), f = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), S = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), C = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1),
|
|
19982
|
-
return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", h, "es_do", S, "es_us", R, "fr", g, "fr_ch", C, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk",
|
|
19981
|
+
var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), f = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), S = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), C = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1), w = i.ZhLocale$(A.StartOfWeek_1), J = i.ZhLocale$(A.StartOfWeek_1), X = i.DeLocale$(A.StartOfWeek_2), Y = i.DeLocale$(A.StartOfWeek_2), z0 = i.DeLocale$(A.StartOfWeek_2), d0 = i.DeLocale$(A.StartOfWeek_2), k = i.ItLocale$(A.StartOfWeek_2), q0 = i.ItLocale$(A.StartOfWeek_2), _0 = i.ArLyLocale$(!0, A.StartOfWeek_0), E0 = i.ArLyLocale$(!1, A.StartOfWeek_0), y0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), S0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), R0 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), j0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), I0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
|
|
19982
|
+
return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", h, "es_do", S, "es_us", R, "fr", g, "fr_ch", C, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk", w, "zh_tw", J, "de", X, "de_de", Y, "de_at", z0, "de_ch", d0, "it", k, "it_ch", q0, "ar", _0, "ar_ly", E0, "ar_dz", y0, "ar_kw", S0, "ar_sa", R0, "ar_ma", j0, "ar_tn", I0, "az", new i.AzLocale(A.StartOfWeek_2), "id", new i.IdLocale(A.StartOfWeek_1), "ja", new i.JaLocale(A.StartOfWeek_1), "ko", new i.KoLocale(A.StartOfWeek_1), "ru", new i.RuLocale(A.StartOfWeek_2), "uk", new i.UkLocale(A.StartOfWeek_2), "hi", new i.HiLocale(A.StartOfWeek_1), "pt", o, "pt_br", s, "pl", new i.PlLocale(A.StartOfWeek_2), "tr", new i.TrLocale(A.StartOfWeek_2), "sv", new i.SvLocale(A.StartOfWeek_2), "nb", new i.NbLocale(A.StartOfWeek_2), "fa", new i.FaLocale(A.StartOfWeek_0), "bn", new i.BnLocale(A.StartOfWeek_1), "nl", new i.NlLocale(A.StartOfWeek_2), "th", new i.ThLocale(A.StartOfWeek_1)], r.String, i.findType("Locale"));
|
|
19983
19983
|
}), n(F, "_UTC", "$get$_UTC", () => {
|
|
19984
19984
|
var o = r.JSArray_int;
|
|
19985
19985
|
return i.Location$("UTC", i._setArrayType([-864e13], o), i._setArrayType([0], o), i._setArrayType([A.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -20063,13 +20063,13 @@ function kt(c) {
|
|
|
20063
20063
|
/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/
|
|
20064
20064
|
);
|
|
20065
20065
|
if (m) {
|
|
20066
|
-
const [,
|
|
20066
|
+
const [, v, H, K, o0, Z, U = "0"] = m;
|
|
20067
20067
|
return {
|
|
20068
20068
|
type: "fullDateTime",
|
|
20069
20069
|
value: new Date(
|
|
20070
20070
|
parseInt(K),
|
|
20071
20071
|
parseInt(H) - 1,
|
|
20072
|
-
parseInt(
|
|
20072
|
+
parseInt(v),
|
|
20073
20073
|
parseInt(o0),
|
|
20074
20074
|
parseInt(Z),
|
|
20075
20075
|
parseInt(U)
|
|
@@ -20078,23 +20078,23 @@ function kt(c) {
|
|
|
20078
20078
|
}
|
|
20079
20079
|
const E = b.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
20080
20080
|
if (E) {
|
|
20081
|
-
const [,
|
|
20081
|
+
const [, v, H, K] = E;
|
|
20082
20082
|
return {
|
|
20083
20083
|
type: "date",
|
|
20084
20084
|
value: new Date(
|
|
20085
20085
|
parseInt(K),
|
|
20086
20086
|
parseInt(H) - 1,
|
|
20087
|
-
parseInt(
|
|
20087
|
+
parseInt(v)
|
|
20088
20088
|
).getTime()
|
|
20089
20089
|
};
|
|
20090
20090
|
}
|
|
20091
20091
|
const L = b.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
20092
20092
|
if (L) {
|
|
20093
|
-
const [,
|
|
20093
|
+
const [, v, H, K] = L;
|
|
20094
20094
|
return {
|
|
20095
20095
|
type: "date",
|
|
20096
20096
|
value: new Date(
|
|
20097
|
-
parseInt(
|
|
20097
|
+
parseInt(v),
|
|
20098
20098
|
parseInt(H) - 1,
|
|
20099
20099
|
parseInt(K)
|
|
20100
20100
|
).getTime()
|
|
@@ -20102,18 +20102,18 @@ function kt(c) {
|
|
|
20102
20102
|
}
|
|
20103
20103
|
const x = b.match(/^(\d{1,2})\/(\d{4})$/);
|
|
20104
20104
|
if (x) {
|
|
20105
|
-
const [,
|
|
20105
|
+
const [, v, H] = x;
|
|
20106
20106
|
return {
|
|
20107
20107
|
type: "monthYear",
|
|
20108
|
-
value: new Date(parseInt(H), parseInt(
|
|
20108
|
+
value: new Date(parseInt(H), parseInt(v) - 1, 1).getTime()
|
|
20109
20109
|
};
|
|
20110
20110
|
}
|
|
20111
20111
|
const P = b.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
20112
20112
|
if (P) {
|
|
20113
|
-
const [,
|
|
20113
|
+
const [, v, H, K = "0"] = P;
|
|
20114
20114
|
return {
|
|
20115
20115
|
type: "time",
|
|
20116
|
-
value: parseInt(
|
|
20116
|
+
value: parseInt(v) * 3600 + parseInt(H) * 60 + parseInt(K)
|
|
20117
20117
|
};
|
|
20118
20118
|
}
|
|
20119
20119
|
return /^\d+$/.test(b) ? { type: "number", value: parseInt(b) } : null;
|
|
@@ -20180,8 +20180,8 @@ function Bn(c) {
|
|
|
20180
20180
|
let P = 0;
|
|
20181
20181
|
for (const a0 of x)
|
|
20182
20182
|
a0.isRollup && P++, a0.groupIndex = P;
|
|
20183
|
-
const
|
|
20184
|
-
for (const a0 of D)
|
|
20183
|
+
const v = {};
|
|
20184
|
+
for (const a0 of D) v[a0.key] = a0.type === "NUMERIC";
|
|
20185
20185
|
const H = $.filter(
|
|
20186
20186
|
(a0) => a0.key && D.some((i0) => i0.key === a0.key)
|
|
20187
20187
|
), K = H.length > 0;
|
|
@@ -20200,9 +20200,9 @@ function Bn(c) {
|
|
|
20200
20200
|
K && Object.values(Z).forEach((a0) => {
|
|
20201
20201
|
const i0 = a0.filter((l0) => l0.isRollup), u0 = a0.filter((l0) => !l0.isRollup);
|
|
20202
20202
|
u0.sort((l0, f0) => {
|
|
20203
|
-
for (const { key: c0, type:
|
|
20204
|
-
const D0 =
|
|
20205
|
-
if (
|
|
20203
|
+
for (const { key: c0, type: O0 } of H) {
|
|
20204
|
+
const D0 = O0 === "ASC" ? 1 : -1, M0 = $e(l0, c0, D) ?? "", t = $e(f0, c0, D) ?? "";
|
|
20205
|
+
if (v[c0]) {
|
|
20206
20206
|
const i = ye(M0), p = ye(t);
|
|
20207
20207
|
if (i !== null && p !== null) {
|
|
20208
20208
|
const T = i - p;
|
|
@@ -20225,19 +20225,19 @@ function Bn(c) {
|
|
|
20225
20225
|
if (K) {
|
|
20226
20226
|
const a0 = E === null ? (() => {
|
|
20227
20227
|
const l0 = Object.keys(Z).find((f0) => {
|
|
20228
|
-
const c0 = Z[f0] || [],
|
|
20229
|
-
return
|
|
20228
|
+
const c0 = Z[f0] || [], O0 = c0.some((M0) => M0.isRollup), D0 = c0.some((M0) => !M0.isRollup);
|
|
20229
|
+
return O0 && !D0;
|
|
20230
20230
|
});
|
|
20231
20231
|
return l0 !== void 0 ? Number(l0) : -1;
|
|
20232
|
-
})() : -1, i0 = ((V = H[0]) == null ? void 0 : V.key) ?? ((s0 = D.find((l0) =>
|
|
20232
|
+
})() : -1, i0 = ((V = H[0]) == null ? void 0 : V.key) ?? ((s0 = D.find((l0) => v[l0.key])) == null ? void 0 : s0.key), u0 = ((r0 = H[0]) == null ? void 0 : r0.type) === "ASC" ? 1 : (((b0 = H[0]) == null ? void 0 : b0.type) === "DESC", -1);
|
|
20233
20233
|
U = Object.keys(Z).map(Number).sort((l0, f0) => {
|
|
20234
20234
|
if (!i0) return l0 - f0;
|
|
20235
20235
|
if (a0 !== -1) {
|
|
20236
20236
|
if (l0 === a0) return -1;
|
|
20237
20237
|
if (f0 === a0) return 1;
|
|
20238
20238
|
}
|
|
20239
|
-
const c0 = Z[l0].find((i) => i.isRollup),
|
|
20240
|
-
if (
|
|
20239
|
+
const c0 = Z[l0].find((i) => i.isRollup), O0 = Z[f0].find((i) => i.isRollup), D0 = c0 ? $e(c0, i0, D) ?? "" : "", M0 = O0 ? $e(O0, i0, D) ?? "" : "";
|
|
20240
|
+
if (v[i0]) {
|
|
20241
20241
|
const i = ye(D0), p = ye(M0);
|
|
20242
20242
|
return i !== null && p !== null ? (i - p) * u0 : fe.compare(String(D0), String(M0)) * u0;
|
|
20243
20243
|
}
|
|
@@ -20246,16 +20246,16 @@ function Bn(c) {
|
|
|
20246
20246
|
});
|
|
20247
20247
|
} else
|
|
20248
20248
|
U = Object.keys(Z).map(Number).sort((a0, i0) => a0 - i0);
|
|
20249
|
-
const
|
|
20249
|
+
const Q = [];
|
|
20250
20250
|
for (const a0 of U)
|
|
20251
20251
|
for (const { groupIndex: i0, ...u0 } of Z[a0])
|
|
20252
|
-
|
|
20252
|
+
Q.push(u0);
|
|
20253
20253
|
if (L > 0) {
|
|
20254
|
-
const a0 =
|
|
20254
|
+
const a0 = Q.length % L;
|
|
20255
20255
|
let i0 = 0;
|
|
20256
|
-
a0 > 0 ? i0 = L - a0 :
|
|
20256
|
+
a0 > 0 ? i0 = L - a0 : Q.length === 0 && (i0 = L), i0 > 0 && Q.push(...Fn(i0, D));
|
|
20257
20257
|
}
|
|
20258
|
-
return { data:
|
|
20258
|
+
return { data: Q };
|
|
20259
20259
|
}
|
|
20260
20260
|
var Nn = { processTableData: Bn }, dr = { exports: {} }, zr = { exports: {} };
|
|
20261
20261
|
//! moment.js
|
|
@@ -20311,7 +20311,7 @@ function W1(c, b) {
|
|
|
20311
20311
|
function D1(c, b, D, $) {
|
|
20312
20312
|
return Pr(c, b, D, $, !0).utc();
|
|
20313
20313
|
}
|
|
20314
|
-
function
|
|
20314
|
+
function vn() {
|
|
20315
20315
|
return {
|
|
20316
20316
|
empty: !1,
|
|
20317
20317
|
unusedTokens: [],
|
|
@@ -20331,8 +20331,8 @@ function wn() {
|
|
|
20331
20331
|
weekdayMismatch: !1
|
|
20332
20332
|
};
|
|
20333
20333
|
}
|
|
20334
|
-
function
|
|
20335
|
-
return c._pf == null && (c._pf =
|
|
20334
|
+
function A0(c) {
|
|
20335
|
+
return c._pf == null && (c._pf = vn()), c._pf;
|
|
20336
20336
|
}
|
|
20337
20337
|
var it;
|
|
20338
20338
|
Array.prototype.some ? it = Array.prototype.some : it = function(c) {
|
|
@@ -20344,7 +20344,7 @@ Array.prototype.some ? it = Array.prototype.some : it = function(c) {
|
|
|
20344
20344
|
};
|
|
20345
20345
|
function Dt(c) {
|
|
20346
20346
|
var b = null, D = !1, $ = c._d && !isNaN(c._d.getTime());
|
|
20347
|
-
if ($ && (b =
|
|
20347
|
+
if ($ && (b = A0(c), D = it.call(b.parsedDateParts, function(m) {
|
|
20348
20348
|
return m != null;
|
|
20349
20349
|
}), $ = b.overflow < 0 && !b.empty && !b.invalidEra && !b.invalidMonth && !b.invalidWeekday && !b.weekdayMismatch && !b.nullInput && !b.invalidFormat && !b.userInvalidated && (!b.meridiem || b.meridiem && D), c._strict && ($ = $ && b.charsLeftOver === 0 && b.unusedTokens.length === 0 && b.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(c))
|
|
20350
20350
|
c._isValid = $;
|
|
@@ -20352,14 +20352,14 @@ function Dt(c) {
|
|
|
20352
20352
|
return $;
|
|
20353
20353
|
return c._isValid;
|
|
20354
20354
|
}
|
|
20355
|
-
function
|
|
20355
|
+
function ve(c) {
|
|
20356
20356
|
var b = D1(NaN);
|
|
20357
|
-
return c != null ? W1(
|
|
20357
|
+
return c != null ? W1(A0(b), c) : A0(b).userInvalidated = !0, b;
|
|
20358
20358
|
}
|
|
20359
20359
|
var Yt = t0.momentProperties = [], je = !1;
|
|
20360
20360
|
function ft(c, b) {
|
|
20361
20361
|
var D, $, m, E = Yt.length;
|
|
20362
|
-
if (r1(b._isAMomentObject) || (c._isAMomentObject = b._isAMomentObject), r1(b._i) || (c._i = b._i), r1(b._f) || (c._f = b._f), r1(b._l) || (c._l = b._l), r1(b._strict) || (c._strict = b._strict), r1(b._tzm) || (c._tzm = b._tzm), r1(b._isUTC) || (c._isUTC = b._isUTC), r1(b._offset) || (c._offset = b._offset), r1(b._pf) || (c._pf =
|
|
20362
|
+
if (r1(b._isAMomentObject) || (c._isAMomentObject = b._isAMomentObject), r1(b._i) || (c._i = b._i), r1(b._f) || (c._f = b._f), r1(b._l) || (c._l = b._l), r1(b._strict) || (c._strict = b._strict), r1(b._tzm) || (c._tzm = b._tzm), r1(b._isUTC) || (c._isUTC = b._isUTC), r1(b._offset) || (c._offset = b._offset), r1(b._pf) || (c._pf = A0(b)), r1(b._locale) || (c._locale = b._locale), E > 0)
|
|
20363
20363
|
for (D = 0; D < E; D++)
|
|
20364
20364
|
$ = Yt[D], m = b[$], r1(m) || (c[$] = m);
|
|
20365
20365
|
return c;
|
|
@@ -20407,7 +20407,7 @@ t0.deprecationHandler = null;
|
|
|
20407
20407
|
function f1(c) {
|
|
20408
20408
|
return typeof Function < "u" && c instanceof Function || Object.prototype.toString.call(c) === "[object Function]";
|
|
20409
20409
|
}
|
|
20410
|
-
function
|
|
20410
|
+
function wn(c) {
|
|
20411
20411
|
var b, D;
|
|
20412
20412
|
for (D in c)
|
|
20413
20413
|
h0(c, D) && (b = c[D], f1(b) ? this[D] = b : this["_" + D] = b);
|
|
@@ -20625,7 +20625,7 @@ function ra(c) {
|
|
|
20625
20625
|
return $.priority - m.priority;
|
|
20626
20626
|
}), b;
|
|
20627
20627
|
}
|
|
20628
|
-
var yr = /\d/, a1 = /\d\d/, mr = /\d{3}/, qt = /\d{4}/,
|
|
20628
|
+
var yr = /\d/, a1 = /\d\d/, mr = /\d{3}/, qt = /\d{4}/, we = /[+-]?\d{6}/, B0 = /\d\d?/, qr = /\d\d\d\d?/, gr = /\d\d\d\d\d\d?/, Pe = /\d{1,3}/, gt = /\d{1,4}/, Je = /[+-]?\d{1,6}/, te = /\d+/, He = /[+-]?\d+/, na = /Z|[+-]\d\d:?\d\d/gi, Xe = /Z|[+-]\d\d(?::?\d\d)?/gi, aa = /[+-]?\d+(\.\d{1,3})?/, ze = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, re = /^[1-9]\d?/, ht = /^([1-9]\d|\d)/, Le;
|
|
20629
20629
|
Le = {};
|
|
20630
20630
|
function n0(c, b, D) {
|
|
20631
20631
|
Le[c] = f1(b) ? b : function($, m) {
|
|
@@ -20674,7 +20674,7 @@ function sa(c, b, D) {
|
|
|
20674
20674
|
function ke(c) {
|
|
20675
20675
|
return c % 4 === 0 && c % 100 !== 0 || c % 400 === 0;
|
|
20676
20676
|
}
|
|
20677
|
-
var Z0 = 0, g1 = 1, O1 = 2, Q0 = 3, M1 = 4, h1 = 5,
|
|
20677
|
+
var Z0 = 0, g1 = 1, O1 = 2, Q0 = 3, M1 = 4, h1 = 5, w1 = 6, ua = 7, la = 8;
|
|
20678
20678
|
p0("Y", 0, 0, function() {
|
|
20679
20679
|
var c = this.year();
|
|
20680
20680
|
return c <= 9999 ? A1(c, 4) : "+" + c;
|
|
@@ -20688,8 +20688,8 @@ p0(0, ["YYYYYY", 6, !0], 0, "year");
|
|
|
20688
20688
|
n0("Y", He);
|
|
20689
20689
|
n0("YY", B0, a1);
|
|
20690
20690
|
n0("YYYY", gt, qt);
|
|
20691
|
-
n0("YYYYY", Je,
|
|
20692
|
-
n0("YYYYYY", Je,
|
|
20691
|
+
n0("YYYYY", Je, we);
|
|
20692
|
+
n0("YYYYYY", Je, we);
|
|
20693
20693
|
W0(["YYYYY", "YYYYYY"], Z0);
|
|
20694
20694
|
W0("YYYY", function(c, b) {
|
|
20695
20695
|
b[Z0] = c.length === 2 ? t0.parseTwoDigitYear(c) : $0(c);
|
|
@@ -20814,7 +20814,7 @@ W0(["M", "MM"], function(c, b) {
|
|
|
20814
20814
|
});
|
|
20815
20815
|
W0(["MMM", "MMMM"], function(c, b, D, $) {
|
|
20816
20816
|
var m = D._locale.monthsParse(c, $, D._strict);
|
|
20817
|
-
m != null ? b[g1] = m :
|
|
20817
|
+
m != null ? b[g1] = m : A0(D).invalidMonth = c;
|
|
20818
20818
|
});
|
|
20819
20819
|
var _a = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
20820
20820
|
"_"
|
|
@@ -20879,8 +20879,8 @@ function ma(c) {
|
|
|
20879
20879
|
return this._monthsParseExact ? (h0(this, "_monthsRegex") || Wr.call(this), c ? this._monthsStrictRegex : this._monthsRegex) : (h0(this, "_monthsRegex") || (this._monthsRegex = za), this._monthsStrictRegex && c ? this._monthsStrictRegex : this._monthsRegex);
|
|
20880
20880
|
}
|
|
20881
20881
|
function Wr() {
|
|
20882
|
-
function c(P,
|
|
20883
|
-
return
|
|
20882
|
+
function c(P, v) {
|
|
20883
|
+
return v.length - P.length;
|
|
20884
20884
|
}
|
|
20885
20885
|
var b = [], D = [], $ = [], m, E, L, x;
|
|
20886
20886
|
for (m = 0; m < 12; m++)
|
|
@@ -20906,10 +20906,10 @@ function Ie(c, b, D) {
|
|
|
20906
20906
|
return -m + $ - 1;
|
|
20907
20907
|
}
|
|
20908
20908
|
function Lr(c, b, D, $, m) {
|
|
20909
|
-
var E = (7 + D - $) % 7, L = Ie(c, $, m), x = 1 + 7 * (b - 1) + E + L, P,
|
|
20910
|
-
return x <= 0 ? (P = c - 1,
|
|
20909
|
+
var E = (7 + D - $) % 7, L = Ie(c, $, m), x = 1 + 7 * (b - 1) + E + L, P, v;
|
|
20910
|
+
return x <= 0 ? (P = c - 1, v = ue(P) + x) : x > ue(c) ? (P = c + 1, v = x - ue(c)) : (P = c, v = x), {
|
|
20911
20911
|
year: P,
|
|
20912
|
-
dayOfYear:
|
|
20912
|
+
dayOfYear: v
|
|
20913
20913
|
};
|
|
20914
20914
|
}
|
|
20915
20915
|
function ce(c, b, D) {
|
|
@@ -20984,7 +20984,7 @@ n0("dddd", function(c, b) {
|
|
|
20984
20984
|
});
|
|
20985
20985
|
Oe(["dd", "ddd", "dddd"], function(c, b, D, $) {
|
|
20986
20986
|
var m = D._locale.weekdaysParse(c, $, D._strict);
|
|
20987
|
-
m != null ? b.d = m :
|
|
20987
|
+
m != null ? b.d = m : A0(D).invalidWeekday = c;
|
|
20988
20988
|
});
|
|
20989
20989
|
Oe(["d", "e", "E"], function(c, b, D, $) {
|
|
20990
20990
|
b[$] = $0(c);
|
|
@@ -21003,10 +21003,10 @@ function xa(c, b) {
|
|
|
21003
21003
|
var D = b1(this._weekdays) ? this._weekdays : this._weekdays[c && c !== !0 && this._weekdays.isFormat.test(b) ? "format" : "standalone"];
|
|
21004
21004
|
return c === !0 ? Et(D, this._week.dow) : c ? D[c.day()] : D;
|
|
21005
21005
|
}
|
|
21006
|
-
function
|
|
21006
|
+
function va(c) {
|
|
21007
21007
|
return c === !0 ? Et(this._weekdaysShort, this._week.dow) : c ? this._weekdaysShort[c.day()] : this._weekdaysShort;
|
|
21008
21008
|
}
|
|
21009
|
-
function
|
|
21009
|
+
function wa(c) {
|
|
21010
21010
|
return c === !0 ? Et(this._weekdaysMin, this._week.dow) : c ? this._weekdaysMin[c.day()] : this._weekdaysMin;
|
|
21011
21011
|
}
|
|
21012
21012
|
function Pa(c, b, D) {
|
|
@@ -21080,9 +21080,9 @@ function St() {
|
|
|
21080
21080
|
function c(H, K) {
|
|
21081
21081
|
return K.length - H.length;
|
|
21082
21082
|
}
|
|
21083
|
-
var b = [], D = [], $ = [], m = [], E, L, x, P,
|
|
21083
|
+
var b = [], D = [], $ = [], m = [], E, L, x, P, v;
|
|
21084
21084
|
for (E = 0; E < 7; E++)
|
|
21085
|
-
L = D1([2e3, 1]).day(E), x = T1(this.weekdaysMin(L, "")), P = T1(this.weekdaysShort(L, "")),
|
|
21085
|
+
L = D1([2e3, 1]).day(E), x = T1(this.weekdaysMin(L, "")), P = T1(this.weekdaysShort(L, "")), v = T1(this.weekdays(L, "")), b.push(x), D.push(P), $.push(v), m.push(x), m.push(P), m.push(v);
|
|
21086
21086
|
b.sort(c), D.sort(c), $.sort(c), m.sort(c), this._weekdaysRegex = new RegExp("^(" + m.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
21087
21087
|
"^(" + $.join("|") + ")",
|
|
21088
21088
|
"i"
|
|
@@ -21150,15 +21150,15 @@ W0(["a", "A"], function(c, b, D) {
|
|
|
21150
21150
|
D._isPm = D._locale.isPM(c), D._meridiem = c;
|
|
21151
21151
|
});
|
|
21152
21152
|
W0(["h", "hh"], function(c, b, D) {
|
|
21153
|
-
b[Q0] = $0(c),
|
|
21153
|
+
b[Q0] = $0(c), A0(D).bigHour = !0;
|
|
21154
21154
|
});
|
|
21155
21155
|
W0("hmm", function(c, b, D) {
|
|
21156
21156
|
var $ = c.length - 2;
|
|
21157
|
-
b[Q0] = $0(c.substr(0, $)), b[M1] = $0(c.substr($)),
|
|
21157
|
+
b[Q0] = $0(c.substr(0, $)), b[M1] = $0(c.substr($)), A0(D).bigHour = !0;
|
|
21158
21158
|
});
|
|
21159
21159
|
W0("hmmss", function(c, b, D) {
|
|
21160
21160
|
var $ = c.length - 4, m = c.length - 2;
|
|
21161
|
-
b[Q0] = $0(c.substr(0, $)), b[M1] = $0(c.substr($, 2)), b[h1] = $0(c.substr(m)),
|
|
21161
|
+
b[Q0] = $0(c.substr(0, $)), b[M1] = $0(c.substr($, 2)), b[h1] = $0(c.substr(m)), A0(D).bigHour = !0;
|
|
21162
21162
|
});
|
|
21163
21163
|
W0("Hmm", function(c, b, D) {
|
|
21164
21164
|
var $ = c.length - 2;
|
|
@@ -21280,7 +21280,7 @@ function ao() {
|
|
|
21280
21280
|
}
|
|
21281
21281
|
function Wt(c) {
|
|
21282
21282
|
var b, D = c._a;
|
|
21283
|
-
return D &&
|
|
21283
|
+
return D && A0(c).overflow === -2 && (b = D[g1] < 0 || D[g1] > 11 ? g1 : D[O1] < 1 || D[O1] > Tt(D[Z0], D[g1]) ? O1 : D[Q0] < 0 || D[Q0] > 24 || D[Q0] === 24 && (D[M1] !== 0 || D[h1] !== 0 || D[w1] !== 0) ? Q0 : D[M1] < 0 || D[M1] > 59 ? M1 : D[h1] < 0 || D[h1] > 59 ? h1 : D[w1] < 0 || D[w1] > 999 ? w1 : -1, A0(c)._overflowDayOfYear && (b < Z0 || b > O1) && (b = O1), A0(c)._overflowWeeks && b === -1 && (b = ua), A0(c)._overflowWeekday && b === -1 && (b = la), A0(c).overflow = b), c;
|
|
21284
21284
|
}
|
|
21285
21285
|
var oo = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, io = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, so = /Z|[+-]\d\d(?::?\d\d)?/, qe = [
|
|
21286
21286
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -21319,9 +21319,9 @@ var oo = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
21319
21319
|
PST: -8 * 60
|
|
21320
21320
|
};
|
|
21321
21321
|
function xr(c) {
|
|
21322
|
-
var b, D, $ = c._i, m = oo.exec($) || io.exec($), E, L, x, P,
|
|
21322
|
+
var b, D, $ = c._i, m = oo.exec($) || io.exec($), E, L, x, P, v = qe.length, H = Ze.length;
|
|
21323
21323
|
if (m) {
|
|
21324
|
-
for (
|
|
21324
|
+
for (A0(c).iso = !0, b = 0, D = v; b < D; b++)
|
|
21325
21325
|
if (qe[b][1].exec(m[1])) {
|
|
21326
21326
|
L = qe[b][0], E = qe[b][2] !== !1;
|
|
21327
21327
|
break;
|
|
@@ -21381,7 +21381,7 @@ function _o(c, b, D) {
|
|
|
21381
21381
|
b[2]
|
|
21382
21382
|
).getDay();
|
|
21383
21383
|
if ($ !== m)
|
|
21384
|
-
return
|
|
21384
|
+
return A0(D).weekdayMismatch = !0, D._isValid = !1, !1;
|
|
21385
21385
|
}
|
|
21386
21386
|
return !0;
|
|
21387
21387
|
}
|
|
@@ -21393,7 +21393,7 @@ function zo(c, b, D) {
|
|
|
21393
21393
|
var $ = parseInt(D, 10), m = $ % 100, E = ($ - m) / 100;
|
|
21394
21394
|
return E * 60 + m;
|
|
21395
21395
|
}
|
|
21396
|
-
function
|
|
21396
|
+
function vr(c) {
|
|
21397
21397
|
var b = lo.exec(bo(c._i)), D;
|
|
21398
21398
|
if (b) {
|
|
21399
21399
|
if (D = co(
|
|
@@ -21405,7 +21405,7 @@ function wr(c) {
|
|
|
21405
21405
|
b[7]
|
|
21406
21406
|
), !_o(b[1], D, c))
|
|
21407
21407
|
return;
|
|
21408
|
-
c._a = D, c._tzm = zo(b[8], b[9], b[10]), c._d = pe.apply(null, c._a), c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm),
|
|
21408
|
+
c._a = D, c._tzm = zo(b[8], b[9], b[10]), c._d = pe.apply(null, c._a), c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), A0(c).rfc2822 = !0;
|
|
21409
21409
|
} else
|
|
21410
21410
|
c._isValid = !1;
|
|
21411
21411
|
}
|
|
@@ -21419,7 +21419,7 @@ function Oo(c) {
|
|
|
21419
21419
|
delete c._isValid;
|
|
21420
21420
|
else
|
|
21421
21421
|
return;
|
|
21422
|
-
if (
|
|
21422
|
+
if (vr(c), c._isValid === !1)
|
|
21423
21423
|
delete c._isValid;
|
|
21424
21424
|
else
|
|
21425
21425
|
return;
|
|
@@ -21445,23 +21445,23 @@ function Ao(c) {
|
|
|
21445
21445
|
function Lt(c) {
|
|
21446
21446
|
var b, D, $ = [], m, E, L;
|
|
21447
21447
|
if (!c._d) {
|
|
21448
|
-
for (m = Ao(c), c._w && c._a[O1] == null && c._a[g1] == null && Do(c), c._dayOfYear != null && (L = Q1(c._a[Z0], m[Z0]), (c._dayOfYear > ue(L) || c._dayOfYear === 0) && (
|
|
21448
|
+
for (m = Ao(c), c._w && c._a[O1] == null && c._a[g1] == null && Do(c), c._dayOfYear != null && (L = Q1(c._a[Z0], m[Z0]), (c._dayOfYear > ue(L) || c._dayOfYear === 0) && (A0(c)._overflowDayOfYear = !0), D = pe(L, 0, c._dayOfYear), c._a[g1] = D.getUTCMonth(), c._a[O1] = D.getUTCDate()), b = 0; b < 3 && c._a[b] == null; ++b)
|
|
21449
21449
|
c._a[b] = $[b] = m[b];
|
|
21450
21450
|
for (; b < 7; b++)
|
|
21451
21451
|
c._a[b] = $[b] = c._a[b] == null ? b === 2 ? 1 : 0 : c._a[b];
|
|
21452
|
-
c._a[Q0] === 24 && c._a[M1] === 0 && c._a[h1] === 0 && c._a[
|
|
21452
|
+
c._a[Q0] === 24 && c._a[M1] === 0 && c._a[h1] === 0 && c._a[w1] === 0 && (c._nextDay = !0, c._a[Q0] = 0), c._d = (c._useUTC ? pe : qa).apply(
|
|
21453
21453
|
null,
|
|
21454
21454
|
$
|
|
21455
|
-
), E = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[Q0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== E && (
|
|
21455
|
+
), E = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[Q0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== E && (A0(c).weekdayMismatch = !0);
|
|
21456
21456
|
}
|
|
21457
21457
|
}
|
|
21458
21458
|
function Do(c) {
|
|
21459
|
-
var b, D, $, m, E, L, x, P,
|
|
21459
|
+
var b, D, $, m, E, L, x, P, v;
|
|
21460
21460
|
b = c._w, b.GG != null || b.W != null || b.E != null ? (E = 1, L = 4, D = Q1(
|
|
21461
21461
|
b.GG,
|
|
21462
21462
|
c._a[Z0],
|
|
21463
21463
|
ce(F0(), 1, 4).year
|
|
21464
|
-
), $ = Q1(b.W, 1), m = Q1(b.E, 1), (m < 1 || m > 7) && (P = !0)) : (E = c._locale._week.dow, L = c._locale._week.doy,
|
|
21464
|
+
), $ = Q1(b.W, 1), m = Q1(b.E, 1), (m < 1 || m > 7) && (P = !0)) : (E = c._locale._week.dow, L = c._locale._week.doy, v = ce(F0(), E, L), D = Q1(b.gg, c._a[Z0], v.year), $ = Q1(b.w, v.week), b.d != null ? (m = b.d, (m < 0 || m > 6) && (P = !0)) : b.e != null ? (m = b.e + E, (b.e < 0 || b.e > 6) && (P = !0)) : m = E), $ < 1 || $ > E1(D, E, L) ? A0(c)._overflowWeeks = !0 : P != null ? A0(c)._overflowWeekday = !0 : (x = Lr(D, $, m, E, L), c._a[Z0] = x.year, c._dayOfYear = x.dayOfYear);
|
|
21465
21465
|
}
|
|
21466
21466
|
t0.ISO_8601 = function() {
|
|
21467
21467
|
};
|
|
@@ -21473,20 +21473,20 @@ function It(c) {
|
|
|
21473
21473
|
return;
|
|
21474
21474
|
}
|
|
21475
21475
|
if (c._f === t0.RFC_2822) {
|
|
21476
|
-
|
|
21476
|
+
vr(c);
|
|
21477
21477
|
return;
|
|
21478
21478
|
}
|
|
21479
|
-
c._a = [],
|
|
21480
|
-
var b = "" + c._i, D, $, m, E, L, x = b.length, P = 0,
|
|
21479
|
+
c._a = [], A0(c).empty = !0;
|
|
21480
|
+
var b = "" + c._i, D, $, m, E, L, x = b.length, P = 0, v, H;
|
|
21481
21481
|
for (m = $r(c._f, c._locale).match(yt) || [], H = m.length, D = 0; D < H; D++)
|
|
21482
|
-
E = m[D], $ = (b.match(oa(E, c)) || [])[0], $ && (L = b.substr(0, b.indexOf($)), L.length > 0 &&
|
|
21482
|
+
E = m[D], $ = (b.match(oa(E, c)) || [])[0], $ && (L = b.substr(0, b.indexOf($)), L.length > 0 && A0(c).unusedInput.push(L), b = b.slice(
|
|
21483
21483
|
b.indexOf($) + $.length
|
|
21484
|
-
), P += $.length), j1[E] ? ($ ?
|
|
21485
|
-
|
|
21484
|
+
), P += $.length), j1[E] ? ($ ? A0(c).empty = !1 : A0(c).unusedTokens.push(E), sa(E, $, c)) : c._strict && !$ && A0(c).unusedTokens.push(E);
|
|
21485
|
+
A0(c).charsLeftOver = x - P, b.length > 0 && A0(c).unusedInput.push(b), c._a[Q0] <= 12 && A0(c).bigHour === !0 && c._a[Q0] > 0 && (A0(c).bigHour = void 0), A0(c).parsedDateParts = c._a.slice(0), A0(c).meridiem = c._meridiem, c._a[Q0] = fo(
|
|
21486
21486
|
c._locale,
|
|
21487
21487
|
c._a[Q0],
|
|
21488
21488
|
c._meridiem
|
|
21489
|
-
),
|
|
21489
|
+
), v = A0(c).era, v !== null && (c._a[Z0] = c._locale.erasConvertYear(v, c._a[Z0])), Lt(c), Wt(c);
|
|
21490
21490
|
}
|
|
21491
21491
|
function fo(c, b, D) {
|
|
21492
21492
|
var $;
|
|
@@ -21495,11 +21495,11 @@ function fo(c, b, D) {
|
|
|
21495
21495
|
function $o(c) {
|
|
21496
21496
|
var b, D, $, m, E, L, x = !1, P = c._f.length;
|
|
21497
21497
|
if (P === 0) {
|
|
21498
|
-
|
|
21498
|
+
A0(c).invalidFormat = !0, c._d = /* @__PURE__ */ new Date(NaN);
|
|
21499
21499
|
return;
|
|
21500
21500
|
}
|
|
21501
21501
|
for (m = 0; m < P; m++)
|
|
21502
|
-
E = 0, L = !1, b = ft({}, c), c._useUTC != null && (b._useUTC = c._useUTC), b._f = c._f[m], It(b), Dt(b) && (L = !0), E +=
|
|
21502
|
+
E = 0, L = !1, b = ft({}, c), c._useUTC != null && (b._useUTC = c._useUTC), b._f = c._f[m], It(b), Dt(b) && (L = !0), E += A0(b).charsLeftOver, E += A0(b).unusedTokens.length * 10, A0(b).score = E, x ? E < $ && ($ = E, D = b) : ($ == null || E < $ || L) && ($ = E, D = b, L && (x = !0));
|
|
21503
21503
|
W1(c, D || b);
|
|
21504
21504
|
}
|
|
21505
21505
|
function yo(c) {
|
|
@@ -21514,12 +21514,12 @@ function yo(c) {
|
|
|
21514
21514
|
}
|
|
21515
21515
|
}
|
|
21516
21516
|
function mo(c) {
|
|
21517
|
-
var b = new de(Wt(
|
|
21517
|
+
var b = new de(Wt(wr(c)));
|
|
21518
21518
|
return b._nextDay && (b.add(1, "d"), b._nextDay = void 0), b;
|
|
21519
21519
|
}
|
|
21520
|
-
function
|
|
21520
|
+
function wr(c) {
|
|
21521
21521
|
var b = c._i, D = c._f;
|
|
21522
|
-
return c._locale = c._locale || R1(c._l), b === null || D === void 0 && b === "" ?
|
|
21522
|
+
return c._locale = c._locale || R1(c._l), b === null || D === void 0 && b === "" ? ve({ nullInput: !0 }) : (typeof b == "string" && (c._i = b = c._locale.preparse(b)), _1(b) ? new de(Wt(b)) : (_e(b) ? c._d = b : b1(D) ? $o(c) : D ? It(c) : qo(c), Dt(c) || (c._d = null), c));
|
|
21523
21523
|
}
|
|
21524
21524
|
function qo(c) {
|
|
21525
21525
|
var b = c._i;
|
|
@@ -21538,13 +21538,13 @@ var go = i1(
|
|
|
21538
21538
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
21539
21539
|
function() {
|
|
21540
21540
|
var c = F0.apply(null, arguments);
|
|
21541
|
-
return this.isValid() && c.isValid() ? c < this ? this : c :
|
|
21541
|
+
return this.isValid() && c.isValid() ? c < this ? this : c : ve();
|
|
21542
21542
|
}
|
|
21543
21543
|
), ho = i1(
|
|
21544
21544
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
21545
21545
|
function() {
|
|
21546
21546
|
var c = F0.apply(null, arguments);
|
|
21547
|
-
return this.isValid() && c.isValid() ? c > this ? this : c :
|
|
21547
|
+
return this.isValid() && c.isValid() ? c > this ? this : c : ve();
|
|
21548
21548
|
}
|
|
21549
21549
|
);
|
|
21550
21550
|
function Jr(c, b) {
|
|
@@ -21596,8 +21596,8 @@ function Wo() {
|
|
|
21596
21596
|
return d1(NaN);
|
|
21597
21597
|
}
|
|
21598
21598
|
function Ye(c) {
|
|
21599
|
-
var b = mt(c), D = b.year || 0, $ = b.quarter || 0, m = b.month || 0, E = b.week || b.isoWeek || 0, L = b.day || 0, x = b.hour || 0, P = b.minute || 0,
|
|
21600
|
-
this._isValid = Ro(b), this._milliseconds = +H +
|
|
21599
|
+
var b = mt(c), D = b.year || 0, $ = b.quarter || 0, m = b.month || 0, E = b.week || b.isoWeek || 0, L = b.day || 0, x = b.hour || 0, P = b.minute || 0, v = b.second || 0, H = b.millisecond || 0;
|
|
21600
|
+
this._isValid = Ro(b), this._milliseconds = +H + v * 1e3 + // 1000
|
|
21601
21601
|
P * 6e4 + // 1000 * 60
|
|
21602
21602
|
x * 1e3 * 60 * 60, this._days = +L + E * 7, this._months = +m + $ * 3 + D * 12, this._data = {}, this._locale = R1(), this._bubble();
|
|
21603
21603
|
}
|
|
@@ -21667,7 +21667,7 @@ function No(c) {
|
|
|
21667
21667
|
function xo(c) {
|
|
21668
21668
|
return this._isUTC && (this.utcOffset(0, c), this._isUTC = !1, c && this.subtract(ct(this), "m")), this;
|
|
21669
21669
|
}
|
|
21670
|
-
function
|
|
21670
|
+
function vo() {
|
|
21671
21671
|
if (this._tzm != null)
|
|
21672
21672
|
this.utcOffset(this._tzm, !1, !0);
|
|
21673
21673
|
else if (typeof this._i == "string") {
|
|
@@ -21676,7 +21676,7 @@ function wo() {
|
|
|
21676
21676
|
}
|
|
21677
21677
|
return this;
|
|
21678
21678
|
}
|
|
21679
|
-
function
|
|
21679
|
+
function wo(c) {
|
|
21680
21680
|
return this.isValid() ? (c = c ? F0(c).utcOffset() : 0, (this.utcOffset() - c) % 60 === 0) : !1;
|
|
21681
21681
|
}
|
|
21682
21682
|
function Po() {
|
|
@@ -21686,7 +21686,7 @@ function Jo() {
|
|
|
21686
21686
|
if (!r1(this._isDSTShifted))
|
|
21687
21687
|
return this._isDSTShifted;
|
|
21688
21688
|
var c = {}, b;
|
|
21689
|
-
return ft(c, this), c =
|
|
21689
|
+
return ft(c, this), c = wr(c), c._a ? (b = c._isUTC ? D1(c._a) : F0(c._a), this._isDSTShifted = this.isValid() && Lo(c._a, b.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
21690
21690
|
}
|
|
21691
21691
|
function Ho() {
|
|
21692
21692
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -21710,7 +21710,7 @@ function d1(c, b) {
|
|
|
21710
21710
|
h: $0($[Q0]) * m,
|
|
21711
21711
|
m: $0($[M1]) * m,
|
|
21712
21712
|
s: $0($[h1]) * m,
|
|
21713
|
-
ms: $0(pt($[
|
|
21713
|
+
ms: $0(pt($[w1] * 1e3)) * m
|
|
21714
21714
|
// the millisecond decimal point is included in the match
|
|
21715
21715
|
}) : ($ = Uo.exec(c)) ? (m = $[1] === "-" ? -1 : 1, D = {
|
|
21716
21716
|
y: B1($[2], m),
|
|
@@ -22092,10 +22092,10 @@ function hi() {
|
|
|
22092
22092
|
return Dt(this);
|
|
22093
22093
|
}
|
|
22094
22094
|
function Ti() {
|
|
22095
|
-
return W1({},
|
|
22095
|
+
return W1({}, A0(this));
|
|
22096
22096
|
}
|
|
22097
22097
|
function Ei() {
|
|
22098
|
-
return
|
|
22098
|
+
return A0(this).overflow;
|
|
22099
22099
|
}
|
|
22100
22100
|
function Si() {
|
|
22101
22101
|
return {
|
|
@@ -22118,13 +22118,13 @@ p0("y", ["yyyy", 4], 0, "eraYear");
|
|
|
22118
22118
|
n0("N", Nt);
|
|
22119
22119
|
n0("NN", Nt);
|
|
22120
22120
|
n0("NNN", Nt);
|
|
22121
|
-
n0("NNNN",
|
|
22121
|
+
n0("NNNN", wi);
|
|
22122
22122
|
n0("NNNNN", Pi);
|
|
22123
22123
|
W0(
|
|
22124
22124
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
22125
22125
|
function(c, b, D, $) {
|
|
22126
22126
|
var m = D._locale.erasParse(c, $, D._strict);
|
|
22127
|
-
m ?
|
|
22127
|
+
m ? A0(D).era = m : A0(D).invalidEra = c;
|
|
22128
22128
|
}
|
|
22129
22129
|
);
|
|
22130
22130
|
n0("y", te);
|
|
@@ -22217,13 +22217,13 @@ function Ni(c) {
|
|
|
22217
22217
|
function xi(c) {
|
|
22218
22218
|
return h0(this, "_erasAbbrRegex") || xt.call(this), c ? this._erasAbbrRegex : this._erasRegex;
|
|
22219
22219
|
}
|
|
22220
|
-
function
|
|
22220
|
+
function vi(c) {
|
|
22221
22221
|
return h0(this, "_erasNarrowRegex") || xt.call(this), c ? this._erasNarrowRegex : this._erasRegex;
|
|
22222
22222
|
}
|
|
22223
22223
|
function Nt(c, b) {
|
|
22224
22224
|
return b.erasAbbrRegex(c);
|
|
22225
22225
|
}
|
|
22226
|
-
function
|
|
22226
|
+
function wi(c, b) {
|
|
22227
22227
|
return b.erasNameRegex(c);
|
|
22228
22228
|
}
|
|
22229
22229
|
function Pi(c, b) {
|
|
@@ -22233,9 +22233,9 @@ function Ji(c, b) {
|
|
|
22233
22233
|
return b._eraYearOrdinalRegex || te;
|
|
22234
22234
|
}
|
|
22235
22235
|
function xt() {
|
|
22236
|
-
var c = [], b = [], D = [], $ = [], m, E, L, x, P,
|
|
22237
|
-
for (m = 0, E =
|
|
22238
|
-
L = T1(
|
|
22236
|
+
var c = [], b = [], D = [], $ = [], m, E, L, x, P, v = this.eras();
|
|
22237
|
+
for (m = 0, E = v.length; m < E; ++m)
|
|
22238
|
+
L = T1(v[m].name), x = T1(v[m].abbr), P = T1(v[m].narrow), b.push(L), c.push(x), D.push(P), $.push(L), $.push(x), $.push(P);
|
|
22239
22239
|
this._erasRegex = new RegExp("^(" + $.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + b.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + c.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
22240
22240
|
"^(" + D.join("|") + ")",
|
|
22241
22241
|
"i"
|
|
@@ -22260,8 +22260,8 @@ n0("GG", B0, a1);
|
|
|
22260
22260
|
n0("gg", B0, a1);
|
|
22261
22261
|
n0("GGGG", gt, qt);
|
|
22262
22262
|
n0("gggg", gt, qt);
|
|
22263
|
-
n0("GGGGG", Je,
|
|
22264
|
-
n0("ggggg", Je,
|
|
22263
|
+
n0("GGGGG", Je, we);
|
|
22264
|
+
n0("ggggg", Je, we);
|
|
22265
22265
|
Oe(
|
|
22266
22266
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
22267
22267
|
function(c, b, D, $) {
|
|
@@ -22386,7 +22386,7 @@ var L1, rn;
|
|
|
22386
22386
|
for (L1 = "SSSS"; L1.length <= 9; L1 += "S")
|
|
22387
22387
|
n0(L1, te);
|
|
22388
22388
|
function es(c, b) {
|
|
22389
|
-
b[
|
|
22389
|
+
b[w1] = $0(("0." + c) * 1e3);
|
|
22390
22390
|
}
|
|
22391
22391
|
for (L1 = "S"; L1.length <= 9; L1 += "S")
|
|
22392
22392
|
W0(L1, es);
|
|
@@ -22470,8 +22470,8 @@ G.millisecond = G.milliseconds = rn;
|
|
|
22470
22470
|
G.utcOffset = Fo;
|
|
22471
22471
|
G.utc = No;
|
|
22472
22472
|
G.local = xo;
|
|
22473
|
-
G.parseZone =
|
|
22474
|
-
G.hasAlignedHourOffset =
|
|
22473
|
+
G.parseZone = vo;
|
|
22474
|
+
G.hasAlignedHourOffset = wo;
|
|
22475
22475
|
G.isDST = Po;
|
|
22476
22476
|
G.isLocal = Ho;
|
|
22477
22477
|
G.isUtcOffset = Xo;
|
|
@@ -22517,13 +22517,13 @@ T0.preparse = nn;
|
|
|
22517
22517
|
T0.postformat = nn;
|
|
22518
22518
|
T0.relativeTime = Zn;
|
|
22519
22519
|
T0.pastFuture = ea;
|
|
22520
|
-
T0.set =
|
|
22520
|
+
T0.set = wn;
|
|
22521
22521
|
T0.eras = Ri;
|
|
22522
22522
|
T0.erasParse = Ci;
|
|
22523
22523
|
T0.erasConvertYear = Wi;
|
|
22524
22524
|
T0.erasAbbrRegex = xi;
|
|
22525
22525
|
T0.erasNameRegex = Ni;
|
|
22526
|
-
T0.erasNarrowRegex =
|
|
22526
|
+
T0.erasNarrowRegex = vi;
|
|
22527
22527
|
T0.months = Oa;
|
|
22528
22528
|
T0.monthsShort = Aa;
|
|
22529
22529
|
T0.monthsParse = fa;
|
|
@@ -22533,8 +22533,8 @@ T0.week = ga;
|
|
|
22533
22533
|
T0.firstDayOfYear = Ea;
|
|
22534
22534
|
T0.firstDayOfWeek = Ta;
|
|
22535
22535
|
T0.weekdays = xa;
|
|
22536
|
-
T0.weekdaysMin =
|
|
22537
|
-
T0.weekdaysShort =
|
|
22536
|
+
T0.weekdaysMin = wa;
|
|
22537
|
+
T0.weekdaysShort = va;
|
|
22538
22538
|
T0.weekdaysParse = Ja;
|
|
22539
22539
|
T0.weekdaysRegex = Ua;
|
|
22540
22540
|
T0.weekdaysShortRegex = Ya;
|
|
@@ -22553,7 +22553,7 @@ function an(c, b, D) {
|
|
|
22553
22553
|
m[$] = Ne(c, $, D, "month");
|
|
22554
22554
|
return m;
|
|
22555
22555
|
}
|
|
22556
|
-
function
|
|
22556
|
+
function vt(c, b, D, $) {
|
|
22557
22557
|
typeof c == "boolean" ? (S1(b) && (D = b, b = void 0), b = b || "") : (b = c, D = b, c = !1, S1(b) && (D = b, b = void 0), b = b || "");
|
|
22558
22558
|
var m = R1(), E = c ? m._week.dow : 0, L, x = [];
|
|
22559
22559
|
if (D != null)
|
|
@@ -22569,13 +22569,13 @@ function is(c, b) {
|
|
|
22569
22569
|
return an(c, b, "monthsShort");
|
|
22570
22570
|
}
|
|
22571
22571
|
function ss(c, b, D) {
|
|
22572
|
-
return
|
|
22572
|
+
return vt(c, b, D, "weekdays");
|
|
22573
22573
|
}
|
|
22574
22574
|
function us(c, b, D) {
|
|
22575
|
-
return
|
|
22575
|
+
return vt(c, b, D, "weekdaysShort");
|
|
22576
22576
|
}
|
|
22577
22577
|
function ls(c, b, D) {
|
|
22578
|
-
return
|
|
22578
|
+
return vt(c, b, D, "weekdaysMin");
|
|
22579
22579
|
}
|
|
22580
22580
|
I1("en", {
|
|
22581
22581
|
eras: [
|
|
@@ -22710,8 +22710,8 @@ function Is(c, b, D, $, m) {
|
|
|
22710
22710
|
return m.relativeTime(b || 1, !!D, c, $);
|
|
22711
22711
|
}
|
|
22712
22712
|
function Fs(c, b, D, $) {
|
|
22713
|
-
var m = d1(c).abs(), E = q1(m.as("s")), L = q1(m.as("m")), x = q1(m.as("h")), P = q1(m.as("d")),
|
|
22714
|
-
return D.w != null && (o0 = o0 || H <= 1 && ["w"] || H < D.w && ["ww", H]), o0 = o0 ||
|
|
22713
|
+
var m = d1(c).abs(), E = q1(m.as("s")), L = q1(m.as("m")), x = q1(m.as("h")), P = q1(m.as("d")), v = q1(m.as("M")), H = q1(m.as("w")), K = q1(m.as("y")), o0 = E <= D.ss && ["s", E] || E < D.s && ["ss", E] || L <= 1 && ["m"] || L < D.m && ["mm", L] || x <= 1 && ["h"] || x < D.h && ["hh", x] || P <= 1 && ["d"] || P < D.d && ["dd", P];
|
|
22714
|
+
return D.w != null && (o0 = o0 || H <= 1 && ["w"] || H < D.w && ["ww", H]), o0 = o0 || v <= 1 && ["M"] || v < D.M && ["MM", v] || K <= 1 && ["y"] || ["yy", K], o0[2] = b, o0[3] = +c > 0, o0[4] = $, Is.apply(null, o0);
|
|
22715
22715
|
}
|
|
22716
22716
|
function Bs(c) {
|
|
22717
22717
|
return c === void 0 ? q1 : typeof c == "function" ? (q1 = c, !0) : !1;
|
|
@@ -22732,8 +22732,8 @@ function k1(c) {
|
|
|
22732
22732
|
function Ge() {
|
|
22733
22733
|
if (!this.isValid())
|
|
22734
22734
|
return this.localeData().invalidDate();
|
|
22735
|
-
var c = et(this._milliseconds) / 1e3, b = et(this._days), D = et(this._months), $, m, E, L, x = this.asSeconds(), P,
|
|
22736
|
-
return x ? ($ = o1(c / 60), m = o1($ / 60), c %= 60, $ %= 60, E = o1(D / 12), D %= 12, L = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = x < 0 ? "-" : "",
|
|
22735
|
+
var c = et(this._milliseconds) / 1e3, b = et(this._days), D = et(this._months), $, m, E, L, x = this.asSeconds(), P, v, H, K;
|
|
22736
|
+
return x ? ($ = o1(c / 60), m = o1($ / 60), c %= 60, $ %= 60, E = o1(D / 12), D %= 12, L = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = x < 0 ? "-" : "", v = k1(this._months) !== k1(x) ? "-" : "", H = k1(this._days) !== k1(x) ? "-" : "", K = k1(this._milliseconds) !== k1(x) ? "-" : "", P + "P" + (E ? v + E + "Y" : "") + (D ? v + D + "M" : "") + (b ? H + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? K + m + "H" : "") + ($ ? K + $ + "M" : "") + (c ? K + L + "S" : "")) : "P0D";
|
|
22737
22737
|
}
|
|
22738
22738
|
var m0 = Ye.prototype;
|
|
22739
22739
|
m0.isValid = Co;
|
|
@@ -22795,7 +22795,7 @@ t0.unix = ns;
|
|
|
22795
22795
|
t0.months = os;
|
|
22796
22796
|
t0.isDate = _e;
|
|
22797
22797
|
t0.locale = I1;
|
|
22798
|
-
t0.invalid =
|
|
22798
|
+
t0.invalid = ve;
|
|
22799
22799
|
t0.duration = d1;
|
|
22800
22800
|
t0.isMoment = _1;
|
|
22801
22801
|
t0.weekdays = ss;
|
|
@@ -22833,10 +22833,10 @@ t0.HTML5_FMT = {
|
|
|
22833
22833
|
MONTH: "YYYY-MM"
|
|
22834
22834
|
// <input type="month" />
|
|
22835
22835
|
};
|
|
22836
|
-
const
|
|
22836
|
+
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22837
22837
|
__proto__: null,
|
|
22838
22838
|
default: t0
|
|
22839
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22839
|
+
}, Symbol.toStringTag, { value: "Module" })), ws = /* @__PURE__ */ yn(vs);
|
|
22840
22840
|
(function(c) {
|
|
22841
22841
|
//! moment-timezone.js
|
|
22842
22842
|
//! version : 0.5.48
|
|
@@ -22844,12 +22844,12 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22844
22844
|
//! license : MIT
|
|
22845
22845
|
//! github.com/moment/moment-timezone
|
|
22846
22846
|
(function(b, D) {
|
|
22847
|
-
c.exports ? c.exports = D(
|
|
22847
|
+
c.exports ? c.exports = D(ws) : D(b.moment);
|
|
22848
22848
|
})(mn, function(b) {
|
|
22849
22849
|
b.version === void 0 && b.default && (b = b.default);
|
|
22850
22850
|
var D = "0.5.48", $ = {}, m = {}, E = {}, L = {}, x = {}, P;
|
|
22851
22851
|
(!b || typeof b.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
22852
|
-
var
|
|
22852
|
+
var v = b.version.split("."), H = +v[0], K = +v[1];
|
|
22853
22853
|
(H < 2 || H === 2 && K < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
|
|
22854
22854
|
function o0(_) {
|
|
22855
22855
|
return _ > 96 ? _ - 87 : _ > 64 ? _ - 29 : _ - 48;
|
|
@@ -22866,7 +22866,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22866
22866
|
for (var z = 0; z < _.length; z++)
|
|
22867
22867
|
_[z] = Z(_[z]);
|
|
22868
22868
|
}
|
|
22869
|
-
function
|
|
22869
|
+
function Q(_, z) {
|
|
22870
22870
|
for (var f = 0; f < z; f++)
|
|
22871
22871
|
_[f] = Math.round((_[f - 1] || 0) + _[f] * 6e4);
|
|
22872
22872
|
_[z - 1] = 1 / 0;
|
|
@@ -22879,7 +22879,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22879
22879
|
}
|
|
22880
22880
|
function j(_) {
|
|
22881
22881
|
var z = _.split("|"), f = z[2].split(" "), y = z[3].split(""), q = z[4].split(" ");
|
|
22882
|
-
return U(f), U(y), U(q),
|
|
22882
|
+
return U(f), U(y), U(q), Q(q, y.length), {
|
|
22883
22883
|
name: z[0],
|
|
22884
22884
|
abbrs: e0(z[1].split(" "), y),
|
|
22885
22885
|
offsets: e0(f, y),
|
|
@@ -22981,7 +22981,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22981
22981
|
f.hasOwnProperty(h) && y.push(L[h]);
|
|
22982
22982
|
return y;
|
|
22983
22983
|
}
|
|
22984
|
-
function
|
|
22984
|
+
function O0() {
|
|
22985
22985
|
try {
|
|
22986
22986
|
var _ = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
22987
22987
|
if (_ && _.length > 3) {
|
|
@@ -23001,7 +23001,7 @@ const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23001
23001
|
return h.sort(l0), h.length > 0 ? h[0].zone.name : void 0;
|
|
23002
23002
|
}
|
|
23003
23003
|
function D0(_) {
|
|
23004
|
-
return (!P || _) && (P =
|
|
23004
|
+
return (!P || _) && (P = O0()), P;
|
|
23005
23005
|
}
|
|
23006
23006
|
function M0(_) {
|
|
23007
23007
|
return (_ || "").toLowerCase().replace(/\//g, "_");
|
|
@@ -24018,20 +24018,20 @@ function js(c) {
|
|
|
24018
24018
|
timeformatter: U.timeFormatter || "",
|
|
24019
24019
|
decimal: U.decimal || 0
|
|
24020
24020
|
})), x = E.columns, P = E.rows.map((U) => ({
|
|
24021
|
-
cells: x.map((
|
|
24022
|
-
const e0 = U.value[
|
|
24023
|
-
return U.isRollup &&
|
|
24021
|
+
cells: x.map((Q) => {
|
|
24022
|
+
const e0 = U.value[Q.id] ?? null;
|
|
24023
|
+
return U.isRollup && Q.fieldType === "DIMENSION" && Q.dataType === "NUMERIC" && e0 == null ? null : t1(e0, Q, m);
|
|
24024
24024
|
}),
|
|
24025
24025
|
comparisonCells: [],
|
|
24026
24026
|
isRollup: U.isRollup
|
|
24027
24027
|
}));
|
|
24028
24028
|
if (D) {
|
|
24029
|
-
const
|
|
24030
|
-
if (
|
|
24029
|
+
const Q = b[$];
|
|
24030
|
+
if (Q)
|
|
24031
24031
|
for (let e0 = 0; e0 < P.length; e0++) {
|
|
24032
24032
|
const j = P[e0], V = E.rows[e0], s0 = uu(
|
|
24033
24033
|
V,
|
|
24034
|
-
|
|
24034
|
+
Q.rows,
|
|
24035
24035
|
E.columns
|
|
24036
24036
|
);
|
|
24037
24037
|
s0 && (j.comparisonCells = x.map(
|
|
@@ -24039,13 +24039,13 @@ function js(c) {
|
|
|
24039
24039
|
));
|
|
24040
24040
|
}
|
|
24041
24041
|
}
|
|
24042
|
-
const
|
|
24043
|
-
L.reduce((U,
|
|
24044
|
-
), H =
|
|
24042
|
+
const v = new Set(
|
|
24043
|
+
L.reduce((U, Q, e0) => (Q.hide && U.push(e0), U), [])
|
|
24044
|
+
), H = v.size > 0 ? L.filter((U, Q) => !v.has(Q)) : L, K = v.size > 0 ? P.map((U) => ({
|
|
24045
24045
|
...U,
|
|
24046
|
-
cells: U.cells.filter((
|
|
24046
|
+
cells: U.cells.filter((Q, e0) => !v.has(e0)),
|
|
24047
24047
|
comparisonCells: U.comparisonCells.filter(
|
|
24048
|
-
(
|
|
24048
|
+
(Q, e0) => !v.has(e0)
|
|
24049
24049
|
)
|
|
24050
24050
|
})) : P, o0 = E.source || c.source || "postgresql", Z = typeof o0 == "string" && o0.toLowerCase() === "bigquery" ? "bigquery" : "postgresql";
|
|
24051
24051
|
return {
|
|
@@ -24060,10 +24060,10 @@ function Ks(c) {
|
|
|
24060
24060
|
(j) => j.fieldType === "DIMENSION" && !j.hide
|
|
24061
24061
|
), P = L.columns.filter(
|
|
24062
24062
|
(j) => j.fieldType === "METRIC" && !j.hide
|
|
24063
|
-
),
|
|
24063
|
+
), v = x[0], H = x.length > 1 ? x[1] : null, K = [], o0 = /* @__PURE__ */ new Set();
|
|
24064
24064
|
for (const j of L.rows) {
|
|
24065
24065
|
if (j.isRollup) continue;
|
|
24066
|
-
const V =
|
|
24066
|
+
const V = v ? t1(j.value[v.id] ?? null, v, E) : "";
|
|
24067
24067
|
o0.has(V) || (o0.add(V), K.push(V));
|
|
24068
24068
|
}
|
|
24069
24069
|
const Z = /* @__PURE__ */ new Map();
|
|
@@ -24071,7 +24071,7 @@ function Ks(c) {
|
|
|
24071
24071
|
const U = {
|
|
24072
24072
|
start: L.dateRange.start,
|
|
24073
24073
|
end: L.dateRange.end
|
|
24074
|
-
},
|
|
24074
|
+
}, Q = [];
|
|
24075
24075
|
if (H) {
|
|
24076
24076
|
const j = /* @__PURE__ */ new Set();
|
|
24077
24077
|
for (const V of L.rows)
|
|
@@ -24092,15 +24092,15 @@ function Ks(c) {
|
|
|
24092
24092
|
E
|
|
24093
24093
|
) !== V)
|
|
24094
24094
|
continue;
|
|
24095
|
-
const i0 =
|
|
24096
|
-
a0.value[
|
|
24097
|
-
|
|
24095
|
+
const i0 = v ? t1(
|
|
24096
|
+
a0.value[v.id] ?? null,
|
|
24097
|
+
v,
|
|
24098
24098
|
E
|
|
24099
24099
|
) : "", u0 = Z.get(i0);
|
|
24100
24100
|
u0 != null && (r0[u0] = ee(a0.value[s0.id]));
|
|
24101
24101
|
}
|
|
24102
24102
|
const b0 = P.length > 1 ? `${V} - ${s0.label}` : V;
|
|
24103
|
-
|
|
24103
|
+
Q.push({
|
|
24104
24104
|
name: b0,
|
|
24105
24105
|
values: r0,
|
|
24106
24106
|
dateRange: U
|
|
@@ -24111,14 +24111,14 @@ function Ks(c) {
|
|
|
24111
24111
|
const V = new Array(K.length).fill(0);
|
|
24112
24112
|
for (const s0 of L.rows) {
|
|
24113
24113
|
if (s0.isRollup) continue;
|
|
24114
|
-
const r0 =
|
|
24115
|
-
s0.value[
|
|
24116
|
-
|
|
24114
|
+
const r0 = v ? t1(
|
|
24115
|
+
s0.value[v.id] ?? null,
|
|
24116
|
+
v,
|
|
24117
24117
|
E
|
|
24118
24118
|
) : "", b0 = Z.get(r0);
|
|
24119
24119
|
b0 != null && (V[b0] = ee(s0.value[j.id]));
|
|
24120
24120
|
}
|
|
24121
|
-
|
|
24121
|
+
Q.push({
|
|
24122
24122
|
name: j.label,
|
|
24123
24123
|
values: V,
|
|
24124
24124
|
dateRange: U
|
|
@@ -24133,14 +24133,14 @@ function Ks(c) {
|
|
|
24133
24133
|
const r0 = new Array(K.length).fill(0);
|
|
24134
24134
|
for (const b0 of j.rows) {
|
|
24135
24135
|
if (b0.isRollup) continue;
|
|
24136
|
-
const a0 =
|
|
24137
|
-
b0.value[
|
|
24138
|
-
|
|
24136
|
+
const a0 = v ? t1(
|
|
24137
|
+
b0.value[v.id] ?? null,
|
|
24138
|
+
v,
|
|
24139
24139
|
E
|
|
24140
24140
|
) : "", i0 = Z.get(a0);
|
|
24141
24141
|
i0 != null && (r0[i0] = ee(b0.value[s0.id]));
|
|
24142
24142
|
}
|
|
24143
|
-
|
|
24143
|
+
Q.push({
|
|
24144
24144
|
name: s0.label,
|
|
24145
24145
|
values: r0,
|
|
24146
24146
|
isCompare: !0,
|
|
@@ -24155,7 +24155,7 @@ function Ks(c) {
|
|
|
24155
24155
|
}), {
|
|
24156
24156
|
type: b,
|
|
24157
24157
|
xAxis: K,
|
|
24158
|
-
datasets:
|
|
24158
|
+
datasets: Q,
|
|
24159
24159
|
date: e0
|
|
24160
24160
|
};
|
|
24161
24161
|
}
|
|
@@ -24172,7 +24172,7 @@ function Zs(c) {
|
|
|
24172
24172
|
return null;
|
|
24173
24173
|
const P = x.columns.find(
|
|
24174
24174
|
(j) => j.fieldType === "METRIC" && !j.hide
|
|
24175
|
-
),
|
|
24175
|
+
), v = x.rows.find((j) => !j.isRollup) ?? x.rows[0], H = v && P ? v.value[P.id] : null, K = (P == null ? void 0 : P.label) ?? "", o0 = t1(H, P ?? null, m);
|
|
24176
24176
|
let Z;
|
|
24177
24177
|
if (D && b.length > $) {
|
|
24178
24178
|
const j = b[$], V = j ? j.rows.find((s0) => !s0.isRollup) ?? j.rows[0] : null;
|
|
@@ -24182,7 +24182,7 @@ function Zs(c) {
|
|
|
24182
24182
|
m
|
|
24183
24183
|
));
|
|
24184
24184
|
}
|
|
24185
|
-
let U = [],
|
|
24185
|
+
let U = [], Q = [];
|
|
24186
24186
|
const e0 = 1;
|
|
24187
24187
|
if (b.length > e0 && b[e0]) {
|
|
24188
24188
|
const j = b[e0], V = j.columns.find(
|
|
@@ -24196,7 +24196,7 @@ function Zs(c) {
|
|
|
24196
24196
|
V,
|
|
24197
24197
|
m
|
|
24198
24198
|
)
|
|
24199
|
-
),
|
|
24199
|
+
), Q = [
|
|
24200
24200
|
{
|
|
24201
24201
|
name: s0.label,
|
|
24202
24202
|
values: j.rows.filter((r0) => !r0.isRollup).map((r0) => ee(r0.value[s0.id])),
|
|
@@ -24216,7 +24216,7 @@ function Zs(c) {
|
|
|
24216
24216
|
type: E || y1.LINECHART,
|
|
24217
24217
|
percentOfTotal: L === !0,
|
|
24218
24218
|
dimensions: U,
|
|
24219
|
-
datasets:
|
|
24219
|
+
datasets: Q
|
|
24220
24220
|
}
|
|
24221
24221
|
};
|
|
24222
24222
|
}
|
|
@@ -24229,26 +24229,26 @@ function eu(c) {
|
|
|
24229
24229
|
start: E.dateRange.start,
|
|
24230
24230
|
end: E.dateRange.end
|
|
24231
24231
|
};
|
|
24232
|
-
let
|
|
24232
|
+
let v = null, H;
|
|
24233
24233
|
if (D && b.length > $) {
|
|
24234
24234
|
const U = b[$];
|
|
24235
24235
|
H = {
|
|
24236
24236
|
start: U.dateRange.start,
|
|
24237
24237
|
end: U.dateRange.end
|
|
24238
|
-
},
|
|
24239
|
-
for (const
|
|
24240
|
-
if (
|
|
24241
|
-
const e0 = L ? t1(
|
|
24242
|
-
x &&
|
|
24238
|
+
}, v = /* @__PURE__ */ new Map();
|
|
24239
|
+
for (const Q of U.rows) {
|
|
24240
|
+
if (Q.isRollup) continue;
|
|
24241
|
+
const e0 = L ? t1(Q.value[L.id] ?? null, L, m) : "";
|
|
24242
|
+
x && v.set(e0, ee(Q.value[x.id]));
|
|
24243
24243
|
}
|
|
24244
24244
|
}
|
|
24245
24245
|
const K = [], o0 = { main: P };
|
|
24246
24246
|
H && (o0.comparison = H);
|
|
24247
24247
|
for (const U of E.rows) {
|
|
24248
24248
|
if (U.isRollup) continue;
|
|
24249
|
-
const
|
|
24249
|
+
const Q = L ? t1(U.value[L.id] ?? null, L, m) : "", e0 = x ? ee(U.value[x.id]) : 0, j = (v == null ? void 0 : v.get(Q)) ?? null;
|
|
24250
24250
|
K.push({
|
|
24251
|
-
name:
|
|
24251
|
+
name: Q,
|
|
24252
24252
|
value: e0,
|
|
24253
24253
|
comparison: j,
|
|
24254
24254
|
date: o0
|
|
@@ -24301,9 +24301,9 @@ function au(c, b) {
|
|
|
24301
24301
|
}).join("");
|
|
24302
24302
|
}
|
|
24303
24303
|
function ou(c, b) {
|
|
24304
|
-
const D = c < 0, $ = Math.abs(c), m = (
|
|
24304
|
+
const D = c < 0, $ = Math.abs(c), m = (v) => String(Math.floor(v)).padStart(2, "0"), E = m($ % 3600 / 60), L = m($ % 60), x = D ? "-" : "";
|
|
24305
24305
|
if (b) {
|
|
24306
|
-
const
|
|
24306
|
+
const v = Math.floor($ / 86400), H = m($ % 86400 / 3600), K = v > 0 ? `${v} day${v > 1 ? "s" : ""} ` : "";
|
|
24307
24307
|
return `${x}${K}${H}:${E}:${L}`;
|
|
24308
24308
|
}
|
|
24309
24309
|
const P = m($ / 3600);
|
|
@@ -24433,12 +24433,12 @@ var lu = {
|
|
|
24433
24433
|
formatDisplayValue: t1
|
|
24434
24434
|
};
|
|
24435
24435
|
const pu = Cn, cu = Wn, Mu = Nn, bu = lu;
|
|
24436
|
-
var
|
|
24436
|
+
var wt = {
|
|
24437
24437
|
...Mu,
|
|
24438
24438
|
...cu,
|
|
24439
24439
|
...pu,
|
|
24440
24440
|
...bu
|
|
24441
|
-
},
|
|
24441
|
+
}, v0 = /* @__PURE__ */ ((c) => (c.DateTime = "DATE_TIME", c.Hour = "HOUR", c.Day = "DAY", c.Week = "WEEK", c.Month = "MONTH", c.TimeOfDay = "TIME_OF_DAY", c.HourOfDay = "HOUR_OF_DAY", c.DayOfWeek = "DAY_OF_WEEK", c.DayOfMonth = "DAY_OF_MONTH", c.MonthOfYear = "MONTH_OF_YEAR", c.Year = "YEAR", c.YearMonthDay = "YEAR_MONTH_DAY", c))(v0 || {}), bt = /* @__PURE__ */ ((c) => (c.Asc = "ASC", c.Desc = "DESC", c))(bt || {}), e1 = /* @__PURE__ */ ((c) => (c.Equal = "EQUAL", c.NotEqual = "NOT_EQUAL", c.GreaterThan = "GREATER_THAN", c.LessThan = "LESS_THAN", c.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", c.LessThanOrEqual = "LESS_THAN_OR_EQUAL", c.Between = "BETWEEN", c.Like = "LIKE", c.NotLike = "NOT_LIKE", c.And = "AND", c.Or = "OR", c))(e1 || {}), c1 = /* @__PURE__ */ ((c) => (c.String = "STRING", c.Timestamp = "TIMESTAMP", c.Bool = "BOOL", c.Numeric = "NUMERIC", c))(c1 || {}), _u = /* @__PURE__ */ ((c) => (c.MTD = "MTD", c))(_u || {}), _t = /* @__PURE__ */ ((c) => (c.Scorecard = "SCORECARD", c.Spacer = "SPACER", c.Table = "TABLE", c.BarChart = "BARCHART", c.StackBarChart = "STACKBARCHART", c.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", c.LineChart = "LINECHART", c.StackLineChart = "STACKLINECHART", c.Circular = "CIRCULAR", c))(_t || {}), du = /* @__PURE__ */ ((c) => (c.EXCEL = "excel", c.PDF = "pdf", c.PDFFULLSIZE = "pdfFullSize", c.PDFRECEIPT = "pdfReceipt", c))(du || {}), zu = /* @__PURE__ */ ((c) => (c.PORTRAIT = "portrait", c.LANDSCAPE = "landscape", c))(zu || {});
|
|
24442
24442
|
function Fl(c) {
|
|
24443
24443
|
switch (c) {
|
|
24444
24444
|
case "excel":
|
|
@@ -24622,7 +24622,7 @@ const F1 = xe(Su, () => {
|
|
|
24622
24622
|
return D.value[r0] || (D.value[r0] = L()), D.value[r0];
|
|
24623
24623
|
}
|
|
24624
24624
|
const P = (V) => m.value === V;
|
|
24625
|
-
function
|
|
24625
|
+
function v(V, s0, r0) {
|
|
24626
24626
|
Object.assign(x(V, s0), r0);
|
|
24627
24627
|
}
|
|
24628
24628
|
function H(V, s0, r0 = 50) {
|
|
@@ -24645,7 +24645,7 @@ const F1 = xe(Su, () => {
|
|
|
24645
24645
|
function U() {
|
|
24646
24646
|
b.value = Math.max(0, b.value - 1);
|
|
24647
24647
|
}
|
|
24648
|
-
function
|
|
24648
|
+
function Q(V) {
|
|
24649
24649
|
m.value = V;
|
|
24650
24650
|
}
|
|
24651
24651
|
function e0() {
|
|
@@ -24661,13 +24661,13 @@ const F1 = xe(Su, () => {
|
|
|
24661
24661
|
openMenuKey: m,
|
|
24662
24662
|
getGlobalFilter: x,
|
|
24663
24663
|
isMenuOpen: P,
|
|
24664
|
-
setGlobalFilter:
|
|
24664
|
+
setGlobalFilter: v,
|
|
24665
24665
|
showMore: H,
|
|
24666
24666
|
clearGlobalFilterScope: K,
|
|
24667
24667
|
setIncludeUnavailable: o0,
|
|
24668
24668
|
startGlobalFilterSelectLoading: Z,
|
|
24669
24669
|
finishGlobalFilterSelectLoading: U,
|
|
24670
|
-
openMenu:
|
|
24670
|
+
openMenu: Q,
|
|
24671
24671
|
closeMenu: e0,
|
|
24672
24672
|
getGlobalFilterKey: tr,
|
|
24673
24673
|
getGlobalFilterLabel: j
|
|
@@ -24729,14 +24729,14 @@ async function Lu(c, b) {
|
|
|
24729
24729
|
await qn.fetch($);
|
|
24730
24730
|
}
|
|
24731
24731
|
const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
|
|
24732
|
-
const { business: c } = g0(H1()), { globalFilters: b } = g0(F1()), { schemas: D } = g0(ln()), { flags: $ } = g0(gn()), m = C0([]), E = C0([]), L = C0([]), x = C0(0), P = lr(),
|
|
24732
|
+
const { business: c } = g0(H1()), { globalFilters: b } = g0(F1()), { schemas: D } = g0(ln()), { flags: $ } = g0(gn()), m = C0([]), E = C0([]), L = C0([]), x = C0(0), P = lr(), v = En(), H = z1(() => m.value.filter((s) => s.editable)), K = z1(() => m.value.filter((s) => !s.editable)), o0 = C0(!1), Z = C0(""), U = C0(), Q = C0(), e0 = z1(() => {
|
|
24733
24733
|
const s = $.value.find(
|
|
24734
24734
|
(u) => u.key === hn.report_portal_integration_custom_report
|
|
24735
24735
|
);
|
|
24736
24736
|
return typeof (s == null ? void 0 : s.value) == "number" ? s.value : null;
|
|
24737
24737
|
}), { isReportPermissionEnabled: j } = Tn(), V = z1(() => e0.value === null ? !0 : e0.value - H.value.length > 0);
|
|
24738
24738
|
async function s0() {
|
|
24739
|
-
return
|
|
24739
|
+
return Q.value = await hu(), Q.value;
|
|
24740
24740
|
}
|
|
24741
24741
|
async function r0() {
|
|
24742
24742
|
var s;
|
|
@@ -24783,7 +24783,7 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
|
|
|
24783
24783
|
},
|
|
24784
24784
|
{ deep: !0 }
|
|
24785
24785
|
);
|
|
24786
|
-
const u0 = C0(), l0 = C0(0), f0 = C0(), c0 = C0(null),
|
|
24786
|
+
const u0 = C0(), l0 = C0(0), f0 = C0(), c0 = C0(null), O0 = C0(null), D0 = C0(!1), M0 = C0(!1), t = C0(!1);
|
|
24787
24787
|
async function i(s) {
|
|
24788
24788
|
const u = H.value.findIndex((M) => M.id === s.id);
|
|
24789
24789
|
let l;
|
|
@@ -24795,7 +24795,7 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
|
|
|
24795
24795
|
if (j.value) {
|
|
24796
24796
|
await Lu(l.id, l.name);
|
|
24797
24797
|
const { businessId: M } = g0(P0());
|
|
24798
|
-
await
|
|
24798
|
+
await v.fetchUserPermissions(void 0, M.value);
|
|
24799
24799
|
}
|
|
24800
24800
|
} catch (M) {
|
|
24801
24801
|
console.warn("Failed to grant report manage permission", {
|
|
@@ -24867,12 +24867,12 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
|
|
|
24867
24867
|
editingTileIndex: l0,
|
|
24868
24868
|
editingTile: f0,
|
|
24869
24869
|
editingGlobalFilterIndex: c0,
|
|
24870
|
-
editingGlobalFilter:
|
|
24870
|
+
editingGlobalFilter: O0,
|
|
24871
24871
|
currentReportId: Z,
|
|
24872
24872
|
editableReports: H,
|
|
24873
24873
|
nonEditableReports: K,
|
|
24874
24874
|
isOpenAddReportDialog: o0,
|
|
24875
|
-
overviewReport:
|
|
24875
|
+
overviewReport: Q,
|
|
24876
24876
|
pinReport: r,
|
|
24877
24877
|
scrollPositionY: x,
|
|
24878
24878
|
customReportQuota: e0,
|
|
@@ -24894,7 +24894,7 @@ const Iu = "mf-reportreport-store", ae = xe(Iu, () => {
|
|
|
24894
24894
|
};
|
|
24895
24895
|
});
|
|
24896
24896
|
var pn = /* @__PURE__ */ ((c) => (c.generating = "GENERATING", c.completed = "COMPLETED", c.failed = "FAILED", c.canceled = "CANCELLED", c))(pn || {});
|
|
24897
|
-
const Fu = "/assets/formatChartData.worker-
|
|
24897
|
+
const Fu = "/assets/formatChartData.worker-BPj1kHSl.js", rt = /* @__PURE__ */ new Map();
|
|
24898
24898
|
function rr(c) {
|
|
24899
24899
|
return new Worker(c, { type: "module" });
|
|
24900
24900
|
}
|
|
@@ -24922,7 +24922,7 @@ const xu = "mf-reportreport-sort-store", cn = xe(xu, () => {
|
|
|
24922
24922
|
const c = C0([]);
|
|
24923
24923
|
function b(m, E) {
|
|
24924
24924
|
if (m == null) return;
|
|
24925
|
-
const L = Array.isArray(E) ? E.filter((
|
|
24925
|
+
const L = Array.isArray(E) ? E.filter((v) => v && v.key) : [], x = c.value.findIndex((v) => v.tileIndex === m), P = { tileIndex: m, sorts: L };
|
|
24926
24926
|
x !== -1 ? c.value.splice(x, 1, P) : c.value.push(P);
|
|
24927
24927
|
}
|
|
24928
24928
|
function D(m) {
|
|
@@ -24939,7 +24939,7 @@ function Mn(c = []) {
|
|
|
24939
24939
|
new Set(c.map((b) => b === "" ? "NULL" : b))
|
|
24940
24940
|
);
|
|
24941
24941
|
}
|
|
24942
|
-
function
|
|
24942
|
+
function vu(c) {
|
|
24943
24943
|
return [
|
|
24944
24944
|
c.schemaName,
|
|
24945
24945
|
c.name,
|
|
@@ -24948,8 +24948,8 @@ function wu(c) {
|
|
|
24948
24948
|
c.operator
|
|
24949
24949
|
].join(":");
|
|
24950
24950
|
}
|
|
24951
|
-
function
|
|
24952
|
-
const b = (D, $) =>
|
|
24951
|
+
function wu(c) {
|
|
24952
|
+
const b = (D, $) => w0().set("hour", D).set("minute", $).set("second", 0).set("millisecond", 0).toISOString();
|
|
24953
24953
|
return !c.startTime || !c.endTime ? [] : [
|
|
24954
24954
|
b(c.startTime.hour, c.startTime.minute),
|
|
24955
24955
|
b(c.endTime.hour, c.endTime.minute)
|
|
@@ -24967,12 +24967,12 @@ function Pu(c, b) {
|
|
|
24967
24967
|
};
|
|
24968
24968
|
}
|
|
24969
24969
|
function Ju(c, b) {
|
|
24970
|
-
const D =
|
|
24970
|
+
const D = wu(b);
|
|
24971
24971
|
return D.length !== 2 ? null : {
|
|
24972
24972
|
schemaName: c.schemaName,
|
|
24973
24973
|
name: c.name,
|
|
24974
24974
|
operator: e1.Between,
|
|
24975
|
-
option: c.option ??
|
|
24975
|
+
option: c.option ?? v0.TimeOfDay,
|
|
24976
24976
|
values: D,
|
|
24977
24977
|
dataFormula: c.dataFormula,
|
|
24978
24978
|
isGlobalFilter: !0
|
|
@@ -24984,9 +24984,9 @@ function Hu(c) {
|
|
|
24984
24984
|
new Set((c.values ?? []).map((x) => x === "" ? "NULL" : x))
|
|
24985
24985
|
);
|
|
24986
24986
|
if (b.length === 1 && String(b[0]) === "(EMPTY)") {
|
|
24987
|
-
const x = Object.values(
|
|
24987
|
+
const x = Object.values(v0).includes(
|
|
24988
24988
|
String(c.option ?? "")
|
|
24989
|
-
), P = c.option ===
|
|
24989
|
+
), P = c.option === v0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [x ? "-1" : "(EMPTY)"];
|
|
24990
24990
|
return [
|
|
24991
24991
|
{
|
|
24992
24992
|
schemaName: c.schemaName,
|
|
@@ -25002,15 +25002,15 @@ function Hu(c) {
|
|
|
25002
25002
|
if (((($ = c.customTimeRanges) == null ? void 0 : $.length) ?? 0) > 0) {
|
|
25003
25003
|
const x = new Set(b.map((P) => String(P)));
|
|
25004
25004
|
return ((m = c.customTimeRanges) == null ? void 0 : m.filter((P) => {
|
|
25005
|
-
const
|
|
25006
|
-
return x.has(
|
|
25005
|
+
const v = String(P.name ?? "");
|
|
25006
|
+
return x.has(v);
|
|
25007
25007
|
}).map((P) => Ju(c, P)).filter((P) => !!P)) ?? [];
|
|
25008
25008
|
}
|
|
25009
25009
|
if ((((E = c.customOptions) == null ? void 0 : E.length) ?? 0) > 0) {
|
|
25010
25010
|
const x = new Set(b.map((P) => String(P)));
|
|
25011
25011
|
return ((L = c.customOptions) == null ? void 0 : L.filter((P) => {
|
|
25012
|
-
const
|
|
25013
|
-
return x.has(
|
|
25012
|
+
const v = String(P.label ?? "");
|
|
25013
|
+
return x.has(v);
|
|
25014
25014
|
}).map((P) => Pu(c, P)).filter((P) => Array.isArray(P.values) && P.values.length > 0)) ?? [];
|
|
25015
25015
|
}
|
|
25016
25016
|
return b.length === 0 ? [] : [
|
|
@@ -25030,18 +25030,18 @@ function nr({
|
|
|
25030
25030
|
globalFilters: b,
|
|
25031
25031
|
schemaNames: D
|
|
25032
25032
|
}) {
|
|
25033
|
-
const $ = /* @__PURE__ */ new Map(), m = [], E = new Set((D ?? []).map((
|
|
25034
|
-
if (!
|
|
25033
|
+
const $ = /* @__PURE__ */ new Map(), m = [], E = new Set((D ?? []).map((v) => String(v))), L = (v) => E.has(v.schemaName ?? ""), x = b.filter(L), P = (v) => {
|
|
25034
|
+
if (!v || !L(v) || !Array.isArray(v.values) || v.values.length === 0)
|
|
25035
25035
|
return;
|
|
25036
25036
|
const H = {
|
|
25037
|
-
...
|
|
25038
|
-
values: Mn(
|
|
25037
|
+
...v,
|
|
25038
|
+
values: Mn(v.values)
|
|
25039
25039
|
};
|
|
25040
|
-
if (H.option ===
|
|
25040
|
+
if (H.option === v0.TimeOfDay && H.operator === e1.Between) {
|
|
25041
25041
|
m.push(H);
|
|
25042
25042
|
return;
|
|
25043
25043
|
}
|
|
25044
|
-
const o0 =
|
|
25044
|
+
const o0 = vu(H), Z = $.get(o0);
|
|
25045
25045
|
if (!Z) {
|
|
25046
25046
|
$.set(o0, H);
|
|
25047
25047
|
return;
|
|
@@ -25133,7 +25133,7 @@ function bn(c = [], b) {
|
|
|
25133
25133
|
if ($) return $;
|
|
25134
25134
|
}
|
|
25135
25135
|
}
|
|
25136
|
-
function
|
|
25136
|
+
function vl(c, b) {
|
|
25137
25137
|
if (!b) return c;
|
|
25138
25138
|
const D = bn(c, b);
|
|
25139
25139
|
return D ? (D.tiles || (D.tiles = []), D.tiles) : c;
|
|
@@ -25143,7 +25143,7 @@ function Jt(c) {
|
|
|
25143
25143
|
const b = c.tab ? c.tiles.flatMap((D) => D.tiles ?? []) : c.tiles;
|
|
25144
25144
|
return b.length === 0 ? 2 : 1 + Math.max(...b.map(Jt));
|
|
25145
25145
|
}
|
|
25146
|
-
function
|
|
25146
|
+
function wl(c = []) {
|
|
25147
25147
|
return c.length === 0 ? 0 : Math.max(...c.map(Jt));
|
|
25148
25148
|
}
|
|
25149
25149
|
function Pl(c, b) {
|
|
@@ -25246,10 +25246,10 @@ const el = async ({
|
|
|
25246
25246
|
scopedGlobalFilters: L
|
|
25247
25247
|
}) => {
|
|
25248
25248
|
var t, i, p, A;
|
|
25249
|
-
const { businessId: x } = g0(P0()), { currentReport: P, editingReport:
|
|
25249
|
+
const { businessId: x } = g0(P0()), { currentReport: P, editingReport: v, overviewReport: H } = ae(), { selectedNavigationTab: K } = be(), o0 = K === "overview" && H ? H : v ?? P, {
|
|
25250
25250
|
selectedRestaurantIds: Z,
|
|
25251
25251
|
selectedWarehouseIds: U,
|
|
25252
|
-
selectedLocationIds:
|
|
25252
|
+
selectedLocationIds: Q,
|
|
25253
25253
|
dateRange: e0,
|
|
25254
25254
|
compareDateRange: j,
|
|
25255
25255
|
timeRange: V,
|
|
@@ -25257,18 +25257,18 @@ const el = async ({
|
|
|
25257
25257
|
restaurants: r0,
|
|
25258
25258
|
warehouses: b0
|
|
25259
25259
|
} = H1(), { globalFilters: a0 } = F1();
|
|
25260
|
-
if (
|
|
25260
|
+
if (Q.length === 0)
|
|
25261
25261
|
return null;
|
|
25262
|
-
const i0 = E ?? e0, u0 = m ?? V, l0 = L ?? a0, f0 = ($ == null ? void 0 : $.filter((T) => r0.some((F) => F.id === T))) ?? Z, c0 = ($ == null ? void 0 : $.filter((T) => b0.some((F) => F.id === T))) ?? U,
|
|
25262
|
+
const i0 = E ?? e0, u0 = m ?? V, l0 = L ?? a0, f0 = ($ == null ? void 0 : $.filter((T) => r0.some((F) => F.id === T))) ?? Z, c0 = ($ == null ? void 0 : $.filter((T) => b0.some((F) => F.id === T))) ?? U, O0 = Ae(c, l0, D ?? ""), D0 = {
|
|
25263
25263
|
fetchType: J0.Post,
|
|
25264
25264
|
url: `/${x.value}/v2/query`,
|
|
25265
25265
|
data: {
|
|
25266
|
-
widget:
|
|
25266
|
+
widget: O0,
|
|
25267
25267
|
dateRange: [i0.startDate, i0.endDate],
|
|
25268
25268
|
compareDateRange: j.startDate && j.endDate ? [j.startDate, j.endDate] : void 0,
|
|
25269
25269
|
timeRange: [
|
|
25270
|
-
|
|
25271
|
-
|
|
25270
|
+
w0().tz(s0).hour(Number((t = u0.start) == null ? void 0 : t.hour)).minute(Number((i = u0.start) == null ? void 0 : i.minute)).toISOString(),
|
|
25271
|
+
w0().tz(s0).hour(Number((p = u0.end) == null ? void 0 : p.hour)).minute(Number((A = u0.end) == null ? void 0 : A.minute)).endOf("minutes").toISOString()
|
|
25272
25272
|
],
|
|
25273
25273
|
businessIds: x.value ? [x.value] : [],
|
|
25274
25274
|
restaurantIds: f0,
|
|
@@ -25292,10 +25292,10 @@ const el = async ({
|
|
|
25292
25292
|
scopedCompareDateRange: m
|
|
25293
25293
|
}) => {
|
|
25294
25294
|
var u0, l0, f0, c0;
|
|
25295
|
-
const { businessId: E } = g0(P0()), { currentReport: L, editingReport: x, overviewReport: P } = ae(), { selectedNavigationTab:
|
|
25295
|
+
const { businessId: E } = g0(P0()), { currentReport: L, editingReport: x, overviewReport: P } = ae(), { selectedNavigationTab: v } = be(), H = v === "overview" && P ? P : x ?? L, { restaurants: K, warehouses: o0, dateRange: Z, compareDateRange: U, timeRange: Q, timezone: e0 } = H1(), { globalFilters: j } = F1();
|
|
25296
25296
|
if (K.length === 0 && o0.length === 0)
|
|
25297
25297
|
return { totalBytesProcessed: 0 };
|
|
25298
|
-
const V = $ ?? Z, s0 = m ?? U, r0 = K.map((
|
|
25298
|
+
const V = $ ?? Z, s0 = m ?? U, r0 = K.map((O0) => O0.id), b0 = o0.map((O0) => O0.id), a0 = Ae(c, j, D ?? ""), i0 = {
|
|
25299
25299
|
fetchType: J0.Post,
|
|
25300
25300
|
url: `/${E.value}/v2/query/dry-run`,
|
|
25301
25301
|
data: {
|
|
@@ -25303,8 +25303,8 @@ const el = async ({
|
|
|
25303
25303
|
dateRange: [V.startDate, V.endDate],
|
|
25304
25304
|
compareDateRange: s0.startDate && s0.endDate ? [s0.startDate, s0.endDate] : void 0,
|
|
25305
25305
|
timeRange: [
|
|
25306
|
-
|
|
25307
|
-
|
|
25306
|
+
w0().tz(e0).hour(Number((u0 = Q.start) == null ? void 0 : u0.hour)).minute(Number((l0 = Q.start) == null ? void 0 : l0.minute)).toISOString(),
|
|
25307
|
+
w0().tz(e0).hour(Number((f0 = Q.end) == null ? void 0 : f0.hour)).minute(Number((c0 = Q.end) == null ? void 0 : c0.minute)).endOf("minutes").toISOString()
|
|
25308
25308
|
],
|
|
25309
25309
|
businessIds: E.value ? [E.value] : [],
|
|
25310
25310
|
restaurantIds: r0,
|
|
@@ -25330,7 +25330,7 @@ const el = async ({
|
|
|
25330
25330
|
scopedGlobalFilters: L
|
|
25331
25331
|
}) => {
|
|
25332
25332
|
var p, A, T, F;
|
|
25333
|
-
const { businessId: x, country: P } = g0(P0()), { currentReport:
|
|
25333
|
+
const { businessId: x, country: P } = g0(P0()), { currentReport: v, editingReport: H, overviewReport: K } = ae(), { selectedNavigationTab: o0 } = be(), Z = o0 === "overview" && K ? K : H ?? v;
|
|
25334
25334
|
if (dt(Z))
|
|
25335
25335
|
return el({
|
|
25336
25336
|
widget: c,
|
|
@@ -25343,7 +25343,7 @@ const el = async ({
|
|
|
25343
25343
|
});
|
|
25344
25344
|
const {
|
|
25345
25345
|
selectedRestaurantIds: U,
|
|
25346
|
-
selectedWarehouseIds:
|
|
25346
|
+
selectedWarehouseIds: Q,
|
|
25347
25347
|
selectedLocationIds: e0,
|
|
25348
25348
|
dateRange: j,
|
|
25349
25349
|
compareDateRange: V,
|
|
@@ -25354,20 +25354,20 @@ const el = async ({
|
|
|
25354
25354
|
} = H1(), { globalFilters: i0 } = F1();
|
|
25355
25355
|
if (e0.length === 0)
|
|
25356
25356
|
return null;
|
|
25357
|
-
const u0 = E ?? j, l0 = m ?? s0, f0 = L ?? i0, c0 = ($ == null ? void 0 : $.filter((W) => b0.some((O) => O.id === W))) ?? U,
|
|
25357
|
+
const u0 = E ?? j, l0 = m ?? s0, f0 = L ?? i0, c0 = ($ == null ? void 0 : $.filter((W) => b0.some((O) => O.id === W))) ?? U, O0 = ($ == null ? void 0 : $.filter((W) => a0.some((O) => O.id === W))) ?? Q, D0 = Ae(c, f0, D ?? ""), M0 = {
|
|
25358
25358
|
fetchType: J0.Post,
|
|
25359
25359
|
url: `/${x.value}/postgres-query`,
|
|
25360
|
-
data:
|
|
25360
|
+
data: wt.getQueryRequests({
|
|
25361
25361
|
widget: D0,
|
|
25362
25362
|
dateRange: [u0.startDate, u0.endDate],
|
|
25363
25363
|
compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
|
|
25364
25364
|
timeRange: [
|
|
25365
|
-
|
|
25366
|
-
|
|
25365
|
+
w0().tz(r0).hour(Number((p = l0.start) == null ? void 0 : p.hour)).minute(Number((A = l0.start) == null ? void 0 : A.minute)).toISOString(),
|
|
25366
|
+
w0().tz(r0).hour(Number((T = l0.end) == null ? void 0 : T.hour)).minute(Number((F = l0.end) == null ? void 0 : F.minute)).endOf("minutes").toISOString()
|
|
25367
25367
|
],
|
|
25368
25368
|
businessIds: x.value ? [x.value] : [],
|
|
25369
25369
|
restaurantIds: c0,
|
|
25370
|
-
warehouseIds:
|
|
25370
|
+
warehouseIds: O0,
|
|
25371
25371
|
timezone: r0
|
|
25372
25372
|
}).map((W, O) => {
|
|
25373
25373
|
const r = O === 0 ? 3e3 : 12e3;
|
|
@@ -25401,24 +25401,24 @@ const el = async ({
|
|
|
25401
25401
|
dateRange: L,
|
|
25402
25402
|
globalFilters: x
|
|
25403
25403
|
}) => {
|
|
25404
|
-
const { businessId: P } = g0(P0()),
|
|
25405
|
-
let s0 =
|
|
25404
|
+
const { businessId: P } = g0(P0()), v = H1(), { compareDateRange: H } = g0(v), { restaurants: K, warehouses: o0, timezone: Z } = v, { globalFilters: U } = F1(), { currentReport: Q, overviewReport: e0 } = ae(), { selectedNavigationTab: j } = be(), { getTileSorts: V } = cn();
|
|
25405
|
+
let s0 = Q == null ? void 0 : Q.id, r0 = J1(Q == null ? void 0 : Q.tiles);
|
|
25406
25406
|
j === "overview" && e0 && (s0 = e0 == null ? void 0 : e0.id, r0 = J1(e0 == null ? void 0 : e0.tiles));
|
|
25407
25407
|
const b0 = x ?? U, a0 = r0.filter((D0, M0) => typeof b == "number" ? M0 === b : !0).map((D0) => Ae(D0.widget, b0, D0.id)), i0 = {
|
|
25408
25408
|
fetchType: J0.Post,
|
|
25409
|
-
url: `/${P.value}/file?lang=${
|
|
25409
|
+
url: `/${P.value}/file?lang=${v1()}`,
|
|
25410
25410
|
data: {
|
|
25411
25411
|
configs: [
|
|
25412
25412
|
...a0.map((D0, M0) => {
|
|
25413
25413
|
var t, i, p, A;
|
|
25414
25414
|
return {
|
|
25415
|
-
requests:
|
|
25415
|
+
requests: wt.getQueryRequests({
|
|
25416
25416
|
widget: D0,
|
|
25417
25417
|
dateRange: [L.startDate, L.endDate],
|
|
25418
25418
|
compareDateRange: H.value.startDate && H.value.endDate ? [H.value.startDate, H.value.endDate] : void 0,
|
|
25419
25419
|
timeRange: [
|
|
25420
|
-
|
|
25421
|
-
|
|
25420
|
+
w0().tz(Z).set("hour", Number((t = E.start) == null ? void 0 : t.hour)).set("minute", Number((i = E.start) == null ? void 0 : i.minute)).toISOString(),
|
|
25421
|
+
w0().tz(Z).set("hour", Number((p = E.end) == null ? void 0 : p.hour)).set("minute", Number((A = E.end) == null ? void 0 : A.minute)).toISOString()
|
|
25422
25422
|
],
|
|
25423
25423
|
businessIds: P ? [P.value] : [],
|
|
25424
25424
|
restaurantIds: m.filter(
|
|
@@ -25445,8 +25445,8 @@ const el = async ({
|
|
|
25445
25445
|
responseType: "arraybuffer",
|
|
25446
25446
|
timeout: 1e3 * 60 * 60 * 24
|
|
25447
25447
|
}
|
|
25448
|
-
}, { headers: u0, data: l0 } = await Ot.rawFetch(i0), f0 = u0["content-disposition"].split("filename=")[1].replaceAll('"', ""), c0 = window.URL.createObjectURL(new Blob([new Uint8Array(l0).buffer])),
|
|
25449
|
-
|
|
25448
|
+
}, { headers: u0, data: l0 } = await Ot.rawFetch(i0), f0 = u0["content-disposition"].split("filename=")[1].replaceAll('"', ""), c0 = window.URL.createObjectURL(new Blob([new Uint8Array(l0).buffer])), O0 = document.createElement("a");
|
|
25449
|
+
O0.href = c0, O0.setAttribute("download", decodeURIComponent(f0)), document.body.appendChild(O0), O0.click(), O0.remove();
|
|
25450
25450
|
}, Yl = async ({
|
|
25451
25451
|
emails: c,
|
|
25452
25452
|
types: b,
|
|
@@ -25457,12 +25457,12 @@ const el = async ({
|
|
|
25457
25457
|
isCombinedLocationLayout: L,
|
|
25458
25458
|
globalFilters: x
|
|
25459
25459
|
}) => {
|
|
25460
|
-
const { businessId: P } = g0(P0()), { currentReport:
|
|
25460
|
+
const { businessId: P } = g0(P0()), { currentReport: v, overviewReport: H } = ae(), { selectedNavigationTab: K } = be(), o0 = H1(), { compareDateRange: Z } = g0(o0), { restaurants: U, warehouses: Q, timezone: e0 } = o0, { globalFilters: j } = F1(), { getTileSorts: V } = cn();
|
|
25461
25461
|
if (c.length === 0) {
|
|
25462
25462
|
console.error("No email addresses provided.");
|
|
25463
25463
|
return;
|
|
25464
25464
|
}
|
|
25465
|
-
let s0 = (
|
|
25465
|
+
let s0 = (v == null ? void 0 : v.id) || "", r0 = (v == null ? void 0 : v.name) || "", b0 = J1(v == null ? void 0 : v.tiles);
|
|
25466
25466
|
K === "overview" && H && (s0 = H == null ? void 0 : H.id, r0 = H.name, b0 = J1(H == null ? void 0 : H.tiles));
|
|
25467
25467
|
const a0 = x ?? j, i0 = b0.map((l0) => Ae(l0.widget, a0, l0.id)), u0 = {
|
|
25468
25468
|
businessId: P.value,
|
|
@@ -25474,22 +25474,22 @@ const el = async ({
|
|
|
25474
25474
|
reportName: r0,
|
|
25475
25475
|
emails: c,
|
|
25476
25476
|
configs: i0.map((l0, f0) => {
|
|
25477
|
-
var c0,
|
|
25477
|
+
var c0, O0, D0, M0;
|
|
25478
25478
|
return {
|
|
25479
|
-
requests:
|
|
25479
|
+
requests: wt.getQueryRequests({
|
|
25480
25480
|
widget: l0,
|
|
25481
25481
|
dateRange: [D.startDate, D.endDate],
|
|
25482
25482
|
compareDateRange: Z.value.startDate && Z.value.endDate ? [Z.value.startDate, Z.value.endDate] : void 0,
|
|
25483
25483
|
timeRange: [
|
|
25484
|
-
|
|
25485
|
-
|
|
25484
|
+
w0().tz(e0).hour(Number((c0 = $.start) == null ? void 0 : c0.hour)).minute(Number((O0 = $.start) == null ? void 0 : O0.minute)).toISOString(),
|
|
25485
|
+
w0().tz(e0).hour(Number((D0 = $.end) == null ? void 0 : D0.hour)).minute(Number((M0 = $.end) == null ? void 0 : M0.minute)).endOf("minutes").toISOString()
|
|
25486
25486
|
],
|
|
25487
25487
|
businessIds: P ? [P.value] : [],
|
|
25488
25488
|
restaurantIds: m.filter(
|
|
25489
25489
|
(t) => U.find((i) => i.id === t)
|
|
25490
25490
|
),
|
|
25491
25491
|
warehouseIds: m.filter(
|
|
25492
|
-
(t) =>
|
|
25492
|
+
(t) => Q.find((i) => i.id === t)
|
|
25493
25493
|
),
|
|
25494
25494
|
timezone: e0
|
|
25495
25495
|
}),
|
|
@@ -25506,7 +25506,7 @@ const el = async ({
|
|
|
25506
25506
|
};
|
|
25507
25507
|
await Ot.fetch({
|
|
25508
25508
|
fetchType: J0.Post,
|
|
25509
|
-
url: `/${P.value}/reports/email?lang=${
|
|
25509
|
+
url: `/${P.value}/reports/email?lang=${v1()}`,
|
|
25510
25510
|
data: u0,
|
|
25511
25511
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
25512
25512
|
});
|
|
@@ -25514,7 +25514,7 @@ const el = async ({
|
|
|
25514
25514
|
const { businessId: b } = g0(P0());
|
|
25515
25515
|
await Ot.fetch({
|
|
25516
25516
|
fetchType: J0.Post,
|
|
25517
|
-
url: `/${b.value}/reports/resend-email?lang=${
|
|
25517
|
+
url: `/${b.value}/reports/resend-email?lang=${v1()}`,
|
|
25518
25518
|
data: { jobId: c },
|
|
25519
25519
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
25520
25520
|
});
|
|
@@ -25531,9 +25531,9 @@ const el = async ({
|
|
|
25531
25531
|
url: `/${b.value}/reports/email-recipient/delete`,
|
|
25532
25532
|
data: { email: c }
|
|
25533
25533
|
});
|
|
25534
|
-
}, or = (c, b = "en") =>
|
|
25535
|
-
const D =
|
|
25536
|
-
return
|
|
25534
|
+
}, or = (c, b = "en") => w0().set("hour", c.hour).set("minute", c.minute).locale(b).format("h:mm A"), rl = (c, b) => {
|
|
25535
|
+
const D = w0().set("hour", c.hour).set("minute", c.minute);
|
|
25536
|
+
return w0().set("hour", b.hour).set("minute", b.minute) < D ? "+1" : "";
|
|
25537
25537
|
}, nl = { class: "px-24 py-16 rounded-lg shadow-light-300" }, al = { class: "text-fm-color-typo-primary" }, ol = { class: "text-fm-color-typo-secondary" }, il = { class: "fm-typo-en-body-lg-600 mb-8" }, sl = { class: "flex items-center justify-center w-full" }, ul = { class: "fm-typo-en-body-lg-600 mb-8" }, ll = { class: "flex items-center justify-center" }, pl = { class: "flex flex-row mb-4 px-4 gap-2" }, cl = /* @__PURE__ */ zt({
|
|
25538
25538
|
__name: "TimeRangeSelect",
|
|
25539
25539
|
props: /* @__PURE__ */ Ce({
|
|
@@ -25580,25 +25580,25 @@ const el = async ({
|
|
|
25580
25580
|
U && (m.value = U, E("update", m.value)), K.value = !1;
|
|
25581
25581
|
}
|
|
25582
25582
|
function P(U) {
|
|
25583
|
-
const
|
|
25583
|
+
const Q = U.split(":"), e0 = w0().set("hour", Number(Q[0])).set("minute", Number(Q[1]));
|
|
25584
25584
|
return {
|
|
25585
25585
|
hours: Number(e0.format("h")),
|
|
25586
25586
|
minutes: Number(e0.format("m")),
|
|
25587
25587
|
period: e0.format("A")
|
|
25588
25588
|
};
|
|
25589
25589
|
}
|
|
25590
|
-
const
|
|
25591
|
-
function H(U,
|
|
25592
|
-
|
|
25590
|
+
const v = C0(JSON.parse(JSON.stringify(m.value)));
|
|
25591
|
+
function H(U, Q) {
|
|
25592
|
+
v.value.start = JSON.parse(JSON.stringify(U)), v.value.end = JSON.parse(JSON.stringify(Q));
|
|
25593
25593
|
}
|
|
25594
25594
|
x1(
|
|
25595
25595
|
() => [m.value, c.defaultDateRange],
|
|
25596
25596
|
() => {
|
|
25597
25597
|
if (m.value) {
|
|
25598
25598
|
const U = c.defaultDateRange.findIndex(
|
|
25599
|
-
(
|
|
25599
|
+
(Q) => {
|
|
25600
25600
|
var e0, j, V, s0;
|
|
25601
|
-
return
|
|
25601
|
+
return Q.startTime.hour === ((e0 = m.value.start) == null ? void 0 : e0.hour) && Q.startTime.minute === ((j = m.value.start) == null ? void 0 : j.minute) && Q.endTime.hour === ((V = m.value.end) == null ? void 0 : V.hour) && Q.endTime.minute === ((s0 = m.value.end) == null ? void 0 : s0.minute);
|
|
25602
25602
|
}
|
|
25603
25603
|
) + 1;
|
|
25604
25604
|
U !== 0 ? L.value = U : L.value = c.defaultDateRange.length + 1;
|
|
@@ -25615,20 +25615,20 @@ const el = async ({
|
|
|
25615
25615
|
endTime: m.value.end,
|
|
25616
25616
|
locale: $.value
|
|
25617
25617
|
}));
|
|
25618
|
-
return (U,
|
|
25618
|
+
return (U, Q) => {
|
|
25619
25619
|
const e0 = G0("FmChip"), j = G0("FmRadio"), V = G0("FmMenuDivider"), s0 = G0("FmRadioGroup"), r0 = G0("FmTimeInput"), b0 = G0("FmButton"), a0 = G0("FmPopover");
|
|
25620
25620
|
return Y0(), l1("div", null, [
|
|
25621
25621
|
x0(a0, {
|
|
25622
25622
|
"show-popover": K.value,
|
|
25623
25623
|
placement: "bottom",
|
|
25624
|
-
onPopoverChanged:
|
|
25624
|
+
onPopoverChanged: Q[6] || (Q[6] = (i0) => K.value = i0)
|
|
25625
25625
|
}, {
|
|
25626
25626
|
"popover-button": n1(() => [
|
|
25627
25627
|
x0(ur, {
|
|
25628
25628
|
"left-icon": c.label ? "filter_alt" : "schedule",
|
|
25629
25629
|
label: Z.value,
|
|
25630
25630
|
removable: c.removable,
|
|
25631
|
-
onChipClosed:
|
|
25631
|
+
onChipClosed: Q[0] || (Q[0] = (i0) => o0(!0))
|
|
25632
25632
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
25633
25633
|
]),
|
|
25634
25634
|
default: n1(() => {
|
|
@@ -25637,12 +25637,12 @@ const el = async ({
|
|
|
25637
25637
|
H0("div", nl, [
|
|
25638
25638
|
x0(s0, {
|
|
25639
25639
|
modelValue: L.value,
|
|
25640
|
-
"onUpdate:modelValue":
|
|
25640
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (c0) => L.value = c0)
|
|
25641
25641
|
}, {
|
|
25642
25642
|
default: n1(() => [
|
|
25643
|
-
(Y0(!0), l1(G1, null, ot(c.defaultDateRange, (c0,
|
|
25644
|
-
key: `range_${
|
|
25645
|
-
value:
|
|
25643
|
+
(Y0(!0), l1(G1, null, ot(c.defaultDateRange, (c0, O0) => (Y0(), m1(j, {
|
|
25644
|
+
key: `range_${O0}`,
|
|
25645
|
+
value: O0 + 1,
|
|
25646
25646
|
label: c0.name,
|
|
25647
25647
|
onClick: (D0) => H(c0.startTime, c0.endTime)
|
|
25648
25648
|
}, {
|
|
@@ -25657,7 +25657,7 @@ const el = async ({
|
|
|
25657
25657
|
[An, c0.isDefault]
|
|
25658
25658
|
])
|
|
25659
25659
|
]),
|
|
25660
|
-
H0("p", ol, p1(L0(or)(c0.startTime, L0(
|
|
25660
|
+
H0("p", ol, p1(L0(or)(c0.startTime, L0(v1)())) + " - " + p1(L0(or)(c0.endTime, L0(v1)())) + " " + p1(L0(rl)(c0.startTime, c0.endTime)), 1)
|
|
25661
25661
|
]),
|
|
25662
25662
|
_: 2
|
|
25663
25663
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
@@ -25674,13 +25674,13 @@ const el = async ({
|
|
|
25674
25674
|
H0("p", il, p1(L0(D)("report.date.startingTime")), 1),
|
|
25675
25675
|
H0("div", sl, [
|
|
25676
25676
|
x0(r0, {
|
|
25677
|
-
"model-value": P(`${(i0 =
|
|
25678
|
-
"onUpdate:modelValue":
|
|
25679
|
-
if (
|
|
25680
|
-
const
|
|
25681
|
-
L0(
|
|
25677
|
+
"model-value": P(`${(i0 = v.value.start) == null ? void 0 : i0.hour}:${(u0 = v.value.start) == null ? void 0 : u0.minute}`),
|
|
25678
|
+
"onUpdate:modelValue": Q[2] || (Q[2] = (c0) => {
|
|
25679
|
+
if (v.value.start) {
|
|
25680
|
+
const O0 = L0(w0)(`${c0.hours}:${c0.minutes} ${c0.period}`, "h:m A").locale(
|
|
25681
|
+
L0(v1)()
|
|
25682
25682
|
);
|
|
25683
|
-
|
|
25683
|
+
v.value.start.hour = O0.get("hour"), v.value.start.minute = O0.get("minute");
|
|
25684
25684
|
}
|
|
25685
25685
|
})
|
|
25686
25686
|
}, null, 8, ["model-value"])
|
|
@@ -25688,28 +25688,28 @@ const el = async ({
|
|
|
25688
25688
|
H0("p", ul, p1(L0(D)("report.date.endingTime")), 1),
|
|
25689
25689
|
H0("div", ll, [
|
|
25690
25690
|
x0(r0, {
|
|
25691
|
-
"model-value": P(`${(l0 =
|
|
25692
|
-
"onUpdate:modelValue":
|
|
25693
|
-
if (
|
|
25694
|
-
const
|
|
25695
|
-
L0(
|
|
25691
|
+
"model-value": P(`${(l0 = v.value.end) == null ? void 0 : l0.hour}:${(f0 = v.value.end) == null ? void 0 : f0.minute}`),
|
|
25692
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (c0) => {
|
|
25693
|
+
if (v.value.end) {
|
|
25694
|
+
const O0 = L0(w0)(`${c0.hours}:${c0.minutes} ${c0.period}`, "h:m A").locale(
|
|
25695
|
+
L0(v1)()
|
|
25696
25696
|
);
|
|
25697
|
-
|
|
25697
|
+
v.value.end.hour = O0.get("hour"), v.value.end.minute = O0.get("minute");
|
|
25698
25698
|
}
|
|
25699
25699
|
})
|
|
25700
25700
|
}, null, 8, ["model-value"])
|
|
25701
25701
|
])
|
|
25702
25702
|
], 64)) : he("", !0),
|
|
25703
25703
|
H0("div", pl, [
|
|
25704
|
-
|
|
25704
|
+
Q[7] || (Q[7] = H0("div", { class: "grow" }, null, -1)),
|
|
25705
25705
|
x0(b0, {
|
|
25706
25706
|
label: L0(D)("report.common.cancel"),
|
|
25707
25707
|
variant: "tertiary",
|
|
25708
|
-
onClick:
|
|
25708
|
+
onClick: Q[4] || (Q[4] = (c0) => K.value = !1)
|
|
25709
25709
|
}, null, 8, ["label"]),
|
|
25710
25710
|
x0(b0, {
|
|
25711
25711
|
label: L0(D)("report.common.apply"),
|
|
25712
|
-
onClick:
|
|
25712
|
+
onClick: Q[5] || (Q[5] = () => x(JSON.parse(JSON.stringify(v.value))))
|
|
25713
25713
|
}, null, 8, ["label"])
|
|
25714
25714
|
])
|
|
25715
25715
|
])
|
|
@@ -25748,7 +25748,7 @@ const el = async ({
|
|
|
25748
25748
|
const x = G0("FmButton"), P = G0("FmDialog");
|
|
25749
25749
|
return Y0(), m1(P, {
|
|
25750
25750
|
modelValue: D.value,
|
|
25751
|
-
"onUpdate:modelValue": L[2] || (L[2] = (
|
|
25751
|
+
"onUpdate:modelValue": L[2] || (L[2] = (v) => D.value = v),
|
|
25752
25752
|
overlay: ""
|
|
25753
25753
|
}, {
|
|
25754
25754
|
"dialog-header": n1(() => [
|
|
@@ -25762,12 +25762,12 @@ const el = async ({
|
|
|
25762
25762
|
x0(x, {
|
|
25763
25763
|
label: $.secondaryButtonLabel,
|
|
25764
25764
|
variant: "tertiary",
|
|
25765
|
-
onClick: L[0] || (L[0] = (
|
|
25765
|
+
onClick: L[0] || (L[0] = (v) => D.value = !1)
|
|
25766
25766
|
}, null, 8, ["label"]),
|
|
25767
25767
|
x0(x, {
|
|
25768
25768
|
label: $.primaryButtonLabel,
|
|
25769
25769
|
variant: "primary",
|
|
25770
|
-
onClick: L[1] || (L[1] = (
|
|
25770
|
+
onClick: L[1] || (L[1] = (v) => m("confirm"))
|
|
25771
25771
|
}, null, 8, ["label"])
|
|
25772
25772
|
]),
|
|
25773
25773
|
_: 3
|
|
@@ -25853,9 +25853,9 @@ function Kl({
|
|
|
25853
25853
|
}
|
|
25854
25854
|
function Zl(c) {
|
|
25855
25855
|
switch (c) {
|
|
25856
|
-
case
|
|
25856
|
+
case v0.HourOfDay:
|
|
25857
25857
|
return 0;
|
|
25858
|
-
case
|
|
25858
|
+
case v0.DayOfMonth:
|
|
25859
25859
|
return 1;
|
|
25860
25860
|
default:
|
|
25861
25861
|
return;
|
|
@@ -25863,9 +25863,9 @@ function Zl(c) {
|
|
|
25863
25863
|
}
|
|
25864
25864
|
function e2(c) {
|
|
25865
25865
|
switch (c) {
|
|
25866
|
-
case
|
|
25866
|
+
case v0.HourOfDay:
|
|
25867
25867
|
return 23;
|
|
25868
|
-
case
|
|
25868
|
+
case v0.DayOfMonth:
|
|
25869
25869
|
return 31;
|
|
25870
25870
|
default:
|
|
25871
25871
|
return;
|
|
@@ -25878,7 +25878,7 @@ function zn({
|
|
|
25878
25878
|
t: $
|
|
25879
25879
|
}) {
|
|
25880
25880
|
switch (c) {
|
|
25881
|
-
case
|
|
25881
|
+
case v0.HourOfDay:
|
|
25882
25882
|
return {
|
|
25883
25883
|
type: N1.Select,
|
|
25884
25884
|
fixed: b,
|
|
@@ -25889,7 +25889,7 @@ function zn({
|
|
|
25889
25889
|
})),
|
|
25890
25890
|
default: "0"
|
|
25891
25891
|
};
|
|
25892
|
-
case
|
|
25892
|
+
case v0.DayOfWeek:
|
|
25893
25893
|
return {
|
|
25894
25894
|
type: N1.Select,
|
|
25895
25895
|
fixed: b,
|
|
@@ -25905,7 +25905,7 @@ function zn({
|
|
|
25905
25905
|
],
|
|
25906
25906
|
default: "1"
|
|
25907
25907
|
};
|
|
25908
|
-
case
|
|
25908
|
+
case v0.DayOfMonth:
|
|
25909
25909
|
return {
|
|
25910
25910
|
type: N1.Select,
|
|
25911
25911
|
fixed: b,
|
|
@@ -25916,7 +25916,7 @@ function zn({
|
|
|
25916
25916
|
})),
|
|
25917
25917
|
default: "1"
|
|
25918
25918
|
};
|
|
25919
|
-
case
|
|
25919
|
+
case v0.MonthOfYear:
|
|
25920
25920
|
return {
|
|
25921
25921
|
type: N1.Select,
|
|
25922
25922
|
fixed: b,
|
|
@@ -25973,11 +25973,11 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
25973
25973
|
},
|
|
25974
25974
|
setup(c) {
|
|
25975
25975
|
const b = c, { t: D, locale: $ } = pr(), { currentReport: m, editingTile: E } = g0(ae());
|
|
25976
|
-
let { timeRange: L, dateRange: x, selectedLocationIds: P, timezone:
|
|
25976
|
+
let { timeRange: L, dateRange: x, selectedLocationIds: P, timezone: v } = g0(H1()), { globalFilters: H } = g0(F1()), { schemas: K } = g0(ln()), {
|
|
25977
25977
|
showMore: o0,
|
|
25978
25978
|
getGlobalFilter: Z,
|
|
25979
25979
|
setGlobalFilter: U,
|
|
25980
|
-
setIncludeUnavailable:
|
|
25980
|
+
setIncludeUnavailable: Q,
|
|
25981
25981
|
startGlobalFilterSelectLoading: e0,
|
|
25982
25982
|
finishGlobalFilterSelectLoading: j,
|
|
25983
25983
|
getGlobalFilterKey: V,
|
|
@@ -25997,7 +25997,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
25997
25997
|
const C = Z(g.globalFilter, u0.value).selectedValues;
|
|
25998
25998
|
return C != null && C.length ? C : g.selectedValues || [];
|
|
25999
25999
|
}
|
|
26000
|
-
function
|
|
26000
|
+
function O0(g) {
|
|
26001
26001
|
g.options = [], g.selectedValues = [], g.globalFilter.values = [], U(g.globalFilter, u0.value, { selectedValues: [] });
|
|
26002
26002
|
}
|
|
26003
26003
|
function D0(g) {
|
|
@@ -26059,7 +26059,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26059
26059
|
);
|
|
26060
26060
|
function M0(g, C) {
|
|
26061
26061
|
var B;
|
|
26062
|
-
return C === !0 ? D("report.common.yes") || "Yes" : C === !1 ? D("report.common.no") || "No" : String(C).trim() === "" || C === Y1 ? b0.value : g.type === c1.Timestamp && g.globalFilter.option !==
|
|
26062
|
+
return C === !0 ? D("report.common.yes") || "Yes" : C === !1 ? D("report.common.no") || "No" : String(C).trim() === "" || C === Y1 ? b0.value : g.type === c1.Timestamp && g.globalFilter.option !== v0.DateTime && g.globalFilter.option !== v0.TimeOfDay ? ((B = nt({
|
|
26063
26063
|
dimensionOption: g.globalFilter.option,
|
|
26064
26064
|
t: D
|
|
26065
26065
|
}).find((N) => String(N.value) === String(C))) == null ? void 0 : B.label) ?? String(C) : String(C);
|
|
@@ -26078,13 +26078,13 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26078
26078
|
return C == null ? void 0 : C.type;
|
|
26079
26079
|
}
|
|
26080
26080
|
function p(g) {
|
|
26081
|
-
var X,
|
|
26081
|
+
var X, Y;
|
|
26082
26082
|
if (!m.value && !E.value) return [];
|
|
26083
26083
|
if (!((X = g.tileIds) != null && X.length)) return [];
|
|
26084
|
-
const C = E.value ? [E.value] : J1((
|
|
26084
|
+
const C = E.value ? [E.value] : J1((Y = m.value) == null ? void 0 : Y.tiles), { name: B = "", schemaName: I = "" } = g, N = C.filter((z0) => {
|
|
26085
26085
|
var E0, y0;
|
|
26086
|
-
const d0 = (E0 =
|
|
26087
|
-
if (!d0 || (y0 = g.tileIds) != null && y0.length && !g.tileIds.includes(
|
|
26086
|
+
const d0 = (E0 = z0 == null ? void 0 : z0.widget) == null ? void 0 : E0.config;
|
|
26087
|
+
if (!d0 || (y0 = g.tileIds) != null && y0.length && !g.tileIds.includes(z0.id)) return !1;
|
|
26088
26088
|
const k = (d0.dimensions ?? []).some(
|
|
26089
26089
|
(S0) => S0.schemaName === I && S0.name === B
|
|
26090
26090
|
), q0 = (d0.joinDatasources ?? []).some(
|
|
@@ -26093,15 +26093,15 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26093
26093
|
return k || q0 || _0;
|
|
26094
26094
|
});
|
|
26095
26095
|
if (!N.length) return [];
|
|
26096
|
-
const
|
|
26096
|
+
const w = (z0, d0) => {
|
|
26097
26097
|
const k = /* @__PURE__ */ new Map(), q0 = (_0) => {
|
|
26098
26098
|
const E0 = `${_0.schemaName}:${_0.name}:${_0.operator}:${_0.option ?? ""}:${_0.dataFormula ?? ""}`, y0 = k.get(E0);
|
|
26099
26099
|
y0 ? [e1.Like, e1.NotLike].includes(_0.operator) ? y0.values = Array.from(/* @__PURE__ */ new Set([...y0.values ?? [], ..._0.values ?? []])) : k.set(E0, { ..._0 }) : k.set(E0, { ..._0 });
|
|
26100
26100
|
};
|
|
26101
|
-
return
|
|
26102
|
-
}, J = (
|
|
26101
|
+
return z0.forEach(q0), d0.forEach(q0), Array.from(k.values());
|
|
26102
|
+
}, J = (z0) => {
|
|
26103
26103
|
var k;
|
|
26104
|
-
const d0 = (k =
|
|
26104
|
+
const d0 = (k = z0.dimensions) == null ? void 0 : k.find(
|
|
26105
26105
|
(q0) => q0.schemaName === I && q0.name === B
|
|
26106
26106
|
);
|
|
26107
26107
|
return {
|
|
@@ -26113,11 +26113,11 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26113
26113
|
dataFormula: d0 == null ? void 0 : d0.dataFormula
|
|
26114
26114
|
};
|
|
26115
26115
|
};
|
|
26116
|
-
return N.reduce((
|
|
26116
|
+
return N.reduce((z0, d0) => {
|
|
26117
26117
|
var R0, j0;
|
|
26118
26118
|
const k = (R0 = d0 == null ? void 0 : d0.widget) == null ? void 0 : R0.config;
|
|
26119
|
-
if (!k) return
|
|
26120
|
-
const q0 = J(k), _0 = (k.dimensions ?? []).some((I0) => I0.schemaName === I) || (k.schemaNames ?? []).includes(I), E0 =
|
|
26119
|
+
if (!k) return z0;
|
|
26120
|
+
const q0 = J(k), _0 = (k.dimensions ?? []).some((I0) => I0.schemaName === I) || (k.schemaNames ?? []).includes(I), E0 = w(
|
|
26121
26121
|
k.filters ?? [],
|
|
26122
26122
|
(g.filters ?? []).filter((I0) => {
|
|
26123
26123
|
var K0;
|
|
@@ -26125,14 +26125,14 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26125
26125
|
})
|
|
26126
26126
|
), y0 = (j0 = k.joinDatasources) == null ? void 0 : j0.find(
|
|
26127
26127
|
(I0) => (I0.schemaNames ?? []).includes(I) || (I0.dimensions ?? []).some((K0) => K0.schemaName === I)
|
|
26128
|
-
), S0 =
|
|
26128
|
+
), S0 = w(
|
|
26129
26129
|
(y0 == null ? void 0 : y0.filters) ?? [],
|
|
26130
26130
|
(g.filters ?? []).filter((I0) => {
|
|
26131
26131
|
var K0;
|
|
26132
26132
|
return (K0 = y0 == null ? void 0 : y0.schemaNames) == null ? void 0 : K0.includes(I0.schemaName);
|
|
26133
26133
|
})
|
|
26134
26134
|
);
|
|
26135
|
-
return
|
|
26135
|
+
return z0.push({
|
|
26136
26136
|
type: _t.Table,
|
|
26137
26137
|
title: "Global Filter",
|
|
26138
26138
|
config: {
|
|
@@ -26171,7 +26171,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26171
26171
|
colWidths: null,
|
|
26172
26172
|
isBlend: !1
|
|
26173
26173
|
}
|
|
26174
|
-
}),
|
|
26174
|
+
}), z0;
|
|
26175
26175
|
}, []);
|
|
26176
26176
|
}
|
|
26177
26177
|
function A(g) {
|
|
@@ -26242,7 +26242,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26242
26242
|
var B;
|
|
26243
26243
|
if (i0.value) {
|
|
26244
26244
|
if (g.options = [], !((B = g.globalFilter.tileIds) != null && B.length)) {
|
|
26245
|
-
|
|
26245
|
+
O0(g);
|
|
26246
26246
|
return;
|
|
26247
26247
|
}
|
|
26248
26248
|
if (!(!g.type && (g.type = i(g.globalFilter), !g.type))) {
|
|
@@ -26273,10 +26273,10 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26273
26273
|
return ((_0 = q0.cells) == null ? void 0 : _0[0]) ?? " ";
|
|
26274
26274
|
}));
|
|
26275
26275
|
}
|
|
26276
|
-
const
|
|
26276
|
+
const w = Array.from(new Set(N)), J = c0(g), X = g.keepSelection ? Array.from(/* @__PURE__ */ new Set([...w, ...J])) : w, Y = new Set(N), z0 = new Set(w);
|
|
26277
26277
|
g.options = Ru(X, {
|
|
26278
26278
|
unknownLabel: b0.value,
|
|
26279
|
-
getAvailable: (d0) => g.keepSelection ?
|
|
26279
|
+
getAvailable: (d0) => g.keepSelection ? Y.has(d0) : z0.has(d0)
|
|
26280
26280
|
}), D0(g);
|
|
26281
26281
|
} catch (I) {
|
|
26282
26282
|
if ((I == null ? void 0 : I.code) === "ERR_CANCELED" || (I == null ? void 0 : I.name) === "CanceledError")
|
|
@@ -26292,7 +26292,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26292
26292
|
break;
|
|
26293
26293
|
}
|
|
26294
26294
|
case c1.Timestamp:
|
|
26295
|
-
if (g.globalFilter.option !==
|
|
26295
|
+
if (g.globalFilter.option !== v0.DateTime && g.globalFilter.option !== v0.TimeOfDay) {
|
|
26296
26296
|
const I = g.globalFilter.option;
|
|
26297
26297
|
g.options = nt({ dimensionOption: I, t: D }), g.globalFilter.values = g.options.length ? g.options.map((N) => N.value) : ["NULL"];
|
|
26298
26298
|
}
|
|
@@ -26323,7 +26323,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26323
26323
|
var I;
|
|
26324
26324
|
if ((I = g.selectedValues) == null ? void 0 : I.includes(C)) {
|
|
26325
26325
|
const N = (g.selectedValues || []).filter(
|
|
26326
|
-
(
|
|
26326
|
+
(w) => w !== C && w !== Y1
|
|
26327
26327
|
);
|
|
26328
26328
|
g.selectedValues = N.length > 0 ? N : [Y1];
|
|
26329
26329
|
} else
|
|
@@ -26336,7 +26336,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26336
26336
|
if (C === null)
|
|
26337
26337
|
g.values = [];
|
|
26338
26338
|
else {
|
|
26339
|
-
const I =
|
|
26339
|
+
const I = w0(C.startDate).tz(v.value).startOf("day").utc().toISOString(), N = w0(C.endDate).tz(v.value).endOf("day").utc().toISOString();
|
|
26340
26340
|
g.values = [I, N];
|
|
26341
26341
|
}
|
|
26342
26342
|
const B = l0.value.find((I) => I.globalFilter === g);
|
|
@@ -26352,26 +26352,26 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26352
26352
|
return `${D("report.section.filter.search")}`;
|
|
26353
26353
|
}
|
|
26354
26354
|
function z(g) {
|
|
26355
|
-
var J, X,
|
|
26355
|
+
var J, X, Y, z0, d0;
|
|
26356
26356
|
const C = r0(g.globalFilter), B = g.options.length > 0 ? "(0 selected)" : "";
|
|
26357
26357
|
if (g.type === c1.Timestamp && !O(g.globalFilter)) {
|
|
26358
26358
|
const k = ((J = g.globalFilter.values) == null ? void 0 : J.length) === 2;
|
|
26359
|
-
if (g.globalFilter.option ===
|
|
26359
|
+
if (g.globalFilter.option === v0.DateTime)
|
|
26360
26360
|
return { preview: k ? `${C} is between ${$n({
|
|
26361
26361
|
startDate: ((X = g.globalFilter.values) == null ? void 0 : X[0]) || null,
|
|
26362
|
-
endDate: ((
|
|
26362
|
+
endDate: ((Y = g.globalFilter.values) == null ? void 0 : Y[1]) || null,
|
|
26363
26363
|
locale: $.value,
|
|
26364
|
-
timezone:
|
|
26364
|
+
timezone: v.value
|
|
26365
26365
|
})}` : C, suffix: "" };
|
|
26366
|
-
if (g.globalFilter.option ===
|
|
26367
|
-
const q0 = (
|
|
26366
|
+
if (g.globalFilter.option === v0.TimeOfDay) {
|
|
26367
|
+
const q0 = (z0 = g.globalFilter.values) != null && z0[0] ? w0(g.globalFilter.values[0]).tz(v.value) : null, _0 = (d0 = g.globalFilter.values) != null && d0[1] ? w0(g.globalFilter.values[1]).tz(v.value) : null, E0 = (S0) => S0 && S0.isValid() ? { hour: S0.hour(), minute: S0.minute() } : null;
|
|
26368
26368
|
return { preview: k ? `${C} is between ${sr({
|
|
26369
26369
|
startTime: E0(q0),
|
|
26370
26370
|
endTime: E0(_0),
|
|
26371
26371
|
locale: $.value
|
|
26372
26372
|
})}` : C, suffix: "" };
|
|
26373
26373
|
}
|
|
26374
|
-
if (g.globalFilter.option !==
|
|
26374
|
+
if (g.globalFilter.option !== v0.DateTime && g.globalFilter.option !== v0.TimeOfDay) {
|
|
26375
26375
|
const q0 = nt({
|
|
26376
26376
|
dimensionOption: g.globalFilter.option,
|
|
26377
26377
|
t: D
|
|
@@ -26382,9 +26382,9 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26382
26382
|
} : { preview: C, suffix: B };
|
|
26383
26383
|
}
|
|
26384
26384
|
}
|
|
26385
|
-
const N = f0(g.selectedValues || []).map((k) => k === !0 ? D("report.common.yes") || "Yes" : k === !1 ? D("report.common.no") || "No" : String(k).trim() === "" ? b0.value : String(k)),
|
|
26385
|
+
const N = f0(g.selectedValues || []).map((k) => k === !0 ? D("report.common.yes") || "Yes" : k === !1 ? D("report.common.no") || "No" : String(k).trim() === "" ? b0.value : String(k)), w = N.map((k) => k.length > 20 ? `${k.slice(0, 20)}…` : k).join(", ");
|
|
26386
26386
|
return N.length ? {
|
|
26387
|
-
preview: `${C}: ${
|
|
26387
|
+
preview: `${C}: ${w}`,
|
|
26388
26388
|
suffix: `(${N.length} selected)`
|
|
26389
26389
|
} : { preview: C, suffix: B };
|
|
26390
26390
|
}
|
|
@@ -26404,7 +26404,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26404
26404
|
});
|
|
26405
26405
|
}
|
|
26406
26406
|
function h(g) {
|
|
26407
|
-
g.keepSelection = !g.keepSelection,
|
|
26407
|
+
g.keepSelection = !g.keepSelection, Q(g.keepSelection), U(g.globalFilter, u0.value, {
|
|
26408
26408
|
keepSelection: g.keepSelection
|
|
26409
26409
|
}), o(g);
|
|
26410
26410
|
}
|
|
@@ -26412,12 +26412,12 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26412
26412
|
return g ? g.length > C ? `${g.slice(0, C)}…` : g : b0.value;
|
|
26413
26413
|
}
|
|
26414
26414
|
function R(g, C) {
|
|
26415
|
-
var I, N,
|
|
26415
|
+
var I, N, w, J;
|
|
26416
26416
|
if (C === null)
|
|
26417
26417
|
g.values = [];
|
|
26418
26418
|
else {
|
|
26419
|
-
const X =
|
|
26420
|
-
g.values = [X,
|
|
26419
|
+
const X = w0().tz(v.value).set("hour", Number((I = C.start) == null ? void 0 : I.hour)).set("minute", Number((N = C.start) == null ? void 0 : N.minute)).toISOString(), Y = w0().tz(v.value).set("hour", Number((w = C.end) == null ? void 0 : w.hour)).set("minute", Number((J = C.end) == null ? void 0 : J.minute)).toISOString();
|
|
26420
|
+
g.values = [X, Y];
|
|
26421
26421
|
}
|
|
26422
26422
|
const B = l0.value.find((X) => X.globalFilter === g);
|
|
26423
26423
|
B && (B.keepSelection = C !== null, U(B.globalFilter, u0.value, {
|
|
@@ -26425,14 +26425,14 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26425
26425
|
}));
|
|
26426
26426
|
}
|
|
26427
26427
|
return (g, C) => {
|
|
26428
|
-
const B = G0("FmCircularProgress"), I = G0("FmTextField"), N = G0("FmMenuItem"),
|
|
26428
|
+
const B = G0("FmCircularProgress"), I = G0("FmTextField"), N = G0("FmMenuItem"), w = G0("FmTooltip"), J = G0("FmIcon"), X = G0("FmMenuDivider"), Y = G0("FmSwitch"), z0 = G0("FmButton"), d0 = G0("FmMenu");
|
|
26429
26429
|
return Y0(), l1("div", bl, [
|
|
26430
26430
|
(Y0(!0), l1(G1, null, ot(l0.value, (k, q0) => {
|
|
26431
26431
|
var _0, E0, y0, S0, R0, j0;
|
|
26432
26432
|
return Y0(), l1("div", {
|
|
26433
26433
|
key: k.id
|
|
26434
26434
|
}, [
|
|
26435
|
-
k.globalFilter.option === L0(
|
|
26435
|
+
k.globalFilter.option === L0(v0).DateTime && !O(k.globalFilter) ? (Y0(), m1(fn, {
|
|
26436
26436
|
key: 0,
|
|
26437
26437
|
"model-value": {
|
|
26438
26438
|
startDate: (_0 = k.globalFilter.values) == null ? void 0 : _0[0],
|
|
@@ -26443,7 +26443,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26443
26443
|
removable: ((y0 = k.globalFilter.values) == null ? void 0 : y0.length) === 2,
|
|
26444
26444
|
onUpdate: (I0) => M(k.globalFilter, I0),
|
|
26445
26445
|
onChipClosed: () => M(k.globalFilter, null)
|
|
26446
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : k.globalFilter.option === L0(
|
|
26446
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : k.globalFilter.option === L0(v0).TimeOfDay && !O(k.globalFilter) ? (Y0(), m1(cl, {
|
|
26447
26447
|
key: 1,
|
|
26448
26448
|
"model-value": {
|
|
26449
26449
|
start: (S0 = k.globalFilter.values) == null ? void 0 : S0[0],
|
|
@@ -26509,7 +26509,7 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26509
26509
|
(Y0(!0), l1(G1, null, ot(F.value[q0], (X0) => (Y0(), l1(G1, {
|
|
26510
26510
|
key: X0.value
|
|
26511
26511
|
}, [
|
|
26512
|
-
X0.label && X0.label.length > 110 ? (Y0(), m1(
|
|
26512
|
+
X0.label && X0.label.length > 110 ? (Y0(), m1(w, {
|
|
26513
26513
|
key: 0,
|
|
26514
26514
|
placement: "right",
|
|
26515
26515
|
"hide-arrow": !0,
|
|
@@ -26566,13 +26566,13 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26566
26566
|
k.showAdvanced ? (Y0(), l1("div", yl, [
|
|
26567
26567
|
H0("div", ml, [
|
|
26568
26568
|
H0("div", ql, [
|
|
26569
|
-
x0(
|
|
26569
|
+
x0(Y, {
|
|
26570
26570
|
"model-value": k.keepSelection,
|
|
26571
26571
|
label: L0(D)("report.section.filter.keepSelection"),
|
|
26572
26572
|
labelPlacement: "right",
|
|
26573
26573
|
"onUpdate:modelValue": () => h(k)
|
|
26574
26574
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
26575
|
-
x0(
|
|
26575
|
+
x0(w, {
|
|
26576
26576
|
placement: "top",
|
|
26577
26577
|
"z-index": 2e3
|
|
26578
26578
|
}, {
|
|
@@ -26592,12 +26592,12 @@ const bl = { class: "flex flex-row flex-wrap gap-2" }, _l = { class: "inline-fle
|
|
|
26592
26592
|
])
|
|
26593
26593
|
])) : he("", !0),
|
|
26594
26594
|
H0("div", hl, [
|
|
26595
|
-
x0(
|
|
26595
|
+
x0(z0, {
|
|
26596
26596
|
variant: "tertiary",
|
|
26597
26597
|
label: L0(D)("report.common.cancel"),
|
|
26598
26598
|
onClick: Ve((X0) => y(k), ["stop"])
|
|
26599
26599
|
}, null, 8, ["label", "onClick"]),
|
|
26600
|
-
x0(
|
|
26600
|
+
x0(z0, {
|
|
26601
26601
|
color: "primary",
|
|
26602
26602
|
onClick: Ve((X0) => f(k), ["stop"]),
|
|
26603
26603
|
label: L0(D)("report.common.apply")
|
|
@@ -26644,12 +26644,12 @@ export {
|
|
|
26644
26644
|
cl as _,
|
|
26645
26645
|
ln as a,
|
|
26646
26646
|
t2 as b,
|
|
26647
|
-
|
|
26647
|
+
v0 as c,
|
|
26648
26648
|
Vu as d,
|
|
26649
26649
|
Xl as e,
|
|
26650
26650
|
Hl as f,
|
|
26651
26651
|
Kl as g,
|
|
26652
|
-
|
|
26652
|
+
vl as h,
|
|
26653
26653
|
Pl as i,
|
|
26654
26654
|
F1 as j,
|
|
26655
26655
|
J1 as k,
|
|
@@ -26657,7 +26657,7 @@ export {
|
|
|
26657
26657
|
ju as m,
|
|
26658
26658
|
Ku as n,
|
|
26659
26659
|
kl as o,
|
|
26660
|
-
|
|
26660
|
+
wl as p,
|
|
26661
26661
|
jl as q,
|
|
26662
26662
|
Jl as r,
|
|
26663
26663
|
Nl as s,
|