@feedmepos/mf-report 5.22.13-beta.1 → 5.22.14-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/App-Cwppqefm.js +294 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CzbeFyTt.js → BaseDialog.vue_vue_type_script_setup_true_lang-CcKWqqNP.js} +471 -464
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CryPHoYr.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BTCBYTaC.js → Default.vue_vue_type_script_setup_true_lang-DU3zkEF1.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Ccr5PmzE.js → FilterSelector.vue_vue_type_script_setup_true_lang-CyW-5xr4.js} +7 -7
  6. package/dist/{InsightView-C0TwLCJv.js → InsightView-DAnaBH3D.js} +6 -6
  7. package/dist/{Integration-BFEaM0Wz.js → Integration-DiNs52W5.js} +5 -5
  8. package/dist/{Integrations-CG-ygqKI.js → Integrations-BvgLRF5N.js} +5 -5
  9. package/dist/{Layout-D6kcGEx6.js → Layout-BAYV4nCo.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D3EZc4Vp.js → MenuTab.vue_vue_type_script_setup_true_lang-BZphMQGv.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js → NavigationTab.vue_vue_type_script_setup_true_lang-DSTG-gQ3.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-DdX25Qgn.js → NoData.vue_vue_type_script_setup_true_lang-zS79GrjC.js} +1 -1
  13. package/dist/{OverviewView-ATC5S46N.js → OverviewView-CvRMdLbB.js} +5 -5
  14. package/dist/{Report-CVNA4oKn.js → Report-C6445626.js} +164 -154
  15. package/dist/{ReportEditor-ZXjzIVWj.js → ReportEditor-Cy8f2WFu.js} +6 -6
  16. package/dist/{ReportView-C0vzCbYY.js → ReportView-D-T3b10U.js} +9 -9
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BHVPbR3l.js → SelectComponent.vue_vue_type_script_setup_true_lang-CYDZzbCU.js} +1 -1
  18. package/dist/{Setting-BfR6T0tE.js → Setting-DBzyuCx-.js} +5 -5
  19. package/dist/{TileEditor-BQDzUwav.js → TileEditor-CWYE5X71.js} +275 -268
  20. package/dist/{TransitionFade-DlAa1-mg.js → TransitionFade-DwQjFIYA.js} +101 -99
  21. package/dist/{access-Dw5cDt65-DpLiFTpm.js → access-Dw5cDt65-C2c0R9q4.js} +1 -1
  22. package/dist/{app-tS9-0m0b.js → app-BRv3iLF1.js} +11 -11
  23. package/dist/app.js +1 -1
  24. package/dist/assets/{formatChartData.worker-CtCG_oop.js → formatChartData.worker-Df5ziPQ2.js} +7 -7
  25. package/dist/assets/{processTableData.worker-BN2TZ-50.js → processTableData.worker-qpA30azs.js} +7 -7
  26. package/dist/style.css +1 -1
  27. package/dist/{useReportPermission-DEI1PTJT.js → useReportPermission-CDWkdi6R.js} +2 -2
  28. package/dist/{useRestaurantPermission-DTzkzgml.js → useRestaurantPermission-CjG_t7dK.js} +2 -2
  29. package/dist/{vue-i18n-BxRs360O.js → vue-i18n-ComGWqEb.js} +1 -1
  30. package/package.json +1 -1
  31. package/dist/App-pXGWlg3l.js +0 -264
@@ -1,30 +1,30 @@
1
- import { a as E0, F as m0, l as S0, b as X0, c as Ce, h as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-BxRs360O.js";
2
- import { storeToRefs as c0, defineStore as k0 } from "pinia";
3
- import { ref as s0, computed as B0, watch as V0, h as Me, defineComponent as De, mergeModels as Q0, useModel as W0, resolveComponent as O0, createElementBlock as Y0, openBlock as N0, createVNode as C0, withCtx as P0, createElementVNode as L0, createCommentVNode as Re, Fragment as ne, renderList as xe, createBlock as de, createTextVNode as ce, withDirectives as Le, toDisplayString as v0, unref as h0, vShow as Oe, renderSlot as we } from "vue";
4
- import { useSnackbar as fe, components as ve } from "@feedmepos/ui-library";
5
- import { d as b0 } from "./app-tS9-0m0b.js";
6
- import { useRouter as Be } from "vue-router";
1
+ import { a as E0, F as y0, l as S0, b as V0, c as be, h as Ie, d as Fe, r as ee, u as Me } from "./vue-i18n-ComGWqEb.js";
2
+ import { storeToRefs as c0, defineStore as U0 } from "pinia";
3
+ import { ref as o0, computed as B0, watch as Y0, h as Re, defineComponent as de, mergeModels as X0, useModel as j0, resolveComponent as O0, createElementBlock as G0, openBlock as k0, createVNode as T0, withCtx as P0, createElementVNode as L0, createCommentVNode as xe, Fragment as ie, renderList as Le, createBlock as ce, createTextVNode as fe, withDirectives as Oe, toDisplayString as v0, unref as h0, vShow as we, renderSlot as ve } from "vue";
4
+ import { useSnackbar as pe, components as Be } from "@feedmepos/ui-library";
5
+ import { d as C0 } from "./app-BRv3iLF1.js";
6
+ import { useRouter as Pe } from "vue-router";
7
7
  import { detectLocale as J0 } from "@feedmepos/mf-common";
8
- import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js";
9
- function pe(T) {
8
+ import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CryPHoYr.js";
9
+ function $e(T) {
10
10
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
12
- var $e = {};
12
+ var ye = {};
13
13
  (function(T) {
14
- var R = typeof globalThis < "u" ? globalThis : window, w = Object.create(R);
15
- w.scheduleImmediate = typeof setImmediate < "u" ? function(P) {
14
+ var R = typeof globalThis < "u" ? globalThis : window, v = Object.create(R);
15
+ v.scheduleImmediate = typeof setImmediate < "u" ? function(P) {
16
16
  setImmediate(P);
17
17
  } : function(P) {
18
18
  setTimeout(P, 0);
19
- }, w.exports = T, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
19
+ }, v.exports = T, typeof process < "u" && (v.process = process), typeof __dirname < "u" && (v.__dirname = __dirname), typeof __filename < "u" && (v.__filename = __filename), typeof Buffer < "u" && (v.Buffer = Buffer);
20
20
  var J = !R.window;
21
21
  try {
22
22
  typeof WorkerGlobalScope < "u" && R instanceof WorkerGlobalScope && (J = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (J = !0);
23
23
  } catch {
24
24
  }
25
25
  if (J) {
26
- var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : pe)("url");
27
- Object.defineProperty(w, "location", {
26
+ var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : $e)("url");
27
+ Object.defineProperty(v, "location", {
28
28
  value: {
29
29
  get href() {
30
30
  return B.pathToFileURL ? B.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
@@ -47,14 +47,14 @@ var $e = {};
47
47
  }
48
48
  }
49
49
  var N = null;
50
- Object.defineProperty(w, "document", {
50
+ Object.defineProperty(v, "document", {
51
51
  value: {
52
52
  get currentScript() {
53
53
  return N == null && (N = { src: P() }), N;
54
54
  }
55
55
  }
56
56
  });
57
- }(), w.dartDeferredLibraryLoader = function(P, N, k) {
57
+ }(), v.dartDeferredLibraryLoader = function(P, N, k) {
58
58
  try {
59
59
  load(P), N();
60
60
  } catch (q) {
@@ -155,13 +155,13 @@ var $e = {};
155
155
  }, o;
156
156
  };
157
157
  }
158
- function u0(r) {
158
+ function s0(r) {
159
159
  return r.immutable$list = Array, r.fixed$length = Array, r;
160
160
  }
161
- function o0(r) {
161
+ function l0(r) {
162
162
  return r;
163
163
  }
164
- function _0(r) {
164
+ function D0(r) {
165
165
  for (var e = 0; e < r.length; ++e)
166
166
  r[e];
167
167
  }
@@ -212,7 +212,7 @@ var $e = {};
212
212
  var e = b.types, n = e.length;
213
213
  return e.push.apply(e, r), n;
214
214
  }
215
- function l0(r, e) {
215
+ function _0(r, e) {
216
216
  return N(e, r), r;
217
217
  }
218
218
  var K = function() {
@@ -225,7 +225,7 @@ var $e = {};
225
225
  return r0(o, l, n, i, a, [D], d, s);
226
226
  };
227
227
  };
228
- return { inherit: V, inheritMany: X, mixin: i0, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: e0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: u0, lazy: Y, lazyFinal: a0, lazyOld: Z, updateHolder: l0, convertToFastObject: o0, updateTypes: t0, setOrUpdateInterceptorsByTag: n0, setOrUpdateLeafTags: z };
228
+ return { inherit: V, inheritMany: X, mixin: i0, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: e0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: s0, lazy: Y, lazyFinal: a0, lazyOld: Z, updateHolder: _0, convertToFastObject: l0, updateTypes: t0, setOrUpdateInterceptorsByTag: n0, setOrUpdateLeafTags: z };
229
229
  }(), t = {
230
230
  JS_CONST: function() {
231
231
  },
@@ -272,8 +272,8 @@ var $e = {};
272
272
  }
273
273
  },
274
274
  Sort__dualPivotQuicksort(r, e, n, i) {
275
- var a, s, o, l, D, d, c, f, y, g, m = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + m, A = n - m, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - m, F = C + m, x = u.getInterceptor$asx(r), M = x.$index(r, h), L = x.$index(r, I), O = x.$index(r, C), v = x.$index(r, F), H = x.$index(r, A);
276
- if (i.call$2(M, L) > 0 && (a = L, L = M, M = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), i.call$2(M, O) > 0 && (a = O, O = M, M = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(M, v) > 0 && (a = v, v = M, M = a), i.call$2(O, v) > 0 && (a = v, v = O, O = a), i.call$2(L, H) > 0 && (a = H, H = L, L = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(v, H) > 0 && (a = H, H = v, v = a), x.$indexSet(r, h, M), x.$indexSet(r, C, O), x.$indexSet(r, A, H), x.$indexSet(r, I, x.$index(r, e)), x.$indexSet(r, F, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
275
+ var a, s, o, l, D, d, c, f, y, g, m = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + m, A = n - m, C = _.JSInt_methods._tdivFast$1(e + n, 2), I = C - m, F = C + m, x = u.getInterceptor$asx(r), M = x.$index(r, h), L = x.$index(r, I), O = x.$index(r, C), w = x.$index(r, F), H = x.$index(r, A);
276
+ if (i.call$2(M, L) > 0 && (a = L, L = M, M = a), i.call$2(w, H) > 0 && (a = H, H = w, w = a), i.call$2(M, O) > 0 && (a = O, O = M, M = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(M, w) > 0 && (a = w, w = M, M = a), i.call$2(O, w) > 0 && (a = w, w = O, O = a), i.call$2(L, H) > 0 && (a = H, H = L, L = a), i.call$2(L, O) > 0 && (a = O, O = L, L = a), i.call$2(w, H) > 0 && (a = H, H = w, w = a), x.$indexSet(r, h, M), x.$indexSet(r, C, O), x.$indexSet(r, A, H), x.$indexSet(r, I, x.$index(r, e)), x.$indexSet(r, F, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, w), 0)) {
277
277
  for (l = s; l <= o; ++l)
278
278
  if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
279
279
  if (d < 0)
@@ -295,9 +295,9 @@ var $e = {};
295
295
  for (l = s; l <= o; ++l)
296
296
  if (D = x.$index(r, l), i.call$2(D, L) < 0)
297
297
  l !== s && (x.$indexSet(r, l, x.$index(r, s)), x.$indexSet(r, s, D)), ++s;
298
- else if (i.call$2(D, v) > 0)
298
+ else if (i.call$2(D, w) > 0)
299
299
  for (; ; )
300
- if (i.call$2(x.$index(r, o), v) > 0) {
300
+ if (i.call$2(x.$index(r, o), w) > 0) {
301
301
  if (--o, o < l)
302
302
  break;
303
303
  continue;
@@ -307,18 +307,18 @@ var $e = {};
307
307
  }
308
308
  y = !1;
309
309
  }
310
- if (g = s - 1, x.$indexSet(r, e, x.$index(r, g)), x.$indexSet(r, g, L), g = o + 1, x.$indexSet(r, n, x.$index(r, g)), x.$indexSet(r, g, v), t.Sort__doSort(r, e, s - 2, i), t.Sort__doSort(r, o + 2, n, i), !y)
310
+ if (g = s - 1, x.$indexSet(r, e, x.$index(r, g)), x.$indexSet(r, g, L), g = o + 1, x.$indexSet(r, n, x.$index(r, g)), x.$indexSet(r, g, w), t.Sort__doSort(r, e, s - 2, i), t.Sort__doSort(r, o + 2, n, i), !y)
311
311
  if (s < h && o > A) {
312
312
  for (; u.$eq$(i.call$2(x.$index(r, s), L), 0); )
313
313
  ++s;
314
- for (; u.$eq$(i.call$2(x.$index(r, o), v), 0); )
314
+ for (; u.$eq$(i.call$2(x.$index(r, o), w), 0); )
315
315
  --o;
316
316
  for (l = s; l <= o; ++l)
317
317
  if (D = x.$index(r, l), i.call$2(D, L) === 0)
318
318
  l !== s && (x.$indexSet(r, l, x.$index(r, s)), x.$indexSet(r, s, D)), ++s;
319
- else if (i.call$2(D, v) === 0)
319
+ else if (i.call$2(D, w) === 0)
320
320
  for (; ; )
321
- if (i.call$2(x.$index(r, o), v) === 0) {
321
+ if (i.call$2(x.$index(r, o), w) === 0) {
322
322
  if (--o, o < l)
323
323
  break;
324
324
  continue;
@@ -700,8 +700,8 @@ var $e = {};
700
700
  var e, n, i, a, s, o, l, D, d, c, f = r.co, y = r.iS, g = r.iI, m = r.nDA, h = r.aI, A = r.fs, C = r.cs, I = A[0], F = C[0], x = f[I], M = r.fT;
701
701
  for (M.toString, e = Object.create(y ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, y ? n = function() {
702
702
  this.$initialize();
703
- } : n = function(O, v) {
704
- this.$initialize(O, v);
703
+ } : n = function(O, w) {
704
+ this.$initialize(O, w);
705
705
  }, e.constructor = n, n.prototype = e, e.$_name = I, e.$_target = x, i = !y, i ? a = t.Closure_forwardCallTo(I, x, g, m) : (e.$static_name = I, a = x), e.$signature = t.Closure__computeSignatureFunctionNewRti(M, y, g), e[F] = a, s = a, o = 1; o < A.length; ++o)
706
706
  l = A[o], typeof l == "string" ? (D = f[l], d = l, l = D) : d = "", c = C[o], c != null && (i && (l = t.Closure_forwardCallTo(d, l, g, m)), e[c] = l), o === h && (s = l);
707
707
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
@@ -1432,24 +1432,24 @@ var $e = {};
1432
1432
  return s + "})";
1433
1433
  },
1434
1434
  _functionRtiToString(r, e, n) {
1435
- var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v = ", ";
1435
+ var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w = ", ";
1436
1436
  if (n != null) {
1437
1437
  for (i = n.length, e == null ? (e = t._setArrayType([], p.JSArray_String), a = null) : a = e.length, s = e.length, o = i; o > 0; --o)
1438
1438
  e.push("T" + (s + o));
1439
- for (l = p.nullable_Object, D = p.legacy_Object, d = "<", c = "", o = 0; o < i; ++o, c = v)
1439
+ for (l = p.nullable_Object, D = p.legacy_Object, d = "<", c = "", o = 0; o < i; ++o, c = w)
1440
1440
  d = _.JSString_methods.$add(d + c, e[e.length - 1 - o]), f = n[o], y = f._kind, y === 2 || y === 3 || y === 4 || y === 5 || f === l ? g = !0 : f !== D ? g = !1 : g = !0, g || (d += " extends " + t._rtiToString(f, e));
1441
1441
  d += ">";
1442
1442
  } else
1443
1443
  d = "", a = null;
1444
- for (l = r._primary, m = r._rest, h = m._requiredPositional, A = h.length, C = m._optionalPositional, I = C.length, F = m._named, x = F.length, M = t._rtiToString(l, e), L = "", O = "", o = 0; o < A; ++o, O = v)
1444
+ for (l = r._primary, m = r._rest, h = m._requiredPositional, A = h.length, C = m._optionalPositional, I = C.length, F = m._named, x = F.length, M = t._rtiToString(l, e), L = "", O = "", o = 0; o < A; ++o, O = w)
1445
1445
  L += O + t._rtiToString(h[o], e);
1446
1446
  if (I > 0) {
1447
- for (L += O + "[", O = "", o = 0; o < I; ++o, O = v)
1447
+ for (L += O + "[", O = "", o = 0; o < I; ++o, O = w)
1448
1448
  L += O + t._rtiToString(C[o], e);
1449
1449
  L += "]";
1450
1450
  }
1451
1451
  if (x > 0) {
1452
- for (L += O + "{", O = "", o = 0; o < x; o += 3, O = v)
1452
+ for (L += O + "{", O = "", o = 0; o < x; o += 3, O = w)
1453
1453
  L += O, F[o + 1] && (L += "required "), L += t._rtiToString(F[o + 2], e) + " " + F[o];
1454
1454
  L += "}";
1455
1455
  }
@@ -1811,7 +1811,7 @@ var $e = {};
1811
1811
  return D === 12 ? e === p.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === p.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
1812
1812
  },
1813
1813
  _isFunctionSubtype(r, e, n, i, a) {
1814
- var s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v, H, W;
1814
+ var s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w, H, W;
1815
1815
  if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (f = c - d, y = s._optionalPositional, g = o._optionalPositional, m = y.length, h = g.length, d + m < c + h))
1816
1816
  return !1;
1817
1817
  for (A = 0; A < d; ++A)
@@ -1824,10 +1824,10 @@ var $e = {};
1824
1824
  if (C = y[f + A], !t._isSubtype(r, g[A], a, C, n))
1825
1825
  return !1;
1826
1826
  for (I = s._named, F = o._named, x = I.length, M = F.length, L = 0, O = 0; O < M; O += 3)
1827
- for (v = F[O]; ; ) {
1828
- if (L >= x || (H = I[L], L += 3, v < H))
1827
+ for (w = F[O]; ; ) {
1828
+ if (L >= x || (H = I[L], L += 3, w < H))
1829
1829
  return !1;
1830
- if (W = I[L - 2], H < v) {
1830
+ if (W = I[L - 2], H < w) {
1831
1831
  if (W)
1832
1832
  return !1;
1833
1833
  continue;
@@ -2983,12 +2983,12 @@ select
2983
2983
  return new t.Schema(I, h, s, m, L, M, y, g, c, f, D, x, a, C, A, F, i, l, o, d, e, r, n);
2984
2984
  },
2985
2985
  Schema_Schema$build(r, e, n, i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L) {
2986
- var O = s.call$1(I), v = m.call$1(I);
2987
- return t.Schema$(r, e, n, i, a, O, o, l, D ?? 300, d, c, f, y, g, v, h, A, C, I, F, x, M, L);
2986
+ var O = s.call$1(I), w = m.call$1(I);
2987
+ return t.Schema$(r, e, n, i, a, O, o, l, D ?? 300, d, c, f, y, g, w, h, A, C, I, F, x, M, L);
2988
2988
  },
2989
2989
  Schema_fromJson(r) {
2990
- var e, n, i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I = null, F = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), M = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), O = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), H = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), W = v.$index(0, "table"), d0 = v.$index(0, "field"), $0 = v.$index(0, "dataset"), D0 = p.nullable_List_dynamic, g0 = D0._as(v.$index(0, "uniqueKey"));
2991
- return g0 = g0 == null ? I : u.cast$1$0$ax(g0, p.String), e = v.$index(0, "timeColumn"), v = D0._as(v.$index(0, "dateColumns")), v = v == null ? I : u.cast$1$0$ax(v, p.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), f = r.$index(0, "clusters"), f == null && (f = t._setArrayType([], p.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? I : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], p.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? I : u.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], p.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), D0 = D0._as(r.$index(0, "aiKeywords")), D0 = D0 == null ? I : u.cast$1$0$ax(D0, p.String), D0 == null && (D0 = t._setArrayType([], p.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, D0, C, f, i, F, g, y, d, h, D, m, o, l, L, x, s, a, M, c, n, new t.Source(H, W, d0, $0, g0, e, v), O);
2990
+ var e, n, i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I = null, F = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), M = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), O = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), w = r.$index(0, "source"), H = t.EnumByName_byName(_.List_ytA, w.$index(0, "type")), W = w.$index(0, "table"), d0 = w.$index(0, "field"), g0 = w.$index(0, "dataset"), u0 = p.nullable_List_dynamic, m0 = u0._as(w.$index(0, "uniqueKey"));
2991
+ return m0 = m0 == null ? I : u.cast$1$0$ax(m0, p.String), e = w.$index(0, "timeColumn"), w = u0._as(w.$index(0, "dateColumns")), w = w == null ? I : u.cast$1$0$ax(w, p.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), f = r.$index(0, "clusters"), f == null && (f = t._setArrayType([], p.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? I : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], p.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? I : u.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], p.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), u0 = u0._as(r.$index(0, "aiKeywords")), u0 = u0 == null ? I : u.cast$1$0$ax(u0, p.String), u0 == null && (u0 = t._setArrayType([], p.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, u0, C, f, i, F, g, y, d, h, D, m, o, l, L, x, s, a, M, c, n, new t.Source(H, W, d0, g0, m0, e, w), O);
2992
2992
  },
2993
2993
  Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
2994
2994
  return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
@@ -3112,8 +3112,8 @@ select
3112
3112
  this.column = e, this.customName = n, this.indexMethod = i;
3113
3113
  },
3114
3114
  Schema: function(e, n, i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O) {
3115
- var v = this;
3116
- v.name = e, v.label = n, v.fields = i, v.joins = a, v.topLevelFilters = s, v.source = o, v.isJoinOnly = l, v.isMaterializeOnly = D, v.isContinuousUpdate = d, v.isGlobal = c, v.interval = f, v.rawTableName = y, v.dynamicRawTable = g, v.materializedTableName = m, v.materializedPostgresqlTableName = h, v.partition = A, v.clusters = C, v.indexes = I, v._materializeTablePrefix = v._rawTablePrefix = "", v.filters = F, v.isAiHidden = x, v.aiKeywords = M, v.aiCategory = L, v.aiPriority = O;
3115
+ var w = this;
3116
+ w.name = e, w.label = n, w.fields = i, w.joins = a, w.topLevelFilters = s, w.source = o, w.isJoinOnly = l, w.isMaterializeOnly = D, w.isContinuousUpdate = d, w.isGlobal = c, w.interval = f, w.rawTableName = y, w.dynamicRawTable = g, w.materializedTableName = m, w.materializedPostgresqlTableName = h, w.partition = A, w.clusters = C, w.indexes = I, w._materializeTablePrefix = w._rawTablePrefix = "", w.filters = F, w.isAiHidden = x, w.aiKeywords = M, w.aiCategory = L, w.aiPriority = O;
3117
3117
  },
3118
3118
  Schema_visualizationSchema_closure: function() {
3119
3119
  },
@@ -4190,40 +4190,40 @@ select
4190
4190
  return i = new t.Connection("", "", i.$index(r, "sourceDatasetId"), i.$index(r, "targetDatasetId")), e = S.$get$defaultSchemas(), n = new t.SchemaLibrary(e), n.SchemaLibrary$2$connection$schemas(i, e), new t.QueryEngine(new t.QueryEngineContext(i, n));
4191
4191
  },
4192
4192
  getMergeInfoSql(r) {
4193
- var e, n, i, a = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
4193
+ var e, n, i, a = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), s = u.getInterceptor$asx(a), o = t._getQueryEngine(s.$index(a, "bigQuery"));
4194
4194
  return s = s.$index(a, "request"), e = t.Schema_fromJson(s.$index(0, "schema")), n = s.$index(0, "start"), i = s.$index(0, "end"), s = s.$index(0, "tz"), s == null && (s = "UTC"), e.setConnection$1(o.context.connection), t.Materialize_getMaterializeInfoSql(e, i, u.contains$1$asx(e.clusters, "restaurantId"), n, s);
4195
4195
  },
4196
4196
  getClearTableSql(r) {
4197
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4197
+ var e = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4198
4198
  return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), "DELETE FROM " + n.get$fullMaterializedTableName() + ` where true;
4199
4199
  `;
4200
4200
  },
4201
4201
  getMergeSql(r) {
4202
- var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), l = u.getInterceptor$asx(o), D = t._getQueryEngine(l.$index(o, "bigQuery"));
4202
+ var e, n, i, a, s, o = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), l = u.getInterceptor$asx(o), D = t._getQueryEngine(l.$index(o, "bigQuery"));
4203
4203
  return l = l.$index(o, "request"), e = t.Schema_fromJson(l.$index(0, "schema")), n = l.$index(0, "publishStartedAt"), i = l.$index(0, "publishEndedAt"), a = l.$index(0, "docIds"), s = l.$index(0, "restaurantIds"), l = l.$index(0, "updateTimestamps"), e.setConnection$1(D.context.connection), t.Materialize_getMergeSql(e, a, i, n, s, e, l);
4204
4204
  },
4205
4205
  getSchemas(r) {
4206
- var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4207
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4206
+ var e = t._getQueryEngine(_.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null)).context.schemaLibrary._schemas, n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4207
+ return v.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4208
4208
  },
4209
4209
  getVisualizationSchemas(r) {
4210
- var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4211
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4210
+ var e = t._getQueryEngine(u.$index$asx(_.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), "bigQuery")).context.schemaLibrary.get$visualizationSchemas(), n = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>");
4211
+ return v.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.getVisualizationSchemas_closure(), n), !0, n._eval$1("ListIterable.E")), null));
4212
4212
  },
4213
4213
  requestJsonToSql(r) {
4214
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4215
- return w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], p.JSArray_QueryRequest)), null));
4214
+ var e = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), n = u.getInterceptor$asx(e);
4215
+ return v.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t._getQueryEngine(n.$index(e, "bigQuery")).getSql$1(t._setArrayType([t.QueryRequest_fromJson(n.$index(e, "request"))], p.JSArray_QueryRequest)), null));
4216
4216
  },
4217
4217
  sqlResponsesToQueryResponses(r) {
4218
- var e, n = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
4219
- return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), p.QueryRequest, p.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.sqlResponsesToQueryResponses_closure1(), i), !0, i._eval$1("ListIterable.E")), null));
4218
+ var e, n = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), i = u.getInterceptor$asx(n), a = t._getQueryEngine(i.$index(n, "bigQuery"));
4219
+ return i = t.ListExtensions_mapIndexed(u.map$1$ax(i.$index(n, "requests"), new t.sqlResponsesToQueryResponses_closure()).toList$0(0), new t.sqlResponsesToQueryResponses_closure0(i.$index(n, "sqlResponses"), a), p.QueryRequest, p.QueryResponse), e = t.List_List$of(i, !0, i.$ti._eval$1("Iterable.E")), i = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,Map<String,@>>"), v.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(e, new t.sqlResponsesToQueryResponses_closure1(), i), !0, i._eval$1("ListIterable.E")), null));
4220
4220
  },
4221
4221
  getQueryRequests(r) {
4222
- var e, n, i, a, s, o, l, D, d, c, f = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), y = u.getInterceptor$asx(f), g = t.ReportWidgetModel_fromJson(y.$index(f, "widget")), m = u.map$1$ax(y.$index(f, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(f, "compareDateRange");
4223
- return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(f, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(f, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(f, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(f, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(f, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(m, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, D), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, p.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, D), i, a, s, !0, o))), d = h), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), w.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(d, new t.getQueryRequests_closure9(), y), !0, y._eval$1("ListIterable.E")), null));
4222
+ var e, n, i, a, s, o, l, D, d, c, f = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), y = u.getInterceptor$asx(f), g = t.ReportWidgetModel_fromJson(y.$index(f, "widget")), m = u.map$1$ax(y.$index(f, "dateRange"), new t.getQueryRequests_closure()).toList$0(0), h = y.$index(f, "compareDateRange");
4223
+ return h == null && (h = []), e = u.map$1$ax(h, new t.getQueryRequests_closure0()).toList$0(0), n = u.map$1$ax(y.$index(f, "timeRange"), new t.getQueryRequests_closure1()).toList$0(0), i = u.map$1$ax(y.$index(f, "restaurantIds"), new t.getQueryRequests_closure2()).toList$0(0), a = u.map$1$ax(y.$index(f, "warehouseIds"), new t.getQueryRequests_closure3()).toList$0(0), s = u.map$1$ax(y.$index(f, "businessIds"), new t.getQueryRequests_closure4()).toList$0(0), o = y.$index(f, "timezone"), y = g.config, h = t._arrayInstanceType(m)._eval$1("MappedListIterable<1,@>"), l = t._arrayInstanceType(n)._eval$1("MappedListIterable<1,@>"), D = l._eval$1("ListIterable.E"), d = y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(m, new t.getQueryRequests_closure5(), h), !0, h._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure6(), l), !0, D), i, a, s, !1, o)), e.length !== 0 && y.isComparable === !0 && (h = t.List_List$of(d, !0, p.QueryRequest), c = t._arrayInstanceType(e)._eval$1("MappedListIterable<1,@>"), _.JSArray_methods.addAll$1(h, y.toRequests$1(new t.GlobalFilterModel(t.List_List$of(new t.MappedListIterable(e, new t.getQueryRequests_closure7(), c), !0, c._eval$1("ListIterable.E")), t.List_List$of(new t.MappedListIterable(n, new t.getQueryRequests_closure8(), l), !0, D), i, a, s, !0, o))), d = h), y = t._arrayInstanceType(d)._eval$1("MappedListIterable<1,Map<String,@>>"), v.JSON.parse(_.C_JsonCodec.encode$2$toEncodable(t.List_List$of(new t.MappedListIterable(d, new t.getQueryRequests_closure9(), y), !0, y._eval$1("ListIterable.E")), null));
4224
4224
  },
4225
4225
  getCreateMaterializedTableSql(r) {
4226
- var e = _.C_JsonCodec.decode$2$reviver(w.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4226
+ var e = _.C_JsonCodec.decode$2$reviver(v.JSON.stringify(r), null), n = u.getInterceptor$asx(e), i = t._getQueryEngine(n.$index(e, "bigQuery"));
4227
4227
  return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(i.context.connection), t.Materialize_get_createMaterializedTableSql(n);
4228
4228
  },
4229
4229
  getSchemas_closure: function() {
@@ -4262,7 +4262,7 @@ select
4262
4262
  Exports: function() {
4263
4263
  },
4264
4264
  main() {
4265
- t.initializeTimeZones(), u.set$requestJsonToSql$x(w.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(w.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(w.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(w.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(w.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(w.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(w.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(w.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4265
+ t.initializeTimeZones(), u.set$requestJsonToSql$x(v.exports, t.allowInterop(t.js_compiler__requestJsonToSql$closure())), u.set$getSchemas$x(v.exports, t.allowInterop(t.js_compiler__getSchemas$closure())), u.set$getMergeInfoSql$x(v.exports, t.allowInterop(t.js_compiler__getMergeInfoSql$closure())), u.set$getMergeSql$x(v.exports, t.allowInterop(t.js_compiler__getMergeSql$closure())), u.set$getClearTableSql$x(v.exports, t.allowInterop(t.js_compiler__getClearTableSql$closure())), u.set$getCreateMaterializedTableSql$x(v.exports, t.allowInterop(t.js_compiler__getCreateMaterializedTableSql$closure())), u.set$getVisualizationSchemas$x(v.exports, t.allowInterop(t.js_compiler__getVisualizationSchemas$closure())), u.set$getQueryRequests$x(v.exports, t.allowInterop(t.js_compiler__getQueryRequests$closure())), u.set$sqlResponsesToQueryResponses$x(v.exports, t.allowInterop(t.js_compiler__sqlResponsesToQueryResponses$closure()));
4266
4266
  },
4267
4267
  _Exports: function() {
4268
4268
  },
@@ -9030,10 +9030,10 @@ Arguments: [` + D + "]";
9030
9030
  $signature: 1
9031
9031
  }, t.flattenItemSchema_closure.prototype = {
9032
9032
  call$1(r) {
9033
- var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", f = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", F = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", M = "layerGrossTotal", L = "layerTakeawayPrice", O = "layerTaxTotal", v = "layerScTotal", H = "layerOtherChargeTotal", W = "customAttributes", d0 = "layerZeroParentId", $0 = "collectedAt", D0 = "subCategories", g0 = "billAdjustmentInclusiveTaxTotal", M0 = "itemAdjustmentInclusiveTaxTotal", R0 = "layerBillAdjustmentInclusiveTaxTotal", T0 = "layerItemAdjustmentInclusiveTaxTotal", I0 = "billAdjustmentExclusiveTaxTotal", x0 = "itemAdjustmentExclusiveTaxTotal", A0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
9033
+ var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", f = "quantity", y = "unitQuantity", g = "billAdjustmentTotal", m = "itemAdjustmentTotal", h = "grossTotal", A = "takeawayPrice", C = "nettTotal", I = "layerNettTotal", F = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", M = "layerGrossTotal", L = "layerTakeawayPrice", O = "layerTaxTotal", w = "layerScTotal", H = "layerOtherChargeTotal", W = "customAttributes", d0 = "layerZeroParentId", g0 = "collectedAt", u0 = "subCategories", m0 = "billAdjustmentInclusiveTaxTotal", b0 = "itemAdjustmentInclusiveTaxTotal", M0 = "layerBillAdjustmentInclusiveTaxTotal", R0 = "layerItemAdjustmentInclusiveTaxTotal", A0 = "billAdjustmentExclusiveTaxTotal", I0 = "itemAdjustmentExclusiveTaxTotal", x0 = "layerBillAdjustmentExclusiveTaxTotal", F0 = "layerItemAdjustmentExclusiveTaxTotal";
9034
9034
  return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", i, i, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
9035
9035
  `, !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
9036
- `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", f, f, E.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, E.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", E.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", E.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", E.x40other, r), t.Field_Field$numeric(e, E.x40billA, !1, !1, "Bill discount", g, g, E.x40bill_, r), t.Field_Field$numeric(e, E.x40itemA, !1, !1, "Item discount", m, m, E.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, E.x40gross, r), t.Field_Field$numeric(e, E.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, E.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", A, A, E.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, E.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", E.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, E.x28IFNULb, !1, !1, "Discount", "discountTotal", e, E.x28COALEb, r), t.Field_Field$numeric(e, E.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", F, F, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", M, M, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", O, O, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", H, H, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", W, W, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", d0, d0, 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", $0, $0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", D0, D0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", g0, g0, "@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", M0, M0, "@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", R0, R0, "@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", T0, T0, "@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", I0, I0, "@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", x0, x0, "@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", A0, A0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", F0, F0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], p.JSArray_Field);
9036
+ `, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", D, D, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", f, f, E.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, E.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", E.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", E.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", E.x40other, r), t.Field_Field$numeric(e, E.x40billA, !1, !1, "Bill discount", g, g, E.x40bill_, r), t.Field_Field$numeric(e, E.x40itemA, !1, !1, "Item discount", m, m, E.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, E.x40gross, r), t.Field_Field$numeric(e, E.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, E.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", A, A, E.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, E.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", E.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, E.x28IFNULb, !1, !1, "Discount", "discountTotal", e, E.x28COALEb, r), t.Field_Field$numeric(e, E.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bb, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", F, F, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", x, x, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", M, M, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", L, L, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", O, O, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", w, w, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", H, H, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", W, W, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", d0, d0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", g0, g0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "(@nettTotal-coalesce(@costing, 0))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", u0, u0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", m0, m0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", b0, b0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", M0, M0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", R0, R0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", A0, A0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", I0, I0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", x0, x0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", F0, F0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], p.JSArray_Field);
9037
9037
  },
9038
9038
  $signature: 0
9039
9039
  }, t.flattenItemSchema_closure0.prototype = {
@@ -10697,7 +10697,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10697
10697
  }
10698
10698
  }
10699
10699
  function s(d, c) {
10700
- return w.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10700
+ return v.HTMLElement && d instanceof HTMLElement ? "HTMLElement" : a(d, c);
10701
10701
  }
10702
10702
  function o(d) {
10703
10703
  if (typeof window > "u" || typeof window[d] > "u") return null;
@@ -10819,8 +10819,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10819
10819
  return i.message;
10820
10820
  }
10821
10821
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(_.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], p.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? _.C_Endian0 : _.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", _.List_BC_AD, _.List_6xs, _.List_qpm, _.List_qpm, _.List_cIc, _.List_cIc, _.List_h8w, _.List_h8w, _.List_wMy, _.List_wMy, _.List_gc6, _.List_gc6, _.List_3US, _.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", _.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
10822
- var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), f = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), I = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), M = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), O = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), H = t.DeLocale$(_.StartOfWeek_2), W = t.DeLocale$(_.StartOfWeek_2), d0 = t.DeLocale$(_.StartOfWeek_2), $0 = t.ItLocale$(_.StartOfWeek_2), D0 = t.ItLocale$(_.StartOfWeek_2), g0 = t.ArLyLocale$(!0, _.StartOfWeek_0), M0 = t.ArLyLocale$(!1, _.StartOfWeek_0), R0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), I0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), A0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10823
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", f, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", A, "fr", C, "fr_ch", I, "fr_ca", F, "zh", x, "zh_cn", M, "zh_hk", L, "zh_tw", O, "de", v, "de_de", H, "de_at", W, "de_ch", d0, "it", $0, "it_ch", D0, "ar", g0, "ar_ly", M0, "ar_dz", R0, "ar_kw", T0, "ar_sa", I0, "ar_ma", x0, "ar_tn", A0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], p.String, t.findType("Locale"));
10822
+ var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), f = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), g = t.EnLocale$(_.StartOfWeek_1), m = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), A = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), I = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), M = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), O = t.ZhLocale$(_.StartOfWeek_1), w = t.DeLocale$(_.StartOfWeek_2), H = t.DeLocale$(_.StartOfWeek_2), W = t.DeLocale$(_.StartOfWeek_2), d0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), u0 = t.ItLocale$(_.StartOfWeek_2), m0 = t.ArLyLocale$(!0, _.StartOfWeek_0), b0 = t.ArLyLocale$(!1, _.StartOfWeek_0), M0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), R0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), A0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), I0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
10823
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", f, "en_il", y, "en_nz", g, "es", m, "es_do", h, "es_us", A, "fr", C, "fr_ch", I, "fr_ca", F, "zh", x, "zh_cn", M, "zh_hk", L, "zh_tw", O, "de", w, "de_de", H, "de_at", W, "de_ch", d0, "it", g0, "it_ch", u0, "ar", m0, "ar_ly", b0, "ar_dz", M0, "ar_kw", R0, "ar_sa", A0, "ar_ma", I0, "ar_tn", x0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", i, "pt_br", a, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], p.String, t.findType("Locale"));
10824
10824
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
10825
10825
  var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], p.JSArray_Permission), i);
10826
10826
  return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], p.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
@@ -11154,7 +11154,7 @@ WHERE (
11154
11154
  return this(r, e, n, i, a, s, o, l);
11155
11155
  }, Function.prototype.call$1$0 = function() {
11156
11156
  return this();
11157
- }, _0($), function(r) {
11157
+ }, D0($), function(r) {
11158
11158
  if (typeof document > "u") {
11159
11159
  r(null);
11160
11160
  return;
@@ -11177,18 +11177,18 @@ WHERE (
11177
11177
  typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
11178
11178
  });
11179
11179
  })();
11180
- })($e);
11181
- const He = $e;
11182
- var Ne = He, ye = {};
11180
+ })(ye);
11181
+ const Ne = ye;
11182
+ var ke = Ne, ge = {};
11183
11183
  (function(T) {
11184
- T.load = function(R, w) {
11184
+ T.load = function(R, v) {
11185
11185
  var J = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = J ? Object.create(globalThis) : globalThis;
11186
11186
  if (B.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
11187
11187
  setImmediate(N);
11188
11188
  } : function(N) {
11189
11189
  setTimeout(N, 0);
11190
- }, B.exports = w || T, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), J) {
11191
- var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : pe)("url");
11190
+ }, B.exports = v || T, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), J) {
11191
+ var P = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : $e)("url");
11192
11192
  Object.defineProperty(B, "location", {
11193
11193
  value: {
11194
11194
  get href() {
@@ -11307,7 +11307,7 @@ var Ne = He, ye = {};
11307
11307
  }, e[n];
11308
11308
  };
11309
11309
  }
11310
- function u0(e, n, i, a) {
11310
+ function s0(e, n, i, a) {
11311
11311
  var s = e;
11312
11312
  e[n] = s, e[i] = function() {
11313
11313
  if (e[n] === s) {
@@ -11320,10 +11320,10 @@ var Ne = He, ye = {};
11320
11320
  }, l;
11321
11321
  };
11322
11322
  }
11323
- function o0(e) {
11323
+ function l0(e) {
11324
11324
  return e.immutable$list = Array, e.fixed$length = Array, e;
11325
11325
  }
11326
- function _0(e) {
11326
+ function D0(e) {
11327
11327
  return e;
11328
11328
  }
11329
11329
  function f0(e) {
@@ -11373,7 +11373,7 @@ var Ne = He, ye = {};
11373
11373
  }
11374
11374
  k(e, n);
11375
11375
  }
11376
- function l0(e) {
11376
+ function _0(e) {
11377
11377
  var n = E.types, i = n.length;
11378
11378
  return n.push.apply(n, e), i;
11379
11379
  }
@@ -11390,7 +11390,7 @@ var Ne = He, ye = {};
11390
11390
  return e0(l, D, i, a, s, [d], c, o);
11391
11391
  };
11392
11392
  };
11393
- return { inherit: X, inheritMany: i0, mixin: j, mixinHard: Z, installStaticTearOff: e0, installInstanceTearOff: n0, _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: o0, lazy: a0, lazyFinal: u0, lazyOld: Y, updateHolder: K, convertToFastObject: _0, updateTypes: l0, setOrUpdateInterceptorsByTag: z, setOrUpdateLeafTags: t0 };
11393
+ return { inherit: X, inheritMany: i0, mixin: j, mixinHard: Z, installStaticTearOff: e0, installInstanceTearOff: n0, _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: l0, lazy: a0, lazyFinal: s0, lazyOld: Y, updateHolder: K, convertToFastObject: D0, updateTypes: _0, setOrUpdateInterceptorsByTag: z, setOrUpdateLeafTags: t0 };
11394
11394
  }(), u = {
11395
11395
  JS_CONST: function() {
11396
11396
  },
@@ -11440,8 +11440,8 @@ var Ne = He, ye = {};
11440
11440
  }
11441
11441
  },
11442
11442
  Sort__dualPivotQuicksort(e, n, i, a) {
11443
- var s, o, l, D, d, c, f, y, g, m, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), F = I - h, x = I + h, M = _.getInterceptor$asx(e), L = M.$index(e, A), O = M.$index(e, F), v = M.$index(e, I), H = M.$index(e, x), W = M.$index(e, C);
11444
- if (a.call$2(L, O) > 0 && (s = O, O = L, L = s), a.call$2(H, W) > 0 && (s = W, W = H, H = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(v, H) > 0 && (s = H, H = v, v = s), a.call$2(O, W) > 0 && (s = W, W = O, O = s), a.call$2(O, v) > 0 && (s = v, v = O, O = s), a.call$2(H, W) > 0 && (s = W, W = H, H = s), M.$indexSet(e, A, L), M.$indexSet(e, I, v), M.$indexSet(e, C, W), M.$indexSet(e, F, M.$index(e, n)), M.$indexSet(e, x, M.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(O, H), 0)) {
11443
+ var s, o, l, D, d, c, f, y, g, m, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = n + h, C = i - h, I = $.JSInt_methods._tdivFast$1(n + i, 2), F = I - h, x = I + h, M = _.getInterceptor$asx(e), L = M.$index(e, A), O = M.$index(e, F), w = M.$index(e, I), H = M.$index(e, x), W = M.$index(e, C);
11444
+ if (a.call$2(L, O) > 0 && (s = O, O = L, L = s), a.call$2(H, W) > 0 && (s = W, W = H, H = s), a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(O, w) > 0 && (s = w, w = O, O = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(w, H) > 0 && (s = H, H = w, w = s), a.call$2(O, W) > 0 && (s = W, W = O, O = s), a.call$2(O, w) > 0 && (s = w, w = O, O = s), a.call$2(H, W) > 0 && (s = W, W = H, H = s), M.$indexSet(e, A, L), M.$indexSet(e, I, w), M.$indexSet(e, C, W), M.$indexSet(e, F, M.$index(e, n)), M.$indexSet(e, x, M.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(O, H), 0)) {
11445
11445
  for (D = o; D <= l; ++D)
11446
11446
  if (d = M.$index(e, D), c = a.call$2(d, O), c !== 0)
11447
11447
  if (c < 0)
@@ -11851,8 +11851,8 @@ var Ne = He, ye = {};
11851
11851
  var n, i, a, s, o, l, D, d, c, f, y = e.co, g = e.iS, m = e.iI, h = e.nDA, A = e.aI, C = e.fs, I = e.cs, F = C[0], x = I[0], M = y[F], L = e.fT;
11852
11852
  for (L.toString, n = Object.create(g ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, g ? i = function() {
11853
11853
  this.$initialize();
11854
- } : i = function(v, H) {
11855
- this.$initialize(v, H);
11854
+ } : i = function(w, H) {
11855
+ this.$initialize(w, H);
11856
11856
  }, n.constructor = i, i.prototype = n, n.$_name = F, n.$_target = M, a = !g, a ? s = u.Closure_forwardCallTo(F, M, m, h) : (n.$static_name = F, s = M), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, g, m), n[x] = s, o = s, l = 1; l < C.length; ++l)
11857
11857
  D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", f = I[l], f != null && (a && (D = u.Closure_forwardCallTo(c, D, m, h)), n[f] = D), l === A && (o = D);
11858
11858
  return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
@@ -12588,7 +12588,7 @@ var Ne = He, ye = {};
12588
12588
  return o + "})";
12589
12589
  },
12590
12590
  _functionRtiToString(e, n, i) {
12591
- var a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v, H = ", ";
12591
+ var a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w, H = ", ";
12592
12592
  if (i != null) {
12593
12593
  for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
12594
12594
  n.push("T" + (o + l));
@@ -12597,16 +12597,16 @@ var Ne = He, ye = {};
12597
12597
  c += ">";
12598
12598
  } else
12599
12599
  c = "", s = null;
12600
- for (D = e._primary, h = e._rest, A = h._requiredPositional, C = A.length, I = h._optionalPositional, F = I.length, x = h._named, M = x.length, L = u._rtiToString(D, n), O = "", v = "", l = 0; l < C; ++l, v = H)
12601
- O += v + u._rtiToString(A[l], n);
12600
+ for (D = e._primary, h = e._rest, A = h._requiredPositional, C = A.length, I = h._optionalPositional, F = I.length, x = h._named, M = x.length, L = u._rtiToString(D, n), O = "", w = "", l = 0; l < C; ++l, w = H)
12601
+ O += w + u._rtiToString(A[l], n);
12602
12602
  if (F > 0) {
12603
- for (O += v + "[", v = "", l = 0; l < F; ++l, v = H)
12604
- O += v + u._rtiToString(I[l], n);
12603
+ for (O += w + "[", w = "", l = 0; l < F; ++l, w = H)
12604
+ O += w + u._rtiToString(I[l], n);
12605
12605
  O += "]";
12606
12606
  }
12607
12607
  if (M > 0) {
12608
- for (O += v + "{", v = "", l = 0; l < M; l += 3, v = H)
12609
- O += v, x[l + 1] && (O += "required "), O += u._rtiToString(x[l + 2], n) + " " + x[l];
12608
+ for (O += w + "{", w = "", l = 0; l < M; l += 3, w = H)
12609
+ O += w, x[l + 1] && (O += "required "), O += u._rtiToString(x[l + 2], n) + " " + x[l];
12610
12610
  O += "}";
12611
12611
  }
12612
12612
  return s != null && (n.toString, n.length = s), c + "(" + O + ") => " + L;
@@ -12967,7 +12967,7 @@ var Ne = He, ye = {};
12967
12967
  return d === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? d !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && d === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
12968
12968
  },
12969
12969
  _isFunctionSubtype(e, n, i, a, s) {
12970
- var o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v, H, W, d0;
12970
+ var o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w, H, W, d0;
12971
12971
  if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, f = d.length, c > f) || (y = f - c, g = o._optionalPositional, m = l._optionalPositional, h = g.length, A = m.length, c + h < f + A))
12972
12972
  return !1;
12973
12973
  for (C = 0; C < c; ++C)
@@ -12979,8 +12979,8 @@ var Ne = He, ye = {};
12979
12979
  for (C = 0; C < A; ++C)
12980
12980
  if (I = g[y + C], !u._isSubtype(e, m[C], s, I, i))
12981
12981
  return !1;
12982
- for (F = o._named, x = l._named, M = F.length, L = x.length, O = 0, v = 0; v < L; v += 3)
12983
- for (H = x[v]; ; ) {
12982
+ for (F = o._named, x = l._named, M = F.length, L = x.length, O = 0, w = 0; w < L; w += 3)
12983
+ for (H = x[w]; ; ) {
12984
12984
  if (O >= M || (W = F[O], O += 3, H < W))
12985
12985
  return !1;
12986
12986
  if (d0 = F[O - 2], W < H) {
@@ -12988,7 +12988,7 @@ var Ne = He, ye = {};
12988
12988
  return !1;
12989
12989
  continue;
12990
12990
  }
12991
- if (I = x[v + 1], d0 && !I || (I = F[O - 1], !u._isSubtype(e, x[v + 2], s, I, i)))
12991
+ if (I = x[w + 1], d0 && !I || (I = F[O - 1], !u._isSubtype(e, x[w + 2], s, I, i)))
12992
12992
  return !1;
12993
12993
  break;
12994
12994
  }
@@ -14431,32 +14431,32 @@ var Ne = He, ye = {};
14431
14431
  return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
14432
14432
  },
14433
14433
  formatBaseXYChartData(e, n, i, a, s) {
14434
- var o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v, H, W, d0, $0, D0, g0, M0, R0, T0, I0, x0, A0, F0 = null;
14434
+ var o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w, H, W, d0, g0, u0, m0, b0, M0, R0, A0, I0, x0, F0, H0 = null;
14435
14435
  if (i.length === 0)
14436
- return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? F0 : D.dateRange, F0));
14437
- for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, f = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), y.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure0(), o), !0, o._eval$1("ListIterable.E")), m = u.compare(new u.ComparisonData(g, y), new u.ComparisonData(g, f)), y = m.comparison, f = m.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = c.length, h = 0; A = c.length, h < A; c.length === D || (0, u.throwConcurrentModificationError)(c), ++h)
14438
- C = c[h], l.$indexSet(0, C.id, C.nullable);
14439
- for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), h = 0; I = c.length, h < I; c.length === A || (0, u.throwConcurrentModificationError)(c), ++h)
14440
- C = c[h], D.$indexSet(0, C.id, C.label);
14436
+ return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? H0 : D.dateRange, H0));
14437
+ for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), f = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), g = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), g.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), m = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(m, g), new u.ComparisonData(m, y)), g = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = f.length, A = 0; C = f.length, A < C; f.length === D || (0, u.throwConcurrentModificationError)(f), ++A)
14438
+ I = f[A], l.$indexSet(0, I.id, I.nullable);
14439
+ for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), A = 0; A < f.length; f.length === C || (0, u.throwConcurrentModificationError)(f), ++A)
14440
+ I = f[A], D.$indexSet(0, I.id, I.label);
14441
14441
  if (F = u.LinkedHashMap_LinkedHashMap$_empty(o, o), x = u.LinkedHashMap_LinkedHashMap$_empty(o, o), n.breakdownDimension == null) {
14442
- for (A = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14443
- A.$indexSet(0, d[M].id, M);
14444
- for (F.addAll$1(0, D), I = c.length, h = 0; h < c.length; c.length === I || (0, u.throwConcurrentModificationError)(c), ++h)
14445
- L = c[h].id, x.$indexSet(0, L, L);
14446
- I = u._arrayInstanceType(f)._eval$1("ExpandIterable<1,List<@>>"), f = u.List_List$of(new u.ExpandIterable(f, new u.formatBaseXYChartData_closure1(c, A), I), !0, I._eval$1("Iterable.E")), y.length !== 0 && (I = u._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = u.List_List$of(new u.ExpandIterable(y, new u.formatBaseXYChartData_closure2(c, A), I), !0, I._eval$1("Iterable.E")));
14447
- } else if (I > 1) {
14448
- for (A = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14449
- A.$indexSet(0, d[M].id, M);
14450
- A = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure3(n)), c, A, D, F, x), f = A.call$1(f), y.length !== 0 && (y = A.call$1(y));
14442
+ for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14443
+ C.$indexSet(0, d[M].id, M);
14444
+ for (F.addAll$1(0, D), L = f.length, A = 0; A < f.length; f.length === L || (0, u.throwConcurrentModificationError)(f), ++A)
14445
+ O = f[A].id, x.$indexSet(0, O, O);
14446
+ L = u._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = u.List_List$of(new u.ExpandIterable(y, new u.formatBaseXYChartData_closure2(f, C), L), !0, L._eval$1("Iterable.E")), g.length !== 0 && (L = u._arrayInstanceType(g)._eval$1("ExpandIterable<1,List<@>>"), g = u.List_List$of(new u.ExpandIterable(g, new u.formatBaseXYChartData_closure3(f, C), L), !0, L._eval$1("Iterable.E")));
14447
+ } else if (c.length > 1) {
14448
+ for (C = u.LinkedHashMap_LinkedHashMap$_empty(o, r.int), M = 0; M < d.length; ++M)
14449
+ C.$indexSet(0, d[M].id, M);
14450
+ C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), f, C, D, F, x), y = C.call$1(y), g.length !== 0 && (g = C.call$1(g));
14451
14451
  }
14452
- for (A = r.JSArray_String, O = u._setArrayType([], A), v = u._setArrayType([], A), A = f.length, h = 0; h < f.length; f.length === A || (0, u.throwConcurrentModificationError)(f), ++h)
14453
- H = f[h], I = _.getInterceptor$asx(H), O.push(_.toString$0$(I.$index(H, 0))), v.push(_.toString$0$(I.$index(H, 1)));
14454
- for (A = u.LinkedHashSet_LinkedHashSet$from(O, o), O = u.List_List$of(A, !0, u._instanceType(A)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(v, o), W = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), d0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = W.length, A = _.getInterceptor$asx(y), I = r.JSArray_nullable_num, h = 0; h < W.length; W.length === o || (0, u.throwConcurrentModificationError)(W), ++h) {
14455
- for ($0 = W[h], D0 = u._setArrayType([], I), g0 = u._setArrayType([], I), M0 = x.$index(0, $0), L = l.$index(0, M0 ?? $0), R0 = L === !0, L = F.$index(0, $0), T0 = L ?? D.$index(0, $0), T0 == null && (T0 = $0), L = O.length, I0 = 0; I0 < O.length; O.length === L || (0, u.throwConcurrentModificationError)(O), ++I0)
14456
- x0 = O[I0], A0 = u.IterableExtension_firstWhereOrNull(f, new u.formatBaseXYChartData_closure4(x0, $0)), D0.push(u._parseMetricValue(A0 == null ? F0 : u.ListExtension_elementAtOrNull(A0, 2), R0)), A.get$length(y) !== 0 && (A0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, $0)), g0.push(u._parseMetricValue(A0 == null ? F0 : u.ListExtension_elementAtOrNull(A0, 2), R0)));
14457
- d0.push(new u.XYDatasetModel(T0, !1, D0)), g0.length !== 0 && d0.push(new u.XYDatasetModel(T0, !0, g0));
14452
+ for (C = r.JSArray_String, w = u._setArrayType([], C), H = u._setArrayType([], C), C = y.length, A = 0; A < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++A)
14453
+ W = y[A], L = _.getInterceptor$asx(W), w.push(_.toString$0$(L.$index(W, 0))), H.push(_.toString$0$(L.$index(W, 1)));
14454
+ for (C = u.LinkedHashSet_LinkedHashSet$from(w, o), w = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(H, o), d0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = d0.length, C = _.getInterceptor$asx(g), L = r.JSArray_nullable_num, A = 0; A < d0.length; d0.length === o || (0, u.throwConcurrentModificationError)(d0), ++A) {
14455
+ for (u0 = d0[A], m0 = u._setArrayType([], L), b0 = u._setArrayType([], L), M0 = x.$index(0, u0), O = l.$index(0, M0 ?? u0), R0 = O === !0, O = F.$index(0, u0), A0 = O ?? D.$index(0, u0), A0 == null && (A0 = u0), O = w.length, I0 = 0; I0 < w.length; w.length === O || (0, u.throwConcurrentModificationError)(w), ++I0)
14456
+ x0 = w[I0], F0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(x0, u0)), m0.push(u._parseMetricValue(F0 == null ? H0 : u.ListExtension_elementAtOrNull(F0, 2), R0)), C.get$length(g) !== 0 && (F0 = u.IterableExtension_firstWhereOrNull(g, new u.formatBaseXYChartData_closure6(x0, u0)), b0.push(u._parseMetricValue(F0 == null ? H0 : u.ListExtension_elementAtOrNull(F0, 2), R0)));
14457
+ g0.push(new u.XYDatasetModel(A0, !1, m0)), b0.length !== 0 && g0.push(new u.XYDatasetModel(A0, !0, b0));
14458
14458
  }
14459
- return d0 = u.accumulate(n, d0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? F0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, O, d0, new u.DateComparison(o, l == null ? F0 : l.dateRange));
14459
+ return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? H0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, w, g0, new u.DateComparison(o, l == null ? H0 : l.dateRange));
14460
14460
  },
14461
14461
  _formatRows_closure: function(n, i) {
14462
14462
  this.response = n, this.timezone = i;
@@ -14483,19 +14483,21 @@ var Ne = He, ye = {};
14483
14483
  },
14484
14484
  formatBaseXYChartData_closure0: function() {
14485
14485
  },
14486
- formatBaseXYChartData_closure1: function(n, i) {
14486
+ formatBaseXYChartData_closure1: function() {
14487
+ },
14488
+ formatBaseXYChartData_closure2: function(n, i) {
14487
14489
  this.metricColumns = n, this.metricIndexById = i;
14488
14490
  },
14489
14491
  formatBaseXYChartData__closure0: function(n, i, a) {
14490
14492
  this.metricIndexById = n, this.row = i, this.xValue = a;
14491
14493
  },
14492
- formatBaseXYChartData_closure2: function(n, i) {
14494
+ formatBaseXYChartData_closure3: function(n, i) {
14493
14495
  this.metricColumns = n, this.metricIndexById = i;
14494
14496
  },
14495
14497
  formatBaseXYChartData__closure: function(n, i, a) {
14496
14498
  this.metricIndexById = n, this.row = i, this.xValue = a;
14497
14499
  },
14498
- formatBaseXYChartData_closure3: function(n) {
14500
+ formatBaseXYChartData_closure4: function(n) {
14499
14501
  this.config = n;
14500
14502
  },
14501
14503
  formatBaseXYChartData_expandRowsByMetric: function(n, i, a, s, o, l) {
@@ -14510,10 +14512,10 @@ var Ne = He, ye = {};
14510
14512
  var d = this;
14511
14513
  d.metricIndexById = n, d.row = i, d.breakdownValue = a, d.metricLabelById = s, d.datasetLabelByKey = o, d.metricIdByDatasetKey = l, d.xValue = D;
14512
14514
  },
14513
- formatBaseXYChartData_closure4: function(n, i) {
14515
+ formatBaseXYChartData_closure5: function(n, i) {
14514
14516
  this.x = n, this.datasetKey = i;
14515
14517
  },
14516
- formatBaseXYChartData_closure5: function(n, i) {
14518
+ formatBaseXYChartData_closure6: function(n, i) {
14517
14519
  this.x = n, this.datasetKey = i;
14518
14520
  },
14519
14521
  _formatRows0(e, n, i) {
@@ -14659,7 +14661,7 @@ var Ne = He, ye = {};
14659
14661
  return s = h.mainResponse, c = s.rows, f = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(c, new u._formatTableData_closure3(), f), !0, f._eval$1("ListIterable.E")));
14660
14662
  },
14661
14663
  formatTableChartData(e, n, i, a) {
14662
- var s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, v, H = {};
14664
+ var s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O, w, H = {};
14663
14665
  if (n.length === 0)
14664
14666
  return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
14665
14667
  for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), f = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, f, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, g = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), m = H.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = m.rows, s.length !== 0 && (o = g.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = g.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = m.columns, f = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), f), !0, f._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), g = g.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), H.comparison = m.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = g.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), A = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), I = 0; I < s.length; ++I)
@@ -14668,7 +14670,7 @@ var Ne = He, ye = {};
14668
14670
  F = s[I], x.$indexSet(0, F.key + "_" + F.hide, I);
14669
14671
  for (M = u._setArrayType([], r.JSArray__ColumnMapping), s = A.length, L = 0; L < s; ++L)
14670
14672
  F = A[L], o = F.key, O = o + "_" + F.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, O), l == null && (l = -1), D = x.$index(0, O), M.push(new u._ColumnMapping(F, o, l, D ?? -1));
14671
- return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(M, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = H.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(g.rows, new u.formatTableChartData_closure9(H, M, i, a, s !== 0, s), o, o), g.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14673
+ return s = r.MappedListIterable__ColumnMapping_TableColumnModel, w = u.List_List$of(new u.MappedListIterable(M, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = H.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(g.rows, new u.formatTableChartData_closure9(H, M, i, a, s !== 0, s), o, o), g.copyWith$2$columns$rows(w, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
14672
14674
  },
14673
14675
  _formatTableResponse_closure: function(n) {
14674
14676
  this.config = n;
@@ -18613,11 +18615,16 @@ Arguments: [` + d + "]";
18613
18615
  },
18614
18616
  $signature: 0
18615
18617
  }, u.formatBaseXYChartData_closure0.prototype = {
18618
+ call$1(e) {
18619
+ return !e.hide;
18620
+ },
18621
+ $signature: 0
18622
+ }, u.formatBaseXYChartData_closure1.prototype = {
18616
18623
  call$1(e) {
18617
18624
  return new u.ComparisonDataColumn(e.aggregationType == null, e.dateComparison);
18618
18625
  },
18619
18626
  $signature: 26
18620
- }, u.formatBaseXYChartData_closure1.prototype = {
18627
+ }, u.formatBaseXYChartData_closure2.prototype = {
18621
18628
  call$1(e) {
18622
18629
  var n = this.metricColumns;
18623
18630
  return new u.MappedListIterable(n, new u.formatBaseXYChartData__closure0(this.metricIndexById, e, u.ListExtension_elementAtOrNull(e, 0)), u._arrayInstanceType(n)._eval$1("MappedListIterable<1,List<@>>"));
@@ -18629,7 +18636,7 @@ Arguments: [` + d + "]";
18629
18636
  return a == null && (a = -1), n = a >= 0 ? u.ListExtension_elementAtOrNull(this.row, a) : null, [this.xValue, i, n];
18630
18637
  },
18631
18638
  $signature: 12
18632
- }, u.formatBaseXYChartData_closure2.prototype = {
18639
+ }, u.formatBaseXYChartData_closure3.prototype = {
18633
18640
  call$1(e) {
18634
18641
  var n = this.metricColumns;
18635
18642
  return new u.MappedListIterable(n, new u.formatBaseXYChartData__closure(this.metricIndexById, e, u.ListExtension_elementAtOrNull(e, 0)), u._arrayInstanceType(n)._eval$1("MappedListIterable<1,List<@>>"));
@@ -18641,7 +18648,7 @@ Arguments: [` + d + "]";
18641
18648
  return a == null && (a = -1), n = a >= 0 ? u.ListExtension_elementAtOrNull(this.row, a) : null, [this.xValue, i, n];
18642
18649
  },
18643
18650
  $signature: 12
18644
- }, u.formatBaseXYChartData_closure3.prototype = {
18651
+ }, u.formatBaseXYChartData_closure4.prototype = {
18645
18652
  call$1(e) {
18646
18653
  var n = e.id, i = this.config.breakdownDimension;
18647
18654
  return n === (i == null ? null : u.uniqueAlias(i.get$alias()));
@@ -18665,13 +18672,13 @@ Arguments: [` + d + "]";
18665
18672
  return D == null && (D = -1), n = D >= 0 ? u.ListExtension_elementAtOrNull(o.row, D) : null, i = o.breakdownValue, a = i + "::" + l, s = o.metricLabelById.$index(0, l), s == null && (s = l), o.datasetLabelByKey.$indexSet(0, a, i + " - " + s), o.metricIdByDatasetKey.$indexSet(0, a, l), [o.xValue, a, n];
18666
18673
  },
18667
18674
  $signature: 12
18668
- }, u.formatBaseXYChartData_closure4.prototype = {
18675
+ }, u.formatBaseXYChartData_closure5.prototype = {
18669
18676
  call$1(e) {
18670
18677
  var n = _.getInterceptor$asx(e);
18671
18678
  return _.$eq$(n.$index(e, 0), this.x) && _.$eq$(n.$index(e, 1), this.datasetKey);
18672
18679
  },
18673
18680
  $signature: 5
18674
- }, u.formatBaseXYChartData_closure5.prototype = {
18681
+ }, u.formatBaseXYChartData_closure6.prototype = {
18675
18682
  call$1(e) {
18676
18683
  var n = _.getInterceptor$asx(e);
18677
18684
  return _.$eq$(n.$index(e, 0), this.x) && _.$eq$(n.$index(e, 1), this.datasetKey);
@@ -18877,9 +18884,9 @@ Arguments: [` + d + "]";
18877
18884
  $signature: 0
18878
18885
  }, u._formatTableResponse_closure5.prototype = {
18879
18886
  call$2(e, n) {
18880
- var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O = null, v = r.JSArray_List_dynamic, H = u._setArrayType([[]], v), W = u._setArrayType([[]], v);
18881
- for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < v.length; ++D)
18882
- if (d = v[D], c = _.getInterceptor$ax(d), f = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
18887
+ var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M, L, O = null, w = r.JSArray_List_dynamic, H = u._setArrayType([[]], w), W = u._setArrayType([[]], w);
18888
+ for (w = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < w.length; ++D)
18889
+ if (d = w[D], c = _.getInterceptor$ax(d), f = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
18883
18890
  for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), g = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = H.length, m = y.type, h = y.columnValue, A = 0; A < H.length; H.length === c || (0, u.throwConcurrentModificationError)(H), ++A)
18884
18891
  C = H[A], g ? (I = i.$index(0, h), F = C.length, D >= F && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - F + 1, O, !1, a)), C[D] = I) : (I = m == null ? O : u.DataTypeExtension_toData(m, O), F = C.length, D >= F && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - F + 1, O, !1, a)), C[D] = I);
18885
18892
  else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), f))
@@ -19127,9 +19134,9 @@ Arguments: [` + d + "]";
19127
19134
  $signature: 98
19128
19135
  }, u.formatTableChartData_closure9.prototype = {
19129
19136
  call$2(e, n) {
19130
- var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M = this, L = [], O = [], v = n.cells, H = _.getInterceptor$asx(v), W = H.get$length(v);
19137
+ var i, a, s, o, l, D, d, c, f, y, g, m, h, A, C, I, F, x, M = this, L = [], O = [], w = n.cells, H = _.getInterceptor$asx(w), W = H.get$length(w);
19131
19138
  for (i = M.columnMappings, a = i.length, s = M.hasComparison, o = M.country, l = M.timezone, D = e < M.comparisonRowsLength, d = M._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
19132
- f = i[c], y = f.mainIndex, g = y >= 0 && y < W ? H.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = f.column, m = y.type, h = m == null, L.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, g)), s && (D ? (A = d.comparison.rows[e].cells, C = _.getInterceptor$asx(A), I = C.get$length(A), F = f.comparisonIndex, x = F >= 0 && F < I ? C.$index(A, F) : u.ListExtension_elementAtOrNull(A, F)) : x = u.ListExtension_elementAtOrNull([], f.comparisonIndex), O.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19139
+ f = i[c], y = f.mainIndex, g = y >= 0 && y < W ? H.$index(w, y) : u.ListExtension_elementAtOrNull(w, y), y = f.column, m = y.type, h = m == null, L.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, g)), s && (D ? (A = d.comparison.rows[e].cells, C = _.getInterceptor$asx(A), I = C.get$length(A), F = f.comparisonIndex, x = F >= 0 && F < I ? C.$index(A, F) : u.ListExtension_elementAtOrNull(A, F)) : x = u.ListExtension_elementAtOrNull([], f.comparisonIndex), O.push(h ? null : u.DataTypeExtension_toDisplay(m, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
19133
19140
  return n.copyWith$2$cells$comparisonCells(L, O);
19134
19141
  },
19135
19142
  $signature: 7
@@ -19331,7 +19338,7 @@ Arguments: [` + d + "]";
19331
19338
  a(o = u.DateBuilder.prototype, "get$setYear", "setYear$1", 1), a(o, "get$setMonth", "setMonth$1", 1), a(o, "get$setDay", "setDay$1", 1), a(o, "get$setDayOfYear", "setDayOfYear$1", 1), a(o, "get$setHour", "setHour$1", 1), a(o, "get$setMinute", "setMinute$1", 1), a(o, "get$setSecond", "setSecond$1", 1), a(o, "get$setFractionalSecond", "setFractionalSecond$1", 1), i(u, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 68), s(u.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 62), i(u, "js__formatChartData$closure", "formatChartData", 8);
19332
19339
  }(), function() {
19333
19340
  var n = t.mixin, i = t.inherit, a = t.inheritMany;
19334
- i(u.Object, null), a(u.Object, [u.JS_CONST, _.Interceptor, _.ArrayIterator, u.Error, u._ListBase_Object_ListMixin, u.Iterable, u.ListIterator, u.Iterator, u.ExpandIterator, u.EmptyIterator, u.FixedLengthListMixin, u.UnmodifiableListMixin, u.Symbol, u.MapView, u.ConstantMap, u.JSInvocationMirror, u.Closure, u.TypeErrorDecoder, u.NullThrownFromJavaScriptException, u._Required, u.MapMixin, u.LinkedHashMapCell, u.LinkedHashMapKeyIterator, u.JSSyntaxRegExp, u._MatchImplementation, u._AllMatchesIterator, u.StringMatch, u._StringAllMatchesIterator, u._Cell, u.Rti, u._FunctionParameters, u._Type, u._IterationMarker, u._SyncStarIterator, u.StreamTransformerBase, u.__SetBase_Object_SetMixin, u._LinkedHashSetCell, u._LinkedHashSetIterator, u.ListMixin, u._UnmodifiableMapMixin, u.SetMixin, u.Codec, u._JsonStringifier, u._Utf8Encoder, u.DateTime, u.Duration, u._Enum, u.OutOfMemoryError, u.StackOverflowError, u._Exception, u.FormatException, u.Null, u.Sink, u.StringBuffer, u.Endian, u.Digest, u.HashSink, u.DateSymbols, u.DateBuilder, u.DateFormat, u._DateFormatField, u.StringStack, u.UninitializedLocaleData, u.LocaleDataException, u.Jiffy, u.Locale, u.JiffyException, u.QueryRequestCommonField, u.QueryResponseColumn, u.DateTimeRange, u.QueryResponse, u.QueryResponseRow, u.XYDatasetModel, u.BaseXYChartDataModel, u.DateComparison, u.CircularDatasetModel, u.CircularDataModel, u.ScorecardDataModel, u.SparklineDataModel, u.TableColumnModel, u.TableRowModel, u.TableDataModel, u.BaseDatasourceConfigModel, u.DataSourceDrillConfig, u.DataSourceRowColumnConfig, u.JoinDatasourceCondition, u.ComparisonDataColumn, u.RowInfo, u.ComparisonResult, u.ComparisonData, u._Header, u._ColumnMapping, u.TZDateTime, u.TimeZoneInitException, u.LocationNotFoundException, u.Location, u.TimeZone, u.TzInstant, u.LocationDatabase]), a(_.Interceptor, [_.JSBool, _.JSNull, _.JavaScriptObject, _.JSArray, _.JSNumber, _.JSString, u.NativeByteBuffer, u.NativeTypedData]), i(_.LegacyJavaScriptObject, _.JavaScriptObject), a(_.LegacyJavaScriptObject, [_.PlainJavaScriptObject, _.UnknownJavaScriptObject, _.JavaScriptFunction, u.BufferModule, u.BufferConstants, u.Buffer, u.ConsoleModule, u.Console, u.EventEmitter, u.Promise, u.Date, u.JsError, u.Atomics, u.Modules, u.Module, u.Net, u.Socket, u.NetAddress, u.NetServer, u.NodeJsError, u.Process, u.CPUUsage, u.Release, u.StreamModule, u.Readable, u.Writable, u.Duplex, u.Transform, u.WritableOptions, u.ReadableOptions, u.Immediate, u.Timeout, u.TTY, u.Util, u.Exports, u._Exports]), i(_.JSUnmodifiableArray, _.JSArray), a(_.JSNumber, [_.JSInt, _.JSNumNotInt]), a(u.Error, [u.LateError, u.TypeError, u.JsNoSuchMethodError, u.UnknownJsTypeError, u.RuntimeError, u._Error, u.JsonUnsupportedObjectError, u.AssertionError, u.NullThrownError, u.ArgumentError, u.NoSuchMethodError, u.UnsupportedError, u.UnimplementedError, u.StateError, u.ConcurrentModificationError, u.CyclicInitializationError]), i(u.ListBase, u._ListBase_Object_ListMixin), a(u.ListBase, [u.UnmodifiableListBase, u.ListSlice, u.TypedDataBuffer]), i(u.CodeUnits, u.UnmodifiableListBase), a(u.Iterable, [u.EfficientLengthIterable, u.MappedIterable, u.WhereIterable, u.ExpandIterable, u.SkipIterable, u._ConstantMapKeyIterable, u.IterableBase, u._StringAllMatchesIterable]), a(u.EfficientLengthIterable, [u.ListIterable, u.EmptyIterable, u.LinkedHashMapKeyIterable]), a(u.ListIterable, [u.SubListIterable, u.MappedListIterable, u.ReversedListIterable, u._JsonMapKeyIterable, u._GeneratorIterable]), i(u.EfficientLengthMappedIterable, u.MappedIterable), a(u.Iterator, [u.MappedIterator, u.WhereIterator, u.SkipIterator]), i(u.EfficientLengthSkipIterable, u.SkipIterable), i(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u.MapView), i(u.UnmodifiableMapView, u._UnmodifiableMapView_MapView__UnmodifiableMapMixin), i(u.ConstantMapView, u.UnmodifiableMapView), i(u.ConstantStringMap, u.ConstantMap), a(u.Closure, [u.Closure2Args, u.TearOffClosure, u.JsLinkedHashMap_values_closure, u.initHooks_closure, u.initHooks_closure1, u._LinkedCustomHashMap_closure, u.DateTime_parse_parseIntOrZero, u.DateTime_parse_parseMilliAndMicroseconds, u.DateFormat_dateTimeConstructor_closure, u.DateFormat__checkDateOnly_closure, u.DateFormat__initDigitMatcher_closure, u.DateFormat__initDigitMatcher_closure0, u._DateFormatPatternField_parseStandaloneDay_closure, u.Jiffy__parseString_closure, u.uniqueAlias_closure, u.QueryResponse_fromJson_closure, u.QueryResponse_fromJson_closure0, u.QueryResponse_toJson_closure, u.QueryResponse_toJson_closure0, u.DataTypeExtension__formatTime_closure, u.DataTypeExtension__formatTime_closure0, u.DataTypeExtension_toDisplay_closure, u.BaseXYChartDataModel_toJson_closure, u.CircularDataModel_toJson_closure, u.SparklineDataModel_toJson_closure, u.TableDataModel_toJson_closure, u.TableDataModel_toJson_closure0, u.BaseDatasourceConfigModel_drilledDimensionIds_closure, u.BaseDatasourceConfigModel_metricIds_closure, u.BaseDatasourceConfigModel_toJson_closure, u.BaseDatasourceConfigModel_toJson_closure0, u.BaseDatasourceConfigModel_toJson_closure1, u.BaseDatasourceConfigModel_toJson_closure2, u.BaseDatasourceConfigModel_toJson_closure3, u.BaseDatasourceConfigModel_toJson_closure4, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, u.DataSourceDrillConfig_drilledDimensions_closure, u.DataSourceRowColumnConfig_rowIds_closure, u.DataSourceRowColumnConfig_rowIds_closure0, u.DataSourceRowColumnConfig_rowIds_closure2, u.DataSourceRowColumnConfig_rowIds_closure1, u.DataSourceRowColumnConfig_columnIds_closure, u.DataSourceRowColumnConfig_columnIds_closure0, u.DataSourceRowColumnConfig_columnIds_closure1, u.TableDatasourceConfigModel_joinDatasources_closure, u.TableDatasourceConfigModel_toJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, u.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, u.JoinDatasourceConfig_toJson_closure, u.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, u.JoinDatasourceCondition_toJson_closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, u._formatRows_closure, u._formatRows___closure, u._formatRows___closure0, u.accumulate__closure0, u.formatBaseXYChartData_closure, u.formatBaseXYChartData_closure0, u.formatBaseXYChartData_closure1, u.formatBaseXYChartData__closure0, u.formatBaseXYChartData_closure2, u.formatBaseXYChartData__closure, u.formatBaseXYChartData_closure3, u.formatBaseXYChartData_expandRowsByMetric, u.formatBaseXYChartData_expandRowsByMetric_closure, u.formatBaseXYChartData_expandRowsByMetric__closure, u.formatBaseXYChartData_closure4, u.formatBaseXYChartData_closure5, u._formatRows_closure0, u._formatRows___closure1, u._formatRows___closure2, u.formatCircularChartData_closure, u.formatCircularChartData_closure0, u.formatCircularChartData_closure1, u.formatCircularChartData_closure2, u._getRowInfo_closure, u._getRowInfo__closure, u.compare_closure, u.compare_closure0, u._formatSparkline_closure, u._formatSparkline___closure, u._formatSparkline_closure1, u._formatSparkline_closure0, u._formatSparkline_closure2, u.formatScoreCardChartData_closure, u._formatTableResponse_closure, u._formatTableResponse__closure13, u._formatTableResponse_closure0, u._formatTableResponse_closure1, u._formatTableResponse__closure12, u._formatTableResponse__closure11, u._formatTableResponse_closure3, u._formatTableResponse___closure, u._formatTableResponse___closure0, u._formatTableResponse_closure4, u._formatTableResponse__closure4, u._formatTableResponse__closure5, u._formatTableResponse__closure6, u._formatTableResponse__closure3, u._formatTableResponse_closure8, u._formatTableResponse__closure, u._formatTableResponse__closure0, u._formatTableResponse__closure1, u._formatTableResponse__closure2, u._formatTableData_closure0, u._formatTableData__closure2, u._formatTableData_closure1, u._formatTableData__closure1, u._formatTableData___closure0, u._formatTableData_closure2, u._formatTableData___closure, u._formatTableData_closure3, u.formatTableChartData_closure1, u.formatTableChartData_closure2, u.formatTableChartData_closure3, u.formatTableChartData_closure4, u.formatTableChartData_closure7, u.formatTableChartData_closure8, u.formatChartData_closure]), a(u.Closure2Args, [u.Primitives_functionNoSuchMethod_closure, u.JsLinkedHashMap_addAll_closure, u.initHooks_closure0, u.LinkedHashMap_LinkedHashMap$from_closure, u.MapBase_mapToString_closure, u._JsonStringifier_writeMap_closure, u.NoSuchMethodError_toString_closure, u.DateFormat__fieldConstructors_closure, u.DateFormat__fieldConstructors_closure0, u.DateFormat__fieldConstructors_closure1, u.Jiffy__parseMap_closure, u.DataSourceDrillConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure0, u.TableDatasourceConfigModel_drilledDimensions_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, u._formatRows__closure, u.accumulate_closure, u.accumulate__closure, u._formatRows__closure0, u.compare_closure1, u.compare_closure3, u.compare_closure2, u.compare_closure4, u._formatSparkline__closure, u._formatTableResponse_closure2, u._formatTableResponse__closure9, u._formatTableResponse__closure10, u._formatTableResponse_closure5, u._formatTableResponse__closure7, u._formatTableResponse__closure8, u._formatTableResponse_closure6, u._formatTableResponse_closure7, u._formatTableData_closure, u._formatTableData__closure0, u._formatTableData__closure, u.formatTableChartData_closure, u.formatTableChartData_closure0, u.formatTableChartData_closure5, u.formatTableChartData_closure6, u.formatTableChartData_closure9]), i(u.NullError, u.TypeError), a(u.TearOffClosure, [u.StaticClosure, u.BoundClosure]), i(u.MapBase, u.MapMixin), a(u.MapBase, [u.JsLinkedHashMap, u._JsonMap]), a(u.IterableBase, [u._AllMatchesIterable, u._SyncStarIterable]), a(u.NativeTypedData, [u.NativeByteData, u.NativeTypedArray]), i(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.NativeTypedArray), i(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), i(u.NativeTypedArrayOfInt, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(u.NativeTypedArrayOfInt, [u.NativeUint16List, u.NativeUint32List, u.NativeUint8List]), i(u._TypeError, u._Error), i(u._LinkedCustomHashMap, u.JsLinkedHashMap), i(u._SetBase, u.__SetBase_Object_SetMixin), i(u._LinkedHashSet, u._SetBase), a(u.Codec, [u.Encoding, u.JsonCodec]), a(u.Encoding, [u.AsciiCodec, u.Utf8Codec]), i(u.Converter, u.StreamTransformerBase), a(u.Converter, [u._UnicodeSubsetDecoder, u.JsonEncoder, u.JsonDecoder, u.Utf8Encoder]), i(u.AsciiDecoder, u._UnicodeSubsetDecoder), i(u.JsonCyclicError, u.JsonUnsupportedObjectError), i(u._JsonStringStringifier, u._JsonStringifier), a(u.ArgumentError, [u.RangeError, u.IndexError]), i(u.DigestSink, u.Sink), i(u._Sha1Sink, u.HashSink), a(u._DateFormatField, [u._DateFormatLiteralField, u._DateFormatQuotedField, u._DateFormatPatternField]), a(u._Enum, [u.StartOfWeek, u.Units, u.SCHEMA_NAME, u.DATA_TYPE, u.AGGREGATION_TYPE, u.COMPARISON_OPERATOR, u.DIMENSION_OPTION, u.TIME_FORMATTER, u.FORMATTER_TYPE, u.PERIOD_TYPE, u.SORT_TYPE, u.FIELD_TYPE, u.ChartType, u.SparklineType]), a(u.Locale, [u.ArLyLocale, u.ArSaMaDzKwTnLocale, u.AzLocale, u.BnLocale, u.DeLocale, u.EnLocale, u.EsLocale, u.FaLocale, u.FrLocale, u.HiLocale, u.IdLocale, u.ItLocale, u.JaLocale, u.KoLocale, u.NbLocale, u.NlLocale, u.PlLocale, u.PtLocale, u.RuLocale, u.SvLocale, u.ThLocale, u.TrLocale, u.UkLocale, u.ZhCnLocale, u.ZhLocale]), a(u.NodeJsError, [u.JsAssertionError, u.JsRangeError, u.JsReferenceError, u.JsSyntaxError, u.JsTypeError, u.JsSystemError]), a(u.Socket, [u.TTYReadStream, u.TTYWriteStream]), a(u.QueryRequestCommonField, [u.QueryRequestDimension, u.QueryRequestMetric, u.QueryRequestFilter, u.QueryRequestSort]), a(u.BaseDatasourceConfigModel, [u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.ScorecardDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), i(u.CircularDatasourceConfigModel, u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(u.TableDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), i(u.JoinDatasourceConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(u.BaseXYDatasourceConfigModel, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(u._IntBuffer, u.TypedDataBuffer), i(u.Uint8Buffer, u._IntBuffer), n(u.UnmodifiableListBase, u.UnmodifiableListMixin), n(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.ListMixin), n(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u.FixedLengthListMixin), n(u._ListBase_Object_ListMixin, u.ListMixin), n(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u._UnmodifiableMapMixin), n(u.__SetBase_Object_SetMixin, u.SetMixin), n(u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig), n(u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), n(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), n(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u.DataSourceDrillConfig), n(u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig);
19341
+ i(u.Object, null), a(u.Object, [u.JS_CONST, _.Interceptor, _.ArrayIterator, u.Error, u._ListBase_Object_ListMixin, u.Iterable, u.ListIterator, u.Iterator, u.ExpandIterator, u.EmptyIterator, u.FixedLengthListMixin, u.UnmodifiableListMixin, u.Symbol, u.MapView, u.ConstantMap, u.JSInvocationMirror, u.Closure, u.TypeErrorDecoder, u.NullThrownFromJavaScriptException, u._Required, u.MapMixin, u.LinkedHashMapCell, u.LinkedHashMapKeyIterator, u.JSSyntaxRegExp, u._MatchImplementation, u._AllMatchesIterator, u.StringMatch, u._StringAllMatchesIterator, u._Cell, u.Rti, u._FunctionParameters, u._Type, u._IterationMarker, u._SyncStarIterator, u.StreamTransformerBase, u.__SetBase_Object_SetMixin, u._LinkedHashSetCell, u._LinkedHashSetIterator, u.ListMixin, u._UnmodifiableMapMixin, u.SetMixin, u.Codec, u._JsonStringifier, u._Utf8Encoder, u.DateTime, u.Duration, u._Enum, u.OutOfMemoryError, u.StackOverflowError, u._Exception, u.FormatException, u.Null, u.Sink, u.StringBuffer, u.Endian, u.Digest, u.HashSink, u.DateSymbols, u.DateBuilder, u.DateFormat, u._DateFormatField, u.StringStack, u.UninitializedLocaleData, u.LocaleDataException, u.Jiffy, u.Locale, u.JiffyException, u.QueryRequestCommonField, u.QueryResponseColumn, u.DateTimeRange, u.QueryResponse, u.QueryResponseRow, u.XYDatasetModel, u.BaseXYChartDataModel, u.DateComparison, u.CircularDatasetModel, u.CircularDataModel, u.ScorecardDataModel, u.SparklineDataModel, u.TableColumnModel, u.TableRowModel, u.TableDataModel, u.BaseDatasourceConfigModel, u.DataSourceDrillConfig, u.DataSourceRowColumnConfig, u.JoinDatasourceCondition, u.ComparisonDataColumn, u.RowInfo, u.ComparisonResult, u.ComparisonData, u._Header, u._ColumnMapping, u.TZDateTime, u.TimeZoneInitException, u.LocationNotFoundException, u.Location, u.TimeZone, u.TzInstant, u.LocationDatabase]), a(_.Interceptor, [_.JSBool, _.JSNull, _.JavaScriptObject, _.JSArray, _.JSNumber, _.JSString, u.NativeByteBuffer, u.NativeTypedData]), i(_.LegacyJavaScriptObject, _.JavaScriptObject), a(_.LegacyJavaScriptObject, [_.PlainJavaScriptObject, _.UnknownJavaScriptObject, _.JavaScriptFunction, u.BufferModule, u.BufferConstants, u.Buffer, u.ConsoleModule, u.Console, u.EventEmitter, u.Promise, u.Date, u.JsError, u.Atomics, u.Modules, u.Module, u.Net, u.Socket, u.NetAddress, u.NetServer, u.NodeJsError, u.Process, u.CPUUsage, u.Release, u.StreamModule, u.Readable, u.Writable, u.Duplex, u.Transform, u.WritableOptions, u.ReadableOptions, u.Immediate, u.Timeout, u.TTY, u.Util, u.Exports, u._Exports]), i(_.JSUnmodifiableArray, _.JSArray), a(_.JSNumber, [_.JSInt, _.JSNumNotInt]), a(u.Error, [u.LateError, u.TypeError, u.JsNoSuchMethodError, u.UnknownJsTypeError, u.RuntimeError, u._Error, u.JsonUnsupportedObjectError, u.AssertionError, u.NullThrownError, u.ArgumentError, u.NoSuchMethodError, u.UnsupportedError, u.UnimplementedError, u.StateError, u.ConcurrentModificationError, u.CyclicInitializationError]), i(u.ListBase, u._ListBase_Object_ListMixin), a(u.ListBase, [u.UnmodifiableListBase, u.ListSlice, u.TypedDataBuffer]), i(u.CodeUnits, u.UnmodifiableListBase), a(u.Iterable, [u.EfficientLengthIterable, u.MappedIterable, u.WhereIterable, u.ExpandIterable, u.SkipIterable, u._ConstantMapKeyIterable, u.IterableBase, u._StringAllMatchesIterable]), a(u.EfficientLengthIterable, [u.ListIterable, u.EmptyIterable, u.LinkedHashMapKeyIterable]), a(u.ListIterable, [u.SubListIterable, u.MappedListIterable, u.ReversedListIterable, u._JsonMapKeyIterable, u._GeneratorIterable]), i(u.EfficientLengthMappedIterable, u.MappedIterable), a(u.Iterator, [u.MappedIterator, u.WhereIterator, u.SkipIterator]), i(u.EfficientLengthSkipIterable, u.SkipIterable), i(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u.MapView), i(u.UnmodifiableMapView, u._UnmodifiableMapView_MapView__UnmodifiableMapMixin), i(u.ConstantMapView, u.UnmodifiableMapView), i(u.ConstantStringMap, u.ConstantMap), a(u.Closure, [u.Closure2Args, u.TearOffClosure, u.JsLinkedHashMap_values_closure, u.initHooks_closure, u.initHooks_closure1, u._LinkedCustomHashMap_closure, u.DateTime_parse_parseIntOrZero, u.DateTime_parse_parseMilliAndMicroseconds, u.DateFormat_dateTimeConstructor_closure, u.DateFormat__checkDateOnly_closure, u.DateFormat__initDigitMatcher_closure, u.DateFormat__initDigitMatcher_closure0, u._DateFormatPatternField_parseStandaloneDay_closure, u.Jiffy__parseString_closure, u.uniqueAlias_closure, u.QueryResponse_fromJson_closure, u.QueryResponse_fromJson_closure0, u.QueryResponse_toJson_closure, u.QueryResponse_toJson_closure0, u.DataTypeExtension__formatTime_closure, u.DataTypeExtension__formatTime_closure0, u.DataTypeExtension_toDisplay_closure, u.BaseXYChartDataModel_toJson_closure, u.CircularDataModel_toJson_closure, u.SparklineDataModel_toJson_closure, u.TableDataModel_toJson_closure, u.TableDataModel_toJson_closure0, u.BaseDatasourceConfigModel_drilledDimensionIds_closure, u.BaseDatasourceConfigModel_metricIds_closure, u.BaseDatasourceConfigModel_toJson_closure, u.BaseDatasourceConfigModel_toJson_closure0, u.BaseDatasourceConfigModel_toJson_closure1, u.BaseDatasourceConfigModel_toJson_closure2, u.BaseDatasourceConfigModel_toJson_closure3, u.BaseDatasourceConfigModel_toJson_closure4, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, u.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, u.DataSourceDrillConfig_drilledDimensions_closure, u.DataSourceRowColumnConfig_rowIds_closure, u.DataSourceRowColumnConfig_rowIds_closure0, u.DataSourceRowColumnConfig_rowIds_closure2, u.DataSourceRowColumnConfig_rowIds_closure1, u.DataSourceRowColumnConfig_columnIds_closure, u.DataSourceRowColumnConfig_columnIds_closure0, u.DataSourceRowColumnConfig_columnIds_closure1, u.TableDatasourceConfigModel_joinDatasources_closure, u.TableDatasourceConfigModel_toJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, u.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, u.JoinDatasourceConfig_toJson_closure, u.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, u.JoinDatasourceCondition_toJson_closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, u._formatRows_closure, u._formatRows___closure, u._formatRows___closure0, u.accumulate__closure0, u.formatBaseXYChartData_closure, u.formatBaseXYChartData_closure0, u.formatBaseXYChartData_closure1, u.formatBaseXYChartData_closure2, u.formatBaseXYChartData__closure0, u.formatBaseXYChartData_closure3, u.formatBaseXYChartData__closure, u.formatBaseXYChartData_closure4, u.formatBaseXYChartData_expandRowsByMetric, u.formatBaseXYChartData_expandRowsByMetric_closure, u.formatBaseXYChartData_expandRowsByMetric__closure, u.formatBaseXYChartData_closure5, u.formatBaseXYChartData_closure6, u._formatRows_closure0, u._formatRows___closure1, u._formatRows___closure2, u.formatCircularChartData_closure, u.formatCircularChartData_closure0, u.formatCircularChartData_closure1, u.formatCircularChartData_closure2, u._getRowInfo_closure, u._getRowInfo__closure, u.compare_closure, u.compare_closure0, u._formatSparkline_closure, u._formatSparkline___closure, u._formatSparkline_closure1, u._formatSparkline_closure0, u._formatSparkline_closure2, u.formatScoreCardChartData_closure, u._formatTableResponse_closure, u._formatTableResponse__closure13, u._formatTableResponse_closure0, u._formatTableResponse_closure1, u._formatTableResponse__closure12, u._formatTableResponse__closure11, u._formatTableResponse_closure3, u._formatTableResponse___closure, u._formatTableResponse___closure0, u._formatTableResponse_closure4, u._formatTableResponse__closure4, u._formatTableResponse__closure5, u._formatTableResponse__closure6, u._formatTableResponse__closure3, u._formatTableResponse_closure8, u._formatTableResponse__closure, u._formatTableResponse__closure0, u._formatTableResponse__closure1, u._formatTableResponse__closure2, u._formatTableData_closure0, u._formatTableData__closure2, u._formatTableData_closure1, u._formatTableData__closure1, u._formatTableData___closure0, u._formatTableData_closure2, u._formatTableData___closure, u._formatTableData_closure3, u.formatTableChartData_closure1, u.formatTableChartData_closure2, u.formatTableChartData_closure3, u.formatTableChartData_closure4, u.formatTableChartData_closure7, u.formatTableChartData_closure8, u.formatChartData_closure]), a(u.Closure2Args, [u.Primitives_functionNoSuchMethod_closure, u.JsLinkedHashMap_addAll_closure, u.initHooks_closure0, u.LinkedHashMap_LinkedHashMap$from_closure, u.MapBase_mapToString_closure, u._JsonStringifier_writeMap_closure, u.NoSuchMethodError_toString_closure, u.DateFormat__fieldConstructors_closure, u.DateFormat__fieldConstructors_closure0, u.DateFormat__fieldConstructors_closure1, u.Jiffy__parseMap_closure, u.DataSourceDrillConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure, u.DataSourceRowColumnConfig__availableIds_closure0, u.TableDatasourceConfigModel_drilledDimensions_closure, u.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, u.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, u._formatRows__closure, u.accumulate_closure, u.accumulate__closure, u._formatRows__closure0, u.compare_closure1, u.compare_closure3, u.compare_closure2, u.compare_closure4, u._formatSparkline__closure, u._formatTableResponse_closure2, u._formatTableResponse__closure9, u._formatTableResponse__closure10, u._formatTableResponse_closure5, u._formatTableResponse__closure7, u._formatTableResponse__closure8, u._formatTableResponse_closure6, u._formatTableResponse_closure7, u._formatTableData_closure, u._formatTableData__closure0, u._formatTableData__closure, u.formatTableChartData_closure, u.formatTableChartData_closure0, u.formatTableChartData_closure5, u.formatTableChartData_closure6, u.formatTableChartData_closure9]), i(u.NullError, u.TypeError), a(u.TearOffClosure, [u.StaticClosure, u.BoundClosure]), i(u.MapBase, u.MapMixin), a(u.MapBase, [u.JsLinkedHashMap, u._JsonMap]), a(u.IterableBase, [u._AllMatchesIterable, u._SyncStarIterable]), a(u.NativeTypedData, [u.NativeByteData, u.NativeTypedArray]), i(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.NativeTypedArray), i(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), i(u.NativeTypedArrayOfInt, u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(u.NativeTypedArrayOfInt, [u.NativeUint16List, u.NativeUint32List, u.NativeUint8List]), i(u._TypeError, u._Error), i(u._LinkedCustomHashMap, u.JsLinkedHashMap), i(u._SetBase, u.__SetBase_Object_SetMixin), i(u._LinkedHashSet, u._SetBase), a(u.Codec, [u.Encoding, u.JsonCodec]), a(u.Encoding, [u.AsciiCodec, u.Utf8Codec]), i(u.Converter, u.StreamTransformerBase), a(u.Converter, [u._UnicodeSubsetDecoder, u.JsonEncoder, u.JsonDecoder, u.Utf8Encoder]), i(u.AsciiDecoder, u._UnicodeSubsetDecoder), i(u.JsonCyclicError, u.JsonUnsupportedObjectError), i(u._JsonStringStringifier, u._JsonStringifier), a(u.ArgumentError, [u.RangeError, u.IndexError]), i(u.DigestSink, u.Sink), i(u._Sha1Sink, u.HashSink), a(u._DateFormatField, [u._DateFormatLiteralField, u._DateFormatQuotedField, u._DateFormatPatternField]), a(u._Enum, [u.StartOfWeek, u.Units, u.SCHEMA_NAME, u.DATA_TYPE, u.AGGREGATION_TYPE, u.COMPARISON_OPERATOR, u.DIMENSION_OPTION, u.TIME_FORMATTER, u.FORMATTER_TYPE, u.PERIOD_TYPE, u.SORT_TYPE, u.FIELD_TYPE, u.ChartType, u.SparklineType]), a(u.Locale, [u.ArLyLocale, u.ArSaMaDzKwTnLocale, u.AzLocale, u.BnLocale, u.DeLocale, u.EnLocale, u.EsLocale, u.FaLocale, u.FrLocale, u.HiLocale, u.IdLocale, u.ItLocale, u.JaLocale, u.KoLocale, u.NbLocale, u.NlLocale, u.PlLocale, u.PtLocale, u.RuLocale, u.SvLocale, u.ThLocale, u.TrLocale, u.UkLocale, u.ZhCnLocale, u.ZhLocale]), a(u.NodeJsError, [u.JsAssertionError, u.JsRangeError, u.JsReferenceError, u.JsSyntaxError, u.JsTypeError, u.JsSystemError]), a(u.Socket, [u.TTYReadStream, u.TTYWriteStream]), a(u.QueryRequestCommonField, [u.QueryRequestDimension, u.QueryRequestMetric, u.QueryRequestFilter, u.QueryRequestSort]), a(u.BaseDatasourceConfigModel, [u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.ScorecardDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), i(u.CircularDatasourceConfigModel, u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(u.TableDatasourceConfigModel, u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), i(u.JoinDatasourceConfig, u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), i(u.BaseXYDatasourceConfigModel, u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), i(u._IntBuffer, u.TypedDataBuffer), i(u.Uint8Buffer, u._IntBuffer), n(u.UnmodifiableListBase, u.UnmodifiableListMixin), n(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, u.ListMixin), n(u._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, u.FixedLengthListMixin), n(u._ListBase_Object_ListMixin, u.ListMixin), n(u._UnmodifiableMapView_MapView__UnmodifiableMapMixin, u._UnmodifiableMapMixin), n(u.__SetBase_Object_SetMixin, u.SetMixin), n(u._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig), n(u._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), n(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, u.DataSourceRowColumnConfig), n(u._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, u.DataSourceDrillConfig), n(u._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, u.DataSourceDrillConfig);
19335
19342
  }();
19336
19343
  var E = {
19337
19344
  typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
@@ -19566,8 +19573,8 @@ Arguments: [` + d + "]";
19566
19573
  return a.message;
19567
19574
  }
19568
19575
  }())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
19569
- var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), f = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), g = u.EnLocale$($.StartOfWeek_1), m = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), A = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), I = u.FrLocale$($.StartOfWeek_2), F = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), M = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), O = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), H = u.DeLocale$($.StartOfWeek_2), W = u.DeLocale$($.StartOfWeek_2), d0 = u.DeLocale$($.StartOfWeek_2), $0 = u.DeLocale$($.StartOfWeek_2), D0 = u.ItLocale$($.StartOfWeek_2), g0 = u.ItLocale$($.StartOfWeek_2), M0 = u.ArLyLocale$(!0, $.StartOfWeek_0), R0 = u.ArLyLocale$(!1, $.StartOfWeek_0), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), I0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), x0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), A0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19570
- return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", C, "fr", I, "fr_ch", F, "fr_ca", x, "zh", M, "zh_cn", L, "zh_hk", O, "zh_tw", v, "de", H, "de_de", W, "de_at", d0, "de_ch", $0, "it", D0, "it_ch", g0, "ar", M0, "ar_ly", R0, "ar_dz", T0, "ar_kw", I0, "ar_sa", x0, "ar_ma", A0, "ar_tn", F0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19576
+ var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), f = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), g = u.EnLocale$($.StartOfWeek_1), m = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), A = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), I = u.FrLocale$($.StartOfWeek_2), F = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), M = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), O = u.ZhLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), H = u.DeLocale$($.StartOfWeek_2), W = u.DeLocale$($.StartOfWeek_2), d0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), u0 = u.ItLocale$($.StartOfWeek_2), m0 = u.ItLocale$($.StartOfWeek_2), b0 = u.ArLyLocale$(!0, $.StartOfWeek_0), M0 = u.ArLyLocale$(!1, $.StartOfWeek_0), R0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), A0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), I0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), x0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), F0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
19577
+ return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", y, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", C, "fr", I, "fr_ch", F, "fr_ca", x, "zh", M, "zh_cn", L, "zh_hk", O, "zh_tw", w, "de", H, "de_de", W, "de_at", d0, "de_ch", g0, "it", u0, "it_ch", m0, "ar", b0, "ar_ly", M0, "ar_dz", R0, "ar_kw", A0, "ar_sa", I0, "ar_ma", x0, "ar_tn", F0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
19571
19578
  }), n(b, "_UTC", "$get$_UTC", () => {
19572
19579
  var a = r.JSArray_int;
19573
19580
  return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -19626,22 +19633,22 @@ Arguments: [` + d + "]";
19626
19633
  });
19627
19634
  })();
19628
19635
  };
19629
- })(ye);
19630
- const ge = ye;
19631
- ge.load({});
19632
- var ke = ge;
19633
- const ie = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), Ue = (() => {
19636
+ })(ge);
19637
+ const me = ge;
19638
+ me.load({});
19639
+ var Ue = me;
19640
+ const ae = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), qe = (() => {
19634
19641
  const T = new Intl.DateTimeFormat("en-US", { weekday: "short" });
19635
19642
  return Array.from(
19636
19643
  { length: 7 },
19637
- (R, w) => T.format(new Date(1970, 0, 4 + w)).toLowerCase().slice(0, 3)
19644
+ (R, v) => T.format(new Date(1970, 0, 4 + v)).toLowerCase().slice(0, 3)
19638
19645
  );
19639
19646
  })();
19640
- function ae(T) {
19647
+ function ue(T) {
19641
19648
  if (T == null || T === "") return null;
19642
19649
  const R = String(T).trim();
19643
19650
  if (R === "") return null;
19644
- const w = R.toLowerCase().slice(0, 3), J = Ue.indexOf(w);
19651
+ const v = R.toLowerCase().slice(0, 3), J = qe.indexOf(v);
19645
19652
  if (J !== -1 && R.length <= 3)
19646
19653
  return { type: "dayName", value: J };
19647
19654
  const B = R.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
@@ -19693,56 +19700,56 @@ function ae(T) {
19693
19700
  }
19694
19701
  return /^\d+$/.test(R) ? { type: "number", value: parseInt(R) } : null;
19695
19702
  }
19696
- function ue(T, R) {
19697
- const w = ae(T), J = ae(R);
19698
- return !w && !J ? null : w ? J ? (w.type === J.type, w.value - J.value) : -1 : 1;
19703
+ function se(T, R) {
19704
+ const v = ue(T), J = ue(R);
19705
+ return !v && !J ? null : v ? J ? (v.type === J.type, v.value - J.value) : -1 : 1;
19699
19706
  }
19700
- function qe(T, R) {
19707
+ function Qe(T, R) {
19701
19708
  var J;
19702
- const w = { isRollup: T.isRollup };
19709
+ const v = { isRollup: T.isRollup };
19703
19710
  for (let B = 0; B < R.length; B++) {
19704
19711
  const P = R[B].key;
19705
- P && (w[P] = {
19712
+ P && (v[P] = {
19706
19713
  main: T.cells[B],
19707
19714
  comparison: (J = T.comparisonCells) == null ? void 0 : J[B]
19708
19715
  });
19709
19716
  }
19710
- return w;
19717
+ return v;
19711
19718
  }
19712
- function Qe(T, R) {
19719
+ function Xe(T, R) {
19713
19720
  if (T <= 0) return [];
19714
- const w = {};
19715
- for (const J of R) w[J.key] = void 0;
19716
- return Array.from({ length: T }, () => ({ ...w }));
19721
+ const v = {};
19722
+ for (const J of R) v[J.key] = void 0;
19723
+ return Array.from({ length: T }, () => ({ ...v }));
19717
19724
  }
19718
- function U0(T, R, w) {
19725
+ function q0(T, R, v) {
19719
19726
  var B, P;
19720
19727
  if (((B = T[R]) == null ? void 0 : B.main) !== void 0) return T[R].main;
19721
- const J = w.findIndex((N) => N.key === R);
19728
+ const J = v.findIndex((N) => N.key === R);
19722
19729
  return J >= 0 ? (P = T.cells) == null ? void 0 : P[J] : void 0;
19723
19730
  }
19724
- function Xe(T) {
19725
- var a0, u0, o0, _0, f0, p0;
19731
+ function Ve(T) {
19732
+ var a0, s0, l0, D0, f0, p0;
19726
19733
  const {
19727
19734
  rows: R = [],
19728
- columns: w = [],
19735
+ columns: v = [],
19729
19736
  globalSorts: J = [],
19730
19737
  filter: B = null,
19731
19738
  grandTotalPosition: P = null,
19732
19739
  pageSize: N = 0
19733
19740
  } = T;
19734
19741
  let k = Array.isArray(R) ? [...R] : [];
19735
- P === "BOTTOM" && ((a0 = k.at(-1)) != null && a0.isRollup) && k.pop(), P === "TOP" && ((u0 = k[0]) != null && u0.isRollup) && k.shift();
19742
+ P === "BOTTOM" && ((a0 = k.at(-1)) != null && a0.isRollup) && k.pop(), P === "TOP" && ((s0 = k[0]) != null && s0.isRollup) && k.shift();
19736
19743
  let q = 0;
19737
19744
  for (const Q of k)
19738
19745
  Q.isRollup && q++, Q.groupIndex = q;
19739
19746
  const U = {};
19740
- for (const Q of w) U[Q.key] = Q.type === "NUMERIC";
19747
+ for (const Q of v) U[Q.key] = Q.type === "NUMERIC";
19741
19748
  const V = J.filter(
19742
- (Q) => Q.key && w.some((G) => G.key === Q.key)
19749
+ (Q) => Q.key && v.some((G) => G.key === Q.key)
19743
19750
  ), X = V.length > 0;
19744
19751
  let i0 = R;
19745
- B !== null && (i0 = i0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((G) => ((G == null ? void 0 : G.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...qe(Q, w), groupIndex: Q.groupIndex })));
19752
+ B !== null && (i0 = i0.filter((Q) => !(B !== "" && (Q.isRollup === !0 || !Q.cells.some((G) => ((G == null ? void 0 : G.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Q) => ({ ...Qe(Q, v), groupIndex: Q.groupIndex })));
19746
19753
  const j = {};
19747
19754
  for (const Q of i0) {
19748
19755
  const G = Q.groupIndex;
@@ -19752,16 +19759,16 @@ function Xe(T) {
19752
19759
  const G = Q.filter((e0) => e0.isRollup), r0 = Q.filter((e0) => !e0.isRollup);
19753
19760
  r0.sort((e0, n0) => {
19754
19761
  for (const { key: z, type: t0 } of V) {
19755
- const l0 = t0 === "ASC" ? 1 : -1, K = U0(e0, z, w) ?? "", t = U0(n0, z, w) ?? "";
19762
+ const _0 = t0 === "ASC" ? 1 : -1, K = q0(e0, z, v) ?? "", t = q0(n0, z, v) ?? "";
19756
19763
  if (U[z]) {
19757
19764
  const u = Number(K) - Number(t);
19758
- if (u !== 0) return u * l0;
19765
+ if (u !== 0) return u * _0;
19759
19766
  } else {
19760
- const u = ue(K, t);
19767
+ const u = se(K, t);
19761
19768
  if (u !== null && u !== 0)
19762
- return u * l0;
19763
- const _ = ie.compare(String(K), String(t));
19764
- if (_ !== 0) return _ * l0;
19769
+ return u * _0;
19770
+ const _ = ae.compare(String(K), String(t));
19771
+ if (_ !== 0) return _ * _0;
19765
19772
  }
19766
19773
  }
19767
19774
  return 0;
@@ -19771,21 +19778,21 @@ function Xe(T) {
19771
19778
  if (X) {
19772
19779
  const Q = P === null ? (() => {
19773
19780
  const e0 = Object.keys(j).find((n0) => {
19774
- const z = j[n0] || [], t0 = z.some((K) => K.isRollup), l0 = z.some((K) => !K.isRollup);
19775
- return t0 && !l0;
19781
+ const z = j[n0] || [], t0 = z.some((K) => K.isRollup), _0 = z.some((K) => !K.isRollup);
19782
+ return t0 && !_0;
19776
19783
  });
19777
19784
  return e0 !== void 0 ? Number(e0) : -1;
19778
- })() : -1, G = ((o0 = V[0]) == null ? void 0 : o0.key) ?? ((_0 = w.find((e0) => U[e0.key])) == null ? void 0 : _0.key), r0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
19785
+ })() : -1, G = ((l0 = V[0]) == null ? void 0 : l0.key) ?? ((D0 = v.find((e0) => U[e0.key])) == null ? void 0 : D0.key), r0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
19779
19786
  Z = Object.keys(j).map(Number).sort((e0, n0) => {
19780
19787
  if (!G) return e0 - n0;
19781
19788
  if (Q !== -1) {
19782
19789
  if (e0 === Q) return -1;
19783
19790
  if (n0 === Q) return 1;
19784
19791
  }
19785
- const z = j[e0].find((u) => u.isRollup), t0 = j[n0].find((u) => u.isRollup), l0 = z ? U0(z, G, w) ?? "" : "", K = t0 ? U0(t0, G, w) ?? "" : "";
19786
- if (U[G]) return (Number(l0) - Number(K)) * r0;
19787
- const t = ue(l0, K);
19788
- return t !== null ? t * r0 : ie.compare(String(l0), String(K)) * r0;
19792
+ const z = j[e0].find((u) => u.isRollup), t0 = j[n0].find((u) => u.isRollup), _0 = z ? q0(z, G, v) ?? "" : "", K = t0 ? q0(t0, G, v) ?? "" : "";
19793
+ if (U[G]) return (Number(_0) - Number(K)) * r0;
19794
+ const t = se(_0, K);
19795
+ return t !== null ? t * r0 : ae.compare(String(_0), String(K)) * r0;
19789
19796
  });
19790
19797
  } else
19791
19798
  Z = Object.keys(j).map(Number).sort((Q, G) => Q - G);
@@ -19796,18 +19803,18 @@ function Xe(T) {
19796
19803
  if (N > 0) {
19797
19804
  const Q = Y.length % N;
19798
19805
  let G = 0;
19799
- Q > 0 ? G = N - Q : Y.length === 0 && (G = N), G > 0 && Y.push(...Qe(G, w));
19806
+ Q > 0 ? G = N - Q : Y.length === 0 && (G = N), G > 0 && Y.push(...Xe(G, v));
19800
19807
  }
19801
19808
  return { data: Y };
19802
19809
  }
19803
- var Ve = { processTableData: Xe };
19804
- const Ye = Ne, Ge = ke, ze = Ve;
19805
- var ee = {
19810
+ var Ye = { processTableData: Ve };
19811
+ const Ge = ke, ze = Ue, We = Ye;
19812
+ var te = {
19813
+ ...We,
19806
19814
  ...ze,
19807
- ...Ge,
19808
- ...Ye
19809
- }, j0 = /* @__PURE__ */ ((T) => (T.DateTime = "DATE_TIME", T.Hour = "HOUR", T.Day = "DAY", T.Week = "WEEK", T.Month = "MONTH", T.TimeOfDay = "TIME_OF_DAY", T.HourOfDay = "HOUR_OF_DAY", T.DayOfWeek = "DAY_OF_WEEK", T.DayOfMonth = "DAY_OF_MONTH", T.MonthOfYear = "MONTH_OF_YEAR", T.Year = "YEAR", T.YearMonthDay = "YEAR_MONTH_DAY", T))(j0 || {}), We = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(We || {}), K0 = /* @__PURE__ */ ((T) => (T.Equal = "EQUAL", T.NotEqual = "NOT_EQUAL", T.GreaterThan = "GREATER_THAN", T.LessThan = "LESS_THAN", T.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", T.LessThanOrEqual = "LESS_THAN_OR_EQUAL", T.Between = "BETWEEN", T.Like = "LIKE", T.NotLike = "NOT_LIKE", T.And = "AND", T.Or = "OR", T))(K0 || {}), je = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(je || {}), Ke = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(Ke || {}), Ze = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(Ze || {}), et = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(et || {}), tt = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(tt || {});
19810
- function Qt(T) {
19815
+ ...Ge
19816
+ }, K0 = /* @__PURE__ */ ((T) => (T.DateTime = "DATE_TIME", T.Hour = "HOUR", T.Day = "DAY", T.Week = "WEEK", T.Month = "MONTH", T.TimeOfDay = "TIME_OF_DAY", T.HourOfDay = "HOUR_OF_DAY", T.DayOfWeek = "DAY_OF_WEEK", T.DayOfMonth = "DAY_OF_MONTH", T.MonthOfYear = "MONTH_OF_YEAR", T.Year = "YEAR", T.YearMonthDay = "YEAR_MONTH_DAY", T))(K0 || {}), je = /* @__PURE__ */ ((T) => (T.Asc = "ASC", T.Desc = "DESC", T))(je || {}), Z0 = /* @__PURE__ */ ((T) => (T.Equal = "EQUAL", T.NotEqual = "NOT_EQUAL", T.GreaterThan = "GREATER_THAN", T.LessThan = "LESS_THAN", T.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", T.LessThanOrEqual = "LESS_THAN_OR_EQUAL", T.Between = "BETWEEN", T.Like = "LIKE", T.NotLike = "NOT_LIKE", T.And = "AND", T.Or = "OR", T))(Z0 || {}), Ke = /* @__PURE__ */ ((T) => (T.String = "STRING", T.Timestamp = "TIMESTAMP", T.Bool = "BOOL", T.Numeric = "NUMERIC", T))(Ke || {}), Ze = /* @__PURE__ */ ((T) => (T.MTD = "MTD", T))(Ze || {}), et = /* @__PURE__ */ ((T) => (T.Scorecard = "SCORECARD", T.Spacer = "SPACER", T.Table = "TABLE", T.BarChart = "BARCHART", T.StackBarChart = "STACKBARCHART", T.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", T.LineChart = "LINECHART", T.StackLineChart = "STACKLINECHART", T.Circular = "CIRCULAR", T))(et || {}), tt = /* @__PURE__ */ ((T) => (T.EXCEL = "excel", T.PDF = "pdf", T.PDFFULLSIZE = "pdfFullSize", T.PDFRECEIPT = "pdfReceipt", T))(tt || {}), rt = /* @__PURE__ */ ((T) => (T.PORTRAIT = "portrait", T.LANDSCAPE = "landscape", T))(rt || {});
19817
+ function Xt(T) {
19811
19818
  switch (T) {
19812
19819
  case "excel":
19813
19820
  return "Excel";
@@ -19821,7 +19828,7 @@ function Qt(T) {
19821
19828
  return "Unknown";
19822
19829
  }
19823
19830
  }
19824
- function Xt(T) {
19831
+ function Vt(T) {
19825
19832
  switch (T) {
19826
19833
  case "landscape":
19827
19834
  return "report.common.landscape";
@@ -19831,92 +19838,92 @@ function Xt(T) {
19831
19838
  return "report.input.unknown";
19832
19839
  }
19833
19840
  }
19834
- const w0 = "/report-settings", rt = async () => {
19841
+ const w0 = "/report-settings", nt = async () => {
19835
19842
  const { businessId: T } = c0(E0());
19836
19843
  if (T) {
19837
19844
  const R = {
19838
- fetchType: m0.Get,
19845
+ fetchType: y0.Get,
19839
19846
  url: `${w0}/${T.value}/reports`
19840
19847
  };
19841
19848
  return S0.fetch(R);
19842
19849
  } else
19843
19850
  return Promise.reject(new Error("Business Id is not defined"));
19844
- }, nt = (T) => {
19845
- const { businessId: R } = c0(E0()), w = {
19846
- fetchType: m0.Put,
19851
+ }, it = (T) => {
19852
+ const { businessId: R } = c0(E0()), v = {
19853
+ fetchType: y0.Put,
19847
19854
  url: `${w0}/${R.value}/reports/${T.id}`,
19848
19855
  data: T
19849
19856
  };
19850
- return S0.fetch(w);
19851
- }, it = (T) => {
19852
- const { businessId: R } = c0(E0()), w = {
19853
- fetchType: m0.Post,
19857
+ return S0.fetch(v);
19858
+ }, at = (T) => {
19859
+ const { businessId: R } = c0(E0()), v = {
19860
+ fetchType: y0.Post,
19854
19861
  url: `${w0}/${R.value}/reports`,
19855
19862
  data: T
19856
19863
  };
19857
- return S0.fetch(w);
19858
- }, at = (T) => {
19859
- const { businessId: R } = c0(E0()), w = {
19860
- fetchType: m0.Delete,
19864
+ return S0.fetch(v);
19865
+ }, ut = (T) => {
19866
+ const { businessId: R } = c0(E0()), v = {
19867
+ fetchType: y0.Delete,
19861
19868
  url: `${w0}/${R.value}/reports/${T.id}`
19862
19869
  };
19863
- return S0.fetch(w);
19864
- }, ut = (T) => {
19865
- const { businessId: R } = c0(E0()), w = {
19866
- fetchType: m0.Put,
19870
+ return S0.fetch(v);
19871
+ }, st = (T) => {
19872
+ const { businessId: R } = c0(E0()), v = {
19873
+ fetchType: y0.Put,
19867
19874
  url: `${w0}/${R.value}/reports/default`,
19868
19875
  data: { defaultReport: T }
19869
19876
  };
19870
- return S0.fetch(w);
19871
- }, Vt = (T, R) => {
19872
- const { businessId: w } = c0(E0()), J = {
19873
- fetchType: m0.Put,
19874
- url: `${w0}/${w.value}/reports/${T}/pos-support`,
19877
+ return S0.fetch(v);
19878
+ }, Yt = (T, R) => {
19879
+ const { businessId: v } = c0(E0()), J = {
19880
+ fetchType: y0.Put,
19881
+ url: `${w0}/${v.value}/reports/${T}/pos-support`,
19875
19882
  data: { isSupportPos: R }
19876
19883
  };
19877
19884
  return S0.fetch(J);
19878
- }, st = async () => {
19885
+ }, ot = async () => {
19879
19886
  const { businessId: T } = c0(E0());
19880
19887
  if (T) {
19881
19888
  const R = {
19882
- fetchType: m0.Get,
19889
+ fetchType: y0.Get,
19883
19890
  url: `${w0}/${T.value}/overview-report`
19884
19891
  };
19885
19892
  return S0.fetch(R);
19886
19893
  } else
19887
19894
  return Promise.reject(new Error("Business Id is not defined"));
19888
- }, ot = async () => {
19895
+ }, lt = async () => {
19889
19896
  const { businessId: T } = c0(E0());
19890
19897
  if (T) {
19891
19898
  const R = {
19892
- fetchType: m0.Get,
19899
+ fetchType: y0.Get,
19893
19900
  url: `${w0}/${T.value}/config`
19894
19901
  };
19895
19902
  return S0.fetch(R);
19896
19903
  } else
19897
19904
  return Promise.reject(new Error("Business Id is not defined"));
19898
- }, lt = "/report-settings", _t = async () => {
19905
+ }, _t = "/report-settings", Dt = async () => {
19899
19906
  const { businessId: T } = c0(E0());
19900
19907
  if (T) {
19901
19908
  const R = {
19902
- fetchType: m0.Get,
19903
- url: `${lt}/${T.value}/categories`
19909
+ fetchType: y0.Get,
19910
+ url: `${_t}/${T.value}/categories`
19904
19911
  };
19905
19912
  return S0.fetch(R);
19906
19913
  } else
19907
19914
  return Promise.reject(new Error("Business Id is not defined"));
19908
19915
  };
19909
- function G0(T, R = {}) {
19910
- const w = localStorage.getItem(T);
19911
- return w === null && (R == null ? void 0 : R.fallback) !== void 0 ? R.fallback : w === null ? null : R.format ? R.format(w) : w;
19916
+ function z0(T, R = {}) {
19917
+ const v = localStorage.getItem(T);
19918
+ return v === null && (R == null ? void 0 : R.fallback) !== void 0 ? R.fallback : v === null ? null : R.format ? R.format(v) : v;
19912
19919
  }
19913
- const H0 = {
19914
- get: G0,
19915
- getJson: (T) => G0(T, {
19920
+ const N0 = {
19921
+ get: z0,
19922
+ getJson: (T) => z0(T, {
19916
19923
  fallback: {},
19917
19924
  format: (R) => JSON.parse(R)
19918
19925
  }),
19919
- getNumber: (T) => G0(T, {
19926
+ getNumber: (T) => z0(T, {
19920
19927
  fallback: null,
19921
19928
  format: (R) => Number(R)
19922
19929
  }),
@@ -19924,17 +19931,17 @@ const H0 = {
19924
19931
  setJson: (T, R) => {
19925
19932
  localStorage.setItem(T, JSON.stringify(R));
19926
19933
  }
19927
- }, Dt = () => {
19934
+ }, dt = () => {
19928
19935
  const T = {
19929
- fetchType: m0.Get,
19936
+ fetchType: y0.Get,
19930
19937
  url: "/schemas"
19931
19938
  };
19932
19939
  return S0.fetch(T);
19933
- }, dt = "mf-reportschema-store", ct = k0(dt, () => {
19934
- const T = s0([]), R = fe();
19935
- async function w() {
19940
+ }, ct = "mf-reportschema-store", ft = U0(ct, () => {
19941
+ const T = o0([]), R = pe();
19942
+ async function v() {
19936
19943
  try {
19937
- T.value = await Dt();
19944
+ T.value = await dt();
19938
19945
  } catch (J) {
19939
19946
  console.log(J), R.open({
19940
19947
  title: "Get Schema Error",
@@ -19945,22 +19952,22 @@ const H0 = {
19945
19952
  }
19946
19953
  return {
19947
19954
  schemas: T,
19948
- getSchema: w
19955
+ getSchema: v
19949
19956
  };
19950
- }), ft = "mf-reportreport-store", te = k0(ft, () => {
19951
- const { business: T, globalFilters: R } = c0(X0()), { schemas: w } = c0(ct()), { flags: J } = c0(Ce()), B = s0([]), P = s0([]), N = s0(0), k = fe(), q = B0(() => B.value.filter((E) => E.editable)), U = B0(() => B.value.filter((E) => !E.editable)), V = s0(!1), X = s0(""), i0 = s0(), j = s0(), Z = B0(() => {
19957
+ }), pt = "mf-reportreport-store", re = U0(pt, () => {
19958
+ const { business: T, globalFilters: R } = c0(V0()), { schemas: v } = c0(ft()), { flags: J } = c0(be()), B = o0([]), P = o0([]), N = o0(0), k = pe(), q = B0(() => B.value.filter((E) => E.editable)), U = B0(() => B.value.filter((E) => !E.editable)), V = o0(!1), X = o0(""), i0 = o0(), j = o0(), Z = B0(() => {
19952
19959
  const E = J.value.find(
19953
- (p) => p.key === be.report_portal_integration_custom_report
19960
+ (p) => p.key === Ie.report_portal_integration_custom_report
19954
19961
  );
19955
19962
  return typeof (E == null ? void 0 : E.value) == "number" ? E.value : null;
19956
19963
  }), Y = B0(() => Z.value === null ? !0 : Z.value - q.value.length > 0);
19957
19964
  async function a0() {
19958
- return j.value = await st(), j.value;
19965
+ return j.value = await ot(), j.value;
19959
19966
  }
19960
- async function u0() {
19967
+ async function s0() {
19961
19968
  var E;
19962
19969
  try {
19963
- B.value = await rt(), P.value = await _t(), B.value.find((r) => r.id === X.value) || (X.value = ((E = B.value.find((r) => r.isDefault)) == null ? void 0 : E.id) || B.value[0].id);
19970
+ B.value = await nt(), P.value = await Dt(), B.value.find((r) => r.id === X.value) || (X.value = ((E = B.value.find((r) => r.isDefault)) == null ? void 0 : E.id) || B.value[0].id);
19964
19971
  } catch (p) {
19965
19972
  console.log(p), k.open({
19966
19973
  title: "Report Fetch Error",
@@ -19969,48 +19976,48 @@ const H0 = {
19969
19976
  });
19970
19977
  }
19971
19978
  }
19972
- const o0 = B0(
19979
+ const l0 = B0(
19973
19980
  () => B.value.find((E) => E.id === X.value)
19974
19981
  );
19975
- function _0(E) {
19982
+ function D0(E) {
19976
19983
  var r;
19977
- const p = (r = w.value.find((e) => e.name === E.schemaName)) == null ? void 0 : r.fields.find((e) => e.name === E.name);
19984
+ const p = (r = v.value.find((e) => e.name === E.schemaName)) == null ? void 0 : r.fields.find((e) => e.name === E.name);
19978
19985
  return p == null ? void 0 : p.type;
19979
19986
  }
19980
- V0(
19987
+ Y0(
19981
19988
  () => {
19982
19989
  var E;
19983
- return (E = o0.value) == null ? void 0 : E.globalFilters;
19990
+ return (E = l0.value) == null ? void 0 : E.globalFilters;
19984
19991
  },
19985
19992
  (E) => {
19986
19993
  R.value = (E ?? []).map((p) => ({
19987
19994
  ...p,
19988
19995
  values: Array.isArray(p.values) ? [...p.values] : [],
19989
- type: _0(p)
19996
+ type: D0(p)
19990
19997
  }));
19991
19998
  },
19992
19999
  { deep: !0 }
19993
20000
  );
19994
- const f0 = s0(), p0 = s0(0), Q = s0(), G = s0(null), r0 = s0(null), e0 = s0(!1), n0 = s0(!1), z = s0(!1);
20001
+ const f0 = o0(), p0 = o0(0), Q = o0(), G = o0(null), r0 = o0(null), e0 = o0(!1), n0 = o0(!1), z = o0(!1);
19995
20002
  async function t0(E) {
19996
20003
  const p = q.value.findIndex((e) => e.id === E.id);
19997
20004
  let r;
19998
- return p >= 0 ? r = await nt(E) : r = await it(E), t(r.id), await u0(), r;
20005
+ return p >= 0 ? r = await it(E) : r = await at(E), t(r.id), await s0(), r;
19999
20006
  }
20000
- async function l0(E) {
20001
- await at(E), await u0();
20007
+ async function _0(E) {
20008
+ await ut(E), await s0();
20002
20009
  }
20003
20010
  async function K(E) {
20004
- await ut(E), await a0();
20011
+ await st(E), await a0();
20005
20012
  }
20006
20013
  function t(E) {
20007
20014
  X.value = E;
20008
20015
  }
20009
- const u = s0(null);
20016
+ const u = o0(null);
20010
20017
  function _() {
20011
20018
  var E;
20012
20019
  if ((E = T.value) != null && E._id) {
20013
- const p = H0.getJson("pinReport")[T.value._id];
20020
+ const p = N0.getJson("pinReport")[T.value._id];
20014
20021
  if ((p == null ? void 0 : p.length) > 0) {
20015
20022
  u.value = p;
20016
20023
  return;
@@ -20021,20 +20028,20 @@ const H0 = {
20021
20028
  function $(E) {
20022
20029
  var p;
20023
20030
  if (T.value && E) {
20024
- const r = H0.getJson("pinReport");
20025
- r[(p = T.value) == null ? void 0 : p._id] ? r[T.value._id].push(E.id) : r[T.value._id] = [E.id], H0.setJson("pinReport", r), _();
20031
+ const r = N0.getJson("pinReport");
20032
+ r[(p = T.value) == null ? void 0 : p._id] ? r[T.value._id].push(E.id) : r[T.value._id] = [E.id], N0.setJson("pinReport", r), _();
20026
20033
  }
20027
20034
  }
20028
20035
  function S(E) {
20029
20036
  if (T.value) {
20030
- const p = H0.getJson("pinReport");
20037
+ const p = N0.getJson("pinReport");
20031
20038
  p[T.value._id].length === 1 ? p[T.value._id] = [] : p[T.value._id] = p[T.value._id].filter(
20032
20039
  (r) => r !== E
20033
- ), H0.setJson("pinReport", p), _();
20040
+ ), N0.setJson("pinReport", p), _();
20034
20041
  }
20035
20042
  }
20036
20043
  async function b() {
20037
- return await ot();
20044
+ return await lt();
20038
20045
  }
20039
20046
  return {
20040
20047
  isOpenDownloadDialog: e0,
@@ -20043,7 +20050,7 @@ const H0 = {
20043
20050
  currentSelectWidgetType: i0,
20044
20051
  reports: B,
20045
20052
  categories: P,
20046
- currentReport: o0,
20053
+ currentReport: l0,
20047
20054
  editingReport: f0,
20048
20055
  editingTileIndex: p0,
20049
20056
  editingTile: Q,
@@ -20059,9 +20066,9 @@ const H0 = {
20059
20066
  customReportQuota: Z,
20060
20067
  canCreateCustomReport: Y,
20061
20068
  createOrUpdateReport: t0,
20062
- removeReport: l0,
20069
+ removeReport: _0,
20063
20070
  updateCurrentReportId: t,
20064
- getReports: u0,
20071
+ getReports: s0,
20065
20072
  updateDefaultReport: K,
20066
20073
  getOverviewReport: a0,
20067
20074
  refreshPinReport: _,
@@ -20069,8 +20076,8 @@ const H0 = {
20069
20076
  clearPinReport: S,
20070
20077
  getReportConfig: b
20071
20078
  };
20072
- }), pt = "mf-reportnavigation", me = k0(pt, () => {
20073
- const { disabled: T } = c0(Ie()), R = s0("v5"), w = s0(!1), J = B0(() => {
20079
+ }), $t = "mf-reportnavigation", he = U0($t, () => {
20080
+ const { disabled: T } = c0(Fe()), R = o0("v5"), v = o0(!1), J = B0(() => {
20074
20081
  const k = [
20075
20082
  {
20076
20083
  label: "overview",
@@ -20086,7 +20093,7 @@ const H0 = {
20086
20093
  label: "insight",
20087
20094
  value: "insight",
20088
20095
  route: "insights",
20089
- badge: () => Me(ve.FmPill, { variant: "beta" })
20096
+ badge: () => Re(Be.FmPill, { variant: "beta" })
20090
20097
  },
20091
20098
  {
20092
20099
  label: "setting",
@@ -20099,7 +20106,7 @@ const H0 = {
20099
20106
  value: "integration",
20100
20107
  route: "integrations"
20101
20108
  }), k;
20102
- }), B = s0(""), { currentRoute: P } = Be();
20109
+ }), B = o0(""), { currentRoute: P } = Pe();
20103
20110
  function N(k) {
20104
20111
  switch (k.name) {
20105
20112
  case "report":
@@ -20121,7 +20128,7 @@ const H0 = {
20121
20128
  break;
20122
20129
  }
20123
20130
  }
20124
- return V0(
20131
+ return Y0(
20125
20132
  P,
20126
20133
  (k) => {
20127
20134
  N(k);
@@ -20131,42 +20138,42 @@ const H0 = {
20131
20138
  selectedNavigationTab: B,
20132
20139
  navigationTabs: J,
20133
20140
  version: R,
20134
- suppressReportRouteSync: w
20141
+ suppressReportRouteSync: v
20135
20142
  };
20136
20143
  });
20137
- var he = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(he || {});
20138
- const $t = "/assets/formatChartData.worker-CtCG_oop.js", z0 = /* @__PURE__ */ new Map();
20139
- function se(T) {
20144
+ var Se = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(Se || {});
20145
+ const yt = "/assets/formatChartData.worker-Df5ziPQ2.js", W0 = /* @__PURE__ */ new Map();
20146
+ function oe(T) {
20140
20147
  return new Worker(T, { type: "module" });
20141
20148
  }
20142
- async function yt(T) {
20143
- if (z0.has(T))
20144
- return se(z0.get(T));
20149
+ async function gt(T) {
20150
+ if (W0.has(T))
20151
+ return oe(W0.get(T));
20145
20152
  let R = T;
20146
20153
  if (location.hostname !== new URL(import.meta.url).hostname) {
20147
20154
  const B = new URL(T.replace(/^\//, ""), import.meta.url).href, P = await fetch(B).then((k) => k.text()), N = new Blob([P], { type: "application/javascript" });
20148
20155
  R = URL.createObjectURL(N);
20149
20156
  }
20150
- const J = se(R);
20151
- return z0.set(T, R), J;
20157
+ const J = oe(R);
20158
+ return W0.set(T, R), J;
20152
20159
  }
20153
- async function gt(T, R) {
20154
- const w = await yt(T);
20155
- return w.postMessage(R), await new Promise((J) => {
20156
- w.onmessage = async (B) => {
20160
+ async function mt(T, R) {
20161
+ const v = await gt(T);
20162
+ return v.postMessage(R), await new Promise((J) => {
20163
+ v.onmessage = async (B) => {
20157
20164
  const P = B.data;
20158
- w.terminate(), J(P);
20165
+ v.terminate(), J(P);
20159
20166
  };
20160
20167
  });
20161
20168
  }
20162
- const mt = "mf-reportwidget-size", Se = k0(mt, () => {
20163
- const T = s0([]);
20164
- function R(w, J) {
20169
+ const ht = "mf-reportwidget-size", Ee = U0(ht, () => {
20170
+ const T = o0([]);
20171
+ function R(v, J) {
20165
20172
  var B;
20166
20173
  try {
20167
- if (!w) return;
20174
+ if (!v) return;
20168
20175
  let P;
20169
- const N = w.$el, k = (B = N == null ? void 0 : N.querySelector) == null ? void 0 : B.call(N, "canvas");
20176
+ const N = v.$el, k = (B = N == null ? void 0 : N.querySelector) == null ? void 0 : B.call(N, "canvas");
20170
20177
  if (k) {
20171
20178
  const q = k.getBoundingClientRect();
20172
20179
  P = { width: Math.round(q.width), height: Math.round(q.height) };
@@ -20178,35 +20185,35 @@ const mt = "mf-reportwidget-size", Se = k0(mt, () => {
20178
20185
  }
20179
20186
  }
20180
20187
  return { sizes: T, extractChartSize: R };
20181
- }), ht = "mf-reportreport-sort-store", Ee = k0(ht, () => {
20182
- const T = s0([]);
20188
+ }), St = "mf-reportreport-sort-store", Ae = U0(St, () => {
20189
+ const T = o0([]);
20183
20190
  function R(B, P) {
20184
20191
  if (B == null) return;
20185
20192
  const N = Array.isArray(P) ? P.filter((U) => U && U.key) : [], k = T.value.findIndex((U) => U.tileIndex === B), q = { tileIndex: B, sorts: N };
20186
20193
  k !== -1 ? T.value.splice(k, 1, q) : T.value.push(q);
20187
20194
  }
20188
- function w(B) {
20195
+ function v(B) {
20189
20196
  var P;
20190
20197
  return B == null ? [] : ((P = T.value.find((N) => N.tileIndex === B)) == null ? void 0 : P.sorts) ?? [];
20191
20198
  }
20192
20199
  function J(B) {
20193
20200
  typeof B == "number" ? T.value = T.value.filter((P) => P.tileIndex !== B) : T.value = [];
20194
20201
  }
20195
- return { tileSort: T, setTileSorts: R, getTileSorts: w, clearTileSorts: J };
20202
+ return { tileSort: T, setTileSorts: R, getTileSorts: v, clearTileSorts: J };
20196
20203
  });
20197
- async function St(T, R) {
20198
- for (let w = 0; w < T.length; w++)
20204
+ async function Et(T, R) {
20205
+ for (let v = 0; v < T.length; v++)
20199
20206
  try {
20200
- return await T[w]();
20207
+ return await T[v]();
20201
20208
  } catch (J) {
20202
- if (J.message === "Unauthorized" || w === T.length - 1) throw J;
20209
+ if (J.message === "Unauthorized" || v === T.length - 1) throw J;
20203
20210
  await new Promise((B) => setTimeout(B, R));
20204
20211
  }
20205
20212
  throw new Error("No callback");
20206
20213
  }
20207
- const Yt = async (T, R, w) => {
20208
- var o0, _0, f0, p0;
20209
- const { businessId: J, country: B } = c0(E0()), { currentReport: P } = te(), {
20214
+ const Gt = async (T, R, v) => {
20215
+ var l0, D0, f0, p0;
20216
+ const { businessId: J, country: B } = c0(E0()), { currentReport: P } = re(), {
20210
20217
  selectedRestaurantIds: N,
20211
20218
  selectedWarehouseIds: k,
20212
20219
  selectedLocationIds: q,
@@ -20215,19 +20222,19 @@ const Yt = async (T, R, w) => {
20215
20222
  timeRange: X,
20216
20223
  globalFilters: i0,
20217
20224
  timezone: j
20218
- } = X0();
20225
+ } = V0();
20219
20226
  if (q.length === 0)
20220
20227
  return null;
20221
- const Z = re(T, i0, w ?? ""), Y = {
20222
- fetchType: m0.Post,
20228
+ const Z = ne(T, i0, v ?? ""), Y = {
20229
+ fetchType: y0.Post,
20223
20230
  url: `/${J.value}/postgres-query`,
20224
- data: ee.getQueryRequests({
20231
+ data: te.getQueryRequests({
20225
20232
  widget: Z,
20226
20233
  dateRange: [U.startDate, U.endDate],
20227
20234
  compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
20228
20235
  timeRange: [
20229
- b0().tz(j).hour(Number((o0 = X.start) == null ? void 0 : o0.hour)).minute(Number((_0 = X.start) == null ? void 0 : _0.minute)).toISOString(),
20230
- b0().tz(j).hour(Number((f0 = X.end) == null ? void 0 : f0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20236
+ C0().tz(j).hour(Number((l0 = X.start) == null ? void 0 : l0.hour)).minute(Number((D0 = X.start) == null ? void 0 : D0.minute)).toISOString(),
20237
+ C0().tz(j).hour(Number((f0 = X.end) == null ? void 0 : f0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
20231
20238
  ],
20232
20239
  businessIds: J.value ? [J.value] : [],
20233
20240
  restaurantIds: N,
@@ -20248,15 +20255,15 @@ const Yt = async (T, R, w) => {
20248
20255
  }
20249
20256
  }, a0 = [() => S0.fetch(Y)];
20250
20257
  N.length < 50 && a0.push(() => S0.fetch(Y)), a0.push(() => (Y.url = Y.url.replace("postgres-query", "query"), S0.fetch(Y)));
20251
- const u0 = await St(a0, 2e3);
20252
- return (await gt($t, {
20253
- responses: u0,
20258
+ const s0 = await Et(a0, 2e3);
20259
+ return (await mt(yt, {
20260
+ responses: s0,
20254
20261
  widget: JSON.parse(JSON.stringify(T)),
20255
20262
  country: B.value,
20256
20263
  timezone: j
20257
20264
  })).data;
20258
20265
  };
20259
- function Ae(T) {
20266
+ function Te(T) {
20260
20267
  const R = T.config;
20261
20268
  return {
20262
20269
  showTitle: R.showTitle,
@@ -20296,40 +20303,40 @@ function Ae(T) {
20296
20303
  legendMaxWidth: R.legendMaxWidth
20297
20304
  };
20298
20305
  }
20299
- function Te(T) {
20306
+ function Ce(T) {
20300
20307
  const R = T.config;
20301
20308
  return {
20302
20309
  rowHeight: R.rowHeight,
20303
20310
  colWidths: R.colWidths
20304
20311
  };
20305
20312
  }
20306
- const Gt = async ({
20313
+ const zt = async ({
20307
20314
  reportType: T,
20308
20315
  index: R,
20309
- orientationTypes: w,
20316
+ orientationTypes: v,
20310
20317
  isCombinedLocationLayout: J,
20311
20318
  locationIds: B,
20312
20319
  timeRange: P,
20313
20320
  dateRange: N
20314
20321
  }) => {
20315
- const { businessId: k } = c0(E0()), { restaurants: q, warehouses: U, globalFilters: V, timezone: X } = X0(), { currentReport: i0, overviewReport: j } = te(), { selectedNavigationTab: Z } = me(), { sizes: Y } = Se(), { getTileSorts: a0 } = Ee();
20316
- let u0 = i0 == null ? void 0 : i0.id, o0 = (i0 == null ? void 0 : i0.tiles) ?? [];
20317
- Z === "overview" && j && (u0 = j == null ? void 0 : j.id, o0 = (j == null ? void 0 : j.tiles) ?? []);
20318
- const _0 = o0.filter((n0, z) => typeof R == "number" ? z === R : !0).map((n0) => re(n0.widget, V, n0.id)), f0 = {
20319
- fetchType: m0.Post,
20322
+ const { businessId: k } = c0(E0()), { restaurants: q, warehouses: U, globalFilters: V, timezone: X } = V0(), { currentReport: i0, overviewReport: j } = re(), { selectedNavigationTab: Z } = he(), { sizes: Y } = Ee(), { getTileSorts: a0 } = Ae();
20323
+ let s0 = i0 == null ? void 0 : i0.id, l0 = (i0 == null ? void 0 : i0.tiles) ?? [];
20324
+ Z === "overview" && j && (s0 = j == null ? void 0 : j.id, l0 = (j == null ? void 0 : j.tiles) ?? []);
20325
+ const D0 = l0.filter((n0, z) => typeof R == "number" ? z === R : !0).map((n0) => ne(n0.widget, V, n0.id)), f0 = {
20326
+ fetchType: y0.Post,
20320
20327
  url: `/${k.value}/file?lang=${J0()}`,
20321
20328
  data: {
20322
20329
  configs: [
20323
- ..._0.map((n0, z) => {
20324
- var l0, K, t, u;
20330
+ ...D0.map((n0, z) => {
20331
+ var _0, K, t, u;
20325
20332
  const t0 = Y[R ?? z];
20326
20333
  return {
20327
- requests: ee.getQueryRequests({
20334
+ requests: te.getQueryRequests({
20328
20335
  widget: n0,
20329
20336
  dateRange: [N.startDate, N.endDate],
20330
20337
  timeRange: [
20331
- b0().tz(X).set("hour", Number((l0 = P.start) == null ? void 0 : l0.hour)).set("minute", Number((K = P.start) == null ? void 0 : K.minute)).toISOString(),
20332
- b0().tz(X).set("hour", Number((t = P.end) == null ? void 0 : t.hour)).set("minute", Number((u = P.end) == null ? void 0 : u.minute)).toISOString()
20338
+ C0().tz(X).set("hour", Number((_0 = P.start) == null ? void 0 : _0.hour)).set("minute", Number((K = P.start) == null ? void 0 : K.minute)).toISOString(),
20339
+ C0().tz(X).set("hour", Number((t = P.end) == null ? void 0 : t.hour)).set("minute", Number((u = P.end) == null ? void 0 : u.minute)).toISOString()
20333
20340
  ],
20334
20341
  businessIds: k ? [k.value] : [],
20335
20342
  restaurantIds: B.filter(
@@ -20344,65 +20351,65 @@ const Gt = async ({
20344
20351
  drillDimension: null,
20345
20352
  chartWidth: (t0 == null ? void 0 : t0.width) ?? n0.config.chartWidth,
20346
20353
  chartHeight: (t0 == null ? void 0 : t0.height) ?? n0.config.chartHeight,
20347
- ...Ae(n0),
20348
20354
  ...Te(n0),
20355
+ ...Ce(n0),
20349
20356
  globalSorts: a0(R ?? z)
20350
20357
  };
20351
20358
  })
20352
20359
  ],
20353
- reportId: u0,
20360
+ reportId: s0,
20354
20361
  type: T,
20355
- orientationTypes: w,
20362
+ orientationTypes: v,
20356
20363
  isCombinedLocationLayout: J
20357
20364
  },
20358
20365
  requestConfig: {
20359
20366
  responseType: "arraybuffer",
20360
20367
  timeout: 1e3 * 60 * 60 * 24
20361
20368
  }
20362
- }, { headers: p0, data: Q } = await Z0.rawFetch(f0), G = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), r0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
20369
+ }, { headers: p0, data: Q } = await ee.rawFetch(f0), G = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), r0 = window.URL.createObjectURL(new Blob([new Uint8Array(Q).buffer])), e0 = document.createElement("a");
20363
20370
  e0.href = r0, e0.setAttribute("download", decodeURIComponent(G)), document.body.appendChild(e0), e0.click(), e0.remove();
20364
- }, zt = async ({
20371
+ }, Wt = async ({
20365
20372
  emails: T,
20366
20373
  types: R,
20367
- dateRange: w,
20374
+ dateRange: v,
20368
20375
  timeRange: J,
20369
20376
  locationIds: B,
20370
20377
  orientationTypes: P,
20371
20378
  isCombinedLocationLayout: N
20372
20379
  }) => {
20373
- const { businessId: k } = c0(E0()), { currentReport: q, overviewReport: U } = te(), { selectedNavigationTab: V } = me(), { restaurants: X, warehouses: i0, globalFilters: j, timezone: Z } = X0(), { sizes: Y } = Se(), { getTileSorts: a0 } = Ee();
20380
+ const { businessId: k } = c0(E0()), { currentReport: q, overviewReport: U } = re(), { selectedNavigationTab: V } = he(), { restaurants: X, warehouses: i0, globalFilters: j, timezone: Z } = V0(), { sizes: Y } = Ee(), { getTileSorts: a0 } = Ae();
20374
20381
  if (T.length === 0) {
20375
20382
  console.error("No email addresses provided.");
20376
20383
  return;
20377
20384
  }
20378
- let u0 = (q == null ? void 0 : q.id) || "", o0 = (q == null ? void 0 : q.name) || "", _0 = (q == null ? void 0 : q.tiles) ?? [];
20379
- V === "overview" && U && (u0 = U == null ? void 0 : U.id, o0 = U.name, _0 = (U == null ? void 0 : U.tiles) ?? []);
20380
- const f0 = _0.map((Q) => re(Q.widget, j, Q.id)), p0 = {
20385
+ let s0 = (q == null ? void 0 : q.id) || "", l0 = (q == null ? void 0 : q.name) || "", D0 = (q == null ? void 0 : q.tiles) ?? [];
20386
+ V === "overview" && U && (s0 = U == null ? void 0 : U.id, l0 = U.name, D0 = (U == null ? void 0 : U.tiles) ?? []);
20387
+ const f0 = D0.map((Q) => ne(Q.widget, j, Q.id)), p0 = {
20381
20388
  businessId: k.value,
20382
- status: he.generating,
20389
+ status: Se.generating,
20383
20390
  dateRange: {
20384
- start: w.startDate,
20385
- end: w.endDate
20391
+ start: v.startDate,
20392
+ end: v.endDate
20386
20393
  },
20387
- reportName: o0,
20394
+ reportName: l0,
20388
20395
  emails: T,
20389
20396
  configs: f0.map((Q, G) => {
20390
20397
  var e0, n0, z, t0;
20391
20398
  const r0 = Y[G];
20392
20399
  return {
20393
- requests: ee.getQueryRequests({
20400
+ requests: te.getQueryRequests({
20394
20401
  widget: Q,
20395
- dateRange: [w.startDate, w.endDate],
20402
+ dateRange: [v.startDate, v.endDate],
20396
20403
  timeRange: [
20397
- b0().tz(Z).hour(Number((e0 = J.start) == null ? void 0 : e0.hour)).minute(Number((n0 = J.start) == null ? void 0 : n0.minute)).toISOString(),
20398
- b0().tz(Z).hour(Number((z = J.end) == null ? void 0 : z.hour)).minute(Number((t0 = J.end) == null ? void 0 : t0.minute)).endOf("minutes").toISOString()
20404
+ C0().tz(Z).hour(Number((e0 = J.start) == null ? void 0 : e0.hour)).minute(Number((n0 = J.start) == null ? void 0 : n0.minute)).toISOString(),
20405
+ C0().tz(Z).hour(Number((z = J.end) == null ? void 0 : z.hour)).minute(Number((t0 = J.end) == null ? void 0 : t0.minute)).endOf("minutes").toISOString()
20399
20406
  ],
20400
20407
  businessIds: k ? [k.value] : [],
20401
20408
  restaurantIds: B.filter(
20402
- (l0) => X.find((K) => K.id === l0)
20409
+ (_0) => X.find((K) => K.id === _0)
20403
20410
  ),
20404
20411
  warehouseIds: B.filter(
20405
- (l0) => i0.find((K) => K.id === l0)
20412
+ (_0) => i0.find((K) => K.id === _0)
20406
20413
  ),
20407
20414
  timezone: Z
20408
20415
  }),
@@ -20410,62 +20417,62 @@ const Gt = async ({
20410
20417
  drillDimension: null,
20411
20418
  chartWidth: (r0 == null ? void 0 : r0.width) ?? Q.config.chartWidth,
20412
20419
  chartHeight: (r0 == null ? void 0 : r0.height) ?? Q.config.chartHeight,
20413
- ...Ae(Q),
20414
20420
  ...Te(Q),
20421
+ ...Ce(Q),
20415
20422
  globalSorts: a0(G)
20416
20423
  };
20417
20424
  }),
20418
- reportId: u0,
20425
+ reportId: s0,
20419
20426
  type: R,
20420
20427
  orientationTypes: P,
20421
20428
  isCombinedLocationLayout: N
20422
20429
  };
20423
- await Z0.fetch({
20424
- fetchType: m0.Post,
20430
+ await ee.fetch({
20431
+ fetchType: y0.Post,
20425
20432
  url: `/${k.value}/reports/email?lang=${J0()}`,
20426
20433
  data: p0,
20427
20434
  requestConfig: { timeout: 1e3 * 60 * 3 }
20428
20435
  });
20429
- }, Wt = async (T) => {
20436
+ }, jt = async (T) => {
20430
20437
  const { businessId: R } = c0(E0());
20431
- await Z0.fetch({
20432
- fetchType: m0.Post,
20438
+ await ee.fetch({
20439
+ fetchType: y0.Post,
20433
20440
  url: `/${R.value}/reports/resend-email?lang=${J0()}`,
20434
20441
  data: { jobId: T },
20435
20442
  requestConfig: { timeout: 1e3 * 60 * 3 }
20436
20443
  });
20437
- }, jt = async () => {
20444
+ }, Kt = async () => {
20438
20445
  const { businessId: T } = c0(E0());
20439
20446
  return await S0.fetch({
20440
- fetchType: m0.Get,
20447
+ fetchType: y0.Get,
20441
20448
  url: `/${T.value}/reports/email-recipients`
20442
20449
  });
20443
- }, Kt = async (T) => {
20450
+ }, Zt = async (T) => {
20444
20451
  const { businessId: R } = c0(E0());
20445
20452
  await S0.fetch({
20446
- fetchType: m0.Post,
20453
+ fetchType: y0.Post,
20447
20454
  url: `/${R.value}/reports/email-recipient/delete`,
20448
20455
  data: { email: T }
20449
20456
  });
20450
20457
  };
20451
- function oe(T = [], R = []) {
20452
- const w = (P) => `${P.schemaName}:${P.name}:${P.operator}:${P.option ?? ""}:${P.dataFormula ?? ""}`, J = /* @__PURE__ */ new Map(), B = [];
20458
+ function le(T = [], R = []) {
20459
+ const v = (P) => `${P.schemaName}:${P.name}:${P.operator}:${P.option ?? ""}:${P.dataFormula ?? ""}`, J = /* @__PURE__ */ new Map(), B = [];
20453
20460
  for (const P of T) {
20454
20461
  if (!P || !Array.isArray(P.values) || P.values.length === 0) continue;
20455
- if (P.option === j0.DateTime || P.operator === K0.Between) {
20462
+ if (P.option === K0.DateTime || P.operator === Z0.Between) {
20456
20463
  B.push({ ...P });
20457
20464
  continue;
20458
20465
  }
20459
- const k = w(P);
20466
+ const k = v(P);
20460
20467
  J.set(k, { ...P });
20461
20468
  }
20462
20469
  for (const P of R) {
20463
20470
  if (!P || !Array.isArray(P.values) || P.values.length === 0) continue;
20464
- if (P.option === j0.DateTime || P.operator === K0.Between) {
20471
+ if (P.option === K0.DateTime || P.operator === Z0.Between) {
20465
20472
  B.push({ ...P });
20466
20473
  continue;
20467
20474
  }
20468
- const k = w(P);
20475
+ const k = v(P);
20469
20476
  if (J.has(k)) {
20470
20477
  const q = J.get(k), U = Array.from(
20471
20478
  /* @__PURE__ */ new Set([...q.values ?? [], ...P.values ?? []])
@@ -20476,20 +20483,20 @@ function oe(T = [], R = []) {
20476
20483
  }
20477
20484
  return [...Array.from(J.values()), ...B];
20478
20485
  }
20479
- function Et(T, R, w) {
20486
+ function At(T, R, v) {
20480
20487
  const J = [], B = /* @__PURE__ */ new Map();
20481
20488
  return T.forEach((P) => {
20482
- P && (R.includes(P.schemaName) && J.push(P), w.forEach((N, k) => {
20489
+ P && (R.includes(P.schemaName) && J.push(P), v.forEach((N, k) => {
20483
20490
  var q;
20484
20491
  N.includes(P.schemaName) && (B.has(k) || B.set(k, []), (q = B.get(k)) == null || q.push(P));
20485
20492
  }));
20486
20493
  }), { mainFilters: J, joinFilters: B };
20487
20494
  }
20488
- function re(T, R, w) {
20495
+ function ne(T, R, v) {
20489
20496
  var q, U;
20490
20497
  const J = JSON.parse(JSON.stringify(T)), B = R.filter((V) => {
20491
20498
  var X;
20492
- return (X = V.tileIds) == null ? void 0 : X.includes(w);
20499
+ return (X = V.tileIds) == null ? void 0 : X.includes(v);
20493
20500
  }).map((V) => {
20494
20501
  var X;
20495
20502
  return {
@@ -20498,7 +20505,7 @@ function re(T, R, w) {
20498
20505
  new Set(((X = V.values) == null ? void 0 : X.map((i0) => i0 === "" ? "NULL" : i0)) ?? [])
20499
20506
  )
20500
20507
  };
20501
- }), P = ((q = J.config.joinDatasources) == null ? void 0 : q.map((V) => V.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: k } = Et(
20508
+ }), P = ((q = J.config.joinDatasources) == null ? void 0 : q.map((V) => V.schemaNames ?? [])) ?? [], { mainFilters: N, joinFilters: k } = At(
20502
20509
  B,
20503
20510
  J.config.schemaNames,
20504
20511
  P
@@ -20507,49 +20514,49 @@ function re(T, R, w) {
20507
20514
  ...J,
20508
20515
  config: {
20509
20516
  ...J.config,
20510
- filters: oe(J.config.filters ?? [], N),
20517
+ filters: le(J.config.filters ?? [], N),
20511
20518
  joinDatasources: ((U = J.config.joinDatasources) == null ? void 0 : U.map((V, X) => ({
20512
20519
  ...V,
20513
- filters: oe(V.filters ?? [], k.get(X) ?? [])
20520
+ filters: le(V.filters ?? [], k.get(X) ?? [])
20514
20521
  }))) ?? []
20515
20522
  }
20516
20523
  };
20517
20524
  }
20518
- let q0;
20519
- const At = new Uint8Array(16);
20520
- function Tt() {
20521
- if (!q0 && (q0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !q0))
20525
+ let Q0;
20526
+ const Tt = new Uint8Array(16);
20527
+ function Ct() {
20528
+ if (!Q0 && (Q0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Q0))
20522
20529
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
20523
- return q0(At);
20530
+ return Q0(Tt);
20524
20531
  }
20525
- const y0 = [];
20532
+ const $0 = [];
20526
20533
  for (let T = 0; T < 256; ++T)
20527
- y0.push((T + 256).toString(16).slice(1));
20528
- function Ct(T, R = 0) {
20529
- return y0[T[R + 0]] + y0[T[R + 1]] + y0[T[R + 2]] + y0[T[R + 3]] + "-" + y0[T[R + 4]] + y0[T[R + 5]] + "-" + y0[T[R + 6]] + y0[T[R + 7]] + "-" + y0[T[R + 8]] + y0[T[R + 9]] + "-" + y0[T[R + 10]] + y0[T[R + 11]] + y0[T[R + 12]] + y0[T[R + 13]] + y0[T[R + 14]] + y0[T[R + 15]];
20534
+ $0.push((T + 256).toString(16).slice(1));
20535
+ function bt(T, R = 0) {
20536
+ return $0[T[R + 0]] + $0[T[R + 1]] + $0[T[R + 2]] + $0[T[R + 3]] + "-" + $0[T[R + 4]] + $0[T[R + 5]] + "-" + $0[T[R + 6]] + $0[T[R + 7]] + "-" + $0[T[R + 8]] + $0[T[R + 9]] + "-" + $0[T[R + 10]] + $0[T[R + 11]] + $0[T[R + 12]] + $0[T[R + 13]] + $0[T[R + 14]] + $0[T[R + 15]];
20530
20537
  }
20531
- const bt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), le = {
20532
- randomUUID: bt
20538
+ const It = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), _e = {
20539
+ randomUUID: It
20533
20540
  };
20534
- function Zt(T, R, w) {
20535
- if (le.randomUUID && !R && !T)
20536
- return le.randomUUID();
20541
+ function er(T, R, v) {
20542
+ if (_e.randomUUID && !R && !T)
20543
+ return _e.randomUUID();
20537
20544
  T = T || {};
20538
- const J = T.random || (T.rng || Tt)();
20545
+ const J = T.random || (T.rng || Ct)();
20539
20546
  if (J[6] = J[6] & 15 | 64, J[8] = J[8] & 63 | 128, R) {
20540
- w = w || 0;
20547
+ v = v || 0;
20541
20548
  for (let B = 0; B < 16; ++B)
20542
- R[w + B] = J[B];
20549
+ R[v + B] = J[B];
20543
20550
  return R;
20544
20551
  }
20545
- return Ct(J);
20552
+ return bt(J);
20546
20553
  }
20547
- const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).locale(R).format("h:mm A"), It = (T, R) => {
20548
- const w = b0().set("hour", T.hour).set("minute", T.minute);
20549
- return b0().set("hour", R.hour).set("minute", R.minute) < w ? "+1" : "";
20550
- }, Ft = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Mt = { class: "text-fm-color-typo-primary" }, Rt = { class: "text-fm-color-typo-secondary" }, xt = { class: "fm-typo-en-body-lg-600 mb-8" }, Lt = { class: "flex items-center justify-center w-full" }, Ot = { class: "fm-typo-en-body-lg-600 mb-8" }, wt = { class: "flex items-center justify-center" }, vt = { class: "flex flex-row mb-4 px-4 gap-2" }, er = /* @__PURE__ */ De({
20554
+ const De = (T, R = "en") => C0().set("hour", T.hour).set("minute", T.minute).locale(R).format("h:mm A"), Ft = (T, R) => {
20555
+ const v = C0().set("hour", T.hour).set("minute", T.minute);
20556
+ return C0().set("hour", R.hour).set("minute", R.minute) < v ? "+1" : "";
20557
+ }, Mt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Rt = { class: "text-fm-color-typo-primary" }, xt = { class: "text-fm-color-typo-secondary" }, Lt = { class: "fm-typo-en-body-lg-600 mb-8" }, Ot = { class: "flex items-center justify-center w-full" }, wt = { class: "fm-typo-en-body-lg-600 mb-8" }, vt = { class: "flex items-center justify-center" }, Bt = { class: "flex flex-row mb-4 px-4 gap-2" }, tr = /* @__PURE__ */ de({
20551
20558
  __name: "TimeRangeSelect",
20552
- props: /* @__PURE__ */ Q0({
20559
+ props: /* @__PURE__ */ X0({
20553
20560
  defaultDateRange: {
20554
20561
  type: Array,
20555
20562
  default: () => [
@@ -20586,32 +20593,32 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20586
20593
  },
20587
20594
  selectTimeDefaultModifiers: {}
20588
20595
  }),
20589
- emits: /* @__PURE__ */ Q0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20596
+ emits: /* @__PURE__ */ X0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
20590
20597
  setup(T, { emit: R }) {
20591
- const { t: w, locale: J } = Fe(), B = W0(T, "timeRange"), P = R, N = W0(T, "selectTimeDefault");
20598
+ const { t: v, locale: J } = Me(), B = j0(T, "timeRange"), P = R, N = j0(T, "selectTimeDefault");
20592
20599
  function k(Z) {
20593
20600
  Z && (B.value = Z, P("update", B.value)), X.value = !1;
20594
20601
  }
20595
20602
  function q(Z) {
20596
- const Y = Z.split(":"), a0 = b0().set("hour", Number(Y[0])).set("minute", Number(Y[1]));
20603
+ const Y = Z.split(":"), a0 = C0().set("hour", Number(Y[0])).set("minute", Number(Y[1]));
20597
20604
  return {
20598
20605
  hours: Number(a0.format("h")),
20599
20606
  minutes: Number(a0.format("m")),
20600
20607
  period: a0.format("A")
20601
20608
  };
20602
20609
  }
20603
- const U = s0(JSON.parse(JSON.stringify(B.value)));
20610
+ const U = o0(JSON.parse(JSON.stringify(B.value)));
20604
20611
  function V(Z, Y) {
20605
20612
  U.value.start = JSON.parse(JSON.stringify(Z)), U.value.end = JSON.parse(JSON.stringify(Y));
20606
20613
  }
20607
- V0(
20614
+ Y0(
20608
20615
  () => [B.value, T.defaultDateRange],
20609
20616
  () => {
20610
20617
  if (B.value) {
20611
20618
  const Z = T.defaultDateRange.findIndex(
20612
20619
  (Y) => {
20613
- var a0, u0, o0, _0;
20614
- return Y.startTime.hour === ((a0 = B.value.start) == null ? void 0 : a0.hour) && Y.startTime.minute === ((u0 = B.value.start) == null ? void 0 : u0.minute) && Y.endTime.hour === ((o0 = B.value.end) == null ? void 0 : o0.hour) && Y.endTime.minute === ((_0 = B.value.end) == null ? void 0 : _0.minute);
20620
+ var a0, s0, l0, D0;
20621
+ return Y.startTime.hour === ((a0 = B.value.start) == null ? void 0 : a0.hour) && Y.startTime.minute === ((s0 = B.value.start) == null ? void 0 : s0.minute) && Y.endTime.hour === ((l0 = B.value.end) == null ? void 0 : l0.hour) && Y.endTime.minute === ((D0 = B.value.end) == null ? void 0 : D0.minute);
20615
20622
  }
20616
20623
  ) + 1;
20617
20624
  Z !== 0 ? N.value = Z : N.value = T.defaultDateRange.length + 1;
@@ -20619,25 +20626,25 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20619
20626
  },
20620
20627
  { deep: !0, immediate: !0 }
20621
20628
  );
20622
- const X = s0(!1);
20629
+ const X = o0(!1);
20623
20630
  function i0(Z) {
20624
20631
  P("chip-closed", Z);
20625
20632
  }
20626
- const j = B0(() => T.label ? T.label : Pe({
20633
+ const j = B0(() => T.label ? T.label : Je({
20627
20634
  startTime: B.value.start,
20628
20635
  endTime: B.value.end,
20629
20636
  locale: J.value
20630
20637
  }));
20631
20638
  return (Z, Y) => {
20632
- const a0 = O0("FmChip"), u0 = O0("FmRadio"), o0 = O0("FmMenuDivider"), _0 = O0("FmRadioGroup"), f0 = O0("FmTimeInput"), p0 = O0("FmButton"), Q = O0("FmPopover");
20633
- return N0(), Y0("div", null, [
20634
- C0(Q, {
20639
+ const a0 = O0("FmChip"), s0 = O0("FmRadio"), l0 = O0("FmMenuDivider"), D0 = O0("FmRadioGroup"), f0 = O0("FmTimeInput"), p0 = O0("FmButton"), Q = O0("FmPopover");
20640
+ return k0(), G0("div", null, [
20641
+ T0(Q, {
20635
20642
  "show-popover": X.value,
20636
20643
  placement: "bottom",
20637
20644
  onPopoverChanged: Y[6] || (Y[6] = (G) => X.value = G)
20638
20645
  }, {
20639
20646
  "popover-button": P0(() => [
20640
- C0(Je, {
20647
+ T0(He, {
20641
20648
  "left-icon": T.label ? "filter_alt" : "schedule",
20642
20649
  label: j.value,
20643
20650
  removable: T.removable,
@@ -20647,50 +20654,50 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20647
20654
  default: P0(() => {
20648
20655
  var G, r0, e0, n0;
20649
20656
  return [
20650
- L0("div", Ft, [
20651
- C0(_0, {
20657
+ L0("div", Mt, [
20658
+ T0(D0, {
20652
20659
  modelValue: N.value,
20653
20660
  "onUpdate:modelValue": Y[1] || (Y[1] = (z) => N.value = z)
20654
20661
  }, {
20655
20662
  default: P0(() => [
20656
- (N0(!0), Y0(ne, null, xe(T.defaultDateRange, (z, t0) => (N0(), de(u0, {
20663
+ (k0(!0), G0(ie, null, Le(T.defaultDateRange, (z, t0) => (k0(), ce(s0, {
20657
20664
  key: `range_${t0}`,
20658
20665
  value: t0 + 1,
20659
20666
  label: z.name,
20660
- onClick: (l0) => V(z.startTime, z.endTime)
20667
+ onClick: (_0) => V(z.startTime, z.endTime)
20661
20668
  }, {
20662
20669
  label: P0(() => [
20663
- L0("p", Mt, [
20664
- ce(v0(z.name) + " ", 1),
20665
- Le(C0(a0, {
20666
- label: h0(w)("report.common.default"),
20670
+ L0("p", Rt, [
20671
+ fe(v0(z.name) + " ", 1),
20672
+ Oe(T0(a0, {
20673
+ label: h0(v)("report.common.default"),
20667
20674
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
20668
20675
  compact: ""
20669
20676
  }, null, 8, ["label"]), [
20670
- [Oe, z.isDefault]
20677
+ [we, z.isDefault]
20671
20678
  ])
20672
20679
  ]),
20673
- L0("p", Rt, v0(h0(_e)(z.startTime, h0(J0)())) + " - " + v0(h0(_e)(z.endTime, h0(J0)())) + " " + v0(h0(It)(z.startTime, z.endTime)), 1)
20680
+ L0("p", xt, v0(h0(De)(z.startTime, h0(J0)())) + " - " + v0(h0(De)(z.endTime, h0(J0)())) + " " + v0(h0(Ft)(z.startTime, z.endTime)), 1)
20674
20681
  ]),
20675
20682
  _: 2
20676
20683
  }, 1032, ["value", "label", "onClick"]))), 128)),
20677
- C0(o0),
20678
- C0(u0, {
20684
+ T0(l0),
20685
+ T0(s0, {
20679
20686
  key: "range_custom",
20680
- label: h0(w)("report.common.custom"),
20687
+ label: h0(v)("report.common.custom"),
20681
20688
  value: T.defaultDateRange.length + 1
20682
20689
  }, null, 8, ["label", "value"])
20683
20690
  ]),
20684
20691
  _: 1
20685
20692
  }, 8, ["modelValue"]),
20686
- N.value === T.defaultDateRange.length + 1 ? (N0(), Y0(ne, { key: 0 }, [
20687
- L0("p", xt, v0(h0(w)("report.date.startingTime")), 1),
20688
- L0("div", Lt, [
20689
- C0(f0, {
20693
+ N.value === T.defaultDateRange.length + 1 ? (k0(), G0(ie, { key: 0 }, [
20694
+ L0("p", Lt, v0(h0(v)("report.date.startingTime")), 1),
20695
+ L0("div", Ot, [
20696
+ T0(f0, {
20690
20697
  "model-value": q(`${(G = U.value.start) == null ? void 0 : G.hour}:${(r0 = U.value.start) == null ? void 0 : r0.minute}`),
20691
20698
  "onUpdate:modelValue": Y[2] || (Y[2] = (z) => {
20692
20699
  if (U.value.start) {
20693
- const t0 = h0(b0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20700
+ const t0 = h0(C0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20694
20701
  h0(J0)()
20695
20702
  );
20696
20703
  U.value.start.hour = t0.get("hour"), U.value.start.minute = t0.get("minute");
@@ -20698,13 +20705,13 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20698
20705
  })
20699
20706
  }, null, 8, ["model-value"])
20700
20707
  ]),
20701
- L0("p", Ot, v0(h0(w)("report.date.endingTime")), 1),
20702
- L0("div", wt, [
20703
- C0(f0, {
20708
+ L0("p", wt, v0(h0(v)("report.date.endingTime")), 1),
20709
+ L0("div", vt, [
20710
+ T0(f0, {
20704
20711
  "model-value": q(`${(e0 = U.value.end) == null ? void 0 : e0.hour}:${(n0 = U.value.end) == null ? void 0 : n0.minute}`),
20705
20712
  "onUpdate:modelValue": Y[3] || (Y[3] = (z) => {
20706
20713
  if (U.value.end) {
20707
- const t0 = h0(b0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20714
+ const t0 = h0(C0)(`${z.hours}:${z.minutes} ${z.period}`, "h:m A").locale(
20708
20715
  h0(J0)()
20709
20716
  );
20710
20717
  U.value.end.hour = t0.get("hour"), U.value.end.minute = t0.get("minute");
@@ -20712,16 +20719,16 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20712
20719
  })
20713
20720
  }, null, 8, ["model-value"])
20714
20721
  ])
20715
- ], 64)) : Re("", !0),
20716
- L0("div", vt, [
20722
+ ], 64)) : xe("", !0),
20723
+ L0("div", Bt, [
20717
20724
  Y[7] || (Y[7] = L0("div", { class: "grow" }, null, -1)),
20718
- C0(p0, {
20719
- label: h0(w)("report.common.cancel"),
20725
+ T0(p0, {
20726
+ label: h0(v)("report.common.cancel"),
20720
20727
  variant: "tertiary",
20721
20728
  onClick: Y[4] || (Y[4] = (z) => X.value = !1)
20722
20729
  }, null, 8, ["label"]),
20723
- C0(p0, {
20724
- label: h0(w)("report.common.apply"),
20730
+ T0(p0, {
20731
+ label: h0(v)("report.common.apply"),
20725
20732
  onClick: Y[5] || (Y[5] = () => k(JSON.parse(JSON.stringify(U.value))))
20726
20733
  }, null, 8, ["label"])
20727
20734
  ])
@@ -20733,9 +20740,9 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20733
20740
  ]);
20734
20741
  };
20735
20742
  }
20736
- }), tr = /* @__PURE__ */ De({
20743
+ }), rr = /* @__PURE__ */ de({
20737
20744
  __name: "BaseDialog",
20738
- props: /* @__PURE__ */ Q0({
20745
+ props: /* @__PURE__ */ X0({
20739
20746
  title: {
20740
20747
  type: String,
20741
20748
  default: "Title"
@@ -20752,32 +20759,32 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20752
20759
  modelValue: { type: Boolean, required: !0 },
20753
20760
  modelModifiers: {}
20754
20761
  }),
20755
- emits: /* @__PURE__ */ Q0(["confirm"], ["update:modelValue"]),
20762
+ emits: /* @__PURE__ */ X0(["confirm"], ["update:modelValue"]),
20756
20763
  setup(T, { emit: R }) {
20757
- const w = W0(T, "modelValue"), J = T, B = R;
20758
- return V0(w, () => {
20759
- w.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
20764
+ const v = j0(T, "modelValue"), J = T, B = R;
20765
+ return Y0(v, () => {
20766
+ v.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
20760
20767
  }), (P, N) => {
20761
20768
  const k = O0("FmButton"), q = O0("FmDialog");
20762
- return N0(), de(q, {
20763
- modelValue: w.value,
20764
- "onUpdate:modelValue": N[2] || (N[2] = (U) => w.value = U),
20769
+ return k0(), ce(q, {
20770
+ modelValue: v.value,
20771
+ "onUpdate:modelValue": N[2] || (N[2] = (U) => v.value = U),
20765
20772
  overlay: ""
20766
20773
  }, {
20767
20774
  "dialog-header": P0(() => [
20768
- ce(v0(J.title), 1)
20775
+ fe(v0(J.title), 1)
20769
20776
  ]),
20770
20777
  default: P0(() => [
20771
- we(P.$slots, "content")
20778
+ ve(P.$slots, "content")
20772
20779
  ]),
20773
20780
  "dialog-footer": P0(() => [
20774
20781
  N[3] || (N[3] = L0("div", { class: "grow" }, null, -1)),
20775
- C0(k, {
20782
+ T0(k, {
20776
20783
  label: J.secondaryButtonLabel,
20777
20784
  variant: "tertiary",
20778
- onClick: N[0] || (N[0] = (U) => w.value = !1)
20785
+ onClick: N[0] || (N[0] = (U) => v.value = !1)
20779
20786
  }, null, 8, ["label"]),
20780
- C0(k, {
20787
+ T0(k, {
20781
20788
  label: J.primaryButtonLabel,
20782
20789
  variant: "primary",
20783
20790
  onClick: N[1] || (N[1] = (U) => B("confirm"))
@@ -20789,33 +20796,33 @@ const _e = (T, R = "en") => b0().set("hour", T.hour).set("minute", T.minute).loc
20789
20796
  }
20790
20797
  });
20791
20798
  export {
20792
- K0 as C,
20793
- je as D,
20794
- Ke as P,
20795
- et as R,
20796
- We as S,
20797
- Ze as W,
20798
- er as _,
20799
- te as a,
20800
- ct as b,
20801
- j0 as c,
20802
- tr as d,
20803
- Se as e,
20804
- Ee as f,
20805
- gt as g,
20806
- tt as h,
20807
- Gt as i,
20808
- Qt as j,
20809
- It as k,
20810
- Kt as l,
20811
- jt as m,
20812
- Xt as n,
20813
- he as o,
20814
- zt as p,
20815
- Yt as q,
20816
- Wt as r,
20817
- Vt as s,
20818
- _e as t,
20819
- me as u,
20820
- Zt as v
20799
+ Z0 as C,
20800
+ Ke as D,
20801
+ Ze as P,
20802
+ tt as R,
20803
+ je as S,
20804
+ et as W,
20805
+ tr as _,
20806
+ re as a,
20807
+ ft as b,
20808
+ K0 as c,
20809
+ rr as d,
20810
+ Ee as e,
20811
+ Ae as f,
20812
+ mt as g,
20813
+ rt as h,
20814
+ zt as i,
20815
+ Xt as j,
20816
+ Ft as k,
20817
+ Zt as l,
20818
+ Kt as m,
20819
+ Vt as n,
20820
+ Se as o,
20821
+ Wt as p,
20822
+ Gt as q,
20823
+ jt as r,
20824
+ Yt as s,
20825
+ De as t,
20826
+ he as u,
20827
+ er as v
20821
20828
  };