@feedmepos/mf-report 5.16.0-beta.0 → 5.16.0-beta.1

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as G, mergeModels as Se, useModel as W, computed as Y, resolveComponent as D, createElementBlock as P, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as je, Fragment as xe, createBlock as M, withCtx as be, toDisplayString as C, renderList as Ce, createVNode as n, unref as r, normalizeStyle as Je, createTextVNode as Ze, ref as q, onUnmounted as Ae, watch as we, isRef as $e, h as A, resolveDynamicComponent as Ve, mergeProps as Be, onMounted as qe } from "vue";
1
+ import { defineComponent as X, mergeModels as Se, useModel as W, computed as q, resolveComponent as D, createElementBlock as P, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as je, Fragment as xe, createBlock as M, withCtx as we, toDisplayString as C, renderList as Ce, createVNode as n, unref as r, normalizeStyle as Je, createTextVNode as Ze, ref as Y, onUnmounted as Ae, watch as _e, isRef as $e, h as A, resolveDynamicComponent as Ve, mergeProps as Be, onMounted as Ye } from "vue";
2
2
  import { useRouter as ue, useRoute as et } from "vue-router";
3
- import { u as J, I as ge, d as Me, t as tt, e as ke, f as De, b as fe, x as ot, n as at, w as Ke, y as Te, z as Fe, A as Ne, B as Ee, E as lt, G as nt, H as st, J as _e, K as Oe, L as it, M as rt, N as dt, O as mt } from "./vue-i18n-CHLsTHGb.js";
3
+ import { u as J, I as ge, d as Me, t as tt, e as ke, f as De, b as fe, x as ot, n as at, w as Ke, y as Te, z as Fe, A as Ne, B as Ee, E as lt, G as nt, H as st, J as be, K as Oe, L as it, M as rt, N as dt, O as mt } from "./vue-i18n-CHLsTHGb.js";
4
4
  import { u as Ue } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as ve } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as Ie } from "pinia";
@@ -8,7 +8,7 @@ import { _ as Pe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Y
8
8
  const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ct = { class: "w-[100%]" }, ut = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ft = { class: "w-[100%] flex flex-row gap-[4px]" }, vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, gt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, yt = {
9
9
  key: 0,
10
10
  class: "w-[24px] flex items-center"
11
- }, L = /* @__PURE__ */ G({
11
+ }, L = /* @__PURE__ */ X({
12
12
  __name: "MappingField",
13
13
  props: /* @__PURE__ */ Se({
14
14
  removable: {
@@ -37,7 +37,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
37
37
  }),
38
38
  emits: /* @__PURE__ */ Se(["remove"], ["update:modelValue"]),
39
39
  setup(v, { emit: o }) {
40
- const e = W(v, "modelValue"), i = v, y = Y(
40
+ const e = W(v, "modelValue"), i = v, y = q(
41
41
  () => Object.keys(i.options).map((U) => {
42
42
  const x = i.options[U];
43
43
  return {
@@ -76,7 +76,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
76
76
  content: (K = e.value[y.value[0].key]) == null ? void 0 : K.toString(),
77
77
  class: "w-[100%]"
78
78
  }, {
79
- default: be(() => [
79
+ default: we(() => [
80
80
  t("div", ut, C(e.value[y.value[0].key]), 1)
81
81
  ]),
82
82
  _: 1
@@ -101,7 +101,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
101
101
  content: (f = e.value[p.key]) == null ? void 0 : f.toString(),
102
102
  class: "w-[100%]"
103
103
  }, {
104
- default: be(() => [
104
+ default: we(() => [
105
105
  t("div", vt, C(e.value[p.key]), 1)
106
106
  ]),
107
107
  _: 2
@@ -134,7 +134,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
134
134
  content: (f = e.value[p.key]) == null ? void 0 : f.toString(),
135
135
  class: "w-[50%]"
136
136
  }, {
137
- default: be(() => [
137
+ default: we(() => [
138
138
  t("div", gt, C(e.value[p.key]), 1)
139
139
  ]),
140
140
  _: 2
@@ -160,7 +160,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
160
160
  }, _t = { class: "flex flex-col w-[100%] justify-between" }, ht = { class: "flex flex-row items-center w-[100%] justify-start" }, kt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold w-[25%]" }, Ct = {
161
161
  key: 0,
162
162
  class: "flex flex-col w-[100%] justify-start"
163
- }, $t = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Vt = { class: "w-[100%]" }, St = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, At = { class: "flex flex-col w-[100%] justify-between" }, Dt = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, Kt = { class: "w-[100%]" }, Re = /* @__PURE__ */ G({
163
+ }, $t = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Vt = { class: "w-[100%]" }, St = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, At = { class: "flex flex-col w-[100%] justify-between" }, Dt = { class: "text-nowrap w-[50%] overflow-hidden text-ellipsis font-semibold" }, Kt = { class: "w-[100%]" }, Re = /* @__PURE__ */ X({
164
164
  __name: "UploadSection",
165
165
  props: /* @__PURE__ */ Se({
166
166
  label: {
@@ -177,7 +177,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
177
177
  }),
178
178
  emits: ["update:modelValue"],
179
179
  setup(v) {
180
- const { t: o } = J(), e = W(v, "modelValue"), i = Y(() => {
180
+ const { t: o } = J(), e = W(v, "modelValue"), i = q(() => {
181
181
  switch (e.value.name) {
182
182
  case ge.AutoCount:
183
183
  case ge.SQL:
@@ -258,7 +258,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
258
258
  }), Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Ft = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Nt = {
259
259
  key: 0,
260
260
  class: "w-[24px] flex items-center"
261
- }, We = /* @__PURE__ */ G({
261
+ }, We = /* @__PURE__ */ X({
262
262
  __name: "MappingDropdown",
263
263
  props: /* @__PURE__ */ Se({
264
264
  removable: {
@@ -287,7 +287,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
287
287
  }),
288
288
  emits: /* @__PURE__ */ Se(["remove"], ["update:modelValue"]),
289
289
  setup(v, { emit: o }) {
290
- const e = W(v, "modelValue"), i = v, y = Y(
290
+ const e = W(v, "modelValue"), i = v, y = q(
291
291
  () => Object.keys(i.options).map((_) => {
292
292
  const u = i.options[_];
293
293
  return {
@@ -340,7 +340,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
340
340
  content: $(m),
341
341
  class: "w-[50%]"
342
342
  }, {
343
- default: be(() => [
343
+ default: we(() => [
344
344
  t("div", Ft, C($(m)), 1)
345
345
  ]),
346
346
  _: 2
@@ -361,7 +361,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
361
361
  }), Ut = { class: "flex flex-row flex-wrap gap-4 justify-between w-[100%]" }, It = {
362
362
  key: 0,
363
363
  class: "w-[24px] flex-shrink-0"
364
- }, Q = /* @__PURE__ */ G({
364
+ }, Q = /* @__PURE__ */ X({
365
365
  __name: "MappingTable",
366
366
  props: {
367
367
  headerItems: {},
@@ -373,7 +373,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
373
373
  },
374
374
  emits: ["remove", "update:rows"],
375
375
  setup(v, { emit: o }) {
376
- const e = v, i = Y(() => e.rows.length > 1 ? Math.min(e.rows.length, e.columnsPerRow) : 1), y = o;
376
+ const e = v, i = q(() => e.rows.length > 1 ? Math.min(e.rows.length, e.columnsPerRow) : 1), y = o;
377
377
  return (V, $) => (b(), P("div", Ut, [
378
378
  (b(!0), P(xe, null, Ce(e.rows, (U, x) => (b(), P("div", {
379
379
  key: x,
@@ -426,7 +426,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
426
426
  }), Pt = {
427
427
  key: 0,
428
428
  class: "flex flex-col h-full"
429
- }, Rt = { class: "flex flex-col gap-[16px] pb-[24px]" }, Mt = { class: "flex flex-row justify-between items-center gap-2" }, jt = { class: "flex flex-row gap-2 items-center" }, Ot = { class: "relative group cursor-pointer" }, Lt = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Et = { class: "w-[90%] flex flex-col gap-24" }, Bt = { class: "flex flex-row items-center justify-between gap-2" }, qt = { class: "w-[25%]" }, Yt = { class: "flex flex-col gap-[16px]" }, zt = { class: "flex flex-col max-w-[100%] justify-between" }, Ht = { class: "flex-grow" }, Xt = { class: "flex flex-col max-w-[100%] justify-between" }, Gt = { class: "flex flex-col gap-[16px]" }, Qt = { class: "flex flex-col max-w-[100%] justify-between" }, Wt = { class: "flex-grow" }, Jt = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Zt = { class: "flex-grow" }, eo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, to = { class: "flex-grow" }, oo = { class: "flex flex-row items-center justify-between gap-x-16" }, ao = {
429
+ }, Rt = { class: "flex flex-col gap-[16px] pb-[24px]" }, Mt = { class: "flex flex-row justify-between items-center gap-2" }, jt = { class: "flex flex-row gap-2 items-center" }, Ot = { class: "relative group cursor-pointer" }, Lt = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Et = { class: "w-[90%] flex flex-col gap-24" }, Bt = { class: "flex flex-row items-center justify-between gap-2" }, Yt = { class: "w-[25%]" }, qt = { class: "flex flex-col gap-[16px]" }, zt = { class: "flex flex-col max-w-[100%] justify-between" }, Ht = { class: "flex-grow" }, Gt = { class: "flex flex-col max-w-[100%] justify-between" }, Xt = { class: "flex flex-col gap-[16px]" }, Qt = { class: "flex flex-col max-w-[100%] justify-between" }, Wt = { class: "flex-grow" }, Jt = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Zt = { class: "flex-grow" }, eo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, to = { class: "flex-grow" }, oo = { class: "flex flex-row items-center justify-between gap-x-16" }, ao = {
430
430
  key: 0,
431
431
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
432
432
  }, lo = { class: "flex flex-row items-center justify-between gap-x-16" }, no = {
@@ -438,7 +438,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
438
438
  }, ro = { class: "flex flex-row items-center justify-between gap-x-16" }, mo = {
439
439
  key: 9,
440
440
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
441
- }, po = /* @__PURE__ */ G({
441
+ }, po = /* @__PURE__ */ X({
442
442
  __name: "Setting",
443
443
  props: /* @__PURE__ */ Se({
444
444
  tenantOptions: {
@@ -459,12 +459,12 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
459
459
  }),
460
460
  emits: ["update:modelValue"],
461
461
  setup(v) {
462
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(!1), u = Y(
462
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(!1), u = q(
463
463
  () => x.map((l) => ({ label: l.name, value: l.id }))
464
- ), N = Y(() => {
464
+ ), N = q(() => {
465
465
  var l, a;
466
466
  return _.value ? "Connecting" : (a = (l = e.value) == null ? void 0 : l.platform) != null && a.accessToken ? "Disconnect" : "Connect";
467
- }), K = q(0);
467
+ }), K = Y(0);
468
468
  async function p() {
469
469
  var l;
470
470
  if (_.value)
@@ -557,9 +557,9 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
557
557
  return Ae(async () => {
558
558
  await y.getSettings();
559
559
  }), (l, a) => {
560
- var X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F, c, R, S, z, ye, Ye, ze, He, Xe, Ge, Qe;
560
+ var G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F, c, R, S, z, ye, qe, ze, He, Ge, Xe, Qe;
561
561
  const d = D("FmIcon"), T = D("FmButton"), I = D("FmMenuDivider"), j = D("FmCircularProgress"), B = D("FmSelect"), E = D("FmTextField"), H = D("FmSwitch");
562
- return (ee = (X = e.value) == null ? void 0 : X.platform) != null && ee.mappings ? (b(), P("div", Pt, [
562
+ return (ee = (G = e.value) == null ? void 0 : G.platform) != null && ee.mappings ? (b(), P("div", Pt, [
563
563
  t("div", Rt, [
564
564
  t("div", Mt, [
565
565
  a[19] || (a[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
@@ -591,7 +591,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
591
591
  t("div", Et, [
592
592
  a[31] || (a[31] = 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)),
593
593
  t("div", Bt, [
594
- t("div", qt, [
594
+ t("div", Yt, [
595
595
  n(T, {
596
596
  disabled: _.value,
597
597
  variant: "primary",
@@ -612,7 +612,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
612
612
  }, null, 8, ["items", "model-value", "placeholder"])
613
613
  ]),
614
614
  n(I, { style: { margin: 0 } }),
615
- t("div", Yt, [
615
+ t("div", qt, [
616
616
  a[22] || (a[22] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
617
617
  t("div", zt, [
618
618
  a[20] || (a[20] = t("div", { class: "w-[25%] font-semibold" }, "Name", -1)),
@@ -623,7 +623,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
623
623
  }, null, 8, ["modelValue"])
624
624
  ])
625
625
  ]),
626
- t("div", Xt, [
626
+ t("div", Gt, [
627
627
  a[21] || (a[21] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
628
628
  n(B, {
629
629
  modelValue: e.value.platform.locationIds,
@@ -643,7 +643,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
643
643
  "last-upload-date": (le = e.value.platform) == null ? void 0 : le.lastUploadDate
644
644
  }, null, 8, ["modelValue", "last-upload-date"]),
645
645
  n(I, { style: { margin: 0 } }),
646
- t("div", Gt, [
646
+ t("div", Xt, [
647
647
  a[30] || (a[30] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
648
648
  t("div", Qt, [
649
649
  a[23] || (a[23] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
@@ -769,7 +769,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
769
769
  ((S = v.accountCodeOptions.data) == null ? void 0 : S.length) > 0 ? (b(), M(Q, {
770
770
  key: 8,
771
771
  "header-items": ["Feedme Key", "Item Code"],
772
- rows: ((Ye = (ye = (z = e.value) == null ? void 0 : z.platform) == null ? void 0 : ye.mappings) == null ? void 0 : Ye.items) || [],
772
+ rows: ((qe = (ye = (z = e.value) == null ? void 0 : z.platform) == null ? void 0 : ye.mappings) == null ? void 0 : qe.items) || [],
773
773
  "columns-per-row": 2,
774
774
  removable: !0,
775
775
  "mapping-type": "items",
@@ -805,7 +805,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
805
805
  ((He = v.accountCodeOptions.data) == null ? void 0 : He.length) > 0 ? (b(), M(Q, {
806
806
  key: 11,
807
807
  "header-items": ["Feedme Key", "Payment Code"],
808
- rows: ((Qe = (Ge = (Xe = e.value) == null ? void 0 : Xe.platform) == null ? void 0 : Ge.mappings) == null ? void 0 : Qe.payments) || [],
808
+ rows: ((Qe = (Xe = (Ge = e.value) == null ? void 0 : Ge.platform) == null ? void 0 : Xe.mappings) == null ? void 0 : Qe.payments) || [],
809
809
  "columns-per-row": 2,
810
810
  removable: !0,
811
811
  "mapping-type": "payments",
@@ -832,7 +832,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
832
832
  }), co = { class: "h-full flex flex-col gap-16" }, uo = { class: "flex flex-row gap-2 justify-between items-center" }, fo = {
833
833
  key: 0,
834
834
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
835
- }, vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, go = /* @__PURE__ */ G({
835
+ }, vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, go = /* @__PURE__ */ X({
836
836
  __name: "Preview",
837
837
  props: {
838
838
  modelValue: { required: !0 },
@@ -840,7 +840,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
840
840
  },
841
841
  emits: ["update:modelValue"],
842
842
  setup(v) {
843
- const o = q([]), { t: e } = J(), i = Y(
843
+ const o = Y([]), { t: e } = J(), i = q(
844
844
  () => o.value.reduce((u, N) => {
845
845
  const K = u.length, { invoice: p, payments: f } = N;
846
846
  u[K] = {
@@ -947,8 +947,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
947
947
  header: "Payment Amount",
948
948
  enableSorting: !1
949
949
  }
950
- ], V = W(v, "modelValue"), $ = q(!1), U = ve(), { dateRange: x } = Ie(fe());
951
- we(
950
+ ], V = W(v, "modelValue"), $ = Y(!1), U = ve(), { dateRange: x } = Ie(fe());
951
+ _e(
952
952
  () => x.value,
953
953
  async () => {
954
954
  if (V.value._id)
@@ -1001,7 +1001,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1001
1001
  ]);
1002
1002
  };
1003
1003
  }
1004
- }), yo = { class: "h-full relative flex flex-col" }, xo = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, bo = /* @__PURE__ */ G({
1004
+ }), yo = { class: "h-full relative flex flex-col" }, xo = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, bo = /* @__PURE__ */ X({
1005
1005
  __name: "Xero",
1006
1006
  props: {
1007
1007
  modelValue: { required: !0 },
@@ -1009,7 +1009,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1009
1009
  },
1010
1010
  emits: ["update:modelValue"],
1011
1011
  setup(v) {
1012
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = q({}), V = q({}), $ = q({}), U = [
1012
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = Y({}), V = Y({}), $ = Y({}), U = [
1013
1013
  {
1014
1014
  label: o("report.integration.setting"),
1015
1015
  value: "setting",
@@ -1020,7 +1020,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1020
1020
  value: "preview",
1021
1021
  icon: "table"
1022
1022
  }
1023
- ], x = ue(), _ = Y(() => {
1023
+ ], x = ue(), _ = q(() => {
1024
1024
  switch (i.value) {
1025
1025
  case "preview":
1026
1026
  return { component: go };
@@ -1079,7 +1079,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1079
1079
  $.value.isLoaded = !0;
1080
1080
  }
1081
1081
  }
1082
- return we(
1082
+ return _e(
1083
1083
  () => {
1084
1084
  var p;
1085
1085
  return (p = e.value.platform) == null ? void 0 : p.accessToken;
@@ -1098,7 +1098,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1098
1098
  style: { paddingLeft: "0px", paddingRight: "0px" },
1099
1099
  "onClick:back": r(x).back
1100
1100
  }, {
1101
- description: be(() => f[2] || (f[2] = [
1101
+ description: we(() => f[2] || (f[2] = [
1102
1102
  t("div", null, null, -1)
1103
1103
  ])),
1104
1104
  _: 1
@@ -1117,7 +1117,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1117
1117
  ]);
1118
1118
  };
1119
1119
  }
1120
- }), wo = { class: "mt-6 mb-6" }, _o = { class: "list-disc pl-6 space-y-1" }, Le = /* @__PURE__ */ G({
1120
+ }), wo = { class: "mt-6 mb-6" }, _o = { class: "list-disc pl-6 space-y-1" }, Le = /* @__PURE__ */ X({
1121
1121
  __name: "ReferenceNumberGuideButton",
1122
1122
  setup(v) {
1123
1123
  const { t: o } = J(), e = [
@@ -1198,14 +1198,14 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1198
1198
  "dismiss-away": "",
1199
1199
  "max-width": 780
1200
1200
  }, {
1201
- "side-sheet-button": be(() => [
1201
+ "side-sheet-button": we(() => [
1202
1202
  n($, {
1203
1203
  name: "info",
1204
1204
  color: "primary",
1205
1205
  class: "cursor-pointer p-2"
1206
1206
  })
1207
1207
  ]),
1208
- default: be(() => [
1208
+ default: we(() => [
1209
1209
  t("div", wo, [
1210
1210
  t("ul", _o, [
1211
1211
  t("li", null, C(r(o)("report.integration.refNumGuide.1stPoint")), 1),
@@ -1228,7 +1228,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1228
1228
  }), ho = {
1229
1229
  key: 0,
1230
1230
  class: "flex flex-col h-full"
1231
- }, ko = { class: "flex flex-col gap-16 pb-[24px]" }, Co = { class: "flex flex-row justify-between items-center gap-2" }, $o = { class: "fm-typo-en-title-sm-800" }, Vo = { class: "flex flex-row gap-2 items-center" }, So = { class: "relative group cursor-pointer" }, Ao = { 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-24 pt-[24px] overflow-scroll" }, Ko = { class: "w-[90%] flex flex-col gap-24" }, To = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fo = { class: "flex flex-col justify-between" }, No = { class: "w-[25%] font-semibold" }, Uo = { class: "flex-grow" }, Io = { class: "flex flex-col justify-between" }, Po = { class: "w-[25%] font-semibold" }, Ro = { class: "flex-grow" }, Mo = { class: "flex flex-col gap-16" }, jo = { class: "fm-typo-en-title-sm-800" }, Oo = { class: "flex flex-col max-w-[100%]" }, Lo = { class: "w-[25%] font-semibold" }, Eo = { class: "flex-grow" }, Bo = { class: "flex flex-col max-w-[100%]" }, qo = { class: "w-[25%] font-semibold" }, Yo = { class: "flex flex-col max-w-[100%]" }, zo = { class: "w-[25%] font-semibold" }, Ho = { class: "flex flex-col max-w-[100%]" }, Xo = { class: "flex flex-col gap-16" }, Go = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Qo = { class: "flex flex-col gap-16 pt-3 pb-3" }, Wo = { class: "flex flex-row items-center gap-5" }, Jo = { class: "fm-typo-en-title-sm-800" }, Zo = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ea = { class: "flex flex-row items-center justify-between gap-x-16" }, ta = { class: "fm-typo-en-title-sm-800" }, oa = { class: "flex flex-row items-center justify-between gap-x-16" }, aa = { class: "fm-typo-en-title-sm-800" }, la = { class: "flex flex-row items-center justify-between gap-x-16" }, na = { class: "fm-typo-en-title-sm-800" }, sa = { class: "flex flex-row items-center justify-between gap-x-16" }, ia = { class: "fm-typo-en-title-sm-800" }, ra = /* @__PURE__ */ G({
1231
+ }, ko = { class: "flex flex-col gap-16 pb-[24px]" }, Co = { class: "flex flex-row justify-between items-center gap-2" }, $o = { class: "fm-typo-en-title-sm-800" }, Vo = { class: "flex flex-row gap-2 items-center" }, So = { class: "relative group cursor-pointer" }, Ao = { 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-24 pt-[24px] overflow-scroll" }, Ko = { class: "w-[90%] flex flex-col gap-24" }, To = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fo = { class: "flex flex-col justify-between" }, No = { class: "w-[25%] font-semibold" }, Uo = { class: "flex-grow" }, Io = { class: "flex flex-col justify-between" }, Po = { class: "w-[25%] font-semibold" }, Ro = { class: "flex-grow" }, Mo = { class: "flex flex-col gap-16" }, jo = { class: "fm-typo-en-title-sm-800" }, Oo = { class: "flex flex-col max-w-[100%]" }, Lo = { class: "w-[25%] font-semibold" }, Eo = { class: "flex-grow" }, Bo = { class: "flex flex-col max-w-[100%]" }, Yo = { class: "w-[25%] font-semibold" }, qo = { class: "flex flex-col max-w-[100%]" }, zo = { class: "w-[25%] font-semibold" }, Ho = { class: "flex flex-col max-w-[100%]" }, Go = { class: "flex flex-col gap-16" }, Xo = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Qo = { class: "flex flex-col gap-16 pt-3 pb-3" }, Wo = { class: "flex flex-row items-center gap-5" }, Jo = { class: "fm-typo-en-title-sm-800" }, Zo = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ea = { class: "flex flex-row items-center justify-between gap-x-16" }, ta = { class: "fm-typo-en-title-sm-800" }, oa = { class: "flex flex-row items-center justify-between gap-x-16" }, aa = { class: "fm-typo-en-title-sm-800" }, la = { class: "flex flex-row items-center justify-between gap-x-16" }, na = { class: "fm-typo-en-title-sm-800" }, sa = { class: "flex flex-row items-center justify-between gap-x-16" }, ia = { class: "fm-typo-en-title-sm-800" }, ra = /* @__PURE__ */ X({
1232
1232
  __name: "Setting",
1233
1233
  props: {
1234
1234
  modelValue: { required: !0 },
@@ -1236,7 +1236,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1236
1236
  },
1237
1237
  emits: ["update:modelValue"],
1238
1238
  setup(v) {
1239
- const o = W(v, "modelValue"), e = ve(), i = ke(), y = ue(), { promptLoader: V } = De(), { promptMessage: $ } = Ue(), { restaurants: U } = fe(), x = Y(
1239
+ const o = W(v, "modelValue"), e = ve(), i = ke(), y = ue(), { promptLoader: V } = De(), { promptMessage: $ } = Ue(), { restaurants: U } = fe(), x = q(
1240
1240
  () => U.map((s) => ({ label: s.name, value: s.id }))
1241
1241
  ), { t: _ } = J();
1242
1242
  async function u() {
@@ -1307,19 +1307,19 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1307
1307
  const f = [
1308
1308
  {
1309
1309
  label: _("report.integration.grouping.byDay"),
1310
- value: _e.BY_DAY
1310
+ value: be.BY_DAY
1311
1311
  },
1312
1312
  {
1313
1313
  label: _("report.integration.grouping.byDayItem"),
1314
- value: _e.BY_DAY_ITEM
1314
+ value: be.BY_DAY_ITEM
1315
1315
  },
1316
1316
  {
1317
1317
  label: _("report.integration.grouping.byInvoice"),
1318
- value: _e.BY_INVOICE
1318
+ value: be.BY_INVOICE
1319
1319
  },
1320
1320
  {
1321
1321
  label: _("report.integration.grouping.byDaySeparatePayment"),
1322
- value: _e.BY_DAY_SEPARATE_PAYMENT
1322
+ value: be.BY_DAY_SEPARATE_PAYMENT
1323
1323
  }
1324
1324
  ], m = [
1325
1325
  {
@@ -1360,7 +1360,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1360
1360
  return Ae(async () => {
1361
1361
  await i.getSettings();
1362
1362
  }), (s, l) => {
1363
- var B, E, H, X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F;
1363
+ var B, E, H, G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F;
1364
1364
  const a = D("FmIcon"), d = D("FmButton"), T = D("FmMenuDivider"), I = D("FmTextField"), j = D("FmSelect");
1365
1365
  return (E = (B = o.value) == null ? void 0 : B.platform) != null && E.mappings ? (b(), P("div", ho, [
1366
1366
  t("div", ko, [
@@ -1426,7 +1426,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1426
1426
  ])
1427
1427
  ]),
1428
1428
  t("div", Bo, [
1429
- t("div", qo, C(r(_)("report.common.location")), 1),
1429
+ t("div", Yo, C(r(_)("report.common.location")), 1),
1430
1430
  n(j, {
1431
1431
  modelValue: o.value.platform.locationIds,
1432
1432
  "onUpdate:modelValue": l[3] || (l[3] = (c) => o.value.platform.locationIds = c),
@@ -1436,7 +1436,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1436
1436
  class: "flex-grow"
1437
1437
  }, null, 8, ["modelValue", "items"])
1438
1438
  ]),
1439
- t("div", Yo, [
1439
+ t("div", qo, [
1440
1440
  t("div", zo, C(r(_)("report.integration.grouping.title")), 1),
1441
1441
  n(j, {
1442
1442
  modelValue: o.value.platform.grouping,
@@ -1459,8 +1459,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1459
1459
  }, null, 8, ["modelValue"])
1460
1460
  ])
1461
1461
  ]),
1462
- t("div", Xo, [
1463
- t("div", Go, [
1462
+ t("div", Go, [
1463
+ t("div", Xo, [
1464
1464
  n(L, {
1465
1465
  "model-value": {
1466
1466
  key: "Contact",
@@ -1492,7 +1492,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1492
1492
  (z = (S = (R = o.value) == null ? void 0 : R.platform) == null ? void 0 : S.mappings) != null && z.rounding && (o.value.platform.mappings.rounding.account = c.account);
1493
1493
  })
1494
1494
  }, null, 8, ["model-value", "options"]),
1495
- (b(!0), P(xe, null, Ce((ee = (X = (H = o.value) == null ? void 0 : H.platform) == null ? void 0 : X.mappings) == null ? void 0 : ee.charges, (c, R) => (b(), M(L, {
1495
+ (b(!0), P(xe, null, Ce((ee = (G = (H = o.value) == null ? void 0 : H.platform) == null ? void 0 : G.mappings) == null ? void 0 : ee.charges, (c, R) => (b(), M(L, {
1496
1496
  key: `charge-${R}`,
1497
1497
  modelValue: o.value.platform.mappings.charges[R],
1498
1498
  "onUpdate:modelValue": (S) => o.value.platform.mappings.charges[R] = S,
@@ -1670,7 +1670,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1670
1670
  }), da = { class: "h-full flex flex-col gap-16" }, ma = { class: "flex flex-row gap-2 justify-between items-center" }, pa = {
1671
1671
  key: 0,
1672
1672
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
1673
- }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ua = /* @__PURE__ */ G({
1673
+ }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ua = /* @__PURE__ */ X({
1674
1674
  __name: "Preview",
1675
1675
  props: {
1676
1676
  modelValue: { required: !0 },
@@ -1678,7 +1678,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1678
1678
  },
1679
1679
  emits: ["update:modelValue"],
1680
1680
  setup(v) {
1681
- const o = q([]), e = Y(
1681
+ const o = Y([]), e = q(
1682
1682
  () => o.value.reduce((u, N) => {
1683
1683
  const K = u.length, { invoice: p, payments: f } = N;
1684
1684
  u[K] = {
@@ -1798,8 +1798,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1798
1798
  header: "Payment Amount",
1799
1799
  enableSorting: !1
1800
1800
  }
1801
- ], V = W(v, "modelValue"), $ = q(!1), U = ve(), { dateRange: x } = Ie(fe());
1802
- we(
1801
+ ], V = W(v, "modelValue"), $ = Y(!1), U = ve(), { dateRange: x } = Ie(fe());
1802
+ _e(
1803
1803
  () => x.value,
1804
1804
  async () => {
1805
1805
  if (V.value._id)
@@ -1852,7 +1852,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1852
1852
  ]);
1853
1853
  };
1854
1854
  }
1855
- }), fa = { class: "h-full relative flex flex-col" }, va = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ga = /* @__PURE__ */ G({
1855
+ }), fa = { class: "h-full relative flex flex-col" }, va = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ga = /* @__PURE__ */ X({
1856
1856
  __name: "Bukku",
1857
1857
  props: {
1858
1858
  modelValue: {},
@@ -1860,7 +1860,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1860
1860
  },
1861
1861
  emits: ["update:modelValue"],
1862
1862
  setup(v) {
1863
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
1863
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
1864
1864
  {
1865
1865
  label: o("report.integration.setting"),
1866
1866
  value: "setting",
@@ -1871,7 +1871,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1871
1871
  value: "preview",
1872
1872
  icon: "table"
1873
1873
  }
1874
- ], V = ue(), $ = Y(() => {
1874
+ ], V = ue(), $ = q(() => {
1875
1875
  switch (i.value) {
1876
1876
  case "preview":
1877
1877
  return ua;
@@ -1891,7 +1891,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1891
1891
  style: { paddingLeft: "0px", paddingRight: "0px" },
1892
1892
  "onClick:back": r(V).back
1893
1893
  }, {
1894
- description: be(() => x[2] || (x[2] = [
1894
+ description: we(() => x[2] || (x[2] = [
1895
1895
  t("div", null, null, -1)
1896
1896
  ])),
1897
1897
  _: 1
@@ -1913,7 +1913,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1913
1913
  }), ya = {
1914
1914
  key: 0,
1915
1915
  class: "flex flex-col h-full"
1916
- }, xa = { class: "flex flex-col gap-16 pb-[24px]" }, ba = { class: "flex flex-row justify-between items-center gap-2" }, wa = { class: "flex flex-row gap-2 items-center" }, _a = { class: "relative group cursor-pointer" }, ha = { 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" }, ka = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ca = { class: "w-[90%] flex flex-col gap-24" }, $a = { class: "flex flex-col gap-16" }, Va = { class: "fm-typo-en-title-sm-800" }, Sa = { class: "flex flex-col max-w-[100%]" }, Aa = { class: "w-[25%] font-semibold" }, Da = { class: "flex-grow" }, Ka = { class: "flex flex-col max-w-[100%]" }, Ta = { class: "w-[25%] font-semibold" }, Fa = { class: "flex flex-col max-w-[100%]" }, Na = { class: "w-[25%] font-semibold" }, Ua = { class: "flex flex-col gap-16" }, Ia = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Pa = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ra = { class: "flex flex-row items-center gap-5" }, Ma = { class: "fm-typo-en-title-sm-800" }, ja = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Oa = { class: "flex flex-row items-center justify-between gap-x-16" }, La = { class: "fm-typo-en-title-sm-800" }, Ea = { class: "flex flex-row items-center justify-between gap-x-16" }, Ba = { class: "fm-typo-en-title-sm-800" }, qa = { class: "flex flex-row items-center justify-between gap-x-16" }, Ya = { class: "fm-typo-en-title-sm-800" }, za = { class: "flex flex-row items-center justify-between gap-x-16" }, Ha = { class: "fm-typo-en-title-sm-800" }, Xa = /* @__PURE__ */ G({
1916
+ }, xa = { class: "flex flex-col gap-16 pb-[24px]" }, ba = { class: "flex flex-row justify-between items-center gap-2" }, wa = { class: "flex flex-row gap-2 items-center" }, _a = { class: "relative group cursor-pointer" }, ha = { 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" }, ka = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ca = { class: "w-[90%] flex flex-col gap-24" }, $a = { class: "flex flex-col gap-16" }, Va = { class: "fm-typo-en-title-sm-800" }, Sa = { class: "flex flex-col max-w-[100%]" }, Aa = { class: "w-[25%] font-semibold" }, Da = { class: "flex-grow" }, Ka = { class: "flex flex-col max-w-[100%]" }, Ta = { class: "w-[25%] font-semibold" }, Fa = { class: "flex flex-col max-w-[100%]" }, Na = { class: "w-[25%] font-semibold" }, Ua = { class: "flex flex-col gap-16" }, Ia = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Pa = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ra = { class: "flex flex-row items-center gap-5" }, Ma = { class: "fm-typo-en-title-sm-800" }, ja = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Oa = { class: "flex flex-row items-center justify-between gap-x-16" }, La = { class: "fm-typo-en-title-sm-800" }, Ea = { class: "flex flex-row items-center justify-between gap-x-16" }, Ba = { class: "fm-typo-en-title-sm-800" }, Ya = { class: "flex flex-row items-center justify-between gap-x-16" }, qa = { class: "fm-typo-en-title-sm-800" }, za = { class: "flex flex-row items-center justify-between gap-x-16" }, Ha = { class: "fm-typo-en-title-sm-800" }, Ga = /* @__PURE__ */ X({
1917
1917
  __name: "Setting",
1918
1918
  props: {
1919
1919
  modelValue: { required: !0 },
@@ -1921,7 +1921,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1921
1921
  },
1922
1922
  emits: ["update:modelValue"],
1923
1923
  setup(v) {
1924
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
1924
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
1925
1925
  () => x.map((k) => ({ label: k.name, value: k.id }))
1926
1926
  );
1927
1927
  async function u() {
@@ -1973,15 +1973,15 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1973
1973
  const f = [
1974
1974
  {
1975
1975
  label: "By day",
1976
- value: _e.BY_DAY
1976
+ value: be.BY_DAY
1977
1977
  },
1978
1978
  {
1979
1979
  label: "By invoice",
1980
- value: _e.BY_INVOICE
1980
+ value: be.BY_INVOICE
1981
1981
  },
1982
1982
  {
1983
1983
  label: "By day and category",
1984
- value: _e.BY_DAY_CATEGORY
1984
+ value: be.BY_DAY_CATEGORY
1985
1985
  }
1986
1986
  ];
1987
1987
  function m({
@@ -2009,7 +2009,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2009
2009
  return Ae(async () => {
2010
2010
  await y.getSettings();
2011
2011
  }), (k, s) => {
2012
- var j, B, E, H, X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
2012
+ var j, B, E, H, G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
2013
2013
  const l = D("FmIcon"), a = D("FmButton"), d = D("FmMenuDivider"), T = D("FmTextField"), I = D("FmSelect");
2014
2014
  return (B = (j = e.value) == null ? void 0 : j.platform) != null && B.mappings ? (b(), P("div", ya, [
2015
2015
  t("div", xa, [
@@ -2099,7 +2099,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2099
2099
  (R = (c = (F = e.value) == null ? void 0 : F.platform) == null ? void 0 : c.mappings) != null && R.rounding && (e.value.platform.mappings.rounding.account = h.account);
2100
2100
  })
2101
2101
  }, null, 8, ["model-value", "options"]),
2102
- (b(!0), P(xe, null, Ce((X = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : X.charges, (h, F) => (b(), M(L, {
2102
+ (b(!0), P(xe, null, Ce((G = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : G.charges, (h, F) => (b(), M(L, {
2103
2103
  key: `charge-${F}`,
2104
2104
  modelValue: e.value.platform.mappings.charges[F],
2105
2105
  "onUpdate:modelValue": (c) => e.value.platform.mappings.charges[F] = c,
@@ -2210,8 +2210,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2210
2210
  })
2211
2211
  }, null, 8, ["rows"]),
2212
2212
  n(d, { style: { margin: 0 } }),
2213
- t("div", qa, [
2214
- t("div", Ya, C(r(o)("report.integration.taxRoundingAdjustments")), 1),
2213
+ t("div", Ya, [
2214
+ t("div", qa, C(r(o)("report.integration.taxRoundingAdjustments")), 1),
2215
2215
  n(a, {
2216
2216
  variant: "secondary",
2217
2217
  "prepend-icon": "add",
@@ -2266,10 +2266,10 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2266
2266
  ])) : O("", !0);
2267
2267
  };
2268
2268
  }
2269
- }), Ga = { class: "h-full flex flex-col gap-16" }, Qa = { class: "flex flex-row gap-2 justify-between items-center" }, Wa = {
2269
+ }), Xa = { class: "h-full flex flex-col gap-16" }, Qa = { class: "flex flex-row gap-2 justify-between items-center" }, Wa = {
2270
2270
  key: 0,
2271
2271
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2272
- }, Ja = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Za = /* @__PURE__ */ G({
2272
+ }, Ja = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Za = /* @__PURE__ */ X({
2273
2273
  __name: "Preview",
2274
2274
  props: {
2275
2275
  modelValue: { required: !0 },
@@ -2277,7 +2277,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2277
2277
  },
2278
2278
  emits: ["update:modelValue"],
2279
2279
  setup(v) {
2280
- const { t: o } = J(), e = q([]), i = Y(
2280
+ const { t: o } = J(), e = Y([]), i = q(
2281
2281
  () => e.value.reduce((u, N) => {
2282
2282
  const K = u.length, { invoice: p, payments: f } = N;
2283
2283
  u[K] = {
@@ -2377,8 +2377,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2377
2377
  header: "Payment Amount",
2378
2378
  enableSorting: !1
2379
2379
  }
2380
- ], V = W(v, "modelValue"), $ = q(!1), U = ve(), { dateRange: x } = Ie(fe());
2381
- we(
2380
+ ], V = W(v, "modelValue"), $ = Y(!1), U = ve(), { dateRange: x } = Ie(fe());
2381
+ _e(
2382
2382
  () => x.value,
2383
2383
  async () => {
2384
2384
  if (V.value._id)
@@ -2405,7 +2405,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2405
2405
  }
2406
2406
  return (u, N) => {
2407
2407
  const K = D("FmButton"), p = D("FmCircularProgress"), f = D("FmTable");
2408
- return b(), P("div", Ga, [
2408
+ return b(), P("div", Xa, [
2409
2409
  t("div", Qa, [
2410
2410
  n(Pe, {
2411
2411
  "date-range": r(x),
@@ -2431,7 +2431,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2431
2431
  ]);
2432
2432
  };
2433
2433
  }
2434
- }), el = { class: "h-full relative flex flex-col" }, tl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ol = /* @__PURE__ */ G({
2434
+ }), el = { class: "h-full relative flex flex-col" }, tl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ol = /* @__PURE__ */ X({
2435
2435
  __name: "AutoCount",
2436
2436
  props: {
2437
2437
  modelValue: {},
@@ -2439,7 +2439,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2439
2439
  },
2440
2440
  emits: ["update:modelValue"],
2441
2441
  setup(v) {
2442
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
2442
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
2443
2443
  {
2444
2444
  label: o("report.integration.setting"),
2445
2445
  value: "setting",
@@ -2450,12 +2450,12 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2450
2450
  value: "preview",
2451
2451
  icon: "table"
2452
2452
  }
2453
- ], V = ue(), $ = Y(() => {
2453
+ ], V = ue(), $ = q(() => {
2454
2454
  switch (i.value) {
2455
2455
  case "preview":
2456
2456
  return Za;
2457
2457
  case "setting":
2458
- return Xa;
2458
+ return Ga;
2459
2459
  default:
2460
2460
  return null;
2461
2461
  }
@@ -2470,7 +2470,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2470
2470
  style: { paddingLeft: "0px", paddingRight: "0px" },
2471
2471
  "onClick:back": r(V).back
2472
2472
  }, {
2473
- description: be(() => x[2] || (x[2] = [
2473
+ description: we(() => x[2] || (x[2] = [
2474
2474
  t("div", null, null, -1)
2475
2475
  ])),
2476
2476
  _: 1
@@ -2492,7 +2492,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2492
2492
  }), al = {
2493
2493
  key: 0,
2494
2494
  class: "flex flex-col h-full"
2495
- }, ll = { class: "flex flex-col gap-16 pb-[24px]" }, nl = { class: "flex flex-row justify-between items-center gap-2" }, sl = { class: "flex flex-row gap-2 items-center" }, il = { class: "relative group cursor-pointer" }, rl = { 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" }, dl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ml = { class: "w-[90%] flex flex-col gap-24" }, pl = { class: "flex flex-col gap-16" }, cl = { class: "fm-typo-en-title-sm-800" }, ul = { class: "flex flex-col max-w-[100%]" }, fl = { class: "w-[25%] font-semibold" }, vl = { class: "flex-grow" }, gl = { class: "flex flex-col max-w-[100%]" }, yl = { class: "w-[25%] font-semibold" }, xl = { class: "flex flex-col max-w-[100%]" }, bl = { class: "w-[25%] font-semibold" }, wl = { class: "flex flex-col gap-16" }, _l = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, hl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, kl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Cl = { class: "flex flex-row items-center gap-5" }, $l = { class: "fm-typo-en-title-sm-800" }, Vl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Sl = { class: "flex flex-row items-center justify-between gap-x-16" }, Al = { class: "fm-typo-en-title-sm-800" }, Dl = { class: "flex flex-row items-center justify-between gap-x-16" }, Kl = { class: "fm-typo-en-title-sm-800" }, Tl = { class: "flex flex-row items-center justify-between gap-x-16" }, Fl = { class: "fm-typo-en-title-sm-800" }, Nl = { class: "flex flex-row items-center justify-between gap-x-16" }, Ul = { class: "fm-typo-en-title-sm-800" }, Il = /* @__PURE__ */ G({
2495
+ }, ll = { class: "flex flex-col gap-16 pb-[24px]" }, nl = { class: "flex flex-row justify-between items-center gap-2" }, sl = { class: "flex flex-row gap-2 items-center" }, il = { class: "relative group cursor-pointer" }, rl = { 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" }, dl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ml = { class: "w-[90%] flex flex-col gap-24" }, pl = { class: "flex flex-col gap-16" }, cl = { class: "fm-typo-en-title-sm-800" }, ul = { class: "flex flex-col max-w-[100%]" }, fl = { class: "w-[25%] font-semibold" }, vl = { class: "flex-grow" }, gl = { class: "flex flex-col max-w-[100%]" }, yl = { class: "w-[25%] font-semibold" }, xl = { class: "flex flex-col max-w-[100%]" }, bl = { class: "w-[25%] font-semibold" }, wl = { class: "flex flex-col gap-16" }, _l = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, hl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, kl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Cl = { class: "flex flex-row items-center gap-5" }, $l = { class: "fm-typo-en-title-sm-800" }, Vl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Sl = { class: "flex flex-row items-center justify-between gap-x-16" }, Al = { class: "fm-typo-en-title-sm-800" }, Dl = { class: "flex flex-row items-center justify-between gap-x-16" }, Kl = { class: "fm-typo-en-title-sm-800" }, Tl = { class: "flex flex-row items-center justify-between gap-x-16" }, Fl = { class: "fm-typo-en-title-sm-800" }, Nl = { class: "flex flex-row items-center justify-between gap-x-16" }, Ul = { class: "fm-typo-en-title-sm-800" }, Il = /* @__PURE__ */ X({
2496
2496
  __name: "Setting",
2497
2497
  props: {
2498
2498
  modelValue: { required: !0 },
@@ -2500,7 +2500,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2500
2500
  },
2501
2501
  emits: ["update:modelValue"],
2502
2502
  setup(v) {
2503
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
2503
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
2504
2504
  () => x.map((k) => ({ label: k.name, value: k.id }))
2505
2505
  );
2506
2506
  async function u() {
@@ -2553,15 +2553,15 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2553
2553
  const f = [
2554
2554
  {
2555
2555
  label: "By day",
2556
- value: _e.BY_DAY
2556
+ value: be.BY_DAY
2557
2557
  },
2558
2558
  {
2559
2559
  label: "By invoice",
2560
- value: _e.BY_INVOICE
2560
+ value: be.BY_INVOICE
2561
2561
  },
2562
2562
  {
2563
2563
  label: "By day and category",
2564
- value: _e.BY_DAY_CATEGORY
2564
+ value: be.BY_DAY_CATEGORY
2565
2565
  }
2566
2566
  ];
2567
2567
  function m({
@@ -2589,7 +2589,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2589
2589
  return Ae(async () => {
2590
2590
  await y.getSettings();
2591
2591
  }), (k, s) => {
2592
- var j, B, E, H, X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
2592
+ var j, B, E, H, G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
2593
2593
  const l = D("FmIcon"), a = D("FmButton"), d = D("FmMenuDivider"), T = D("FmTextField"), I = D("FmSelect");
2594
2594
  return (B = (j = e.value) == null ? void 0 : j.platform) != null && B.mappings ? (b(), P("div", al, [
2595
2595
  t("div", ll, [
@@ -2697,7 +2697,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2697
2697
  (R = (c = (F = e.value) == null ? void 0 : F.platform) == null ? void 0 : c.mappings) != null && R.rounding && (e.value.platform.mappings.rounding.account = h.account, e.value.platform.mappings.rounding.code = h.code);
2698
2698
  })
2699
2699
  }, null, 8, ["model-value"]),
2700
- (b(!0), P(xe, null, Ce((X = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : X.charges, (h, F) => (b(), M(L, {
2700
+ (b(!0), P(xe, null, Ce((G = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : G.charges, (h, F) => (b(), M(L, {
2701
2701
  key: `charge-${F}`,
2702
2702
  modelValue: e.value.platform.mappings.charges[F],
2703
2703
  "onUpdate:modelValue": (c) => e.value.platform.mappings.charges[F] = c,
@@ -2869,7 +2869,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2869
2869
  }), Pl = { class: "h-full flex flex-col gap-16" }, Rl = { class: "flex flex-row gap-2 justify-between items-center" }, Ml = {
2870
2870
  key: 0,
2871
2871
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
2872
- }, jl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ol = /* @__PURE__ */ G({
2872
+ }, jl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ol = /* @__PURE__ */ X({
2873
2873
  __name: "Preview",
2874
2874
  props: {
2875
2875
  modelValue: { required: !0 },
@@ -2877,7 +2877,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2877
2877
  },
2878
2878
  emits: ["update:modelValue"],
2879
2879
  setup(v) {
2880
- const { t: o } = J(), e = q([]), i = Y(
2880
+ const { t: o } = J(), e = Y([]), i = q(
2881
2881
  () => e.value.reduce((u, N) => {
2882
2882
  const K = u.length, { invoice: p, payments: f } = N;
2883
2883
  u[K] = {
@@ -2972,8 +2972,8 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2972
2972
  header: "Payment Amount",
2973
2973
  enableSorting: !1
2974
2974
  }
2975
- ], V = W(v, "modelValue"), $ = q(!1), U = ve(), { dateRange: x } = Ie(fe());
2976
- we(
2975
+ ], V = W(v, "modelValue"), $ = Y(!1), U = ve(), { dateRange: x } = Ie(fe());
2976
+ _e(
2977
2977
  () => x.value,
2978
2978
  async () => {
2979
2979
  if (V.value._id)
@@ -3026,7 +3026,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3026
3026
  ]);
3027
3027
  };
3028
3028
  }
3029
- }), Ll = { class: "h-full relative flex flex-col" }, El = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Bl = /* @__PURE__ */ G({
3029
+ }), Ll = { class: "h-full relative flex flex-col" }, El = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Bl = /* @__PURE__ */ X({
3030
3030
  __name: "SQL",
3031
3031
  props: {
3032
3032
  modelValue: {},
@@ -3034,7 +3034,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3034
3034
  },
3035
3035
  emits: ["update:modelValue"],
3036
3036
  setup(v) {
3037
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
3037
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
3038
3038
  {
3039
3039
  label: o("report.integration.setting"),
3040
3040
  value: "setting",
@@ -3045,7 +3045,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3045
3045
  value: "preview",
3046
3046
  icon: "table"
3047
3047
  }
3048
- ], V = ue(), $ = Y(() => {
3048
+ ], V = ue(), $ = q(() => {
3049
3049
  switch (i.value) {
3050
3050
  case "preview":
3051
3051
  return Ol;
@@ -3065,7 +3065,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3065
3065
  style: { paddingLeft: "0px", paddingRight: "0px" },
3066
3066
  "onClick:back": r(V).back
3067
3067
  }, {
3068
- description: be(() => x[2] || (x[2] = [
3068
+ description: we(() => x[2] || (x[2] = [
3069
3069
  t("div", null, null, -1)
3070
3070
  ])),
3071
3071
  _: 1
@@ -3084,10 +3084,10 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3084
3084
  ]);
3085
3085
  };
3086
3086
  }
3087
- }), ql = {
3087
+ }), Yl = {
3088
3088
  key: 0,
3089
3089
  class: "flex flex-col h-full"
3090
- }, Yl = { class: "flex flex-col gap-16 pb-[24px]" }, zl = { class: "flex flex-row justify-between items-center gap-2" }, Hl = { class: "fm-typo-en-title-sm-800" }, Xl = { class: "flex flex-row gap-2 items-center" }, Gl = { class: "flex flex-row gap-2 items-center" }, Ql = { class: "relative group cursor-pointer" }, Wl = { 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" }, Jl = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Zl = { class: "w-[90%] flex flex-col gap-24" }, en = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tn = { class: "flex flex-col max-w-[100%]" }, on = { class: "w-[25%] font-semibold" }, an = { class: "flex-grow" }, ln = { class: "flex flex-col gap-24 pt-[24px]" }, nn = { class: "flex flex-col justify-between" }, sn = { class: "w-[25%] font-semibold" }, rn = { class: "flex-grow" }, dn = { class: "flex flex-col justify-between" }, mn = { class: "w-[25%] font-semibold" }, pn = { class: "flex-grow" }, cn = { class: "flex flex-col gap-16" }, un = { class: "fm-typo-en-title-sm-800" }, fn = { class: "flex flex-col max-w-[100%]" }, vn = { class: "w-[25%] font-semibold" }, gn = { class: "flex-grow" }, yn = { class: "flex flex-col max-w-[100%]" }, xn = { class: "w-[25%] font-semibold" }, bn = { class: "flex flex-col max-w-[100%]" }, wn = { class: "w-[25%] font-semibold" }, _n = {
3090
+ }, ql = { class: "flex flex-col gap-16 pb-[24px]" }, zl = { class: "flex flex-row justify-between items-center gap-2" }, Hl = { class: "fm-typo-en-title-sm-800" }, Gl = { class: "flex flex-row gap-2 items-center" }, Xl = { class: "flex flex-row gap-2 items-center" }, Ql = { class: "relative group cursor-pointer" }, Wl = { 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" }, Jl = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Zl = { class: "w-[90%] flex flex-col gap-24" }, en = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tn = { class: "flex flex-col max-w-[100%]" }, on = { class: "w-[25%] font-semibold" }, an = { class: "flex-grow" }, ln = { class: "flex flex-col gap-24 pt-[24px]" }, nn = { class: "flex flex-col justify-between" }, sn = { class: "w-[25%] font-semibold" }, rn = { class: "flex-grow" }, dn = { class: "flex flex-col justify-between" }, mn = { class: "w-[25%] font-semibold" }, pn = { class: "flex-grow" }, cn = { class: "flex flex-col gap-16" }, un = { class: "fm-typo-en-title-sm-800" }, fn = { class: "flex flex-col max-w-[100%]" }, vn = { class: "w-[25%] font-semibold" }, gn = { class: "flex-grow" }, yn = { class: "flex flex-col max-w-[100%]" }, xn = { class: "w-[25%] font-semibold" }, bn = { class: "flex flex-col max-w-[100%]" }, wn = { class: "w-[25%] font-semibold" }, _n = {
3091
3091
  key: 0,
3092
3092
  class: "flex flex-col max-w-[100%]"
3093
3093
  }, hn = { class: "flex flex-col gap-16" }, kn = { class: "xs:grid-cols-1 grid gap-16" }, Cn = { key: 1 }, $n = { class: "flex flex-col gap-16 pt-3 pb-3" }, Vn = { class: "flex flex-row items-center gap-5" }, Sn = { class: "fm-typo-en-title-sm-800" }, An = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Dn = { class: "flex flex-row items-center justify-between gap-x-16" }, Kn = { class: "fm-typo-en-title-sm-800" }, Tn = { class: "flex flex-row items-center justify-between gap-x-16" }, Fn = { class: "fm-typo-en-title-sm-800" }, Nn = { class: "flex flex-row items-center justify-between gap-x-16" }, Un = { class: "fm-typo-en-title-sm-800" }, In = { class: "flex flex-row items-center justify-between gap-x-16" }, Pn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "flex flex-row items-center justify-between" }, Mn = { class: "flex-grow" }, jn = {
@@ -3099,7 +3099,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3099
3099
  }, Ln = {
3100
3100
  key: 3,
3101
3101
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
3102
- }, En = /* @__PURE__ */ G({
3102
+ }, En = /* @__PURE__ */ X({
3103
3103
  __name: "Setting",
3104
3104
  props: /* @__PURE__ */ Se({
3105
3105
  retrievedMethods: {
@@ -3116,7 +3116,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3116
3116
  }),
3117
3117
  emits: ["update:modelValue"],
3118
3118
  setup(v) {
3119
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
3119
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
3120
3120
  () => x.map((s) => ({ label: s.name, value: s.id }))
3121
3121
  );
3122
3122
  function u(s) {
@@ -3179,7 +3179,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3179
3179
  const m = [
3180
3180
  {
3181
3181
  label: "By day",
3182
- value: _e.BY_DAY
3182
+ value: be.BY_DAY
3183
3183
  }
3184
3184
  ];
3185
3185
  function g({
@@ -3195,7 +3195,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3195
3195
  account: { placeholder: s, editable: !0 }
3196
3196
  };
3197
3197
  }
3198
- we(
3198
+ _e(
3199
3199
  () => {
3200
3200
  var s, l, a;
3201
3201
  return (a = (l = (s = e.value) == null ? void 0 : s.platform) == null ? void 0 : l.mappings) == null ? void 0 : a.taxes;
@@ -3225,7 +3225,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3225
3225
  });
3226
3226
  },
3227
3227
  { immediate: !0, deep: !0 }
3228
- ), we(
3228
+ ), _e(
3229
3229
  () => {
3230
3230
  var s, l, a;
3231
3231
  return (a = (l = (s = e.value) == null ? void 0 : s.platform) == null ? void 0 : l.mappings) == null ? void 0 : a.version;
@@ -3251,14 +3251,14 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3251
3251
  return Ae(async () => {
3252
3252
  await y.getSettings();
3253
3253
  }), (s, l) => {
3254
- var E, H, X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F;
3254
+ var E, H, G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F;
3255
3255
  const a = D("FmIcon"), d = D("FmButton"), T = D("FmSelect"), I = D("FmMenuDivider"), j = D("FmTextField"), B = D("FmCircularProgress");
3256
- return (H = (E = e.value) == null ? void 0 : E.platform) != null && H.mappings ? (b(), P("div", ql, [
3257
- t("div", Yl, [
3256
+ return (H = (E = e.value) == null ? void 0 : E.platform) != null && H.mappings ? (b(), P("div", Yl, [
3257
+ t("div", ql, [
3258
3258
  t("div", zl, [
3259
3259
  t("div", Hl, C(r(o)("report.integration.connect")), 1),
3260
- t("div", Xl, [
3261
- t("div", Gl, [
3260
+ t("div", Gl, [
3261
+ t("div", Xl, [
3262
3262
  t("div", Ql, [
3263
3263
  n(a, {
3264
3264
  name: "refresh",
@@ -3373,7 +3373,7 @@ const pt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3373
3373
  key: 0,
3374
3374
  size: "xl"
3375
3375
  })) : O("", !0),
3376
- v.retrievedCustomers.isLoaded && v.retrievedCustomers.data && ((X = v.retrievedCustomers.data) == null ? void 0 : X.length) != 0 ? (b(), P("div", Cn, [
3376
+ v.retrievedCustomers.isLoaded && v.retrievedCustomers.data && ((G = v.retrievedCustomers.data) == null ? void 0 : G.length) != 0 ? (b(), P("div", Cn, [
3377
3377
  e.value.platform.mappings.version == "v2" ? (b(), M(We, {
3378
3378
  key: 0,
3379
3379
  modelValue: e.value.platform.mappings.payeeId,
@@ -3604,14 +3604,14 @@ function Bn(v) {
3604
3604
  for (let E = 1; E < Math.max(((m = i.items) == null ? void 0 : m.length) || 0, ((g = i.transactions) == null ? void 0 : g.length) || 0); E++) {
3605
3605
  const H = y + E;
3606
3606
  o[H] || (o[H] = {});
3607
- const X = i.items[E];
3608
- X ? o[H] = {
3607
+ const G = i.items[E];
3608
+ G ? o[H] = {
3609
3609
  ...o[H],
3610
- item_code: X.code,
3611
- item_desc: X.description,
3612
- item_price: X.price,
3613
- item_tax: X.total_tax,
3614
- item_tax_label: X.tax_label || "-",
3610
+ item_code: G.code,
3611
+ item_desc: G.description,
3612
+ item_price: G.price,
3613
+ item_tax: G.total_tax,
3614
+ item_tax_label: G.tax_label || "-",
3615
3615
  payment_amount: ((k = (w = i.transactions) == null ? void 0 : w[E]) == null ? void 0 : k.amount) || void 0,
3616
3616
  payment_method: ((l = (s = i.transactions) == null ? void 0 : s[E]) == null ? void 0 : l.payment_method) || "-",
3617
3617
  payment_term: ((a = i == null ? void 0 : i.payment_term) == null ? void 0 : a.name) || ""
@@ -3624,7 +3624,7 @@ function Bn(v) {
3624
3624
  return o;
3625
3625
  }, []);
3626
3626
  }
3627
- const qn = [
3627
+ const Yn = [
3628
3628
  {
3629
3629
  accessorKey: "invoice_date",
3630
3630
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
@@ -3696,7 +3696,7 @@ const qn = [
3696
3696
  enableSorting: !1
3697
3697
  }
3698
3698
  ];
3699
- function Yn(v) {
3699
+ function qn(v) {
3700
3700
  return v.reduce((o, e) => {
3701
3701
  var U, x, _, u, N, K, p, f, m, g, w, k, s, l;
3702
3702
  const { invoice: i, payments: y } = e, V = o.length;
@@ -3810,10 +3810,10 @@ const zn = [
3810
3810
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method (ID)"),
3811
3811
  enableSorting: !1
3812
3812
  }
3813
- ], Hn = { class: "h-full flex flex-col gap-16" }, Xn = { class: "flex flex-row gap-2 justify-between items-center" }, Gn = {
3813
+ ], Hn = { class: "h-full flex flex-col gap-16" }, Gn = { class: "flex flex-row gap-2 justify-between items-center" }, Xn = {
3814
3814
  key: 0,
3815
3815
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
3816
- }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wn = /* @__PURE__ */ G({
3816
+ }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wn = /* @__PURE__ */ X({
3817
3817
  __name: "Preview",
3818
3818
  props: {
3819
3819
  modelValue: { required: !0 },
@@ -3821,8 +3821,8 @@ const zn = [
3821
3821
  },
3822
3822
  emits: ["update:modelValue"],
3823
3823
  setup(v) {
3824
- const { t: o } = J(), e = W(v, "modelValue"), i = q(!1), y = ve(), { dateRange: V } = Ie(fe()), $ = q([]);
3825
- we(
3824
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y(!1), y = ve(), { dateRange: V } = Ie(fe()), $ = Y([]);
3825
+ _e(
3826
3826
  () => V.value,
3827
3827
  async () => {
3828
3828
  if (e.value._id)
@@ -3838,18 +3838,18 @@ const zn = [
3838
3838
  immediate: !0
3839
3839
  }
3840
3840
  );
3841
- const U = Y(() => {
3841
+ const U = q(() => {
3842
3842
  switch (e.value.platform.mappings.version) {
3843
3843
  case "v1":
3844
3844
  return Bn($.value);
3845
3845
  case "v2":
3846
- return Yn($.value);
3846
+ return qn($.value);
3847
3847
  }
3848
3848
  return [];
3849
- }), x = Y(() => {
3849
+ }), x = q(() => {
3850
3850
  switch (e.value.platform.mappings.version) {
3851
3851
  case "v1":
3852
- return qn;
3852
+ return Yn;
3853
3853
  case "v2":
3854
3854
  return zn;
3855
3855
  }
@@ -3867,7 +3867,7 @@ const zn = [
3867
3867
  return (u, N) => {
3868
3868
  const K = D("FmButton"), p = D("FmCircularProgress"), f = D("FmTable");
3869
3869
  return b(), P("div", Hn, [
3870
- t("div", Xn, [
3870
+ t("div", Gn, [
3871
3871
  n(Pe, {
3872
3872
  "date-range": r(V),
3873
3873
  "onUpdate:dateRange": N[0] || (N[0] = (m) => $e(V) ? V.value = m : null),
@@ -3880,7 +3880,7 @@ const zn = [
3880
3880
  onClick: _
3881
3881
  }, null, 8, ["loading"])
3882
3882
  ]),
3883
- i.value ? (b(), P("div", Gn, [
3883
+ i.value ? (b(), P("div", Xn, [
3884
3884
  n(p, { size: "xl" }),
3885
3885
  t("span", Qn, C(r(o)("report.common.isLoading")), 1)
3886
3886
  ])) : (b(), M(f, {
@@ -3892,7 +3892,7 @@ const zn = [
3892
3892
  ]);
3893
3893
  };
3894
3894
  }
3895
- }), Jn = { class: "h-full relative flex flex-col" }, Zn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, es = /* @__PURE__ */ G({
3895
+ }), Jn = { class: "h-full relative flex flex-col" }, Zn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, es = /* @__PURE__ */ X({
3896
3896
  __name: "Biztory",
3897
3897
  props: {
3898
3898
  modelValue: { required: !0 },
@@ -3900,7 +3900,7 @@ const zn = [
3900
3900
  },
3901
3901
  emits: ["update:modelValue"],
3902
3902
  setup(v) {
3903
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
3903
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
3904
3904
  {
3905
3905
  label: o("report.integration.setting"),
3906
3906
  value: "setting",
@@ -3911,7 +3911,7 @@ const zn = [
3911
3911
  value: "preview",
3912
3912
  icon: "table"
3913
3913
  }
3914
- ], V = ue(), $ = Y(() => {
3914
+ ], V = ue(), $ = q(() => {
3915
3915
  switch (i.value) {
3916
3916
  case "preview":
3917
3917
  return {
@@ -3928,7 +3928,7 @@ const zn = [
3928
3928
  default:
3929
3929
  return null;
3930
3930
  }
3931
- }), U = q({}), x = q({}), _ = (f, m) => f.map((g) => ({
3931
+ }), U = Y({}), x = Y({}), _ = (f, m) => f.map((g) => ({
3932
3932
  label: m.length > 2 ? `ID:${g[m[2]]} [${g[m[0]]}] ${g[m[1]]}` : `[${g[m[0]]}] ${g[m[1]]}`,
3933
3933
  value: g.id,
3934
3934
  cnId: g.cnId ? g.cnId : null
@@ -3955,7 +3955,7 @@ const zn = [
3955
3955
  "Failed to fetch customers:"
3956
3956
  ), U.value.isLoaded = !0, x.value.isLoaded = !0;
3957
3957
  };
3958
- return qe(p), we(() => {
3958
+ return Ye(p), _e(() => {
3959
3959
  var f;
3960
3960
  return (f = e.value.platform.mappings) == null ? void 0 : f.version;
3961
3961
  }, p), (f, m) => {
@@ -3968,7 +3968,7 @@ const zn = [
3968
3968
  style: { paddingLeft: "0px", paddingRight: "0px" },
3969
3969
  "onClick:back": r(V).back
3970
3970
  }, {
3971
- description: be(() => m[2] || (m[2] = [
3971
+ description: we(() => m[2] || (m[2] = [
3972
3972
  t("div", null, null, -1)
3973
3973
  ])),
3974
3974
  _: 1
@@ -3990,7 +3990,7 @@ const zn = [
3990
3990
  }), ts = {
3991
3991
  key: 0,
3992
3992
  class: "flex flex-col h-full"
3993
- }, os = { class: "flex flex-col gap-16 pb-[24px]" }, as = { class: "flex flex-row justify-between items-center gap-2" }, ls = { class: "flex flex-row gap-2 items-center" }, ns = { class: "relative group cursor-pointer" }, ss = { 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" }, is = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, rs = { class: "w-[90%] flex flex-col gap-24" }, ds = { class: "flex flex-col gap-16" }, ms = { class: "fm-typo-en-title-sm-800" }, ps = { class: "flex flex-row items-center max-w-[100%]" }, cs = { class: "w-[25%]" }, us = { class: "flex-grow" }, fs = { class: "flex flex-row items-center max-w-[100%]" }, vs = { class: "w-[25%]" }, gs = { class: "flex flex-row items-center justify-between gap-x-16" }, ys = { class: "fm-typo-en-title-sm-800" }, xs = /* @__PURE__ */ G({
3993
+ }, os = { class: "flex flex-col gap-16 pb-[24px]" }, as = { class: "flex flex-row justify-between items-center gap-2" }, ls = { class: "flex flex-row gap-2 items-center" }, ns = { class: "relative group cursor-pointer" }, ss = { 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" }, is = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, rs = { class: "w-[90%] flex flex-col gap-24" }, ds = { class: "flex flex-col gap-16" }, ms = { class: "fm-typo-en-title-sm-800" }, ps = { class: "flex flex-row items-center max-w-[100%]" }, cs = { class: "w-[25%]" }, us = { class: "flex-grow" }, fs = { class: "flex flex-row items-center max-w-[100%]" }, vs = { class: "w-[25%]" }, gs = { class: "flex flex-row items-center justify-between gap-x-16" }, ys = { class: "fm-typo-en-title-sm-800" }, xs = /* @__PURE__ */ X({
3994
3994
  __name: "Setting",
3995
3995
  props: {
3996
3996
  modelValue: { required: !0 },
@@ -3998,7 +3998,7 @@ const zn = [
3998
3998
  },
3999
3999
  emits: ["update:modelValue"],
4000
4000
  setup(v) {
4001
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
4001
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
4002
4002
  () => x.map((m) => ({ label: m.name, value: m.id }))
4003
4003
  );
4004
4004
  async function u() {
@@ -4136,8 +4136,8 @@ const zn = [
4136
4136
  },
4137
4137
  onRemove: g[4] || (g[4] = (E, H) => K("employees", H)),
4138
4138
  "onUpdate:rows": g[5] || (g[5] = (E) => {
4139
- var H, X;
4140
- (X = (H = e.value) == null ? void 0 : H.platform) != null && X.mappings && (e.value.platform.mappings.employees = E);
4139
+ var H, G;
4140
+ (G = (H = e.value) == null ? void 0 : H.platform) != null && G.mappings && (e.value.platform.mappings.employees = E);
4141
4141
  })
4142
4142
  }, null, 8, ["rows"])
4143
4143
  ])
@@ -4148,7 +4148,7 @@ const zn = [
4148
4148
  }), bs = { class: "h-full flex flex-col gap-16" }, ws = { class: "flex flex-row gap-2 justify-between items-center" }, _s = {
4149
4149
  key: 0,
4150
4150
  class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
4151
- }, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ks = /* @__PURE__ */ G({
4151
+ }, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ks = /* @__PURE__ */ X({
4152
4152
  __name: "Preview",
4153
4153
  props: {
4154
4154
  modelValue: { required: !0 },
@@ -4156,7 +4156,7 @@ const zn = [
4156
4156
  },
4157
4157
  emits: ["update:modelValue"],
4158
4158
  setup(v) {
4159
- const { t: o } = J(), e = q([]), i = [
4159
+ const { t: o } = J(), e = Y([]), i = [
4160
4160
  {
4161
4161
  accessorKey: "name",
4162
4162
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Name"),
@@ -4182,8 +4182,8 @@ const zn = [
4182
4182
  header: () => A("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Time"),
4183
4183
  enableSorting: !1
4184
4184
  }
4185
- ], y = W(v, "modelValue"), V = q(!1), $ = ve(), { dateRange: U } = Ie(fe());
4186
- we(
4185
+ ], y = W(v, "modelValue"), V = Y(!1), $ = ve(), { dateRange: U } = Ie(fe());
4186
+ _e(
4187
4187
  () => U.value,
4188
4188
  async () => {
4189
4189
  if (y.value._id)
@@ -4236,7 +4236,7 @@ const zn = [
4236
4236
  ]);
4237
4237
  };
4238
4238
  }
4239
- }), Cs = { class: "h-full relative flex flex-col" }, $s = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Vs = /* @__PURE__ */ G({
4239
+ }), Cs = { class: "h-full relative flex flex-col" }, $s = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Vs = /* @__PURE__ */ X({
4240
4240
  __name: "IFlexiHRMS",
4241
4241
  props: {
4242
4242
  modelValue: {},
@@ -4244,7 +4244,7 @@ const zn = [
4244
4244
  },
4245
4245
  emits: ["update:modelValue"],
4246
4246
  setup(v) {
4247
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
4247
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
4248
4248
  {
4249
4249
  label: o("report.integration.setting"),
4250
4250
  value: "setting",
@@ -4255,7 +4255,7 @@ const zn = [
4255
4255
  value: "preview",
4256
4256
  icon: "table"
4257
4257
  }
4258
- ], V = ue(), $ = Y(() => {
4258
+ ], V = ue(), $ = q(() => {
4259
4259
  switch (i.value) {
4260
4260
  case "preview":
4261
4261
  return ks;
@@ -4275,7 +4275,7 @@ const zn = [
4275
4275
  style: { paddingLeft: "0px", paddingRight: "0px" },
4276
4276
  "onClick:back": r(V).back
4277
4277
  }, {
4278
- description: be(() => x[2] || (x[2] = [
4278
+ description: we(() => x[2] || (x[2] = [
4279
4279
  t("div", null, null, -1)
4280
4280
  ])),
4281
4281
  _: 1
@@ -4297,7 +4297,7 @@ const zn = [
4297
4297
  }), Ss = {
4298
4298
  key: 0,
4299
4299
  class: "flex flex-col h-full"
4300
- }, As = { class: "flex flex-col gap-16 pb-[24px]" }, Ds = { class: "flex flex-row justify-between items-center gap-2" }, Ks = { class: "fm-typo-en-title-sm-800" }, Ts = { class: "flex flex-row gap-2 items-center" }, Fs = { class: "flex flex-row gap-2 items-center" }, Ns = { class: "relative group cursor-pointer" }, Us = { 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" }, Is = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Ps = { class: "flex flex-col gap-24 w-[90%]" }, Rs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ms = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, js = { class: "flex flex-col justify-between" }, Os = { class: "w-[25%] font-semibold" }, Ls = { class: "flex-grow" }, Es = { class: "flex flex-col justify-between" }, Bs = { class: "w-[25%] font-semibold" }, qs = { class: "flex-grow" }, Ys = { class: "flex flex-col justify-between" }, zs = { class: "w-[25%] font-semibold" }, Hs = { class: "flex-grow" }, Xs = { class: "flex flex-col gap-16" }, Gs = { class: "flex flex-row items-center gap-5" }, Qs = { class: "fm-typo-en-title-sm-800" }, Ws = { class: "flex flex-col max-w-[100%]" }, Js = { class: "w-[25%] font-semibold" }, Zs = { class: "flex-grow" }, ei = { class: "flex flex-col max-w-[100%]" }, ti = { class: "w-[25%] font-semibold" }, oi = { class: "flex flex-col max-w-[100%]" }, ai = { class: "w-[25%] font-semibold" }, li = { class: "flex flex-col max-w-[100%]" }, ni = { class: "w-[25%] font-semibold" }, si = {
4300
+ }, As = { class: "flex flex-col gap-16 pb-[24px]" }, Ds = { class: "flex flex-row justify-between items-center gap-2" }, Ks = { class: "fm-typo-en-title-sm-800" }, Ts = { class: "flex flex-row gap-2 items-center" }, Fs = { class: "flex flex-row gap-2 items-center" }, Ns = { class: "relative group cursor-pointer" }, Us = { 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" }, Is = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Ps = { class: "flex flex-col gap-24 w-[90%]" }, Rs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ms = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, js = { class: "flex flex-col justify-between" }, Os = { class: "w-[25%] font-semibold" }, Ls = { class: "flex-grow" }, Es = { class: "flex flex-col justify-between" }, Bs = { class: "w-[25%] font-semibold" }, Ys = { class: "flex-grow" }, qs = { class: "flex flex-col justify-between" }, zs = { class: "w-[25%] font-semibold" }, Hs = { class: "flex-grow" }, Gs = { class: "flex flex-col gap-16" }, Xs = { class: "flex flex-row items-center gap-5" }, Qs = { class: "fm-typo-en-title-sm-800" }, Ws = { class: "flex flex-col max-w-[100%]" }, Js = { class: "w-[25%] font-semibold" }, Zs = { class: "flex-grow" }, ei = { class: "flex flex-col max-w-[100%]" }, ti = { class: "w-[25%] font-semibold" }, oi = { class: "flex flex-col max-w-[100%]" }, ai = { class: "w-[25%] font-semibold" }, li = { class: "flex flex-col max-w-[100%]" }, ni = { class: "w-[25%] font-semibold" }, si = {
4301
4301
  key: 1,
4302
4302
  class: "w-[100%] flex flex-col gap-2"
4303
4303
  }, ii = {
@@ -4309,7 +4309,7 @@ const zn = [
4309
4309
  }, pi = {
4310
4310
  key: 2,
4311
4311
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4312
- }, ci = { class: "flex flex-col gap-16" }, ui = { class: "fm-typo-en-title-sm-800" }, fi = { class: "flex flex-row items-center w-[100%] justify-start" }, vi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, gi = { class: "flex flex-row items-center w-[100%] justify-start" }, yi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, xi = { class: "flex flex-row items-center w-[100%] justify-start" }, bi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, wi = { class: "flex flex-col gap-16 pt-3 pb-3" }, _i = { class: "flex flex-row items-center gap-5" }, hi = { class: "fm-typo-en-title-sm-800" }, ki = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ci = { class: "flex flex-row items-center justify-between gap-x-16" }, $i = { class: "fm-typo-en-title-sm-800" }, Vi = { class: "flex flex-row items-center justify-between gap-x-16" }, Si = { class: "fm-typo-en-title-sm-800" }, Ai = { class: "flex flex-row items-center justify-between gap-x-16" }, Di = { class: "fm-typo-en-title-sm-800" }, Ki = { class: "flex flex-row items-center justify-between gap-x-16" }, Ti = { class: "fm-typo-en-title-sm-800" }, Fi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ni = /* @__PURE__ */ G({
4312
+ }, ci = { class: "flex flex-col gap-16" }, ui = { class: "fm-typo-en-title-sm-800" }, fi = { class: "flex flex-row items-center w-[100%] justify-start" }, vi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, gi = { class: "flex flex-row items-center w-[100%] justify-start" }, yi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, xi = { class: "flex flex-row items-center w-[100%] justify-start" }, bi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, wi = { class: "flex flex-col gap-16 pt-3 pb-3" }, _i = { class: "flex flex-row items-center gap-5" }, hi = { class: "fm-typo-en-title-sm-800" }, ki = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ci = { class: "flex flex-row items-center justify-between gap-x-16" }, $i = { class: "fm-typo-en-title-sm-800" }, Vi = { class: "flex flex-row items-center justify-between gap-x-16" }, Si = { class: "fm-typo-en-title-sm-800" }, Ai = { class: "flex flex-row items-center justify-between gap-x-16" }, Di = { class: "fm-typo-en-title-sm-800" }, Ki = { class: "flex flex-row items-center justify-between gap-x-16" }, Ti = { class: "fm-typo-en-title-sm-800" }, Fi = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ni = /* @__PURE__ */ X({
4313
4313
  __name: "Setting",
4314
4314
  props: /* @__PURE__ */ Se({
4315
4315
  retrievedDebtors: {
@@ -4326,10 +4326,10 @@ const zn = [
4326
4326
  }),
4327
4327
  emits: ["update:modelValue"],
4328
4328
  setup(v) {
4329
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
4329
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
4330
4330
  () => x.map((l) => ({ label: l.name, value: l.id }))
4331
4331
  );
4332
- let u = q("");
4332
+ let u = Y("");
4333
4333
  async function N() {
4334
4334
  await U({
4335
4335
  message: o("report.messages.confirmDelete", { name: e.value.name }),
@@ -4381,7 +4381,11 @@ const zn = [
4381
4381
  const m = [
4382
4382
  {
4383
4383
  label: "By day",
4384
- value: _e.BY_DAY
4384
+ value: be.BY_DAY
4385
+ },
4386
+ {
4387
+ label: "By day category",
4388
+ value: be.BY_DAY_CATEGORY
4385
4389
  }
4386
4390
  ];
4387
4391
  async function g() {
@@ -4415,7 +4419,7 @@ const zn = [
4415
4419
  );
4416
4420
  a && (u.value = l, e.value.platform.mappings.debtorCode = a.valueAccNo, e.value.platform.mappings.debtorName = a.valueCompanyName);
4417
4421
  }
4418
- return we(
4422
+ return _e(
4419
4423
  () => v.retrievedDebtors.isLoaded,
4420
4424
  (l) => {
4421
4425
  var a;
@@ -4428,9 +4432,9 @@ const zn = [
4428
4432
  },
4429
4433
  { immediate: !0 }
4430
4434
  ), (l, a) => {
4431
- var X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F, c, R;
4435
+ var G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe, h, F, c, R;
4432
4436
  const d = D("FmIcon"), T = D("FmButton"), I = D("FmMenuDivider"), j = D("FmTextField"), B = D("FmSelect"), E = D("FmCircularProgress"), H = D("FmSwitch");
4433
- return (ee = (X = e.value) == null ? void 0 : X.platform) != null && ee.mappings ? (b(), P("div", Ss, [
4437
+ return (ee = (G = e.value) == null ? void 0 : G.platform) != null && ee.mappings ? (b(), P("div", Ss, [
4434
4438
  t("div", As, [
4435
4439
  t("div", Ds, [
4436
4440
  t("div", Ks, C(r(o)("report.integration.connect")), 1),
@@ -4476,7 +4480,7 @@ const zn = [
4476
4480
  ]),
4477
4481
  t("div", Es, [
4478
4482
  t("div", Bs, C(r(o)("report.integration.apiKey")), 1),
4479
- t("div", qs, [
4483
+ t("div", Ys, [
4480
4484
  n(j, {
4481
4485
  modelValue: e.value.platform.apiKey,
4482
4486
  "onUpdate:modelValue": a[1] || (a[1] = (S) => e.value.platform.apiKey = S),
@@ -4484,7 +4488,7 @@ const zn = [
4484
4488
  }, null, 8, ["modelValue", "placeholder"])
4485
4489
  ])
4486
4490
  ]),
4487
- t("div", Ys, [
4491
+ t("div", qs, [
4488
4492
  t("div", zs, C(r(o)("report.integration.autocount.accountBookId")), 1),
4489
4493
  t("div", Hs, [
4490
4494
  n(j, {
@@ -4495,8 +4499,8 @@ const zn = [
4495
4499
  ])
4496
4500
  ]),
4497
4501
  n(I, { style: { margin: 0 } }),
4498
- t("div", Xs, [
4499
- t("div", Gs, [
4502
+ t("div", Gs, [
4503
+ t("div", Xs, [
4500
4504
  t("div", Qs, C(r(o)("report.common.general")), 1)
4501
4505
  ]),
4502
4506
  t("div", Ws, [
@@ -4527,8 +4531,7 @@ const zn = [
4527
4531
  multiselect: !1,
4528
4532
  items: m,
4529
4533
  placeholder: r(o)("report.integration.grouping.title"),
4530
- class: "flex-grow",
4531
- disabled: ""
4534
+ class: "flex-grow"
4532
4535
  }, null, 8, ["modelValue", "placeholder"])
4533
4536
  ]),
4534
4537
  t("div", li, [
@@ -4962,7 +4965,7 @@ const Ii = [
4962
4965
  ], Pi = { class: "h-full flex flex-col gap-16" }, Ri = { class: "flex flex-row gap-2 justify-between items-center" }, Mi = { class: "flex flex-row gap-5" }, ji = {
4963
4966
  key: 0,
4964
4967
  class: "flex gap-24 w-full h-full justify-center items-center overflow-y-auto"
4965
- }, Oi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Li = /* @__PURE__ */ G({
4968
+ }, Oi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Li = /* @__PURE__ */ X({
4966
4969
  __name: "Preview",
4967
4970
  props: {
4968
4971
  modelValue: { required: !0 },
@@ -4970,8 +4973,8 @@ const Ii = [
4970
4973
  },
4971
4974
  emits: ["update:modelValue"],
4972
4975
  setup(v) {
4973
- const { t: o } = J(), e = W(v, "modelValue"), i = q(!1), y = ve(), { dateRange: V } = Ie(fe()), { options: $, isFeatureAvailable: U } = ke(), x = q([]);
4974
- we(
4976
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y(!1), y = ve(), { dateRange: V } = Ie(fe()), { options: $, isFeatureAvailable: U } = ke(), x = Y([]);
4977
+ _e(
4975
4978
  () => V.value,
4976
4979
  async () => {
4977
4980
  if (e.value._id)
@@ -4987,7 +4990,7 @@ const Ii = [
4987
4990
  immediate: !0
4988
4991
  }
4989
4992
  );
4990
- const _ = Y(() => Ui(x.value)), u = Y(() => Ii), N = Y(() => {
4993
+ const _ = q(() => Ui(x.value)), u = q(() => Ii), N = q(() => {
4991
4994
  var m;
4992
4995
  const f = (m = $.find(
4993
4996
  (g) => g.platform === ge.AutoCountCloud
@@ -5049,7 +5052,7 @@ const Ii = [
5049
5052
  ]);
5050
5053
  };
5051
5054
  }
5052
- }), Ei = { class: "h-full relative flex flex-col" }, Bi = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, qi = /* @__PURE__ */ G({
5055
+ }), Ei = { class: "h-full relative flex flex-col" }, Bi = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Yi = /* @__PURE__ */ X({
5053
5056
  __name: "AutocountCloud",
5054
5057
  props: {
5055
5058
  modelValue: { required: !0 },
@@ -5057,7 +5060,7 @@ const Ii = [
5057
5060
  },
5058
5061
  emits: ["update:modelValue"],
5059
5062
  setup(v) {
5060
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
5063
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
5061
5064
  {
5062
5065
  label: o("report.integration.setting"),
5063
5066
  value: "setting",
@@ -5068,7 +5071,7 @@ const Ii = [
5068
5071
  value: "preview",
5069
5072
  icon: "table"
5070
5073
  }
5071
- ], V = ue(), $ = Y(() => {
5074
+ ], V = ue(), $ = q(() => {
5072
5075
  switch (i.value) {
5073
5076
  case "preview":
5074
5077
  return {
@@ -5085,7 +5088,7 @@ const Ii = [
5085
5088
  default:
5086
5089
  return null;
5087
5090
  }
5088
- }), U = q({}), x = q({}), _ = (p) => p.data.map((f) => ({
5091
+ }), U = Y({}), x = Y({}), _ = (p) => p.data.map((f) => ({
5089
5092
  label: f.location + " - " + f.description,
5090
5093
  value: f.location
5091
5094
  })), u = (p) => p.data.map((f) => ({
@@ -5115,7 +5118,7 @@ const Ii = [
5115
5118
  "Failed to fetch locations:"
5116
5119
  ), U.value.isLoaded = !0, x.value.isLoaded = !0;
5117
5120
  };
5118
- return qe(() => {
5121
+ return Ye(() => {
5119
5122
  e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? K() : (U.value.isLoaded = !0, x.value.isLoaded = !0, U.value.isError = !0, x.value.isError = !0);
5120
5123
  }), (p, f) => {
5121
5124
  var w, k, s;
@@ -5127,7 +5130,7 @@ const Ii = [
5127
5130
  style: { paddingLeft: "0px", paddingRight: "0px" },
5128
5131
  "onClick:back": r(V).back
5129
5132
  }, {
5130
- description: be(() => f[2] || (f[2] = [
5133
+ description: we(() => f[2] || (f[2] = [
5131
5134
  t("div", null, null, -1)
5132
5135
  ])),
5133
5136
  _: 1
@@ -5146,10 +5149,10 @@ const Ii = [
5146
5149
  ]);
5147
5150
  };
5148
5151
  }
5149
- }), Yi = {
5152
+ }), qi = {
5150
5153
  key: 0,
5151
5154
  class: "flex flex-col h-full w-full"
5152
- }, zi = { class: "flex flex-col gap-16 pb-[24px]" }, Hi = { class: "flex flex-row justify-between items-center gap-2" }, Xi = { class: "flex flex-row gap-2 items-center" }, Gi = { class: "relative group cursor-pointer" }, Qi = { 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" }, Wi = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ji = { class: "w-[90%] flex flex-col gap-24" }, Zi = { class: "flex flex-col gap-16" }, er = { class: "fm-typo-en-title-sm-800" }, tr = { class: "flex flex-col max-w-[100%]" }, or = { class: "w-[25%] font-semibold" }, ar = { class: "flex-grow" }, lr = { class: "flex flex-col max-w-[100%]" }, nr = { class: "w-[25%] font-semibold" }, sr = { class: "flex flex-col max-w-[100%]" }, ir = { class: "w-[25%] font-semibold" }, rr = { class: "flex flex-col gap-16" }, dr = { class: "grid-cols-2 grid gap-16" }, mr = { class: "flex flex-row items-center justify-between gap-x-16" }, pr = { class: "flex flex-row items-center justify-between gap-x-16" }, cr = { class: "fm-typo-en-title-sm-800" }, ur = { class: "flex flex-row items-center justify-between gap-x-16" }, fr = { class: "flex flex-row items-center justify-between gap-x-16" }, vr = /* @__PURE__ */ G({
5155
+ }, zi = { class: "flex flex-col gap-16 pb-[24px]" }, Hi = { class: "flex flex-row justify-between items-center gap-2" }, Gi = { class: "flex flex-row gap-2 items-center" }, Xi = { class: "relative group cursor-pointer" }, Qi = { 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" }, Wi = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ji = { class: "w-[90%] flex flex-col gap-24" }, Zi = { class: "flex flex-col gap-16" }, er = { class: "fm-typo-en-title-sm-800" }, tr = { class: "flex flex-col max-w-[100%]" }, or = { class: "w-[25%] font-semibold" }, ar = { class: "flex-grow" }, lr = { class: "flex flex-col max-w-[100%]" }, nr = { class: "w-[25%] font-semibold" }, sr = { class: "flex flex-col max-w-[100%]" }, ir = { class: "w-[25%] font-semibold" }, rr = { class: "flex flex-col gap-16" }, dr = { class: "grid-cols-2 grid gap-16" }, mr = { class: "flex flex-row items-center justify-between gap-x-16" }, pr = { class: "flex flex-row items-center justify-between gap-x-16" }, cr = { class: "fm-typo-en-title-sm-800" }, ur = { class: "flex flex-row items-center justify-between gap-x-16" }, fr = { class: "flex flex-row items-center justify-between gap-x-16" }, vr = /* @__PURE__ */ X({
5153
5156
  __name: "Setting",
5154
5157
  props: {
5155
5158
  modelValue: { required: !0 },
@@ -5157,7 +5160,7 @@ const Ii = [
5157
5160
  },
5158
5161
  emits: ["update:modelValue"],
5159
5162
  setup(v) {
5160
- const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = Y(
5163
+ const { t: o } = J(), e = W(v, "modelValue"), i = ve(), y = ke(), V = ue(), { promptLoader: $ } = De(), { promptMessage: U } = Ue(), { restaurants: x } = fe(), _ = q(
5161
5164
  () => x.map((g) => ({ label: g.name, value: g.id }))
5162
5165
  );
5163
5166
  async function u() {
@@ -5201,7 +5204,7 @@ const Ii = [
5201
5204
  const f = [
5202
5205
  {
5203
5206
  label: "By invoice and product",
5204
- value: _e.BY_INVOICE_ITEM
5207
+ value: be.BY_INVOICE_ITEM
5205
5208
  }
5206
5209
  ];
5207
5210
  async function m() {
@@ -5216,14 +5219,14 @@ const Ii = [
5216
5219
  return Ae(async () => {
5217
5220
  await y.getSettings();
5218
5221
  }), (g, w) => {
5219
- var T, I, j, B, E, H, X, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
5222
+ var T, I, j, B, E, H, G, ee, te, oe, ae, le, ne, se, ie, re, de, me, pe;
5220
5223
  const k = D("FmIcon"), s = D("FmButton"), l = D("FmMenuDivider"), a = D("FmTextField"), d = D("FmSelect");
5221
- return (I = (T = e.value) == null ? void 0 : T.platform) != null && I.mappings ? (b(), P("div", Yi, [
5224
+ return (I = (T = e.value) == null ? void 0 : T.platform) != null && I.mappings ? (b(), P("div", qi, [
5222
5225
  t("div", zi, [
5223
5226
  t("div", Hi, [
5224
5227
  w[17] || (w[17] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
5225
- t("div", Xi, [
5226
- t("div", Gi, [
5228
+ t("div", Gi, [
5229
+ t("div", Xi, [
5227
5230
  n(k, {
5228
5231
  name: "refresh",
5229
5232
  class: "p-2 bg-gray-100 rounded-full",
@@ -5320,7 +5323,7 @@ const Ii = [
5320
5323
  (S = (R = (c = (F = e.value) == null ? void 0 : F.platform) == null ? void 0 : c.mappings) == null ? void 0 : R.invoice) != null && S.rounding && (e.value.platform.mappings.invoice.rounding.account = h.account, e.value.platform.mappings.invoice.rounding.code = h.code);
5321
5324
  })
5322
5325
  }, null, 8, ["model-value"]),
5323
- (b(!0), P(xe, null, Ce((X = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : X.invoice.charges, (h, F) => (b(), M(L, {
5326
+ (b(!0), P(xe, null, Ce((G = (H = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : H.mappings) == null ? void 0 : G.invoice.charges, (h, F) => (b(), M(L, {
5324
5327
  key: `charge-${F}`,
5325
5328
  modelValue: e.value.platform.mappings.invoice.charges[F],
5326
5329
  "onUpdate:modelValue": (c) => e.value.platform.mappings.invoice.charges[F] = c,
@@ -5474,7 +5477,7 @@ const Ii = [
5474
5477
  }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wr = {
5475
5478
  key: 1,
5476
5479
  class: "w-full h-full flex flex-col flex-grow"
5477
- }, _r = /* @__PURE__ */ G({
5480
+ }, _r = /* @__PURE__ */ X({
5478
5481
  __name: "Preview",
5479
5482
  props: {
5480
5483
  modelValue: { required: !0 },
@@ -5482,13 +5485,13 @@ const Ii = [
5482
5485
  },
5483
5486
  emits: ["update:modelValue"],
5484
5487
  setup(v) {
5485
- const { t: o } = J(), e = q({
5488
+ const { t: o } = J(), e = Y({
5486
5489
  invoices: [],
5487
5490
  rawInvoices: [],
5488
5491
  creditNotes: [],
5489
5492
  deliveryOrders: [],
5490
5493
  purchaseOrders: []
5491
- }), i = Y(() => e.value.invoices.reduce((l, a) => {
5494
+ }), i = q(() => e.value.invoices.reduce((l, a) => {
5492
5495
  for (const d of a._items)
5493
5496
  l.push({
5494
5497
  rDate: Me(a.rDate).format("D-MMM-YY"),
@@ -5512,7 +5515,7 @@ const Ii = [
5512
5515
  accountCode: d.accountCode
5513
5516
  });
5514
5517
  return l;
5515
- }, [])), y = Y(() => e.value.rawInvoices.reduce((l, a) => {
5518
+ }, [])), y = q(() => e.value.rawInvoices.reduce((l, a) => {
5516
5519
  for (const d of a._items)
5517
5520
  l.push({
5518
5521
  locationCode: a.locationCode,
@@ -5538,7 +5541,7 @@ const Ii = [
5538
5541
  cardType: d.cardType
5539
5542
  });
5540
5543
  return l;
5541
- }, [])), V = Y(() => e.value.creditNotes.reduce((l, a) => {
5544
+ }, [])), V = q(() => e.value.creditNotes.reduce((l, a) => {
5542
5545
  for (const d of a._items)
5543
5546
  l.push({
5544
5547
  rDate: Me(a.rDate).format("D-MMM-YY"),
@@ -5562,7 +5565,7 @@ const Ii = [
5562
5565
  accountCode: d.accountCode
5563
5566
  });
5564
5567
  return l;
5565
- }, [])), $ = Y(() => e.value.purchaseOrders.reduce((l, a) => {
5568
+ }, [])), $ = q(() => e.value.purchaseOrders.reduce((l, a) => {
5566
5569
  for (const d of a._skus)
5567
5570
  l.push({
5568
5571
  _date: Me(a._date).format("D-MMM-YY"),
@@ -5573,7 +5576,7 @@ const Ii = [
5573
5576
  unitPrice: d.unitPrice
5574
5577
  });
5575
5578
  return l;
5576
- }, [])), U = Y(() => e.value.deliveryOrders.reduce((l, a) => {
5579
+ }, [])), U = q(() => e.value.deliveryOrders.reduce((l, a) => {
5577
5580
  for (const d of a._skus)
5578
5581
  l.push({
5579
5582
  rNo: a.rNo,
@@ -5821,8 +5824,8 @@ const Ii = [
5821
5824
  header: () => A("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
5822
5825
  enableSorting: !1
5823
5826
  }
5824
- ], p = W(v, "modelValue"), f = q(!1), m = ve(), { dateRange: g } = Ie(fe());
5825
- we(
5827
+ ], p = W(v, "modelValue"), f = Y(!1), m = ve(), { dateRange: g } = Ie(fe());
5828
+ _e(
5826
5829
  () => g.value,
5827
5830
  async () => {
5828
5831
  if (p.value._id)
@@ -5873,7 +5876,7 @@ const Ii = [
5873
5876
  value: "RAW_INVOICE"
5874
5877
  /* RAW_INVOICE */
5875
5878
  }
5876
- ], s = q(k[0].value);
5879
+ ], s = Y(k[0].value);
5877
5880
  return (l, a) => {
5878
5881
  const d = D("FmButton"), T = D("FmCircularProgress"), I = D("FmTabs"), j = D("FmTable");
5879
5882
  return b(), P("div", gr, [
@@ -5931,7 +5934,7 @@ const Ii = [
5931
5934
  ]);
5932
5935
  };
5933
5936
  }
5934
- }), hr = { class: "h-full w-full flex flex-col" }, kr = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, Cr = /* @__PURE__ */ G({
5937
+ }), hr = { class: "h-full w-full flex flex-col" }, kr = { class: "py-16 px-16 flex h-full w-full overflow-hidden" }, Cr = /* @__PURE__ */ X({
5935
5938
  __name: "SynergyExport",
5936
5939
  props: {
5937
5940
  modelValue: {},
@@ -5939,7 +5942,7 @@ const Ii = [
5939
5942
  },
5940
5943
  emits: ["update:modelValue"],
5941
5944
  setup(v) {
5942
- const { t: o } = J(), e = W(v, "modelValue"), i = q("setting"), y = [
5945
+ const { t: o } = J(), e = W(v, "modelValue"), i = Y("setting"), y = [
5943
5946
  {
5944
5947
  label: o("report.integration.setting"),
5945
5948
  value: "setting",
@@ -5950,7 +5953,7 @@ const Ii = [
5950
5953
  value: "preview",
5951
5954
  icon: "table"
5952
5955
  }
5953
- ], V = ue(), $ = Y(() => {
5956
+ ], V = ue(), $ = q(() => {
5954
5957
  switch (i.value) {
5955
5958
  case "preview":
5956
5959
  return _r;
@@ -5970,7 +5973,7 @@ const Ii = [
5970
5973
  style: { paddingLeft: "0px", paddingRight: "0px" },
5971
5974
  "onClick:back": r(V).back
5972
5975
  }, {
5973
- description: be(() => x[2] || (x[2] = [
5976
+ description: we(() => x[2] || (x[2] = [
5974
5977
  t("div", null, null, -1)
5975
5978
  ])),
5976
5979
  _: 1
@@ -5989,13 +5992,13 @@ const Ii = [
5989
5992
  ]);
5990
5993
  };
5991
5994
  }
5992
- }), $r = { class: "px-24 h-full relative" }, Nr = /* @__PURE__ */ G({
5995
+ }), $r = { class: "px-24 h-full relative" }, Nr = /* @__PURE__ */ X({
5993
5996
  __name: "Integration",
5994
5997
  setup(v) {
5995
- const o = q(void 0), { params: e } = et(), i = ke(), y = q();
5996
- qe(async () => {
5998
+ const o = Y(void 0), { params: e } = et(), i = ke(), y = Y();
5999
+ Ye(async () => {
5997
6000
  i.settings.length === 0 && await i.getSettings();
5998
- }), we(
6001
+ }), _e(
5999
6002
  () => i.settings,
6000
6003
  ($) => {
6001
6004
  var x;
@@ -6004,7 +6007,7 @@ const Ii = [
6004
6007
  },
6005
6008
  { immediate: !0 }
6006
6009
  );
6007
- const V = Y(() => {
6010
+ const V = q(() => {
6008
6011
  switch (o.value) {
6009
6012
  case ge.Xero:
6010
6013
  return bo;
@@ -6019,7 +6022,7 @@ const Ii = [
6019
6022
  case ge.Biztory:
6020
6023
  return es;
6021
6024
  case ge.AutoCountCloud:
6022
- return qi;
6025
+ return Yi;
6023
6026
  case ge.SynergyExport:
6024
6027
  return Cr;
6025
6028
  default: