@feedmepos/mf-report 5.8.0-beta.1 → 5.8.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@ import { defineComponent as O, resolveComponent as b, createBlock as I, openBloc
2
2
  import { detectLocale as p, useCoreStore as y } from "@feedmepos/mf-common";
3
3
  import { u as te, d as C, a as oe, b as re, c as ae, e as ne, f as se, g as le } from "./global-loader-DKYDQRZx.js";
4
4
  import { storeToRefs as $ } from "pinia";
5
- import { u as ue, a as ie } from "./v4-CfR4tJai.js";
5
+ import { u as ue, a as ie } from "./v4-BC3UrzlR.js";
6
6
  import { u as ce } from "./report-schema-DDo0Dgd1.js";
7
- import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
7
+ import { _ as me, u as de } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
8
8
  import { u as U } from "./message-dialog-UoMWOnil.js";
9
9
  const ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, fe = /* @__PURE__ */ O({
10
10
  __name: "Dialog",
@@ -94,7 +94,7 @@ const ge = ["src"], he = ["src"], Fe = /* @__PURE__ */ O({
94
94
  }), Z(() => {
95
95
  l(me);
96
96
  }), T(() => {
97
- console.log("5.8.0-beta.1", !0), window.addEventListener("message", F), window.addEventListener("message", B);
97
+ console.log("5.8.1-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
98
98
  });
99
99
  const E = ie(), L = de();
100
100
  M(() => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
5
  import { u as q, f as w } from "./global-loader-DKYDQRZx.js";
@@ -1,5 +1,5 @@
1
1
  import { computed as d, defineComponent as ee, useModel as te, ref as u, resolveComponent as V, createElementBlock as H, openBlock as E, Fragment as le, renderSlot as de, createVNode as $, normalizeStyle as oe, unref as n, createElementVNode as B, toDisplayString as xe, withCtx as N, createBlock as O, createCommentVNode as ue, normalizeClass as Ve, h as nt, watch as ge, nextTick as st, renderList as dt, mergeModels as mt, createTextVNode as Wt, onMounted as Ht, onUnmounted as qt, resolveDynamicComponent as Mt, withDirectives as Nt, vShow as It } from "vue";
2
- import { W as y, v as ze, P as We, d as ht, R as Se, g as Ot, q as Ut } from "./v4-CfR4tJai.js";
2
+ import { W as y, v as ze, P as We, d as ht, R as Se, g as Ot, q as Ut } from "./v4-BC3UrzlR.js";
3
3
  import { u as Pe, b as Xe, a as Ye } from "./global-loader-DKYDQRZx.js";
4
4
  import { d as rt } from "./index--mBthMxH.js";
5
5
  import { storeToRefs as _e, defineStore as Xt } from "pinia";
@@ -2,14 +2,14 @@ var Zo = Object.defineProperty;
2
2
  var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
5
- import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
6
6
  import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-g6ESEkM9.js";
7
7
  import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-DKYDQRZx.js";
8
8
  import { storeToRefs as Jn } from "pinia";
9
9
  import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
10
10
  import { c as ys } from "./index--mBthMxH.js";
11
11
  import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
12
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
12
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
13
13
  import { useCoreStore as ha } from "@feedmepos/mf-common";
14
14
  function da({ start: i, end: t }) {
15
15
  return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
2
- import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, createElementBlock as y, openBlock as l, createVNode as d, unref as t, isRef as u, withCtx as g, useModel as R, resolveComponent as _, normalizeClass as x, createElementVNode as F, createBlock as v, createCommentVNode as C, Fragment as V, renderList as M, toDisplayString as T } from "vue";
2
2
  import { b as $ } from "./global-loader-DKYDQRZx.js";
3
3
  import { storeToRefs as B } from "pinia";
4
- import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
4
+ import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
5
5
  import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-g6ESEkM9.js";
6
6
  import { useBreakpoints as w } from "@feedmepos/ui-library";
7
7
  const S = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, N = /* @__PURE__ */ b({
@@ -4,7 +4,7 @@ var ds = (e, t, r) => E9(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { defineComponent as qr, computed as Fr, useModel as Ea, ref as Ne, watch as na, resolveComponent as Ae, createBlock as Ye, unref as Q, openBlock as le, withCtx as Me, createElementVNode as oe, createVNode as K, toDisplayString as nr, withDirectives as zn, createElementBlock as Be, Fragment as gr, renderList as Br, vShow as u0, createTextVNode as St, mergeModels as Cn, createCommentVNode as xr, normalizeClass as jn, withModifiers as Is, onMounted as Md, renderSlot as Rd, mergeProps as F9, nextTick as P9, resolveDynamicComponent as xh, withKeys as S9, vModelText as O9, normalizeStyle as D9, isRef as B0, createSlots as I9 } from "vue";
5
5
  import { useRouter as Xd, useRoute as zd } from "vue-router";
6
6
  import { storeToRefs as yt, defineStore as nu } from "pinia";
7
- import { a as Xi, R as h0, g as Co, v as N9, P as Cs, d as V9, r as B9, b as xn, c as L9, e as M9, f as R9, s as X9, u as z9 } from "./v4-CfR4tJai.js";
7
+ import { a as Xi, R as h0, g as Co, v as N9, P as Cs, d as V9, r as B9, b as xn, c as L9, e as M9, f as R9, s as X9, u as z9 } from "./v4-BC3UrzlR.js";
8
8
  import { useBreakpoints as il, components as d0, useSnackbar as zi, useDialog as H9, useDialogChild as q9, FmButtonVariant as gh } from "@feedmepos/ui-library";
9
9
  import { u as Pa, i as iu, j as sl, a as Ua, F as Za, h as Ya, d as Ke, b as w0, k as Hi, l as W9, m as j9, e as U9, n as As } from "./global-loader-DKYDQRZx.js";
10
10
  import { _ as yh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BEkJzB27.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
2
- import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js";
3
- import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
4
- import { a as P } from "./v4-CfR4tJai.js";
2
+ import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DXAoPdp3.js";
3
+ import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
4
+ import { a as P } from "./v4-BC3UrzlR.js";
5
5
  import { storeToRefs as R } from "pinia";
6
6
  import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bn3KCbjG.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-BkRUdO0B.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  const G = /* @__PURE__ */ g({
11
11
  __name: "OverviewView",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as me, ref as O, watch as W, computed as w, h as f, withModifiers as ue, resolveComponent as x, createBlock as T, openBlock as F, withCtx as i, createVNode as n, createElementVNode as y, unref as e, normalizeStyle as pe, normalizeClass as C, withDirectives as B, createElementBlock as de, Fragment as fe, renderList as ve, toDisplayString as R, createTextVNode as ye, vShow as D } from "vue";
2
2
  import { storeToRefs as X } from "pinia";
3
- import { a as ge } from "./v4-CfR4tJai.js";
4
- import { _ as be } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
3
+ import { a as ge } from "./v4-BC3UrzlR.js";
4
+ import { _ as be } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
5
5
  import { u as he } from "./message-dialog-UoMWOnil.js";
6
6
  import { b as xe, f as Ce } from "./global-loader-DKYDQRZx.js";
7
7
  import { useSnackbar as _e, useBreakpoints as ke, components as we, FmButtonColorThemeVariant as $e } from "@feedmepos/ui-library";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as N, mergeModels as q, useModel as E, ref as W, computed as S, resolveComponent as u, createBlock as b, openBlock as l, withCtx as c, createElementVNode as h, createVNode as r, unref as e, normalizeClass as K, createTextVNode as _e, toDisplayString as P, createElementBlock as C, Fragment as O, renderSlot as ue, createCommentVNode as H, watch as he, resolveDynamicComponent as ye, isRef as de, renderList as z, normalizeStyle as ne, onMounted as we } from "vue";
2
- import { W as be, i as xe, S as Ce, d as ke, T as Ve, _ as Fe } from "./TransitionFade-BR2i09Vy.js";
3
- import { a as me, v as oe } from "./v4-CfR4tJai.js";
2
+ import { W as be, i as xe, S as Ce, d as ke, T as Ve, _ as Fe } from "./TransitionFade-ll5UCqpI.js";
3
+ import { a as me, v as oe } from "./v4-BC3UrzlR.js";
4
4
  import { storeToRefs as ce } from "pinia";
5
5
  import { useRouter as pe, useRoute as ve } from "vue-router";
6
6
  import { useBreakpoints as X, FmButtonColorThemeVariant as Q, useSnackbar as $e } from "@feedmepos/ui-library";
7
7
  import { u as fe } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as Y, f as Se } from "./global-loader-DKYDQRZx.js";
9
- import { _ as le } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js";
9
+ import { _ as le } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DXAoPdp3.js";
10
10
  import { _ as re } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
11
11
  import { r as ie } from "./i18n-Cif1I9J2.js";
12
12
  const Me = /* @__PURE__ */ N({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, computed as v, resolveComponent as z, createBlock as g, openBlock as u, withCtx as H, createVNode as h, createElementVNode as M, unref as o, normalizeStyle as Y, normalizeClass as D, createElementBlock as R, Fragment as G, renderList as Q } from "vue";
2
- import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-Bn3KCbjG.js";
3
- import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js";
2
+ import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-BkRUdO0B.js";
3
+ import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DXAoPdp3.js";
4
4
  import { useRouter as K, useRoute as X } from "vue-router";
5
- import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
6
- import { a as ee } from "./v4-CfR4tJai.js";
5
+ import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
6
+ import { a as ee } from "./v4-BC3UrzlR.js";
7
7
  import { storeToRefs as p } from "pinia";
8
- import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
8
+ import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
9
9
  import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
10
10
  import { useSnackbar as le, useBreakpoints as ne } from "@feedmepos/ui-library";
11
11
  import { u as ie, f as se, e as ue } from "./global-loader-DKYDQRZx.js";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as M, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as E, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-CRvS7Ex3.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-C4Hhsotc.js";
3
3
  import { u as U, d as z, C as A, D as pe, b as ce } from "./global-loader-DKYDQRZx.js";
4
4
  import { components as I, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
5
- import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js";
5
+ import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CN0Yl5n2.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { detectLocale as F } from "@feedmepos/mf-common";
8
8
  import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BEkJzB27.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, mergeModels as W, useModel as ee, computed as S, ref as A, resolveComponent as F, createElementBlock as O, openBlock as h, createVNode as f, createElementVNode as w, unref as t, withCtx as $, toDisplayString as I, Fragment as Q, renderList as ue, withModifiers as te, createTextVNode as ve, watch as ne, createCommentVNode as D, createBlock as T, onMounted as Oe, onUnmounted as qe, renderSlot as Le, onBeforeUnmount as He, resolveDynamicComponent as Ie, normalizeClass as Be, withDirectives as de, vShow as me, normalizeStyle as Ye, isRef as We } from "vue";
2
2
  import { useRoute as Xe, useRouter as Ge } from "vue-router";
3
- import { h as Je, d as Ve, S as ke, W as Ke, a as Qe, T as Ze, _ as el } from "./TransitionFade-BR2i09Vy.js";
4
- import { W as R, a as ll } from "./v4-CfR4tJai.js";
3
+ import { h as Je, d as Ve, S as ke, W as Ke, a as Qe, T as Ze, _ as el } from "./TransitionFade-ll5UCqpI.js";
4
+ import { W as R, a as ll } from "./v4-BC3UrzlR.js";
5
5
  import { storeToRefs as pe } from "pinia";
6
6
  import { u as Re } from "./message-dialog-UoMWOnil.js";
7
7
  import { c as Ue, d as Me, p as ol } from "./index--mBthMxH.js";
@@ -11,7 +11,7 @@ import { _ as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGK
11
11
  import { _ as K } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BEkJzB27.js";
12
12
  import { u as X, d as se, b as al } from "./global-loader-DKYDQRZx.js";
13
13
  import { r as le } from "./i18n-Cif1I9J2.js";
14
- import { g as ye, u as he, L as ie, a as xe, _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js";
14
+ import { g as ye, u as he, L as ie, a as xe, _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DXAoPdp3.js";
15
15
  import { _ as ze } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
16
16
  var re = /* @__PURE__ */ ((m) => (m.DateTime = "DATE_TIME", m.Hour = "HOUR", m.Day = "DAY", m.Week = "WEEK", m.Month = "MONTH", m.TimeOfDay = "TIME_OF_DAY", m.HourOfDay = "HOUR_OF_DAY", m.DayOfWeek = "DAY_OF_WEEK", m.DayOfMonth = "DAY_OF_MONTH", m.MonthOfYear = "MONTH_OF_YEAR", m.Year = "YEAR", m))(re || {}), Ce = /* @__PURE__ */ ((m) => (m.Asc = "ASC", m.Desc = "DESC", m))(Ce || {}), ae = /* @__PURE__ */ ((m) => (m.Equal = "EQUAL", m.NotEqual = "NOT_EQUAL", m.GreaterThan = "GREATER_THAN", m.LessThan = "LESS_THAN", m.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", m.LessThanOrEqual = "LESS_THAN_OR_EQUAL", m.Between = "BETWEEN", m.Like = "LIKE", m.NotLike = "NOT_LIKE", m.And = "AND", m.Or = "OR", m))(ae || {}), ce = /* @__PURE__ */ ((m) => (m.String = "STRING", m.Timestamp = "TIMESTAMP", m.Bool = "BOOL", m.Numeric = "NUMERIC", m))(ce || {});
17
17
  const we = [
@@ -3,10 +3,10 @@ import { u as Xt, f as wn } from "./global-loader-DKYDQRZx.js";
3
3
  import { useCoreStore as En } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as Sn } from "pinia";
5
5
  import { useRoute as Dn } from "vue-router";
6
- import { W as x } from "./v4-CfR4tJai.js";
6
+ import { W as x } from "./v4-BC3UrzlR.js";
7
7
  import { p as Cn } from "./index--mBthMxH.js";
8
8
  import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js";
9
+ import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DXAoPdp3.js";
10
10
  const xn = {
11
11
  key: 0,
12
12
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
package/dist/app.js CHANGED
@@ -4350,41 +4350,41 @@ const a = {
4350
4350
  path: "/overview",
4351
4351
  alias: ["/"],
4352
4352
  name: "overview",
4353
- component: () => import("./OverviewView-B_RWwK33.js")
4353
+ component: () => import("./OverviewView-DB9lRene.js")
4354
4354
  },
4355
4355
  {
4356
4356
  path: "/report",
4357
4357
  name: "reports",
4358
- component: () => import("./Report-D6UGn8fH.js")
4358
+ component: () => import("./Report-Dg85CXwG.js")
4359
4359
  },
4360
4360
  {
4361
4361
  path: "/insights",
4362
4362
  name: "insights",
4363
- component: () => import("./InsightView-Ba_em7GM.js")
4363
+ component: () => import("./InsightView-0wXNDqBc.js")
4364
4364
  },
4365
4365
  {
4366
4366
  path: "/report-view",
4367
4367
  name: "reportView",
4368
- component: () => import("./ReportView-CzhcGBn8.js")
4368
+ component: () => import("./ReportView-CAgKYtvw.js")
4369
4369
  },
4370
4370
  {
4371
4371
  path: "/report-editor",
4372
4372
  name: "reportEditor",
4373
- component: () => import("./ReportEditor-HDMGjShp.js")
4373
+ component: () => import("./ReportEditor-tT_K5s7W.js")
4374
4374
  },
4375
4375
  {
4376
4376
  path: "/report-editor/tile-editor",
4377
4377
  name: "tileEditor",
4378
- component: () => import("./TileEditor-BNx2KgYJ.js")
4378
+ component: () => import("./TileEditor-CuczXojn.js")
4379
4379
  },
4380
4380
  {
4381
4381
  path: "/setting",
4382
4382
  name: "setting",
4383
- component: () => import("./Setting-Bvzzqokm.js")
4383
+ component: () => import("./Setting-Djm4dL-U.js")
4384
4384
  },
4385
4385
  {
4386
4386
  path: "/integration",
4387
- component: () => import("./Layout-_u9uU4T9.js"),
4387
+ component: () => import("./Layout-BzoG7k3p.js"),
4388
4388
  children: [
4389
4389
  {
4390
4390
  name: "integrations",
@@ -4418,7 +4418,7 @@ const u = {
4418
4418
  "zh-CN": i,
4419
4419
  "th-TH": c,
4420
4420
  "zh-Hant": d
4421
- }, h = e(() => import("./App-DJp01-Og.js"));
4421
+ }, h = e(() => import("./App-CSyvme5r.js"));
4422
4422
  export {
4423
4423
  h as FmApp,
4424
4424
  u as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { j as xe, a as te, F as re, h as K, b as Ie, c as Ne, n as je, d as fe, e as ze, k as Ke } from "./global-loader-DKYDQRZx.js";
1
+ import { j as xe, a as re, F as ie, h as K, b as Ie, c as Ne, n as je, d as $e, e as ze, k as Ke } from "./global-loader-DKYDQRZx.js";
2
2
  import { storeToRefs as W, defineStore as ke } from "pinia";
3
3
  import { ref as Z, computed as Te, h as Xe, watch as Ze } from "vue";
4
4
  import { useSnackbar as et, components as tt } from "@feedmepos/ui-library";
@@ -111,10 +111,10 @@ var Me = {};
111
111
  function Y(r, e) {
112
112
  B(e.prototype, r.prototype), r.prototype.constructor = r;
113
113
  }
114
- function ie(r, e) {
114
+ function ne(r, e) {
115
115
  N(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
- function oe(r, e, i, n) {
117
+ function se(r, e, i, n) {
118
118
  var a = r;
119
119
  r[e] = a, r[i] = function() {
120
120
  r[i] = function() {
@@ -139,7 +139,7 @@ var Me = {};
139
139
  }, r[e];
140
140
  };
141
141
  }
142
- function ye(r, e, i, n) {
142
+ function ue(r, e, i, n) {
143
143
  var a = r;
144
144
  r[e] = a, r[i] = function() {
145
145
  if (r[e] === a) {
@@ -152,17 +152,17 @@ var Me = {};
152
152
  }, l;
153
153
  };
154
154
  }
155
- function se(r) {
155
+ function te(r) {
156
156
  return r.immutable$list = Array, r.fixed$length = Array, r;
157
157
  }
158
- function $e(r) {
158
+ function de(r) {
159
159
  return r;
160
160
  }
161
- function de(r) {
161
+ function pe(r) {
162
162
  for (var e = 0; e < r.length; ++e)
163
163
  r[e];
164
164
  }
165
- function ne(r, e) {
165
+ function ae(r, e) {
166
166
  var i = null;
167
167
  return r ? function(n) {
168
168
  return i === null && (i = t.closureFromTearOff(e)), new i(n, this);
@@ -180,13 +180,13 @@ var Me = {};
180
180
  function le(r, e, i, n, a, s, l, _, d, c) {
181
181
  return typeof _ == "number" && (_ += _e), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
182
182
  }
183
- function ae(r, e, i, n, a, s, l, _) {
183
+ function oe(r, e, i, n, a, s, l, _) {
184
184
  var d = le(r, !0, !1, i, n, a, s, l, _, !1), c = X(d);
185
185
  r[e] = c;
186
186
  }
187
- function ce(r, e, i, n, a, s, l, _, d, c) {
187
+ function fe(r, e, i, n, a, s, l, _, d, c) {
188
188
  i = !!i;
189
- var f = le(r, !1, i, n, a, s, l, _, d, !!c), $ = ne(i, f);
189
+ var f = le(r, !1, i, n, a, s, l, _, d, !!c), $ = ae(i, f);
190
190
  r[e] = $;
191
191
  }
192
192
  function ge(r) {
@@ -205,7 +205,7 @@ var Me = {};
205
205
  }
206
206
  k(r, e);
207
207
  }
208
- function ue(r) {
208
+ function ce(r) {
209
209
  var e = T.types, i = e.length;
210
210
  return e.push.apply(e, r), i;
211
211
  }
@@ -215,14 +215,14 @@ var Me = {};
215
215
  var j = function() {
216
216
  var r = function(i, n, a, s, l) {
217
217
  return function(_, d, c, f) {
218
- return ce(_, d, i, n, a, s, [c], f, l, !1);
218
+ return fe(_, d, i, n, a, s, [c], f, l, !1);
219
219
  };
220
220
  }, e = function(i, n, a, s) {
221
221
  return function(l, _, d, c) {
222
- return ae(l, _, i, n, a, [d], c, s);
222
+ return oe(l, _, i, n, a, [d], c, s);
223
223
  };
224
224
  };
225
- return { inherit: Q, inheritMany: G, mixin: Y, mixinHard: ie, installStaticTearOff: ae, installInstanceTearOff: ce, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: se, lazy: ee, lazyFinal: ye, lazyOld: oe, updateHolder: Se, convertToFastObject: $e, updateTypes: ue, setOrUpdateInterceptorsByTag: ge, setOrUpdateLeafTags: me };
225
+ return { inherit: Q, inheritMany: G, mixin: Y, mixinHard: ne, installStaticTearOff: oe, installInstanceTearOff: fe, _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: te, lazy: ee, lazyFinal: ue, lazyOld: se, updateHolder: Se, convertToFastObject: de, updateTypes: ce, setOrUpdateInterceptorsByTag: ge, setOrUpdateLeafTags: me };
226
226
  }(), t = {
227
227
  JS_CONST: function() {
228
228
  },
@@ -8345,10 +8345,10 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
8345
8345
  $signature: 1
8346
8346
  }, t.flattenItemSchema_closure.prototype = {
8347
8347
  call$1(r) {
8348
- var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", f = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", O = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", q = "customAttributes", pe = "layerZeroParentId";
8348
+ var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", f = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", O = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", q = "customAttributes", ye = "layerZeroParentId";
8349
8349
  return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", i, i, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", n, n, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
8350
8350
  `, !1, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
8351
- `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", O, O, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", q, q, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", pe, pe, e, r), t.Field_Field$string(e, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code in ('SST','GST'))", r)], y.JSArray_Field);
8351
+ `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", f, f, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", O, O, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", q, q, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", ye, ye, e, r), t.Field_Field$string(e, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code in ('SST','GST'))", r)], y.JSArray_Field);
8352
8352
  },
8353
8353
  $signature: 0
8354
8354
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9825,8 +9825,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
9825
9825
  return n.message;
9826
9826
  }
9827
9827
  }())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List__create1(t._ensureNativeList(t._setArrayType([1], y.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", u.List_BC_AD, u.List_6xs, u.List_qpm, u.List_qpm, u.List_cIc, u.List_cIc, u.List_h8w, u.List_h8w, u.List_wMy, u.List_wMy, u.List_gc6, u.List_gc6, u.List_3US, u.List_AM_PM)), i(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), i(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'"), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''")), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+")), i(S, "_availableLocales", "$get$_availableLocales", () => {
9828
- var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), f = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), O = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), q = t.DeLocale$(u.StartOfWeek_2), pe = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), we = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9829
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", O, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", q, "de_ch", pe, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", we, "ar_ma", ve, "ar_tn", De, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9828
+ var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), f = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), O = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), q = t.DeLocale$(u.StartOfWeek_2), ye = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), we = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9829
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", f, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", O, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", q, "de_ch", ye, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", we, "ar_ma", ve, "ar_tn", De, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9830
9830
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
9831
9831
  var n = "createdAt", a = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], y.JSArray_Permission), n);
9832
9832
  return t.Schema_Schema$build(t._setArrayType(["restaurantId"], y.JSArray_String), null, new t.addonFlattenItemSchema_closure(), u.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.SCHEMA_NAME_6, n, "", a, s);
@@ -10077,7 +10077,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
10077
10077
  return this(r, e, i);
10078
10078
  }, Function.prototype.call$8 = function(r, e, i, n, a, s, l, _) {
10079
10079
  return this(r, e, i, n, a, s, l, _);
10080
- }, de(p), function(r) {
10080
+ }, pe(p), function(r) {
10081
10081
  if (typeof document > "u") {
10082
10082
  r(null);
10083
10083
  return;
@@ -10198,10 +10198,10 @@ var Ue = {};
10198
10198
  for (var n = 0; n < i.length; n++)
10199
10199
  G(i[n], e);
10200
10200
  }
10201
- function ie(e, i) {
10201
+ function ne(e, i) {
10202
10202
  U(i.prototype, e.prototype), e.prototype.constructor = e;
10203
10203
  }
10204
- function oe(e, i) {
10204
+ function se(e, i) {
10205
10205
  B(i.prototype, e.prototype), e.prototype.constructor = e;
10206
10206
  }
10207
10207
  function ee(e, i, n, a) {
@@ -10221,7 +10221,7 @@ var Ue = {};
10221
10221
  return l;
10222
10222
  };
10223
10223
  }
10224
- function ye(e, i, n, a) {
10224
+ function ue(e, i, n, a) {
10225
10225
  var s = e;
10226
10226
  e[i] = s, e[n] = function() {
10227
10227
  return e[i] === s && (e[i] = a()), e[n] = function() {
@@ -10229,7 +10229,7 @@ var Ue = {};
10229
10229
  }, e[i];
10230
10230
  };
10231
10231
  }
10232
- function se(e, i, n, a) {
10232
+ function te(e, i, n, a) {
10233
10233
  var s = e;
10234
10234
  e[i] = s, e[n] = function() {
10235
10235
  if (e[i] === s) {
@@ -10242,13 +10242,13 @@ var Ue = {};
10242
10242
  }, _;
10243
10243
  };
10244
10244
  }
10245
- function $e(e) {
10245
+ function de(e) {
10246
10246
  return e.immutable$list = Array, e.fixed$length = Array, e;
10247
10247
  }
10248
- function de(e) {
10248
+ function pe(e) {
10249
10249
  return e;
10250
10250
  }
10251
- function ne(e) {
10251
+ function ae(e) {
10252
10252
  for (var i = 0; i < e.length; ++i)
10253
10253
  e[i];
10254
10254
  }
@@ -10267,16 +10267,16 @@ var Ue = {};
10267
10267
  };
10268
10268
  }
10269
10269
  var le = 0;
10270
- function ae(e, i, n, a, s, l, _, d, c, f) {
10270
+ function oe(e, i, n, a, s, l, _, d, c, f) {
10271
10271
  return typeof d == "number" && (d += le), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: f };
10272
10272
  }
10273
- function ce(e, i, n, a, s, l, _, d) {
10274
- var c = ae(e, !0, !1, n, a, s, l, _, d, !1), f = _e(c);
10273
+ function fe(e, i, n, a, s, l, _, d) {
10274
+ var c = oe(e, !0, !1, n, a, s, l, _, d, !1), f = _e(c);
10275
10275
  e[i] = f;
10276
10276
  }
10277
10277
  function ge(e, i, n, a, s, l, _, d, c, f) {
10278
10278
  n = !!n;
10279
- var $ = ae(e, !1, n, a, s, l, _, d, c, !!f), g = X(n, $);
10279
+ var $ = oe(e, !1, n, a, s, l, _, d, c, !!f), g = X(n, $);
10280
10280
  e[i] = g;
10281
10281
  }
10282
10282
  function me(e) {
@@ -10287,7 +10287,7 @@ var Ue = {};
10287
10287
  }
10288
10288
  N(e, i);
10289
10289
  }
10290
- function ue(e) {
10290
+ function ce(e) {
10291
10291
  var i = I.leafTags;
10292
10292
  if (!i) {
10293
10293
  I.leafTags = e;
@@ -10309,10 +10309,10 @@ var Ue = {};
10309
10309
  };
10310
10310
  }, i = function(n, a, s, l) {
10311
10311
  return function(_, d, c, f) {
10312
- return ce(_, d, n, a, s, [c], f, l);
10312
+ return fe(_, d, n, a, s, [c], f, l);
10313
10313
  };
10314
10314
  };
10315
- return { inherit: G, inheritMany: Y, mixin: ie, mixinHard: oe, installStaticTearOff: ce, installInstanceTearOff: ge, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: $e, lazy: ye, lazyFinal: se, lazyOld: ee, updateHolder: j, convertToFastObject: de, updateTypes: Se, setOrUpdateInterceptorsByTag: me, setOrUpdateLeafTags: ue };
10315
+ return { inherit: G, inheritMany: Y, mixin: ne, mixinHard: se, installStaticTearOff: fe, installInstanceTearOff: ge, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: de, lazy: ue, lazyFinal: te, lazyOld: ee, updateHolder: j, convertToFastObject: pe, updateTypes: Se, setOrUpdateInterceptorsByTag: me, setOrUpdateLeafTags: ce };
10316
10316
  }(), o = {
10317
10317
  JS_CONST: function() {
10318
10318
  },
@@ -11855,7 +11855,7 @@ var Ue = {};
11855
11855
  return c === 12 ? i === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, i, n, a, s) : _ === 9 ? c !== 9 ? !1 : o._isInterfaceSubtype(e, i, n, a, s) : (l = _ === 11, l && a === r.Record ? !0 : l && c === 11 ? o._isRecordSubtype(e, i, n, a, s) : !1);
11856
11856
  },
11857
11857
  _isFunctionSubtype(e, i, n, a, s) {
11858
- var l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q, pe;
11858
+ var l, _, d, c, f, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, q, ye;
11859
11859
  if (!o._isSubtype(e, i._primary, n, a._primary, s) || (l = i._rest, _ = a._rest, d = l._requiredPositional, c = _._requiredPositional, f = d.length, $ = c.length, f > $) || (g = $ - f, m = l._optionalPositional, h = _._optionalPositional, A = m.length, E = h.length, f + A < $ + E))
11860
11860
  return !1;
11861
11861
  for (M = 0; M < f; ++M)
@@ -11871,12 +11871,12 @@ var Ue = {};
11871
11871
  for (x = C[v]; ; ) {
11872
11872
  if (L >= O || (q = R[L], L += 3, x < q))
11873
11873
  return !1;
11874
- if (pe = R[L - 2], q < x) {
11875
- if (pe)
11874
+ if (ye = R[L - 2], q < x) {
11875
+ if (ye)
11876
11876
  return !1;
11877
11877
  continue;
11878
11878
  }
11879
- if (b = C[v + 1], pe && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11879
+ if (b = C[v + 1], ye && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11880
11880
  return !1;
11881
11881
  break;
11882
11882
  }
@@ -17920,8 +17920,8 @@ Arguments: [` + c + "]";
17920
17920
  return a.message;
17921
17921
  }
17922
17922
  }())), i(T, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => o.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), i(T, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(p.Type_Object_xQ6)), i(T, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List__create1(o._ensureNativeList(o._setArrayType([1], r.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? p.C_Endian0 : p.C_Endian), i(T, "_clockKey", "$get$_clockKey", () => new o.Object()), i(T, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", p.List_BC_AD, p.List_6xs, p.List_qpm, p.List_qpm, p.List_cIc, p.List_cIc, p.List_h8w, p.List_h8w, p.List_wMy, p.List_wMy, p.List_gc6, p.List_gc6, p.List_3US, p.List_Q1_Q2_Q3_Q4, p.List_bJM, p.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.Map_EQ6TW)), i(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), i(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'"), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], o.findType("JSArray<RegExp>"))), i(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''")), i(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+")), n(T, "_availableLocales", "$get$_availableLocales", () => {
17923
- var a, s, l = o.EnLocale$(p.StartOfWeek_1), _ = o.EnLocale$(p.StartOfWeek_1), d = o.EnLocale$(p.StartOfWeek_1), c = o.EnLocale$(p.StartOfWeek_1), f = o.EnLocale$(p.StartOfWeek_1), $ = o.EnLocale$(p.StartOfWeek_2), g = o.EnLocale$(p.StartOfWeek_2), m = o.EnLocale$(p.StartOfWeek_1), h = o.EnLocale$(p.StartOfWeek_1), A = o.EsLocale$(p.StartOfWeek_2), E = o.EsLocale$(p.StartOfWeek_2), M = o.EsLocale$(p.StartOfWeek_1), b = o.FrLocale$(p.StartOfWeek_2), R = o.FrLocale$(p.StartOfWeek_2), C = o.FrLocale$(p.StartOfWeek_1), O = o.ZhCnLocale$(p.StartOfWeek_1), D = o.ZhCnLocale$(p.StartOfWeek_1), L = o.ZhLocale$(p.StartOfWeek_1), v = o.ZhLocale$(p.StartOfWeek_1), x = o.DeLocale$(p.StartOfWeek_2), q = o.DeLocale$(p.StartOfWeek_2), pe = o.DeLocale$(p.StartOfWeek_2), Ce = o.DeLocale$(p.StartOfWeek_2), be = o.ItLocale$(p.StartOfWeek_2), Re = o.ItLocale$(p.StartOfWeek_2), Fe = o.ArLyLocale$(!0, p.StartOfWeek_0), Oe = o.ArLyLocale$(!1, p.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), Ye = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
17924
- return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(p.StartOfWeek_2), s = o.PtLocale$(p.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", f, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", O, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", q, "de_at", pe, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", we, "ar_sa", ve, "ar_ma", De, "ar_tn", Ye, "az", new o.AzLocale(p.StartOfWeek_2), "id", new o.IdLocale(p.StartOfWeek_1), "ja", new o.JaLocale(p.StartOfWeek_1), "ko", new o.KoLocale(p.StartOfWeek_1), "ru", new o.RuLocale(p.StartOfWeek_2), "uk", new o.UkLocale(p.StartOfWeek_2), "hi", new o.HiLocale(p.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(p.StartOfWeek_2), "tr", new o.TrLocale(p.StartOfWeek_2), "sv", new o.SvLocale(p.StartOfWeek_2), "nb", new o.NbLocale(p.StartOfWeek_2), "fa", new o.FaLocale(p.StartOfWeek_0), "bn", new o.BnLocale(p.StartOfWeek_1), "nl", new o.NlLocale(p.StartOfWeek_2), "th", new o.ThLocale(p.StartOfWeek_1)], r.String, o.findType("Locale"));
17923
+ var a, s, l = o.EnLocale$(p.StartOfWeek_1), _ = o.EnLocale$(p.StartOfWeek_1), d = o.EnLocale$(p.StartOfWeek_1), c = o.EnLocale$(p.StartOfWeek_1), f = o.EnLocale$(p.StartOfWeek_1), $ = o.EnLocale$(p.StartOfWeek_2), g = o.EnLocale$(p.StartOfWeek_2), m = o.EnLocale$(p.StartOfWeek_1), h = o.EnLocale$(p.StartOfWeek_1), A = o.EsLocale$(p.StartOfWeek_2), E = o.EsLocale$(p.StartOfWeek_2), M = o.EsLocale$(p.StartOfWeek_1), b = o.FrLocale$(p.StartOfWeek_2), R = o.FrLocale$(p.StartOfWeek_2), C = o.FrLocale$(p.StartOfWeek_1), O = o.ZhCnLocale$(p.StartOfWeek_1), D = o.ZhCnLocale$(p.StartOfWeek_1), L = o.ZhLocale$(p.StartOfWeek_1), v = o.ZhLocale$(p.StartOfWeek_1), x = o.DeLocale$(p.StartOfWeek_2), q = o.DeLocale$(p.StartOfWeek_2), ye = o.DeLocale$(p.StartOfWeek_2), Ce = o.DeLocale$(p.StartOfWeek_2), be = o.ItLocale$(p.StartOfWeek_2), Re = o.ItLocale$(p.StartOfWeek_2), Fe = o.ArLyLocale$(!0, p.StartOfWeek_0), Oe = o.ArLyLocale$(!1, p.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), Ye = o.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
17924
+ return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(p.StartOfWeek_2), s = o.PtLocale$(p.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", f, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", O, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", q, "de_at", ye, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", we, "ar_sa", ve, "ar_ma", De, "ar_tn", Ye, "az", new o.AzLocale(p.StartOfWeek_2), "id", new o.IdLocale(p.StartOfWeek_1), "ja", new o.JaLocale(p.StartOfWeek_1), "ko", new o.KoLocale(p.StartOfWeek_1), "ru", new o.RuLocale(p.StartOfWeek_2), "uk", new o.UkLocale(p.StartOfWeek_2), "hi", new o.HiLocale(p.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(p.StartOfWeek_2), "tr", new o.TrLocale(p.StartOfWeek_2), "sv", new o.SvLocale(p.StartOfWeek_2), "nb", new o.NbLocale(p.StartOfWeek_2), "fa", new o.FaLocale(p.StartOfWeek_0), "bn", new o.BnLocale(p.StartOfWeek_1), "nl", new o.NlLocale(p.StartOfWeek_2), "th", new o.ThLocale(p.StartOfWeek_1)], r.String, o.findType("Locale"));
17925
17925
  });
17926
17926
  }(), function() {
17927
17927
  (function() {
@@ -17953,7 +17953,7 @@ Arguments: [` + c + "]";
17953
17953
  return this(e, i, n, a, s, l, _, d);
17954
17954
  }, Function.prototype.call$3 = function(e, i, n) {
17955
17955
  return this(e, i, n);
17956
- }, ne(S), function(e) {
17956
+ }, ae(S), function(e) {
17957
17957
  if (typeof document > "u") {
17958
17958
  e(null);
17959
17959
  return;
@@ -18004,75 +18004,75 @@ function Ot(F) {
18004
18004
  }
18005
18005
  }
18006
18006
  const Ae = "/report-settings", st = async () => {
18007
- const { businessId: F } = W(te());
18007
+ const { businessId: F } = W(re());
18008
18008
  if (F) {
18009
18009
  const w = {
18010
- fetchType: re.Get,
18010
+ fetchType: ie.Get,
18011
18011
  url: `${Ae}/${F.value}/reports`
18012
18012
  };
18013
18013
  return K.fetch(w);
18014
18014
  } else
18015
18015
  return Promise.reject(new Error("Business Id is not defined"));
18016
18016
  }, lt = (F) => {
18017
- const { businessId: w } = W(te()), J = {
18018
- fetchType: re.Put,
18017
+ const { businessId: w } = W(re()), J = {
18018
+ fetchType: ie.Put,
18019
18019
  url: `${Ae}/${w.value}/reports/${F.id}`,
18020
18020
  data: F
18021
18021
  };
18022
18022
  return K.fetch(J);
18023
18023
  }, _t = (F) => {
18024
- const { businessId: w } = W(te()), J = {
18025
- fetchType: re.Post,
18024
+ const { businessId: w } = W(re()), J = {
18025
+ fetchType: ie.Post,
18026
18026
  url: `${Ae}/${w.value}/reports`,
18027
18027
  data: F
18028
18028
  };
18029
18029
  return K.fetch(J);
18030
18030
  }, ut = (F) => {
18031
- const { businessId: w } = W(te()), J = {
18032
- fetchType: re.Delete,
18031
+ const { businessId: w } = W(re()), J = {
18032
+ fetchType: ie.Delete,
18033
18033
  url: `${Ae}/${w.value}/reports/${F.id}`
18034
18034
  };
18035
18035
  return K.fetch(J);
18036
18036
  }, dt = (F) => {
18037
- const { businessId: w } = W(te()), J = {
18038
- fetchType: re.Put,
18037
+ const { businessId: w } = W(re()), J = {
18038
+ fetchType: ie.Put,
18039
18039
  url: `${Ae}/${w.value}/reports/default`,
18040
18040
  data: { defaultReport: F }
18041
18041
  };
18042
18042
  return K.fetch(J);
18043
18043
  }, ct = async () => {
18044
- const { businessId: F } = W(te());
18044
+ const { businessId: F } = W(re());
18045
18045
  if (F) {
18046
18046
  const w = {
18047
- fetchType: re.Get,
18047
+ fetchType: ie.Get,
18048
18048
  url: `${Ae}/${F.value}/overview-report`
18049
18049
  };
18050
18050
  return K.fetch(w);
18051
18051
  } else
18052
18052
  return Promise.reject(new Error("Business Id is not defined"));
18053
18053
  }, pt = async () => {
18054
- const { businessId: F } = W(te());
18054
+ const { businessId: F } = W(re());
18055
18055
  if (F) {
18056
18056
  const w = {
18057
- fetchType: re.Get,
18057
+ fetchType: ie.Get,
18058
18058
  url: `${Ae}/${F.value}/config`
18059
18059
  };
18060
18060
  return K.fetch(w);
18061
18061
  } else
18062
18062
  return Promise.reject(new Error("Business Id is not defined"));
18063
18063
  }, ft = "/report-settings", yt = async () => {
18064
- const { businessId: F } = W(te());
18064
+ const { businessId: F } = W(re());
18065
18065
  if (F) {
18066
18066
  const w = {
18067
- fetchType: re.Get,
18067
+ fetchType: ie.Get,
18068
18068
  url: `${ft}/${F.value}/categories`
18069
18069
  };
18070
18070
  return K.fetch(w);
18071
18071
  } else
18072
18072
  return Promise.reject(new Error("Business Id is not defined"));
18073
18073
  }, $t = (F) => {
18074
- const { businessId: w } = W(te()), J = {
18075
- fetchType: re.Post,
18074
+ const { businessId: w } = W(re()), J = {
18075
+ fetchType: ie.Post,
18076
18076
  url: `/report-settings/${w.value}/date-settings`,
18077
18077
  data: {
18078
18078
  ...F
@@ -18104,8 +18104,8 @@ const he = {
18104
18104
  (S) => S.key === je.report_portal_integration_custom_report
18105
18105
  );
18106
18106
  return typeof (p == null ? void 0 : p.value) == "number" ? p.value : null;
18107
- }), ie = Te(() => Y.value === null ? !0 : Y.value - k.value.length > 0);
18108
- async function oe() {
18107
+ }), ne = Te(() => Y.value === null ? !0 : Y.value - k.value.length > 0);
18108
+ async function se() {
18109
18109
  return G.value = await ct(), G.value;
18110
18110
  }
18111
18111
  async function ee() {
@@ -18120,9 +18120,9 @@ const he = {
18120
18120
  });
18121
18121
  }
18122
18122
  }
18123
- const ye = Te(
18123
+ const ue = Te(
18124
18124
  () => J.value.find((p) => p.id === U.value)
18125
- ), se = Z(), $e = Z(0), de = Z(), ne = Z(!1), X = Z(!1), _e = Z(!1);
18125
+ ), te = Z(), de = Z(0), pe = Z(), ae = Z(!1), X = Z(!1), _e = Z(!1);
18126
18126
  async function le(p) {
18127
18127
  if (k.value.findIndex((T) => T.id === p.id) >= 0) {
18128
18128
  const T = await lt(p);
@@ -18133,10 +18133,10 @@ const he = {
18133
18133
  }
18134
18134
  await ee();
18135
18135
  }
18136
- async function ae(p) {
18136
+ async function oe(p) {
18137
18137
  return await $t(p);
18138
18138
  }
18139
- async function ce(p) {
18139
+ async function fe(p) {
18140
18140
  await ut(p), await ee();
18141
18141
  }
18142
18142
  async function ge(p) {
@@ -18145,17 +18145,17 @@ const he = {
18145
18145
  function me(p) {
18146
18146
  J.value.findIndex((T) => T.id === p) !== -1 && (U.value = p);
18147
18147
  }
18148
- const ue = Z(null);
18148
+ const ce = Z(null);
18149
18149
  function Se() {
18150
18150
  var p;
18151
18151
  if ((p = F.value) != null && p._id) {
18152
18152
  const S = he.getJson("pinReport")[F.value._id];
18153
18153
  if ((S == null ? void 0 : S.length) > 0) {
18154
- ue.value = S;
18154
+ ce.value = S;
18155
18155
  return;
18156
18156
  }
18157
18157
  }
18158
- ue.value = null;
18158
+ ce.value = null;
18159
18159
  }
18160
18160
  function j(p) {
18161
18161
  var S;
@@ -18177,12 +18177,12 @@ const he = {
18177
18177
  const p = he.getJson("feedback");
18178
18178
  if (!p[F.value._id])
18179
18179
  p[F.value._id] = {
18180
- date: fe().local().format("YYYY-MM-DD"),
18180
+ date: $e().local().format("YYYY-MM-DD"),
18181
18181
  feedback: !1
18182
18182
  };
18183
18183
  else {
18184
- const S = fe(p[F.value._id].date).local();
18185
- Math.abs(S.diff(fe().endOf("day").local(), "d")) >= 1 && !p[F.value._id].feedback && (X.value = !0);
18184
+ const S = $e(p[F.value._id].date).local();
18185
+ Math.abs(S.diff($e().endOf("day").local(), "d")) >= 1 && !p[F.value._id].feedback && (X.value = !0);
18186
18186
  }
18187
18187
  he.setJson("feedback", p);
18188
18188
  }
@@ -18191,37 +18191,37 @@ const he = {
18191
18191
  return await pt();
18192
18192
  }
18193
18193
  return {
18194
- isOpenDownloadDialog: ne,
18194
+ isOpenDownloadDialog: ae,
18195
18195
  isOpenFeedbackDialog: X,
18196
18196
  isOpenEmailDialog: _e,
18197
18197
  currentSelectWidgetType: Q,
18198
18198
  reports: J,
18199
18199
  categories: H,
18200
- currentReport: ye,
18201
- editingReport: se,
18202
- editingIndex: $e,
18203
- editingTile: de,
18200
+ currentReport: ue,
18201
+ editingReport: te,
18202
+ editingIndex: de,
18203
+ editingTile: pe,
18204
18204
  currentReportId: U,
18205
18205
  editableReports: k,
18206
18206
  nonEditableReports: N,
18207
18207
  isOpenAddReportDialog: B,
18208
18208
  overviewReport: G,
18209
- pinReport: ue,
18209
+ pinReport: ce,
18210
18210
  scrollPositionY: P,
18211
18211
  customReportQuota: Y,
18212
- canCreateCustomReport: ie,
18212
+ canCreateCustomReport: ne,
18213
18213
  createOrUpdateReport: le,
18214
- removeReport: ce,
18214
+ removeReport: fe,
18215
18215
  updateCurrentReportId: me,
18216
18216
  getReports: ee,
18217
18217
  updateDefaultReport: ge,
18218
18218
  checkFeedback: o,
18219
- getOverviewReport: oe,
18219
+ getOverviewReport: se,
18220
18220
  refreshPinReport: Se,
18221
18221
  cachePinReport: j,
18222
18222
  clearPinReport: t,
18223
18223
  getReportConfig: u,
18224
- submitFeedback: ae
18224
+ submitFeedback: oe
18225
18225
  };
18226
18226
  }), mt = "mf-reportnavigation", Qe = ke(mt, () => {
18227
18227
  const { disabled: F } = W(ze()), { isIntegrationWhitelist: w } = W(Ne()), J = Z("v5"), H = Te(() => {
@@ -18288,7 +18288,7 @@ const he = {
18288
18288
  };
18289
18289
  });
18290
18290
  var Ve = /* @__PURE__ */ ((F) => (F.generating = "GENERATING", F.completed = "COMPLETED", F.failed = "FAILED", F.canceled = "CANCELLED", F))(Ve || {});
18291
- fe.extend(Ke);
18291
+ $e.extend(Ke);
18292
18292
  async function St(F, w) {
18293
18293
  for (let J = 0; J < F.length; J++)
18294
18294
  try {
@@ -18300,8 +18300,8 @@ async function St(F, w) {
18300
18300
  throw new Error("No callback");
18301
18301
  }
18302
18302
  const Lt = async (F, w) => {
18303
- var Y, ie, oe, ee;
18304
- const { businessId: J, country: H } = W(te()), {
18303
+ var Y, ne, se, ee;
18304
+ const { businessId: J, country: H } = W(re()), {
18305
18305
  selectedRestaurantIds: P,
18306
18306
  selectedWarehouseIds: V,
18307
18307
  selectedLocationIds: k,
@@ -18312,20 +18312,26 @@ const Lt = async (F, w) => {
18312
18312
  if (k.length === 0)
18313
18313
  return null;
18314
18314
  const Q = {
18315
- fetchType: re.Post,
18315
+ fetchType: ie.Post,
18316
18316
  url: `/${J.value}/postgres-query`,
18317
18317
  data: Me.getQueryRequests({
18318
18318
  widget: F,
18319
18319
  dateRange: [N.startDate, N.endDate],
18320
18320
  compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
18321
18321
  timeRange: [
18322
- fe().set("hour", Number((Y = U.start) == null ? void 0 : Y.hour)).set("minute", Number((ie = U.start) == null ? void 0 : ie.minute)).toISOString(),
18323
- fe().set("hour", Number((oe = U.end) == null ? void 0 : oe.hour)).set("minute", Number((ee = U.end) == null ? void 0 : ee.minute)).toISOString()
18322
+ $e().set("hour", Number((Y = U.start) == null ? void 0 : Y.hour)).set("minute", Number((ne = U.start) == null ? void 0 : ne.minute)).toISOString(),
18323
+ $e().set("hour", Number((se = U.end) == null ? void 0 : se.hour)).set("minute", Number((ee = U.end) == null ? void 0 : ee.minute)).toISOString()
18324
18324
  ],
18325
18325
  businessIds: J.value ? [J.value] : [],
18326
18326
  restaurantIds: P,
18327
18327
  warehouseIds: V,
18328
18328
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18329
+ }).map((ue, te) => {
18330
+ const de = te === 0 ? 3e3 : 12e3;
18331
+ return {
18332
+ ...ue,
18333
+ limit: P.length > 50 ? F.config.limit || de : F.config.limit
18334
+ };
18329
18335
  }),
18330
18336
  requestConfig: {
18331
18337
  timeout: 1e3 * 60 * 5,
@@ -18391,30 +18397,30 @@ const wt = async ({
18391
18397
  timeRange: P,
18392
18398
  dateRange: V
18393
18399
  }) => {
18394
- const { businessId: k } = W(te()), { restaurants: N, warehouses: B } = Ie(), { currentReport: U, overviewReport: Q } = Be(), { selectedNavigationTab: G } = Qe();
18395
- let Y = U == null ? void 0 : U.id, ie = (U == null ? void 0 : U.tiles) ?? [];
18396
- G === "overview" && Q && (Y = Q == null ? void 0 : Q.id, ie = (Q == null ? void 0 : Q.tiles) ?? []);
18397
- const oe = ie.filter((X, _e) => typeof w == "number" ? _e === w : !0).map((X) => X.widget), ee = {
18398
- fetchType: re.Post,
18400
+ const { businessId: k } = W(re()), { restaurants: N, warehouses: B } = Ie(), { currentReport: U, overviewReport: Q } = Be(), { selectedNavigationTab: G } = Qe();
18401
+ let Y = U == null ? void 0 : U.id, ne = (U == null ? void 0 : U.tiles) ?? [];
18402
+ G === "overview" && Q && (Y = Q == null ? void 0 : Q.id, ne = (Q == null ? void 0 : Q.tiles) ?? []);
18403
+ const se = ne.filter((X, _e) => typeof w == "number" ? _e === w : !0).map((X) => X.widget), ee = {
18404
+ fetchType: ie.Post,
18399
18405
  url: `/${k.value}/file`,
18400
18406
  data: {
18401
18407
  configs: [
18402
- ...oe.map((X, _e) => {
18403
- var le, ae, ce, ge;
18408
+ ...se.map((X, _e) => {
18409
+ var le, oe, fe, ge;
18404
18410
  return {
18405
18411
  requests: Me.getQueryRequests({
18406
18412
  widget: X,
18407
18413
  dateRange: [V.startDate, V.endDate],
18408
18414
  timeRange: [
18409
- fe().set("hour", Number((le = P.start) == null ? void 0 : le.hour)).set("minute", Number((ae = P.start) == null ? void 0 : ae.minute)).toISOString(),
18410
- fe().set("hour", Number((ce = P.end) == null ? void 0 : ce.hour)).set("minute", Number((ge = P.end) == null ? void 0 : ge.minute)).toISOString()
18415
+ $e().set("hour", Number((le = P.start) == null ? void 0 : le.hour)).set("minute", Number((oe = P.start) == null ? void 0 : oe.minute)).toISOString(),
18416
+ $e().set("hour", Number((fe = P.end) == null ? void 0 : fe.hour)).set("minute", Number((ge = P.end) == null ? void 0 : ge.minute)).toISOString()
18411
18417
  ],
18412
18418
  businessIds: k ? [k.value] : [],
18413
18419
  restaurantIds: H.filter(
18414
- (me) => N.find((ue) => ue.id === me)
18420
+ (me) => N.find((ce) => ce.id === me)
18415
18421
  ),
18416
18422
  warehouseIds: H.filter(
18417
- (me) => B.find((ue) => ue.id === me)
18423
+ (me) => B.find((ce) => ce.id === me)
18418
18424
  ),
18419
18425
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18420
18426
  }),
@@ -18433,8 +18439,8 @@ const wt = async ({
18433
18439
  responseType: "arraybuffer",
18434
18440
  timeout: 1e3 * 60 * 3
18435
18441
  }
18436
- }, { headers: ye, data: se } = await K.rawFetch(ee), $e = ye["content-disposition"].split("filename=")[1].replaceAll('"', ""), de = window.URL.createObjectURL(new Blob([new Uint8Array(se).buffer])), ne = document.createElement("a");
18437
- ne.href = de, ne.setAttribute("download", decodeURIComponent($e)), document.body.appendChild(ne), ne.click(), ne.remove();
18442
+ }, { headers: ue, data: te } = await K.rawFetch(ee), de = ue["content-disposition"].split("filename=")[1].replaceAll('"', ""), pe = window.URL.createObjectURL(new Blob([new Uint8Array(te).buffer])), ae = document.createElement("a");
18443
+ ae.href = pe, ae.setAttribute("download", decodeURIComponent(de)), document.body.appendChild(ae), ae.click(), ae.remove();
18438
18444
  }, vt = async ({
18439
18445
  emails: F,
18440
18446
  types: w,
@@ -18443,45 +18449,45 @@ const wt = async ({
18443
18449
  locationIds: P,
18444
18450
  orientationTypes: V
18445
18451
  }) => {
18446
- const { businessId: k } = W(te()), { currentReport: N, overviewReport: B } = Be(), { selectedNavigationTab: U } = Qe(), { restaurants: Q, warehouses: G } = Ie();
18452
+ const { businessId: k } = W(re()), { currentReport: N, overviewReport: B } = Be(), { selectedNavigationTab: U } = Qe(), { restaurants: Q, warehouses: G } = Ie();
18447
18453
  if (F.length === 0) {
18448
18454
  console.error("No email addresses provided.");
18449
18455
  return;
18450
18456
  }
18451
- let Y = (N == null ? void 0 : N.id) || "", ie = (N == null ? void 0 : N.name) || "", oe = (N == null ? void 0 : N.tiles) ?? [];
18452
- U === "overview" && B && (Y = B == null ? void 0 : B.id, ie = B.name, oe = (B == null ? void 0 : B.tiles) ?? []);
18453
- const ee = oe.map((se) => se.widget), ye = {
18457
+ let Y = (N == null ? void 0 : N.id) || "", ne = (N == null ? void 0 : N.name) || "", se = (N == null ? void 0 : N.tiles) ?? [];
18458
+ U === "overview" && B && (Y = B == null ? void 0 : B.id, ne = B.name, se = (B == null ? void 0 : B.tiles) ?? []);
18459
+ const ee = se.map((te) => te.widget), ue = {
18454
18460
  businessId: k.value,
18455
18461
  status: Ve.generating,
18456
18462
  dateRange: {
18457
18463
  start: J.startDate,
18458
18464
  end: J.endDate
18459
18465
  },
18460
- reportName: ie,
18466
+ reportName: ne,
18461
18467
  emails: F,
18462
- configs: ee.map((se, $e) => {
18463
- var de, ne, X, _e;
18468
+ configs: ee.map((te, de) => {
18469
+ var pe, ae, X, _e;
18464
18470
  return {
18465
18471
  requests: Me.getQueryRequests({
18466
- widget: se,
18472
+ widget: te,
18467
18473
  dateRange: [J.startDate, J.endDate],
18468
18474
  timeRange: [
18469
- fe().hour(Number((de = H.start) == null ? void 0 : de.hour)).minute(Number((ne = H.start) == null ? void 0 : ne.minute)).toISOString(),
18470
- fe().hour(Number((X = H.end) == null ? void 0 : X.hour)).minute(Number((_e = H.end) == null ? void 0 : _e.minute)).toISOString()
18475
+ $e().hour(Number((pe = H.start) == null ? void 0 : pe.hour)).minute(Number((ae = H.start) == null ? void 0 : ae.minute)).toISOString(),
18476
+ $e().hour(Number((X = H.end) == null ? void 0 : X.hour)).minute(Number((_e = H.end) == null ? void 0 : _e.minute)).toISOString()
18471
18477
  ],
18472
18478
  businessIds: k ? [k.value] : [],
18473
18479
  restaurantIds: P.filter(
18474
- (le) => Q.find((ae) => ae.id === le)
18480
+ (le) => Q.find((oe) => oe.id === le)
18475
18481
  ),
18476
18482
  warehouseIds: P.filter(
18477
- (le) => G.find((ae) => ae.id === le)
18483
+ (le) => G.find((oe) => oe.id === le)
18478
18484
  ),
18479
18485
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
18480
18486
  }),
18481
- index: $e,
18487
+ index: de,
18482
18488
  drillDimension: null,
18483
- ...Ge(se),
18484
- ...We(se)
18489
+ ...Ge(te),
18490
+ ...We(te)
18485
18491
  };
18486
18492
  }),
18487
18493
  reportId: Y,
@@ -18489,29 +18495,29 @@ const wt = async ({
18489
18495
  orientationTypes: V
18490
18496
  };
18491
18497
  await K.fetch({
18492
- fetchType: re.Post,
18498
+ fetchType: ie.Post,
18493
18499
  url: `/${k.value}/reports/email`,
18494
- data: ye,
18500
+ data: ue,
18495
18501
  requestConfig: { timeout: 1e3 * 60 * 3 }
18496
18502
  });
18497
18503
  }, Dt = async (F) => {
18498
- const { businessId: w } = W(te());
18504
+ const { businessId: w } = W(re());
18499
18505
  await K.fetch({
18500
- fetchType: re.Post,
18506
+ fetchType: ie.Post,
18501
18507
  url: `/${w.value}/reports/resend-email`,
18502
18508
  data: { jobId: F },
18503
18509
  requestConfig: { timeout: 1e3 * 60 * 3 }
18504
18510
  });
18505
18511
  }, Jt = async () => {
18506
- const { businessId: F } = W(te());
18512
+ const { businessId: F } = W(re());
18507
18513
  return await K.fetch({
18508
- fetchType: re.Get,
18514
+ fetchType: ie.Get,
18509
18515
  url: `/${F.value}/reports/email-recipients`
18510
18516
  });
18511
18517
  }, xt = async (F) => {
18512
- const { businessId: w } = W(te());
18518
+ const { businessId: w } = W(re());
18513
18519
  await K.fetch({
18514
- fetchType: re.Post,
18520
+ fetchType: ie.Post,
18515
18521
  url: `/${w.value}/reports/email-recipient/delete`,
18516
18522
  data: { email: F }
18517
18523
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.8.0-beta.1",
3
+ "version": "5.8.1-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],