@feedmepos/mf-report 5.19.24-beta.0 → 5.19.25-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.
@@ -99,7 +99,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
99
99
  }), Re(() => {
100
100
  g(Fe);
101
101
  }), ae(() => {
102
- console.log("5.19.24-beta.0", !0), window.addEventListener("message", Q), window.addEventListener("message", V);
102
+ console.log("5.19.25-beta.0", !0), window.addEventListener("message", Q), window.addEventListener("message", V);
103
103
  });
104
104
  const I = Ne(), W = $e(), n = X();
105
105
  qe(() => {
@@ -1,6 +1,6 @@
1
- import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as I, openBlock as w, createElementVNode as t, createCommentVNode as L, normalizeClass as Ne, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Ie, watch as Ce, isRef as Ke, resolveDynamicComponent as Te, mergeProps as Qe, onMounted as Ge } from "vue";
1
+ import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as I, openBlock as w, createElementVNode as t, createCommentVNode as L, normalizeClass as Ue, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Re, watch as Ce, isRef as Te, resolveDynamicComponent as Fe, mergeProps as Qe, onMounted as Ge } from "vue";
2
2
  import { useRouter as be, useRoute as at } from "vue-router";
3
- import { u as oe, I as he, d as Ve, x as lt, A as nt, e as Ae, f as Re, b as we, B as ve, E as st, o as rt, z as Pe, G as Me, H as je, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-BJW_sJot.js";
3
+ import { u as oe, I as he, d as Ve, x as lt, A as nt, e as Ae, f as Pe, b as we, B as ve, E as st, o as rt, z as Me, G as je, H as Ke, J as Le, K as ze, L as it, M as dt, N as mt, O as qe, c as Ze, P as pt, Q as ut, R as ct, S as ft, T as gt } from "./vue-i18n-BJW_sJot.js";
4
4
  import { u as Oe } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as _e } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as Ee } from "pinia";
@@ -60,7 +60,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
60
60
  const x = A("FmTextField"), h = A("FmTooltip"), T = A("FmIcon");
61
61
  return w(), I("div", vt, [
62
62
  t("div", {
63
- class: Ne(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
63
+ class: Ue(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
64
64
  }, [
65
65
  y.value.length === 3 && !y.value.every((g) => g.editable) ? (w(), I(ke, { key: 0 }, [
66
66
  t("div", yt, [
@@ -111,7 +111,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
111
111
  ])
112
112
  ], 64)) : (w(), I("div", {
113
113
  key: 1,
114
- class: Ne(`${f.removable || !f.isTakeWholeRow ? "flex-row" : "flex-col"} flex items-start gap-[4px] w-[100%]`)
114
+ class: Ue(`${f.removable || !f.isTakeWholeRow ? "flex-row" : "flex-col"} flex items-start gap-[4px] w-[100%]`)
115
115
  }, [
116
116
  (w(!0), I(ke, null, De(y.value, (g) => {
117
117
  var u;
@@ -120,7 +120,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
120
120
  }, [
121
121
  g.editable ? (w(), I("div", {
122
122
  key: 0,
123
- class: Ne(`${f.removable || !f.isTakeWholeRow ? "w-[50%]" : "w-[100%]"}`)
123
+ class: Ue(`${f.removable || !f.isTakeWholeRow ? "w-[50%]" : "w-[100%]"}`)
124
124
  }, [
125
125
  l(x, {
126
126
  "model-value": e.value[g.key],
@@ -160,7 +160,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
160
160
  }, Vt = { key: 0 }, At = { class: "mt-6 mb-6 h-[calc(100vh-180px)] flex flex-col" }, Dt = { class: "flex-grow overflow-auto" }, Kt = { class: "flex flex-col w-[100%] justify-between" }, Tt = { class: "flex flex-row items-center w-[100%] justify-start" }, Ft = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold w-[25%]" }, Nt = {
161
161
  key: 0,
162
162
  class: "flex flex-col w-[100%] justify-start"
163
- }, Ut = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, It = { class: "w-[100%]" }, Rt = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Pt = { class: "flex flex-col w-[100%] justify-between" }, Mt = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, jt = { class: "w-[100%]" }, Ue = /* @__PURE__ */ J({
163
+ }, Ut = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, It = { class: "w-[100%]" }, Rt = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Pt = { class: "flex flex-col w-[100%] justify-between" }, Mt = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, jt = { class: "w-[100%]" }, Ie = /* @__PURE__ */ J({
164
164
  __name: "UploadSection",
165
165
  props: /* @__PURE__ */ Se({
166
166
  label: {
@@ -270,7 +270,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
270
270
  }, {
271
271
  default: xe(() => [
272
272
  t("div", {
273
- class: Ne([
273
+ class: Ue([
274
274
  "w-auto truncate ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer",
275
275
  V.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"
276
276
  ])
@@ -279,7 +279,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
279
279
  _: 1
280
280
  })) : (w(), I("div", {
281
281
  key: 1,
282
- class: Ne(["w-[100%] w-auto truncate ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer", V.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
282
+ class: Ue(["w-[100%] w-auto truncate ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer", V.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
283
283
  }, C(i.errorLogs.length > 0 ? `${i.errorLogs[0].messages[0].status} - ${i.errorLogs[0].messages[0].message}` : d(a)("No error logs")), 3))
284
284
  ])) : L("", !0)
285
285
  ]),
@@ -413,7 +413,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
413
413
  const T = A("FmSelect"), $ = A("FmTextField"), g = A("FmTooltip"), u = A("FmIcon");
414
414
  return w(), I("div", Lt, [
415
415
  t("div", {
416
- class: Ne(`${f.removable ? "w-[calc(100%-24px)] flex-row" : "w-[100%] flex-col"} flex items-center gap-[4px]`),
416
+ class: Ue(`${f.removable ? "w-[calc(100%-24px)] flex-row" : "w-[100%] flex-col"} flex items-center gap-[4px]`),
417
417
  style: { alignItems: "start" }
418
418
  }, [
419
419
  (w(!0), I(ke, null, De(y.value, (m) => (w(), I(ke, {
@@ -421,7 +421,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
421
421
  }, [
422
422
  m.editable ? (w(), I("div", {
423
423
  key: 0,
424
- class: Ne(f.removable ? "w-[50%]" : "w-[100%]")
424
+ class: Ue(f.removable ? "w-[50%]" : "w-[100%]")
425
425
  }, [
426
426
  m.dropdownOptions ? (w(), j(T, {
427
427
  key: 0,
@@ -488,7 +488,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
488
488
  )
489
489
  }, [
490
490
  t("div", {
491
- class: Ne([
491
+ class: Ue([
492
492
  p < i.value ? "p-3 bg-gray-100 border-b-4" : "",
493
493
  "flex flex-row items-center w-full font-medium text-gray-600 mb-2"
494
494
  ])
@@ -568,7 +568,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
568
568
  }),
569
569
  emits: ["update:modelValue"],
570
570
  setup(f) {
571
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = z(!1), h = q(
571
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = z(!1), h = q(
572
572
  () => p.map((s) => ({ label: s.name, value: s.id }))
573
573
  ), T = q(() => {
574
574
  var s, n;
@@ -609,7 +609,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
609
609
  title: "Delete"
610
610
  }) && await V(async () => {
611
611
  try {
612
- await Pe(e.value._id), await y.getSettings(), K.back();
612
+ await Me(e.value._id), await y.getSettings(), K.back();
613
613
  } catch (n) {
614
614
  i.open({ type: "error", message: n.message });
615
615
  }
@@ -618,7 +618,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
618
618
  async function m() {
619
619
  await V(async () => {
620
620
  try {
621
- await Me(e.value._id, e.value), await y.getSettings();
621
+ await je(e.value._id, e.value), await y.getSettings();
622
622
  } catch (s) {
623
623
  i.open({ type: "error", message: s.message });
624
624
  }
@@ -654,7 +654,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
654
654
  async function r() {
655
655
  await V(async () => {
656
656
  try {
657
- await je(e.value._id), await y.getSettings();
657
+ await Ke(e.value._id), await y.getSettings();
658
658
  } catch (s) {
659
659
  i.open({ type: "error", message: s.message });
660
660
  }
@@ -674,10 +674,10 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
674
674
  value: ve.BY_INVOICE_ITEM
675
675
  }
676
676
  ];
677
- return Ie(async () => {
677
+ return Re(async () => {
678
678
  await y.getSettings();
679
679
  }), (s, n) => {
680
- var ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe, U, R, b, P, S, Q, ye, O, H, Z, Fe, Ye, Xe, We, Je;
680
+ var ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe, U, R, b, P, S, Q, ye, O, H, Z, Ne, Ye, Xe, We, Je;
681
681
  const D = A("FmIcon"), F = A("FmButton"), M = A("FmMenuDivider"), Y = A("FmCircularProgress"), E = A("FmSelect"), G = A("FmTextField"), W = A("FmSwitch");
682
682
  return (le = (ae = e.value) == null ? void 0 : ae.platform) != null && le.mappings ? (w(), I("div", qt, [
683
683
  t("div", Ht, [
@@ -767,7 +767,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
767
767
  ])
768
768
  ]),
769
769
  l(M, { style: { margin: 0 } }),
770
- l(Ue, {
770
+ l(Ie, {
771
771
  modelValue: e.value.platform,
772
772
  "onUpdate:modelValue": n[3] || (n[3] = (ee) => e.value.platform = ee),
773
773
  label: "upload",
@@ -815,7 +815,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
815
815
  ])
816
816
  ]),
817
817
  l(M, { style: { margin: 0 } }),
818
- l(Ue, {
818
+ l(Ie, {
819
819
  modelValue: e.value.platform,
820
820
  "onUpdate:modelValue": n[7] || (n[7] = (ee) => e.value.platform = ee),
821
821
  label: "upload",
@@ -943,7 +943,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
943
943
  })
944
944
  ]),
945
945
  f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), I("div", ho, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : L("", !0),
946
- !f.accountCodeOptions.isLoaded && ((Fe = e.value.platform) != null && Fe.accessToken) ? (w(), j(Y, {
946
+ !f.accountCodeOptions.isLoaded && ((Ne = e.value.platform) != null && Ne.accessToken) ? (w(), j(Y, {
947
947
  key: 10,
948
948
  size: "xl"
949
949
  })) : L("", !0),
@@ -1124,7 +1124,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1124
1124
  t("div", $o, [
1125
1125
  l(Be, {
1126
1126
  "date-range": d(p),
1127
- "onUpdate:dateRange": T[0] || (T[0] = (m) => Ke(p) ? p.value = m : null),
1127
+ "onUpdate:dateRange": T[0] || (T[0] = (m) => Te(p) ? p.value = m : null),
1128
1128
  compare: !1
1129
1129
  }, null, 8, ["date-range"]),
1130
1130
  l($, {
@@ -1255,7 +1255,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1255
1255
  items: N
1256
1256
  }, null, 8, ["model-value"]),
1257
1257
  t("div", Ko, [
1258
- (w(), j(Te((_ = x.value) == null ? void 0 : _.component), Qe({
1258
+ (w(), j(Fe((_ = x.value) == null ? void 0 : _.component), Qe({
1259
1259
  modelValue: e.value,
1260
1260
  "onUpdate:modelValue": u[2] || (u[2] = (o) => e.value = o)
1261
1261
  }, (r = x.value) == null ? void 0 : r.props), null, 16, ["modelValue"]))
@@ -1384,7 +1384,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1384
1384
  }),
1385
1385
  emits: ["update:modelValue"],
1386
1386
  setup(f) {
1387
- const a = te(f, "modelValue"), e = _e(), i = Ae(), y = be(), { promptLoader: K } = Re(), { promptMessage: V } = Oe(), { restaurants: N } = we(), p = q(
1387
+ const a = te(f, "modelValue"), e = _e(), i = Ae(), y = be(), { promptLoader: K } = Pe(), { promptMessage: V } = Oe(), { restaurants: N } = we(), p = q(
1388
1388
  () => N.map((r) => ({ label: r.name, value: r.id }))
1389
1389
  ), { t: x } = oe();
1390
1390
  async function h() {
@@ -1393,7 +1393,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1393
1393
  title: x("report.common.delete")
1394
1394
  }) && await K(async () => {
1395
1395
  try {
1396
- await Pe(a.value._id), await i.getSettings(), y.back();
1396
+ await Me(a.value._id), await i.getSettings(), y.back();
1397
1397
  } catch (o) {
1398
1398
  e.open({ type: "error", message: o.message });
1399
1399
  }
@@ -1402,7 +1402,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1402
1402
  async function T() {
1403
1403
  await K(async () => {
1404
1404
  try {
1405
- await Me(a.value._id, a.value), await i.getSettings();
1405
+ await je(a.value._id, a.value), await i.getSettings();
1406
1406
  } catch (r) {
1407
1407
  e.open({ type: "error", message: r.message });
1408
1408
  }
@@ -1499,13 +1499,13 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1499
1499
  async function _() {
1500
1500
  await K(async () => {
1501
1501
  try {
1502
- await je(a.value._id), await i.getSettings();
1502
+ await Ke(a.value._id), await i.getSettings();
1503
1503
  } catch (r) {
1504
1504
  e.open({ type: "error", message: r.message });
1505
1505
  }
1506
1506
  });
1507
1507
  }
1508
- return Ie(async () => {
1508
+ return Re(async () => {
1509
1509
  await i.getSettings();
1510
1510
  }), (r, o) => {
1511
1511
  var Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe, U, R;
@@ -1699,7 +1699,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1699
1699
  ])
1700
1700
  ]),
1701
1701
  l(D, { style: { margin: 0 } }),
1702
- l(Ue, {
1702
+ l(Ie, {
1703
1703
  modelValue: a.value.platform,
1704
1704
  "onUpdate:modelValue": o[12] || (o[12] = (b) => a.value.platform = b),
1705
1705
  label: "upload",
@@ -2000,7 +2000,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2000
2000
  t("div", ha, [
2001
2001
  l(Be, {
2002
2002
  "date-range": d(x),
2003
- "onUpdate:dateRange": $[0] || ($[0] = (c) => Ke(x) ? x.value = c : null),
2003
+ "onUpdate:dateRange": $[0] || ($[0] = (c) => Te(x) ? x.value = c : null),
2004
2004
  compare: !1
2005
2005
  }, null, 8, ["date-range"]),
2006
2006
  l(g, {
@@ -2072,7 +2072,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2072
2072
  items: y
2073
2073
  }, null, 8, ["model-value"]),
2074
2074
  t("div", Va, [
2075
- (w(), j(Te(V.value), {
2075
+ (w(), j(Fe(V.value), {
2076
2076
  modelValue: e.value,
2077
2077
  "onUpdate:modelValue": p[2] || (p[2] = ($) => e.value = $)
2078
2078
  }, null, 8, ["modelValue"]))
@@ -2093,7 +2093,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2093
2093
  }),
2094
2094
  emits: ["update:modelValue"],
2095
2095
  setup(f) {
2096
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
2096
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
2097
2097
  () => p.map((_) => ({ label: _.name, value: _.id }))
2098
2098
  );
2099
2099
  async function h() {
@@ -2102,7 +2102,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2102
2102
  title: a("report.common.delete")
2103
2103
  }) && await V(async () => {
2104
2104
  try {
2105
- await Pe(e.value._id), await y.getSettings(), K.back();
2105
+ await Me(e.value._id), await y.getSettings(), K.back();
2106
2106
  } catch (r) {
2107
2107
  i.open({ type: "error", message: r.message });
2108
2108
  }
@@ -2111,7 +2111,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2111
2111
  async function T() {
2112
2112
  await V(async () => {
2113
2113
  try {
2114
- await Me(e.value._id, e.value), await y.getSettings();
2114
+ await je(e.value._id, e.value), await y.getSettings();
2115
2115
  } catch (_) {
2116
2116
  i.open({ type: "error", message: _.message });
2117
2117
  }
@@ -2172,13 +2172,13 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2172
2172
  async function v() {
2173
2173
  await V(async () => {
2174
2174
  try {
2175
- await je(e.value._id), await y.getSettings();
2175
+ await Ke(e.value._id), await y.getSettings();
2176
2176
  } catch (_) {
2177
2177
  i.open({ type: "error", message: _.message });
2178
2178
  }
2179
2179
  });
2180
2180
  }
2181
- return Ie(async () => {
2181
+ return Re(async () => {
2182
2182
  await y.getSettings();
2183
2183
  }), (_, r) => {
2184
2184
  var M, Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe;
@@ -2324,7 +2324,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2324
2324
  ])
2325
2325
  ]),
2326
2326
  l(n, { style: { margin: 0 } }),
2327
- l(Ue, {
2327
+ l(Ie, {
2328
2328
  modelValue: e.value.platform,
2329
2329
  "onUpdate:modelValue": r[10] || (r[10] = (U) => e.value.platform = U),
2330
2330
  label: d(a)("report.input.email"),
@@ -2583,7 +2583,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2583
2583
  t("div", il, [
2584
2584
  l(Be, {
2585
2585
  "date-range": d(p),
2586
- "onUpdate:dateRange": T[0] || (T[0] = (m) => Ke(p) ? p.value = m : null),
2586
+ "onUpdate:dateRange": T[0] || (T[0] = (m) => Te(p) ? p.value = m : null),
2587
2587
  compare: !1
2588
2588
  }, null, 8, ["date-range"]),
2589
2589
  l($, {
@@ -2655,7 +2655,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2655
2655
  items: y
2656
2656
  }, null, 8, ["model-value"]),
2657
2657
  t("div", cl, [
2658
- (w(), j(Te(V.value), {
2658
+ (w(), j(Fe(V.value), {
2659
2659
  modelValue: e.value,
2660
2660
  "onUpdate:modelValue": p[2] || (p[2] = ($) => e.value = $)
2661
2661
  }, null, 8, ["modelValue"]))
@@ -2674,7 +2674,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2674
2674
  },
2675
2675
  emits: ["update:modelValue"],
2676
2676
  setup(f) {
2677
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
2677
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
2678
2678
  () => p.map((r) => ({ label: r.name, value: r.id }))
2679
2679
  );
2680
2680
  async function h() {
@@ -2683,7 +2683,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2683
2683
  title: a("report.common.delete")
2684
2684
  }) && await V(async () => {
2685
2685
  try {
2686
- await Pe(e.value._id), await y.getSettings(), K.back();
2686
+ await Me(e.value._id), await y.getSettings(), K.back();
2687
2687
  } catch (o) {
2688
2688
  i.open({ type: "error", message: o.message });
2689
2689
  }
@@ -2692,7 +2692,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2692
2692
  async function T() {
2693
2693
  await V(async () => {
2694
2694
  try {
2695
- await Me(e.value._id, e.value), await y.getSettings();
2695
+ await je(e.value._id, e.value), await Ke(e.value._id), await y.getSettings();
2696
2696
  } catch (r) {
2697
2697
  i.open({ type: "error", message: r.message });
2698
2698
  }
@@ -2740,7 +2740,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2740
2740
  async function c() {
2741
2741
  await V(async () => {
2742
2742
  try {
2743
- await je(e.value._id), await y.getSettings();
2743
+ await Ke(e.value._id), await y.getSettings();
2744
2744
  } catch (r) {
2745
2745
  i.open({ type: "error", message: r.message });
2746
2746
  }
@@ -2771,7 +2771,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2771
2771
  }
2772
2772
  ] : []
2773
2773
  ]);
2774
- return Ie(async () => {
2774
+ return Re(async () => {
2775
2775
  await y.getSettings();
2776
2776
  }), (r, o) => {
2777
2777
  var Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe, U, R, b, P, S, Q, ye;
@@ -2886,8 +2886,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2886
2886
  code: { placeholder: "Item code", editable: !0 }
2887
2887
  },
2888
2888
  "onUpdate:modelValue": o[7] || (o[7] = (O) => {
2889
- var H, Z, Fe;
2890
- (Fe = (Z = (H = e.value) == null ? void 0 : H.platform) == null ? void 0 : Z.mappings) != null && Fe.rounding && (e.value.platform.mappings.rounding.account = O.account, e.value.platform.mappings.rounding.code = O.code);
2889
+ var H, Z, Ne;
2890
+ (Ne = (Z = (H = e.value) == null ? void 0 : H.platform) == null ? void 0 : Z.mappings) != null && Ne.rounding && (e.value.platform.mappings.rounding.account = O.account, e.value.platform.mappings.rounding.code = O.code);
2891
2891
  })
2892
2892
  }, null, 8, ["model-value"]),
2893
2893
  (w(!0), I(ke, null, De((ae = (W = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : W.mappings) == null ? void 0 : ae.charges, (O, H) => (w(), j(B, {
@@ -2944,11 +2944,12 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2944
2944
  ])
2945
2945
  ]),
2946
2946
  l(D, { style: { margin: 0 } }),
2947
- l(Ue, {
2947
+ l(Ie, {
2948
2948
  modelValue: e.value.platform,
2949
2949
  "onUpdate:modelValue": o[12] || (o[12] = (O) => e.value.platform = O),
2950
- label: "email"
2951
- }, null, 8, ["modelValue"]),
2950
+ label: "email",
2951
+ "integration-id": e.value._id
2952
+ }, null, 8, ["modelValue", "integration-id"]),
2952
2953
  l(D, { style: { margin: 0 } }),
2953
2954
  t("div", jl, [
2954
2955
  t("div", Ll, C(d(a)("report.integration.items")), 1),
@@ -3078,8 +3079,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3078
3079
  uom: { placeholder: "UOM", editable: !0 }
3079
3080
  },
3080
3081
  onRemove: o[26] || (o[26] = (O, H) => {
3081
- var Z, Fe, Ye;
3082
- if (((Ye = (Fe = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : Fe.inventoryMappings) == null ? void 0 : Ye.items[H].key) === "DEFAULT") {
3082
+ var Z, Ne, Ye;
3083
+ if (((Ye = (Ne = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : Ne.inventoryMappings) == null ? void 0 : Ye.items[H].key) === "DEFAULT") {
3083
3084
  d(i).open({
3084
3085
  type: "error",
3085
3086
  message: "DEFAULT item cannot be removed."
@@ -3377,7 +3378,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3377
3378
  t("div", Wl, [
3378
3379
  l(Be, {
3379
3380
  "date-range": d(h),
3380
- "onUpdate:dateRange": c[0] || (c[0] = (s) => Ke(h) ? h.value = s : null),
3381
+ "onUpdate:dateRange": c[0] || (c[0] = (s) => Te(h) ? h.value = s : null),
3381
3382
  compare: !1
3382
3383
  }, null, 8, ["date-range"]),
3383
3384
  l(v, {
@@ -3462,7 +3463,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3462
3463
  items: y
3463
3464
  }, null, 8, ["model-value"]),
3464
3465
  t("div", an, [
3465
- (w(), j(Te(V.value), {
3466
+ (w(), j(Fe(V.value), {
3466
3467
  modelValue: e.value,
3467
3468
  "onUpdate:modelValue": p[2] || (p[2] = ($) => e.value = $)
3468
3469
  }, null, 8, ["modelValue"]))
@@ -3506,7 +3507,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3506
3507
  }),
3507
3508
  emits: ["update:modelValue"],
3508
3509
  setup(f) {
3509
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
3510
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
3510
3511
  () => p.map((r) => ({ label: r.name, value: r.id }))
3511
3512
  );
3512
3513
  function h(r) {
@@ -3522,7 +3523,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3522
3523
  title: a("report.common.delete")
3523
3524
  }) && await V(async () => {
3524
3525
  try {
3525
- await Pe(e.value._id), await y.getSettings(), K.back();
3526
+ await Me(e.value._id), await y.getSettings(), K.back();
3526
3527
  } catch (o) {
3527
3528
  i.open({ type: "error", message: o.message });
3528
3529
  }
@@ -3532,7 +3533,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3532
3533
  await V(async () => {
3533
3534
  var r, o, s;
3534
3535
  try {
3535
- (s = (o = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : o.mappings) != null && s.paymentMethods && h(e.value.platform.mappings.paymentMethods), await Me(e.value._id, e.value), await y.getSettings();
3536
+ (s = (o = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : o.mappings) != null && s.paymentMethods && h(e.value.platform.mappings.paymentMethods), await je(e.value._id, e.value), await y.getSettings();
3536
3537
  } catch (n) {
3537
3538
  i.open({ type: "error", message: n.message });
3538
3539
  }
@@ -3632,13 +3633,13 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3632
3633
  async function _() {
3633
3634
  await V(async () => {
3634
3635
  try {
3635
- await je(e.value._id), await y.getSettings();
3636
+ await Ke(e.value._id), await y.getSettings();
3636
3637
  } catch (r) {
3637
3638
  i.open({ type: "error", message: r.message });
3638
3639
  }
3639
3640
  });
3640
3641
  }
3641
- return Ie(async () => {
3642
+ return Re(async () => {
3642
3643
  await y.getSettings();
3643
3644
  }), (r, o) => {
3644
3645
  var E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe, U, R;
@@ -3827,7 +3828,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3827
3828
  ])
3828
3829
  ]),
3829
3830
  l(F, { style: { margin: 0 } }),
3830
- l(Ue, {
3831
+ l(Ie, {
3831
3832
  modelValue: e.value.platform,
3832
3833
  "onUpdate:modelValue": o[12] || (o[12] = (b) => e.value.platform = b),
3833
3834
  label: "upload",
@@ -4262,7 +4263,7 @@ const rs = [
4262
4263
  t("div", ds, [
4263
4264
  l(Be, {
4264
4265
  "date-range": d(K),
4265
- "onUpdate:dateRange": T[0] || (T[0] = (m) => Ke(K) ? K.value = m : null),
4266
+ "onUpdate:dateRange": T[0] || (T[0] = (m) => Te(K) ? K.value = m : null),
4266
4267
  compare: !1
4267
4268
  }, null, 8, ["date-range"]),
4268
4269
  l($, {
@@ -4374,7 +4375,7 @@ const rs = [
4374
4375
  items: K
4375
4376
  }, null, 8, ["model-value"]),
4376
4377
  t("div", fs, [
4377
- (w(), j(Te((o = N.value) == null ? void 0 : o.component), Qe({
4378
+ (w(), j(Fe((o = N.value) == null ? void 0 : o.component), Qe({
4378
4379
  modelValue: e.value,
4379
4380
  "onUpdate:modelValue": c[2] || (c[2] = (n) => e.value = n)
4380
4381
  }, (s = N.value) == null ? void 0 : s.props), null, 16, ["modelValue"]))
@@ -4393,7 +4394,7 @@ const rs = [
4393
4394
  },
4394
4395
  emits: ["update:modelValue"],
4395
4396
  setup(f) {
4396
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
4397
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
4397
4398
  () => p.map((m) => ({ label: m.name, value: m.id }))
4398
4399
  );
4399
4400
  async function h() {
@@ -4402,7 +4403,7 @@ const rs = [
4402
4403
  title: a("report.common.delete")
4403
4404
  }) && await V(async () => {
4404
4405
  try {
4405
- await Pe(e.value._id), await y.getSettings(), K.back();
4406
+ await Me(e.value._id), await y.getSettings(), K.back();
4406
4407
  } catch (c) {
4407
4408
  i.open({ type: "error", message: c.message });
4408
4409
  }
@@ -4411,7 +4412,7 @@ const rs = [
4411
4412
  async function T() {
4412
4413
  await V(async () => {
4413
4414
  try {
4414
- await Me(e.value._id, e.value), await y.getSettings();
4415
+ await je(e.value._id, e.value), await y.getSettings();
4415
4416
  } catch (m) {
4416
4417
  i.open({ type: "error", message: m.message });
4417
4418
  }
@@ -4438,13 +4439,13 @@ const rs = [
4438
4439
  async function u() {
4439
4440
  await V(async () => {
4440
4441
  try {
4441
- await je(e.value._id), await y.getSettings();
4442
+ await Ke(e.value._id), await y.getSettings();
4442
4443
  } catch (m) {
4443
4444
  i.open({ type: "error", message: m.message });
4444
4445
  }
4445
4446
  });
4446
4447
  }
4447
- return Ie(async () => {
4448
+ return Re(async () => {
4448
4449
  await y.getSettings();
4449
4450
  }), (m, c) => {
4450
4451
  var n, D, F, M, Y;
@@ -4503,7 +4504,7 @@ const rs = [
4503
4504
  ])
4504
4505
  ]),
4505
4506
  l(r, { style: { margin: 0 } }),
4506
- l(Ue, {
4507
+ l(Ie, {
4507
4508
  modelValue: e.value.platform,
4508
4509
  "onUpdate:modelValue": c[2] || (c[2] = (E) => e.value.platform = E),
4509
4510
  label: d(a)("report.input.email")
@@ -4609,7 +4610,7 @@ const rs = [
4609
4610
  t("div", Is, [
4610
4611
  l(Be, {
4611
4612
  "date-range": d(N),
4612
- "onUpdate:dateRange": h[0] || (h[0] = (u) => Ke(N) ? N.value = u : null),
4613
+ "onUpdate:dateRange": h[0] || (h[0] = (u) => Te(N) ? N.value = u : null),
4613
4614
  compare: !1
4614
4615
  }, null, 8, ["date-range"]),
4615
4616
  l(T, {
@@ -4681,7 +4682,7 @@ const rs = [
4681
4682
  items: y
4682
4683
  }, null, 8, ["model-value"]),
4683
4684
  t("div", Ls, [
4684
- (w(), j(Te(V.value), {
4685
+ (w(), j(Fe(V.value), {
4685
4686
  modelValue: e.value,
4686
4687
  "onUpdate:modelValue": p[2] || (p[2] = ($) => e.value = $)
4687
4688
  }, null, 8, ["modelValue"]))
@@ -4725,7 +4726,7 @@ const rs = [
4725
4726
  }),
4726
4727
  emits: ["update:modelValue"],
4727
4728
  setup(f) {
4728
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
4729
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
4729
4730
  () => p.map((o) => ({ label: o.name, value: o.id }))
4730
4731
  );
4731
4732
  let h = z("");
@@ -4735,7 +4736,7 @@ const rs = [
4735
4736
  title: a("report.common.delete")
4736
4737
  }) && await V(async () => {
4737
4738
  try {
4738
- await Pe(e.value._id), await y.getSettings(), K.back();
4739
+ await Me(e.value._id), await y.getSettings(), K.back();
4739
4740
  } catch (s) {
4740
4741
  i.open({ type: "error", message: s.message });
4741
4742
  }
@@ -4744,7 +4745,7 @@ const rs = [
4744
4745
  async function $() {
4745
4746
  await V(async () => {
4746
4747
  try {
4747
- await Me(e.value._id, e.value), await y.getSettings();
4748
+ await je(e.value._id, e.value), await y.getSettings();
4748
4749
  } catch (o) {
4749
4750
  i.open({ type: "error", message: o.message });
4750
4751
  }
@@ -4790,7 +4791,7 @@ const rs = [
4790
4791
  async function c() {
4791
4792
  await V(async () => {
4792
4793
  try {
4793
- await je(e.value._id), await y.getSettings();
4794
+ await Ke(e.value._id), await y.getSettings();
4794
4795
  } catch (o) {
4795
4796
  i.open({ type: "error", message: o.message });
4796
4797
  }
@@ -4809,7 +4810,7 @@ const rs = [
4809
4810
  account: { placeholder: o, editable: !0 }
4810
4811
  };
4811
4812
  }
4812
- Ie(async () => {
4813
+ Re(async () => {
4813
4814
  await y.getSettings();
4814
4815
  });
4815
4816
  function r(o) {
@@ -4955,7 +4956,7 @@ const rs = [
4955
4956
  l(Y, {
4956
4957
  modelValue: d(h),
4957
4958
  "onUpdate:modelValue": [
4958
- s[7] || (s[7] = (S) => Ke(h) ? h.value = S : h = S),
4959
+ s[7] || (s[7] = (S) => Te(h) ? h.value = S : h = S),
4959
4960
  r
4960
4961
  ],
4961
4962
  items: f.retrievedDebtors.data,
@@ -5053,7 +5054,7 @@ const rs = [
5053
5054
  ])
5054
5055
  ]),
5055
5056
  l(F, { style: { margin: 0 } }),
5056
- l(Ue, {
5057
+ l(Ie, {
5057
5058
  modelValue: e.value.platform,
5058
5059
  "onUpdate:modelValue": s[16] || (s[16] = (S) => e.value.platform = S),
5059
5060
  label: "upload",
@@ -5441,7 +5442,7 @@ const Jr = [
5441
5442
  t("div", ei, [
5442
5443
  l(Be, {
5443
5444
  "date-range": d(K),
5444
- "onUpdate:dateRange": m[0] || (m[0] = (r) => Ke(K) ? K.value = r : null),
5445
+ "onUpdate:dateRange": m[0] || (m[0] = (r) => Te(K) ? K.value = r : null),
5445
5446
  compare: !1
5446
5447
  }, null, 8, ["date-range"]),
5447
5448
  t("div", ti, [
@@ -5561,7 +5562,7 @@ const Jr = [
5561
5562
  items: y
5562
5563
  }, null, 8, ["model-value"]),
5563
5564
  t("div", si, [
5564
- (w(), j(Te((_ = V.value) == null ? void 0 : _.component), Qe({
5565
+ (w(), j(Fe((_ = V.value) == null ? void 0 : _.component), Qe({
5565
5566
  modelValue: e.value,
5566
5567
  "onUpdate:modelValue": u[2] || (u[2] = (o) => e.value = o)
5567
5568
  }, (r = V.value) == null ? void 0 : r.props), null, 16, ["modelValue"]))
@@ -5580,7 +5581,7 @@ const Jr = [
5580
5581
  },
5581
5582
  emits: ["update:modelValue"],
5582
5583
  setup(f) {
5583
- const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
5584
+ const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Pe(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
5584
5585
  () => p.map((c) => ({ label: c.name, value: c.id }))
5585
5586
  );
5586
5587
  async function h() {
@@ -5589,7 +5590,7 @@ const Jr = [
5589
5590
  title: a("report.common.delete")
5590
5591
  }) && await V(async () => {
5591
5592
  try {
5592
- await Pe(e.value._id), await y.getSettings(), K.back();
5593
+ await Me(e.value._id), await y.getSettings(), K.back();
5593
5594
  } catch (v) {
5594
5595
  i.open({ type: "error", message: v.message });
5595
5596
  }
@@ -5598,7 +5599,7 @@ const Jr = [
5598
5599
  async function T() {
5599
5600
  await V(async () => {
5600
5601
  try {
5601
- await Me(e.value._id, e.value), await y.getSettings();
5602
+ await je(e.value._id, e.value), await y.getSettings();
5602
5603
  } catch (c) {
5603
5604
  i.open({ type: "error", message: c.message });
5604
5605
  }
@@ -5630,13 +5631,13 @@ const Jr = [
5630
5631
  async function m() {
5631
5632
  await V(async () => {
5632
5633
  try {
5633
- await je(e.value._id), await y.getSettings();
5634
+ await Ke(e.value._id), await y.getSettings();
5634
5635
  } catch (c) {
5635
5636
  i.open({ type: "error", message: c.message });
5636
5637
  }
5637
5638
  });
5638
5639
  }
5639
- return Ie(async () => {
5640
+ return Re(async () => {
5640
5641
  await y.getSettings();
5641
5642
  }), (c, v) => {
5642
5643
  var D, F, M, Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe;
@@ -6311,7 +6312,7 @@ const Jr = [
6311
6312
  t("div", Ui, [
6312
6313
  l(Be, {
6313
6314
  "date-range": d(c),
6314
- "onUpdate:dateRange": s[0] || (s[0] = (Y) => Ke(c) ? c.value = Y : null),
6315
+ "onUpdate:dateRange": s[0] || (s[0] = (Y) => Te(c) ? c.value = Y : null),
6315
6316
  compare: !1
6316
6317
  }, null, 8, ["date-range"]),
6317
6318
  l(n, {
@@ -6412,7 +6413,7 @@ const Jr = [
6412
6413
  items: y
6413
6414
  }, null, 8, ["model-value"]),
6414
6415
  t("div", Li, [
6415
- (w(), j(Te(V.value), {
6416
+ (w(), j(Fe(V.value), {
6416
6417
  modelValue: e.value,
6417
6418
  "onUpdate:modelValue": p[2] || (p[2] = ($) => e.value = $)
6418
6419
  }, null, 8, ["modelValue"]))
@@ -6458,7 +6459,7 @@ const Jr = [
6458
6459
  }
6459
6460
  });
6460
6461
  return (N, p) => (w(), I("div", Ei, [
6461
- (w(), j(Te(V.value), {
6462
+ (w(), j(Fe(V.value), {
6462
6463
  modelValue: y.value,
6463
6464
  "onUpdate:modelValue": p[0] || (p[0] = (x) => y.value = x),
6464
6465
  "error-logs": K.value
package/dist/app.js CHANGED
@@ -5146,7 +5146,7 @@ const a = {
5146
5146
  {
5147
5147
  name: "integration",
5148
5148
  path: "/integration/:id",
5149
- component: () => import("./Integration-BovNO2yX.js")
5149
+ component: () => import("./Integration-CcpLWiaB.js")
5150
5150
  }
5151
5151
  ]
5152
5152
  },
@@ -5170,7 +5170,7 @@ const u = {
5170
5170
  "zh-CN": m,
5171
5171
  "th-TH": c,
5172
5172
  "zh-Hant": p
5173
- }, h = e(() => import("./App-ChOsyC6V.js"));
5173
+ }, h = e(() => import("./App-B4fIWR7C.js"));
5174
5174
  export {
5175
5175
  h as FmApp,
5176
5176
  u as i18nMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.19.24-beta.0",
3
+ "version": "5.19.25-beta.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],