@feedmepos/mf-report 5.27.18 → 5.27.19

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 (28) hide show
  1. package/dist/App-EYxAVNPq.js +321 -0
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-ClDX4w0B.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DU00gMtu.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-lTPABfL5.js → Default.vue_vue_type_script_setup_true_lang-DqZav9EE.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Bel_AerU.js → DynamicWidget.vue_vue_type_script_setup_true_lang-D5-p6Dte.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DJsiAHtY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BZlXHYzg.js} +12 -12
  6. package/dist/{InsightView-Bo43ifWy.js → InsightView-ctgBO3zj.js} +4 -4
  7. package/dist/{Integration-B7I80zKs.js → Integration-Dixvhrgn.js} +707 -707
  8. package/dist/{Integrations-DD1WNbpN.js → Integrations-CwJKOpsF.js} +2 -2
  9. package/dist/{Layout-Dtt8ifH5.js → Layout-CKWucJsN.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CKtAQoNs.js → MenuTab.vue_vue_type_script_setup_true_lang-D8zSinU4.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DLn-G3AN.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bwrmuhdd.js} +3 -3
  12. package/dist/{OverviewView-C0xiSozS.js → OverviewView-TQdYqfHB.js} +4 -4
  13. package/dist/{Report-Bm-d6dMJ.js → Report-DjxWgvmf.js} +3 -3
  14. package/dist/{ReportEditor-z-6gPEJz.js → ReportEditor-5S-tSoVR.js} +6 -6
  15. package/dist/{ReportView-byJWZVPV.js → ReportView-CvcsnWrI.js} +6 -6
  16. package/dist/{Setting-DcSEnW00.js → Setting-B_lmRkVq.js} +3 -3
  17. package/dist/{Template-BzxxwGsP.js → Template-CWsLoonj.js} +3 -3
  18. package/dist/{TileEditor-yxneDqhS.js → TileEditor-BQ20Db33.js} +5 -5
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-C7SlxXt-.js → TileGrid.vue_vue_type_script_setup_true_lang-1ueSfiGk.js} +1 -1
  20. package/dist/{TransitionFade-7VRzMLmX.js → TransitionFade-0frvJ_jm.js} +4 -4
  21. package/dist/{app-DLRwLn5P.js → app-BHYwfe1u.js} +30 -12
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-0xi0L7s_.js → formatChartData.worker-B8aT479D.js} +3 -3
  24. package/dist/assets/{processTableData.worker-CitENa6H.js → processTableData.worker-B0DpbBIi.js} +3 -3
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-CYNppvqa.js → useRestaurantPermission-C3af6MeH.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/App-BhaIA6iY.js +0 -303
@@ -1,11 +1,11 @@
1
- import { defineComponent as se, mergeModels as fe, useModel as re, computed as G, resolveComponent as F, createElementBlock as j, openBlock as w, createElementVNode as t, createCommentVNode as q, normalizeClass as Je, Fragment as Ie, renderList as We, createBlock as Q, normalizeStyle as Ze, createVNode as l, withCtx as ke, renderSlot as pt, toDisplayString as S, unref as s, h as C, createTextVNode as mt, ref as Z, onUnmounted as Pe, watch as Ae, isRef as Te, resolveDynamicComponent as Re, mergeProps as tt, withKeys as rt, withModifiers as ut, nextTick as ct, onMounted as nt } from "vue";
1
+ import { defineComponent as se, mergeModels as fe, useModel as re, computed as G, resolveComponent as F, createElementBlock as j, openBlock as w, createElementVNode as t, createCommentVNode as q, normalizeClass as Je, Fragment as Ie, renderList as We, createBlock as Q, normalizeStyle as Ze, createVNode as l, withCtx as ke, renderSlot as pt, toDisplayString as S, unref as s, h as C, createTextVNode as mt, ref as Z, onUnmounted as Pe, watch as Ae, isRef as Me, resolveDynamicComponent as Re, mergeProps as tt, withKeys as rt, withModifiers as ut, nextTick as ct, onMounted as nt } from "vue";
2
2
  import { useRouter as Ce, useRoute as ft } from "vue-router";
3
- import { A as he, y as et, d as Ve, z as gt, e as Ke, a as Se, B as me, E as vt, l as yt, v as ne, x as je, G as Le, H as Me, J as Oe, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Ne, R as kt, S as St, T as $t } from "./app-DLRwLn5P.js";
3
+ import { A as he, y as et, d as Ve, z as gt, e as Ke, a as Se, B as me, E as vt, l as yt, v as ne, x as je, G as Le, H as Te, J as Oe, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Ne, R as kt, S as St, T as $t } from "./app-BHYwfe1u.js";
4
4
  import { u as de, a as Ee, _ as Dt } from "./_plugin-vue_export-helper-onplcgja.js";
5
5
  import { u as Be } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as $e } from "@feedmepos/ui-library";
7
- import { s as it, _ as Ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ClDX4w0B.js";
8
- import { u as Ue, h as _e } from "./useRestaurantPermission-CYNppvqa.js";
7
+ import { s as it, _ as Ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DU00gMtu.js";
8
+ import { u as Ue, h as _e } from "./useRestaurantPermission-C3af6MeH.js";
9
9
  import { storeToRefs as qe } from "pinia";
10
10
  const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Vt = { class: "w-[100%] overflow-hidden" }, Ft = { class: "inline-flex max-w-full items-center gap-2 align-top" }, It = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Kt = {
11
11
  key: 0,
@@ -40,24 +40,24 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
40
40
  emits: /* @__PURE__ */ fe(["remove"], ["update:modelValue"]),
41
41
  setup(g, { emit: o }) {
42
42
  const e = re(g, "modelValue"), p = g, v = G(
43
- () => Object.keys(p.options).map((T) => {
44
- const c = p.options[T];
43
+ () => Object.keys(p.options).map((M) => {
44
+ const c = p.options[M];
45
45
  return {
46
46
  placeholder: c.placeholder,
47
- key: T,
47
+ key: M,
48
48
  editable: c.editable
49
49
  };
50
50
  })
51
51
  ), I = G(() => `${100 / Math.max(v.value.length, 1)}%`);
52
- function K(T, c) {
52
+ function K(M, c) {
53
53
  let x = c;
54
54
  p.type === "number" && (x = Number(c)), e.value = {
55
55
  ...e.value,
56
- [T]: x
56
+ [M]: x
57
57
  };
58
58
  }
59
59
  const R = o;
60
- return (T, c) => {
60
+ return (M, c) => {
61
61
  const x = F("FmTextField"), h = F("FmTooltip"), P = F("FmIcon");
62
62
  return w(), j("div", At, [
63
63
  t("div", {
@@ -91,7 +91,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
91
91
  t("div", Vt, [
92
92
  t("div", Ft, [
93
93
  t("div", It, S(e.value[A.key]), 1),
94
- pt(T.$slots, "field-suffix", { field: A })
94
+ pt(M.$slots, "field-suffix", { field: A })
95
95
  ])
96
96
  ])
97
97
  ]),
@@ -112,7 +112,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
112
112
  ]);
113
113
  };
114
114
  }
115
- }), Nt = { class: "flex flex-col" }, Mt = { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, Tt = { class: "flex flex-row items-center" }, Rt = {
115
+ }), Nt = { class: "flex flex-col" }, Tt = { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, Mt = { class: "flex flex-row items-center" }, Rt = {
116
116
  key: 0,
117
117
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary min-w-[25%]"
118
118
  }, Ut = {
@@ -210,7 +210,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
210
210
  type: he.Day
211
211
  };
212
212
  }
213
- }), T = G({
213
+ }), M = G({
214
214
  get: () => {
215
215
  var i;
216
216
  return ((i = e.value.autoEmailSchedule) == null ? void 0 : i.type) === he.Week ? e.value.autoEmailSchedule.days[0] ?? 1 : 1;
@@ -336,8 +336,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
336
336
  const b = F("FmBadge"), r = F("FmTable"), a = F("FmSideSheet"), D = F("FmSwitch"), d = F("FmTooltip"), U = F("FmDatePicker"), $ = F("FmTextField"), f = F("FmTabs"), V = F("FmSelect"), _ = F("FmTimePicker");
337
337
  return w(), j(Ie, null, [
338
338
  t("div", Nt, [
339
- t("div", Mt, S(s(o)("report.integration.auto", { label: g.label })), 1),
340
- t("div", Tt, [
339
+ t("div", Tt, S(s(o)("report.integration.auto", { label: g.label })), 1),
340
+ t("div", Mt, [
341
341
  g.label == "upload" ? (w(), j("div", Rt, S(s(o)("report.integration.lastUploadDate")) + ": " + S(g.lastUploadDate ? s(Ve)(g.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : g.isAutoEmailMode ? (w(), j("div", Ut, S(s(o)("report.integration.lastEmailDate")) + ": " + S(g.lastUploadDate ? s(Ve)(g.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : q("", !0),
342
342
  l(a, {
343
343
  header: "Cron Job Error Log",
@@ -436,10 +436,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
436
436
  R.value === s(he).Week ? (w(), j("div", oo, [
437
437
  t("div", ao, S(s(o)("report.integration.schedule.weekday")), 1),
438
438
  l(V, {
439
- "model-value": T.value,
439
+ "model-value": M.value,
440
440
  items: v.value,
441
441
  multiselect: !1,
442
- "onUpdate:modelValue": n[4] || (n[4] = (z) => T.value = z)
442
+ "onUpdate:modelValue": n[4] || (n[4] = (z) => M.value = z)
443
443
  }, null, 8, ["model-value", "items"])
444
444
  ])) : q("", !0),
445
445
  R.value === s(he).Month ? (w(), j("div", lo, [
@@ -566,7 +566,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
566
566
  }, R = (x) => {
567
567
  var h;
568
568
  return p.singleValueMode ? p.options.key.placeholder : (h = e.value[x.key]) == null ? void 0 : h.toString();
569
- }, T = (x) => p.singleValueMode ? e.value : e.value[x.key], c = o;
569
+ }, M = (x) => p.singleValueMode ? e.value : e.value[x.key], c = o;
570
570
  return (x, h) => {
571
571
  const P = F("FmSelect"), A = F("FmTextField"), y = F("FmTooltip"), m = F("FmIcon");
572
572
  return w(), j("div", vo, [
@@ -585,14 +585,14 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
585
585
  key: 0,
586
586
  searchable: "",
587
587
  "search-target": "label",
588
- "model-value": T(u),
588
+ "model-value": M(u),
589
589
  placeholder: u.placeholder,
590
590
  items: u.dropdownOptions,
591
591
  "shift-menu": !0,
592
592
  "onUpdate:modelValue": (k) => K(k, u.key)
593
593
  }, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (w(), Q(A, {
594
594
  key: 1,
595
- "model-value": T(u),
595
+ "model-value": M(u),
596
596
  placeholder: u.placeholder,
597
597
  type: g.type,
598
598
  rules: g.rules,
@@ -638,7 +638,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
638
638
  setup(g, { emit: o }) {
639
639
  const e = g, p = G(() => e.rows.length > 1 ? Math.min(e.rows.length, e.columnsPerRow) : 1), v = G(() => `${100 / (e.headerItems.length || 1)}%`), I = o;
640
640
  return (K, R) => (w(), j("div", bo, [
641
- (w(!0), j(Ie, null, We(e.rows, (T, c) => (w(), j("div", {
641
+ (w(!0), j(Ie, null, We(e.rows, (M, c) => (w(), j("div", {
642
642
  key: c,
643
643
  class: "flex flex-col",
644
644
  style: Ze(
@@ -689,22 +689,22 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
689
689
  }), ho = {
690
690
  key: 0,
691
691
  class: "flex flex-col h-full"
692
- }, _o = { class: "flex flex-col gap-[16px] pb-[24px]" }, Co = { class: "flex flex-row justify-between items-center gap-2" }, ko = { class: "flex flex-row gap-2 items-center" }, So = { class: "relative group cursor-pointer" }, $o = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Do = { class: "w-[90%] flex flex-col gap-24" }, Ao = { class: "flex flex-row items-center justify-between gap-2" }, Vo = { class: "w-[25%]" }, Fo = { class: "flex flex-col gap-[16px]" }, Io = { class: "flex flex-col max-w-[100%] justify-between" }, Ko = { class: "flex-grow" }, No = { class: "flex flex-col max-w-[100%] justify-between" }, Mo = { class: "flex flex-col max-w-[100%] justify-between" }, To = { class: "w-[25%] font-semibold" }, Ro = {
692
+ }, _o = { class: "flex flex-col gap-[16px] pb-[24px]" }, Co = { class: "flex flex-row justify-between items-center gap-2" }, ko = { class: "flex flex-row gap-2 items-center" }, So = { class: "relative group cursor-pointer" }, $o = { 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" }, Do = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Ao = { class: "w-[90%] flex flex-col gap-24" }, Vo = { class: "flex flex-row items-center justify-between gap-2" }, Fo = { class: "w-[25%]" }, Io = { class: "flex flex-col gap-[16px]" }, Ko = { class: "flex flex-col max-w-[100%] justify-between" }, No = { class: "flex-grow" }, To = { class: "flex flex-col max-w-[100%] justify-between" }, Mo = { class: "flex flex-col max-w-[100%] justify-between" }, Ro = { class: "w-[25%] font-semibold" }, Uo = {
693
693
  key: 0,
694
694
  class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
695
- }, Uo = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Po = { class: "flex-grow" }, jo = { class: "flex flex-col gap-[16px]" }, Lo = { class: "flex flex-col max-w-[100%] justify-between" }, Oo = { class: "flex-grow" }, Eo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Bo = { class: "flex-grow" }, Yo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, qo = { class: "flex-grow" }, Ho = { class: "flex flex-col gap-[16px]" }, zo = { class: "flex flex-row items-center justify-between gap-x-16" }, Go = {
695
+ }, Po = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, jo = { class: "flex-grow" }, Lo = { class: "flex flex-col gap-[16px]" }, Oo = { class: "flex flex-col max-w-[100%] justify-between" }, Eo = { class: "flex-grow" }, Bo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Yo = { class: "flex-grow" }, qo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Ho = { class: "flex-grow" }, zo = { class: "flex flex-col gap-[16px]" }, Go = { class: "flex flex-row items-center justify-between gap-x-16" }, Qo = {
696
696
  key: 0,
697
697
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
698
- }, Qo = { class: "flex flex-row items-center justify-between gap-x-16" }, Wo = {
698
+ }, Wo = { class: "flex flex-row items-center justify-between gap-x-16" }, Xo = {
699
699
  key: 3,
700
700
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
701
- }, Xo = { class: "flex flex-row items-center justify-between gap-x-16" }, Jo = {
701
+ }, Jo = { class: "flex flex-row items-center justify-between gap-x-16" }, Zo = {
702
702
  key: 6,
703
703
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
704
- }, Zo = { class: "flex flex-row items-center justify-between gap-x-16" }, ea = {
704
+ }, ea = { class: "flex flex-row items-center justify-between gap-x-16" }, ta = {
705
705
  key: 9,
706
706
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
707
- }, ta = /* @__PURE__ */ se({
707
+ }, oa = /* @__PURE__ */ se({
708
708
  __name: "Setting",
709
709
  props: /* @__PURE__ */ fe({
710
710
  tenantOptions: {
@@ -729,8 +729,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
729
729
  }),
730
730
  emits: ["update:modelValue"],
731
731
  setup(g) {
732
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = Z(!1), P = G(
733
- () => T.map((D) => ({ label: D.name, value: D.id }))
732
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = Z(!1), P = G(
733
+ () => M.map((D) => ({ label: D.name, value: D.id }))
734
734
  ), A = G(() => {
735
735
  var D, d;
736
736
  return h.value ? "Connecting" : (d = (D = e.value) == null ? void 0 : D.platform) != null && d.accessToken ? "Disconnect" : "Connect";
@@ -835,7 +835,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
835
835
  async function r() {
836
836
  await K(async () => {
837
837
  try {
838
- await Me(e.value._id), await v.getSettings();
838
+ await Te(e.value._id), await v.getSettings();
839
839
  } catch (D) {
840
840
  p.open({ type: "error", message: D.message });
841
841
  }
@@ -858,12 +858,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
858
858
  return Pe(async () => {
859
859
  await v.getSettings();
860
860
  }), (D, d) => {
861
- var W, te, z, ie, ue, ge, ve, ye, xe, be, we, ae, X, oe, N, E, J, Y, ce, De, He, ze, Ge, Qe, M, L;
861
+ var W, te, z, ie, ue, ge, ve, ye, xe, be, we, ae, X, oe, N, E, J, Y, ce, De, He, ze, Ge, Qe, T, L;
862
862
  const U = F("FmIcon"), $ = F("FmButton"), f = F("FmMenuDivider"), V = F("FmCircularProgress"), _ = F("FmSelect"), O = F("FmTextField"), H = F("FmSwitch");
863
863
  return (te = (W = e.value) == null ? void 0 : W.platform) != null && te.mappings ? (w(), j("div", ho, [
864
864
  t("div", _o, [
865
865
  t("div", Co, [
866
- d[21] || (d[21] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
866
+ d[20] || (d[20] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
867
867
  t("div", ko, [
868
868
  t("div", So, [
869
869
  l(U, {
@@ -871,7 +871,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
871
871
  class: "p-2 bg-gray-100 rounded-full",
872
872
  onClick: r
873
873
  }),
874
- d[20] || (d[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))
874
+ t("span", $o, S(s(o)("report.integration.refreshSettingTooltip")), 1)
875
875
  ]),
876
876
  l($, {
877
877
  variant: "tertiary",
@@ -888,11 +888,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
888
888
  ])
889
889
  ]),
890
890
  l(f, { style: { margin: 0 } }),
891
- t("div", $o, [
892
- t("div", Do, [
893
- d[34] || (d[34] = 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)),
894
- t("div", Ao, [
895
- t("div", Vo, [
891
+ t("div", Do, [
892
+ t("div", Ao, [
893
+ d[33] || (d[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)),
894
+ t("div", Vo, [
895
+ t("div", Fo, [
896
896
  l($, {
897
897
  disabled: h.value,
898
898
  variant: "primary",
@@ -913,19 +913,19 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
913
913
  }, null, 8, ["items", "model-value", "placeholder"])
914
914
  ]),
915
915
  l(f, { style: { margin: 0 } }),
916
- t("div", Fo, [
917
- d[25] || (d[25] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
918
- t("div", Io, [
919
- d[22] || (d[22] = t("div", { class: "w-[25%] font-semibold" }, "Name", -1)),
920
- t("div", Ko, [
916
+ t("div", Io, [
917
+ d[24] || (d[24] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
918
+ t("div", Ko, [
919
+ d[21] || (d[21] = t("div", { class: "w-[25%] font-semibold" }, "Name", -1)),
920
+ t("div", No, [
921
921
  l(O, {
922
922
  modelValue: e.value.name,
923
923
  "onUpdate:modelValue": d[0] || (d[0] = (B) => e.value.name = B)
924
924
  }, null, 8, ["modelValue"])
925
925
  ])
926
926
  ]),
927
- t("div", No, [
928
- d[23] || (d[23] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
927
+ t("div", To, [
928
+ d[22] || (d[22] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
929
929
  l(_, {
930
930
  modelValue: e.value.platform.locationIds,
931
931
  "onUpdate:modelValue": d[1] || (d[1] = (B) => e.value.platform.locationIds = B),
@@ -936,7 +936,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
936
936
  }, null, 8, ["modelValue", "items"])
937
937
  ]),
938
938
  t("div", Mo, [
939
- t("div", To, S(s(o)("report.integration.grouping.title")), 1),
939
+ t("div", Ro, S(s(o)("report.integration.grouping.title")), 1),
940
940
  l(_, {
941
941
  modelValue: e.value.platform.grouping,
942
942
  "onUpdate:modelValue": d[2] || (d[2] = (B) => e.value.platform.grouping = B),
@@ -946,12 +946,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
946
946
  class: "flex-grow"
947
947
  }, null, 8, ["modelValue", "placeholder"])
948
948
  ]),
949
- e.value.platform.discountItem && e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Ro, [
950
- t("div", Uo, [
951
- d[24] || (d[24] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
949
+ e.value.platform.discountItem && e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Uo, [
950
+ t("div", Po, [
951
+ d[23] || (d[23] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
952
952
  t("span", null, S(s(o)("report.integration.discountByGroupKey")), 1)
953
953
  ]),
954
- t("div", Po, [
954
+ t("div", jo, [
955
955
  l(H, {
956
956
  "model-value": e.value.platform.discountByGroupKey ?? !1,
957
957
  style: { gap: 0 },
@@ -972,11 +972,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
972
972
  "integration-id": e.value._id
973
973
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
974
974
  l(f, { style: { margin: 0 } }),
975
- t("div", jo, [
976
- d[29] || (d[29] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
977
- t("div", Lo, [
978
- d[26] || (d[26] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
979
- t("div", Oo, [
975
+ t("div", Lo, [
976
+ d[28] || (d[28] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
977
+ t("div", Oo, [
978
+ d[25] || (d[25] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
979
+ t("div", Eo, [
980
980
  l(O, {
981
981
  modelValue: e.value.platform.mappings.contact.xeroAccount,
982
982
  "onUpdate:modelValue": d[5] || (d[5] = (B) => e.value.platform.mappings.contact.xeroAccount = B),
@@ -984,9 +984,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
984
984
  }, null, 8, ["modelValue"])
985
985
  ])
986
986
  ]),
987
- t("div", Eo, [
988
- d[27] || (d[27] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
989
- t("div", Bo, [
987
+ t("div", Bo, [
988
+ d[26] || (d[26] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
989
+ t("div", Yo, [
990
990
  l(H, {
991
991
  "model-value": e.value.platform.discountItem ?? !1,
992
992
  style: { gap: 0 },
@@ -996,9 +996,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
996
996
  }, null, 8, ["model-value"])
997
997
  ])
998
998
  ]),
999
- t("div", Yo, [
1000
- d[28] || (d[28] = t("div", { class: "w-[25%] font-semibold" }, "Combine Refund", -1)),
1001
- t("div", qo, [
999
+ t("div", qo, [
1000
+ d[27] || (d[27] = t("div", { class: "w-[25%] font-semibold" }, "Combine Refund", -1)),
1001
+ t("div", Ho, [
1002
1002
  l(H, {
1003
1003
  "model-value": e.value.platform.mappings.isCombineRefund ?? !1,
1004
1004
  style: { gap: 0 },
@@ -1011,9 +1011,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1011
1011
  ])
1012
1012
  ]),
1013
1013
  l(f, { style: { margin: 0 } }),
1014
- t("div", Ho, [
1015
- t("div", zo, [
1016
- d[30] || (d[30] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
1014
+ t("div", zo, [
1015
+ t("div", Go, [
1016
+ d[29] || (d[29] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
1017
1017
  l($, {
1018
1018
  variant: "secondary",
1019
1019
  "prepend-icon": "add",
@@ -1021,7 +1021,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1021
1021
  onClick: d[8] || (d[8] = () => b("taxes"))
1022
1022
  })
1023
1023
  ]),
1024
- g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Go, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1024
+ g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Qo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1025
1025
  !g.taxOptions.isLoaded && ((ve = e.value.platform) != null && ve.accessToken) ? (w(), Q(V, {
1026
1026
  key: 1,
1027
1027
  size: "xl"
@@ -1048,8 +1048,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1048
1048
  })
1049
1049
  }, null, 8, ["rows", "fields-options"])) : q("", !0),
1050
1050
  l(f, { style: { margin: 0 } }),
1051
- t("div", Qo, [
1052
- d[31] || (d[31] = t("div", { class: "fm-typo-en-title-sm-800" }, "Tax Rounding Adjustment", -1)),
1051
+ t("div", Wo, [
1052
+ d[30] || (d[30] = t("div", { class: "fm-typo-en-title-sm-800" }, "Tax Rounding Adjustment", -1)),
1053
1053
  l($, {
1054
1054
  variant: "secondary",
1055
1055
  "prepend-icon": "add",
@@ -1057,7 +1057,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1057
1057
  onClick: d[11] || (d[11] = () => b("taxRoundingAdjustments"))
1058
1058
  })
1059
1059
  ]),
1060
- g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Wo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1060
+ g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Xo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1061
1061
  !g.taxOptions.isLoaded && ((ae = e.value.platform) != null && ae.accessToken) ? (w(), Q(V, {
1062
1062
  key: 4,
1063
1063
  size: "xl"
@@ -1084,8 +1084,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1084
1084
  })
1085
1085
  }, null, 8, ["rows", "fields-options"])) : q("", !0),
1086
1086
  l(f, { style: { margin: 0 } }),
1087
- t("div", Xo, [
1088
- d[32] || (d[32] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
1087
+ t("div", Jo, [
1088
+ d[31] || (d[31] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
1089
1089
  l($, {
1090
1090
  variant: "secondary",
1091
1091
  "prepend-icon": "add",
@@ -1093,7 +1093,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1093
1093
  onClick: d[14] || (d[14] = () => b("items"))
1094
1094
  })
1095
1095
  ]),
1096
- g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Jo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1096
+ g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", Zo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1097
1097
  !g.accountCodeOptions.isLoaded && ((J = e.value.platform) != null && J.accessToken) ? (w(), Q(V, {
1098
1098
  key: 7,
1099
1099
  size: "xl"
@@ -1120,8 +1120,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1120
1120
  })
1121
1121
  }, null, 8, ["rows", "fields-options"])) : q("", !0),
1122
1122
  l(f, { style: { margin: 0 } }),
1123
- t("div", Zo, [
1124
- d[33] || (d[33] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
1123
+ t("div", ea, [
1124
+ d[32] || (d[32] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
1125
1125
  l($, {
1126
1126
  variant: "secondary",
1127
1127
  "prepend-icon": "add",
@@ -1129,7 +1129,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1129
1129
  onClick: d[17] || (d[17] = () => b("payments"))
1130
1130
  })
1131
1131
  ]),
1132
- g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", ea, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1132
+ g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), j("div", ta, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : q("", !0),
1133
1133
  !g.accountCodeOptions.isLoaded && ((ze = e.value.platform) != null && ze.accessToken) ? (w(), Q(V, {
1134
1134
  key: 10,
1135
1135
  size: "xl"
@@ -1137,7 +1137,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1137
1137
  ((Ge = g.accountCodeOptions.data) == null ? void 0 : Ge.length) > 0 ? (w(), Q(le, {
1138
1138
  key: 11,
1139
1139
  "header-items": ["FeedMe Key", "Account Code"],
1140
- rows: ((L = (M = (Qe = e.value) == null ? void 0 : Qe.platform) == null ? void 0 : M.mappings) == null ? void 0 : L.payments) || [],
1140
+ rows: ((L = (T = (Qe = e.value) == null ? void 0 : Qe.platform) == null ? void 0 : T.mappings) == null ? void 0 : L.payments) || [],
1141
1141
  "columns-per-row": 2,
1142
1142
  removable: !0,
1143
1143
  "mapping-type": "payments",
@@ -1161,10 +1161,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1161
1161
  ])) : q("", !0);
1162
1162
  };
1163
1163
  }
1164
- }), oa = { class: "h-full flex flex-col gap-16" }, aa = { class: "flex flex-row gap-2 justify-between items-center" }, la = {
1164
+ }), aa = { class: "h-full flex flex-col gap-16" }, la = { class: "flex flex-row gap-2 justify-between items-center" }, na = {
1165
1165
  key: 0,
1166
1166
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
1167
- }, na = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, sa = /* @__PURE__ */ se({
1167
+ }, sa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ra = /* @__PURE__ */ se({
1168
1168
  __name: "Preview",
1169
1169
  props: {
1170
1170
  modelValue: { required: !0 },
@@ -1279,9 +1279,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1279
1279
  header: "Payment Amount",
1280
1280
  enableSorting: !1
1281
1281
  }
1282
- ], I = re(g, "modelValue"), K = Z(!1), R = $e(), { dateRange: T } = qe(Se());
1282
+ ], I = re(g, "modelValue"), K = Z(!1), R = $e(), { dateRange: M } = qe(Se());
1283
1283
  Ae(
1284
- () => T.value,
1284
+ () => M.value,
1285
1285
  async () => {
1286
1286
  if (I.value._id)
1287
1287
  try {
@@ -1307,11 +1307,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1307
1307
  }
1308
1308
  return (x, h) => {
1309
1309
  const P = F("FmButton"), A = F("FmCircularProgress"), y = F("FmTable");
1310
- return w(), j("div", oa, [
1311
- t("div", aa, [
1310
+ return w(), j("div", aa, [
1311
+ t("div", la, [
1312
1312
  l(Ye, {
1313
- "date-range": s(T),
1314
- "onUpdate:dateRange": h[0] || (h[0] = (m) => Te(T) ? T.value = m : null),
1313
+ "date-range": s(M),
1314
+ "onUpdate:dateRange": h[0] || (h[0] = (m) => Me(M) ? M.value = m : null),
1315
1315
  compare: !1
1316
1316
  }, null, 8, ["date-range"]),
1317
1317
  l(P, {
@@ -1321,9 +1321,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1321
1321
  onClick: c
1322
1322
  }, null, 8, ["loading"])
1323
1323
  ]),
1324
- K.value ? (w(), j("div", la, [
1324
+ K.value ? (w(), j("div", na, [
1325
1325
  l(A, { size: "xl" }),
1326
- t("span", na, S(s(e)("report.common.isLoading")), 1)
1326
+ t("span", sa, S(s(e)("report.common.isLoading")), 1)
1327
1327
  ])) : p.value.length > 0 ? (w(), Q(y, {
1328
1328
  key: 1,
1329
1329
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -1333,7 +1333,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1333
1333
  ]);
1334
1334
  };
1335
1335
  }
1336
- }), ra = { class: "h-full relative flex flex-col" }, ia = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, da = /* @__PURE__ */ se({
1336
+ }), ia = { class: "h-full relative flex flex-col" }, da = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, pa = /* @__PURE__ */ se({
1337
1337
  __name: "Xero",
1338
1338
  props: /* @__PURE__ */ fe({
1339
1339
  errorLogs: {}
@@ -1343,7 +1343,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1343
1343
  }),
1344
1344
  emits: ["update:modelValue"],
1345
1345
  setup(g) {
1346
- const { t: o } = de(), e = re(g, "modelValue"), p = g, v = Z("setting"), I = Z({}), K = Z({}), R = Z({}), T = [
1346
+ const { t: o } = de(), e = re(g, "modelValue"), p = g, v = Z("setting"), I = Z({}), K = Z({}), R = Z({}), M = [
1347
1347
  {
1348
1348
  label: o("report.integration.setting"),
1349
1349
  value: "setting",
@@ -1357,10 +1357,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1357
1357
  ], c = Ce(), x = G(() => {
1358
1358
  switch (v.value) {
1359
1359
  case "preview":
1360
- return { component: sa };
1360
+ return { component: ra };
1361
1361
  case "setting":
1362
1362
  return {
1363
- component: ta,
1363
+ component: oa,
1364
1364
  props: {
1365
1365
  tenantOptions: I.value,
1366
1366
  taxOptions: K.value,
@@ -1427,7 +1427,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1427
1427
  ), (y, m) => {
1428
1428
  var i, n, b;
1429
1429
  const u = F("FmPageHead"), k = F("FmTabs");
1430
- return w(), j("div", ra, [
1430
+ return w(), j("div", ia, [
1431
1431
  l(u, {
1432
1432
  title: ((i = e.value) == null ? void 0 : i.name) || "Xero",
1433
1433
  "back-button": !0,
@@ -1442,9 +1442,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1442
1442
  l(k, {
1443
1443
  "model-value": v.value,
1444
1444
  "onUpdate:modelValue": m[1] || (m[1] = (r) => v.value = r),
1445
- items: T
1445
+ items: M
1446
1446
  }, null, 8, ["model-value"]),
1447
- t("div", ia, [
1447
+ t("div", da, [
1448
1448
  (w(), Q(Re((n = x.value) == null ? void 0 : n.component), tt({
1449
1449
  modelValue: e.value,
1450
1450
  "onUpdate:modelValue": m[2] || (m[2] = (r) => e.value = r)
@@ -1453,7 +1453,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1453
1453
  ]);
1454
1454
  };
1455
1455
  }
1456
- }), pa = { class: "mt-6 mb-6" }, ma = { class: "list-disc pl-6 space-y-1" }, lt = /* @__PURE__ */ se({
1456
+ }), ma = { class: "mt-6 mb-6" }, ua = { class: "list-disc pl-6 space-y-1" }, lt = /* @__PURE__ */ se({
1457
1457
  __name: "ReferenceNumberGuideButton",
1458
1458
  setup(g) {
1459
1459
  const { t: o } = de(), e = [
@@ -1528,8 +1528,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1528
1528
  }
1529
1529
  ];
1530
1530
  return (v, I) => {
1531
- const K = F("FmIcon"), R = F("FmTable"), T = F("FmSideSheet");
1532
- return w(), Q(T, {
1531
+ const K = F("FmIcon"), R = F("FmTable"), M = F("FmSideSheet");
1532
+ return w(), Q(M, {
1533
1533
  header: s(o)("report.integration.refNumFormatInfo"),
1534
1534
  "dismiss-away": "",
1535
1535
  "max-width": 780
@@ -1542,8 +1542,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1542
1542
  })
1543
1543
  ]),
1544
1544
  default: ke(() => [
1545
- t("div", pa, [
1546
- t("ul", ma, [
1545
+ t("div", ma, [
1546
+ t("ul", ua, [
1547
1547
  t("li", null, S(s(o)("report.integration.refNumGuide.1stPoint")), 1),
1548
1548
  t("li", null, S(s(o)("report.integration.refNumGuide.2ndPoint")), 1),
1549
1549
  t("li", null, S(s(o)("report.integration.refNumGuide.3rdPoint")), 1),
@@ -1561,10 +1561,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1561
1561
  }, 8, ["header"]);
1562
1562
  };
1563
1563
  }
1564
- }), ua = {
1564
+ }), ca = {
1565
1565
  key: 0,
1566
1566
  class: "flex flex-col h-full"
1567
- }, ca = { class: "flex flex-col gap-16 pb-[24px]" }, fa = { class: "flex flex-row justify-between items-center gap-2" }, ga = { class: "fm-typo-en-title-sm-800" }, va = { class: "flex flex-row gap-2 items-center" }, ya = { class: "relative group cursor-pointer" }, xa = { 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" }, ba = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, wa = { class: "w-[90%] flex flex-col gap-24" }, ha = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _a = { class: "flex flex-col justify-between" }, Ca = { class: "w-[25%] font-semibold" }, ka = { class: "flex-grow" }, Sa = { class: "flex flex-col justify-between" }, $a = { class: "w-[25%] font-semibold" }, Da = { class: "flex-grow" }, Aa = { class: "flex flex-col gap-16" }, Va = { class: "fm-typo-en-title-sm-800" }, Fa = { class: "flex flex-col max-w-[100%]" }, Ia = { class: "w-[25%] font-semibold" }, Ka = { class: "flex-grow" }, Na = { class: "flex flex-col max-w-[100%]" }, Ma = { class: "w-[25%] font-semibold" }, Ta = { class: "flex flex-col max-w-[100%]" }, Ra = { class: "w-[25%] font-semibold" }, Ua = { class: "flex flex-col max-w-[100%]" }, Pa = { class: "flex flex-col gap-16" }, ja = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, La = { class: "flex flex-col gap-16 pt-3 pb-3" }, Oa = { class: "flex flex-row items-center gap-5" }, Ea = { class: "fm-typo-en-title-sm-800" }, Ba = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ya = { class: "flex flex-row items-center justify-between gap-x-16" }, qa = { class: "fm-typo-en-title-sm-800" }, Ha = { class: "flex flex-row items-center justify-between gap-x-16" }, za = { class: "fm-typo-en-title-sm-800" }, Ga = { class: "flex flex-row items-center justify-between gap-x-16" }, Qa = { class: "fm-typo-en-title-sm-800" }, Wa = { class: "flex flex-row items-center justify-between gap-x-16" }, Xa = { class: "fm-typo-en-title-sm-800" }, Ja = /* @__PURE__ */ se({
1567
+ }, fa = { class: "flex flex-col gap-16 pb-[24px]" }, ga = { class: "flex flex-row justify-between items-center gap-2" }, va = { class: "fm-typo-en-title-sm-800" }, ya = { class: "flex flex-row gap-2 items-center" }, xa = { class: "relative group cursor-pointer" }, ba = { 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" }, wa = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ha = { class: "w-[90%] flex flex-col gap-24" }, _a = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ca = { class: "flex flex-col justify-between" }, ka = { class: "w-[25%] font-semibold" }, Sa = { class: "flex-grow" }, $a = { class: "flex flex-col justify-between" }, Da = { class: "w-[25%] font-semibold" }, Aa = { class: "flex-grow" }, Va = { class: "flex flex-col gap-16" }, Fa = { class: "fm-typo-en-title-sm-800" }, Ia = { class: "flex flex-col max-w-[100%]" }, Ka = { class: "w-[25%] font-semibold" }, Na = { class: "flex-grow" }, Ta = { class: "flex flex-col max-w-[100%]" }, Ma = { class: "w-[25%] font-semibold" }, Ra = { class: "flex flex-col max-w-[100%]" }, Ua = { class: "w-[25%] font-semibold" }, Pa = { class: "flex flex-col max-w-[100%]" }, ja = { class: "flex flex-col gap-16" }, La = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Oa = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ea = { class: "flex flex-row items-center gap-5" }, Ba = { class: "fm-typo-en-title-sm-800" }, Ya = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, qa = { class: "flex flex-row items-center justify-between gap-x-16" }, Ha = { class: "fm-typo-en-title-sm-800" }, za = { class: "flex flex-row items-center justify-between gap-x-16" }, Ga = { class: "fm-typo-en-title-sm-800" }, Qa = { class: "flex flex-row items-center justify-between gap-x-16" }, Wa = { class: "fm-typo-en-title-sm-800" }, Xa = { class: "flex flex-row items-center justify-between gap-x-16" }, Ja = { class: "fm-typo-en-title-sm-800" }, Za = /* @__PURE__ */ se({
1568
1568
  __name: "Setting",
1569
1569
  props: /* @__PURE__ */ fe({
1570
1570
  errorLogs: {}
@@ -1574,7 +1574,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1574
1574
  }),
1575
1575
  emits: ["update:modelValue"],
1576
1576
  setup(g) {
1577
- const o = re(g, "modelValue"), e = $e(), p = Ke(), v = Ce(), { promptLoader: I } = Ee(), { promptMessage: K } = Be(), { restaurants: R } = Se(), T = G(
1577
+ const o = re(g, "modelValue"), e = $e(), p = Ke(), v = Ce(), { promptLoader: I } = Ee(), { promptMessage: K } = Be(), { restaurants: R } = Se(), M = G(
1578
1578
  () => R.map((r) => ({ label: r.name, value: r.id }))
1579
1579
  ), { t: c } = de(), { rules: x, notifyUnauthorized: h } = Ue();
1580
1580
  async function P() {
@@ -1709,7 +1709,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1709
1709
  async function b() {
1710
1710
  await I(async () => {
1711
1711
  try {
1712
- await Me(o.value._id), await p.getSettings();
1712
+ await Te(o.value._id), await p.getSettings();
1713
1713
  } catch (r) {
1714
1714
  e.open({ type: "error", message: r.message });
1715
1715
  }
@@ -1720,18 +1720,18 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1720
1720
  }), (r, a) => {
1721
1721
  var V, _, O, H, W, te, z, ie, ue, ge, ve, ye, xe, be, we, ae, X, oe;
1722
1722
  const D = F("FmIcon"), d = F("FmButton"), U = F("FmMenuDivider"), $ = F("FmTextField"), f = F("FmSelect");
1723
- return (_ = (V = o.value) == null ? void 0 : V.platform) != null && _.mappings ? (w(), j("div", ua, [
1724
- t("div", ca, [
1725
- t("div", fa, [
1726
- t("div", ga, S(s(c)("report.integration.bukku.connect")), 1),
1727
- t("div", va, [
1728
- t("div", ya, [
1723
+ return (_ = (V = o.value) == null ? void 0 : V.platform) != null && _.mappings ? (w(), j("div", ca, [
1724
+ t("div", fa, [
1725
+ t("div", ga, [
1726
+ t("div", va, S(s(c)("report.integration.bukku.connect")), 1),
1727
+ t("div", ya, [
1728
+ t("div", xa, [
1729
1729
  l(D, {
1730
1730
  name: "refresh",
1731
1731
  class: "p-2 bg-gray-100 rounded-full",
1732
1732
  onClick: b
1733
1733
  }),
1734
- t("span", xa, S(s(c)("report.integration.refreshSetting")), 1)
1734
+ t("span", ba, S(s(c)("report.integration.refreshSettingTooltip")), 1)
1735
1735
  ]),
1736
1736
  l(d, {
1737
1737
  variant: "tertiary",
@@ -1748,12 +1748,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1748
1748
  ])
1749
1749
  ]),
1750
1750
  l(U, { style: { margin: 0 } }),
1751
- t("div", ba, [
1752
- t("div", wa, [
1753
- t("div", ha, S(s(c)("report.integration.bukku.authentication")), 1),
1754
- t("div", _a, [
1755
- t("div", Ca, S(s(c)("report.integration.subdomain")), 1),
1756
- t("div", ka, [
1751
+ t("div", wa, [
1752
+ t("div", ha, [
1753
+ t("div", _a, S(s(c)("report.integration.bukku.authentication")), 1),
1754
+ t("div", Ca, [
1755
+ t("div", ka, S(s(c)("report.integration.subdomain")), 1),
1756
+ t("div", Sa, [
1757
1757
  l($, {
1758
1758
  modelValue: o.value.platform.subdomain,
1759
1759
  "onUpdate:modelValue": a[0] || (a[0] = (N) => o.value.platform.subdomain = N),
@@ -1761,9 +1761,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1761
1761
  }, null, 8, ["modelValue", "placeholder"])
1762
1762
  ])
1763
1763
  ]),
1764
- t("div", Sa, [
1765
- t("div", $a, S(s(c)("report.integration.token")), 1),
1766
- t("div", Da, [
1764
+ t("div", $a, [
1765
+ t("div", Da, S(s(c)("report.integration.token")), 1),
1766
+ t("div", Aa, [
1767
1767
  l($, {
1768
1768
  modelValue: o.value.platform.token,
1769
1769
  "onUpdate:modelValue": a[1] || (a[1] = (N) => o.value.platform.token = N),
@@ -1772,30 +1772,30 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1772
1772
  ])
1773
1773
  ]),
1774
1774
  l(U, { style: { margin: 0 } }),
1775
- t("div", Aa, [
1776
- t("div", Va, S(s(c)("report.integration.general")), 1),
1777
- t("div", Fa, [
1778
- t("div", Ia, S(s(c)("report.common.name")), 1),
1779
- t("div", Ka, [
1775
+ t("div", Va, [
1776
+ t("div", Fa, S(s(c)("report.integration.general")), 1),
1777
+ t("div", Ia, [
1778
+ t("div", Ka, S(s(c)("report.common.name")), 1),
1779
+ t("div", Na, [
1780
1780
  l($, {
1781
1781
  modelValue: o.value.name,
1782
1782
  "onUpdate:modelValue": a[2] || (a[2] = (N) => o.value.name = N)
1783
1783
  }, null, 8, ["modelValue"])
1784
1784
  ])
1785
1785
  ]),
1786
- t("div", Na, [
1786
+ t("div", Ta, [
1787
1787
  t("div", Ma, S(s(c)("report.common.location")), 1),
1788
1788
  l(f, {
1789
1789
  modelValue: o.value.platform.locationIds,
1790
1790
  "onUpdate:modelValue": a[3] || (a[3] = (N) => o.value.platform.locationIds = N),
1791
1791
  multiselect: !0,
1792
- items: T.value,
1792
+ items: M.value,
1793
1793
  placeholder: "Select location",
1794
1794
  class: "flex-grow"
1795
1795
  }, null, 8, ["modelValue", "items"])
1796
1796
  ]),
1797
- t("div", Ta, [
1798
- t("div", Ra, S(s(c)("report.integration.grouping.title")), 1),
1797
+ t("div", Ra, [
1798
+ t("div", Ua, S(s(c)("report.integration.grouping.title")), 1),
1799
1799
  l(f, {
1800
1800
  modelValue: o.value.platform.grouping,
1801
1801
  "onUpdate:modelValue": a[4] || (a[4] = (N) => o.value.platform.grouping = N),
@@ -1805,7 +1805,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1805
1805
  class: "flex-grow"
1806
1806
  }, null, 8, ["modelValue"])
1807
1807
  ]),
1808
- t("div", Ua, [
1808
+ t("div", Pa, [
1809
1809
  a[25] || (a[25] = t("div", { class: "w-[25%] font-semibold" }, S("MyInvois Action"), -1)),
1810
1810
  l(f, {
1811
1811
  modelValue: o.value.platform.mappings.myinvoisAction,
@@ -1817,8 +1817,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1817
1817
  }, null, 8, ["modelValue"])
1818
1818
  ])
1819
1819
  ]),
1820
- t("div", Pa, [
1821
- t("div", ja, [
1820
+ t("div", ja, [
1821
+ t("div", La, [
1822
1822
  l(ee, {
1823
1823
  "model-value": {
1824
1824
  key: "Contact",
@@ -1868,12 +1868,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1868
1868
  ])
1869
1869
  ]),
1870
1870
  l(U, { style: { margin: 0 } }),
1871
- t("div", La, [
1872
- t("div", Oa, [
1873
- t("div", Ea, S(s(c)("report.integration.refNumFormat")), 1),
1871
+ t("div", Oa, [
1872
+ t("div", Ea, [
1873
+ t("div", Ba, S(s(c)("report.integration.refNumFormat")), 1),
1874
1874
  l(lt)
1875
1875
  ]),
1876
- t("div", Ba, [
1876
+ t("div", Ya, [
1877
1877
  l(ee, {
1878
1878
  "model-value": {
1879
1879
  key: "Invoice no",
@@ -1918,8 +1918,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1918
1918
  "integration-id": o.value._id
1919
1919
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
1920
1920
  l(U, { style: { margin: 0 } }),
1921
- t("div", Ya, [
1922
- t("div", qa, S(s(c)("report.integration.items")), 1),
1921
+ t("div", qa, [
1922
+ t("div", Ha, S(s(c)("report.integration.items")), 1),
1923
1923
  l(d, {
1924
1924
  variant: "secondary",
1925
1925
  "prepend-icon": "add",
@@ -1944,8 +1944,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1944
1944
  })
1945
1945
  }, null, 8, ["rows"]),
1946
1946
  l(U, { style: { margin: 0 } }),
1947
- t("div", Ha, [
1948
- t("div", za, S(s(c)("report.integration.taxes")), 1),
1947
+ t("div", za, [
1948
+ t("div", Ga, S(s(c)("report.integration.taxes")), 1),
1949
1949
  l(d, {
1950
1950
  variant: "secondary",
1951
1951
  "prepend-icon": "add",
@@ -1970,8 +1970,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1970
1970
  })
1971
1971
  }, null, 8, ["rows"]),
1972
1972
  l(U, { style: { margin: 0 } }),
1973
- t("div", Ga, [
1974
- t("div", Qa, S(s(c)("report.integration.taxRoundingAdjustments")), 1),
1973
+ t("div", Qa, [
1974
+ t("div", Wa, S(s(c)("report.integration.taxRoundingAdjustments")), 1),
1975
1975
  l(d, {
1976
1976
  variant: "secondary",
1977
1977
  "prepend-icon": "add",
@@ -1996,8 +1996,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1996
1996
  })
1997
1997
  }, null, 8, ["rows"]),
1998
1998
  l(U, { style: { margin: 0 } }),
1999
- t("div", Wa, [
2000
- t("div", Xa, S(s(c)("report.integration.payments")), 1),
1999
+ t("div", Xa, [
2000
+ t("div", Ja, S(s(c)("report.integration.payments")), 1),
2001
2001
  l(d, {
2002
2002
  variant: "secondary",
2003
2003
  "prepend-icon": "add",
@@ -2027,10 +2027,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2027
2027
  ])) : q("", !0);
2028
2028
  };
2029
2029
  }
2030
- }), Za = { class: "h-full flex flex-col gap-16" }, el = { class: "flex flex-row gap-2 justify-between items-center" }, tl = {
2030
+ }), el = { class: "h-full flex flex-col gap-16" }, tl = { class: "flex flex-row gap-2 justify-between items-center" }, ol = {
2031
2031
  key: 0,
2032
2032
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2033
- }, ol = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, al = /* @__PURE__ */ se({
2033
+ }, al = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ll = /* @__PURE__ */ se({
2034
2034
  __name: "Preview",
2035
2035
  props: {
2036
2036
  modelValue: { required: !0 },
@@ -2178,7 +2178,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2178
2178
  header: "Payment Amount",
2179
2179
  enableSorting: !1
2180
2180
  }
2181
- ], K = re(g, "modelValue"), R = Z(!1), T = $e(), { dateRange: c } = qe(Se());
2181
+ ], K = re(g, "modelValue"), R = Z(!1), M = $e(), { dateRange: c } = qe(Se());
2182
2182
  Ae(
2183
2183
  () => c.value,
2184
2184
  async () => {
@@ -2186,7 +2186,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2186
2186
  try {
2187
2187
  R.value = !0, o.value = await Oe(K.value._id);
2188
2188
  } catch (h) {
2189
- T.open({ message: h.message, type: "error" });
2189
+ M.open({ message: h.message, type: "error" });
2190
2190
  } finally {
2191
2191
  R.value = !1;
2192
2192
  }
@@ -2197,20 +2197,20 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2197
2197
  );
2198
2198
  async function x() {
2199
2199
  try {
2200
- K.value._id ? (R.value = !0, await ot(K.value._id), T.open({ message: v("report.integration.uploadSuccess"), type: "success" })) : T.open({ message: v("report.integration.error.invalid"), type: "error" });
2200
+ K.value._id ? (R.value = !0, await ot(K.value._id), M.open({ message: v("report.integration.uploadSuccess"), type: "success" })) : M.open({ message: v("report.integration.error.invalid"), type: "error" });
2201
2201
  } catch (h) {
2202
- h.message && T.open({ message: h.message, type: "error" }), Array.isArray(h.errors) ? h.errors.forEach((P) => T.open({ message: String(P), type: "error" })) : typeof h.errors == "string" && T.open({ message: h.errors, type: "error" });
2202
+ h.message && M.open({ message: h.message, type: "error" }), Array.isArray(h.errors) ? h.errors.forEach((P) => M.open({ message: String(P), type: "error" })) : typeof h.errors == "string" && M.open({ message: h.errors, type: "error" });
2203
2203
  } finally {
2204
2204
  R.value = !1;
2205
2205
  }
2206
2206
  }
2207
2207
  return (h, P) => {
2208
2208
  const A = F("FmButton"), y = F("FmCircularProgress"), m = F("FmTable");
2209
- return w(), j("div", Za, [
2210
- t("div", el, [
2209
+ return w(), j("div", el, [
2210
+ t("div", tl, [
2211
2211
  l(Ye, {
2212
2212
  "date-range": s(c),
2213
- "onUpdate:dateRange": P[0] || (P[0] = (u) => Te(c) ? c.value = u : null),
2213
+ "onUpdate:dateRange": P[0] || (P[0] = (u) => Me(c) ? c.value = u : null),
2214
2214
  compare: !1
2215
2215
  }, null, 8, ["date-range"]),
2216
2216
  l(A, {
@@ -2220,9 +2220,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2220
2220
  onClick: x
2221
2221
  }, null, 8, ["loading", "label"])
2222
2222
  ]),
2223
- R.value ? (w(), j("div", tl, [
2223
+ R.value ? (w(), j("div", ol, [
2224
2224
  l(y, { size: "xl" }),
2225
- t("span", ol, S(s(v)("report.integration.table.loading")), 1)
2225
+ t("span", al, S(s(v)("report.integration.table.loading")), 1)
2226
2226
  ])) : p.value.length > 0 ? (w(), Q(m, {
2227
2227
  key: 1,
2228
2228
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -2232,7 +2232,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2232
2232
  ]);
2233
2233
  };
2234
2234
  }
2235
- }), ll = { class: "h-full relative flex flex-col" }, nl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, sl = /* @__PURE__ */ se({
2235
+ }), nl = { class: "h-full relative flex flex-col" }, sl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, rl = /* @__PURE__ */ se({
2236
2236
  __name: "Bukku",
2237
2237
  props: /* @__PURE__ */ fe({
2238
2238
  errorLogs: {}
@@ -2258,15 +2258,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2258
2258
  value: "preview",
2259
2259
  icon: "table"
2260
2260
  }
2261
- ], R = Ce(), T = G(() => {
2261
+ ], R = Ce(), M = G(() => {
2262
2262
  switch (I.value) {
2263
2263
  case "preview":
2264
2264
  return {
2265
- component: al
2265
+ component: ll
2266
2266
  };
2267
2267
  case "setting":
2268
2268
  return {
2269
- component: Ja,
2269
+ component: Za,
2270
2270
  props: {
2271
2271
  errorLogs: p.errorLogs
2272
2272
  }
@@ -2278,7 +2278,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2278
2278
  return (c, x) => {
2279
2279
  var A, y;
2280
2280
  const h = F("FmPageHead"), P = F("FmTabs");
2281
- return w(), j("div", ll, [
2281
+ return w(), j("div", nl, [
2282
2282
  l(h, {
2283
2283
  title: v.value.name || "Bukku",
2284
2284
  "back-button": !0,
@@ -2295,25 +2295,25 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2295
2295
  "onUpdate:modelValue": x[1] || (x[1] = (m) => I.value = m),
2296
2296
  items: K
2297
2297
  }, null, 8, ["model-value"]),
2298
- t("div", nl, [
2299
- (w(), Q(Re((A = T.value) == null ? void 0 : A.component), tt({
2298
+ t("div", sl, [
2299
+ (w(), Q(Re((A = M.value) == null ? void 0 : A.component), tt({
2300
2300
  modelValue: v.value,
2301
2301
  "onUpdate:modelValue": x[2] || (x[2] = (m) => v.value = m)
2302
- }, (y = T.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
2302
+ }, (y = M.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
2303
2303
  ])
2304
2304
  ]);
2305
2305
  };
2306
2306
  }
2307
- }), rl = {
2307
+ }), il = {
2308
2308
  key: 0,
2309
2309
  class: "flex flex-col h-full"
2310
- }, il = { class: "flex flex-col gap-16 pb-[24px]" }, dl = { class: "flex flex-row justify-between items-center gap-2" }, pl = { class: "flex flex-row gap-2 items-center" }, ml = { class: "relative group cursor-pointer" }, ul = { 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" }, cl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, fl = { class: "w-[90%] flex flex-col gap-24" }, gl = { class: "flex flex-col gap-16" }, vl = { class: "fm-typo-en-title-sm-800" }, yl = { class: "flex flex-col max-w-[100%]" }, xl = { class: "w-[25%] font-semibold" }, bl = { class: "flex-grow" }, wl = { class: "flex flex-col gap-24" }, hl = { class: "flex flex-col max-w-[100%]" }, _l = { class: "w-[25%] font-semibold" }, Cl = { class: "flex flex-row items-start gap-1" }, kl = { class: "fm-typo-en-title-sm-800 pb-3" }, Sl = { class: "flex flex-col max-w-[100%]" }, $l = { class: "w-[25%] font-semibold" }, Dl = {
2310
+ }, dl = { class: "flex flex-col gap-16 pb-[24px]" }, pl = { class: "flex flex-row justify-between items-center gap-2" }, ml = { class: "flex flex-row gap-2 items-center" }, ul = { class: "relative group cursor-pointer" }, cl = { 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" }, fl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, gl = { class: "w-[90%] flex flex-col gap-24" }, vl = { class: "flex flex-col gap-16" }, yl = { class: "fm-typo-en-title-sm-800" }, xl = { class: "flex flex-col max-w-[100%]" }, bl = { class: "w-[25%] font-semibold" }, wl = { class: "flex-grow" }, hl = { class: "flex flex-col gap-24" }, _l = { class: "flex flex-col max-w-[100%]" }, Cl = { class: "w-[25%] font-semibold" }, kl = { class: "flex flex-row items-start gap-1" }, Sl = { class: "fm-typo-en-title-sm-800 pb-3" }, $l = { class: "flex flex-col max-w-[100%]" }, Dl = { class: "w-[25%] font-semibold" }, Al = {
2311
2311
  key: 0,
2312
2312
  class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
2313
- }, Al = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Vl = { class: "flex-grow" }, Fl = { class: "flex flex-col gap-16" }, Il = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Kl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Nl = { class: "flex flex-row items-center gap-5" }, Ml = { class: "fm-typo-en-title-sm-800" }, Tl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Rl = { class: "flex flex-row items-center justify-between gap-x-16" }, Ul = { class: "fm-typo-en-title-sm-800" }, Pl = { class: "flex flex-row items-center justify-between gap-x-16" }, jl = { class: "fm-typo-en-title-sm-800" }, Ll = { class: "flex flex-row items-center justify-between gap-x-16" }, Ol = { class: "fm-typo-en-title-sm-800" }, El = { class: "flex flex-row items-center justify-between gap-x-16" }, Bl = { class: "fm-typo-en-title-sm-800" }, Yl = { class: "flex flex-row items-center justify-between gap-x-16" }, ql = { class: "flex flex-col gap-4" }, Hl = { class: "fm-typo-en-title-sm-800" }, zl = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, Ql = ["onKeydown"], Wl = {
2313
+ }, Vl = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Fl = { class: "flex-grow" }, Il = { class: "flex flex-col gap-16" }, Kl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Nl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Tl = { class: "flex flex-row items-center gap-5" }, Ml = { class: "fm-typo-en-title-sm-800" }, Rl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ul = { class: "flex flex-row items-center justify-between gap-x-16" }, Pl = { class: "fm-typo-en-title-sm-800" }, jl = { class: "flex flex-row items-center justify-between gap-x-16" }, Ll = { class: "fm-typo-en-title-sm-800" }, Ol = { class: "flex flex-row items-center justify-between gap-x-16" }, El = { class: "fm-typo-en-title-sm-800" }, Bl = { class: "flex flex-row items-center justify-between gap-x-16" }, Yl = { class: "fm-typo-en-title-sm-800" }, ql = { class: "flex flex-row items-center justify-between gap-x-16" }, Hl = { class: "flex flex-col gap-4" }, zl = { class: "fm-typo-en-title-sm-800" }, Gl = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ql = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, Wl = ["onKeydown"], Xl = {
2314
2314
  key: 0,
2315
2315
  class: "sr-only"
2316
- }, Xl = { class: "flex flex-row items-center justify-between gap-x-16" }, Jl = { class: "fm-typo-en-title-sm-800" }, Zl = { class: "flex flex-row items-center justify-between gap-x-16" }, en = { class: "fm-typo-en-title-sm-800" }, tn = /* @__PURE__ */ se({
2316
+ }, Jl = { class: "flex flex-row items-center justify-between gap-x-16" }, Zl = { class: "fm-typo-en-title-sm-800" }, en = { class: "flex flex-row items-center justify-between gap-x-16" }, tn = { class: "fm-typo-en-title-sm-800" }, on = /* @__PURE__ */ se({
2317
2317
  __name: "Setting",
2318
2318
  props: /* @__PURE__ */ fe({
2319
2319
  errorLogs: {}
@@ -2323,8 +2323,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2323
2323
  }),
2324
2324
  emits: ["update:modelValue"],
2325
2325
  setup(g) {
2326
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
2327
- () => T.map((V) => ({ label: V.name, value: V.id }))
2326
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
2327
+ () => M.map((V) => ({ label: V.name, value: V.id }))
2328
2328
  ), P = Z(null), A = Z(!1);
2329
2329
  let y = null;
2330
2330
  const m = G(() => {
@@ -2332,7 +2332,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2332
2332
  const V = (O = e.value.platform) == null ? void 0 : O.mappings;
2333
2333
  return (((H = e.value.platform) == null ? void 0 : H.locationIds) || []).map((W) => {
2334
2334
  var ie;
2335
- const te = T.find((ue) => ue.id === W), z = (ie = V == null ? void 0 : V.projectByLocations) == null ? void 0 : ie.find((ue) => ue.locationId === W);
2335
+ const te = M.find((ue) => ue.id === W), z = (ie = V == null ? void 0 : V.projectByLocations) == null ? void 0 : ie.find((ue) => ue.locationId === W);
2336
2336
  return {
2337
2337
  locationId: W,
2338
2338
  locationName: (te == null ? void 0 : te.name) || (z == null ? void 0 : z.locationName) || W,
@@ -2464,7 +2464,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2464
2464
  async function f() {
2465
2465
  await K(async () => {
2466
2466
  try {
2467
- await Me(e.value._id), await v.getSettings();
2467
+ await Te(e.value._id), await v.getSettings();
2468
2468
  } catch (V) {
2469
2469
  p.open({ type: "error", message: V.message });
2470
2470
  }
@@ -2475,18 +2475,18 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2475
2475
  }), (V, _) => {
2476
2476
  var ue, ge, ve, ye, xe, be, we, ae, X, oe, N, E, J, Y, ce, De, He, ze, Ge, Qe;
2477
2477
  const O = F("FmIcon"), H = F("FmButton"), W = F("FmMenuDivider"), te = F("FmTextField"), z = F("FmSelect"), ie = F("FmSwitch");
2478
- return (ge = (ue = e.value) == null ? void 0 : ue.platform) != null && ge.mappings ? (w(), j("div", rl, [
2479
- t("div", il, [
2480
- t("div", dl, [
2478
+ return (ge = (ue = e.value) == null ? void 0 : ue.platform) != null && ge.mappings ? (w(), j("div", il, [
2479
+ t("div", dl, [
2480
+ t("div", pl, [
2481
2481
  _[31] || (_[31] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
2482
- t("div", pl, [
2483
- t("div", ml, [
2482
+ t("div", ml, [
2483
+ t("div", ul, [
2484
2484
  l(O, {
2485
2485
  name: "refresh",
2486
2486
  class: "p-2 bg-gray-100 rounded-full",
2487
2487
  onClick: f
2488
2488
  }),
2489
- t("span", ul, S(s(o)("report.integration.refreshSetting")), 1)
2489
+ t("span", cl, S(s(o)("report.integration.refreshSettingTooltip")), 1)
2490
2490
  ]),
2491
2491
  l(H, {
2492
2492
  variant: "tertiary",
@@ -2503,30 +2503,30 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2503
2503
  ])
2504
2504
  ]),
2505
2505
  l(W, { style: { margin: 0 } }),
2506
- t("div", cl, [
2507
- t("div", fl, [
2508
- t("div", gl, [
2509
- t("div", vl, S(s(o)("report.integration.general")), 1),
2510
- t("div", yl, [
2511
- t("div", xl, S(s(o)("report.common.name")), 1),
2512
- t("div", bl, [
2506
+ t("div", fl, [
2507
+ t("div", gl, [
2508
+ t("div", vl, [
2509
+ t("div", yl, S(s(o)("report.integration.general")), 1),
2510
+ t("div", xl, [
2511
+ t("div", bl, S(s(o)("report.common.name")), 1),
2512
+ t("div", wl, [
2513
2513
  l(te, {
2514
2514
  modelValue: e.value.name,
2515
- "onUpdate:modelValue": _[0] || (_[0] = (M) => e.value.name = M)
2515
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => e.value.name = T)
2516
2516
  }, null, 8, ["modelValue"])
2517
2517
  ])
2518
2518
  ]),
2519
- t("div", wl, [
2520
- t("div", hl, [
2521
- t("div", _l, S(s(o)("report.integration.location")), 1),
2519
+ t("div", hl, [
2520
+ t("div", _l, [
2521
+ t("div", Cl, S(s(o)("report.integration.location")), 1),
2522
2522
  l(z, {
2523
2523
  modelValue: e.value.platform.locationIds,
2524
- "onUpdate:modelValue": _[1] || (_[1] = (M) => e.value.platform.locationIds = M),
2524
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => e.value.platform.locationIds = T),
2525
2525
  multiselect: !0,
2526
2526
  items: h.value,
2527
2527
  placeholder: "Select location",
2528
2528
  class: "flex-grow",
2529
- rules: [(M) => M.length !== 0 || "Please select at least 1 location"]
2529
+ rules: [(T) => T.length !== 0 || "Please select at least 1 location"]
2530
2530
  }, null, 8, ["modelValue", "items", "rules"])
2531
2531
  ]),
2532
2532
  t("div", {
@@ -2536,9 +2536,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2536
2536
  "rounded-md animate-project-mapping-highlight": A.value
2537
2537
  }, "flex flex-col gap-8 max-w-[100%]"])
2538
2538
  }, [
2539
- t("div", Cl, [
2539
+ t("div", kl, [
2540
2540
  _[32] || (_[32] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
2541
- t("div", kl, S(s(o)("report.integration.autocount.projectByLocationTitle")), 1)
2541
+ t("div", Sl, S(s(o)("report.integration.autocount.projectByLocationTitle")), 1)
2542
2542
  ]),
2543
2543
  l(le, {
2544
2544
  "header-items": [
@@ -2556,39 +2556,39 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2556
2556
  }, null, 8, ["header-items", "rows", "fields-options"])
2557
2557
  ], 2)
2558
2558
  ]),
2559
- t("div", Sl, [
2560
- t("div", $l, S(s(o)("report.integration.grouping.title")), 1),
2559
+ t("div", $l, [
2560
+ t("div", Dl, S(s(o)("report.integration.grouping.title")), 1),
2561
2561
  l(z, {
2562
2562
  modelValue: e.value.platform.grouping,
2563
- "onUpdate:modelValue": _[2] || (_[2] = (M) => e.value.platform.grouping = M),
2563
+ "onUpdate:modelValue": _[2] || (_[2] = (T) => e.value.platform.grouping = T),
2564
2564
  multiselect: !1,
2565
2565
  items: a,
2566
2566
  placeholder: "Select grouping",
2567
2567
  class: "flex-grow"
2568
2568
  }, null, 8, ["modelValue"])
2569
2569
  ]),
2570
- e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Dl, [
2571
- t("div", Al, [
2570
+ e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Al, [
2571
+ t("div", Vl, [
2572
2572
  _[33] || (_[33] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
2573
2573
  t("span", null, S(s(o)("report.integration.discountByGroupKey")), 1)
2574
2574
  ]),
2575
- t("div", Vl, [
2575
+ t("div", Fl, [
2576
2576
  l(ie, {
2577
2577
  "model-value": e.value.platform.discountByGroupKey ?? !1,
2578
2578
  style: { gap: 0 },
2579
- "onUpdate:modelValue": _[3] || (_[3] = (M) => {
2580
- e.value.platform.discountByGroupKey = M;
2579
+ "onUpdate:modelValue": _[3] || (_[3] = (T) => {
2580
+ e.value.platform.discountByGroupKey = T;
2581
2581
  })
2582
2582
  }, null, 8, ["model-value"])
2583
2583
  ])
2584
2584
  ])) : q("", !0)
2585
2585
  ]),
2586
- t("div", Fl, [
2587
- t("div", Il, [
2586
+ t("div", Il, [
2587
+ t("div", Kl, [
2588
2588
  l(ee, {
2589
2589
  "model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
2590
2590
  options: d("Debtor"),
2591
- "onUpdate:modelValue": _[4] || (_[4] = (M) => D({ key: "debtor", value: M.account }))
2591
+ "onUpdate:modelValue": _[4] || (_[4] = (T) => D({ key: "debtor", value: T.account }))
2592
2592
  }, null, 8, ["model-value", "options"]),
2593
2593
  l(ee, {
2594
2594
  "model-value": {
@@ -2596,12 +2596,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2596
2596
  account: e.value.platform.mappings.rounding.account
2597
2597
  },
2598
2598
  options: d("Rounding"),
2599
- "onUpdate:modelValue": _[5] || (_[5] = (M) => {
2599
+ "onUpdate:modelValue": _[5] || (_[5] = (T) => {
2600
2600
  var L, B, pe;
2601
- (pe = (B = (L = e.value) == null ? void 0 : L.platform) == null ? void 0 : B.mappings) != null && pe.rounding && (e.value.platform.mappings.rounding.account = M.account);
2601
+ (pe = (B = (L = e.value) == null ? void 0 : L.platform) == null ? void 0 : B.mappings) != null && pe.rounding && (e.value.platform.mappings.rounding.account = T.account);
2602
2602
  })
2603
2603
  }, null, 8, ["model-value", "options"]),
2604
- (w(!0), j(Ie, null, We((xe = (ye = (ve = e.value) == null ? void 0 : ve.platform) == null ? void 0 : ye.mappings) == null ? void 0 : xe.charges, (M, L) => (w(), Q(ee, {
2604
+ (w(!0), j(Ie, null, We((xe = (ye = (ve = e.value) == null ? void 0 : ve.platform) == null ? void 0 : ye.mappings) == null ? void 0 : xe.charges, (T, L) => (w(), Q(ee, {
2605
2605
  key: `charge-${L}`,
2606
2606
  modelValue: e.value.platform.mappings.charges[L],
2607
2607
  "onUpdate:modelValue": (B) => e.value.platform.mappings.charges[L] = B,
@@ -2613,19 +2613,19 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2613
2613
  ])
2614
2614
  ]),
2615
2615
  l(W, { style: { margin: 0 } }),
2616
- t("div", Kl, [
2617
- t("div", Nl, [
2616
+ t("div", Nl, [
2617
+ t("div", Tl, [
2618
2618
  t("div", Ml, S(s(o)("report.integration.refNumFormat")), 1),
2619
2619
  l(lt)
2620
2620
  ]),
2621
- t("div", Tl, [
2621
+ t("div", Rl, [
2622
2622
  l(ee, {
2623
2623
  "model-value": {
2624
2624
  key: "Invoice no",
2625
2625
  account: e.value.platform.mappings.invoiceDocNo
2626
2626
  },
2627
2627
  options: d("Invoice no"),
2628
- "onUpdate:modelValue": _[6] || (_[6] = (M) => D({ key: "invoiceDocNo", value: M.account }))
2628
+ "onUpdate:modelValue": _[6] || (_[6] = (T) => D({ key: "invoiceDocNo", value: T.account }))
2629
2629
  }, null, 8, ["model-value", "options"]),
2630
2630
  l(ee, {
2631
2631
  "model-value": {
@@ -2633,7 +2633,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2633
2633
  account: e.value.platform.mappings.creditNoteDocNo
2634
2634
  },
2635
2635
  options: d("Credit note no"),
2636
- "onUpdate:modelValue": _[7] || (_[7] = (M) => D({ key: "creditNoteDocNo", value: M.account }))
2636
+ "onUpdate:modelValue": _[7] || (_[7] = (T) => D({ key: "creditNoteDocNo", value: T.account }))
2637
2637
  }, null, 8, ["model-value", "options"]),
2638
2638
  l(ee, {
2639
2639
  "model-value": {
@@ -2641,7 +2641,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2641
2641
  account: e.value.platform.mappings.paymentDocNo
2642
2642
  },
2643
2643
  options: d("Payment no"),
2644
- "onUpdate:modelValue": _[8] || (_[8] = (M) => D({ key: "paymentDocNo", value: M.account }))
2644
+ "onUpdate:modelValue": _[8] || (_[8] = (T) => D({ key: "paymentDocNo", value: T.account }))
2645
2645
  }, null, 8, ["model-value", "options"]),
2646
2646
  l(ee, {
2647
2647
  "model-value": {
@@ -2649,14 +2649,14 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2649
2649
  account: e.value.platform.mappings.refundDocNo
2650
2650
  },
2651
2651
  options: d("Refund no"),
2652
- "onUpdate:modelValue": _[9] || (_[9] = (M) => D({ key: "refundDocNo", value: M.account }))
2652
+ "onUpdate:modelValue": _[9] || (_[9] = (T) => D({ key: "refundDocNo", value: T.account }))
2653
2653
  }, null, 8, ["model-value", "options"])
2654
2654
  ])
2655
2655
  ]),
2656
2656
  l(W, { style: { margin: 0 } }),
2657
2657
  l(Xe, {
2658
2658
  modelValue: e.value.platform,
2659
- "onUpdate:modelValue": _[10] || (_[10] = (M) => e.value.platform = M),
2659
+ "onUpdate:modelValue": _[10] || (_[10] = (T) => e.value.platform = T),
2660
2660
  label: s(o)("report.input.email"),
2661
2661
  "last-upload-date": (be = e.value.platform) == null ? void 0 : be.lastUploadDate,
2662
2662
  "error-logs": V.errorLogs,
@@ -2664,8 +2664,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2664
2664
  "is-auto-email-mode": !0
2665
2665
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
2666
2666
  l(W, { style: { margin: 0 } }),
2667
- t("div", Rl, [
2668
- t("div", Ul, S(s(o)("report.integration.items")), 1),
2667
+ t("div", Ul, [
2668
+ t("div", Pl, S(s(o)("report.integration.items")), 1),
2669
2669
  l(H, {
2670
2670
  variant: "secondary",
2671
2671
  "prepend-icon": "add",
@@ -2683,15 +2683,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2683
2683
  key: { placeholder: "FeedMe Key", editable: !0 },
2684
2684
  account: { placeholder: "Account Code", editable: !0 }
2685
2685
  },
2686
- onRemove: _[12] || (_[12] = (M, L) => i(M, L)),
2687
- "onUpdate:rows": _[13] || (_[13] = (M) => {
2686
+ onRemove: _[12] || (_[12] = (T, L) => i(T, L)),
2687
+ "onUpdate:rows": _[13] || (_[13] = (T) => {
2688
2688
  var L, B;
2689
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.items = M);
2689
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.items = T);
2690
2690
  })
2691
2691
  }, null, 8, ["rows"]),
2692
2692
  l(W, { style: { margin: 0 } }),
2693
- t("div", Pl, [
2694
- t("div", jl, S(s(o)("report.integration.taxes")), 1),
2693
+ t("div", jl, [
2694
+ t("div", Ll, S(s(o)("report.integration.taxes")), 1),
2695
2695
  l(H, {
2696
2696
  variant: "secondary",
2697
2697
  "prepend-icon": "add",
@@ -2709,15 +2709,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2709
2709
  key: { placeholder: "FeedMe Key", editable: !0 },
2710
2710
  account: { placeholder: "Account Code", editable: !0 }
2711
2711
  },
2712
- onRemove: _[15] || (_[15] = (M, L) => i(M, L)),
2713
- "onUpdate:rows": _[16] || (_[16] = (M) => {
2712
+ onRemove: _[15] || (_[15] = (T, L) => i(T, L)),
2713
+ "onUpdate:rows": _[16] || (_[16] = (T) => {
2714
2714
  var L, B;
2715
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxes = M);
2715
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxes = T);
2716
2716
  })
2717
2717
  }, null, 8, ["rows"]),
2718
2718
  l(W, { style: { margin: 0 } }),
2719
- t("div", Ll, [
2720
- t("div", Ol, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
2719
+ t("div", Ol, [
2720
+ t("div", El, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
2721
2721
  l(H, {
2722
2722
  variant: "secondary",
2723
2723
  "prepend-icon": "add",
@@ -2735,15 +2735,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2735
2735
  key: { placeholder: "FeedMe Key", editable: !0 },
2736
2736
  account: { placeholder: "Account Code", editable: !0 }
2737
2737
  },
2738
- onRemove: _[18] || (_[18] = (M, L) => i(M, L)),
2739
- "onUpdate:rows": _[19] || (_[19] = (M) => {
2738
+ onRemove: _[18] || (_[18] = (T, L) => i(T, L)),
2739
+ "onUpdate:rows": _[19] || (_[19] = (T) => {
2740
2740
  var L, B;
2741
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxRoundingAdjustments = M);
2741
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxRoundingAdjustments = T);
2742
2742
  })
2743
2743
  }, null, 8, ["rows"]),
2744
2744
  l(W, { style: { margin: 0 } }),
2745
- t("div", El, [
2746
- t("div", Bl, S(s(o)("report.integration.payments")), 1),
2745
+ t("div", Bl, [
2746
+ t("div", Yl, S(s(o)("report.integration.payments")), 1),
2747
2747
  l(H, {
2748
2748
  variant: "secondary",
2749
2749
  "prepend-icon": "add",
@@ -2761,28 +2761,28 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2761
2761
  key: { placeholder: "FeedMe Key", editable: !0 },
2762
2762
  account: { placeholder: "Payment Name", editable: !0 }
2763
2763
  },
2764
- onRemove: _[21] || (_[21] = (M, L) => i("payments", L)),
2765
- "onUpdate:rows": _[22] || (_[22] = (M) => {
2764
+ onRemove: _[21] || (_[21] = (T, L) => i("payments", L)),
2765
+ "onUpdate:rows": _[22] || (_[22] = (T) => {
2766
2766
  var L, B;
2767
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.payments = M);
2767
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.payments = T);
2768
2768
  })
2769
2769
  }, null, 8, ["rows"]),
2770
2770
  l(W, { style: { margin: 0 } }),
2771
- t("div", Yl, [
2772
- t("div", ql, [
2773
- t("div", Hl, S(s(o)("report.integration.autocount.apInvoice.title")), 1),
2774
- t("div", zl, S(s(o)("report.integration.autocount.apInvoice.description")), 1)
2771
+ t("div", ql, [
2772
+ t("div", Hl, [
2773
+ t("div", zl, S(s(o)("report.integration.autocount.apInvoice.title")), 1),
2774
+ t("div", Gl, S(s(o)("report.integration.autocount.apInvoice.description")), 1)
2775
2775
  ]),
2776
2776
  l(ie, {
2777
2777
  "model-value": ((Ge = e.value.platform.apInvoice) == null ? void 0 : Ge.enable) ?? !1,
2778
2778
  style: { gap: 0 },
2779
- "onUpdate:modelValue": _[23] || (_[23] = (M) => {
2780
- e.value.platform.apInvoice && (e.value.platform.apInvoice.enable = M);
2779
+ "onUpdate:modelValue": _[23] || (_[23] = (T) => {
2780
+ e.value.platform.apInvoice && (e.value.platform.apInvoice.enable = T);
2781
2781
  })
2782
2782
  }, null, 8, ["model-value"])
2783
2783
  ]),
2784
2784
  (Qe = e.value.platform.apInvoice) != null && Qe.enable ? (w(), j(Ie, { key: 0 }, [
2785
- t("div", Gl, [
2785
+ t("div", Ql, [
2786
2786
  l(ee, {
2787
2787
  "model-value": {
2788
2788
  key: s(o)("report.integration.autocount.apInvoice.purchaseOrderNo"),
@@ -2792,8 +2792,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2792
2792
  key: { placeholder: s(o)("report.integration.autocount.apInvoice.purchaseOrderNo"), editable: !1 },
2793
2793
  account: { placeholder: s(o)("report.integration.autocount.apInvoice.purchaseOrderNo"), editable: !0 }
2794
2794
  },
2795
- "onUpdate:modelValue": _[24] || (_[24] = (M) => {
2796
- e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.purchaseOrderDocNo = M.account);
2795
+ "onUpdate:modelValue": _[24] || (_[24] = (T) => {
2796
+ e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.purchaseOrderDocNo = T.account);
2797
2797
  })
2798
2798
  }, null, 8, ["model-value", "options"]),
2799
2799
  t("div", {
@@ -2816,15 +2816,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2816
2816
  account: { placeholder: s(o)("report.integration.autocount.apInvoice.projectNo"), editable: !1 }
2817
2817
  }
2818
2818
  }, {
2819
- "field-suffix": ke(({ field: M }) => [
2820
- M.key === "key" ? (w(), j("span", Wl, S(s(o)("report.integration.autocount.apInvoice.projectNoSharedHint")), 1)) : q("", !0)
2819
+ "field-suffix": ke(({ field: T }) => [
2820
+ T.key === "key" ? (w(), j("span", Xl, S(s(o)("report.integration.autocount.apInvoice.projectNoSharedHint")), 1)) : q("", !0)
2821
2821
  ]),
2822
2822
  _: 1
2823
2823
  }, 8, ["model-value", "options"])
2824
- ], 40, Ql)
2824
+ ], 40, Wl)
2825
2825
  ]),
2826
- t("div", Xl, [
2827
- t("div", Jl, S(s(o)("report.integration.autocount.apInvoice.suppliers")), 1),
2826
+ t("div", Jl, [
2827
+ t("div", Zl, S(s(o)("report.integration.autocount.apInvoice.suppliers")), 1),
2828
2828
  l(H, {
2829
2829
  variant: "secondary",
2830
2830
  "prepend-icon": "add",
@@ -2842,13 +2842,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2842
2842
  key: { placeholder: "FeedMe Key", editable: !0 },
2843
2843
  creditorCode: { placeholder: s(o)("report.integration.autocount.apInvoice.creditorCode"), editable: !0 }
2844
2844
  },
2845
- onRemove: _[26] || (_[26] = (M, L) => b("suppliers", L)),
2846
- "onUpdate:rows": _[27] || (_[27] = (M) => {
2847
- e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.suppliers = M);
2845
+ onRemove: _[26] || (_[26] = (T, L) => b("suppliers", L)),
2846
+ "onUpdate:rows": _[27] || (_[27] = (T) => {
2847
+ e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.suppliers = T);
2848
2848
  })
2849
2849
  }, null, 8, ["header-items", "rows", "fields-options"]),
2850
- t("div", Zl, [
2851
- t("div", en, S(s(o)("report.integration.autocount.apInvoice.inventoryItems")), 1),
2850
+ t("div", en, [
2851
+ t("div", tn, S(s(o)("report.integration.autocount.apInvoice.inventoryItems")), 1),
2852
2852
  l(H, {
2853
2853
  variant: "secondary",
2854
2854
  "prepend-icon": "add",
@@ -2873,9 +2873,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2873
2873
  itemCode: { placeholder: s(o)("report.integration.autocount.apInvoice.itemCode"), editable: !0 },
2874
2874
  accNo: { placeholder: s(o)("report.integration.autocount.apInvoice.accNo"), editable: !0 }
2875
2875
  },
2876
- onRemove: _[29] || (_[29] = (M, L) => b("skus", L)),
2877
- "onUpdate:rows": _[30] || (_[30] = (M) => {
2878
- e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.skus = M);
2876
+ onRemove: _[29] || (_[29] = (T, L) => b("skus", L)),
2877
+ "onUpdate:rows": _[30] || (_[30] = (T) => {
2878
+ e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.skus = T);
2879
2879
  })
2880
2880
  }, null, 8, ["header-items", "rows", "fields-options"])
2881
2881
  ], 64)) : q("", !0)
@@ -2884,13 +2884,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2884
2884
  ])) : q("", !0);
2885
2885
  };
2886
2886
  }
2887
- }), on = /* @__PURE__ */ Dt(tn, [["__scopeId", "data-v-1a72b9a7"]]), an = { class: "h-full flex flex-col gap-16" }, ln = { class: "flex flex-row gap-2 justify-between items-center" }, nn = {
2887
+ }), an = /* @__PURE__ */ Dt(on, [["__scopeId", "data-v-9bd29921"]]), ln = { class: "h-full flex flex-col gap-16" }, nn = { class: "flex flex-row gap-2 justify-between items-center" }, sn = {
2888
2888
  key: 0,
2889
2889
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2890
- }, sn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rn = {
2890
+ }, rn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dn = {
2891
2891
  key: 1,
2892
2892
  class: "w-full h-full flex flex-col flex-grow"
2893
- }, dn = /* @__PURE__ */ se({
2893
+ }, pn = /* @__PURE__ */ se({
2894
2894
  __name: "Preview",
2895
2895
  props: {
2896
2896
  modelValue: { required: !0 },
@@ -3056,7 +3056,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3056
3056
  header: "Amount",
3057
3057
  enableSorting: !1
3058
3058
  }
3059
- ], T = [
3059
+ ], M = [
3060
3060
  {
3061
3061
  accessorKey: "DocNo",
3062
3062
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
@@ -3175,11 +3175,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3175
3175
  { immediate: !0 }
3176
3176
  ), (u, k) => {
3177
3177
  const i = F("FmButton"), n = F("FmCircularProgress"), b = F("FmTabs"), r = F("FmTable");
3178
- return w(), j("div", an, [
3179
- t("div", ln, [
3178
+ return w(), j("div", ln, [
3179
+ t("div", nn, [
3180
3180
  l(Ye, {
3181
3181
  "date-range": s(P),
3182
- "onUpdate:dateRange": k[0] || (k[0] = (a) => Te(P) ? P.value = a : null),
3182
+ "onUpdate:dateRange": k[0] || (k[0] = (a) => Me(P) ? P.value = a : null),
3183
3183
  compare: !1
3184
3184
  }, null, 8, ["date-range"]),
3185
3185
  l(i, {
@@ -3189,10 +3189,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3189
3189
  onClick: A
3190
3190
  }, null, 8, ["loading", "label"])
3191
3191
  ]),
3192
- x.value ? (w(), j("div", nn, [
3192
+ x.value ? (w(), j("div", sn, [
3193
3193
  l(n, { size: "xl" }),
3194
- t("span", sn, S(s(o)("report.common.isLoading")), 1)
3195
- ])) : (w(), j("div", rn, [
3194
+ t("span", rn, S(s(o)("report.common.isLoading")), 1)
3195
+ ])) : (w(), j("div", dn, [
3196
3196
  l(b, {
3197
3197
  "model-value": m.value,
3198
3198
  "onUpdate:modelValue": k[1] || (k[1] = (a) => m.value = a),
@@ -3214,13 +3214,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3214
3214
  key: 2,
3215
3215
  class: "flex overflow-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
3216
3216
  "row-data": v.value.purchaseInvoices,
3217
- "column-defs": T
3217
+ "column-defs": M
3218
3218
  }, null, 8, ["row-data"])) : q("", !0)
3219
3219
  ]))
3220
3220
  ]);
3221
3221
  };
3222
3222
  }
3223
- }), pn = { class: "h-full relative flex flex-col" }, mn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, un = /* @__PURE__ */ se({
3223
+ }), mn = { class: "h-full relative flex flex-col" }, un = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, cn = /* @__PURE__ */ se({
3224
3224
  __name: "AutoCount",
3225
3225
  props: /* @__PURE__ */ fe({
3226
3226
  errorLogs: {}
@@ -3244,17 +3244,17 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3244
3244
  ], K = Ce(), R = G(() => {
3245
3245
  switch (v.value) {
3246
3246
  case "preview":
3247
- return dn;
3247
+ return pn;
3248
3248
  case "setting":
3249
- return on;
3249
+ return an;
3250
3250
  default:
3251
3251
  return null;
3252
3252
  }
3253
3253
  });
3254
- return (T, c) => {
3254
+ return (M, c) => {
3255
3255
  var P;
3256
3256
  const x = F("FmPageHead"), h = F("FmTabs");
3257
- return w(), j("div", pn, [
3257
+ return w(), j("div", mn, [
3258
3258
  l(x, {
3259
3259
  title: ((P = e.value) == null ? void 0 : P.name) || "AutoCount",
3260
3260
  "back-button": !0,
@@ -3271,7 +3271,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3271
3271
  "onUpdate:modelValue": c[1] || (c[1] = (A) => v.value = A),
3272
3272
  items: I
3273
3273
  }, null, 8, ["model-value"]),
3274
- t("div", mn, [
3274
+ t("div", un, [
3275
3275
  (w(), Q(Re(R.value), {
3276
3276
  modelValue: e.value,
3277
3277
  "onUpdate:modelValue": c[2] || (c[2] = (A) => e.value = A),
@@ -3281,13 +3281,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3281
3281
  ]);
3282
3282
  };
3283
3283
  }
3284
- }), cn = {
3284
+ }), fn = {
3285
3285
  key: 0,
3286
3286
  class: "flex flex-col h-full"
3287
- }, fn = { class: "flex flex-col gap-16 pb-[24px]" }, gn = { class: "flex flex-row justify-between items-center gap-2" }, vn = { class: "flex flex-row gap-2 items-center" }, yn = { class: "relative group cursor-pointer" }, xn = { 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" }, bn = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, wn = { class: "w-[90%] flex flex-col gap-24" }, hn = { class: "flex flex-col gap-16" }, _n = { class: "fm-typo-en-title-sm-800" }, Cn = { class: "flex flex-col max-w-[100%]" }, kn = { class: "w-[25%] font-semibold" }, Sn = { class: "flex-grow" }, $n = { class: "flex flex-col max-w-[100%]" }, Dn = { class: "w-[25%] font-semibold" }, An = { class: "flex flex-col max-w-[100%]" }, Vn = { class: "w-[25%] font-semibold" }, Fn = {
3287
+ }, gn = { class: "flex flex-col gap-16 pb-[24px]" }, vn = { class: "flex flex-row justify-between items-center gap-2" }, yn = { class: "flex flex-row gap-2 items-center" }, xn = { class: "relative group cursor-pointer" }, bn = { 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" }, wn = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, hn = { class: "w-[90%] flex flex-col gap-24" }, _n = { class: "flex flex-col gap-16" }, Cn = { class: "fm-typo-en-title-sm-800" }, kn = { class: "flex flex-col max-w-[100%]" }, Sn = { class: "w-[25%] font-semibold" }, $n = { class: "flex-grow" }, Dn = { class: "flex flex-col max-w-[100%]" }, An = { class: "w-[25%] font-semibold" }, Vn = { class: "flex flex-col max-w-[100%]" }, Fn = { class: "w-[25%] font-semibold" }, In = {
3288
3288
  key: 0,
3289
3289
  class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
3290
- }, In = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Kn = { class: "flex-grow" }, Nn = { class: "flex flex-col gap-16" }, Mn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Tn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Rn = { class: "flex flex-col gap-16 pt-3 pb-3" }, Un = { class: "flex flex-row items-center gap-5" }, Pn = { class: "fm-typo-en-title-sm-800" }, jn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ln = { class: "flex flex-row items-center justify-between gap-x-16" }, On = { class: "fm-typo-en-title-sm-800" }, En = { class: "flex flex-row items-center justify-between gap-x-16" }, Bn = { class: "fm-typo-en-title-sm-800" }, Yn = { class: "flex flex-row items-center justify-between gap-x-16" }, qn = { class: "fm-typo-en-title-sm-800" }, Hn = { class: "flex flex-row items-center justify-between gap-x-16" }, zn = { class: "fm-typo-en-title-sm-800" }, Gn = { class: "flex flex-row items-center justify-between gap-x-16" }, Qn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "flex flex-row items-center justify-between gap-x-16" }, Xn = { class: "flex flex-row items-center justify-between gap-x-16" }, Jn = /* @__PURE__ */ se({
3290
+ }, Kn = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Nn = { class: "flex-grow" }, Tn = { class: "flex flex-col gap-16" }, Mn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Rn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Un = { class: "flex flex-col gap-16 pt-3 pb-3" }, Pn = { class: "flex flex-row items-center gap-5" }, jn = { class: "fm-typo-en-title-sm-800" }, Ln = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, On = { class: "flex flex-row items-center justify-between gap-x-16" }, En = { class: "fm-typo-en-title-sm-800" }, Bn = { class: "flex flex-row items-center justify-between gap-x-16" }, Yn = { class: "fm-typo-en-title-sm-800" }, qn = { class: "flex flex-row items-center justify-between gap-x-16" }, Hn = { class: "fm-typo-en-title-sm-800" }, zn = { class: "flex flex-row items-center justify-between gap-x-16" }, Gn = { class: "fm-typo-en-title-sm-800" }, Qn = { class: "flex flex-row items-center justify-between gap-x-16" }, Wn = { class: "fm-typo-en-title-sm-800" }, Xn = { class: "flex flex-row items-center justify-between gap-x-16" }, Jn = { class: "flex flex-row items-center justify-between gap-x-16" }, Zn = /* @__PURE__ */ se({
3291
3291
  __name: "Setting",
3292
3292
  props: /* @__PURE__ */ fe({
3293
3293
  errorLogs: {}
@@ -3297,8 +3297,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3297
3297
  }),
3298
3298
  emits: ["update:modelValue"],
3299
3299
  setup(g) {
3300
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
3301
- () => T.map((r) => ({ label: r.name, value: r.id }))
3300
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
3301
+ () => M.map((r) => ({ label: r.name, value: r.id }))
3302
3302
  );
3303
3303
  async function P() {
3304
3304
  var d;
@@ -3335,7 +3335,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3335
3335
  }
3336
3336
  await K(async () => {
3337
3337
  try {
3338
- await Le(e.value._id, e.value), await Me(e.value._id), await v.getSettings();
3338
+ await Le(e.value._id, e.value), await Te(e.value._id), await v.getSettings();
3339
3339
  } catch (d) {
3340
3340
  p.open({ type: "error", message: d.message });
3341
3341
  }
@@ -3390,7 +3390,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3390
3390
  async function i() {
3391
3391
  await K(async () => {
3392
3392
  try {
3393
- await Me(e.value._id), await v.getSettings();
3393
+ await Te(e.value._id), await v.getSettings();
3394
3394
  } catch (r) {
3395
3395
  p.open({ type: "error", message: r.message });
3396
3396
  }
@@ -3426,18 +3426,18 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3426
3426
  }), (r, a) => {
3427
3427
  var _, O, H, W, te, z, ie, ue, ge, ve, ye, xe, be, we, ae, X, oe, N, E, J, Y, ce, De, He, ze, Ge, Qe;
3428
3428
  const D = F("FmIcon"), d = F("FmButton"), U = F("FmMenuDivider"), $ = F("FmTextField"), f = F("FmSelect"), V = F("FmSwitch");
3429
- return (O = (_ = e.value) == null ? void 0 : _.platform) != null && O.mappings ? (w(), j("div", cn, [
3430
- t("div", fn, [
3431
- t("div", gn, [
3429
+ return (O = (_ = e.value) == null ? void 0 : _.platform) != null && O.mappings ? (w(), j("div", fn, [
3430
+ t("div", gn, [
3431
+ t("div", vn, [
3432
3432
  a[35] || (a[35] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
3433
- t("div", vn, [
3434
- t("div", yn, [
3433
+ t("div", yn, [
3434
+ t("div", xn, [
3435
3435
  l(D, {
3436
3436
  name: "refresh",
3437
3437
  class: "p-2 bg-gray-100 rounded-full",
3438
3438
  onClick: i
3439
3439
  }),
3440
- t("span", xn, S(s(o)("report.integration.refreshSetting")), 1)
3440
+ t("span", bn, S(s(o)("report.integration.refreshSettingTooltip")), 1)
3441
3441
  ]),
3442
3442
  l(d, {
3443
3443
  variant: "tertiary",
@@ -3454,64 +3454,64 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3454
3454
  ])
3455
3455
  ]),
3456
3456
  l(U, { style: { margin: 0 } }),
3457
- t("div", bn, [
3458
- t("div", wn, [
3459
- t("div", hn, [
3460
- t("div", _n, S(s(o)("report.integration.general")), 1),
3461
- t("div", Cn, [
3462
- t("div", kn, S(s(o)("report.common.name")), 1),
3463
- t("div", Sn, [
3457
+ t("div", wn, [
3458
+ t("div", hn, [
3459
+ t("div", _n, [
3460
+ t("div", Cn, S(s(o)("report.integration.general")), 1),
3461
+ t("div", kn, [
3462
+ t("div", Sn, S(s(o)("report.common.name")), 1),
3463
+ t("div", $n, [
3464
3464
  l($, {
3465
3465
  modelValue: e.value.name,
3466
- "onUpdate:modelValue": a[0] || (a[0] = (M) => e.value.name = M)
3466
+ "onUpdate:modelValue": a[0] || (a[0] = (T) => e.value.name = T)
3467
3467
  }, null, 8, ["modelValue"])
3468
3468
  ])
3469
3469
  ]),
3470
- t("div", $n, [
3471
- t("div", Dn, S(s(o)("report.integration.location")), 1),
3470
+ t("div", Dn, [
3471
+ t("div", An, S(s(o)("report.integration.location")), 1),
3472
3472
  l(f, {
3473
3473
  modelValue: e.value.platform.locationIds,
3474
- "onUpdate:modelValue": a[1] || (a[1] = (M) => e.value.platform.locationIds = M),
3474
+ "onUpdate:modelValue": a[1] || (a[1] = (T) => e.value.platform.locationIds = T),
3475
3475
  multiselect: !0,
3476
3476
  items: h.value,
3477
3477
  placeholder: "Select location",
3478
3478
  class: "flex-grow",
3479
- rules: [(M) => M.length !== 0 || "Please select at least 1 location"]
3479
+ rules: [(T) => T.length !== 0 || "Please select at least 1 location"]
3480
3480
  }, null, 8, ["modelValue", "items", "rules"])
3481
3481
  ]),
3482
- t("div", An, [
3483
- t("div", Vn, S(s(o)("report.integration.grouping.title")), 1),
3482
+ t("div", Vn, [
3483
+ t("div", Fn, S(s(o)("report.integration.grouping.title")), 1),
3484
3484
  l(f, {
3485
3485
  modelValue: e.value.platform.grouping,
3486
- "onUpdate:modelValue": a[2] || (a[2] = (M) => e.value.platform.grouping = M),
3486
+ "onUpdate:modelValue": a[2] || (a[2] = (T) => e.value.platform.grouping = T),
3487
3487
  multiselect: !1,
3488
3488
  items: b.value,
3489
3489
  placeholder: "Select grouping",
3490
3490
  class: "flex-grow"
3491
3491
  }, null, 8, ["modelValue", "items"])
3492
3492
  ]),
3493
- e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Fn, [
3494
- t("div", In, [
3493
+ e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", In, [
3494
+ t("div", Kn, [
3495
3495
  a[36] || (a[36] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
3496
3496
  t("span", null, S(s(o)("report.integration.discountByGroupKey")), 1)
3497
3497
  ]),
3498
- t("div", Kn, [
3498
+ t("div", Nn, [
3499
3499
  l(V, {
3500
3500
  "model-value": e.value.platform.discountByGroupKey ?? !1,
3501
3501
  style: { gap: 0 },
3502
- "onUpdate:modelValue": a[3] || (a[3] = (M) => {
3503
- e.value.platform.discountByGroupKey = M;
3502
+ "onUpdate:modelValue": a[3] || (a[3] = (T) => {
3503
+ e.value.platform.discountByGroupKey = T;
3504
3504
  })
3505
3505
  }, null, 8, ["model-value"])
3506
3506
  ])
3507
3507
  ])) : q("", !0)
3508
3508
  ]),
3509
- t("div", Nn, [
3509
+ t("div", Tn, [
3510
3510
  t("div", Mn, [
3511
3511
  l(ee, {
3512
3512
  "model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
3513
3513
  options: k("Debtor"),
3514
- "onUpdate:modelValue": a[4] || (a[4] = (M) => u({ key: "debtor", value: M.account }))
3514
+ "onUpdate:modelValue": a[4] || (a[4] = (T) => u({ key: "debtor", value: T.account }))
3515
3515
  }, null, 8, ["model-value", "options"]),
3516
3516
  l(ee, {
3517
3517
  "model-value": {
@@ -3519,7 +3519,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3519
3519
  account: e.value.platform.mappings.projectHeader
3520
3520
  },
3521
3521
  options: k("Project header"),
3522
- "onUpdate:modelValue": a[5] || (a[5] = (M) => u({ key: "projectHeader", value: M.account }))
3522
+ "onUpdate:modelValue": a[5] || (a[5] = (T) => u({ key: "projectHeader", value: T.account }))
3523
3523
  }, null, 8, ["model-value", "options"]),
3524
3524
  l(ee, {
3525
3525
  "model-value": {
@@ -3527,7 +3527,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3527
3527
  account: e.value.platform.mappings.projectDetail
3528
3528
  },
3529
3529
  options: k("Project detail"),
3530
- "onUpdate:modelValue": a[6] || (a[6] = (M) => u({ key: "projectDetail", value: M.account }))
3530
+ "onUpdate:modelValue": a[6] || (a[6] = (T) => u({ key: "projectDetail", value: T.account }))
3531
3531
  }, null, 8, ["model-value", "options"]),
3532
3532
  l(ee, {
3533
3533
  "model-value": {
@@ -3535,10 +3535,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3535
3535
  account: e.value.platform.mappings.customAttribute
3536
3536
  },
3537
3537
  options: k("Custom attribute tag"),
3538
- "onUpdate:modelValue": a[7] || (a[7] = (M) => u({ key: "customAttribute", value: M.account }))
3538
+ "onUpdate:modelValue": a[7] || (a[7] = (T) => u({ key: "customAttribute", value: T.account }))
3539
3539
  }, null, 8, ["model-value", "options"])
3540
3540
  ]),
3541
- t("div", Tn, [
3541
+ t("div", Rn, [
3542
3542
  l(ee, {
3543
3543
  "model-value": {
3544
3544
  key: "Rounding",
@@ -3550,12 +3550,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3550
3550
  account: { placeholder: "Account Code", editable: !0 },
3551
3551
  code: { placeholder: "Item Code", editable: !0 }
3552
3552
  },
3553
- "onUpdate:modelValue": a[8] || (a[8] = (M) => {
3553
+ "onUpdate:modelValue": a[8] || (a[8] = (T) => {
3554
3554
  var L, B, pe;
3555
- (pe = (B = (L = e.value) == null ? void 0 : L.platform) == null ? void 0 : B.mappings) != null && pe.rounding && (e.value.platform.mappings.rounding.account = M.account, e.value.platform.mappings.rounding.code = M.code);
3555
+ (pe = (B = (L = e.value) == null ? void 0 : L.platform) == null ? void 0 : B.mappings) != null && pe.rounding && (e.value.platform.mappings.rounding.account = T.account, e.value.platform.mappings.rounding.code = T.code);
3556
3556
  })
3557
3557
  }, null, 8, ["model-value"]),
3558
- (w(!0), j(Ie, null, We((te = (W = (H = e.value) == null ? void 0 : H.platform) == null ? void 0 : W.mappings) == null ? void 0 : te.charges, (M, L) => (w(), Q(ee, {
3558
+ (w(!0), j(Ie, null, We((te = (W = (H = e.value) == null ? void 0 : H.platform) == null ? void 0 : W.mappings) == null ? void 0 : te.charges, (T, L) => (w(), Q(ee, {
3559
3559
  key: `charge-${L}`,
3560
3560
  modelValue: e.value.platform.mappings.charges[L],
3561
3561
  "onUpdate:modelValue": (B) => e.value.platform.mappings.charges[L] = B,
@@ -3568,19 +3568,19 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3568
3568
  ])
3569
3569
  ]),
3570
3570
  l(U, { style: { margin: 0 } }),
3571
- t("div", Rn, [
3572
- t("div", Un, [
3573
- t("div", Pn, S(s(o)("report.integration.refNumFormat")), 1),
3571
+ t("div", Un, [
3572
+ t("div", Pn, [
3573
+ t("div", jn, S(s(o)("report.integration.refNumFormat")), 1),
3574
3574
  l(lt)
3575
3575
  ]),
3576
- t("div", jn, [
3576
+ t("div", Ln, [
3577
3577
  l(ee, {
3578
3578
  "model-value": {
3579
3579
  key: "Invoice no",
3580
3580
  account: e.value.platform.mappings.invoiceDocNo
3581
3581
  },
3582
3582
  options: k("Invoice no"),
3583
- "onUpdate:modelValue": a[9] || (a[9] = (M) => u({ key: "invoiceDocNo", value: M.account }))
3583
+ "onUpdate:modelValue": a[9] || (a[9] = (T) => u({ key: "invoiceDocNo", value: T.account }))
3584
3584
  }, null, 8, ["model-value", "options"]),
3585
3585
  l(ee, {
3586
3586
  "model-value": {
@@ -3588,7 +3588,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3588
3588
  account: e.value.platform.mappings.creditNoteDocNo
3589
3589
  },
3590
3590
  options: k("Credit note no"),
3591
- "onUpdate:modelValue": a[10] || (a[10] = (M) => u({ key: "creditNoteDocNo", value: M.account }))
3591
+ "onUpdate:modelValue": a[10] || (a[10] = (T) => u({ key: "creditNoteDocNo", value: T.account }))
3592
3592
  }, null, 8, ["model-value", "options"]),
3593
3593
  l(ee, {
3594
3594
  "model-value": {
@@ -3596,7 +3596,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3596
3596
  account: e.value.platform.mappings.paymentDocNo
3597
3597
  },
3598
3598
  options: k("Payment no"),
3599
- "onUpdate:modelValue": a[11] || (a[11] = (M) => u({ key: "paymentDocNo", value: M.account }))
3599
+ "onUpdate:modelValue": a[11] || (a[11] = (T) => u({ key: "paymentDocNo", value: T.account }))
3600
3600
  }, null, 8, ["model-value", "options"]),
3601
3601
  l(ee, {
3602
3602
  "model-value": {
@@ -3604,14 +3604,14 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3604
3604
  account: e.value.platform.mappings.refundDocNo
3605
3605
  },
3606
3606
  options: k("Refund no"),
3607
- "onUpdate:modelValue": a[12] || (a[12] = (M) => u({ key: "refundDocNo", value: M.account }))
3607
+ "onUpdate:modelValue": a[12] || (a[12] = (T) => u({ key: "refundDocNo", value: T.account }))
3608
3608
  }, null, 8, ["model-value", "options"])
3609
3609
  ])
3610
3610
  ]),
3611
3611
  l(U, { style: { margin: 0 } }),
3612
3612
  l(Xe, {
3613
3613
  modelValue: e.value.platform,
3614
- "onUpdate:modelValue": a[13] || (a[13] = (M) => e.value.platform = M),
3614
+ "onUpdate:modelValue": a[13] || (a[13] = (T) => e.value.platform = T),
3615
3615
  label: "email",
3616
3616
  "last-upload-date": (z = e.value.platform) == null ? void 0 : z.lastUploadDate,
3617
3617
  "error-logs": r.errorLogs,
@@ -3619,8 +3619,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3619
3619
  "is-auto-email-mode": !0
3620
3620
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
3621
3621
  l(U, { style: { margin: 0 } }),
3622
- t("div", Ln, [
3623
- t("div", On, S(s(o)("report.integration.items")), 1),
3622
+ t("div", On, [
3623
+ t("div", En, S(s(o)("report.integration.items")), 1),
3624
3624
  l(d, {
3625
3625
  variant: "secondary",
3626
3626
  "prepend-icon": "add",
@@ -3639,15 +3639,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3639
3639
  account: { placeholder: "Account Code", editable: !0 },
3640
3640
  code: { placeholder: "Item Code", editable: !0 }
3641
3641
  },
3642
- onRemove: a[15] || (a[15] = (M, L) => y("items", L, "mappings")),
3643
- "onUpdate:rows": a[16] || (a[16] = (M) => {
3642
+ onRemove: a[15] || (a[15] = (T, L) => y("items", L, "mappings")),
3643
+ "onUpdate:rows": a[16] || (a[16] = (T) => {
3644
3644
  var L, B;
3645
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.items = M);
3645
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.items = T);
3646
3646
  })
3647
3647
  }, null, 8, ["rows"]),
3648
3648
  l(U, { style: { margin: 0 } }),
3649
- t("div", En, [
3650
- t("div", Bn, S(s(o)("report.integration.taxes")), 1),
3649
+ t("div", Bn, [
3650
+ t("div", Yn, S(s(o)("report.integration.taxes")), 1),
3651
3651
  l(d, {
3652
3652
  variant: "secondary",
3653
3653
  "prepend-icon": "add",
@@ -3665,15 +3665,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3665
3665
  key: { placeholder: "FeedMe Key", editable: !0 },
3666
3666
  account: { placeholder: "Account Code", editable: !0 }
3667
3667
  },
3668
- onRemove: a[18] || (a[18] = (M, L) => y("taxes", L, "mappings")),
3669
- "onUpdate:rows": a[19] || (a[19] = (M) => {
3668
+ onRemove: a[18] || (a[18] = (T, L) => y("taxes", L, "mappings")),
3669
+ "onUpdate:rows": a[19] || (a[19] = (T) => {
3670
3670
  var L, B;
3671
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxes = M);
3671
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxes = T);
3672
3672
  })
3673
3673
  }, null, 8, ["rows"]),
3674
3674
  l(U, { style: { margin: 0 } }),
3675
- t("div", Yn, [
3676
- t("div", qn, S(s(o)("report.integration.taxesForRefund")), 1),
3675
+ t("div", qn, [
3676
+ t("div", Hn, S(s(o)("report.integration.taxesForRefund")), 1),
3677
3677
  l(d, {
3678
3678
  variant: "secondary",
3679
3679
  "prepend-icon": "add",
@@ -3691,15 +3691,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3691
3691
  key: { placeholder: "FeedMe Key", editable: !0 },
3692
3692
  account: { placeholder: "Account Code", editable: !0 }
3693
3693
  },
3694
- onRemove: a[21] || (a[21] = (M, L) => y("taxesForRefund", L, "mappings")),
3695
- "onUpdate:rows": a[22] || (a[22] = (M) => {
3694
+ onRemove: a[21] || (a[21] = (T, L) => y("taxesForRefund", L, "mappings")),
3695
+ "onUpdate:rows": a[22] || (a[22] = (T) => {
3696
3696
  var L, B;
3697
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxesForRefund = M);
3697
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxesForRefund = T);
3698
3698
  })
3699
3699
  }, null, 8, ["rows"]),
3700
3700
  l(U, { style: { margin: 0 } }),
3701
- t("div", Hn, [
3702
- t("div", zn, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
3701
+ t("div", zn, [
3702
+ t("div", Gn, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
3703
3703
  l(d, {
3704
3704
  variant: "secondary",
3705
3705
  "prepend-icon": "add",
@@ -3717,15 +3717,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3717
3717
  key: { placeholder: "FeedMe Key", editable: !0 },
3718
3718
  account: { placeholder: "Account Code", editable: !0 }
3719
3719
  },
3720
- onRemove: a[24] || (a[24] = (M, L) => y("taxRoundingAdjustments", L, "mappings")),
3721
- "onUpdate:rows": a[25] || (a[25] = (M) => {
3720
+ onRemove: a[24] || (a[24] = (T, L) => y("taxRoundingAdjustments", L, "mappings")),
3721
+ "onUpdate:rows": a[25] || (a[25] = (T) => {
3722
3722
  var L, B;
3723
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxRoundingAdjustments = M);
3723
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.taxRoundingAdjustments = T);
3724
3724
  })
3725
3725
  }, null, 8, ["rows"]),
3726
3726
  l(U, { style: { margin: 0 } }),
3727
- t("div", Gn, [
3728
- t("div", Qn, S(s(o)("report.integration.payments")), 1),
3727
+ t("div", Qn, [
3728
+ t("div", Wn, S(s(o)("report.integration.payments")), 1),
3729
3729
  l(d, {
3730
3730
  variant: "secondary",
3731
3731
  "prepend-icon": "add",
@@ -3743,15 +3743,15 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3743
3743
  key: { placeholder: "FeedMe Key", editable: !0 },
3744
3744
  account: { placeholder: "Payment Name", editable: !0 }
3745
3745
  },
3746
- onRemove: a[27] || (a[27] = (M, L) => y("payments", L, "mappings")),
3747
- "onUpdate:rows": a[28] || (a[28] = (M) => {
3746
+ onRemove: a[27] || (a[27] = (T, L) => y("payments", L, "mappings")),
3747
+ "onUpdate:rows": a[28] || (a[28] = (T) => {
3748
3748
  var L, B;
3749
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.payments = M);
3749
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.mappings && (e.value.platform.mappings.payments = T);
3750
3750
  })
3751
3751
  }, null, 8, ["rows"]),
3752
3752
  l(U, { style: { margin: 0 } }),
3753
3753
  n.value ? (w(), j(Ie, { key: 0 }, [
3754
- t("div", Wn, [
3754
+ t("div", Xn, [
3755
3755
  a[37] || (a[37] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
3756
3756
  l(d, {
3757
3757
  variant: "secondary",
@@ -3772,7 +3772,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3772
3772
  code: { placeholder: "Item Code", editable: !0 },
3773
3773
  uom: { placeholder: "UOM", editable: !0 }
3774
3774
  },
3775
- onRemove: a[30] || (a[30] = (M, L) => {
3775
+ onRemove: a[30] || (a[30] = (T, L) => {
3776
3776
  var B, pe, Fe;
3777
3777
  if (((Fe = (pe = (B = e.value) == null ? void 0 : B.platform) == null ? void 0 : pe.inventoryMappings) == null ? void 0 : Fe.items[L].key) === "DEFAULT") {
3778
3778
  s(p).open({
@@ -3783,13 +3783,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3783
3783
  }
3784
3784
  y("items", L, "inventoryMappings");
3785
3785
  }),
3786
- "onUpdate:rows": a[31] || (a[31] = (M) => {
3786
+ "onUpdate:rows": a[31] || (a[31] = (T) => {
3787
3787
  var L, B;
3788
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.inventoryMappings && (e.value.platform.inventoryMappings.items = M);
3788
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.inventoryMappings && (e.value.platform.inventoryMappings.items = T);
3789
3789
  })
3790
3790
  }, null, 8, ["rows"]),
3791
3791
  l(U, { style: { margin: 0 } }),
3792
- t("div", Xn, [
3792
+ t("div", Jn, [
3793
3793
  a[38] || (a[38] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
3794
3794
  l(d, {
3795
3795
  variant: "secondary",
@@ -3809,12 +3809,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3809
3809
  code: { placeholder: "Code", editable: !0 },
3810
3810
  name: { placeholder: "Name", editable: !0 }
3811
3811
  },
3812
- onRemove: a[33] || (a[33] = (M, L) => {
3812
+ onRemove: a[33] || (a[33] = (T, L) => {
3813
3813
  y("suppliers", L, "inventoryMappings");
3814
3814
  }),
3815
- "onUpdate:rows": a[34] || (a[34] = (M) => {
3815
+ "onUpdate:rows": a[34] || (a[34] = (T) => {
3816
3816
  var L, B;
3817
- (B = (L = e.value) == null ? void 0 : L.platform) != null && B.inventoryMappings && (e.value.platform.inventoryMappings.suppliers = M);
3817
+ (B = (L = e.value) == null ? void 0 : L.platform) != null && B.inventoryMappings && (e.value.platform.inventoryMappings.suppliers = T);
3818
3818
  })
3819
3819
  }, null, 8, ["rows"])
3820
3820
  ], 64)) : q("", !0)
@@ -3823,13 +3823,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3823
3823
  ])) : q("", !0);
3824
3824
  };
3825
3825
  }
3826
- }), Zn = { class: "h-full flex flex-col gap-16" }, es = { class: "flex flex-row gap-2 justify-between items-center" }, ts = {
3826
+ }), es = { class: "h-full flex flex-col gap-16" }, ts = { class: "flex flex-row gap-2 justify-between items-center" }, os = {
3827
3827
  key: 0,
3828
3828
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
3829
- }, os = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, as = {
3829
+ }, as = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ls = {
3830
3830
  key: 1,
3831
3831
  class: "w-full h-full flex flex-col flex-grow"
3832
- }, ls = /* @__PURE__ */ se({
3832
+ }, ns = /* @__PURE__ */ se({
3833
3833
  __name: "Preview",
3834
3834
  props: {
3835
3835
  modelValue: { required: !0 },
@@ -4017,17 +4017,17 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4017
4017
  header: "Item Amount",
4018
4018
  enableSorting: !1
4019
4019
  }
4020
- ], R = re(g, "modelValue"), T = Z(!1), c = $e(), { dateRange: x } = qe(Se());
4020
+ ], R = re(g, "modelValue"), M = Z(!1), c = $e(), { dateRange: x } = qe(Se());
4021
4021
  Ae(
4022
4022
  () => x.value,
4023
4023
  async () => {
4024
4024
  if (R.value._id)
4025
4025
  try {
4026
- T.value = !0, e.value = await Oe(R.value._id);
4026
+ M.value = !0, e.value = await Oe(R.value._id);
4027
4027
  } catch (m) {
4028
4028
  c.open({ message: m.message, type: "error" });
4029
4029
  } finally {
4030
- T.value = !1;
4030
+ M.value = !1;
4031
4031
  }
4032
4032
  },
4033
4033
  {
@@ -4040,11 +4040,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4040
4040
  c.open({ message: "Invalid accounting setting", type: "error" });
4041
4041
  return;
4042
4042
  }
4043
- T.value = !0, await at(R.value._id, [y.value]);
4043
+ M.value = !0, await at(R.value._id, [y.value]);
4044
4044
  } catch (m) {
4045
4045
  m.message && c.open({ message: m.message, type: "error" }), Array.isArray(m.errors) ? m.errors.forEach((u) => c.open({ message: String(u), type: "error" })) : typeof m.errors == "string" && c.open({ message: m.errors, type: "error" });
4046
4046
  } finally {
4047
- T.value = !1;
4047
+ M.value = !1;
4048
4048
  }
4049
4049
  }
4050
4050
  const P = G(() => {
@@ -4068,24 +4068,24 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4068
4068
  ], y = Z(A[0].value);
4069
4069
  return (m, u) => {
4070
4070
  const k = F("FmButton"), i = F("FmCircularProgress"), n = F("FmTabs"), b = F("FmTable");
4071
- return w(), j("div", Zn, [
4072
- t("div", es, [
4071
+ return w(), j("div", es, [
4072
+ t("div", ts, [
4073
4073
  l(Ye, {
4074
4074
  "date-range": s(x),
4075
- "onUpdate:dateRange": u[0] || (u[0] = (r) => Te(x) ? x.value = r : null),
4075
+ "onUpdate:dateRange": u[0] || (u[0] = (r) => Me(x) ? x.value = r : null),
4076
4076
  compare: !1
4077
4077
  }, null, 8, ["date-range"]),
4078
4078
  l(k, {
4079
- loading: T.value,
4079
+ loading: M.value,
4080
4080
  variant: "primary",
4081
4081
  label: s(o)("report.common.download"),
4082
4082
  onClick: h
4083
4083
  }, null, 8, ["loading", "label"])
4084
4084
  ]),
4085
- T.value ? (w(), j("div", ts, [
4085
+ M.value ? (w(), j("div", os, [
4086
4086
  l(i, { size: "xl" }),
4087
- t("span", os, S(s(o)("report.common.isLoading")), 1)
4088
- ])) : (w(), j("div", as, [
4087
+ t("span", as, S(s(o)("report.common.isLoading")), 1)
4088
+ ])) : (w(), j("div", ls, [
4089
4089
  l(n, {
4090
4090
  "model-value": y.value,
4091
4091
  "onUpdate:modelValue": u[1] || (u[1] = (r) => y.value = r),
@@ -4107,7 +4107,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4107
4107
  ]);
4108
4108
  };
4109
4109
  }
4110
- }), ns = { class: "h-full relative flex flex-col" }, ss = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, rs = /* @__PURE__ */ se({
4110
+ }), ss = { class: "h-full relative flex flex-col" }, rs = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, is = /* @__PURE__ */ se({
4111
4111
  __name: "SQL",
4112
4112
  props: /* @__PURE__ */ fe({
4113
4113
  errorLogs: {}
@@ -4131,17 +4131,17 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4131
4131
  ], K = Ce(), R = G(() => {
4132
4132
  switch (v.value) {
4133
4133
  case "preview":
4134
- return ls;
4134
+ return ns;
4135
4135
  case "setting":
4136
- return Jn;
4136
+ return Zn;
4137
4137
  default:
4138
4138
  return null;
4139
4139
  }
4140
4140
  });
4141
- return (T, c) => {
4141
+ return (M, c) => {
4142
4142
  var P;
4143
4143
  const x = F("FmPageHead"), h = F("FmTabs");
4144
- return w(), j("div", ns, [
4144
+ return w(), j("div", ss, [
4145
4145
  l(x, {
4146
4146
  title: ((P = e.value) == null ? void 0 : P.name) || "SQL",
4147
4147
  "back-button": !0,
@@ -4158,7 +4158,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4158
4158
  "onUpdate:modelValue": c[1] || (c[1] = (A) => v.value = A),
4159
4159
  items: I
4160
4160
  }, null, 8, ["model-value"]),
4161
- t("div", ss, [
4161
+ t("div", rs, [
4162
4162
  (w(), Q(Re(R.value), {
4163
4163
  modelValue: e.value,
4164
4164
  "onUpdate:modelValue": c[2] || (c[2] = (A) => e.value = A),
@@ -4168,22 +4168,22 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4168
4168
  ]);
4169
4169
  };
4170
4170
  }
4171
- }), is = {
4171
+ }), ds = {
4172
4172
  key: 0,
4173
4173
  class: "flex flex-col h-full"
4174
- }, ds = { class: "flex flex-col gap-16 pb-[24px]" }, ps = { class: "flex flex-row justify-between items-center gap-2" }, ms = { class: "fm-typo-en-title-sm-800" }, us = { class: "flex flex-row gap-2 items-center" }, cs = { class: "flex flex-row gap-2 items-center" }, fs = { class: "relative group cursor-pointer" }, gs = { 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" }, vs = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, ys = { class: "w-[90%] flex flex-col gap-24" }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bs = { class: "flex flex-col max-w-[100%]" }, ws = { class: "w-[25%] font-semibold" }, hs = { class: "flex-grow" }, _s = { class: "flex flex-col gap-24 pt-[24px]" }, Cs = { class: "flex flex-col justify-between" }, ks = { class: "w-[25%] font-semibold" }, Ss = { class: "flex-grow" }, $s = { class: "flex flex-col justify-between" }, Ds = { class: "w-[25%] font-semibold" }, As = { class: "flex-grow" }, Vs = { class: "flex flex-col gap-16" }, Fs = { class: "fm-typo-en-title-sm-800" }, Is = { class: "flex flex-col max-w-[100%]" }, Ks = { class: "w-[25%] font-semibold" }, Ns = { class: "flex-grow" }, Ms = { class: "flex flex-col max-w-[100%]" }, Ts = { class: "w-[25%] font-semibold" }, Rs = { class: "flex flex-col max-w-[100%]" }, Us = { class: "w-[25%] font-semibold" }, Ps = {
4174
+ }, ps = { class: "flex flex-col gap-16 pb-[24px]" }, ms = { class: "flex flex-row justify-between items-center gap-2" }, us = { class: "fm-typo-en-title-sm-800" }, cs = { class: "flex flex-row gap-2 items-center" }, fs = { class: "flex flex-row gap-2 items-center" }, gs = { class: "relative group cursor-pointer" }, vs = { 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" }, ys = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, xs = { class: "w-[90%] flex flex-col gap-24" }, bs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ws = { class: "flex flex-col max-w-[100%]" }, hs = { class: "w-[25%] font-semibold" }, _s = { class: "flex-grow" }, Cs = { class: "flex flex-col gap-24 pt-[24px]" }, ks = { class: "flex flex-col justify-between" }, Ss = { class: "w-[25%] font-semibold" }, $s = { class: "flex-grow" }, Ds = { class: "flex flex-col justify-between" }, As = { class: "w-[25%] font-semibold" }, Vs = { class: "flex-grow" }, Fs = { class: "flex flex-col gap-16" }, Is = { class: "fm-typo-en-title-sm-800" }, Ks = { class: "flex flex-col max-w-[100%]" }, Ns = { class: "w-[25%] font-semibold" }, Ts = { class: "flex-grow" }, Ms = { class: "flex flex-col max-w-[100%]" }, Rs = { class: "w-[25%] font-semibold" }, Us = { class: "flex flex-col max-w-[100%]" }, Ps = { class: "w-[25%] font-semibold" }, js = {
4175
4175
  key: 0,
4176
4176
  class: "flex flex-col max-w-[100%]"
4177
- }, js = { class: "flex flex-col gap-16" }, Ls = { class: "xs:grid-cols-1 grid gap-16" }, Os = { key: 1 }, Es = { class: "flex flex-col gap-16 pt-3 pb-3" }, Bs = { class: "flex flex-row items-center gap-5" }, Ys = { class: "fm-typo-en-title-sm-800" }, qs = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Hs = { class: "flex flex-row items-center justify-between gap-x-16" }, zs = { class: "fm-typo-en-title-sm-800" }, Gs = { class: "flex flex-row items-center justify-between gap-x-16" }, Qs = { class: "fm-typo-en-title-sm-800" }, Ws = { class: "flex flex-row items-center justify-between gap-x-16" }, Xs = { class: "fm-typo-en-title-sm-800" }, Js = { class: "flex flex-row items-center justify-between gap-x-16" }, Zs = { class: "fm-typo-en-title-sm-800" }, er = { class: "flex flex-row items-center justify-between" }, tr = { class: "flex-grow" }, or = {
4177
+ }, Ls = { class: "flex flex-col gap-16" }, Os = { class: "xs:grid-cols-1 grid gap-16" }, Es = { key: 1 }, Bs = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ys = { class: "flex flex-row items-center gap-5" }, qs = { class: "fm-typo-en-title-sm-800" }, Hs = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, zs = { class: "flex flex-row items-center justify-between gap-x-16" }, Gs = { class: "fm-typo-en-title-sm-800" }, Qs = { class: "flex flex-row items-center justify-between gap-x-16" }, Ws = { class: "fm-typo-en-title-sm-800" }, Xs = { class: "flex flex-row items-center justify-between gap-x-16" }, Js = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex flex-row items-center justify-between gap-x-16" }, er = { class: "fm-typo-en-title-sm-800" }, tr = { class: "flex flex-row items-center justify-between" }, or = { class: "flex-grow" }, ar = {
4178
4178
  key: 0,
4179
4179
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4180
- }, ar = {
4180
+ }, lr = {
4181
4181
  key: 1,
4182
4182
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4183
- }, lr = {
4183
+ }, nr = {
4184
4184
  key: 3,
4185
4185
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4186
- }, nr = /* @__PURE__ */ se({
4186
+ }, sr = /* @__PURE__ */ se({
4187
4187
  __name: "Setting",
4188
4188
  props: /* @__PURE__ */ fe({
4189
4189
  retrievedMethods: {
@@ -4204,8 +4204,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4204
4204
  }),
4205
4205
  emits: ["update:modelValue"],
4206
4206
  setup(g) {
4207
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
4208
- () => T.map((r) => ({ label: r.name, value: r.id }))
4207
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
4208
+ () => M.map((r) => ({ label: r.name, value: r.id }))
4209
4209
  );
4210
4210
  function P(r) {
4211
4211
  var a;
@@ -4350,7 +4350,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4350
4350
  async function b() {
4351
4351
  await K(async () => {
4352
4352
  try {
4353
- await Me(e.value._id), await v.getSettings();
4353
+ await Te(e.value._id), await v.getSettings();
4354
4354
  } catch (r) {
4355
4355
  p.open({ type: "error", message: r.message });
4356
4356
  }
@@ -4361,19 +4361,19 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4361
4361
  }), (r, a) => {
4362
4362
  var _, O, H, W, te, z, ie, ue, ge, ve, ye, xe, be, we, ae, X, oe;
4363
4363
  const D = F("FmIcon"), d = F("FmButton"), U = F("FmSelect"), $ = F("FmMenuDivider"), f = F("FmTextField"), V = F("FmCircularProgress");
4364
- return (O = (_ = e.value) == null ? void 0 : _.platform) != null && O.mappings ? (w(), j("div", is, [
4365
- t("div", ds, [
4366
- t("div", ps, [
4367
- t("div", ms, S(s(o)("report.integration.connect")), 1),
4368
- t("div", us, [
4369
- t("div", cs, [
4370
- t("div", fs, [
4364
+ return (O = (_ = e.value) == null ? void 0 : _.platform) != null && O.mappings ? (w(), j("div", ds, [
4365
+ t("div", ps, [
4366
+ t("div", ms, [
4367
+ t("div", us, S(s(o)("report.integration.connect")), 1),
4368
+ t("div", cs, [
4369
+ t("div", fs, [
4370
+ t("div", gs, [
4371
4371
  l(D, {
4372
4372
  name: "refresh",
4373
4373
  class: "p-2 bg-gray-100 rounded-full",
4374
4374
  onClick: b
4375
4375
  }),
4376
- t("span", gs, S(s(o)("report.integration.refreshSetting")), 1)
4376
+ t("span", vs, S(s(o)("report.integration.refreshSettingTooltip")), 1)
4377
4377
  ]),
4378
4378
  l(d, {
4379
4379
  variant: "tertiary",
@@ -4390,12 +4390,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4390
4390
  ])
4391
4391
  ])
4392
4392
  ]),
4393
- t("div", vs, [
4394
- t("div", ys, [
4395
- t("div", xs, S(s(o)("report.integration.biztory.authenticate")), 1),
4396
- t("div", bs, [
4397
- t("div", ws, " Biztory " + S(s(o)("report.integration.biztory.version")), 1),
4398
- t("div", hs, [
4393
+ t("div", ys, [
4394
+ t("div", xs, [
4395
+ t("div", bs, S(s(o)("report.integration.biztory.authenticate")), 1),
4396
+ t("div", ws, [
4397
+ t("div", hs, " Biztory " + S(s(o)("report.integration.biztory.version")), 1),
4398
+ t("div", _s, [
4399
4399
  l(U, {
4400
4400
  modelValue: e.value.platform.mappings.version,
4401
4401
  "onUpdate:modelValue": a[0] || (a[0] = (N) => e.value.platform.mappings.version = N),
@@ -4408,10 +4408,10 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4408
4408
  ])
4409
4409
  ]),
4410
4410
  l($, { style: { margin: 0 } }),
4411
- t("div", _s, [
4412
- t("div", Cs, [
4413
- t("div", ks, S(s(o)("report.integration.biztory.subdomain")), 1),
4414
- t("div", Ss, [
4411
+ t("div", Cs, [
4412
+ t("div", ks, [
4413
+ t("div", Ss, S(s(o)("report.integration.biztory.subdomain")), 1),
4414
+ t("div", $s, [
4415
4415
  l(f, {
4416
4416
  modelValue: e.value.platform.subdomain,
4417
4417
  "onUpdate:modelValue": a[1] || (a[1] = (N) => e.value.platform.subdomain = N),
@@ -4419,9 +4419,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4419
4419
  }, null, 8, ["modelValue"])
4420
4420
  ])
4421
4421
  ]),
4422
- t("div", $s, [
4423
- t("div", Ds, S(s(o)("report.integration.biztory.apiKey")), 1),
4424
- t("div", As, [
4422
+ t("div", Ds, [
4423
+ t("div", As, S(s(o)("report.integration.biztory.apiKey")), 1),
4424
+ t("div", Vs, [
4425
4425
  l(f, {
4426
4426
  modelValue: e.value.platform.api_key,
4427
4427
  "onUpdate:modelValue": a[2] || (a[2] = (N) => e.value.platform.api_key = N),
@@ -4429,11 +4429,11 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4429
4429
  }, null, 8, ["modelValue"])
4430
4430
  ])
4431
4431
  ]),
4432
- t("div", Vs, [
4433
- t("div", Fs, S(s(o)("report.integration.general")), 1),
4434
- t("div", Is, [
4435
- t("div", Ks, S(s(o)("report.common.name")), 1),
4436
- t("div", Ns, [
4432
+ t("div", Fs, [
4433
+ t("div", Is, S(s(o)("report.integration.general")), 1),
4434
+ t("div", Ks, [
4435
+ t("div", Ns, S(s(o)("report.common.name")), 1),
4436
+ t("div", Ts, [
4437
4437
  l(f, {
4438
4438
  modelValue: e.value.name,
4439
4439
  "onUpdate:modelValue": a[3] || (a[3] = (N) => e.value.name = N)
@@ -4441,7 +4441,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4441
4441
  ])
4442
4442
  ]),
4443
4443
  t("div", Ms, [
4444
- t("div", Ts, S(s(o)("report.common.location")), 1),
4444
+ t("div", Rs, S(s(o)("report.common.location")), 1),
4445
4445
  l(U, {
4446
4446
  modelValue: e.value.platform.locationIds,
4447
4447
  "onUpdate:modelValue": a[4] || (a[4] = (N) => e.value.platform.locationIds = N),
@@ -4451,8 +4451,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4451
4451
  class: "flex-grow"
4452
4452
  }, null, 8, ["modelValue", "items", "placeholder"])
4453
4453
  ]),
4454
- t("div", Rs, [
4455
- t("div", Us, S(s(o)("report.integration.grouping.title")), 1),
4454
+ t("div", Us, [
4455
+ t("div", Ps, S(s(o)("report.integration.grouping.title")), 1),
4456
4456
  l(U, {
4457
4457
  modelValue: e.value.platform.grouping,
4458
4458
  "onUpdate:modelValue": a[5] || (a[5] = (N) => e.value.platform.grouping = N),
@@ -4463,7 +4463,7 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4463
4463
  disabled: ""
4464
4464
  }, null, 8, ["modelValue", "placeholder"])
4465
4465
  ]),
4466
- e.value.platform.mappings.version == "v1" ? (w(), j("div", Ps, [
4466
+ e.value.platform.mappings.version == "v1" ? (w(), j("div", js, [
4467
4467
  a[26] || (a[26] = t("div", { class: "w-[33%] font-semibold" }, "Payee ID", -1)),
4468
4468
  e.value.platform.mappings.version == "v1" ? (w(), Q(ee, {
4469
4469
  key: 0,
@@ -4475,13 +4475,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4475
4475
  removable: !1
4476
4476
  }, null, 8, ["modelValue"])) : q("", !0)
4477
4477
  ])) : q("", !0),
4478
- t("div", js, [
4479
- t("div", Ls, [
4478
+ t("div", Ls, [
4479
+ t("div", Os, [
4480
4480
  !g.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (w(), Q(V, {
4481
4481
  key: 0,
4482
4482
  size: "xl"
4483
4483
  })) : q("", !0),
4484
- g.retrievedCustomers.isLoaded && g.retrievedCustomers.data && ((H = g.retrievedCustomers.data) == null ? void 0 : H.length) != 0 ? (w(), j("div", Os, [
4484
+ g.retrievedCustomers.isLoaded && g.retrievedCustomers.data && ((H = g.retrievedCustomers.data) == null ? void 0 : H.length) != 0 ? (w(), j("div", Es, [
4485
4485
  e.value.platform.mappings.version == "v2" ? (w(), Q(dt, {
4486
4486
  key: 0,
4487
4487
  modelValue: e.value.platform.mappings.payeeId,
@@ -4502,12 +4502,12 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4502
4502
  ])
4503
4503
  ]),
4504
4504
  l($, { style: { margin: 0 } }),
4505
- t("div", Es, [
4506
- t("div", Bs, [
4507
- t("div", Ys, S(s(o)("report.integration.refNumFormat")), 1),
4505
+ t("div", Bs, [
4506
+ t("div", Ys, [
4507
+ t("div", qs, S(s(o)("report.integration.refNumFormat")), 1),
4508
4508
  l(lt)
4509
4509
  ]),
4510
- t("div", qs, [
4510
+ t("div", Hs, [
4511
4511
  l(ee, {
4512
4512
  "model-value": {
4513
4513
  key: "Invoice no",
@@ -4554,8 +4554,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4554
4554
  "integration-id": e.value._id
4555
4555
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
4556
4556
  l($, { style: { margin: 0 } }),
4557
- t("div", Hs, [
4558
- t("div", zs, S(s(o)("report.integration.biztory.items")), 1),
4557
+ t("div", zs, [
4558
+ t("div", Gs, S(s(o)("report.integration.biztory.items")), 1),
4559
4559
  l(d, {
4560
4560
  variant: "secondary",
4561
4561
  "prepend-icon": "add",
@@ -4580,8 +4580,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4580
4580
  })
4581
4581
  }, null, 8, ["rows"]),
4582
4582
  l($, { style: { margin: 0 } }),
4583
- t("div", Gs, [
4584
- t("div", Qs, S(s(o)("report.integration.biztory.taxes")), 1),
4583
+ t("div", Qs, [
4584
+ t("div", Ws, S(s(o)("report.integration.biztory.taxes")), 1),
4585
4585
  l(d, {
4586
4586
  variant: "secondary",
4587
4587
  "prepend-icon": "add",
@@ -4606,8 +4606,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4606
4606
  })
4607
4607
  }, null, 8, ["rows"]),
4608
4608
  l($, { style: { margin: 0 } }),
4609
- t("div", Ws, [
4610
- t("div", Xs, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
4609
+ t("div", Xs, [
4610
+ t("div", Js, S(s(o)("report.integration.taxRoundingAdjustments")), 1),
4611
4611
  l(d, {
4612
4612
  variant: "secondary",
4613
4613
  "prepend-icon": "add",
@@ -4632,8 +4632,8 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4632
4632
  })
4633
4633
  }, null, 8, ["rows"]),
4634
4634
  l($, { style: { margin: 0 } }),
4635
- t("div", Js, [
4636
- t("div", Zs, S(s(o)("report.integration.biztory.payments")), 1),
4635
+ t("div", Zs, [
4636
+ t("div", er, S(s(o)("report.integration.biztory.payments")), 1),
4637
4637
  l(d, {
4638
4638
  variant: "secondary",
4639
4639
  "prepend-icon": "add",
@@ -4641,9 +4641,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4641
4641
  onClick: a[22] || (a[22] = () => u("paymentMethods"))
4642
4642
  })
4643
4643
  ]),
4644
- t("div", er, [
4644
+ t("div", tr, [
4645
4645
  a[27] || (a[27] = t("div", { class: "w-[25%]" }, "Payment Term", -1)),
4646
- t("div", tr, [
4646
+ t("div", or, [
4647
4647
  l(ee, {
4648
4648
  modelValue: e.value.platform.mappings.paymentTerm,
4649
4649
  "onUpdate:modelValue": a[23] || (a[23] = (N) => e.value.platform.mappings.paymentTerm = N),
@@ -4656,13 +4656,13 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4656
4656
  }, null, 8, ["modelValue"])
4657
4657
  ])
4658
4658
  ]),
4659
- g.retrievedMethods.isError ? q("", !0) : (w(), j("div", or, S(s(o)("report.integration.biztory.paymentTerm")), 1)),
4660
- g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (w(), j("span", ar, S(s(o)("report.integration.biztory.noPaymentMethods")), 1)) : q("", !0),
4659
+ g.retrievedMethods.isError ? q("", !0) : (w(), j("div", ar, S(s(o)("report.integration.biztory.paymentTerm")), 1)),
4660
+ g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (w(), j("span", lr, S(s(o)("report.integration.biztory.noPaymentMethods")), 1)) : q("", !0),
4661
4661
  g.retrievedMethods.isLoaded ? q("", !0) : (w(), Q(V, {
4662
4662
  key: 2,
4663
4663
  size: "xl"
4664
4664
  })),
4665
- g.retrievedMethods.isError ? (w(), j("span", lr, S(s(o)("report.integration.biztory.error")), 1)) : q("", !0),
4665
+ g.retrievedMethods.isError ? (w(), j("span", nr, S(s(o)("report.integration.biztory.error")), 1)) : q("", !0),
4666
4666
  g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length != 0 ? (w(), Q(le, {
4667
4667
  key: 4,
4668
4668
  "header-items": ["FeedMe Key", "Payment Name"],
@@ -4691,9 +4691,9 @@ const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4691
4691
  };
4692
4692
  }
4693
4693
  });
4694
- function sr(g) {
4694
+ function rr(g) {
4695
4695
  return g.reduce((o, e) => {
4696
- var I, K, R, T, c, x, h, P, A, y, m, u, k, i, n, b, r, a, D, d, U, $;
4696
+ var I, K, R, M, c, x, h, P, A, y, m, u, k, i, n, b, r, a, D, d, U, $;
4697
4697
  const { invoice: p } = e, v = o.length;
4698
4698
  o[v] = {
4699
4699
  invoice_date: p.invoice_date,
@@ -4705,7 +4705,7 @@ function sr(g) {
4705
4705
  item_code: (I = p.items[0]) == null ? void 0 : I.code,
4706
4706
  item_desc: (K = p.items[0]) == null ? void 0 : K.description,
4707
4707
  item_price: (R = p.items[0]) == null ? void 0 : R.price,
4708
- item_tax: (T = p.items[0]) == null ? void 0 : T.total_tax,
4708
+ item_tax: (M = p.items[0]) == null ? void 0 : M.total_tax,
4709
4709
  item_tax_label: ((c = p.items[0]) == null ? void 0 : c.tax_label) || "-",
4710
4710
  payment_amount: ((h = (x = p.transactions) == null ? void 0 : x[0]) == null ? void 0 : h.amount) || void 0,
4711
4711
  payment_method: ((A = (P = p.transactions) == null ? void 0 : P[0]) == null ? void 0 : A.payment_method) || "-",
@@ -4734,7 +4734,7 @@ function sr(g) {
4734
4734
  return o;
4735
4735
  }, []);
4736
4736
  }
4737
- const rr = [
4737
+ const ir = [
4738
4738
  {
4739
4739
  accessorKey: "invoice_date",
4740
4740
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
@@ -4806,15 +4806,15 @@ const rr = [
4806
4806
  enableSorting: !1
4807
4807
  }
4808
4808
  ];
4809
- function ir(g) {
4809
+ function dr(g) {
4810
4810
  return g.reduce((o, e) => {
4811
- var R, T, c, x, h, P, A, y, m, u, k, i, n, b;
4811
+ var R, M, c, x, h, P, A, y, m, u, k, i, n, b;
4812
4812
  const { invoice: p, payments: v } = e, I = o.length;
4813
4813
  o[I] = {
4814
4814
  invoice_date: p.invoice_date,
4815
4815
  ref_num: e.isRefund && e.credit_notes && e.credit_notes.length > 0 ? ((R = e.credit_notes[0]) == null ? void 0 : R.ref_num) ?? p.ref_num : p.ref_num,
4816
4816
  total: p.total,
4817
- item_code: (T = p.items[0]) == null ? void 0 : T.code,
4817
+ item_code: (M = p.items[0]) == null ? void 0 : M.code,
4818
4818
  item_description: (c = p.items[0]) == null ? void 0 : c.description,
4819
4819
  item_price: (x = p.items[0]) == null ? void 0 : x.price,
4820
4820
  item_tax_label: ((h = p.items[0]) == null ? void 0 : h.tax_label) ?? "",
@@ -4854,7 +4854,7 @@ function ir(g) {
4854
4854
  return o;
4855
4855
  }, []);
4856
4856
  }
4857
- const dr = [
4857
+ const pr = [
4858
4858
  {
4859
4859
  accessorKey: "invoice_date",
4860
4860
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
@@ -4920,10 +4920,10 @@ const dr = [
4920
4920
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method (ID)"),
4921
4921
  enableSorting: !1
4922
4922
  }
4923
- ], pr = { class: "h-full flex flex-col gap-16" }, mr = { class: "flex flex-row gap-2 justify-between items-center" }, ur = {
4923
+ ], mr = { class: "h-full flex flex-col gap-16" }, ur = { class: "flex flex-row gap-2 justify-between items-center" }, cr = {
4924
4924
  key: 0,
4925
4925
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
4926
- }, cr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fr = /* @__PURE__ */ se({
4926
+ }, fr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gr = /* @__PURE__ */ se({
4927
4927
  __name: "Preview",
4928
4928
  props: {
4929
4929
  modelValue: { required: !0 },
@@ -4951,17 +4951,17 @@ const dr = [
4951
4951
  const R = G(() => {
4952
4952
  switch (e.value.platform.mappings.version) {
4953
4953
  case "v1":
4954
- return sr(K.value);
4954
+ return rr(K.value);
4955
4955
  case "v2":
4956
- return ir(K.value);
4956
+ return dr(K.value);
4957
4957
  }
4958
4958
  return [];
4959
- }), T = G(() => {
4959
+ }), M = G(() => {
4960
4960
  switch (e.value.platform.mappings.version) {
4961
4961
  case "v1":
4962
- return rr;
4962
+ return ir;
4963
4963
  case "v2":
4964
- return dr;
4964
+ return pr;
4965
4965
  }
4966
4966
  return [];
4967
4967
  });
@@ -4976,11 +4976,11 @@ const dr = [
4976
4976
  }
4977
4977
  return (x, h) => {
4978
4978
  const P = F("FmButton"), A = F("FmCircularProgress"), y = F("FmTable");
4979
- return w(), j("div", pr, [
4980
- t("div", mr, [
4979
+ return w(), j("div", mr, [
4980
+ t("div", ur, [
4981
4981
  l(Ye, {
4982
4982
  "date-range": s(I),
4983
- "onUpdate:dateRange": h[0] || (h[0] = (m) => Te(I) ? I.value = m : null),
4983
+ "onUpdate:dateRange": h[0] || (h[0] = (m) => Me(I) ? I.value = m : null),
4984
4984
  compare: !1
4985
4985
  }, null, 8, ["date-range"]),
4986
4986
  l(P, {
@@ -4990,19 +4990,19 @@ const dr = [
4990
4990
  onClick: c
4991
4991
  }, null, 8, ["loading"])
4992
4992
  ]),
4993
- p.value ? (w(), j("div", ur, [
4993
+ p.value ? (w(), j("div", cr, [
4994
4994
  l(A, { size: "xl" }),
4995
- t("span", cr, S(s(o)("report.common.isLoading")), 1)
4995
+ t("span", fr, S(s(o)("report.common.isLoading")), 1)
4996
4996
  ])) : (w(), Q(y, {
4997
4997
  key: 1,
4998
4998
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
4999
4999
  "row-data": R.value,
5000
- "column-defs": T.value
5000
+ "column-defs": M.value
5001
5001
  }, null, 8, ["row-data", "column-defs"]))
5002
5002
  ]);
5003
5003
  };
5004
5004
  }
5005
- }), gr = { class: "h-full relative flex flex-col" }, vr = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, yr = /* @__PURE__ */ se({
5005
+ }), vr = { class: "h-full relative flex flex-col" }, yr = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, xr = /* @__PURE__ */ se({
5006
5006
  __name: "Biztory",
5007
5007
  props: /* @__PURE__ */ fe({
5008
5008
  errorLogs: {}
@@ -5027,13 +5027,13 @@ const dr = [
5027
5027
  switch (v.value) {
5028
5028
  case "preview":
5029
5029
  return {
5030
- component: fr
5030
+ component: gr
5031
5031
  };
5032
5032
  case "setting":
5033
5033
  return {
5034
- component: nr,
5034
+ component: sr,
5035
5035
  props: {
5036
- retrievedMethods: T.value,
5036
+ retrievedMethods: M.value,
5037
5037
  retrievedCustomers: c.value,
5038
5038
  errorLogs: p.errorLogs
5039
5039
  }
@@ -5041,7 +5041,7 @@ const dr = [
5041
5041
  default:
5042
5042
  return null;
5043
5043
  }
5044
- }), T = Z({}), c = Z({}), x = (m, u) => m.map((k) => ({
5044
+ }), M = Z({}), c = Z({}), x = (m, u) => m.map((k) => ({
5045
5045
  label: u.length > 2 ? `ID:${k[u[2]]} [${k[u[0]]}] ${k[u[1]]}` : `[${k[u[0]]}] ${k[u[1]]}`,
5046
5046
  value: k.id,
5047
5047
  cnId: k.cnId ? k.cnId : null
@@ -5059,14 +5059,14 @@ const dr = [
5059
5059
  (m = e.value.platform.mappings) != null && m.version && await A(
5060
5060
  ht,
5061
5061
  h,
5062
- T,
5062
+ M,
5063
5063
  "Failed to fetch payment methods:"
5064
5064
  ), ((u = e.value.platform.mappings) == null ? void 0 : u.version) == "v2" && await A(
5065
5065
  _t,
5066
5066
  P,
5067
5067
  c,
5068
5068
  "Failed to fetch customers:"
5069
- ), T.value.isLoaded = !0, c.value.isLoaded = !0;
5069
+ ), M.value.isLoaded = !0, c.value.isLoaded = !0;
5070
5070
  };
5071
5071
  return nt(y), Ae(() => {
5072
5072
  var m;
@@ -5074,7 +5074,7 @@ const dr = [
5074
5074
  }, y), (m, u) => {
5075
5075
  var n, b, r;
5076
5076
  const k = F("FmPageHead"), i = F("FmTabs");
5077
- return w(), j("div", gr, [
5077
+ return w(), j("div", vr, [
5078
5078
  l(k, {
5079
5079
  title: ((n = e.value) == null ? void 0 : n.name) || "Biztory",
5080
5080
  "back-button": !0,
@@ -5091,7 +5091,7 @@ const dr = [
5091
5091
  "onUpdate:modelValue": u[1] || (u[1] = (a) => v.value = a),
5092
5092
  items: I
5093
5093
  }, null, 8, ["model-value"]),
5094
- t("div", vr, [
5094
+ t("div", yr, [
5095
5095
  (w(), Q(Re((b = R.value) == null ? void 0 : b.component), tt({
5096
5096
  modelValue: e.value,
5097
5097
  "onUpdate:modelValue": u[2] || (u[2] = (a) => e.value = a)
@@ -5100,10 +5100,10 @@ const dr = [
5100
5100
  ]);
5101
5101
  };
5102
5102
  }
5103
- }), xr = {
5103
+ }), br = {
5104
5104
  key: 0,
5105
5105
  class: "flex flex-col h-full"
5106
- }, br = { class: "flex flex-col gap-16 pb-[24px]" }, wr = { class: "flex flex-row justify-between items-center gap-2" }, hr = { class: "flex flex-row gap-2 items-center" }, _r = { class: "relative group cursor-pointer" }, Cr = { 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" }, kr = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Sr = { class: "w-[90%] flex flex-col gap-24" }, $r = { class: "flex flex-col gap-16" }, Dr = { class: "fm-typo-en-title-sm-800" }, Ar = { class: "flex flex-row items-center max-w-[100%]" }, Vr = { class: "w-[25%]" }, Fr = { class: "flex-grow" }, Ir = { class: "flex flex-row items-center max-w-[100%]" }, Kr = { class: "w-[25%]" }, Nr = { class: "flex flex-row items-center justify-between gap-x-16" }, Mr = { class: "fm-typo-en-title-sm-800" }, Tr = /* @__PURE__ */ se({
5106
+ }, wr = { class: "flex flex-col gap-16 pb-[24px]" }, hr = { class: "flex flex-row justify-between items-center gap-2" }, _r = { class: "flex flex-row gap-2 items-center" }, Cr = { class: "relative group cursor-pointer" }, kr = { 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" }, Sr = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, $r = { class: "w-[90%] flex flex-col gap-24" }, Dr = { class: "flex flex-col gap-16" }, Ar = { class: "fm-typo-en-title-sm-800" }, Vr = { class: "flex flex-row items-center max-w-[100%]" }, Fr = { class: "w-[25%]" }, Ir = { class: "flex-grow" }, Kr = { class: "flex flex-row items-center max-w-[100%]" }, Nr = { class: "w-[25%]" }, Tr = { class: "flex flex-row items-center justify-between gap-x-16" }, Mr = { class: "fm-typo-en-title-sm-800" }, Rr = /* @__PURE__ */ se({
5107
5107
  __name: "Setting",
5108
5108
  props: /* @__PURE__ */ fe({
5109
5109
  errorLogs: {}
@@ -5113,8 +5113,8 @@ const dr = [
5113
5113
  }),
5114
5114
  emits: ["update:modelValue"],
5115
5115
  setup(g) {
5116
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
5117
- () => T.map((k) => ({ label: k.name, value: k.id }))
5116
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
5117
+ () => M.map((k) => ({ label: k.name, value: k.id }))
5118
5118
  );
5119
5119
  async function P() {
5120
5120
  var b;
@@ -5178,7 +5178,7 @@ const dr = [
5178
5178
  async function u() {
5179
5179
  await K(async () => {
5180
5180
  try {
5181
- await Me(e.value._id), await v.getSettings();
5181
+ await Te(e.value._id), await v.getSettings();
5182
5182
  } catch (k) {
5183
5183
  p.open({ type: "error", message: k.message });
5184
5184
  }
@@ -5189,18 +5189,18 @@ const dr = [
5189
5189
  }), (k, i) => {
5190
5190
  var d, U, $, f, V, _;
5191
5191
  const n = F("FmIcon"), b = F("FmButton"), r = F("FmMenuDivider"), a = F("FmTextField"), D = F("FmSelect");
5192
- return (U = (d = e.value) == null ? void 0 : d.platform) != null && U.mappings ? (w(), j("div", xr, [
5193
- t("div", br, [
5194
- t("div", wr, [
5192
+ return (U = (d = e.value) == null ? void 0 : d.platform) != null && U.mappings ? (w(), j("div", br, [
5193
+ t("div", wr, [
5194
+ t("div", hr, [
5195
5195
  i[6] || (i[6] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
5196
- t("div", hr, [
5197
- t("div", _r, [
5196
+ t("div", _r, [
5197
+ t("div", Cr, [
5198
5198
  l(n, {
5199
5199
  name: "refresh",
5200
5200
  class: "p-2 bg-gray-100 rounded-full",
5201
5201
  onClick: u
5202
5202
  }),
5203
- t("span", Cr, S(s(o)("report.integration.refreshSetting")), 1)
5203
+ t("span", kr, S(s(o)("report.integration.refreshSettingTooltip")), 1)
5204
5204
  ]),
5205
5205
  l(b, {
5206
5206
  variant: "tertiary",
@@ -5217,21 +5217,21 @@ const dr = [
5217
5217
  ])
5218
5218
  ]),
5219
5219
  l(r, { style: { margin: 0 } }),
5220
- t("div", kr, [
5221
- t("div", Sr, [
5222
- t("div", $r, [
5223
- t("div", Dr, S(s(o)("report.integration.general")), 1),
5224
- t("div", Ar, [
5225
- t("div", Vr, S(s(o)("report.common.name")), 1),
5226
- t("div", Fr, [
5220
+ t("div", Sr, [
5221
+ t("div", $r, [
5222
+ t("div", Dr, [
5223
+ t("div", Ar, S(s(o)("report.integration.general")), 1),
5224
+ t("div", Vr, [
5225
+ t("div", Fr, S(s(o)("report.common.name")), 1),
5226
+ t("div", Ir, [
5227
5227
  l(a, {
5228
5228
  modelValue: e.value.name,
5229
5229
  "onUpdate:modelValue": i[0] || (i[0] = (O) => e.value.name = O)
5230
5230
  }, null, 8, ["modelValue"])
5231
5231
  ])
5232
5232
  ]),
5233
- t("div", Ir, [
5234
- t("div", Kr, S(s(o)("report.integration.location")), 1),
5233
+ t("div", Kr, [
5234
+ t("div", Nr, S(s(o)("report.integration.location")), 1),
5235
5235
  l(D, {
5236
5236
  "model-value": e.value.platform.locationIds[0],
5237
5237
  multiselect: !1,
@@ -5253,7 +5253,7 @@ const dr = [
5253
5253
  "is-auto-email-mode": !0
5254
5254
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
5255
5255
  l(r, { style: { margin: 0 } }),
5256
- t("div", Nr, [
5256
+ t("div", Tr, [
5257
5257
  t("div", Mr, S(s(o)("report.integration.iflexiHrms.employee")), 1),
5258
5258
  l(b, {
5259
5259
  variant: "secondary",
@@ -5284,10 +5284,10 @@ const dr = [
5284
5284
  ])) : q("", !0);
5285
5285
  };
5286
5286
  }
5287
- }), Rr = { class: "h-full flex flex-col gap-16" }, Ur = { class: "flex flex-row gap-2 justify-between items-center" }, Pr = {
5287
+ }), Ur = { class: "h-full flex flex-col gap-16" }, Pr = { class: "flex flex-row gap-2 justify-between items-center" }, jr = {
5288
5288
  key: 0,
5289
5289
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
5290
- }, jr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lr = /* @__PURE__ */ se({
5290
+ }, Lr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Or = /* @__PURE__ */ se({
5291
5291
  __name: "Preview",
5292
5292
  props: {
5293
5293
  modelValue: { required: !0 },
@@ -5338,7 +5338,7 @@ const dr = [
5338
5338
  immediate: !0
5339
5339
  }
5340
5340
  );
5341
- async function T() {
5341
+ async function M() {
5342
5342
  try {
5343
5343
  v.value._id ? (I.value = !0, await at(v.value._id)) : K.open({ message: "Invalid setting", type: "error" });
5344
5344
  } catch (c) {
@@ -5349,23 +5349,23 @@ const dr = [
5349
5349
  }
5350
5350
  return (c, x) => {
5351
5351
  const h = F("FmButton"), P = F("FmCircularProgress"), A = F("FmTable");
5352
- return w(), j("div", Rr, [
5353
- t("div", Ur, [
5352
+ return w(), j("div", Ur, [
5353
+ t("div", Pr, [
5354
5354
  l(Ye, {
5355
5355
  "date-range": s(R),
5356
- "onUpdate:dateRange": x[0] || (x[0] = (y) => Te(R) ? R.value = y : null),
5356
+ "onUpdate:dateRange": x[0] || (x[0] = (y) => Me(R) ? R.value = y : null),
5357
5357
  compare: !1
5358
5358
  }, null, 8, ["date-range"]),
5359
5359
  l(h, {
5360
5360
  loading: I.value,
5361
5361
  variant: "primary",
5362
5362
  label: s(o)("report.common.download"),
5363
- onClick: T
5363
+ onClick: M
5364
5364
  }, null, 8, ["loading", "label"])
5365
5365
  ]),
5366
- I.value ? (w(), j("div", Pr, [
5366
+ I.value ? (w(), j("div", jr, [
5367
5367
  l(P, { size: "xl" }),
5368
- t("span", jr, S(s(o)("report.common.isLoading")), 1)
5368
+ t("span", Lr, S(s(o)("report.common.isLoading")), 1)
5369
5369
  ])) : e.value.length > 0 ? (w(), Q(A, {
5370
5370
  key: 1,
5371
5371
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -5375,7 +5375,7 @@ const dr = [
5375
5375
  ]);
5376
5376
  };
5377
5377
  }
5378
- }), Or = { class: "h-full relative flex flex-col" }, Er = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Br = /* @__PURE__ */ se({
5378
+ }), Er = { class: "h-full relative flex flex-col" }, Br = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Yr = /* @__PURE__ */ se({
5379
5379
  __name: "IFlexiHRMS",
5380
5380
  props: /* @__PURE__ */ fe({
5381
5381
  errorLogs: {}
@@ -5399,17 +5399,17 @@ const dr = [
5399
5399
  ], K = Ce(), R = G(() => {
5400
5400
  switch (v.value) {
5401
5401
  case "preview":
5402
- return Lr;
5402
+ return Or;
5403
5403
  case "setting":
5404
- return Tr;
5404
+ return Rr;
5405
5405
  default:
5406
5406
  return null;
5407
5407
  }
5408
5408
  });
5409
- return (T, c) => {
5409
+ return (M, c) => {
5410
5410
  var P;
5411
5411
  const x = F("FmPageHead"), h = F("FmTabs");
5412
- return w(), j("div", Or, [
5412
+ return w(), j("div", Er, [
5413
5413
  l(x, {
5414
5414
  title: ((P = e.value) == null ? void 0 : P.name) || "AutoCount",
5415
5415
  "back-button": !0,
@@ -5426,7 +5426,7 @@ const dr = [
5426
5426
  "onUpdate:modelValue": c[1] || (c[1] = (A) => v.value = A),
5427
5427
  items: I
5428
5428
  }, null, 8, ["model-value"]),
5429
- t("div", Er, [
5429
+ t("div", Br, [
5430
5430
  (w(), Q(Re(R.value), {
5431
5431
  modelValue: e.value,
5432
5432
  "onUpdate:modelValue": c[2] || (c[2] = (A) => e.value = A),
@@ -5436,25 +5436,25 @@ const dr = [
5436
5436
  ]);
5437
5437
  };
5438
5438
  }
5439
- }), Yr = {
5439
+ }), qr = {
5440
5440
  key: 0,
5441
5441
  class: "flex flex-col h-full"
5442
- }, qr = { class: "flex flex-col gap-16 pb-[24px]" }, Hr = { class: "flex flex-row justify-between items-center gap-2" }, zr = { class: "fm-typo-en-title-sm-800" }, Gr = { class: "flex flex-row gap-2 items-center" }, Qr = { class: "flex flex-row gap-2 items-center" }, Wr = { class: "relative group cursor-pointer" }, Xr = { 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" }, Jr = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Zr = { class: "flex flex-col gap-24 w-[90%]" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, oi = { class: "flex flex-col justify-between" }, ai = { class: "w-[25%] font-semibold" }, li = { class: "flex-grow" }, ni = { class: "flex flex-col justify-between" }, si = { class: "w-[25%] font-semibold" }, ri = { class: "flex-grow" }, ii = { class: "flex flex-col justify-between" }, di = { class: "w-[25%] font-semibold" }, pi = { class: "flex-grow" }, mi = { class: "flex flex-col gap-16" }, ui = { class: "flex flex-row items-center gap-5" }, ci = { class: "fm-typo-en-title-sm-800" }, fi = { class: "flex flex-col max-w-[100%]" }, gi = { class: "w-[25%] font-semibold" }, vi = { class: "flex-grow" }, yi = { class: "flex flex-col max-w-[100%]" }, xi = { class: "w-[25%] font-semibold" }, bi = { class: "flex flex-row items-center max-w-[100%] justify-between" }, wi = { class: "flex-grow" }, hi = { class: "flex flex-col max-w-[100%]" }, _i = { class: "w-[25%] font-semibold" }, Ci = {
5442
+ }, Hr = { class: "flex flex-col gap-16 pb-[24px]" }, zr = { class: "flex flex-row justify-between items-center gap-2" }, Gr = { class: "fm-typo-en-title-sm-800" }, Qr = { class: "flex flex-row gap-2 items-center" }, Wr = { class: "flex flex-row gap-2 items-center" }, Xr = { class: "relative group cursor-pointer" }, Jr = { 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" }, Zr = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, ei = { class: "flex flex-col gap-24 w-[90%]" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, oi = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, ai = { class: "flex flex-col justify-between" }, li = { class: "w-[25%] font-semibold" }, ni = { class: "flex-grow" }, si = { class: "flex flex-col justify-between" }, ri = { class: "w-[25%] font-semibold" }, ii = { class: "flex-grow" }, di = { class: "flex flex-col justify-between" }, pi = { class: "w-[25%] font-semibold" }, mi = { class: "flex-grow" }, ui = { class: "flex flex-col gap-16" }, ci = { class: "flex flex-row items-center gap-5" }, fi = { class: "fm-typo-en-title-sm-800" }, gi = { class: "flex flex-col max-w-[100%]" }, vi = { class: "w-[25%] font-semibold" }, yi = { class: "flex-grow" }, xi = { class: "flex flex-col max-w-[100%]" }, bi = { class: "w-[25%] font-semibold" }, wi = { class: "flex flex-row items-center max-w-[100%] justify-between" }, hi = { class: "flex-grow" }, _i = { class: "flex flex-col max-w-[100%]" }, Ci = { class: "w-[25%] font-semibold" }, ki = {
5443
5443
  key: 0,
5444
5444
  class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
5445
- }, ki = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Si = { class: "flex-grow" }, $i = { class: "flex flex-col max-w-[100%]" }, Di = { class: "w-[25%] font-semibold" }, Ai = {
5445
+ }, Si = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, $i = { class: "flex-grow" }, Di = { class: "flex flex-col max-w-[100%]" }, Ai = { class: "w-[25%] font-semibold" }, Vi = {
5446
5446
  key: 1,
5447
5447
  class: "w-[100%] flex flex-col gap-2"
5448
- }, Vi = {
5448
+ }, Fi = {
5449
5449
  key: 2,
5450
5450
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5451
- }, Fi = { class: "flex flex-col max-w-[100%]" }, Ii = { class: "w-[25%] font-semibold" }, Ki = {
5451
+ }, Ii = { class: "flex flex-col max-w-[100%]" }, Ki = { class: "w-[25%] font-semibold" }, Ni = {
5452
5452
  key: 1,
5453
5453
  class: "w-[100%] flex flex-col gap-2"
5454
- }, Ni = {
5454
+ }, Ti = {
5455
5455
  key: 2,
5456
5456
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
5457
- }, Mi = { class: "flex flex-col gap-16" }, Ti = { class: "fm-typo-en-title-sm-800" }, Ri = { class: "flex flex-row items-center w-[100%] justify-start" }, Ui = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Pi = { class: "flex flex-row items-center w-[100%] justify-start" }, ji = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Li = { class: "flex flex-row items-center w-[100%] justify-start" }, Oi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ei = { class: "flex flex-col gap-16 pt-3 pb-3" }, Bi = { class: "flex flex-row items-center gap-5" }, Yi = { class: "fm-typo-en-title-sm-800" }, qi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Hi = { class: "flex flex-row items-center justify-between gap-x-16" }, zi = { class: "fm-typo-en-title-sm-800" }, Gi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qi = { class: "flex flex-row items-center justify-between gap-x-16" }, Wi = { class: "fm-typo-en-title-sm-800" }, Xi = { class: "flex flex-row items-center justify-between gap-x-16" }, Ji = { class: "fm-typo-en-title-sm-800" }, Zi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ed = /* @__PURE__ */ se({
5457
+ }, Mi = { class: "flex flex-col gap-16" }, Ri = { class: "fm-typo-en-title-sm-800" }, Ui = { class: "flex flex-row items-center w-[100%] justify-start" }, Pi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, ji = { class: "flex flex-row items-center w-[100%] justify-start" }, Li = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Oi = { class: "flex flex-row items-center w-[100%] justify-start" }, Ei = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Bi = { class: "flex flex-col gap-16 pt-3 pb-3" }, Yi = { class: "flex flex-row items-center gap-5" }, qi = { class: "fm-typo-en-title-sm-800" }, Hi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, zi = { class: "flex flex-row items-center justify-between gap-x-16" }, Gi = { class: "fm-typo-en-title-sm-800" }, Qi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wi = { class: "flex flex-row items-center justify-between gap-x-16" }, Xi = { class: "fm-typo-en-title-sm-800" }, Ji = { class: "flex flex-row items-center justify-between gap-x-16" }, Zi = { class: "fm-typo-en-title-sm-800" }, ed = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, td = /* @__PURE__ */ se({
5458
5458
  __name: "Setting",
5459
5459
  props: /* @__PURE__ */ fe({
5460
5460
  retrievedDebtors: {
@@ -5475,8 +5475,8 @@ const dr = [
5475
5475
  }),
5476
5476
  emits: ["update:modelValue"],
5477
5477
  setup(g) {
5478
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), { flags: h } = st(), P = G(
5479
- () => T.map(($) => ({ label: $.name, value: $.id }))
5478
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), { flags: h } = st(), P = G(
5479
+ () => M.map(($) => ({ label: $.name, value: $.id }))
5480
5480
  ), A = G(
5481
5481
  () => !h.some(
5482
5482
  ($) => $.key === Ct.report_portal_integration_autocount_cloud_api && $.value === !0
@@ -5566,7 +5566,7 @@ const dr = [
5566
5566
  async function b() {
5567
5567
  await K(async () => {
5568
5568
  try {
5569
- await Me(e.value._id), await v.getSettings();
5569
+ await Te(e.value._id), await v.getSettings();
5570
5570
  } catch ($) {
5571
5571
  p.open({ type: "error", message: $.message });
5572
5572
  }
@@ -5634,19 +5634,19 @@ const dr = [
5634
5634
  ), ($, f) => {
5635
5635
  var ie, ue, ge, ve, ye, xe, be, we, ae, X, oe, N, E, J;
5636
5636
  const V = F("FmIcon"), _ = F("FmButton"), O = F("FmMenuDivider"), H = F("FmTextField"), W = F("FmSelect"), te = F("FmSwitch"), z = F("FmCircularProgress");
5637
- return (ue = (ie = e.value) == null ? void 0 : ie.platform) != null && ue.mappings ? (w(), j("div", Yr, [
5638
- t("div", qr, [
5639
- t("div", Hr, [
5640
- t("div", zr, S(s(o)("report.integration.connect")), 1),
5641
- t("div", Gr, [
5642
- t("div", Qr, [
5643
- t("div", Wr, [
5637
+ return (ue = (ie = e.value) == null ? void 0 : ie.platform) != null && ue.mappings ? (w(), j("div", qr, [
5638
+ t("div", Hr, [
5639
+ t("div", zr, [
5640
+ t("div", Gr, S(s(o)("report.integration.connect")), 1),
5641
+ t("div", Qr, [
5642
+ t("div", Wr, [
5643
+ t("div", Xr, [
5644
5644
  l(V, {
5645
5645
  name: "refresh",
5646
5646
  class: "p-2 bg-gray-100 rounded-full",
5647
5647
  onClick: b
5648
5648
  }),
5649
- t("span", Xr, S(s(o)("report.integration.refreshSetting")), 1)
5649
+ t("span", Jr, S(s(o)("report.integration.refreshSettingTooltip")), 1)
5650
5650
  ]),
5651
5651
  l(_, {
5652
5652
  variant: "tertiary",
@@ -5663,14 +5663,14 @@ const dr = [
5663
5663
  ])
5664
5664
  ])
5665
5665
  ]),
5666
- t("div", Jr, [
5667
- t("div", Zr, [
5668
- t("div", ei, S(s(o)("report.integration.authDescription")), 1),
5666
+ t("div", Zr, [
5667
+ t("div", ei, [
5668
+ t("div", ti, S(s(o)("report.integration.authDescription")), 1),
5669
5669
  l(O, { style: { margin: 0 } }),
5670
- t("div", ti, [
5671
- t("div", oi, [
5672
- t("div", ai, S(s(o)("report.integration.autocount.keyId")), 1),
5673
- t("div", li, [
5670
+ t("div", oi, [
5671
+ t("div", ai, [
5672
+ t("div", li, S(s(o)("report.integration.autocount.keyId")), 1),
5673
+ t("div", ni, [
5674
5674
  l(H, {
5675
5675
  modelValue: e.value.platform.keyId,
5676
5676
  "onUpdate:modelValue": f[0] || (f[0] = (Y) => e.value.platform.keyId = Y),
@@ -5678,9 +5678,9 @@ const dr = [
5678
5678
  }, null, 8, ["modelValue", "placeholder"])
5679
5679
  ])
5680
5680
  ]),
5681
- t("div", ni, [
5682
- t("div", si, S(s(o)("report.integration.apiKey")), 1),
5683
- t("div", ri, [
5681
+ t("div", si, [
5682
+ t("div", ri, S(s(o)("report.integration.apiKey")), 1),
5683
+ t("div", ii, [
5684
5684
  l(H, {
5685
5685
  modelValue: e.value.platform.apiKey,
5686
5686
  "onUpdate:modelValue": f[1] || (f[1] = (Y) => e.value.platform.apiKey = Y),
@@ -5688,9 +5688,9 @@ const dr = [
5688
5688
  }, null, 8, ["modelValue", "placeholder"])
5689
5689
  ])
5690
5690
  ]),
5691
- t("div", ii, [
5692
- t("div", di, S(s(o)("report.integration.autocount.accountBookId")), 1),
5693
- t("div", pi, [
5691
+ t("div", di, [
5692
+ t("div", pi, S(s(o)("report.integration.autocount.accountBookId")), 1),
5693
+ t("div", mi, [
5694
5694
  l(H, {
5695
5695
  modelValue: e.value.platform.accountBookId,
5696
5696
  "onUpdate:modelValue": f[2] || (f[2] = (Y) => e.value.platform.accountBookId = Y),
@@ -5699,21 +5699,21 @@ const dr = [
5699
5699
  ])
5700
5700
  ]),
5701
5701
  l(O, { style: { margin: 0 } }),
5702
- t("div", mi, [
5703
- t("div", ui, [
5704
- t("div", ci, S(s(o)("report.common.general")), 1)
5702
+ t("div", ui, [
5703
+ t("div", ci, [
5704
+ t("div", fi, S(s(o)("report.common.general")), 1)
5705
5705
  ]),
5706
- t("div", fi, [
5707
- t("div", gi, S(s(o)("report.common.name")), 1),
5708
- t("div", vi, [
5706
+ t("div", gi, [
5707
+ t("div", vi, S(s(o)("report.common.name")), 1),
5708
+ t("div", yi, [
5709
5709
  l(H, {
5710
5710
  modelValue: e.value.name,
5711
5711
  "onUpdate:modelValue": f[3] || (f[3] = (Y) => e.value.name = Y)
5712
5712
  }, null, 8, ["modelValue"])
5713
5713
  ])
5714
5714
  ]),
5715
- t("div", yi, [
5716
- t("div", xi, S(s(o)("report.common.location")), 1),
5715
+ t("div", xi, [
5716
+ t("div", bi, S(s(o)("report.common.location")), 1),
5717
5717
  l(W, {
5718
5718
  modelValue: e.value.platform.locationIds,
5719
5719
  "onUpdate:modelValue": f[4] || (f[4] = (Y) => e.value.platform.locationIds = Y),
@@ -5723,9 +5723,9 @@ const dr = [
5723
5723
  class: "flex-grow"
5724
5724
  }, null, 8, ["modelValue", "items", "placeholder"])
5725
5725
  ]),
5726
- t("div", bi, [
5726
+ t("div", wi, [
5727
5727
  f[31] || (f[31] = t("div", { class: "w-[25%] font-semibold" }, "Discount as Item", -1)),
5728
- t("div", wi, [
5728
+ t("div", hi, [
5729
5729
  l(te, {
5730
5730
  "model-value": e.value.platform.discountItem ?? !1,
5731
5731
  style: { gap: 0 },
@@ -5735,8 +5735,8 @@ const dr = [
5735
5735
  }, null, 8, ["model-value"])
5736
5736
  ])
5737
5737
  ]),
5738
- t("div", hi, [
5739
- t("div", _i, S(s(o)("report.integration.grouping.title")), 1),
5738
+ t("div", _i, [
5739
+ t("div", Ci, S(s(o)("report.integration.grouping.title")), 1),
5740
5740
  l(W, {
5741
5741
  modelValue: e.value.platform.grouping,
5742
5742
  "onUpdate:modelValue": f[6] || (f[6] = (Y) => e.value.platform.grouping = Y),
@@ -5746,12 +5746,12 @@ const dr = [
5746
5746
  class: "flex-grow"
5747
5747
  }, null, 8, ["modelValue", "placeholder"])
5748
5748
  ]),
5749
- e.value.platform.discountItem && e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", Ci, [
5750
- t("div", ki, [
5749
+ e.value.platform.discountItem && e.value.platform.grouping !== s(me).BY_DAY && e.value.platform.grouping !== s(me).BY_INVOICE ? (w(), j("div", ki, [
5750
+ t("div", Si, [
5751
5751
  f[32] || (f[32] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
5752
5752
  t("span", null, S(s(o)("report.integration.discountByGroupKey")), 1)
5753
5753
  ]),
5754
- t("div", Si, [
5754
+ t("div", $i, [
5755
5755
  l(te, {
5756
5756
  "model-value": e.value.platform.discountByGroupKey ?? !1,
5757
5757
  style: { gap: 0 },
@@ -5761,17 +5761,17 @@ const dr = [
5761
5761
  }, null, 8, ["model-value"])
5762
5762
  ])
5763
5763
  ])) : q("", !0),
5764
- t("div", $i, [
5765
- t("div", Di, S(s(o)("report.integration.autocount.debtor")), 1),
5764
+ t("div", Di, [
5765
+ t("div", Ai, S(s(o)("report.integration.autocount.debtor")), 1),
5766
5766
  g.retrievedDebtors.isLoaded ? q("", !0) : (w(), Q(z, {
5767
5767
  key: 0,
5768
5768
  size: "xl"
5769
5769
  })),
5770
- g.retrievedDebtors.isLoaded && g.retrievedDebtors.data && ((ge = g.retrievedDebtors.data) == null ? void 0 : ge.length) != 0 && !g.retrievedDebtors.isError ? (w(), j("div", Ai, [
5770
+ g.retrievedDebtors.isLoaded && g.retrievedDebtors.data && ((ge = g.retrievedDebtors.data) == null ? void 0 : ge.length) != 0 && !g.retrievedDebtors.isError ? (w(), j("div", Vi, [
5771
5771
  l(W, {
5772
5772
  modelValue: s(y),
5773
5773
  "onUpdate:modelValue": [
5774
- f[8] || (f[8] = (Y) => Te(y) ? y.value = Y : y = Y),
5774
+ f[8] || (f[8] = (Y) => Me(y) ? y.value = Y : y = Y),
5775
5775
  U
5776
5776
  ],
5777
5777
  items: g.retrievedDebtors.data,
@@ -5779,15 +5779,15 @@ const dr = [
5779
5779
  class: "flex-grow",
5780
5780
  disabled: !g.retrievedDebtors.isLoaded
5781
5781
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
5782
- ])) : g.retrievedDebtors.isError ? (w(), j("div", Vi, S(s(o)("report.integration.errorFetchingDebtor")), 1)) : q("", !0)
5782
+ ])) : g.retrievedDebtors.isError ? (w(), j("div", Fi, S(s(o)("report.integration.errorFetchingDebtor")), 1)) : q("", !0)
5783
5783
  ]),
5784
- t("div", Fi, [
5785
- t("div", Ii, S(s(o)("report.integration.autocount.location")), 1),
5784
+ t("div", Ii, [
5785
+ t("div", Ki, S(s(o)("report.integration.autocount.location")), 1),
5786
5786
  g.retrievedLocations.isLoaded ? q("", !0) : (w(), Q(z, {
5787
5787
  key: 0,
5788
5788
  size: "xl"
5789
5789
  })),
5790
- g.retrievedLocations.isLoaded && g.retrievedLocations.data && ((ve = g.retrievedLocations.data) == null ? void 0 : ve.length) != 0 && !g.retrievedLocations.isError ? (w(), j("div", Ki, [
5790
+ g.retrievedLocations.isLoaded && g.retrievedLocations.data && ((ve = g.retrievedLocations.data) == null ? void 0 : ve.length) != 0 && !g.retrievedLocations.isError ? (w(), j("div", Ni, [
5791
5791
  l(W, {
5792
5792
  modelValue: e.value.platform.mappings.salesLocation,
5793
5793
  "onUpdate:modelValue": f[9] || (f[9] = (Y) => e.value.platform.mappings.salesLocation = Y),
@@ -5796,30 +5796,30 @@ const dr = [
5796
5796
  class: "flex-grow",
5797
5797
  disabled: !g.retrievedLocations.isLoaded
5798
5798
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
5799
- ])) : g.retrievedLocations.isError ? (w(), j("div", Ni, S(s(o)("report.integration.errorFetchingLocation")), 1)) : q("", !0)
5799
+ ])) : g.retrievedLocations.isError ? (w(), j("div", Ti, S(s(o)("report.integration.errorFetchingLocation")), 1)) : q("", !0)
5800
5800
  ])
5801
5801
  ]),
5802
5802
  l(O, { style: { margin: 0 } }),
5803
5803
  t("div", Mi, [
5804
- t("div", Ti, S(s(o)("report.integration.autocount.saveAndApprove")), 1),
5805
- t("div", Ri, [
5806
- t("div", Ui, S(s(o)("report.integration.autocount.invoice")), 1),
5804
+ t("div", Ri, S(s(o)("report.integration.autocount.saveAndApprove")), 1),
5805
+ t("div", Ui, [
5806
+ t("div", Pi, S(s(o)("report.integration.autocount.invoice")), 1),
5807
5807
  l(te, {
5808
5808
  modelValue: e.value.platform.mappings.saveApproveInvoice,
5809
5809
  "onUpdate:modelValue": f[10] || (f[10] = (Y) => e.value.platform.mappings.saveApproveInvoice = Y),
5810
5810
  style: { gap: "0px" }
5811
5811
  }, null, 8, ["modelValue"])
5812
5812
  ]),
5813
- t("div", Pi, [
5814
- t("div", ji, S(s(o)("report.integration.autocount.creditNote")), 1),
5813
+ t("div", ji, [
5814
+ t("div", Li, S(s(o)("report.integration.autocount.creditNote")), 1),
5815
5815
  l(te, {
5816
5816
  modelValue: e.value.platform.mappings.saveApproveCreditNote,
5817
5817
  "onUpdate:modelValue": f[11] || (f[11] = (Y) => e.value.platform.mappings.saveApproveCreditNote = Y),
5818
5818
  style: { gap: "0px" }
5819
5819
  }, null, 8, ["modelValue"])
5820
5820
  ]),
5821
- t("div", Li, [
5822
- t("div", Oi, S(s(o)("report.integration.autocount.payment")), 1),
5821
+ t("div", Oi, [
5822
+ t("div", Ei, S(s(o)("report.integration.autocount.payment")), 1),
5823
5823
  l(te, {
5824
5824
  modelValue: e.value.platform.mappings.saveApprovePayment,
5825
5825
  "onUpdate:modelValue": f[12] || (f[12] = (Y) => e.value.platform.mappings.saveApprovePayment = Y),
@@ -5828,12 +5828,12 @@ const dr = [
5828
5828
  ])
5829
5829
  ]),
5830
5830
  l(O, { style: { margin: 0 } }),
5831
- t("div", Ei, [
5832
- t("div", Bi, [
5833
- t("div", Yi, S(s(o)("report.integration.refNumFormat")), 1),
5831
+ t("div", Bi, [
5832
+ t("div", Yi, [
5833
+ t("div", qi, S(s(o)("report.integration.refNumFormat")), 1),
5834
5834
  l(lt)
5835
5835
  ]),
5836
- t("div", qi, [
5836
+ t("div", Hi, [
5837
5837
  l(ee, {
5838
5838
  "model-value": {
5839
5839
  key: "Invoice no",
@@ -5879,8 +5879,8 @@ const dr = [
5879
5879
  "is-auto-email-mode": A.value
5880
5880
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id", "is-auto-email-mode"]),
5881
5881
  l(O, { style: { margin: 0 } }),
5882
- t("div", Hi, [
5883
- t("div", zi, S(s(o)("report.integration.items")), 1),
5882
+ t("div", zi, [
5883
+ t("div", Gi, S(s(o)("report.integration.items")), 1),
5884
5884
  l(_, {
5885
5885
  variant: "secondary",
5886
5886
  "prepend-icon": "add",
@@ -5888,7 +5888,7 @@ const dr = [
5888
5888
  onClick: f[18] || (f[18] = () => i("items"))
5889
5889
  })
5890
5890
  ]),
5891
- t("div", Gi, S(s(o)("report.integration.autocount.itemMappingHint")), 1),
5891
+ t("div", Qi, S(s(o)("report.integration.autocount.itemMappingHint")), 1),
5892
5892
  l(le, {
5893
5893
  "header-items": [
5894
5894
  s(o)("report.integration.autocount.feedmeKey"),
@@ -5925,8 +5925,8 @@ const dr = [
5925
5925
  })
5926
5926
  }, null, 8, ["header-items", "rows", "fields-options"]),
5927
5927
  l(O, { style: { margin: 0 } }),
5928
- t("div", Qi, [
5929
- t("div", Wi, S(s(o)("report.integration.taxes")), 1),
5928
+ t("div", Wi, [
5929
+ t("div", Xi, S(s(o)("report.integration.taxes")), 1),
5930
5930
  l(_, {
5931
5931
  variant: "secondary",
5932
5932
  "prepend-icon": "add",
@@ -5960,8 +5960,8 @@ const dr = [
5960
5960
  })
5961
5961
  }, null, 8, ["header-items", "rows", "fields-options"]),
5962
5962
  l(O, { style: { margin: 0 } }),
5963
- t("div", Xi, [
5964
- t("div", Ji, S(s(o)("report.integration.payments")), 1),
5963
+ t("div", Ji, [
5964
+ t("div", Zi, S(s(o)("report.integration.payments")), 1),
5965
5965
  l(_, {
5966
5966
  variant: "secondary",
5967
5967
  "prepend-icon": "add",
@@ -5969,7 +5969,7 @@ const dr = [
5969
5969
  onClick: f[24] || (f[24] = () => i("payments"))
5970
5970
  })
5971
5971
  ]),
5972
- t("div", Zi, [
5972
+ t("div", ed, [
5973
5973
  l(ee, {
5974
5974
  "model-value": {
5975
5975
  key: "Credit Term",
@@ -6040,16 +6040,16 @@ const dr = [
6040
6040
  };
6041
6041
  }
6042
6042
  });
6043
- function td(g) {
6043
+ function od(g) {
6044
6044
  return g.reduce((o, e) => {
6045
- var R, T, c, x, h, P, A, y, m, u, k, i, n, b, r, a;
6045
+ var R, M, c, x, h, P, A, y, m, u, k, i, n, b, r, a;
6046
6046
  const { invoice: p, payments: v } = e, I = o.length;
6047
6047
  o[I] = {
6048
6048
  docNo: p.master.docNo,
6049
6049
  debtorCode: p.master.debtorCode,
6050
6050
  debtorName: p.master.debtorName,
6051
6051
  itemProductCode: (R = p.details[0]) == null ? void 0 : R.productCode,
6052
- deptNo: (T = p.details[0]) == null ? void 0 : T.deptNo,
6052
+ deptNo: (M = p.details[0]) == null ? void 0 : M.deptNo,
6053
6053
  description: (c = p.details[0]) == null ? void 0 : c.description,
6054
6054
  qty: (x = p.details[0]) == null ? void 0 : x.qty,
6055
6055
  unitPrice: (h = p.details[0]) == null ? void 0 : h.unitPrice,
@@ -6097,7 +6097,7 @@ function td(g) {
6097
6097
  return o;
6098
6098
  }, []);
6099
6099
  }
6100
- const od = [
6100
+ const ad = [
6101
6101
  {
6102
6102
  accessorKey: "docNo",
6103
6103
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
@@ -6183,10 +6183,10 @@ const od = [
6183
6183
  header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Journal Type"),
6184
6184
  enableSorting: !1
6185
6185
  }
6186
- ], ad = { class: "h-full flex flex-col gap-16" }, ld = { class: "flex flex-row gap-2 justify-between items-center" }, nd = { class: "flex flex-row gap-5" }, sd = {
6186
+ ], ld = { class: "h-full flex flex-col gap-16" }, nd = { class: "flex flex-row gap-2 justify-between items-center" }, sd = { class: "flex flex-row gap-5" }, rd = {
6187
6187
  key: 0,
6188
6188
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
6189
- }, rd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, id = /* @__PURE__ */ se({
6189
+ }, id = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dd = /* @__PURE__ */ se({
6190
6190
  __name: "Preview",
6191
6191
  props: {
6192
6192
  modelValue: { required: !0 },
@@ -6194,13 +6194,13 @@ const od = [
6194
6194
  },
6195
6195
  emits: ["update:modelValue"],
6196
6196
  setup(g) {
6197
- const { t: o } = de(), e = re(g, "modelValue"), p = Z(!1), v = $e(), { dateRange: I } = qe(Se()), { options: K, isFeatureAvailable: R } = Ke(), T = Z([]);
6197
+ const { t: o } = de(), e = re(g, "modelValue"), p = Z(!1), v = $e(), { dateRange: I } = qe(Se()), { options: K, isFeatureAvailable: R } = Ke(), M = Z([]);
6198
6198
  Ae(
6199
6199
  () => I.value,
6200
6200
  async () => {
6201
6201
  if (e.value._id)
6202
6202
  try {
6203
- p.value = !0, T.value = await Oe(e.value._id);
6203
+ p.value = !0, M.value = await Oe(e.value._id);
6204
6204
  } catch (y) {
6205
6205
  v.open({ message: y.message, type: "error" });
6206
6206
  } finally {
@@ -6211,7 +6211,7 @@ const od = [
6211
6211
  immediate: !0
6212
6212
  }
6213
6213
  );
6214
- const c = G(() => td(T.value)), x = G(() => od), h = G(() => {
6214
+ const c = G(() => od(M.value)), x = G(() => ad), h = G(() => {
6215
6215
  var m;
6216
6216
  const y = (m = K.find(
6217
6217
  (u) => u.platform === Ne.AutoCountCloud
@@ -6238,14 +6238,14 @@ const od = [
6238
6238
  }
6239
6239
  return (y, m) => {
6240
6240
  const u = F("FmButton"), k = F("FmCircularProgress"), i = F("FmTable");
6241
- return w(), j("div", ad, [
6242
- t("div", ld, [
6241
+ return w(), j("div", ld, [
6242
+ t("div", nd, [
6243
6243
  l(Ye, {
6244
6244
  "date-range": s(I),
6245
- "onUpdate:dateRange": m[0] || (m[0] = (n) => Te(I) ? I.value = n : null),
6245
+ "onUpdate:dateRange": m[0] || (m[0] = (n) => Me(I) ? I.value = n : null),
6246
6246
  compare: !1
6247
6247
  }, null, 8, ["date-range"]),
6248
- t("div", nd, [
6248
+ t("div", sd, [
6249
6249
  h.value ? (w(), Q(u, {
6250
6250
  key: 0,
6251
6251
  loading: p.value,
@@ -6261,9 +6261,9 @@ const od = [
6261
6261
  }, null, 8, ["loading", "label"])
6262
6262
  ])
6263
6263
  ]),
6264
- p.value ? (w(), j("div", sd, [
6264
+ p.value ? (w(), j("div", rd, [
6265
6265
  l(k, { size: "xl" }),
6266
- t("span", rd, S(s(o)("report.common.isLoading")), 1)
6266
+ t("span", id, S(s(o)("report.common.isLoading")), 1)
6267
6267
  ])) : (w(), Q(i, {
6268
6268
  key: 1,
6269
6269
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
@@ -6273,7 +6273,7 @@ const od = [
6273
6273
  ]);
6274
6274
  };
6275
6275
  }
6276
- }), dd = { class: "h-full relative flex flex-col" }, pd = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, md = /* @__PURE__ */ se({
6276
+ }), pd = { class: "h-full relative flex flex-col" }, md = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ud = /* @__PURE__ */ se({
6277
6277
  __name: "AutocountCloud",
6278
6278
  props: /* @__PURE__ */ fe({
6279
6279
  errorLogs: {}
@@ -6298,13 +6298,13 @@ const od = [
6298
6298
  switch (v.value) {
6299
6299
  case "preview":
6300
6300
  return {
6301
- component: id
6301
+ component: dd
6302
6302
  };
6303
6303
  case "setting":
6304
6304
  return {
6305
- component: ed,
6305
+ component: td,
6306
6306
  props: {
6307
- retrievedLocations: T.value,
6307
+ retrievedLocations: M.value,
6308
6308
  retrievedDebtors: c.value,
6309
6309
  errorLogs: p.errorLogs
6310
6310
  }
@@ -6312,7 +6312,7 @@ const od = [
6312
6312
  default:
6313
6313
  return null;
6314
6314
  }
6315
- }), T = Z({}), c = Z({}), x = (y) => y.data.map((m) => ({
6315
+ }), M = Z({}), c = Z({}), x = (y) => y.data.map((m) => ({
6316
6316
  label: m.location + " - " + m.description,
6317
6317
  value: m.location
6318
6318
  })), h = (y) => y.data.map((m) => ({
@@ -6338,16 +6338,16 @@ const od = [
6338
6338
  ), await P(
6339
6339
  St,
6340
6340
  x,
6341
- T,
6341
+ M,
6342
6342
  "Failed to fetch locations:"
6343
- ), T.value.isLoaded = !0, c.value.isLoaded = !0;
6343
+ ), M.value.isLoaded = !0, c.value.isLoaded = !0;
6344
6344
  };
6345
6345
  return nt(() => {
6346
- e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? A() : (T.value.isLoaded = !0, c.value.isLoaded = !0, T.value.isError = !0, c.value.isError = !0);
6346
+ e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? A() : (M.value.isLoaded = !0, c.value.isLoaded = !0, M.value.isError = !0, c.value.isError = !0);
6347
6347
  }), (y, m) => {
6348
6348
  var i, n, b;
6349
6349
  const u = F("FmPageHead"), k = F("FmTabs");
6350
- return w(), j("div", dd, [
6350
+ return w(), j("div", pd, [
6351
6351
  l(u, {
6352
6352
  title: ((i = e.value) == null ? void 0 : i.name) || "Autocount Cloud",
6353
6353
  "back-button": !0,
@@ -6364,7 +6364,7 @@ const od = [
6364
6364
  "onUpdate:modelValue": m[1] || (m[1] = (r) => v.value = r),
6365
6365
  items: I
6366
6366
  }, null, 8, ["model-value"]),
6367
- t("div", pd, [
6367
+ t("div", md, [
6368
6368
  (w(), Q(Re((n = R.value) == null ? void 0 : n.component), tt({
6369
6369
  modelValue: e.value,
6370
6370
  "onUpdate:modelValue": m[2] || (m[2] = (r) => e.value = r)
@@ -6373,10 +6373,10 @@ const od = [
6373
6373
  ]);
6374
6374
  };
6375
6375
  }
6376
- }), ud = {
6376
+ }), cd = {
6377
6377
  key: 0,
6378
6378
  class: "flex flex-col h-full w-full"
6379
- }, cd = { class: "flex flex-col gap-16 pb-[24px]" }, fd = { class: "flex flex-row justify-between items-center gap-2" }, 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-scroll" }, 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-grow" }, Sd = { class: "flex flex-col max-w-[100%]" }, $d = { class: "w-[25%] font-semibold" }, Dd = { class: "flex flex-col gap-16" }, Ad = { class: "grid-cols-2 grid gap-16" }, Vd = { class: "flex flex-row items-center justify-between gap-x-16" }, Fd = { class: "flex flex-row items-center justify-between gap-x-16" }, Id = { class: "fm-typo-en-title-sm-800" }, Kd = { 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__ */ se({
6379
+ }, fd = { class: "flex flex-col gap-16 pb-[24px]" }, gd = { class: "flex flex-row justify-between items-center gap-2" }, 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-scroll" }, 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" }, Sd = { class: "flex-grow" }, $d = { class: "flex flex-col max-w-[100%]" }, Dd = { class: "w-[25%] font-semibold" }, Ad = { class: "flex flex-col gap-16" }, Vd = { class: "grid-cols-2 grid gap-16" }, Fd = { class: "flex flex-row items-center justify-between gap-x-16" }, Id = { class: "flex flex-row items-center justify-between gap-x-16" }, Kd = { class: "fm-typo-en-title-sm-800" }, Nd = { class: "flex flex-row items-center justify-between gap-x-16" }, Td = { class: "flex flex-row items-center justify-between gap-x-16" }, Md = /* @__PURE__ */ se({
6380
6380
  __name: "Setting",
6381
6381
  props: {
6382
6382
  modelValue: { required: !0 },
@@ -6384,8 +6384,8 @@ const od = [
6384
6384
  },
6385
6385
  emits: ["update:modelValue"],
6386
6386
  setup(g) {
6387
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
6388
- () => T.map((k) => ({ label: k.name, value: k.id }))
6387
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
6388
+ () => M.map((k) => ({ label: k.name, value: k.id }))
6389
6389
  );
6390
6390
  async function P() {
6391
6391
  var b;
@@ -6447,7 +6447,7 @@ const od = [
6447
6447
  async function u() {
6448
6448
  await K(async () => {
6449
6449
  try {
6450
- await Me(e.value._id), await v.getSettings();
6450
+ await Te(e.value._id), await v.getSettings();
6451
6451
  } catch (k) {
6452
6452
  p.open({ type: "error", message: k.message });
6453
6453
  }
@@ -6458,18 +6458,18 @@ const od = [
6458
6458
  }), (k, i) => {
6459
6459
  var d, U, $, f, V, _, O, H, W, te, z, ie, ue, ge, ve, ye, xe, be, we;
6460
6460
  const n = F("FmIcon"), b = F("FmButton"), r = F("FmMenuDivider"), a = F("FmTextField"), D = F("FmSelect");
6461
- return (U = (d = e.value) == null ? void 0 : d.platform) != null && U.mappings ? (w(), j("div", ud, [
6462
- t("div", cd, [
6463
- t("div", fd, [
6461
+ return (U = (d = e.value) == null ? void 0 : d.platform) != null && U.mappings ? (w(), j("div", cd, [
6462
+ t("div", fd, [
6463
+ t("div", gd, [
6464
6464
  i[16] || (i[16] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
6465
- t("div", gd, [
6466
- t("div", vd, [
6465
+ t("div", vd, [
6466
+ t("div", yd, [
6467
6467
  l(n, {
6468
6468
  name: "refresh",
6469
6469
  class: "p-2 bg-gray-100 rounded-full",
6470
6470
  onClick: u
6471
6471
  }),
6472
- t("span", yd, S(s(o)("report.integration.refreshSetting")), 1)
6472
+ t("span", xd, S(s(o)("report.integration.refreshSettingTooltip")), 1)
6473
6473
  ]),
6474
6474
  l(b, {
6475
6475
  variant: "tertiary",
@@ -6486,21 +6486,21 @@ const od = [
6486
6486
  ])
6487
6487
  ]),
6488
6488
  l(r, { style: { margin: 0 } }),
6489
- t("div", xd, [
6490
- t("div", bd, [
6491
- t("div", wd, [
6492
- t("div", hd, S(s(o)("report.integration.general")), 1),
6493
- t("div", _d, [
6494
- t("div", Cd, S(s(o)("report.common.name")), 1),
6495
- t("div", kd, [
6489
+ t("div", bd, [
6490
+ t("div", wd, [
6491
+ t("div", hd, [
6492
+ t("div", _d, S(s(o)("report.integration.general")), 1),
6493
+ t("div", Cd, [
6494
+ t("div", kd, S(s(o)("report.common.name")), 1),
6495
+ t("div", Sd, [
6496
6496
  l(a, {
6497
6497
  modelValue: e.value.name,
6498
6498
  "onUpdate:modelValue": i[0] || (i[0] = (ae) => e.value.name = ae)
6499
6499
  }, null, 8, ["modelValue"])
6500
6500
  ])
6501
6501
  ]),
6502
- t("div", Sd, [
6503
- t("div", $d, S(s(o)("report.integration.location")), 1),
6502
+ t("div", $d, [
6503
+ t("div", Dd, S(s(o)("report.integration.location")), 1),
6504
6504
  l(D, {
6505
6505
  modelValue: e.value.platform.locationIds,
6506
6506
  "onUpdate:modelValue": i[1] || (i[1] = (ae) => e.value.platform.locationIds = ae),
@@ -6513,7 +6513,7 @@ const od = [
6513
6513
  ]),
6514
6514
  l(r, { style: { margin: 0 } })
6515
6515
  ]),
6516
- t("div", Dd, [
6516
+ t("div", Ad, [
6517
6517
  l(ee, {
6518
6518
  "is-take-whole-row": !0,
6519
6519
  "model-value": {
@@ -6531,7 +6531,7 @@ const od = [
6531
6531
  (E = (N = (oe = (X = e.value) == null ? void 0 : X.platform) == null ? void 0 : oe.mappings) == null ? void 0 : N.invoice) != null && E.debtor && (e.value.platform.mappings.invoice.debtor.name = ae.name, e.value.platform.mappings.invoice.debtor.code = ae.code);
6532
6532
  })
6533
6533
  }, null, 8, ["model-value"]),
6534
- t("div", Ad, [
6534
+ t("div", Vd, [
6535
6535
  l(ee, {
6536
6536
  "model-value": {
6537
6537
  key: "Rounding",
@@ -6561,7 +6561,7 @@ const od = [
6561
6561
  ])
6562
6562
  ]),
6563
6563
  l(r, { style: { margin: 0 } }),
6564
- t("div", Vd, [
6564
+ t("div", Fd, [
6565
6565
  i[17] || (i[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice Items", -1)),
6566
6566
  l(b, {
6567
6567
  variant: "secondary",
@@ -6599,8 +6599,8 @@ const od = [
6599
6599
  })
6600
6600
  }, null, 8, ["rows"]),
6601
6601
  l(r, { style: { margin: 0 } }),
6602
- t("div", Fd, [
6603
- t("div", Id, S(s(o)("report.integration.taxes")), 1),
6602
+ t("div", Id, [
6603
+ t("div", Kd, S(s(o)("report.integration.taxes")), 1),
6604
6604
  l(b, {
6605
6605
  variant: "secondary",
6606
6606
  "prepend-icon": "add",
@@ -6627,7 +6627,7 @@ const od = [
6627
6627
  })
6628
6628
  }, null, 8, ["rows"]),
6629
6629
  l(r, { style: { margin: 0 } }),
6630
- t("div", Kd, [
6630
+ t("div", Nd, [
6631
6631
  i[18] || (i[18] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
6632
6632
  l(b, {
6633
6633
  variant: "secondary",
@@ -6664,7 +6664,7 @@ const od = [
6664
6664
  })
6665
6665
  }, null, 8, ["rows"]),
6666
6666
  l(r, { style: { margin: 0 } }),
6667
- t("div", Nd, [
6667
+ t("div", Td, [
6668
6668
  i[19] || (i[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
6669
6669
  l(b, {
6670
6670
  variant: "secondary",
@@ -6697,13 +6697,13 @@ const od = [
6697
6697
  ])) : q("", !0);
6698
6698
  };
6699
6699
  }
6700
- }), Td = { class: "h-full w-full flex flex-col" }, Rd = { class: "flex flex-row gap-2 justify-between items-center" }, Ud = {
6700
+ }), Rd = { class: "h-full w-full flex flex-col" }, Ud = { class: "flex flex-row gap-2 justify-between items-center" }, Pd = {
6701
6701
  key: 0,
6702
6702
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
6703
- }, Pd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jd = {
6703
+ }, jd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ld = {
6704
6704
  key: 1,
6705
6705
  class: "w-full h-full flex flex-col flex-grow"
6706
- }, Ld = /* @__PURE__ */ se({
6706
+ }, Od = /* @__PURE__ */ se({
6707
6707
  __name: "Preview",
6708
6708
  props: {
6709
6709
  modelValue: { required: !0 },
@@ -6826,7 +6826,7 @@ const od = [
6826
6826
  netAmt: a.netAmt
6827
6827
  });
6828
6828
  return b;
6829
- }, [])), T = [
6829
+ }, [])), M = [
6830
6830
  { accessorKey: "locationCode", header: "Location Code", enableSorting: !1 },
6831
6831
  { accessorKey: "status", header: "Status", enableSorting: !1 },
6832
6832
  { accessorKey: "shiftDate", header: "Shift Date", enableSorting: !1 },
@@ -7107,11 +7107,11 @@ const od = [
7107
7107
  ], n = Z(i[0].value);
7108
7108
  return (b, r) => {
7109
7109
  const a = F("FmButton"), D = F("FmCircularProgress"), d = F("FmTabs"), U = F("FmTable");
7110
- return w(), j("div", Td, [
7111
- t("div", Rd, [
7110
+ return w(), j("div", Rd, [
7111
+ t("div", Ud, [
7112
7112
  l(Ye, {
7113
7113
  "date-range": s(u),
7114
- "onUpdate:dateRange": r[0] || (r[0] = ($) => Te(u) ? u.value = $ : null),
7114
+ "onUpdate:dateRange": r[0] || (r[0] = ($) => Me(u) ? u.value = $ : null),
7115
7115
  compare: !1
7116
7116
  }, null, 8, ["date-range"]),
7117
7117
  l(a, {
@@ -7121,10 +7121,10 @@ const od = [
7121
7121
  onClick: k
7122
7122
  }, null, 8, ["loading", "label"])
7123
7123
  ]),
7124
- y.value ? (w(), j("div", Ud, [
7124
+ y.value ? (w(), j("div", Pd, [
7125
7125
  l(D, { size: "xl" }),
7126
- t("span", Pd, S(s(o)("report.common.isLoading")), 1)
7127
- ])) : (w(), j("div", jd, [
7126
+ t("span", jd, S(s(o)("report.common.isLoading")), 1)
7127
+ ])) : (w(), j("div", Ld, [
7128
7128
  l(d, {
7129
7129
  "model-value": n.value,
7130
7130
  "onUpdate:modelValue": r[1] || (r[1] = ($) => n.value = $),
@@ -7156,13 +7156,13 @@ const od = [
7156
7156
  key: 4,
7157
7157
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
7158
7158
  "row-data": v.value,
7159
- "column-defs": T
7159
+ "column-defs": M
7160
7160
  }, null, 8, ["row-data"])) : q("", !0)
7161
7161
  ]))
7162
7162
  ]);
7163
7163
  };
7164
7164
  }
7165
- }), Od = { class: "h-full w-full flex flex-col" }, Ed = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, Bd = /* @__PURE__ */ se({
7165
+ }), Ed = { class: "h-full w-full flex flex-col" }, Bd = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, Yd = /* @__PURE__ */ se({
7166
7166
  __name: "SynergyExport",
7167
7167
  props: {
7168
7168
  modelValue: {},
@@ -7184,46 +7184,46 @@ const od = [
7184
7184
  ], I = Ce(), K = G(() => {
7185
7185
  switch (p.value) {
7186
7186
  case "preview":
7187
- return Ld;
7187
+ return Od;
7188
7188
  case "setting":
7189
7189
  return Md;
7190
7190
  default:
7191
7191
  return null;
7192
7192
  }
7193
7193
  });
7194
- return (R, T) => {
7194
+ return (R, M) => {
7195
7195
  var h;
7196
7196
  const c = F("FmPageHead"), x = F("FmTabs");
7197
- return w(), j("div", Od, [
7197
+ return w(), j("div", Ed, [
7198
7198
  l(c, {
7199
7199
  title: ((h = e.value) == null ? void 0 : h.name) || "Synergy",
7200
7200
  "back-button": !0,
7201
7201
  style: { paddingLeft: "0px", paddingRight: "0px" },
7202
- "onClick:back": T[0] || (T[0] = (P) => s(I).push({ name: "integrations" }))
7202
+ "onClick:back": M[0] || (M[0] = (P) => s(I).push({ name: "integrations" }))
7203
7203
  }, {
7204
- description: ke(() => T[3] || (T[3] = [
7204
+ description: ke(() => M[3] || (M[3] = [
7205
7205
  t("div", null, null, -1)
7206
7206
  ])),
7207
7207
  _: 1
7208
7208
  }, 8, ["title"]),
7209
7209
  l(x, {
7210
7210
  "model-value": p.value,
7211
- "onUpdate:modelValue": T[1] || (T[1] = (P) => p.value = P),
7211
+ "onUpdate:modelValue": M[1] || (M[1] = (P) => p.value = P),
7212
7212
  items: v
7213
7213
  }, null, 8, ["model-value"]),
7214
- t("div", Ed, [
7214
+ t("div", Bd, [
7215
7215
  (w(), Q(Re(K.value), {
7216
7216
  modelValue: e.value,
7217
- "onUpdate:modelValue": T[2] || (T[2] = (P) => e.value = P)
7217
+ "onUpdate:modelValue": M[2] || (M[2] = (P) => e.value = P)
7218
7218
  }, null, 8, ["modelValue"]))
7219
7219
  ])
7220
7220
  ]);
7221
7221
  };
7222
7222
  }
7223
- }), Yd = {
7223
+ }), qd = {
7224
7224
  key: 0,
7225
7225
  class: "flex flex-col h-full w-full"
7226
- }, qd = { class: "flex flex-col gap-16 pb-[24px]" }, Hd = { class: "flex flex-row justify-between items-center gap-2" }, zd = { class: "fm-typo-en-title-sm-800" }, Gd = { class: "flex flex-row gap-2 items-center" }, Qd = { class: "relative group cursor-pointer" }, Wd = { 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" }, Jd = { class: "w-[90%] flex flex-col gap-24" }, Zd = { class: "flex flex-col gap-16" }, ep = { class: "fm-typo-en-title-sm-800" }, tp = { class: "flex flex-col max-w-[100%]" }, op = { class: "w-[25%] font-semibold" }, ap = { class: "flex flex-col max-w-[100%]" }, lp = { class: "w-[25%] font-semibold" }, np = { class: "flex flex-col max-w-[100%]" }, sp = { class: "w-[25%] font-semibold" }, rp = { class: "grid-cols-2 grid gap-16" }, ip = { class: "flex flex-col max-w-[100%]" }, dp = { class: "flex flex-col max-w-[100%]" }, pp = { class: "flex flex-col max-w-[100%]" }, mp = { class: "flex flex-col max-w-[100%]" }, up = { class: "flex flex-row items-center justify-between gap-x-16" }, cp = { class: "flex flex-row items-center justify-between gap-x-16" }, fp = { class: "flex flex-row items-center justify-between gap-x-16" }, gp = { class: "flex flex-row items-center justify-between gap-x-16" }, vp = /* @__PURE__ */ se({
7226
+ }, Hd = { class: "flex flex-col gap-16 pb-[24px]" }, zd = { class: "flex flex-row justify-between items-center gap-2" }, Gd = { class: "fm-typo-en-title-sm-800" }, Qd = { class: "flex flex-row gap-2 items-center" }, Wd = { 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" }, Jd = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Zd = { class: "w-[90%] flex flex-col gap-24" }, ep = { class: "flex flex-col gap-16" }, tp = { class: "fm-typo-en-title-sm-800" }, op = { class: "flex flex-col max-w-[100%]" }, ap = { class: "w-[25%] font-semibold" }, lp = { class: "flex flex-col max-w-[100%]" }, np = { class: "w-[25%] font-semibold" }, sp = { class: "flex flex-col max-w-[100%]" }, rp = { class: "w-[25%] font-semibold" }, ip = { class: "grid-cols-2 grid gap-16" }, dp = { class: "flex flex-col max-w-[100%]" }, pp = { class: "flex flex-col max-w-[100%]" }, mp = { class: "flex flex-col max-w-[100%]" }, up = { class: "flex flex-col max-w-[100%]" }, cp = { class: "flex flex-row items-center justify-between gap-x-16" }, fp = { class: "flex flex-row items-center justify-between gap-x-16" }, gp = { class: "flex flex-row items-center justify-between gap-x-16" }, vp = { class: "flex flex-row items-center justify-between gap-x-16" }, yp = /* @__PURE__ */ se({
7227
7227
  __name: "Setting",
7228
7228
  props: /* @__PURE__ */ fe({
7229
7229
  errorLogs: {
@@ -7236,8 +7236,8 @@ const od = [
7236
7236
  }),
7237
7237
  emits: ["update:modelValue"],
7238
7238
  setup(g) {
7239
- const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: T } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
7240
- () => T.map((i) => ({ label: i.name, value: i.id }))
7239
+ const { t: o } = de(), e = re(g, "modelValue"), p = $e(), v = Ke(), I = Ce(), { promptLoader: K } = Ee(), { promptMessage: R } = Be(), { restaurants: M } = Se(), { rules: c, notifyUnauthorized: x } = Ue(), h = G(
7240
+ () => M.map((i) => ({ label: i.name, value: i.id }))
7241
7241
  ), P = [
7242
7242
  {
7243
7243
  label: "By invoice",
@@ -7288,7 +7288,7 @@ const od = [
7288
7288
  async function m() {
7289
7289
  await K(async () => {
7290
7290
  try {
7291
- await Me(e.value._id), await v.getSettings();
7291
+ await Te(e.value._id), await v.getSettings();
7292
7292
  } catch (i) {
7293
7293
  p.open({ type: "error", message: i.message });
7294
7294
  }
@@ -7321,18 +7321,18 @@ const od = [
7321
7321
  }), (i, n) => {
7322
7322
  var U, $;
7323
7323
  const b = F("FmIcon"), r = F("FmButton"), a = F("FmTextField"), D = F("FmSelect"), d = F("FmMenuDivider");
7324
- return ($ = (U = e.value) == null ? void 0 : U.platform) != null && $.mappings ? (w(), j("div", Yd, [
7325
- t("div", qd, [
7326
- t("div", Hd, [
7327
- t("div", zd, S(s(o)("report.integration.connect")), 1),
7328
- t("div", Gd, [
7329
- t("div", Qd, [
7324
+ return ($ = (U = e.value) == null ? void 0 : U.platform) != null && $.mappings ? (w(), j("div", qd, [
7325
+ t("div", Hd, [
7326
+ t("div", zd, [
7327
+ t("div", Gd, S(s(o)("report.integration.connect")), 1),
7328
+ t("div", Qd, [
7329
+ t("div", Wd, [
7330
7330
  l(b, {
7331
7331
  name: "refresh",
7332
7332
  class: "p-2 bg-gray-100 rounded-full",
7333
7333
  onClick: m
7334
7334
  }),
7335
- t("span", Wd, S(s(o)("report.integration.refreshSetting")), 1)
7335
+ t("span", Xd, S(s(o)("report.integration.refreshSettingTooltip")), 1)
7336
7336
  ]),
7337
7337
  l(r, {
7338
7338
  variant: "tertiary",
@@ -7348,20 +7348,20 @@ const od = [
7348
7348
  ])
7349
7349
  ])
7350
7350
  ]),
7351
- t("div", Xd, [
7352
- t("div", Jd, [
7351
+ t("div", Jd, [
7352
+ t("div", Zd, [
7353
7353
  n[28] || (n[28] = 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)),
7354
- t("div", Zd, [
7355
- t("div", ep, S(s(o)("report.common.general")), 1),
7356
- t("div", tp, [
7357
- t("div", op, S(s(o)("report.common.name")), 1),
7354
+ t("div", ep, [
7355
+ t("div", tp, S(s(o)("report.common.general")), 1),
7356
+ t("div", op, [
7357
+ t("div", ap, S(s(o)("report.common.name")), 1),
7358
7358
  l(a, {
7359
7359
  modelValue: e.value.name,
7360
7360
  "onUpdate:modelValue": n[0] || (n[0] = (f) => e.value.name = f)
7361
7361
  }, null, 8, ["modelValue"])
7362
7362
  ]),
7363
- t("div", ap, [
7364
- t("div", lp, S(s(o)("report.common.location")), 1),
7363
+ t("div", lp, [
7364
+ t("div", np, S(s(o)("report.common.location")), 1),
7365
7365
  l(D, {
7366
7366
  modelValue: e.value.platform.locationIds,
7367
7367
  "onUpdate:modelValue": n[1] || (n[1] = (f) => e.value.platform.locationIds = f),
@@ -7371,8 +7371,8 @@ const od = [
7371
7371
  class: "flex-grow"
7372
7372
  }, null, 8, ["modelValue", "items", "placeholder"])
7373
7373
  ]),
7374
- t("div", np, [
7375
- t("div", sp, S(s(o)("report.integration.grouping.title")), 1),
7374
+ t("div", sp, [
7375
+ t("div", rp, S(s(o)("report.integration.grouping.title")), 1),
7376
7376
  l(D, {
7377
7377
  modelValue: e.value.platform.grouping,
7378
7378
  "onUpdate:modelValue": n[2] || (n[2] = (f) => e.value.platform.grouping = f),
@@ -7382,8 +7382,8 @@ const od = [
7382
7382
  class: "flex-grow"
7383
7383
  }, null, 8, ["modelValue", "placeholder"])
7384
7384
  ]),
7385
- t("div", rp, [
7386
- t("div", ip, [
7385
+ t("div", ip, [
7386
+ t("div", dp, [
7387
7387
  n[20] || (n[20] = t("div", { class: "w-[25%] font-semibold" }, "Endpoint", -1)),
7388
7388
  l(a, {
7389
7389
  modelValue: e.value.platform.endpoint,
@@ -7391,7 +7391,7 @@ const od = [
7391
7391
  placeholder: "https://your-api-endpoint"
7392
7392
  }, null, 8, ["modelValue"])
7393
7393
  ]),
7394
- t("div", dp, [
7394
+ t("div", pp, [
7395
7395
  n[21] || (n[21] = t("div", { class: "w-[25%] font-semibold" }, "Login ID", -1)),
7396
7396
  l(a, {
7397
7397
  modelValue: e.value.platform.loginId,
@@ -7399,7 +7399,7 @@ const od = [
7399
7399
  placeholder: "Login ID"
7400
7400
  }, null, 8, ["modelValue"])
7401
7401
  ]),
7402
- t("div", pp, [
7402
+ t("div", mp, [
7403
7403
  n[22] || (n[22] = t("div", { class: "w-[25%] font-semibold" }, "Password", -1)),
7404
7404
  l(a, {
7405
7405
  modelValue: e.value.platform.password,
@@ -7407,7 +7407,7 @@ const od = [
7407
7407
  placeholder: "Password"
7408
7408
  }, null, 8, ["modelValue"])
7409
7409
  ]),
7410
- t("div", mp, [
7410
+ t("div", up, [
7411
7411
  n[23] || (n[23] = t("div", { class: "w-[25%] font-semibold" }, "Branch Code", -1)),
7412
7412
  l(a, {
7413
7413
  modelValue: e.value.platform.branchCode,
@@ -7428,7 +7428,7 @@ const od = [
7428
7428
  label: "upload"
7429
7429
  }, null, 8, ["modelValue", "last-upload-date", "integration-id", "error-logs"])) : q("", !0),
7430
7430
  l(d, { style: { margin: 0 } }),
7431
- t("div", up, [
7431
+ t("div", cp, [
7432
7432
  n[24] || (n[24] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
7433
7433
  l(r, {
7434
7434
  variant: "secondary",
@@ -7454,7 +7454,7 @@ const od = [
7454
7454
  })
7455
7455
  }, null, 8, ["rows"]),
7456
7456
  l(d, { style: { margin: 0 } }),
7457
- t("div", cp, [
7457
+ t("div", fp, [
7458
7458
  n[25] || (n[25] = t("div", { class: "fm-typo-en-title-sm-800" }, "Charges", -1)),
7459
7459
  l(r, {
7460
7460
  variant: "secondary",
@@ -7480,7 +7480,7 @@ const od = [
7480
7480
  })
7481
7481
  }, null, 8, ["rows"]),
7482
7482
  l(d, { style: { margin: 0 } }),
7483
- t("div", fp, [
7483
+ t("div", gp, [
7484
7484
  n[26] || (n[26] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
7485
7485
  l(r, {
7486
7486
  variant: "secondary",
@@ -7506,7 +7506,7 @@ const od = [
7506
7506
  })
7507
7507
  }, null, 8, ["rows"]),
7508
7508
  l(d, { style: { margin: 0 } }),
7509
- t("div", gp, [
7509
+ t("div", vp, [
7510
7510
  n[27] || (n[27] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
7511
7511
  l(r, {
7512
7512
  variant: "secondary",
@@ -7537,10 +7537,10 @@ const od = [
7537
7537
  ])) : q("", !0);
7538
7538
  };
7539
7539
  }
7540
- }), yp = { class: "h-full flex flex-col gap-16 overflow-hidden" }, xp = { class: "flex flex-row flex-wrap gap-2 justify-between items-center flex-none" }, bp = { class: "flex-1 overflow-auto mt-4" }, wp = {
7540
+ }), xp = { class: "h-full flex flex-col gap-16 overflow-hidden" }, bp = { class: "flex flex-row flex-wrap gap-2 justify-between items-center flex-none" }, wp = { class: "flex-1 overflow-auto mt-4" }, hp = {
7541
7541
  key: 0,
7542
7542
  class: "flex gap-24 w-full h-full justify-center items-center"
7543
- }, hp = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _p = /* @__PURE__ */ se({
7543
+ }, _p = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Cp = /* @__PURE__ */ se({
7544
7544
  __name: "Preview",
7545
7545
  props: {
7546
7546
  modelValue: { required: !0 },
@@ -7595,7 +7595,7 @@ const od = [
7595
7595
  });
7596
7596
  }
7597
7597
  return x;
7598
- }, [])), T = [
7598
+ }, [])), M = [
7599
7599
  { accessorKey: "invoiceNo", header: "Invoice No", enableSorting: !1 },
7600
7600
  // { accessorKey: "refNo", header: "Ref No", enableSorting: false },
7601
7601
  { accessorKey: "status", header: "Status", enableSorting: !1 },
@@ -7630,11 +7630,11 @@ const od = [
7630
7630
  }
7631
7631
  return (x, h) => {
7632
7632
  const P = F("FmButton"), A = F("FmCircularProgress"), y = F("FmTable");
7633
- return w(), j("div", yp, [
7634
- t("div", xp, [
7633
+ return w(), j("div", xp, [
7634
+ t("div", bp, [
7635
7635
  l(Ye, {
7636
7636
  "date-range": s(K),
7637
- "onUpdate:dateRange": h[0] || (h[0] = (m) => Te(K) ? K.value = m : null),
7637
+ "onUpdate:dateRange": h[0] || (h[0] = (m) => Me(K) ? K.value = m : null),
7638
7638
  compare: !1
7639
7639
  }, null, 8, ["date-range"]),
7640
7640
  l(P, {
@@ -7644,21 +7644,21 @@ const od = [
7644
7644
  onClick: c
7645
7645
  }, null, 8, ["loading", "label"])
7646
7646
  ]),
7647
- t("div", bp, [
7648
- p.value ? (w(), j("div", wp, [
7647
+ t("div", wp, [
7648
+ p.value ? (w(), j("div", hp, [
7649
7649
  l(A, { size: "xl" }),
7650
- t("span", hp, S(s(o)("report.common.isLoading")), 1)
7650
+ t("span", _p, S(s(o)("report.common.isLoading")), 1)
7651
7651
  ])) : (w(), Q(y, {
7652
7652
  key: 1,
7653
7653
  class: "flex p-5 border border-fm-color-border-secondary rounded-lg h-auto min-w-full",
7654
7654
  "row-data": R.value,
7655
- "column-defs": T
7655
+ "column-defs": M
7656
7656
  }, null, 8, ["row-data"]))
7657
7657
  ])
7658
7658
  ]);
7659
7659
  };
7660
7660
  }
7661
- }), Cp = { class: "h-full w-full flex flex-col" }, kp = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, Sp = /* @__PURE__ */ se({
7661
+ }), kp = { class: "h-full w-full flex flex-col" }, Sp = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, $p = /* @__PURE__ */ se({
7662
7662
  __name: "CodemaxPos",
7663
7663
  props: /* @__PURE__ */ fe({
7664
7664
  errorLogs: {
@@ -7686,11 +7686,11 @@ const od = [
7686
7686
  switch (v.value) {
7687
7687
  case "preview":
7688
7688
  return {
7689
- component: _p
7689
+ component: Cp
7690
7690
  };
7691
7691
  case "setting":
7692
7692
  return {
7693
- component: vp,
7693
+ component: yp,
7694
7694
  props: {
7695
7695
  errorLogs: e.errorLogs
7696
7696
  }
@@ -7699,10 +7699,10 @@ const od = [
7699
7699
  return null;
7700
7700
  }
7701
7701
  });
7702
- return (T, c) => {
7702
+ return (M, c) => {
7703
7703
  var P, A, y;
7704
7704
  const x = F("FmPageHead"), h = F("FmTabs");
7705
- return w(), j("div", Cp, [
7705
+ return w(), j("div", kp, [
7706
7706
  l(x, {
7707
7707
  title: ((P = p.value) == null ? void 0 : P.name) || "Codemax POS",
7708
7708
  "back-button": !0,
@@ -7719,7 +7719,7 @@ const od = [
7719
7719
  "onUpdate:modelValue": c[1] || (c[1] = (m) => v.value = m),
7720
7720
  items: I
7721
7721
  }, null, 8, ["model-value"]),
7722
- t("div", kp, [
7722
+ t("div", Sp, [
7723
7723
  (w(), Q(Re((A = R.value) == null ? void 0 : A.component), tt({
7724
7724
  modelValue: p.value,
7725
7725
  "onUpdate:modelValue": c[2] || (c[2] = (m) => p.value = m)
@@ -7728,10 +7728,10 @@ const od = [
7728
7728
  ]);
7729
7729
  };
7730
7730
  }
7731
- }), $p = { class: "px-24 h-full relative" }, Rp = /* @__PURE__ */ se({
7731
+ }), Dp = { class: "px-24 h-full relative" }, Up = /* @__PURE__ */ se({
7732
7732
  __name: "Integration",
7733
7733
  setup(g) {
7734
- const o = Z(void 0), e = ft(), p = Ce(), v = Ke(), I = Z(), K = Z([]), { rules: R, notifyUnauthorized: T } = Ue(), c = Z(!1), x = Z(v.settings.length > 0);
7734
+ const o = Z(void 0), e = ft(), p = Ce(), v = Ke(), I = Z(), K = Z([]), { rules: R, notifyUnauthorized: M } = Ue(), c = Z(!1), x = Z(v.settings.length > 0);
7735
7735
  nt(async () => {
7736
7736
  try {
7737
7737
  v.settings.length === 0 && await v.getSettings();
@@ -7757,7 +7757,7 @@ const od = [
7757
7757
  rules: R.value,
7758
7758
  action: ne.read
7759
7759
  }) && !c.value) {
7760
- c.value = !0, T(ne.read), p.replace({ name: "integrations", query: e.query });
7760
+ c.value = !0, M(ne.read), p.replace({ name: "integrations", query: e.query });
7761
7761
  return;
7762
7762
  }
7763
7763
  I.value = u, o.value = (i = I.value.platform) == null ? void 0 : i.name, I.value._id && (K.value = await $t(I.value._id));
@@ -7768,28 +7768,28 @@ const od = [
7768
7768
  const h = G(() => {
7769
7769
  switch (o.value) {
7770
7770
  case Ne.Xero:
7771
- return da;
7771
+ return pa;
7772
7772
  case Ne.Bukku:
7773
- return sl;
7773
+ return rl;
7774
7774
  case Ne.AutoCount:
7775
- return un;
7775
+ return cn;
7776
7776
  case Ne.SQL:
7777
- return rs;
7777
+ return is;
7778
7778
  case Ne.iFlexi_HRMS:
7779
- return Br;
7779
+ return Yr;
7780
7780
  case Ne.Biztory:
7781
- return yr;
7781
+ return xr;
7782
7782
  case Ne.AutoCountCloud:
7783
- return md;
7783
+ return ud;
7784
7784
  case Ne.SynergyExport:
7785
- return Bd;
7785
+ return Yd;
7786
7786
  case Ne.CodemaxPos:
7787
- return Sp;
7787
+ return $p;
7788
7788
  default:
7789
7789
  return null;
7790
7790
  }
7791
7791
  });
7792
- return (P, A) => (w(), j("div", $p, [
7792
+ return (P, A) => (w(), j("div", Dp, [
7793
7793
  (w(), Q(Re(h.value), {
7794
7794
  modelValue: I.value,
7795
7795
  "onUpdate:modelValue": A[0] || (A[0] = (y) => I.value = y),
@@ -7799,5 +7799,5 @@ const od = [
7799
7799
  }
7800
7800
  });
7801
7801
  export {
7802
- Rp as default
7802
+ Up as default
7803
7803
  };