@feedmepos/mf-report 5.19.4-beta.0 → 5.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{App-DA6bj8D5.js → App-sGxrbGWL.js} +60 -60
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-D5v1t5hA.js → BaseDialog.vue_vue_type_script_setup_true_lang-DZVH0vqi.js} +1 -1
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BIJY-H71.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C43e_hFM.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Bjk5J5gP.js → Default.vue_vue_type_script_setup_true_lang-hB4oXg7M.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Dvw_KdK9.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CF1Z4F1W.js} +5 -5
  6. package/dist/{InsightView-CPB3ridJ.js → InsightView-DUzUTmom.js} +5 -5
  7. package/dist/{Integration-D2cpQ1eh.js → Integration-CS29IVGj.js} +237 -242
  8. package/dist/{Integrations-DdLeTbMY.js → Integrations-Bp-uN1ji.js} +3 -3
  9. package/dist/{Layout-D1Lxpo9B.js → Layout-DTak81A5.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DkGnmF-n.js → MenuTab.vue_vue_type_script_setup_true_lang-DHuKvzP0.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DkkLsThy.js → NavigationTab.vue_vue_type_script_setup_true_lang-DqDG0v_J.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Br4LWWWR.js → NoData.vue_vue_type_script_setup_true_lang-VbRFrJst.js} +1 -1
  13. package/dist/{OverviewView--rCjYr8a.js → OverviewView-BG5v3zqw.js} +5 -5
  14. package/dist/{Report-CYrlW-NE.js → Report-Cgv3GRk0.js} +4 -4
  15. package/dist/{ReportEditor-BHPOn-ma.js → ReportEditor-XWOu0deg.js} +6 -6
  16. package/dist/{ReportView-C_LfKY0g.js → ReportView-C8t9O9ZC.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DdCDaooD.js → SelectComponent.vue_vue_type_script_setup_true_lang-kc9Y_OCH.js} +1 -1
  18. package/dist/{Setting-D0Srjotu.js → Setting-BJzn1mxK.js} +4 -4
  19. package/dist/{TileEditor-DZCPk04X.js → TileEditor-BQm7hSGJ.js} +7 -7
  20. package/dist/{TransitionFade-foonNaVe.js → TransitionFade-UK25XLJf.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/{helper-C45zDckU.js → helper-DxCjm6Nb.js} +1 -1
  23. package/dist/{vue-i18n-BCxK77UI.js → vue-i18n-C-Au91UY.js} +1 -1
  24. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { defineComponent as J, mergeModels as Te, useModel as ee, computed as z, resolveComponent as T, createElementBlock as I, openBlock as x, createElementVNode as t, createCommentVNode as O, normalizeClass as Be, Fragment as he, createBlock as j, withCtx as ke, toDisplayString as k, renderList as Ve, createVNode as l, unref as d, normalizeStyle as et, createTextVNode as tt, ref as H, onUnmounted as Fe, watch as Ce, isRef as Ae, h as $, resolveDynamicComponent as De, mergeProps as Qe, onMounted as Ge } from "vue";
1
+ import { defineComponent as J, mergeModels as Te, useModel as ee, computed as z, resolveComponent as T, createElementBlock as I, openBlock as b, createElementVNode as t, createCommentVNode as O, normalizeClass as Be, Fragment as he, createBlock as j, withCtx as ke, toDisplayString as k, renderList as Ve, createVNode as l, unref as d, normalizeStyle as et, createTextVNode as tt, ref as H, onUnmounted as Fe, watch as Ce, isRef as Ae, h as $, resolveDynamicComponent as De, mergeProps as Qe, onMounted as Ge } from "vue";
2
2
  import { useRouter as xe, useRoute as ot } from "vue-router";
3
- import { u as te, I as _e, d as Ee, w as at, e as Se, f as Ne, b as be, A as ge, z as lt, n as nt, y as Ue, B as Ie, E as Re, G as Pe, H as He, J as st, K as it, L as rt, M as qe, c as Je, N as dt, O as mt, P as pt, Q as ct } from "./vue-i18n-BCxK77UI.js";
3
+ import { u as te, I as _e, d as Ee, w as at, e as Se, f as Ne, b as be, A as ge, z as lt, n as nt, y as Ue, B as Ie, E as Re, G as Pe, H as He, J as st, K as it, L as rt, M as qe, c as Je, N as dt, O as mt, P as pt, Q as ct } from "./vue-i18n-C-Au91UY.js";
4
4
  import { u as Me } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as we } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as je } from "pinia";
7
- import { _ as Oe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BIJY-H71.js";
7
+ import { _ as Oe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C43e_hFM.js";
8
8
  const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ft = { class: "w-[100%]" }, vt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, gt = { class: "w-[100%] flex flex-row gap-[4px]" }, yt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, xt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = {
9
9
  key: 0,
10
10
  class: "w-[24px] flex items-center"
@@ -58,20 +58,20 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
58
58
  return (F, y) => {
59
59
  var D;
60
60
  const _ = T("FmTextField"), w = T("FmTooltip"), S = T("FmIcon");
61
- return x(), I("div", ut, [
61
+ return b(), I("div", ut, [
62
62
  t("div", {
63
63
  class: Be(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
64
64
  }, [
65
- v.value.length === 3 && !v.value.every((c) => c.editable) ? (x(), I(he, { key: 0 }, [
65
+ v.value.length === 3 && !v.value.every((c) => c.editable) ? (b(), I(he, { key: 0 }, [
66
66
  t("div", ft, [
67
- v.value[0].editable ? (x(), j(_, {
67
+ v.value[0].editable ? (b(), j(_, {
68
68
  key: 0,
69
69
  "model-value": e.value[v.value[0].key],
70
70
  placeholder: v.value[0].placeholder,
71
71
  type: f.type,
72
72
  rules: f.rules,
73
73
  "onUpdate:modelValue": y[0] || (y[0] = (c) => A(v.value[0].key, c))
74
- }, null, 8, ["model-value", "placeholder", "type", "rules"])) : (x(), j(w, {
74
+ }, null, 8, ["model-value", "placeholder", "type", "rules"])) : (b(), j(w, {
75
75
  key: 1,
76
76
  content: (D = e.value[v.value[0].key]) == null ? void 0 : D.toString(),
77
77
  class: "w-[100%]"
@@ -83,20 +83,20 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
83
83
  }, 8, ["content"]))
84
84
  ]),
85
85
  t("div", gt, [
86
- (x(!0), I(he, null, Ve(v.value.slice(1), (c) => {
86
+ (b(!0), I(he, null, Ve(v.value.slice(1), (c) => {
87
87
  var p;
88
- return x(), I("div", {
88
+ return b(), I("div", {
89
89
  key: c.key,
90
90
  class: "w-[50%]"
91
91
  }, [
92
- c.editable ? (x(), j(_, {
92
+ c.editable ? (b(), j(_, {
93
93
  key: 0,
94
94
  "model-value": e.value[c.key],
95
95
  placeholder: c.placeholder,
96
96
  type: f.type,
97
97
  rules: f.rules,
98
98
  "onUpdate:modelValue": (m) => A(c.key, m)
99
- }, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])) : (x(), j(w, {
99
+ }, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])) : (b(), j(w, {
100
100
  key: 1,
101
101
  content: (p = e.value[c.key]) == null ? void 0 : p.toString(),
102
102
  class: "w-[100%]"
@@ -109,16 +109,16 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
109
109
  ]);
110
110
  }), 128))
111
111
  ])
112
- ], 64)) : (x(), I("div", {
112
+ ], 64)) : (b(), I("div", {
113
113
  key: 1,
114
114
  class: Be(`${f.removable || !f.isTakeWholeRow ? "flex-row" : "flex-col"} flex items-start gap-[4px] w-[100%]`)
115
115
  }, [
116
- (x(!0), I(he, null, Ve(v.value, (c) => {
116
+ (b(!0), I(he, null, Ve(v.value, (c) => {
117
117
  var p;
118
- return x(), I(he, {
118
+ return b(), I(he, {
119
119
  key: c.key
120
120
  }, [
121
- c.editable ? (x(), I("div", {
121
+ c.editable ? (b(), I("div", {
122
122
  key: 0,
123
123
  class: Be(`${f.removable || !f.isTakeWholeRow ? "w-[50%]" : "w-[100%]"}`)
124
124
  }, [
@@ -129,7 +129,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
129
129
  rules: f.rules,
130
130
  "onUpdate:modelValue": (m) => A(c.key, m)
131
131
  }, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])
132
- ], 2)) : (x(), j(w, {
132
+ ], 2)) : (b(), j(w, {
133
133
  key: 1,
134
134
  content: (p = e.value[c.key]) == null ? void 0 : p.toString(),
135
135
  class: "w-[50%]"
@@ -143,7 +143,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
143
143
  }), 128))
144
144
  ], 2))
145
145
  ], 2),
146
- f.removable ? (x(), I("div", bt, [
146
+ f.removable ? (b(), I("div", bt, [
147
147
  l(S, {
148
148
  class: "cursor-pointer text-fm-color-neutral-gray-400",
149
149
  name: "delete",
@@ -190,10 +190,10 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
190
190
  return (v, A) => {
191
191
  var _, w;
192
192
  const V = T("FmSwitch"), F = T("FmTextField"), y = T("FmTimePicker");
193
- return x(), I(he, null, [
193
+ return b(), I(he, null, [
194
194
  t("div", wt, [
195
195
  t("div", _t, k(d(a)("report.integration.auto", { label: f.label })), 1),
196
- f.label == "upload" ? (x(), I("div", ht, k(d(a)("report.integration.lastUploadDate")) + ": " + k(f.lastUploadDate ? d(Ee)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : d(a)("report.integration.noData.title")), 1)) : O("", !0)
196
+ f.label == "upload" ? (b(), I("div", ht, k(d(a)("report.integration.lastUploadDate")) + ": " + k(f.lastUploadDate ? d(Ee)(f.lastUploadDate).format("MMMM D, YYYY h:mm A") : d(a)("report.integration.noData.title")), 1)) : O("", !0)
197
197
  ]),
198
198
  t("div", kt, [
199
199
  t("div", Ct, [
@@ -205,7 +205,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
205
205
  }, null, 8, ["modelValue"])
206
206
  ])
207
207
  ]),
208
- r.value ? (x(), I("div", St, [
208
+ r.value ? (b(), I("div", St, [
209
209
  t("div", Vt, k(d(a)("report.common.email")), 1),
210
210
  t("div", At, [
211
211
  l(F, {
@@ -308,26 +308,26 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
308
308
  }, F = (_) => r.singleValueMode ? e.value : e.value[_.key], y = a;
309
309
  return (_, w) => {
310
310
  const S = T("FmSelect"), D = T("FmTextField"), c = T("FmTooltip"), p = T("FmIcon");
311
- return x(), I("div", Nt, [
311
+ return b(), I("div", Nt, [
312
312
  t("div", {
313
313
  class: Be(`${f.removable ? "w-[calc(100%-24px)] flex-row" : "w-[100%] flex-col"} flex items-center gap-[4px]`),
314
314
  style: { alignItems: "start" }
315
315
  }, [
316
- (x(!0), I(he, null, Ve(v.value, (m) => (x(), I(he, {
316
+ (b(!0), I(he, null, Ve(v.value, (m) => (b(), I(he, {
317
317
  key: m.key
318
318
  }, [
319
- m.editable ? (x(), I("div", {
319
+ m.editable ? (b(), I("div", {
320
320
  key: 0,
321
321
  class: Be(f.removable ? "w-[50%]" : "w-[100%]")
322
322
  }, [
323
- m.dropdownOptions ? (x(), j(S, {
323
+ m.dropdownOptions ? (b(), j(S, {
324
324
  key: 0,
325
325
  "model-value": F(m),
326
326
  placeholder: m.placeholder,
327
327
  items: m.dropdownOptions,
328
328
  "shift-menu": !0,
329
329
  "onUpdate:modelValue": (u) => A(u, m.key)
330
- }, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (x(), j(D, {
330
+ }, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (b(), j(D, {
331
331
  key: 1,
332
332
  "model-value": F(m),
333
333
  placeholder: m.placeholder,
@@ -335,7 +335,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
335
335
  rules: f.rules,
336
336
  "onUpdate:modelValue": (u) => A(u, m.key)
337
337
  }, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"]))
338
- ], 2)) : (x(), j(c, {
338
+ ], 2)) : (b(), j(c, {
339
339
  key: 1,
340
340
  content: V(m),
341
341
  class: "w-[50%]"
@@ -347,7 +347,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
347
347
  }, 1032, ["content"]))
348
348
  ], 64))), 128))
349
349
  ], 2),
350
- f.removable ? (x(), I("div", It, [
350
+ f.removable ? (b(), I("div", It, [
351
351
  l(p, {
352
352
  class: "cursor-pointer text-fm-color-neutral-gray-400",
353
353
  name: "delete",
@@ -374,8 +374,8 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
374
374
  emits: ["remove", "update:rows"],
375
375
  setup(f, { emit: a }) {
376
376
  const e = f, r = z(() => e.rows.length > 1 ? Math.min(e.rows.length, e.columnsPerRow) : 1), v = a;
377
- return (A, V) => (x(), I("div", Rt, [
378
- (x(!0), I(he, null, Ve(e.rows, (F, y) => (x(), I("div", {
377
+ return (A, V) => (b(), I("div", Rt, [
378
+ (b(!0), I(he, null, Ve(e.rows, (F, y) => (b(), I("div", {
379
379
  key: y,
380
380
  class: "flex flex-col",
381
381
  style: et(
@@ -388,17 +388,17 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
388
388
  "flex flex-row items-center w-full font-medium text-gray-600 mb-2"
389
389
  ])
390
390
  }, [
391
- (x(!0), I(he, null, Ve(e.headerItems, (_, w) => (x(), I("div", {
391
+ (b(!0), I(he, null, Ve(e.headerItems, (_, w) => (b(), I("div", {
392
392
  key: `header-item-${w}`,
393
393
  class: "w-[50%]"
394
394
  }, [
395
- y < r.value ? (x(), I(he, { key: 0 }, [
395
+ y < r.value ? (b(), I(he, { key: 0 }, [
396
396
  tt(k(_), 1)
397
397
  ], 64)) : O("", !0)
398
398
  ]))), 128)),
399
- A.removable ? (x(), I("div", Pt)) : O("", !0)
399
+ A.removable ? (b(), I("div", Pt)) : O("", !0)
400
400
  ], 2),
401
- !e.fieldsOptions || !Object.values(e.fieldsOptions).some((_) => _.dropdownOptions) ? (x(), j(B, {
401
+ !e.fieldsOptions || !Object.values(e.fieldsOptions).some((_) => _.dropdownOptions) ? (b(), j(B, {
402
402
  key: `item-${y}`,
403
403
  "model-value": e.rows[y],
404
404
  options: e.fieldsOptions || {},
@@ -409,7 +409,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
409
409
  w[y] = _, v("update:rows", w);
410
410
  },
411
411
  onRemove: () => v("remove", e.mappingType || "", y)
412
- }, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (x(), j(Ze, {
412
+ }, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (b(), j(Ze, {
413
413
  key: 1,
414
414
  "model-value": e.rows[y],
415
415
  options: e.fieldsOptions || {},
@@ -426,10 +426,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
426
426
  }), Mt = {
427
427
  key: 0,
428
428
  class: "flex flex-col h-full"
429
- }, jt = { class: "flex flex-col gap-[16px] pb-[24px]" }, Ot = { class: "flex flex-row justify-between items-center gap-2" }, Lt = { class: "flex flex-row gap-2 items-center" }, Et = { class: "relative group cursor-pointer" }, Bt = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Yt = { class: "w-[90%] flex flex-col gap-24" }, qt = { class: "flex flex-row items-center justify-between gap-2" }, zt = { class: "w-[25%]" }, Ht = { class: "flex flex-col gap-[16px]" }, Qt = { class: "flex flex-col max-w-[100%] justify-between" }, Gt = { class: "flex-grow" }, Xt = { class: "flex flex-col max-w-[100%] justify-between" }, Wt = { class: "flex flex-col max-w-[100%] justify-between" }, Jt = { class: "w-[25%] font-semibold" }, Zt = { class: "flex flex-col max-w-[100%] justify-between" }, eo = { class: "flex-grow" }, to = { class: "flex flex-row items-center max-w-[100%] justify-between" }, oo = { class: "flex-grow" }, ao = {
430
- key: 0,
431
- class: "flex flex-row items-center max-w-[100%] justify-between"
432
- }, lo = { class: "flex-grow" }, no = { class: "flex flex-col gap-[16px]" }, so = { class: "flex flex-row items-center justify-between gap-x-16" }, io = {
429
+ }, jt = { class: "flex flex-col gap-[16px] pb-[24px]" }, Ot = { class: "flex flex-row justify-between items-center gap-2" }, Lt = { class: "flex flex-row gap-2 items-center" }, Et = { class: "relative group cursor-pointer" }, Bt = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Yt = { class: "w-[90%] flex flex-col gap-24" }, qt = { class: "flex flex-row items-center justify-between gap-2" }, zt = { class: "w-[25%]" }, Ht = { class: "flex flex-col gap-[16px]" }, Qt = { class: "flex flex-col max-w-[100%] justify-between" }, Gt = { class: "flex-grow" }, Xt = { class: "flex flex-col max-w-[100%] justify-between" }, Wt = { class: "flex flex-col max-w-[100%] justify-between" }, Jt = { class: "w-[25%] font-semibold" }, Zt = { class: "flex flex-col max-w-[100%] justify-between" }, eo = { class: "flex-grow" }, to = { class: "flex flex-row items-center max-w-[100%] justify-between" }, oo = { class: "flex-grow" }, ao = { class: "flex flex-row items-center max-w-[100%] justify-between" }, lo = { class: "flex-grow" }, no = { class: "flex flex-col gap-[16px]" }, so = { class: "flex flex-row items-center justify-between gap-x-16" }, io = {
433
430
  key: 0,
434
431
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
435
432
  }, ro = { class: "flex flex-row items-center justify-between gap-x-16" }, mo = {
@@ -525,7 +522,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
525
522
  name: n.label
526
523
  });
527
524
  }
528
- function b(s, n) {
525
+ function x(s, n) {
529
526
  var K, N;
530
527
  (N = (K = e.value.platform) == null ? void 0 : K.mappings) != null && N[s] && (e.value.platform.mappings[s] = e.value.platform.mappings[s].filter(
531
528
  (M, Y) => Y !== n
@@ -539,9 +536,6 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
539
536
  feedmeKey: "",
540
537
  xeroAccount: null,
541
538
  name: ""
542
- } : s === "taxes" ? {
543
- feedmeKey: "",
544
- xeroAccount: null
545
539
  } : {
546
540
  feedmeKey: "",
547
541
  xeroAccount: null
@@ -576,7 +570,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
576
570
  }), (s, n) => {
577
571
  var ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe, U, R, g, P, C, Q, ye, L, q, Z, Ke, Ye, Xe, We;
578
572
  const K = T("FmIcon"), N = T("FmButton"), M = T("FmMenuDivider"), Y = T("FmCircularProgress"), E = T("FmSelect"), G = T("FmTextField"), W = T("FmSwitch");
579
- return (le = (ae = e.value) == null ? void 0 : ae.platform) != null && le.mappings ? (x(), I("div", Mt, [
573
+ return (le = (ae = e.value) == null ? void 0 : ae.platform) != null && le.mappings ? (b(), I("div", Mt, [
580
574
  t("div", jt, [
581
575
  t("div", Ot, [
582
576
  n[20] || (n[20] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
@@ -616,7 +610,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
616
610
  onClick: c
617
611
  }, null, 8, ["disabled", "label"])
618
612
  ]),
619
- !f.tenantOptions.isLoaded && ((ne = e.value.platform) != null && ne.accessToken) ? (x(), j(Y, {
613
+ !f.tenantOptions.isLoaded && ((ne = e.value.platform) != null && ne.accessToken) ? (b(), j(Y, {
620
614
  key: 0,
621
615
  size: "xl"
622
616
  })) : O("", !0),
@@ -684,18 +678,19 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
684
678
  }, null, 8, ["model-value"])
685
679
  ])
686
680
  ]),
687
- e.value.platform.grouping == d(ge).BY_DAY ? (x(), I("div", ao, [
681
+ t("div", ao, [
688
682
  n[25] || (n[25] = t("div", { class: "w-[25%] font-semibold" }, "Combine Refund", -1)),
689
683
  t("div", lo, [
690
684
  l(W, {
691
685
  "model-value": e.value.platform.mappings.isCombineRefund ?? !1,
692
686
  style: { gap: 0 },
687
+ disabled: e.value.platform.grouping != d(ge).BY_DAY,
693
688
  "onUpdate:modelValue": n[5] || (n[5] = (oe) => {
694
689
  e.value.platform.mappings.isCombineRefund = oe;
695
690
  })
696
- }, null, 8, ["model-value"])
691
+ }, null, 8, ["model-value", "disabled"])
697
692
  ])
698
- ])) : O("", !0)
693
+ ])
699
694
  ]),
700
695
  l(M, { style: { margin: 0 } }),
701
696
  l(Le, {
@@ -715,12 +710,12 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
715
710
  onClick: n[7] || (n[7] = () => h("taxes"))
716
711
  })
717
712
  ]),
718
- f.taxOptions.isError || e.value.platform.accessToken == null ? (x(), I("div", io, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
719
- !f.taxOptions.isLoaded && ((de = e.value.platform) != null && de.accessToken) ? (x(), j(Y, {
713
+ f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), I("div", io, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
714
+ !f.taxOptions.isLoaded && ((de = e.value.platform) != null && de.accessToken) ? (b(), j(Y, {
720
715
  key: 1,
721
716
  size: "xl"
722
717
  })) : O("", !0),
723
- ((me = f.taxOptions.data) == null ? void 0 : me.length) > 0 ? (x(), j(X, {
718
+ ((me = f.taxOptions.data) == null ? void 0 : me.length) > 0 ? (b(), j(X, {
724
719
  key: 2,
725
720
  "header-items": ["Feedme Key", "Tax"],
726
721
  rows: ((ue = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : ue.taxes) || [],
@@ -735,7 +730,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
735
730
  dropdownOptions: f.taxOptions.data ?? []
736
731
  }
737
732
  },
738
- onRemove: n[8] || (n[8] = (oe, ve) => b("taxes", ve)),
733
+ onRemove: n[8] || (n[8] = (oe, ve) => x("taxes", ve)),
739
734
  "onUpdate:rows": n[9] || (n[9] = (oe) => {
740
735
  var ve, $e;
741
736
  ($e = (ve = e.value) == null ? void 0 : ve.platform) != null && $e.mappings && (e.value.platform.mappings.taxes = oe);
@@ -751,12 +746,12 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
751
746
  onClick: n[10] || (n[10] = () => h("taxRoundingAdjustments"))
752
747
  })
753
748
  ]),
754
- f.taxOptions.isError || e.value.platform.accessToken == null ? (x(), I("div", mo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
755
- !f.taxOptions.isLoaded && ((fe = e.value.platform) != null && fe.accessToken) ? (x(), j(Y, {
749
+ f.taxOptions.isError || e.value.platform.accessToken == null ? (b(), I("div", mo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
750
+ !f.taxOptions.isLoaded && ((fe = e.value.platform) != null && fe.accessToken) ? (b(), j(Y, {
756
751
  key: 4,
757
752
  size: "xl"
758
753
  })) : O("", !0),
759
- ((U = f.taxOptions.data) == null ? void 0 : U.length) > 0 ? (x(), j(X, {
754
+ ((U = f.accountCodeOptions.data) == null ? void 0 : U.length) > 0 ? (b(), j(X, {
760
755
  key: 5,
761
756
  "header-items": ["Feedme Key", "Tax"],
762
757
  rows: ((P = (g = (R = e.value) == null ? void 0 : R.platform) == null ? void 0 : g.mappings) == null ? void 0 : P.taxRoundingAdjustments) || [],
@@ -771,7 +766,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
771
766
  dropdownOptions: f.accountCodeOptions.data ?? []
772
767
  }
773
768
  },
774
- onRemove: n[11] || (n[11] = (oe, ve) => b("taxRoundingAdjustments", ve)),
769
+ onRemove: n[11] || (n[11] = (oe, ve) => x("taxRoundingAdjustments", ve)),
775
770
  "onUpdate:rows": n[12] || (n[12] = (oe) => {
776
771
  var ve, $e;
777
772
  ($e = (ve = e.value) == null ? void 0 : ve.platform) != null && $e.mappings && (e.value.platform.mappings.taxRoundingAdjustments = oe);
@@ -787,12 +782,12 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
787
782
  onClick: n[13] || (n[13] = () => h("items"))
788
783
  })
789
784
  ]),
790
- f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (x(), I("div", co, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
791
- !f.accountCodeOptions.isLoaded && ((C = e.value.platform) != null && C.accessToken) ? (x(), j(Y, {
785
+ f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), I("div", co, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
786
+ !f.accountCodeOptions.isLoaded && ((C = e.value.platform) != null && C.accessToken) ? (b(), j(Y, {
792
787
  key: 7,
793
788
  size: "xl"
794
789
  })) : O("", !0),
795
- ((Q = f.accountCodeOptions.data) == null ? void 0 : Q.length) > 0 ? (x(), j(X, {
790
+ ((Q = f.accountCodeOptions.data) == null ? void 0 : Q.length) > 0 ? (b(), j(X, {
796
791
  key: 8,
797
792
  "header-items": ["Feedme Key", "Item Code"],
798
793
  rows: ((q = (L = (ye = e.value) == null ? void 0 : ye.platform) == null ? void 0 : L.mappings) == null ? void 0 : q.items) || [],
@@ -807,7 +802,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
807
802
  dropdownOptions: f.accountCodeOptions.data ?? []
808
803
  }
809
804
  },
810
- onRemove: n[14] || (n[14] = (oe, ve) => b("items", ve)),
805
+ onRemove: n[14] || (n[14] = (oe, ve) => x("items", ve)),
811
806
  "onUpdate:rows": n[15] || (n[15] = (oe) => {
812
807
  var ve, $e;
813
808
  ($e = (ve = e.value) == null ? void 0 : ve.platform) != null && $e.mappings && (e.value.platform.mappings.items = oe);
@@ -823,12 +818,12 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
823
818
  onClick: n[16] || (n[16] = () => h("payments"))
824
819
  })
825
820
  ]),
826
- f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (x(), I("div", fo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
827
- !f.accountCodeOptions.isLoaded && ((Z = e.value.platform) != null && Z.accessToken) ? (x(), j(Y, {
821
+ f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (b(), I("div", fo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
822
+ !f.accountCodeOptions.isLoaded && ((Z = e.value.platform) != null && Z.accessToken) ? (b(), j(Y, {
828
823
  key: 10,
829
824
  size: "xl"
830
825
  })) : O("", !0),
831
- ((Ke = f.accountCodeOptions.data) == null ? void 0 : Ke.length) > 0 ? (x(), j(X, {
826
+ ((Ke = f.accountCodeOptions.data) == null ? void 0 : Ke.length) > 0 ? (b(), j(X, {
832
827
  key: 11,
833
828
  "header-items": ["Feedme Key", "Payment Code"],
834
829
  rows: ((We = (Xe = (Ye = e.value) == null ? void 0 : Ye.platform) == null ? void 0 : Xe.mappings) == null ? void 0 : We.payments) || [],
@@ -843,7 +838,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
843
838
  dropdownOptions: f.accountCodeOptions.data ?? []
844
839
  }
845
840
  },
846
- onRemove: n[17] || (n[17] = (oe, ve) => b("payments", ve)),
841
+ onRemove: n[17] || (n[17] = (oe, ve) => x("payments", ve)),
847
842
  "onUpdate:rows": n[18] || (n[18] = (oe) => {
848
843
  var ve, $e;
849
844
  ($e = (ve = e.value) == null ? void 0 : ve.platform) != null && $e.mappings && (e.value.platform.mappings.payments = oe);
@@ -1001,7 +996,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1001
996
  }
1002
997
  return (w, S) => {
1003
998
  const D = T("FmButton"), c = T("FmCircularProgress"), p = T("FmTable");
1004
- return x(), I("div", go, [
999
+ return b(), I("div", go, [
1005
1000
  t("div", yo, [
1006
1001
  l(Oe, {
1007
1002
  "date-range": d(y),
@@ -1015,10 +1010,10 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1015
1010
  onClick: _
1016
1011
  }, null, 8, ["loading"])
1017
1012
  ]),
1018
- V.value ? (x(), I("div", xo, [
1013
+ V.value ? (b(), I("div", xo, [
1019
1014
  l(c, { size: "xl" }),
1020
1015
  t("span", bo, k(d(e)("report.common.isLoading")), 1)
1021
- ])) : r.value.length > 0 ? (x(), j(p, {
1016
+ ])) : r.value.length > 0 ? (b(), j(p, {
1022
1017
  key: 1,
1023
1018
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
1024
1019
  "row-data": r.value,
@@ -1115,11 +1110,11 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1115
1110
  },
1116
1111
  { immediate: !0 }
1117
1112
  ), (c, p) => {
1118
- var b, h, i;
1113
+ var x, h, i;
1119
1114
  const m = T("FmPageHead"), u = T("FmTabs");
1120
- return x(), I("div", _o, [
1115
+ return b(), I("div", _o, [
1121
1116
  l(m, {
1122
- title: ((b = e.value) == null ? void 0 : b.name) || "Xero",
1117
+ title: ((x = e.value) == null ? void 0 : x.name) || "Xero",
1123
1118
  "back-button": !0,
1124
1119
  style: { paddingLeft: "0px", paddingRight: "0px" },
1125
1120
  "onClick:back": d(y).back
@@ -1135,7 +1130,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1135
1130
  items: F
1136
1131
  }, null, 8, ["model-value"]),
1137
1132
  t("div", ho, [
1138
- (x(), j(De((h = _.value) == null ? void 0 : h.component), Qe({
1133
+ (b(), j(De((h = _.value) == null ? void 0 : h.component), Qe({
1139
1134
  modelValue: e.value,
1140
1135
  "onUpdate:modelValue": p[1] || (p[1] = (o) => e.value = o)
1141
1136
  }, (i = _.value) == null ? void 0 : i.props), null, 16, ["modelValue"]))
@@ -1219,7 +1214,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1219
1214
  ];
1220
1215
  return (v, A) => {
1221
1216
  const V = T("FmIcon"), F = T("FmTable"), y = T("FmSideSheet");
1222
- return x(), j(y, {
1217
+ return b(), j(y, {
1223
1218
  header: d(a)("report.integration.refNumFormatInfo"),
1224
1219
  "dismiss-away": "",
1225
1220
  "max-width": 780
@@ -1368,7 +1363,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1368
1363
  var s, n;
1369
1364
  (n = (s = a.value) == null ? void 0 : s.platform) != null && n.mappings && (a.value.platform.mappings[i] = o);
1370
1365
  }
1371
- function b(i) {
1366
+ function x(i) {
1372
1367
  return {
1373
1368
  key: { placeholder: i, editable: !1 },
1374
1369
  account: { placeholder: i, editable: !0 }
@@ -1388,7 +1383,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1388
1383
  }), (i, o) => {
1389
1384
  var Y, E, G, W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe, U, R;
1390
1385
  const s = T("FmIcon"), n = T("FmButton"), K = T("FmMenuDivider"), N = T("FmTextField"), M = T("FmSelect");
1391
- return (E = (Y = a.value) == null ? void 0 : Y.platform) != null && E.mappings ? (x(), I("div", So, [
1386
+ return (E = (Y = a.value) == null ? void 0 : Y.platform) != null && E.mappings ? (b(), I("div", So, [
1392
1387
  t("div", Vo, [
1393
1388
  t("div", Ao, [
1394
1389
  t("div", Do, k(d(_)("report.integration.bukku.connect")), 1),
@@ -1512,13 +1507,13 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1512
1507
  key: "Rounding",
1513
1508
  account: a.value.platform.mappings.rounding.account
1514
1509
  },
1515
- options: b("Rounding"),
1510
+ options: x("Rounding"),
1516
1511
  "onUpdate:modelValue": o[7] || (o[7] = (g) => {
1517
1512
  var P, C, Q;
1518
1513
  (Q = (C = (P = a.value) == null ? void 0 : P.platform) == null ? void 0 : C.mappings) != null && Q.rounding && (a.value.platform.mappings.rounding.account = g.account);
1519
1514
  })
1520
1515
  }, null, 8, ["model-value", "options"]),
1521
- (x(!0), I(he, null, Ve((ae = (W = (G = a.value) == null ? void 0 : G.platform) == null ? void 0 : W.mappings) == null ? void 0 : ae.charges, (g, P) => (x(), j(B, {
1516
+ (b(!0), I(he, null, Ve((ae = (W = (G = a.value) == null ? void 0 : G.platform) == null ? void 0 : W.mappings) == null ? void 0 : ae.charges, (g, P) => (b(), j(B, {
1522
1517
  key: `charge-${P}`,
1523
1518
  modelValue: a.value.platform.mappings.charges[P],
1524
1519
  "onUpdate:modelValue": (C) => a.value.platform.mappings.charges[P] = C,
@@ -1547,7 +1542,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1547
1542
  key: "Invoice no",
1548
1543
  account: a.value.platform.mappings.invoiceDocNo
1549
1544
  },
1550
- options: b("Invoice no"),
1545
+ options: x("Invoice no"),
1551
1546
  "onUpdate:modelValue": o[8] || (o[8] = (g) => u({ key: "invoiceDocNo", value: g.account }))
1552
1547
  }, null, 8, ["model-value", "options"]),
1553
1548
  l(B, {
@@ -1555,7 +1550,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1555
1550
  key: "Credit note no",
1556
1551
  account: a.value.platform.mappings.creditNoteDocNo
1557
1552
  },
1558
- options: b("Credit note no"),
1553
+ options: x("Credit note no"),
1559
1554
  "onUpdate:modelValue": o[9] || (o[9] = (g) => u({ key: "creditNoteDocNo", value: g.account }))
1560
1555
  }, null, 8, ["model-value", "options"]),
1561
1556
  l(B, {
@@ -1563,7 +1558,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1563
1558
  key: "Payment no",
1564
1559
  account: a.value.platform.mappings.paymentDocNo
1565
1560
  },
1566
- options: b("Payment no"),
1561
+ options: x("Payment no"),
1567
1562
  "onUpdate:modelValue": o[10] || (o[10] = (g) => u({ key: "paymentDocNo", value: g.account }))
1568
1563
  }, null, 8, ["model-value", "options"]),
1569
1564
  l(B, {
@@ -1571,7 +1566,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1571
1566
  key: "Refund no",
1572
1567
  account: a.value.platform.mappings.refundDocNo
1573
1568
  },
1574
- options: b("Refund no"),
1569
+ options: x("Refund no"),
1575
1570
  "onUpdate:modelValue": o[11] || (o[11] = (g) => u({ key: "refundDocNo", value: g.account }))
1576
1571
  }, null, 8, ["model-value", "options"])
1577
1572
  ])
@@ -1711,7 +1706,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1711
1706
  const c = new Date(S.date);
1712
1707
  if (isNaN(c.getTime())) return D;
1713
1708
  const p = String(c.getFullYear()), m = String(c.getMonth() + 1).padStart(2, "0"), u = String(c.getDate()).padStart(2, "0");
1714
- return D.replace(/\[(YYYY|MM|DD)\]/g, (b, h) => {
1709
+ return D.replace(/\[(YYYY|MM|DD)\]/g, (x, h) => {
1715
1710
  switch (h) {
1716
1711
  case "YYYY":
1717
1712
  return p;
@@ -1720,7 +1715,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1720
1715
  case "DD":
1721
1716
  return u;
1722
1717
  default:
1723
- return b;
1718
+ return x;
1724
1719
  }
1725
1720
  });
1726
1721
  }
@@ -1735,11 +1730,11 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1735
1730
  title: p.title
1736
1731
  };
1737
1732
  for (let u = 0; u < Math.max(p.form_items.length, m.length); u++) {
1738
- const b = c + u;
1739
- S[b] || (S[b] = {});
1733
+ const x = c + u;
1734
+ S[x] || (S[x] = {});
1740
1735
  const h = p.form_items[u];
1741
- h && (S[b] = {
1742
- ...S[b],
1736
+ h && (S[x] = {
1737
+ ...S[x],
1743
1738
  itemDescription: h.description,
1744
1739
  itemQuantity: h.quantity,
1745
1740
  itemUnitPrice: h.unit_price,
@@ -1748,8 +1743,8 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1748
1743
  itemDiscount: h.discount
1749
1744
  });
1750
1745
  const i = m[u];
1751
- i && (S[b] = {
1752
- ...S[b],
1746
+ i && (S[x] = {
1747
+ ...S[x],
1753
1748
  paymentNo: i.number,
1754
1749
  paymentMethod: i.deposit_items[0]._payment_method_name,
1755
1750
  paymentAccount: i.deposit_items[0]._account_name,
@@ -1872,7 +1867,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1872
1867
  }
1873
1868
  return (S, D) => {
1874
1869
  const c = T("FmButton"), p = T("FmCircularProgress"), m = T("FmTable");
1875
- return x(), I("div", ua, [
1870
+ return b(), I("div", ua, [
1876
1871
  t("div", fa, [
1877
1872
  l(Oe, {
1878
1873
  "date-range": d(_),
@@ -1886,10 +1881,10 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1886
1881
  onClick: w
1887
1882
  }, null, 8, ["loading", "label"])
1888
1883
  ]),
1889
- F.value ? (x(), I("div", va, [
1884
+ F.value ? (b(), I("div", va, [
1890
1885
  l(p, { size: "xl" }),
1891
1886
  t("span", ga, k(d(v)("report.integration.table.loading")), 1)
1892
- ])) : r.value.length > 0 ? (x(), j(m, {
1887
+ ])) : r.value.length > 0 ? (b(), j(m, {
1893
1888
  key: 1,
1894
1889
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
1895
1890
  "row-data": r.value,
@@ -1930,7 +1925,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1930
1925
  return (F, y) => {
1931
1926
  var S;
1932
1927
  const _ = T("FmPageHead"), w = T("FmTabs");
1933
- return x(), I("div", xa, [
1928
+ return b(), I("div", xa, [
1934
1929
  l(_, {
1935
1930
  title: ((S = e.value) == null ? void 0 : S.name) || "Bukku",
1936
1931
  "back-button": !0,
@@ -1948,7 +1943,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1948
1943
  items: v
1949
1944
  }, null, 8, ["model-value"]),
1950
1945
  t("div", ba, [
1951
- (x(), j(De(V.value), {
1946
+ (b(), j(De(V.value), {
1952
1947
  modelValue: e.value,
1953
1948
  "onUpdate:modelValue": y[1] || (y[1] = (D) => e.value = D)
1954
1949
  }, null, 8, ["modelValue"]))
@@ -2043,7 +2038,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2043
2038
  account: { placeholder: h, editable: !0 }
2044
2039
  };
2045
2040
  }
2046
- async function b() {
2041
+ async function x() {
2047
2042
  await V(async () => {
2048
2043
  try {
2049
2044
  await Re(e.value._id), await v.getSettings();
@@ -2057,7 +2052,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2057
2052
  }), (h, i) => {
2058
2053
  var M, Y, E, G, W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe;
2059
2054
  const o = T("FmIcon"), s = T("FmButton"), n = T("FmMenuDivider"), K = T("FmTextField"), N = T("FmSelect");
2060
- return (Y = (M = e.value) == null ? void 0 : M.platform) != null && Y.mappings ? (x(), I("div", _a, [
2055
+ return (Y = (M = e.value) == null ? void 0 : M.platform) != null && Y.mappings ? (b(), I("div", _a, [
2061
2056
  t("div", ha, [
2062
2057
  t("div", ka, [
2063
2058
  i[23] || (i[23] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
@@ -2066,7 +2061,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2066
2061
  l(o, {
2067
2062
  name: "refresh",
2068
2063
  class: "p-2 bg-gray-100 rounded-full",
2069
- onClick: b
2064
+ onClick: x
2070
2065
  }),
2071
2066
  t("span", Sa, k(d(a)("report.integration.refreshSetting")), 1)
2072
2067
  ]),
@@ -2145,7 +2140,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2145
2140
  (P = (g = (R = e.value) == null ? void 0 : R.platform) == null ? void 0 : g.mappings) != null && P.rounding && (e.value.platform.mappings.rounding.account = U.account);
2146
2141
  })
2147
2142
  }, null, 8, ["model-value", "options"]),
2148
- (x(!0), I(he, null, Ve((W = (G = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : G.mappings) == null ? void 0 : W.charges, (U, R) => (x(), j(B, {
2143
+ (b(!0), I(he, null, Ve((W = (G = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : G.mappings) == null ? void 0 : W.charges, (U, R) => (b(), j(B, {
2149
2144
  key: `charge-${R}`,
2150
2145
  modelValue: e.value.platform.mappings.charges[R],
2151
2146
  "onUpdate:modelValue": (g) => e.value.platform.mappings.charges[R] = g,
@@ -2451,7 +2446,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2451
2446
  }
2452
2447
  return (w, S) => {
2453
2448
  const D = T("FmButton"), c = T("FmCircularProgress"), p = T("FmTable");
2454
- return x(), I("div", Za, [
2449
+ return b(), I("div", Za, [
2455
2450
  t("div", el, [
2456
2451
  l(Oe, {
2457
2452
  "date-range": d(y),
@@ -2465,10 +2460,10 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2465
2460
  onClick: _
2466
2461
  }, null, 8, ["loading", "label"])
2467
2462
  ]),
2468
- V.value ? (x(), I("div", tl, [
2463
+ V.value ? (b(), I("div", tl, [
2469
2464
  l(c, { size: "xl" }),
2470
2465
  t("span", ol, k(d(a)("report.common.isLoading")), 1)
2471
- ])) : r.value.length > 0 ? (x(), j(p, {
2466
+ ])) : r.value.length > 0 ? (b(), j(p, {
2472
2467
  key: 1,
2473
2468
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
2474
2469
  "row-data": r.value,
@@ -2509,7 +2504,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2509
2504
  return (F, y) => {
2510
2505
  var S;
2511
2506
  const _ = T("FmPageHead"), w = T("FmTabs");
2512
- return x(), I("div", ll, [
2507
+ return b(), I("div", ll, [
2513
2508
  l(_, {
2514
2509
  title: ((S = e.value) == null ? void 0 : S.name) || "AutoCount",
2515
2510
  "back-button": !0,
@@ -2527,7 +2522,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2527
2522
  items: v
2528
2523
  }, null, 8, ["model-value"]),
2529
2524
  t("div", nl, [
2530
- (x(), j(De(V.value), {
2525
+ (b(), j(De(V.value), {
2531
2526
  modelValue: e.value,
2532
2527
  "onUpdate:modelValue": y[1] || (y[1] = (D) => e.value = D)
2533
2528
  }, null, 8, ["modelValue"]))
@@ -2618,7 +2613,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2618
2613
  }
2619
2614
  });
2620
2615
  }
2621
- const b = z(() => {
2616
+ const x = z(() => {
2622
2617
  const { flags: i } = Je();
2623
2618
  return i.some(
2624
2619
  (o) => o.key === "report_portal_integration_custom_sql" && o.value === !0
@@ -2636,7 +2631,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2636
2631
  label: "By day and category",
2637
2632
  value: ge.BY_DAY_CATEGORY
2638
2633
  },
2639
- ...b.value ? [
2634
+ ...x.value ? [
2640
2635
  {
2641
2636
  label: "By day and tagging",
2642
2637
  value: ge.BY_DAY_TAGGING
@@ -2648,7 +2643,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2648
2643
  }), (i, o) => {
2649
2644
  var Y, E, G, W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe, U, R, g, P, C, Q, ye;
2650
2645
  const s = T("FmIcon"), n = T("FmButton"), K = T("FmMenuDivider"), N = T("FmTextField"), M = T("FmSelect");
2651
- return (E = (Y = e.value) == null ? void 0 : Y.platform) != null && E.mappings ? (x(), I("div", il, [
2646
+ return (E = (Y = e.value) == null ? void 0 : Y.platform) != null && E.mappings ? (b(), I("div", il, [
2652
2647
  t("div", rl, [
2653
2648
  t("div", dl, [
2654
2649
  o[31] || (o[31] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
@@ -2762,7 +2757,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2762
2757
  (Ke = (Z = (q = e.value) == null ? void 0 : q.platform) == null ? void 0 : Z.mappings) != null && Ke.rounding && (e.value.platform.mappings.rounding.account = L.account, e.value.platform.mappings.rounding.code = L.code);
2763
2758
  })
2764
2759
  }, null, 8, ["model-value"]),
2765
- (x(!0), I(he, null, Ve((ae = (W = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : W.mappings) == null ? void 0 : ae.charges, (L, q) => (x(), j(B, {
2760
+ (b(!0), I(he, null, Ve((ae = (W = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : W.mappings) == null ? void 0 : ae.charges, (L, q) => (b(), j(B, {
2766
2761
  key: `charge-${q}`,
2767
2762
  modelValue: e.value.platform.mappings.charges[q],
2768
2763
  "onUpdate:modelValue": (Z) => e.value.platform.mappings.charges[q] = Z,
@@ -2927,7 +2922,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2927
2922
  })
2928
2923
  }, null, 8, ["rows"]),
2929
2924
  l(K, { style: { margin: 0 } }),
2930
- b.value ? (x(), I(he, { key: 0 }, [
2925
+ x.value ? (b(), I(he, { key: 0 }, [
2931
2926
  t("div", jl, [
2932
2927
  o[32] || (o[32] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
2933
2928
  l(n, {
@@ -3018,15 +3013,15 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3018
3013
  deliveryOrders: []
3019
3014
  }), r = z(
3020
3015
  () => e.value.invoices.reduce((m, u) => {
3021
- const b = m.length, { invoice: h, payments: i } = u;
3022
- m[b] = {
3016
+ const x = m.length, { invoice: h, payments: i } = u;
3017
+ m[x] = {
3023
3018
  date: h.DocDate,
3024
3019
  docNo: h.DocNo,
3025
3020
  debtor: h.Code,
3026
3021
  description: h.Description_HDR
3027
3022
  };
3028
3023
  for (let o = 0; o < Math.max(h._items.length, i.length); o++) {
3029
- const s = b + o;
3024
+ const s = x + o;
3030
3025
  m[s] || (m[s] = {}), h._items[o] && (m[s] = {
3031
3026
  ...m[s],
3032
3027
  itemDescription: h._items[o].Description_DTL,
@@ -3113,15 +3108,15 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3113
3108
  }
3114
3109
  ], A = z(
3115
3110
  () => e.value.deliveryOrders.reduce((m, u) => {
3116
- const b = m.length, { _items: h } = u;
3117
- m[b] = {
3111
+ const x = m.length, { _items: h } = u;
3112
+ m[x] = {
3118
3113
  date: u.DocDate,
3119
3114
  docNo: u.DocNo,
3120
3115
  supplierCode: u.Code,
3121
3116
  description: u.Description_HDR
3122
3117
  };
3123
3118
  for (let i = 0; i < h.length; i++) {
3124
- const o = b + i;
3119
+ const o = x + i;
3125
3120
  m[o] || (m[o] = {}), h[i] && (m[o] = {
3126
3121
  ...m[o],
3127
3122
  itemCode: h[i].ACCOUNT,
@@ -3237,37 +3232,37 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3237
3232
  ] : []
3238
3233
  ], p = H(c[0].value);
3239
3234
  return (m, u) => {
3240
- const b = T("FmButton"), h = T("FmCircularProgress"), i = T("FmTabs"), o = T("FmTable");
3241
- return x(), I("div", El, [
3235
+ const x = T("FmButton"), h = T("FmCircularProgress"), i = T("FmTabs"), o = T("FmTable");
3236
+ return b(), I("div", El, [
3242
3237
  t("div", Bl, [
3243
3238
  l(Oe, {
3244
3239
  "date-range": d(w),
3245
3240
  "onUpdate:dateRange": u[0] || (u[0] = (s) => Ae(w) ? w.value = s : null),
3246
3241
  compare: !1
3247
3242
  }, null, 8, ["date-range"]),
3248
- l(b, {
3243
+ l(x, {
3249
3244
  loading: y.value,
3250
3245
  variant: "primary",
3251
3246
  label: d(a)("report.common.download"),
3252
3247
  onClick: S
3253
3248
  }, null, 8, ["loading", "label"])
3254
3249
  ]),
3255
- y.value ? (x(), I("div", Yl, [
3250
+ y.value ? (b(), I("div", Yl, [
3256
3251
  l(h, { size: "xl" }),
3257
3252
  t("span", ql, k(d(a)("report.common.isLoading")), 1)
3258
- ])) : (x(), I("div", zl, [
3253
+ ])) : (b(), I("div", zl, [
3259
3254
  l(i, {
3260
3255
  "model-value": p.value,
3261
3256
  "onUpdate:modelValue": u[1] || (u[1] = (s) => p.value = s),
3262
3257
  items: c
3263
3258
  }, null, 8, ["model-value"]),
3264
- p.value === "SALE" && r.value.length > 0 ? (x(), j(o, {
3259
+ p.value === "SALE" && r.value.length > 0 ? (b(), j(o, {
3265
3260
  key: 0,
3266
3261
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
3267
3262
  "row-data": r.value,
3268
3263
  "column-defs": v
3269
3264
  }, null, 8, ["row-data"])) : O("", !0),
3270
- p.value === "ORDER" && A.value.length > 0 ? (x(), j(o, {
3265
+ p.value === "ORDER" && A.value.length > 0 ? (b(), j(o, {
3271
3266
  key: 1,
3272
3267
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
3273
3268
  "row-data": A.value,
@@ -3309,7 +3304,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3309
3304
  return (F, y) => {
3310
3305
  var S;
3311
3306
  const _ = T("FmPageHead"), w = T("FmTabs");
3312
- return x(), I("div", Ql, [
3307
+ return b(), I("div", Ql, [
3313
3308
  l(_, {
3314
3309
  title: ((S = e.value) == null ? void 0 : S.name) || "SQL",
3315
3310
  "back-button": !0,
@@ -3327,7 +3322,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3327
3322
  items: v
3328
3323
  }, null, 8, ["model-value"]),
3329
3324
  t("div", Gl, [
3330
- (x(), j(De(V.value), {
3325
+ (b(), j(De(V.value), {
3331
3326
  modelValue: e.value,
3332
3327
  "onUpdate:modelValue": y[1] || (y[1] = (D) => e.value = D)
3333
3328
  }, null, 8, ["modelValue"]))
@@ -3440,7 +3435,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3440
3435
  var s, n;
3441
3436
  (n = (s = e.value) == null ? void 0 : s.platform) != null && n.mappings && (e.value.platform.mappings[i] = o);
3442
3437
  }
3443
- function b(i) {
3438
+ function x(i) {
3444
3439
  return {
3445
3440
  key: { placeholder: i, editable: !1 },
3446
3441
  account: { placeholder: i, editable: !0 }
@@ -3504,7 +3499,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3504
3499
  }), (i, o) => {
3505
3500
  var E, G, W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe, U, R;
3506
3501
  const s = T("FmIcon"), n = T("FmButton"), K = T("FmSelect"), N = T("FmMenuDivider"), M = T("FmTextField"), Y = T("FmCircularProgress");
3507
- return (G = (E = e.value) == null ? void 0 : E.platform) != null && G.mappings ? (x(), I("div", Wl, [
3502
+ return (G = (E = e.value) == null ? void 0 : E.platform) != null && G.mappings ? (b(), I("div", Wl, [
3508
3503
  t("div", Jl, [
3509
3504
  t("div", Zl, [
3510
3505
  t("div", en, k(d(a)("report.integration.connect")), 1),
@@ -3606,9 +3601,9 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3606
3601
  disabled: ""
3607
3602
  }, null, 8, ["modelValue", "placeholder"])
3608
3603
  ]),
3609
- e.value.platform.mappings.version == "v1" ? (x(), I("div", An, [
3604
+ e.value.platform.mappings.version == "v1" ? (b(), I("div", An, [
3610
3605
  o[26] || (o[26] = t("div", { class: "w-[33%] font-semibold" }, "Payee ID", -1)),
3611
- e.value.platform.mappings.version == "v1" ? (x(), j(B, {
3606
+ e.value.platform.mappings.version == "v1" ? (b(), j(B, {
3612
3607
  key: 0,
3613
3608
  modelValue: e.value.platform.mappings.payee,
3614
3609
  "onUpdate:modelValue": o[6] || (o[6] = (g) => e.value.platform.mappings.payee = g),
@@ -3620,12 +3615,12 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3620
3615
  ])) : O("", !0),
3621
3616
  t("div", Dn, [
3622
3617
  t("div", Kn, [
3623
- !f.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (x(), j(Y, {
3618
+ !f.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (b(), j(Y, {
3624
3619
  key: 0,
3625
3620
  size: "xl"
3626
3621
  })) : O("", !0),
3627
- f.retrievedCustomers.isLoaded && f.retrievedCustomers.data && ((W = f.retrievedCustomers.data) == null ? void 0 : W.length) != 0 ? (x(), I("div", Tn, [
3628
- e.value.platform.mappings.version == "v2" ? (x(), j(Ze, {
3622
+ f.retrievedCustomers.isLoaded && f.retrievedCustomers.data && ((W = f.retrievedCustomers.data) == null ? void 0 : W.length) != 0 ? (b(), I("div", Tn, [
3623
+ e.value.platform.mappings.version == "v2" ? (b(), j(Ze, {
3629
3624
  key: 0,
3630
3625
  modelValue: e.value.platform.mappings.payeeId,
3631
3626
  "onUpdate:modelValue": o[7] || (o[7] = (g) => e.value.platform.mappings.payeeId = g),
@@ -3656,7 +3651,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3656
3651
  key: "Invoice no",
3657
3652
  account: e.value.platform.mappings.invoiceDocNo
3658
3653
  },
3659
- options: b("Invoice no"),
3654
+ options: x("Invoice no"),
3660
3655
  "onUpdate:modelValue": o[8] || (o[8] = (g) => u({ key: "invoiceDocNo", value: g.account }))
3661
3656
  }, null, 8, ["model-value", "options"]),
3662
3657
  l(B, {
@@ -3664,25 +3659,25 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3664
3659
  key: "Credit note no",
3665
3660
  account: e.value.platform.mappings.creditNoteDocNo
3666
3661
  },
3667
- options: b("Credit note no"),
3662
+ options: x("Credit note no"),
3668
3663
  "onUpdate:modelValue": o[9] || (o[9] = (g) => u({ key: "creditNoteDocNo", value: g.account }))
3669
3664
  }, null, 8, ["model-value", "options"]),
3670
- e.value.platform.mappings.version == "v2" ? (x(), j(B, {
3665
+ e.value.platform.mappings.version == "v2" ? (b(), j(B, {
3671
3666
  key: 0,
3672
3667
  "model-value": {
3673
3668
  key: "Payment no",
3674
3669
  account: e.value.platform.mappings.paymentDocNo
3675
3670
  },
3676
- options: b("Payment no"),
3671
+ options: x("Payment no"),
3677
3672
  "onUpdate:modelValue": o[10] || (o[10] = (g) => u({ key: "paymentDocNo", value: g.account }))
3678
3673
  }, null, 8, ["model-value", "options"])) : O("", !0),
3679
- e.value.platform.mappings.version == "v2" ? (x(), j(B, {
3674
+ e.value.platform.mappings.version == "v2" ? (b(), j(B, {
3680
3675
  key: 1,
3681
3676
  "model-value": {
3682
3677
  key: "Refund no",
3683
3678
  account: e.value.platform.mappings.refundDocNo
3684
3679
  },
3685
- options: b("Refund no"),
3680
+ options: x("Refund no"),
3686
3681
  "onUpdate:modelValue": o[11] || (o[11] = (g) => u({ key: "refundDocNo", value: g.account }))
3687
3682
  }, null, 8, ["model-value", "options"])) : O("", !0)
3688
3683
  ])
@@ -3797,14 +3792,14 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3797
3792
  }, null, 8, ["modelValue"])
3798
3793
  ])
3799
3794
  ]),
3800
- f.retrievedMethods.isError ? O("", !0) : (x(), I("div", zn, k(d(a)("report.integration.biztory.paymentTerm")), 1)),
3801
- f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length == 0 && !f.retrievedMethods.isError ? (x(), I("span", Hn, k(d(a)("report.integration.biztory.noPaymentMethods")), 1)) : O("", !0),
3802
- f.retrievedMethods.isLoaded ? O("", !0) : (x(), j(Y, {
3795
+ f.retrievedMethods.isError ? O("", !0) : (b(), I("div", zn, k(d(a)("report.integration.biztory.paymentTerm")), 1)),
3796
+ f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length == 0 && !f.retrievedMethods.isError ? (b(), I("span", Hn, k(d(a)("report.integration.biztory.noPaymentMethods")), 1)) : O("", !0),
3797
+ f.retrievedMethods.isLoaded ? O("", !0) : (b(), j(Y, {
3803
3798
  key: 2,
3804
3799
  size: "xl"
3805
3800
  })),
3806
- f.retrievedMethods.isError ? (x(), I("span", Qn, k(d(a)("report.integration.biztory.error")), 1)) : O("", !0),
3807
- f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length != 0 ? (x(), j(X, {
3801
+ f.retrievedMethods.isError ? (b(), I("span", Qn, k(d(a)("report.integration.biztory.error")), 1)) : O("", !0),
3802
+ f.retrievedMethods.isLoaded && f.retrievedMethods.data && f.retrievedMethods.data.length != 0 ? (b(), j(X, {
3808
3803
  key: 4,
3809
3804
  "header-items": ["Key", "Payment Method"],
3810
3805
  rows: ((R = (U = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : U.mappings) == null ? void 0 : R.paymentMethods) || [],
@@ -3834,7 +3829,7 @@ const ut = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3834
3829
  });
3835
3830
  function Xn(f) {
3836
3831
  return f.reduce((a, e) => {
3837
- var A, V, F, y, _, w, S, D, c, p, m, u, b, h, i, o, s, n, K, N, M, Y;
3832
+ var A, V, F, y, _, w, S, D, c, p, m, u, x, h, i, o, s, n, K, N, M, Y;
3838
3833
  const { invoice: r } = e, v = a.length;
3839
3834
  a[v] = {
3840
3835
  invoice_date: r.invoice_date,
@@ -3863,7 +3858,7 @@ function Xn(f) {
3863
3858
  item_price: W.price,
3864
3859
  item_tax: W.total_tax,
3865
3860
  item_tax_label: W.tax_label || "-",
3866
- payment_amount: ((h = (b = r.transactions) == null ? void 0 : b[E]) == null ? void 0 : h.amount) || void 0,
3861
+ payment_amount: ((h = (x = r.transactions) == null ? void 0 : x[E]) == null ? void 0 : h.amount) || void 0,
3867
3862
  payment_method: ((o = (i = r.transactions) == null ? void 0 : i[E]) == null ? void 0 : o.payment_method) || "-",
3868
3863
  payment_term: ((s = r == null ? void 0 : r.payment_term) == null ? void 0 : s.name) || ""
3869
3864
  } : a[G] = {
@@ -3949,7 +3944,7 @@ const Wn = [
3949
3944
  ];
3950
3945
  function Jn(f) {
3951
3946
  return f.reduce((a, e) => {
3952
- var F, y, _, w, S, D, c, p, m, u, b, h, i, o;
3947
+ var F, y, _, w, S, D, c, p, m, u, x, h, i, o;
3953
3948
  const { invoice: r, payments: v } = e, A = a.length;
3954
3949
  a[A] = {
3955
3950
  invoice_date: r.invoice_date,
@@ -3967,7 +3962,7 @@ function Jn(f) {
3967
3962
  payment_method: ((u = v[0]) == null ? void 0 : u.payment_method_name) || ""
3968
3963
  };
3969
3964
  const V = Math.max(
3970
- ((b = r.items) == null ? void 0 : b.length) || 0,
3965
+ ((x = r.items) == null ? void 0 : x.length) || 0,
3971
3966
  ((h = r.terms) == null ? void 0 : h.length) || 0,
3972
3967
  (v == null ? void 0 : v.length) || 0
3973
3968
  );
@@ -4117,7 +4112,7 @@ const Zn = [
4117
4112
  }
4118
4113
  return (w, S) => {
4119
4114
  const D = T("FmButton"), c = T("FmCircularProgress"), p = T("FmTable");
4120
- return x(), I("div", es, [
4115
+ return b(), I("div", es, [
4121
4116
  t("div", ts, [
4122
4117
  l(Oe, {
4123
4118
  "date-range": d(A),
@@ -4131,10 +4126,10 @@ const Zn = [
4131
4126
  onClick: _
4132
4127
  }, null, 8, ["loading"])
4133
4128
  ]),
4134
- r.value ? (x(), I("div", os, [
4129
+ r.value ? (b(), I("div", os, [
4135
4130
  l(c, { size: "xl" }),
4136
4131
  t("span", as, k(d(a)("report.common.isLoading")), 1)
4137
- ])) : (x(), j(p, {
4132
+ ])) : (b(), j(p, {
4138
4133
  key: 1,
4139
4134
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
4140
4135
  "row-data": F.value,
@@ -4183,12 +4178,12 @@ const Zn = [
4183
4178
  label: m.length > 2 ? `ID:${u[m[2]]} [${u[m[0]]}] ${u[m[1]]}` : `[${u[m[0]]}] ${u[m[1]]}`,
4184
4179
  value: u.id,
4185
4180
  cnId: u.cnId ? u.cnId : null
4186
- })), w = (p) => _(p, ["wallet", "name"]), S = (p) => _(p, ["id", "name"]), D = async (p, m, u, b) => {
4181
+ })), w = (p) => _(p, ["wallet", "name"]), S = (p) => _(p, ["id", "name"]), D = async (p, m, u, x) => {
4187
4182
  try {
4188
4183
  const h = await p(e.value._id);
4189
4184
  u.value.data = m(h);
4190
4185
  } catch (h) {
4191
- console.error(b, h), u.value.isError = !0;
4186
+ console.error(x, h), u.value.isError = !0;
4192
4187
  } finally {
4193
4188
  u.value.isLoaded = !0;
4194
4189
  }
@@ -4211,8 +4206,8 @@ const Zn = [
4211
4206
  return (p = e.value.platform.mappings) == null ? void 0 : p.version;
4212
4207
  }, c), (p, m) => {
4213
4208
  var h, i, o;
4214
- const u = T("FmPageHead"), b = T("FmTabs");
4215
- return x(), I("div", ns, [
4209
+ const u = T("FmPageHead"), x = T("FmTabs");
4210
+ return b(), I("div", ns, [
4216
4211
  l(u, {
4217
4212
  title: ((h = e.value) == null ? void 0 : h.name) || "Biztory",
4218
4213
  "back-button": !0,
@@ -4224,13 +4219,13 @@ const Zn = [
4224
4219
  ])),
4225
4220
  _: 1
4226
4221
  }, 8, ["title", "onClick:back"]),
4227
- l(b, {
4222
+ l(x, {
4228
4223
  "model-value": r.value,
4229
4224
  "onUpdate:modelValue": m[0] || (m[0] = (s) => r.value = s),
4230
4225
  items: v
4231
4226
  }, null, 8, ["model-value"]),
4232
4227
  t("div", ss, [
4233
- (x(), j(De((i = V.value) == null ? void 0 : i.component), Qe({
4228
+ (b(), j(De((i = V.value) == null ? void 0 : i.component), Qe({
4234
4229
  modelValue: e.value,
4235
4230
  "onUpdate:modelValue": m[1] || (m[1] = (s) => e.value = s)
4236
4231
  }, (o = V.value) == null ? void 0 : o.props), null, 16, ["modelValue"]))
@@ -4274,14 +4269,14 @@ const Zn = [
4274
4269
  });
4275
4270
  }
4276
4271
  function D(m, u) {
4277
- var b, h;
4278
- (h = (b = e.value.platform) == null ? void 0 : b.mappings) != null && h[m] && (e.value.platform.mappings[m] = e.value.platform.mappings[m].filter(
4272
+ var x, h;
4273
+ (h = (x = e.value.platform) == null ? void 0 : x.mappings) != null && h[m] && (e.value.platform.mappings[m] = e.value.platform.mappings[m].filter(
4279
4274
  (i, o) => o !== u
4280
4275
  ));
4281
4276
  }
4282
4277
  function c(m) {
4283
- var u, b;
4284
- (b = (u = e.value.platform) == null ? void 0 : u.mappings) != null && b[m] && (e.value.platform.mappings[m] = [
4278
+ var u, x;
4279
+ (x = (u = e.value.platform) == null ? void 0 : u.mappings) != null && x[m] && (e.value.platform.mappings[m] = [
4285
4280
  ...e.value.platform.mappings[m],
4286
4281
  {
4287
4282
  key: "",
@@ -4304,14 +4299,14 @@ const Zn = [
4304
4299
  await v.getSettings();
4305
4300
  }), (m, u) => {
4306
4301
  var n, K, N, M, Y;
4307
- const b = T("FmIcon"), h = T("FmButton"), i = T("FmMenuDivider"), o = T("FmTextField"), s = T("FmSelect");
4308
- return (K = (n = e.value) == null ? void 0 : n.platform) != null && K.mappings ? (x(), I("div", rs, [
4302
+ const x = T("FmIcon"), h = T("FmButton"), i = T("FmMenuDivider"), o = T("FmTextField"), s = T("FmSelect");
4303
+ return (K = (n = e.value) == null ? void 0 : n.platform) != null && K.mappings ? (b(), I("div", rs, [
4309
4304
  t("div", ds, [
4310
4305
  t("div", ms, [
4311
4306
  u[6] || (u[6] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
4312
4307
  t("div", ps, [
4313
4308
  t("div", cs, [
4314
- l(b, {
4309
+ l(x, {
4315
4310
  name: "refresh",
4316
4311
  class: "p-2 bg-gray-100 rounded-full",
4317
4312
  onClick: p
@@ -4461,7 +4456,7 @@ const Zn = [
4461
4456
  }
4462
4457
  return (_, w) => {
4463
4458
  const S = T("FmButton"), D = T("FmCircularProgress"), c = T("FmTable");
4464
- return x(), I("div", Ss, [
4459
+ return b(), I("div", Ss, [
4465
4460
  t("div", Vs, [
4466
4461
  l(Oe, {
4467
4462
  "date-range": d(F),
@@ -4475,10 +4470,10 @@ const Zn = [
4475
4470
  onClick: y
4476
4471
  }, null, 8, ["loading", "label"])
4477
4472
  ]),
4478
- A.value ? (x(), I("div", As, [
4473
+ A.value ? (b(), I("div", As, [
4479
4474
  l(D, { size: "xl" }),
4480
4475
  t("span", Ds, k(d(a)("report.common.isLoading")), 1)
4481
- ])) : e.value.length > 0 ? (x(), j(c, {
4476
+ ])) : e.value.length > 0 ? (b(), j(c, {
4482
4477
  key: 1,
4483
4478
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
4484
4479
  "row-data": e.value,
@@ -4519,7 +4514,7 @@ const Zn = [
4519
4514
  return (F, y) => {
4520
4515
  var S;
4521
4516
  const _ = T("FmPageHead"), w = T("FmTabs");
4522
- return x(), I("div", Ts, [
4517
+ return b(), I("div", Ts, [
4523
4518
  l(_, {
4524
4519
  title: ((S = e.value) == null ? void 0 : S.name) || "AutoCount",
4525
4520
  "back-button": !0,
@@ -4537,7 +4532,7 @@ const Zn = [
4537
4532
  items: v
4538
4533
  }, null, 8, ["model-value"]),
4539
4534
  t("div", Fs, [
4540
- (x(), j(De(V.value), {
4535
+ (b(), j(De(V.value), {
4541
4536
  modelValue: e.value,
4542
4537
  "onUpdate:modelValue": y[1] || (y[1] = (D) => e.value = D)
4543
4538
  }, null, 8, ["modelValue"]))
@@ -4648,7 +4643,7 @@ const Zn = [
4648
4643
  }
4649
4644
  });
4650
4645
  }
4651
- function b({
4646
+ function x({
4652
4647
  key: o,
4653
4648
  value: s
4654
4649
  }) {
@@ -4685,7 +4680,7 @@ const Zn = [
4685
4680
  ), (o, s) => {
4686
4681
  var W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe, U, R, g, P;
4687
4682
  const n = T("FmIcon"), K = T("FmButton"), N = T("FmMenuDivider"), M = T("FmTextField"), Y = T("FmSelect"), E = T("FmSwitch"), G = T("FmCircularProgress");
4688
- return (ae = (W = e.value) == null ? void 0 : W.platform) != null && ae.mappings ? (x(), I("div", Us, [
4683
+ return (ae = (W = e.value) == null ? void 0 : W.platform) != null && ae.mappings ? (b(), I("div", Us, [
4689
4684
  t("div", Is, [
4690
4685
  t("div", Rs, [
4691
4686
  t("div", Ps, k(d(a)("report.integration.connect")), 1),
@@ -4799,11 +4794,11 @@ const Zn = [
4799
4794
  ]),
4800
4795
  t("div", ui, [
4801
4796
  t("div", fi, k(d(a)("report.integration.autocount.debtor")), 1),
4802
- f.retrievedDebtors.isLoaded ? O("", !0) : (x(), j(G, {
4797
+ f.retrievedDebtors.isLoaded ? O("", !0) : (b(), j(G, {
4803
4798
  key: 0,
4804
4799
  size: "xl"
4805
4800
  })),
4806
- f.retrievedDebtors.isLoaded && f.retrievedDebtors.data && ((le = f.retrievedDebtors.data) == null ? void 0 : le.length) != 0 && !f.retrievedDebtors.isError ? (x(), I("div", vi, [
4801
+ f.retrievedDebtors.isLoaded && f.retrievedDebtors.data && ((le = f.retrievedDebtors.data) == null ? void 0 : le.length) != 0 && !f.retrievedDebtors.isError ? (b(), I("div", vi, [
4807
4802
  l(Y, {
4808
4803
  modelValue: d(w),
4809
4804
  "onUpdate:modelValue": [
@@ -4815,15 +4810,15 @@ const Zn = [
4815
4810
  class: "flex-grow",
4816
4811
  disabled: !f.retrievedDebtors.isLoaded
4817
4812
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
4818
- ])) : f.retrievedDebtors.isError ? (x(), I("div", gi, k(d(a)("report.integration.errorFetchingDebtor")), 1)) : O("", !0)
4813
+ ])) : f.retrievedDebtors.isError ? (b(), I("div", gi, k(d(a)("report.integration.errorFetchingDebtor")), 1)) : O("", !0)
4819
4814
  ]),
4820
4815
  t("div", yi, [
4821
4816
  t("div", xi, k(d(a)("report.integration.autocount.location")), 1),
4822
- f.retrievedLocations.isLoaded ? O("", !0) : (x(), j(G, {
4817
+ f.retrievedLocations.isLoaded ? O("", !0) : (b(), j(G, {
4823
4818
  key: 0,
4824
4819
  size: "xl"
4825
4820
  })),
4826
- f.retrievedLocations.isLoaded && f.retrievedLocations.data && ((ne = f.retrievedLocations.data) == null ? void 0 : ne.length) != 0 && !f.retrievedLocations.isError ? (x(), I("div", bi, [
4821
+ f.retrievedLocations.isLoaded && f.retrievedLocations.data && ((ne = f.retrievedLocations.data) == null ? void 0 : ne.length) != 0 && !f.retrievedLocations.isError ? (b(), I("div", bi, [
4827
4822
  l(Y, {
4828
4823
  modelValue: e.value.platform.mappings.salesLocation,
4829
4824
  "onUpdate:modelValue": s[8] || (s[8] = (C) => e.value.platform.mappings.salesLocation = C),
@@ -4832,7 +4827,7 @@ const Zn = [
4832
4827
  class: "flex-grow",
4833
4828
  disabled: !f.retrievedLocations.isLoaded
4834
4829
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])
4835
- ])) : f.retrievedLocations.isError ? (x(), I("div", wi, k(d(a)("report.integration.errorFetchingLocation")), 1)) : O("", !0)
4830
+ ])) : f.retrievedLocations.isError ? (b(), I("div", wi, k(d(a)("report.integration.errorFetchingLocation")), 1)) : O("", !0)
4836
4831
  ])
4837
4832
  ]),
4838
4833
  l(N, { style: { margin: 0 } }),
@@ -4876,7 +4871,7 @@ const Zn = [
4876
4871
  account: e.value.platform.mappings.invoiceDocNo
4877
4872
  },
4878
4873
  options: h("Invoice no"),
4879
- "onUpdate:modelValue": s[12] || (s[12] = (C) => b({ key: "invoiceDocNo", value: C.account }))
4874
+ "onUpdate:modelValue": s[12] || (s[12] = (C) => x({ key: "invoiceDocNo", value: C.account }))
4880
4875
  }, null, 8, ["model-value", "options"]),
4881
4876
  l(B, {
4882
4877
  "model-value": {
@@ -4884,7 +4879,7 @@ const Zn = [
4884
4879
  account: e.value.platform.mappings.creditNoteDocNo
4885
4880
  },
4886
4881
  options: h("Credit note no"),
4887
- "onUpdate:modelValue": s[13] || (s[13] = (C) => b({ key: "creditNoteDocNo", value: C.account }))
4882
+ "onUpdate:modelValue": s[13] || (s[13] = (C) => x({ key: "creditNoteDocNo", value: C.account }))
4888
4883
  }, null, 8, ["model-value", "options"]),
4889
4884
  l(B, {
4890
4885
  "model-value": {
@@ -4892,7 +4887,7 @@ const Zn = [
4892
4887
  account: e.value.platform.mappings.paymentDocNo
4893
4888
  },
4894
4889
  options: h("Payment no"),
4895
- "onUpdate:modelValue": s[14] || (s[14] = (C) => b({ key: "paymentDocNo", value: C.account }))
4890
+ "onUpdate:modelValue": s[14] || (s[14] = (C) => x({ key: "paymentDocNo", value: C.account }))
4896
4891
  }, null, 8, ["model-value", "options"]),
4897
4892
  l(B, {
4898
4893
  "model-value": {
@@ -4900,7 +4895,7 @@ const Zn = [
4900
4895
  account: e.value.platform.mappings.refundDocNo
4901
4896
  },
4902
4897
  options: h("Refund no"),
4903
- "onUpdate:modelValue": s[15] || (s[15] = (C) => b({ key: "refundDocNo", value: C.account }))
4898
+ "onUpdate:modelValue": s[15] || (s[15] = (C) => x({ key: "refundDocNo", value: C.account }))
4904
4899
  }, null, 8, ["model-value", "options"])
4905
4900
  ])
4906
4901
  ]),
@@ -5039,7 +5034,7 @@ const Zn = [
5039
5034
  account: e.value.platform.mappings.creditTerm
5040
5035
  },
5041
5036
  options: h("creditTerm"),
5042
- "onUpdate:modelValue": s[27] || (s[27] = (C) => b({ key: "creditTerm", value: C.account }))
5037
+ "onUpdate:modelValue": s[27] || (s[27] = (C) => x({ key: "creditTerm", value: C.account }))
5043
5038
  }, null, 8, ["model-value", "options"]),
5044
5039
  l(B, {
5045
5040
  "model-value": {
@@ -5047,7 +5042,7 @@ const Zn = [
5047
5042
  account: e.value.platform.mappings.currencyCode
5048
5043
  },
5049
5044
  options: h("currencyCode"),
5050
- "onUpdate:modelValue": s[28] || (s[28] = (C) => b({ key: "currencyCode", value: C.account }))
5045
+ "onUpdate:modelValue": s[28] || (s[28] = (C) => x({ key: "currencyCode", value: C.account }))
5051
5046
  }, null, 8, ["model-value", "options"]),
5052
5047
  l(B, {
5053
5048
  "model-value": {
@@ -5055,7 +5050,7 @@ const Zn = [
5055
5050
  account: e.value.platform.mappings.journalType
5056
5051
  },
5057
5052
  options: h("journalType"),
5058
- "onUpdate:modelValue": s[29] || (s[29] = (C) => b({ key: "journalType", value: C.account }))
5053
+ "onUpdate:modelValue": s[29] || (s[29] = (C) => x({ key: "journalType", value: C.account }))
5059
5054
  }, null, 8, ["model-value", "options"]),
5060
5055
  l(B, {
5061
5056
  "model-value": {
@@ -5063,7 +5058,7 @@ const Zn = [
5063
5058
  account: e.value.platform.mappings.currencyRate
5064
5059
  },
5065
5060
  options: h("currencyRate"),
5066
- "onUpdate:modelValue": s[30] || (s[30] = (C) => b({ key: "currencyRate", value: C.account }))
5061
+ "onUpdate:modelValue": s[30] || (s[30] = (C) => x({ key: "currencyRate", value: C.account }))
5067
5062
  }, null, 8, ["model-value", "options"])
5068
5063
  ]),
5069
5064
  l(X, {
@@ -5105,7 +5100,7 @@ const Zn = [
5105
5100
  });
5106
5101
  function Bi(f) {
5107
5102
  return f.reduce((a, e) => {
5108
- var F, y, _, w, S, D, c, p, m, u, b, h, i, o;
5103
+ var F, y, _, w, S, D, c, p, m, u, x, h, i, o;
5109
5104
  const { invoice: r, payments: v } = e, A = a.length;
5110
5105
  a[A] = {
5111
5106
  docNo: r.master.docNo,
@@ -5122,7 +5117,7 @@ function Bi(f) {
5122
5117
  docType: (c = v[0]) == null ? void 0 : c.master.docType,
5123
5118
  paymentMethod: (m = (p = v[0]) == null ? void 0 : p.paymentDetails[0]) == null ? void 0 : m.paymentMethod,
5124
5119
  amount: ((u = v[0]) == null ? void 0 : u.details[0].amount) || 0,
5125
- currencyCode: (b = v[0]) == null ? void 0 : b.master.currencyCode,
5120
+ currencyCode: (x = v[0]) == null ? void 0 : x.master.currencyCode,
5126
5121
  journalType: (h = v[0]) == null ? void 0 : h.master.journalType
5127
5122
  };
5128
5123
  const V = Math.max(r.details.length, (v == null ? void 0 : v.length) || 0);
@@ -5286,8 +5281,8 @@ const Yi = [
5286
5281
  }
5287
5282
  }
5288
5283
  return (p, m) => {
5289
- const u = T("FmButton"), b = T("FmCircularProgress"), h = T("FmTable");
5290
- return x(), I("div", qi, [
5284
+ const u = T("FmButton"), x = T("FmCircularProgress"), h = T("FmTable");
5285
+ return b(), I("div", qi, [
5291
5286
  t("div", zi, [
5292
5287
  l(Oe, {
5293
5288
  "date-range": d(A),
@@ -5295,7 +5290,7 @@ const Yi = [
5295
5290
  compare: !1
5296
5291
  }, null, 8, ["date-range"]),
5297
5292
  t("div", Hi, [
5298
- S.value ? (x(), j(u, {
5293
+ S.value ? (b(), j(u, {
5299
5294
  key: 0,
5300
5295
  loading: r.value,
5301
5296
  variant: "primary",
@@ -5310,10 +5305,10 @@ const Yi = [
5310
5305
  }, null, 8, ["loading", "label"])
5311
5306
  ])
5312
5307
  ]),
5313
- r.value ? (x(), I("div", Qi, [
5314
- l(b, { size: "xl" }),
5308
+ r.value ? (b(), I("div", Qi, [
5309
+ l(x, { size: "xl" }),
5315
5310
  t("span", Gi, k(d(a)("report.common.isLoading")), 1)
5316
- ])) : (x(), j(h, {
5311
+ ])) : (b(), j(h, {
5317
5312
  key: 1,
5318
5313
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
5319
5314
  "row-data": _.value,
@@ -5368,10 +5363,10 @@ const Yi = [
5368
5363
  valueCompanyName: p.CompanyName
5369
5364
  })), S = async (c, p, m, u) => {
5370
5365
  try {
5371
- const b = await c(e.value._id);
5372
- m.value.data = p(b);
5373
- } catch (b) {
5374
- console.error(u, b), m.value.isError = !0;
5366
+ const x = await c(e.value._id);
5367
+ m.value.data = p(x);
5368
+ } catch (x) {
5369
+ console.error(u, x), m.value.isError = !0;
5375
5370
  } finally {
5376
5371
  m.value.isLoaded = !0;
5377
5372
  }
@@ -5391,11 +5386,11 @@ const Yi = [
5391
5386
  return Ge(() => {
5392
5387
  e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? D() : (F.value.isLoaded = !0, y.value.isLoaded = !0, F.value.isError = !0, y.value.isError = !0);
5393
5388
  }), (c, p) => {
5394
- var b, h, i;
5389
+ var x, h, i;
5395
5390
  const m = T("FmPageHead"), u = T("FmTabs");
5396
- return x(), I("div", Wi, [
5391
+ return b(), I("div", Wi, [
5397
5392
  l(m, {
5398
- title: ((b = e.value) == null ? void 0 : b.name) || "Autocount Cloud",
5393
+ title: ((x = e.value) == null ? void 0 : x.name) || "Autocount Cloud",
5399
5394
  "back-button": !0,
5400
5395
  style: { paddingLeft: "0px", paddingRight: "0px" },
5401
5396
  "onClick:back": d(A).back
@@ -5411,7 +5406,7 @@ const Yi = [
5411
5406
  items: v
5412
5407
  }, null, 8, ["model-value"]),
5413
5408
  t("div", Ji, [
5414
- (x(), j(De((h = V.value) == null ? void 0 : h.component), Qe({
5409
+ (b(), j(De((h = V.value) == null ? void 0 : h.component), Qe({
5415
5410
  modelValue: e.value,
5416
5411
  "onUpdate:modelValue": p[1] || (p[1] = (o) => e.value = o)
5417
5412
  }, (i = V.value) == null ? void 0 : i.props), null, 16, ["modelValue"]))
@@ -5440,8 +5435,8 @@ const Yi = [
5440
5435
  }) && await V(async () => {
5441
5436
  try {
5442
5437
  await Ue(e.value._id), await v.getSettings(), A.back();
5443
- } catch (b) {
5444
- r.open({ type: "error", message: b.message });
5438
+ } catch (x) {
5439
+ r.open({ type: "error", message: x.message });
5445
5440
  }
5446
5441
  });
5447
5442
  }
@@ -5454,17 +5449,17 @@ const Yi = [
5454
5449
  }
5455
5450
  });
5456
5451
  }
5457
- function D(u, b, h) {
5452
+ function D(u, x, h) {
5458
5453
  var o, s;
5459
5454
  if (!((o = e.value.platform) != null && o.mappings)) return;
5460
5455
  h || (u === "taxes" ? h = "invoice" : u === "suppliers" ? h = "inventory" : h = "invoice");
5461
5456
  const i = (s = e.value.platform.mappings[h]) == null ? void 0 : s[u];
5462
- i && Array.isArray(i) && (e.value.platform.mappings[h][u] = i.filter((n, K) => K !== b));
5457
+ i && Array.isArray(i) && (e.value.platform.mappings[h][u] = i.filter((n, K) => K !== x));
5463
5458
  }
5464
- function c(u, b) {
5459
+ function c(u, x) {
5465
5460
  var h;
5466
- (h = e.value.platform.mappings) != null && h[u] && (e.value.platform.mappings[u][b] = [
5467
- ...e.value.platform.mappings[u][b],
5461
+ (h = e.value.platform.mappings) != null && h[u] && (e.value.platform.mappings[u][x] = [
5462
+ ...e.value.platform.mappings[u][x],
5468
5463
  {
5469
5464
  key: "",
5470
5465
  account: ""
@@ -5488,13 +5483,13 @@ const Yi = [
5488
5483
  }
5489
5484
  return Fe(async () => {
5490
5485
  await v.getSettings();
5491
- }), (u, b) => {
5486
+ }), (u, x) => {
5492
5487
  var K, N, M, Y, E, G, W, ae, le, ne, se, ie, re, de, me, pe, ce, ue, fe;
5493
5488
  const h = T("FmIcon"), i = T("FmButton"), o = T("FmMenuDivider"), s = T("FmTextField"), n = T("FmSelect");
5494
- return (N = (K = e.value) == null ? void 0 : K.platform) != null && N.mappings ? (x(), I("div", er, [
5489
+ return (N = (K = e.value) == null ? void 0 : K.platform) != null && N.mappings ? (b(), I("div", er, [
5495
5490
  t("div", tr, [
5496
5491
  t("div", or, [
5497
- b[17] || (b[17] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
5492
+ x[17] || (x[17] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
5498
5493
  t("div", ar, [
5499
5494
  t("div", lr, [
5500
5495
  l(h, {
@@ -5528,7 +5523,7 @@ const Yi = [
5528
5523
  t("div", cr, [
5529
5524
  l(s, {
5530
5525
  modelValue: e.value.name,
5531
- "onUpdate:modelValue": b[0] || (b[0] = (U) => e.value.name = U)
5526
+ "onUpdate:modelValue": x[0] || (x[0] = (U) => e.value.name = U)
5532
5527
  }, null, 8, ["modelValue"])
5533
5528
  ])
5534
5529
  ]),
@@ -5536,7 +5531,7 @@ const Yi = [
5536
5531
  t("div", fr, k(d(a)("report.integration.location")), 1),
5537
5532
  l(n, {
5538
5533
  modelValue: e.value.platform.locationIds,
5539
- "onUpdate:modelValue": b[1] || (b[1] = (U) => e.value.platform.locationIds = U),
5534
+ "onUpdate:modelValue": x[1] || (x[1] = (U) => e.value.platform.locationIds = U),
5540
5535
  multiselect: !0,
5541
5536
  items: _.value,
5542
5537
  placeholder: "Select location",
@@ -5545,12 +5540,12 @@ const Yi = [
5545
5540
  }, null, 8, ["modelValue", "items", "rules"])
5546
5541
  ]),
5547
5542
  l(o, { style: { margin: 0 } }),
5548
- b[18] || (b[18] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice", -1)),
5543
+ x[18] || (x[18] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice", -1)),
5549
5544
  t("div", vr, [
5550
5545
  t("div", gr, k(d(a)("report.integration.grouping.title")), 1),
5551
5546
  l(n, {
5552
5547
  modelValue: e.value.platform.grouping,
5553
- "onUpdate:modelValue": b[2] || (b[2] = (U) => e.value.platform.grouping = U),
5548
+ "onUpdate:modelValue": x[2] || (x[2] = (U) => e.value.platform.grouping = U),
5554
5549
  multiselect: !1,
5555
5550
  items: p,
5556
5551
  placeholder: "Select grouping",
@@ -5571,7 +5566,7 @@ const Yi = [
5571
5566
  code: { placeholder: "Code", editable: !0 },
5572
5567
  name: { placeholder: "Name", editable: !0 }
5573
5568
  },
5574
- "onUpdate:modelValue": b[3] || (b[3] = (U) => {
5569
+ "onUpdate:modelValue": x[3] || (x[3] = (U) => {
5575
5570
  var R, g, P, C;
5576
5571
  (C = (P = (g = (R = e.value) == null ? void 0 : R.platform) == null ? void 0 : g.mappings) == null ? void 0 : P.invoice) != null && C.debtor && (e.value.platform.mappings.invoice.debtor.name = U.name, e.value.platform.mappings.invoice.debtor.code = U.code);
5577
5572
  })
@@ -5588,12 +5583,12 @@ const Yi = [
5588
5583
  account: { placeholder: "Account code", editable: !0 },
5589
5584
  code: { placeholder: "Item code", editable: !0 }
5590
5585
  },
5591
- "onUpdate:modelValue": b[4] || (b[4] = (U) => {
5586
+ "onUpdate:modelValue": x[4] || (x[4] = (U) => {
5592
5587
  var R, g, P, C;
5593
5588
  (C = (P = (g = (R = e.value) == null ? void 0 : R.platform) == null ? void 0 : g.mappings) == null ? void 0 : P.invoice) != null && C.rounding && (e.value.platform.mappings.invoice.rounding.account = U.account, e.value.platform.mappings.invoice.rounding.code = U.code);
5594
5589
  })
5595
5590
  }, null, 8, ["model-value"]),
5596
- (x(!0), I(he, null, Ve((W = (G = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : G.mappings) == null ? void 0 : W.invoice.charges, (U, R) => (x(), j(B, {
5591
+ (b(!0), I(he, null, Ve((W = (G = (E = e.value) == null ? void 0 : E.platform) == null ? void 0 : G.mappings) == null ? void 0 : W.invoice.charges, (U, R) => (b(), j(B, {
5597
5592
  key: `charge-${R}`,
5598
5593
  modelValue: e.value.platform.mappings.invoice.charges[R],
5599
5594
  "onUpdate:modelValue": (g) => e.value.platform.mappings.invoice.charges[R] = g,
@@ -5607,12 +5602,12 @@ const Yi = [
5607
5602
  ]),
5608
5603
  l(o, { style: { margin: 0 } }),
5609
5604
  t("div", br, [
5610
- b[19] || (b[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice Items", -1)),
5605
+ x[19] || (x[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice Items", -1)),
5611
5606
  l(i, {
5612
5607
  variant: "secondary",
5613
5608
  "prepend-icon": "add",
5614
5609
  label: "Add items",
5615
- onClick: b[5] || (b[5] = () => c("invoice", "items"))
5610
+ onClick: x[5] || (x[5] = () => c("invoice", "items"))
5616
5611
  })
5617
5612
  ]),
5618
5613
  l(X, {
@@ -5626,7 +5621,7 @@ const Yi = [
5626
5621
  account: { placeholder: "Account code", editable: !0 },
5627
5622
  uom: { placeholder: "UOM", editable: !0 }
5628
5623
  },
5629
- onRemove: b[6] || (b[6] = (U, R) => {
5624
+ onRemove: x[6] || (x[6] = (U, R) => {
5630
5625
  var g, P, C, Q;
5631
5626
  if (((Q = (C = (P = (g = e.value) == null ? void 0 : g.platform) == null ? void 0 : P.mappings) == null ? void 0 : C.invoice) == null ? void 0 : Q.items[R].key) === "DEFAULT") {
5632
5627
  d(r).open({
@@ -5637,7 +5632,7 @@ const Yi = [
5637
5632
  }
5638
5633
  D("items", R);
5639
5634
  }),
5640
- "onUpdate:rows": b[7] || (b[7] = (U) => {
5635
+ "onUpdate:rows": x[7] || (x[7] = (U) => {
5641
5636
  var R, g;
5642
5637
  (g = (R = e.value) == null ? void 0 : R.platform) != null && g.mappings && (e.value.platform.mappings.invoice.items = U);
5643
5638
  })
@@ -5649,7 +5644,7 @@ const Yi = [
5649
5644
  variant: "secondary",
5650
5645
  "prepend-icon": "add",
5651
5646
  label: "Add taxes",
5652
- onClick: b[8] || (b[8] = () => c("invoice", "taxes"))
5647
+ onClick: x[8] || (x[8] = () => c("invoice", "taxes"))
5653
5648
  })
5654
5649
  ]),
5655
5650
  l(X, {
@@ -5662,22 +5657,22 @@ const Yi = [
5662
5657
  key: { placeholder: "Key", editable: !0 },
5663
5658
  code: { placeholder: "Account code", editable: !0 }
5664
5659
  },
5665
- onRemove: b[9] || (b[9] = (U, R) => {
5660
+ onRemove: x[9] || (x[9] = (U, R) => {
5666
5661
  D("taxes", R, "invoice");
5667
5662
  }),
5668
- "onUpdate:rows": b[10] || (b[10] = (U) => {
5663
+ "onUpdate:rows": x[10] || (x[10] = (U) => {
5669
5664
  var R, g;
5670
5665
  (g = (R = e.value) == null ? void 0 : R.platform) != null && g.mappings && (e.value.platform.mappings.invoice.taxes = U);
5671
5666
  })
5672
5667
  }, null, 8, ["rows"]),
5673
5668
  l(o, { style: { margin: 0 } }),
5674
5669
  t("div", hr, [
5675
- b[20] || (b[20] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
5670
+ x[20] || (x[20] = t("div", { class: "fm-typo-en-title-sm-800" }, "Inventory Items", -1)),
5676
5671
  l(i, {
5677
5672
  variant: "secondary",
5678
5673
  "prepend-icon": "add",
5679
5674
  label: "Add items",
5680
- onClick: b[11] || (b[11] = () => c("inventory", "items"))
5675
+ onClick: x[11] || (x[11] = () => c("inventory", "items"))
5681
5676
  })
5682
5677
  ]),
5683
5678
  l(X, {
@@ -5691,7 +5686,7 @@ const Yi = [
5691
5686
  account: { placeholder: "Account code", editable: !0 },
5692
5687
  uom: { placeholder: "UOM", editable: !0 }
5693
5688
  },
5694
- onRemove: b[12] || (b[12] = (U, R) => {
5689
+ onRemove: x[12] || (x[12] = (U, R) => {
5695
5690
  var g, P, C, Q;
5696
5691
  if (((Q = (C = (P = (g = e.value) == null ? void 0 : g.platform) == null ? void 0 : P.mappings) == null ? void 0 : C.inventory) == null ? void 0 : Q.items[R].key) === "DEFAULT") {
5697
5692
  d(r).open({
@@ -5702,19 +5697,19 @@ const Yi = [
5702
5697
  }
5703
5698
  D("items", R, "inventory");
5704
5699
  }),
5705
- "onUpdate:rows": b[13] || (b[13] = (U) => {
5700
+ "onUpdate:rows": x[13] || (x[13] = (U) => {
5706
5701
  var R, g;
5707
5702
  (g = (R = e.value) == null ? void 0 : R.platform) != null && g.mappings && (e.value.platform.mappings.inventory.items = U);
5708
5703
  })
5709
5704
  }, null, 8, ["rows"]),
5710
5705
  l(o, { style: { margin: 0 } }),
5711
5706
  t("div", kr, [
5712
- b[21] || (b[21] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
5707
+ x[21] || (x[21] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
5713
5708
  l(i, {
5714
5709
  variant: "secondary",
5715
5710
  "prepend-icon": "add",
5716
5711
  label: "Add suppliers",
5717
- onClick: b[14] || (b[14] = () => c("inventory", "suppliers"))
5712
+ onClick: x[14] || (x[14] = () => c("inventory", "suppliers"))
5718
5713
  })
5719
5714
  ]),
5720
5715
  l(X, {
@@ -5728,10 +5723,10 @@ const Yi = [
5728
5723
  code: { placeholder: "Code", editable: !0 },
5729
5724
  name: { placeholder: "Name", editable: !0 }
5730
5725
  },
5731
- onRemove: b[15] || (b[15] = (U, R) => {
5726
+ onRemove: x[15] || (x[15] = (U, R) => {
5732
5727
  D("suppliers", R, "inventory");
5733
5728
  }),
5734
- "onUpdate:rows": b[16] || (b[16] = (U) => {
5729
+ "onUpdate:rows": x[16] || (x[16] = (U) => {
5735
5730
  var R, g;
5736
5731
  (g = (R = e.value) == null ? void 0 : R.platform) != null && g.mappings && (e.value.platform.mappings.inventory.suppliers = U);
5737
5732
  })
@@ -6119,7 +6114,7 @@ const Yi = [
6119
6114
  immediate: !0
6120
6115
  }
6121
6116
  );
6122
- async function b() {
6117
+ async function x() {
6123
6118
  try {
6124
6119
  c.value._id ? (p.value = !0, await qe(c.value._id, [i.value])) : m.open({ message: "Invalid accounting setting", type: "error" });
6125
6120
  } catch (o) {
@@ -6157,7 +6152,7 @@ const Yi = [
6157
6152
  ], i = H(h[0].value);
6158
6153
  return (o, s) => {
6159
6154
  const n = T("FmButton"), K = T("FmCircularProgress"), N = T("FmTabs"), M = T("FmTable");
6160
- return x(), I("div", $r, [
6155
+ return b(), I("div", $r, [
6161
6156
  t("div", Sr, [
6162
6157
  l(Oe, {
6163
6158
  "date-range": d(u),
@@ -6168,41 +6163,41 @@ const Yi = [
6168
6163
  loading: p.value,
6169
6164
  variant: "primary",
6170
6165
  label: d(a)("report.common.download"),
6171
- onClick: b
6166
+ onClick: x
6172
6167
  }, null, 8, ["loading", "label"])
6173
6168
  ]),
6174
- p.value ? (x(), I("div", Vr, [
6169
+ p.value ? (b(), I("div", Vr, [
6175
6170
  l(K, { size: "xl" }),
6176
6171
  t("span", Ar, k(d(a)("report.common.isLoading")), 1)
6177
- ])) : (x(), I("div", Dr, [
6172
+ ])) : (b(), I("div", Dr, [
6178
6173
  l(N, {
6179
6174
  "model-value": i.value,
6180
6175
  "onUpdate:modelValue": s[1] || (s[1] = (Y) => i.value = Y),
6181
6176
  items: h
6182
6177
  }, null, 8, ["model-value"]),
6183
- i.value === "INVOICE" ? (x(), j(M, {
6178
+ i.value === "INVOICE" ? (b(), j(M, {
6184
6179
  key: 0,
6185
6180
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
6186
6181
  "row-data": r.value,
6187
6182
  "column-defs": _
6188
6183
  }, null, 8, ["row-data"])) : O("", !0),
6189
- i.value === "CREDIT_NOTE" ? (x(), j(M, {
6184
+ i.value === "CREDIT_NOTE" ? (b(), j(M, {
6190
6185
  key: 1,
6191
6186
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
6192
6187
  "row-data": A.value,
6193
6188
  "column-defs": w
6194
- }, null, 8, ["row-data"])) : i.value === "DELIVERY_ORDER" ? (x(), j(M, {
6189
+ }, null, 8, ["row-data"])) : i.value === "DELIVERY_ORDER" ? (b(), j(M, {
6195
6190
  key: 2,
6196
6191
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
6197
6192
  "row-data": F.value,
6198
6193
  "column-defs": D
6199
- }, null, 8, ["row-data"])) : i.value === "PURCHASE_ORDER" ? (x(), j(M, {
6194
+ }, null, 8, ["row-data"])) : i.value === "PURCHASE_ORDER" ? (b(), j(M, {
6200
6195
  key: 3,
6201
6196
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
6202
6197
  "row-data": V.value,
6203
6198
  "column-defs": S
6204
6199
  }, null, 8, ["row-data"])) : O("", !0),
6205
- i.value === "RAW_INVOICE" ? (x(), j(M, {
6200
+ i.value === "RAW_INVOICE" ? (b(), j(M, {
6206
6201
  key: 4,
6207
6202
  class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
6208
6203
  "row-data": v.value,
@@ -6244,7 +6239,7 @@ const Yi = [
6244
6239
  return (F, y) => {
6245
6240
  var S;
6246
6241
  const _ = T("FmPageHead"), w = T("FmTabs");
6247
- return x(), I("div", Tr, [
6242
+ return b(), I("div", Tr, [
6248
6243
  l(_, {
6249
6244
  title: ((S = e.value) == null ? void 0 : S.name) || "Synergy",
6250
6245
  "back-button": !0,
@@ -6262,7 +6257,7 @@ const Yi = [
6262
6257
  items: v
6263
6258
  }, null, 8, ["model-value"]),
6264
6259
  t("div", Fr, [
6265
- (x(), j(De(V.value), {
6260
+ (b(), j(De(V.value), {
6266
6261
  modelValue: e.value,
6267
6262
  "onUpdate:modelValue": y[1] || (y[1] = (D) => e.value = D)
6268
6263
  }, null, 8, ["modelValue"]))
@@ -6307,8 +6302,8 @@ const Yi = [
6307
6302
  return null;
6308
6303
  }
6309
6304
  });
6310
- return (V, F) => (x(), I("div", Ur, [
6311
- (x(), j(De(A.value), {
6305
+ return (V, F) => (b(), I("div", Ur, [
6306
+ (b(), j(De(A.value), {
6312
6307
  modelValue: v.value,
6313
6308
  "onUpdate:modelValue": F[0] || (F[0] = (y) => v.value = y)
6314
6309
  }, null, 8, ["modelValue"]))