@feedmepos/mf-report 5.27.43 → 5.27.44

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.
Files changed (26) hide show
  1. package/dist/{App-B9MK4itI.js → App-B-0VHXM1.js} +4 -4
  2. package/dist/{DateRangeSelect-BiUJhusu.js → DateRangeSelect-CGnROjSA.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dc4A0TR6.js → Default.vue_vue_type_script_setup_true_lang-B0E17Ovn.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-OfLQLoGN.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DeajLQvr.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-XNBAx3y7.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqKnPfjr.js} +979 -975
  6. package/dist/{InsightView-CvL0ImuM.js → InsightView-DLi1JKj-.js} +4 -4
  7. package/dist/{Integration-UEm-6GRR.js → Integration-DcpEli4G.js} +3 -3
  8. package/dist/{Integrations-CkZCU8V4.js → Integrations-FqE3NGWW.js} +2 -2
  9. package/dist/{Layout-BTgmodvP.js → Layout-B3w9ncrY.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-jd8QMhm_.js → MenuTab.vue_vue_type_script_setup_true_lang-DEZ9szG8.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DytlZDrY.js → NavigationTab.vue_vue_type_script_setup_true_lang-hq2_fG5m.js} +3 -3
  12. package/dist/{OverviewView-B2IPMxjG.js → OverviewView-C2q5HVfG.js} +4 -4
  13. package/dist/{Report-DP50hDux.js → Report-CpD-PQMF.js} +3 -3
  14. package/dist/{ReportEditor-DFpD7aii.js → ReportEditor-DY8bRLmi.js} +6 -6
  15. package/dist/{ReportView-CX3ME0lO.js → ReportView-kvAnnQQX.js} +6 -6
  16. package/dist/{Setting-Dx1els_S.js → Setting-DIfsQKq7.js} +3 -3
  17. package/dist/{Template-gzZCGWsF.js → Template-C-whg_Qs.js} +3 -3
  18. package/dist/{TileEditor-xx2-R0VR.js → TileEditor-MvSW8uIv.js} +1176 -1184
  19. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CqKoz0AF.js → TilePageStack.vue_vue_type_script_setup_true_lang-cNbphYz8.js} +2 -2
  20. package/dist/{TransitionFade-D0xq5-sR.js → TransitionFade-DqK-1YJF.js} +4 -4
  21. package/dist/{app-DMG_qnyd.js → app-Dpk_iYcH.js} +500 -497
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-D54YtSfh.js → formatChartData.worker-NxArcyZE.js} +2 -2
  24. package/dist/assets/{processTableData.worker-Bz62a8-o.js → processTableData.worker-typkqQfh.js} +2 -2
  25. package/dist/{useRestaurantPermission-yP74i3ml.js → useRestaurantPermission-B5HIst3o.js} +1 -1
  26. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ref as R0, computed as c1, watch as V1, defineComponent as Gt, mergeModels as it, useModel as It, resolveComponent as o1, createElementBlock as h1, openBlock as r1, createVNode as U0, withCtx as d1, createElementVNode as j0, createCommentVNode as Ft, Fragment as _e, renderList as Bt, createBlock as v1, createTextVNode as st, withDirectives as qa, toDisplayString as S1, unref as E0, vShow as ga, renderSlot as Vr, normalizeStyle as ha, normalizeClass as Wr, withModifiers as ht } from "vue";
2
- import { c as Lr, f as jr, _ as Kr, D as Sa, h as Ta } from "./DateRangeSelect-BiUJhusu.js";
3
- import { x as Ea, p as Ra, u as G0, F as Q0, r as e1, y as Ca, a as le, b as Wa, v as La, h as Zr, d as B0, c as Be, o as Qt, g as Ia } from "./app-DMG_qnyd.js";
2
+ import { c as Lr, f as jr, _ as Kr, D as Sa, h as Ta } from "./DateRangeSelect-CGnROjSA.js";
3
+ import { x as Ea, p as Ra, u as G0, F as Q0, r as e1, y as Ca, a as le, b as Wa, v as La, h as Zr, d as B0, c as Be, o as Qt, g as Ia } from "./app-Dpk_iYcH.js";
4
4
  import { storeToRefs as C0, defineStore as Ne } from "pinia";
5
5
  import { useSnackbar as en } from "@feedmepos/ui-library";
6
6
  import { u as tn } from "./_plugin-vue_export-helper-kkiiQoKl.js";
@@ -37,8 +37,8 @@ var nn = {};
37
37
  function T() {
38
38
  try {
39
39
  throw new Error();
40
- } catch (t0) {
41
- var v = t0.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), N = null;
40
+ } catch (r0) {
41
+ var v = r0.stack, P = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), N = null;
42
42
  do {
43
43
  var k = P.exec(v);
44
44
  k != null && (N = k);
@@ -107,17 +107,17 @@ var nn = {};
107
107
  W(r.prototype, n), r.prototype = n;
108
108
  }
109
109
  }
110
- function t0(r, e) {
110
+ function r0(r, e) {
111
111
  for (var n = 0; n < e.length; n++)
112
112
  k(e[n], r);
113
113
  }
114
- function p0(r, e) {
114
+ function d0(r, e) {
115
115
  P(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
- function s0(r, e) {
117
+ function u0(r, e) {
118
118
  v(e.prototype, r.prototype), r.prototype.constructor = r;
119
119
  }
120
- function n0(r, e, n, a) {
120
+ function K(r, e, n, a) {
121
121
  var o = r;
122
122
  r[e] = o, r[n] = function() {
123
123
  r[n] = function() {
@@ -134,7 +134,7 @@ var nn = {};
134
134
  return s;
135
135
  };
136
136
  }
137
- function H(r, e, n, a) {
137
+ function X(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() {
@@ -155,13 +155,13 @@ var nn = {};
155
155
  }, u;
156
156
  };
157
157
  }
158
- function K(r) {
158
+ function Z(r) {
159
159
  return r.immutable$list = Array, r.fixed$length = Array, r;
160
160
  }
161
- function Z(r) {
161
+ function e0(r) {
162
162
  return r;
163
163
  }
164
- function c0(r) {
164
+ function M0(r) {
165
165
  for (var e = 0; e < r.length; ++e)
166
166
  r[e];
167
167
  }
@@ -173,18 +173,18 @@ var nn = {};
173
173
  return n === null && (n = t.closureFromTearOff(e)), new n(this, null);
174
174
  };
175
175
  }
176
- function u0(r) {
176
+ function i0(r) {
177
177
  var e = null;
178
178
  return function() {
179
179
  return e === null && (e = t.closureFromTearOff(r).prototype), e;
180
180
  };
181
181
  }
182
- var r0 = 0;
182
+ var n0 = 0;
183
183
  function o0(r, e, n, a, o, s, u, p, M, _) {
184
- return typeof p == "number" && (p += r0), { co: r, iS: e, iI: n, rC: a, dV: o, cs: s, fs: u, fT: p, aI: M || 0, nDA: _ };
184
+ return typeof p == "number" && (p += n0), { co: r, iS: e, iI: n, rC: a, dV: o, cs: s, fs: u, fT: p, aI: M || 0, nDA: _ };
185
185
  }
186
- function f0(r, e, n, a, o, s, u, p) {
187
- var M = o0(r, !0, !1, n, a, o, s, u, p, !1), _ = u0(M);
186
+ function $0(r, e, n, a, o, s, u, p) {
187
+ var M = o0(r, !0, !1, n, a, o, s, u, p, !1), _ = i0(M);
188
188
  r[e] = _;
189
189
  }
190
190
  function z0(r, e, n, a, o, s, u, p, M, _) {
@@ -192,7 +192,7 @@ var nn = {};
192
192
  var d = o0(r, !1, n, a, o, s, u, p, M, !!_), z = a0(n, d);
193
193
  r[e] = z;
194
194
  }
195
- function d0(r) {
195
+ function b0(r) {
196
196
  var e = L.interceptorsByTag;
197
197
  if (!e) {
198
198
  L.interceptorsByTag = r;
@@ -200,7 +200,7 @@ var nn = {};
200
200
  }
201
201
  W(r, e);
202
202
  }
203
- function e0(r) {
203
+ function t0(r) {
204
204
  var e = L.leafTags;
205
205
  if (!e) {
206
206
  L.leafTags = r;
@@ -208,24 +208,24 @@ var nn = {};
208
208
  }
209
209
  W(r, e);
210
210
  }
211
- function O0(r) {
211
+ function A0(r) {
212
212
  var e = L.types, n = e.length;
213
213
  return e.push.apply(e, r), n;
214
214
  }
215
215
  function y0(r, e) {
216
216
  return W(e, r), r;
217
217
  }
218
- var _0 = function() {
218
+ var p0 = function() {
219
219
  var r = function(n, a, o, s, u) {
220
220
  return function(p, M, _, d) {
221
221
  return z0(p, M, n, a, o, s, [_], d, u, !1);
222
222
  };
223
223
  }, e = function(n, a, o, s) {
224
224
  return function(u, p, M, _) {
225
- return f0(u, p, n, a, o, [M], _, s);
225
+ return $0(u, p, n, a, o, [M], _, s);
226
226
  };
227
227
  };
228
- return { inherit: k, inheritMany: t0, mixin: p0, mixinHard: s0, installStaticTearOff: f0, installInstanceTearOff: z0, _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: K, lazy: H, lazyFinal: U, lazyOld: n0, updateHolder: y0, convertToFastObject: Z, updateTypes: O0, setOrUpdateInterceptorsByTag: d0, setOrUpdateLeafTags: e0 };
228
+ return { inherit: k, inheritMany: r0, mixin: d0, mixinHard: u0, installStaticTearOff: $0, installInstanceTearOff: z0, _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: Z, lazy: X, lazyFinal: U, lazyOld: K, updateHolder: y0, convertToFastObject: e0, updateTypes: A0, setOrUpdateInterceptorsByTag: b0, setOrUpdateLeafTags: t0 };
229
229
  }(), t = {
230
230
  JS_CONST: function() {
231
231
  },
@@ -272,8 +272,8 @@ var nn = {};
272
272
  }
273
273
  },
274
274
  Sort__dualPivotQuicksort(r, e, n, a) {
275
- var o, s, u, p, M, _, d, z, f, y, q = l.JSInt_methods._tdivFast$1(n - e + 1, 6), g = e + q, E = n - q, R = l.JSInt_methods._tdivFast$1(e + n, 2), I = R - q, B = R + q, w = i.getInterceptor$asx(r), F = w.$index(r, g), J = w.$index(r, I), X = w.$index(r, R), Y = w.$index(r, B), V = w.$index(r, E);
276
- if (a.call$2(F, J) > 0 && (o = J, J = F, F = o), a.call$2(Y, V) > 0 && (o = V, V = Y, Y = o), a.call$2(F, X) > 0 && (o = X, X = F, F = o), a.call$2(J, X) > 0 && (o = X, X = J, J = o), a.call$2(F, Y) > 0 && (o = Y, Y = F, F = o), a.call$2(X, Y) > 0 && (o = Y, Y = X, X = o), a.call$2(J, V) > 0 && (o = V, V = J, J = o), a.call$2(J, X) > 0 && (o = X, X = J, J = o), a.call$2(Y, V) > 0 && (o = V, V = Y, Y = o), w.$indexSet(r, g, F), w.$indexSet(r, R, X), w.$indexSet(r, E, V), w.$indexSet(r, I, w.$index(r, e)), w.$indexSet(r, B, w.$index(r, n)), s = e + 1, u = n - 1, i.$eq$(a.call$2(J, Y), 0)) {
275
+ var o, s, u, p, M, _, d, z, f, y, q = l.JSInt_methods._tdivFast$1(n - e + 1, 6), g = e + q, E = n - q, R = l.JSInt_methods._tdivFast$1(e + n, 2), I = R - q, B = R + q, w = i.getInterceptor$asx(r), F = w.$index(r, g), J = w.$index(r, I), H = w.$index(r, R), Y = w.$index(r, B), V = w.$index(r, E);
276
+ if (a.call$2(F, J) > 0 && (o = J, J = F, F = o), a.call$2(Y, V) > 0 && (o = V, V = Y, Y = o), a.call$2(F, H) > 0 && (o = H, H = F, F = o), a.call$2(J, H) > 0 && (o = H, H = J, J = o), a.call$2(F, Y) > 0 && (o = Y, Y = F, F = o), a.call$2(H, Y) > 0 && (o = Y, Y = H, H = o), a.call$2(J, V) > 0 && (o = V, V = J, J = o), a.call$2(J, H) > 0 && (o = H, H = J, J = o), a.call$2(Y, V) > 0 && (o = V, V = Y, Y = o), w.$indexSet(r, g, F), w.$indexSet(r, R, H), w.$indexSet(r, E, V), w.$indexSet(r, I, w.$index(r, e)), w.$indexSet(r, B, w.$index(r, n)), s = e + 1, u = n - 1, i.$eq$(a.call$2(J, Y), 0)) {
277
277
  for (p = s; p <= u; ++p)
278
278
  if (M = w.$index(r, p), _ = a.call$2(M, J), _ !== 0)
279
279
  if (_ < 0)
@@ -700,8 +700,8 @@ var nn = {};
700
700
  var e, n, a, o, s, u, p, M, _, d, z = r.co, f = r.iS, y = r.iI, q = r.nDA, g = r.aI, E = r.fs, R = r.cs, I = E[0], B = R[0], w = z[I], F = r.fT;
701
701
  for (F.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(X, Y) {
704
- this.$initialize(X, Y);
703
+ } : n = function(H, Y) {
704
+ this.$initialize(H, Y);
705
705
  }, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = w, a = !f, a ? o = t.Closure_forwardCallTo(I, w, y, q) : (e.$static_name = I, o = w), e.$signature = t.Closure__computeSignatureFunctionNewRti(F, f, y), e[B] = o, s = o, u = 1; u < E.length; ++u)
706
706
  p = E[u], typeof p == "string" ? (M = z[p], _ = p, p = M) : _ = "", d = R[u], d != null && (a && (p = t.Closure_forwardCallTo(_, p, y, q)), e[d] = p), u === g && (s = p);
707
707
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
@@ -1432,7 +1432,7 @@ var nn = {};
1432
1432
  return s + "})";
1433
1433
  },
1434
1434
  _functionRtiToString(r, e, n) {
1435
- var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y = ", ";
1435
+ var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y = ", ";
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 nn = {};
1441
1441
  _ += ">";
1442
1442
  } else
1443
1443
  _ = "", o = null;
1444
- for (p = r._primary, q = r._rest, g = q._requiredPositional, E = g.length, R = q._optionalPositional, I = R.length, B = q._named, w = B.length, F = t._rtiToString(p, e), J = "", X = "", u = 0; u < E; ++u, X = Y)
1445
- J += X + t._rtiToString(g[u], e);
1444
+ for (p = r._primary, q = r._rest, g = q._requiredPositional, E = g.length, R = q._optionalPositional, I = R.length, B = q._named, w = B.length, F = t._rtiToString(p, e), J = "", H = "", u = 0; u < E; ++u, H = Y)
1445
+ J += H + t._rtiToString(g[u], e);
1446
1446
  if (I > 0) {
1447
- for (J += X + "[", X = "", u = 0; u < I; ++u, X = Y)
1448
- J += X + t._rtiToString(R[u], e);
1447
+ for (J += H + "[", H = "", u = 0; u < I; ++u, H = Y)
1448
+ J += H + t._rtiToString(R[u], e);
1449
1449
  J += "]";
1450
1450
  }
1451
1451
  if (w > 0) {
1452
- for (J += X + "{", X = "", u = 0; u < w; u += 3, X = Y)
1453
- J += X, B[u + 1] && (J += "required "), J += t._rtiToString(B[u + 2], e) + " " + B[u];
1452
+ for (J += H + "{", H = "", u = 0; u < w; u += 3, H = Y)
1453
+ J += H, B[u + 1] && (J += "required "), J += t._rtiToString(B[u + 2], e) + " " + B[u];
1454
1454
  J += "}";
1455
1455
  }
1456
1456
  return o != null && (e.toString, e.length = o), _ + "(" + J + ") => " + F;
@@ -1811,7 +1811,7 @@ var nn = {};
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, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V, $0;
1814
+ var s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V, f0;
1815
1815
  if (!t._isSubtype(r, e._primary, n, a._primary, o) || (s = e._rest, u = a._rest, p = s._requiredPositional, M = u._requiredPositional, _ = p.length, d = M.length, _ > d) || (z = d - _, f = s._optionalPositional, y = u._optionalPositional, q = f.length, g = y.length, _ + q < d + g))
1816
1816
  return !1;
1817
1817
  for (E = 0; E < _; ++E)
@@ -1823,16 +1823,16 @@ var nn = {};
1823
1823
  for (E = 0; E < g; ++E)
1824
1824
  if (R = f[z + E], !t._isSubtype(r, y[E], o, R, n))
1825
1825
  return !1;
1826
- for (I = s._named, B = u._named, w = I.length, F = B.length, J = 0, X = 0; X < F; X += 3)
1827
- for (Y = B[X]; ; ) {
1826
+ for (I = s._named, B = u._named, w = I.length, F = B.length, J = 0, H = 0; H < F; H += 3)
1827
+ for (Y = B[H]; ; ) {
1828
1828
  if (J >= w || (V = I[J], J += 3, Y < V))
1829
1829
  return !1;
1830
- if ($0 = I[J - 2], V < Y) {
1831
- if ($0)
1830
+ if (f0 = I[J - 2], V < Y) {
1831
+ if (f0)
1832
1832
  return !1;
1833
1833
  continue;
1834
1834
  }
1835
- if (R = B[X + 1], $0 && !R || (R = I[J - 1], !t._isSubtype(r, B[X + 2], o, R, n)))
1835
+ if (R = B[H + 1], f0 && !R || (R = I[J - 1], !t._isSubtype(r, B[H + 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, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V) {
2983
- return new t.Schema(B, g, s, q, V, Y, f, y, d, z, M, F, J, o, R, E, w, X, a, p, u, _, e, r, n, I);
2982
+ Schema$(r, e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V) {
2983
+ return new t.Schema(B, g, s, q, V, Y, f, y, d, z, M, F, J, o, R, E, w, H, a, p, u, _, e, r, n, I);
2984
2984
  },
2985
- Schema_Schema$build(r, e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V) {
2986
- var $0 = s.call$1(B), M0 = q.call$1(B);
2987
- return t.Schema$(r, e, n, a, o, $0, u, p, M ?? 300, _, d, z, f, y, M0, g, E, R, I, B, w, F, J, X, Y, V);
2985
+ Schema_Schema$build(r, e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V) {
2986
+ var f0 = s.call$1(B), c0 = q.call$1(B);
2987
+ return t.Schema$(r, e, n, a, o, f0, u, p, M ?? 300, _, d, z, f, y, c0, g, E, R, I, B, w, F, J, H, Y, V);
2988
2988
  },
2989
2989
  Schema_fromJson(r) {
2990
- var e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F = null, J = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), X = r.$index(0, "label"), Y = t.EnumByName_byName(l.List_AmO, r.$index(0, "name")), V = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), $0 = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), M0 = r.$index(0, "source"), t1 = t.EnumByName_byName(l.List_ytA, M0.$index(0, "type")), n1 = M0.$index(0, "table"), i1 = M0.$index(0, "field"), p1 = M0.$index(0, "dataset"), Y0 = O.nullable_List_dynamic, s1 = Y0._as(M0.$index(0, "uniqueKey"));
2991
- return s1 = s1 == null ? F : i.cast$1$0$ax(s1, O.String), e = M0.$index(0, "timeColumn"), M0 = Y0._as(M0.$index(0, "dateColumns")), M0 = M0 == null ? F : i.cast$1$0$ax(M0, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), o = r.$index(0, "dynamicRawTable"), s = r.$index(0, "materializedTableName"), u = r.$index(0, "materializedPostgresqlTableName"), p = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), _ = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), z = r.$index(0, "partition"), f = r.$index(0, "requirePartitionFilter"), f == null && (f = !0), y = r.$index(0, "clusters"), y == null && (y = t._setArrayType([], O.JSArray_String)), q = r.$index(0, "indexes"), q = q == null ? F : i.map$1$ax(q, new t.Schema_fromJson_closure1()), q == null && (q = t._setArrayType([], O.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? F : i.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], O.JSArray_QueryRequestFilter)), E = r.$index(0, "isGlobal"), E == null && (E = !1), R = r.$index(0, "isAiHidden"), R == null && (R = !1), Y0 = Y0._as(r.$index(0, "aiKeywords")), Y0 = Y0 == null ? F : i.cast$1$0$ax(Y0, O.String), Y0 == null && (Y0 = t._setArrayType([], O.JSArray_String)), I = r.$index(0, "aiCategory"), B = r.$index(0, "aiPriority"), B == null && (B = 3), w = r.$index(0, "mergeFilterType"), t.Schema$(I, Y0, B, y, o, J, g, q, d, R, _, E, p, M, V, X, u, s, t.EnumByName_byName(l.List_EfK, w ?? "dates"), Y, z, n, a, f, new t.Source(t1, n1, i1, p1, s1, e, M0), $0);
2990
+ var e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F = null, J = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), H = r.$index(0, "label"), Y = t.EnumByName_byName(l.List_AmO, r.$index(0, "name")), V = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), f0 = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), c0 = r.$index(0, "source"), t1 = t.EnumByName_byName(l.List_ytA, c0.$index(0, "type")), n1 = c0.$index(0, "table"), i1 = c0.$index(0, "field"), p1 = c0.$index(0, "dataset"), Y0 = O.nullable_List_dynamic, s1 = Y0._as(c0.$index(0, "uniqueKey"));
2991
+ return s1 = s1 == null ? F : i.cast$1$0$ax(s1, O.String), e = c0.$index(0, "timeColumn"), c0 = Y0._as(c0.$index(0, "dateColumns")), c0 = c0 == null ? F : i.cast$1$0$ax(c0, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), o = r.$index(0, "dynamicRawTable"), s = r.$index(0, "materializedTableName"), u = r.$index(0, "materializedPostgresqlTableName"), p = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), _ = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), z = r.$index(0, "partition"), f = r.$index(0, "requirePartitionFilter"), f == null && (f = !0), y = r.$index(0, "clusters"), y == null && (y = t._setArrayType([], O.JSArray_String)), q = r.$index(0, "indexes"), q = q == null ? F : i.map$1$ax(q, new t.Schema_fromJson_closure1()), q == null && (q = t._setArrayType([], O.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? F : i.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], O.JSArray_QueryRequestFilter)), E = r.$index(0, "isGlobal"), E == null && (E = !1), R = r.$index(0, "isAiHidden"), R == null && (R = !1), Y0 = Y0._as(r.$index(0, "aiKeywords")), Y0 = Y0 == null ? F : i.cast$1$0$ax(Y0, O.String), Y0 == null && (Y0 = t._setArrayType([], O.JSArray_String)), I = r.$index(0, "aiCategory"), B = r.$index(0, "aiPriority"), B == null && (B = 3), w = r.$index(0, "mergeFilterType"), t.Schema$(I, Y0, B, y, o, J, g, q, d, R, _, E, p, M, V, H, u, s, t.EnumByName_byName(l.List_EfK, w ?? "dates"), Y, z, n, a, f, new t.Source(t1, n1, i1, p1, s1, e, c0), f0);
2992
2992
  },
2993
2993
  Field_Field$numeric(r, e, n, a, o, s, u, p, M) {
2994
2994
  return new t._NumericField(s, u, l.DATA_TYPE_3, e, o, p, 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, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V, $0) {
3119
- var M0 = this;
3120
- M0.name = e, M0.label = n, M0.fields = a, M0.joins = o, M0.topLevelFilters = s, M0.source = u, M0.isJoinOnly = p, M0.isMaterializeOnly = M, M0.isContinuousUpdate = _, M0.isGlobal = d, M0.interval = z, M0.rawTableName = f, M0.rawTopicName = y, M0.dynamicRawTable = q, M0.materializedTableName = g, M0.materializedPostgresqlTableName = E, M0.partition = R, M0.requirePartitionFilter = I, M0.clusters = B, M0.indexes = w, M0._materializeTablePrefix = M0._rawTablePrefix = "", M0.filters = F, M0.isAiHidden = J, M0.aiKeywords = X, M0.aiCategory = Y, M0.aiPriority = V, M0.mergeFilterType = $0;
3118
+ Schema: function(e, n, a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V, f0) {
3119
+ var c0 = this;
3120
+ c0.name = e, c0.label = n, c0.fields = a, c0.joins = o, c0.topLevelFilters = s, c0.source = u, c0.isJoinOnly = p, c0.isMaterializeOnly = M, c0.isContinuousUpdate = _, c0.isGlobal = d, c0.interval = z, c0.rawTableName = f, c0.rawTopicName = y, c0.dynamicRawTable = q, c0.materializedTableName = g, c0.materializedPostgresqlTableName = E, c0.partition = R, c0.requirePartitionFilter = I, c0.clusters = B, c0.indexes = w, c0._materializeTablePrefix = c0._rawTablePrefix = "", c0.filters = F, c0.isAiHidden = J, c0.aiKeywords = H, c0.aiCategory = Y, c0.aiPriority = V, c0.mergeFilterType = f0;
3121
3121
  },
3122
3122
  Schema_visualizationSchema_closure: function() {
3123
3123
  },
@@ -8914,8 +8914,8 @@ Arguments: [` + M + "]";
8914
8914
  $signature: 1
8915
8915
  }, t.billSchema_closure.prototype = {
8916
8916
  call$1(r) {
8917
- var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", p = "isDelivery", M = "completedAt", _ = "integratedOrderId", d = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", g = "takeawayPrice", E = "thirdPartyExtraCharge", R = "deliveryFee", I = "nettTotal", B = "deliveryFeeWithTax", w = "deliveryFeeWithoutTax", F = "otherChargeWithTax", J = "otherChargeWithoutTax", X = "discountInclusiveTaxTotal", Y = "customerName", V = "customerPhone", $0 = "customerAddress", M0 = "customerRemark", t1 = "fulfillmentAt";
8918
- 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", C.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) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') 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", p, p, 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", _, _, e, r), t.Field_Field$numeric(e, C.IFNULLi, !0, !1, "Item count", d, d, C.COALESi, r), t.Field_Field$numeric(e, C.IFNULLtax, !1, !1, "Tax", z, z, C.COALEStax_, r), t.Field_Field$numeric(e, C.IFNULLdiT, !1, !1, "Discount", f, f, C.COALESdit, r), t.Field_Field$numeric(e, C.IFNULLg, !1, !1, "Item gross", y, y, C.COALESg, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, C.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", C.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, C.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", C.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, C.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", C.x28COALEo, r), t.Field_Field$numeric(e, C.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, C.x28COALEgx2d, r), t.Field_Field$numeric(e, C.IFNULLtak, !1, !1, "Takeaway", g, g, C.COALEStak, r), t.Field_Field$numeric(e, C.IFNULLth, !1, !1, "Extra charge", E, E, C.COALESth, r), t.Field_Field$numeric(e, C.IFNULLde_, !1, !1, "Delivery fee", R, R, C.COALESdex2c, r), t.Field_Field$numeric(e, C.IFNULLn, !1, !1, "Nett", I, I, C.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, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, C.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, C.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, C.SUM__n, r), t.Field_Field$numeric(e, C.IFNULLdeWT, !1, !1, "Delivery fee with tax", B, B, C.COALESdex5f_, r), t.Field_Field$numeric(e, C.IFNULLdeWo, !1, !1, "Delivery fee without tax", w, w, C.COALESdex5fo, r), t.Field_Field$numeric(e, C.IFNULLoT, !1, !1, "Other charge with tax", F, F, C.COALESo_, r), t.Field_Field$numeric(e, C.IFNULLoo, !1, !1, "Other charge without tax", J, J, C.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, C.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, C.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, C.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, C.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, C.x28selecsta, r), t.Field_Field$numeric(e, C.IFNULLdiI, !1, !1, "Discount inc tax", X, X, C.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", 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(e, e, !1, !1, "Is 60 days recency", "is60DaysRecency", 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 '60 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", Y, Y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer phone", V, V, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer address", $0, $0, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, !1, !1, "Customer remark", M0, M0, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, !1, "Fulfillment time", t1, t1, e, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, r)], O.JSArray_Field);
8917
+ var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", p = "isDelivery", M = "completedAt", _ = "integratedOrderId", d = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", g = "takeawayPrice", E = "thirdPartyExtraCharge", R = "deliveryFee", I = "nettTotal", B = "deliveryFeeWithTax", w = "deliveryFeeWithoutTax", F = "otherChargeWithTax", J = "otherChargeWithoutTax", H = "discountInclusiveTaxTotal", Y = "customerName", V = "customerPhone", f0 = "customerAddress", c0 = "customerRemark", t1 = "fulfillmentAt";
8918
+ 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", C.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) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') 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", p, p, 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", _, _, e, r), t.Field_Field$numeric(e, C.IFNULLi, !0, !1, "Item count", d, d, C.COALESi, r), t.Field_Field$numeric(e, C.IFNULLtax, !1, !1, "Tax", z, z, C.COALEStax_, r), t.Field_Field$numeric(e, C.IFNULLdiT, !1, !1, "Discount", f, f, C.COALESdit, r), t.Field_Field$numeric(e, C.IFNULLg, !1, !1, "Item gross", y, y, C.COALESg, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, C.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", C.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, C.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", C.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, C.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", C.x28COALEo, r), t.Field_Field$numeric(e, C.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, C.x28COALEgx2d, r), t.Field_Field$numeric(e, C.IFNULLtak, !1, !1, "Takeaway", g, g, C.COALEStak, r), t.Field_Field$numeric(e, C.IFNULLth, !1, !1, "Extra charge", E, E, C.COALESth, r), t.Field_Field$numeric(e, C.IFNULLde_, !1, !1, "Delivery fee", R, R, C.COALESdex2c, r), t.Field_Field$numeric(e, C.IFNULLn, !1, !1, "Nett", I, I, C.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, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, C.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, C.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, C.SUM__n, r), t.Field_Field$numeric(e, C.IFNULLdeWT, !1, !1, "Delivery fee with tax", B, B, C.COALESdex5f_, r), t.Field_Field$numeric(e, C.IFNULLdeWo, !1, !1, "Delivery fee without tax", w, w, C.COALESdex5fo, r), t.Field_Field$numeric(e, C.IFNULLoT, !1, !1, "Other charge with tax", F, F, C.COALESo_, r), t.Field_Field$numeric(e, C.IFNULLoo, !1, !1, "Other charge without tax", J, J, C.COALESoo, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, !1, "Duration", "duration", e, C.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, C.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, C.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, C.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, C.x28selecsta, r), t.Field_Field$numeric(e, C.IFNULLdiI, !1, !1, "Discount inc tax", H, H, C.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", 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(e, e, !1, !1, "Is 60 days recency", "is60DaysRecency", 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 '60 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", Y, Y, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer phone", V, V, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Customer address", f0, f0, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, !1, !1, "Customer remark", c0, c0, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, !1, "Fulfillment time", t1, t1, e, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, r)], O.JSArray_Field);
8919
8919
  },
8920
8920
  $signature: 0
8921
8921
  }, t.billSchema_closure0.prototype = {
@@ -9054,8 +9054,8 @@ Arguments: [` + M + "]";
9054
9054
  $signature: 1
9055
9055
  }, t.completeTimeBillSchema_closure.prototype = {
9056
9056
  call$1(r) {
9057
- var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", p = "isDelivery", M = "completedAt", _ = "integratedOrderId", d = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", g = "takeawayPrice", E = "thirdPartyExtraCharge", R = "deliveryFee", I = "nettTotal", B = "deliveryFeeWithTax", w = "deliveryFeeWithoutTax", F = "otherChargeWithTax", J = "otherChargeWithoutTax", X = "discountInclusiveTaxTotal";
9058
- 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", C.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", p, p, 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", C.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", _, _, e, r), t.Field_Field$numeric(e, C.IFNULLi, !0, !1, "Item count", d, d, C.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, C.COALEStax0, r), t.Field_Field$numeric(e, C.IFNULLdiT, !1, !1, "Discount", f, f, C.COALESdit, r), t.Field_Field$numeric(e, C.IFNULLg, !1, !1, "Item gross", y, y, C.COALESg, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, C.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", C.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, C.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", C.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, C.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", C.x28COALEo, r), t.Field_Field$numeric(e, C.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, C.x28COALEgx2d, r), t.Field_Field$numeric(e, C.IFNULLtak, !1, !1, "Takeaway", g, g, C.COALEStak, r), t.Field_Field$numeric(e, C.IFNULLth, !1, !1, "Extra charge", E, E, C.COALESth, r), t.Field_Field$numeric(e, C.IFNULLde_, !1, !1, "Delivery fee", R, R, C.COALESdex2c, r), t.Field_Field$numeric(e, C.IFNULLn, !1, !1, "Nett", I, I, C.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, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, C.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, C.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, C.SUM__n, r), t.Field_Field$numeric(e, C.IFNULLdeWT, !1, !1, "Delivery fee with tax", B, B, C.COALESdex5f_, r), t.Field_Field$numeric(e, C.IFNULLdeWo, !1, !1, "Delivery fee without tax", w, w, C.COALESdex5fo, r), t.Field_Field$numeric(e, C.IFNULLoT, !1, !1, "Other charge with tax", F, F, C.COALESo_, r), t.Field_Field$numeric(e, C.IFNULLoo, !1, !1, "Other charge without tax", J, J, C.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, C.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, C.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, C.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, C.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, C.x28selecsta, r), t.Field_Field$numeric(e, C.IFNULLdiI, !1, !1, "Discount inc tax", X, X, C.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", r)], O.JSArray_Field);
9057
+ var e = null, n = "seqNumber", a = "deliveryName", o = "isRefund", s = "isPickup", u = "isInHouseDelivery", p = "isDelivery", M = "completedAt", _ = "integratedOrderId", d = "itemCount", z = "taxTotal", f = "discountTotal", y = "grossTotal", q = "rounding", g = "takeawayPrice", E = "thirdPartyExtraCharge", R = "deliveryFee", I = "nettTotal", B = "deliveryFeeWithTax", w = "deliveryFeeWithoutTax", F = "otherChargeWithTax", J = "otherChargeWithoutTax", H = "discountInclusiveTaxTotal";
9058
+ 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", C.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", p, p, 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", C.COALESp, r), t.Field_Field$string(e, e, !1, !1, !1, "Integrated order ID", _, _, e, r), t.Field_Field$numeric(e, C.IFNULLi, !0, !1, "Item count", d, d, C.COALESi, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, !1, "Tax", z, z, C.COALEStax0, r), t.Field_Field$numeric(e, C.IFNULLdiT, !1, !1, "Discount", f, f, C.COALESdit, r), t.Field_Field$numeric(e, C.IFNULLg, !1, !1, "Item gross", y, y, C.COALESg, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, !1, "Rounding", q, q, C.COALESr, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, !1, "SST", "sstTotal", "nettTaxes.SST.total", C.COALESss, r), t.Field_Field$string(e, e, !0, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(e, C.IFNULLs, !1, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", C.COALESse, r), t.Field_Field$string(e, e, !0, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(e, C.x28IFNULo, !1, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", C.x28COALEo, r), t.Field_Field$numeric(e, C.x28IFNULgx2d, !1, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, C.x28COALEgx2d, r), t.Field_Field$numeric(e, C.IFNULLtak, !1, !1, "Takeaway", g, g, C.COALEStak, r), t.Field_Field$numeric(e, C.IFNULLth, !1, !1, "Extra charge", E, E, C.COALESth, r), t.Field_Field$numeric(e, C.IFNULLde_, !1, !1, "Delivery fee", R, R, C.COALESdex2c, r), t.Field_Field$numeric(e, C.IFNULLn, !1, !1, "Nett", I, I, C.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, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, e, !1, !1, "Member Recency", "recency", e, C.MIN_EX, r), t.Field_Field$numeric(e, e, !1, !1, "Member frequency", "frequency", e, C.COUNT_, r), t.Field_Field$numeric(e, e, !1, !1, "Member monetary", "monetary", e, C.SUM__n, r), t.Field_Field$numeric(e, C.IFNULLdeWT, !1, !1, "Delivery fee with tax", B, B, C.COALESdex5f_, r), t.Field_Field$numeric(e, C.IFNULLdeWo, !1, !1, "Delivery fee without tax", w, w, C.COALESdex5fo, r), t.Field_Field$numeric(e, C.IFNULLoT, !1, !1, "Other charge with tax", F, F, C.COALESo_, r), t.Field_Field$numeric(e, C.IFNULLoo, !1, !1, "Other charge without tax", J, J, C.COALESoo, r), t.Field_Field$numeric(e, e, !1, !1, "Duration", "duration", e, C.EXTRAC, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant", "restaurantName", e, C.x28selecn, r), t.Field_Field$numeric(e, e, !1, !1, "Labour hour", "labourHour", e, C.x28selecS, r), t.Field_Field$string(e, e, !1, !1, !1, "Payments", "payments", e, C.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, C.x28selecsta, r), t.Field_Field$numeric(e, C.IFNULLdiI, !1, !1, "Discount inc tax", H, H, C.COALESdii, r), t.Field_Field$string(e, e, !1, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", r)], O.JSArray_Field);
9059
9059
  },
9060
9060
  $signature: 0
9061
9061
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -9124,10 +9124,10 @@ Arguments: [` + M + "]";
9124
9124
  $signature: 1
9125
9125
  }, t.flattenItemSchema_closure.prototype = {
9126
9126
  call$1(r) {
9127
- var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", p = "productId", M = "isRefund", _ = "servedAt", d = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", g = "grossTotal", E = "takeawayPrice", R = "nettTotal", I = "layerNettTotal", B = "layerBillAdjustmentTotal", w = "layerItemAdjustmentTotal", F = "layerGrossTotal", J = "layerTakeawayPrice", X = "layerTaxTotal", Y = "layerScTotal", V = "layerOtherChargeTotal", $0 = "customAttributes", M0 = "layerZeroParentId", t1 = "collectedAt", n1 = "subCategories", i1 = "billAdjustmentInclusiveTaxTotal", p1 = "itemAdjustmentInclusiveTaxTotal", Y0 = "layerBillAdjustmentInclusiveTaxTotal", s1 = "layerItemAdjustmentInclusiveTaxTotal", M1 = "billAdjustmentExclusiveTaxTotal", z1 = "itemAdjustmentExclusiveTaxTotal", A1 = "layerBillAdjustmentExclusiveTaxTotal", b1 = "layerItemAdjustmentExclusiveTaxTotal", g1 = "priceGroup", me = "originalPrice";
9127
+ var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", p = "productId", M = "isRefund", _ = "servedAt", d = "isTakeaway", z = "quantity", f = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", g = "grossTotal", E = "takeawayPrice", R = "nettTotal", I = "layerNettTotal", B = "layerBillAdjustmentTotal", w = "layerItemAdjustmentTotal", F = "layerGrossTotal", J = "layerTakeawayPrice", H = "layerTaxTotal", Y = "layerScTotal", V = "layerOtherChargeTotal", f0 = "customAttributes", c0 = "layerZeroParentId", t1 = "collectedAt", n1 = "subCategories", i1 = "billAdjustmentInclusiveTaxTotal", p1 = "itemAdjustmentInclusiveTaxTotal", Y0 = "layerBillAdjustmentInclusiveTaxTotal", s1 = "layerItemAdjustmentInclusiveTaxTotal", M1 = "billAdjustmentExclusiveTaxTotal", z1 = "itemAdjustmentExclusiveTaxTotal", A1 = "layerBillAdjustmentExclusiveTaxTotal", b1 = "layerItemAdjustmentExclusiveTaxTotal", g1 = "priceGroup", me = "originalPrice";
9128
9128
  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)
9129
9129
  `, !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
9130
- `, 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", p, p, 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", _, _, 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", d, d, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, C.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, C.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", C.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", C.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", C.x40other, r), t.Field_Field$numeric(e, C.x40billA, !1, !1, "Bill discount", y, y, C.x40bill_, r), t.Field_Field$numeric(e, C.x40itemA, !1, !1, "Item discount", q, q, C.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", g, g, C.x40gross, r), t.Field_Field$numeric(e, C.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, C.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, C.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, C.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", C.x40addon, r), t.Field_Field$numeric(e, C.IFNULLtax, !1, !1, "Tax", "taxTotal", "tax.total", C.COALEStax_, r), t.Field_Field$numeric(e, C.x28IFNULb, !1, !1, "Discount", "discountTotal", e, C.x28COALEb, r), t.Field_Field$numeric(e, C.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, C.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", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", B, B, "@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", w, w, "@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", F, F, "@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", J, J, "@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", X, X, "@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", Y, Y, "@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", V, V, "@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", $0, $0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", M0, M0, 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", t1, t1, 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", n1, n1, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", i1, i1, "@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", p1, p1, "@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", Y0, Y0, "@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", s1, s1, "@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", M1, M1, "@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", z1, z1, "@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", A1, A1, "@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", b1, b1, "@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), t.Field_Field$string("Special-price tier when a member/promotion PRICE_CHANGE effect set the item price (e.g. vip). Null for normal sales.", e, !1, !1, !1, "Price group", g1, g1, e, r), t.Field_Field$numeric(e, e, !1, !1, "Original price", me, me, e, r), t.Field_Field$numeric(e, e, !1, !1, "Price", "price", "price", e, r), t.Field_Field$numeric("Sold price minus original price, per unit (not multiplied by quantity). Positive means marked up. Non-zero for member/promotion price tiers, open price (original price is 0, so this equals the full price) and manual overrides. Null when either side is unknown.", "@price - @originalPrice", !1, !1, "Price difference", "priceDifference", e, "@price - @original_price", r)], O.JSArray_Field);
9130
+ `, 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", p, p, 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", _, _, 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", d, d, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, C.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", f, f, C.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", C.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", C.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", C.x40other, r), t.Field_Field$numeric(e, C.x40billA, !1, !1, "Bill discount", y, y, C.x40bill_, r), t.Field_Field$numeric(e, C.x40itemA, !1, !1, "Item discount", q, q, C.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", g, g, C.x40gross, r), t.Field_Field$numeric(e, C.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, C.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, C.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, C.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", C.x40addon, r), t.Field_Field$numeric(e, C.IFNULLtax, !1, !1, "Tax", "taxTotal", "tax.total", C.COALEStax_, r), t.Field_Field$numeric(e, C.x28IFNULb, !1, !1, "Discount", "discountTotal", e, C.x28COALEb, r), t.Field_Field$numeric(e, C.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, C.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", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", B, B, "@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", w, w, "@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", F, F, "@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", J, J, "@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", H, H, "@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", Y, Y, "@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", V, V, "@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", f0, f0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", c0, c0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", t1, t1, 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", n1, n1, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", i1, i1, "@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", p1, p1, "@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", Y0, Y0, "@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", s1, s1, "@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", M1, M1, "@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", z1, z1, "@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", A1, A1, "@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", b1, b1, "@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), t.Field_Field$string("Special-price tier when a member/promotion PRICE_CHANGE effect set the item price (e.g. vip). Null for normal sales.", e, !1, !1, !1, "Price group", g1, g1, e, r), t.Field_Field$numeric(e, e, !1, !1, "Original price", me, me, e, r), t.Field_Field$numeric(e, e, !1, !1, "Price", "price", "price", e, r), t.Field_Field$numeric("Sold price minus original price, per unit (not multiplied by quantity). Positive means marked up. Non-zero for member/promotion price tiers, open price (original price is 0, so this equals the full price) and manual overrides. Null when either side is unknown.", "@price - @originalPrice", !1, !1, "Price difference", "priceDifference", e, "@price - @original_price", r)], O.JSArray_Field);
9131
9131
  },
9132
9132
  $signature: 0
9133
9133
  }, t.flattenItemSchema_closure0.prototype = {
@@ -10735,12 +10735,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
10735
10735
  var e = i.LegacyJavaScriptObject.prototype;
10736
10736
  e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
10737
10737
  }(), function() {
10738
- var e = _0._static_2, n = _0._static_1, a = _0._instance_1u, o = _0._instance_0u;
10738
+ var e = p0._static_2, n = p0._static_1, a = p0._instance_1u, o = p0._instance_0u;
10739
10739
  e(i, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 39), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 49), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 49), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 39), n(t, "core_DateTime_parse$closure", "DateTime_parse", 85);
10740
10740
  var s;
10741
10741
  a(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), a(s, "get$setMonth", "setMonth$1", 7), a(s, "get$setDay", "setDay$1", 7), a(s, "get$setDayOfYear", "setDayOfYear$1", 7), a(s, "get$setHour", "setHour$1", 7), a(s, "get$setMinute", "setMinute$1", 7), a(s, "get$setSecond", "setSecond$1", 7), a(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 78), o(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 102), a(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
10742
10742
  }(), function() {
10743
- var e = _0.mixin, n = _0.inherit, a = _0.inheritMany;
10743
+ var e = p0.mixin, n = p0.inherit, a = p0.inheritMany;
10744
10744
  n(t.Object, null), a(t.Object, [t.JS_CONST, i.Interceptor, i.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), a(i.Interceptor, [i.JSBool, i.JSNull, i.JavaScriptObject, i.JSArray, i.JSNumber, i.JSString, t.NativeTypedData]), n(i.LegacyJavaScriptObject, i.JavaScriptObject), a(i.LegacyJavaScriptObject, [i.PlainJavaScriptObject, i.UnknownJavaScriptObject, i.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(i.JSUnmodifiableArray, i.JSArray), a(i.JSNumber, [i.JSInt, i.JSNumNotInt]), a(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), a(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), a(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), a(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), a(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), a(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), a(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), a(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventorySkuBalanceSchema_closure, t.inventorySkuBalanceSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.productPosOverrideV4ItemSchema_closure, t.productPosOverrideV4ItemSchema_closure0, t.promotionSchema_closure, t.promotionSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.purchaseOrderTemplateSchema_closure, t.purchaseOrderTemplateSchema_closure0, t.purchaseOrderTemplateItemSchema_closure, t.purchaseOrderTemplateItemSchema_closure0, t.inventoryV1RecipeSchema_closure, t.inventoryV1RecipeSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.inventoryV1SkuSchema_closure, t.inventoryV1SkuSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.smsCreditTransactionSchema_closure, t.smsCreditTransactionSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.wastageItemSchema_closure, t.wastageItemSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), a(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), a(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), a(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), a(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), a(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), a(t.Codec, [t.Encoding, t.JsonCodec]), a(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), a(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), a(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), a(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), a(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.MERGE_FILTER_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), a(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), a(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), a(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), a(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), a(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), a(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), a(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), a(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
10745
10745
  }();
10746
10746
  var L = {
@@ -10920,7 +10920,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10920
10920
  };
10921
10921
  }();
10922
10922
  (function() {
10923
- var e = _0.makeConstList;
10923
+ var e = p0.makeConstList;
10924
10924
  l.Interceptor_methods = i.Interceptor.prototype, l.JSArray_methods = i.JSArray.prototype, l.JSInt_methods = i.JSInt.prototype, l.JSNumber_methods = i.JSNumber.prototype, l.JSString_methods = i.JSString.prototype, l.JavaScriptFunction_methods = i.JavaScriptFunction.prototype, l.JavaScriptObject_methods = i.JavaScriptObject.prototype, l.NativeUint8List_methods = t.NativeUint8List.prototype, l.PlainJavaScriptObject_methods = i.PlainJavaScriptObject.prototype, l.UnknownJavaScriptObject_methods = i.UnknownJavaScriptObject.prototype, l.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), l.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), l.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), l.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), l.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), l.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), l.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), l.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), l.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), l.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), l.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), l.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), l.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), l.AsciiDecoder_false = new t.AsciiDecoder(!1), l.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), l.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), l.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), l.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), l.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), l.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), l.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), l.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), l.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), l.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), l.C_AsciiCodec = new t.AsciiCodec(), l.C_EmptyIterator = new t.EmptyIterator(), l.C_Endian = new t.Endian(), l.C_Endian0 = new t.Endian(), l.C_JS_CONST = function(a) {
10925
10925
  var o = Object.prototype.toString.call(a);
10926
10926
  return o.substring(8, o.length - 1);
@@ -11022,7 +11022,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
11022
11022
  })(), function() {
11023
11023
  h._JS_INTEROP_INTERCEPTOR_TAG = null, h.Primitives__identityHashCodeProperty = null, h.BoundClosure__receiverFieldNameCache = null, h.BoundClosure__interceptorFieldNameCache = null, h.getTagFunction = null, h.alternateTagFunction = null, h.prototypeForTagFunction = null, h.dispatchRecordsForInstanceTags = null, h.interceptorsForUncacheableTags = null, h.initNativeDispatchFlag = null, h._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), h.cachedDateSymbols = null, h.lastDateSymbolLocale = null, h._defaultLocale = null, h.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(O.String, O.bool), h.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(O.String, t.findType("RegExp")), h.Jiffy____defaultLocale = t._Cell$(), h.VisualizationField__filterDimensionOptions = t._setArrayType([l.DIMENSION_OPTION_5, l.DIMENSION_OPTION_6, l.DIMENSION_OPTION_7, l.DIMENSION_OPTION_8, l.DIMENSION_OPTION_9], O.JSArray_DIMENSION_OPTION), h.VisualizationField__fillGapDimensionOptions = t._setArrayType([l.DIMENSION_OPTION_1, l.DIMENSION_OPTION_2, l.DIMENSION_OPTION_3, l.DIMENSION_OPTION_4, l.DIMENSION_OPTION_6, l.DIMENSION_OPTION_7, l.DIMENSION_OPTION_8, l.DIMENSION_OPTION_9, l.DIMENSION_OPTION_10, l.DIMENSION_OPTION_11], O.JSArray_DIMENSION_OPTION), h.VisualizationField__isNumericAggregations = t._setArrayType([l.AGGREGATION_TYPE_2, l.AGGREGATION_TYPE_3], O.JSArray_AGGREGATION_TYPE), h.___local = t._Cell$();
11024
11024
  }(), function() {
11025
- var e = _0.lazyFinal, n = _0.lazy;
11025
+ var e = p0.lazyFinal, n = p0.lazy;
11026
11026
  e(h, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => t.getIsolateAffinityTag("_$dart_dartClosure")), e(h, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => t.TypeErrorDecoder_extractPattern(t.TypeErrorDecoder_provokeCallErrorOn({
11027
11027
  toString: function() {
11028
11028
  return "$receiver$";
@@ -11059,8 +11059,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
11059
11059
  return a.message;
11060
11060
  }
11061
11061
  }())), e(h, "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(h, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(l.Type_Object_xQ6)), e(h, "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 ? l.C_Endian0 : l.C_Endian), e(h, "_clockKey", "$get$_clockKey", () => new t.Object()), e(h, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", l.List_BC_AD, l.List_6xs, l.List_qpm, l.List_qpm, l.List_cIc, l.List_cIc, l.List_h8w, l.List_h8w, l.List_wMy, l.List_wMy, l.List_gc6, l.List_gc6, l.List_3US, l.List_AM_PM)), n(h, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", h.$get$en_USSymbols())), n(h, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", l.Map_EQ6TW)), e(h, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(h, "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(h, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(h, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(h, "_availableLocales", "$get$_availableLocales", () => {
11062
- var a, o, s = t.EnLocale$(l.StartOfWeek_1), u = t.EnLocale$(l.StartOfWeek_1), p = t.EnLocale$(l.StartOfWeek_1), M = t.EnLocale$(l.StartOfWeek_1), _ = t.EnLocale$(l.StartOfWeek_1), d = t.EnLocale$(l.StartOfWeek_2), z = t.EnLocale$(l.StartOfWeek_2), f = t.EnLocale$(l.StartOfWeek_1), y = t.EnLocale$(l.StartOfWeek_1), q = t.EsLocale$(l.StartOfWeek_2), g = t.EsLocale$(l.StartOfWeek_2), E = t.EsLocale$(l.StartOfWeek_1), R = t.FrLocale$(l.StartOfWeek_2), I = t.FrLocale$(l.StartOfWeek_2), B = t.FrLocale$(l.StartOfWeek_1), w = t.ZhCnLocale$(l.StartOfWeek_1), F = t.ZhCnLocale$(l.StartOfWeek_1), J = t.ZhLocale$(l.StartOfWeek_1), X = t.ZhLocale$(l.StartOfWeek_1), Y = t.DeLocale$(l.StartOfWeek_2), V = t.DeLocale$(l.StartOfWeek_2), $0 = t.DeLocale$(l.StartOfWeek_2), M0 = t.DeLocale$(l.StartOfWeek_2), t1 = t.ItLocale$(l.StartOfWeek_2), n1 = t.ItLocale$(l.StartOfWeek_2), i1 = t.ArLyLocale$(!0, l.StartOfWeek_0), p1 = t.ArLyLocale$(!1, l.StartOfWeek_0), Y0 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_1), s1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_1), M1 = t.ArSaMaDzKwTnLocale$(!0, l.StartOfWeek_1), z1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_0), A1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_0);
11063
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(l.StartOfWeek_2), o = t.PtLocale$(l.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", p, "en_au", M, "en_ca", _, "en_gb", d, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", g, "es_us", E, "fr", R, "fr_ch", I, "fr_ca", B, "zh", w, "zh_cn", F, "zh_hk", J, "zh_tw", X, "de", Y, "de_de", V, "de_at", $0, "de_ch", M0, "it", t1, "it_ch", n1, "ar", i1, "ar_ly", p1, "ar_dz", Y0, "ar_kw", s1, "ar_sa", M1, "ar_ma", z1, "ar_tn", A1, "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"));
11062
+ var a, o, s = t.EnLocale$(l.StartOfWeek_1), u = t.EnLocale$(l.StartOfWeek_1), p = t.EnLocale$(l.StartOfWeek_1), M = t.EnLocale$(l.StartOfWeek_1), _ = t.EnLocale$(l.StartOfWeek_1), d = t.EnLocale$(l.StartOfWeek_2), z = t.EnLocale$(l.StartOfWeek_2), f = t.EnLocale$(l.StartOfWeek_1), y = t.EnLocale$(l.StartOfWeek_1), q = t.EsLocale$(l.StartOfWeek_2), g = t.EsLocale$(l.StartOfWeek_2), E = t.EsLocale$(l.StartOfWeek_1), R = t.FrLocale$(l.StartOfWeek_2), I = t.FrLocale$(l.StartOfWeek_2), B = t.FrLocale$(l.StartOfWeek_1), w = t.ZhCnLocale$(l.StartOfWeek_1), F = t.ZhCnLocale$(l.StartOfWeek_1), J = t.ZhLocale$(l.StartOfWeek_1), H = t.ZhLocale$(l.StartOfWeek_1), Y = t.DeLocale$(l.StartOfWeek_2), V = t.DeLocale$(l.StartOfWeek_2), f0 = t.DeLocale$(l.StartOfWeek_2), c0 = t.DeLocale$(l.StartOfWeek_2), t1 = t.ItLocale$(l.StartOfWeek_2), n1 = t.ItLocale$(l.StartOfWeek_2), i1 = t.ArLyLocale$(!0, l.StartOfWeek_0), p1 = t.ArLyLocale$(!1, l.StartOfWeek_0), Y0 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_1), s1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_1), M1 = t.ArSaMaDzKwTnLocale$(!0, l.StartOfWeek_1), z1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_0), A1 = t.ArSaMaDzKwTnLocale$(!1, l.StartOfWeek_0);
11063
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(l.StartOfWeek_2), o = t.PtLocale$(l.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", p, "en_au", M, "en_ca", _, "en_gb", d, "en_ie", z, "en_il", f, "en_nz", y, "es", q, "es_do", g, "es_us", E, "fr", R, "fr_ch", I, "fr_ca", B, "zh", w, "zh_cn", F, "zh_hk", J, "zh_tw", H, "de", Y, "de_de", V, "de_at", f0, "de_ch", c0, "it", t1, "it_ch", n1, "ar", i1, "ar_ly", p1, "ar_dz", Y0, "ar_kw", s1, "ar_sa", M1, "ar_ma", z1, "ar_tn", A1, "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"));
11064
11064
  }), e(h, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
11065
11065
  var a = "createdAt", o = null, s = t.Source_Source$couchdb("", ""), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
11066
11066
  return t.Schema_Schema$build(o, l.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), o, new t.addonFlattenItemSchema_closure(), l.List_empty, o, o, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_7, a, "", "", !0, s, u);
@@ -11068,7 +11068,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
11068
11068
  var a = "couchdb_bill", o = "adjustment", s = "adjustments", u = "createdAt", p = null, M = t.Source_Source$couchdb(s, o), _ = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), u), d = O.JSArray_String, z = t._setArrayType([t.Index$(t._setArrayType(["id"], d), p, p, p), t.Index$(t._setArrayType(["doc_id"], d), p, p, p), t.Index$(t._setArrayType(["restaurant_id", "created_at"], d), "idx_adjustments_select_index", p, p), t.Index$(t._setArrayType(["item_id"], d), p, p, p), t.Index$(t._setArrayType(["bill_id"], d), p, p, p), t.Index$(t._setArrayType(["published_at"], d), p, p, p)], O.JSArray_Index), f = t._setArrayType(["restaurantId"], d);
11069
11069
  return t.Schema_Schema$build("sales", t._setArrayType(["discount", "adjustment", "promo", "promotion", "offer"], d), 2, f, p, new t.adjustmentSchema_closure(), l.List_empty, z, p, !1, !0, !1, !1, !1, new t.adjustmentSchema_closure0(), "Discount", s, o, l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_21, u, a, a, !0, M, _);
11070
11070
  }), e(h, "billSchema", "$get$billSchema", () => {
11071
- var a = "couchdb_bill", o = null, s = "createdAt", u = t.Source_Source$couchdb(o, "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), s), M = O.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], M), o, o, o), t.Index$(t._setArrayType(["doc_id"], M), o, o, o), t.Index$(t._setArrayType(["restaurant_id", "created_at"], M), "idx_bills_select_index", o, o), t.Index$(t._setArrayType(["member_id"], M), o, o, o), t.Index$(t._setArrayType(["member_user_id"], M), o, o, o), t.Index$(t._setArrayType(["published_at"], M), o, o, o), t.Index$(t._setArrayType(["restaurant_id", "completed_at"], M), "idx_complete_time_bills_select_index", o, o)], O.JSArray_Index), d = t._setArrayType(["restaurantId"], M);
11071
+ var a = "couchdb_bill", o = null, s = "createdAt", u = t.Source_Source$couchdb(o, "bill"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), s), M = O.JSArray_String, _ = t._setArrayType([t.Index$(t._setArrayType(["id"], M), o, o, o), t.Index$(t._setArrayType(["doc_id"], M), o, o, o), t.Index$(t._setArrayType(["restaurant_id", "created_at"], M), "idx_bills_select_index", o, o), t.Index$(t._setArrayType(["member_id", "created_at"], M), "idx_bills_member_created", o, o), t.Index$(t._setArrayType(["member_user_id"], M), o, o, o), t.Index$(t._setArrayType(["published_at"], M), o, o, o), t.Index$(t._setArrayType(["restaurant_id", "completed_at"], M), "idx_complete_time_bills_select_index", o, o)], O.JSArray_Index), d = t._setArrayType(["restaurantId"], M);
11072
11072
  return t.Schema_Schema$build("sales", t._setArrayType(["bill", "order", "transaction", "receipt", "customer", "table", "dine in", "takeaway", "total amount"], M), 1, d, o, new t.billSchema_closure(), l.List_empty, _, o, !1, !0, !1, !1, !1, new t.billSchema_closure0(), "Bill", "bills", "bill", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_0, s, a, a, !0, u, p);
11073
11073
  }), e(h, "businessSchema", "$get$businessSchema", () => {
11074
11074
  var a = null, o = t.Source_Source$mongodb(a, "Businesses"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("id")], O.JSArray_Permission), a), u = O.JSArray_String, p = t._setArrayType([t.Index$(t._setArrayType(["id"], u), a, a, a), t.Index$(t._setArrayType(["doc_id"], u), a, a, a)], O.JSArray_Index);
@@ -11479,7 +11479,7 @@ from member_store_purchases
11479
11479
  var a = "couchdb_m_slot", o = null, s = t.Source_Source$couchdb(o, "slot"), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), o), p = O.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], p), o, o, o), t.Index$(t._setArrayType(["doc_id"], p), o, o, o), t.Index$(t._setArrayType(["restaurant_id"], p), o, o, o)], O.JSArray_Index), _ = t._setArrayType(["restaurantId"], p);
11480
11480
  return t.Schema_Schema$build("operations", t._setArrayType(["slot", "time slot", "booking", "reservation"], p), 2, _, o, new t.slotSchema_closure(), l.List_empty, M, o, !0, !0, !1, !1, !1, new t.slotSchema_closure0(), "Table", "slots", "slot", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_16, o, a, a, !1, s, u);
11481
11481
  }), e(h, "smsCreditTransactionSchema", "$get$smsCreditTransactionSchema", () => {
11482
- var a = null, o = "createdAt", s = t.Source_Source$mongodb(a, "SmsCreditTransactions"), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], O.JSArray_Permission), o), p = O.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["created_at"], p), a, a, a), t.Index$(t._setArrayType(["business_id"], p), a, a, a), t.Index$(t._setArrayType(["campaign_id"], p), a, a, a), t.Index$(t._setArrayType(["member_id"], p), a, a, a)], O.JSArray_Index), _ = t._setArrayType([], p);
11482
+ var a = null, o = "createdAt", s = t.Source_Source$mongodb(a, "SmsCreditTransactions"), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$business("businessId")], O.JSArray_Permission), o), p = O.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], p), a, a, a), t.Index$(t._setArrayType(["doc_id"], p), a, a, a), t.Index$(t._setArrayType(["campaign_id"], p), a, a, a), t.Index$(t._setArrayType(["member_id"], p), a, a, a), t.Index$(t._setArrayType(["business_id", "created_at"], p), "idx_sct_select_index", a, a)], O.JSArray_Index), _ = t._setArrayType([], p);
11483
11483
  return t.Schema_Schema$build("marketing", t._setArrayType(["sms", "sms credit", "sms balance", "message", "blast"], p), 2, _, a, new t.smsCreditTransactionSchema_closure(), l.List_empty, M, a, !0, !0, !1, !1, !1, new t.smsCreditTransactionSchema_closure0(), "SMS credit transaction", "sms_credit_transactions", "sms_credit_transaction", l.MERGE_FILTER_TYPE_0, l.SCHEMA_NAME_95, o, "mongodb_sms_credit_transactions", "mongodb_company_db_sms_credit_transactions", !0, s, u);
11484
11484
  }), e(h, "staffSchema", "$get$staffSchema", () => {
11485
11485
  var a = "couchdb_user", o = null, s = t.Source_Source$couchdb(o, "user"), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), o), p = O.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], p), o, o, o), t.Index$(t._setArrayType(["doc_id"], p), o, o, o), t.Index$(t._setArrayType(["restaurant_id"], p), o, o, o)], O.JSArray_Index), _ = t._setArrayType(["restaurantId"], p);
@@ -11580,7 +11580,7 @@ GROUP BY
11580
11580
  (function() {
11581
11581
  var e = function(p) {
11582
11582
  var M = {};
11583
- return M[p] = 1, Object.keys(_0.convertToFastObject(M))[0];
11583
+ return M[p] = 1, Object.keys(p0.convertToFastObject(M))[0];
11584
11584
  };
11585
11585
  L.getIsolateTag = function(p) {
11586
11586
  return e("___dart_" + p + L.isolateTag);
@@ -11593,7 +11593,7 @@ GROUP BY
11593
11593
  }
11594
11594
  }
11595
11595
  L.dispatchPropertyName = L.getIsolateTag("dispatch_record");
11596
- })(), _0.setOrUpdateInterceptorsByTag({ ArrayBuffer: i.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), _0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11596
+ })(), p0.setOrUpdateInterceptorsByTag({ ArrayBuffer: i.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), p0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
11597
11597
  }(), Function.prototype.call$1 = function(r) {
11598
11598
  return this(r);
11599
11599
  }, Function.prototype.call$0 = function() {
@@ -11608,7 +11608,7 @@ GROUP BY
11608
11608
  return this(r, e, n, a, o, s, u, p);
11609
11609
  }, Function.prototype.call$1$0 = function() {
11610
11610
  return this();
11611
- }, c0(A), function(r) {
11611
+ }, M0(A), function(r) {
11612
11612
  if (typeof document > "u") {
11613
11613
  r(null);
11614
11614
  return;
@@ -11656,12 +11656,12 @@ var xa = Na, an = {};
11656
11656
  function W() {
11657
11657
  try {
11658
11658
  throw new Error();
11659
- } catch (p0) {
11660
- var P = p0.stack, N = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), k = null;
11659
+ } catch (d0) {
11660
+ var P = d0.stack, N = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), k = null;
11661
11661
  do {
11662
- var t0 = N.exec(P);
11663
- t0 != null && (k = t0);
11664
- } while (t0 != null);
11662
+ var r0 = N.exec(P);
11663
+ r0 != null && (k = r0);
11664
+ } while (r0 != null);
11665
11665
  return k[1];
11666
11666
  }
11667
11667
  }
@@ -11716,7 +11716,7 @@ var xa = Na, an = {};
11716
11716
  }
11717
11717
  return !1;
11718
11718
  }();
11719
- function t0(e, n) {
11719
+ function r0(e, n) {
11720
11720
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
11721
11721
  if (k) {
11722
11722
  e.prototype.__proto__ = n.prototype;
@@ -11726,17 +11726,17 @@ var xa = Na, an = {};
11726
11726
  v(e.prototype, a), e.prototype = a;
11727
11727
  }
11728
11728
  }
11729
- function p0(e, n) {
11729
+ function d0(e, n) {
11730
11730
  for (var a = 0; a < n.length; a++)
11731
- t0(n[a], e);
11731
+ r0(n[a], e);
11732
11732
  }
11733
- function s0(e, n) {
11733
+ function u0(e, n) {
11734
11734
  N(n.prototype, e.prototype), e.prototype.constructor = e;
11735
11735
  }
11736
- function n0(e, n) {
11736
+ function K(e, n) {
11737
11737
  P(n.prototype, e.prototype), e.prototype.constructor = e;
11738
11738
  }
11739
- function H(e, n, a, o) {
11739
+ function X(e, n, a, o) {
11740
11740
  var s = e;
11741
11741
  e[n] = s, e[a] = function() {
11742
11742
  e[a] = function() {
@@ -11761,7 +11761,7 @@ var xa = Na, an = {};
11761
11761
  }, e[n];
11762
11762
  };
11763
11763
  }
11764
- function K(e, n, a, o) {
11764
+ function Z(e, n, a, o) {
11765
11765
  var s = e;
11766
11766
  e[n] = s, e[a] = function() {
11767
11767
  if (e[n] === s) {
@@ -11774,17 +11774,17 @@ var xa = Na, an = {};
11774
11774
  }, p;
11775
11775
  };
11776
11776
  }
11777
- function Z(e) {
11777
+ function e0(e) {
11778
11778
  return e.immutable$list = Array, e.fixed$length = Array, e;
11779
11779
  }
11780
- function c0(e) {
11780
+ function M0(e) {
11781
11781
  return e;
11782
11782
  }
11783
11783
  function a0(e) {
11784
11784
  for (var n = 0; n < e.length; ++n)
11785
11785
  e[n];
11786
11786
  }
11787
- function u0(e, n) {
11787
+ function i0(e, n) {
11788
11788
  var a = null;
11789
11789
  return e ? function(o) {
11790
11790
  return a === null && (a = i.closureFromTearOff(n)), new a(o, this);
@@ -11792,26 +11792,26 @@ var xa = Na, an = {};
11792
11792
  return a === null && (a = i.closureFromTearOff(n)), new a(this, null);
11793
11793
  };
11794
11794
  }
11795
- function r0(e) {
11795
+ function n0(e) {
11796
11796
  var n = null;
11797
11797
  return function() {
11798
11798
  return n === null && (n = i.closureFromTearOff(e).prototype), n;
11799
11799
  };
11800
11800
  }
11801
11801
  var o0 = 0;
11802
- function f0(e, n, a, o, s, u, p, M, _, d) {
11802
+ function $0(e, n, a, o, s, u, p, M, _, d) {
11803
11803
  return typeof M == "number" && (M += o0), { co: e, iS: n, iI: a, rC: o, dV: s, cs: u, fs: p, fT: M, aI: _ || 0, nDA: d };
11804
11804
  }
11805
11805
  function z0(e, n, a, o, s, u, p, M) {
11806
- var _ = f0(e, !0, !1, a, o, s, u, p, M, !1), d = r0(_);
11806
+ var _ = $0(e, !0, !1, a, o, s, u, p, M, !1), d = n0(_);
11807
11807
  e[n] = d;
11808
11808
  }
11809
- function d0(e, n, a, o, s, u, p, M, _, d) {
11809
+ function b0(e, n, a, o, s, u, p, M, _, d) {
11810
11810
  a = !!a;
11811
- var z = f0(e, !1, a, o, s, u, p, M, _, !!d), f = u0(a, z);
11811
+ var z = $0(e, !1, a, o, s, u, p, M, _, !!d), f = i0(a, z);
11812
11812
  e[n] = f;
11813
11813
  }
11814
- function e0(e) {
11814
+ function t0(e) {
11815
11815
  var n = C.interceptorsByTag;
11816
11816
  if (!n) {
11817
11817
  C.interceptorsByTag = e;
@@ -11819,7 +11819,7 @@ var xa = Na, an = {};
11819
11819
  }
11820
11820
  v(e, n);
11821
11821
  }
11822
- function O0(e) {
11822
+ function A0(e) {
11823
11823
  var n = C.leafTags;
11824
11824
  if (!n) {
11825
11825
  C.leafTags = e;
@@ -11831,20 +11831,20 @@ var xa = Na, an = {};
11831
11831
  var n = C.types, a = n.length;
11832
11832
  return n.push.apply(n, e), a;
11833
11833
  }
11834
- function _0(e, n) {
11834
+ function p0(e, n) {
11835
11835
  return v(n, e), e;
11836
11836
  }
11837
11837
  var t = function() {
11838
11838
  var e = function(a, o, s, u, p) {
11839
11839
  return function(M, _, d, z) {
11840
- return d0(M, _, a, o, s, u, [d], z, p, !1);
11840
+ return b0(M, _, a, o, s, u, [d], z, p, !1);
11841
11841
  };
11842
11842
  }, n = function(a, o, s, u) {
11843
11843
  return function(p, M, _, d) {
11844
11844
  return z0(p, M, a, o, s, [_], d, u);
11845
11845
  };
11846
11846
  };
11847
- return { inherit: t0, inheritMany: p0, mixin: s0, mixinHard: n0, installStaticTearOff: z0, installInstanceTearOff: d0, _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: Z, lazy: U, lazyFinal: K, lazyOld: H, updateHolder: _0, convertToFastObject: c0, updateTypes: y0, setOrUpdateInterceptorsByTag: e0, setOrUpdateLeafTags: O0 };
11847
+ return { inherit: r0, inheritMany: d0, mixin: u0, mixinHard: K, installStaticTearOff: z0, installInstanceTearOff: b0, _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: e0, lazy: U, lazyFinal: Z, lazyOld: X, updateHolder: p0, convertToFastObject: M0, updateTypes: y0, setOrUpdateInterceptorsByTag: t0, setOrUpdateLeafTags: A0 };
11848
11848
  }(), i = {
11849
11849
  JS_CONST: function() {
11850
11850
  },
@@ -11894,15 +11894,15 @@ var xa = Na, an = {};
11894
11894
  }
11895
11895
  },
11896
11896
  Sort__dualPivotQuicksort(e, n, a, o) {
11897
- var s, u, p, M, _, d, z, f, y, q, g = A.JSInt_methods._tdivFast$1(a - n + 1, 6), E = n + g, R = a - g, I = A.JSInt_methods._tdivFast$1(n + a, 2), B = I - g, w = I + g, F = l.getInterceptor$asx(e), J = F.$index(e, E), X = F.$index(e, B), Y = F.$index(e, I), V = F.$index(e, w), $0 = F.$index(e, R);
11898
- if (o.call$2(J, X) > 0 && (s = X, X = J, J = s), o.call$2(V, $0) > 0 && (s = $0, $0 = V, V = s), o.call$2(J, Y) > 0 && (s = Y, Y = J, J = s), o.call$2(X, Y) > 0 && (s = Y, Y = X, X = s), o.call$2(J, V) > 0 && (s = V, V = J, J = s), o.call$2(Y, V) > 0 && (s = V, V = Y, Y = s), o.call$2(X, $0) > 0 && (s = $0, $0 = X, X = s), o.call$2(X, Y) > 0 && (s = Y, Y = X, X = s), o.call$2(V, $0) > 0 && (s = $0, $0 = V, V = s), F.$indexSet(e, E, J), F.$indexSet(e, I, Y), F.$indexSet(e, R, $0), F.$indexSet(e, B, F.$index(e, n)), F.$indexSet(e, w, F.$index(e, a)), u = n + 1, p = a - 1, l.$eq$(o.call$2(X, V), 0)) {
11897
+ var s, u, p, M, _, d, z, f, y, q, g = A.JSInt_methods._tdivFast$1(a - n + 1, 6), E = n + g, R = a - g, I = A.JSInt_methods._tdivFast$1(n + a, 2), B = I - g, w = I + g, F = l.getInterceptor$asx(e), J = F.$index(e, E), H = F.$index(e, B), Y = F.$index(e, I), V = F.$index(e, w), f0 = F.$index(e, R);
11898
+ if (o.call$2(J, H) > 0 && (s = H, H = J, J = s), o.call$2(V, f0) > 0 && (s = f0, f0 = V, V = s), o.call$2(J, Y) > 0 && (s = Y, Y = J, J = s), o.call$2(H, Y) > 0 && (s = Y, Y = H, H = s), o.call$2(J, V) > 0 && (s = V, V = J, J = s), o.call$2(Y, V) > 0 && (s = V, V = Y, Y = s), o.call$2(H, f0) > 0 && (s = f0, f0 = H, H = s), o.call$2(H, Y) > 0 && (s = Y, Y = H, H = s), o.call$2(V, f0) > 0 && (s = f0, f0 = V, V = s), F.$indexSet(e, E, J), F.$indexSet(e, I, Y), F.$indexSet(e, R, f0), F.$indexSet(e, B, F.$index(e, n)), F.$indexSet(e, w, F.$index(e, a)), u = n + 1, p = a - 1, l.$eq$(o.call$2(H, V), 0)) {
11899
11899
  for (M = u; M <= p; ++M)
11900
- if (_ = F.$index(e, M), d = o.call$2(_, X), d !== 0)
11900
+ if (_ = F.$index(e, M), d = o.call$2(_, H), d !== 0)
11901
11901
  if (d < 0)
11902
11902
  M !== u && (F.$indexSet(e, M, F.$index(e, u)), F.$indexSet(e, u, _)), ++u;
11903
11903
  else
11904
11904
  for (; ; )
11905
- if (d = o.call$2(F.$index(e, p), X), d > 0) {
11905
+ if (d = o.call$2(F.$index(e, p), H), d > 0) {
11906
11906
  --p;
11907
11907
  continue;
11908
11908
  } else if (z = p - 1, d < 0) {
@@ -11915,7 +11915,7 @@ var xa = Na, an = {};
11915
11915
  y = !0;
11916
11916
  } else {
11917
11917
  for (M = u; M <= p; ++M)
11918
- if (_ = F.$index(e, M), o.call$2(_, X) < 0)
11918
+ if (_ = F.$index(e, M), o.call$2(_, H) < 0)
11919
11919
  M !== u && (F.$indexSet(e, M, F.$index(e, u)), F.$indexSet(e, u, _)), ++u;
11920
11920
  else if (o.call$2(_, V) > 0)
11921
11921
  for (; ; )
@@ -11924,19 +11924,19 @@ var xa = Na, an = {};
11924
11924
  break;
11925
11925
  continue;
11926
11926
  } else {
11927
- z = p - 1, o.call$2(F.$index(e, p), X) < 0 ? (F.$indexSet(e, M, F.$index(e, u)), f = u + 1, F.$indexSet(e, u, F.$index(e, p)), F.$indexSet(e, p, _), u = f) : (F.$indexSet(e, M, F.$index(e, p)), F.$indexSet(e, p, _)), p = z;
11927
+ z = p - 1, o.call$2(F.$index(e, p), H) < 0 ? (F.$indexSet(e, M, F.$index(e, u)), f = u + 1, F.$indexSet(e, u, F.$index(e, p)), F.$indexSet(e, p, _), u = f) : (F.$indexSet(e, M, F.$index(e, p)), F.$indexSet(e, p, _)), p = z;
11928
11928
  break;
11929
11929
  }
11930
11930
  y = !1;
11931
11931
  }
11932
- if (q = u - 1, F.$indexSet(e, n, F.$index(e, q)), F.$indexSet(e, q, X), q = p + 1, F.$indexSet(e, a, F.$index(e, q)), F.$indexSet(e, q, V), i.Sort__doSort(e, n, u - 2, o), i.Sort__doSort(e, p + 2, a, o), !y)
11932
+ if (q = u - 1, F.$indexSet(e, n, F.$index(e, q)), F.$indexSet(e, q, H), q = p + 1, F.$indexSet(e, a, F.$index(e, q)), F.$indexSet(e, q, V), i.Sort__doSort(e, n, u - 2, o), i.Sort__doSort(e, p + 2, a, o), !y)
11933
11933
  if (u < E && p > R) {
11934
- for (; l.$eq$(o.call$2(F.$index(e, u), X), 0); )
11934
+ for (; l.$eq$(o.call$2(F.$index(e, u), H), 0); )
11935
11935
  ++u;
11936
11936
  for (; l.$eq$(o.call$2(F.$index(e, p), V), 0); )
11937
11937
  --p;
11938
11938
  for (M = u; M <= p; ++M)
11939
- if (_ = F.$index(e, M), o.call$2(_, X) === 0)
11939
+ if (_ = F.$index(e, M), o.call$2(_, H) === 0)
11940
11940
  M !== u && (F.$indexSet(e, M, F.$index(e, u)), F.$indexSet(e, u, _)), ++u;
11941
11941
  else if (o.call$2(_, V) === 0)
11942
11942
  for (; ; )
@@ -11945,7 +11945,7 @@ var xa = Na, an = {};
11945
11945
  break;
11946
11946
  continue;
11947
11947
  } else {
11948
- z = p - 1, o.call$2(F.$index(e, p), X) < 0 ? (F.$indexSet(e, M, F.$index(e, u)), f = u + 1, F.$indexSet(e, u, F.$index(e, p)), F.$indexSet(e, p, _), u = f) : (F.$indexSet(e, M, F.$index(e, p)), F.$indexSet(e, p, _)), p = z;
11948
+ z = p - 1, o.call$2(F.$index(e, p), H) < 0 ? (F.$indexSet(e, M, F.$index(e, u)), f = u + 1, F.$indexSet(e, u, F.$index(e, p)), F.$indexSet(e, p, _), u = f) : (F.$indexSet(e, M, F.$index(e, p)), F.$indexSet(e, p, _)), p = z;
11949
11949
  break;
11950
11950
  }
11951
11951
  i.Sort__doSort(e, u, p, o);
@@ -13042,7 +13042,7 @@ var xa = Na, an = {};
13042
13042
  return u + "})";
13043
13043
  },
13044
13044
  _functionRtiToString(e, n, a) {
13045
- var o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V = ", ";
13045
+ var o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V = ", ";
13046
13046
  if (a != null) {
13047
13047
  for (o = a.length, n == null ? (n = i._setArrayType([], r.JSArray_String), s = null) : s = n.length, u = n.length, p = o; p > 0; --p)
13048
13048
  n.push("T" + (u + p));
@@ -13051,19 +13051,19 @@ var xa = Na, an = {};
13051
13051
  d += ">";
13052
13052
  } else
13053
13053
  d = "", s = null;
13054
- for (M = e._primary, g = e._rest, E = g._requiredPositional, R = E.length, I = g._optionalPositional, B = I.length, w = g._named, F = w.length, J = i._rtiToString(M, n), X = "", Y = "", p = 0; p < R; ++p, Y = V)
13055
- X += Y + i._rtiToString(E[p], n);
13054
+ for (M = e._primary, g = e._rest, E = g._requiredPositional, R = E.length, I = g._optionalPositional, B = I.length, w = g._named, F = w.length, J = i._rtiToString(M, n), H = "", Y = "", p = 0; p < R; ++p, Y = V)
13055
+ H += Y + i._rtiToString(E[p], n);
13056
13056
  if (B > 0) {
13057
- for (X += Y + "[", Y = "", p = 0; p < B; ++p, Y = V)
13058
- X += Y + i._rtiToString(I[p], n);
13059
- X += "]";
13057
+ for (H += Y + "[", Y = "", p = 0; p < B; ++p, Y = V)
13058
+ H += Y + i._rtiToString(I[p], n);
13059
+ H += "]";
13060
13060
  }
13061
13061
  if (F > 0) {
13062
- for (X += Y + "{", Y = "", p = 0; p < F; p += 3, Y = V)
13063
- X += Y, w[p + 1] && (X += "required "), X += i._rtiToString(w[p + 2], n) + " " + w[p];
13064
- X += "}";
13062
+ for (H += Y + "{", Y = "", p = 0; p < F; p += 3, Y = V)
13063
+ H += Y, w[p + 1] && (H += "required "), H += i._rtiToString(w[p + 2], n) + " " + w[p];
13064
+ H += "}";
13065
13065
  }
13066
- return s != null && (n.toString, n.length = s), d + "(" + X + ") => " + J;
13066
+ return s != null && (n.toString, n.length = s), d + "(" + H + ") => " + J;
13067
13067
  },
13068
13068
  _rtiToString(e, n) {
13069
13069
  var a, o, s, u, p, M, _ = e._kind;
@@ -13421,7 +13421,7 @@ var xa = Na, an = {};
13421
13421
  return _ === 12 ? n === r.JavaScriptFunction ? !0 : u ? !1 : i._isFunctionSubtype(e, n, a, o, s) : p === 9 ? _ !== 9 ? !1 : i._isInterfaceSubtype(e, n, a, o, s) : (u = p === 11, u && o === r.Record ? !0 : u && _ === 11 ? i._isRecordSubtype(e, n, a, o, s) : !1);
13422
13422
  },
13423
13423
  _isFunctionSubtype(e, n, a, o, s) {
13424
- var u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V, $0, M0;
13424
+ var u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V, f0, c0;
13425
13425
  if (!i._isSubtype(e, n._primary, a, o._primary, s) || (u = n._rest, p = o._rest, M = u._requiredPositional, _ = p._requiredPositional, d = M.length, z = _.length, d > z) || (f = z - d, y = u._optionalPositional, q = p._optionalPositional, g = y.length, E = q.length, d + g < z + E))
13426
13426
  return !1;
13427
13427
  for (R = 0; R < d; ++R)
@@ -13433,23 +13433,23 @@ var xa = Na, an = {};
13433
13433
  for (R = 0; R < E; ++R)
13434
13434
  if (I = y[f + R], !i._isSubtype(e, q[R], s, I, a))
13435
13435
  return !1;
13436
- for (B = u._named, w = p._named, F = B.length, J = w.length, X = 0, Y = 0; Y < J; Y += 3)
13436
+ for (B = u._named, w = p._named, F = B.length, J = w.length, H = 0, Y = 0; Y < J; Y += 3)
13437
13437
  for (V = w[Y]; ; ) {
13438
- if (X >= F || ($0 = B[X], X += 3, V < $0))
13438
+ if (H >= F || (f0 = B[H], H += 3, V < f0))
13439
13439
  return !1;
13440
- if (M0 = B[X - 2], $0 < V) {
13441
- if (M0)
13440
+ if (c0 = B[H - 2], f0 < V) {
13441
+ if (c0)
13442
13442
  return !1;
13443
13443
  continue;
13444
13444
  }
13445
- if (I = w[Y + 1], M0 && !I || (I = B[X - 1], !i._isSubtype(e, w[Y + 2], s, I, a)))
13445
+ if (I = w[Y + 1], c0 && !I || (I = B[H - 1], !i._isSubtype(e, w[Y + 2], s, I, a)))
13446
13446
  return !1;
13447
13447
  break;
13448
13448
  }
13449
- for (; X < F; ) {
13450
- if (B[X + 1])
13449
+ for (; H < F; ) {
13450
+ if (B[H + 1])
13451
13451
  return !1;
13452
- X += 3;
13452
+ H += 3;
13453
13453
  }
13454
13454
  return !0;
13455
13455
  },
@@ -14889,7 +14889,7 @@ var xa = Na, an = {};
14889
14889
  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;
14890
14890
  },
14891
14891
  formatBaseXYChartData(e, n, a, o, s) {
14892
- var u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V, $0, M0, t1, n1, i1, p1, Y0, s1, M1, z1, A1, b1, g1 = null;
14892
+ var u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V, f0, c0, t1, n1, i1, p1, Y0, s1, M1, z1, A1, b1, g1 = null;
14893
14893
  if (a.length === 0)
14894
14894
  return u = i._setArrayType([], r.JSArray_String), p = i._setArrayType([], r.JSArray_XYDatasetModel), M = i.IterableExtension_get_firstOrNull(a), new i.BaseXYChartDataModel(e, u, p, new i.DateComparison(M == null ? g1 : M.dateRange, g1));
14895
14895
  for (_ = A.JSArray_methods.get$first(a).columns, u = i._arrayInstanceType(_), p = u._eval$1("WhereIterable<1>"), d = i.List_List$of(new i.WhereIterable(_, new i.formatBaseXYChartData_closure(), p), !0, p._eval$1("Iterable.E")), p = i._arrayInstanceType(d)._eval$1("WhereIterable<1>"), z = i.List_List$of(new i.WhereIterable(d, new i.formatBaseXYChartData_closure0(), p), !0, p._eval$1("Iterable.E")), p = r.QueryResponse, f = i._formatRows(i.ListExtension_sublistOrEmpty(a, 0, 1, p), s), y = i._formatRows(i.ListExtension_sublistOrEmpty(a, 1, 2, p), s), y.length !== 0 && (u = u._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = i.List_List$of(new i.MappedListIterable(_, new i.formatBaseXYChartData_closure1(), u), !0, u._eval$1("ListIterable.E")), g = i.compare(new i.ComparisonData(q, y), new i.ComparisonData(q, f)), y = g.comparison, f = g.main), u = r.String, p = i.LinkedHashMap_LinkedHashMap$_empty(u, r.bool), M = z.length, E = 0; R = z.length, E < R; z.length === M || (0, i.throwConcurrentModificationError)(z), ++E)
@@ -14900,7 +14900,7 @@ var xa = Na, an = {};
14900
14900
  for (R = i.LinkedHashMap_LinkedHashMap$_empty(u, r.int), F = 0; F < _.length; ++F)
14901
14901
  R.$indexSet(0, _[F].id, F);
14902
14902
  for (B.addAll$1(0, M), J = z.length, E = 0; E < z.length; z.length === J || (0, i.throwConcurrentModificationError)(z), ++E)
14903
- X = z[E].id, w.$indexSet(0, X, X);
14903
+ H = z[E].id, w.$indexSet(0, H, H);
14904
14904
  J = i._arrayInstanceType(f)._eval$1("ExpandIterable<1,List<@>>"), f = i.List_List$of(new i.ExpandIterable(f, new i.formatBaseXYChartData_closure2(z, R), J), !0, J._eval$1("Iterable.E")), y.length !== 0 && (J = i._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = i.List_List$of(new i.ExpandIterable(y, new i.formatBaseXYChartData_closure3(z, R), J), !0, J._eval$1("Iterable.E")));
14905
14905
  } else if (d.length > 1) {
14906
14906
  for (R = i.LinkedHashMap_LinkedHashMap$_empty(u, r.int), F = 0; F < _.length; ++F)
@@ -14908,9 +14908,9 @@ var xa = Na, an = {};
14908
14908
  R = new i.formatBaseXYChartData_expandRowsByMetric(A.JSArray_methods.indexWhere$1(_, new i.formatBaseXYChartData_closure4(n)), z, R, M, B, w), f = R.call$1(f), y.length !== 0 && (y = R.call$1(y));
14909
14909
  }
14910
14910
  for (R = r.JSArray_String, Y = i._setArrayType([], R), V = i._setArrayType([], R), R = f.length, E = 0; E < f.length; f.length === R || (0, i.throwConcurrentModificationError)(f), ++E)
14911
- $0 = f[E], J = l.getInterceptor$asx($0), Y.push(l.toString$0$(J.$index($0, 0))), V.push(l.toString$0$(J.$index($0, 1)));
14912
- for (R = i.LinkedHashSet_LinkedHashSet$from(Y, u), Y = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(V, u), M0 = i.List_List$of(u, !0, i._instanceType(u)._precomputed1), t1 = i._setArrayType([], r.JSArray_XYDatasetModel), u = M0.length, R = l.getInterceptor$asx(y), J = r.JSArray_nullable_num, E = 0; E < M0.length; M0.length === u || (0, i.throwConcurrentModificationError)(M0), ++E) {
14913
- for (n1 = M0[E], i1 = i._setArrayType([], J), p1 = i._setArrayType([], J), Y0 = w.$index(0, n1), X = p.$index(0, Y0 ?? n1), s1 = X === !0, X = B.$index(0, n1), M1 = X ?? M.$index(0, n1), M1 == null && (M1 = n1), X = Y.length, z1 = 0; z1 < Y.length; Y.length === X || (0, i.throwConcurrentModificationError)(Y), ++z1)
14911
+ f0 = f[E], J = l.getInterceptor$asx(f0), Y.push(l.toString$0$(J.$index(f0, 0))), V.push(l.toString$0$(J.$index(f0, 1)));
14912
+ for (R = i.LinkedHashSet_LinkedHashSet$from(Y, u), Y = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(V, u), c0 = i.List_List$of(u, !0, i._instanceType(u)._precomputed1), t1 = i._setArrayType([], r.JSArray_XYDatasetModel), u = c0.length, R = l.getInterceptor$asx(y), J = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === u || (0, i.throwConcurrentModificationError)(c0), ++E) {
14913
+ for (n1 = c0[E], i1 = i._setArrayType([], J), p1 = i._setArrayType([], J), Y0 = w.$index(0, n1), H = p.$index(0, Y0 ?? n1), s1 = H === !0, H = B.$index(0, n1), M1 = H ?? M.$index(0, n1), M1 == null && (M1 = n1), H = Y.length, z1 = 0; z1 < Y.length; Y.length === H || (0, i.throwConcurrentModificationError)(Y), ++z1)
14914
14914
  A1 = Y[z1], b1 = i.IterableExtension_firstWhereOrNull(f, new i.formatBaseXYChartData_closure5(A1, n1)), i1.push(i._parseMetricValue(b1 == null ? g1 : i.ListExtension_elementAtOrNull(b1, 2), s1)), R.get$length(y) !== 0 && (b1 = i.IterableExtension_firstWhereOrNull(y, new i.formatBaseXYChartData_closure6(A1, n1)), p1.push(i._parseMetricValue(b1 == null ? g1 : i.ListExtension_elementAtOrNull(b1, 2), s1)));
14915
14915
  t1.push(new i.XYDatasetModel(M1, !1, i1)), p1.length !== 0 && t1.push(new i.XYDatasetModel(M1, !0, p1));
14916
14916
  }
@@ -15017,9 +15017,9 @@ var xa = Na, an = {};
15017
15017
  return new i.RowInfo(u, l.map$1$1$ax(a, new i._getRowInfo_closure(e, n, o, u), s).join$0(0));
15018
15018
  },
15019
15019
  compare(e, n) {
15020
- var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X = {};
15021
- for (X.comparisonDateIndex = X.mainDateIndex = null, a = X.comparisonIndexesCompleted = X.mainIndexesCompleted = !1, o = n.columns, s = r.JSArray_int, u = i.IterableExtension_foldIndexed(o, i._setArrayType([], s), new i.compare_closure(X)), p = i.IterableExtension_foldIndexed(e.columns, i._setArrayType([], s), new i.compare_closure0(X)), s = r.JSArray_String, X.dates = i._setArrayType([], s), (X.mainDateIndex != null ? X.comparisonDateIndex != null : a) && (a = r.String, a = i.ListExtensions_mapIndexed(A.JSArray_methods.fold$2(n.rows, i._setArrayType([], s), new i.compare_closure1(X)), new i.compare_closure2(A.JSArray_methods.fold$2(e.rows, i._setArrayType([], s), new i.compare_closure3(X))), a, a), X.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(X, e, p)), a = r.JSArray_List_dynamic, s = i._setArrayType([], a), a = i._setArrayType([], a), _ = n.rows, d = _.length, z = r.JSArray_dynamic, f = l.getInterceptor$asx(u), y = r.dynamic, q = 0; q < _.length; _.length === d || (0, i.throwConcurrentModificationError)(_), ++q) {
15022
- if (g = _[q], E = i._getRowInfo(o, X.dates, u, g), R = M.$index(0, E.id), I = R == null ? null : l.toList$0$ax(R), I == null) {
15020
+ var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H = {};
15021
+ for (H.comparisonDateIndex = H.mainDateIndex = null, a = H.comparisonIndexesCompleted = H.mainIndexesCompleted = !1, o = n.columns, s = r.JSArray_int, u = i.IterableExtension_foldIndexed(o, i._setArrayType([], s), new i.compare_closure(H)), p = i.IterableExtension_foldIndexed(e.columns, i._setArrayType([], s), new i.compare_closure0(H)), s = r.JSArray_String, H.dates = i._setArrayType([], s), (H.mainDateIndex != null ? H.comparisonDateIndex != null : a) && (a = r.String, a = i.ListExtensions_mapIndexed(A.JSArray_methods.fold$2(n.rows, i._setArrayType([], s), new i.compare_closure1(H)), new i.compare_closure2(A.JSArray_methods.fold$2(e.rows, i._setArrayType([], s), new i.compare_closure3(H))), a, a), H.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(H, e, p)), a = r.JSArray_List_dynamic, s = i._setArrayType([], a), a = i._setArrayType([], a), _ = n.rows, d = _.length, z = r.JSArray_dynamic, f = l.getInterceptor$asx(u), y = r.dynamic, q = 0; q < _.length; _.length === d || (0, i.throwConcurrentModificationError)(_), ++q) {
15022
+ if (g = _[q], E = i._getRowInfo(o, H.dates, u, g), R = M.$index(0, E.id), I = R == null ? null : l.toList$0$ax(R), I == null) {
15023
15023
  for (R = E.row, B = i.List_List$of(i.ListExtensions_slice(R, 0, f.get$length(u), y), !0, y), w = R.length - f.get$length(u), w < 0 && i.throwExpression(i.ArgumentError$("Length must be a non-negative integer: " + w)), F = i._setArrayType(new Array(w), z), J = 0; J < w; ++J)
15024
15024
  F[J] = null;
15025
15025
  A.JSArray_methods.addAll$1(B, F), I = B;
@@ -15121,7 +15121,7 @@ var xa = Na, an = {};
15121
15121
  return s = g.mainResponse, d = s.rows, z = i._arrayInstanceType(d)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(i.List_List$of(new i.MappedListIterable(d, new i._formatTableData_closure3(), z), !0, z._eval$1("ListIterable.E")));
15122
15122
  },
15123
15123
  formatTableChartData(e, n, a, o) {
15124
- var s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X, Y, V = {};
15124
+ var s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H, Y, V = {};
15125
15125
  if (n.length === 0)
15126
15126
  return new i.TableDataModel(i._setArrayType([], r.JSArray_TableRowModel), i._setArrayType([], r.JSArray_TableColumnModel));
15127
15127
  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())), p = i._setArrayType([], r.JSArray_JoinDatasourceConfig), M = e.rowsPerPage, _ = e.get$columnIds(), d = e.get$rowIds(), z = e.get$drillDimension(), e = i.TableDatasourceConfigModel$(_, e.columnsWidth, s, z, e.filters, !0, e.isComparable, e.isDrillable, p, e.limit, u, e.periodType, e.rollup, e.rollupPosition, d, 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 = V.comparison = i._formatTableData(e, i.ListExtension_sublistOrEmpty(n, f, f * 2, s), a, o), s = q.rows, s.length !== 0 && (u = y.rows, p = i._arrayInstanceType(u)._eval$1("MappedListIterable<1,List<@>>"), p = i.List_List$of(new i.MappedListIterable(u, new i.formatTableChartData_closure1(), p), !0, p._eval$1("ListIterable.E")), M = y.columns, _ = i._arrayInstanceType(M)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), _ = i.List_List$of(new i.MappedListIterable(M, new i.formatTableChartData_closure2(), _), !0, _._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")), d = q.columns, z = i._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = i.compare(new i.ComparisonData(i.List_List$of(new i.MappedListIterable(d, new i.formatTableChartData_closure4(), z), !0, z._eval$1("ListIterable.E")), M), new i.ComparisonData(_, p)), p = r.TableRowModel, u = i.ListExtensions_mapIndexed(u, new i.formatTableChartData_closure5(g), p, p), y = y.copyWith$1$rows(i.List_List$of(u, !0, u.$ti._eval$1("Iterable.E"))), p = i.ListExtensions_mapIndexed(s, new i.formatTableChartData_closure6(g), p, p), V.comparison = q.copyWith$1$rows(i.List_List$of(p, !0, p.$ti._eval$1("Iterable.E")))), s = y.columns, u = i._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = i.List_List$of(new i.WhereIterable(s, new i.formatTableChartData_closure7(), u), !0, u._eval$1("Iterable.E")), u = r.String, p = r.int, R = i.LinkedHashMap_LinkedHashMap$_empty(u, p), I = 0; I < s.length; ++I)
@@ -15129,7 +15129,7 @@ var xa = Na, an = {};
15129
15129
  for (w = i.LinkedHashMap_LinkedHashMap$_empty(u, p), I = 0; s = V.comparison.columns, I < s.length; ++I)
15130
15130
  B = s[I], w.$indexSet(0, B.key + "_" + B.hide, I);
15131
15131
  for (F = i._setArrayType([], r.JSArray__ColumnMapping), s = E.length, J = 0; J < s; ++J)
15132
- B = E[J], u = B.key, X = u + "_" + B.hide, u = i.stringReplaceAllUnchecked(u, ".", "_"), p = R.$index(0, X), p == null && (p = -1), M = w.$index(0, X), F.push(new i._ColumnMapping(B, u, p, M ?? -1));
15132
+ B = E[J], u = B.key, H = u + "_" + B.hide, u = i.stringReplaceAllUnchecked(u, ".", "_"), p = R.$index(0, H), p == null && (p = -1), M = w.$index(0, H), F.push(new i._ColumnMapping(B, u, p, M ?? -1));
15133
15133
  return s = r.MappedListIterable__ColumnMapping_TableColumnModel, Y = i.List_List$of(new i.MappedListIterable(F, new i.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = V.comparison.rows.length, u = r.TableRowModel, u = i.ListExtensions_mapIndexed(y.rows, new i.formatTableChartData_closure9(V, F, a, o, s !== 0, s), u, u), y.copyWith$2$columns$rows(Y, i.List_List$of(u, !0, u.$ti._eval$1("Iterable.E")));
15134
15134
  },
15135
15135
  _formatTableResponse_closure: function(n) {
@@ -19376,18 +19376,18 @@ Arguments: [` + _ + "]";
19376
19376
  $signature: 0
19377
19377
  }, i._formatTableResponse_closure5.prototype = {
19378
19378
  call$2(e, n) {
19379
- var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, X = null, Y = r.JSArray_List_dynamic, V = i._setArrayType([[]], Y), $0 = i._setArrayType([[]], Y);
19379
+ var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F, J, H = null, Y = r.JSArray_List_dynamic, V = i._setArrayType([[]], Y), f0 = i._setArrayType([[]], Y);
19380
19380
  for (Y = this.headers, a = n.value, o = r.dynamic, s = r.JSArray_String, u = r.String, p = this.metricColumns, M = 0; M < Y.length; ++M)
19381
19381
  if (_ = Y[M], d = l.getInterceptor$ax(_), z = d.map$1$1(_, new i._formatTableResponse__closure4(), u).join$1(0, "|"), i.IterableExtension_firstWhereOrNull(_, new i._formatTableResponse__closure5()) != null)
19382
19382
  for (f = d.firstWhere$1(_, new i._formatTableResponse__closure6()), y = d.fold$2(_, !0, new i._formatTableResponse__closure7(n)), d = V.length, q = f.type, g = f.columnValue, E = 0; E < V.length; V.length === d || (0, i.throwConcurrentModificationError)(V), ++E)
19383
- R = V[E], y ? (I = a.$index(0, g), B = R.length, M >= B && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - B + 1, X, !1, o)), R[M] = I) : (I = q == null ? X : i.DataTypeExtension_toData(q, X), B = R.length, M >= B && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - B + 1, X, !1, o)), R[M] = I);
19383
+ R = V[E], y ? (I = a.$index(0, g), B = R.length, M >= B && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - B + 1, H, !1, o)), R[M] = I) : (I = q == null ? H : i.DataTypeExtension_toData(q, H), B = R.length, M >= B && A.JSArray_methods.addAll$1(R, i.List_List$filled(M - B + 1, H, !1, o)), R[M] = I);
19384
19384
  else if (A.JSArray_methods.contains$1(i._setArrayType(["_metric_name", "_metric_value"], s), z))
19385
19385
  for (d = z === "_metric_value", q = z === "_metric_name", w = 0; w < p.length; ++w)
19386
- F = p[w], i.ListExtension_elementAtOrNull(V, w) == null && (V.push(i.List_List$of(V[0], !0, o)), $0.push(i.List_List$of($0[0], !0, o))), q ? (g = V[w], I = F.label, B = g.length, M >= B && A.JSArray_methods.addAll$1(g, i.List_List$filled(M - B + 1, X, !1, o)), g[M] = I, $0[w].push(I)) : d && (g = V[w], I = a.$index(0, F.id), B = g.length, M >= B && A.JSArray_methods.addAll$1(g, i.List_List$filled(M - B + 1, X, !1, o)), g[M] = I);
19386
+ F = p[w], i.ListExtension_elementAtOrNull(V, w) == null && (V.push(i.List_List$of(V[0], !0, o)), f0.push(i.List_List$of(f0[0], !0, o))), q ? (g = V[w], I = F.label, B = g.length, M >= B && A.JSArray_methods.addAll$1(g, i.List_List$filled(M - B + 1, H, !1, o)), g[M] = I, f0[w].push(I)) : d && (g = V[w], I = a.$index(0, F.id), B = g.length, M >= B && A.JSArray_methods.addAll$1(g, i.List_List$filled(M - B + 1, H, !1, o)), g[M] = I);
19387
19387
  else
19388
19388
  for (J = 0; J < V.length; ++J)
19389
- d = V[J], q = a.$index(0, z), g = d.length, M >= g && A.JSArray_methods.addAll$1(d, i.List_List$filled(M - g + 1, X, !1, o)), d[M] = q, $0[J].push(a.$index(0, z));
19390
- return l.addAll$1$ax(e, i.ListExtensions_mapIndexed(V, new i._formatTableResponse__closure8($0, n), r.List_dynamic, r.Map_String_dynamic)), e;
19389
+ d = V[J], q = a.$index(0, z), g = d.length, M >= g && A.JSArray_methods.addAll$1(d, i.List_List$filled(M - g + 1, H, !1, o)), d[M] = q, f0[J].push(a.$index(0, z));
19390
+ return l.addAll$1$ax(e, i.ListExtensions_mapIndexed(V, new i._formatTableResponse__closure8(f0, n), r.List_dynamic, r.Map_String_dynamic)), e;
19391
19391
  },
19392
19392
  $signature: 79
19393
19393
  }, i._formatTableResponse__closure4.prototype = {
@@ -19626,10 +19626,10 @@ Arguments: [` + _ + "]";
19626
19626
  $signature: 99
19627
19627
  }, i.formatTableChartData_closure9.prototype = {
19628
19628
  call$2(e, n) {
19629
- var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F = this, J = [], X = [], Y = n.cells, V = l.getInterceptor$asx(Y), $0 = V.get$length(Y);
19629
+ var a, o, s, u, p, M, _, d, z, f, y, q, g, E, R, I, B, w, F = this, J = [], H = [], Y = n.cells, V = l.getInterceptor$asx(Y), f0 = V.get$length(Y);
19630
19630
  for (a = F.columnMappings, o = a.length, s = F.hasComparison, u = F.country, p = F.timezone, M = e < F.comparisonRowsLength, _ = F._box_0, d = 0; d < a.length; a.length === o || (0, i.throwConcurrentModificationError)(a), ++d)
19631
- z = a[d], f = z.mainIndex, y = f >= 0 && f < $0 ? V.$index(Y, f) : i.ListExtension_elementAtOrNull(Y, f), f = z.column, q = f.type, g = q == null, J.push(g ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, p, y)), s && (M ? (E = _.comparison.rows[e].cells, R = l.getInterceptor$asx(E), I = R.get$length(E), B = z.comparisonIndex, w = B >= 0 && B < I ? R.$index(E, B) : i.ListExtension_elementAtOrNull(E, B)) : w = i.ListExtension_elementAtOrNull([], z.comparisonIndex), X.push(g ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, p, w)));
19632
- return n.copyWith$2$cells$comparisonCells(J, X);
19631
+ z = a[d], f = z.mainIndex, y = f >= 0 && f < f0 ? V.$index(Y, f) : i.ListExtension_elementAtOrNull(Y, f), f = z.column, q = f.type, g = q == null, J.push(g ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, p, y)), s && (M ? (E = _.comparison.rows[e].cells, R = l.getInterceptor$asx(E), I = R.get$length(E), B = z.comparisonIndex, w = B >= 0 && B < I ? R.$index(E, B) : i.ListExtension_elementAtOrNull(E, B)) : w = i.ListExtension_elementAtOrNull([], z.comparisonIndex), H.push(g ? null : i.DataTypeExtension_toDisplay(q, f.aggregationType, u, f.decimal, f.dimensionOption, f.formatter, !1, f.timeFormatter, p, w)));
19632
+ return n.copyWith$2$cells$comparisonCells(J, H);
19633
19633
  },
19634
19634
  $signature: 7
19635
19635
  }, i.TZDateTime.prototype = {
@@ -20067,8 +20067,8 @@ Arguments: [` + _ + "]";
20067
20067
  return o.message;
20068
20068
  }
20069
20069
  }())), n(L, "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(L, "_hashSeed", "$get$_hashSeed", () => i.objectHashCode(A.Type_Object_xQ6)), n(L, "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(L, "_clockKey", "$get$_clockKey", () => new i.Object()), n(L, "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(L, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", L.$get$en_USSymbols())), a(L, "dateTimePatterns", "$get$dateTimePatterns", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", A.Map_EQ6TW)), n(L, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(L, "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(L, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => i.RegExp_RegExp("''", !1)), n(L, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => i.RegExp_RegExp("^\\d+", !1)), a(L, "_availableLocales", "$get$_availableLocales", () => {
20070
- var o, s, u = i.EnLocale$(A.StartOfWeek_1), p = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), d = 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), g = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), I = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_2), w = i.FrLocale$(A.StartOfWeek_1), F = i.ZhCnLocale$(A.StartOfWeek_1), J = i.ZhCnLocale$(A.StartOfWeek_1), X = i.ZhLocale$(A.StartOfWeek_1), Y = i.ZhLocale$(A.StartOfWeek_1), V = i.DeLocale$(A.StartOfWeek_2), $0 = i.DeLocale$(A.StartOfWeek_2), M0 = i.DeLocale$(A.StartOfWeek_2), t1 = i.DeLocale$(A.StartOfWeek_2), n1 = i.ItLocale$(A.StartOfWeek_2), i1 = i.ItLocale$(A.StartOfWeek_2), p1 = i.ArLyLocale$(!0, A.StartOfWeek_0), Y0 = i.ArLyLocale$(!1, A.StartOfWeek_0), s1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), M1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), z1 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), A1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), b1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
20071
- 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", p, "en_sg", M, "en_au", _, "en_ca", d, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", g, "es_do", E, "es_us", R, "fr", I, "fr_ch", B, "fr_ca", w, "zh", F, "zh_cn", J, "zh_hk", X, "zh_tw", Y, "de", V, "de_de", $0, "de_at", M0, "de_ch", t1, "it", n1, "it_ch", i1, "ar", p1, "ar_ly", Y0, "ar_dz", s1, "ar_kw", M1, "ar_sa", z1, "ar_ma", A1, "ar_tn", b1, "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"));
20070
+ var o, s, u = i.EnLocale$(A.StartOfWeek_1), p = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), d = 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), g = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), I = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_2), w = i.FrLocale$(A.StartOfWeek_1), F = i.ZhCnLocale$(A.StartOfWeek_1), J = i.ZhCnLocale$(A.StartOfWeek_1), H = i.ZhLocale$(A.StartOfWeek_1), Y = i.ZhLocale$(A.StartOfWeek_1), V = i.DeLocale$(A.StartOfWeek_2), f0 = i.DeLocale$(A.StartOfWeek_2), c0 = i.DeLocale$(A.StartOfWeek_2), t1 = i.DeLocale$(A.StartOfWeek_2), n1 = i.ItLocale$(A.StartOfWeek_2), i1 = i.ItLocale$(A.StartOfWeek_2), p1 = i.ArLyLocale$(!0, A.StartOfWeek_0), Y0 = i.ArLyLocale$(!1, A.StartOfWeek_0), s1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), M1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), z1 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), A1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), b1 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
20071
+ 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", p, "en_sg", M, "en_au", _, "en_ca", d, "en_gb", z, "en_ie", f, "en_il", y, "en_nz", q, "es", g, "es_do", E, "es_us", R, "fr", I, "fr_ch", B, "fr_ca", w, "zh", F, "zh_cn", J, "zh_hk", H, "zh_tw", Y, "de", V, "de_de", f0, "de_at", c0, "de_ch", t1, "it", n1, "it_ch", i1, "ar", p1, "ar_ly", Y0, "ar_dz", s1, "ar_kw", M1, "ar_sa", z1, "ar_ma", A1, "ar_tn", b1, "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"));
20072
20072
  }), n(L, "_UTC", "$get$_UTC", () => {
20073
20073
  var o = r.JSArray_int;
20074
20074
  return i.Location$("UTC", i._setArrayType([-864e13], o), i._setArrayType([0], o), i._setArrayType([A.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -20152,26 +20152,26 @@ function Ir(c) {
20152
20152
  /^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/
20153
20153
  );
20154
20154
  if (m) {
20155
- const [, N, k, t0, p0, s0, n0 = "0"] = m;
20155
+ const [, N, k, r0, d0, u0, K = "0"] = m;
20156
20156
  return {
20157
20157
  type: "fullDateTime",
20158
20158
  value: new Date(
20159
- parseInt(t0),
20159
+ parseInt(r0),
20160
20160
  parseInt(k) - 1,
20161
20161
  parseInt(N),
20162
- parseInt(p0),
20163
- parseInt(s0),
20164
- parseInt(n0)
20162
+ parseInt(d0),
20163
+ parseInt(u0),
20164
+ parseInt(K)
20165
20165
  ).getTime()
20166
20166
  };
20167
20167
  }
20168
20168
  const T = b.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
20169
20169
  if (T) {
20170
- const [, N, k, t0] = T;
20170
+ const [, N, k, r0] = T;
20171
20171
  return {
20172
20172
  type: "date",
20173
20173
  value: new Date(
20174
- parseInt(t0),
20174
+ parseInt(r0),
20175
20175
  parseInt(k) - 1,
20176
20176
  parseInt(N)
20177
20177
  ).getTime()
@@ -20179,13 +20179,13 @@ function Ir(c) {
20179
20179
  }
20180
20180
  const W = b.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
20181
20181
  if (W) {
20182
- const [, N, k, t0] = W;
20182
+ const [, N, k, r0] = W;
20183
20183
  return {
20184
20184
  type: "date",
20185
20185
  value: new Date(
20186
20186
  parseInt(N),
20187
20187
  parseInt(k) - 1,
20188
- parseInt(t0)
20188
+ parseInt(r0)
20189
20189
  ).getTime()
20190
20190
  };
20191
20191
  }
@@ -20199,10 +20199,10 @@ function Ir(c) {
20199
20199
  }
20200
20200
  const P = b.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
20201
20201
  if (P) {
20202
- const [, N, k, t0 = "0"] = P;
20202
+ const [, N, k, r0 = "0"] = P;
20203
20203
  return {
20204
20204
  type: "time",
20205
- value: parseInt(N) * 3600 + parseInt(k) * 60 + parseInt(t0)
20205
+ value: parseInt(N) * 3600 + parseInt(k) * 60 + parseInt(r0)
20206
20206
  };
20207
20207
  }
20208
20208
  return /^\d+$/.test(b) ? { type: "number", value: parseInt(b) } : null;
@@ -20255,7 +20255,7 @@ function Ke(c) {
20255
20255
  return Number.isFinite(m) ? m : null;
20256
20256
  }
20257
20257
  function Ha(c) {
20258
- var U, K, Z, c0, a0, u0;
20258
+ var U, Z, e0, M0, a0, i0;
20259
20259
  const {
20260
20260
  rows: b = [],
20261
20261
  columns: D = [],
@@ -20265,86 +20265,86 @@ function Ha(c) {
20265
20265
  pageSize: W = 0
20266
20266
  } = c;
20267
20267
  let v = Array.isArray(b) ? [...b] : [];
20268
- T === "BOTTOM" && ((U = v.at(-1)) != null && U.isRollup) && v.pop(), T === "TOP" && ((K = v[0]) != null && K.isRollup) && v.shift();
20268
+ T === "BOTTOM" && ((U = v.at(-1)) != null && U.isRollup) && v.pop(), T === "TOP" && ((Z = v[0]) != null && Z.isRollup) && v.shift();
20269
20269
  let P = 0;
20270
- for (const r0 of v)
20271
- r0.isRollup && P++, r0.groupIndex = P;
20270
+ for (const n0 of v)
20271
+ n0.isRollup && P++, n0.groupIndex = P;
20272
20272
  const N = {};
20273
- for (const r0 of D) N[r0.key] = r0.type === "NUMERIC";
20273
+ for (const n0 of D) N[n0.key] = n0.type === "NUMERIC";
20274
20274
  const k = $.filter(
20275
- (r0) => r0.key && D.some((o0) => o0.key === r0.key)
20276
- ), t0 = k.length > 0;
20277
- let p0 = b;
20278
- m !== null && (p0 = p0.filter((r0) => !(m !== "" && (r0.isRollup === !0 || !r0.cells.some(
20275
+ (n0) => n0.key && D.some((o0) => o0.key === n0.key)
20276
+ ), r0 = k.length > 0;
20277
+ let d0 = b;
20278
+ m !== null && (d0 = d0.filter((n0) => !(m !== "" && (n0.isRollup === !0 || !n0.cells.some(
20279
20279
  (o0) => ((o0 == null ? void 0 : o0.toLowerCase()) || "").includes(m == null ? void 0 : m.toLowerCase())
20280
- )))).map((r0) => ({
20281
- ...Pa(r0, D),
20282
- groupIndex: r0.groupIndex
20280
+ )))).map((n0) => ({
20281
+ ...Pa(n0, D),
20282
+ groupIndex: n0.groupIndex
20283
20283
  })));
20284
- const s0 = {};
20285
- for (const r0 of p0) {
20286
- const o0 = r0.groupIndex;
20287
- o0 !== void 0 && (s0[o0] || (s0[o0] = [])).push(r0);
20284
+ const u0 = {};
20285
+ for (const n0 of d0) {
20286
+ const o0 = n0.groupIndex;
20287
+ o0 !== void 0 && (u0[o0] || (u0[o0] = [])).push(n0);
20288
20288
  }
20289
- t0 && Object.values(s0).forEach((r0) => {
20290
- const o0 = r0.filter((z0) => z0.isRollup), f0 = r0.filter((z0) => !z0.isRollup);
20291
- f0.sort((z0, d0) => {
20292
- for (const { key: e0, type: O0 } of k) {
20293
- const y0 = O0 === "ASC" ? 1 : -1, _0 = je(z0, e0, D) ?? "", t = je(d0, e0, D) ?? "";
20294
- if (N[e0]) {
20295
- const i = Ke(_0), l = Ke(t);
20289
+ r0 && Object.values(u0).forEach((n0) => {
20290
+ const o0 = n0.filter((z0) => z0.isRollup), $0 = n0.filter((z0) => !z0.isRollup);
20291
+ $0.sort((z0, b0) => {
20292
+ for (const { key: t0, type: A0 } of k) {
20293
+ const y0 = A0 === "ASC" ? 1 : -1, p0 = je(z0, t0, D) ?? "", t = je(b0, t0, D) ?? "";
20294
+ if (N[t0]) {
20295
+ const i = Ke(p0), l = Ke(t);
20296
20296
  if (i !== null && l !== null) {
20297
20297
  const h = i - l;
20298
20298
  if (h !== 0) return h * y0;
20299
20299
  }
20300
- const A = Ve.compare(String(_0), String(t));
20300
+ const A = Ve.compare(String(p0), String(t));
20301
20301
  if (A !== 0) return A * y0;
20302
20302
  } else {
20303
- const i = Fr(_0, t);
20303
+ const i = Fr(p0, t);
20304
20304
  if (i !== null && i !== 0)
20305
20305
  return i * y0;
20306
- const l = Ve.compare(String(_0), String(t));
20306
+ const l = Ve.compare(String(p0), String(t));
20307
20307
  if (l !== 0) return l * y0;
20308
20308
  }
20309
20309
  }
20310
20310
  return 0;
20311
- }), s0[r0[0].groupIndex] = o0.concat(f0);
20311
+ }), u0[n0[0].groupIndex] = o0.concat($0);
20312
20312
  });
20313
- let n0;
20314
- if (t0) {
20315
- const r0 = T === null ? (() => {
20316
- const z0 = Object.keys(s0).find((d0) => {
20317
- const e0 = s0[d0] || [], O0 = e0.some((_0) => _0.isRollup), y0 = e0.some((_0) => !_0.isRollup);
20318
- return O0 && !y0;
20313
+ let K;
20314
+ if (r0) {
20315
+ const n0 = T === null ? (() => {
20316
+ const z0 = Object.keys(u0).find((b0) => {
20317
+ const t0 = u0[b0] || [], A0 = t0.some((p0) => p0.isRollup), y0 = t0.some((p0) => !p0.isRollup);
20318
+ return A0 && !y0;
20319
20319
  });
20320
20320
  return z0 !== void 0 ? Number(z0) : -1;
20321
- })() : -1, o0 = ((Z = k[0]) == null ? void 0 : Z.key) ?? ((c0 = D.find((z0) => N[z0.key])) == null ? void 0 : c0.key), f0 = ((a0 = k[0]) == null ? void 0 : a0.type) === "ASC" ? 1 : (((u0 = k[0]) == null ? void 0 : u0.type) === "DESC", -1);
20322
- n0 = Object.keys(s0).map(Number).sort((z0, d0) => {
20323
- if (!o0) return z0 - d0;
20324
- if (r0 !== -1) {
20325
- if (z0 === r0) return -1;
20326
- if (d0 === r0) return 1;
20327
- }
20328
- const e0 = s0[z0].find((i) => i.isRollup), O0 = s0[d0].find((i) => i.isRollup), y0 = e0 ? je(e0, o0, D) ?? "" : "", _0 = O0 ? je(O0, o0, D) ?? "" : "";
20321
+ })() : -1, o0 = ((e0 = k[0]) == null ? void 0 : e0.key) ?? ((M0 = D.find((z0) => N[z0.key])) == null ? void 0 : M0.key), $0 = ((a0 = k[0]) == null ? void 0 : a0.type) === "ASC" ? 1 : (((i0 = k[0]) == null ? void 0 : i0.type) === "DESC", -1);
20322
+ K = Object.keys(u0).map(Number).sort((z0, b0) => {
20323
+ if (!o0) return z0 - b0;
20324
+ if (n0 !== -1) {
20325
+ if (z0 === n0) return -1;
20326
+ if (b0 === n0) return 1;
20327
+ }
20328
+ const t0 = u0[z0].find((i) => i.isRollup), A0 = u0[b0].find((i) => i.isRollup), y0 = t0 ? je(t0, o0, D) ?? "" : "", p0 = A0 ? je(A0, o0, D) ?? "" : "";
20329
20329
  if (N[o0]) {
20330
- const i = Ke(y0), l = Ke(_0);
20331
- return i !== null && l !== null ? (i - l) * f0 : Ve.compare(String(y0), String(_0)) * f0;
20330
+ const i = Ke(y0), l = Ke(p0);
20331
+ return i !== null && l !== null ? (i - l) * $0 : Ve.compare(String(y0), String(p0)) * $0;
20332
20332
  }
20333
- const t = Fr(y0, _0);
20334
- return t !== null ? t * f0 : Ve.compare(String(y0), String(_0)) * f0;
20333
+ const t = Fr(y0, p0);
20334
+ return t !== null ? t * $0 : Ve.compare(String(y0), String(p0)) * $0;
20335
20335
  });
20336
20336
  } else
20337
- n0 = Object.keys(s0).map(Number).sort((r0, o0) => r0 - o0);
20338
- const H = [];
20339
- for (const r0 of n0)
20340
- for (const { groupIndex: o0, ...f0 } of s0[r0])
20341
- H.push(f0);
20337
+ K = Object.keys(u0).map(Number).sort((n0, o0) => n0 - o0);
20338
+ const X = [];
20339
+ for (const n0 of K)
20340
+ for (const { groupIndex: o0, ...$0 } of u0[n0])
20341
+ X.push($0);
20342
20342
  if (W > 0) {
20343
- const r0 = H.length % W;
20343
+ const n0 = X.length % W;
20344
20344
  let o0 = 0;
20345
- r0 > 0 ? o0 = W - r0 : H.length === 0 && (o0 = W), o0 > 0 && H.push(...Ja(o0, D));
20345
+ n0 > 0 ? o0 = W - n0 : X.length === 0 && (o0 = W), o0 > 0 && X.push(...Ja(o0, D));
20346
20346
  }
20347
- return { data: H };
20347
+ return { data: X };
20348
20348
  }
20349
20349
  var Xa = { processTableData: Ha }, sn = { exports: {} }, un = { exports: {} };
20350
20350
  //! moment.js
@@ -20539,7 +20539,7 @@ function L1(c, b, D) {
20539
20539
  return (T ? D ? "+" : "" : "-") + Math.pow(10, Math.max(0, m)).toString().substr(1) + $;
20540
20540
  }
20541
20541
  var er = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Ze = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Tt = {}, ze = {};
20542
- function A0(c, b, D, $) {
20542
+ function O0(c, b, D, $) {
20543
20543
  var m = $;
20544
20544
  typeof $ == "string" && (m = function() {
20545
20545
  return this[$]();
@@ -20716,7 +20716,7 @@ function lo(c) {
20716
20716
  }
20717
20717
  var _n = /\d/, O1 = /\d\d/, dn = /\d{3}/, rr = /\d{4}/, dt = /[+-]?\d{6}/, H0 = /\d\d?/, zn = /\d\d\d\d?/, On = /\d\d\d\d\d\d?/, zt = /\d{1,3}/, nr = /\d{1,4}/, Ot = /[+-]?\d{1,6}/, De = /\d+/, At = /[+-]?\d+/, po = /Z|[+-]\d\d:?\d\d/gi, Dt = /Z|[+-]\d\d(?::?\d\d)?/gi, co = /[+-]?\d+(\.\d{1,3})?/, we = /[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, fe = /^[1-9]\d?/, ar = /^([1-9]\d|\d)/, ut;
20718
20718
  ut = {};
20719
- function b0(c, b, D) {
20719
+ function _0(c, b, D) {
20720
20720
  ut[c] = F1(b) ? b : function($, m) {
20721
20721
  return $ && D ? D : b;
20722
20722
  };
@@ -20764,21 +20764,21 @@ function ft(c) {
20764
20764
  return c % 4 === 0 && c % 100 !== 0 || c % 400 === 0;
20765
20765
  }
20766
20766
  var l1 = 0, P1 = 1, W1 = 2, a1 = 3, T1 = 4, J1 = 5, ie = 6, zo = 7, Oo = 8;
20767
- A0("Y", 0, 0, function() {
20767
+ O0("Y", 0, 0, function() {
20768
20768
  var c = this.year();
20769
20769
  return c <= 9999 ? L1(c, 4) : "+" + c;
20770
20770
  });
20771
- A0(0, ["YY", 2], 0, function() {
20771
+ O0(0, ["YY", 2], 0, function() {
20772
20772
  return this.year() % 100;
20773
20773
  });
20774
- A0(0, ["YYYY", 4], 0, "year");
20775
- A0(0, ["YYYYY", 5], 0, "year");
20776
- A0(0, ["YYYYYY", 6, !0], 0, "year");
20777
- b0("Y", At);
20778
- b0("YY", H0, O1);
20779
- b0("YYYY", nr, rr);
20780
- b0("YYYYY", Ot, dt);
20781
- b0("YYYYYY", Ot, dt);
20774
+ O0(0, ["YYYY", 4], 0, "year");
20775
+ O0(0, ["YYYYY", 5], 0, "year");
20776
+ O0(0, ["YYYYYY", 6, !0], 0, "year");
20777
+ _0("Y", At);
20778
+ _0("YY", H0, O1);
20779
+ _0("YYYY", nr, rr);
20780
+ _0("YYYYY", Ot, dt);
20781
+ _0("YYYYYY", Ot, dt);
20782
20782
  F0(["YYYYY", "YYYYYY"], l1);
20783
20783
  F0("YYYY", function(c, b) {
20784
20784
  b[l1] = c.length === 2 ? l0.parseTwoDigitYear(c) : T0(c);
@@ -20881,21 +20881,21 @@ function or(c, b) {
20881
20881
  var D = $o(b, 12);
20882
20882
  return c += (b - D) / 12, D === 1 ? ft(c) ? 29 : 28 : 31 - D % 7 % 2;
20883
20883
  }
20884
- A0("M", ["MM", 2], "Mo", function() {
20884
+ O0("M", ["MM", 2], "Mo", function() {
20885
20885
  return this.month() + 1;
20886
20886
  });
20887
- A0("MMM", 0, 0, function(c) {
20887
+ O0("MMM", 0, 0, function(c) {
20888
20888
  return this.localeData().monthsShort(this, c);
20889
20889
  });
20890
- A0("MMMM", 0, 0, function(c) {
20890
+ O0("MMMM", 0, 0, function(c) {
20891
20891
  return this.localeData().months(this, c);
20892
20892
  });
20893
- b0("M", H0, fe);
20894
- b0("MM", H0, O1);
20895
- b0("MMM", function(c, b) {
20893
+ _0("M", H0, fe);
20894
+ _0("MM", H0, O1);
20895
+ _0("MMM", function(c, b) {
20896
20896
  return b.monthsShortRegex(c);
20897
20897
  });
20898
- b0("MMMM", function(c, b) {
20898
+ _0("MMMM", function(c, b) {
20899
20899
  return b.monthsRegex(c);
20900
20900
  });
20901
20901
  F0(["M", "MM"], function(c, b) {
@@ -21012,12 +21012,12 @@ function X1(c, b, D) {
21012
21012
  var $ = lt(c, b, D), m = lt(c + 1, b, D);
21013
21013
  return (Ce(c) - $ + m) / 7;
21014
21014
  }
21015
- A0("w", ["ww", 2], "wo", "week");
21016
- A0("W", ["WW", 2], "Wo", "isoWeek");
21017
- b0("w", H0, fe);
21018
- b0("ww", H0, O1);
21019
- b0("W", H0, fe);
21020
- b0("WW", H0, O1);
21015
+ O0("w", ["ww", 2], "wo", "week");
21016
+ O0("W", ["WW", 2], "Wo", "isoWeek");
21017
+ _0("w", H0, fe);
21018
+ _0("ww", H0, O1);
21019
+ _0("W", H0, fe);
21020
+ _0("WW", H0, O1);
21021
21021
  Pe(
21022
21022
  ["w", "ww", "W", "WW"],
21023
21023
  function(c, b, D, $) {
@@ -21047,28 +21047,28 @@ function xo(c) {
21047
21047
  var b = Ie(this, 1, 4).week;
21048
21048
  return c == null ? b : this.add((c - b) * 7, "d");
21049
21049
  }
21050
- A0("d", 0, "do", "day");
21051
- A0("dd", 0, 0, function(c) {
21050
+ O0("d", 0, "do", "day");
21051
+ O0("dd", 0, 0, function(c) {
21052
21052
  return this.localeData().weekdaysMin(this, c);
21053
21053
  });
21054
- A0("ddd", 0, 0, function(c) {
21054
+ O0("ddd", 0, 0, function(c) {
21055
21055
  return this.localeData().weekdaysShort(this, c);
21056
21056
  });
21057
- A0("dddd", 0, 0, function(c) {
21057
+ O0("dddd", 0, 0, function(c) {
21058
21058
  return this.localeData().weekdays(this, c);
21059
21059
  });
21060
- A0("e", 0, 0, "weekday");
21061
- A0("E", 0, 0, "isoWeekday");
21062
- b0("d", H0);
21063
- b0("e", H0);
21064
- b0("E", H0);
21065
- b0("dd", function(c, b) {
21060
+ O0("e", 0, 0, "weekday");
21061
+ O0("E", 0, 0, "isoWeekday");
21062
+ _0("d", H0);
21063
+ _0("e", H0);
21064
+ _0("E", H0);
21065
+ _0("dd", function(c, b) {
21066
21066
  return b.weekdaysMinRegex(c);
21067
21067
  });
21068
- b0("ddd", function(c, b) {
21068
+ _0("ddd", function(c, b) {
21069
21069
  return b.weekdaysShortRegex(c);
21070
21070
  });
21071
- b0("dddd", function(c, b) {
21071
+ _0("dddd", function(c, b) {
21072
21072
  return b.weekdaysRegex(c);
21073
21073
  });
21074
21074
  Pe(["dd", "ddd", "dddd"], function(c, b, D, $) {
@@ -21166,8 +21166,8 @@ function ri(c) {
21166
21166
  return this._weekdaysParseExact ? (L0(this, "_weekdaysRegex") || sr.call(this), c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (L0(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = ko), this._weekdaysMinStrictRegex && c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
21167
21167
  }
21168
21168
  function sr() {
21169
- function c(k, t0) {
21170
- return t0.length - k.length;
21169
+ function c(k, r0) {
21170
+ return r0.length - k.length;
21171
21171
  }
21172
21172
  var b = [], D = [], $ = [], m = [], T, W, v, P, N;
21173
21173
  for (T = 0; T < 7; T++)
@@ -21189,23 +21189,23 @@ function ur() {
21189
21189
  function ni() {
21190
21190
  return this.hours() || 24;
21191
21191
  }
21192
- A0("H", ["HH", 2], 0, "hour");
21193
- A0("h", ["hh", 2], 0, ur);
21194
- A0("k", ["kk", 2], 0, ni);
21195
- A0("hmm", 0, 0, function() {
21192
+ O0("H", ["HH", 2], 0, "hour");
21193
+ O0("h", ["hh", 2], 0, ur);
21194
+ O0("k", ["kk", 2], 0, ni);
21195
+ O0("hmm", 0, 0, function() {
21196
21196
  return "" + ur.apply(this) + L1(this.minutes(), 2);
21197
21197
  });
21198
- A0("hmmss", 0, 0, function() {
21198
+ O0("hmmss", 0, 0, function() {
21199
21199
  return "" + ur.apply(this) + L1(this.minutes(), 2) + L1(this.seconds(), 2);
21200
21200
  });
21201
- A0("Hmm", 0, 0, function() {
21201
+ O0("Hmm", 0, 0, function() {
21202
21202
  return "" + this.hours() + L1(this.minutes(), 2);
21203
21203
  });
21204
- A0("Hmmss", 0, 0, function() {
21204
+ O0("Hmmss", 0, 0, function() {
21205
21205
  return "" + this.hours() + L1(this.minutes(), 2) + L1(this.seconds(), 2);
21206
21206
  });
21207
21207
  function Sn(c, b) {
21208
- A0(c, 0, 0, function() {
21208
+ O0(c, 0, 0, function() {
21209
21209
  return this.localeData().meridiem(
21210
21210
  this.hours(),
21211
21211
  this.minutes(),
@@ -21218,18 +21218,18 @@ Sn("A", !1);
21218
21218
  function Tn(c, b) {
21219
21219
  return b._meridiemParse;
21220
21220
  }
21221
- b0("a", Tn);
21222
- b0("A", Tn);
21223
- b0("H", H0, ar);
21224
- b0("h", H0, fe);
21225
- b0("k", H0, fe);
21226
- b0("HH", H0, O1);
21227
- b0("hh", H0, O1);
21228
- b0("kk", H0, O1);
21229
- b0("hmm", zn);
21230
- b0("hmmss", On);
21231
- b0("Hmm", zn);
21232
- b0("Hmmss", On);
21221
+ _0("a", Tn);
21222
+ _0("A", Tn);
21223
+ _0("H", H0, ar);
21224
+ _0("h", H0, fe);
21225
+ _0("k", H0, fe);
21226
+ _0("HH", H0, O1);
21227
+ _0("hh", H0, O1);
21228
+ _0("kk", H0, O1);
21229
+ _0("hmm", zn);
21230
+ _0("hmmss", On);
21231
+ _0("Hmm", zn);
21232
+ _0("Hmmss", On);
21233
21233
  F0(["H", "HH"], a1);
21234
21234
  F0(["k", "kk"], function(c, b, D) {
21235
21235
  var $ = T0(c);
@@ -21703,15 +21703,15 @@ function wi(c, b, D) {
21703
21703
  return T + m;
21704
21704
  }
21705
21705
  function Fn(c, b) {
21706
- A0(c, 0, 0, function() {
21706
+ O0(c, 0, 0, function() {
21707
21707
  var D = this.utcOffset(), $ = "+";
21708
21708
  return D < 0 && (D = -D, $ = "-"), $ + L1(~~(D / 60), 2) + b + L1(~~D % 60, 2);
21709
21709
  });
21710
21710
  }
21711
21711
  Fn("Z", ":");
21712
21712
  Fn("ZZ", "");
21713
- b0("Z", Dt);
21714
- b0("ZZ", Dt);
21713
+ _0("Z", Dt);
21714
+ _0("ZZ", Dt);
21715
21715
  F0(["Z", "ZZ"], function(c, b, D) {
21716
21716
  D._useUTC = !0, D._tzm = br(Dt, c);
21717
21717
  });
@@ -22195,20 +22195,20 @@ function Bs() {
22195
22195
  strict: this._strict
22196
22196
  };
22197
22197
  }
22198
- A0("N", 0, 0, "eraAbbr");
22199
- A0("NN", 0, 0, "eraAbbr");
22200
- A0("NNN", 0, 0, "eraAbbr");
22201
- A0("NNNN", 0, 0, "eraName");
22202
- A0("NNNNN", 0, 0, "eraNarrow");
22203
- A0("y", ["y", 1], "yo", "eraYear");
22204
- A0("y", ["yy", 2], 0, "eraYear");
22205
- A0("y", ["yyy", 3], 0, "eraYear");
22206
- A0("y", ["yyyy", 4], 0, "eraYear");
22207
- b0("N", dr);
22208
- b0("NN", dr);
22209
- b0("NNN", dr);
22210
- b0("NNNN", Ys);
22211
- b0("NNNNN", Gs);
22198
+ O0("N", 0, 0, "eraAbbr");
22199
+ O0("NN", 0, 0, "eraAbbr");
22200
+ O0("NNN", 0, 0, "eraAbbr");
22201
+ O0("NNNN", 0, 0, "eraName");
22202
+ O0("NNNNN", 0, 0, "eraNarrow");
22203
+ O0("y", ["y", 1], "yo", "eraYear");
22204
+ O0("y", ["yy", 2], 0, "eraYear");
22205
+ O0("y", ["yyy", 3], 0, "eraYear");
22206
+ O0("y", ["yyyy", 4], 0, "eraYear");
22207
+ _0("N", dr);
22208
+ _0("NN", dr);
22209
+ _0("NNN", dr);
22210
+ _0("NNNN", Ys);
22211
+ _0("NNNNN", Gs);
22212
22212
  F0(
22213
22213
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
22214
22214
  function(c, b, D, $) {
@@ -22216,11 +22216,11 @@ F0(
22216
22216
  m ? q0(D).era = m : q0(D).invalidEra = c;
22217
22217
  }
22218
22218
  );
22219
- b0("y", De);
22220
- b0("yy", De);
22221
- b0("yyy", De);
22222
- b0("yyyy", De);
22223
- b0("yo", Qs);
22219
+ _0("y", De);
22220
+ _0("yy", De);
22221
+ _0("yyy", De);
22222
+ _0("yyyy", De);
22223
+ _0("yo", Qs);
22224
22224
  F0(["y", "yy", "yyy", "yyyy"], l1);
22225
22225
  F0(["yo"], function(c, b, D, $) {
22226
22226
  var m;
@@ -22330,27 +22330,27 @@ function zr() {
22330
22330
  "i"
22331
22331
  );
22332
22332
  }
22333
- A0(0, ["gg", 2], 0, function() {
22333
+ O0(0, ["gg", 2], 0, function() {
22334
22334
  return this.weekYear() % 100;
22335
22335
  });
22336
- A0(0, ["GG", 2], 0, function() {
22336
+ O0(0, ["GG", 2], 0, function() {
22337
22337
  return this.isoWeekYear() % 100;
22338
22338
  });
22339
22339
  function mt(c, b) {
22340
- A0(0, [c, c.length], 0, b);
22340
+ O0(0, [c, c.length], 0, b);
22341
22341
  }
22342
22342
  mt("gggg", "weekYear");
22343
22343
  mt("ggggg", "weekYear");
22344
22344
  mt("GGGG", "isoWeekYear");
22345
22345
  mt("GGGGG", "isoWeekYear");
22346
- b0("G", At);
22347
- b0("g", At);
22348
- b0("GG", H0, O1);
22349
- b0("gg", H0, O1);
22350
- b0("GGGG", nr, rr);
22351
- b0("gggg", nr, rr);
22352
- b0("GGGGG", Ot, dt);
22353
- b0("ggggg", Ot, dt);
22346
+ _0("G", At);
22347
+ _0("g", At);
22348
+ _0("GG", H0, O1);
22349
+ _0("gg", H0, O1);
22350
+ _0("GGGG", nr, rr);
22351
+ _0("gggg", nr, rr);
22352
+ _0("GGGGG", Ot, dt);
22353
+ _0("ggggg", Ot, dt);
22354
22354
  Pe(
22355
22355
  ["gggg", "ggggg", "GGGG", "GGGGG"],
22356
22356
  function(c, b, D, $) {
@@ -22402,18 +22402,18 @@ function ru(c, b, D, $, m) {
22402
22402
  var T = gn(c, b, D, $, m), W = Le(T.year, 0, T.dayOfYear);
22403
22403
  return this.year(W.getUTCFullYear()), this.month(W.getUTCMonth()), this.date(W.getUTCDate()), this;
22404
22404
  }
22405
- A0("Q", 0, "Qo", "quarter");
22406
- b0("Q", _n);
22405
+ O0("Q", 0, "Qo", "quarter");
22406
+ _0("Q", _n);
22407
22407
  F0("Q", function(c, b) {
22408
22408
  b[P1] = (T0(c) - 1) * 3;
22409
22409
  });
22410
22410
  function nu(c) {
22411
22411
  return c == null ? Math.ceil((this.month() + 1) / 3) : this.month((c - 1) * 3 + this.month() % 3);
22412
22412
  }
22413
- A0("D", ["DD", 2], "Do", "date");
22414
- b0("D", H0, fe);
22415
- b0("DD", H0, O1);
22416
- b0("Do", function(c, b) {
22413
+ O0("D", ["DD", 2], "Do", "date");
22414
+ _0("D", H0, fe);
22415
+ _0("DD", H0, O1);
22416
+ _0("Do", function(c, b) {
22417
22417
  return c ? b._dayOfMonthOrdinalParse || b._ordinalParse : b._dayOfMonthOrdinalParseLenient;
22418
22418
  });
22419
22419
  F0(["D", "DD"], W1);
@@ -22421,9 +22421,9 @@ F0("Do", function(c, b) {
22421
22421
  b[W1] = T0(c.match(H0)[0]);
22422
22422
  });
22423
22423
  var Yn = $e("Date", !0);
22424
- A0("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
22425
- b0("DDD", zt);
22426
- b0("DDDD", dn);
22424
+ O0("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
22425
+ _0("DDD", zt);
22426
+ _0("DDDD", dn);
22427
22427
  F0(["DDD", "DDDD"], function(c, b, D) {
22428
22428
  D._dayOfYear = T0(c);
22429
22429
  });
@@ -22433,55 +22433,55 @@ function au(c) {
22433
22433
  ) + 1;
22434
22434
  return c == null ? b : this.add(c - b, "d");
22435
22435
  }
22436
- A0("m", ["mm", 2], 0, "minute");
22437
- b0("m", H0, ar);
22438
- b0("mm", H0, O1);
22436
+ O0("m", ["mm", 2], 0, "minute");
22437
+ _0("m", H0, ar);
22438
+ _0("mm", H0, O1);
22439
22439
  F0(["m", "mm"], T1);
22440
22440
  var ou = $e("Minutes", !1);
22441
- A0("s", ["ss", 2], 0, "second");
22442
- b0("s", H0, ar);
22443
- b0("ss", H0, O1);
22441
+ O0("s", ["ss", 2], 0, "second");
22442
+ _0("s", H0, ar);
22443
+ _0("ss", H0, O1);
22444
22444
  F0(["s", "ss"], J1);
22445
22445
  var iu = $e("Seconds", !1);
22446
- A0("S", 0, 0, function() {
22446
+ O0("S", 0, 0, function() {
22447
22447
  return ~~(this.millisecond() / 100);
22448
22448
  });
22449
- A0(0, ["SS", 2], 0, function() {
22449
+ O0(0, ["SS", 2], 0, function() {
22450
22450
  return ~~(this.millisecond() / 10);
22451
22451
  });
22452
- A0(0, ["SSS", 3], 0, "millisecond");
22453
- A0(0, ["SSSS", 4], 0, function() {
22452
+ O0(0, ["SSS", 3], 0, "millisecond");
22453
+ O0(0, ["SSSS", 4], 0, function() {
22454
22454
  return this.millisecond() * 10;
22455
22455
  });
22456
- A0(0, ["SSSSS", 5], 0, function() {
22456
+ O0(0, ["SSSSS", 5], 0, function() {
22457
22457
  return this.millisecond() * 100;
22458
22458
  });
22459
- A0(0, ["SSSSSS", 6], 0, function() {
22459
+ O0(0, ["SSSSSS", 6], 0, function() {
22460
22460
  return this.millisecond() * 1e3;
22461
22461
  });
22462
- A0(0, ["SSSSSSS", 7], 0, function() {
22462
+ O0(0, ["SSSSSSS", 7], 0, function() {
22463
22463
  return this.millisecond() * 1e4;
22464
22464
  });
22465
- A0(0, ["SSSSSSSS", 8], 0, function() {
22465
+ O0(0, ["SSSSSSSS", 8], 0, function() {
22466
22466
  return this.millisecond() * 1e5;
22467
22467
  });
22468
- A0(0, ["SSSSSSSSS", 9], 0, function() {
22468
+ O0(0, ["SSSSSSSSS", 9], 0, function() {
22469
22469
  return this.millisecond() * 1e6;
22470
22470
  });
22471
- b0("S", zt, _n);
22472
- b0("SS", zt, O1);
22473
- b0("SSS", zt, dn);
22471
+ _0("S", zt, _n);
22472
+ _0("SS", zt, O1);
22473
+ _0("SSS", zt, dn);
22474
22474
  var K1, Gn;
22475
22475
  for (K1 = "SSSS"; K1.length <= 9; K1 += "S")
22476
- b0(K1, De);
22476
+ _0(K1, De);
22477
22477
  function su(c, b) {
22478
22478
  b[ie] = T0(("0." + c) * 1e3);
22479
22479
  }
22480
22480
  for (K1 = "S"; K1.length <= 9; K1 += "S")
22481
22481
  F0(K1, su);
22482
22482
  Gn = $e("Milliseconds", !1);
22483
- A0("z", 0, 0, "zoneAbbr");
22484
- A0("zz", 0, 0, "zoneName");
22483
+ O0("z", 0, 0, "zoneAbbr");
22484
+ O0("zz", 0, 0, "zoneName");
22485
22485
  function uu() {
22486
22486
  return this._isUTC ? "UTC" : "";
22487
22487
  }
@@ -22799,8 +22799,8 @@ function Pu(c, b, D, $, m) {
22799
22799
  return m.relativeTime(b || 1, !!D, c, $);
22800
22800
  }
22801
22801
  function Ju(c, b, D, $) {
22802
- var m = C1(c).abs(), T = w1(m.as("s")), W = w1(m.as("m")), v = w1(m.as("h")), P = w1(m.as("d")), N = w1(m.as("M")), k = w1(m.as("w")), t0 = w1(m.as("y")), p0 = T <= D.ss && ["s", T] || T < D.s && ["ss", T] || W <= 1 && ["m"] || W < D.m && ["mm", W] || v <= 1 && ["h"] || v < D.h && ["hh", v] || P <= 1 && ["d"] || P < D.d && ["dd", P];
22803
- return D.w != null && (p0 = p0 || k <= 1 && ["w"] || k < D.w && ["ww", k]), p0 = p0 || N <= 1 && ["M"] || N < D.M && ["MM", N] || t0 <= 1 && ["y"] || ["yy", t0], p0[2] = b, p0[3] = +c > 0, p0[4] = $, Pu.apply(null, p0);
22802
+ var m = C1(c).abs(), T = w1(m.as("s")), W = w1(m.as("m")), v = w1(m.as("h")), P = w1(m.as("d")), N = w1(m.as("M")), k = w1(m.as("w")), r0 = w1(m.as("y")), d0 = T <= D.ss && ["s", T] || T < D.s && ["ss", T] || W <= 1 && ["m"] || W < D.m && ["mm", W] || v <= 1 && ["h"] || v < D.h && ["hh", v] || P <= 1 && ["d"] || P < D.d && ["dd", P];
22803
+ return D.w != null && (d0 = d0 || k <= 1 && ["w"] || k < D.w && ["ww", k]), d0 = d0 || N <= 1 && ["M"] || N < D.M && ["MM", N] || r0 <= 1 && ["y"] || ["yy", r0], d0[2] = b, d0[3] = +c > 0, d0[4] = $, Pu.apply(null, d0);
22804
22804
  }
22805
22805
  function Hu(c) {
22806
22806
  return c === void 0 ? w1 : typeof c == "function" ? (w1 = c, !0) : !1;
@@ -22821,8 +22821,8 @@ function ce(c) {
22821
22821
  function qt() {
22822
22822
  if (!this.isValid())
22823
22823
  return this.localeData().invalidDate();
22824
- var c = Rt(this._milliseconds) / 1e3, b = Rt(this._days), D = Rt(this._months), $, m, T, W, v = this.asSeconds(), P, N, k, t0;
22825
- return v ? ($ = $1(c / 60), m = $1($ / 60), c %= 60, $ %= 60, T = $1(D / 12), D %= 12, W = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = v < 0 ? "-" : "", N = ce(this._months) !== ce(v) ? "-" : "", k = ce(this._days) !== ce(v) ? "-" : "", t0 = ce(this._milliseconds) !== ce(v) ? "-" : "", P + "P" + (T ? N + T + "Y" : "") + (D ? N + D + "M" : "") + (b ? k + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? t0 + m + "H" : "") + ($ ? t0 + $ + "M" : "") + (c ? t0 + W + "S" : "")) : "P0D";
22824
+ var c = Rt(this._milliseconds) / 1e3, b = Rt(this._days), D = Rt(this._months), $, m, T, W, v = this.asSeconds(), P, N, k, r0;
22825
+ return v ? ($ = $1(c / 60), m = $1($ / 60), c %= 60, $ %= 60, T = $1(D / 12), D %= 12, W = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", P = v < 0 ? "-" : "", N = ce(this._months) !== ce(v) ? "-" : "", k = ce(this._days) !== ce(v) ? "-" : "", r0 = ce(this._milliseconds) !== ce(v) ? "-" : "", P + "P" + (T ? N + T + "Y" : "") + (D ? N + D + "M" : "") + (b ? k + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? r0 + m + "H" : "") + ($ ? r0 + $ + "M" : "") + (c ? r0 + W + "S" : "")) : "P0D";
22826
22826
  }
22827
22827
  var W0 = yt.prototype;
22828
22828
  W0.isValid = xi;
@@ -22862,10 +22862,10 @@ W0.toIsoString = y1(
22862
22862
  qt
22863
22863
  );
22864
22864
  W0.lang = Pn;
22865
- A0("X", 0, 0, "unix");
22866
- A0("x", 0, 0, "valueOf");
22867
- b0("x", At);
22868
- b0("X", co);
22865
+ O0("X", 0, 0, "unix");
22866
+ O0("x", 0, 0, "valueOf");
22867
+ _0("x", At);
22868
+ _0("X", co);
22869
22869
  F0("X", function(c, b, D) {
22870
22870
  D._d = new Date(parseFloat(c) * 1e3);
22871
22871
  });
@@ -22938,24 +22938,24 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22938
22938
  b.version === void 0 && b.default && (b = b.default);
22939
22939
  var D = "0.5.48", $ = {}, m = {}, T = {}, W = {}, v = {}, P;
22940
22940
  (!b || typeof b.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
22941
- var N = b.version.split("."), k = +N[0], t0 = +N[1];
22942
- (k < 2 || k === 2 && t0 < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
22943
- function p0(d) {
22941
+ var N = b.version.split("."), k = +N[0], r0 = +N[1];
22942
+ (k < 2 || k === 2 && r0 < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
22943
+ function d0(d) {
22944
22944
  return d > 96 ? d - 87 : d > 64 ? d - 29 : d - 48;
22945
22945
  }
22946
- function s0(d) {
22946
+ function u0(d) {
22947
22947
  var z = 0, f = d.split("."), y = f[0], q = f[1] || "", g = 1, E, R = 0, I = 1;
22948
22948
  for (d.charCodeAt(0) === 45 && (z = 1, I = -1), z; z < y.length; z++)
22949
- E = p0(y.charCodeAt(z)), R = 60 * R + E;
22949
+ E = d0(y.charCodeAt(z)), R = 60 * R + E;
22950
22950
  for (z = 0; z < q.length; z++)
22951
- g = g / 60, E = p0(q.charCodeAt(z)), R += E * g;
22951
+ g = g / 60, E = d0(q.charCodeAt(z)), R += E * g;
22952
22952
  return R * I;
22953
22953
  }
22954
- function n0(d) {
22954
+ function K(d) {
22955
22955
  for (var z = 0; z < d.length; z++)
22956
- d[z] = s0(d[z]);
22956
+ d[z] = u0(d[z]);
22957
22957
  }
22958
- function H(d, z) {
22958
+ function X(d, z) {
22959
22959
  for (var f = 0; f < z; f++)
22960
22960
  d[f] = Math.round((d[f - 1] || 0) + d[f] * 6e4);
22961
22961
  d[z - 1] = 1 / 0;
@@ -22966,9 +22966,9 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22966
22966
  f[y] = d[z[y]];
22967
22967
  return f;
22968
22968
  }
22969
- function K(d) {
22969
+ function Z(d) {
22970
22970
  var z = d.split("|"), f = z[2].split(" "), y = z[3].split(""), q = z[4].split(" ");
22971
- return n0(f), n0(y), n0(q), H(q, y.length), {
22971
+ return K(f), K(y), K(q), X(q, y.length), {
22972
22972
  name: z[0],
22973
22973
  abbrs: U(z[1].split(" "), y),
22974
22974
  offsets: U(f, y),
@@ -22976,10 +22976,10 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22976
22976
  population: z[5] | 0
22977
22977
  };
22978
22978
  }
22979
- function Z(d) {
22980
- d && this._set(K(d));
22979
+ function e0(d) {
22980
+ d && this._set(Z(d));
22981
22981
  }
22982
- function c0(d, z) {
22982
+ function M0(d, z) {
22983
22983
  var f = z.length;
22984
22984
  if (d < z[0])
22985
22985
  return 0;
@@ -22991,13 +22991,13 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22991
22991
  y = Math.floor((q + g) / 2), z[y] <= d ? q = y : g = y;
22992
22992
  return g;
22993
22993
  }
22994
- Z.prototype = {
22994
+ e0.prototype = {
22995
22995
  _set: function(d) {
22996
22996
  this.name = d.name, this.abbrs = d.abbrs, this.untils = d.untils, this.offsets = d.offsets, this.population = d.population;
22997
22997
  },
22998
22998
  _index: function(d) {
22999
22999
  var z = +d, f = this.untils, y;
23000
- if (y = c0(z, f), y >= 0)
23000
+ if (y = M0(z, f), y >= 0)
23001
23001
  return y;
23002
23002
  },
23003
23003
  countries: function() {
@@ -23026,38 +23026,38 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23026
23026
  function a0(d, z) {
23027
23027
  this.name = d, this.zones = z;
23028
23028
  }
23029
- function u0(d) {
23029
+ function i0(d) {
23030
23030
  var z = d.toTimeString(), f = z.match(/\([a-z ]+\)/i);
23031
23031
  f && f[0] ? (f = f[0].match(/[A-Z]/g), f = f ? f.join("") : void 0) : (f = z.match(/[A-Z]{3,5}/g), f = f ? f[0] : void 0), f === "GMT" && (f = void 0), this.at = +d, this.abbr = f, this.offset = d.getTimezoneOffset();
23032
23032
  }
23033
- function r0(d) {
23033
+ function n0(d) {
23034
23034
  this.zone = d, this.offsetScore = 0, this.abbrScore = 0;
23035
23035
  }
23036
- r0.prototype.scoreOffsetAt = function(d) {
23036
+ n0.prototype.scoreOffsetAt = function(d) {
23037
23037
  this.offsetScore += Math.abs(this.zone.utcOffset(d.at) - d.offset), this.zone.abbr(d.at).replace(/[^A-Z]/g, "") !== d.abbr && this.abbrScore++;
23038
23038
  };
23039
23039
  function o0(d, z) {
23040
23040
  for (var f, y; y = ((z.at - d.at) / 12e4 | 0) * 6e4; )
23041
- f = new u0(new Date(d.at + y)), f.offset === d.offset ? d = f : z = f;
23041
+ f = new i0(new Date(d.at + y)), f.offset === d.offset ? d = f : z = f;
23042
23042
  return d;
23043
23043
  }
23044
- function f0() {
23045
- var d = (/* @__PURE__ */ new Date()).getFullYear() - 2, z = new u0(new Date(d, 0, 1)), f = z.offset, y = [z], q, g, E, R;
23044
+ function $0() {
23045
+ var d = (/* @__PURE__ */ new Date()).getFullYear() - 2, z = new i0(new Date(d, 0, 1)), f = z.offset, y = [z], q, g, E, R;
23046
23046
  for (R = 1; R < 48; R++)
23047
- E = new Date(d, R, 1).getTimezoneOffset(), E !== f && (g = new u0(new Date(d, R, 1)), q = o0(z, g), y.push(q), y.push(new u0(new Date(q.at + 6e4))), z = g, f = E);
23047
+ E = new Date(d, R, 1).getTimezoneOffset(), E !== f && (g = new i0(new Date(d, R, 1)), q = o0(z, g), y.push(q), y.push(new i0(new Date(q.at + 6e4))), z = g, f = E);
23048
23048
  for (R = 0; R < 4; R++)
23049
- y.push(new u0(new Date(d + R, 0, 1))), y.push(new u0(new Date(d + R, 6, 1)));
23049
+ y.push(new i0(new Date(d + R, 0, 1))), y.push(new i0(new Date(d + R, 6, 1)));
23050
23050
  return y;
23051
23051
  }
23052
23052
  function z0(d, z) {
23053
23053
  return d.offsetScore !== z.offsetScore ? d.offsetScore - z.offsetScore : d.abbrScore !== z.abbrScore ? d.abbrScore - z.abbrScore : d.zone.population !== z.zone.population ? z.zone.population - d.zone.population : z.zone.name.localeCompare(d.zone.name);
23054
23054
  }
23055
- function d0(d, z) {
23055
+ function b0(d, z) {
23056
23056
  var f, y;
23057
- for (n0(z), f = 0; f < z.length; f++)
23057
+ for (K(z), f = 0; f < z.length; f++)
23058
23058
  y = z[f], v[y] = v[y] || {}, v[y][d] = !0;
23059
23059
  }
23060
- function e0(d) {
23060
+ function t0(d) {
23061
23061
  var z = d.length, f = {}, y = [], q = {}, g, E, R, I;
23062
23062
  for (g = 0; g < z; g++)
23063
23063
  if (R = d[g].offset, !q.hasOwnProperty(R)) {
@@ -23070,40 +23070,40 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23070
23070
  f.hasOwnProperty(g) && y.push(W[g]);
23071
23071
  return y;
23072
23072
  }
23073
- function O0() {
23073
+ function A0() {
23074
23074
  try {
23075
23075
  var d = Intl.DateTimeFormat().resolvedOptions().timeZone;
23076
23076
  if (d && d.length > 3) {
23077
- var z = W[_0(d)];
23077
+ var z = W[p0(d)];
23078
23078
  if (z)
23079
23079
  return z;
23080
23080
  a("Moment Timezone found " + d + " from the Intl api, but did not have that data loaded.");
23081
23081
  }
23082
23082
  } catch {
23083
23083
  }
23084
- var f = f0(), y = f.length, q = e0(f), g = [], E, R, I;
23084
+ var f = $0(), y = f.length, q = t0(f), g = [], E, R, I;
23085
23085
  for (R = 0; R < q.length; R++) {
23086
- for (E = new r0(i(q[R])), I = 0; I < y; I++)
23086
+ for (E = new n0(i(q[R])), I = 0; I < y; I++)
23087
23087
  E.scoreOffsetAt(f[I]);
23088
23088
  g.push(E);
23089
23089
  }
23090
23090
  return g.sort(z0), g.length > 0 ? g[0].zone.name : void 0;
23091
23091
  }
23092
23092
  function y0(d) {
23093
- return (!P || d) && (P = O0()), P;
23093
+ return (!P || d) && (P = A0()), P;
23094
23094
  }
23095
- function _0(d) {
23095
+ function p0(d) {
23096
23096
  return (d || "").toLowerCase().replace(/\//g, "_");
23097
23097
  }
23098
23098
  function t(d) {
23099
23099
  var z, f, y, q;
23100
23100
  for (typeof d == "string" && (d = [d]), z = 0; z < d.length; z++)
23101
- y = d[z].split("|"), f = y[0], q = _0(f), $[q] = d[z], W[q] = f, d0(q, y[2].split(" "));
23101
+ y = d[z].split("|"), f = y[0], q = p0(f), $[q] = d[z], W[q] = f, b0(q, y[2].split(" "));
23102
23102
  }
23103
23103
  function i(d, z) {
23104
- d = _0(d);
23104
+ d = p0(d);
23105
23105
  var f = $[d], y;
23106
- return f instanceof Z ? f : typeof f == "string" ? (f = new Z(f), $[d] = f, f) : m[d] && z !== i && (y = i(m[d], i)) ? (f = $[d] = new Z(), f._set(y), f.name = W[d], f) : null;
23106
+ return f instanceof e0 ? f : typeof f == "string" ? (f = new e0(f), $[d] = f, f) : m[d] && z !== i && (y = i(m[d], i)) ? (f = $[d] = new e0(), f._set(y), f.name = W[d], f) : null;
23107
23107
  }
23108
23108
  function l() {
23109
23109
  var d, z = [];
@@ -23117,7 +23117,7 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23117
23117
  function h(d) {
23118
23118
  var z, f, y, q;
23119
23119
  for (typeof d == "string" && (d = [d]), z = 0; z < d.length; z++)
23120
- f = d[z].split("|"), y = _0(f[0]), q = _0(f[1]), m[y] = q, W[y] = f[0], m[q] = y, W[q] = f[1];
23120
+ f = d[z].split("|"), y = p0(f[0]), q = p0(f[1]), m[y] = q, W[y] = f[0], m[q] = y, W[q] = f[1];
23121
23121
  }
23122
23122
  function L(d) {
23123
23123
  var z, f, y, q;
@@ -23159,7 +23159,7 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23159
23159
  var z = Array.prototype.slice.call(arguments, 0, -1), f = arguments[arguments.length - 1], y = b.utc.apply(null, z), q;
23160
23160
  return !b.isMoment(d) && n(y) && (q = i(f)) && y.add(q.parse(y), "minutes"), y.tz(f), y;
23161
23161
  }
23162
- o.version = D, o.dataVersion = "", o._zones = $, o._links = m, o._names = W, o._countries = T, o.add = t, o.link = h, o.load = r, o.zone = i, o.zoneExists = e, o.guess = y0, o.names = l, o.Zone = Z, o.unpack = K, o.unpackBase60 = s0, o.needsOffset = n, o.moveInvalidForward = !0, o.moveAmbiguousForward = !1, o.countries = A, o.zonesForCountry = O;
23162
+ o.version = D, o.dataVersion = "", o._zones = $, o._links = m, o._names = W, o._countries = T, o.add = t, o.link = h, o.load = r, o.zone = i, o.zoneExists = e, o.guess = y0, o.names = l, o.Zone = e0, o.unpack = Z, o.unpackBase60 = u0, o.needsOffset = n, o.moveInvalidForward = !0, o.moveAmbiguousForward = !1, o.countries = A, o.zonesForCountry = O;
23163
23163
  var s = b.fn;
23164
23164
  b.tz = o, b.defaultZone = null, b.updateOffset = function(d, z) {
23165
23165
  var f = b.defaultZone, y;
@@ -23194,7 +23194,7 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23194
23194
  };
23195
23195
  }
23196
23196
  s.zoneName = u(s.zoneName), s.zoneAbbr = u(s.zoneAbbr), s.utc = p(s.utc), s.local = p(s.local), s.utcOffset = M(s.utcOffset), b.tz.setDefault = function(d) {
23197
- return (k < 2 || k === 2 && t0 < 9) && a("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + b.version + "."), b.defaultZone = d ? i(d) : null, b;
23197
+ return (k < 2 || k === 2 && r0 < 9) && a("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + b.version + "."), b.defaultZone = d ? i(d) : null, b;
23198
23198
  };
23199
23199
  var _ = b.momentProperties;
23200
23200
  return Object.prototype.toString.call(_) === "[object Array]" ? (_.push("_z"), _.push("_a")) : _ && (_._z = null), b;
@@ -24097,56 +24097,56 @@ function nl(c) {
24097
24097
  }
24098
24098
  }
24099
24099
  function al(c) {
24100
- const { responses: b, isCompare: D, mainRequestCount: $, timezone: m } = c, T = b[0], W = T.columns.map((H) => ({
24101
- key: H.id,
24102
- label: H.label,
24103
- type: ul(H.dataType),
24104
- aggregationType: H.aggregationType || void 0,
24105
- dimensionOption: H.optionType || void 0,
24106
- hide: H.hide,
24107
- timeformatter: H.timeFormatter || "",
24108
- formatter: H.formatter || null,
24109
- decimal: H.decimal || 0
24110
- })), v = T.columns, P = (H, U) => H.isRollup && U.aggregationType === "ANY", N = T.rows.map((H) => ({
24100
+ const { responses: b, isCompare: D, mainRequestCount: $, timezone: m } = c, T = b[0], W = T.columns.map((X) => ({
24101
+ key: X.id,
24102
+ label: X.label,
24103
+ type: ul(X.dataType),
24104
+ aggregationType: X.aggregationType || void 0,
24105
+ dimensionOption: X.optionType || void 0,
24106
+ hide: X.hide,
24107
+ timeformatter: X.timeFormatter || "",
24108
+ formatter: X.formatter || null,
24109
+ decimal: X.decimal || 0
24110
+ })), v = T.columns, P = (X, U) => X.isRollup && U.aggregationType === "ANY", N = T.rows.map((X) => ({
24111
24111
  cells: v.map((U) => {
24112
- const K = H.value[U.id] ?? null;
24113
- return P(H, U) || H.isRollup && U.fieldType === "DIMENSION" && U.dataType === "NUMERIC" && K == null ? null : Z0(K, U, m);
24112
+ const Z = X.value[U.id] ?? null;
24113
+ return P(X, U) || X.isRollup && U.fieldType === "DIMENSION" && U.dataType === "NUMERIC" && Z == null ? null : Z0(Z, U, m);
24114
24114
  }),
24115
24115
  comparisonCells: [],
24116
- isRollup: H.isRollup
24116
+ isRollup: X.isRollup
24117
24117
  }));
24118
24118
  if (D) {
24119
24119
  const U = b[$];
24120
24120
  if (U)
24121
- for (let K = 0; K < N.length; K++) {
24122
- const Z = N[K], c0 = T.rows[K], a0 = zl(
24123
- c0,
24121
+ for (let Z = 0; Z < N.length; Z++) {
24122
+ const e0 = N[Z], M0 = T.rows[Z], a0 = zl(
24123
+ M0,
24124
24124
  U.rows,
24125
24125
  T.columns
24126
24126
  );
24127
- a0 && (Z.comparisonCells = v.map(
24128
- (u0) => P(c0, u0) ? null : Z0(
24129
- a0.value[u0.id] ?? null,
24130
- u0,
24127
+ a0 && (e0.comparisonCells = v.map(
24128
+ (i0) => P(M0, i0) ? null : Z0(
24129
+ a0.value[i0.id] ?? null,
24130
+ i0,
24131
24131
  m
24132
24132
  )
24133
24133
  ));
24134
24134
  }
24135
24135
  }
24136
24136
  const k = new Set(
24137
- W.reduce((H, U, K) => (U.hide && H.push(K), H), [])
24138
- ), t0 = k.size > 0 ? W.filter((H, U) => !k.has(U)) : W, p0 = k.size > 0 ? N.map((H) => ({
24139
- ...H,
24140
- cells: H.cells.filter((U, K) => !k.has(K)),
24141
- comparisonCells: H.comparisonCells.filter(
24142
- (U, K) => !k.has(K)
24137
+ W.reduce((X, U, Z) => (U.hide && X.push(Z), X), [])
24138
+ ), r0 = k.size > 0 ? W.filter((X, U) => !k.has(U)) : W, d0 = k.size > 0 ? N.map((X) => ({
24139
+ ...X,
24140
+ cells: X.cells.filter((U, Z) => !k.has(Z)),
24141
+ comparisonCells: X.comparisonCells.filter(
24142
+ (U, Z) => !k.has(Z)
24143
24143
  )
24144
- })) : N, s0 = T.source || c.source || "postgresql", n0 = typeof s0 == "string" && s0.toLowerCase() === "bigquery" ? "bigquery" : "postgresql";
24144
+ })) : N, u0 = T.source || c.source || "postgresql", K = typeof u0 == "string" && u0.toLowerCase() === "bigquery" ? "bigquery" : "postgresql";
24145
24145
  return {
24146
24146
  type: "TABLE",
24147
- columns: t0,
24148
- rows: p0,
24149
- source: n0
24147
+ columns: r0,
24148
+ rows: d0,
24149
+ source: K
24150
24150
  };
24151
24151
  }
24152
24152
  function ol(c) {
@@ -24159,221 +24159,221 @@ function ol(c) {
24159
24159
  timezone: T,
24160
24160
  datasetSort: W
24161
24161
  } = c, v = D[0], P = v.columns.filter(
24162
- (u0) => u0.fieldType === "DIMENSION" && !u0.hide
24162
+ (i0) => i0.fieldType === "DIMENSION" && !i0.hide
24163
24163
  ), N = v.columns.filter(
24164
- (u0) => u0.fieldType === "METRIC" && !u0.hide
24165
- ), k = P[0], t0 = P.length > 1 ? P[1] : null, p0 = [], s0 = /* @__PURE__ */ new Set();
24166
- for (const u0 of v.rows) {
24167
- if (u0.isRollup) continue;
24168
- const r0 = k ? Z0(u0.value[k.id] ?? null, k, T) : "";
24169
- s0.has(r0) || (s0.add(r0), p0.push(r0));
24164
+ (i0) => i0.fieldType === "METRIC" && !i0.hide
24165
+ ), k = P[0], r0 = P.length > 1 ? P[1] : null, d0 = [], u0 = /* @__PURE__ */ new Set();
24166
+ for (const i0 of v.rows) {
24167
+ if (i0.isRollup) continue;
24168
+ const n0 = k ? Z0(i0.value[k.id] ?? null, k, T) : "";
24169
+ u0.has(n0) || (u0.add(n0), d0.push(n0));
24170
24170
  }
24171
- const n0 = /* @__PURE__ */ new Map();
24172
- p0.forEach((u0, r0) => n0.set(u0, r0));
24173
- const H = {
24171
+ const K = /* @__PURE__ */ new Map();
24172
+ d0.forEach((i0, n0) => K.set(i0, n0));
24173
+ const X = {
24174
24174
  start: v.dateRange.start,
24175
24175
  end: v.dateRange.end
24176
24176
  }, U = [];
24177
- let K = [];
24178
- const Z = [];
24179
- if (t0)
24177
+ let Z = [];
24178
+ const e0 = [];
24179
+ if (r0)
24180
24180
  if (W) {
24181
- const u0 = /* @__PURE__ */ new Set(), r0 = p0.map(() => /* @__PURE__ */ new Set());
24181
+ const i0 = /* @__PURE__ */ new Set(), n0 = d0.map(() => /* @__PURE__ */ new Set());
24182
24182
  for (const o0 of v.rows) {
24183
24183
  if (o0.isRollup) continue;
24184
- const f0 = k ? Z0(
24184
+ const $0 = k ? Z0(
24185
24185
  o0.value[k.id] ?? null,
24186
24186
  k,
24187
24187
  T
24188
- ) : "", z0 = n0.get(f0);
24188
+ ) : "", z0 = K.get($0);
24189
24189
  if (z0 == null) continue;
24190
- const d0 = Z0(
24191
- o0.value[t0.id] ?? null,
24192
- t0,
24190
+ const b0 = Z0(
24191
+ o0.value[r0.id] ?? null,
24192
+ r0,
24193
24193
  T
24194
24194
  );
24195
- u0.has(d0) || (u0.add(d0), Z.push(d0));
24196
- for (const e0 of N)
24197
- r0[z0].add(
24198
- `${d0}\0${e0.id}`
24195
+ i0.has(b0) || (i0.add(b0), e0.push(b0));
24196
+ for (const t0 of N)
24197
+ n0[z0].add(
24198
+ `${b0}\0${t0.id}`
24199
24199
  ), U.push({
24200
- name: N.length > 1 ? `${d0} - ${e0.label}` : d0,
24201
- values: [Te(o0.value[e0.id], e0)],
24200
+ name: N.length > 1 ? `${b0} - ${t0.label}` : b0,
24201
+ values: [Te(o0.value[t0.id], t0)],
24202
24202
  xAxisIndex: z0,
24203
- dateRange: H
24203
+ dateRange: X
24204
24204
  });
24205
24205
  }
24206
- for (let o0 = 0; o0 < p0.length; o0++)
24207
- for (const f0 of Z)
24206
+ for (let o0 = 0; o0 < d0.length; o0++)
24207
+ for (const $0 of e0)
24208
24208
  for (const z0 of N) {
24209
- const d0 = `${f0}\0${z0.id}`;
24210
- r0[o0].has(d0) || U.push({
24211
- name: N.length > 1 ? `${f0} - ${z0.label}` : f0,
24209
+ const b0 = `${$0}\0${z0.id}`;
24210
+ n0[o0].has(b0) || U.push({
24211
+ name: N.length > 1 ? `${$0} - ${z0.label}` : $0,
24212
24212
  values: [z0.nullable ? null : 0],
24213
24213
  xAxisIndex: o0,
24214
- dateRange: H
24214
+ dateRange: X
24215
24215
  });
24216
24216
  }
24217
24217
  } else {
24218
- const u0 = /* @__PURE__ */ new Set();
24219
- for (const r0 of v.rows) {
24220
- if (r0.isRollup) continue;
24218
+ const i0 = /* @__PURE__ */ new Set();
24219
+ for (const n0 of v.rows) {
24220
+ if (n0.isRollup) continue;
24221
24221
  const o0 = Z0(
24222
- r0.value[t0.id] ?? null,
24223
- t0,
24222
+ n0.value[r0.id] ?? null,
24223
+ r0,
24224
24224
  T
24225
24225
  );
24226
- u0.has(o0) || (u0.add(o0), Z.push(o0));
24226
+ i0.has(o0) || (i0.add(o0), e0.push(o0));
24227
24227
  }
24228
- for (const r0 of Z)
24228
+ for (const n0 of e0)
24229
24229
  for (const o0 of N) {
24230
- const f0 = new Array(p0.length).fill(0);
24231
- for (const d0 of v.rows) {
24232
- if (d0.isRollup || Z0(
24233
- d0.value[t0.id] ?? null,
24234
- t0,
24230
+ const $0 = new Array(d0.length).fill(0);
24231
+ for (const b0 of v.rows) {
24232
+ if (b0.isRollup || Z0(
24233
+ b0.value[r0.id] ?? null,
24234
+ r0,
24235
24235
  T
24236
- ) !== r0)
24236
+ ) !== n0)
24237
24237
  continue;
24238
- const e0 = k ? Z0(
24239
- d0.value[k.id] ?? null,
24238
+ const t0 = k ? Z0(
24239
+ b0.value[k.id] ?? null,
24240
24240
  k,
24241
24241
  T
24242
- ) : "", O0 = n0.get(e0);
24243
- O0 != null && (f0[O0] = Te(
24244
- d0.value[o0.id],
24242
+ ) : "", A0 = K.get(t0);
24243
+ A0 != null && ($0[A0] = Te(
24244
+ b0.value[o0.id],
24245
24245
  o0
24246
24246
  ));
24247
24247
  }
24248
- const z0 = N.length > 1 ? `${r0} - ${o0.label}` : r0;
24248
+ const z0 = N.length > 1 ? `${n0} - ${o0.label}` : n0;
24249
24249
  U.push({
24250
24250
  name: z0,
24251
- values: f0,
24252
- dateRange: H
24251
+ values: $0,
24252
+ dateRange: X
24253
24253
  });
24254
24254
  }
24255
24255
  }
24256
24256
  else
24257
- for (const u0 of N) {
24258
- const r0 = new Array(p0.length).fill(0);
24257
+ for (const i0 of N) {
24258
+ const n0 = new Array(d0.length).fill(0);
24259
24259
  for (const o0 of v.rows) {
24260
24260
  if (o0.isRollup) continue;
24261
- const f0 = k ? Z0(
24261
+ const $0 = k ? Z0(
24262
24262
  o0.value[k.id] ?? null,
24263
24263
  k,
24264
24264
  T
24265
- ) : "", z0 = n0.get(f0);
24266
- z0 != null && (r0[z0] = Te(
24267
- o0.value[u0.id],
24268
- u0
24265
+ ) : "", z0 = K.get($0);
24266
+ z0 != null && (n0[z0] = Te(
24267
+ o0.value[i0.id],
24268
+ i0
24269
24269
  ));
24270
24270
  }
24271
24271
  U.push({
24272
- name: u0.label,
24273
- values: r0,
24274
- dateRange: H
24272
+ name: i0.label,
24273
+ values: n0,
24274
+ dateRange: X
24275
24275
  });
24276
24276
  }
24277
24277
  if ($ && D.length > m) {
24278
- const u0 = D[m], r0 = {
24279
- start: u0.dateRange.start,
24280
- end: u0.dateRange.end
24281
- }, o0 = [], f0 = /* @__PURE__ */ new Set();
24282
- for (const d0 of u0.rows) {
24283
- if (d0.isRollup) continue;
24284
- const e0 = k ? Z0(d0.value[k.id] ?? null, k, T) : "";
24285
- f0.has(e0) || (f0.add(e0), o0.push(e0));
24278
+ const i0 = D[m], n0 = {
24279
+ start: i0.dateRange.start,
24280
+ end: i0.dateRange.end
24281
+ }, o0 = [], $0 = /* @__PURE__ */ new Set();
24282
+ for (const b0 of i0.rows) {
24283
+ if (b0.isRollup) continue;
24284
+ const t0 = k ? Z0(b0.value[k.id] ?? null, k, T) : "";
24285
+ $0.has(t0) || ($0.add(t0), o0.push(t0));
24286
24286
  }
24287
24287
  const z0 = /* @__PURE__ */ new Map();
24288
24288
  if (o0.forEach(
24289
- (d0, e0) => z0.set(d0, e0)
24290
- ), K = o0, t0 && W) {
24291
- const d0 = /* @__PURE__ */ new Map();
24292
- for (const e0 of u0.rows) {
24293
- if (e0.isRollup) continue;
24294
- const O0 = k ? Z0(
24295
- e0.value[k.id] ?? null,
24289
+ (b0, t0) => z0.set(b0, t0)
24290
+ ), Z = o0, r0 && W) {
24291
+ const b0 = /* @__PURE__ */ new Map();
24292
+ for (const t0 of i0.rows) {
24293
+ if (t0.isRollup) continue;
24294
+ const A0 = k ? Z0(
24295
+ t0.value[k.id] ?? null,
24296
24296
  k,
24297
24297
  T
24298
- ) : "", y0 = z0.get(O0), _0 = k != null && k.dateComparison ? y0 : n0.get(O0);
24299
- if (_0 == null) continue;
24298
+ ) : "", y0 = z0.get(A0), p0 = k != null && k.dateComparison ? y0 : K.get(A0);
24299
+ if (p0 == null) continue;
24300
24300
  const t = Z0(
24301
- e0.value[t0.id] ?? null,
24302
- t0,
24301
+ t0.value[r0.id] ?? null,
24302
+ r0,
24303
24303
  T
24304
24304
  );
24305
24305
  for (const i of N)
24306
- d0.has(_0) || d0.set(_0, /* @__PURE__ */ new Set()), d0.get(_0).add(`${t}\0${i.id}`), U.push({
24306
+ b0.has(p0) || b0.set(p0, /* @__PURE__ */ new Set()), b0.get(p0).add(`${t}\0${i.id}`), U.push({
24307
24307
  name: N.length > 1 ? `${t} - ${i.label}` : t,
24308
- values: [Te(e0.value[i.id], i)],
24309
- xAxisIndex: _0,
24308
+ values: [Te(t0.value[i.id], i)],
24309
+ xAxisIndex: p0,
24310
24310
  isCompare: !0,
24311
- dateRange: r0
24311
+ dateRange: n0
24312
24312
  });
24313
24313
  }
24314
- for (const e0 of o0) {
24315
- const O0 = z0.get(e0), y0 = k != null && k.dateComparison ? O0 : n0.get(e0);
24314
+ for (const t0 of o0) {
24315
+ const A0 = z0.get(t0), y0 = k != null && k.dateComparison ? A0 : K.get(t0);
24316
24316
  if (y0 != null)
24317
- for (const _0 of Z)
24317
+ for (const p0 of e0)
24318
24318
  for (const t of N) {
24319
- const i = `${_0}\0${t.id}`;
24320
- (a0 = d0.get(y0)) != null && a0.has(i) || U.push({
24321
- name: N.length > 1 ? `${_0} - ${t.label}` : _0,
24319
+ const i = `${p0}\0${t.id}`;
24320
+ (a0 = b0.get(y0)) != null && a0.has(i) || U.push({
24321
+ name: N.length > 1 ? `${p0} - ${t.label}` : p0,
24322
24322
  values: [t.nullable ? null : 0],
24323
24323
  xAxisIndex: y0,
24324
24324
  isCompare: !0,
24325
- dateRange: r0
24325
+ dateRange: n0
24326
24326
  });
24327
24327
  }
24328
24328
  }
24329
24329
  } else {
24330
- const d0 = [];
24331
- if (t0)
24332
- for (const e0 of Z)
24333
- for (const O0 of N)
24334
- d0.push({ breakdownVal: e0, metricCol: O0 });
24330
+ const b0 = [];
24331
+ if (r0)
24332
+ for (const t0 of e0)
24333
+ for (const A0 of N)
24334
+ b0.push({ breakdownVal: t0, metricCol: A0 });
24335
24335
  else
24336
- for (const e0 of N)
24337
- d0.push({ metricCol: e0 });
24338
- for (const { breakdownVal: e0, metricCol: O0 } of d0) {
24339
- const y0 = new Array(p0.length).fill(0);
24340
- for (const t of u0.rows) {
24341
- if (t.isRollup || t0 && Z0(
24342
- t.value[t0.id] ?? null,
24343
- t0,
24336
+ for (const t0 of N)
24337
+ b0.push({ metricCol: t0 });
24338
+ for (const { breakdownVal: t0, metricCol: A0 } of b0) {
24339
+ const y0 = new Array(d0.length).fill(0);
24340
+ for (const t of i0.rows) {
24341
+ if (t.isRollup || r0 && Z0(
24342
+ t.value[r0.id] ?? null,
24343
+ r0,
24344
24344
  T
24345
- ) !== e0)
24345
+ ) !== t0)
24346
24346
  continue;
24347
24347
  const i = k ? Z0(
24348
24348
  t.value[k.id] ?? null,
24349
24349
  k,
24350
24350
  T
24351
- ) : "", l = z0.get(i), A = k != null && k.dateComparison ? l : n0.get(i);
24351
+ ) : "", l = z0.get(i), A = k != null && k.dateComparison ? l : K.get(i);
24352
24352
  A != null && (y0[A] = Te(
24353
- t.value[O0.id],
24354
- O0
24353
+ t.value[A0.id],
24354
+ A0
24355
24355
  ));
24356
24356
  }
24357
- const _0 = t0 ? N.length > 1 ? `${e0} - ${O0.label}` : e0 : O0.label;
24357
+ const p0 = r0 ? N.length > 1 ? `${t0} - ${A0.label}` : t0 : A0.label;
24358
24358
  U.push({
24359
- name: _0,
24359
+ name: p0,
24360
24360
  values: y0,
24361
24361
  isCompare: !0,
24362
- dateRange: r0
24362
+ dateRange: n0
24363
24363
  });
24364
24364
  }
24365
24365
  }
24366
24366
  }
24367
- const c0 = { main: H };
24368
- return $ && D.length > m && (c0.comparison = {
24367
+ const M0 = { main: X };
24368
+ return $ && D.length > m && (M0.comparison = {
24369
24369
  start: D[m].dateRange.start,
24370
24370
  end: D[m].dateRange.end
24371
24371
  }), {
24372
24372
  type: b,
24373
- xAxis: p0,
24374
- comparisonXAxis: K,
24373
+ xAxis: d0,
24374
+ comparisonXAxis: Z,
24375
24375
  datasets: U,
24376
- date: c0
24376
+ date: M0
24377
24377
  };
24378
24378
  }
24379
24379
  function il(c) {
@@ -24388,95 +24388,95 @@ function il(c) {
24388
24388
  if (!v)
24389
24389
  return null;
24390
24390
  const P = v.columns.find(
24391
- (K) => K.fieldType === "METRIC" && !K.hide
24392
- ), N = v.rows.find((K) => !K.isRollup) ?? v.rows[0], k = N && P ? N.value[P.id] : null, t0 = (P == null ? void 0 : P.label) ?? "", p0 = Z0(k, P ?? null, m);
24393
- let s0;
24391
+ (Z) => Z.fieldType === "METRIC" && !Z.hide
24392
+ ), N = v.rows.find((Z) => !Z.isRollup) ?? v.rows[0], k = N && P ? N.value[P.id] : null, r0 = (P == null ? void 0 : P.label) ?? "", d0 = Z0(k, P ?? null, m);
24393
+ let u0;
24394
24394
  if (D && b.length > $) {
24395
- const K = b[$], Z = K ? K.rows.find((c0) => !c0.isRollup) ?? K.rows[0] : null;
24396
- Z && P && (s0 = Z0(
24397
- Z.value[P.id],
24395
+ const Z = b[$], e0 = Z ? Z.rows.find((M0) => !M0.isRollup) ?? Z.rows[0] : null;
24396
+ e0 && P && (u0 = Z0(
24397
+ e0.value[P.id],
24398
24398
  P,
24399
24399
  m
24400
24400
  ));
24401
24401
  }
24402
- let n0 = [], H = [];
24402
+ let K = [], X = [];
24403
24403
  const U = 1;
24404
24404
  if (b.length > U && b[U]) {
24405
- const K = b[U], Z = K.columns.find(
24405
+ const Z = b[U], e0 = Z.columns.find(
24406
24406
  (a0) => a0.fieldType === "DIMENSION" && !a0.hide
24407
- ), c0 = K.columns.find(
24407
+ ), M0 = Z.columns.find(
24408
24408
  (a0) => a0.fieldType === "METRIC" && !a0.hide
24409
24409
  );
24410
- Z && c0 && (n0 = K.rows.filter((a0) => !a0.isRollup).map(
24410
+ e0 && M0 && (K = Z.rows.filter((a0) => !a0.isRollup).map(
24411
24411
  (a0) => Z0(
24412
- a0.value[Z.id] ?? null,
24413
- Z,
24412
+ a0.value[e0.id] ?? null,
24413
+ e0,
24414
24414
  m
24415
24415
  )
24416
- ), H = [
24416
+ ), X = [
24417
24417
  {
24418
- name: c0.label,
24419
- values: K.rows.filter((a0) => !a0.isRollup).map((a0) => bt(a0.value[c0.id])),
24418
+ name: M0.label,
24419
+ values: Z.rows.filter((a0) => !a0.isRollup).map((a0) => bt(a0.value[M0.id])),
24420
24420
  dateRange: {
24421
- start: K.dateRange.start,
24422
- end: K.dateRange.end
24421
+ start: Z.dateRange.start,
24422
+ end: Z.dateRange.end
24423
24423
  }
24424
24424
  }
24425
24425
  ]);
24426
24426
  }
24427
24427
  return {
24428
24428
  type: "SCORECARD",
24429
- name: t0,
24430
- value: p0,
24431
- comparison: s0,
24429
+ name: r0,
24430
+ value: d0,
24431
+ comparison: u0,
24432
24432
  sparkline: {
24433
24433
  type: T || x1.LINECHART,
24434
24434
  percentOfTotal: W === !0,
24435
- dimensions: n0,
24436
- datasets: H
24435
+ dimensions: K,
24436
+ datasets: X
24437
24437
  }
24438
24438
  };
24439
24439
  }
24440
24440
  function sl(c) {
24441
24441
  const { responses: b, isCompare: D, mainRequestCount: $, timezone: m } = c, T = b[0], W = T.columns.find(
24442
- (n0) => n0.fieldType === "DIMENSION" && !n0.hide
24442
+ (K) => K.fieldType === "DIMENSION" && !K.hide
24443
24443
  ), v = T.columns.find(
24444
- (n0) => n0.fieldType === "METRIC" && !n0.hide
24444
+ (K) => K.fieldType === "METRIC" && !K.hide
24445
24445
  ), P = {
24446
24446
  start: T.dateRange.start,
24447
24447
  end: T.dateRange.end
24448
24448
  };
24449
24449
  let N = null, k;
24450
24450
  if (D && b.length > $) {
24451
- const n0 = b[$];
24451
+ const K = b[$];
24452
24452
  k = {
24453
- start: n0.dateRange.start,
24454
- end: n0.dateRange.end
24453
+ start: K.dateRange.start,
24454
+ end: K.dateRange.end
24455
24455
  }, N = /* @__PURE__ */ new Map();
24456
- for (const H of n0.rows) {
24457
- if (H.isRollup) continue;
24458
- const U = W ? Z0(H.value[W.id] ?? null, W, m) : "";
24459
- v && N.set(U, bt(H.value[v.id]));
24456
+ for (const X of K.rows) {
24457
+ if (X.isRollup) continue;
24458
+ const U = W ? Z0(X.value[W.id] ?? null, W, m) : "";
24459
+ v && N.set(U, bt(X.value[v.id]));
24460
24460
  }
24461
24461
  }
24462
- const t0 = [], p0 = { main: P };
24463
- k && (p0.comparison = k);
24464
- for (const n0 of T.rows) {
24465
- if (n0.isRollup) continue;
24466
- const H = W ? Z0(n0.value[W.id] ?? null, W, m) : "", U = v ? bt(n0.value[v.id]) : 0, K = (N == null ? void 0 : N.get(H)) ?? null;
24467
- t0.push({
24468
- name: H,
24462
+ const r0 = [], d0 = { main: P };
24463
+ k && (d0.comparison = k);
24464
+ for (const K of T.rows) {
24465
+ if (K.isRollup) continue;
24466
+ const X = W ? Z0(K.value[W.id] ?? null, W, m) : "", U = v ? bt(K.value[v.id]) : 0, Z = (N == null ? void 0 : N.get(X)) ?? null;
24467
+ r0.push({
24468
+ name: X,
24469
24469
  value: U,
24470
- comparison: K,
24471
- date: p0
24470
+ comparison: Z,
24471
+ date: d0
24472
24472
  });
24473
24473
  }
24474
- const s0 = v ? [v.label] : [];
24474
+ const u0 = v ? [v.label] : [];
24475
24475
  return {
24476
24476
  type: "CIRCULAR",
24477
- datasets: t0,
24478
- metrics: s0,
24479
- date: p0
24477
+ datasets: r0,
24478
+ metrics: u0,
24479
+ date: d0
24480
24480
  };
24481
24481
  }
24482
24482
  function ul(c) {
@@ -24526,8 +24526,8 @@ function cl(c, b) {
24526
24526
  function Ml(c, b) {
24527
24527
  const D = c < 0, $ = Math.abs(c), m = (N) => String(Math.floor(N)).padStart(2, "0"), T = m($ % 3600 / 60), W = m($ % 60), v = D ? "-" : "";
24528
24528
  if (b) {
24529
- const N = Math.floor($ / 86400), k = m($ % 86400 / 3600), t0 = N > 0 ? `${N} day${N > 1 ? "s" : ""} ` : "";
24530
- return `${v}${t0}${k}:${T}:${W}`;
24529
+ const N = Math.floor($ / 86400), k = m($ % 86400 / 3600), r0 = N > 0 ? `${N} day${N > 1 ? "s" : ""} ` : "";
24530
+ return `${v}${r0}${k}:${T}:${W}`;
24531
24531
  }
24532
24532
  const P = m($ / 3600);
24533
24533
  return `${v}${P}:${T}:${W}`;
@@ -24979,45 +24979,45 @@ const ee = Ne(Yl, () => {
24979
24979
  showAdvanced: !1,
24980
24980
  visibleCount: 50
24981
24981
  });
24982
- function v(Z, c0) {
24983
- const a0 = kr(Z, c0);
24982
+ function v(e0, M0) {
24983
+ const a0 = kr(e0, M0);
24984
24984
  return b.value[a0] || (b.value[a0] = W()), b.value[a0];
24985
24985
  }
24986
- const P = (Z) => T.value === Z;
24987
- function N(Z, c0, a0) {
24988
- Object.assign(v(Z, c0), a0);
24986
+ const P = (e0) => T.value === e0;
24987
+ function N(e0, M0, a0) {
24988
+ Object.assign(v(e0, M0), a0);
24989
24989
  }
24990
- function k(Z, c0, a0 = 50) {
24991
- v(Z, c0).visibleCount += a0;
24990
+ function k(e0, M0, a0 = 50) {
24991
+ v(e0, M0).visibleCount += a0;
24992
24992
  }
24993
- function t0(Z) {
24993
+ function r0(e0) {
24994
24994
  var a0;
24995
- if (!Z) return;
24996
- const c0 = `${Z}|`;
24997
- Object.keys(b.value).forEach((u0) => {
24998
- u0.startsWith(c0) && delete b.value[u0];
24999
- }), (a0 = T.value) != null && a0.startsWith(c0) && U();
24995
+ if (!e0) return;
24996
+ const M0 = `${e0}|`;
24997
+ Object.keys(b.value).forEach((i0) => {
24998
+ i0.startsWith(M0) && delete b.value[i0];
24999
+ }), (a0 = T.value) != null && a0.startsWith(M0) && U();
25000
25000
  }
25001
- function p0(Z) {
25002
- D.value = Z;
25001
+ function d0(e0) {
25002
+ D.value = e0;
25003
25003
  }
25004
- function s0(Z = []) {
25005
- const c0 = Array.from(new Set(Z.filter(Boolean)));
25006
- m.value = c0, c0.forEach((a0) => {
25004
+ function u0(e0 = []) {
25005
+ const M0 = Array.from(new Set(e0.filter(Boolean)));
25006
+ m.value = M0, M0.forEach((a0) => {
25007
25007
  $.value[a0] = ($.value[a0] ?? 0) + 1;
25008
25008
  });
25009
25009
  }
25010
- function n0(Z) {
25011
- return $.value[Z] ?? 0;
25010
+ function K(e0) {
25011
+ return $.value[e0] ?? 0;
25012
25012
  }
25013
- function H(Z) {
25014
- T.value = Z;
25013
+ function X(e0) {
25014
+ T.value = e0;
25015
25015
  }
25016
25016
  function U() {
25017
25017
  T.value = null;
25018
25018
  }
25019
- function K(Z) {
25020
- return Z.label || `${Lr(Z.schemaName)} ${Lr(Z.name)}`;
25019
+ function Z(e0) {
25020
+ return e0.label || `${Lr(e0.schemaName)} ${Lr(e0.name)}`;
25021
25021
  }
25022
25022
  return {
25023
25023
  globalFilters: c,
@@ -25029,14 +25029,14 @@ const ee = Ne(Yl, () => {
25029
25029
  isMenuOpen: P,
25030
25030
  setGlobalFilter: N,
25031
25031
  showMore: k,
25032
- clearGlobalFilterScope: t0,
25033
- setIncludeUnavailable: p0,
25034
- incrementAppliedTilesFiltersVersion: s0,
25035
- getAppliedTileFiltersVersion: n0,
25036
- openMenu: H,
25032
+ clearGlobalFilterScope: r0,
25033
+ setIncludeUnavailable: d0,
25034
+ incrementAppliedTilesFiltersVersion: u0,
25035
+ getAppliedTileFiltersVersion: K,
25036
+ openMenu: X,
25037
25037
  closeMenu: U,
25038
25038
  getGlobalFilterKey: kr,
25039
- getGlobalFilterLabel: K
25039
+ getGlobalFilterLabel: Z
25040
25040
  };
25041
25041
  });
25042
25042
  function Ct(c, b = {}) {
@@ -25095,19 +25095,19 @@ async function jl(c, b) {
25095
25095
  await Ca.fetch($);
25096
25096
  }
25097
25097
  const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25098
- const { business: c } = C0(le()), { globalFilters: b } = C0(ee()), { schemas: D } = C0(ra()), { flags: $ } = C0(Wa()), m = R0([]), T = R0([]), W = R0([]), v = R0(0), P = en(), N = Fa(), k = c1(() => m.value.filter((s) => s.editable)), t0 = c1(() => m.value.filter((s) => !s.editable)), p0 = R0(!1), s0 = R0(""), n0 = R0(), H = R0(), U = c1(() => {
25098
+ const { business: c } = C0(le()), { globalFilters: b } = C0(ee()), { schemas: D } = C0(ra()), { flags: $ } = C0(Wa()), m = R0([]), T = R0([]), W = R0([]), v = R0(0), P = en(), N = Fa(), k = c1(() => m.value.filter((s) => s.editable)), r0 = c1(() => m.value.filter((s) => !s.editable)), d0 = R0(!1), u0 = R0(""), K = R0(), X = R0(), U = c1(() => {
25099
25099
  const s = $.value.find(
25100
25100
  (u) => u.key === La.report_portal_integration_custom_report
25101
25101
  );
25102
25102
  return typeof (s == null ? void 0 : s.value) == "number" ? s.value : null;
25103
- }), { isReportPermissionEnabled: K } = Zr(), Z = c1(() => U.value === null ? !0 : U.value - k.value.length > 0);
25104
- async function c0() {
25105
- return H.value = await Bl(), H.value && Ut(H.value.tiles), H.value;
25103
+ }), { isReportPermissionEnabled: Z } = Zr(), e0 = c1(() => U.value === null ? !0 : U.value - k.value.length > 0);
25104
+ async function M0() {
25105
+ return X.value = await Bl(), X.value && Ut(X.value.tiles), X.value;
25106
25106
  }
25107
25107
  async function a0() {
25108
25108
  var s;
25109
25109
  try {
25110
- m.value = await Sl(), m.value.forEach((p) => Ut(p.tiles)), W.value = await Hr(), m.value.find((p) => p.id === s0.value) || (s0.value = ((s = m.value.find((p) => p.isDefault)) == null ? void 0 : s.id) || m.value[0].id);
25110
+ m.value = await Sl(), m.value.forEach((p) => Ut(p.tiles)), W.value = await Hr(), m.value.find((p) => p.id === u0.value) || (u0.value = ((s = m.value.find((p) => p.isDefault)) == null ? void 0 : s.id) || m.value[0].id);
25111
25111
  } catch (u) {
25112
25112
  console.log(u), P.open({
25113
25113
  title: "Report Fetch Error",
@@ -25116,7 +25116,7 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25116
25116
  });
25117
25117
  }
25118
25118
  }
25119
- async function u0() {
25119
+ async function i0() {
25120
25120
  try {
25121
25121
  T.value = await Tl(), W.value.length === 0 && (W.value = await Hr());
25122
25122
  } catch (s) {
@@ -25127,8 +25127,8 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25127
25127
  });
25128
25128
  }
25129
25129
  }
25130
- const r0 = c1(
25131
- () => m.value.find((s) => s.id === s0.value)
25130
+ const n0 = c1(
25131
+ () => m.value.find((s) => s.id === u0.value)
25132
25132
  );
25133
25133
  function o0(s) {
25134
25134
  var p;
@@ -25138,7 +25138,7 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25138
25138
  V1(
25139
25139
  () => {
25140
25140
  var s;
25141
- return (s = r0.value) == null ? void 0 : s.globalFilters;
25141
+ return (s = n0.value) == null ? void 0 : s.globalFilters;
25142
25142
  },
25143
25143
  (s) => {
25144
25144
  b.value = (s ?? []).map((u) => ({
@@ -25149,7 +25149,7 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25149
25149
  },
25150
25150
  { deep: !0 }
25151
25151
  );
25152
- const f0 = R0(), z0 = R0(0), d0 = R0(), e0 = R0(null), O0 = R0(null), y0 = R0(!1), _0 = R0(!1), t = R0(!1);
25152
+ const $0 = R0(), z0 = R0(0), b0 = R0(), t0 = R0(null), A0 = R0(null), y0 = R0(!1), p0 = R0(!1), t = R0(!1);
25153
25153
  async function i(s) {
25154
25154
  const u = k.value.findIndex((M) => M.id === s.id);
25155
25155
  let p;
@@ -25158,7 +25158,7 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25158
25158
  else {
25159
25159
  p = await Ll(s);
25160
25160
  try {
25161
- if (K.value) {
25161
+ if (Z.value) {
25162
25162
  await jl(p.id, p.name);
25163
25163
  const { businessId: M } = C0(G0());
25164
25164
  await N.fetchUserPermissions(void 0, M.value);
@@ -25176,19 +25176,19 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25176
25176
  await Il(s), await a0();
25177
25177
  }
25178
25178
  async function A(s) {
25179
- await Fl(s), await c0();
25179
+ await Fl(s), await M0();
25180
25180
  }
25181
25181
  async function h(s) {
25182
- await El(s), await u0();
25182
+ await El(s), await i0();
25183
25183
  }
25184
25184
  async function L(s) {
25185
- await Rl(s), await u0();
25185
+ await Rl(s), await i0();
25186
25186
  }
25187
25187
  async function C(s) {
25188
- await Cl(s), await u0();
25188
+ await Cl(s), await i0();
25189
25189
  }
25190
25190
  function O(s) {
25191
- s0.value = s;
25191
+ u0.value = s;
25192
25192
  }
25193
25193
  const r = R0(null);
25194
25194
  function e() {
@@ -25222,37 +25222,37 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25222
25222
  }
25223
25223
  return {
25224
25224
  isOpenDownloadDialog: y0,
25225
- isOpenFeedbackDialog: _0,
25225
+ isOpenFeedbackDialog: p0,
25226
25226
  isOpenEmailDialog: t,
25227
- currentSelectWidgetType: n0,
25227
+ currentSelectWidgetType: K,
25228
25228
  reports: m,
25229
25229
  reportTemplates: T,
25230
25230
  categories: W,
25231
- currentReport: r0,
25232
- editingReport: f0,
25231
+ currentReport: n0,
25232
+ editingReport: $0,
25233
25233
  editingTileIndex: z0,
25234
- editingTile: d0,
25235
- editingGlobalFilterIndex: e0,
25236
- editingGlobalFilter: O0,
25237
- currentReportId: s0,
25234
+ editingTile: b0,
25235
+ editingGlobalFilterIndex: t0,
25236
+ editingGlobalFilter: A0,
25237
+ currentReportId: u0,
25238
25238
  editableReports: k,
25239
- nonEditableReports: t0,
25240
- isOpenAddReportDialog: p0,
25241
- overviewReport: H,
25239
+ nonEditableReports: r0,
25240
+ isOpenAddReportDialog: d0,
25241
+ overviewReport: X,
25242
25242
  pinReport: r,
25243
25243
  scrollPositionY: v,
25244
25244
  customReportQuota: U,
25245
- canCreateCustomReport: Z,
25245
+ canCreateCustomReport: e0,
25246
25246
  createOrUpdateReport: i,
25247
25247
  removeReport: l,
25248
25248
  updateCurrentReportId: O,
25249
25249
  getReports: a0,
25250
- getReportTemplates: u0,
25250
+ getReportTemplates: i0,
25251
25251
  updateDefaultReport: A,
25252
25252
  createReportTemplate: h,
25253
25253
  updateReportTemplate: L,
25254
25254
  removeReportTemplates: C,
25255
- getOverviewReport: c0,
25255
+ getOverviewReport: M0,
25256
25256
  refreshPinReport: e,
25257
25257
  cachePinReport: n,
25258
25258
  clearPinReport: a,
@@ -25260,7 +25260,7 @@ const Kl = "mf-reportreport-store", ye = Ne(Kl, () => {
25260
25260
  };
25261
25261
  });
25262
25262
  var na = /* @__PURE__ */ ((c) => (c.generating = "GENERATING", c.completed = "COMPLETED", c.failed = "FAILED", c.canceled = "CANCELLED", c))(na || {});
25263
- const Zl = "/assets/formatChartData.worker-D54YtSfh.js", Wt = /* @__PURE__ */ new Map();
25263
+ const Zl = "/assets/formatChartData.worker-NxArcyZE.js", Wt = /* @__PURE__ */ new Map();
25264
25264
  function Yr(c) {
25265
25265
  return new Worker(c, { type: "module" });
25266
25266
  }
@@ -25403,83 +25403,83 @@ function Gr({
25403
25403
  globalFilters: b,
25404
25404
  schemaNames: D
25405
25405
  }) {
25406
- const $ = /* @__PURE__ */ new Map(), m = [], T = new Set((D ?? []).map((H) => String(H))), W = (H) => T.has(H.schemaName ?? ""), v = b.filter(W);
25407
- function P(H) {
25406
+ const $ = /* @__PURE__ */ new Map(), m = [], T = new Set((D ?? []).map((X) => String(X))), W = (X) => T.has(X.schemaName ?? ""), v = b.filter(W);
25407
+ function P(X) {
25408
25408
  const U = Object.values(w0).includes(
25409
- String(H.option ?? "")
25409
+ String(X.option ?? "")
25410
25410
  );
25411
- return H.option === w0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [U ? "-1" : oa];
25411
+ return X.option === w0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [U ? "-1" : oa];
25412
25412
  }
25413
- function N(H, U) {
25414
- const K = typeof H == "number" ? H : Number(H), Z = typeof U == "number" ? U : Number(U);
25415
- return Number.isFinite(K) && Number.isFinite(Z) ? K - Z : typeof H == "string" && typeof U == "string" ? H.localeCompare(U) : null;
25413
+ function N(X, U) {
25414
+ const Z = typeof X == "number" ? X : Number(X), e0 = typeof U == "number" ? U : Number(U);
25415
+ return Number.isFinite(Z) && Number.isFinite(e0) ? Z - e0 : typeof X == "string" && typeof U == "string" ? X.localeCompare(U) : null;
25416
25416
  }
25417
- function k(H, U) {
25418
- if (H.length === 0 || U.length === 0) return null;
25419
- const K = N(H[0], U[0]);
25420
- return K == null ? null : [K >= 0 ? H[0] : U[0]];
25417
+ function k(X, U) {
25418
+ if (X.length === 0 || U.length === 0) return null;
25419
+ const Z = N(X[0], U[0]);
25420
+ return Z == null ? null : [Z >= 0 ? X[0] : U[0]];
25421
25421
  }
25422
- function t0(H, U) {
25423
- if (H.length === 0 || U.length === 0) return null;
25424
- const K = N(H[0], U[0]);
25425
- return K == null ? null : [K <= 0 ? H[0] : U[0]];
25422
+ function r0(X, U) {
25423
+ if (X.length === 0 || U.length === 0) return null;
25424
+ const Z = N(X[0], U[0]);
25425
+ return Z == null ? null : [Z <= 0 ? X[0] : U[0]];
25426
25426
  }
25427
- function p0(H, U) {
25428
- if (H.length < 2 || U.length < 2) return null;
25429
- const K = N(H[0], U[0]), Z = N(H[1], U[1]);
25430
- if (K == null || Z == null) return null;
25431
- const c0 = K >= 0 ? H[0] : U[0], a0 = Z <= 0 ? H[1] : U[1];
25432
- return N(c0, a0) == null ? null : [c0, a0];
25427
+ function d0(X, U) {
25428
+ if (X.length < 2 || U.length < 2) return null;
25429
+ const Z = N(X[0], U[0]), e0 = N(X[1], U[1]);
25430
+ if (Z == null || e0 == null) return null;
25431
+ const M0 = Z >= 0 ? X[0] : U[0], a0 = e0 <= 0 ? X[1] : U[1];
25432
+ return N(M0, a0) == null ? null : [M0, a0];
25433
25433
  }
25434
- function s0(H, U) {
25435
- const K = Re(H.values), Z = Re(U.values);
25434
+ function u0(X, U) {
25435
+ const Z = Re(X.values), e0 = Re(U.values);
25436
25436
  switch (U.operator) {
25437
25437
  case P0.Equal: {
25438
- const c0 = new Set(Z), a0 = K.filter((u0) => c0.has(u0));
25439
- return a0.length ? a0 : P(H);
25438
+ const M0 = new Set(e0), a0 = Z.filter((i0) => M0.has(i0));
25439
+ return a0.length ? a0 : P(X);
25440
25440
  }
25441
25441
  case P0.NotEqual:
25442
25442
  case P0.NotLike:
25443
25443
  return Re([
25444
- ...K,
25445
- ...Z
25444
+ ...Z,
25445
+ ...e0
25446
25446
  ]);
25447
25447
  case P0.GreaterThan:
25448
25448
  case P0.GreaterThanOrEqual:
25449
- return k(K, Z);
25449
+ return k(Z, e0);
25450
25450
  case P0.LessThan:
25451
25451
  case P0.LessThanOrEqual:
25452
- return t0(K, Z);
25452
+ return r0(Z, e0);
25453
25453
  case P0.Between:
25454
- return p0(K, Z);
25454
+ return d0(Z, e0);
25455
25455
  default:
25456
25456
  return null;
25457
25457
  }
25458
25458
  }
25459
- const n0 = (H) => {
25460
- if (!H || !W(H) || !Array.isArray(H.values) || H.values.length === 0)
25459
+ const K = (X) => {
25460
+ if (!X || !W(X) || !Array.isArray(X.values) || X.values.length === 0)
25461
25461
  return;
25462
25462
  const U = {
25463
- ...H,
25464
- values: Re(H.values)
25463
+ ...X,
25464
+ values: Re(X.values)
25465
25465
  };
25466
25466
  if (U.option === w0.TimeOfDay && U.operator === P0.Between) {
25467
25467
  m.push(U);
25468
25468
  return;
25469
25469
  }
25470
- const Z = n2(U), c0 = $.get(Z);
25471
- if (!c0) {
25472
- $.set(Z, U);
25470
+ const e0 = n2(U), M0 = $.get(e0);
25471
+ if (!M0) {
25472
+ $.set(e0, U);
25473
25473
  return;
25474
25474
  }
25475
- const a0 = s0(c0, U);
25475
+ const a0 = u0(M0, U);
25476
25476
  if (a0 == null) {
25477
25477
  m.push(U);
25478
25478
  return;
25479
25479
  }
25480
- c0.values = a0, $.set(Z, c0);
25480
+ M0.values = a0, $.set(e0, M0);
25481
25481
  };
25482
- return c.forEach(n0), v.forEach(n0), [...Array.from($.values()), ...m];
25482
+ return c.forEach(K), v.forEach(K), [...Array.from($.values()), ...m];
25483
25483
  }
25484
25484
  function Xe(c, b, D) {
25485
25485
  var T;
@@ -25563,11 +25563,12 @@ function Ue(c) {
25563
25563
  }
25564
25564
  function yr({
25565
25565
  selectedNavigationTab: c,
25566
- overviewReport: b,
25567
- editingReport: D,
25568
- currentReport: $
25566
+ isEditorRoute: b,
25567
+ overviewReport: D,
25568
+ editingReport: $,
25569
+ currentReport: m
25569
25570
  }) {
25570
- return c === "overview" && b ? b : D ?? $;
25571
+ return c === "overview" && D ? D : b ? $ ?? m : m;
25571
25572
  }
25572
25573
  async function sa(c, b) {
25573
25574
  for (let D = 0; D < c.length; D++)
@@ -25588,51 +25589,52 @@ const l2 = async ({
25588
25589
  scopedDateRange: T,
25589
25590
  scopedGlobalFilters: W
25590
25591
  }) => {
25591
- var i, l, A, h;
25592
- const { businessId: v } = C0(G0()), { currentReport: P, editingReport: N, overviewReport: k } = ye(), { selectedNavigationTab: t0 } = Be(), p0 = yr({
25593
- selectedNavigationTab: t0,
25592
+ var l, A, h, L;
25593
+ const { businessId: v } = C0(G0()), { currentReport: P, editingReport: N, overviewReport: k } = ye(), { selectedNavigationTab: r0, isEditorRoute: d0 } = Be(), u0 = yr({
25594
+ selectedNavigationTab: r0,
25595
+ isEditorRoute: d0,
25594
25596
  overviewReport: k,
25595
25597
  editingReport: N,
25596
25598
  currentReport: P
25597
- }), s0 = Ue(t0), {
25598
- selectedRestaurantIds: n0,
25599
- selectedWarehouseIds: H,
25600
- selectedLocationIds: U,
25601
- dateRange: K,
25602
- compareDateRange: Z,
25603
- timeRange: c0,
25604
- timezone: a0,
25605
- restaurants: u0,
25606
- warehouses: r0
25607
- } = le(), { globalFilters: o0 } = ee();
25608
- if (U.length === 0)
25599
+ }), K = Ue(r0), {
25600
+ selectedRestaurantIds: X,
25601
+ selectedWarehouseIds: U,
25602
+ selectedLocationIds: Z,
25603
+ dateRange: e0,
25604
+ compareDateRange: M0,
25605
+ timeRange: a0,
25606
+ timezone: i0,
25607
+ restaurants: n0,
25608
+ warehouses: o0
25609
+ } = le(), { globalFilters: $0 } = ee();
25610
+ if (Z.length === 0)
25609
25611
  return null;
25610
- const f0 = T ?? K, z0 = m ?? c0, d0 = W ?? o0;
25612
+ const z0 = T ?? e0, b0 = m ?? a0, t0 = W ?? $0;
25611
25613
  if (!ke({
25612
- report: p0,
25613
- pageSubject: s0,
25614
- dateRange: f0,
25615
- compareDateRange: Z,
25616
- timezone: a0
25614
+ report: u0,
25615
+ pageSubject: K,
25616
+ dateRange: z0,
25617
+ compareDateRange: M0,
25618
+ timezone: i0
25617
25619
  }))
25618
25620
  return null;
25619
- const e0 = ($ == null ? void 0 : $.filter((L) => u0.some((C) => C.id === L))) ?? n0, O0 = ($ == null ? void 0 : $.filter((L) => r0.some((C) => C.id === L))) ?? H, y0 = Xe(c, d0, D ?? ""), _0 = {
25621
+ const A0 = ($ == null ? void 0 : $.filter((C) => n0.some((O) => O.id === C))) ?? X, y0 = ($ == null ? void 0 : $.filter((C) => o0.some((O) => O.id === C))) ?? U, p0 = Xe(c, t0, D ?? ""), t = {
25620
25622
  fetchType: Q0.Post,
25621
25623
  url: `/${v.value}/v2/query`,
25622
25624
  data: {
25623
- widget: y0,
25624
- dateRange: [f0.startDate, f0.endDate],
25625
- compareDateRange: Z.startDate && Z.endDate ? [Z.startDate, Z.endDate] : void 0,
25625
+ widget: p0,
25626
+ dateRange: [z0.startDate, z0.endDate],
25627
+ compareDateRange: M0.startDate && M0.endDate ? [M0.startDate, M0.endDate] : void 0,
25626
25628
  timeRange: [
25627
- B0().tz(a0).hour(Number((i = z0.start) == null ? void 0 : i.hour)).minute(Number((l = z0.start) == null ? void 0 : l.minute)).toISOString(),
25628
- B0().tz(a0).hour(Number((A = z0.end) == null ? void 0 : A.hour)).minute(Number((h = z0.end) == null ? void 0 : h.minute)).endOf("minutes").toISOString()
25629
+ B0().tz(i0).hour(Number((l = b0.start) == null ? void 0 : l.hour)).minute(Number((A = b0.start) == null ? void 0 : A.minute)).toISOString(),
25630
+ B0().tz(i0).hour(Number((h = b0.end) == null ? void 0 : h.hour)).minute(Number((L = b0.end) == null ? void 0 : L.minute)).endOf("minutes").toISOString()
25629
25631
  ],
25630
25632
  businessIds: v.value ? [v.value] : [],
25631
- restaurantIds: e0,
25632
- warehouseIds: O0,
25633
- timezone: a0,
25634
- skipStringSpaceGrouping: !!(p0 != null && p0.batch) || Yt(p0),
25635
- reportId: p0 == null ? void 0 : p0.id,
25633
+ restaurantIds: A0,
25634
+ warehouseIds: y0,
25635
+ timezone: i0,
25636
+ skipStringSpaceGrouping: !!(u0 != null && u0.batch) || Yt(u0),
25637
+ reportId: u0 == null ? void 0 : u0.id,
25636
25638
  queryDatasource: Dr.Postgres
25637
25639
  },
25638
25640
  requestConfig: {
@@ -25640,7 +25642,7 @@ const l2 = async ({
25640
25642
  signal: b
25641
25643
  }
25642
25644
  };
25643
- return await sa([() => e1.fetch(_0)], 2e3);
25645
+ return await sa([() => e1.fetch(t)], 2e3);
25644
25646
  }, ap = async ({
25645
25647
  widget: c,
25646
25648
  signal: b,
@@ -25648,41 +25650,42 @@ const l2 = async ({
25648
25650
  scopedDateRange: $,
25649
25651
  scopedCompareDateRange: m
25650
25652
  }) => {
25651
- var z0, d0, e0, O0;
25652
- const { businessId: T } = C0(G0()), { currentReport: W, editingReport: v, overviewReport: P } = ye(), { selectedNavigationTab: N } = Be(), k = yr({
25653
+ var b0, t0, A0, y0;
25654
+ const { businessId: T } = C0(G0()), { currentReport: W, editingReport: v, overviewReport: P } = ye(), { selectedNavigationTab: N, isEditorRoute: k } = Be(), r0 = yr({
25653
25655
  selectedNavigationTab: N,
25656
+ isEditorRoute: k,
25654
25657
  overviewReport: P,
25655
25658
  editingReport: v,
25656
25659
  currentReport: W
25657
- }), t0 = Ue(N), { restaurants: p0, warehouses: s0, dateRange: n0, compareDateRange: H, timeRange: U, timezone: K } = le(), { globalFilters: Z } = ee();
25658
- if (p0.length === 0 && s0.length === 0)
25660
+ }), d0 = Ue(N), { restaurants: u0, warehouses: K, dateRange: X, compareDateRange: U, timeRange: Z, timezone: e0 } = le(), { globalFilters: M0 } = ee();
25661
+ if (u0.length === 0 && K.length === 0)
25659
25662
  return { totalBytesProcessed: 0 };
25660
- const c0 = $ ?? n0, a0 = m ?? H;
25663
+ const a0 = $ ?? X, i0 = m ?? U;
25661
25664
  if (!ke({
25662
- report: k,
25663
- pageSubject: t0,
25664
- dateRange: c0,
25665
- compareDateRange: a0,
25666
- timezone: K
25665
+ report: r0,
25666
+ pageSubject: d0,
25667
+ dateRange: a0,
25668
+ compareDateRange: i0,
25669
+ timezone: e0
25667
25670
  }))
25668
25671
  return { totalBytesProcessed: 0 };
25669
- const u0 = p0.map((y0) => y0.id), r0 = s0.map((y0) => y0.id), o0 = Xe(c, Z, D ?? ""), f0 = {
25672
+ const n0 = u0.map((p0) => p0.id), o0 = K.map((p0) => p0.id), $0 = Xe(c, M0, D ?? ""), z0 = {
25670
25673
  fetchType: Q0.Post,
25671
25674
  url: `/${T.value}/v2/query/dry-run`,
25672
25675
  data: {
25673
- widget: o0,
25674
- dateRange: [c0.startDate, c0.endDate],
25675
- compareDateRange: a0.startDate && a0.endDate ? [a0.startDate, a0.endDate] : void 0,
25676
+ widget: $0,
25677
+ dateRange: [a0.startDate, a0.endDate],
25678
+ compareDateRange: i0.startDate && i0.endDate ? [i0.startDate, i0.endDate] : void 0,
25676
25679
  timeRange: [
25677
- B0().tz(K).hour(Number((z0 = U.start) == null ? void 0 : z0.hour)).minute(Number((d0 = U.start) == null ? void 0 : d0.minute)).toISOString(),
25678
- B0().tz(K).hour(Number((e0 = U.end) == null ? void 0 : e0.hour)).minute(Number((O0 = U.end) == null ? void 0 : O0.minute)).endOf("minutes").toISOString()
25680
+ B0().tz(e0).hour(Number((b0 = Z.start) == null ? void 0 : b0.hour)).minute(Number((t0 = Z.start) == null ? void 0 : t0.minute)).toISOString(),
25681
+ B0().tz(e0).hour(Number((A0 = Z.end) == null ? void 0 : A0.hour)).minute(Number((y0 = Z.end) == null ? void 0 : y0.minute)).endOf("minutes").toISOString()
25679
25682
  ],
25680
25683
  businessIds: T.value ? [T.value] : [],
25681
- restaurantIds: u0,
25682
- warehouseIds: r0,
25683
- timezone: K,
25684
+ restaurantIds: n0,
25685
+ warehouseIds: o0,
25686
+ timezone: e0,
25684
25687
  skipStringSpaceGrouping: !1,
25685
- reportId: k == null ? void 0 : k.id,
25688
+ reportId: r0 == null ? void 0 : r0.id,
25686
25689
  queryDatasource: Dr.BigQuery
25687
25690
  },
25688
25691
  requestConfig: {
@@ -25690,7 +25693,7 @@ const l2 = async ({
25690
25693
  signal: b
25691
25694
  }
25692
25695
  };
25693
- return e1.fetch(f0);
25696
+ return e1.fetch(z0);
25694
25697
  }, p2 = async ({
25695
25698
  widget: c,
25696
25699
  signal: b,
@@ -25700,14 +25703,15 @@ const l2 = async ({
25700
25703
  scopedDateRange: T,
25701
25704
  scopedGlobalFilters: W
25702
25705
  }) => {
25703
- var A, h, L, C;
25704
- const { businessId: v, country: P } = C0(G0()), { currentReport: N, editingReport: k, overviewReport: t0 } = ye(), { selectedNavigationTab: p0 } = Be(), s0 = yr({
25705
- selectedNavigationTab: p0,
25706
- overviewReport: t0,
25706
+ var h, L, C, O;
25707
+ const { businessId: v, country: P } = C0(G0()), { currentReport: N, editingReport: k, overviewReport: r0 } = ye(), { selectedNavigationTab: d0, isEditorRoute: u0 } = Be(), K = yr({
25708
+ selectedNavigationTab: d0,
25709
+ isEditorRoute: u0,
25710
+ overviewReport: r0,
25707
25711
  editingReport: k,
25708
25712
  currentReport: N
25709
- }), n0 = Ue(p0);
25710
- if (Yt(s0))
25713
+ }), X = Ue(d0);
25714
+ if (Yt(K))
25711
25715
  return l2({
25712
25716
  widget: c,
25713
25717
  signal: b,
@@ -25718,63 +25722,63 @@ const l2 = async ({
25718
25722
  scopedGlobalFilters: W
25719
25723
  });
25720
25724
  const {
25721
- selectedRestaurantIds: H,
25722
- selectedWarehouseIds: U,
25723
- selectedLocationIds: K,
25724
- dateRange: Z,
25725
- compareDateRange: c0,
25726
- timeRange: a0,
25727
- timezone: u0,
25728
- restaurants: r0,
25729
- warehouses: o0
25730
- } = le(), { globalFilters: f0 } = ee();
25731
- if (K.length === 0)
25725
+ selectedRestaurantIds: U,
25726
+ selectedWarehouseIds: Z,
25727
+ selectedLocationIds: e0,
25728
+ dateRange: M0,
25729
+ compareDateRange: a0,
25730
+ timeRange: i0,
25731
+ timezone: n0,
25732
+ restaurants: o0,
25733
+ warehouses: $0
25734
+ } = le(), { globalFilters: z0 } = ee();
25735
+ if (e0.length === 0)
25732
25736
  return null;
25733
- const z0 = T ?? Z, d0 = m ?? a0, e0 = W ?? f0;
25737
+ const b0 = T ?? M0, t0 = m ?? i0, A0 = W ?? z0;
25734
25738
  if (!ke({
25735
- report: s0,
25736
- pageSubject: n0,
25737
- dateRange: z0,
25738
- compareDateRange: c0,
25739
- timezone: u0
25739
+ report: K,
25740
+ pageSubject: X,
25741
+ dateRange: b0,
25742
+ compareDateRange: a0,
25743
+ timezone: n0
25740
25744
  }))
25741
25745
  return null;
25742
- const O0 = ($ == null ? void 0 : $.filter((O) => r0.some((r) => r.id === O))) ?? H, y0 = ($ == null ? void 0 : $.filter((O) => o0.some((r) => r.id === O))) ?? U, _0 = Xe(c, e0, D ?? ""), t = {
25746
+ const y0 = ($ == null ? void 0 : $.filter((r) => o0.some((e) => e.id === r))) ?? U, p0 = ($ == null ? void 0 : $.filter((r) => $0.some((e) => e.id === r))) ?? Z, t = Xe(c, A0, D ?? ""), i = {
25743
25747
  fetchType: Q0.Post,
25744
25748
  url: `/${v.value}/postgres-query`,
25745
25749
  data: Ar.getQueryRequests({
25746
- widget: _0,
25747
- dateRange: [z0.startDate, z0.endDate],
25748
- compareDateRange: c0.startDate && c0.endDate ? [c0.startDate, c0.endDate] : void 0,
25750
+ widget: t,
25751
+ dateRange: [b0.startDate, b0.endDate],
25752
+ compareDateRange: a0.startDate && a0.endDate ? [a0.startDate, a0.endDate] : void 0,
25749
25753
  timeRange: [
25750
- B0().tz(u0).hour(Number((A = d0.start) == null ? void 0 : A.hour)).minute(Number((h = d0.start) == null ? void 0 : h.minute)).toISOString(),
25751
- B0().tz(u0).hour(Number((L = d0.end) == null ? void 0 : L.hour)).minute(Number((C = d0.end) == null ? void 0 : C.minute)).endOf("minutes").toISOString()
25754
+ B0().tz(n0).hour(Number((h = t0.start) == null ? void 0 : h.hour)).minute(Number((L = t0.start) == null ? void 0 : L.minute)).toISOString(),
25755
+ B0().tz(n0).hour(Number((C = t0.end) == null ? void 0 : C.hour)).minute(Number((O = t0.end) == null ? void 0 : O.minute)).endOf("minutes").toISOString()
25752
25756
  ],
25753
25757
  businessIds: v.value ? [v.value] : [],
25754
- restaurantIds: O0,
25755
- warehouseIds: y0,
25756
- timezone: u0
25757
- }).map((O, r) => {
25758
- const e = r === 0 ? 3e3 : 12e3;
25758
+ restaurantIds: y0,
25759
+ warehouseIds: p0,
25760
+ timezone: n0
25761
+ }).map((r, e) => {
25762
+ const n = e === 0 ? 3e3 : 12e3;
25759
25763
  return {
25760
- ...O,
25761
- limit: O0.length > 50 ? c.config.limit || e : c.config.limit,
25762
- skipStringSpaceGrouping: !!(s0 != null && s0.batch) || Yt(s0),
25763
- reportId: s0 == null ? void 0 : s0.id
25764
+ ...r,
25765
+ limit: y0.length > 50 ? c.config.limit || n : c.config.limit,
25766
+ skipStringSpaceGrouping: !!(K != null && K.batch) || Yt(K),
25767
+ reportId: K == null ? void 0 : K.id
25764
25768
  };
25765
25769
  }),
25766
25770
  requestConfig: {
25767
25771
  timeout: 1e3 * 60 * 5,
25768
25772
  signal: b
25769
25773
  }
25770
- }, i = [() => e1.fetch(t)];
25771
- H.length < 50 && i.push(() => e1.fetch(t)), i.push(() => e1.fetch(t));
25772
- const l = await sa(i, 2e3);
25774
+ }, l = [() => e1.fetch(i)];
25775
+ U.length < 50 && l.push(() => e1.fetch(i)), l.push(() => e1.fetch(i));
25776
+ const A = await sa(l, 2e3);
25773
25777
  return (await t2(Zl, {
25774
- responses: l,
25778
+ responses: A,
25775
25779
  widget: JSON.parse(JSON.stringify(c)),
25776
25780
  country: P.value,
25777
- timezone: u0
25781
+ timezone: n0
25778
25782
  })).data;
25779
25783
  }, op = async ({
25780
25784
  reportType: c,
@@ -25786,24 +25790,24 @@ const l2 = async ({
25786
25790
  dateRange: W,
25787
25791
  globalFilters: v
25788
25792
  }) => {
25789
- const { businessId: P } = C0(G0()), N = le(), { compareDateRange: k } = C0(N), { restaurants: t0, warehouses: p0, timezone: s0 } = N, { globalFilters: n0 } = ee(), { currentReport: H, overviewReport: U } = ye(), { selectedNavigationTab: K } = Be(), { getTileSorts: Z } = aa();
25790
- let c0 = H == null ? void 0 : H.id, a0 = ue(H == null ? void 0 : H.tiles);
25791
- K === "overview" && U && (c0 = U == null ? void 0 : U.id, a0 = ue(U == null ? void 0 : U.tiles));
25792
- const u0 = K === "overview" && U ? U : H, r0 = Ue(K);
25793
+ const { businessId: P } = C0(G0()), N = le(), { compareDateRange: k } = C0(N), { restaurants: r0, warehouses: d0, timezone: u0 } = N, { globalFilters: K } = ee(), { currentReport: X, overviewReport: U } = ye(), { selectedNavigationTab: Z } = Be(), { getTileSorts: e0 } = aa();
25794
+ let M0 = X == null ? void 0 : X.id, a0 = ue(X == null ? void 0 : X.tiles);
25795
+ Z === "overview" && U && (M0 = U == null ? void 0 : U.id, a0 = ue(U == null ? void 0 : U.tiles));
25796
+ const i0 = Z === "overview" && U ? U : X, n0 = Ue(Z);
25793
25797
  if (!ke({
25794
- report: u0,
25795
- pageSubject: r0,
25798
+ report: i0,
25799
+ pageSubject: n0,
25796
25800
  dateRange: W,
25797
25801
  compareDateRange: k.value,
25798
- timezone: s0
25802
+ timezone: u0
25799
25803
  }))
25800
25804
  return;
25801
- const o0 = v ?? n0, f0 = a0.filter((t, i) => typeof b == "number" ? i === b : !0).map((t) => Xe(t.widget, o0, t.id)), z0 = {
25805
+ const o0 = v ?? K, $0 = a0.filter((t, i) => typeof b == "number" ? i === b : !0).map((t) => Xe(t.widget, o0, t.id)), z0 = {
25802
25806
  fetchType: Q0.Post,
25803
25807
  url: `/${P.value}/file?lang=${oe()}`,
25804
25808
  data: {
25805
25809
  configs: [
25806
- ...f0.map((t, i) => {
25810
+ ...$0.map((t, i) => {
25807
25811
  var l, A, h, L;
25808
25812
  return {
25809
25813
  requests: Ar.getQueryRequests({
@@ -25811,26 +25815,26 @@ const l2 = async ({
25811
25815
  dateRange: [W.startDate, W.endDate],
25812
25816
  compareDateRange: k.value.startDate && k.value.endDate ? [k.value.startDate, k.value.endDate] : void 0,
25813
25817
  timeRange: [
25814
- B0().tz(s0).set("hour", Number((l = T.start) == null ? void 0 : l.hour)).set("minute", Number((A = T.start) == null ? void 0 : A.minute)).toISOString(),
25815
- B0().tz(s0).set("hour", Number((h = T.end) == null ? void 0 : h.hour)).set("minute", Number((L = T.end) == null ? void 0 : L.minute)).toISOString()
25818
+ B0().tz(u0).set("hour", Number((l = T.start) == null ? void 0 : l.hour)).set("minute", Number((A = T.start) == null ? void 0 : A.minute)).toISOString(),
25819
+ B0().tz(u0).set("hour", Number((h = T.end) == null ? void 0 : h.hour)).set("minute", Number((L = T.end) == null ? void 0 : L.minute)).toISOString()
25816
25820
  ],
25817
25821
  businessIds: P ? [P.value] : [],
25818
25822
  restaurantIds: m.filter(
25819
- (C) => t0.find((O) => O.id === C)
25823
+ (C) => r0.find((O) => O.id === C)
25820
25824
  ),
25821
25825
  warehouseIds: m.filter(
25822
- (C) => p0.find((O) => O.id === C)
25826
+ (C) => d0.find((O) => O.id === C)
25823
25827
  ),
25824
- timezone: s0
25828
+ timezone: u0
25825
25829
  }),
25826
25830
  index: b || i,
25827
25831
  drillDimension: null,
25828
25832
  ...ia(t),
25829
- globalSorts: Z(b ?? i)
25833
+ globalSorts: e0(b ?? i)
25830
25834
  };
25831
25835
  })
25832
25836
  ],
25833
- reportId: c0,
25837
+ reportId: M0,
25834
25838
  type: c,
25835
25839
  orientationTypes: D,
25836
25840
  isCombinedLocationLayout: $
@@ -25839,8 +25843,8 @@ const l2 = async ({
25839
25843
  responseType: "arraybuffer",
25840
25844
  timeout: 1e3 * 60 * 60 * 24
25841
25845
  }
25842
- }, { headers: d0, data: e0 } = await Qt.rawFetch(z0), O0 = d0["content-disposition"].split("filename=")[1].replaceAll('"', ""), y0 = window.URL.createObjectURL(new Blob([new Uint8Array(e0).buffer])), _0 = document.createElement("a");
25843
- _0.href = y0, _0.setAttribute("download", decodeURIComponent(O0)), document.body.appendChild(_0), _0.click(), _0.remove();
25846
+ }, { headers: b0, data: t0 } = await Qt.rawFetch(z0), A0 = b0["content-disposition"].split("filename=")[1].replaceAll('"', ""), y0 = window.URL.createObjectURL(new Blob([new Uint8Array(t0).buffer])), p0 = document.createElement("a");
25847
+ p0.href = y0, p0.setAttribute("download", decodeURIComponent(A0)), document.body.appendChild(p0), p0.click(), p0.remove();
25844
25848
  }, ip = async ({
25845
25849
  emails: c,
25846
25850
  types: b,
@@ -25851,23 +25855,23 @@ const l2 = async ({
25851
25855
  isCombinedLocationLayout: W,
25852
25856
  globalFilters: v
25853
25857
  }) => {
25854
- const { businessId: P } = C0(G0()), { currentReport: N, overviewReport: k } = ye(), { selectedNavigationTab: t0 } = Be(), p0 = le(), { compareDateRange: s0 } = C0(p0), { restaurants: n0, warehouses: H, timezone: U } = p0, { globalFilters: K } = ee(), { getTileSorts: Z } = aa();
25858
+ const { businessId: P } = C0(G0()), { currentReport: N, overviewReport: k } = ye(), { selectedNavigationTab: r0 } = Be(), d0 = le(), { compareDateRange: u0 } = C0(d0), { restaurants: K, warehouses: X, timezone: U } = d0, { globalFilters: Z } = ee(), { getTileSorts: e0 } = aa();
25855
25859
  if (c.length === 0) {
25856
25860
  console.error("No email addresses provided.");
25857
25861
  return;
25858
25862
  }
25859
- let c0 = (N == null ? void 0 : N.id) || "", a0 = (N == null ? void 0 : N.name) || "", u0 = ue(N == null ? void 0 : N.tiles);
25860
- t0 === "overview" && k && (c0 = k == null ? void 0 : k.id, a0 = k.name, u0 = ue(k == null ? void 0 : k.tiles));
25861
- const r0 = t0 === "overview" && k ? k : N, o0 = Ue(t0);
25863
+ let M0 = (N == null ? void 0 : N.id) || "", a0 = (N == null ? void 0 : N.name) || "", i0 = ue(N == null ? void 0 : N.tiles);
25864
+ r0 === "overview" && k && (M0 = k == null ? void 0 : k.id, a0 = k.name, i0 = ue(k == null ? void 0 : k.tiles));
25865
+ const n0 = r0 === "overview" && k ? k : N, o0 = Ue(r0);
25862
25866
  if (!ke({
25863
- report: r0,
25867
+ report: n0,
25864
25868
  pageSubject: o0,
25865
25869
  dateRange: D,
25866
- compareDateRange: s0.value,
25870
+ compareDateRange: u0.value,
25867
25871
  timezone: U
25868
25872
  }))
25869
25873
  return;
25870
- const f0 = v ?? K, z0 = u0.map((e0) => Xe(e0.widget, f0, e0.id)), d0 = {
25874
+ const $0 = v ?? Z, z0 = i0.map((t0) => Xe(t0.widget, $0, t0.id)), b0 = {
25871
25875
  businessId: P.value,
25872
25876
  status: na.generating,
25873
25877
  dateRange: {
@@ -25876,33 +25880,33 @@ const l2 = async ({
25876
25880
  },
25877
25881
  reportName: a0,
25878
25882
  emails: c,
25879
- configs: z0.map((e0, O0) => {
25880
- var y0, _0, t, i;
25883
+ configs: z0.map((t0, A0) => {
25884
+ var y0, p0, t, i;
25881
25885
  return {
25882
25886
  requests: Ar.getQueryRequests({
25883
- widget: e0,
25887
+ widget: t0,
25884
25888
  dateRange: [D.startDate, D.endDate],
25885
- compareDateRange: s0.value.startDate && s0.value.endDate ? [s0.value.startDate, s0.value.endDate] : void 0,
25889
+ compareDateRange: u0.value.startDate && u0.value.endDate ? [u0.value.startDate, u0.value.endDate] : void 0,
25886
25890
  timeRange: [
25887
- B0().tz(U).hour(Number((y0 = $.start) == null ? void 0 : y0.hour)).minute(Number((_0 = $.start) == null ? void 0 : _0.minute)).toISOString(),
25891
+ B0().tz(U).hour(Number((y0 = $.start) == null ? void 0 : y0.hour)).minute(Number((p0 = $.start) == null ? void 0 : p0.minute)).toISOString(),
25888
25892
  B0().tz(U).hour(Number((t = $.end) == null ? void 0 : t.hour)).minute(Number((i = $.end) == null ? void 0 : i.minute)).endOf("minutes").toISOString()
25889
25893
  ],
25890
25894
  businessIds: P ? [P.value] : [],
25891
25895
  restaurantIds: m.filter(
25892
- (l) => n0.find((A) => A.id === l)
25896
+ (l) => K.find((A) => A.id === l)
25893
25897
  ),
25894
25898
  warehouseIds: m.filter(
25895
- (l) => H.find((A) => A.id === l)
25899
+ (l) => X.find((A) => A.id === l)
25896
25900
  ),
25897
25901
  timezone: U
25898
25902
  }),
25899
- index: O0,
25903
+ index: A0,
25900
25904
  drillDimension: null,
25901
- ...ia(e0),
25902
- globalSorts: Z(O0)
25905
+ ...ia(t0),
25906
+ globalSorts: e0(A0)
25903
25907
  };
25904
25908
  }),
25905
- reportId: c0,
25909
+ reportId: M0,
25906
25910
  type: b,
25907
25911
  orientationTypes: T,
25908
25912
  isCombinedLocationLayout: W
@@ -25910,7 +25914,7 @@ const l2 = async ({
25910
25914
  await Qt.fetch({
25911
25915
  fetchType: Q0.Post,
25912
25916
  url: `/${P.value}/reports/email?lang=${oe()}`,
25913
- data: d0,
25917
+ data: b0,
25914
25918
  requestConfig: { timeout: 1e3 * 60 * 3 }
25915
25919
  });
25916
25920
  }, sp = async (c) => {
@@ -26012,11 +26016,11 @@ const l2 = async ({
26012
26016
  emits: /* @__PURE__ */ it(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
26013
26017
  setup(c, { emit: b }) {
26014
26018
  const { t: D, locale: $ } = tn(), m = It(c, "timeRange"), T = b, W = It(c, "selectTimeDefault");
26015
- function v(n0) {
26016
- n0 && (m.value = n0, T("update", m.value)), t0.value = !1;
26019
+ function v(K) {
26020
+ K && (m.value = K, T("update", m.value)), r0.value = !1;
26017
26021
  }
26018
- function P(n0) {
26019
- const H = n0.split(":"), U = B0().set("hour", Number(H[0])).set("minute", Number(H[1]));
26022
+ function P(K) {
26023
+ const X = K.split(":"), U = B0().set("hour", Number(X[0])).set("minute", Number(X[1]));
26020
26024
  return {
26021
26025
  hours: Number(U.format("h")),
26022
26026
  minutes: Number(U.format("m")),
@@ -26024,81 +26028,81 @@ const l2 = async ({
26024
26028
  };
26025
26029
  }
26026
26030
  const N = R0(JSON.parse(JSON.stringify(m.value)));
26027
- function k(n0, H) {
26028
- N.value.start = JSON.parse(JSON.stringify(n0)), N.value.end = JSON.parse(JSON.stringify(H));
26031
+ function k(K, X) {
26032
+ N.value.start = JSON.parse(JSON.stringify(K)), N.value.end = JSON.parse(JSON.stringify(X));
26029
26033
  }
26030
26034
  V1(
26031
26035
  () => [m.value, c.defaultDateRange],
26032
26036
  () => {
26033
26037
  if (m.value) {
26034
- const n0 = c.defaultDateRange.findIndex(
26035
- (H) => {
26036
- var U, K, Z, c0;
26037
- return H.startTime.hour === ((U = m.value.start) == null ? void 0 : U.hour) && H.startTime.minute === ((K = m.value.start) == null ? void 0 : K.minute) && H.endTime.hour === ((Z = m.value.end) == null ? void 0 : Z.hour) && H.endTime.minute === ((c0 = m.value.end) == null ? void 0 : c0.minute);
26038
+ const K = c.defaultDateRange.findIndex(
26039
+ (X) => {
26040
+ var U, Z, e0, M0;
26041
+ return X.startTime.hour === ((U = m.value.start) == null ? void 0 : U.hour) && X.startTime.minute === ((Z = m.value.start) == null ? void 0 : Z.minute) && X.endTime.hour === ((e0 = m.value.end) == null ? void 0 : e0.hour) && X.endTime.minute === ((M0 = m.value.end) == null ? void 0 : M0.minute);
26038
26042
  }
26039
26043
  ) + 1;
26040
- n0 !== 0 ? W.value = n0 : W.value = c.defaultDateRange.length + 1;
26044
+ K !== 0 ? W.value = K : W.value = c.defaultDateRange.length + 1;
26041
26045
  }
26042
26046
  },
26043
26047
  { deep: !0, immediate: !0 }
26044
26048
  );
26045
- const t0 = R0(!1);
26046
- function p0(n0) {
26047
- T("chip-closed", n0);
26049
+ const r0 = R0(!1);
26050
+ function d0(K) {
26051
+ T("chip-closed", K);
26048
26052
  }
26049
- const s0 = c1(() => c.label ? c.label : jr({
26053
+ const u0 = c1(() => c.label ? c.label : jr({
26050
26054
  startTime: m.value.start,
26051
26055
  endTime: m.value.end,
26052
26056
  locale: $.value
26053
26057
  }));
26054
- return (n0, H) => {
26055
- const U = o1("FmChip"), K = o1("FmRadio"), Z = o1("FmMenuDivider"), c0 = o1("FmRadioGroup"), a0 = o1("FmTimeInput"), u0 = o1("FmButton"), r0 = o1("FmPopover");
26058
+ return (K, X) => {
26059
+ const U = o1("FmChip"), Z = o1("FmRadio"), e0 = o1("FmMenuDivider"), M0 = o1("FmRadioGroup"), a0 = o1("FmTimeInput"), i0 = o1("FmButton"), n0 = o1("FmPopover");
26056
26060
  return r1(), h1("div", null, [
26057
- U0(r0, {
26058
- "show-popover": t0.value,
26061
+ U0(n0, {
26062
+ "show-popover": r0.value,
26059
26063
  placement: "bottom",
26060
- onPopoverChanged: H[6] || (H[6] = (o0) => t0.value = o0)
26064
+ onPopoverChanged: X[6] || (X[6] = (o0) => r0.value = o0)
26061
26065
  }, {
26062
26066
  "popover-button": d1(() => [
26063
26067
  U0(Kr, {
26064
26068
  "left-icon": c.label ? "filter_alt" : "schedule",
26065
- label: s0.value,
26069
+ label: u0.value,
26066
26070
  removable: c.removable,
26067
- onChipClosed: H[0] || (H[0] = (o0) => p0(!0))
26071
+ onChipClosed: X[0] || (X[0] = (o0) => d0(!0))
26068
26072
  }, null, 8, ["left-icon", "label", "removable"])
26069
26073
  ]),
26070
26074
  default: d1(() => {
26071
- var o0, f0, z0, d0;
26075
+ var o0, $0, z0, b0;
26072
26076
  return [
26073
26077
  j0("div", _2, [
26074
- U0(c0, {
26078
+ U0(M0, {
26075
26079
  modelValue: W.value,
26076
- "onUpdate:modelValue": H[1] || (H[1] = (e0) => W.value = e0)
26080
+ "onUpdate:modelValue": X[1] || (X[1] = (t0) => W.value = t0)
26077
26081
  }, {
26078
26082
  default: d1(() => [
26079
- (r1(!0), h1(_e, null, Bt(c.defaultDateRange, (e0, O0) => (r1(), v1(K, {
26080
- key: `range_${O0}`,
26081
- value: O0 + 1,
26082
- label: e0.name,
26083
- onClick: (y0) => k(e0.startTime, e0.endTime)
26083
+ (r1(!0), h1(_e, null, Bt(c.defaultDateRange, (t0, A0) => (r1(), v1(Z, {
26084
+ key: `range_${A0}`,
26085
+ value: A0 + 1,
26086
+ label: t0.name,
26087
+ onClick: (y0) => k(t0.startTime, t0.endTime)
26084
26088
  }, {
26085
26089
  label: d1(() => [
26086
26090
  j0("p", d2, [
26087
- st(S1(e0.name) + " ", 1),
26091
+ st(S1(t0.name) + " ", 1),
26088
26092
  qa(U0(U, {
26089
26093
  label: E0(D)("report.common.default"),
26090
26094
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
26091
26095
  compact: ""
26092
26096
  }, null, 8, ["label"]), [
26093
- [ga, e0.isDefault]
26097
+ [ga, t0.isDefault]
26094
26098
  ])
26095
26099
  ]),
26096
- j0("p", z2, S1(E0(Qr)(e0.startTime, E0(oe)())) + " - " + S1(E0(Qr)(e0.endTime, E0(oe)())) + " " + S1(E0(b2)(e0.startTime, e0.endTime)), 1)
26100
+ j0("p", z2, S1(E0(Qr)(t0.startTime, E0(oe)())) + " - " + S1(E0(Qr)(t0.endTime, E0(oe)())) + " " + S1(E0(b2)(t0.startTime, t0.endTime)), 1)
26097
26101
  ]),
26098
26102
  _: 2
26099
26103
  }, 1032, ["value", "label", "onClick"]))), 128)),
26100
- U0(Z),
26101
- U0(K, {
26104
+ U0(e0),
26105
+ U0(Z, {
26102
26106
  key: "range_custom",
26103
26107
  label: E0(D)("report.common.custom"),
26104
26108
  value: c.defaultDateRange.length + 1
@@ -26110,13 +26114,13 @@ const l2 = async ({
26110
26114
  j0("p", O2, S1(E0(D)("report.date.startingTime")), 1),
26111
26115
  j0("div", A2, [
26112
26116
  U0(a0, {
26113
- "model-value": P(`${(o0 = N.value.start) == null ? void 0 : o0.hour}:${(f0 = N.value.start) == null ? void 0 : f0.minute}`),
26114
- "onUpdate:modelValue": H[2] || (H[2] = (e0) => {
26117
+ "model-value": P(`${(o0 = N.value.start) == null ? void 0 : o0.hour}:${($0 = N.value.start) == null ? void 0 : $0.minute}`),
26118
+ "onUpdate:modelValue": X[2] || (X[2] = (t0) => {
26115
26119
  if (N.value.start) {
26116
- const O0 = E0(B0)(`${e0.hours}:${e0.minutes} ${e0.period}`, "h:m A").locale(
26120
+ const A0 = E0(B0)(`${t0.hours}:${t0.minutes} ${t0.period}`, "h:m A").locale(
26117
26121
  E0(oe)()
26118
26122
  );
26119
- N.value.start.hour = O0.get("hour"), N.value.start.minute = O0.get("minute");
26123
+ N.value.start.hour = A0.get("hour"), N.value.start.minute = A0.get("minute");
26120
26124
  }
26121
26125
  })
26122
26126
  }, null, 8, ["model-value"])
@@ -26124,28 +26128,28 @@ const l2 = async ({
26124
26128
  j0("p", D2, S1(E0(D)("report.date.endingTime")), 1),
26125
26129
  j0("div", f2, [
26126
26130
  U0(a0, {
26127
- "model-value": P(`${(z0 = N.value.end) == null ? void 0 : z0.hour}:${(d0 = N.value.end) == null ? void 0 : d0.minute}`),
26128
- "onUpdate:modelValue": H[3] || (H[3] = (e0) => {
26131
+ "model-value": P(`${(z0 = N.value.end) == null ? void 0 : z0.hour}:${(b0 = N.value.end) == null ? void 0 : b0.minute}`),
26132
+ "onUpdate:modelValue": X[3] || (X[3] = (t0) => {
26129
26133
  if (N.value.end) {
26130
- const O0 = E0(B0)(`${e0.hours}:${e0.minutes} ${e0.period}`, "h:m A").locale(
26134
+ const A0 = E0(B0)(`${t0.hours}:${t0.minutes} ${t0.period}`, "h:m A").locale(
26131
26135
  E0(oe)()
26132
26136
  );
26133
- N.value.end.hour = O0.get("hour"), N.value.end.minute = O0.get("minute");
26137
+ N.value.end.hour = A0.get("hour"), N.value.end.minute = A0.get("minute");
26134
26138
  }
26135
26139
  })
26136
26140
  }, null, 8, ["model-value"])
26137
26141
  ])
26138
26142
  ], 64)) : Ft("", !0),
26139
26143
  j0("div", $2, [
26140
- H[7] || (H[7] = j0("div", { class: "grow" }, null, -1)),
26141
- U0(u0, {
26144
+ X[7] || (X[7] = j0("div", { class: "grow" }, null, -1)),
26145
+ U0(i0, {
26142
26146
  label: E0(D)("report.common.cancel"),
26143
26147
  variant: "tertiary",
26144
- onClick: H[4] || (H[4] = (e0) => t0.value = !1)
26148
+ onClick: X[4] || (X[4] = (t0) => r0.value = !1)
26145
26149
  }, null, 8, ["label"]),
26146
- U0(u0, {
26150
+ U0(i0, {
26147
26151
  label: E0(D)("report.common.apply"),
26148
- onClick: H[5] || (H[5] = () => v(JSON.parse(JSON.stringify(N.value))))
26152
+ onClick: X[5] || (X[5] = () => v(JSON.parse(JSON.stringify(N.value))))
26149
26153
  }, null, 8, ["label"])
26150
26154
  ])
26151
26155
  ])
@@ -26410,19 +26414,19 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26410
26414
  },
26411
26415
  setup(c) {
26412
26416
  const b = c, { t: D, locale: $ } = tn(), { currentReport: m, editingTile: T } = C0(ye());
26413
- let { timeRange: W, dateRange: v, selectedLocationIds: P, timezone: N } = C0(le()), { globalFilters: k } = C0(ee()), { schemas: t0 } = C0(ra()), {
26414
- showMore: p0,
26415
- getGlobalFilter: s0,
26416
- setGlobalFilter: n0,
26417
- setIncludeUnavailable: H,
26417
+ let { timeRange: W, dateRange: v, selectedLocationIds: P, timezone: N } = C0(le()), { globalFilters: k } = C0(ee()), { schemas: r0 } = C0(ra()), {
26418
+ showMore: d0,
26419
+ getGlobalFilter: u0,
26420
+ setGlobalFilter: K,
26421
+ setIncludeUnavailable: X,
26418
26422
  getGlobalFilterKey: U,
26419
- isMenuOpen: K,
26420
- getGlobalFilterLabel: Z,
26421
- incrementAppliedTilesFiltersVersion: c0
26423
+ isMenuOpen: Z,
26424
+ getGlobalFilterLabel: e0,
26425
+ incrementAppliedTilesFiltersVersion: M0
26422
26426
  } = ee();
26423
- const a0 = c1(() => D("report.input.empty")), u0 = ["NULL", "", " "];
26424
- let r0;
26425
- const o0 = M2(), { getWidgetResult: f0 } = o0, { widgetResults: z0, isAllWidgetResultLoaded: d0 } = C0(o0), e0 = R0(!1), O0 = R0(!1), y0 = R0(""), _0 = R0({}), t = c1(() => {
26427
+ const a0 = c1(() => D("report.input.empty")), i0 = ["NULL", "", " "];
26428
+ let n0;
26429
+ const o0 = M2(), { getWidgetResult: $0 } = o0, { widgetResults: z0, isAllWidgetResultLoaded: b0 } = C0(o0), t0 = R0(!1), A0 = R0(!1), y0 = R0(""), p0 = R0({}), t = c1(() => {
26426
26430
  var S;
26427
26431
  return b.globalFilterId ?? ((S = m.value) == null ? void 0 : S.id) ?? "";
26428
26432
  }), i = c1(() => b.report ?? m.value), l = R0([]);
@@ -26430,7 +26434,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26430
26434
  return `${t.value}|instance:${S}`;
26431
26435
  }
26432
26436
  function h(S) {
26433
- return gt(S) ? !1 : e0.value ? !0 : b.isDialogGlobalFilter ? O0.value : !d0.value && S.options.length === 0;
26437
+ return gt(S) ? !1 : t0.value ? !0 : b.isDialogGlobalFilter ? A0.value : !b0.value && S.options.length === 0;
26434
26438
  }
26435
26439
  function L(S, x) {
26436
26440
  return (S == null ? void 0 : S.startDate) === (x == null ? void 0 : x.startDate) && (S == null ? void 0 : S.endDate) === (x == null ? void 0 : x.endDate);
@@ -26452,7 +26456,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26452
26456
  return S ? [...S.tileIds ?? []] : Array.from(new Set(i1.value.flatMap((x) => x.tileIds ?? [])));
26453
26457
  }
26454
26458
  function n(S) {
26455
- b.isDialogGlobalFilter || c0(e(S));
26459
+ b.isDialogGlobalFilter || M0(e(S));
26456
26460
  }
26457
26461
  function a(S) {
26458
26462
  return S.filter((x) => x !== N1);
@@ -26461,23 +26465,23 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26461
26465
  const x = S.some(
26462
26466
  (G) => G === Q1 || G === "NULL" || typeof G == "string" && (G === "" || G === " ")
26463
26467
  ), Q = S.flatMap(
26464
- (G) => G === Q1 ? [...u0] : [G]
26468
+ (G) => G === Q1 ? [...i0] : [G]
26465
26469
  );
26466
- return x ? Array.from(/* @__PURE__ */ new Set([...Q, ...u0])) : Array.from(new Set(Q));
26470
+ return x ? Array.from(/* @__PURE__ */ new Set([...Q, ...i0])) : Array.from(new Set(Q));
26467
26471
  }
26468
26472
  function s(S) {
26469
- const x = s0(
26473
+ const x = u0(
26470
26474
  S.globalFilter,
26471
26475
  A(S.id)
26472
26476
  ).selectedValues;
26473
26477
  return x != null && x.length ? x : S.selectedValues || [];
26474
26478
  }
26475
26479
  function u(S) {
26476
- S.selectedValues = [], S.globalFilter.values = [], n0(S.globalFilter, A(S.id), { selectedValues: [] });
26480
+ S.selectedValues = [], S.globalFilter.values = [], K(S.globalFilter, A(S.id), { selectedValues: [] });
26477
26481
  }
26478
26482
  function p(S) {
26479
26483
  const x = f(S);
26480
- S.selectedValues = [...x], S.globalFilter.values = $0(S), n0(S.globalFilter, A(S.id), {
26484
+ S.selectedValues = [...x], S.globalFilter.values = f0(S), K(S.globalFilter, A(S.id), {
26481
26485
  selectedValues: x
26482
26486
  });
26483
26487
  }
@@ -26489,7 +26493,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26489
26493
  }
26490
26494
  function d(S) {
26491
26495
  const x = a(s(S));
26492
- _0.value[S.id] = [...x], u(S);
26496
+ p0.value[S.id] = [...x], u(S);
26493
26497
  }
26494
26498
  function z() {
26495
26499
  var G, D0, h0, m0;
@@ -26514,7 +26518,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26514
26518
  if (x.length)
26515
26519
  return x.map((G) => String(G));
26516
26520
  const Q = a(
26517
- s0(S.globalFilter, A(S.id)).selectedValues
26521
+ u0(S.globalFilter, A(S.id)).selectedValues
26518
26522
  );
26519
26523
  return Q.length ? Q.map((G) => String(G)) : (S.globalFilter.values ?? []).map((G) => String(G));
26520
26524
  }
@@ -26524,7 +26528,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26524
26528
  const x = a(S.selectedValues || []);
26525
26529
  if (x.length)
26526
26530
  return x;
26527
- const Q = s0(
26531
+ const Q = u0(
26528
26532
  S.globalFilter,
26529
26533
  A(S.id)
26530
26534
  ).selectedValues;
@@ -26562,8 +26566,8 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26562
26566
  const Q = new Set((S.options || []).map((G) => G.value));
26563
26567
  return a(x).filter((G) => Q.has(G));
26564
26568
  }
26565
- function X(S) {
26566
- const Q = s0(S.globalFilter, A(S.id)).selectedValues, G = b.isDialogGlobalFilter ? q(S) : [];
26569
+ function H(S) {
26570
+ const Q = u0(S.globalFilter, A(S.id)).selectedValues, G = b.isDialogGlobalFilter ? q(S) : [];
26567
26571
  if (g(S.selectedValues || []))
26568
26572
  return [N1];
26569
26573
  if (g(Q || []))
@@ -26600,7 +26604,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26600
26604
  const x = S.selectedValues || [];
26601
26605
  return g(x) || !w(S) ? !1 : a(x).length === 0;
26602
26606
  }
26603
- function $0(S) {
26607
+ function f0(S) {
26604
26608
  const x = f(S), Q = a(x), G = o(Q), D0 = g(x);
26605
26609
  if (V(S))
26606
26610
  return [];
@@ -26617,13 +26621,13 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26617
26621
  ), x0 = o(m0);
26618
26622
  return x0.length ? x0 : D0 ? [Q1] : [];
26619
26623
  }
26620
- function M0(S) {
26621
- const x = _0.value[S.id];
26624
+ function c0(S) {
26625
+ const x = p0.value[S.id];
26622
26626
  if (x) {
26623
- S.selectedValues = [...x], p(S), delete _0.value[S.id];
26627
+ S.selectedValues = [...x], p(S), delete p0.value[S.id];
26624
26628
  return;
26625
26629
  }
26626
- S.selectedValues = X(S), p(S);
26630
+ S.selectedValues = H(S), p(S);
26627
26631
  }
26628
26632
  function t1() {
26629
26633
  l.value.forEach((S) => {
@@ -26658,7 +26662,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26658
26662
  return S.map((x) => p1(x));
26659
26663
  }
26660
26664
  function s1(S, x) {
26661
- const Q = `${U(S, t.value)}|${x}`, G = s0(S, A(Q)), D0 = G.selectedValues.length ? [...G.selectedValues] : [...S.values ?? []];
26665
+ const Q = `${U(S, t.value)}|${x}`, G = u0(S, A(Q)), D0 = G.selectedValues.length ? [...G.selectedValues] : [...S.values ?? []];
26662
26666
  return {
26663
26667
  id: Q,
26664
26668
  globalFilter: S,
@@ -26697,12 +26701,12 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26697
26701
  (S, x) => {
26698
26702
  x && x.globalFilterId !== S.globalFilterId && l.value.forEach((Q) => {
26699
26703
  Q.options = [];
26700
- }), M1(), x && x.globalFiltersConfigSignature !== S.globalFiltersConfigSignature && n(), d0.value && Ge();
26704
+ }), M1(), x && x.globalFiltersConfigSignature !== S.globalFiltersConfigSignature && n(), b0.value && Ge();
26701
26705
  },
26702
26706
  { immediate: !0 }
26703
26707
  ), V1(
26704
26708
  [
26705
- d0,
26709
+ b0,
26706
26710
  W,
26707
26711
  v,
26708
26712
  P,
@@ -26752,7 +26756,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26752
26756
  }
26753
26757
  function me(S) {
26754
26758
  var Q;
26755
- const x = (Q = t0.value.find((G) => G.name === S.schemaName)) == null ? void 0 : Q.fields.find((G) => G.name === S.name);
26759
+ const x = (Q = r0.value.find((G) => G.name === S.schemaName)) == null ? void 0 : Q.fields.find((G) => G.name === S.name);
26756
26760
  return x == null ? void 0 : x.type;
26757
26761
  }
26758
26762
  function la(S) {
@@ -26763,23 +26767,23 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26763
26767
  var D1, g0;
26764
26768
  const v0 = (D1 = N0 == null ? void 0 : N0.widget) == null ? void 0 : D1.config;
26765
26769
  if (!v0 || (g0 = S.tileIds) != null && g0.length && !S.tileIds.includes(N0.id)) return !1;
26766
- const i0 = (v0.dimensions ?? []).some(
26770
+ const s0 = (v0.dimensions ?? []).some(
26767
26771
  (te) => te.schemaName === G && te.name === Q
26768
26772
  ), V0 = (v0.joinDatasources ?? []).some(
26769
26773
  (te) => (te.dimensions ?? []).some((ge) => ge.schemaName === G && ge.name === Q)
26770
26774
  ), S0 = (v0.schemaNames ?? []).includes(G);
26771
- return i0 || V0 || S0;
26775
+ return s0 || V0 || S0;
26772
26776
  });
26773
26777
  if (!D0.length) return [];
26774
26778
  const h0 = (N0, v0) => {
26775
- const i0 = /* @__PURE__ */ new Map(), V0 = (S0) => {
26776
- const D1 = `${S0.schemaName}:${S0.name}:${S0.operator}:${S0.option ?? ""}:${S0.dataFormula ?? ""}`, g0 = i0.get(D1);
26777
- g0 ? [P0.Like, P0.NotLike].includes(S0.operator) ? g0.values = Array.from(/* @__PURE__ */ new Set([...g0.values ?? [], ...S0.values ?? []])) : i0.set(D1, { ...S0 }) : i0.set(D1, { ...S0 });
26779
+ const s0 = /* @__PURE__ */ new Map(), V0 = (S0) => {
26780
+ const D1 = `${S0.schemaName}:${S0.name}:${S0.operator}:${S0.option ?? ""}:${S0.dataFormula ?? ""}`, g0 = s0.get(D1);
26781
+ g0 ? [P0.Like, P0.NotLike].includes(S0.operator) ? g0.values = Array.from(/* @__PURE__ */ new Set([...g0.values ?? [], ...S0.values ?? []])) : s0.set(D1, { ...S0 }) : s0.set(D1, { ...S0 });
26778
26782
  };
26779
- return N0.forEach(V0), v0.forEach(V0), Array.from(i0.values());
26783
+ return N0.forEach(V0), v0.forEach(V0), Array.from(s0.values());
26780
26784
  }, m0 = (N0) => {
26781
- var i0;
26782
- const v0 = (i0 = N0.dimensions) == null ? void 0 : i0.find(
26785
+ var s0;
26786
+ const v0 = (s0 = N0.dimensions) == null ? void 0 : s0.find(
26783
26787
  (V0) => V0.schemaName === G && V0.name === Q
26784
26788
  );
26785
26789
  return {
@@ -26793,15 +26797,15 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26793
26797
  };
26794
26798
  return D0.reduce((N0, v0) => {
26795
26799
  var ge, Cr;
26796
- const i0 = (ge = v0 == null ? void 0 : v0.widget) == null ? void 0 : ge.config;
26797
- if (!i0) return N0;
26798
- const V0 = m0(i0), S0 = (i0.dimensions ?? []).some((G1) => G1.schemaName === G) || (i0.schemaNames ?? []).includes(G), D1 = h0(
26799
- i0.filters ?? [],
26800
+ const s0 = (ge = v0 == null ? void 0 : v0.widget) == null ? void 0 : ge.config;
26801
+ if (!s0) return N0;
26802
+ const V0 = m0(s0), S0 = (s0.dimensions ?? []).some((G1) => G1.schemaName === G) || (s0.schemaNames ?? []).includes(G), D1 = h0(
26803
+ s0.filters ?? [],
26800
26804
  (S.filters ?? []).filter((G1) => {
26801
26805
  var re;
26802
- return (re = i0.schemaNames) == null ? void 0 : re.includes(G1.schemaName);
26806
+ return (re = s0.schemaNames) == null ? void 0 : re.includes(G1.schemaName);
26803
26807
  })
26804
- ), g0 = (Cr = i0.joinDatasources) == null ? void 0 : Cr.find(
26808
+ ), g0 = (Cr = s0.joinDatasources) == null ? void 0 : Cr.find(
26805
26809
  (G1) => (G1.schemaNames ?? []).includes(G) || (G1.dimensions ?? []).some((re) => re.schemaName === G)
26806
26810
  ), te = h0(
26807
26811
  (g0 == null ? void 0 : g0.filters) ?? [],
@@ -26814,8 +26818,8 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26814
26818
  type: kt.Table,
26815
26819
  title: "Global Filter",
26816
26820
  config: {
26817
- schemaNames: i0.schemaNames,
26818
- schemas: i0.schemas,
26821
+ schemaNames: s0.schemaNames,
26822
+ schemas: s0.schemas,
26819
26823
  dimensions: S0 ? [V0] : [],
26820
26824
  filters: D1,
26821
26825
  sorts: S0 ? [{ name: Q, schemaName: G, type: Xt.Asc, aggregation: null, dimensionOption: null }] : [],
@@ -26871,10 +26875,10 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26871
26875
  })
26872
26876
  );
26873
26877
  function ca(S) {
26874
- S.visibleCount += 50, p0(S.globalFilter, A(S.id), 50);
26878
+ S.visibleCount += 50, d0(S.globalFilter, A(S.id), 50);
26875
26879
  }
26876
26880
  function Ma(S, x) {
26877
- n0(S.globalFilter, A(S.id), { search: x });
26881
+ K(S.globalFilter, A(S.id), { search: x });
26878
26882
  }
26879
26883
  function qe(S) {
26880
26884
  var x, Q;
@@ -26933,7 +26937,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26933
26937
  S.selectedValues = D0;
26934
26938
  }
26935
26939
  const x = f(S);
26936
- S.selectedValues = [...x], n0(S.globalFilter, A(S.id), {
26940
+ S.selectedValues = [...x], K(S.globalFilter, A(S.id), {
26937
26941
  selectedValues: x
26938
26942
  });
26939
26943
  }
@@ -26945,7 +26949,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26945
26949
  }
26946
26950
  if (!(!S.type && (S.type = me(S.globalFilter), !S.type))) {
26947
26951
  if (qe(S.globalFilter)) {
26948
- S.options = ba(S.globalFilter), M0(S);
26952
+ S.options = ba(S.globalFilter), c0(S);
26949
26953
  return;
26950
26954
  }
26951
26955
  switch (S.type) {
@@ -26957,11 +26961,11 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26957
26961
  return;
26958
26962
  }
26959
26963
  const D0 = hr(), h0 = [];
26960
- for (const i0 of G) {
26964
+ for (const s0 of G) {
26961
26965
  if (x.aborted) return;
26962
26966
  if (D0) {
26963
26967
  const S0 = await p2({
26964
- widget: i0,
26968
+ widget: s0,
26965
26969
  signal: x,
26966
26970
  scopedLocationIds: b.locationIds,
26967
26971
  scopedTimeRange: b.timeRange,
@@ -26974,7 +26978,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26974
26978
  }));
26975
26979
  continue;
26976
26980
  }
26977
- const V0 = f0(
26981
+ const V0 = $0(
26978
26982
  Ur(S.globalFilter, Sr())
26979
26983
  );
26980
26984
  h0.push(...V0);
@@ -26983,9 +26987,9 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26983
26987
  S.options = R(
26984
26988
  Gl(X0, {
26985
26989
  unknownLabel: a0.value,
26986
- getAvailable: (i0) => S.keepSelection ? N0.has(i0) : v0.has(i0)
26990
+ getAvailable: (s0) => S.keepSelection ? N0.has(s0) : v0.has(s0)
26987
26991
  })
26988
- ), M0(S);
26992
+ ), c0(S);
26989
26993
  } catch (G) {
26990
26994
  if ((G == null ? void 0 : G.code) === "ERR_CANCELED" || (G == null ? void 0 : G.name) === "CanceledError")
26991
26995
  return;
@@ -26996,7 +27000,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
26996
27000
  S.options = [
26997
27001
  { label: D("report.common.yes"), value: !0 },
26998
27002
  { label: D("report.common.no"), value: !1 }
26999
- ], M0(S);
27003
+ ], c0(S);
27000
27004
  break;
27001
27005
  }
27002
27006
  case f1.Timestamp:
@@ -27004,7 +27008,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27004
27008
  const G = S.globalFilter.option;
27005
27009
  S.options = Lt({ dimensionOption: G, t: D }), S.globalFilter.values = S.options.length ? S.options.map((D0) => D0.value) : ["NULL"];
27006
27010
  }
27007
- M0(S);
27011
+ c0(S);
27008
27012
  break;
27009
27013
  case f1.Numeric:
27010
27014
  break;
@@ -27013,9 +27017,9 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27013
27017
  }
27014
27018
  async function Ge() {
27015
27019
  if (!t.value || !l.value.length) return;
27016
- r0 && r0.abort();
27020
+ n0 && n0.abort();
27017
27021
  const S = new AbortController();
27018
- r0 = S, e0.value = !0, b.isDialogGlobalFilter && (O0.value = !0);
27022
+ n0 = S, t0.value = !0, b.isDialogGlobalFilter && (A0.value = !0);
27019
27023
  try {
27020
27024
  await Promise.all(
27021
27025
  l.value.map(
@@ -27023,7 +27027,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27023
27027
  )
27024
27028
  );
27025
27029
  } finally {
27026
- r0 === S && (e0.value = !1), b.isDialogGlobalFilter && r0 === S && (O0.value = !1);
27030
+ n0 === S && (t0.value = !1), b.isDialogGlobalFilter && n0 === S && (A0.value = !1);
27027
27031
  }
27028
27032
  }
27029
27033
  function Tr(S, x) {
@@ -27036,7 +27040,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27036
27040
  S.selectedValues = x0 ? [] : m0;
27037
27041
  }
27038
27042
  const h0 = f(S);
27039
- S.selectedValues = [...h0], n0(S.globalFilter, A(S.id), {
27043
+ S.selectedValues = [...h0], K(S.globalFilter, A(S.id), {
27040
27044
  selectedValues: h0
27041
27045
  });
27042
27046
  }
@@ -27045,7 +27049,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27045
27049
  B0(x.startDate).tz(N.value).startOf("day").utc().toISOString(),
27046
27050
  B0(x.endDate).tz(N.value).endOf("day").utc().toISOString()
27047
27051
  ] : [];
27048
- x === null ? Q.values = [] : Q.values = G, S.selectedValues = [...G], S.keepSelection = x !== null, n0(S.globalFilter, A(S.id), {
27052
+ x === null ? Q.values = [] : Q.values = G, S.selectedValues = [...G], S.keepSelection = x !== null, K(S.globalFilter, A(S.id), {
27049
27053
  keepSelection: S.keepSelection,
27050
27054
  selectedValues: [...G]
27051
27055
  }), n(S.globalFilter);
@@ -27058,7 +27062,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27058
27062
  return D("report.section.filter.search");
27059
27063
  }
27060
27064
  function Qe(S) {
27061
- const x = Z(S.globalFilter), Q = S.options.length > 0 ? "(0 selected)" : "";
27065
+ const x = e0(S.globalFilter), Q = S.options.length > 0 ? "(0 selected)" : "";
27062
27066
  if (S.type === f1.Timestamp && !qe(S.globalFilter)) {
27063
27067
  const m0 = y(S), x0 = m0.length === 2;
27064
27068
  if (S.globalFilter.option === w0.DateTime)
@@ -27080,10 +27084,10 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27080
27084
  const X0 = Lt({
27081
27085
  dimensionOption: S.globalFilter.option,
27082
27086
  t: D
27083
- }), N0 = new Map(X0.map((S0) => [String(S0.value), S0.label])), i0 = F(S).map((S0) => N0.get(String(S0)) ?? String(S0)), V0 = i0.map((S0) => S0.length > 20 ? `${S0.slice(0, 20)}…` : S0).join(", ");
27084
- return i0.length ? {
27087
+ }), N0 = new Map(X0.map((S0) => [String(S0.value), S0.label])), s0 = F(S).map((S0) => N0.get(String(S0)) ?? String(S0)), V0 = s0.map((S0) => S0.length > 20 ? `${S0.slice(0, 20)}…` : S0).join(", ");
27088
+ return s0.length ? {
27085
27089
  preview: `${x}: ${V0}`,
27086
- suffix: `(${i0.length} selected)`
27090
+ suffix: `(${s0.length} selected)`
27087
27091
  } : { preview: x, suffix: Q };
27088
27092
  }
27089
27093
  }
@@ -27097,21 +27101,21 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27097
27101
  p(S), n(S.globalFilter), document.body.click();
27098
27102
  }
27099
27103
  function fa(S) {
27100
- const x = s0(
27104
+ const x = u0(
27101
27105
  S.globalFilter,
27102
27106
  A(S.id)
27103
27107
  ).selectedValues;
27104
- S.selectedValues = x.length ? [...x] : [...S.globalFilter.values || []], n0(S.globalFilter, A(S.id), {
27108
+ S.selectedValues = x.length ? [...x] : [...S.globalFilter.values || []], K(S.globalFilter, A(S.id), {
27105
27109
  selectedValues: S.selectedValues
27106
27110
  }), document.body.click();
27107
27111
  }
27108
27112
  function $a(S) {
27109
- S.showAdvanced = !S.showAdvanced, n0(S.globalFilter, A(S.id), {
27113
+ S.showAdvanced = !S.showAdvanced, K(S.globalFilter, A(S.id), {
27110
27114
  showAdvanced: S.showAdvanced
27111
27115
  });
27112
27116
  }
27113
27117
  function ya(S) {
27114
- S.keepSelection = !S.keepSelection, H(S.keepSelection), n0(S.globalFilter, A(S.id), {
27118
+ S.keepSelection = !S.keepSelection, X(S.keepSelection), K(S.globalFilter, A(S.id), {
27115
27119
  keepSelection: S.keepSelection
27116
27120
  }), da(S);
27117
27121
  }
@@ -27128,7 +27132,7 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27128
27132
  const X0 = B0().tz(N.value).set("hour", Number((D0 = x.start) == null ? void 0 : D0.hour)).set("minute", Number((h0 = x.start) == null ? void 0 : h0.minute)).toISOString(), N0 = B0().tz(N.value).set("hour", Number((m0 = x.end) == null ? void 0 : m0.hour)).set("minute", Number((x0 = x.end) == null ? void 0 : x0.minute)).toISOString();
27129
27133
  G = [X0, N0], Q.values = G;
27130
27134
  }
27131
- S.selectedValues = [...G], S.keepSelection = x !== null, n0(S.globalFilter, A(S.id), {
27135
+ S.selectedValues = [...G], S.keepSelection = x !== null, K(S.globalFilter, A(S.id), {
27132
27136
  keepSelection: S.keepSelection,
27133
27137
  selectedValues: [...G]
27134
27138
  }), n(S.globalFilter);
@@ -27136,54 +27140,54 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27136
27140
  return (S, x) => {
27137
27141
  const Q = o1("FmCircularProgress"), G = o1("FmTextField"), D0 = o1("FmMenuItem"), h0 = o1("FmTooltip"), m0 = o1("FmIcon"), x0 = o1("FmMenuDivider"), X0 = o1("FmSwitch"), N0 = o1("FmButton"), v0 = o1("FmMenu");
27138
27142
  return r1(), h1("div", q2, [
27139
- (r1(!0), h1(_e, null, Bt(l.value, (i0, V0) => (r1(), h1("div", {
27140
- key: i0.id
27143
+ (r1(!0), h1(_e, null, Bt(l.value, (s0, V0) => (r1(), h1("div", {
27144
+ key: s0.id
27141
27145
  }, [
27142
- i0.globalFilter.option === E0(w0).DateTime && !qe(i0.globalFilter) ? (r1(), v1(Sa, {
27146
+ s0.globalFilter.option === E0(w0).DateTime && !qe(s0.globalFilter) ? (r1(), v1(Sa, {
27143
27147
  key: 0,
27144
27148
  "date-range": {
27145
- startDate: y(i0)[0],
27146
- endDate: y(i0)[1]
27149
+ startDate: y(s0)[0],
27150
+ endDate: y(s0)[1]
27147
27151
  },
27148
27152
  class: "w-full",
27149
- label: Qe(i0).preview,
27150
- removable: y(i0).length === 2,
27151
- onUpdate: (S0) => Er(i0, S0),
27152
- onChipClosed: () => Er(i0, null)
27153
- }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : i0.globalFilter.option === E0(w0).TimeOfDay && !qe(i0.globalFilter) ? (r1(), v1(y2, {
27153
+ label: Qe(s0).preview,
27154
+ removable: y(s0).length === 2,
27155
+ onUpdate: (S0) => Er(s0, S0),
27156
+ onChipClosed: () => Er(s0, null)
27157
+ }, null, 8, ["date-range", "label", "removable", "onUpdate", "onChipClosed"])) : s0.globalFilter.option === E0(w0).TimeOfDay && !qe(s0.globalFilter) ? (r1(), v1(y2, {
27154
27158
  key: 1,
27155
27159
  "time-range": {
27156
- start: y(i0)[0] ? {
27157
- hour: E0(B0)(y(i0)[0]).tz(E0(N)).hour(),
27158
- minute: E0(B0)(y(i0)[0]).tz(E0(N)).minute()
27160
+ start: y(s0)[0] ? {
27161
+ hour: E0(B0)(y(s0)[0]).tz(E0(N)).hour(),
27162
+ minute: E0(B0)(y(s0)[0]).tz(E0(N)).minute()
27159
27163
  } : null,
27160
- end: y(i0)[1] ? {
27161
- hour: E0(B0)(y(i0)[1]).tz(E0(N)).hour(),
27162
- minute: E0(B0)(y(i0)[1]).tz(E0(N)).minute()
27164
+ end: y(s0)[1] ? {
27165
+ hour: E0(B0)(y(s0)[1]).tz(E0(N)).hour(),
27166
+ minute: E0(B0)(y(s0)[1]).tz(E0(N)).minute()
27163
27167
  } : null
27164
27168
  },
27165
27169
  class: "w-full",
27166
- label: Qe(i0).preview,
27167
- removable: y(i0).length === 2,
27168
- onUpdate: (S0) => Rr(i0, S0),
27169
- onChipClosed: () => Rr(i0, null)
27170
+ label: Qe(s0).preview,
27171
+ removable: y(s0).length === 2,
27172
+ onUpdate: (S0) => Rr(s0, S0),
27173
+ onChipClosed: () => Rr(s0, null)
27170
27174
  }, null, 8, ["time-range", "label", "removable", "onUpdate", "onChipClosed"])) : (r1(), v1(v0, {
27171
27175
  key: 2,
27172
27176
  "close-on-click": !1,
27173
27177
  shift: !0,
27174
- open: E0(K)(i0.id)
27178
+ open: E0(Z)(s0.id)
27175
27179
  }, {
27176
27180
  "menu-button": d1(() => [
27177
27181
  j0("div", g2, [
27178
27182
  U0(Kr, {
27179
27183
  "left-icon": "filter_alt",
27180
27184
  "trailing-icon": "expand_more",
27181
- loading: h(i0),
27182
- label: Qe(i0).preview,
27185
+ loading: h(s0),
27186
+ label: Qe(s0).preview,
27183
27187
  class: "w-full"
27184
27188
  }, {
27185
27189
  default: d1(() => [
27186
- st(S1(Qe(i0).suffix), 1)
27190
+ st(S1(Qe(s0).suffix), 1)
27187
27191
  ]),
27188
27192
  _: 2
27189
27193
  }, 1032, ["loading", "label"])
@@ -27194,13 +27198,13 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27194
27198
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
27195
27199
  style: ha({ maxHeight: `${S0}px`, width: D1 })
27196
27200
  }, [
27197
- h(i0) ? (r1(), h1("div", h2, [
27201
+ h(s0) ? (r1(), h1("div", h2, [
27198
27202
  U0(Q)
27199
- ])) : i0.options.length > 0 ? (r1(), h1(_e, { key: 1 }, [
27203
+ ])) : s0.options.length > 0 ? (r1(), h1(_e, { key: 1 }, [
27200
27204
  j0("div", S2, [
27201
27205
  U0(G, {
27202
- modelValue: i0.search,
27203
- "onUpdate:modelValue": [(g0) => i0.search = g0, (g0) => Ma(i0, g0)],
27206
+ modelValue: s0.search,
27207
+ "onUpdate:modelValue": [(g0) => s0.search = g0, (g0) => Ma(s0, g0)],
27204
27208
  type: "text",
27205
27209
  "prepend-icon": "search",
27206
27210
  placeholder: Aa(),
@@ -27210,11 +27214,11 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27210
27214
  j0("div", T2, [
27211
27215
  j0("div", E2, [
27212
27216
  U0(D0, {
27213
- label: Oa(i0),
27217
+ label: Oa(s0),
27214
27218
  "has-checkbox": !0,
27215
- "model-value": mr(i0),
27219
+ "model-value": mr(s0),
27216
27220
  indeterminate: !0,
27217
- onClick: (g0) => pa(i0)
27221
+ onClick: (g0) => pa(s0)
27218
27222
  }, null, 8, ["label", "model-value", "onClick"]),
27219
27223
  (r1(!0), h1(_e, null, Bt(gr.value[V0], (g0) => (r1(), h1(_e, {
27220
27224
  key: g0.value
@@ -27233,12 +27237,12 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27233
27237
  U0(D0, {
27234
27238
  label: ma(g0.label, 110),
27235
27239
  "has-checkbox": !0,
27236
- "model-value": qr(i0, g0.value),
27240
+ "model-value": qr(s0, g0.value),
27237
27241
  class: Wr([
27238
27242
  "flex-1 text-left",
27239
27243
  { "bg-gray-200": g0.available === !1 }
27240
27244
  ]),
27241
- onClick: () => Tr(i0, g0.value)
27245
+ onClick: () => Tr(s0, g0.value)
27242
27246
  }, null, 8, ["label", "model-value", "class", "onClick"])
27243
27247
  ])
27244
27248
  ]),
@@ -27247,40 +27251,40 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27247
27251
  key: 1,
27248
27252
  label: g0.label,
27249
27253
  "has-checkbox": !0,
27250
- "model-value": qr(i0, g0.value),
27254
+ "model-value": qr(s0, g0.value),
27251
27255
  class: Wr(["flex-1 text-left", { "bg-gray-100": g0.available === !1 }]),
27252
- onClick: () => Tr(i0, g0.value)
27256
+ onClick: () => Tr(s0, g0.value)
27253
27257
  }, null, 8, ["label", "model-value", "class", "onClick"]))
27254
27258
  ], 64))), 128)),
27255
- gr.value[V0].length < i0.options.length && !i0.search ? (r1(), v1(D0, {
27259
+ gr.value[V0].length < s0.options.length && !s0.search ? (r1(), v1(D0, {
27256
27260
  key: 0,
27257
27261
  class: "fm-typo-en-body-md-400 -ml-2",
27258
27262
  label: E0(D)("report.section.filter.loadMore"),
27259
- onClick: ht((g0) => ca(i0), ["stop"]),
27263
+ onClick: ht((g0) => ca(s0), ["stop"]),
27260
27264
  icon: "autorenew"
27261
27265
  }, null, 8, ["label", "onClick"])) : Ft("", !0)
27262
27266
  ])
27263
27267
  ]),
27264
27268
  j0("div", {
27265
27269
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
27266
- onClick: (g0) => $a(i0)
27270
+ onClick: (g0) => $a(s0)
27267
27271
  }, [
27268
27272
  U0(m0, {
27269
- name: i0.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
27273
+ name: s0.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
27270
27274
  size: "md",
27271
27275
  class: ""
27272
27276
  }, null, 8, ["name"]),
27273
27277
  j0("span", W2, S1(E0(D)("report.section.filter.advanced")), 1)
27274
27278
  ], 8, C2),
27275
27279
  U0(x0),
27276
- i0.showAdvanced ? (r1(), h1("div", L2, [
27280
+ s0.showAdvanced ? (r1(), h1("div", L2, [
27277
27281
  j0("div", I2, [
27278
27282
  j0("div", F2, [
27279
27283
  U0(X0, {
27280
- "model-value": i0.keepSelection,
27284
+ "model-value": s0.keepSelection,
27281
27285
  label: E0(D)("report.section.filter.keepSelection"),
27282
27286
  labelPlacement: "right",
27283
- "onUpdate:modelValue": () => ya(i0)
27287
+ "onUpdate:modelValue": () => ya(s0)
27284
27288
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
27285
27289
  U0(h0, {
27286
27290
  placement: "top",
@@ -27305,18 +27309,18 @@ const q2 = { class: "flex flex-row flex-wrap gap-2" }, g2 = { class: "inline-fle
27305
27309
  U0(N0, {
27306
27310
  variant: "tertiary",
27307
27311
  label: E0(D)("report.common.cancel"),
27308
- onClick: ht((g0) => fa(i0), ["stop"])
27312
+ onClick: ht((g0) => fa(s0), ["stop"])
27309
27313
  }, null, 8, ["label", "onClick"]),
27310
27314
  U0(N0, {
27311
27315
  color: "primary",
27312
- onClick: ht((g0) => Da(i0), ["stop"]),
27316
+ onClick: ht((g0) => Da(s0), ["stop"]),
27313
27317
  label: E0(D)("report.common.apply")
27314
27318
  }, null, 8, ["onClick", "label"])
27315
27319
  ])
27316
27320
  ], 64)) : (r1(), v1(Ba, {
27317
27321
  key: 2,
27318
- title: gt(i0) ? E0(D)("report.messages.noWidgetsApplied") : void 0,
27319
- "sub-title": gt(i0) ? E0(D)("report.messages.assignWidgetsToUseThisFilter") : void 0
27322
+ title: gt(s0) ? E0(D)("report.messages.noWidgetsApplied") : void 0,
27323
+ "sub-title": gt(s0) ? E0(D)("report.messages.assignWidgetsToUseThisFilter") : void 0
27320
27324
  }, null, 8, ["title", "sub-title"]))
27321
27325
  ], 4)
27322
27326
  ]),