@feedmepos/mf-report 5.24.6 → 5.25.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.
Files changed (25) hide show
  1. package/dist/{App-vm_gZlji.js → App-B2AQ6kNR.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DVef4M0_.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-V40y6yHR.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-l_ICCBMo.js → Default.vue_vue_type_script_setup_true_lang-BjSFdUmC.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CU2Ti_Gu.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CsNiIaqh.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D5iLvS2w.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BnHw1fG-.js} +6 -5
  6. package/dist/{InsightView-Dg9no9BA.js → InsightView-DhLOM064.js} +4 -4
  7. package/dist/{Integration-DpgTJYYB.js → Integration-8-kgIZrA.js} +765 -774
  8. package/dist/{Integrations-Cnv8sC_9.js → Integrations-BxHr5_Wn.js} +2 -2
  9. package/dist/{Layout-D32qnKsK.js → Layout-CrJo1Ew2.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-vpJXnkOI.js → MenuTab.vue_vue_type_script_setup_true_lang-B-2XWswj.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsI5ZEve.js → NavigationTab.vue_vue_type_script_setup_true_lang-Ciq3y04T.js} +35 -35
  12. package/dist/{OverviewView-B1eZj9AD.js → OverviewView-Bvo7roZH.js} +4 -4
  13. package/dist/{Report-BTlr3p_3.js → Report-DRz8GEaN.js} +3 -3
  14. package/dist/{ReportEditor-B_7leNjh.js → ReportEditor-4DurBP5d.js} +3 -3
  15. package/dist/{ReportView-WuURzA2c.js → ReportView-DMyzzEOB.js} +6 -6
  16. package/dist/{Setting-CdAp5Bfr.js → Setting-DbpXe1AL.js} +3 -3
  17. package/dist/TileEditor-MYQUUMKD.js +3837 -0
  18. package/dist/{TransitionFade-DdLDOUPb.js → TransitionFade-BzmhDbB9.js} +4 -4
  19. package/dist/{app-CwT2pthD.js → app-DrffabME.js} +32 -12
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-CVpRfTHb.js → formatChartData.worker-BFAp2S-b.js} +1 -1
  22. package/dist/assets/{processTableData.worker-CiRM5jBF.js → processTableData.worker-WBO6WbNw.js} +1 -1
  23. package/dist/{useRestaurantPermission-CyiFCr6U.js → useRestaurantPermission--3nqckTQ.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/TileEditor-DLbxghqX.js +0 -3822
@@ -1,18 +1,18 @@
1
- import { defineComponent as oe, mergeModels as me, useModel as se, computed as B, resolveComponent as K, createElementBlock as N, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as We, Fragment as De, createBlock as E, withCtx as $e, toDisplayString as $, renderList as je, createVNode as l, unref as m, h as A, normalizeStyle as dt, createTextVNode as mt, ref as X, onUnmounted as Oe, watch as Ke, isRef as Me, resolveDynamicComponent as Pe, mergeProps as tt, onMounted as nt } from "vue";
2
- import { useRouter as ke, useRoute as ut } from "vue-router";
3
- import { B as he, E as et, d as Ie, G as pt, e as Re, a as Se, H as _e, J as ct, m as ft, x as Z, A as Be, K as Ye, L as Ne, M as qe, N as ot, O as gt, P as vt, Q as yt, R as at, b as st, S as xt, T as bt, n as wt, I as Ue, U as ht, V as _t, W as Ct } from "./app-CwT2pthD.js";
4
- import { u as re, a as ze } from "./vue-i18n-DVWuTfed.js";
5
- import { u as He } from "./message-dialog-UoMWOnil.js";
1
+ import { defineComponent as oe, mergeModels as ue, useModel as se, computed as B, resolveComponent as K, createElementBlock as N, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as Qe, Fragment as De, createBlock as E, withCtx as $e, toDisplayString as $, renderList as je, createVNode as l, unref as m, h as A, normalizeStyle as it, createTextVNode as dt, ref as X, onUnmounted as Ee, watch as Ke, isRef as Me, resolveDynamicComponent as Pe, mergeProps as et, onMounted as lt } from "vue";
2
+ import { useRouter as ke, useRoute as mt } from "vue-router";
3
+ import { B as he, E as Ze, d as Ie, G as ut, e as Re, a as Se, H as _e, J as pt, m as ct, x as Z, A as Oe, K as Be, L as Ne, M as Ye, N as tt, O as ft, P as gt, Q as vt, R as ot, b as nt, S as yt, T as xt, n as bt, I as Ue, U as wt, V as ht, W as _t } from "./app-DrffabME.js";
4
+ import { u as re, a as qe } from "./vue-i18n-DVWuTfed.js";
5
+ import { u as ze } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Ae } from "@feedmepos/ui-library";
7
- import { s as rt, _ as Ge } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DVef4M0_.js";
8
- import { u as Le, h as Ce } from "./useRestaurantPermission-CyiFCr6U.js";
9
- import { storeToRefs as Qe } from "pinia";
10
- const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, $t = { class: "w-[100%]" }, St = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, At = { class: "w-[100%] flex flex-row gap-[4px]" }, Vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Dt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Kt = {
7
+ import { s as st, _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-V40y6yHR.js";
8
+ import { u as Le, h as Ce } from "./useRestaurantPermission--3nqckTQ.js";
9
+ import { storeToRefs as Ge } from "pinia";
10
+ const Ct = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, kt = { class: "w-[100%]" }, $t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, St = { class: "w-[100%] flex flex-row gap-[4px]" }, At = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Dt = {
11
11
  key: 0,
12
12
  class: "w-[24px] flex items-center"
13
13
  }, Q = /* @__PURE__ */ oe({
14
14
  __name: "MappingField",
15
- props: /* @__PURE__ */ me({
15
+ props: /* @__PURE__ */ ue({
16
16
  removable: {
17
17
  type: Boolean,
18
18
  default: !1
@@ -37,7 +37,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
37
37
  modelValue: { required: !0 },
38
38
  modelModifiers: {}
39
39
  }),
40
- emits: /* @__PURE__ */ me(["remove"], ["update:modelValue"]),
40
+ emits: /* @__PURE__ */ ue(["remove"], ["update:modelValue"]),
41
41
  setup(f, { emit: a }) {
42
42
  const e = se(f, "modelValue"), u = f, v = B(
43
43
  () => Object.keys(u.options).map((I) => {
@@ -60,12 +60,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
60
60
  return (I, V) => {
61
61
  var U;
62
62
  const c = K("FmTextField"), g = K("FmTooltip"), S = K("FmIcon");
63
- return b(), N("div", kt, [
63
+ return b(), N("div", Ct, [
64
64
  t("div", {
65
- class: We(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
65
+ class: Qe(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
66
66
  }, [
67
67
  v.value.length === 3 && !v.value.every((w) => w.editable) ? (b(), N(De, { key: 0 }, [
68
- t("div", $t, [
68
+ t("div", kt, [
69
69
  v.value[0].editable ? (b(), E(c, {
70
70
  key: 0,
71
71
  "model-value": e.value[v.value[0].key],
@@ -79,12 +79,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
79
79
  class: "w-[100%]"
80
80
  }, {
81
81
  default: $e(() => [
82
- t("div", St, $(e.value[v.value[0].key]), 1)
82
+ t("div", $t, $(e.value[v.value[0].key]), 1)
83
83
  ]),
84
84
  _: 1
85
85
  }, 8, ["content"]))
86
86
  ]),
87
- t("div", At, [
87
+ t("div", St, [
88
88
  (b(!0), N(De, null, je(v.value.slice(1), (w) => {
89
89
  var y;
90
90
  return b(), N("div", {
@@ -104,7 +104,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
104
104
  class: "w-[100%]"
105
105
  }, {
106
106
  default: $e(() => [
107
- t("div", Vt, $(e.value[w.key]), 1)
107
+ t("div", At, $(e.value[w.key]), 1)
108
108
  ]),
109
109
  _: 2
110
110
  }, 1032, ["content"]))
@@ -113,7 +113,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
113
113
  ])
114
114
  ], 64)) : (b(), N("div", {
115
115
  key: 1,
116
- class: We(`${f.removable || !f.isTakeWholeRow ? "flex-row" : "flex-col"} flex items-start gap-[4px] w-[100%]`)
116
+ class: Qe(`${f.removable || !f.isTakeWholeRow ? "flex-row" : "flex-col"} flex items-start gap-[4px] w-[100%]`)
117
117
  }, [
118
118
  (b(!0), N(De, null, je(v.value, (w) => {
119
119
  var y;
@@ -122,7 +122,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
122
122
  }, [
123
123
  w.editable ? (b(), N("div", {
124
124
  key: 0,
125
- class: We(`${f.removable || !f.isTakeWholeRow ? "w-[50%]" : "w-[100%]"}`)
125
+ class: Qe(`${f.removable || !f.isTakeWholeRow ? "w-[50%]" : "w-[100%]"}`)
126
126
  }, [
127
127
  l(c, {
128
128
  "model-value": e.value[w.key],
@@ -137,7 +137,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
137
137
  class: "w-[50%]"
138
138
  }, {
139
139
  default: $e(() => [
140
- t("div", Dt, $(e.value[w.key]), 1)
140
+ t("div", Vt, $(e.value[w.key]), 1)
141
141
  ]),
142
142
  _: 2
143
143
  }, 1032, ["content"]))
@@ -145,7 +145,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
145
145
  }), 128))
146
146
  ], 2))
147
147
  ], 2),
148
- f.removable ? (b(), N("div", Kt, [
148
+ f.removable ? (b(), N("div", Dt, [
149
149
  l(S, {
150
150
  class: "cursor-pointer text-fm-color-neutral-gray-400",
151
151
  name: "delete",
@@ -156,30 +156,30 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
156
156
  ]);
157
157
  };
158
158
  }
159
- }), Ft = { class: "flex flex-col" }, It = { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, Tt = { class: "flex flex-row items-center" }, Rt = {
159
+ }), Kt = { class: "flex flex-col" }, Ft = { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, It = { class: "flex flex-row items-center" }, Tt = {
160
160
  key: 0,
161
161
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary min-w-[25%]"
162
- }, Ut = {
162
+ }, Rt = {
163
163
  key: 1,
164
164
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary min-w-[25%]"
165
- }, Nt = { key: 0 }, Mt = { class: "mt-6 mb-6 h-[calc(100vh-180px)] flex flex-col" }, Pt = { class: "flex-grow overflow-auto" }, Lt = { class: "flex flex-col gap-16 w-[100%]" }, jt = { class: "flex flex-row items-center w-[100%] justify-start" }, Et = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold w-[25%]" }, Ot = {
165
+ }, Ut = { key: 0 }, Nt = { class: "mt-6 mb-6 h-[calc(100vh-180px)] flex flex-col" }, Mt = { class: "flex-grow overflow-auto" }, Pt = { class: "flex flex-col gap-16 w-[100%]" }, Lt = { class: "flex flex-row items-center w-[100%] justify-start" }, jt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold w-[25%]" }, Et = {
166
166
  key: 0,
167
167
  class: "flex flex-col w-[100%] justify-start gap-2"
168
- }, Bt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Yt = { class: "w-[100%]" }, qt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zt = {
168
+ }, Ot = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Bt = { class: "w-[100%]" }, Yt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qt = {
169
169
  key: 1,
170
170
  class: "flex flex-col gap-12 rounded-md border border-fm-color-border-soft pb-16 ps-2 pe-16 pt-2"
171
- }, Ht = { class: "flex flex-col w-[100%] justify-between gap-8" }, Gt = { class: "max-w-[420px]" }, Qt = { class: "flex flex-col gap-12 ps-2" }, Xt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Wt = {
171
+ }, zt = { class: "flex flex-col w-[100%] justify-between gap-8" }, Ht = { class: "max-w-[420px]" }, Gt = { class: "flex flex-col gap-12 ps-2" }, Qt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xt = {
172
172
  key: 0,
173
173
  class: "flex flex-col w-[100%] justify-between gap-2"
174
- }, Jt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Zt = {
174
+ }, Wt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Jt = {
175
175
  key: 1,
176
176
  class: "flex flex-col w-[100%] justify-between gap-2"
177
- }, eo = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, to = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oo = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ao = { class: "flex flex-col w-[100%] justify-between gap-2" }, lo = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, no = { class: "w-[100%]" }, so = {
177
+ }, Zt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, eo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, to = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, oo = { class: "flex flex-col w-[100%] justify-between gap-2" }, ao = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, lo = { class: "w-[100%]" }, no = {
178
178
  key: 2,
179
179
  class: "xs:grid-cols-1 grid-cols-2 grid gap-16"
180
- }, ro = { class: "flex flex-col w-[100%] justify-between gap-2" }, io = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, mo = { class: "w-[100%]" }, Ee = /* @__PURE__ */ oe({
180
+ }, so = { class: "flex flex-col w-[100%] justify-between gap-2" }, ro = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, io = { class: "w-[100%]" }, Xe = /* @__PURE__ */ oe({
181
181
  __name: "UploadSection",
182
- props: /* @__PURE__ */ me({
182
+ props: /* @__PURE__ */ ue({
183
183
  label: {
184
184
  type: String,
185
185
  default: "upload"
@@ -221,11 +221,11 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
221
221
  ]), D = B(() => [
222
222
  {
223
223
  label: a("report.integration.schedule.firstDayOfMonth"),
224
- value: et.FirstDay
224
+ value: Ze.FirstDay
225
225
  },
226
226
  {
227
227
  label: a("report.integration.schedule.lastDayOfMonth"),
228
- value: et.LastDay
228
+ value: Ze.LastDay
229
229
  }
230
230
  ]), I = B({
231
231
  get: () => {
@@ -243,7 +243,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
243
243
  if (d === he.Month) {
244
244
  e.value.autoEmailSchedule = {
245
245
  type: d,
246
- monthlyMode: et.FirstDay
246
+ monthlyMode: Ze.FirstDay
247
247
  };
248
248
  return;
249
249
  }
@@ -265,7 +265,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
265
265
  }), c = B({
266
266
  get: () => {
267
267
  var d;
268
- return ((d = e.value.autoEmailSchedule) == null ? void 0 : d.type) === he.Month ? e.value.autoEmailSchedule.monthlyMode : et.FirstDay;
268
+ return ((d = e.value.autoEmailSchedule) == null ? void 0 : d.type) === he.Month ? e.value.autoEmailSchedule.monthlyMode : Ze.FirstDay;
269
269
  },
270
270
  set: (d) => {
271
271
  e.value.autoEmailSchedule = {
@@ -366,7 +366,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
366
366
  enableSorting: !1
367
367
  }
368
368
  ], _ = B(() => u.errorLogs.some((d) => !d.isRead)), k = () => {
369
- _.value && pt(u.integrationId).then(() => {
369
+ _.value && ut(u.integrationId).then(() => {
370
370
  u.errorLogs.forEach((d) => d.isRead = !0);
371
371
  }).catch((d) => {
372
372
  console.error("Failed to mark error logs as read:", d);
@@ -376,10 +376,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
376
376
  var L, W, te, ae;
377
377
  const x = K("FmBadge"), n = K("FmTable"), o = K("FmSideSheet"), h = K("FmSwitch"), r = K("FmTextField"), p = K("FmTabs"), R = K("FmSelect"), T = K("FmTimePicker");
378
378
  return b(), N(De, null, [
379
- t("div", Ft, [
380
- t("div", It, $(m(a)("report.integration.auto", { label: f.label })), 1),
381
- t("div", Tt, [
382
- f.label == "upload" ? (b(), N("div", Rt, $(m(a)("report.integration.lastUploadDate")) + ": " + $(f.lastUploadDate ? m(Ie)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : f.isAutoEmailMode ? (b(), N("div", Ut, $(m(a)("report.integration.lastEmailDate")) + ": " + $(f.lastUploadDate ? m(Ie)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : O("", !0),
379
+ t("div", Kt, [
380
+ t("div", Ft, $(m(a)("report.integration.auto", { label: f.label })), 1),
381
+ t("div", It, [
382
+ f.label == "upload" ? (b(), N("div", Tt, $(m(a)("report.integration.lastUploadDate")) + ": " + $(f.lastUploadDate ? m(Ie)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : f.isAutoEmailMode ? (b(), N("div", Rt, $(m(a)("report.integration.lastEmailDate")) + ": " + $(f.lastUploadDate ? m(Ie)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : O("", !0),
383
383
  l(o, {
384
384
  header: "Cron Job Error Log",
385
385
  "dismiss-away": "",
@@ -388,26 +388,26 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
388
388
  "onOn:clickedAway": s[0] || (s[0] = () => k())
389
389
  }, {
390
390
  "side-sheet-button": $e(() => [
391
- f.label == "upload" || f.isAutoEmailMode ? (b(), N("div", Nt, [
391
+ f.label == "upload" || f.isAutoEmailMode ? (b(), N("div", Ut, [
392
392
  _.value ? (b(), E(x, {
393
393
  key: 0,
394
394
  variant: "critical"
395
395
  }, {
396
396
  default: $e(() => [
397
397
  t("div", {
398
- class: We(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", _.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
398
+ class: Qe(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", _.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
399
399
  }, $(u.errorLogs.length > 0 && u.errorLogs[0].messages && u.errorLogs[0].messages.length > 0 ? `${u.errorLogs[0].messages[u.errorLogs[0].messages.length - 1].status} - ${u.errorLogs[0].messages[u.errorLogs[0].messages.length - 1].message}` : m(a)("No error logs")), 3)
400
400
  ]),
401
401
  _: 1
402
402
  })) : (b(), N("div", {
403
403
  key: 1,
404
- class: We(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", _.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
404
+ class: Qe(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", _.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
405
405
  }, $(u.errorLogs.length > 0 && u.errorLogs[0].messages && u.errorLogs[0].messages.length > 0 ? `${u.errorLogs[0].messages[u.errorLogs[0].messages.length - 1].status} - ${u.errorLogs[0].messages[u.errorLogs[0].messages.length - 1].message}` : m(a)("No error logs")), 3))
406
406
  ])) : O("", !0)
407
407
  ]),
408
408
  default: $e(() => [
409
- t("div", Mt, [
410
- t("div", Pt, [
409
+ t("div", Nt, [
410
+ t("div", Mt, [
411
411
  l(n, {
412
412
  "row-data": u.errorLogs,
413
413
  "column-defs": i,
@@ -420,18 +420,18 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
420
420
  })
421
421
  ])
422
422
  ]),
423
- t("div", Lt, [
424
- t("div", jt, [
425
- t("div", Et, $(m(a)("report.common.enable")), 1),
423
+ t("div", Pt, [
424
+ t("div", Lt, [
425
+ t("div", jt, $(m(a)("report.common.enable")), 1),
426
426
  l(h, {
427
427
  modelValue: e.value.enable,
428
428
  "onUpdate:modelValue": s[1] || (s[1] = (H) => e.value.enable = H),
429
429
  style: { gap: "0px" }
430
430
  }, null, 8, ["modelValue"])
431
431
  ]),
432
- f.isAutoEmailMode ? (b(), N("div", Ot, [
433
- t("div", Bt, $(m(a)("report.common.email")), 1),
434
- t("div", Yt, [
432
+ f.isAutoEmailMode ? (b(), N("div", Et, [
433
+ t("div", Ot, $(m(a)("report.common.email")), 1),
434
+ t("div", Bt, [
435
435
  l(r, {
436
436
  "model-value": (e.value.emails || []).join(","),
437
437
  placeholder: "Email",
@@ -440,11 +440,11 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
440
440
  })
441
441
  }, null, 8, ["model-value"])
442
442
  ]),
443
- t("p", qt, $(m(a)("report.input.separateEmailHelperText")), 1)
443
+ t("p", Yt, $(m(a)("report.input.separateEmailHelperText")), 1)
444
444
  ])) : O("", !0),
445
- g.value ? (b(), N("div", zt, [
446
- t("div", Ht, [
447
- t("div", Gt, [
445
+ g.value ? (b(), N("div", qt, [
446
+ t("div", zt, [
447
+ t("div", Ht, [
448
448
  l(p, {
449
449
  "model-value": I.value,
450
450
  items: F.value,
@@ -452,10 +452,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
452
452
  }, null, 8, ["model-value", "items"])
453
453
  ])
454
454
  ]),
455
- t("div", Qt, [
456
- t("div", Xt, $(U.value), 1),
457
- I.value === m(he).Week ? (b(), N("div", Wt, [
458
- t("div", Jt, $(m(a)("report.integration.schedule.weekday")), 1),
455
+ t("div", Gt, [
456
+ t("div", Qt, $(U.value), 1),
457
+ I.value === m(he).Week ? (b(), N("div", Xt, [
458
+ t("div", Wt, $(m(a)("report.integration.schedule.weekday")), 1),
459
459
  l(R, {
460
460
  "model-value": V.value,
461
461
  items: v.value,
@@ -463,20 +463,20 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
463
463
  "onUpdate:modelValue": s[3] || (s[3] = (H) => V.value = H)
464
464
  }, null, 8, ["model-value", "items"])
465
465
  ])) : O("", !0),
466
- I.value === m(he).Month ? (b(), N("div", Zt, [
467
- t("div", eo, $(m(a)("report.integration.schedule.monthlyOption")), 1),
466
+ I.value === m(he).Month ? (b(), N("div", Jt, [
467
+ t("div", Zt, $(m(a)("report.integration.schedule.monthlyOption")), 1),
468
468
  l(R, {
469
469
  "model-value": c.value,
470
470
  items: D.value,
471
471
  multiselect: !1,
472
472
  "onUpdate:modelValue": s[4] || (s[4] = (H) => c.value = H)
473
473
  }, null, 8, ["model-value", "items"]),
474
- t("div", to, $(c.value === m(et).FirstDay ? m(a)("report.integration.schedule.firstDayHint") : m(a)("report.integration.schedule.lastDayHint")), 1)
474
+ t("div", eo, $(c.value === m(Ze).FirstDay ? m(a)("report.integration.schedule.firstDayHint") : m(a)("report.integration.schedule.lastDayHint")), 1)
475
475
  ])) : O("", !0),
476
- t("div", oo, [
477
- t("div", ao, [
478
- t("div", lo, $(m(rt)(f.label)) + " time ", 1),
479
- t("div", no, [
476
+ t("div", to, [
477
+ t("div", oo, [
478
+ t("div", ao, $(m(st)(f.label)) + " time ", 1),
479
+ t("div", lo, [
480
480
  l(T, {
481
481
  class: "gap-[0px]",
482
482
  "model-value": m(Ie)().hour(((L = e.value.triggerTime) == null ? void 0 : L.hour) ?? 0).minute(((W = e.value.triggerTime) == null ? void 0 : W.minute) ?? 0).format("HH:mm"),
@@ -504,10 +504,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
504
504
  }, null, 8, ["model-value", "options", "rules"])) : O("", !0)
505
505
  ])
506
506
  ])
507
- ])) : (b(), N("div", so, [
508
- t("div", ro, [
509
- t("div", io, $(m(rt)(f.label)) + " time ", 1),
510
- t("div", mo, [
507
+ ])) : (b(), N("div", no, [
508
+ t("div", so, [
509
+ t("div", ro, $(m(st)(f.label)) + " time ", 1),
510
+ t("div", io, [
511
511
  l(T, {
512
512
  class: "gap-[0px]",
513
513
  "model-value": m(Ie)().hour(((te = e.value.triggerTime) == null ? void 0 : te.hour) ?? 0).minute(((ae = e.value.triggerTime) == null ? void 0 : ae.minute) ?? 0).format("HH:mm"),
@@ -537,12 +537,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
537
537
  ], 64);
538
538
  };
539
539
  }
540
- }), uo = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, po = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, co = {
540
+ }), mo = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, uo = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, po = {
541
541
  key: 0,
542
542
  class: "w-[24px] flex items-center"
543
- }, it = /* @__PURE__ */ oe({
543
+ }, rt = /* @__PURE__ */ oe({
544
544
  __name: "MappingDropdown",
545
- props: /* @__PURE__ */ me({
545
+ props: /* @__PURE__ */ ue({
546
546
  removable: {
547
547
  type: Boolean,
548
548
  default: !1
@@ -567,7 +567,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
567
567
  modelValue: { required: !0 },
568
568
  modelModifiers: {}
569
569
  }),
570
- emits: /* @__PURE__ */ me(["remove"], ["update:modelValue"]),
570
+ emits: /* @__PURE__ */ ue(["remove"], ["update:modelValue"]),
571
571
  setup(f, { emit: a }) {
572
572
  const e = se(f, "modelValue"), u = f, v = B(
573
573
  () => Object.keys(u.options).map((c) => {
@@ -590,9 +590,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
590
590
  }, I = (c) => u.singleValueMode ? e.value : e.value[c.key], V = a;
591
591
  return (c, g) => {
592
592
  const S = K("FmSelect"), U = K("FmTextField"), w = K("FmTooltip"), y = K("FmIcon");
593
- return b(), N("div", uo, [
593
+ return b(), N("div", mo, [
594
594
  t("div", {
595
- class: We(`${f.removable ? "w-[calc(100%-24px)] flex-row" : "w-[100%] flex-col"} flex items-center gap-[4px]`),
595
+ class: Qe(`${f.removable ? "w-[calc(100%-24px)] flex-row" : "w-[100%] flex-col"} flex items-center gap-[4px]`),
596
596
  style: { alignItems: "start" }
597
597
  }, [
598
598
  (b(!0), N(De, null, je(v.value, (i) => (b(), N(De, {
@@ -600,7 +600,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
600
600
  }, [
601
601
  i.editable ? (b(), N("div", {
602
602
  key: 0,
603
- class: We(f.removable ? "w-[50%]" : "w-[100%]")
603
+ class: Qe(f.removable ? "w-[50%]" : "w-[100%]")
604
604
  }, [
605
605
  i.dropdownOptions ? (b(), E(S, {
606
606
  key: 0,
@@ -625,13 +625,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
625
625
  class: "w-[50%]"
626
626
  }, {
627
627
  default: $e(() => [
628
- t("div", po, $(D(i)), 1)
628
+ t("div", uo, $(D(i)), 1)
629
629
  ]),
630
630
  _: 2
631
631
  }, 1032, ["content"]))
632
632
  ], 64))), 128))
633
633
  ], 2),
634
- f.removable ? (b(), N("div", co, [
634
+ f.removable ? (b(), N("div", po, [
635
635
  l(y, {
636
636
  class: "cursor-pointer text-fm-color-neutral-gray-400",
637
637
  name: "delete",
@@ -642,7 +642,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
642
642
  ]);
643
643
  };
644
644
  }
645
- }), fo = { class: "flex flex-row flex-wrap gap-4 justify-between w-[100%]" }, go = {
645
+ }), co = { class: "flex flex-row flex-wrap gap-4 justify-between w-[100%]" }, fo = {
646
646
  key: 0,
647
647
  class: "w-[24px] flex-shrink-0"
648
648
  }, ee = /* @__PURE__ */ oe({
@@ -658,16 +658,16 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
658
658
  emits: ["remove", "update:rows"],
659
659
  setup(f, { emit: a }) {
660
660
  const e = f, u = B(() => e.rows.length > 1 ? Math.min(e.rows.length, e.columnsPerRow) : 1), v = a;
661
- return (F, D) => (b(), N("div", fo, [
661
+ return (F, D) => (b(), N("div", co, [
662
662
  (b(!0), N(De, null, je(e.rows, (I, V) => (b(), N("div", {
663
663
  key: V,
664
664
  class: "flex flex-col",
665
- style: dt(
665
+ style: it(
666
666
  e.columnsPerRow > 1 ? { width: `${99 / e.columnsPerRow}%` } : { width: "100%" }
667
667
  )
668
668
  }, [
669
669
  t("div", {
670
- class: We([
670
+ class: Qe([
671
671
  V < u.value ? "p-3 bg-gray-100 border-b-4" : "",
672
672
  "flex flex-row items-center w-full font-medium text-gray-600 mb-2"
673
673
  ])
@@ -677,10 +677,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
677
677
  class: "w-[50%]"
678
678
  }, [
679
679
  V < u.value ? (b(), N(De, { key: 0 }, [
680
- mt($(c), 1)
680
+ dt($(c), 1)
681
681
  ], 64)) : O("", !0)
682
682
  ]))), 128)),
683
- F.removable ? (b(), N("div", go)) : O("", !0)
683
+ F.removable ? (b(), N("div", fo)) : O("", !0)
684
684
  ], 2),
685
685
  !e.fieldsOptions || !Object.values(e.fieldsOptions).some((c) => c.dropdownOptions) ? (b(), E(Q, {
686
686
  key: `item-${V}`,
@@ -693,7 +693,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
693
693
  g[V] = c, v("update:rows", g);
694
694
  },
695
695
  onRemove: () => v("remove", e.mappingType || "", V)
696
- }, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (b(), E(it, {
696
+ }, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (b(), E(rt, {
697
697
  key: 1,
698
698
  "model-value": e.rows[V],
699
699
  options: e.fieldsOptions || {},
@@ -707,24 +707,24 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
707
707
  ], 4))), 128))
708
708
  ]));
709
709
  }
710
- }), vo = {
710
+ }), go = {
711
711
  key: 0,
712
712
  class: "flex flex-col h-full"
713
- }, yo = { class: "flex flex-col gap-[16px] pb-[24px]" }, xo = { class: "flex flex-row justify-between items-center gap-2" }, bo = { class: "flex flex-row gap-2 items-center" }, wo = { class: "relative group cursor-pointer" }, ho = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, _o = { class: "w-[90%] flex flex-col gap-24" }, Co = { class: "flex flex-row items-center justify-between gap-2" }, ko = { class: "w-[25%]" }, $o = { class: "flex flex-col gap-[16px]" }, So = { class: "flex flex-col max-w-[100%] justify-between" }, Ao = { class: "flex-grow" }, Vo = { class: "flex flex-col max-w-[100%] justify-between" }, Do = { class: "flex flex-col max-w-[100%] justify-between" }, Ko = { class: "w-[25%] font-semibold" }, Fo = { class: "flex flex-col gap-[16px]" }, Io = { class: "flex flex-col max-w-[100%] justify-between" }, To = { class: "flex-grow" }, Ro = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Uo = { class: "flex-grow" }, No = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Mo = { class: "flex-grow" }, Po = { class: "flex flex-col gap-[16px]" }, Lo = { class: "flex flex-row items-center justify-between gap-x-16" }, jo = {
713
+ }, vo = { class: "flex flex-col gap-[16px] pb-[24px]" }, yo = { class: "flex flex-row justify-between items-center gap-2" }, xo = { class: "flex flex-row gap-2 items-center" }, bo = { class: "relative group cursor-pointer" }, wo = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, ho = { class: "w-[90%] flex flex-col gap-24" }, _o = { class: "flex flex-row items-center justify-between gap-2" }, Co = { class: "w-[25%]" }, ko = { class: "flex flex-col gap-[16px]" }, $o = { class: "flex flex-col max-w-[100%] justify-between" }, So = { class: "flex-grow" }, Ao = { class: "flex flex-col max-w-[100%] justify-between" }, Vo = { class: "flex flex-col max-w-[100%] justify-between" }, Do = { class: "w-[25%] font-semibold" }, Ko = { class: "flex flex-col gap-[16px]" }, Fo = { class: "flex flex-col max-w-[100%] justify-between" }, Io = { class: "flex-grow" }, To = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Ro = { class: "flex-grow" }, Uo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, No = { class: "flex-grow" }, Mo = { class: "flex flex-col gap-[16px]" }, Po = { class: "flex flex-row items-center justify-between gap-x-16" }, Lo = {
714
714
  key: 0,
715
715
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
716
- }, Eo = { class: "flex flex-row items-center justify-between gap-x-16" }, Oo = {
716
+ }, jo = { class: "flex flex-row items-center justify-between gap-x-16" }, Eo = {
717
717
  key: 3,
718
718
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
719
- }, Bo = { class: "flex flex-row items-center justify-between gap-x-16" }, Yo = {
719
+ }, Oo = { class: "flex flex-row items-center justify-between gap-x-16" }, Bo = {
720
720
  key: 6,
721
721
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
722
- }, qo = { class: "flex flex-row items-center justify-between gap-x-16" }, zo = {
722
+ }, Yo = { class: "flex flex-row items-center justify-between gap-x-16" }, qo = {
723
723
  key: 9,
724
724
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
725
- }, Ho = /* @__PURE__ */ oe({
725
+ }, zo = /* @__PURE__ */ oe({
726
726
  __name: "Setting",
727
- props: /* @__PURE__ */ me({
727
+ props: /* @__PURE__ */ ue({
728
728
  tenantOptions: {
729
729
  type: Object,
730
730
  required: !0
@@ -747,7 +747,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
747
747
  }),
748
748
  emits: ["update:modelValue"],
749
749
  setup(f) {
750
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = X(!1), U = B(
750
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = X(!1), U = B(
751
751
  () => V.map((h) => ({ label: h.name, value: h.id }))
752
752
  ), w = B(() => {
753
753
  var h, r;
@@ -761,10 +761,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
761
761
  await I({
762
762
  message: a("report.integration.xero.confirmDisconnect", { name: e.value.name }),
763
763
  title: a("report.integration.xero.disconnectTitle")
764
- }) && (await ct(e.value._id), await v.getSettings());
764
+ }) && (await pt(e.value._id), await v.getSettings());
765
765
  else if (e.value._id)
766
766
  try {
767
- const r = await ft(e.value._id);
767
+ const r = await ct(e.value._id);
768
768
  S.value = !0;
769
769
  const p = setInterval(async () => {
770
770
  var R;
@@ -798,7 +798,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
798
798
  title: "Delete"
799
799
  }) && await D(async () => {
800
800
  try {
801
- await Be(e.value._id), await v.getSettings(), F.back();
801
+ await Oe(e.value._id), await v.getSettings(), F.back();
802
802
  } catch (T) {
803
803
  u.open({ type: "error", message: T.message });
804
804
  }
@@ -817,7 +817,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
817
817
  }
818
818
  await D(async () => {
819
819
  try {
820
- await Ye(e.value._id, e.value), await v.getSettings();
820
+ await Be(e.value._id, e.value), await v.getSettings();
821
821
  } catch (R) {
822
822
  u.open({ type: "error", message: R.message });
823
823
  }
@@ -873,23 +873,23 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
873
873
  value: _e.BY_INVOICE_ITEM
874
874
  }
875
875
  ];
876
- return Oe(async () => {
876
+ return Ee(async () => {
877
877
  await v.getSettings();
878
878
  }), (h, r) => {
879
- var H, de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q, P, C, M, z, Fe, j, ie, Ve, Je, Ze, Y, G, le, Xe;
879
+ var H, de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q, P, C, M, z, Fe, j, ie, Ve, We, Je, Y, G, le;
880
880
  const p = K("FmIcon"), R = K("FmButton"), T = K("FmMenuDivider"), L = K("FmCircularProgress"), W = K("FmSelect"), te = K("FmTextField"), ae = K("FmSwitch");
881
- return (de = (H = e.value) == null ? void 0 : H.platform) != null && de.mappings ? (b(), N("div", vo, [
882
- t("div", yo, [
883
- t("div", xo, [
884
- r[21] || (r[21] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
885
- t("div", bo, [
886
- t("div", wo, [
881
+ return (de = (H = e.value) == null ? void 0 : H.platform) != null && de.mappings ? (b(), N("div", go, [
882
+ t("div", vo, [
883
+ t("div", yo, [
884
+ r[20] || (r[20] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
885
+ t("div", xo, [
886
+ t("div", bo, [
887
887
  l(p, {
888
888
  name: "refresh",
889
889
  class: "p-2 bg-gray-100 rounded-full",
890
890
  onClick: n
891
891
  }),
892
- r[20] || (r[20] = t("span", { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, " Repopulate the fields based on the dates selected in Preview. ", -1))
892
+ r[19] || (r[19] = t("span", { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, " Repopulate the fields based on the dates selected in Preview. ", -1))
893
893
  ]),
894
894
  l(R, {
895
895
  variant: "tertiary",
@@ -906,11 +906,11 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
906
906
  ])
907
907
  ]),
908
908
  l(T, { style: { margin: 0 } }),
909
- t("div", ho, [
910
- t("div", _o, [
911
- r[33] || (r[33] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Authenticate with your official Xero account to enable FeedMe to securely upload data to Xero. ", -1)),
912
- t("div", Co, [
913
- t("div", ko, [
909
+ t("div", wo, [
910
+ t("div", ho, [
911
+ r[32] || (r[32] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Authenticate with your official Xero account to enable FeedMe to securely upload data to Xero. ", -1)),
912
+ t("div", _o, [
913
+ t("div", Co, [
914
914
  l(R, {
915
915
  disabled: S.value,
916
916
  variant: "primary",
@@ -918,32 +918,32 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
918
918
  onClick: i
919
919
  }, null, 8, ["disabled", "label"])
920
920
  ]),
921
- !f.tenantOptions.isLoaded && ((ue = e.value.platform) != null && ue.accessToken) ? (b(), E(L, {
921
+ !f.tenantOptions.isLoaded && ((pe = e.value.platform) != null && pe.accessToken) ? (b(), E(L, {
922
922
  key: 0,
923
923
  size: "xl"
924
924
  })) : O("", !0),
925
925
  l(W, {
926
926
  class: "flex-grow",
927
927
  items: f.tenantOptions.data || [],
928
- "model-value": (pe = e.value.platform.tenant) == null ? void 0 : pe.id,
929
- placeholder: f.tenantOptions.data ? (ce = e.value.platform.tenant) == null ? void 0 : ce.name : "Select tenant ",
928
+ "model-value": (ce = e.value.platform.tenant) == null ? void 0 : ce.id,
929
+ placeholder: f.tenantOptions.data ? (fe = e.value.platform.tenant) == null ? void 0 : fe.name : "Select tenant ",
930
930
  "onUpdate:modelValue": d
931
931
  }, null, 8, ["items", "model-value", "placeholder"])
932
932
  ]),
933
933
  l(T, { style: { margin: 0 } }),
934
- t("div", $o, [
935
- r[24] || (r[24] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
936
- t("div", So, [
937
- r[22] || (r[22] = t("div", { class: "w-[25%] font-semibold" }, "Name", -1)),
938
- t("div", Ao, [
934
+ t("div", ko, [
935
+ r[23] || (r[23] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
936
+ t("div", $o, [
937
+ r[21] || (r[21] = t("div", { class: "w-[25%] font-semibold" }, "Name", -1)),
938
+ t("div", So, [
939
939
  l(te, {
940
940
  modelValue: e.value.name,
941
941
  "onUpdate:modelValue": r[0] || (r[0] = (ne) => e.value.name = ne)
942
942
  }, null, 8, ["modelValue"])
943
943
  ])
944
944
  ]),
945
- t("div", Vo, [
946
- r[23] || (r[23] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
945
+ t("div", Ao, [
946
+ r[22] || (r[22] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
947
947
  l(W, {
948
948
  modelValue: e.value.platform.locationIds,
949
949
  "onUpdate:modelValue": r[1] || (r[1] = (ne) => e.value.platform.locationIds = ne),
@@ -953,8 +953,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
953
953
  class: "flex-grow"
954
954
  }, null, 8, ["modelValue", "items"])
955
955
  ]),
956
- t("div", Do, [
957
- t("div", Ko, $(m(a)("report.integration.grouping.title")), 1),
956
+ t("div", Vo, [
957
+ t("div", Do, $(m(a)("report.integration.grouping.title")), 1),
958
958
  l(W, {
959
959
  modelValue: e.value.platform.grouping,
960
960
  "onUpdate:modelValue": r[2] || (r[2] = (ne) => e.value.platform.grouping = ne),
@@ -966,20 +966,20 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
966
966
  ])
967
967
  ]),
968
968
  l(T, { style: { margin: 0 } }),
969
- l(Ee, {
969
+ l(Xe, {
970
970
  modelValue: e.value.platform,
971
971
  "onUpdate:modelValue": r[3] || (r[3] = (ne) => e.value.platform = ne),
972
972
  label: "upload",
973
- "last-upload-date": (fe = e.value.platform) == null ? void 0 : fe.lastUploadDate,
973
+ "last-upload-date": (ge = e.value.platform) == null ? void 0 : ge.lastUploadDate,
974
974
  "error-logs": f.errorLogs,
975
975
  "integration-id": e.value._id
976
976
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
977
977
  l(T, { style: { margin: 0 } }),
978
- t("div", Fo, [
979
- r[28] || (r[28] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
980
- t("div", Io, [
981
- r[25] || (r[25] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
982
- t("div", To, [
978
+ t("div", Ko, [
979
+ r[27] || (r[27] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
980
+ t("div", Fo, [
981
+ r[24] || (r[24] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
982
+ t("div", Io, [
983
983
  l(te, {
984
984
  modelValue: e.value.platform.mappings.contact.xeroAccount,
985
985
  "onUpdate:modelValue": r[4] || (r[4] = (ne) => e.value.platform.mappings.contact.xeroAccount = ne),
@@ -987,9 +987,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
987
987
  }, null, 8, ["modelValue"])
988
988
  ])
989
989
  ]),
990
- t("div", Ro, [
991
- r[26] || (r[26] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
992
- t("div", Uo, [
990
+ t("div", To, [
991
+ r[25] || (r[25] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
992
+ t("div", Ro, [
993
993
  l(ae, {
994
994
  "model-value": e.value.platform.discountItem ?? !1,
995
995
  style: { gap: 0 },
@@ -999,9 +999,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
999
999
  }, null, 8, ["model-value"])
1000
1000
  ])
1001
1001
  ]),
1002
- t("div", No, [
1003
- r[27] || (r[27] = t("div", { class: "w-[25%] font-semibold" }, "Combine Refund", -1)),
1004
- t("div", Mo, [
1002
+ t("div", Uo, [
1003
+ r[26] || (r[26] = t("div", { class: "w-[25%] font-semibold" }, "Combine Refund", -1)),
1004
+ t("div", No, [
1005
1005
  l(ae, {
1006
1006
  "model-value": e.value.platform.mappings.isCombineRefund ?? !1,
1007
1007
  style: { gap: 0 },
@@ -1014,26 +1014,17 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1014
1014
  ])
1015
1015
  ]),
1016
1016
  l(T, { style: { margin: 0 } }),
1017
- l(Ee, {
1018
- modelValue: e.value.platform,
1019
- "onUpdate:modelValue": r[7] || (r[7] = (ne) => e.value.platform = ne),
1020
- label: "upload",
1021
- "last-upload-date": (ge = e.value.platform) == null ? void 0 : ge.lastUploadDate,
1022
- "error-logs": f.errorLogs,
1023
- "integration-id": e.value._id
1024
- }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
1025
- l(T, { style: { margin: 0 } }),
1026
- t("div", Po, [
1027
- t("div", Lo, [
1028
- r[29] || (r[29] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
1017
+ t("div", Mo, [
1018
+ t("div", Po, [
1019
+ r[28] || (r[28] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
1029
1020
  l(R, {
1030
1021
  variant: "secondary",
1031
1022
  "prepend-icon": "add",
1032
1023
  label: "Add taxes",
1033
- onClick: r[8] || (r[8] = () => x("taxes"))
1024
+ onClick: r[7] || (r[7] = () => x("taxes"))
1034
1025
  })
1035
1026
  ]),
1036
- f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", jo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1027
+ f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", Lo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1037
1028
  !f.taxOptions.isLoaded && ((ve = e.value.platform) != null && ve.accessToken) ? (b(), E(L, {
1038
1029
  key: 1,
1039
1030
  size: "xl"
@@ -1041,7 +1032,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1041
1032
  ((ye = f.taxOptions.data) == null ? void 0 : ye.length) > 0 ? (b(), E(ee, {
1042
1033
  key: 2,
1043
1034
  "header-items": ["Feedme Key", "Tax"],
1044
- rows: ((J = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : J.taxes) || [],
1035
+ rows: ((we = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : we.taxes) || [],
1045
1036
  "columns-per-row": 2,
1046
1037
  removable: !0,
1047
1038
  "mapping-type": "taxes",
@@ -1053,31 +1044,31 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1053
1044
  dropdownOptions: f.taxOptions.data ?? []
1054
1045
  }
1055
1046
  },
1056
- onRemove: r[9] || (r[9] = (ne, we) => s("taxes", we)),
1057
- "onUpdate:rows": r[10] || (r[10] = (ne) => {
1058
- var we, Te;
1059
- (Te = (we = e.value) == null ? void 0 : we.platform) != null && Te.mappings && (e.value.platform.mappings.taxes = ne);
1047
+ onRemove: r[8] || (r[8] = (ne, me) => s("taxes", me)),
1048
+ "onUpdate:rows": r[9] || (r[9] = (ne) => {
1049
+ var me, Te;
1050
+ (Te = (me = e.value) == null ? void 0 : me.platform) != null && Te.mappings && (e.value.platform.mappings.taxes = ne);
1060
1051
  })
1061
1052
  }, null, 8, ["rows", "fields-options"])) : O("", !0),
1062
1053
  l(T, { style: { margin: 0 } }),
1063
- t("div", Eo, [
1064
- r[30] || (r[30] = t("div", { class: "fm-typo-en-title-sm-800" }, "Tax Rounding Adjustment", -1)),
1054
+ t("div", jo, [
1055
+ r[29] || (r[29] = t("div", { class: "fm-typo-en-title-sm-800" }, "Tax Rounding Adjustment", -1)),
1065
1056
  l(R, {
1066
1057
  variant: "secondary",
1067
1058
  "prepend-icon": "add",
1068
1059
  label: "Add tax rounding adjustments",
1069
- onClick: r[11] || (r[11] = () => x("taxRoundingAdjustments"))
1060
+ onClick: r[10] || (r[10] = () => x("taxRoundingAdjustments"))
1070
1061
  })
1071
1062
  ]),
1072
- f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", Oo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1073
- !f.taxOptions.isLoaded && ((q = e.value.platform) != null && q.accessToken) ? (b(), E(L, {
1063
+ f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", Eo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1064
+ !f.taxOptions.isLoaded && ((J = e.value.platform) != null && J.accessToken) ? (b(), E(L, {
1074
1065
  key: 4,
1075
1066
  size: "xl"
1076
1067
  })) : O("", !0),
1077
- ((P = f.accountCodeOptions.data) == null ? void 0 : P.length) > 0 ? (b(), E(ee, {
1068
+ ((q = f.accountCodeOptions.data) == null ? void 0 : q.length) > 0 ? (b(), E(ee, {
1078
1069
  key: 5,
1079
1070
  "header-items": ["Feedme Key", "Tax"],
1080
- rows: ((z = (M = (C = e.value) == null ? void 0 : C.platform) == null ? void 0 : M.mappings) == null ? void 0 : z.taxRoundingAdjustments) || [],
1071
+ rows: ((M = (C = (P = e.value) == null ? void 0 : P.platform) == null ? void 0 : C.mappings) == null ? void 0 : M.taxRoundingAdjustments) || [],
1081
1072
  "columns-per-row": 2,
1082
1073
  removable: !0,
1083
1074
  "mapping-type": "taxRoundingAdjustments",
@@ -1089,31 +1080,31 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1089
1080
  dropdownOptions: f.accountCodeOptions.data ?? []
1090
1081
  }
1091
1082
  },
1092
- onRemove: r[12] || (r[12] = (ne, we) => s("taxRoundingAdjustments", we)),
1093
- "onUpdate:rows": r[13] || (r[13] = (ne) => {
1094
- var we, Te;
1095
- (Te = (we = e.value) == null ? void 0 : we.platform) != null && Te.mappings && (e.value.platform.mappings.taxRoundingAdjustments = ne);
1083
+ onRemove: r[11] || (r[11] = (ne, me) => s("taxRoundingAdjustments", me)),
1084
+ "onUpdate:rows": r[12] || (r[12] = (ne) => {
1085
+ var me, Te;
1086
+ (Te = (me = e.value) == null ? void 0 : me.platform) != null && Te.mappings && (e.value.platform.mappings.taxRoundingAdjustments = ne);
1096
1087
  })
1097
1088
  }, null, 8, ["rows", "fields-options"])) : O("", !0),
1098
1089
  l(T, { style: { margin: 0 } }),
1099
- t("div", Bo, [
1100
- r[31] || (r[31] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
1090
+ t("div", Oo, [
1091
+ r[30] || (r[30] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
1101
1092
  l(R, {
1102
1093
  variant: "secondary",
1103
1094
  "prepend-icon": "add",
1104
1095
  label: "Add items",
1105
- onClick: r[14] || (r[14] = () => x("items"))
1096
+ onClick: r[13] || (r[13] = () => x("items"))
1106
1097
  })
1107
1098
  ]),
1108
- f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", Yo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1109
- !f.accountCodeOptions.isLoaded && ((Fe = e.value.platform) != null && Fe.accessToken) ? (b(), E(L, {
1099
+ f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", Bo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1100
+ !f.accountCodeOptions.isLoaded && ((z = e.value.platform) != null && z.accessToken) ? (b(), E(L, {
1110
1101
  key: 7,
1111
1102
  size: "xl"
1112
1103
  })) : O("", !0),
1113
- ((j = f.accountCodeOptions.data) == null ? void 0 : j.length) > 0 ? (b(), E(ee, {
1104
+ ((Fe = f.accountCodeOptions.data) == null ? void 0 : Fe.length) > 0 ? (b(), E(ee, {
1114
1105
  key: 8,
1115
1106
  "header-items": ["Feedme Key", "Item Code"],
1116
- rows: ((Je = (Ve = (ie = e.value) == null ? void 0 : ie.platform) == null ? void 0 : Ve.mappings) == null ? void 0 : Je.items) || [],
1107
+ rows: ((Ve = (ie = (j = e.value) == null ? void 0 : j.platform) == null ? void 0 : ie.mappings) == null ? void 0 : Ve.items) || [],
1117
1108
  "columns-per-row": 2,
1118
1109
  removable: !0,
1119
1110
  "mapping-type": "items",
@@ -1125,31 +1116,31 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1125
1116
  dropdownOptions: f.accountCodeOptions.data ?? []
1126
1117
  }
1127
1118
  },
1128
- onRemove: r[15] || (r[15] = (ne, we) => s("items", we)),
1129
- "onUpdate:rows": r[16] || (r[16] = (ne) => {
1130
- var we, Te;
1131
- (Te = (we = e.value) == null ? void 0 : we.platform) != null && Te.mappings && (e.value.platform.mappings.items = ne);
1119
+ onRemove: r[14] || (r[14] = (ne, me) => s("items", me)),
1120
+ "onUpdate:rows": r[15] || (r[15] = (ne) => {
1121
+ var me, Te;
1122
+ (Te = (me = e.value) == null ? void 0 : me.platform) != null && Te.mappings && (e.value.platform.mappings.items = ne);
1132
1123
  })
1133
1124
  }, null, 8, ["rows", "fields-options"])) : O("", !0),
1134
1125
  l(T, { style: { margin: 0 } }),
1135
- t("div", qo, [
1136
- r[32] || (r[32] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
1126
+ t("div", Yo, [
1127
+ r[31] || (r[31] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
1137
1128
  l(R, {
1138
1129
  variant: "secondary",
1139
1130
  "prepend-icon": "add",
1140
1131
  label: "Add payments",
1141
- onClick: r[17] || (r[17] = () => x("payments"))
1132
+ onClick: r[16] || (r[16] = () => x("payments"))
1142
1133
  })
1143
1134
  ]),
1144
- f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", zo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1145
- !f.accountCodeOptions.isLoaded && ((Ze = e.value.platform) != null && Ze.accessToken) ? (b(), E(L, {
1135
+ f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), N("div", qo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
1136
+ !f.accountCodeOptions.isLoaded && ((We = e.value.platform) != null && We.accessToken) ? (b(), E(L, {
1146
1137
  key: 10,
1147
1138
  size: "xl"
1148
1139
  })) : O("", !0),
1149
- ((Y = f.accountCodeOptions.data) == null ? void 0 : Y.length) > 0 ? (b(), E(ee, {
1140
+ ((Je = f.accountCodeOptions.data) == null ? void 0 : Je.length) > 0 ? (b(), E(ee, {
1150
1141
  key: 11,
1151
1142
  "header-items": ["Feedme Key", "Payment Code"],
1152
- rows: ((Xe = (le = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : le.mappings) == null ? void 0 : Xe.payments) || [],
1143
+ rows: ((le = (G = (Y = e.value) == null ? void 0 : Y.platform) == null ? void 0 : G.mappings) == null ? void 0 : le.payments) || [],
1153
1144
  "columns-per-row": 2,
1154
1145
  removable: !0,
1155
1146
  "mapping-type": "payments",
@@ -1161,10 +1152,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1161
1152
  dropdownOptions: f.accountCodeOptions.data ?? []
1162
1153
  }
1163
1154
  },
1164
- onRemove: r[18] || (r[18] = (ne, we) => s("payments", we)),
1165
- "onUpdate:rows": r[19] || (r[19] = (ne) => {
1166
- var we, Te;
1167
- (Te = (we = e.value) == null ? void 0 : we.platform) != null && Te.mappings && (e.value.platform.mappings.payments = ne);
1155
+ onRemove: r[17] || (r[17] = (ne, me) => s("payments", me)),
1156
+ "onUpdate:rows": r[18] || (r[18] = (ne) => {
1157
+ var me, Te;
1158
+ (Te = (me = e.value) == null ? void 0 : me.platform) != null && Te.mappings && (e.value.platform.mappings.payments = ne);
1168
1159
  })
1169
1160
  }, null, 8, ["rows", "fields-options"])) : O("", !0)
1170
1161
  ])
@@ -1173,10 +1164,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1173
1164
  ])) : O("", !0);
1174
1165
  };
1175
1166
  }
1176
- }), Go = { class: "h-full flex flex-col gap-16" }, Qo = { class: "flex flex-row gap-2 justify-between items-center" }, Xo = {
1167
+ }), Ho = { class: "h-full flex flex-col gap-16" }, Go = { class: "flex flex-row gap-2 justify-between items-center" }, Qo = {
1177
1168
  key: 0,
1178
1169
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
1179
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = /* @__PURE__ */ oe({
1170
+ }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = /* @__PURE__ */ oe({
1180
1171
  __name: "Preview",
1181
1172
  props: {
1182
1173
  modelValue: { required: !0 },
@@ -1291,13 +1282,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1291
1282
  header: "Payment Amount",
1292
1283
  enableSorting: !1
1293
1284
  }
1294
- ], F = se(f, "modelValue"), D = X(!1), I = Ae(), { dateRange: V } = Qe(Se());
1285
+ ], F = se(f, "modelValue"), D = X(!1), I = Ae(), { dateRange: V } = Ge(Se());
1295
1286
  Ke(
1296
1287
  () => V.value,
1297
1288
  async () => {
1298
1289
  if (F.value._id)
1299
1290
  try {
1300
- D.value = !0, a.value = await qe(F.value._id);
1291
+ D.value = !0, a.value = await Ye(F.value._id);
1301
1292
  } catch (g) {
1302
1293
  I.open({ message: g.message, type: "error" });
1303
1294
  } finally {
@@ -1310,7 +1301,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1310
1301
  );
1311
1302
  async function c() {
1312
1303
  try {
1313
- F.value._id ? (D.value = !0, await ot(F.value._id), I.open({ message: "Upload successful", type: "success" })) : I.open({ message: "Invalid accounting setting", type: "error" });
1304
+ F.value._id ? (D.value = !0, await tt(F.value._id), I.open({ message: "Upload successful", type: "success" })) : I.open({ message: "Invalid accounting setting", type: "error" });
1314
1305
  } catch (g) {
1315
1306
  g.message && I.open({ message: g.message, type: "error" }), Array.isArray(g.errors) ? g.errors.forEach((S) => I.open({ message: String(S), type: "error" })) : typeof g.errors == "string" && I.open({ message: g.errors, type: "error" });
1316
1307
  } finally {
@@ -1319,9 +1310,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1319
1310
  }
1320
1311
  return (g, S) => {
1321
1312
  const U = K("FmButton"), w = K("FmCircularProgress"), y = K("FmTable");
1322
- return b(), N("div", Go, [
1323
- t("div", Qo, [
1324
- l(Ge, {
1313
+ return b(), N("div", Ho, [
1314
+ t("div", Go, [
1315
+ l(He, {
1325
1316
  "date-range": m(V),
1326
1317
  "onUpdate:dateRange": S[0] || (S[0] = (i) => Me(V) ? V.value = i : null),
1327
1318
  compare: !1
@@ -1333,9 +1324,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1333
1324
  onClick: c
1334
1325
  }, null, 8, ["loading"])
1335
1326
  ]),
1336
- D.value ? (b(), N("div", Xo, [
1327
+ D.value ? (b(), N("div", Qo, [
1337
1328
  l(w, { size: "xl" }),
1338
- t("span", Wo, $(m(e)("report.common.isLoading")), 1)
1329
+ t("span", Xo, $(m(e)("report.common.isLoading")), 1)
1339
1330
  ])) : u.value.length > 0 ? (b(), E(y, {
1340
1331
  key: 1,
1341
1332
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -1345,9 +1336,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1345
1336
  ]);
1346
1337
  };
1347
1338
  }
1348
- }), Zo = { class: "h-full relative flex flex-col" }, ea = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ta = /* @__PURE__ */ oe({
1339
+ }), Jo = { class: "h-full relative flex flex-col" }, Zo = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ea = /* @__PURE__ */ oe({
1349
1340
  __name: "Xero",
1350
- props: /* @__PURE__ */ me({
1341
+ props: /* @__PURE__ */ ue({
1351
1342
  errorLogs: {}
1352
1343
  }, {
1353
1344
  modelValue: { required: !0 },
@@ -1369,10 +1360,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1369
1360
  ], c = ke(), g = B(() => {
1370
1361
  switch (v.value) {
1371
1362
  case "preview":
1372
- return { component: Jo };
1363
+ return { component: Wo };
1373
1364
  case "setting":
1374
1365
  return {
1375
- component: Ho,
1366
+ component: zo,
1376
1367
  props: {
1377
1368
  tenantOptions: F.value,
1378
1369
  taxOptions: D.value,
@@ -1387,7 +1378,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1387
1378
  async function S() {
1388
1379
  if (e.value._id)
1389
1380
  try {
1390
- const y = await gt(e.value._id);
1381
+ const y = await ft(e.value._id);
1391
1382
  F.value.data = y.map((i) => ({
1392
1383
  value: i.id,
1393
1384
  label: i.name
@@ -1401,7 +1392,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1401
1392
  async function U() {
1402
1393
  if (e.value._id)
1403
1394
  try {
1404
- const y = await vt(e.value._id);
1395
+ const y = await gt(e.value._id);
1405
1396
  D.value.data = y.map((i) => ({
1406
1397
  value: i.Name,
1407
1398
  label: `${i.Name} - (${i.EffectiveRate}%)`
@@ -1415,7 +1406,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1415
1406
  async function w() {
1416
1407
  if (e.value._id)
1417
1408
  try {
1418
- const y = await yt(e.value._id);
1409
+ const y = await vt(e.value._id);
1419
1410
  I.value.data = y.map((i) => ({
1420
1411
  value: i.Code,
1421
1412
  label: `${i.Code} ${i.Name} - [${i.Class}_${i.Type}]`
@@ -1439,7 +1430,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1439
1430
  ), (y, i) => {
1440
1431
  var d, s, x;
1441
1432
  const _ = K("FmPageHead"), k = K("FmTabs");
1442
- return b(), N("div", Zo, [
1433
+ return b(), N("div", Jo, [
1443
1434
  l(_, {
1444
1435
  title: ((d = e.value) == null ? void 0 : d.name) || "Xero",
1445
1436
  "back-button": !0,
@@ -1456,8 +1447,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1456
1447
  "onUpdate:modelValue": i[1] || (i[1] = (n) => v.value = n),
1457
1448
  items: V
1458
1449
  }, null, 8, ["model-value"]),
1459
- t("div", ea, [
1460
- (b(), E(Pe((s = g.value) == null ? void 0 : s.component), tt({
1450
+ t("div", Zo, [
1451
+ (b(), E(Pe((s = g.value) == null ? void 0 : s.component), et({
1461
1452
  modelValue: e.value,
1462
1453
  "onUpdate:modelValue": i[2] || (i[2] = (n) => e.value = n)
1463
1454
  }, (x = g.value) == null ? void 0 : x.props), null, 16, ["modelValue"]))
@@ -1465,7 +1456,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1465
1456
  ]);
1466
1457
  };
1467
1458
  }
1468
- }), oa = { class: "mt-6 mb-6" }, aa = { class: "list-disc pl-6 space-y-1" }, lt = /* @__PURE__ */ oe({
1459
+ }), ta = { class: "mt-6 mb-6" }, oa = { class: "list-disc pl-6 space-y-1" }, at = /* @__PURE__ */ oe({
1469
1460
  __name: "ReferenceNumberGuideButton",
1470
1461
  setup(f) {
1471
1462
  const { t: a } = re(), e = [
@@ -1554,8 +1545,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1554
1545
  })
1555
1546
  ]),
1556
1547
  default: $e(() => [
1557
- t("div", oa, [
1558
- t("ul", aa, [
1548
+ t("div", ta, [
1549
+ t("ul", oa, [
1559
1550
  t("li", null, $(m(a)("report.integration.refNumGuide.1stPoint")), 1),
1560
1551
  t("li", null, $(m(a)("report.integration.refNumGuide.2ndPoint")), 1),
1561
1552
  t("li", null, $(m(a)("report.integration.refNumGuide.3ndPoint")), 1),
@@ -1573,12 +1564,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1573
1564
  }, 8, ["header"]);
1574
1565
  };
1575
1566
  }
1576
- }), la = {
1567
+ }), aa = {
1577
1568
  key: 0,
1578
1569
  class: "flex flex-col h-full"
1579
- }, na = { class: "flex flex-col gap-16 pb-[24px]" }, sa = { class: "flex flex-row justify-between items-center gap-2" }, ra = { class: "fm-typo-en-title-sm-800" }, ia = { class: "flex flex-row gap-2 items-center" }, da = { class: "relative group cursor-pointer" }, ma = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, ua = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, pa = { class: "w-[90%] flex flex-col gap-24" }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fa = { class: "flex flex-col justify-between" }, ga = { class: "w-[25%] font-semibold" }, va = { class: "flex-grow" }, ya = { class: "flex flex-col justify-between" }, xa = { class: "w-[25%] font-semibold" }, ba = { class: "flex-grow" }, wa = { class: "flex flex-col gap-16" }, ha = { class: "fm-typo-en-title-sm-800" }, _a = { class: "flex flex-col max-w-[100%]" }, Ca = { class: "w-[25%] font-semibold" }, ka = { class: "flex-grow" }, $a = { class: "flex flex-col max-w-[100%]" }, Sa = { class: "w-[25%] font-semibold" }, Aa = { class: "flex flex-col max-w-[100%]" }, Va = { class: "w-[25%] font-semibold" }, Da = { class: "flex flex-col max-w-[100%]" }, Ka = { class: "flex flex-col gap-16" }, Fa = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ia = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ta = { class: "flex flex-row items-center gap-5" }, Ra = { class: "fm-typo-en-title-sm-800" }, Ua = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Na = { class: "flex flex-row items-center justify-between gap-x-16" }, Ma = { class: "fm-typo-en-title-sm-800" }, Pa = { class: "flex flex-row items-center justify-between gap-x-16" }, La = { class: "fm-typo-en-title-sm-800" }, ja = { class: "flex flex-row items-center justify-between gap-x-16" }, Ea = { class: "fm-typo-en-title-sm-800" }, Oa = { class: "flex flex-row items-center justify-between gap-x-16" }, Ba = { class: "fm-typo-en-title-sm-800" }, Ya = /* @__PURE__ */ oe({
1570
+ }, la = { class: "flex flex-col gap-16 pb-[24px]" }, na = { class: "flex flex-row justify-between items-center gap-2" }, sa = { class: "fm-typo-en-title-sm-800" }, ra = { class: "flex flex-row gap-2 items-center" }, ia = { class: "relative group cursor-pointer" }, da = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, ma = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ua = { class: "w-[90%] flex flex-col gap-24" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ca = { class: "flex flex-col justify-between" }, fa = { class: "w-[25%] font-semibold" }, ga = { class: "flex-grow" }, va = { class: "flex flex-col justify-between" }, ya = { class: "w-[25%] font-semibold" }, xa = { class: "flex-grow" }, ba = { class: "flex flex-col gap-16" }, wa = { class: "fm-typo-en-title-sm-800" }, ha = { class: "flex flex-col max-w-[100%]" }, _a = { class: "w-[25%] font-semibold" }, Ca = { class: "flex-grow" }, ka = { class: "flex flex-col max-w-[100%]" }, $a = { class: "w-[25%] font-semibold" }, Sa = { class: "flex flex-col max-w-[100%]" }, Aa = { class: "w-[25%] font-semibold" }, Va = { class: "flex flex-col max-w-[100%]" }, Da = { class: "flex flex-col gap-16" }, Ka = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Fa = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ia = { class: "flex flex-row items-center gap-5" }, Ta = { class: "fm-typo-en-title-sm-800" }, Ra = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ua = { class: "flex flex-row items-center justify-between gap-x-16" }, Na = { class: "fm-typo-en-title-sm-800" }, Ma = { class: "flex flex-row items-center justify-between gap-x-16" }, Pa = { class: "fm-typo-en-title-sm-800" }, La = { class: "flex flex-row items-center justify-between gap-x-16" }, ja = { class: "fm-typo-en-title-sm-800" }, Ea = { class: "flex flex-row items-center justify-between gap-x-16" }, Oa = { class: "fm-typo-en-title-sm-800" }, Ba = /* @__PURE__ */ oe({
1580
1571
  __name: "Setting",
1581
- props: /* @__PURE__ */ me({
1572
+ props: /* @__PURE__ */ ue({
1582
1573
  errorLogs: {}
1583
1574
  }, {
1584
1575
  modelValue: { required: !0 },
@@ -1586,7 +1577,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1586
1577
  }),
1587
1578
  emits: ["update:modelValue"],
1588
1579
  setup(f) {
1589
- const a = se(f, "modelValue"), e = Ae(), u = Re(), v = ke(), { promptLoader: F } = ze(), { promptMessage: D } = He(), { restaurants: I } = Se(), V = B(
1580
+ const a = se(f, "modelValue"), e = Ae(), u = Re(), v = ke(), { promptLoader: F } = qe(), { promptMessage: D } = ze(), { restaurants: I } = Se(), V = B(
1590
1581
  () => I.map((n) => ({ label: n.name, value: n.id }))
1591
1582
  ), { t: c } = re(), { rules: g, notifyUnauthorized: S } = Le();
1592
1583
  async function U() {
@@ -1605,7 +1596,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1605
1596
  title: c("report.common.delete")
1606
1597
  }) && await F(async () => {
1607
1598
  try {
1608
- await Be(a.value._id), await u.getSettings(), v.back();
1599
+ await Oe(a.value._id), await u.getSettings(), v.back();
1609
1600
  } catch (p) {
1610
1601
  e.open({ type: "error", message: p.message });
1611
1602
  }
@@ -1624,7 +1615,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1624
1615
  }
1625
1616
  await F(async () => {
1626
1617
  try {
1627
- await Ye(a.value._id, a.value), await u.getSettings();
1618
+ await Be(a.value._id, a.value), await u.getSettings();
1628
1619
  } catch (r) {
1629
1620
  e.open({ type: "error", message: r.message });
1630
1621
  }
@@ -1727,23 +1718,23 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1727
1718
  }
1728
1719
  });
1729
1720
  }
1730
- return Oe(async () => {
1721
+ return Ee(async () => {
1731
1722
  await u.getSettings();
1732
1723
  }), (n, o) => {
1733
- var L, W, te, ae, H, de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q, P;
1724
+ var L, W, te, ae, H, de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q, P;
1734
1725
  const h = K("FmIcon"), r = K("FmButton"), p = K("FmMenuDivider"), R = K("FmTextField"), T = K("FmSelect");
1735
- return (W = (L = a.value) == null ? void 0 : L.platform) != null && W.mappings ? (b(), N("div", la, [
1736
- t("div", na, [
1737
- t("div", sa, [
1738
- t("div", ra, $(m(c)("report.integration.bukku.connect")), 1),
1739
- t("div", ia, [
1740
- t("div", da, [
1726
+ return (W = (L = a.value) == null ? void 0 : L.platform) != null && W.mappings ? (b(), N("div", aa, [
1727
+ t("div", la, [
1728
+ t("div", na, [
1729
+ t("div", sa, $(m(c)("report.integration.bukku.connect")), 1),
1730
+ t("div", ra, [
1731
+ t("div", ia, [
1741
1732
  l(h, {
1742
1733
  name: "refresh",
1743
1734
  class: "p-2 bg-gray-100 rounded-full",
1744
1735
  onClick: x
1745
1736
  }),
1746
- t("span", ma, $(m(c)("report.integration.refreshSetting")), 1)
1737
+ t("span", da, $(m(c)("report.integration.refreshSetting")), 1)
1747
1738
  ]),
1748
1739
  l(r, {
1749
1740
  variant: "tertiary",
@@ -1760,12 +1751,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1760
1751
  ])
1761
1752
  ]),
1762
1753
  l(p, { style: { margin: 0 } }),
1763
- t("div", ua, [
1764
- t("div", pa, [
1765
- t("div", ca, $(m(c)("report.integration.bukku.authentication")), 1),
1766
- t("div", fa, [
1767
- t("div", ga, $(m(c)("report.integration.subdomain")), 1),
1768
- t("div", va, [
1754
+ t("div", ma, [
1755
+ t("div", ua, [
1756
+ t("div", pa, $(m(c)("report.integration.bukku.authentication")), 1),
1757
+ t("div", ca, [
1758
+ t("div", fa, $(m(c)("report.integration.subdomain")), 1),
1759
+ t("div", ga, [
1769
1760
  l(R, {
1770
1761
  modelValue: a.value.platform.subdomain,
1771
1762
  "onUpdate:modelValue": o[0] || (o[0] = (C) => a.value.platform.subdomain = C),
@@ -1773,9 +1764,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1773
1764
  }, null, 8, ["modelValue", "placeholder"])
1774
1765
  ])
1775
1766
  ]),
1776
- t("div", ya, [
1777
- t("div", xa, $(m(c)("report.integration.token")), 1),
1778
- t("div", ba, [
1767
+ t("div", va, [
1768
+ t("div", ya, $(m(c)("report.integration.token")), 1),
1769
+ t("div", xa, [
1779
1770
  l(R, {
1780
1771
  modelValue: a.value.platform.token,
1781
1772
  "onUpdate:modelValue": o[1] || (o[1] = (C) => a.value.platform.token = C),
@@ -1784,19 +1775,19 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1784
1775
  ])
1785
1776
  ]),
1786
1777
  l(p, { style: { margin: 0 } }),
1787
- t("div", wa, [
1788
- t("div", ha, $(m(c)("report.integration.general")), 1),
1789
- t("div", _a, [
1790
- t("div", Ca, $(m(c)("report.common.name")), 1),
1791
- t("div", ka, [
1778
+ t("div", ba, [
1779
+ t("div", wa, $(m(c)("report.integration.general")), 1),
1780
+ t("div", ha, [
1781
+ t("div", _a, $(m(c)("report.common.name")), 1),
1782
+ t("div", Ca, [
1792
1783
  l(R, {
1793
1784
  modelValue: a.value.name,
1794
1785
  "onUpdate:modelValue": o[2] || (o[2] = (C) => a.value.name = C)
1795
1786
  }, null, 8, ["modelValue"])
1796
1787
  ])
1797
1788
  ]),
1798
- t("div", $a, [
1799
- t("div", Sa, $(m(c)("report.common.location")), 1),
1789
+ t("div", ka, [
1790
+ t("div", $a, $(m(c)("report.common.location")), 1),
1800
1791
  l(T, {
1801
1792
  modelValue: a.value.platform.locationIds,
1802
1793
  "onUpdate:modelValue": o[3] || (o[3] = (C) => a.value.platform.locationIds = C),
@@ -1806,8 +1797,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1806
1797
  class: "flex-grow"
1807
1798
  }, null, 8, ["modelValue", "items"])
1808
1799
  ]),
1809
- t("div", Aa, [
1810
- t("div", Va, $(m(c)("report.integration.grouping.title")), 1),
1800
+ t("div", Sa, [
1801
+ t("div", Aa, $(m(c)("report.integration.grouping.title")), 1),
1811
1802
  l(T, {
1812
1803
  modelValue: a.value.platform.grouping,
1813
1804
  "onUpdate:modelValue": o[4] || (o[4] = (C) => a.value.platform.grouping = C),
@@ -1817,7 +1808,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1817
1808
  class: "flex-grow"
1818
1809
  }, null, 8, ["modelValue"])
1819
1810
  ]),
1820
- t("div", Da, [
1811
+ t("div", Va, [
1821
1812
  o[25] || (o[25] = t("div", { class: "w-[25%] font-semibold" }, $("MyInvois Action"), -1)),
1822
1813
  l(T, {
1823
1814
  modelValue: a.value.platform.mappings.myinvoisAction,
@@ -1829,8 +1820,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1829
1820
  }, null, 8, ["modelValue"])
1830
1821
  ])
1831
1822
  ]),
1832
- t("div", Ka, [
1833
- t("div", Fa, [
1823
+ t("div", Da, [
1824
+ t("div", Ka, [
1834
1825
  l(Q, {
1835
1826
  "model-value": {
1836
1827
  key: "Contact",
@@ -1880,12 +1871,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1880
1871
  ])
1881
1872
  ]),
1882
1873
  l(p, { style: { margin: 0 } }),
1883
- t("div", Ia, [
1884
- t("div", Ta, [
1885
- t("div", Ra, $(m(c)("report.integration.refNumFormat")), 1),
1886
- l(lt)
1874
+ t("div", Fa, [
1875
+ t("div", Ia, [
1876
+ t("div", Ta, $(m(c)("report.integration.refNumFormat")), 1),
1877
+ l(at)
1887
1878
  ]),
1888
- t("div", Ua, [
1879
+ t("div", Ra, [
1889
1880
  l(Q, {
1890
1881
  "model-value": {
1891
1882
  key: "Invoice no",
@@ -1921,7 +1912,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1921
1912
  ])
1922
1913
  ]),
1923
1914
  l(p, { style: { margin: 0 } }),
1924
- l(Ee, {
1915
+ l(Xe, {
1925
1916
  modelValue: a.value.platform,
1926
1917
  "onUpdate:modelValue": o[12] || (o[12] = (C) => a.value.platform = C),
1927
1918
  label: "upload",
@@ -1930,8 +1921,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1930
1921
  "integration-id": a.value._id
1931
1922
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
1932
1923
  l(p, { style: { margin: 0 } }),
1933
- t("div", Na, [
1934
- t("div", Ma, $(m(c)("report.integration.items")), 1),
1924
+ t("div", Ua, [
1925
+ t("div", Na, $(m(c)("report.integration.items")), 1),
1935
1926
  l(r, {
1936
1927
  variant: "secondary",
1937
1928
  "prepend-icon": "add",
@@ -1941,7 +1932,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1941
1932
  ]),
1942
1933
  l(ee, {
1943
1934
  "header-items": ["Key", "Account Code"],
1944
- rows: ((ce = (pe = (ue = a.value) == null ? void 0 : ue.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.items) || [],
1935
+ rows: ((fe = (ce = (pe = a.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : fe.items) || [],
1945
1936
  "columns-per-row": 2,
1946
1937
  removable: !0,
1947
1938
  "mapping-type": "items",
@@ -1956,8 +1947,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1956
1947
  })
1957
1948
  }, null, 8, ["rows"]),
1958
1949
  l(p, { style: { margin: 0 } }),
1959
- t("div", Pa, [
1960
- t("div", La, $(m(c)("report.integration.taxes")), 1),
1950
+ t("div", Ma, [
1951
+ t("div", Pa, $(m(c)("report.integration.taxes")), 1),
1961
1952
  l(r, {
1962
1953
  variant: "secondary",
1963
1954
  "prepend-icon": "add",
@@ -1967,7 +1958,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1967
1958
  ]),
1968
1959
  l(ee, {
1969
1960
  "header-items": ["Key", "Account Code"],
1970
- rows: ((ve = (ge = (fe = a.value) == null ? void 0 : fe.platform) == null ? void 0 : ge.mappings) == null ? void 0 : ve.taxes) || [],
1961
+ rows: ((ye = (ve = (ge = a.value) == null ? void 0 : ge.platform) == null ? void 0 : ve.mappings) == null ? void 0 : ye.taxes) || [],
1971
1962
  "columns-per-row": 2,
1972
1963
  removable: !0,
1973
1964
  "mapping-type": "taxes",
@@ -1982,8 +1973,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1982
1973
  })
1983
1974
  }, null, 8, ["rows"]),
1984
1975
  l(p, { style: { margin: 0 } }),
1985
- t("div", ja, [
1986
- t("div", Ea, $(m(c)("report.integration.taxRoundingAdjustments")), 1),
1976
+ t("div", La, [
1977
+ t("div", ja, $(m(c)("report.integration.taxRoundingAdjustments")), 1),
1987
1978
  l(r, {
1988
1979
  variant: "secondary",
1989
1980
  "prepend-icon": "add",
@@ -1993,7 +1984,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1993
1984
  ]),
1994
1985
  l(ee, {
1995
1986
  "header-items": ["Key", "Account Code"],
1996
- rows: ((be = (xe = (ye = a.value) == null ? void 0 : ye.platform) == null ? void 0 : xe.mappings) == null ? void 0 : be.taxRoundingAdjustments) || [],
1987
+ rows: ((we = (be = (xe = a.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : we.taxRoundingAdjustments) || [],
1997
1988
  "columns-per-row": 2,
1998
1989
  removable: !0,
1999
1990
  "mapping-type": "taxRoundingAdjustments",
@@ -2008,8 +1999,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2008
1999
  })
2009
2000
  }, null, 8, ["rows"]),
2010
2001
  l(p, { style: { margin: 0 } }),
2011
- t("div", Oa, [
2012
- t("div", Ba, $(m(c)("report.integration.payments")), 1),
2002
+ t("div", Ea, [
2003
+ t("div", Oa, $(m(c)("report.integration.payments")), 1),
2013
2004
  l(r, {
2014
2005
  variant: "secondary",
2015
2006
  "prepend-icon": "add",
@@ -2039,10 +2030,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2039
2030
  ])) : O("", !0);
2040
2031
  };
2041
2032
  }
2042
- }), qa = { class: "h-full flex flex-col gap-16" }, za = { class: "flex flex-row gap-2 justify-between items-center" }, Ha = {
2033
+ }), Ya = { class: "h-full flex flex-col gap-16" }, qa = { class: "flex flex-row gap-2 justify-between items-center" }, za = {
2043
2034
  key: 0,
2044
2035
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2045
- }, Ga = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qa = /* @__PURE__ */ oe({
2036
+ }, Ha = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ga = /* @__PURE__ */ oe({
2046
2037
  __name: "Preview",
2047
2038
  props: {
2048
2039
  modelValue: { required: !0 },
@@ -2190,13 +2181,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2190
2181
  header: "Payment Amount",
2191
2182
  enableSorting: !1
2192
2183
  }
2193
- ], D = se(f, "modelValue"), I = X(!1), V = Ae(), { dateRange: c } = Qe(Se());
2184
+ ], D = se(f, "modelValue"), I = X(!1), V = Ae(), { dateRange: c } = Ge(Se());
2194
2185
  Ke(
2195
2186
  () => c.value,
2196
2187
  async () => {
2197
2188
  if (D.value._id)
2198
2189
  try {
2199
- I.value = !0, a.value = await qe(D.value._id);
2190
+ I.value = !0, a.value = await Ye(D.value._id);
2200
2191
  } catch (S) {
2201
2192
  V.open({ message: S.message, type: "error" });
2202
2193
  } finally {
@@ -2209,7 +2200,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2209
2200
  );
2210
2201
  async function g() {
2211
2202
  try {
2212
- D.value._id ? (I.value = !0, await ot(D.value._id), V.open({ message: v("report.integration.uploadSuccess"), type: "success" })) : V.open({ message: v("report.integration.error.invalid"), type: "error" });
2203
+ D.value._id ? (I.value = !0, await tt(D.value._id), V.open({ message: v("report.integration.uploadSuccess"), type: "success" })) : V.open({ message: v("report.integration.error.invalid"), type: "error" });
2213
2204
  } catch (S) {
2214
2205
  S.message && V.open({ message: S.message, type: "error" }), Array.isArray(S.errors) ? S.errors.forEach((U) => V.open({ message: String(U), type: "error" })) : typeof S.errors == "string" && V.open({ message: S.errors, type: "error" });
2215
2206
  } finally {
@@ -2218,9 +2209,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2218
2209
  }
2219
2210
  return (S, U) => {
2220
2211
  const w = K("FmButton"), y = K("FmCircularProgress"), i = K("FmTable");
2221
- return b(), N("div", qa, [
2222
- t("div", za, [
2223
- l(Ge, {
2212
+ return b(), N("div", Ya, [
2213
+ t("div", qa, [
2214
+ l(He, {
2224
2215
  "date-range": m(c),
2225
2216
  "onUpdate:dateRange": U[0] || (U[0] = (_) => Me(c) ? c.value = _ : null),
2226
2217
  compare: !1
@@ -2232,9 +2223,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2232
2223
  onClick: g
2233
2224
  }, null, 8, ["loading", "label"])
2234
2225
  ]),
2235
- I.value ? (b(), N("div", Ha, [
2226
+ I.value ? (b(), N("div", za, [
2236
2227
  l(y, { size: "xl" }),
2237
- t("span", Ga, $(m(v)("report.integration.table.loading")), 1)
2228
+ t("span", Ha, $(m(v)("report.integration.table.loading")), 1)
2238
2229
  ])) : u.value.length > 0 ? (b(), E(i, {
2239
2230
  key: 1,
2240
2231
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -2244,9 +2235,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2244
2235
  ]);
2245
2236
  };
2246
2237
  }
2247
- }), Xa = { class: "h-full relative flex flex-col" }, Wa = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Ja = /* @__PURE__ */ oe({
2238
+ }), Qa = { class: "h-full relative flex flex-col" }, Xa = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Wa = /* @__PURE__ */ oe({
2248
2239
  __name: "Bukku",
2249
- props: /* @__PURE__ */ me({
2240
+ props: /* @__PURE__ */ ue({
2250
2241
  errorLogs: {}
2251
2242
  }, {
2252
2243
  modelValue: { required: !0 },
@@ -2274,11 +2265,11 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2274
2265
  switch (F.value) {
2275
2266
  case "preview":
2276
2267
  return {
2277
- component: Qa
2268
+ component: Ga
2278
2269
  };
2279
2270
  case "setting":
2280
2271
  return {
2281
- component: Ya,
2272
+ component: Ba,
2282
2273
  props: {
2283
2274
  errorLogs: u.errorLogs
2284
2275
  }
@@ -2290,7 +2281,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2290
2281
  return (c, g) => {
2291
2282
  var w, y;
2292
2283
  const S = K("FmPageHead"), U = K("FmTabs");
2293
- return b(), N("div", Xa, [
2284
+ return b(), N("div", Qa, [
2294
2285
  l(S, {
2295
2286
  title: v.value.name || "Bukku",
2296
2287
  "back-button": !0,
@@ -2307,8 +2298,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2307
2298
  "onUpdate:modelValue": g[1] || (g[1] = (i) => F.value = i),
2308
2299
  items: D
2309
2300
  }, null, 8, ["model-value"]),
2310
- t("div", Wa, [
2311
- (b(), E(Pe((w = V.value) == null ? void 0 : w.component), tt({
2301
+ t("div", Xa, [
2302
+ (b(), E(Pe((w = V.value) == null ? void 0 : w.component), et({
2312
2303
  modelValue: v.value,
2313
2304
  "onUpdate:modelValue": g[2] || (g[2] = (i) => v.value = i)
2314
2305
  }, (y = V.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
@@ -2316,12 +2307,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2316
2307
  ]);
2317
2308
  };
2318
2309
  }
2319
- }), Za = {
2310
+ }), Ja = {
2320
2311
  key: 0,
2321
2312
  class: "flex flex-col h-full"
2322
- }, el = { class: "flex flex-col gap-16 pb-[24px]" }, tl = { class: "flex flex-row justify-between items-center gap-2" }, ol = { class: "flex flex-row gap-2 items-center" }, al = { class: "relative group cursor-pointer" }, ll = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, nl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, sl = { class: "w-[90%] flex flex-col gap-24" }, rl = { class: "flex flex-col gap-16" }, il = { class: "fm-typo-en-title-sm-800" }, dl = { class: "flex flex-col max-w-[100%]" }, ml = { class: "w-[25%] font-semibold" }, ul = { class: "flex-grow" }, pl = { class: "flex flex-col max-w-[100%]" }, cl = { class: "w-[25%] font-semibold" }, fl = { class: "flex flex-col max-w-[100%]" }, gl = { class: "w-[25%] font-semibold" }, vl = { class: "flex flex-col gap-16" }, yl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, xl = { class: "flex flex-col gap-16 pt-3 pb-3" }, bl = { class: "flex flex-row items-center gap-5" }, wl = { class: "fm-typo-en-title-sm-800" }, hl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, _l = { class: "flex flex-row items-center justify-between gap-x-16" }, Cl = { class: "fm-typo-en-title-sm-800" }, kl = { class: "flex flex-row items-center justify-between gap-x-16" }, $l = { class: "fm-typo-en-title-sm-800" }, Sl = { class: "flex flex-row items-center justify-between gap-x-16" }, Al = { class: "fm-typo-en-title-sm-800" }, Vl = { class: "flex flex-row items-center justify-between gap-x-16" }, Dl = { class: "fm-typo-en-title-sm-800" }, Kl = /* @__PURE__ */ oe({
2313
+ }, Za = { class: "flex flex-col gap-16 pb-[24px]" }, el = { class: "flex flex-row justify-between items-center gap-2" }, tl = { class: "flex flex-row gap-2 items-center" }, ol = { class: "relative group cursor-pointer" }, al = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, ll = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, nl = { class: "w-[90%] flex flex-col gap-24" }, sl = { class: "flex flex-col gap-16" }, rl = { class: "fm-typo-en-title-sm-800" }, il = { class: "flex flex-col max-w-[100%]" }, dl = { class: "w-[25%] font-semibold" }, ml = { class: "flex-grow" }, ul = { class: "flex flex-col max-w-[100%]" }, pl = { class: "w-[25%] font-semibold" }, cl = { class: "flex flex-col max-w-[100%]" }, fl = { class: "w-[25%] font-semibold" }, gl = { class: "flex flex-col gap-16" }, vl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, yl = { class: "flex flex-col gap-16 pt-3 pb-3" }, xl = { class: "flex flex-row items-center gap-5" }, bl = { class: "fm-typo-en-title-sm-800" }, wl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, hl = { class: "flex flex-row items-center justify-between gap-x-16" }, _l = { class: "fm-typo-en-title-sm-800" }, Cl = { class: "flex flex-row items-center justify-between gap-x-16" }, kl = { class: "fm-typo-en-title-sm-800" }, $l = { class: "flex flex-row items-center justify-between gap-x-16" }, Sl = { class: "fm-typo-en-title-sm-800" }, Al = { class: "flex flex-row items-center justify-between gap-x-16" }, Vl = { class: "fm-typo-en-title-sm-800" }, Dl = /* @__PURE__ */ oe({
2323
2314
  __name: "Setting",
2324
- props: /* @__PURE__ */ me({
2315
+ props: /* @__PURE__ */ ue({
2325
2316
  errorLogs: {}
2326
2317
  }, {
2327
2318
  modelValue: { required: !0 },
@@ -2329,7 +2320,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2329
2320
  }),
2330
2321
  emits: ["update:modelValue"],
2331
2322
  setup(f) {
2332
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
2323
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
2333
2324
  () => V.map((x) => ({ label: x.name, value: x.id }))
2334
2325
  );
2335
2326
  async function U() {
@@ -2348,7 +2339,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2348
2339
  title: a("report.common.delete")
2349
2340
  }) && await D(async () => {
2350
2341
  try {
2351
- await Be(e.value._id), await v.getSettings(), F.back();
2342
+ await Oe(e.value._id), await v.getSettings(), F.back();
2352
2343
  } catch (r) {
2353
2344
  u.open({ type: "error", message: r.message });
2354
2345
  }
@@ -2367,7 +2358,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2367
2358
  }
2368
2359
  await D(async () => {
2369
2360
  try {
2370
- await Ye(e.value._id, e.value), await v.getSettings();
2361
+ await Be(e.value._id, e.value), await v.getSettings();
2371
2362
  } catch (h) {
2372
2363
  u.open({ type: "error", message: h.message });
2373
2364
  }
@@ -2434,23 +2425,23 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2434
2425
  }
2435
2426
  });
2436
2427
  }
2437
- return Oe(async () => {
2428
+ return Ee(async () => {
2438
2429
  await v.getSettings();
2439
2430
  }), (x, n) => {
2440
- var T, L, W, te, ae, H, de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q;
2431
+ var T, L, W, te, ae, H, de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q;
2441
2432
  const o = K("FmIcon"), h = K("FmButton"), r = K("FmMenuDivider"), p = K("FmTextField"), R = K("FmSelect");
2442
- return (L = (T = e.value) == null ? void 0 : T.platform) != null && L.mappings ? (b(), N("div", Za, [
2443
- t("div", el, [
2444
- t("div", tl, [
2433
+ return (L = (T = e.value) == null ? void 0 : T.platform) != null && L.mappings ? (b(), N("div", Ja, [
2434
+ t("div", Za, [
2435
+ t("div", el, [
2445
2436
  n[23] || (n[23] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
2446
- t("div", ol, [
2447
- t("div", al, [
2437
+ t("div", tl, [
2438
+ t("div", ol, [
2448
2439
  l(o, {
2449
2440
  name: "refresh",
2450
2441
  class: "p-2 bg-gray-100 rounded-full",
2451
2442
  onClick: s
2452
2443
  }),
2453
- t("span", ll, $(m(a)("report.integration.refreshSetting")), 1)
2444
+ t("span", al, $(m(a)("report.integration.refreshSetting")), 1)
2454
2445
  ]),
2455
2446
  l(h, {
2456
2447
  variant: "tertiary",
@@ -2467,21 +2458,21 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2467
2458
  ])
2468
2459
  ]),
2469
2460
  l(r, { style: { margin: 0 } }),
2470
- t("div", nl, [
2471
- t("div", sl, [
2472
- t("div", rl, [
2473
- t("div", il, $(m(a)("report.integration.general")), 1),
2474
- t("div", dl, [
2475
- t("div", ml, $(m(a)("report.common.name")), 1),
2476
- t("div", ul, [
2461
+ t("div", ll, [
2462
+ t("div", nl, [
2463
+ t("div", sl, [
2464
+ t("div", rl, $(m(a)("report.integration.general")), 1),
2465
+ t("div", il, [
2466
+ t("div", dl, $(m(a)("report.common.name")), 1),
2467
+ t("div", ml, [
2477
2468
  l(p, {
2478
2469
  modelValue: e.value.name,
2479
2470
  "onUpdate:modelValue": n[0] || (n[0] = (P) => e.value.name = P)
2480
2471
  }, null, 8, ["modelValue"])
2481
2472
  ])
2482
2473
  ]),
2483
- t("div", pl, [
2484
- t("div", cl, $(m(a)("report.integration.location")), 1),
2474
+ t("div", ul, [
2475
+ t("div", pl, $(m(a)("report.integration.location")), 1),
2485
2476
  l(R, {
2486
2477
  modelValue: e.value.platform.locationIds,
2487
2478
  "onUpdate:modelValue": n[1] || (n[1] = (P) => e.value.platform.locationIds = P),
@@ -2492,8 +2483,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2492
2483
  rules: [(P) => P.length !== 0 || "Please select at least 1 location"]
2493
2484
  }, null, 8, ["modelValue", "items", "rules"])
2494
2485
  ]),
2495
- t("div", fl, [
2496
- t("div", gl, $(m(a)("report.integration.grouping.title")), 1),
2486
+ t("div", cl, [
2487
+ t("div", fl, $(m(a)("report.integration.grouping.title")), 1),
2497
2488
  l(R, {
2498
2489
  modelValue: e.value.platform.grouping,
2499
2490
  "onUpdate:modelValue": n[2] || (n[2] = (P) => e.value.platform.grouping = P),
@@ -2504,8 +2495,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2504
2495
  }, null, 8, ["modelValue"])
2505
2496
  ])
2506
2497
  ]),
2507
- t("div", vl, [
2508
- t("div", yl, [
2498
+ t("div", gl, [
2499
+ t("div", vl, [
2509
2500
  l(Q, {
2510
2501
  "model-value": { key: "Project", account: e.value.platform.mappings.project },
2511
2502
  options: d("Project"),
@@ -2539,12 +2530,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2539
2530
  ])
2540
2531
  ]),
2541
2532
  l(r, { style: { margin: 0 } }),
2542
- t("div", xl, [
2543
- t("div", bl, [
2544
- t("div", wl, $(m(a)("report.integration.refNumFormat")), 1),
2545
- l(lt)
2533
+ t("div", yl, [
2534
+ t("div", xl, [
2535
+ t("div", bl, $(m(a)("report.integration.refNumFormat")), 1),
2536
+ l(at)
2546
2537
  ]),
2547
- t("div", hl, [
2538
+ t("div", wl, [
2548
2539
  l(Q, {
2549
2540
  "model-value": {
2550
2541
  key: "Invoice no",
@@ -2580,7 +2571,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2580
2571
  ])
2581
2572
  ]),
2582
2573
  l(r, { style: { margin: 0 } }),
2583
- l(Ee, {
2574
+ l(Xe, {
2584
2575
  modelValue: e.value.platform,
2585
2576
  "onUpdate:modelValue": n[10] || (n[10] = (P) => e.value.platform = P),
2586
2577
  label: m(a)("report.input.email"),
@@ -2590,8 +2581,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2590
2581
  "is-auto-email-mode": !0
2591
2582
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
2592
2583
  l(r, { style: { margin: 0 } }),
2593
- t("div", _l, [
2594
- t("div", Cl, $(m(a)("report.integration.items")), 1),
2584
+ t("div", hl, [
2585
+ t("div", _l, $(m(a)("report.integration.items")), 1),
2595
2586
  l(h, {
2596
2587
  variant: "secondary",
2597
2588
  "prepend-icon": "add",
@@ -2601,7 +2592,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2601
2592
  ]),
2602
2593
  l(ee, {
2603
2594
  "header-items": ["Key", "Account Code"],
2604
- rows: ((pe = (ue = (de = e.value) == null ? void 0 : de.platform) == null ? void 0 : ue.mappings) == null ? void 0 : pe.items) || [],
2595
+ rows: ((ce = (pe = (de = e.value) == null ? void 0 : de.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.items) || [],
2605
2596
  "columns-per-row": 2,
2606
2597
  removable: !0,
2607
2598
  "mapping-type": "items",
@@ -2616,8 +2607,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2616
2607
  })
2617
2608
  }, null, 8, ["rows"]),
2618
2609
  l(r, { style: { margin: 0 } }),
2619
- t("div", kl, [
2620
- t("div", $l, $(m(a)("report.integration.taxes")), 1),
2610
+ t("div", Cl, [
2611
+ t("div", kl, $(m(a)("report.integration.taxes")), 1),
2621
2612
  l(h, {
2622
2613
  variant: "secondary",
2623
2614
  "prepend-icon": "add",
@@ -2627,7 +2618,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2627
2618
  ]),
2628
2619
  l(ee, {
2629
2620
  "header-items": ["Key", "Account Code"],
2630
- rows: ((ge = (fe = (ce = e.value) == null ? void 0 : ce.platform) == null ? void 0 : fe.mappings) == null ? void 0 : ge.taxes) || [],
2621
+ rows: ((ve = (ge = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : ge.mappings) == null ? void 0 : ve.taxes) || [],
2631
2622
  "columns-per-row": 2,
2632
2623
  removable: !0,
2633
2624
  "mapping-type": "taxes",
@@ -2642,8 +2633,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2642
2633
  })
2643
2634
  }, null, 8, ["rows"]),
2644
2635
  l(r, { style: { margin: 0 } }),
2645
- t("div", Sl, [
2646
- t("div", Al, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
2636
+ t("div", $l, [
2637
+ t("div", Sl, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
2647
2638
  l(h, {
2648
2639
  variant: "secondary",
2649
2640
  "prepend-icon": "add",
@@ -2653,7 +2644,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2653
2644
  ]),
2654
2645
  l(ee, {
2655
2646
  "header-items": ["Key", "Account Code"],
2656
- rows: ((xe = (ye = (ve = e.value) == null ? void 0 : ve.platform) == null ? void 0 : ye.mappings) == null ? void 0 : xe.taxRoundingAdjustments) || [],
2647
+ rows: ((be = (xe = (ye = e.value) == null ? void 0 : ye.platform) == null ? void 0 : xe.mappings) == null ? void 0 : be.taxRoundingAdjustments) || [],
2657
2648
  "columns-per-row": 2,
2658
2649
  removable: !0,
2659
2650
  "mapping-type": "taxRoundingAdjustments",
@@ -2668,8 +2659,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2668
2659
  })
2669
2660
  }, null, 8, ["rows"]),
2670
2661
  l(r, { style: { margin: 0 } }),
2671
- t("div", Vl, [
2672
- t("div", Dl, $(m(a)("report.integration.payments")), 1),
2662
+ t("div", Al, [
2663
+ t("div", Vl, $(m(a)("report.integration.payments")), 1),
2673
2664
  l(h, {
2674
2665
  variant: "secondary",
2675
2666
  "prepend-icon": "add",
@@ -2679,7 +2670,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2679
2670
  ]),
2680
2671
  l(ee, {
2681
2672
  "header-items": ["Key", "Payment Name"],
2682
- rows: ((q = (J = (be = e.value) == null ? void 0 : be.platform) == null ? void 0 : J.mappings) == null ? void 0 : q.payments) || [],
2673
+ rows: ((q = (J = (we = e.value) == null ? void 0 : we.platform) == null ? void 0 : J.mappings) == null ? void 0 : q.payments) || [],
2683
2674
  "columns-per-row": 2,
2684
2675
  removable: !0,
2685
2676
  "mapping-type": "payments",
@@ -2698,10 +2689,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2698
2689
  ])) : O("", !0);
2699
2690
  };
2700
2691
  }
2701
- }), Fl = { class: "h-full flex flex-col gap-16" }, Il = { class: "flex flex-row gap-2 justify-between items-center" }, Tl = {
2692
+ }), Kl = { class: "h-full flex flex-col gap-16" }, Fl = { class: "flex flex-row gap-2 justify-between items-center" }, Il = {
2702
2693
  key: 0,
2703
2694
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2704
- }, Rl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ul = /* @__PURE__ */ oe({
2695
+ }, Tl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rl = /* @__PURE__ */ oe({
2705
2696
  __name: "Preview",
2706
2697
  props: {
2707
2698
  modelValue: { required: !0 },
@@ -2809,13 +2800,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2809
2800
  header: "Payment Amount",
2810
2801
  enableSorting: !1
2811
2802
  }
2812
- ], F = se(f, "modelValue"), D = X(!1), I = Ae(), { dateRange: V } = Qe(Se());
2803
+ ], F = se(f, "modelValue"), D = X(!1), I = Ae(), { dateRange: V } = Ge(Se());
2813
2804
  Ke(
2814
2805
  () => V.value,
2815
2806
  async () => {
2816
2807
  if (F.value._id)
2817
2808
  try {
2818
- D.value = !0, e.value = await qe(F.value._id);
2809
+ D.value = !0, e.value = await Ye(F.value._id);
2819
2810
  } catch (g) {
2820
2811
  I.open({ message: g.message, type: "error" });
2821
2812
  } finally {
@@ -2828,7 +2819,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2828
2819
  );
2829
2820
  async function c() {
2830
2821
  try {
2831
- F.value._id ? (D.value = !0, await at(F.value._id)) : I.open({ message: "Invalid accounting setting", type: "error" });
2822
+ F.value._id ? (D.value = !0, await ot(F.value._id)) : I.open({ message: "Invalid accounting setting", type: "error" });
2832
2823
  } catch (g) {
2833
2824
  g.message && I.open({ message: g.message, type: "error" }), Array.isArray(g.errors) ? g.errors.forEach((S) => I.open({ message: String(S), type: "error" })) : typeof g.errors == "string" && I.open({ message: g.errors, type: "error" });
2834
2825
  } finally {
@@ -2837,9 +2828,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2837
2828
  }
2838
2829
  return (g, S) => {
2839
2830
  const U = K("FmButton"), w = K("FmCircularProgress"), y = K("FmTable");
2840
- return b(), N("div", Fl, [
2841
- t("div", Il, [
2842
- l(Ge, {
2831
+ return b(), N("div", Kl, [
2832
+ t("div", Fl, [
2833
+ l(He, {
2843
2834
  "date-range": m(V),
2844
2835
  "onUpdate:dateRange": S[0] || (S[0] = (i) => Me(V) ? V.value = i : null),
2845
2836
  compare: !1
@@ -2851,9 +2842,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2851
2842
  onClick: c
2852
2843
  }, null, 8, ["loading", "label"])
2853
2844
  ]),
2854
- D.value ? (b(), N("div", Tl, [
2845
+ D.value ? (b(), N("div", Il, [
2855
2846
  l(w, { size: "xl" }),
2856
- t("span", Rl, $(m(a)("report.common.isLoading")), 1)
2847
+ t("span", Tl, $(m(a)("report.common.isLoading")), 1)
2857
2848
  ])) : u.value.length > 0 ? (b(), E(y, {
2858
2849
  key: 1,
2859
2850
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -2863,9 +2854,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2863
2854
  ]);
2864
2855
  };
2865
2856
  }
2866
- }), Nl = { class: "h-full relative flex flex-col" }, Ml = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Pl = /* @__PURE__ */ oe({
2857
+ }), Ul = { class: "h-full relative flex flex-col" }, Nl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Ml = /* @__PURE__ */ oe({
2867
2858
  __name: "AutoCount",
2868
- props: /* @__PURE__ */ me({
2859
+ props: /* @__PURE__ */ ue({
2869
2860
  errorLogs: {}
2870
2861
  }, {
2871
2862
  modelValue: {},
@@ -2887,9 +2878,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2887
2878
  ], D = ke(), I = B(() => {
2888
2879
  switch (v.value) {
2889
2880
  case "preview":
2890
- return Ul;
2881
+ return Rl;
2891
2882
  case "setting":
2892
- return Kl;
2883
+ return Dl;
2893
2884
  default:
2894
2885
  return null;
2895
2886
  }
@@ -2897,7 +2888,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2897
2888
  return (V, c) => {
2898
2889
  var U;
2899
2890
  const g = K("FmPageHead"), S = K("FmTabs");
2900
- return b(), N("div", Nl, [
2891
+ return b(), N("div", Ul, [
2901
2892
  l(g, {
2902
2893
  title: ((U = e.value) == null ? void 0 : U.name) || "AutoCount",
2903
2894
  "back-button": !0,
@@ -2914,7 +2905,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2914
2905
  "onUpdate:modelValue": c[1] || (c[1] = (w) => v.value = w),
2915
2906
  items: F
2916
2907
  }, null, 8, ["model-value"]),
2917
- t("div", Ml, [
2908
+ t("div", Nl, [
2918
2909
  (b(), E(Pe(I.value), {
2919
2910
  modelValue: e.value,
2920
2911
  "onUpdate:modelValue": c[2] || (c[2] = (w) => e.value = w),
@@ -2924,12 +2915,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2924
2915
  ]);
2925
2916
  };
2926
2917
  }
2927
- }), Ll = {
2918
+ }), Pl = {
2928
2919
  key: 0,
2929
2920
  class: "flex flex-col h-full"
2930
- }, jl = { class: "flex flex-col gap-16 pb-[24px]" }, El = { class: "flex flex-row justify-between items-center gap-2" }, Ol = { class: "flex flex-row gap-2 items-center" }, Bl = { class: "relative group cursor-pointer" }, Yl = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, ql = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, zl = { class: "w-[90%] flex flex-col gap-24" }, Hl = { class: "flex flex-col gap-16" }, Gl = { class: "fm-typo-en-title-sm-800" }, Ql = { class: "flex flex-col max-w-[100%]" }, Xl = { class: "w-[25%] font-semibold" }, Wl = { class: "flex-grow" }, Jl = { class: "flex flex-col max-w-[100%]" }, Zl = { class: "w-[25%] font-semibold" }, en = { class: "flex flex-col max-w-[100%]" }, tn = { class: "w-[25%] font-semibold" }, on = { class: "flex flex-col gap-16" }, an = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ln = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, nn = { class: "flex flex-col gap-16 pt-3 pb-3" }, sn = { class: "flex flex-row items-center gap-5" }, rn = { class: "fm-typo-en-title-sm-800" }, dn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, mn = { class: "flex flex-row items-center justify-between gap-x-16" }, un = { class: "fm-typo-en-title-sm-800" }, pn = { class: "flex flex-row items-center justify-between gap-x-16" }, cn = { class: "fm-typo-en-title-sm-800" }, fn = { class: "flex flex-row items-center justify-between gap-x-16" }, gn = { class: "fm-typo-en-title-sm-800" }, vn = { class: "flex flex-row items-center justify-between gap-x-16" }, yn = { class: "fm-typo-en-title-sm-800" }, xn = { class: "flex flex-row items-center justify-between gap-x-16" }, bn = { class: "fm-typo-en-title-sm-800" }, wn = { class: "flex flex-row items-center justify-between gap-x-16" }, hn = { class: "flex flex-row items-center justify-between gap-x-16" }, _n = /* @__PURE__ */ oe({
2921
+ }, Ll = { class: "flex flex-col gap-16 pb-[24px]" }, jl = { class: "flex flex-row justify-between items-center gap-2" }, El = { class: "flex flex-row gap-2 items-center" }, Ol = { class: "relative group cursor-pointer" }, Bl = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Yl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ql = { class: "w-[90%] flex flex-col gap-24" }, zl = { class: "flex flex-col gap-16" }, Hl = { class: "fm-typo-en-title-sm-800" }, Gl = { class: "flex flex-col max-w-[100%]" }, Ql = { class: "w-[25%] font-semibold" }, Xl = { class: "flex-grow" }, Wl = { class: "flex flex-col max-w-[100%]" }, Jl = { class: "w-[25%] font-semibold" }, Zl = { class: "flex flex-col max-w-[100%]" }, en = { class: "w-[25%] font-semibold" }, tn = { class: "flex flex-col gap-16" }, on = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, an = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ln = { class: "flex flex-col gap-16 pt-3 pb-3" }, nn = { class: "flex flex-row items-center gap-5" }, sn = { class: "fm-typo-en-title-sm-800" }, rn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, dn = { class: "flex flex-row items-center justify-between gap-x-16" }, mn = { class: "fm-typo-en-title-sm-800" }, un = { class: "flex flex-row items-center justify-between gap-x-16" }, pn = { class: "fm-typo-en-title-sm-800" }, cn = { class: "flex flex-row items-center justify-between gap-x-16" }, fn = { class: "fm-typo-en-title-sm-800" }, gn = { class: "flex flex-row items-center justify-between gap-x-16" }, vn = { class: "fm-typo-en-title-sm-800" }, yn = { class: "flex flex-row items-center justify-between gap-x-16" }, xn = { class: "fm-typo-en-title-sm-800" }, bn = { class: "flex flex-row items-center justify-between gap-x-16" }, wn = { class: "flex flex-row items-center justify-between gap-x-16" }, hn = /* @__PURE__ */ oe({
2931
2922
  __name: "Setting",
2932
- props: /* @__PURE__ */ me({
2923
+ props: /* @__PURE__ */ ue({
2933
2924
  errorLogs: {}
2934
2925
  }, {
2935
2926
  modelValue: { required: !0 },
@@ -2937,7 +2928,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2937
2928
  }),
2938
2929
  emits: ["update:modelValue"],
2939
2930
  setup(f) {
2940
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
2931
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
2941
2932
  () => V.map((n) => ({ label: n.name, value: n.id }))
2942
2933
  );
2943
2934
  async function U() {
@@ -2956,7 +2947,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2956
2947
  title: a("report.common.delete")
2957
2948
  }) && await D(async () => {
2958
2949
  try {
2959
- await Be(e.value._id), await v.getSettings(), F.back();
2950
+ await Oe(e.value._id), await v.getSettings(), F.back();
2960
2951
  } catch (p) {
2961
2952
  u.open({ type: "error", message: p.message });
2962
2953
  }
@@ -2975,7 +2966,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2975
2966
  }
2976
2967
  await D(async () => {
2977
2968
  try {
2978
- await Ye(e.value._id, e.value), await Ne(e.value._id), await v.getSettings();
2969
+ await Be(e.value._id, e.value), await Ne(e.value._id), await v.getSettings();
2979
2970
  } catch (r) {
2980
2971
  u.open({ type: "error", message: r.message });
2981
2972
  }
@@ -3037,7 +3028,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3037
3028
  });
3038
3029
  }
3039
3030
  const s = B(() => {
3040
- const { flags: n } = st();
3031
+ const { flags: n } = nt();
3041
3032
  return n.some(
3042
3033
  (o) => o.key === "report_portal_integration_custom_sql" && o.value === !0
3043
3034
  );
@@ -3061,23 +3052,23 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3061
3052
  }
3062
3053
  ] : []
3063
3054
  ]);
3064
- return Oe(async () => {
3055
+ return Ee(async () => {
3065
3056
  await v.getSettings();
3066
3057
  }), (n, o) => {
3067
- var L, W, te, ae, H, de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q, P, C, M, z, Fe, j, ie, Ve, Je, Ze;
3058
+ var L, W, te, ae, H, de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q, P, C, M, z, Fe, j, ie, Ve, We, Je;
3068
3059
  const h = K("FmIcon"), r = K("FmButton"), p = K("FmMenuDivider"), R = K("FmTextField"), T = K("FmSelect");
3069
- return (W = (L = e.value) == null ? void 0 : L.platform) != null && W.mappings ? (b(), N("div", Ll, [
3070
- t("div", jl, [
3071
- t("div", El, [
3060
+ return (W = (L = e.value) == null ? void 0 : L.platform) != null && W.mappings ? (b(), N("div", Pl, [
3061
+ t("div", Ll, [
3062
+ t("div", jl, [
3072
3063
  o[34] || (o[34] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
3073
- t("div", Ol, [
3074
- t("div", Bl, [
3064
+ t("div", El, [
3065
+ t("div", Ol, [
3075
3066
  l(h, {
3076
3067
  name: "refresh",
3077
3068
  class: "p-2 bg-gray-100 rounded-full",
3078
3069
  onClick: d
3079
3070
  }),
3080
- t("span", Yl, $(m(a)("report.integration.refreshSetting")), 1)
3071
+ t("span", Bl, $(m(a)("report.integration.refreshSetting")), 1)
3081
3072
  ]),
3082
3073
  l(r, {
3083
3074
  variant: "tertiary",
@@ -3094,21 +3085,21 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3094
3085
  ])
3095
3086
  ]),
3096
3087
  l(p, { style: { margin: 0 } }),
3097
- t("div", ql, [
3098
- t("div", zl, [
3099
- t("div", Hl, [
3100
- t("div", Gl, $(m(a)("report.integration.general")), 1),
3101
- t("div", Ql, [
3102
- t("div", Xl, $(m(a)("report.common.name")), 1),
3103
- t("div", Wl, [
3088
+ t("div", Yl, [
3089
+ t("div", ql, [
3090
+ t("div", zl, [
3091
+ t("div", Hl, $(m(a)("report.integration.general")), 1),
3092
+ t("div", Gl, [
3093
+ t("div", Ql, $(m(a)("report.common.name")), 1),
3094
+ t("div", Xl, [
3104
3095
  l(R, {
3105
3096
  modelValue: e.value.name,
3106
3097
  "onUpdate:modelValue": o[0] || (o[0] = (Y) => e.value.name = Y)
3107
3098
  }, null, 8, ["modelValue"])
3108
3099
  ])
3109
3100
  ]),
3110
- t("div", Jl, [
3111
- t("div", Zl, $(m(a)("report.integration.location")), 1),
3101
+ t("div", Wl, [
3102
+ t("div", Jl, $(m(a)("report.integration.location")), 1),
3112
3103
  l(T, {
3113
3104
  modelValue: e.value.platform.locationIds,
3114
3105
  "onUpdate:modelValue": o[1] || (o[1] = (Y) => e.value.platform.locationIds = Y),
@@ -3119,8 +3110,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3119
3110
  rules: [(Y) => Y.length !== 0 || "Please select at least 1 location"]
3120
3111
  }, null, 8, ["modelValue", "items", "rules"])
3121
3112
  ]),
3122
- t("div", en, [
3123
- t("div", tn, $(m(a)("report.integration.grouping.title")), 1),
3113
+ t("div", Zl, [
3114
+ t("div", en, $(m(a)("report.integration.grouping.title")), 1),
3124
3115
  l(T, {
3125
3116
  modelValue: e.value.platform.grouping,
3126
3117
  "onUpdate:modelValue": o[2] || (o[2] = (Y) => e.value.platform.grouping = Y),
@@ -3131,8 +3122,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3131
3122
  }, null, 8, ["modelValue", "items"])
3132
3123
  ])
3133
3124
  ]),
3134
- t("div", on, [
3135
- t("div", an, [
3125
+ t("div", tn, [
3126
+ t("div", on, [
3136
3127
  l(Q, {
3137
3128
  "model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
3138
3129
  options: k("Debtor"),
@@ -3163,7 +3154,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3163
3154
  "onUpdate:modelValue": o[6] || (o[6] = (Y) => _({ key: "customAttribute", value: Y.account }))
3164
3155
  }, null, 8, ["model-value", "options"])
3165
3156
  ]),
3166
- t("div", ln, [
3157
+ t("div", an, [
3167
3158
  l(Q, {
3168
3159
  "model-value": {
3169
3160
  key: "Rounding",
@@ -3176,8 +3167,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3176
3167
  code: { placeholder: "Item code", editable: !0 }
3177
3168
  },
3178
3169
  "onUpdate:modelValue": o[7] || (o[7] = (Y) => {
3179
- var G, le, Xe;
3180
- (Xe = (le = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : le.mappings) != null && Xe.rounding && (e.value.platform.mappings.rounding.account = Y.account, e.value.platform.mappings.rounding.code = Y.code);
3170
+ var G, le, ne;
3171
+ (ne = (le = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : le.mappings) != null && ne.rounding && (e.value.platform.mappings.rounding.account = Y.account, e.value.platform.mappings.rounding.code = Y.code);
3181
3172
  })
3182
3173
  }, null, 8, ["model-value"]),
3183
3174
  (b(!0), N(De, null, je((H = (ae = (te = e.value) == null ? void 0 : te.platform) == null ? void 0 : ae.mappings) == null ? void 0 : H.charges, (Y, G) => (b(), E(Q, {
@@ -3193,12 +3184,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3193
3184
  ])
3194
3185
  ]),
3195
3186
  l(p, { style: { margin: 0 } }),
3196
- t("div", nn, [
3197
- t("div", sn, [
3198
- t("div", rn, $(m(a)("report.integration.refNumFormat")), 1),
3199
- l(lt)
3187
+ t("div", ln, [
3188
+ t("div", nn, [
3189
+ t("div", sn, $(m(a)("report.integration.refNumFormat")), 1),
3190
+ l(at)
3200
3191
  ]),
3201
- t("div", dn, [
3192
+ t("div", rn, [
3202
3193
  l(Q, {
3203
3194
  "model-value": {
3204
3195
  key: "Invoice no",
@@ -3234,7 +3225,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3234
3225
  ])
3235
3226
  ]),
3236
3227
  l(p, { style: { margin: 0 } }),
3237
- l(Ee, {
3228
+ l(Xe, {
3238
3229
  modelValue: e.value.platform,
3239
3230
  "onUpdate:modelValue": o[12] || (o[12] = (Y) => e.value.platform = Y),
3240
3231
  label: "email",
@@ -3244,8 +3235,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3244
3235
  "is-auto-email-mode": !0
3245
3236
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
3246
3237
  l(p, { style: { margin: 0 } }),
3247
- t("div", mn, [
3248
- t("div", un, $(m(a)("report.integration.items")), 1),
3238
+ t("div", dn, [
3239
+ t("div", mn, $(m(a)("report.integration.items")), 1),
3249
3240
  l(r, {
3250
3241
  variant: "secondary",
3251
3242
  "prepend-icon": "add",
@@ -3255,7 +3246,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3255
3246
  ]),
3256
3247
  l(ee, {
3257
3248
  "header-items": ["Key", "Account Code", "Item Code"],
3258
- rows: ((ce = (pe = (ue = e.value) == null ? void 0 : ue.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.items) || [],
3249
+ rows: ((fe = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : fe.items) || [],
3259
3250
  "columns-per-row": 1,
3260
3251
  removable: !0,
3261
3252
  "mapping-type": "items",
@@ -3271,8 +3262,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3271
3262
  })
3272
3263
  }, null, 8, ["rows"]),
3273
3264
  l(p, { style: { margin: 0 } }),
3274
- t("div", pn, [
3275
- t("div", cn, $(m(a)("report.integration.taxes")), 1),
3265
+ t("div", un, [
3266
+ t("div", pn, $(m(a)("report.integration.taxes")), 1),
3276
3267
  l(r, {
3277
3268
  variant: "secondary",
3278
3269
  "prepend-icon": "add",
@@ -3282,7 +3273,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3282
3273
  ]),
3283
3274
  l(ee, {
3284
3275
  "header-items": ["Key", "Account Code"],
3285
- rows: ((ve = (ge = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : ge.mappings) == null ? void 0 : ve.taxes) || [],
3276
+ rows: ((ye = (ve = (ge = e.value) == null ? void 0 : ge.platform) == null ? void 0 : ve.mappings) == null ? void 0 : ye.taxes) || [],
3286
3277
  "columns-per-row": 2,
3287
3278
  removable: !0,
3288
3279
  "mapping-type": "taxes",
@@ -3297,8 +3288,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3297
3288
  })
3298
3289
  }, null, 8, ["rows"]),
3299
3290
  l(p, { style: { margin: 0 } }),
3300
- t("div", fn, [
3301
- t("div", gn, $(m(a)("report.integration.taxesForRefund")), 1),
3291
+ t("div", cn, [
3292
+ t("div", fn, $(m(a)("report.integration.taxesForRefund")), 1),
3302
3293
  l(r, {
3303
3294
  variant: "secondary",
3304
3295
  "prepend-icon": "add",
@@ -3308,7 +3299,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3308
3299
  ]),
3309
3300
  l(ee, {
3310
3301
  "header-items": ["Key", "Account Code"],
3311
- rows: ((be = (xe = (ye = e.value) == null ? void 0 : ye.platform) == null ? void 0 : xe.mappings) == null ? void 0 : be.taxesForRefund) || [],
3302
+ rows: ((we = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : we.taxesForRefund) || [],
3312
3303
  "columns-per-row": 2,
3313
3304
  removable: !0,
3314
3305
  "mapping-type": "taxesForRefund",
@@ -3323,8 +3314,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3323
3314
  })
3324
3315
  }, null, 8, ["rows"]),
3325
3316
  l(p, { style: { margin: 0 } }),
3326
- t("div", vn, [
3327
- t("div", yn, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
3317
+ t("div", gn, [
3318
+ t("div", vn, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
3328
3319
  l(r, {
3329
3320
  variant: "secondary",
3330
3321
  "prepend-icon": "add",
@@ -3349,8 +3340,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3349
3340
  })
3350
3341
  }, null, 8, ["rows"]),
3351
3342
  l(p, { style: { margin: 0 } }),
3352
- t("div", xn, [
3353
- t("div", bn, $(m(a)("report.integration.payments")), 1),
3343
+ t("div", yn, [
3344
+ t("div", xn, $(m(a)("report.integration.payments")), 1),
3354
3345
  l(r, {
3355
3346
  variant: "secondary",
3356
3347
  "prepend-icon": "add",
@@ -3376,7 +3367,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3376
3367
  }, null, 8, ["rows"]),
3377
3368
  l(p, { style: { margin: 0 } }),
3378
3369
  s.value ? (b(), N(De, { key: 0 }, [
3379
- t("div", wn, [
3370
+ t("div", bn, [
3380
3371
  o[35] || (o[35] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
3381
3372
  l(r, {
3382
3373
  variant: "secondary",
@@ -3398,8 +3389,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3398
3389
  uom: { placeholder: "UOM", editable: !0 }
3399
3390
  },
3400
3391
  onRemove: o[29] || (o[29] = (Y, G) => {
3401
- var le, Xe, ne;
3402
- if (((ne = (Xe = (le = e.value) == null ? void 0 : le.platform) == null ? void 0 : Xe.inventoryMappings) == null ? void 0 : ne.items[G].key) === "DEFAULT") {
3392
+ var le, ne, me;
3393
+ if (((me = (ne = (le = e.value) == null ? void 0 : le.platform) == null ? void 0 : ne.inventoryMappings) == null ? void 0 : me.items[G].key) === "DEFAULT") {
3403
3394
  m(u).open({
3404
3395
  type: "error",
3405
3396
  message: "DEFAULT item cannot be removed."
@@ -3414,7 +3405,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3414
3405
  })
3415
3406
  }, null, 8, ["rows"]),
3416
3407
  l(p, { style: { margin: 0 } }),
3417
- t("div", hn, [
3408
+ t("div", wn, [
3418
3409
  o[36] || (o[36] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
3419
3410
  l(r, {
3420
3411
  variant: "secondary",
@@ -3425,7 +3416,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3425
3416
  ]),
3426
3417
  l(ee, {
3427
3418
  "header-items": ["Key", "Code", "Name"],
3428
- rows: ((Ze = (Je = (Ve = e.value) == null ? void 0 : Ve.platform) == null ? void 0 : Je.inventoryMappings) == null ? void 0 : Ze.suppliers) || [],
3419
+ rows: ((Je = (We = (Ve = e.value) == null ? void 0 : Ve.platform) == null ? void 0 : We.inventoryMappings) == null ? void 0 : Je.suppliers) || [],
3429
3420
  "columns-per-row": 1,
3430
3421
  removable: !0,
3431
3422
  "mapping-type": "suppliers",
@@ -3448,13 +3439,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3448
3439
  ])) : O("", !0);
3449
3440
  };
3450
3441
  }
3451
- }), Cn = { class: "h-full flex flex-col gap-16" }, kn = { class: "flex flex-row gap-2 justify-between items-center" }, $n = {
3442
+ }), _n = { class: "h-full flex flex-col gap-16" }, Cn = { class: "flex flex-row gap-2 justify-between items-center" }, kn = {
3452
3443
  key: 0,
3453
3444
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
3454
- }, Sn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = {
3445
+ }, $n = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = {
3455
3446
  key: 1,
3456
3447
  class: "w-full h-full flex flex-col flex-grow"
3457
- }, Vn = /* @__PURE__ */ oe({
3448
+ }, An = /* @__PURE__ */ oe({
3458
3449
  __name: "Preview",
3459
3450
  props: {
3460
3451
  modelValue: { required: !0 },
@@ -3642,13 +3633,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3642
3633
  header: "Item Amount",
3643
3634
  enableSorting: !1
3644
3635
  }
3645
- ], I = se(f, "modelValue"), V = X(!1), c = Ae(), { dateRange: g } = Qe(Se());
3636
+ ], I = se(f, "modelValue"), V = X(!1), c = Ae(), { dateRange: g } = Ge(Se());
3646
3637
  Ke(
3647
3638
  () => g.value,
3648
3639
  async () => {
3649
3640
  if (I.value._id)
3650
3641
  try {
3651
- V.value = !0, e.value = await qe(I.value._id);
3642
+ V.value = !0, e.value = await Ye(I.value._id);
3652
3643
  } catch (i) {
3653
3644
  c.open({ message: i.message, type: "error" });
3654
3645
  } finally {
@@ -3665,7 +3656,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3665
3656
  c.open({ message: "Invalid accounting setting", type: "error" });
3666
3657
  return;
3667
3658
  }
3668
- V.value = !0, await at(I.value._id, [y.value]);
3659
+ V.value = !0, await ot(I.value._id, [y.value]);
3669
3660
  } catch (i) {
3670
3661
  i.message && c.open({ message: i.message, type: "error" }), Array.isArray(i.errors) ? i.errors.forEach((_) => c.open({ message: String(_), type: "error" })) : typeof i.errors == "string" && c.open({ message: i.errors, type: "error" });
3671
3662
  } finally {
@@ -3673,7 +3664,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3673
3664
  }
3674
3665
  }
3675
3666
  const U = B(() => {
3676
- const { flags: i } = st();
3667
+ const { flags: i } = nt();
3677
3668
  return i.some(
3678
3669
  (_) => _.key === "report_portal_integration_custom_sql" && _.value === !0
3679
3670
  );
@@ -3693,9 +3684,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3693
3684
  ], y = X(w[0].value);
3694
3685
  return (i, _) => {
3695
3686
  const k = K("FmButton"), d = K("FmCircularProgress"), s = K("FmTabs"), x = K("FmTable");
3696
- return b(), N("div", Cn, [
3697
- t("div", kn, [
3698
- l(Ge, {
3687
+ return b(), N("div", _n, [
3688
+ t("div", Cn, [
3689
+ l(He, {
3699
3690
  "date-range": m(g),
3700
3691
  "onUpdate:dateRange": _[0] || (_[0] = (n) => Me(g) ? g.value = n : null),
3701
3692
  compare: !1
@@ -3707,10 +3698,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3707
3698
  onClick: S
3708
3699
  }, null, 8, ["loading", "label"])
3709
3700
  ]),
3710
- V.value ? (b(), N("div", $n, [
3701
+ V.value ? (b(), N("div", kn, [
3711
3702
  l(d, { size: "xl" }),
3712
- t("span", Sn, $(m(a)("report.common.isLoading")), 1)
3713
- ])) : (b(), N("div", An, [
3703
+ t("span", $n, $(m(a)("report.common.isLoading")), 1)
3704
+ ])) : (b(), N("div", Sn, [
3714
3705
  l(s, {
3715
3706
  "model-value": y.value,
3716
3707
  "onUpdate:modelValue": _[1] || (_[1] = (n) => y.value = n),
@@ -3732,9 +3723,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3732
3723
  ]);
3733
3724
  };
3734
3725
  }
3735
- }), Dn = { class: "h-full relative flex flex-col" }, Kn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Fn = /* @__PURE__ */ oe({
3726
+ }), Vn = { class: "h-full relative flex flex-col" }, Dn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Kn = /* @__PURE__ */ oe({
3736
3727
  __name: "SQL",
3737
- props: /* @__PURE__ */ me({
3728
+ props: /* @__PURE__ */ ue({
3738
3729
  errorLogs: {}
3739
3730
  }, {
3740
3731
  modelValue: {},
@@ -3756,9 +3747,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3756
3747
  ], D = ke(), I = B(() => {
3757
3748
  switch (v.value) {
3758
3749
  case "preview":
3759
- return Vn;
3750
+ return An;
3760
3751
  case "setting":
3761
- return _n;
3752
+ return hn;
3762
3753
  default:
3763
3754
  return null;
3764
3755
  }
@@ -3766,7 +3757,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3766
3757
  return (V, c) => {
3767
3758
  var U;
3768
3759
  const g = K("FmPageHead"), S = K("FmTabs");
3769
- return b(), N("div", Dn, [
3760
+ return b(), N("div", Vn, [
3770
3761
  l(g, {
3771
3762
  title: ((U = e.value) == null ? void 0 : U.name) || "SQL",
3772
3763
  "back-button": !0,
@@ -3783,7 +3774,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3783
3774
  "onUpdate:modelValue": c[1] || (c[1] = (w) => v.value = w),
3784
3775
  items: F
3785
3776
  }, null, 8, ["model-value"]),
3786
- t("div", Kn, [
3777
+ t("div", Dn, [
3787
3778
  (b(), E(Pe(I.value), {
3788
3779
  modelValue: e.value,
3789
3780
  "onUpdate:modelValue": c[2] || (c[2] = (w) => e.value = w),
@@ -3793,24 +3784,24 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3793
3784
  ]);
3794
3785
  };
3795
3786
  }
3796
- }), In = {
3787
+ }), Fn = {
3797
3788
  key: 0,
3798
3789
  class: "flex flex-col h-full"
3799
- }, Tn = { class: "flex flex-col gap-16 pb-[24px]" }, Rn = { class: "flex flex-row justify-between items-center gap-2" }, Un = { class: "fm-typo-en-title-sm-800" }, Nn = { class: "flex flex-row gap-2 items-center" }, Mn = { class: "flex flex-row gap-2 items-center" }, Pn = { class: "relative group cursor-pointer" }, Ln = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, jn = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, En = { class: "w-[90%] flex flex-col gap-24" }, On = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bn = { class: "flex flex-col max-w-[100%]" }, Yn = { class: "w-[25%] font-semibold" }, qn = { class: "flex-grow" }, zn = { class: "flex flex-col gap-24 pt-[24px]" }, Hn = { class: "flex flex-col justify-between" }, Gn = { class: "w-[25%] font-semibold" }, Qn = { class: "flex-grow" }, Xn = { class: "flex flex-col justify-between" }, Wn = { class: "w-[25%] font-semibold" }, Jn = { class: "flex-grow" }, Zn = { class: "flex flex-col gap-16" }, es = { class: "fm-typo-en-title-sm-800" }, ts = { class: "flex flex-col max-w-[100%]" }, os = { class: "w-[25%] font-semibold" }, as = { class: "flex-grow" }, ls = { class: "flex flex-col max-w-[100%]" }, ns = { class: "w-[25%] font-semibold" }, ss = { class: "flex flex-col max-w-[100%]" }, rs = { class: "w-[25%] font-semibold" }, is = {
3790
+ }, In = { class: "flex flex-col gap-16 pb-[24px]" }, Tn = { class: "flex flex-row justify-between items-center gap-2" }, Rn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "flex flex-row gap-2 items-center" }, Nn = { class: "flex flex-row gap-2 items-center" }, Mn = { class: "relative group cursor-pointer" }, Pn = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Ln = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, jn = { class: "w-[90%] flex flex-col gap-24" }, En = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, On = { class: "flex flex-col max-w-[100%]" }, Bn = { class: "w-[25%] font-semibold" }, Yn = { class: "flex-grow" }, qn = { class: "flex flex-col gap-24 pt-[24px]" }, zn = { class: "flex flex-col justify-between" }, Hn = { class: "w-[25%] font-semibold" }, Gn = { class: "flex-grow" }, Qn = { class: "flex flex-col justify-between" }, Xn = { class: "w-[25%] font-semibold" }, Wn = { class: "flex-grow" }, Jn = { class: "flex flex-col gap-16" }, Zn = { class: "fm-typo-en-title-sm-800" }, es = { class: "flex flex-col max-w-[100%]" }, ts = { class: "w-[25%] font-semibold" }, os = { class: "flex-grow" }, as = { class: "flex flex-col max-w-[100%]" }, ls = { class: "w-[25%] font-semibold" }, ns = { class: "flex flex-col max-w-[100%]" }, ss = { class: "w-[25%] font-semibold" }, rs = {
3800
3791
  key: 0,
3801
3792
  class: "flex flex-col max-w-[100%]"
3802
- }, ds = { class: "flex flex-col gap-16" }, ms = { class: "xs:grid-cols-1 grid gap-16" }, us = { key: 1 }, ps = { class: "flex flex-col gap-16 pt-3 pb-3" }, cs = { class: "flex flex-row items-center gap-5" }, fs = { class: "fm-typo-en-title-sm-800" }, gs = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, vs = { class: "flex flex-row items-center justify-between gap-x-16" }, ys = { class: "fm-typo-en-title-sm-800" }, xs = { class: "flex flex-row items-center justify-between gap-x-16" }, bs = { class: "fm-typo-en-title-sm-800" }, ws = { class: "flex flex-row items-center justify-between gap-x-16" }, hs = { class: "fm-typo-en-title-sm-800" }, _s = { class: "flex flex-row items-center justify-between gap-x-16" }, Cs = { class: "fm-typo-en-title-sm-800" }, ks = { class: "flex flex-row items-center justify-between" }, $s = { class: "flex-grow" }, Ss = {
3793
+ }, is = { class: "flex flex-col gap-16" }, ds = { class: "xs:grid-cols-1 grid gap-16" }, ms = { key: 1 }, us = { class: "flex flex-col gap-16 pt-3 pb-3" }, ps = { class: "flex flex-row items-center gap-5" }, cs = { class: "fm-typo-en-title-sm-800" }, fs = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, gs = { class: "flex flex-row items-center justify-between gap-x-16" }, vs = { class: "fm-typo-en-title-sm-800" }, ys = { class: "flex flex-row items-center justify-between gap-x-16" }, xs = { class: "fm-typo-en-title-sm-800" }, bs = { class: "flex flex-row items-center justify-between gap-x-16" }, ws = { class: "fm-typo-en-title-sm-800" }, hs = { class: "flex flex-row items-center justify-between gap-x-16" }, _s = { class: "fm-typo-en-title-sm-800" }, Cs = { class: "flex flex-row items-center justify-between" }, ks = { class: "flex-grow" }, $s = {
3803
3794
  key: 0,
3804
3795
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
3805
- }, As = {
3796
+ }, Ss = {
3806
3797
  key: 1,
3807
3798
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
3808
- }, Vs = {
3799
+ }, As = {
3809
3800
  key: 3,
3810
3801
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
3811
- }, Ds = /* @__PURE__ */ oe({
3802
+ }, Vs = /* @__PURE__ */ oe({
3812
3803
  __name: "Setting",
3813
- props: /* @__PURE__ */ me({
3804
+ props: /* @__PURE__ */ ue({
3814
3805
  retrievedMethods: {
3815
3806
  type: Object,
3816
3807
  required: !0
@@ -3829,7 +3820,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3829
3820
  }),
3830
3821
  emits: ["update:modelValue"],
3831
3822
  setup(f) {
3832
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
3823
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
3833
3824
  () => V.map((n) => ({ label: n.name, value: n.id }))
3834
3825
  );
3835
3826
  function U(n) {
@@ -3855,7 +3846,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3855
3846
  title: a("report.common.delete")
3856
3847
  }) && await D(async () => {
3857
3848
  try {
3858
- await Be(e.value._id), await v.getSettings(), F.back();
3849
+ await Oe(e.value._id), await v.getSettings(), F.back();
3859
3850
  } catch (p) {
3860
3851
  u.open({ type: "error", message: p.message });
3861
3852
  }
@@ -3875,7 +3866,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3875
3866
  await D(async () => {
3876
3867
  var r, p, R;
3877
3868
  try {
3878
- (R = (p = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : p.mappings) != null && R.paymentMethods && U(e.value.platform.mappings.paymentMethods), await Ye(e.value._id, e.value), await v.getSettings();
3869
+ (R = (p = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : p.mappings) != null && R.paymentMethods && U(e.value.platform.mappings.paymentMethods), await Be(e.value._id, e.value), await v.getSettings();
3879
3870
  } catch (T) {
3880
3871
  u.open({ type: "error", message: T.message });
3881
3872
  }
@@ -3981,24 +3972,24 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3981
3972
  }
3982
3973
  });
3983
3974
  }
3984
- return Oe(async () => {
3975
+ return Ee(async () => {
3985
3976
  await v.getSettings();
3986
3977
  }), (n, o) => {
3987
- var W, te, ae, H, de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q, P;
3978
+ var W, te, ae, H, de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q, P;
3988
3979
  const h = K("FmIcon"), r = K("FmButton"), p = K("FmSelect"), R = K("FmMenuDivider"), T = K("FmTextField"), L = K("FmCircularProgress");
3989
- return (te = (W = e.value) == null ? void 0 : W.platform) != null && te.mappings ? (b(), N("div", In, [
3990
- t("div", Tn, [
3991
- t("div", Rn, [
3992
- t("div", Un, $(m(a)("report.integration.connect")), 1),
3993
- t("div", Nn, [
3994
- t("div", Mn, [
3995
- t("div", Pn, [
3980
+ return (te = (W = e.value) == null ? void 0 : W.platform) != null && te.mappings ? (b(), N("div", Fn, [
3981
+ t("div", In, [
3982
+ t("div", Tn, [
3983
+ t("div", Rn, $(m(a)("report.integration.connect")), 1),
3984
+ t("div", Un, [
3985
+ t("div", Nn, [
3986
+ t("div", Mn, [
3996
3987
  l(h, {
3997
3988
  name: "refresh",
3998
3989
  class: "p-2 bg-gray-100 rounded-full",
3999
3990
  onClick: x
4000
3991
  }),
4001
- t("span", Ln, $(m(a)("report.integration.refreshSetting")), 1)
3992
+ t("span", Pn, $(m(a)("report.integration.refreshSetting")), 1)
4002
3993
  ]),
4003
3994
  l(r, {
4004
3995
  variant: "tertiary",
@@ -4015,12 +4006,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4015
4006
  ])
4016
4007
  ])
4017
4008
  ]),
4018
- t("div", jn, [
4019
- t("div", En, [
4020
- t("div", On, $(m(a)("report.integration.biztory.authenticate")), 1),
4021
- t("div", Bn, [
4022
- t("div", Yn, " Biztory " + $(m(a)("report.integration.biztory.version")), 1),
4023
- t("div", qn, [
4009
+ t("div", Ln, [
4010
+ t("div", jn, [
4011
+ t("div", En, $(m(a)("report.integration.biztory.authenticate")), 1),
4012
+ t("div", On, [
4013
+ t("div", Bn, " Biztory " + $(m(a)("report.integration.biztory.version")), 1),
4014
+ t("div", Yn, [
4024
4015
  l(p, {
4025
4016
  modelValue: e.value.platform.mappings.version,
4026
4017
  "onUpdate:modelValue": o[0] || (o[0] = (C) => e.value.platform.mappings.version = C),
@@ -4033,10 +4024,10 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4033
4024
  ])
4034
4025
  ]),
4035
4026
  l(R, { style: { margin: 0 } }),
4036
- t("div", zn, [
4037
- t("div", Hn, [
4038
- t("div", Gn, $(m(a)("report.integration.biztory.subdomain")), 1),
4039
- t("div", Qn, [
4027
+ t("div", qn, [
4028
+ t("div", zn, [
4029
+ t("div", Hn, $(m(a)("report.integration.biztory.subdomain")), 1),
4030
+ t("div", Gn, [
4040
4031
  l(T, {
4041
4032
  modelValue: e.value.platform.subdomain,
4042
4033
  "onUpdate:modelValue": o[1] || (o[1] = (C) => e.value.platform.subdomain = C),
@@ -4044,9 +4035,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4044
4035
  }, null, 8, ["modelValue"])
4045
4036
  ])
4046
4037
  ]),
4047
- t("div", Xn, [
4048
- t("div", Wn, $(m(a)("report.integration.biztory.apiKey")), 1),
4049
- t("div", Jn, [
4038
+ t("div", Qn, [
4039
+ t("div", Xn, $(m(a)("report.integration.biztory.apiKey")), 1),
4040
+ t("div", Wn, [
4050
4041
  l(T, {
4051
4042
  modelValue: e.value.platform.api_key,
4052
4043
  "onUpdate:modelValue": o[2] || (o[2] = (C) => e.value.platform.api_key = C),
@@ -4054,19 +4045,19 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4054
4045
  }, null, 8, ["modelValue"])
4055
4046
  ])
4056
4047
  ]),
4057
- t("div", Zn, [
4058
- t("div", es, $(m(a)("report.integration.general")), 1),
4059
- t("div", ts, [
4060
- t("div", os, $(m(a)("report.common.name")), 1),
4061
- t("div", as, [
4048
+ t("div", Jn, [
4049
+ t("div", Zn, $(m(a)("report.integration.general")), 1),
4050
+ t("div", es, [
4051
+ t("div", ts, $(m(a)("report.common.name")), 1),
4052
+ t("div", os, [
4062
4053
  l(T, {
4063
4054
  modelValue: e.value.name,
4064
4055
  "onUpdate:modelValue": o[3] || (o[3] = (C) => e.value.name = C)
4065
4056
  }, null, 8, ["modelValue"])
4066
4057
  ])
4067
4058
  ]),
4068
- t("div", ls, [
4069
- t("div", ns, $(m(a)("report.common.location")), 1),
4059
+ t("div", as, [
4060
+ t("div", ls, $(m(a)("report.common.location")), 1),
4070
4061
  l(p, {
4071
4062
  modelValue: e.value.platform.locationIds,
4072
4063
  "onUpdate:modelValue": o[4] || (o[4] = (C) => e.value.platform.locationIds = C),
@@ -4076,8 +4067,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4076
4067
  class: "flex-grow"
4077
4068
  }, null, 8, ["modelValue", "items", "placeholder"])
4078
4069
  ]),
4079
- t("div", ss, [
4080
- t("div", rs, $(m(a)("report.integration.grouping.title")), 1),
4070
+ t("div", ns, [
4071
+ t("div", ss, $(m(a)("report.integration.grouping.title")), 1),
4081
4072
  l(p, {
4082
4073
  modelValue: e.value.platform.grouping,
4083
4074
  "onUpdate:modelValue": o[5] || (o[5] = (C) => e.value.platform.grouping = C),
@@ -4088,7 +4079,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4088
4079
  disabled: ""
4089
4080
  }, null, 8, ["modelValue", "placeholder"])
4090
4081
  ]),
4091
- e.value.platform.mappings.version == "v1" ? (b(), N("div", is, [
4082
+ e.value.platform.mappings.version == "v1" ? (b(), N("div", rs, [
4092
4083
  o[26] || (o[26] = t("div", { class: "w-[33%] font-semibold" }, "Payee ID", -1)),
4093
4084
  e.value.platform.mappings.version == "v1" ? (b(), E(Q, {
4094
4085
  key: 0,
@@ -4100,14 +4091,14 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4100
4091
  removable: !1
4101
4092
  }, null, 8, ["modelValue"])) : O("", !0)
4102
4093
  ])) : O("", !0),
4103
- t("div", ds, [
4104
- t("div", ms, [
4094
+ t("div", is, [
4095
+ t("div", ds, [
4105
4096
  !f.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (b(), E(L, {
4106
4097
  key: 0,
4107
4098
  size: "xl"
4108
4099
  })) : O("", !0),
4109
- f.retrievedCustomers.isLoaded && f.retrievedCustomers.data && ((ae = f.retrievedCustomers.data) == null ? void 0 : ae.length) != 0 ? (b(), N("div", us, [
4110
- e.value.platform.mappings.version == "v2" ? (b(), E(it, {
4100
+ f.retrievedCustomers.isLoaded && f.retrievedCustomers.data && ((ae = f.retrievedCustomers.data) == null ? void 0 : ae.length) != 0 ? (b(), N("div", ms, [
4101
+ e.value.platform.mappings.version == "v2" ? (b(), E(rt, {
4111
4102
  key: 0,
4112
4103
  modelValue: e.value.platform.mappings.payeeId,
4113
4104
  "onUpdate:modelValue": o[7] || (o[7] = (C) => e.value.platform.mappings.payeeId = C),
@@ -4127,12 +4118,12 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4127
4118
  ])
4128
4119
  ]),
4129
4120
  l(R, { style: { margin: 0 } }),
4130
- t("div", ps, [
4131
- t("div", cs, [
4132
- t("div", fs, $(m(a)("report.integration.refNumFormat")), 1),
4133
- l(lt)
4121
+ t("div", us, [
4122
+ t("div", ps, [
4123
+ t("div", cs, $(m(a)("report.integration.refNumFormat")), 1),
4124
+ l(at)
4134
4125
  ]),
4135
- t("div", gs, [
4126
+ t("div", fs, [
4136
4127
  l(Q, {
4137
4128
  "model-value": {
4138
4129
  key: "Invoice no",
@@ -4170,7 +4161,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4170
4161
  ])
4171
4162
  ]),
4172
4163
  l(R, { style: { margin: 0 } }),
4173
- l(Ee, {
4164
+ l(Xe, {
4174
4165
  modelValue: e.value.platform,
4175
4166
  "onUpdate:modelValue": o[12] || (o[12] = (C) => e.value.platform = C),
4176
4167
  label: "upload",
@@ -4179,8 +4170,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4179
4170
  "integration-id": e.value._id
4180
4171
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
4181
4172
  l(R, { style: { margin: 0 } }),
4182
- t("div", vs, [
4183
- t("div", ys, $(m(a)("report.integration.biztory.items")), 1),
4173
+ t("div", gs, [
4174
+ t("div", vs, $(m(a)("report.integration.biztory.items")), 1),
4184
4175
  l(r, {
4185
4176
  variant: "secondary",
4186
4177
  "prepend-icon": "add",
@@ -4190,7 +4181,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4190
4181
  ]),
4191
4182
  l(ee, {
4192
4183
  "header-items": ["Key", "Account Code"],
4193
- rows: ((ce = (pe = (ue = e.value) == null ? void 0 : ue.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.items) || [],
4184
+ rows: ((fe = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : fe.items) || [],
4194
4185
  "columns-per-row": 2,
4195
4186
  removable: !0,
4196
4187
  "mapping-type": "items",
@@ -4205,8 +4196,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4205
4196
  })
4206
4197
  }, null, 8, ["rows"]),
4207
4198
  l(R, { style: { margin: 0 } }),
4208
- t("div", xs, [
4209
- t("div", bs, $(m(a)("report.integration.biztory.taxes")), 1),
4199
+ t("div", ys, [
4200
+ t("div", xs, $(m(a)("report.integration.biztory.taxes")), 1),
4210
4201
  l(r, {
4211
4202
  variant: "secondary",
4212
4203
  "prepend-icon": "add",
@@ -4216,7 +4207,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4216
4207
  ]),
4217
4208
  l(ee, {
4218
4209
  "header-items": ["Key", "Account Code"],
4219
- rows: ((ve = (ge = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : ge.mappings) == null ? void 0 : ve.taxes) || [],
4210
+ rows: ((ye = (ve = (ge = e.value) == null ? void 0 : ge.platform) == null ? void 0 : ve.mappings) == null ? void 0 : ye.taxes) || [],
4220
4211
  "columns-per-row": 2,
4221
4212
  removable: !0,
4222
4213
  "mapping-type": "taxes",
@@ -4231,8 +4222,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4231
4222
  })
4232
4223
  }, null, 8, ["rows"]),
4233
4224
  l(R, { style: { margin: 0 } }),
4234
- t("div", ws, [
4235
- t("div", hs, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
4225
+ t("div", bs, [
4226
+ t("div", ws, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
4236
4227
  l(r, {
4237
4228
  variant: "secondary",
4238
4229
  "prepend-icon": "add",
@@ -4242,7 +4233,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4242
4233
  ]),
4243
4234
  l(ee, {
4244
4235
  "header-items": ["Key", "Account Code"],
4245
- rows: ((be = (xe = (ye = e.value) == null ? void 0 : ye.platform) == null ? void 0 : xe.mappings) == null ? void 0 : be.taxRoundingAdjustments) || [],
4236
+ rows: ((we = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : we.taxRoundingAdjustments) || [],
4246
4237
  "columns-per-row": 2,
4247
4238
  removable: !0,
4248
4239
  "mapping-type": "taxRoundingAdjustments",
@@ -4257,8 +4248,8 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4257
4248
  })
4258
4249
  }, null, 8, ["rows"]),
4259
4250
  l(R, { style: { margin: 0 } }),
4260
- t("div", _s, [
4261
- t("div", Cs, $(m(a)("report.integration.biztory.payments")), 1),
4251
+ t("div", hs, [
4252
+ t("div", _s, $(m(a)("report.integration.biztory.payments")), 1),
4262
4253
  l(r, {
4263
4254
  variant: "secondary",
4264
4255
  "prepend-icon": "add",
@@ -4266,9 +4257,9 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4266
4257
  onClick: o[22] || (o[22] = () => _("paymentMethods"))
4267
4258
  })
4268
4259
  ]),
4269
- t("div", ks, [
4260
+ t("div", Cs, [
4270
4261
  o[27] || (o[27] = t("div", { class: "w-[25%]" }, "Payment Term", -1)),
4271
- t("div", $s, [
4262
+ t("div", ks, [
4272
4263
  l(Q, {
4273
4264
  modelValue: e.value.platform.mappings.paymentTerm,
4274
4265
  "onUpdate:modelValue": o[23] || (o[23] = (C) => e.value.platform.mappings.paymentTerm = C),
@@ -4281,13 +4272,13 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4281
4272
  }, null, 8, ["modelValue"])
4282
4273
  ])
4283
4274
  ]),
4284
- f.retrievedMethods.isError ? O("", !0) : (b(), N("div", Ss, $(m(a)("report.integration.biztory.paymentTerm")), 1)),
4285
- f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length == 0 && !f.retrievedMethods.isError ? (b(), N("span", As, $(m(a)("report.integration.biztory.noPaymentMethods")), 1)) : O("", !0),
4275
+ f.retrievedMethods.isError ? O("", !0) : (b(), N("div", $s, $(m(a)("report.integration.biztory.paymentTerm")), 1)),
4276
+ f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length == 0 && !f.retrievedMethods.isError ? (b(), N("span", Ss, $(m(a)("report.integration.biztory.noPaymentMethods")), 1)) : O("", !0),
4286
4277
  f.retrievedMethods.isLoaded ? O("", !0) : (b(), E(L, {
4287
4278
  key: 2,
4288
4279
  size: "xl"
4289
4280
  })),
4290
- f.retrievedMethods.isError ? (b(), N("span", Vs, $(m(a)("report.integration.biztory.error")), 1)) : O("", !0),
4281
+ f.retrievedMethods.isError ? (b(), N("span", As, $(m(a)("report.integration.biztory.error")), 1)) : O("", !0),
4291
4282
  f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length != 0 ? (b(), E(ee, {
4292
4283
  key: 4,
4293
4284
  "header-items": ["Key", "Payment Method"],
@@ -4316,7 +4307,7 @@ const kt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4316
4307
  };
4317
4308
  }
4318
4309
  });
4319
- function Ks(f) {
4310
+ function Ds(f) {
4320
4311
  return f.reduce((a, e) => {
4321
4312
  var F, D, I, V, c, g, S, U, w, y, i, _, k, d, s, x, n, o, h, r, p, R;
4322
4313
  const { invoice: u } = e, v = a.length;
@@ -4359,7 +4350,7 @@ function Ks(f) {
4359
4350
  return a;
4360
4351
  }, []);
4361
4352
  }
4362
- const Fs = [
4353
+ const Ks = [
4363
4354
  {
4364
4355
  accessorKey: "invoice_date",
4365
4356
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
@@ -4431,7 +4422,7 @@ const Fs = [
4431
4422
  enableSorting: !1
4432
4423
  }
4433
4424
  ];
4434
- function Is(f) {
4425
+ function Fs(f) {
4435
4426
  return f.reduce((a, e) => {
4436
4427
  var I, V, c, g, S, U, w, y, i, _, k, d, s, x;
4437
4428
  const { invoice: u, payments: v } = e, F = a.length;
@@ -4479,7 +4470,7 @@ function Is(f) {
4479
4470
  return a;
4480
4471
  }, []);
4481
4472
  }
4482
- const Ts = [
4473
+ const Is = [
4483
4474
  {
4484
4475
  accessorKey: "invoice_date",
4485
4476
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
@@ -4545,10 +4536,10 @@ const Ts = [
4545
4536
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method (ID)"),
4546
4537
  enableSorting: !1
4547
4538
  }
4548
- ], Rs = { class: "h-full flex flex-col gap-16" }, Us = { class: "flex flex-row gap-2 justify-between items-center" }, Ns = {
4539
+ ], Ts = { class: "h-full flex flex-col gap-16" }, Rs = { class: "flex flex-row gap-2 justify-between items-center" }, Us = {
4549
4540
  key: 0,
4550
4541
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
4551
- }, Ms = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ps = /* @__PURE__ */ oe({
4542
+ }, Ns = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ms = /* @__PURE__ */ oe({
4552
4543
  __name: "Preview",
4553
4544
  props: {
4554
4545
  modelValue: { required: !0 },
@@ -4556,13 +4547,13 @@ const Ts = [
4556
4547
  },
4557
4548
  emits: ["update:modelValue"],
4558
4549
  setup(f) {
4559
- const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), { dateRange: F } = Qe(Se()), D = X([]);
4550
+ const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), { dateRange: F } = Ge(Se()), D = X([]);
4560
4551
  Ke(
4561
4552
  () => F.value,
4562
4553
  async () => {
4563
4554
  if (e.value._id)
4564
4555
  try {
4565
- u.value = !0, D.value = await qe(e.value._id);
4556
+ u.value = !0, D.value = await Ye(e.value._id);
4566
4557
  } catch (g) {
4567
4558
  v.open({ message: g.message, type: "error" });
4568
4559
  } finally {
@@ -4576,23 +4567,23 @@ const Ts = [
4576
4567
  const I = B(() => {
4577
4568
  switch (e.value.platform.mappings.version) {
4578
4569
  case "v1":
4579
- return Ks(D.value);
4570
+ return Ds(D.value);
4580
4571
  case "v2":
4581
- return Is(D.value);
4572
+ return Fs(D.value);
4582
4573
  }
4583
4574
  return [];
4584
4575
  }), V = B(() => {
4585
4576
  switch (e.value.platform.mappings.version) {
4586
4577
  case "v1":
4587
- return Fs;
4578
+ return Ks;
4588
4579
  case "v2":
4589
- return Ts;
4580
+ return Is;
4590
4581
  }
4591
4582
  return [];
4592
4583
  });
4593
4584
  async function c() {
4594
4585
  try {
4595
- e.value._id && e.value.platform.subdomain && e.value.platform.api_key ? (u.value = !0, await ot(e.value._id), v.open({ message: "Upload successful", type: "success" })) : v.open({ message: "Invalid accounting setting", type: "error" });
4586
+ e.value._id && e.value.platform.subdomain && e.value.platform.api_key ? (u.value = !0, await tt(e.value._id), v.open({ message: "Upload successful", type: "success" })) : v.open({ message: "Invalid accounting setting", type: "error" });
4596
4587
  } catch (g) {
4597
4588
  g.message && v.open({ message: g.message, type: "error" }), Array.isArray(g.errors) ? g.errors.forEach((S) => v.open({ message: String(S), type: "error" })) : typeof g.errors == "string" && v.open({ message: g.errors, type: "error" });
4598
4589
  } finally {
@@ -4601,9 +4592,9 @@ const Ts = [
4601
4592
  }
4602
4593
  return (g, S) => {
4603
4594
  const U = K("FmButton"), w = K("FmCircularProgress"), y = K("FmTable");
4604
- return b(), N("div", Rs, [
4605
- t("div", Us, [
4606
- l(Ge, {
4595
+ return b(), N("div", Ts, [
4596
+ t("div", Rs, [
4597
+ l(He, {
4607
4598
  "date-range": m(F),
4608
4599
  "onUpdate:dateRange": S[0] || (S[0] = (i) => Me(F) ? F.value = i : null),
4609
4600
  compare: !1
@@ -4615,9 +4606,9 @@ const Ts = [
4615
4606
  onClick: c
4616
4607
  }, null, 8, ["loading"])
4617
4608
  ]),
4618
- u.value ? (b(), N("div", Ns, [
4609
+ u.value ? (b(), N("div", Us, [
4619
4610
  l(w, { size: "xl" }),
4620
- t("span", Ms, $(m(a)("report.common.isLoading")), 1)
4611
+ t("span", Ns, $(m(a)("report.common.isLoading")), 1)
4621
4612
  ])) : (b(), E(y, {
4622
4613
  key: 1,
4623
4614
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -4627,9 +4618,9 @@ const Ts = [
4627
4618
  ]);
4628
4619
  };
4629
4620
  }
4630
- }), Ls = { class: "h-full relative flex flex-col" }, js = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Es = /* @__PURE__ */ oe({
4621
+ }), Ps = { class: "h-full relative flex flex-col" }, Ls = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, js = /* @__PURE__ */ oe({
4631
4622
  __name: "Biztory",
4632
- props: /* @__PURE__ */ me({
4623
+ props: /* @__PURE__ */ ue({
4633
4624
  errorLogs: {}
4634
4625
  }, {
4635
4626
  modelValue: { required: !0 },
@@ -4652,11 +4643,11 @@ const Ts = [
4652
4643
  switch (v.value) {
4653
4644
  case "preview":
4654
4645
  return {
4655
- component: Ps
4646
+ component: Ms
4656
4647
  };
4657
4648
  case "setting":
4658
4649
  return {
4659
- component: Ds,
4650
+ component: Vs,
4660
4651
  props: {
4661
4652
  retrievedMethods: V.value,
4662
4653
  retrievedCustomers: c.value,
@@ -4682,24 +4673,24 @@ const Ts = [
4682
4673
  }, y = async () => {
4683
4674
  var i, _;
4684
4675
  (i = e.value.platform.mappings) != null && i.version && await w(
4685
- xt,
4676
+ yt,
4686
4677
  S,
4687
4678
  V,
4688
4679
  "Failed to fetch payment methods:"
4689
4680
  ), ((_ = e.value.platform.mappings) == null ? void 0 : _.version) == "v2" && await w(
4690
- bt,
4681
+ xt,
4691
4682
  U,
4692
4683
  c,
4693
4684
  "Failed to fetch customers:"
4694
4685
  ), V.value.isLoaded = !0, c.value.isLoaded = !0;
4695
4686
  };
4696
- return nt(y), Ke(() => {
4687
+ return lt(y), Ke(() => {
4697
4688
  var i;
4698
4689
  return (i = e.value.platform.mappings) == null ? void 0 : i.version;
4699
4690
  }, y), (i, _) => {
4700
4691
  var s, x, n;
4701
4692
  const k = K("FmPageHead"), d = K("FmTabs");
4702
- return b(), N("div", Ls, [
4693
+ return b(), N("div", Ps, [
4703
4694
  l(k, {
4704
4695
  title: ((s = e.value) == null ? void 0 : s.name) || "Biztory",
4705
4696
  "back-button": !0,
@@ -4716,8 +4707,8 @@ const Ts = [
4716
4707
  "onUpdate:modelValue": _[1] || (_[1] = (o) => v.value = o),
4717
4708
  items: F
4718
4709
  }, null, 8, ["model-value"]),
4719
- t("div", js, [
4720
- (b(), E(Pe((x = I.value) == null ? void 0 : x.component), tt({
4710
+ t("div", Ls, [
4711
+ (b(), E(Pe((x = I.value) == null ? void 0 : x.component), et({
4721
4712
  modelValue: e.value,
4722
4713
  "onUpdate:modelValue": _[2] || (_[2] = (o) => e.value = o)
4723
4714
  }, (n = I.value) == null ? void 0 : n.props), null, 16, ["modelValue"]))
@@ -4725,12 +4716,12 @@ const Ts = [
4725
4716
  ]);
4726
4717
  };
4727
4718
  }
4728
- }), Os = {
4719
+ }), Es = {
4729
4720
  key: 0,
4730
4721
  class: "flex flex-col h-full"
4731
- }, Bs = { class: "flex flex-col gap-16 pb-[24px]" }, Ys = { class: "flex flex-row justify-between items-center gap-2" }, qs = { class: "flex flex-row gap-2 items-center" }, zs = { class: "relative group cursor-pointer" }, Hs = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Gs = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Qs = { class: "w-[90%] flex flex-col gap-24" }, Xs = { class: "flex flex-col gap-16" }, Ws = { class: "fm-typo-en-title-sm-800" }, Js = { class: "flex flex-row items-center max-w-[100%]" }, Zs = { class: "w-[25%]" }, er = { class: "flex-grow" }, tr = { class: "flex flex-row items-center max-w-[100%]" }, or = { class: "w-[25%]" }, ar = { class: "flex flex-row items-center justify-between gap-x-16" }, lr = { class: "fm-typo-en-title-sm-800" }, nr = /* @__PURE__ */ oe({
4722
+ }, Os = { class: "flex flex-col gap-16 pb-[24px]" }, Bs = { class: "flex flex-row justify-between items-center gap-2" }, Ys = { class: "flex flex-row gap-2 items-center" }, qs = { class: "relative group cursor-pointer" }, zs = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Hs = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Gs = { class: "w-[90%] flex flex-col gap-24" }, Qs = { class: "flex flex-col gap-16" }, Xs = { class: "fm-typo-en-title-sm-800" }, Ws = { class: "flex flex-row items-center max-w-[100%]" }, Js = { class: "w-[25%]" }, Zs = { class: "flex-grow" }, er = { class: "flex flex-row items-center max-w-[100%]" }, tr = { class: "w-[25%]" }, or = { class: "flex flex-row items-center justify-between gap-x-16" }, ar = { class: "fm-typo-en-title-sm-800" }, lr = /* @__PURE__ */ oe({
4732
4723
  __name: "Setting",
4733
- props: /* @__PURE__ */ me({
4724
+ props: /* @__PURE__ */ ue({
4734
4725
  errorLogs: {}
4735
4726
  }, {
4736
4727
  modelValue: { required: !0 },
@@ -4738,7 +4729,7 @@ const Ts = [
4738
4729
  }),
4739
4730
  emits: ["update:modelValue"],
4740
4731
  setup(f) {
4741
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
4732
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
4742
4733
  () => V.map((k) => ({ label: k.name, value: k.id }))
4743
4734
  );
4744
4735
  async function U() {
@@ -4757,7 +4748,7 @@ const Ts = [
4757
4748
  title: a("report.common.delete")
4758
4749
  }) && await D(async () => {
4759
4750
  try {
4760
- await Be(e.value._id), await v.getSettings(), F.back();
4751
+ await Oe(e.value._id), await v.getSettings(), F.back();
4761
4752
  } catch (n) {
4762
4753
  u.open({ type: "error", message: n.message });
4763
4754
  }
@@ -4776,7 +4767,7 @@ const Ts = [
4776
4767
  }
4777
4768
  await D(async () => {
4778
4769
  try {
4779
- await Ye(e.value._id, e.value), await v.getSettings();
4770
+ await Be(e.value._id, e.value), await v.getSettings();
4780
4771
  } catch (x) {
4781
4772
  u.open({ type: "error", message: x.message });
4782
4773
  }
@@ -4809,23 +4800,23 @@ const Ts = [
4809
4800
  }
4810
4801
  });
4811
4802
  }
4812
- return Oe(async () => {
4803
+ return Ee(async () => {
4813
4804
  await v.getSettings();
4814
4805
  }), (k, d) => {
4815
4806
  var r, p, R, T, L, W;
4816
4807
  const s = K("FmIcon"), x = K("FmButton"), n = K("FmMenuDivider"), o = K("FmTextField"), h = K("FmSelect");
4817
- return (p = (r = e.value) == null ? void 0 : r.platform) != null && p.mappings ? (b(), N("div", Os, [
4818
- t("div", Bs, [
4819
- t("div", Ys, [
4808
+ return (p = (r = e.value) == null ? void 0 : r.platform) != null && p.mappings ? (b(), N("div", Es, [
4809
+ t("div", Os, [
4810
+ t("div", Bs, [
4820
4811
  d[6] || (d[6] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
4821
- t("div", qs, [
4822
- t("div", zs, [
4812
+ t("div", Ys, [
4813
+ t("div", qs, [
4823
4814
  l(s, {
4824
4815
  name: "refresh",
4825
4816
  class: "p-2 bg-gray-100 rounded-full",
4826
4817
  onClick: _
4827
4818
  }),
4828
- t("span", Hs, $(m(a)("report.integration.refreshSetting")), 1)
4819
+ t("span", zs, $(m(a)("report.integration.refreshSetting")), 1)
4829
4820
  ]),
4830
4821
  l(x, {
4831
4822
  variant: "tertiary",
@@ -4842,21 +4833,21 @@ const Ts = [
4842
4833
  ])
4843
4834
  ]),
4844
4835
  l(n, { style: { margin: 0 } }),
4845
- t("div", Gs, [
4846
- t("div", Qs, [
4847
- t("div", Xs, [
4848
- t("div", Ws, $(m(a)("report.integration.general")), 1),
4849
- t("div", Js, [
4850
- t("div", Zs, $(m(a)("report.common.name")), 1),
4851
- t("div", er, [
4836
+ t("div", Hs, [
4837
+ t("div", Gs, [
4838
+ t("div", Qs, [
4839
+ t("div", Xs, $(m(a)("report.integration.general")), 1),
4840
+ t("div", Ws, [
4841
+ t("div", Js, $(m(a)("report.common.name")), 1),
4842
+ t("div", Zs, [
4852
4843
  l(o, {
4853
4844
  modelValue: e.value.name,
4854
4845
  "onUpdate:modelValue": d[0] || (d[0] = (te) => e.value.name = te)
4855
4846
  }, null, 8, ["modelValue"])
4856
4847
  ])
4857
4848
  ]),
4858
- t("div", tr, [
4859
- t("div", or, $(m(a)("report.integration.location")), 1),
4849
+ t("div", er, [
4850
+ t("div", tr, $(m(a)("report.integration.location")), 1),
4860
4851
  l(h, {
4861
4852
  "model-value": e.value.platform.locationIds[0],
4862
4853
  multiselect: !1,
@@ -4868,7 +4859,7 @@ const Ts = [
4868
4859
  ])
4869
4860
  ]),
4870
4861
  l(n, { style: { margin: 0 } }),
4871
- l(Ee, {
4862
+ l(Xe, {
4872
4863
  modelValue: e.value.platform,
4873
4864
  "onUpdate:modelValue": d[2] || (d[2] = (te) => e.value.platform = te),
4874
4865
  label: m(a)("report.input.email"),
@@ -4878,8 +4869,8 @@ const Ts = [
4878
4869
  "is-auto-email-mode": !0
4879
4870
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
4880
4871
  l(n, { style: { margin: 0 } }),
4881
- t("div", ar, [
4882
- t("div", lr, $(m(a)("report.integration.iflexiHrms.employee")), 1),
4872
+ t("div", or, [
4873
+ t("div", ar, $(m(a)("report.integration.iflexiHrms.employee")), 1),
4883
4874
  l(x, {
4884
4875
  variant: "secondary",
4885
4876
  "prepend-icon": "add",
@@ -4909,10 +4900,10 @@ const Ts = [
4909
4900
  ])) : O("", !0);
4910
4901
  };
4911
4902
  }
4912
- }), sr = { class: "h-full flex flex-col gap-16" }, rr = { class: "flex flex-row gap-2 justify-between items-center" }, ir = {
4903
+ }), nr = { class: "h-full flex flex-col gap-16" }, sr = { class: "flex flex-row gap-2 justify-between items-center" }, rr = {
4913
4904
  key: 0,
4914
4905
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
4915
- }, dr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mr = /* @__PURE__ */ oe({
4906
+ }, ir = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dr = /* @__PURE__ */ oe({
4916
4907
  __name: "Preview",
4917
4908
  props: {
4918
4909
  modelValue: { required: !0 },
@@ -4946,13 +4937,13 @@ const Ts = [
4946
4937
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Time"),
4947
4938
  enableSorting: !1
4948
4939
  }
4949
- ], v = se(f, "modelValue"), F = X(!1), D = Ae(), { dateRange: I } = Qe(Se());
4940
+ ], v = se(f, "modelValue"), F = X(!1), D = Ae(), { dateRange: I } = Ge(Se());
4950
4941
  Ke(
4951
4942
  () => I.value,
4952
4943
  async () => {
4953
4944
  if (v.value._id)
4954
4945
  try {
4955
- F.value = !0, e.value = await qe(v.value._id);
4946
+ F.value = !0, e.value = await Ye(v.value._id);
4956
4947
  } catch (c) {
4957
4948
  D.open({ message: c.message, type: "error" });
4958
4949
  } finally {
@@ -4965,7 +4956,7 @@ const Ts = [
4965
4956
  );
4966
4957
  async function V() {
4967
4958
  try {
4968
- v.value._id ? (F.value = !0, await at(v.value._id)) : D.open({ message: "Invalid setting", type: "error" });
4959
+ v.value._id ? (F.value = !0, await ot(v.value._id)) : D.open({ message: "Invalid setting", type: "error" });
4969
4960
  } catch (c) {
4970
4961
  c.message && D.open({ message: c.message, type: "error" }), Array.isArray(c.errors) ? c.errors.forEach((g) => D.open({ message: String(g), type: "error" })) : typeof c.errors == "string" && D.open({ message: c.errors, type: "error" });
4971
4962
  } finally {
@@ -4974,9 +4965,9 @@ const Ts = [
4974
4965
  }
4975
4966
  return (c, g) => {
4976
4967
  const S = K("FmButton"), U = K("FmCircularProgress"), w = K("FmTable");
4977
- return b(), N("div", sr, [
4978
- t("div", rr, [
4979
- l(Ge, {
4968
+ return b(), N("div", nr, [
4969
+ t("div", sr, [
4970
+ l(He, {
4980
4971
  "date-range": m(I),
4981
4972
  "onUpdate:dateRange": g[0] || (g[0] = (y) => Me(I) ? I.value = y : null),
4982
4973
  compare: !1
@@ -4988,9 +4979,9 @@ const Ts = [
4988
4979
  onClick: V
4989
4980
  }, null, 8, ["loading", "label"])
4990
4981
  ]),
4991
- F.value ? (b(), N("div", ir, [
4982
+ F.value ? (b(), N("div", rr, [
4992
4983
  l(U, { size: "xl" }),
4993
- t("span", dr, $(m(a)("report.common.isLoading")), 1)
4984
+ t("span", ir, $(m(a)("report.common.isLoading")), 1)
4994
4985
  ])) : e.value.length > 0 ? (b(), E(w, {
4995
4986
  key: 1,
4996
4987
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -5000,9 +4991,9 @@ const Ts = [
5000
4991
  ]);
5001
4992
  };
5002
4993
  }
5003
- }), ur = { class: "h-full relative flex flex-col" }, pr = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, cr = /* @__PURE__ */ oe({
4994
+ }), mr = { class: "h-full relative flex flex-col" }, ur = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, pr = /* @__PURE__ */ oe({
5004
4995
  __name: "IFlexiHRMS",
5005
- props: /* @__PURE__ */ me({
4996
+ props: /* @__PURE__ */ ue({
5006
4997
  errorLogs: {}
5007
4998
  }, {
5008
4999
  modelValue: {},
@@ -5024,9 +5015,9 @@ const Ts = [
5024
5015
  ], D = ke(), I = B(() => {
5025
5016
  switch (v.value) {
5026
5017
  case "preview":
5027
- return mr;
5018
+ return dr;
5028
5019
  case "setting":
5029
- return nr;
5020
+ return lr;
5030
5021
  default:
5031
5022
  return null;
5032
5023
  }
@@ -5034,7 +5025,7 @@ const Ts = [
5034
5025
  return (V, c) => {
5035
5026
  var U;
5036
5027
  const g = K("FmPageHead"), S = K("FmTabs");
5037
- return b(), N("div", ur, [
5028
+ return b(), N("div", mr, [
5038
5029
  l(g, {
5039
5030
  title: ((U = e.value) == null ? void 0 : U.name) || "AutoCount",
5040
5031
  "back-button": !0,
@@ -5051,7 +5042,7 @@ const Ts = [
5051
5042
  "onUpdate:modelValue": c[1] || (c[1] = (w) => v.value = w),
5052
5043
  items: F
5053
5044
  }, null, 8, ["model-value"]),
5054
- t("div", pr, [
5045
+ t("div", ur, [
5055
5046
  (b(), E(Pe(I.value), {
5056
5047
  modelValue: e.value,
5057
5048
  "onUpdate:modelValue": c[2] || (c[2] = (w) => e.value = w),
@@ -5061,24 +5052,24 @@ const Ts = [
5061
5052
  ]);
5062
5053
  };
5063
5054
  }
5064
- }), fr = {
5055
+ }), cr = {
5065
5056
  key: 0,
5066
5057
  class: "flex flex-col h-full"
5067
- }, gr = { class: "flex flex-col gap-16 pb-[24px]" }, vr = { class: "flex flex-row justify-between items-center gap-2" }, yr = { class: "fm-typo-en-title-sm-800" }, xr = { class: "flex flex-row gap-2 items-center" }, br = { class: "flex flex-row gap-2 items-center" }, wr = { class: "relative group cursor-pointer" }, hr = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, _r = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Cr = { class: "flex flex-col gap-24 w-[90%]" }, kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $r = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, Sr = { class: "flex flex-col justify-between" }, Ar = { class: "w-[25%] font-semibold" }, Vr = { class: "flex-grow" }, Dr = { class: "flex flex-col justify-between" }, Kr = { class: "w-[25%] font-semibold" }, Fr = { class: "flex-grow" }, Ir = { class: "flex flex-col justify-between" }, Tr = { class: "w-[25%] font-semibold" }, Rr = { class: "flex-grow" }, Ur = { class: "flex flex-col gap-16" }, Nr = { class: "flex flex-row items-center gap-5" }, Mr = { class: "fm-typo-en-title-sm-800" }, Pr = { class: "flex flex-col max-w-[100%]" }, Lr = { class: "w-[25%] font-semibold" }, jr = { class: "flex-grow" }, Er = { class: "flex flex-col max-w-[100%]" }, Or = { class: "w-[25%] font-semibold" }, Br = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Yr = { class: "flex-grow" }, qr = { class: "flex flex-col max-w-[100%]" }, zr = { class: "w-[25%] font-semibold" }, Hr = { class: "flex flex-col max-w-[100%]" }, Gr = { class: "w-[25%] font-semibold" }, Qr = {
5058
+ }, fr = { class: "flex flex-col gap-16 pb-[24px]" }, gr = { class: "flex flex-row justify-between items-center gap-2" }, vr = { class: "fm-typo-en-title-sm-800" }, yr = { class: "flex flex-row gap-2 items-center" }, xr = { class: "flex flex-row gap-2 items-center" }, br = { class: "relative group cursor-pointer" }, wr = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, hr = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, _r = { class: "flex flex-col gap-24 w-[90%]" }, Cr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kr = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, $r = { class: "flex flex-col justify-between" }, Sr = { class: "w-[25%] font-semibold" }, Ar = { class: "flex-grow" }, Vr = { class: "flex flex-col justify-between" }, Dr = { class: "w-[25%] font-semibold" }, Kr = { class: "flex-grow" }, Fr = { class: "flex flex-col justify-between" }, Ir = { class: "w-[25%] font-semibold" }, Tr = { class: "flex-grow" }, Rr = { class: "flex flex-col gap-16" }, Ur = { class: "flex flex-row items-center gap-5" }, Nr = { class: "fm-typo-en-title-sm-800" }, Mr = { class: "flex flex-col max-w-[100%]" }, Pr = { class: "w-[25%] font-semibold" }, Lr = { class: "flex-grow" }, jr = { class: "flex flex-col max-w-[100%]" }, Er = { class: "w-[25%] font-semibold" }, Or = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Br = { class: "flex-grow" }, Yr = { class: "flex flex-col max-w-[100%]" }, qr = { class: "w-[25%] font-semibold" }, zr = { class: "flex flex-col max-w-[100%]" }, Hr = { class: "w-[25%] font-semibold" }, Gr = {
5068
5059
  key: 1,
5069
5060
  class: "w-[100%] flex flex-col gap-2"
5070
- }, Xr = {
5061
+ }, Qr = {
5071
5062
  key: 2,
5072
5063
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5073
- }, Wr = { class: "flex flex-col max-w-[100%]" }, Jr = { class: "w-[25%] font-semibold" }, Zr = {
5064
+ }, Xr = { class: "flex flex-col max-w-[100%]" }, Wr = { class: "w-[25%] font-semibold" }, Jr = {
5074
5065
  key: 1,
5075
5066
  class: "w-[100%] flex flex-col gap-2"
5076
- }, ei = {
5067
+ }, Zr = {
5077
5068
  key: 2,
5078
5069
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5079
- }, ti = { class: "flex flex-col gap-16" }, oi = { class: "fm-typo-en-title-sm-800" }, ai = { class: "flex flex-row items-center w-[100%] justify-start" }, li = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, ni = { class: "flex flex-row items-center w-[100%] justify-start" }, si = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, ri = { class: "flex flex-row items-center w-[100%] justify-start" }, ii = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, di = { class: "flex flex-col gap-16 pt-3 pb-3" }, mi = { class: "flex flex-row items-center gap-5" }, ui = { class: "fm-typo-en-title-sm-800" }, pi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ci = { class: "flex flex-row items-center justify-between gap-x-16" }, fi = { class: "fm-typo-en-title-sm-800" }, gi = { class: "flex flex-row items-center justify-between gap-x-16" }, vi = { class: "fm-typo-en-title-sm-800" }, yi = { class: "flex flex-row items-center justify-between gap-x-16" }, xi = { class: "fm-typo-en-title-sm-800" }, bi = { class: "flex flex-row items-center justify-between gap-x-16" }, wi = { class: "fm-typo-en-title-sm-800" }, hi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, _i = /* @__PURE__ */ oe({
5070
+ }, ei = { class: "flex flex-col gap-16" }, ti = { class: "fm-typo-en-title-sm-800" }, oi = { class: "flex flex-row items-center w-[100%] justify-start" }, ai = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, li = { class: "flex flex-row items-center w-[100%] justify-start" }, ni = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, si = { class: "flex flex-row items-center w-[100%] justify-start" }, ri = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, ii = { class: "flex flex-col gap-16 pt-3 pb-3" }, di = { class: "flex flex-row items-center gap-5" }, mi = { class: "fm-typo-en-title-sm-800" }, ui = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, pi = { class: "flex flex-row items-center justify-between gap-x-16" }, ci = { class: "fm-typo-en-title-sm-800" }, fi = { class: "flex flex-row items-center justify-between gap-x-16" }, gi = { class: "fm-typo-en-title-sm-800" }, vi = { class: "flex flex-row items-center justify-between gap-x-16" }, yi = { class: "fm-typo-en-title-sm-800" }, xi = { class: "flex flex-row items-center justify-between gap-x-16" }, bi = { class: "fm-typo-en-title-sm-800" }, wi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, hi = /* @__PURE__ */ oe({
5080
5071
  __name: "Setting",
5081
- props: /* @__PURE__ */ me({
5072
+ props: /* @__PURE__ */ ue({
5082
5073
  retrievedDebtors: {
5083
5074
  type: Object,
5084
5075
  required: !0
@@ -5097,11 +5088,11 @@ const Ts = [
5097
5088
  }),
5098
5089
  emits: ["update:modelValue"],
5099
5090
  setup(f) {
5100
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), { flags: S } = st(), U = B(
5091
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), { flags: S } = nt(), U = B(
5101
5092
  () => V.map((r) => ({ label: r.name, value: r.id }))
5102
5093
  ), w = B(
5103
5094
  () => !S.some(
5104
- (r) => r.key === wt.report_portal_integration_autocount_cloud_api && r.value === !0
5095
+ (r) => r.key === bt.report_portal_integration_autocount_cloud_api && r.value === !0
5105
5096
  )
5106
5097
  );
5107
5098
  let y = X("");
@@ -5121,7 +5112,7 @@ const Ts = [
5121
5112
  title: a("report.common.delete")
5122
5113
  }) && await D(async () => {
5123
5114
  try {
5124
- await Be(e.value._id), await v.getSettings(), F.back();
5115
+ await Oe(e.value._id), await v.getSettings(), F.back();
5125
5116
  } catch (L) {
5126
5117
  u.open({ type: "error", message: L.message });
5127
5118
  }
@@ -5140,7 +5131,7 @@ const Ts = [
5140
5131
  }
5141
5132
  await D(async () => {
5142
5133
  try {
5143
- await Ye(e.value._id, e.value), await v.getSettings();
5134
+ await Be(e.value._id, e.value), await v.getSettings();
5144
5135
  } catch (T) {
5145
5136
  u.open({ type: "error", message: T.message });
5146
5137
  }
@@ -5205,7 +5196,7 @@ const Ts = [
5205
5196
  account: { placeholder: r, editable: !0 }
5206
5197
  };
5207
5198
  }
5208
- Oe(async () => {
5199
+ Ee(async () => {
5209
5200
  await v.getSettings();
5210
5201
  });
5211
5202
  function h(r) {
@@ -5227,21 +5218,21 @@ const Ts = [
5227
5218
  },
5228
5219
  { immediate: !0 }
5229
5220
  ), (r, p) => {
5230
- var de, ue, pe, ce, fe, ge, ve, ye, xe, be, J, q, P, C, M, z, Fe;
5221
+ var de, pe, ce, fe, ge, ve, ye, xe, be, we, J, q, P, C, M, z, Fe;
5231
5222
  const R = K("FmIcon"), T = K("FmButton"), L = K("FmMenuDivider"), W = K("FmTextField"), te = K("FmSelect"), ae = K("FmSwitch"), H = K("FmCircularProgress");
5232
- return (ue = (de = e.value) == null ? void 0 : de.platform) != null && ue.mappings ? (b(), N("div", fr, [
5233
- t("div", gr, [
5234
- t("div", vr, [
5235
- t("div", yr, $(m(a)("report.integration.connect")), 1),
5236
- t("div", xr, [
5237
- t("div", br, [
5238
- t("div", wr, [
5223
+ return (pe = (de = e.value) == null ? void 0 : de.platform) != null && pe.mappings ? (b(), N("div", cr, [
5224
+ t("div", fr, [
5225
+ t("div", gr, [
5226
+ t("div", vr, $(m(a)("report.integration.connect")), 1),
5227
+ t("div", yr, [
5228
+ t("div", xr, [
5229
+ t("div", br, [
5239
5230
  l(R, {
5240
5231
  name: "refresh",
5241
5232
  class: "p-2 bg-gray-100 rounded-full",
5242
5233
  onClick: x
5243
5234
  }),
5244
- t("span", hr, $(m(a)("report.integration.refreshSetting")), 1)
5235
+ t("span", wr, $(m(a)("report.integration.refreshSetting")), 1)
5245
5236
  ]),
5246
5237
  l(T, {
5247
5238
  variant: "tertiary",
@@ -5258,14 +5249,14 @@ const Ts = [
5258
5249
  ])
5259
5250
  ])
5260
5251
  ]),
5261
- t("div", _r, [
5262
- t("div", Cr, [
5263
- t("div", kr, $(m(a)("report.integration.authDescription")), 1),
5252
+ t("div", hr, [
5253
+ t("div", _r, [
5254
+ t("div", Cr, $(m(a)("report.integration.authDescription")), 1),
5264
5255
  l(L, { style: { margin: 0 } }),
5265
- t("div", $r, [
5266
- t("div", Sr, [
5267
- t("div", Ar, $(m(a)("report.integration.autocount.keyId")), 1),
5268
- t("div", Vr, [
5256
+ t("div", kr, [
5257
+ t("div", $r, [
5258
+ t("div", Sr, $(m(a)("report.integration.autocount.keyId")), 1),
5259
+ t("div", Ar, [
5269
5260
  l(W, {
5270
5261
  modelValue: e.value.platform.keyId,
5271
5262
  "onUpdate:modelValue": p[0] || (p[0] = (j) => e.value.platform.keyId = j),
@@ -5273,9 +5264,9 @@ const Ts = [
5273
5264
  }, null, 8, ["modelValue", "placeholder"])
5274
5265
  ])
5275
5266
  ]),
5276
- t("div", Dr, [
5277
- t("div", Kr, $(m(a)("report.integration.apiKey")), 1),
5278
- t("div", Fr, [
5267
+ t("div", Vr, [
5268
+ t("div", Dr, $(m(a)("report.integration.apiKey")), 1),
5269
+ t("div", Kr, [
5279
5270
  l(W, {
5280
5271
  modelValue: e.value.platform.apiKey,
5281
5272
  "onUpdate:modelValue": p[1] || (p[1] = (j) => e.value.platform.apiKey = j),
@@ -5283,9 +5274,9 @@ const Ts = [
5283
5274
  }, null, 8, ["modelValue", "placeholder"])
5284
5275
  ])
5285
5276
  ]),
5286
- t("div", Ir, [
5287
- t("div", Tr, $(m(a)("report.integration.autocount.accountBookId")), 1),
5288
- t("div", Rr, [
5277
+ t("div", Fr, [
5278
+ t("div", Ir, $(m(a)("report.integration.autocount.accountBookId")), 1),
5279
+ t("div", Tr, [
5289
5280
  l(W, {
5290
5281
  modelValue: e.value.platform.accountBookId,
5291
5282
  "onUpdate:modelValue": p[2] || (p[2] = (j) => e.value.platform.accountBookId = j),
@@ -5294,21 +5285,21 @@ const Ts = [
5294
5285
  ])
5295
5286
  ]),
5296
5287
  l(L, { style: { margin: 0 } }),
5297
- t("div", Ur, [
5298
- t("div", Nr, [
5299
- t("div", Mr, $(m(a)("report.common.general")), 1)
5288
+ t("div", Rr, [
5289
+ t("div", Ur, [
5290
+ t("div", Nr, $(m(a)("report.common.general")), 1)
5300
5291
  ]),
5301
- t("div", Pr, [
5302
- t("div", Lr, $(m(a)("report.common.name")), 1),
5303
- t("div", jr, [
5292
+ t("div", Mr, [
5293
+ t("div", Pr, $(m(a)("report.common.name")), 1),
5294
+ t("div", Lr, [
5304
5295
  l(W, {
5305
5296
  modelValue: e.value.name,
5306
5297
  "onUpdate:modelValue": p[3] || (p[3] = (j) => e.value.name = j)
5307
5298
  }, null, 8, ["modelValue"])
5308
5299
  ])
5309
5300
  ]),
5310
- t("div", Er, [
5311
- t("div", Or, $(m(a)("report.common.location")), 1),
5301
+ t("div", jr, [
5302
+ t("div", Er, $(m(a)("report.common.location")), 1),
5312
5303
  l(te, {
5313
5304
  modelValue: e.value.platform.locationIds,
5314
5305
  "onUpdate:modelValue": p[4] || (p[4] = (j) => e.value.platform.locationIds = j),
@@ -5318,9 +5309,9 @@ const Ts = [
5318
5309
  class: "flex-grow"
5319
5310
  }, null, 8, ["modelValue", "items", "placeholder"])
5320
5311
  ]),
5321
- t("div", Br, [
5312
+ t("div", Or, [
5322
5313
  p[33] || (p[33] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
5323
- t("div", Yr, [
5314
+ t("div", Br, [
5324
5315
  l(ae, {
5325
5316
  "model-value": e.value.platform.discountItem ?? !1,
5326
5317
  style: { gap: 0 },
@@ -5330,8 +5321,8 @@ const Ts = [
5330
5321
  }, null, 8, ["model-value"])
5331
5322
  ])
5332
5323
  ]),
5333
- t("div", qr, [
5334
- t("div", zr, $(m(a)("report.integration.grouping.title")), 1),
5324
+ t("div", Yr, [
5325
+ t("div", qr, $(m(a)("report.integration.grouping.title")), 1),
5335
5326
  l(te, {
5336
5327
  modelValue: e.value.platform.grouping,
5337
5328
  "onUpdate:modelValue": p[6] || (p[6] = (j) => e.value.platform.grouping = j),
@@ -5341,13 +5332,13 @@ const Ts = [
5341
5332
  class: "flex-grow"
5342
5333
  }, null, 8, ["modelValue", "placeholder"])
5343
5334
  ]),
5344
- t("div", Hr, [
5345
- t("div", Gr, $(m(a)("report.integration.autocount.debtor")), 1),
5335
+ t("div", zr, [
5336
+ t("div", Hr, $(m(a)("report.integration.autocount.debtor")), 1),
5346
5337
  f.retrievedDebtors.isLoaded ? O("", !0) : (b(), E(H, {
5347
5338
  key: 0,
5348
5339
  size: "xl"
5349
5340
  })),
5350
- f.retrievedDebtors.isLoaded && f.retrievedDebtors.data && ((pe = f.retrievedDebtors.data) == null ? void 0 : pe.length) != 0 && !f.retrievedDebtors.isError ? (b(), N("div", Qr, [
5341
+ f.retrievedDebtors.isLoaded && f.retrievedDebtors.data && ((ce = f.retrievedDebtors.data) == null ? void 0 : ce.length) != 0 && !f.retrievedDebtors.isError ? (b(), N("div", Gr, [
5351
5342
  l(te, {
5352
5343
  modelValue: m(y),
5353
5344
  "onUpdate:modelValue": [
@@ -5359,15 +5350,15 @@ const Ts = [
5359
5350
  class: "flex-grow",
5360
5351
  disabled: !f.retrievedDebtors.isLoaded
5361
5352
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
5362
- ])) : f.retrievedDebtors.isError ? (b(), N("div", Xr, $(m(a)("report.integration.errorFetchingDebtor")), 1)) : O("", !0)
5353
+ ])) : f.retrievedDebtors.isError ? (b(), N("div", Qr, $(m(a)("report.integration.errorFetchingDebtor")), 1)) : O("", !0)
5363
5354
  ]),
5364
- t("div", Wr, [
5365
- t("div", Jr, $(m(a)("report.integration.autocount.location")), 1),
5355
+ t("div", Xr, [
5356
+ t("div", Wr, $(m(a)("report.integration.autocount.location")), 1),
5366
5357
  f.retrievedLocations.isLoaded ? O("", !0) : (b(), E(H, {
5367
5358
  key: 0,
5368
5359
  size: "xl"
5369
5360
  })),
5370
- f.retrievedLocations.isLoaded && f.retrievedLocations.data && ((ce = f.retrievedLocations.data) == null ? void 0 : ce.length) != 0 && !f.retrievedLocations.isError ? (b(), N("div", Zr, [
5361
+ f.retrievedLocations.isLoaded && f.retrievedLocations.data && ((fe = f.retrievedLocations.data) == null ? void 0 : fe.length) != 0 && !f.retrievedLocations.isError ? (b(), N("div", Jr, [
5371
5362
  l(te, {
5372
5363
  modelValue: e.value.platform.mappings.salesLocation,
5373
5364
  "onUpdate:modelValue": p[8] || (p[8] = (j) => e.value.platform.mappings.salesLocation = j),
@@ -5376,30 +5367,30 @@ const Ts = [
5376
5367
  class: "flex-grow",
5377
5368
  disabled: !f.retrievedLocations.isLoaded
5378
5369
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
5379
- ])) : f.retrievedLocations.isError ? (b(), N("div", ei, $(m(a)("report.integration.errorFetchingLocation")), 1)) : O("", !0)
5370
+ ])) : f.retrievedLocations.isError ? (b(), N("div", Zr, $(m(a)("report.integration.errorFetchingLocation")), 1)) : O("", !0)
5380
5371
  ])
5381
5372
  ]),
5382
5373
  l(L, { style: { margin: 0 } }),
5383
- t("div", ti, [
5384
- t("div", oi, $(m(a)("report.integration.autocount.saveAndApprove")), 1),
5385
- t("div", ai, [
5386
- t("div", li, $(m(a)("report.integration.autocount.invoice")), 1),
5374
+ t("div", ei, [
5375
+ t("div", ti, $(m(a)("report.integration.autocount.saveAndApprove")), 1),
5376
+ t("div", oi, [
5377
+ t("div", ai, $(m(a)("report.integration.autocount.invoice")), 1),
5387
5378
  l(ae, {
5388
5379
  modelValue: e.value.platform.mappings.saveApproveInvoice,
5389
5380
  "onUpdate:modelValue": p[9] || (p[9] = (j) => e.value.platform.mappings.saveApproveInvoice = j),
5390
5381
  style: { gap: "0px" }
5391
5382
  }, null, 8, ["modelValue"])
5392
5383
  ]),
5393
- t("div", ni, [
5394
- t("div", si, $(m(a)("report.integration.autocount.creditNote")), 1),
5384
+ t("div", li, [
5385
+ t("div", ni, $(m(a)("report.integration.autocount.creditNote")), 1),
5395
5386
  l(ae, {
5396
5387
  modelValue: e.value.platform.mappings.saveApproveCreditNote,
5397
5388
  "onUpdate:modelValue": p[10] || (p[10] = (j) => e.value.platform.mappings.saveApproveCreditNote = j),
5398
5389
  style: { gap: "0px" }
5399
5390
  }, null, 8, ["modelValue"])
5400
5391
  ]),
5401
- t("div", ri, [
5402
- t("div", ii, $(m(a)("report.integration.autocount.payment")), 1),
5392
+ t("div", si, [
5393
+ t("div", ri, $(m(a)("report.integration.autocount.payment")), 1),
5403
5394
  l(ae, {
5404
5395
  modelValue: e.value.platform.mappings.saveApprovePayment,
5405
5396
  "onUpdate:modelValue": p[11] || (p[11] = (j) => e.value.platform.mappings.saveApprovePayment = j),
@@ -5408,12 +5399,12 @@ const Ts = [
5408
5399
  ])
5409
5400
  ]),
5410
5401
  l(L, { style: { margin: 0 } }),
5411
- t("div", di, [
5412
- t("div", mi, [
5413
- t("div", ui, $(m(a)("report.integration.refNumFormat")), 1),
5414
- l(lt)
5402
+ t("div", ii, [
5403
+ t("div", di, [
5404
+ t("div", mi, $(m(a)("report.integration.refNumFormat")), 1),
5405
+ l(at)
5415
5406
  ]),
5416
- t("div", pi, [
5407
+ t("div", ui, [
5417
5408
  l(Q, {
5418
5409
  "model-value": {
5419
5410
  key: "Invoice no",
@@ -5449,18 +5440,18 @@ const Ts = [
5449
5440
  ])
5450
5441
  ]),
5451
5442
  l(L, { style: { margin: 0 } }),
5452
- l(Ee, {
5443
+ l(Xe, {
5453
5444
  modelValue: e.value.platform,
5454
5445
  "onUpdate:modelValue": p[16] || (p[16] = (j) => e.value.platform = j),
5455
5446
  label: w.value ? "email" : "upload",
5456
- "last-upload-date": (fe = e.value.platform) == null ? void 0 : fe.lastUploadDate,
5447
+ "last-upload-date": (ge = e.value.platform) == null ? void 0 : ge.lastUploadDate,
5457
5448
  "error-logs": f.errorLogs,
5458
5449
  "integration-id": e.value._id,
5459
5450
  "is-auto-email-mode": w.value
5460
5451
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id", "is-auto-email-mode"]),
5461
5452
  l(L, { style: { margin: 0 } }),
5462
- t("div", ci, [
5463
- t("div", fi, $(m(a)("report.integration.biztory.items")), 1),
5453
+ t("div", pi, [
5454
+ t("div", ci, $(m(a)("report.integration.biztory.items")), 1),
5464
5455
  l(T, {
5465
5456
  variant: "secondary",
5466
5457
  "prepend-icon": "add",
@@ -5475,7 +5466,7 @@ const Ts = [
5475
5466
  m(a)("report.integration.autocount.productCode"),
5476
5467
  m(a)("report.integration.autocount.accountCode")
5477
5468
  ],
5478
- rows: ((ye = (ve = (ge = e.value) == null ? void 0 : ge.platform) == null ? void 0 : ve.mappings) == null ? void 0 : ye.items) || [],
5469
+ rows: ((xe = (ye = (ve = e.value) == null ? void 0 : ve.platform) == null ? void 0 : ye.mappings) == null ? void 0 : xe.items) || [],
5479
5470
  "columns-per-row": 1,
5480
5471
  removable: !0,
5481
5472
  "mapping-type": "items",
@@ -5500,8 +5491,8 @@ const Ts = [
5500
5491
  })
5501
5492
  }, null, 8, ["header-items", "rows", "fields-options"]),
5502
5493
  l(L, { style: { margin: 0 } }),
5503
- t("div", gi, [
5504
- t("div", vi, $(m(a)("report.integration.biztory.taxes")), 1),
5494
+ t("div", fi, [
5495
+ t("div", gi, $(m(a)("report.integration.biztory.taxes")), 1),
5505
5496
  l(T, {
5506
5497
  variant: "secondary",
5507
5498
  "prepend-icon": "add",
@@ -5514,7 +5505,7 @@ const Ts = [
5514
5505
  m(a)("report.integration.autocount.feedmeKey"),
5515
5506
  m(a)("report.integration.autocount.accountCode")
5516
5507
  ],
5517
- rows: ((J = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : J.taxes) || [],
5508
+ rows: ((J = (we = (be = e.value) == null ? void 0 : be.platform) == null ? void 0 : we.mappings) == null ? void 0 : J.taxes) || [],
5518
5509
  "columns-per-row": 2,
5519
5510
  removable: !0,
5520
5511
  "mapping-type": "taxes",
@@ -5535,8 +5526,8 @@ const Ts = [
5535
5526
  })
5536
5527
  }, null, 8, ["header-items", "rows", "fields-options"]),
5537
5528
  l(L, { style: { margin: 0 } }),
5538
- t("div", yi, [
5539
- t("div", xi, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
5529
+ t("div", vi, [
5530
+ t("div", yi, $(m(a)("report.integration.taxRoundingAdjustments")), 1),
5540
5531
  l(T, {
5541
5532
  variant: "secondary",
5542
5533
  "prepend-icon": "add",
@@ -5570,8 +5561,8 @@ const Ts = [
5570
5561
  })
5571
5562
  }, null, 8, ["header-items", "rows", "fields-options"]),
5572
5563
  l(L, { style: { margin: 0 } }),
5573
- t("div", bi, [
5574
- t("div", wi, $(m(a)("report.integration.biztory.payments")), 1),
5564
+ t("div", xi, [
5565
+ t("div", bi, $(m(a)("report.integration.biztory.payments")), 1),
5575
5566
  l(T, {
5576
5567
  variant: "secondary",
5577
5568
  "prepend-icon": "add",
@@ -5579,7 +5570,7 @@ const Ts = [
5579
5570
  onClick: p[26] || (p[26] = () => d("payments"))
5580
5571
  })
5581
5572
  ]),
5582
- t("div", hi, [
5573
+ t("div", wi, [
5583
5574
  l(Q, {
5584
5575
  "model-value": {
5585
5576
  key: "Credit Term",
@@ -5650,7 +5641,7 @@ const Ts = [
5650
5641
  };
5651
5642
  }
5652
5643
  });
5653
- function Ci(f) {
5644
+ function _i(f) {
5654
5645
  return f.reduce((a, e) => {
5655
5646
  var I, V, c, g, S, U, w, y, i, _, k, d, s, x;
5656
5647
  const { invoice: u, payments: v } = e, F = a.length;
@@ -5703,7 +5694,7 @@ function Ci(f) {
5703
5694
  return a;
5704
5695
  }, []);
5705
5696
  }
5706
- const ki = [
5697
+ const Ci = [
5707
5698
  {
5708
5699
  accessorKey: "docNo",
5709
5700
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
@@ -5779,10 +5770,10 @@ const ki = [
5779
5770
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Journal Type"),
5780
5771
  enableSorting: !1
5781
5772
  }
5782
- ], $i = { class: "h-full flex flex-col gap-16" }, Si = { class: "flex flex-row gap-2 justify-between items-center" }, Ai = { class: "flex flex-row gap-5" }, Vi = {
5773
+ ], ki = { class: "h-full flex flex-col gap-16" }, $i = { class: "flex flex-row gap-2 justify-between items-center" }, Si = { class: "flex flex-row gap-5" }, Ai = {
5783
5774
  key: 0,
5784
5775
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
5785
- }, Di = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ki = /* @__PURE__ */ oe({
5776
+ }, Vi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Di = /* @__PURE__ */ oe({
5786
5777
  __name: "Preview",
5787
5778
  props: {
5788
5779
  modelValue: { required: !0 },
@@ -5790,13 +5781,13 @@ const ki = [
5790
5781
  },
5791
5782
  emits: ["update:modelValue"],
5792
5783
  setup(f) {
5793
- const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), { dateRange: F } = Qe(Se()), { options: D, isFeatureAvailable: I } = Re(), V = X([]);
5784
+ const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), { dateRange: F } = Ge(Se()), { options: D, isFeatureAvailable: I } = Re(), V = X([]);
5794
5785
  Ke(
5795
5786
  () => F.value,
5796
5787
  async () => {
5797
5788
  if (e.value._id)
5798
5789
  try {
5799
- u.value = !0, V.value = await qe(e.value._id);
5790
+ u.value = !0, V.value = await Ye(e.value._id);
5800
5791
  } catch (y) {
5801
5792
  v.open({ message: y.message, type: "error" });
5802
5793
  } finally {
@@ -5807,7 +5798,7 @@ const ki = [
5807
5798
  immediate: !0
5808
5799
  }
5809
5800
  );
5810
- const c = B(() => Ci(V.value)), g = B(() => ki), S = B(() => {
5801
+ const c = B(() => _i(V.value)), g = B(() => Ci), S = B(() => {
5811
5802
  var i;
5812
5803
  const y = (i = D.find(
5813
5804
  (_) => _.platform === Ue.AutoCountCloud
@@ -5816,7 +5807,7 @@ const ki = [
5816
5807
  });
5817
5808
  async function U() {
5818
5809
  try {
5819
- e.value._id && e.value.platform.apiKey ? (u.value = !0, await ot(e.value._id), v.open({ message: a("report.integration.uploadSuccess"), type: "success" })) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
5810
+ e.value._id && e.value.platform.apiKey ? (u.value = !0, await tt(e.value._id), v.open({ message: a("report.integration.uploadSuccess"), type: "success" })) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
5820
5811
  } catch (y) {
5821
5812
  y.message && v.open({ message: y.message, type: "error" }), Array.isArray(y.errors) ? y.errors.forEach((i) => v.open({ message: String(i), type: "error" })) : typeof y.errors == "string" && v.open({ message: y.errors, type: "error" });
5822
5813
  } finally {
@@ -5825,7 +5816,7 @@ const ki = [
5825
5816
  }
5826
5817
  async function w() {
5827
5818
  try {
5828
- e.value._id ? (u.value = !0, await at(e.value._id)) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
5819
+ e.value._id ? (u.value = !0, await ot(e.value._id)) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
5829
5820
  } catch (y) {
5830
5821
  y.message && v.open({ message: y.message, type: "error" }), Array.isArray(y.errors) ? y.errors.forEach((i) => v.open({ message: String(i), type: "error" })) : typeof y.errors == "string" && v.open({ message: y.errors, type: "error" });
5831
5822
  } finally {
@@ -5834,14 +5825,14 @@ const ki = [
5834
5825
  }
5835
5826
  return (y, i) => {
5836
5827
  const _ = K("FmButton"), k = K("FmCircularProgress"), d = K("FmTable");
5837
- return b(), N("div", $i, [
5838
- t("div", Si, [
5839
- l(Ge, {
5828
+ return b(), N("div", ki, [
5829
+ t("div", $i, [
5830
+ l(He, {
5840
5831
  "date-range": m(F),
5841
5832
  "onUpdate:dateRange": i[0] || (i[0] = (s) => Me(F) ? F.value = s : null),
5842
5833
  compare: !1
5843
5834
  }, null, 8, ["date-range"]),
5844
- t("div", Ai, [
5835
+ t("div", Si, [
5845
5836
  S.value ? (b(), E(_, {
5846
5837
  key: 0,
5847
5838
  loading: u.value,
@@ -5857,9 +5848,9 @@ const ki = [
5857
5848
  }, null, 8, ["loading", "label"])
5858
5849
  ])
5859
5850
  ]),
5860
- u.value ? (b(), N("div", Vi, [
5851
+ u.value ? (b(), N("div", Ai, [
5861
5852
  l(k, { size: "xl" }),
5862
- t("span", Di, $(m(a)("report.common.isLoading")), 1)
5853
+ t("span", Vi, $(m(a)("report.common.isLoading")), 1)
5863
5854
  ])) : (b(), E(d, {
5864
5855
  key: 1,
5865
5856
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -5869,9 +5860,9 @@ const ki = [
5869
5860
  ]);
5870
5861
  };
5871
5862
  }
5872
- }), Fi = { class: "h-full relative flex flex-col" }, Ii = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Ti = /* @__PURE__ */ oe({
5863
+ }), Ki = { class: "h-full relative flex flex-col" }, Fi = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Ii = /* @__PURE__ */ oe({
5873
5864
  __name: "AutocountCloud",
5874
- props: /* @__PURE__ */ me({
5865
+ props: /* @__PURE__ */ ue({
5875
5866
  errorLogs: {}
5876
5867
  }, {
5877
5868
  modelValue: { required: !0 },
@@ -5894,11 +5885,11 @@ const ki = [
5894
5885
  switch (v.value) {
5895
5886
  case "preview":
5896
5887
  return {
5897
- component: Ki
5888
+ component: Di
5898
5889
  };
5899
5890
  case "setting":
5900
5891
  return {
5901
- component: _i,
5892
+ component: hi,
5902
5893
  props: {
5903
5894
  retrievedLocations: V.value,
5904
5895
  retrievedDebtors: c.value,
@@ -5927,23 +5918,23 @@ const ki = [
5927
5918
  }
5928
5919
  }, w = async () => {
5929
5920
  await U(
5930
- ht,
5921
+ wt,
5931
5922
  S,
5932
5923
  c,
5933
5924
  "Failed to fetch debtors:"
5934
5925
  ), await U(
5935
- _t,
5926
+ ht,
5936
5927
  g,
5937
5928
  V,
5938
5929
  "Failed to fetch locations:"
5939
5930
  ), V.value.isLoaded = !0, c.value.isLoaded = !0;
5940
5931
  };
5941
- return nt(() => {
5932
+ return lt(() => {
5942
5933
  e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? w() : (V.value.isLoaded = !0, c.value.isLoaded = !0, V.value.isError = !0, c.value.isError = !0);
5943
5934
  }), (y, i) => {
5944
5935
  var d, s, x;
5945
5936
  const _ = K("FmPageHead"), k = K("FmTabs");
5946
- return b(), N("div", Fi, [
5937
+ return b(), N("div", Ki, [
5947
5938
  l(_, {
5948
5939
  title: ((d = e.value) == null ? void 0 : d.name) || "Autocount Cloud",
5949
5940
  "back-button": !0,
@@ -5960,8 +5951,8 @@ const ki = [
5960
5951
  "onUpdate:modelValue": i[1] || (i[1] = (n) => v.value = n),
5961
5952
  items: F
5962
5953
  }, null, 8, ["model-value"]),
5963
- t("div", Ii, [
5964
- (b(), E(Pe((s = I.value) == null ? void 0 : s.component), tt({
5954
+ t("div", Fi, [
5955
+ (b(), E(Pe((s = I.value) == null ? void 0 : s.component), et({
5965
5956
  modelValue: e.value,
5966
5957
  "onUpdate:modelValue": i[2] || (i[2] = (n) => e.value = n)
5967
5958
  }, (x = I.value) == null ? void 0 : x.props), null, 16, ["modelValue"]))
@@ -5969,10 +5960,10 @@ const ki = [
5969
5960
  ]);
5970
5961
  };
5971
5962
  }
5972
- }), Ri = {
5963
+ }), Ti = {
5973
5964
  key: 0,
5974
5965
  class: "flex flex-col h-full w-full"
5975
- }, Ui = { class: "flex flex-col gap-16 pb-[24px]" }, Ni = { class: "flex flex-row justify-between items-center gap-2" }, Mi = { class: "flex flex-row gap-2 items-center" }, Pi = { class: "relative group cursor-pointer" }, Li = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, ji = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ei = { class: "w-[90%] flex flex-col gap-24" }, Oi = { class: "flex flex-col gap-16" }, Bi = { class: "fm-typo-en-title-sm-800" }, Yi = { class: "flex flex-col max-w-[100%]" }, qi = { class: "w-[25%] font-semibold" }, zi = { class: "flex-grow" }, Hi = { class: "flex flex-col max-w-[100%]" }, Gi = { class: "w-[25%] font-semibold" }, Qi = { class: "flex flex-col gap-16" }, Xi = { class: "grid-cols-2 grid gap-16" }, Wi = { class: "flex flex-row items-center justify-between gap-x-16" }, Ji = { class: "flex flex-row items-center justify-between gap-x-16" }, Zi = { class: "fm-typo-en-title-sm-800" }, ed = { class: "flex flex-row items-center justify-between gap-x-16" }, td = { class: "flex flex-row items-center justify-between gap-x-16" }, od = /* @__PURE__ */ oe({
5966
+ }, Ri = { class: "flex flex-col gap-16 pb-[24px]" }, Ui = { class: "flex flex-row justify-between items-center gap-2" }, Ni = { class: "flex flex-row gap-2 items-center" }, Mi = { class: "relative group cursor-pointer" }, Pi = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Li = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ji = { class: "w-[90%] flex flex-col gap-24" }, Ei = { class: "flex flex-col gap-16" }, Oi = { class: "fm-typo-en-title-sm-800" }, Bi = { class: "flex flex-col max-w-[100%]" }, Yi = { class: "w-[25%] font-semibold" }, qi = { class: "flex-grow" }, zi = { class: "flex flex-col max-w-[100%]" }, Hi = { class: "w-[25%] font-semibold" }, Gi = { class: "flex flex-col gap-16" }, Qi = { class: "grid-cols-2 grid gap-16" }, Xi = { class: "flex flex-row items-center justify-between gap-x-16" }, Wi = { class: "flex flex-row items-center justify-between gap-x-16" }, Ji = { class: "fm-typo-en-title-sm-800" }, Zi = { class: "flex flex-row items-center justify-between gap-x-16" }, ed = { class: "flex flex-row items-center justify-between gap-x-16" }, td = /* @__PURE__ */ oe({
5976
5967
  __name: "Setting",
5977
5968
  props: {
5978
5969
  modelValue: { required: !0 },
@@ -5980,7 +5971,7 @@ const ki = [
5980
5971
  },
5981
5972
  emits: ["update:modelValue"],
5982
5973
  setup(f) {
5983
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
5974
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
5984
5975
  () => V.map((k) => ({ label: k.name, value: k.id }))
5985
5976
  );
5986
5977
  async function U() {
@@ -5999,7 +5990,7 @@ const ki = [
5999
5990
  title: a("report.common.delete")
6000
5991
  }) && await D(async () => {
6001
5992
  try {
6002
- await Be(e.value._id), await v.getSettings(), F.back();
5993
+ await Oe(e.value._id), await v.getSettings(), F.back();
6003
5994
  } catch (n) {
6004
5995
  u.open({ type: "error", message: n.message });
6005
5996
  }
@@ -6018,7 +6009,7 @@ const ki = [
6018
6009
  }
6019
6010
  await D(async () => {
6020
6011
  try {
6021
- await Ye(e.value._id, e.value), await v.getSettings();
6012
+ await Be(e.value._id, e.value), await v.getSettings();
6022
6013
  } catch (x) {
6023
6014
  u.open({ type: "error", message: x.message });
6024
6015
  }
@@ -6049,23 +6040,23 @@ const ki = [
6049
6040
  }
6050
6041
  });
6051
6042
  }
6052
- return Oe(async () => {
6043
+ return Ee(async () => {
6053
6044
  await v.getSettings();
6054
6045
  }), (k, d) => {
6055
- var r, p, R, T, L, W, te, ae, H, de, ue, pe, ce, fe, ge, ve, ye, xe, be;
6046
+ var r, p, R, T, L, W, te, ae, H, de, pe, ce, fe, ge, ve, ye, xe, be, we;
6056
6047
  const s = K("FmIcon"), x = K("FmButton"), n = K("FmMenuDivider"), o = K("FmTextField"), h = K("FmSelect");
6057
- return (p = (r = e.value) == null ? void 0 : r.platform) != null && p.mappings ? (b(), N("div", Ri, [
6058
- t("div", Ui, [
6059
- t("div", Ni, [
6048
+ return (p = (r = e.value) == null ? void 0 : r.platform) != null && p.mappings ? (b(), N("div", Ti, [
6049
+ t("div", Ri, [
6050
+ t("div", Ui, [
6060
6051
  d[16] || (d[16] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
6061
- t("div", Mi, [
6062
- t("div", Pi, [
6052
+ t("div", Ni, [
6053
+ t("div", Mi, [
6063
6054
  l(s, {
6064
6055
  name: "refresh",
6065
6056
  class: "p-2 bg-gray-100 rounded-full",
6066
6057
  onClick: _
6067
6058
  }),
6068
- t("span", Li, $(m(a)("report.integration.refreshSetting")), 1)
6059
+ t("span", Pi, $(m(a)("report.integration.refreshSetting")), 1)
6069
6060
  ]),
6070
6061
  l(x, {
6071
6062
  variant: "tertiary",
@@ -6082,21 +6073,21 @@ const ki = [
6082
6073
  ])
6083
6074
  ]),
6084
6075
  l(n, { style: { margin: 0 } }),
6085
- t("div", ji, [
6086
- t("div", Ei, [
6087
- t("div", Oi, [
6088
- t("div", Bi, $(m(a)("report.integration.general")), 1),
6089
- t("div", Yi, [
6090
- t("div", qi, $(m(a)("report.common.name")), 1),
6091
- t("div", zi, [
6076
+ t("div", Li, [
6077
+ t("div", ji, [
6078
+ t("div", Ei, [
6079
+ t("div", Oi, $(m(a)("report.integration.general")), 1),
6080
+ t("div", Bi, [
6081
+ t("div", Yi, $(m(a)("report.common.name")), 1),
6082
+ t("div", qi, [
6092
6083
  l(o, {
6093
6084
  modelValue: e.value.name,
6094
6085
  "onUpdate:modelValue": d[0] || (d[0] = (J) => e.value.name = J)
6095
6086
  }, null, 8, ["modelValue"])
6096
6087
  ])
6097
6088
  ]),
6098
- t("div", Hi, [
6099
- t("div", Gi, $(m(a)("report.integration.location")), 1),
6089
+ t("div", zi, [
6090
+ t("div", Hi, $(m(a)("report.integration.location")), 1),
6100
6091
  l(h, {
6101
6092
  modelValue: e.value.platform.locationIds,
6102
6093
  "onUpdate:modelValue": d[1] || (d[1] = (J) => e.value.platform.locationIds = J),
@@ -6109,7 +6100,7 @@ const ki = [
6109
6100
  ]),
6110
6101
  l(n, { style: { margin: 0 } })
6111
6102
  ]),
6112
- t("div", Qi, [
6103
+ t("div", Gi, [
6113
6104
  l(Q, {
6114
6105
  "is-take-whole-row": !0,
6115
6106
  "model-value": {
@@ -6127,7 +6118,7 @@ const ki = [
6127
6118
  (M = (C = (P = (q = e.value) == null ? void 0 : q.platform) == null ? void 0 : P.mappings) == null ? void 0 : C.invoice) != null && M.debtor && (e.value.platform.mappings.invoice.debtor.name = J.name, e.value.platform.mappings.invoice.debtor.code = J.code);
6128
6119
  })
6129
6120
  }, null, 8, ["model-value"]),
6130
- t("div", Xi, [
6121
+ t("div", Qi, [
6131
6122
  l(Q, {
6132
6123
  "model-value": {
6133
6124
  key: "Rounding",
@@ -6157,7 +6148,7 @@ const ki = [
6157
6148
  ])
6158
6149
  ]),
6159
6150
  l(n, { style: { margin: 0 } }),
6160
- t("div", Wi, [
6151
+ t("div", Xi, [
6161
6152
  d[17] || (d[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice Items", -1)),
6162
6153
  l(x, {
6163
6154
  variant: "secondary",
@@ -6195,8 +6186,8 @@ const ki = [
6195
6186
  })
6196
6187
  }, null, 8, ["rows"]),
6197
6188
  l(n, { style: { margin: 0 } }),
6198
- t("div", Ji, [
6199
- t("div", Zi, $(m(a)("report.integration.taxes")), 1),
6189
+ t("div", Wi, [
6190
+ t("div", Ji, $(m(a)("report.integration.taxes")), 1),
6200
6191
  l(x, {
6201
6192
  variant: "secondary",
6202
6193
  "prepend-icon": "add",
@@ -6206,7 +6197,7 @@ const ki = [
6206
6197
  ]),
6207
6198
  l(ee, {
6208
6199
  "header-items": ["Key", "Account Code"],
6209
- rows: ((ce = (pe = (ue = e.value) == null ? void 0 : ue.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.invoice.taxes) || [],
6200
+ rows: ((fe = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : fe.invoice.taxes) || [],
6210
6201
  "columns-per-row": 1,
6211
6202
  removable: !0,
6212
6203
  "mapping-type": "taxes",
@@ -6223,7 +6214,7 @@ const ki = [
6223
6214
  })
6224
6215
  }, null, 8, ["rows"]),
6225
6216
  l(n, { style: { margin: 0 } }),
6226
- t("div", ed, [
6217
+ t("div", Zi, [
6227
6218
  d[18] || (d[18] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
6228
6219
  l(x, {
6229
6220
  variant: "secondary",
@@ -6234,7 +6225,7 @@ const ki = [
6234
6225
  ]),
6235
6226
  l(ee, {
6236
6227
  "header-items": ["Key", "Account Code", "UOM"],
6237
- rows: ((ve = (ge = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : ge.mappings) == null ? void 0 : ve.inventory.items) || [],
6228
+ rows: ((ye = (ve = (ge = e.value) == null ? void 0 : ge.platform) == null ? void 0 : ve.mappings) == null ? void 0 : ye.inventory.items) || [],
6238
6229
  "columns-per-row": 1,
6239
6230
  removable: !0,
6240
6231
  "mapping-type": "items",
@@ -6260,7 +6251,7 @@ const ki = [
6260
6251
  })
6261
6252
  }, null, 8, ["rows"]),
6262
6253
  l(n, { style: { margin: 0 } }),
6263
- t("div", td, [
6254
+ t("div", ed, [
6264
6255
  d[19] || (d[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
6265
6256
  l(x, {
6266
6257
  variant: "secondary",
@@ -6271,7 +6262,7 @@ const ki = [
6271
6262
  ]),
6272
6263
  l(ee, {
6273
6264
  "header-items": ["Key", "Code", "Name"],
6274
- rows: ((be = (xe = (ye = e.value) == null ? void 0 : ye.platform) == null ? void 0 : xe.mappings) == null ? void 0 : be.inventory.suppliers) || [],
6265
+ rows: ((we = (be = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : be.mappings) == null ? void 0 : we.inventory.suppliers) || [],
6275
6266
  "columns-per-row": 1,
6276
6267
  removable: !0,
6277
6268
  "mapping-type": "suppliers",
@@ -6293,13 +6284,13 @@ const ki = [
6293
6284
  ])) : O("", !0);
6294
6285
  };
6295
6286
  }
6296
- }), ad = { class: "h-full w-full flex flex-col" }, ld = { class: "flex flex-row gap-2 justify-between items-center" }, nd = {
6287
+ }), od = { class: "h-full w-full flex flex-col" }, ad = { class: "flex flex-row gap-2 justify-between items-center" }, ld = {
6297
6288
  key: 0,
6298
6289
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
6299
- }, sd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rd = {
6290
+ }, nd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, sd = {
6300
6291
  key: 1,
6301
6292
  class: "w-full h-full flex flex-col flex-grow"
6302
- }, id = /* @__PURE__ */ oe({
6293
+ }, rd = /* @__PURE__ */ oe({
6303
6294
  __name: "Preview",
6304
6295
  props: {
6305
6296
  modelValue: { required: !0 },
@@ -6648,13 +6639,13 @@ const ki = [
6648
6639
  header: () => A("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Net Amt"),
6649
6640
  enableSorting: !1
6650
6641
  }
6651
- ], w = se(f, "modelValue"), y = X(!1), i = Ae(), { dateRange: _ } = Qe(Se());
6642
+ ], w = se(f, "modelValue"), y = X(!1), i = Ae(), { dateRange: _ } = Ge(Se());
6652
6643
  Ke(
6653
6644
  () => _.value,
6654
6645
  async () => {
6655
6646
  if (w.value._id)
6656
6647
  try {
6657
- y.value = !0, e.value = await qe(w.value._id);
6648
+ y.value = !0, e.value = await Ye(w.value._id);
6658
6649
  } catch (x) {
6659
6650
  i.open({ message: x.message, type: "error" });
6660
6651
  } finally {
@@ -6667,7 +6658,7 @@ const ki = [
6667
6658
  );
6668
6659
  async function k() {
6669
6660
  try {
6670
- w.value._id ? (y.value = !0, await at(w.value._id, [s.value])) : i.open({ message: "Invalid accounting setting", type: "error" });
6661
+ w.value._id ? (y.value = !0, await ot(w.value._id, [s.value])) : i.open({ message: "Invalid accounting setting", type: "error" });
6671
6662
  } catch (x) {
6672
6663
  i.open({ message: x.message, type: "error" });
6673
6664
  } finally {
@@ -6703,9 +6694,9 @@ const ki = [
6703
6694
  ], s = X(d[0].value);
6704
6695
  return (x, n) => {
6705
6696
  const o = K("FmButton"), h = K("FmCircularProgress"), r = K("FmTabs"), p = K("FmTable");
6706
- return b(), N("div", ad, [
6707
- t("div", ld, [
6708
- l(Ge, {
6697
+ return b(), N("div", od, [
6698
+ t("div", ad, [
6699
+ l(He, {
6709
6700
  "date-range": m(_),
6710
6701
  "onUpdate:dateRange": n[0] || (n[0] = (R) => Me(_) ? _.value = R : null),
6711
6702
  compare: !1
@@ -6717,10 +6708,10 @@ const ki = [
6717
6708
  onClick: k
6718
6709
  }, null, 8, ["loading", "label"])
6719
6710
  ]),
6720
- y.value ? (b(), N("div", nd, [
6711
+ y.value ? (b(), N("div", ld, [
6721
6712
  l(h, { size: "xl" }),
6722
- t("span", sd, $(m(a)("report.common.isLoading")), 1)
6723
- ])) : (b(), N("div", rd, [
6713
+ t("span", nd, $(m(a)("report.common.isLoading")), 1)
6714
+ ])) : (b(), N("div", sd, [
6724
6715
  l(r, {
6725
6716
  "model-value": s.value,
6726
6717
  "onUpdate:modelValue": n[1] || (n[1] = (R) => s.value = R),
@@ -6758,7 +6749,7 @@ const ki = [
6758
6749
  ]);
6759
6750
  };
6760
6751
  }
6761
- }), dd = { class: "h-full w-full flex flex-col" }, md = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, ud = /* @__PURE__ */ oe({
6752
+ }), id = { class: "h-full w-full flex flex-col" }, dd = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, md = /* @__PURE__ */ oe({
6762
6753
  __name: "SynergyExport",
6763
6754
  props: {
6764
6755
  modelValue: {},
@@ -6780,9 +6771,9 @@ const ki = [
6780
6771
  ], F = ke(), D = B(() => {
6781
6772
  switch (u.value) {
6782
6773
  case "preview":
6783
- return id;
6774
+ return rd;
6784
6775
  case "setting":
6785
- return od;
6776
+ return td;
6786
6777
  default:
6787
6778
  return null;
6788
6779
  }
@@ -6790,7 +6781,7 @@ const ki = [
6790
6781
  return (I, V) => {
6791
6782
  var S;
6792
6783
  const c = K("FmPageHead"), g = K("FmTabs");
6793
- return b(), N("div", dd, [
6784
+ return b(), N("div", id, [
6794
6785
  l(c, {
6795
6786
  title: ((S = e.value) == null ? void 0 : S.name) || "Synergy",
6796
6787
  "back-button": !0,
@@ -6807,7 +6798,7 @@ const ki = [
6807
6798
  "onUpdate:modelValue": V[1] || (V[1] = (U) => u.value = U),
6808
6799
  items: v
6809
6800
  }, null, 8, ["model-value"]),
6810
- t("div", md, [
6801
+ t("div", dd, [
6811
6802
  (b(), E(Pe(D.value), {
6812
6803
  modelValue: e.value,
6813
6804
  "onUpdate:modelValue": V[2] || (V[2] = (U) => e.value = U)
@@ -6816,12 +6807,12 @@ const ki = [
6816
6807
  ]);
6817
6808
  };
6818
6809
  }
6819
- }), pd = {
6810
+ }), ud = {
6820
6811
  key: 0,
6821
6812
  class: "flex flex-col h-full w-full"
6822
- }, cd = { class: "flex flex-col gap-16 pb-[24px]" }, fd = { class: "flex flex-row justify-between items-center gap-2" }, gd = { class: "fm-typo-en-title-sm-800" }, vd = { class: "flex flex-row gap-2 items-center" }, yd = { class: "relative group cursor-pointer" }, xd = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, bd = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, wd = { class: "w-[90%] flex flex-col gap-24" }, hd = { class: "flex flex-col gap-16" }, _d = { class: "fm-typo-en-title-sm-800" }, Cd = { class: "flex flex-col max-w-[100%]" }, kd = { class: "w-[25%] font-semibold" }, $d = { class: "flex flex-col max-w-[100%]" }, Sd = { class: "w-[25%] font-semibold" }, Ad = { class: "flex flex-col max-w-[100%]" }, Vd = { class: "grid-cols-2 grid gap-16" }, Dd = { class: "flex flex-col max-w-[100%]" }, Kd = { class: "flex flex-col max-w-[100%]" }, Fd = { class: "flex flex-col max-w-[100%]" }, Id = { class: "flex flex-col max-w-[100%]" }, Td = { class: "flex flex-row items-center justify-between gap-x-16" }, Rd = { class: "flex flex-row items-center justify-between gap-x-16" }, Ud = { class: "flex flex-row items-center justify-between gap-x-16" }, Nd = { class: "flex flex-row items-center justify-between gap-x-16" }, Md = /* @__PURE__ */ oe({
6813
+ }, pd = { class: "flex flex-col gap-16 pb-[24px]" }, cd = { class: "flex flex-row justify-between items-center gap-2" }, fd = { class: "fm-typo-en-title-sm-800" }, gd = { class: "flex flex-row gap-2 items-center" }, vd = { class: "relative group cursor-pointer" }, yd = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, xd = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, bd = { class: "w-[90%] flex flex-col gap-24" }, wd = { class: "flex flex-col gap-16" }, hd = { class: "fm-typo-en-title-sm-800" }, _d = { class: "flex flex-col max-w-[100%]" }, Cd = { class: "w-[25%] font-semibold" }, kd = { class: "flex flex-col max-w-[100%]" }, $d = { class: "w-[25%] font-semibold" }, Sd = { class: "flex flex-col max-w-[100%]" }, Ad = { class: "grid-cols-2 grid gap-16" }, Vd = { class: "flex flex-col max-w-[100%]" }, Dd = { class: "flex flex-col max-w-[100%]" }, Kd = { class: "flex flex-col max-w-[100%]" }, Fd = { class: "flex flex-col max-w-[100%]" }, Id = { class: "flex flex-row items-center justify-between gap-x-16" }, Td = { class: "flex flex-row items-center justify-between gap-x-16" }, Rd = { class: "flex flex-row items-center justify-between gap-x-16" }, Ud = { class: "flex flex-row items-center justify-between gap-x-16" }, Nd = /* @__PURE__ */ oe({
6823
6814
  __name: "Setting",
6824
- props: /* @__PURE__ */ me({
6815
+ props: /* @__PURE__ */ ue({
6825
6816
  errorLogs: {
6826
6817
  type: Array,
6827
6818
  default: () => []
@@ -6832,7 +6823,7 @@ const ki = [
6832
6823
  }),
6833
6824
  emits: ["update:modelValue"],
6834
6825
  setup(f) {
6835
- const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = ze(), { promptMessage: I } = He(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
6826
+ const { t: a } = re(), e = se(f, "modelValue"), u = Ae(), v = Re(), F = ke(), { promptLoader: D } = qe(), { promptMessage: I } = ze(), { restaurants: V } = Se(), { rules: c, notifyUnauthorized: g } = Le(), S = B(
6836
6827
  () => V.map((d) => ({ label: d.name, value: d.id }))
6837
6828
  ), U = [
6838
6829
  {
@@ -6856,7 +6847,7 @@ const ki = [
6856
6847
  title: a("report.common.delete")
6857
6848
  }) && await D(async () => {
6858
6849
  try {
6859
- await Be(e.value._id), await v.getSettings(), F.back();
6850
+ await Oe(e.value._id), await v.getSettings(), F.back();
6860
6851
  } catch (o) {
6861
6852
  u.open({ type: "error", message: o.message });
6862
6853
  }
@@ -6875,7 +6866,7 @@ const ki = [
6875
6866
  }
6876
6867
  await D(async () => {
6877
6868
  try {
6878
- await Ye(e.value._id, e.value), await v.getSettings();
6869
+ await Be(e.value._id, e.value), await v.getSettings();
6879
6870
  } catch (n) {
6880
6871
  u.open({ type: "error", message: n.message });
6881
6872
  }
@@ -6912,23 +6903,23 @@ const ki = [
6912
6903
  (o, h) => h !== s
6913
6904
  ));
6914
6905
  }
6915
- return Oe(async () => {
6906
+ return Ee(async () => {
6916
6907
  await v.getSettings();
6917
6908
  }), (d, s) => {
6918
6909
  var p, R;
6919
6910
  const x = K("FmIcon"), n = K("FmButton"), o = K("FmTextField"), h = K("FmSelect"), r = K("FmMenuDivider");
6920
- return (R = (p = e.value) == null ? void 0 : p.platform) != null && R.mappings ? (b(), N("div", pd, [
6921
- t("div", cd, [
6922
- t("div", fd, [
6923
- t("div", gd, $(m(a)("report.integration.connect")), 1),
6924
- t("div", vd, [
6925
- t("div", yd, [
6911
+ return (R = (p = e.value) == null ? void 0 : p.platform) != null && R.mappings ? (b(), N("div", ud, [
6912
+ t("div", pd, [
6913
+ t("div", cd, [
6914
+ t("div", fd, $(m(a)("report.integration.connect")), 1),
6915
+ t("div", gd, [
6916
+ t("div", vd, [
6926
6917
  l(x, {
6927
6918
  name: "refresh",
6928
6919
  class: "p-2 bg-gray-100 rounded-full",
6929
6920
  onClick: i
6930
6921
  }),
6931
- t("span", xd, $(m(a)("report.integration.refreshSetting")), 1)
6922
+ t("span", yd, $(m(a)("report.integration.refreshSetting")), 1)
6932
6923
  ]),
6933
6924
  l(n, {
6934
6925
  variant: "tertiary",
@@ -6944,20 +6935,20 @@ const ki = [
6944
6935
  ])
6945
6936
  ])
6946
6937
  ]),
6947
- t("div", bd, [
6948
- t("div", wd, [
6938
+ t("div", xd, [
6939
+ t("div", bd, [
6949
6940
  s[29] || (s[29] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Authenticate with your CodeMax POS account to enable FeedMe to securely upload data. ", -1)),
6950
- t("div", hd, [
6951
- t("div", _d, $(m(a)("report.common.general")), 1),
6952
- t("div", Cd, [
6953
- t("div", kd, $(m(a)("report.common.name")), 1),
6941
+ t("div", wd, [
6942
+ t("div", hd, $(m(a)("report.common.general")), 1),
6943
+ t("div", _d, [
6944
+ t("div", Cd, $(m(a)("report.common.name")), 1),
6954
6945
  l(o, {
6955
6946
  modelValue: e.value.name,
6956
6947
  "onUpdate:modelValue": s[0] || (s[0] = (T) => e.value.name = T)
6957
6948
  }, null, 8, ["modelValue"])
6958
6949
  ]),
6959
- t("div", $d, [
6960
- t("div", Sd, $(m(a)("report.common.location")), 1),
6950
+ t("div", kd, [
6951
+ t("div", $d, $(m(a)("report.common.location")), 1),
6961
6952
  l(h, {
6962
6953
  modelValue: e.value.platform.locationIds,
6963
6954
  "onUpdate:modelValue": s[1] || (s[1] = (T) => e.value.platform.locationIds = T),
@@ -6967,7 +6958,7 @@ const ki = [
6967
6958
  class: "flex-grow"
6968
6959
  }, null, 8, ["modelValue", "items", "placeholder"])
6969
6960
  ]),
6970
- t("div", Ad, [
6961
+ t("div", Sd, [
6971
6962
  s[20] || (s[20] = t("div", { class: "w-[25%] font-semibold" }, "Grouping", -1)),
6972
6963
  l(h, {
6973
6964
  modelValue: e.value.platform.grouping,
@@ -6978,8 +6969,8 @@ const ki = [
6978
6969
  class: "flex-grow"
6979
6970
  }, null, 8, ["modelValue"])
6980
6971
  ]),
6981
- t("div", Vd, [
6982
- t("div", Dd, [
6972
+ t("div", Ad, [
6973
+ t("div", Vd, [
6983
6974
  s[21] || (s[21] = t("div", { class: "w-[25%] font-semibold" }, "Endpoint", -1)),
6984
6975
  l(o, {
6985
6976
  modelValue: e.value.platform.endpoint,
@@ -6987,7 +6978,7 @@ const ki = [
6987
6978
  placeholder: "https://your-api-endpoint"
6988
6979
  }, null, 8, ["modelValue"])
6989
6980
  ]),
6990
- t("div", Kd, [
6981
+ t("div", Dd, [
6991
6982
  s[22] || (s[22] = t("div", { class: "w-[25%] font-semibold" }, "Login ID", -1)),
6992
6983
  l(o, {
6993
6984
  modelValue: e.value.platform.loginId,
@@ -6995,7 +6986,7 @@ const ki = [
6995
6986
  placeholder: "Login ID"
6996
6987
  }, null, 8, ["modelValue"])
6997
6988
  ]),
6998
- t("div", Fd, [
6989
+ t("div", Kd, [
6999
6990
  s[23] || (s[23] = t("div", { class: "w-[25%] font-semibold" }, "Password", -1)),
7000
6991
  l(o, {
7001
6992
  modelValue: e.value.platform.password,
@@ -7003,7 +6994,7 @@ const ki = [
7003
6994
  placeholder: "Password"
7004
6995
  }, null, 8, ["modelValue"])
7005
6996
  ]),
7006
- t("div", Id, [
6997
+ t("div", Fd, [
7007
6998
  s[24] || (s[24] = t("div", { class: "w-[25%] font-semibold" }, "Branch Code", -1)),
7008
6999
  l(o, {
7009
7000
  modelValue: e.value.platform.branchCode,
@@ -7014,7 +7005,7 @@ const ki = [
7014
7005
  ])
7015
7006
  ]),
7016
7007
  l(r, { style: { margin: 0 } }),
7017
- e.value._id ? (b(), E(Ee, {
7008
+ e.value._id ? (b(), E(Xe, {
7018
7009
  key: 0,
7019
7010
  modelValue: e.value.platform,
7020
7011
  "onUpdate:modelValue": s[7] || (s[7] = (T) => e.value.platform = T),
@@ -7024,7 +7015,7 @@ const ki = [
7024
7015
  label: "upload"
7025
7016
  }, null, 8, ["modelValue", "last-upload-date", "integration-id", "error-logs"])) : O("", !0),
7026
7017
  l(r, { style: { margin: 0 } }),
7027
- t("div", Td, [
7018
+ t("div", Id, [
7028
7019
  s[25] || (s[25] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
7029
7020
  l(n, {
7030
7021
  variant: "secondary",
@@ -7050,7 +7041,7 @@ const ki = [
7050
7041
  })
7051
7042
  }, null, 8, ["rows"]),
7052
7043
  l(r, { style: { margin: 0 } }),
7053
- t("div", Rd, [
7044
+ t("div", Td, [
7054
7045
  s[26] || (s[26] = t("div", { class: "fm-typo-en-title-sm-800" }, "Charges", -1)),
7055
7046
  l(n, {
7056
7047
  variant: "secondary",
@@ -7076,7 +7067,7 @@ const ki = [
7076
7067
  })
7077
7068
  }, null, 8, ["rows"]),
7078
7069
  l(r, { style: { margin: 0 } }),
7079
- t("div", Ud, [
7070
+ t("div", Rd, [
7080
7071
  s[27] || (s[27] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
7081
7072
  l(n, {
7082
7073
  variant: "secondary",
@@ -7102,7 +7093,7 @@ const ki = [
7102
7093
  })
7103
7094
  }, null, 8, ["rows"]),
7104
7095
  l(r, { style: { margin: 0 } }),
7105
- t("div", Nd, [
7096
+ t("div", Ud, [
7106
7097
  s[28] || (s[28] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
7107
7098
  l(n, {
7108
7099
  variant: "secondary",
@@ -7133,10 +7124,10 @@ const ki = [
7133
7124
  ])) : O("", !0);
7134
7125
  };
7135
7126
  }
7136
- }), Pd = { class: "h-full flex flex-col gap-16 overflow-hidden" }, Ld = { class: "flex flex-row flex-wrap gap-2 justify-between items-center flex-none" }, jd = { class: "flex-1 overflow-auto mt-4" }, Ed = {
7127
+ }), Md = { class: "h-full flex flex-col gap-16 overflow-hidden" }, Pd = { class: "flex flex-row flex-wrap gap-2 justify-between items-center flex-none" }, Ld = { class: "flex-1 overflow-auto mt-4" }, jd = {
7137
7128
  key: 0,
7138
7129
  class: "flex gap-24 w-full h-full justify-center items-center"
7139
- }, Od = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bd = /* @__PURE__ */ oe({
7130
+ }, Ed = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Od = /* @__PURE__ */ oe({
7140
7131
  __name: "Preview",
7141
7132
  props: {
7142
7133
  modelValue: { required: !0 },
@@ -7144,13 +7135,13 @@ const ki = [
7144
7135
  },
7145
7136
  emits: ["update:modelValue"],
7146
7137
  setup(f) {
7147
- const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), F = X([]), { dateRange: D } = Qe(Se());
7138
+ const { t: a } = re(), e = se(f, "modelValue"), u = X(!1), v = Ae(), F = X([]), { dateRange: D } = Ge(Se());
7148
7139
  Ke(
7149
7140
  () => D.value,
7150
7141
  async () => {
7151
7142
  if (e.value._id)
7152
7143
  try {
7153
- u.value = !0, F.value = await qe(e.value._id);
7144
+ u.value = !0, F.value = await Ye(e.value._id);
7154
7145
  } catch (g) {
7155
7146
  v.open({ message: g.message, type: "error" });
7156
7147
  } finally {
@@ -7217,7 +7208,7 @@ const ki = [
7217
7208
  ];
7218
7209
  async function c() {
7219
7210
  try {
7220
- e.value._id && e.value.platform.endpoint && e.value.platform.loginId && e.value.platform.password && e.value.platform.branchCode ? (u.value = !0, await ot(e.value._id), v.open({ message: a("report.integration.uploadSuccess"), type: "success" })) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
7211
+ e.value._id && e.value.platform.endpoint && e.value.platform.loginId && e.value.platform.password && e.value.platform.branchCode ? (u.value = !0, await tt(e.value._id), v.open({ message: a("report.integration.uploadSuccess"), type: "success" })) : v.open({ message: a("report.integration.invalidSetting"), type: "error" });
7221
7212
  } catch (g) {
7222
7213
  g.message && v.open({ message: g.message, type: "error" }), Array.isArray(g.errors) ? g.errors.forEach((S) => v.open({ message: String(S), type: "error" })) : typeof g.errors == "string" && v.open({ message: g.errors, type: "error" });
7223
7214
  } finally {
@@ -7226,9 +7217,9 @@ const ki = [
7226
7217
  }
7227
7218
  return (g, S) => {
7228
7219
  const U = K("FmButton"), w = K("FmCircularProgress"), y = K("FmTable");
7229
- return b(), N("div", Pd, [
7230
- t("div", Ld, [
7231
- l(Ge, {
7220
+ return b(), N("div", Md, [
7221
+ t("div", Pd, [
7222
+ l(He, {
7232
7223
  "date-range": m(D),
7233
7224
  "onUpdate:dateRange": S[0] || (S[0] = (i) => Me(D) ? D.value = i : null),
7234
7225
  compare: !1
@@ -7240,10 +7231,10 @@ const ki = [
7240
7231
  onClick: c
7241
7232
  }, null, 8, ["loading", "label"])
7242
7233
  ]),
7243
- t("div", jd, [
7244
- u.value ? (b(), N("div", Ed, [
7234
+ t("div", Ld, [
7235
+ u.value ? (b(), N("div", jd, [
7245
7236
  l(w, { size: "xl" }),
7246
- t("span", Od, $(m(a)("report.common.isLoading")), 1)
7237
+ t("span", Ed, $(m(a)("report.common.isLoading")), 1)
7247
7238
  ])) : (b(), E(y, {
7248
7239
  key: 1,
7249
7240
  class: "flex p-5 border border-fm-color-border-secondary rounded-lg h-auto min-w-full",
@@ -7254,9 +7245,9 @@ const ki = [
7254
7245
  ]);
7255
7246
  };
7256
7247
  }
7257
- }), Yd = { class: "h-full w-full flex flex-col" }, qd = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, zd = /* @__PURE__ */ oe({
7248
+ }), Bd = { class: "h-full w-full flex flex-col" }, Yd = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, qd = /* @__PURE__ */ oe({
7258
7249
  __name: "CodemaxPos",
7259
- props: /* @__PURE__ */ me({
7250
+ props: /* @__PURE__ */ ue({
7260
7251
  errorLogs: {
7261
7252
  type: Array,
7262
7253
  default: () => []
@@ -7282,11 +7273,11 @@ const ki = [
7282
7273
  switch (v.value) {
7283
7274
  case "preview":
7284
7275
  return {
7285
- component: Bd
7276
+ component: Od
7286
7277
  };
7287
7278
  case "setting":
7288
7279
  return {
7289
- component: Md,
7280
+ component: Nd,
7290
7281
  props: {
7291
7282
  errorLogs: e.errorLogs
7292
7283
  }
@@ -7298,7 +7289,7 @@ const ki = [
7298
7289
  return (V, c) => {
7299
7290
  var U, w, y;
7300
7291
  const g = K("FmPageHead"), S = K("FmTabs");
7301
- return b(), N("div", Yd, [
7292
+ return b(), N("div", Bd, [
7302
7293
  l(g, {
7303
7294
  title: ((U = u.value) == null ? void 0 : U.name) || "Codemax POS",
7304
7295
  "back-button": !0,
@@ -7315,8 +7306,8 @@ const ki = [
7315
7306
  "onUpdate:modelValue": c[1] || (c[1] = (i) => v.value = i),
7316
7307
  items: F
7317
7308
  }, null, 8, ["model-value"]),
7318
- t("div", qd, [
7319
- (b(), E(Pe((w = I.value) == null ? void 0 : w.component), tt({
7309
+ t("div", Yd, [
7310
+ (b(), E(Pe((w = I.value) == null ? void 0 : w.component), et({
7320
7311
  modelValue: u.value,
7321
7312
  "onUpdate:modelValue": c[2] || (c[2] = (i) => u.value = i)
7322
7313
  }, (y = I.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
@@ -7324,11 +7315,11 @@ const ki = [
7324
7315
  ]);
7325
7316
  };
7326
7317
  }
7327
- }), Hd = { class: "px-24 h-full relative" }, am = /* @__PURE__ */ oe({
7318
+ }), zd = { class: "px-24 h-full relative" }, om = /* @__PURE__ */ oe({
7328
7319
  __name: "Integration",
7329
7320
  setup(f) {
7330
- const a = X(void 0), e = ut(), u = ke(), v = Re(), F = X(), D = X([]), { rules: I, notifyUnauthorized: V } = Le(), c = X(!1), g = X(v.settings.length > 0);
7331
- nt(async () => {
7321
+ const a = X(void 0), e = mt(), u = ke(), v = Re(), F = X(), D = X([]), { rules: I, notifyUnauthorized: V } = Le(), c = X(!1), g = X(v.settings.length > 0);
7322
+ lt(async () => {
7332
7323
  try {
7333
7324
  v.settings.length === 0 && await v.getSettings();
7334
7325
  } catch {
@@ -7356,7 +7347,7 @@ const ki = [
7356
7347
  c.value = !0, V(Z.read), u.replace({ name: "integrations", query: e.query });
7357
7348
  return;
7358
7349
  }
7359
- F.value = _, a.value = (d = F.value.platform) == null ? void 0 : d.name, F.value._id && (D.value = await Ct(F.value._id));
7350
+ F.value = _, a.value = (d = F.value.platform) == null ? void 0 : d.name, F.value._id && (D.value = await _t(F.value._id));
7360
7351
  }
7361
7352
  },
7362
7353
  { immediate: !0 }
@@ -7364,28 +7355,28 @@ const ki = [
7364
7355
  const S = B(() => {
7365
7356
  switch (a.value) {
7366
7357
  case Ue.Xero:
7367
- return ta;
7358
+ return ea;
7368
7359
  case Ue.Bukku:
7369
- return Ja;
7360
+ return Wa;
7370
7361
  case Ue.AutoCount:
7371
- return Pl;
7362
+ return Ml;
7372
7363
  case Ue.SQL:
7373
- return Fn;
7364
+ return Kn;
7374
7365
  case Ue.iFlexi_HRMS:
7375
- return cr;
7366
+ return pr;
7376
7367
  case Ue.Biztory:
7377
- return Es;
7368
+ return js;
7378
7369
  case Ue.AutoCountCloud:
7379
- return Ti;
7370
+ return Ii;
7380
7371
  case Ue.SynergyExport:
7381
- return ud;
7372
+ return md;
7382
7373
  case Ue.CodemaxPos:
7383
- return zd;
7374
+ return qd;
7384
7375
  default:
7385
7376
  return null;
7386
7377
  }
7387
7378
  });
7388
- return (U, w) => (b(), N("div", Hd, [
7379
+ return (U, w) => (b(), N("div", zd, [
7389
7380
  (b(), E(Pe(S.value), {
7390
7381
  modelValue: F.value,
7391
7382
  "onUpdate:modelValue": w[0] || (w[0] = (y) => F.value = y),
@@ -7395,5 +7386,5 @@ const ki = [
7395
7386
  }
7396
7387
  });
7397
7388
  export {
7398
- am as default
7389
+ om as default
7399
7390
  };