@feedmepos/mf-report 5.5.2 → 5.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DV2tIlfp.js → App-Ds-SnsYH.js} +3 -3
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D2B8DhjZ.js → Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-kGhoVMo3.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.js} +1 -1
- package/dist/{InsightView-Bp-AdwGw.js → InsightView-CXYuVSpH.js} +2 -2
- package/dist/{Layout-C9bmLHpd.js → Layout-CVdEU9ys.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D8ZNNssv.js → MenuTab.vue_vue_type_script_setup_true_lang-DvYLquMC.js} +1 -1
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-cwqbHO4a.js → NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.js} +1 -1
- package/dist/{OverviewView-BVKQiPaP.js → OverviewView-B_HYkIRY.js} +4 -4
- package/dist/{Report-Dz1s_Mpp.js → Report-DZPR8ccC.js} +2 -2
- package/dist/{ReportEditor-B7RRDvOJ.js → ReportEditor-DGABNUfp.js} +3 -3
- package/dist/{ReportView-35tFkXjR.js → ReportView-BGWJ_OvV.js} +5 -5
- package/dist/{Setting-P48VeuON.js → Setting-O9eULs0H.js} +2 -2
- package/dist/{TileEditor-Dvusfkmw.js → TileEditor-BIb4cc9R.js} +3 -3
- package/dist/{TransitionFade-xPF94emM.js → TransitionFade-DJDFS-B_.js} +2 -2
- package/dist/app.js +9 -9
- package/dist/{v4-BBLMt_ee.js → v4-BX252AtO.js} +158 -154
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ import { defineComponent as O, resolveComponent as C, createBlock as T, openBloc
|
|
|
2
2
|
import { detectLocale as g, useCoreStore as b } from "@feedmepos/mf-common";
|
|
3
3
|
import { u as oe, d as F, a as re, b as ne, c as se, e as ae, f as le, g as ue } from "./global-loader-KvOGLx9k.js";
|
|
4
4
|
import { storeToRefs as B } from "pinia";
|
|
5
|
-
import { u as ie, a as ce } from "./v4-
|
|
5
|
+
import { u as ie, a as ce } from "./v4-BX252AtO.js";
|
|
6
6
|
import { u as me } from "./report-schema-Zw8e6-XZ.js";
|
|
7
|
-
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as de, u as ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.js";
|
|
8
8
|
import { u as U } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { useRoute as fe } from "vue-router";
|
|
10
10
|
const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge = /* @__PURE__ */ O({
|
|
@@ -96,7 +96,7 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
96
96
|
}), M(() => {
|
|
97
97
|
u(de);
|
|
98
98
|
}), j(() => {
|
|
99
|
-
console.log("5.5.
|
|
99
|
+
console.log("5.5.3", !0), window.addEventListener("message", R), window.addEventListener("message", L);
|
|
100
100
|
});
|
|
101
101
|
const V = ce(), D = ve();
|
|
102
102
|
ee(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as r, openBlock as s, normalizeStyle as l, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as x, renderSlot as g } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as w } from "pinia";
|
|
5
5
|
import { u as q, f as C } from "./global-loader-KvOGLx9k.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, useModel as O, computed as s, ref as F, resolveComponent as w, createElementBlock as L, openBlock as h, Fragment as W, renderSlot as G, createVNode as S, createElementVNode as k, toDisplayString as Z, unref as j, withCtx as B, createBlock as $, createCommentVNode as K, normalizeClass as le, normalizeStyle as _e, h as ge, renderList as Ce, mergeModels as Ee, watch as ae, onMounted as ze, onUnmounted as We, resolveDynamicComponent as He, withDirectives as Oe, vShow as qe } from "vue";
|
|
2
|
-
import { W as i, v as te, R as Ue, g as je, d as Ge, q as Je } from "./v4-
|
|
2
|
+
import { W as i, v as te, R as Ue, g as je, d as Ge, q as Je } from "./v4-BX252AtO.js";
|
|
3
3
|
import { u as ie, b as xe, a as ue } from "./global-loader-KvOGLx9k.js";
|
|
4
4
|
import { d as be } from "./index-CDf9QIwq.js";
|
|
5
5
|
import { storeToRefs as se } 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-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js";
|
|
6
6
|
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wgBB4qb8.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-KvOGLx9k.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-CDf9QIwq.js";
|
|
11
11
|
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
12
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.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-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.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-KvOGLx9k.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-
|
|
4
|
+
import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.js";
|
|
5
5
|
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wgBB4qb8.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) => w9(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import { defineComponent as Hr, computed as Tr, useModel as Ta, ref as Xe, watch as ua, resolveComponent as he, createBlock as Ye, unref as J, openBlock as oe, withCtx as Me, createElementVNode as pe, createVNode as K, toDisplayString as Er, withDirectives as zn, createElementBlock as je, Fragment as br, renderList as jr, vShow as u0, createTextVNode as qa, mergeModels as Cn, createCommentVNode as Ir, normalizeClass as jn, withModifiers as wo, resolveDynamicComponent as vh, onMounted as Bd, renderSlot as Ld, mergeProps as b9, nextTick as C9, withKeys as k9, vModelText as T9, normalizeStyle as E9, isRef as V0, createSlots as F9 } from "vue";
|
|
5
5
|
import { useRouter as Md, useRoute as Rd } from "vue-router";
|
|
6
6
|
import { storeToRefs as Ct, defineStore as tu } from "pinia";
|
|
7
|
-
import { a as Ri, R as Ds, g as bo, v as P9, d as S9, r as O9, b as xn, c as D9, e as I9, s as N9, u as V9 } from "./v4-
|
|
7
|
+
import { a as Ri, R as Ds, g as bo, v as P9, d as S9, r as O9, b as xn, c as D9, e as I9, s as N9, u as V9 } from "./v4-BX252AtO.js";
|
|
8
8
|
import { useBreakpoints as nl, components as h0, useSnackbar as Xi, FmButtonVariant as mh, useDialog as B9, useDialogChild as L9 } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as ja, i as au, j as il, a as Ua, F as Za, h as Ya, d as Qe, b as zi, k as Hi, l as M9, m as R9, e as X9, n as As } from "./global-loader-KvOGLx9k.js";
|
|
10
10
|
import { _ as xh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CXYvLXnR.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-
|
|
3
|
-
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as P } from "./v4-
|
|
2
|
+
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.js";
|
|
3
|
+
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js";
|
|
4
|
+
import { a as P } from "./v4-BX252AtO.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
6
|
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-DvYLquMC.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 ce, ref as O, watch as Q, computed as w, h as f, withModifiers as ie, resolveComponent as C, createBlock as T, openBlock as F, withCtx as i, createVNode as n, createElementVNode as y, unref as e, normalizeStyle as me, normalizeClass as _, withDirectives as B, createElementBlock as ue, Fragment as pe, renderList as de, toDisplayString as R, createTextVNode as fe, vShow as D } from "vue";
|
|
2
2
|
import { storeToRefs as W } from "pinia";
|
|
3
|
-
import { a as ve } from "./v4-
|
|
4
|
-
import { _ as ye } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { a as ve } from "./v4-BX252AtO.js";
|
|
4
|
+
import { _ as ye } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js";
|
|
5
5
|
import { u as ge } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { b as be, f as xe } from "./global-loader-KvOGLx9k.js";
|
|
7
7
|
import { useSnackbar as Ce, useBreakpoints as _e, components as he, FmButtonColorThemeVariant as ke } from "@feedmepos/ui-library";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as $, useModel as M, ref as N, computed as P, resolveComponent as c, createBlock as b, openBlock as s, withCtx as m, createElementVNode as C, createVNode as a, unref as o, normalizeClass as E, createTextVNode as fe, toDisplayString as O, createElementBlock as x, Fragment as q, renderSlot as j, createCommentVNode as U, watch as ve, resolveDynamicComponent as K, isRef as Q, renderList as H, onMounted as ge, normalizeStyle as _e } from "vue";
|
|
2
|
-
import { W as ye, i as Ce, S as be, d as Ve, T as ke, _ as Fe } from "./TransitionFade-
|
|
3
|
-
import { a as X, v as Y } from "./v4-
|
|
2
|
+
import { W as ye, i as Ce, S as be, d as Ve, T as ke, _ as Fe } from "./TransitionFade-DJDFS-B_.js";
|
|
3
|
+
import { a as X, v as Y } from "./v4-BX252AtO.js";
|
|
4
4
|
import { storeToRefs as Z } from "pinia";
|
|
5
5
|
import { useRouter as ee, useRoute as oe } from "vue-router";
|
|
6
6
|
import { useBreakpoints as A, FmButtonColorThemeVariant as W, useSnackbar as xe } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as te } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { _ as le } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as le } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.js";
|
|
9
9
|
import { _ as re } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
10
10
|
import { u as I, f as he } from "./global-loader-KvOGLx9k.js";
|
|
11
11
|
const we = /* @__PURE__ */ S({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as L, computed as v, resolveComponent as V, createBlock as g, openBlock as u, withCtx as z, createVNode as D, createElementVNode as H, unref as t, normalizeStyle as M, normalizeClass as R, createElementBlock as $, Fragment as Y, renderList as G } from "vue";
|
|
2
|
-
import { _ as Q } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as U } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as Q } from "./MenuTab.vue_vue_type_script_setup_true_lang-DvYLquMC.js";
|
|
3
|
+
import { _ as U } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.js";
|
|
4
4
|
import { useRouter as W, useRoute as K } from "vue-router";
|
|
5
|
-
import { _ as X } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { a as Z } from "./v4-
|
|
5
|
+
import { _ as X } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js";
|
|
6
|
+
import { a as Z } from "./v4-BX252AtO.js";
|
|
7
7
|
import { storeToRefs as p } from "pinia";
|
|
8
|
-
import { b as ee, c as oe, u as te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { b as ee, c as oe, u as te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.js";
|
|
9
9
|
import { _ as re } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
10
10
|
import { useSnackbar as ae, useBreakpoints as le } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as ne, f as ie, e as se } from "./global-loader-KvOGLx9k.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-
|
|
2
|
+
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-CJeWQMdJ.js";
|
|
3
3
|
import { u as U, d as z, C as A, D as pe, b as ce } from "./global-loader-KvOGLx9k.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-
|
|
5
|
+
import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-_Ws6qno4.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-CXYvLXnR.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as W, mergeModels as z, useModel as Y, computed as N, ref as A, resolveComponent as y, createElementBlock as L, openBlock as p, createVNode as d, createElementVNode as x, unref as i, withCtx as C, toDisplayString as I, Fragment as Q, renderList as se, withModifiers as ee, createTextVNode as ne, watch as re, createCommentVNode as T, createBlock as k, renderSlot as Ce, resolveDynamicComponent as _e, normalizeClass as Te, onMounted as Le, normalizeStyle as Be, isRef as Me } from "vue";
|
|
2
2
|
import { useRoute as Re, useRouter as je } from "vue-router";
|
|
3
|
-
import { h as Ee, d as ce, S as fe, W as Ae, a as qe, T as Pe, _ as He } from "./TransitionFade-
|
|
4
|
-
import { W as S, a as Je } from "./v4-
|
|
3
|
+
import { h as Ee, d as ce, S as fe, W as Ae, a as qe, T as Pe, _ as He } from "./TransitionFade-DJDFS-B_.js";
|
|
4
|
+
import { W as S, a as Je } from "./v4-BX252AtO.js";
|
|
5
5
|
import { storeToRefs as Ve } from "pinia";
|
|
6
6
|
import { u as Se } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { c as he, d as De, p as ze } from "./index-CDf9QIwq.js";
|
|
@@ -10,7 +10,7 @@ import { u as Ue } from "./report-schema-Zw8e6-XZ.js";
|
|
|
10
10
|
import { _ as ie } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
|
|
11
11
|
import { _ as H } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CXYvLXnR.js";
|
|
12
12
|
import { u as le, d as pe } from "./global-loader-KvOGLx9k.js";
|
|
13
|
-
import { g as de, _ as $e } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { g as de, _ as $e } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.js";
|
|
14
14
|
import { _ as Oe } from "./NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js";
|
|
15
15
|
var oe = /* @__PURE__ */ ((s) => (s.DateTime = "DATE_TIME", s.Hour = "HOUR", s.Day = "DAY", s.Week = "WEEK", s.Month = "MONTH", s.TimeOfDay = "TIME_OF_DAY", s.HourOfDay = "HOUR_OF_DAY", s.DayOfWeek = "DAY_OF_WEEK", s.DayOfMonth = "DAY_OF_MONTH", s.MonthOfYear = "MONTH_OF_YEAR", s.Year = "YEAR", s))(oe || {}), ge = /* @__PURE__ */ ((s) => (s.Asc = "ASC", s.Desc = "DESC", s))(ge || {}), Z = /* @__PURE__ */ ((s) => (s.Equal = "EQUAL", s.NotEqual = "NOT_EQUAL", s.GreaterThan = "GREATER_THAN", s.LessThan = "LESS_THAN", s.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", s.LessThanOrEqual = "LESS_THAN_OR_EQUAL", s.Between = "BETWEEN", s.Like = "LIKE", s.NotLike = "NOT_LIKE", s.And = "AND", s.Or = "OR", s))(Z || {}), te = /* @__PURE__ */ ((s) => (s.String = "STRING", s.Timestamp = "TIMESTAMP", s.Bool = "BOOL", s.Numeric = "NUMERIC", s))(te || {});
|
|
16
16
|
const we = [
|
|
@@ -3,10 +3,10 @@ import { u as Xt, f as wn } from "./global-loader-KvOGLx9k.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-
|
|
6
|
+
import { W as x } from "./v4-BX252AtO.js";
|
|
7
7
|
import { p as Cn } from "./index-CDf9QIwq.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-
|
|
9
|
+
import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DnF2zN4s.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
|
@@ -1345,41 +1345,41 @@ const r = {
|
|
|
1345
1345
|
path: "/overview",
|
|
1346
1346
|
alias: ["/"],
|
|
1347
1347
|
name: "overview",
|
|
1348
|
-
component: () => import("./OverviewView-
|
|
1348
|
+
component: () => import("./OverviewView-B_HYkIRY.js")
|
|
1349
1349
|
},
|
|
1350
1350
|
{
|
|
1351
1351
|
path: "/report",
|
|
1352
1352
|
name: "reports",
|
|
1353
|
-
component: () => import("./Report-
|
|
1353
|
+
component: () => import("./Report-DZPR8ccC.js")
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
path: "/insights",
|
|
1357
1357
|
name: "insights",
|
|
1358
|
-
component: () => import("./InsightView-
|
|
1358
|
+
component: () => import("./InsightView-CXYuVSpH.js")
|
|
1359
1359
|
},
|
|
1360
1360
|
{
|
|
1361
1361
|
path: "/report-view",
|
|
1362
1362
|
name: "reportView",
|
|
1363
|
-
component: () => import("./ReportView-
|
|
1363
|
+
component: () => import("./ReportView-BGWJ_OvV.js")
|
|
1364
1364
|
},
|
|
1365
1365
|
{
|
|
1366
1366
|
path: "/report-editor",
|
|
1367
1367
|
name: "reportEditor",
|
|
1368
|
-
component: () => import("./ReportEditor-
|
|
1368
|
+
component: () => import("./ReportEditor-DGABNUfp.js")
|
|
1369
1369
|
},
|
|
1370
1370
|
{
|
|
1371
1371
|
path: "/report-editor/tile-editor",
|
|
1372
1372
|
name: "tileEditor",
|
|
1373
|
-
component: () => import("./TileEditor-
|
|
1373
|
+
component: () => import("./TileEditor-BIb4cc9R.js")
|
|
1374
1374
|
},
|
|
1375
1375
|
{
|
|
1376
1376
|
path: "/setting",
|
|
1377
1377
|
name: "setting",
|
|
1378
|
-
component: () => import("./Setting-
|
|
1378
|
+
component: () => import("./Setting-O9eULs0H.js")
|
|
1379
1379
|
},
|
|
1380
1380
|
{
|
|
1381
1381
|
path: "/integration",
|
|
1382
|
-
component: () => import("./Layout-
|
|
1382
|
+
component: () => import("./Layout-CVdEU9ys.js"),
|
|
1383
1383
|
children: [
|
|
1384
1384
|
{
|
|
1385
1385
|
name: "integrations",
|
|
@@ -1412,7 +1412,7 @@ const p = {
|
|
|
1412
1412
|
"en-US": a,
|
|
1413
1413
|
"zh-CN": i,
|
|
1414
1414
|
"th-TH": c
|
|
1415
|
-
}, u = e(() => import("./App-
|
|
1415
|
+
}, u = e(() => import("./App-Ds-SnsYH.js"));
|
|
1416
1416
|
export {
|
|
1417
1417
|
u as FmApp,
|
|
1418
1418
|
p as i18nMessages,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as xe, a as te, F as re, h as X, b as
|
|
2
|
-
import { storeToRefs as
|
|
1
|
+
import { j as xe, a as te, F as re, h as X, b as Ie, c as ke, n as Ye, d as fe, e as je, k as ze } from "./global-loader-KvOGLx9k.js";
|
|
2
|
+
import { storeToRefs as Y, defineStore as He } from "pinia";
|
|
3
3
|
import { ref as K, computed as Ae, h as Ke, watch as Xe } from "vue";
|
|
4
4
|
import { useSnackbar as Ze, components as et } from "@feedmepos/ui-library";
|
|
5
5
|
import { useRouter as tt } from "vue-router";
|
|
6
6
|
function qe(O) {
|
|
7
7
|
throw new Error('Could not dynamically require "' + O + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var Me = {};
|
|
10
10
|
(function(O) {
|
|
11
11
|
var J = typeof xe < "u" ? xe : window, w = Object.create(J);
|
|
12
12
|
w.scheduleImmediate = typeof setImmediate < "u" ? function(q) {
|
|
@@ -34,12 +34,12 @@ var Ie = {};
|
|
|
34
34
|
function q() {
|
|
35
35
|
try {
|
|
36
36
|
throw new Error();
|
|
37
|
-
} catch (
|
|
38
|
-
var N =
|
|
37
|
+
} catch (V) {
|
|
38
|
+
var N = V.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
|
|
39
39
|
do {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
} while (
|
|
40
|
+
var G = B.exec(N);
|
|
41
|
+
G != null && (Q = G);
|
|
42
|
+
} while (G != null);
|
|
43
43
|
return Q[1];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -94,7 +94,7 @@ var Ie = {};
|
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
96
|
}();
|
|
97
|
-
function
|
|
97
|
+
function G(r, e) {
|
|
98
98
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
99
99
|
if (Q) {
|
|
100
100
|
r.prototype.__proto__ = e.prototype;
|
|
@@ -104,17 +104,17 @@ var Ie = {};
|
|
|
104
104
|
P(r.prototype, i), r.prototype = i;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function V(r, e) {
|
|
108
108
|
for (var i = 0; i < e.length; i++)
|
|
109
|
-
|
|
109
|
+
G(e[i], r);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function W(r, e) {
|
|
112
112
|
B(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ae(r, e) {
|
|
115
115
|
N(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
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() {
|
|
@@ -131,7 +131,7 @@ var Ie = {};
|
|
|
131
131
|
return s;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Z(r, e, i, n) {
|
|
135
135
|
var a = r;
|
|
136
136
|
r[e] = a, r[i] = function() {
|
|
137
137
|
return r[e] === a && (r[e] = n()), r[i] = function() {
|
|
@@ -139,7 +139,7 @@ var Ie = {};
|
|
|
139
139
|
}, r[e];
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ee(r, e, i, n) {
|
|
143
143
|
var a = r;
|
|
144
144
|
r[e] = a, r[i] = function() {
|
|
145
145
|
if (r[e] === a) {
|
|
@@ -152,7 +152,7 @@ var Ie = {};
|
|
|
152
152
|
}, l;
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function de(r) {
|
|
156
156
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
157
157
|
}
|
|
158
158
|
function ie(r) {
|
|
@@ -162,7 +162,7 @@ var Ie = {};
|
|
|
162
162
|
for (var e = 0; e < r.length; ++e)
|
|
163
163
|
r[e];
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function le(r, e) {
|
|
166
166
|
var i = null;
|
|
167
167
|
return r ? function(n) {
|
|
168
168
|
return i === null && (i = t.closureFromTearOff(e)), new i(n, this);
|
|
@@ -170,23 +170,23 @@ var Ie = {};
|
|
|
170
170
|
return i === null && (i = t.closureFromTearOff(e)), new i(this, null);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function _e(r) {
|
|
174
174
|
var e = null;
|
|
175
175
|
return function() {
|
|
176
176
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return typeof _ == "number" && (_ +=
|
|
179
|
+
var ue = 0;
|
|
180
|
+
function oe(r, e, i, n, a, s, l, _, d, c) {
|
|
181
|
+
return typeof _ == "number" && (_ += ue), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
var d =
|
|
183
|
+
function ce(r, e, i, n, a, s, l, _) {
|
|
184
|
+
var d = oe(r, !0, !1, i, n, a, s, l, _, !1), c = _e(d);
|
|
185
185
|
r[e] = c;
|
|
186
186
|
}
|
|
187
187
|
function ye(r, e, i, n, a, s, l, _, d, c) {
|
|
188
188
|
i = !!i;
|
|
189
|
-
var p =
|
|
189
|
+
var p = oe(r, !1, i, n, a, s, l, _, d, !!c), $ = le(i, p);
|
|
190
190
|
r[e] = $;
|
|
191
191
|
}
|
|
192
192
|
function he(r) {
|
|
@@ -219,10 +219,10 @@ var Ie = {};
|
|
|
219
219
|
};
|
|
220
220
|
}, e = function(i, n, a, s) {
|
|
221
221
|
return function(l, _, d, c) {
|
|
222
|
-
return
|
|
222
|
+
return ce(l, _, i, n, a, [d], c, s);
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
return { inherit:
|
|
225
|
+
return { inherit: G, inheritMany: V, mixin: W, mixinHard: ae, installStaticTearOff: ce, installInstanceTearOff: ye, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: de, lazy: Z, lazyFinal: ee, lazyOld: se, updateHolder: ge, convertToFastObject: ie, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
|
|
226
226
|
}(), t = {
|
|
227
227
|
JS_CONST: function() {
|
|
228
228
|
},
|
|
@@ -8342,10 +8342,10 @@ Arguments: [` + d + "]";
|
|
|
8342
8342
|
$signature: 1
|
|
8343
8343
|
}, t.flattenItemSchema_closure.prototype = {
|
|
8344
8344
|
call$1(r) {
|
|
8345
|
-
var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", F = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", H = "customAttributes",
|
|
8345
|
+
var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", F = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", H = "customAttributes", pe = "layerZeroParentId";
|
|
8346
8346
|
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", i, i, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", n, n, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
8347
8347
|
`, !1, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
8348
|
-
`, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", F, F, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", H, H, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID",
|
|
8348
|
+
`, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", F, F, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, !1, "Custom attributes", H, H, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", 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);
|
|
8349
8349
|
},
|
|
8350
8350
|
$signature: 0
|
|
8351
8351
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -9822,8 +9822,8 @@ Arguments: [` + d + "]";
|
|
|
9822
9822
|
return n.message;
|
|
9823
9823
|
}
|
|
9824
9824
|
}())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List__create1(t._ensureNativeList(t._setArrayType([1], y.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", u.List_BC_AD, u.List_6xs, u.List_qpm, u.List_qpm, u.List_cIc, u.List_cIc, u.List_h8w, u.List_h8w, u.List_wMy, u.List_wMy, u.List_gc6, u.List_gc6, u.List_3US, u.List_AM_PM)), i(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), i(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'"), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''")), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+")), i(S, "_availableLocales", "$get$_availableLocales", () => {
|
|
9825
|
-
var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), H = t.DeLocale$(u.StartOfWeek_2),
|
|
9826
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", F, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", H, "de_ch",
|
|
9825
|
+
var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), H = t.DeLocale$(u.StartOfWeek_2), 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), ve = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), we = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
|
|
9826
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", F, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", H, "de_ch", pe, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", ve, "ar_ma", De, "ar_tn", we, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
|
|
9827
9827
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
9828
9828
|
var n = "createdAt", a = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], y.JSArray_Permission), n);
|
|
9829
9829
|
return t.Schema_Schema$build(t._setArrayType(["restaurantId"], y.JSArray_String), null, new t.addonFlattenItemSchema_closure(), u.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.SCHEMA_NAME_6, n, "", a, s);
|
|
@@ -10097,7 +10097,7 @@ Arguments: [` + d + "]";
|
|
|
10097
10097
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
10098
10098
|
});
|
|
10099
10099
|
})();
|
|
10100
|
-
})(
|
|
10100
|
+
})(Me);
|
|
10101
10101
|
var Ue = {};
|
|
10102
10102
|
(function(O) {
|
|
10103
10103
|
O.load = function(J, w) {
|
|
@@ -10121,13 +10121,13 @@ var Ue = {};
|
|
|
10121
10121
|
function P() {
|
|
10122
10122
|
try {
|
|
10123
10123
|
throw new Error();
|
|
10124
|
-
} catch (
|
|
10125
|
-
var B =
|
|
10124
|
+
} catch (W) {
|
|
10125
|
+
var B = W.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), G = null;
|
|
10126
10126
|
do {
|
|
10127
|
-
var
|
|
10128
|
-
|
|
10129
|
-
} while (
|
|
10130
|
-
return
|
|
10127
|
+
var V = Q.exec(B);
|
|
10128
|
+
V != null && (G = V);
|
|
10129
|
+
} while (V != null);
|
|
10130
|
+
return G[1];
|
|
10131
10131
|
}
|
|
10132
10132
|
}
|
|
10133
10133
|
var N = null;
|
|
@@ -10162,7 +10162,7 @@ var Ue = {};
|
|
|
10162
10162
|
function Q(e, i) {
|
|
10163
10163
|
Object.assign(i, e);
|
|
10164
10164
|
}
|
|
10165
|
-
var
|
|
10165
|
+
var G = function() {
|
|
10166
10166
|
var e = function() {
|
|
10167
10167
|
};
|
|
10168
10168
|
e.prototype = { p: {} };
|
|
@@ -10181,9 +10181,9 @@ var Ue = {};
|
|
|
10181
10181
|
}
|
|
10182
10182
|
return !1;
|
|
10183
10183
|
}();
|
|
10184
|
-
function
|
|
10184
|
+
function V(e, i) {
|
|
10185
10185
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, i != null) {
|
|
10186
|
-
if (
|
|
10186
|
+
if (G) {
|
|
10187
10187
|
e.prototype.__proto__ = i.prototype;
|
|
10188
10188
|
return;
|
|
10189
10189
|
}
|
|
@@ -10191,17 +10191,17 @@ var Ue = {};
|
|
|
10191
10191
|
N(e.prototype, n), e.prototype = n;
|
|
10192
10192
|
}
|
|
10193
10193
|
}
|
|
10194
|
-
function
|
|
10194
|
+
function W(e, i) {
|
|
10195
10195
|
for (var n = 0; n < i.length; n++)
|
|
10196
|
-
|
|
10196
|
+
V(i[n], e);
|
|
10197
10197
|
}
|
|
10198
|
-
function
|
|
10198
|
+
function ae(e, i) {
|
|
10199
10199
|
Q(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10200
10200
|
}
|
|
10201
|
-
function
|
|
10201
|
+
function se(e, i) {
|
|
10202
10202
|
B(i.prototype, e.prototype), e.prototype.constructor = e;
|
|
10203
10203
|
}
|
|
10204
|
-
function
|
|
10204
|
+
function Z(e, i, n, a) {
|
|
10205
10205
|
var s = e;
|
|
10206
10206
|
e[i] = s, e[n] = function() {
|
|
10207
10207
|
e[n] = function() {
|
|
@@ -10218,7 +10218,7 @@ var Ue = {};
|
|
|
10218
10218
|
return l;
|
|
10219
10219
|
};
|
|
10220
10220
|
}
|
|
10221
|
-
function
|
|
10221
|
+
function ee(e, i, n, a) {
|
|
10222
10222
|
var s = e;
|
|
10223
10223
|
e[i] = s, e[n] = function() {
|
|
10224
10224
|
return e[i] === s && (e[i] = a()), e[n] = function() {
|
|
@@ -10226,7 +10226,7 @@ var Ue = {};
|
|
|
10226
10226
|
}, e[i];
|
|
10227
10227
|
};
|
|
10228
10228
|
}
|
|
10229
|
-
function
|
|
10229
|
+
function de(e, i, n, a) {
|
|
10230
10230
|
var s = e;
|
|
10231
10231
|
e[i] = s, e[n] = function() {
|
|
10232
10232
|
if (e[i] === s) {
|
|
@@ -10245,11 +10245,11 @@ var Ue = {};
|
|
|
10245
10245
|
function ne(e) {
|
|
10246
10246
|
return e;
|
|
10247
10247
|
}
|
|
10248
|
-
function
|
|
10248
|
+
function le(e) {
|
|
10249
10249
|
for (var i = 0; i < e.length; ++i)
|
|
10250
10250
|
e[i];
|
|
10251
10251
|
}
|
|
10252
|
-
function
|
|
10252
|
+
function _e(e, i) {
|
|
10253
10253
|
var n = null;
|
|
10254
10254
|
return e ? function(a) {
|
|
10255
10255
|
return n === null && (n = o.closureFromTearOff(i)), new n(a, this);
|
|
@@ -10257,23 +10257,23 @@ var Ue = {};
|
|
|
10257
10257
|
return n === null && (n = o.closureFromTearOff(i)), new n(this, null);
|
|
10258
10258
|
};
|
|
10259
10259
|
}
|
|
10260
|
-
function
|
|
10260
|
+
function ue(e) {
|
|
10261
10261
|
var i = null;
|
|
10262
10262
|
return function() {
|
|
10263
10263
|
return i === null && (i = o.closureFromTearOff(e).prototype), i;
|
|
10264
10264
|
};
|
|
10265
10265
|
}
|
|
10266
|
-
var
|
|
10267
|
-
function
|
|
10268
|
-
return typeof d == "number" && (d +=
|
|
10266
|
+
var oe = 0;
|
|
10267
|
+
function ce(e, i, n, a, s, l, _, d, c, p) {
|
|
10268
|
+
return typeof d == "number" && (d += oe), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: p };
|
|
10269
10269
|
}
|
|
10270
10270
|
function ye(e, i, n, a, s, l, _, d) {
|
|
10271
|
-
var c =
|
|
10271
|
+
var c = ce(e, !0, !1, n, a, s, l, _, d, !1), p = ue(c);
|
|
10272
10272
|
e[i] = p;
|
|
10273
10273
|
}
|
|
10274
10274
|
function he(e, i, n, a, s, l, _, d, c, p) {
|
|
10275
10275
|
n = !!n;
|
|
10276
|
-
var $ =
|
|
10276
|
+
var $ = ce(e, !1, n, a, s, l, _, d, c, !!p), g = _e(n, $);
|
|
10277
10277
|
e[i] = g;
|
|
10278
10278
|
}
|
|
10279
10279
|
function Te(e) {
|
|
@@ -10309,7 +10309,7 @@ var Ue = {};
|
|
|
10309
10309
|
return ye(_, d, n, a, s, [c], p, l);
|
|
10310
10310
|
};
|
|
10311
10311
|
};
|
|
10312
|
-
return { inherit:
|
|
10312
|
+
return { inherit: V, inheritMany: W, mixin: ae, mixinHard: se, installStaticTearOff: ye, installInstanceTearOff: he, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: ie, lazy: ee, lazyFinal: de, lazyOld: Z, updateHolder: j, convertToFastObject: ne, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
|
|
10313
10313
|
}(), o = {
|
|
10314
10314
|
JS_CONST: function() {
|
|
10315
10315
|
},
|
|
@@ -11852,7 +11852,7 @@ var Ue = {};
|
|
|
11852
11852
|
return c === 12 ? i === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, i, n, a, s) : _ === 9 ? c !== 9 ? !1 : o._isInterfaceSubtype(e, i, n, a, s) : (l = _ === 11, l && a === r.Record ? !0 : l && c === 11 ? o._isRecordSubtype(e, i, n, a, s) : !1);
|
|
11853
11853
|
},
|
|
11854
11854
|
_isFunctionSubtype(e, i, n, a, s) {
|
|
11855
|
-
var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H,
|
|
11855
|
+
var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H, pe;
|
|
11856
11856
|
if (!o._isSubtype(e, i._primary, n, a._primary, s) || (l = i._rest, _ = a._rest, d = l._requiredPositional, c = _._requiredPositional, p = d.length, $ = c.length, p > $) || (g = $ - p, m = l._optionalPositional, h = _._optionalPositional, A = m.length, E = h.length, p + A < $ + E))
|
|
11857
11857
|
return !1;
|
|
11858
11858
|
for (M = 0; M < p; ++M)
|
|
@@ -11868,12 +11868,12 @@ var Ue = {};
|
|
|
11868
11868
|
for (x = C[v]; ; ) {
|
|
11869
11869
|
if (L >= F || (H = R[L], L += 3, x < H))
|
|
11870
11870
|
return !1;
|
|
11871
|
-
if (
|
|
11872
|
-
if (
|
|
11871
|
+
if (pe = R[L - 2], H < x) {
|
|
11872
|
+
if (pe)
|
|
11873
11873
|
return !1;
|
|
11874
11874
|
continue;
|
|
11875
11875
|
}
|
|
11876
|
-
if (b = C[v + 1],
|
|
11876
|
+
if (b = C[v + 1], pe && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
|
|
11877
11877
|
return !1;
|
|
11878
11878
|
break;
|
|
11879
11879
|
}
|
|
@@ -17917,8 +17917,8 @@ Arguments: [` + c + "]";
|
|
|
17917
17917
|
return a.message;
|
|
17918
17918
|
}
|
|
17919
17919
|
}())), i(T, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => o.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$")), i(T, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(f.Type_Object_xQ6)), i(T, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List__create1(o._ensureNativeList(o._setArrayType([1], r.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? f.C_Endian0 : f.C_Endian), i(T, "_clockKey", "$get$_clockKey", () => new o.Object()), i(T, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", f.List_BC_AD, f.List_6xs, f.List_qpm, f.List_qpm, f.List_cIc, f.List_cIc, f.List_h8w, f.List_h8w, f.List_wMy, f.List_wMy, f.List_gc6, f.List_gc6, f.List_3US, f.List_Q1_Q2_Q3_Q4, f.List_bJM, f.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", f.Map_EQ6TW)), i(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), i(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'"), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], o.findType("JSArray<RegExp>"))), i(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''")), i(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+")), n(T, "_availableLocales", "$get$_availableLocales", () => {
|
|
17920
|
-
var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), F = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1), x = o.DeLocale$(f.StartOfWeek_2), H = o.DeLocale$(f.StartOfWeek_2),
|
|
17921
|
-
return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", F, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", H, "de_at",
|
|
17920
|
+
var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), F = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1), x = o.DeLocale$(f.StartOfWeek_2), H = o.DeLocale$(f.StartOfWeek_2), pe = o.DeLocale$(f.StartOfWeek_2), Ce = o.DeLocale$(f.StartOfWeek_2), be = o.ItLocale$(f.StartOfWeek_2), Re = o.ItLocale$(f.StartOfWeek_2), Fe = o.ArLyLocale$(!0, f.StartOfWeek_0), Oe = o.ArLyLocale$(!1, f.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), We = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
|
|
17921
|
+
return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", F, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", H, "de_at", pe, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", ve, "ar_sa", De, "ar_ma", we, "ar_tn", We, "az", new o.AzLocale(f.StartOfWeek_2), "id", new o.IdLocale(f.StartOfWeek_1), "ja", new o.JaLocale(f.StartOfWeek_1), "ko", new o.KoLocale(f.StartOfWeek_1), "ru", new o.RuLocale(f.StartOfWeek_2), "uk", new o.UkLocale(f.StartOfWeek_2), "hi", new o.HiLocale(f.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(f.StartOfWeek_2), "tr", new o.TrLocale(f.StartOfWeek_2), "sv", new o.SvLocale(f.StartOfWeek_2), "nb", new o.NbLocale(f.StartOfWeek_2), "fa", new o.FaLocale(f.StartOfWeek_0), "bn", new o.BnLocale(f.StartOfWeek_1), "nl", new o.NlLocale(f.StartOfWeek_2), "th", new o.ThLocale(f.StartOfWeek_1)], r.String, o.findType("Locale"));
|
|
17922
17922
|
});
|
|
17923
17923
|
}(), function() {
|
|
17924
17924
|
(function() {
|
|
@@ -17950,7 +17950,7 @@ Arguments: [` + c + "]";
|
|
|
17950
17950
|
return this(e, i, n, a, s, l, _, d);
|
|
17951
17951
|
}, Function.prototype.call$3 = function(e, i, n) {
|
|
17952
17952
|
return this(e, i, n);
|
|
17953
|
-
},
|
|
17953
|
+
}, le(S), function(e) {
|
|
17954
17954
|
if (typeof document > "u") {
|
|
17955
17955
|
e(null);
|
|
17956
17956
|
return;
|
|
@@ -17991,7 +17991,7 @@ function Mt(O) {
|
|
|
17991
17991
|
}
|
|
17992
17992
|
}
|
|
17993
17993
|
const Se = "/report-settings", nt = async () => {
|
|
17994
|
-
const { businessId: O } =
|
|
17994
|
+
const { businessId: O } = Y(te());
|
|
17995
17995
|
if (O) {
|
|
17996
17996
|
const J = {
|
|
17997
17997
|
fetchType: re.Get,
|
|
@@ -18001,34 +18001,34 @@ const Se = "/report-settings", nt = async () => {
|
|
|
18001
18001
|
} else
|
|
18002
18002
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18003
18003
|
}, at = (O) => {
|
|
18004
|
-
const { businessId: J } =
|
|
18004
|
+
const { businessId: J } = Y(te()), w = {
|
|
18005
18005
|
fetchType: re.Put,
|
|
18006
18006
|
url: `${Se}/${J.value}/reports/${O.id}`,
|
|
18007
18007
|
data: O
|
|
18008
18008
|
};
|
|
18009
18009
|
return X.fetch(w);
|
|
18010
18010
|
}, ot = (O) => {
|
|
18011
|
-
const { businessId: J } =
|
|
18011
|
+
const { businessId: J } = Y(te()), w = {
|
|
18012
18012
|
fetchType: re.Post,
|
|
18013
18013
|
url: `${Se}/${J.value}/reports`,
|
|
18014
18014
|
data: O
|
|
18015
18015
|
};
|
|
18016
18016
|
return X.fetch(w);
|
|
18017
18017
|
}, st = (O) => {
|
|
18018
|
-
const { businessId: J } =
|
|
18018
|
+
const { businessId: J } = Y(te()), w = {
|
|
18019
18019
|
fetchType: re.Delete,
|
|
18020
18020
|
url: `${Se}/${J.value}/reports/${O.id}`
|
|
18021
18021
|
};
|
|
18022
18022
|
return X.fetch(w);
|
|
18023
18023
|
}, lt = (O) => {
|
|
18024
|
-
const { businessId: J } =
|
|
18024
|
+
const { businessId: J } = Y(te()), w = {
|
|
18025
18025
|
fetchType: re.Put,
|
|
18026
18026
|
url: `${Se}/${J.value}/reports/default`,
|
|
18027
18027
|
data: { defaultReport: O }
|
|
18028
18028
|
};
|
|
18029
18029
|
return X.fetch(w);
|
|
18030
18030
|
}, _t = async () => {
|
|
18031
|
-
const { businessId: O } =
|
|
18031
|
+
const { businessId: O } = Y(te());
|
|
18032
18032
|
if (O) {
|
|
18033
18033
|
const J = {
|
|
18034
18034
|
fetchType: re.Get,
|
|
@@ -18038,7 +18038,7 @@ const Se = "/report-settings", nt = async () => {
|
|
|
18038
18038
|
} else
|
|
18039
18039
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18040
18040
|
}, ut = async () => {
|
|
18041
|
-
const { businessId: O } =
|
|
18041
|
+
const { businessId: O } = Y(te());
|
|
18042
18042
|
if (O) {
|
|
18043
18043
|
const J = {
|
|
18044
18044
|
fetchType: re.Get,
|
|
@@ -18048,7 +18048,7 @@ const Se = "/report-settings", nt = async () => {
|
|
|
18048
18048
|
} else
|
|
18049
18049
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18050
18050
|
}, dt = "/report-settings", ct = async () => {
|
|
18051
|
-
const { businessId: O } =
|
|
18051
|
+
const { businessId: O } = Y(te());
|
|
18052
18052
|
if (O) {
|
|
18053
18053
|
const J = {
|
|
18054
18054
|
fetchType: re.Get,
|
|
@@ -18058,7 +18058,7 @@ const Se = "/report-settings", nt = async () => {
|
|
|
18058
18058
|
} else
|
|
18059
18059
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
18060
18060
|
}, pt = (O) => {
|
|
18061
|
-
const { businessId: J } =
|
|
18061
|
+
const { businessId: J } = Y(te()), w = {
|
|
18062
18062
|
fetchType: re.Post,
|
|
18063
18063
|
url: `/report-settings/${J.value}/date-settings`,
|
|
18064
18064
|
data: {
|
|
@@ -18067,17 +18067,17 @@ const Se = "/report-settings", nt = async () => {
|
|
|
18067
18067
|
};
|
|
18068
18068
|
return X.fetch(w);
|
|
18069
18069
|
};
|
|
18070
|
-
function
|
|
18070
|
+
function Je(O, J = {}) {
|
|
18071
18071
|
const w = localStorage.getItem(O);
|
|
18072
18072
|
return w === null && (J == null ? void 0 : J.fallback) !== void 0 ? J.fallback : w === null ? null : J.format ? J.format(w) : w;
|
|
18073
18073
|
}
|
|
18074
18074
|
const me = {
|
|
18075
|
-
get:
|
|
18076
|
-
getJson: (O) =>
|
|
18075
|
+
get: Je,
|
|
18076
|
+
getJson: (O) => Je(O, {
|
|
18077
18077
|
fallback: {},
|
|
18078
18078
|
format: (J) => JSON.parse(J)
|
|
18079
18079
|
}),
|
|
18080
|
-
getNumber: (O) =>
|
|
18080
|
+
getNumber: (O) => Je(O, {
|
|
18081
18081
|
fallback: null,
|
|
18082
18082
|
format: (J) => Number(J)
|
|
18083
18083
|
}),
|
|
@@ -18086,16 +18086,16 @@ const me = {
|
|
|
18086
18086
|
localStorage.setItem(O, JSON.stringify(J));
|
|
18087
18087
|
}
|
|
18088
18088
|
}, ft = "mf-reportreport-store", Qe = He(ft, () => {
|
|
18089
|
-
const { business: O } =
|
|
18089
|
+
const { business: O } = Y(Ie()), { flags: J } = Y(ke()), w = K([]), U = K([]), k = K(0), q = Ze(), P = Ae(() => w.value.filter((f) => f.editable)), N = Ae(() => w.value.filter((f) => !f.editable)), B = K(!1), Q = K(""), G = K(), V = K(), W = Ae(() => {
|
|
18090
18090
|
const f = J.value.find(
|
|
18091
18091
|
(S) => S.key === Ye.report_portal_integration_custom_report
|
|
18092
18092
|
);
|
|
18093
18093
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
18094
|
-
}),
|
|
18095
|
-
async function
|
|
18096
|
-
return
|
|
18094
|
+
}), ae = Ae(() => W.value === null ? !0 : W.value - P.value.length > 0);
|
|
18095
|
+
async function se() {
|
|
18096
|
+
return V.value = await _t(), V.value;
|
|
18097
18097
|
}
|
|
18098
|
-
async function
|
|
18098
|
+
async function Z() {
|
|
18099
18099
|
var f;
|
|
18100
18100
|
try {
|
|
18101
18101
|
w.value = await nt(), U.value = await ct(), w.value.find((T) => T.id === Q.value) || (Q.value = ((f = w.value.find((T) => T.isDefault)) == null ? void 0 : f.id) || w.value[0].id);
|
|
@@ -18107,10 +18107,10 @@ const me = {
|
|
|
18107
18107
|
});
|
|
18108
18108
|
}
|
|
18109
18109
|
}
|
|
18110
|
-
const
|
|
18110
|
+
const ee = Ae(
|
|
18111
18111
|
() => w.value.find((f) => f.id === Q.value)
|
|
18112
|
-
),
|
|
18113
|
-
async function
|
|
18112
|
+
), de = K(), ie = K(0), ne = K(), le = K(!1), _e = K(!1), ue = K(!1);
|
|
18113
|
+
async function oe(f) {
|
|
18114
18114
|
if (P.value.findIndex((T) => T.id === f.id) >= 0) {
|
|
18115
18115
|
const T = await at(f);
|
|
18116
18116
|
Q.value = T.id;
|
|
@@ -18118,16 +18118,16 @@ const me = {
|
|
|
18118
18118
|
const T = await ot(f);
|
|
18119
18119
|
Q.value = T.id;
|
|
18120
18120
|
}
|
|
18121
|
-
await
|
|
18121
|
+
await Z();
|
|
18122
18122
|
}
|
|
18123
|
-
async function
|
|
18123
|
+
async function ce(f) {
|
|
18124
18124
|
return await pt(f);
|
|
18125
18125
|
}
|
|
18126
18126
|
async function ye(f) {
|
|
18127
|
-
await st(f), await
|
|
18127
|
+
await st(f), await Z();
|
|
18128
18128
|
}
|
|
18129
18129
|
async function he(f) {
|
|
18130
|
-
await lt(f), await
|
|
18130
|
+
await lt(f), await Z();
|
|
18131
18131
|
}
|
|
18132
18132
|
function Te(f) {
|
|
18133
18133
|
w.value.findIndex((T) => T.id === f) !== -1 && (Q.value = f);
|
|
@@ -18164,12 +18164,12 @@ const me = {
|
|
|
18164
18164
|
const f = me.getJson("feedback");
|
|
18165
18165
|
if (!f[O.value._id])
|
|
18166
18166
|
f[O.value._id] = {
|
|
18167
|
-
date:
|
|
18167
|
+
date: fe().local().format("YYYY-MM-DD"),
|
|
18168
18168
|
feedback: !1
|
|
18169
18169
|
};
|
|
18170
18170
|
else {
|
|
18171
|
-
const S =
|
|
18172
|
-
Math.abs(S.diff(
|
|
18171
|
+
const S = fe(f[O.value._id].date).local();
|
|
18172
|
+
Math.abs(S.diff(fe().endOf("day").local(), "d")) >= 1 && !f[O.value._id].feedback && (_e.value = !0);
|
|
18173
18173
|
}
|
|
18174
18174
|
me.setJson("feedback", f);
|
|
18175
18175
|
}
|
|
@@ -18178,40 +18178,40 @@ const me = {
|
|
|
18178
18178
|
return await ut();
|
|
18179
18179
|
}
|
|
18180
18180
|
return {
|
|
18181
|
-
isOpenDownloadDialog:
|
|
18182
|
-
isOpenFeedbackDialog:
|
|
18183
|
-
isOpenEmailDialog:
|
|
18184
|
-
currentSelectWidgetType:
|
|
18181
|
+
isOpenDownloadDialog: le,
|
|
18182
|
+
isOpenFeedbackDialog: _e,
|
|
18183
|
+
isOpenEmailDialog: ue,
|
|
18184
|
+
currentSelectWidgetType: G,
|
|
18185
18185
|
reports: w,
|
|
18186
18186
|
categories: U,
|
|
18187
|
-
currentReport:
|
|
18188
|
-
editingReport:
|
|
18187
|
+
currentReport: ee,
|
|
18188
|
+
editingReport: de,
|
|
18189
18189
|
editingIndex: ie,
|
|
18190
18190
|
editingTile: ne,
|
|
18191
18191
|
currentReportId: Q,
|
|
18192
18192
|
editableReports: P,
|
|
18193
18193
|
nonEditableReports: N,
|
|
18194
18194
|
isOpenAddReportDialog: B,
|
|
18195
|
-
overviewReport:
|
|
18195
|
+
overviewReport: V,
|
|
18196
18196
|
pinReport: $e,
|
|
18197
18197
|
scrollPositionY: k,
|
|
18198
|
-
customReportQuota:
|
|
18199
|
-
canCreateCustomReport:
|
|
18200
|
-
createOrUpdateReport:
|
|
18198
|
+
customReportQuota: W,
|
|
18199
|
+
canCreateCustomReport: ae,
|
|
18200
|
+
createOrUpdateReport: oe,
|
|
18201
18201
|
removeReport: ye,
|
|
18202
18202
|
updateCurrentReportId: Te,
|
|
18203
|
-
getReports:
|
|
18203
|
+
getReports: Z,
|
|
18204
18204
|
updateDefaultReport: he,
|
|
18205
18205
|
checkFeedback: o,
|
|
18206
|
-
getOverviewReport:
|
|
18206
|
+
getOverviewReport: se,
|
|
18207
18207
|
refreshPinReport: ge,
|
|
18208
18208
|
cachePinReport: j,
|
|
18209
18209
|
clearPinReport: t,
|
|
18210
18210
|
getReportConfig: u,
|
|
18211
|
-
submitFeedback:
|
|
18211
|
+
submitFeedback: ce
|
|
18212
18212
|
};
|
|
18213
18213
|
}), yt = "mf-reportnavigation", Ve = He(yt, () => {
|
|
18214
|
-
const { disabled: O } =
|
|
18214
|
+
const { disabled: O } = Y(je()), { isIntegrationWhitelist: J } = Y(ke()), w = K("v5"), U = Ae(() => {
|
|
18215
18215
|
const N = [
|
|
18216
18216
|
{
|
|
18217
18217
|
label: "overview",
|
|
@@ -18275,29 +18275,29 @@ const me = {
|
|
|
18275
18275
|
};
|
|
18276
18276
|
});
|
|
18277
18277
|
var Ge = /* @__PURE__ */ ((O) => (O.generating = "GENERATING", O.completed = "COMPLETED", O.failed = "FAILED", O.canceled = "CANCELLED", O))(Ge || {});
|
|
18278
|
-
|
|
18278
|
+
fe.extend(ze);
|
|
18279
18279
|
const Ct = async (O, J) => {
|
|
18280
|
-
var
|
|
18281
|
-
const { businessId: w, country: U } =
|
|
18280
|
+
var ae, se, Z, ee;
|
|
18281
|
+
const { businessId: w, country: U } = Y(te()), {
|
|
18282
18282
|
selectedRestaurantIds: k,
|
|
18283
18283
|
selectedWarehouseIds: q,
|
|
18284
18284
|
selectedLocationIds: P,
|
|
18285
18285
|
dateRange: N,
|
|
18286
18286
|
compareDateRange: B,
|
|
18287
18287
|
timeRange: Q
|
|
18288
|
-
} =
|
|
18288
|
+
} = Ie();
|
|
18289
18289
|
if (P.length === 0)
|
|
18290
18290
|
return null;
|
|
18291
|
-
const
|
|
18291
|
+
const G = {
|
|
18292
18292
|
fetchType: re.Post,
|
|
18293
18293
|
url: `/${w.value}/postgres-query`,
|
|
18294
|
-
data:
|
|
18294
|
+
data: Me.getQueryRequests({
|
|
18295
18295
|
widget: O,
|
|
18296
18296
|
dateRange: [N.startDate, N.endDate],
|
|
18297
18297
|
compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
|
|
18298
18298
|
timeRange: [
|
|
18299
|
-
|
|
18300
|
-
|
|
18299
|
+
fe().set("hour", Number((ae = Q.start) == null ? void 0 : ae.hour)).set("minute", Number((se = Q.start) == null ? void 0 : se.minute)).toISOString(),
|
|
18300
|
+
fe().set("hour", Number((Z = Q.end) == null ? void 0 : Z.hour)).set("minute", Number((ee = Q.end) == null ? void 0 : ee.minute)).toISOString()
|
|
18301
18301
|
],
|
|
18302
18302
|
businessIds: w.value ? [w.value] : [],
|
|
18303
18303
|
restaurantIds: k,
|
|
@@ -18308,34 +18308,34 @@ const Ct = async (O, J) => {
|
|
|
18308
18308
|
signal: J
|
|
18309
18309
|
}
|
|
18310
18310
|
};
|
|
18311
|
-
let
|
|
18311
|
+
let V, W = [];
|
|
18312
18312
|
try {
|
|
18313
|
-
|
|
18314
|
-
responses:
|
|
18313
|
+
W = await X.fetch(G), V = Pe.formatChartData({
|
|
18314
|
+
responses: W,
|
|
18315
18315
|
widget: O,
|
|
18316
18316
|
country: U.value
|
|
18317
18317
|
});
|
|
18318
|
-
} catch (
|
|
18319
|
-
console.log(
|
|
18320
|
-
responses:
|
|
18318
|
+
} catch (de) {
|
|
18319
|
+
console.log(de), G.url = G.url.replace("postgres-query", "query"), W = await X.fetch(G), V = Pe.formatChartData({
|
|
18320
|
+
responses: W,
|
|
18321
18321
|
widget: O,
|
|
18322
18322
|
country: U.value
|
|
18323
18323
|
});
|
|
18324
18324
|
}
|
|
18325
|
-
return
|
|
18325
|
+
return V;
|
|
18326
18326
|
}, bt = async (O, J) => {
|
|
18327
|
-
const { businessId: w } =
|
|
18328
|
-
let
|
|
18329
|
-
Q === "overview" && B && (
|
|
18330
|
-
const
|
|
18327
|
+
const { businessId: w } = Y(te()), { selectedRestaurantIds: U, selectedWarehouseIds: k, dateRange: q, timeRange: P } = Ie(), { currentReport: N, overviewReport: B } = Qe(), { selectedNavigationTab: Q } = Ve();
|
|
18328
|
+
let G = N == null ? void 0 : N.id, V = (N == null ? void 0 : N.tiles) ?? [];
|
|
18329
|
+
Q === "overview" && B && (G = B == null ? void 0 : B.id, V = (B == null ? void 0 : B.tiles) ?? []);
|
|
18330
|
+
const W = V.filter((ne, le) => typeof J == "number" ? le === J : !0).map((ne) => ne.widget), ae = {
|
|
18331
18331
|
fetchType: re.Post,
|
|
18332
18332
|
url: `/${w.value}/file`,
|
|
18333
18333
|
data: {
|
|
18334
18334
|
configs: [
|
|
18335
|
-
...
|
|
18336
|
-
var
|
|
18335
|
+
...W.map((ne, le) => {
|
|
18336
|
+
var _e, ue, oe, ce;
|
|
18337
18337
|
return {
|
|
18338
|
-
requests:
|
|
18338
|
+
requests: Me.getQueryRequests({
|
|
18339
18339
|
widget: ne,
|
|
18340
18340
|
dateRange: [q.startDate, q.endDate],
|
|
18341
18341
|
// TODO: export with comparable data?
|
|
@@ -18344,28 +18344,28 @@ const Ct = async (O, J) => {
|
|
|
18344
18344
|
// ? [compareDateRange.start.toUTC().toISO(), compareDateRange.end.toUTC().toISO()]
|
|
18345
18345
|
// : undefined,
|
|
18346
18346
|
timeRange: [
|
|
18347
|
-
|
|
18348
|
-
|
|
18347
|
+
fe().set("hour", Number((_e = P.start) == null ? void 0 : _e.hour)).set("minute", Number((ue = P.start) == null ? void 0 : ue.minute)).toISOString(),
|
|
18348
|
+
fe().set("hour", Number((oe = P.end) == null ? void 0 : oe.hour)).set("minute", Number((ce = P.end) == null ? void 0 : ce.minute)).toISOString()
|
|
18349
18349
|
],
|
|
18350
18350
|
businessIds: w ? [w.value] : [],
|
|
18351
18351
|
restaurantIds: U,
|
|
18352
18352
|
warehouseIds: k
|
|
18353
18353
|
}),
|
|
18354
|
-
index: J ||
|
|
18354
|
+
index: J || le,
|
|
18355
18355
|
showLabel: ne.config.showLabel,
|
|
18356
18356
|
drillDimension: null
|
|
18357
18357
|
};
|
|
18358
18358
|
})
|
|
18359
18359
|
],
|
|
18360
|
-
reportId:
|
|
18360
|
+
reportId: G,
|
|
18361
18361
|
type: O
|
|
18362
18362
|
},
|
|
18363
18363
|
requestConfig: {
|
|
18364
18364
|
responseType: "arraybuffer",
|
|
18365
18365
|
timeout: 1e3 * 60 * 3
|
|
18366
18366
|
}
|
|
18367
|
-
}, { headers:
|
|
18368
|
-
ie.href =
|
|
18367
|
+
}, { headers: se, data: Z } = await X.rawFetch(ae), ee = se["content-disposition"].split("filename=")[1].replaceAll('"', ""), de = window.URL.createObjectURL(new Blob([new Uint8Array(Z).buffer])), ie = document.createElement("a");
|
|
18368
|
+
ie.href = de, ie.setAttribute("download", decodeURIComponent(ee)), document.body.appendChild(ie), ie.click(), ie.remove();
|
|
18369
18369
|
}, Rt = async ({
|
|
18370
18370
|
emails: O,
|
|
18371
18371
|
types: J,
|
|
@@ -18373,52 +18373,56 @@ const Ct = async (O, J) => {
|
|
|
18373
18373
|
timeRange: U,
|
|
18374
18374
|
locationIds: k
|
|
18375
18375
|
}) => {
|
|
18376
|
-
const { businessId: q } =
|
|
18376
|
+
const { businessId: q } = Y(te()), { currentReport: P, overviewReport: N } = Qe(), { selectedNavigationTab: B } = Ve(), { restaurants: Q, warehouses: G } = Ie();
|
|
18377
18377
|
if (O.length === 0) {
|
|
18378
18378
|
console.error("No email addresses provided.");
|
|
18379
18379
|
return;
|
|
18380
18380
|
}
|
|
18381
|
-
let
|
|
18382
|
-
B === "overview" && N && (
|
|
18383
|
-
const
|
|
18381
|
+
let V = (P == null ? void 0 : P.id) || "", W = (P == null ? void 0 : P.name) || "", ae = (P == null ? void 0 : P.tiles) ?? [];
|
|
18382
|
+
B === "overview" && N && (V = N == null ? void 0 : N.id, W = N.name, ae = (N == null ? void 0 : N.tiles) ?? []);
|
|
18383
|
+
const se = ae.map((ee) => ee.widget), Z = {
|
|
18384
18384
|
businessId: q.value,
|
|
18385
18385
|
status: Ge.generating,
|
|
18386
18386
|
dateRange: {
|
|
18387
18387
|
start: w.startDate,
|
|
18388
18388
|
end: w.endDate
|
|
18389
18389
|
},
|
|
18390
|
-
reportName:
|
|
18390
|
+
reportName: W,
|
|
18391
18391
|
emails: O,
|
|
18392
|
-
configs:
|
|
18393
|
-
var
|
|
18392
|
+
configs: se.map((ee, de) => {
|
|
18393
|
+
var ie, ne, le, _e;
|
|
18394
18394
|
return {
|
|
18395
|
-
requests:
|
|
18396
|
-
widget:
|
|
18395
|
+
requests: Me.getQueryRequests({
|
|
18396
|
+
widget: ee,
|
|
18397
18397
|
dateRange: [w.startDate, w.endDate],
|
|
18398
18398
|
timeRange: [
|
|
18399
|
-
|
|
18400
|
-
|
|
18399
|
+
fe().hour(Number((ie = U.start) == null ? void 0 : ie.hour)).minute(Number((ne = U.start) == null ? void 0 : ne.minute)).toISOString(),
|
|
18400
|
+
fe().hour(Number((le = U.end) == null ? void 0 : le.hour)).minute(Number((_e = U.end) == null ? void 0 : _e.minute)).toISOString()
|
|
18401
18401
|
],
|
|
18402
18402
|
businessIds: q ? [q.value] : [],
|
|
18403
|
-
restaurantIds: k
|
|
18404
|
-
|
|
18403
|
+
restaurantIds: k.filter(
|
|
18404
|
+
(ue) => Q.find((oe) => oe.id === ue)
|
|
18405
|
+
),
|
|
18406
|
+
warehouseIds: k.filter(
|
|
18407
|
+
(ue) => G.find((oe) => oe.id === ue)
|
|
18408
|
+
)
|
|
18405
18409
|
}),
|
|
18406
|
-
index:
|
|
18407
|
-
showLabel:
|
|
18410
|
+
index: de,
|
|
18411
|
+
showLabel: ee.config.showLabel,
|
|
18408
18412
|
drillDimension: null
|
|
18409
18413
|
};
|
|
18410
18414
|
}),
|
|
18411
|
-
reportId:
|
|
18415
|
+
reportId: V,
|
|
18412
18416
|
type: J
|
|
18413
18417
|
};
|
|
18414
18418
|
await X.fetch({
|
|
18415
18419
|
fetchType: re.Post,
|
|
18416
18420
|
url: `/${q.value}/reports/email`,
|
|
18417
|
-
data:
|
|
18421
|
+
data: Z,
|
|
18418
18422
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18419
18423
|
});
|
|
18420
18424
|
}, Ft = async (O) => {
|
|
18421
|
-
const { businessId: J } =
|
|
18425
|
+
const { businessId: J } = Y(te());
|
|
18422
18426
|
await X.fetch({
|
|
18423
18427
|
fetchType: re.Post,
|
|
18424
18428
|
url: `/${J.value}/reports/resend-email`,
|
|
@@ -18426,13 +18430,13 @@ const Ct = async (O, J) => {
|
|
|
18426
18430
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
18427
18431
|
});
|
|
18428
18432
|
}, Ot = async () => {
|
|
18429
|
-
const { businessId: O } =
|
|
18433
|
+
const { businessId: O } = Y(te());
|
|
18430
18434
|
return await X.fetch({
|
|
18431
18435
|
fetchType: re.Get,
|
|
18432
18436
|
url: `/${O.value}/reports/email-recipients`
|
|
18433
18437
|
});
|
|
18434
18438
|
}, Lt = async (O) => {
|
|
18435
|
-
const { businessId: J } =
|
|
18439
|
+
const { businessId: J } = Y(te());
|
|
18436
18440
|
await X.fetch({
|
|
18437
18441
|
fetchType: re.Post,
|
|
18438
18442
|
url: `/${J.value}/reports/email-recipient/delete`,
|