@feedmepos/mf-report 5.27.21-beta.0 → 5.27.22-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BfvMK58-.js → App-Mje6_Q-F.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CM7anaZD.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CQXXTi0W.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DRU5tKto.js → Default.vue_vue_type_script_setup_true_lang-BSeyfcdi.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DNiDblBq.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CA_UU4sD.js} +4 -4
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CJrpvwe9.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DmE6zxHn.js} +1175 -1166
- package/dist/{InsightView-CBJhBe45.js → InsightView-B5xcxtrP.js} +4 -4
- package/dist/{Integration-ir8fTn8a.js → Integration-BfT2sS3V.js} +153 -153
- package/dist/{Integrations-Cs_5Ux3W.js → Integrations-D2JZmEQu.js} +2 -2
- package/dist/{Layout-ftrqvloL.js → Layout-Ck227ev8.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DinBX9X0.js → MenuTab.vue_vue_type_script_setup_true_lang-DW0M4u0D.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CZF_J9f6.js → NavigationTab.vue_vue_type_script_setup_true_lang-C1o0Lg9F.js} +3 -3
- package/dist/{OverviewView-Cr98Ilsf.js → OverviewView-By9v-2i6.js} +4 -4
- package/dist/{Report-aRsPHrYs.js → Report-B8ddSD9U.js} +3 -3
- package/dist/{ReportEditor-DLa9VEfS.js → ReportEditor-Bw50RWhC.js} +6 -6
- package/dist/{ReportView-CwnB-QVX.js → ReportView-0IKxaVIw.js} +6 -6
- package/dist/{Setting-DxLnzMFt.js → Setting-BZaA1XOq.js} +3 -3
- package/dist/{Template-B10zPeH5.js → Template-DRJIyBHf.js} +3 -3
- package/dist/{TileEditor-MiFxLJ9X.js → TileEditor-DD6Bxae1.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DcACS5Q7.js → TileGrid.vue_vue_type_script_setup_true_lang-CX2xVLZL.js} +1 -1
- package/dist/{TransitionFade-Dy4MYTbA.js → TransitionFade-cz1gcmag.js} +4 -4
- package/dist/{app-CprMhoBR.js → app-CJdSouUt.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-B0DpbBIi.js → formatChartData.worker-CIxvSpzi.js} +9 -9
- package/dist/assets/{formatChartData.worker-B8aT479D.js → processTableData.worker-CVR0va0b.js} +9 -9
- package/dist/{useRestaurantPermission-DIMzIKKM.js → useRestaurantPermission-CNx17G4m.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as me, mergeModels as _e, useModel as ve, computed as Y, resolveComponent as V, createElementBlock as P, openBlock as w, createElementVNode as t, createCommentVNode as O, normalizeClass as tt, Fragment as Te, renderList as Ze, createBlock as
|
|
1
|
+
import { defineComponent as me, mergeModels as _e, useModel as ve, computed as Y, resolveComponent as V, createElementBlock as P, openBlock as w, createElementVNode as t, createCommentVNode as O, normalizeClass as tt, Fragment as Te, renderList as Ze, createBlock as z, normalizeStyle as ot, createVNode as l, withCtx as $e, renderSlot as vt, toDisplayString as k, unref as s, h as _, createTextVNode as yt, ref as oe, onUnmounted as Ee, watch as Fe, isRef as Pe, resolveDynamicComponent as je, mergeProps as lt, withKeys as ct, withModifiers as xt, nextTick as bt, onMounted as it } from "vue";
|
|
2
2
|
import { useRouter as Se, useRoute as wt } from "vue-router";
|
|
3
|
-
import { A as Ce, y as at, d as Ne, z as ht, e as Me, a as Ae, B as be, E as _t, l as Ct, v as de, x as Oe, G as Be, H as Ue, J as Ye, K as nt, L as kt, M as St, N as $t, O as st, b as dt, P as At, Q as Dt, m as Vt, I as Re, R as It, S as Ft, T as Kt } from "./app-
|
|
3
|
+
import { A as Ce, y as at, d as Ne, z as ht, e as Me, a as Ae, B as be, E as _t, l as Ct, v as de, x as Oe, G as Be, H as Ue, J as Ye, K as nt, L as kt, M as St, N as $t, O as st, b as dt, P as At, Q as Dt, m as Vt, I as Re, R as It, S as Ft, T as Kt } from "./app-CJdSouUt.js";
|
|
4
4
|
import { u as ye, a as qe, _ as Nt } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as ze } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as De } from "@feedmepos/ui-library";
|
|
7
|
-
import { s as ft, _ as
|
|
8
|
-
import { u as Le, h as ke } from "./useRestaurantPermission-
|
|
7
|
+
import { s as ft, _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CQXXTi0W.js";
|
|
8
|
+
import { u as Le, h as ke } from "./useRestaurantPermission-CNx17G4m.js";
|
|
9
9
|
import { storeToRefs as Ge } from "pinia";
|
|
10
10
|
const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Mt = { class: "w-[100%] overflow-hidden" }, Rt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Ut = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Pt = {
|
|
11
11
|
key: 0,
|
|
@@ -82,7 +82,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
82
82
|
rules: g.rules,
|
|
83
83
|
"onUpdate:modelValue": (u) => F(A.key, u)
|
|
84
84
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])
|
|
85
|
-
], 4)) : (w(),
|
|
85
|
+
], 4)) : (w(), z(h, {
|
|
86
86
|
key: 1,
|
|
87
87
|
content: (y = e.value[A.key]) == null ? void 0 : y.toString(),
|
|
88
88
|
style: ot(g.removable || !g.isTakeWholeRow ? { width: I.value } : { width: "100%" })
|
|
@@ -118,7 +118,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
118
118
|
}, Bt = {
|
|
119
119
|
key: 1,
|
|
120
120
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary min-w-[25%]"
|
|
121
|
-
}, Yt = { key: 0 }, qt = { class: "mt-6 mb-6 h-[calc(100vh-180px)] flex flex-col" },
|
|
121
|
+
}, Yt = { key: 0 }, qt = { class: "mt-6 mb-6 h-[calc(100vh-180px)] flex flex-col" }, zt = { class: "flex-grow overflow-auto" }, Ht = { class: "flex flex-col gap-16 w-[100%]" }, Gt = { class: "flex flex-row items-center w-[100%] justify-start" }, Qt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold w-[25%]" }, Wt = {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: "flex flex-row items-center w-[100%] justify-start"
|
|
124
124
|
}, Xt = { class: "flex items-center gap-2 w-[25%] shrink-0" }, Jt = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold" }, Zt = {
|
|
@@ -348,7 +348,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
348
348
|
}, {
|
|
349
349
|
"side-sheet-button": $e(() => [
|
|
350
350
|
g.label == "upload" || g.isAutoEmailMode ? (w(), P("div", Yt, [
|
|
351
|
-
m.value ? (w(),
|
|
351
|
+
m.value ? (w(), z(b, {
|
|
352
352
|
key: 0,
|
|
353
353
|
variant: "critical"
|
|
354
354
|
}, {
|
|
@@ -366,7 +366,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
366
366
|
]),
|
|
367
367
|
default: $e(() => [
|
|
368
368
|
t("div", qt, [
|
|
369
|
-
t("div",
|
|
369
|
+
t("div", zt, [
|
|
370
370
|
l(r, {
|
|
371
371
|
"row-data": p.errorLogs,
|
|
372
372
|
"column-defs": u,
|
|
@@ -379,7 +379,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
379
379
|
})
|
|
380
380
|
])
|
|
381
381
|
]),
|
|
382
|
-
t("div",
|
|
382
|
+
t("div", Ht, [
|
|
383
383
|
t("div", Gt, [
|
|
384
384
|
t("div", Qt, k(s(o)("report.common.enable")), 1),
|
|
385
385
|
l(D, {
|
|
@@ -465,7 +465,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
465
465
|
}, null, 8, ["model-value"])
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
|
-
h.value ? (w(),
|
|
468
|
+
h.value ? (w(), z(ae, {
|
|
469
469
|
key: 0,
|
|
470
470
|
"model-value": {
|
|
471
471
|
label: s(o)("report.integration.delayDay"),
|
|
@@ -581,7 +581,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
581
581
|
key: 0,
|
|
582
582
|
style: ot(g.removable ? { width: I.value } : { width: "100%" })
|
|
583
583
|
}, [
|
|
584
|
-
m.dropdownOptions ? (w(),
|
|
584
|
+
m.dropdownOptions ? (w(), z(U, {
|
|
585
585
|
key: 0,
|
|
586
586
|
searchable: "",
|
|
587
587
|
"search-target": "label",
|
|
@@ -590,7 +590,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
590
590
|
items: m.dropdownOptions,
|
|
591
591
|
"shift-menu": !0,
|
|
592
592
|
"onUpdate:modelValue": (C) => F(C, m.key)
|
|
593
|
-
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (w(),
|
|
593
|
+
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (w(), z(A, {
|
|
594
594
|
key: 1,
|
|
595
595
|
"model-value": N(m),
|
|
596
596
|
placeholder: m.placeholder,
|
|
@@ -598,7 +598,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
598
598
|
rules: g.rules,
|
|
599
599
|
"onUpdate:modelValue": (C) => F(C, m.key)
|
|
600
600
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"]))
|
|
601
|
-
], 4)) : (w(),
|
|
601
|
+
], 4)) : (w(), z(y, {
|
|
602
602
|
key: 1,
|
|
603
603
|
content: M(m),
|
|
604
604
|
style: ot(g.removable ? { width: I.value } : { width: "100%" })
|
|
@@ -661,7 +661,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
661
661
|
], 4))), 128)),
|
|
662
662
|
F.removable ? (w(), P("div", $o)) : O("", !0)
|
|
663
663
|
], 2),
|
|
664
|
-
!e.fieldsOptions || !Object.values(e.fieldsOptions).some((x) => x.dropdownOptions) ? (w(),
|
|
664
|
+
!e.fieldsOptions || !Object.values(e.fieldsOptions).some((x) => x.dropdownOptions) ? (w(), z(ae, {
|
|
665
665
|
key: `item-${f}`,
|
|
666
666
|
"model-value": e.rows[f],
|
|
667
667
|
options: e.fieldsOptions || {},
|
|
@@ -672,7 +672,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
672
672
|
h[f] = x, I("update:rows", h);
|
|
673
673
|
},
|
|
674
674
|
onRemove: () => I("remove", e.mappingType || "", f)
|
|
675
|
-
}, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (w(),
|
|
675
|
+
}, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (w(), z(gt, {
|
|
676
676
|
key: 1,
|
|
677
677
|
"model-value": e.rows[f],
|
|
678
678
|
options: e.fieldsOptions || {},
|
|
@@ -692,7 +692,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
692
692
|
}, Do = { class: "flex flex-col gap-[16px] pb-[24px]" }, Vo = { class: "flex flex-row justify-between items-center gap-2" }, Io = { class: "flex flex-row gap-2 items-center" }, Fo = { class: "relative group cursor-pointer" }, Ko = { 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" }, No = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, To = { class: "w-[90%] flex flex-col gap-24" }, Mo = { class: "flex flex-row items-center justify-between gap-2" }, Ro = { class: "w-[25%]" }, Uo = { class: "flex flex-col gap-[16px]" }, Po = { class: "flex flex-col max-w-[100%] justify-between" }, jo = { class: "flex-grow" }, Lo = { class: "flex flex-col max-w-[100%] justify-between" }, Eo = { class: "flex flex-col max-w-[100%] justify-between" }, Oo = { class: "w-[25%] font-semibold" }, Bo = {
|
|
693
693
|
key: 0,
|
|
694
694
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
695
|
-
}, Yo = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, qo = { class: "flex-grow" },
|
|
695
|
+
}, Yo = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, qo = { class: "flex-grow" }, zo = { class: "flex flex-col gap-[16px]" }, Ho = { class: "flex flex-col max-w-[100%] justify-between" }, Go = { class: "flex-grow" }, Qo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Wo = { class: "flex-grow" }, Xo = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Jo = { class: "flex-grow" }, Zo = { class: "flex flex-col gap-[16px]" }, ea = { class: "flex flex-row items-center justify-between gap-x-16" }, ta = {
|
|
696
696
|
key: 0,
|
|
697
697
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
698
698
|
}, oa = { class: "flex flex-row items-center justify-between gap-x-16" }, aa = {
|
|
@@ -729,7 +729,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
729
729
|
}),
|
|
730
730
|
emits: ["update:modelValue"],
|
|
731
731
|
setup(g) {
|
|
732
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
732
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = oe(!1), U = Y(
|
|
733
733
|
() => N.map((D) => ({ label: D.name, value: D.id }))
|
|
734
734
|
), A = Y(() => {
|
|
735
735
|
var D, d;
|
|
@@ -858,7 +858,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
858
858
|
return Ee(async () => {
|
|
859
859
|
await v.getSettings();
|
|
860
860
|
}), (D, d) => {
|
|
861
|
-
var ce, ge, T, S, B, W, X, ie, se, ue, we, ne, Z, le, K, L, ee, E, he, Ve, Qe, We, Xe, Je,
|
|
861
|
+
var ce, ge, T, S, B, W, X, ie, se, ue, we, ne, Z, le, K, L, ee, E, he, Ve, Qe, We, Xe, Je, H, te;
|
|
862
862
|
const R = V("FmIcon"), $ = V("FmButton"), c = V("FmMenuDivider"), j = V("FmCircularProgress"), G = V("FmSelect"), J = V("FmTextField"), pe = V("FmSwitch");
|
|
863
863
|
return (ge = (ce = e.value) == null ? void 0 : ce.platform) != null && ge.mappings ? (w(), P("div", Ao, [
|
|
864
864
|
t("div", Do, [
|
|
@@ -900,7 +900,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
900
900
|
onClick: u
|
|
901
901
|
}, null, 8, ["disabled", "label"])
|
|
902
902
|
]),
|
|
903
|
-
!g.tenantOptions.isLoaded && ((T = e.value.platform) != null && T.accessToken) ? (w(),
|
|
903
|
+
!g.tenantOptions.isLoaded && ((T = e.value.platform) != null && T.accessToken) ? (w(), z(j, {
|
|
904
904
|
key: 0,
|
|
905
905
|
size: "xl"
|
|
906
906
|
})) : O("", !0),
|
|
@@ -972,9 +972,9 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
972
972
|
"integration-id": e.value._id
|
|
973
973
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
974
974
|
l(c, { style: { margin: 0 } }),
|
|
975
|
-
t("div",
|
|
975
|
+
t("div", zo, [
|
|
976
976
|
d[28] || (d[28] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "Mapping", -1)),
|
|
977
|
-
t("div",
|
|
977
|
+
t("div", Ho, [
|
|
978
978
|
d[25] || (d[25] = t("div", { class: "w-[25%] font-semibold" }, "Contact", -1)),
|
|
979
979
|
t("div", Go, [
|
|
980
980
|
l(J, {
|
|
@@ -1022,11 +1022,11 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1022
1022
|
})
|
|
1023
1023
|
]),
|
|
1024
1024
|
g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), P("div", ta, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
|
|
1025
|
-
!g.taxOptions.isLoaded && ((X = e.value.platform) != null && X.accessToken) ? (w(),
|
|
1025
|
+
!g.taxOptions.isLoaded && ((X = e.value.platform) != null && X.accessToken) ? (w(), z(j, {
|
|
1026
1026
|
key: 1,
|
|
1027
1027
|
size: "xl"
|
|
1028
1028
|
})) : O("", !0),
|
|
1029
|
-
((ie = g.taxOptions.data) == null ? void 0 : ie.length) > 0 ? (w(),
|
|
1029
|
+
((ie = g.taxOptions.data) == null ? void 0 : ie.length) > 0 ? (w(), z(re, {
|
|
1030
1030
|
key: 2,
|
|
1031
1031
|
"header-items": ["FeedMe Key", "Tax"],
|
|
1032
1032
|
rows: ((we = (ue = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ue.mappings) == null ? void 0 : we.taxes) || [],
|
|
@@ -1058,11 +1058,11 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1058
1058
|
})
|
|
1059
1059
|
]),
|
|
1060
1060
|
g.taxOptions.isError || e.value.platform.accessToken == null ? (w(), P("div", aa, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
|
|
1061
|
-
!g.taxOptions.isLoaded && ((ne = e.value.platform) != null && ne.accessToken) ? (w(),
|
|
1061
|
+
!g.taxOptions.isLoaded && ((ne = e.value.platform) != null && ne.accessToken) ? (w(), z(j, {
|
|
1062
1062
|
key: 4,
|
|
1063
1063
|
size: "xl"
|
|
1064
1064
|
})) : O("", !0),
|
|
1065
|
-
((Z = g.accountCodeOptions.data) == null ? void 0 : Z.length) > 0 ? (w(),
|
|
1065
|
+
((Z = g.accountCodeOptions.data) == null ? void 0 : Z.length) > 0 ? (w(), z(re, {
|
|
1066
1066
|
key: 5,
|
|
1067
1067
|
"header-items": ["FeedMe Key", "Account Code"],
|
|
1068
1068
|
rows: ((L = (K = (le = e.value) == null ? void 0 : le.platform) == null ? void 0 : K.mappings) == null ? void 0 : L.taxRoundingAdjustments) || [],
|
|
@@ -1094,11 +1094,11 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1094
1094
|
})
|
|
1095
1095
|
]),
|
|
1096
1096
|
g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), P("div", na, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
|
|
1097
|
-
!g.accountCodeOptions.isLoaded && ((ee = e.value.platform) != null && ee.accessToken) ? (w(),
|
|
1097
|
+
!g.accountCodeOptions.isLoaded && ((ee = e.value.platform) != null && ee.accessToken) ? (w(), z(j, {
|
|
1098
1098
|
key: 7,
|
|
1099
1099
|
size: "xl"
|
|
1100
1100
|
})) : O("", !0),
|
|
1101
|
-
((E = g.accountCodeOptions.data) == null ? void 0 : E.length) > 0 ? (w(),
|
|
1101
|
+
((E = g.accountCodeOptions.data) == null ? void 0 : E.length) > 0 ? (w(), z(re, {
|
|
1102
1102
|
key: 8,
|
|
1103
1103
|
"header-items": ["FeedMe Key", "Account Code"],
|
|
1104
1104
|
rows: ((Qe = (Ve = (he = e.value) == null ? void 0 : he.platform) == null ? void 0 : Ve.mappings) == null ? void 0 : Qe.items) || [],
|
|
@@ -1130,14 +1130,14 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1130
1130
|
})
|
|
1131
1131
|
]),
|
|
1132
1132
|
g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), P("div", ra, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : O("", !0),
|
|
1133
|
-
!g.accountCodeOptions.isLoaded && ((We = e.value.platform) != null && We.accessToken) ? (w(),
|
|
1133
|
+
!g.accountCodeOptions.isLoaded && ((We = e.value.platform) != null && We.accessToken) ? (w(), z(j, {
|
|
1134
1134
|
key: 10,
|
|
1135
1135
|
size: "xl"
|
|
1136
1136
|
})) : O("", !0),
|
|
1137
|
-
((Xe = g.accountCodeOptions.data) == null ? void 0 : Xe.length) > 0 ? (w(),
|
|
1137
|
+
((Xe = g.accountCodeOptions.data) == null ? void 0 : Xe.length) > 0 ? (w(), z(re, {
|
|
1138
1138
|
key: 11,
|
|
1139
1139
|
"header-items": ["FeedMe Key", "Account Code"],
|
|
1140
|
-
rows: ((te = (
|
|
1140
|
+
rows: ((te = (H = (Je = e.value) == null ? void 0 : Je.platform) == null ? void 0 : H.mappings) == null ? void 0 : te.payments) || [],
|
|
1141
1141
|
"columns-per-row": 2,
|
|
1142
1142
|
removable: !0,
|
|
1143
1143
|
"mapping-type": "payments",
|
|
@@ -1309,7 +1309,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1309
1309
|
const U = V("FmButton"), A = V("FmCircularProgress"), y = V("FmTable");
|
|
1310
1310
|
return w(), P("div", da, [
|
|
1311
1311
|
t("div", pa, [
|
|
1312
|
-
l(
|
|
1312
|
+
l(He, {
|
|
1313
1313
|
"date-range": s(N),
|
|
1314
1314
|
"onUpdate:dateRange": h[0] || (h[0] = (u) => Pe(N) ? N.value = u : null),
|
|
1315
1315
|
compare: !1
|
|
@@ -1324,7 +1324,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1324
1324
|
F.value ? (w(), P("div", ua, [
|
|
1325
1325
|
l(A, { size: "xl" }),
|
|
1326
1326
|
t("span", ma, k(s(e)("report.common.isLoading")), 1)
|
|
1327
|
-
])) : p.value.length > 0 ? (w(),
|
|
1327
|
+
])) : p.value.length > 0 ? (w(), z(y, {
|
|
1328
1328
|
key: 1,
|
|
1329
1329
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
1330
1330
|
"row-data": p.value,
|
|
@@ -1445,7 +1445,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1445
1445
|
items: N
|
|
1446
1446
|
}, null, 8, ["model-value"]),
|
|
1447
1447
|
t("div", ga, [
|
|
1448
|
-
(w(),
|
|
1448
|
+
(w(), z(je((n = x.value) == null ? void 0 : n.component), lt({
|
|
1449
1449
|
modelValue: e.value,
|
|
1450
1450
|
"onUpdate:modelValue": u[2] || (u[2] = (r) => e.value = r)
|
|
1451
1451
|
}, (b = x.value) == null ? void 0 : b.props), null, 16, ["modelValue"]))
|
|
@@ -1529,7 +1529,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1529
1529
|
];
|
|
1530
1530
|
return (v, I) => {
|
|
1531
1531
|
const F = V("FmIcon"), M = V("FmTable"), N = V("FmSideSheet");
|
|
1532
|
-
return w(),
|
|
1532
|
+
return w(), z(N, {
|
|
1533
1533
|
header: s(o)("report.integration.refNumFormatInfo"),
|
|
1534
1534
|
"dismiss-away": "",
|
|
1535
1535
|
"max-width": 780
|
|
@@ -1564,7 +1564,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1564
1564
|
}), ba = {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
class: "flex flex-col h-full"
|
|
1567
|
-
}, wa = { class: "flex flex-col gap-16 pb-[24px]" }, ha = { class: "flex flex-row justify-between items-center gap-2" }, _a = { class: "fm-typo-en-title-sm-800" }, Ca = { class: "flex flex-row gap-2 items-center" }, ka = { class: "relative group cursor-pointer" }, Sa = { 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" }, $a = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Aa = { class: "w-[90%] flex flex-col gap-24" }, Da = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Va = { class: "flex flex-col justify-between" }, Ia = { class: "w-[25%] font-semibold" }, Fa = { class: "flex-grow" }, Ka = { class: "flex flex-col justify-between" }, Na = { class: "w-[25%] font-semibold" }, Ta = { class: "flex-grow" }, Ma = { class: "flex flex-col gap-16" }, Ra = { class: "fm-typo-en-title-sm-800" }, Ua = { class: "flex flex-col max-w-[100%]" }, Pa = { class: "w-[25%] font-semibold" }, ja = { class: "flex-grow" }, La = { class: "flex flex-col max-w-[100%]" }, Ea = { class: "w-[25%] font-semibold" }, Oa = { class: "flex flex-col max-w-[100%]" }, Ba = { class: "w-[25%] font-semibold" }, Ya = { class: "flex flex-col max-w-[100%]" }, qa = { class: "flex flex-col gap-16" },
|
|
1567
|
+
}, wa = { class: "flex flex-col gap-16 pb-[24px]" }, ha = { class: "flex flex-row justify-between items-center gap-2" }, _a = { class: "fm-typo-en-title-sm-800" }, Ca = { class: "flex flex-row gap-2 items-center" }, ka = { class: "relative group cursor-pointer" }, Sa = { 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" }, $a = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Aa = { class: "w-[90%] flex flex-col gap-24" }, Da = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Va = { class: "flex flex-col justify-between" }, Ia = { class: "w-[25%] font-semibold" }, Fa = { class: "flex-grow" }, Ka = { class: "flex flex-col justify-between" }, Na = { class: "w-[25%] font-semibold" }, Ta = { class: "flex-grow" }, Ma = { class: "flex flex-col gap-16" }, Ra = { class: "fm-typo-en-title-sm-800" }, Ua = { class: "flex flex-col max-w-[100%]" }, Pa = { class: "w-[25%] font-semibold" }, ja = { class: "flex-grow" }, La = { class: "flex flex-col max-w-[100%]" }, Ea = { class: "w-[25%] font-semibold" }, Oa = { class: "flex flex-col max-w-[100%]" }, Ba = { class: "w-[25%] font-semibold" }, Ya = { class: "flex flex-col max-w-[100%]" }, qa = { class: "flex flex-col gap-16" }, za = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ha = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ga = { class: "flex flex-row items-center gap-5" }, Qa = { class: "fm-typo-en-title-sm-800" }, Wa = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Xa = { class: "flex flex-row items-center justify-between gap-x-16" }, Ja = { class: "fm-typo-en-title-sm-800" }, Za = { class: "flex flex-row items-center justify-between gap-x-16" }, el = { class: "fm-typo-en-title-sm-800" }, tl = { class: "flex flex-row items-center justify-between gap-x-16" }, ol = { class: "fm-typo-en-title-sm-800" }, al = { class: "flex flex-row items-center justify-between gap-x-16" }, ll = { class: "fm-typo-en-title-sm-800" }, nl = /* @__PURE__ */ me({
|
|
1568
1568
|
__name: "Setting",
|
|
1569
1569
|
props: /* @__PURE__ */ _e({
|
|
1570
1570
|
errorLogs: {}
|
|
@@ -1574,7 +1574,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1574
1574
|
}),
|
|
1575
1575
|
emits: ["update:modelValue"],
|
|
1576
1576
|
setup(g) {
|
|
1577
|
-
const o = ve(g, "modelValue"), e = De(), p = Me(), v = Se(), { promptLoader: I } = qe(), { promptMessage: F } =
|
|
1577
|
+
const o = ve(g, "modelValue"), e = De(), p = Me(), v = Se(), { promptLoader: I } = qe(), { promptMessage: F } = ze(), { restaurants: M } = Ae(), N = Y(
|
|
1578
1578
|
() => M.map((r) => ({ label: r.name, value: r.id }))
|
|
1579
1579
|
), { t: f } = ye(), { rules: x, notifyUnauthorized: h } = Le();
|
|
1580
1580
|
async function U() {
|
|
@@ -1818,7 +1818,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1818
1818
|
])
|
|
1819
1819
|
]),
|
|
1820
1820
|
t("div", qa, [
|
|
1821
|
-
t("div",
|
|
1821
|
+
t("div", za, [
|
|
1822
1822
|
l(ae, {
|
|
1823
1823
|
"model-value": {
|
|
1824
1824
|
key: "Contact",
|
|
@@ -1850,7 +1850,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1850
1850
|
(E = (ee = (L = o.value) == null ? void 0 : L.platform) == null ? void 0 : ee.mappings) != null && E.rounding && (o.value.platform.mappings.rounding.account = K.account);
|
|
1851
1851
|
})
|
|
1852
1852
|
}, null, 8, ["model-value", "options"]),
|
|
1853
|
-
(w(!0), P(Te, null, Ze((ce = (pe = (J = o.value) == null ? void 0 : J.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.charges, (K, L) => (w(),
|
|
1853
|
+
(w(!0), P(Te, null, Ze((ce = (pe = (J = o.value) == null ? void 0 : J.platform) == null ? void 0 : pe.mappings) == null ? void 0 : ce.charges, (K, L) => (w(), z(ae, {
|
|
1854
1854
|
key: `charge-${L}`,
|
|
1855
1855
|
modelValue: o.value.platform.mappings.charges[L],
|
|
1856
1856
|
"onUpdate:modelValue": (ee) => o.value.platform.mappings.charges[L] = ee,
|
|
@@ -1868,7 +1868,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1868
1868
|
])
|
|
1869
1869
|
]),
|
|
1870
1870
|
l(R, { style: { margin: 0 } }),
|
|
1871
|
-
t("div",
|
|
1871
|
+
t("div", Ha, [
|
|
1872
1872
|
t("div", Ga, [
|
|
1873
1873
|
t("div", Qa, k(s(f)("report.integration.refNumFormat")), 1),
|
|
1874
1874
|
l(rt)
|
|
@@ -2208,7 +2208,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2208
2208
|
const A = V("FmButton"), y = V("FmCircularProgress"), u = V("FmTable");
|
|
2209
2209
|
return w(), P("div", sl, [
|
|
2210
2210
|
t("div", rl, [
|
|
2211
|
-
l(
|
|
2211
|
+
l(He, {
|
|
2212
2212
|
"date-range": s(f),
|
|
2213
2213
|
"onUpdate:dateRange": U[0] || (U[0] = (m) => Pe(f) ? f.value = m : null),
|
|
2214
2214
|
compare: !1
|
|
@@ -2223,7 +2223,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2223
2223
|
M.value ? (w(), P("div", il, [
|
|
2224
2224
|
l(y, { size: "xl" }),
|
|
2225
2225
|
t("span", dl, k(s(v)("report.integration.table.loading")), 1)
|
|
2226
|
-
])) : p.value.length > 0 ? (w(),
|
|
2226
|
+
])) : p.value.length > 0 ? (w(), z(u, {
|
|
2227
2227
|
key: 1,
|
|
2228
2228
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
2229
2229
|
"row-data": p.value,
|
|
@@ -2296,7 +2296,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2296
2296
|
items: F
|
|
2297
2297
|
}, null, 8, ["model-value"]),
|
|
2298
2298
|
t("div", ml, [
|
|
2299
|
-
(w(),
|
|
2299
|
+
(w(), z(je((A = N.value) == null ? void 0 : A.component), lt({
|
|
2300
2300
|
modelValue: v.value,
|
|
2301
2301
|
"onUpdate:modelValue": x[2] || (x[2] = (u) => v.value = u)
|
|
2302
2302
|
}, (y = N.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
|
|
@@ -2310,7 +2310,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2310
2310
|
}, gl = { class: "flex flex-col gap-16 pb-[24px]" }, vl = { class: "flex flex-row justify-between items-center gap-2" }, yl = { class: "flex flex-row gap-2 items-center" }, xl = { class: "relative group cursor-pointer" }, bl = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, wl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, hl = { class: "w-[90%] flex flex-col gap-24" }, _l = { class: "flex flex-col gap-16" }, Cl = { class: "fm-typo-en-title-sm-800" }, kl = { class: "flex flex-col max-w-[100%]" }, Sl = { class: "w-[25%] font-semibold" }, $l = { class: "flex-grow" }, Al = { class: "flex flex-col gap-24" }, Dl = { class: "flex flex-col max-w-[100%]" }, Vl = { class: "w-[25%] font-semibold" }, Il = { class: "flex flex-row items-start gap-1" }, Fl = { class: "fm-typo-en-title-sm-800 pb-3" }, Kl = { class: "flex flex-col max-w-[100%]" }, Nl = { class: "w-[25%] font-semibold" }, Tl = {
|
|
2311
2311
|
key: 0,
|
|
2312
2312
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
2313
|
-
}, Ml = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Rl = { class: "flex-grow" }, Ul = { class: "flex flex-col gap-16" }, Pl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, jl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ll = { class: "flex flex-row items-center gap-5" }, El = { class: "fm-typo-en-title-sm-800" }, Ol = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Bl = { class: "flex flex-row items-center justify-between gap-x-16" }, Yl = { class: "fm-typo-en-title-sm-800" }, ql = { class: "flex flex-row items-center justify-between gap-x-16" },
|
|
2313
|
+
}, Ml = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Rl = { class: "flex-grow" }, Ul = { class: "flex flex-col gap-16" }, Pl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, jl = { class: "flex flex-col gap-16 pt-3 pb-3" }, Ll = { class: "flex flex-row items-center gap-5" }, El = { class: "fm-typo-en-title-sm-800" }, Ol = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Bl = { class: "flex flex-row items-center justify-between gap-x-16" }, Yl = { class: "fm-typo-en-title-sm-800" }, ql = { class: "flex flex-row items-center justify-between gap-x-16" }, zl = { class: "fm-typo-en-title-sm-800" }, Hl = { class: "flex flex-row items-center justify-between gap-x-16" }, Gl = { class: "fm-typo-en-title-sm-800" }, Ql = { class: "flex flex-row items-center justify-between gap-x-16" }, Wl = { class: "fm-typo-en-title-sm-800" }, Xl = { class: "flex flex-row items-center justify-between gap-x-16" }, Jl = { class: "flex flex-col gap-4" }, Zl = { class: "fm-typo-en-title-sm-800" }, en = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, tn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, on = ["onKeydown"], an = {
|
|
2314
2314
|
key: 0,
|
|
2315
2315
|
class: "sr-only"
|
|
2316
2316
|
}, ln = { class: "flex flex-row items-center justify-between gap-x-16" }, nn = { class: "fm-typo-en-title-sm-800" }, sn = { class: "flex flex-col gap-16" }, rn = { class: "flex flex-row items-center justify-between gap-x-16" }, dn = { class: "flex flex-row items-center max-w-[100%] justify-between pl-4" }, pn = { class: "flex-grow" }, un = { class: "flex flex-row items-center justify-between gap-x-16" }, mn = { class: "fm-typo-en-title-sm-800" }, cn = "BILL_PRICE_ADJUSTMENT", fn = "ITEM_PRICE_ADJUSTMENT", gn = /* @__PURE__ */ me({
|
|
@@ -2323,7 +2323,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2323
2323
|
}),
|
|
2324
2324
|
emits: ["update:modelValue"],
|
|
2325
2325
|
setup(g) {
|
|
2326
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
2326
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
2327
2327
|
() => N.map((T) => ({ label: T.name, value: T.id }))
|
|
2328
2328
|
), U = oe(null), A = oe(!1);
|
|
2329
2329
|
let y = null;
|
|
@@ -2517,7 +2517,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2517
2517
|
return Ee(async () => {
|
|
2518
2518
|
y && clearTimeout(y), await v.getSettings();
|
|
2519
2519
|
}), (T, S) => {
|
|
2520
|
-
var we, ne, Z, le, K, L, ee, E, he, Ve, Qe, We, Xe, Je,
|
|
2520
|
+
var we, ne, Z, le, K, L, ee, E, he, Ve, Qe, We, Xe, Je, H, te, q, xe, Ie, pt, ut;
|
|
2521
2521
|
const B = V("FmIcon"), W = V("FmButton"), X = V("FmMenuDivider"), ie = V("FmTextField"), se = V("FmSelect"), ue = V("FmSwitch");
|
|
2522
2522
|
return (ne = (we = e.value) == null ? void 0 : we.platform) != null && ne.mappings ? (w(), P("div", fl, [
|
|
2523
2523
|
t("div", gl, [
|
|
@@ -2645,7 +2645,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2645
2645
|
(mt = (Ke = (fe = e.value) == null ? void 0 : fe.platform) == null ? void 0 : Ke.mappings) != null && mt.rounding && (e.value.platform.mappings.rounding.account = Q.account);
|
|
2646
2646
|
})
|
|
2647
2647
|
}, null, 8, ["model-value", "options"]),
|
|
2648
|
-
(w(!0), P(Te, null, Ze((K = (le = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : le.mappings) == null ? void 0 : K.charges, (Q, fe) => (w(),
|
|
2648
|
+
(w(!0), P(Te, null, Ze((K = (le = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : le.mappings) == null ? void 0 : K.charges, (Q, fe) => (w(), z(ae, {
|
|
2649
2649
|
key: `charge-${fe}`,
|
|
2650
2650
|
modelValue: e.value.platform.mappings.charges[fe],
|
|
2651
2651
|
"onUpdate:modelValue": (Ke) => e.value.platform.mappings.charges[fe] = Ke,
|
|
@@ -2735,7 +2735,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2735
2735
|
}, null, 8, ["rows"]),
|
|
2736
2736
|
l(X, { style: { margin: 0 } }),
|
|
2737
2737
|
t("div", ql, [
|
|
2738
|
-
t("div",
|
|
2738
|
+
t("div", zl, k(s(o)("report.integration.taxes")), 1),
|
|
2739
2739
|
l(W, {
|
|
2740
2740
|
variant: "secondary",
|
|
2741
2741
|
"prepend-icon": "add",
|
|
@@ -2760,7 +2760,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2760
2760
|
})
|
|
2761
2761
|
}, null, 8, ["rows"]),
|
|
2762
2762
|
l(X, { style: { margin: 0 } }),
|
|
2763
|
-
t("div",
|
|
2763
|
+
t("div", Hl, [
|
|
2764
2764
|
t("div", Gl, k(s(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
2765
2765
|
l(W, {
|
|
2766
2766
|
variant: "secondary",
|
|
@@ -2771,7 +2771,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2771
2771
|
]),
|
|
2772
2772
|
l(re, {
|
|
2773
2773
|
"header-items": ["FeedMe Key", "Account Code"],
|
|
2774
|
-
rows: ((
|
|
2774
|
+
rows: ((H = (Je = (Xe = e.value) == null ? void 0 : Xe.platform) == null ? void 0 : Je.mappings) == null ? void 0 : H.taxRoundingAdjustments) || [],
|
|
2775
2775
|
"columns-per-row": 2,
|
|
2776
2776
|
removable: !0,
|
|
2777
2777
|
"mapping-type": "taxRoundingAdjustments",
|
|
@@ -3277,7 +3277,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3277
3277
|
const i = V("FmButton"), n = V("FmCircularProgress"), b = V("FmTabs"), r = V("FmTable");
|
|
3278
3278
|
return w(), P("div", yn, [
|
|
3279
3279
|
t("div", xn, [
|
|
3280
|
-
l(
|
|
3280
|
+
l(He, {
|
|
3281
3281
|
"date-range": s(U),
|
|
3282
3282
|
"onUpdate:dateRange": C[0] || (C[0] = (a) => Pe(U) ? U.value = a : null),
|
|
3283
3283
|
compare: !1
|
|
@@ -3298,19 +3298,19 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3298
3298
|
"onUpdate:modelValue": C[1] || (C[1] = (a) => u.value = a),
|
|
3299
3299
|
items: y.value
|
|
3300
3300
|
}, null, 8, ["model-value", "items"]),
|
|
3301
|
-
u.value === "SALE" && I.value.length > 0 ? (w(),
|
|
3301
|
+
u.value === "SALE" && I.value.length > 0 ? (w(), z(r, {
|
|
3302
3302
|
key: 0,
|
|
3303
3303
|
class: "flex overflow-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
3304
3304
|
"row-data": I.value,
|
|
3305
3305
|
"column-defs": F
|
|
3306
3306
|
}, null, 8, ["row-data"])) : O("", !0),
|
|
3307
|
-
u.value === "PO" && v.value.purchaseOrders.length > 0 ? (w(),
|
|
3307
|
+
u.value === "PO" && v.value.purchaseOrders.length > 0 ? (w(), z(r, {
|
|
3308
3308
|
key: 1,
|
|
3309
3309
|
class: "flex overflow-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
3310
3310
|
"row-data": v.value.purchaseOrders,
|
|
3311
3311
|
"column-defs": M
|
|
3312
3312
|
}, null, 8, ["row-data"])) : O("", !0),
|
|
3313
|
-
u.value === "PI" && v.value.purchaseInvoices.length > 0 ? (w(),
|
|
3313
|
+
u.value === "PI" && v.value.purchaseInvoices.length > 0 ? (w(), z(r, {
|
|
3314
3314
|
key: 2,
|
|
3315
3315
|
class: "flex overflow-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
3316
3316
|
"row-data": v.value.purchaseInvoices,
|
|
@@ -3372,7 +3372,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3372
3372
|
items: I
|
|
3373
3373
|
}, null, 8, ["model-value"]),
|
|
3374
3374
|
t("div", kn, [
|
|
3375
|
-
(w(),
|
|
3375
|
+
(w(), z(je(M.value), {
|
|
3376
3376
|
modelValue: e.value,
|
|
3377
3377
|
"onUpdate:modelValue": f[2] || (f[2] = (A) => e.value = A),
|
|
3378
3378
|
"error-logs": p.errorLogs
|
|
@@ -3387,7 +3387,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3387
3387
|
}, An = { class: "flex flex-col gap-16 pb-[24px]" }, Dn = { class: "flex flex-row justify-between items-center gap-2" }, Vn = { class: "flex flex-row gap-2 items-center" }, In = { class: "relative group cursor-pointer" }, Fn = { 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" }, Kn = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Nn = { class: "w-[90%] flex flex-col gap-24" }, Tn = { class: "flex flex-col gap-16" }, Mn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "flex flex-col max-w-[100%]" }, Un = { class: "w-[25%] font-semibold" }, Pn = { class: "flex-grow" }, jn = { class: "flex flex-col max-w-[100%]" }, Ln = { class: "w-[25%] font-semibold" }, En = { class: "flex flex-col max-w-[100%]" }, On = { class: "w-[25%] font-semibold" }, Bn = {
|
|
3388
3388
|
key: 0,
|
|
3389
3389
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
3390
|
-
}, Yn = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, qn = { class: "flex-grow" },
|
|
3390
|
+
}, Yn = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, qn = { class: "flex-grow" }, zn = { class: "flex flex-col gap-16" }, Hn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Gn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Qn = { class: "flex flex-col gap-16 pt-3 pb-3" }, Wn = { class: "flex flex-row items-center gap-5" }, Xn = { class: "fm-typo-en-title-sm-800" }, Jn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Zn = { class: "flex flex-row items-center justify-between gap-x-16" }, es = { class: "fm-typo-en-title-sm-800" }, ts = { class: "flex flex-row items-center justify-between gap-x-16" }, os = { class: "fm-typo-en-title-sm-800" }, as = { class: "flex flex-row items-center justify-between gap-x-16" }, ls = { class: "fm-typo-en-title-sm-800" }, ns = { class: "flex flex-row items-center justify-between gap-x-16" }, ss = { class: "fm-typo-en-title-sm-800" }, rs = { class: "flex flex-row items-center justify-between gap-x-16" }, is = { class: "fm-typo-en-title-sm-800" }, ds = { class: "flex flex-row items-center justify-between gap-x-16" }, ps = { class: "flex flex-row items-center justify-between gap-x-16" }, us = /* @__PURE__ */ me({
|
|
3391
3391
|
__name: "Setting",
|
|
3392
3392
|
props: /* @__PURE__ */ _e({
|
|
3393
3393
|
errorLogs: {}
|
|
@@ -3397,7 +3397,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3397
3397
|
}),
|
|
3398
3398
|
emits: ["update:modelValue"],
|
|
3399
3399
|
setup(g) {
|
|
3400
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
3400
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
3401
3401
|
() => N.map((r) => ({ label: r.name, value: r.id }))
|
|
3402
3402
|
);
|
|
3403
3403
|
async function U() {
|
|
@@ -3563,7 +3563,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3563
3563
|
t("div", Pn, [
|
|
3564
3564
|
l($, {
|
|
3565
3565
|
modelValue: e.value.name,
|
|
3566
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
3566
|
+
"onUpdate:modelValue": a[0] || (a[0] = (H) => e.value.name = H)
|
|
3567
3567
|
}, null, 8, ["modelValue"])
|
|
3568
3568
|
])
|
|
3569
3569
|
]),
|
|
@@ -3571,19 +3571,19 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3571
3571
|
t("div", Ln, k(s(o)("report.integration.location")), 1),
|
|
3572
3572
|
l(c, {
|
|
3573
3573
|
modelValue: e.value.platform.locationIds,
|
|
3574
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
3574
|
+
"onUpdate:modelValue": a[1] || (a[1] = (H) => e.value.platform.locationIds = H),
|
|
3575
3575
|
multiselect: !0,
|
|
3576
3576
|
items: h.value,
|
|
3577
3577
|
placeholder: "Select location",
|
|
3578
3578
|
class: "flex-grow",
|
|
3579
|
-
rules: [(
|
|
3579
|
+
rules: [(H) => H.length !== 0 || "Please select at least 1 location"]
|
|
3580
3580
|
}, null, 8, ["modelValue", "items", "rules"])
|
|
3581
3581
|
]),
|
|
3582
3582
|
t("div", En, [
|
|
3583
3583
|
t("div", On, k(s(o)("report.integration.grouping.title")), 1),
|
|
3584
3584
|
l(c, {
|
|
3585
3585
|
modelValue: e.value.platform.grouping,
|
|
3586
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
3586
|
+
"onUpdate:modelValue": a[2] || (a[2] = (H) => e.value.platform.grouping = H),
|
|
3587
3587
|
multiselect: !1,
|
|
3588
3588
|
items: b.value,
|
|
3589
3589
|
placeholder: "Select grouping",
|
|
@@ -3599,19 +3599,19 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3599
3599
|
l(j, {
|
|
3600
3600
|
"model-value": e.value.platform.discountByGroupKey ?? !1,
|
|
3601
3601
|
style: { gap: 0 },
|
|
3602
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
3603
|
-
e.value.platform.discountByGroupKey =
|
|
3602
|
+
"onUpdate:modelValue": a[3] || (a[3] = (H) => {
|
|
3603
|
+
e.value.platform.discountByGroupKey = H;
|
|
3604
3604
|
})
|
|
3605
3605
|
}, null, 8, ["model-value"])
|
|
3606
3606
|
])
|
|
3607
3607
|
])) : O("", !0)
|
|
3608
3608
|
]),
|
|
3609
|
-
t("div",
|
|
3610
|
-
t("div",
|
|
3609
|
+
t("div", zn, [
|
|
3610
|
+
t("div", Hn, [
|
|
3611
3611
|
l(ae, {
|
|
3612
3612
|
"model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
|
|
3613
3613
|
options: C("Debtor"),
|
|
3614
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
3614
|
+
"onUpdate:modelValue": a[4] || (a[4] = (H) => m({ key: "debtor", value: H.account }))
|
|
3615
3615
|
}, null, 8, ["model-value", "options"]),
|
|
3616
3616
|
l(ae, {
|
|
3617
3617
|
"model-value": {
|
|
@@ -3619,7 +3619,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3619
3619
|
account: e.value.platform.mappings.projectHeader
|
|
3620
3620
|
},
|
|
3621
3621
|
options: C("Project header"),
|
|
3622
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
3622
|
+
"onUpdate:modelValue": a[5] || (a[5] = (H) => m({ key: "projectHeader", value: H.account }))
|
|
3623
3623
|
}, null, 8, ["model-value", "options"]),
|
|
3624
3624
|
l(ae, {
|
|
3625
3625
|
"model-value": {
|
|
@@ -3627,7 +3627,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3627
3627
|
account: e.value.platform.mappings.projectDetail
|
|
3628
3628
|
},
|
|
3629
3629
|
options: C("Project detail"),
|
|
3630
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
3630
|
+
"onUpdate:modelValue": a[6] || (a[6] = (H) => m({ key: "projectDetail", value: H.account }))
|
|
3631
3631
|
}, null, 8, ["model-value", "options"]),
|
|
3632
3632
|
l(ae, {
|
|
3633
3633
|
"model-value": {
|
|
@@ -3635,7 +3635,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3635
3635
|
account: e.value.platform.mappings.customAttribute
|
|
3636
3636
|
},
|
|
3637
3637
|
options: C("Custom attribute tag"),
|
|
3638
|
-
"onUpdate:modelValue": a[7] || (a[7] = (
|
|
3638
|
+
"onUpdate:modelValue": a[7] || (a[7] = (H) => m({ key: "customAttribute", value: H.account }))
|
|
3639
3639
|
}, null, 8, ["model-value", "options"])
|
|
3640
3640
|
]),
|
|
3641
3641
|
t("div", Gn, [
|
|
@@ -3650,12 +3650,12 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3650
3650
|
account: { placeholder: "Account Code", editable: !0 },
|
|
3651
3651
|
code: { placeholder: "Item Code", editable: !0 }
|
|
3652
3652
|
},
|
|
3653
|
-
"onUpdate:modelValue": a[8] || (a[8] = (
|
|
3653
|
+
"onUpdate:modelValue": a[8] || (a[8] = (H) => {
|
|
3654
3654
|
var te, q, xe;
|
|
3655
|
-
(xe = (q = (te = e.value) == null ? void 0 : te.platform) == null ? void 0 : q.mappings) != null && xe.rounding && (e.value.platform.mappings.rounding.account =
|
|
3655
|
+
(xe = (q = (te = e.value) == null ? void 0 : te.platform) == null ? void 0 : q.mappings) != null && xe.rounding && (e.value.platform.mappings.rounding.account = H.account, e.value.platform.mappings.rounding.code = H.code);
|
|
3656
3656
|
})
|
|
3657
3657
|
}, null, 8, ["model-value"]),
|
|
3658
|
-
(w(!0), P(Te, null, Ze((ge = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : ge.charges, (
|
|
3658
|
+
(w(!0), P(Te, null, Ze((ge = (ce = (pe = e.value) == null ? void 0 : pe.platform) == null ? void 0 : ce.mappings) == null ? void 0 : ge.charges, (H, te) => (w(), z(ae, {
|
|
3659
3659
|
key: `charge-${te}`,
|
|
3660
3660
|
modelValue: e.value.platform.mappings.charges[te],
|
|
3661
3661
|
"onUpdate:modelValue": (q) => e.value.platform.mappings.charges[te] = q,
|
|
@@ -3680,7 +3680,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3680
3680
|
account: e.value.platform.mappings.invoiceDocNo
|
|
3681
3681
|
},
|
|
3682
3682
|
options: C("Invoice no"),
|
|
3683
|
-
"onUpdate:modelValue": a[9] || (a[9] = (
|
|
3683
|
+
"onUpdate:modelValue": a[9] || (a[9] = (H) => m({ key: "invoiceDocNo", value: H.account }))
|
|
3684
3684
|
}, null, 8, ["model-value", "options"]),
|
|
3685
3685
|
l(ae, {
|
|
3686
3686
|
"model-value": {
|
|
@@ -3688,7 +3688,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3688
3688
|
account: e.value.platform.mappings.creditNoteDocNo
|
|
3689
3689
|
},
|
|
3690
3690
|
options: C("Credit note no"),
|
|
3691
|
-
"onUpdate:modelValue": a[10] || (a[10] = (
|
|
3691
|
+
"onUpdate:modelValue": a[10] || (a[10] = (H) => m({ key: "creditNoteDocNo", value: H.account }))
|
|
3692
3692
|
}, null, 8, ["model-value", "options"]),
|
|
3693
3693
|
l(ae, {
|
|
3694
3694
|
"model-value": {
|
|
@@ -3696,7 +3696,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3696
3696
|
account: e.value.platform.mappings.paymentDocNo
|
|
3697
3697
|
},
|
|
3698
3698
|
options: C("Payment no"),
|
|
3699
|
-
"onUpdate:modelValue": a[11] || (a[11] = (
|
|
3699
|
+
"onUpdate:modelValue": a[11] || (a[11] = (H) => m({ key: "paymentDocNo", value: H.account }))
|
|
3700
3700
|
}, null, 8, ["model-value", "options"]),
|
|
3701
3701
|
l(ae, {
|
|
3702
3702
|
"model-value": {
|
|
@@ -3704,14 +3704,14 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3704
3704
|
account: e.value.platform.mappings.refundDocNo
|
|
3705
3705
|
},
|
|
3706
3706
|
options: C("Refund no"),
|
|
3707
|
-
"onUpdate:modelValue": a[12] || (a[12] = (
|
|
3707
|
+
"onUpdate:modelValue": a[12] || (a[12] = (H) => m({ key: "refundDocNo", value: H.account }))
|
|
3708
3708
|
}, null, 8, ["model-value", "options"])
|
|
3709
3709
|
])
|
|
3710
3710
|
]),
|
|
3711
3711
|
l(R, { style: { margin: 0 } }),
|
|
3712
3712
|
l(et, {
|
|
3713
3713
|
modelValue: e.value.platform,
|
|
3714
|
-
"onUpdate:modelValue": a[13] || (a[13] = (
|
|
3714
|
+
"onUpdate:modelValue": a[13] || (a[13] = (H) => e.value.platform = H),
|
|
3715
3715
|
label: "email",
|
|
3716
3716
|
"last-upload-date": (T = e.value.platform) == null ? void 0 : T.lastUploadDate,
|
|
3717
3717
|
"error-logs": r.errorLogs,
|
|
@@ -3739,10 +3739,10 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3739
3739
|
account: { placeholder: "Account Code", editable: !0 },
|
|
3740
3740
|
code: { placeholder: "Item Code", editable: !0 }
|
|
3741
3741
|
},
|
|
3742
|
-
onRemove: a[15] || (a[15] = (
|
|
3743
|
-
"onUpdate:rows": a[16] || (a[16] = (
|
|
3742
|
+
onRemove: a[15] || (a[15] = (H, te) => y("items", te, "mappings")),
|
|
3743
|
+
"onUpdate:rows": a[16] || (a[16] = (H) => {
|
|
3744
3744
|
var te, q;
|
|
3745
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.items =
|
|
3745
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.items = H);
|
|
3746
3746
|
})
|
|
3747
3747
|
}, null, 8, ["rows"]),
|
|
3748
3748
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3765,10 +3765,10 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3765
3765
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
3766
3766
|
account: { placeholder: "Account Code", editable: !0 }
|
|
3767
3767
|
},
|
|
3768
|
-
onRemove: a[18] || (a[18] = (
|
|
3769
|
-
"onUpdate:rows": a[19] || (a[19] = (
|
|
3768
|
+
onRemove: a[18] || (a[18] = (H, te) => y("taxes", te, "mappings")),
|
|
3769
|
+
"onUpdate:rows": a[19] || (a[19] = (H) => {
|
|
3770
3770
|
var te, q;
|
|
3771
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxes =
|
|
3771
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxes = H);
|
|
3772
3772
|
})
|
|
3773
3773
|
}, null, 8, ["rows"]),
|
|
3774
3774
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3791,10 +3791,10 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3791
3791
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
3792
3792
|
account: { placeholder: "Account Code", editable: !0 }
|
|
3793
3793
|
},
|
|
3794
|
-
onRemove: a[21] || (a[21] = (
|
|
3795
|
-
"onUpdate:rows": a[22] || (a[22] = (
|
|
3794
|
+
onRemove: a[21] || (a[21] = (H, te) => y("taxesForRefund", te, "mappings")),
|
|
3795
|
+
"onUpdate:rows": a[22] || (a[22] = (H) => {
|
|
3796
3796
|
var te, q;
|
|
3797
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxesForRefund =
|
|
3797
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxesForRefund = H);
|
|
3798
3798
|
})
|
|
3799
3799
|
}, null, 8, ["rows"]),
|
|
3800
3800
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3817,10 +3817,10 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3817
3817
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
3818
3818
|
account: { placeholder: "Account Code", editable: !0 }
|
|
3819
3819
|
},
|
|
3820
|
-
onRemove: a[24] || (a[24] = (
|
|
3821
|
-
"onUpdate:rows": a[25] || (a[25] = (
|
|
3820
|
+
onRemove: a[24] || (a[24] = (H, te) => y("taxRoundingAdjustments", te, "mappings")),
|
|
3821
|
+
"onUpdate:rows": a[25] || (a[25] = (H) => {
|
|
3822
3822
|
var te, q;
|
|
3823
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxRoundingAdjustments =
|
|
3823
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.taxRoundingAdjustments = H);
|
|
3824
3824
|
})
|
|
3825
3825
|
}, null, 8, ["rows"]),
|
|
3826
3826
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3843,10 +3843,10 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3843
3843
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
3844
3844
|
account: { placeholder: "Payment Name", editable: !0 }
|
|
3845
3845
|
},
|
|
3846
|
-
onRemove: a[27] || (a[27] = (
|
|
3847
|
-
"onUpdate:rows": a[28] || (a[28] = (
|
|
3846
|
+
onRemove: a[27] || (a[27] = (H, te) => y("payments", te, "mappings")),
|
|
3847
|
+
"onUpdate:rows": a[28] || (a[28] = (H) => {
|
|
3848
3848
|
var te, q;
|
|
3849
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.payments =
|
|
3849
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.mappings && (e.value.platform.mappings.payments = H);
|
|
3850
3850
|
})
|
|
3851
3851
|
}, null, 8, ["rows"]),
|
|
3852
3852
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3872,7 +3872,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3872
3872
|
code: { placeholder: "Item Code", editable: !0 },
|
|
3873
3873
|
uom: { placeholder: "UOM", editable: !0 }
|
|
3874
3874
|
},
|
|
3875
|
-
onRemove: a[30] || (a[30] = (
|
|
3875
|
+
onRemove: a[30] || (a[30] = (H, te) => {
|
|
3876
3876
|
var q, xe, Ie;
|
|
3877
3877
|
if (((Ie = (xe = (q = e.value) == null ? void 0 : q.platform) == null ? void 0 : xe.inventoryMappings) == null ? void 0 : Ie.items[te].key) === "DEFAULT") {
|
|
3878
3878
|
s(p).open({
|
|
@@ -3883,9 +3883,9 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3883
3883
|
}
|
|
3884
3884
|
y("items", te, "inventoryMappings");
|
|
3885
3885
|
}),
|
|
3886
|
-
"onUpdate:rows": a[31] || (a[31] = (
|
|
3886
|
+
"onUpdate:rows": a[31] || (a[31] = (H) => {
|
|
3887
3887
|
var te, q;
|
|
3888
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.inventoryMappings && (e.value.platform.inventoryMappings.items =
|
|
3888
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.inventoryMappings && (e.value.platform.inventoryMappings.items = H);
|
|
3889
3889
|
})
|
|
3890
3890
|
}, null, 8, ["rows"]),
|
|
3891
3891
|
l(R, { style: { margin: 0 } }),
|
|
@@ -3909,12 +3909,12 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3909
3909
|
code: { placeholder: "Code", editable: !0 },
|
|
3910
3910
|
name: { placeholder: "Name", editable: !0 }
|
|
3911
3911
|
},
|
|
3912
|
-
onRemove: a[33] || (a[33] = (
|
|
3912
|
+
onRemove: a[33] || (a[33] = (H, te) => {
|
|
3913
3913
|
y("suppliers", te, "inventoryMappings");
|
|
3914
3914
|
}),
|
|
3915
|
-
"onUpdate:rows": a[34] || (a[34] = (
|
|
3915
|
+
"onUpdate:rows": a[34] || (a[34] = (H) => {
|
|
3916
3916
|
var te, q;
|
|
3917
|
-
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.inventoryMappings && (e.value.platform.inventoryMappings.suppliers =
|
|
3917
|
+
(q = (te = e.value) == null ? void 0 : te.platform) != null && q.inventoryMappings && (e.value.platform.inventoryMappings.suppliers = H);
|
|
3918
3918
|
})
|
|
3919
3919
|
}, null, 8, ["rows"])
|
|
3920
3920
|
], 64)) : O("", !0)
|
|
@@ -4170,7 +4170,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4170
4170
|
const C = V("FmButton"), i = V("FmCircularProgress"), n = V("FmTabs"), b = V("FmTable");
|
|
4171
4171
|
return w(), P("div", ms, [
|
|
4172
4172
|
t("div", cs, [
|
|
4173
|
-
l(
|
|
4173
|
+
l(He, {
|
|
4174
4174
|
"date-range": s(x),
|
|
4175
4175
|
"onUpdate:dateRange": m[0] || (m[0] = (r) => Pe(x) ? x.value = r : null),
|
|
4176
4176
|
compare: !1
|
|
@@ -4191,13 +4191,13 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4191
4191
|
"onUpdate:modelValue": m[1] || (m[1] = (r) => y.value = r),
|
|
4192
4192
|
items: A
|
|
4193
4193
|
}, null, 8, ["model-value"]),
|
|
4194
|
-
y.value === "SALE" && p.value.length > 0 ? (w(),
|
|
4194
|
+
y.value === "SALE" && p.value.length > 0 ? (w(), z(b, {
|
|
4195
4195
|
key: 0,
|
|
4196
4196
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
4197
4197
|
"row-data": p.value,
|
|
4198
4198
|
"column-defs": v
|
|
4199
4199
|
}, null, 8, ["row-data"])) : O("", !0),
|
|
4200
|
-
y.value === "ORDER" && I.value.length > 0 ? (w(),
|
|
4200
|
+
y.value === "ORDER" && I.value.length > 0 ? (w(), z(b, {
|
|
4201
4201
|
key: 1,
|
|
4202
4202
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
4203
4203
|
"row-data": I.value,
|
|
@@ -4259,7 +4259,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4259
4259
|
items: I
|
|
4260
4260
|
}, null, 8, ["model-value"]),
|
|
4261
4261
|
t("div", bs, [
|
|
4262
|
-
(w(),
|
|
4262
|
+
(w(), z(je(M.value), {
|
|
4263
4263
|
modelValue: e.value,
|
|
4264
4264
|
"onUpdate:modelValue": f[2] || (f[2] = (A) => e.value = A),
|
|
4265
4265
|
"error-logs": p.errorLogs
|
|
@@ -4271,7 +4271,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4271
4271
|
}), hs = {
|
|
4272
4272
|
key: 0,
|
|
4273
4273
|
class: "flex flex-col h-full"
|
|
4274
|
-
}, _s = { class: "flex flex-col gap-16 pb-[24px]" }, Cs = { class: "flex flex-row justify-between items-center gap-2" }, ks = { class: "fm-typo-en-title-sm-800" }, Ss = { class: "flex flex-row gap-2 items-center" }, $s = { class: "flex flex-row gap-2 items-center" }, As = { class: "relative group cursor-pointer" }, Ds = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Vs = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Is = { class: "w-[90%] flex flex-col gap-24" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ks = { class: "flex flex-col max-w-[100%]" }, Ns = { class: "w-[25%] font-semibold" }, Ts = { class: "flex-grow" }, Ms = { class: "flex flex-col gap-24 pt-[24px]" }, Rs = { class: "flex flex-col justify-between" }, Us = { class: "w-[25%] font-semibold" }, Ps = { class: "flex-grow" }, js = { class: "flex flex-col justify-between" }, Ls = { class: "w-[25%] font-semibold" }, Es = { class: "flex-grow" }, Os = { class: "flex flex-col gap-16" }, Bs = { class: "fm-typo-en-title-sm-800" }, Ys = { class: "flex flex-col max-w-[100%]" }, qs = { class: "w-[25%] font-semibold" },
|
|
4274
|
+
}, _s = { class: "flex flex-col gap-16 pb-[24px]" }, Cs = { class: "flex flex-row justify-between items-center gap-2" }, ks = { class: "fm-typo-en-title-sm-800" }, Ss = { class: "flex flex-row gap-2 items-center" }, $s = { class: "flex flex-row gap-2 items-center" }, As = { class: "relative group cursor-pointer" }, Ds = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Vs = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Is = { class: "w-[90%] flex flex-col gap-24" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ks = { class: "flex flex-col max-w-[100%]" }, Ns = { class: "w-[25%] font-semibold" }, Ts = { class: "flex-grow" }, Ms = { class: "flex flex-col gap-24 pt-[24px]" }, Rs = { class: "flex flex-col justify-between" }, Us = { class: "w-[25%] font-semibold" }, Ps = { class: "flex-grow" }, js = { class: "flex flex-col justify-between" }, Ls = { class: "w-[25%] font-semibold" }, Es = { class: "flex-grow" }, Os = { class: "flex flex-col gap-16" }, Bs = { class: "fm-typo-en-title-sm-800" }, Ys = { class: "flex flex-col max-w-[100%]" }, qs = { class: "w-[25%] font-semibold" }, zs = { class: "flex-grow" }, Hs = { class: "flex flex-col max-w-[100%]" }, Gs = { class: "w-[25%] font-semibold" }, Qs = { class: "flex flex-col max-w-[100%]" }, Ws = { class: "w-[25%] font-semibold" }, Xs = {
|
|
4275
4275
|
key: 0,
|
|
4276
4276
|
class: "flex flex-col max-w-[100%]"
|
|
4277
4277
|
}, Js = { class: "flex flex-col gap-16" }, Zs = { class: "xs:grid-cols-1 grid gap-16" }, er = { key: 1 }, tr = { class: "flex flex-col gap-16 pt-3 pb-3" }, or = { class: "flex flex-row items-center gap-5" }, ar = { class: "fm-typo-en-title-sm-800" }, lr = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, nr = { class: "flex flex-row items-center justify-between gap-x-16" }, sr = { class: "fm-typo-en-title-sm-800" }, rr = { class: "flex flex-row items-center justify-between gap-x-16" }, ir = { class: "fm-typo-en-title-sm-800" }, dr = { class: "flex flex-row items-center justify-between gap-x-16" }, pr = { class: "fm-typo-en-title-sm-800" }, ur = { class: "flex flex-row items-center justify-between gap-x-16" }, mr = { class: "fm-typo-en-title-sm-800" }, cr = { class: "flex flex-row items-center justify-between" }, fr = { class: "flex-grow" }, gr = {
|
|
@@ -4304,7 +4304,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4304
4304
|
}),
|
|
4305
4305
|
emits: ["update:modelValue"],
|
|
4306
4306
|
setup(g) {
|
|
4307
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
4307
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
4308
4308
|
() => N.map((r) => ({ label: r.name, value: r.id }))
|
|
4309
4309
|
);
|
|
4310
4310
|
function U(r) {
|
|
@@ -4533,14 +4533,14 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4533
4533
|
t("div", Bs, k(s(o)("report.integration.general")), 1),
|
|
4534
4534
|
t("div", Ys, [
|
|
4535
4535
|
t("div", qs, k(s(o)("report.common.name")), 1),
|
|
4536
|
-
t("div",
|
|
4536
|
+
t("div", zs, [
|
|
4537
4537
|
l(c, {
|
|
4538
4538
|
modelValue: e.value.name,
|
|
4539
4539
|
"onUpdate:modelValue": a[3] || (a[3] = (K) => e.value.name = K)
|
|
4540
4540
|
}, null, 8, ["modelValue"])
|
|
4541
4541
|
])
|
|
4542
4542
|
]),
|
|
4543
|
-
t("div",
|
|
4543
|
+
t("div", Hs, [
|
|
4544
4544
|
t("div", Gs, k(s(o)("report.common.location")), 1),
|
|
4545
4545
|
l(R, {
|
|
4546
4546
|
modelValue: e.value.platform.locationIds,
|
|
@@ -4565,7 +4565,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4565
4565
|
]),
|
|
4566
4566
|
e.value.platform.mappings.version == "v1" ? (w(), P("div", Xs, [
|
|
4567
4567
|
a[26] || (a[26] = t("div", { class: "w-[33%] font-semibold" }, "Payee ID", -1)),
|
|
4568
|
-
e.value.platform.mappings.version == "v1" ? (w(),
|
|
4568
|
+
e.value.platform.mappings.version == "v1" ? (w(), z(ae, {
|
|
4569
4569
|
key: 0,
|
|
4570
4570
|
modelValue: e.value.platform.mappings.payee,
|
|
4571
4571
|
"onUpdate:modelValue": a[6] || (a[6] = (K) => e.value.platform.mappings.payee = K),
|
|
@@ -4577,12 +4577,12 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4577
4577
|
])) : O("", !0),
|
|
4578
4578
|
t("div", Js, [
|
|
4579
4579
|
t("div", Zs, [
|
|
4580
|
-
!g.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (w(),
|
|
4580
|
+
!g.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (w(), z(j, {
|
|
4581
4581
|
key: 0,
|
|
4582
4582
|
size: "xl"
|
|
4583
4583
|
})) : O("", !0),
|
|
4584
4584
|
g.retrievedCustomers.isLoaded && g.retrievedCustomers.data && ((pe = g.retrievedCustomers.data) == null ? void 0 : pe.length) != 0 ? (w(), P("div", er, [
|
|
4585
|
-
e.value.platform.mappings.version == "v2" ? (w(),
|
|
4585
|
+
e.value.platform.mappings.version == "v2" ? (w(), z(gt, {
|
|
4586
4586
|
key: 0,
|
|
4587
4587
|
modelValue: e.value.platform.mappings.payeeId,
|
|
4588
4588
|
"onUpdate:modelValue": a[7] || (a[7] = (K) => e.value.platform.mappings.payeeId = K),
|
|
@@ -4624,7 +4624,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4624
4624
|
options: n("Credit note no"),
|
|
4625
4625
|
"onUpdate:modelValue": a[9] || (a[9] = (K) => i({ key: "creditNoteDocNo", value: K.account }))
|
|
4626
4626
|
}, null, 8, ["model-value", "options"]),
|
|
4627
|
-
e.value.platform.mappings.version == "v2" ? (w(),
|
|
4627
|
+
e.value.platform.mappings.version == "v2" ? (w(), z(ae, {
|
|
4628
4628
|
key: 0,
|
|
4629
4629
|
"model-value": {
|
|
4630
4630
|
key: "Payment no",
|
|
@@ -4633,7 +4633,7 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4633
4633
|
options: n("Payment no"),
|
|
4634
4634
|
"onUpdate:modelValue": a[10] || (a[10] = (K) => i({ key: "paymentDocNo", value: K.account }))
|
|
4635
4635
|
}, null, 8, ["model-value", "options"])) : O("", !0),
|
|
4636
|
-
e.value.platform.mappings.version == "v2" ? (w(),
|
|
4636
|
+
e.value.platform.mappings.version == "v2" ? (w(), z(ae, {
|
|
4637
4637
|
key: 1,
|
|
4638
4638
|
"model-value": {
|
|
4639
4639
|
key: "Refund no",
|
|
@@ -4758,12 +4758,12 @@ const Tt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4758
4758
|
]),
|
|
4759
4759
|
g.retrievedMethods.isError ? O("", !0) : (w(), P("div", gr, k(s(o)("report.integration.biztory.paymentTerm")), 1)),
|
|
4760
4760
|
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (w(), P("span", vr, k(s(o)("report.integration.biztory.noPaymentMethods")), 1)) : O("", !0),
|
|
4761
|
-
g.retrievedMethods.isLoaded ? O("", !0) : (w(),
|
|
4761
|
+
g.retrievedMethods.isLoaded ? O("", !0) : (w(), z(j, {
|
|
4762
4762
|
key: 2,
|
|
4763
4763
|
size: "xl"
|
|
4764
4764
|
})),
|
|
4765
4765
|
g.retrievedMethods.isError ? (w(), P("span", yr, k(s(o)("report.integration.biztory.error")), 1)) : O("", !0),
|
|
4766
|
-
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length != 0 ? (w(),
|
|
4766
|
+
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length != 0 ? (w(), z(re, {
|
|
4767
4767
|
key: 4,
|
|
4768
4768
|
"header-items": ["FeedMe Key", "Payment Name"],
|
|
4769
4769
|
rows: ((le = (Z = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : Z.mappings) == null ? void 0 : le.paymentMethods) || [],
|
|
@@ -5078,7 +5078,7 @@ const _r = [
|
|
|
5078
5078
|
const U = V("FmButton"), A = V("FmCircularProgress"), y = V("FmTable");
|
|
5079
5079
|
return w(), P("div", Cr, [
|
|
5080
5080
|
t("div", kr, [
|
|
5081
|
-
l(
|
|
5081
|
+
l(He, {
|
|
5082
5082
|
"date-range": s(I),
|
|
5083
5083
|
"onUpdate:dateRange": h[0] || (h[0] = (u) => Pe(I) ? I.value = u : null),
|
|
5084
5084
|
compare: !1
|
|
@@ -5093,7 +5093,7 @@ const _r = [
|
|
|
5093
5093
|
p.value ? (w(), P("div", Sr, [
|
|
5094
5094
|
l(A, { size: "xl" }),
|
|
5095
5095
|
t("span", $r, k(s(o)("report.common.isLoading")), 1)
|
|
5096
|
-
])) : (w(),
|
|
5096
|
+
])) : (w(), z(y, {
|
|
5097
5097
|
key: 1,
|
|
5098
5098
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
5099
5099
|
"row-data": M.value,
|
|
@@ -5192,7 +5192,7 @@ const _r = [
|
|
|
5192
5192
|
items: I
|
|
5193
5193
|
}, null, 8, ["model-value"]),
|
|
5194
5194
|
t("div", Vr, [
|
|
5195
|
-
(w(),
|
|
5195
|
+
(w(), z(je((b = M.value) == null ? void 0 : b.component), lt({
|
|
5196
5196
|
modelValue: e.value,
|
|
5197
5197
|
"onUpdate:modelValue": m[2] || (m[2] = (a) => e.value = a)
|
|
5198
5198
|
}, (r = M.value) == null ? void 0 : r.props), null, 16, ["modelValue"]))
|
|
@@ -5203,7 +5203,7 @@ const _r = [
|
|
|
5203
5203
|
}), Fr = {
|
|
5204
5204
|
key: 0,
|
|
5205
5205
|
class: "flex flex-col h-full"
|
|
5206
|
-
}, Kr = { class: "flex flex-col gap-16 pb-[24px]" }, Nr = { class: "flex flex-row justify-between items-center gap-2" }, Tr = { class: "flex flex-row gap-2 items-center" }, Mr = { class: "relative group cursor-pointer" }, Rr = { 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" }, Ur = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Pr = { class: "w-[90%] flex flex-col gap-24" }, jr = { class: "flex flex-col gap-16" }, Lr = { class: "fm-typo-en-title-sm-800" }, Er = { class: "flex flex-row items-center max-w-[100%]" }, Or = { class: "w-[25%]" }, Br = { class: "flex-grow" }, Yr = { class: "flex flex-row items-center max-w-[100%]" }, qr = { class: "w-[25%]" },
|
|
5206
|
+
}, Kr = { class: "flex flex-col gap-16 pb-[24px]" }, Nr = { class: "flex flex-row justify-between items-center gap-2" }, Tr = { class: "flex flex-row gap-2 items-center" }, Mr = { class: "relative group cursor-pointer" }, Rr = { 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" }, Ur = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Pr = { class: "w-[90%] flex flex-col gap-24" }, jr = { class: "flex flex-col gap-16" }, Lr = { class: "fm-typo-en-title-sm-800" }, Er = { class: "flex flex-row items-center max-w-[100%]" }, Or = { class: "w-[25%]" }, Br = { class: "flex-grow" }, Yr = { class: "flex flex-row items-center max-w-[100%]" }, qr = { class: "w-[25%]" }, zr = { class: "flex flex-row items-center justify-between gap-x-16" }, Hr = { class: "fm-typo-en-title-sm-800" }, Gr = /* @__PURE__ */ me({
|
|
5207
5207
|
__name: "Setting",
|
|
5208
5208
|
props: /* @__PURE__ */ _e({
|
|
5209
5209
|
errorLogs: {}
|
|
@@ -5213,7 +5213,7 @@ const _r = [
|
|
|
5213
5213
|
}),
|
|
5214
5214
|
emits: ["update:modelValue"],
|
|
5215
5215
|
setup(g) {
|
|
5216
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
5216
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
5217
5217
|
() => N.map((C) => ({ label: C.name, value: C.id }))
|
|
5218
5218
|
);
|
|
5219
5219
|
async function U() {
|
|
@@ -5353,8 +5353,8 @@ const _r = [
|
|
|
5353
5353
|
"is-auto-email-mode": !0
|
|
5354
5354
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
|
|
5355
5355
|
l(r, { style: { margin: 0 } }),
|
|
5356
|
-
t("div",
|
|
5357
|
-
t("div",
|
|
5356
|
+
t("div", zr, [
|
|
5357
|
+
t("div", Hr, k(s(o)("report.integration.iflexiHrms.employee")), 1),
|
|
5358
5358
|
l(b, {
|
|
5359
5359
|
variant: "secondary",
|
|
5360
5360
|
"prepend-icon": "add",
|
|
@@ -5451,7 +5451,7 @@ const _r = [
|
|
|
5451
5451
|
const h = V("FmButton"), U = V("FmCircularProgress"), A = V("FmTable");
|
|
5452
5452
|
return w(), P("div", Qr, [
|
|
5453
5453
|
t("div", Wr, [
|
|
5454
|
-
l(
|
|
5454
|
+
l(He, {
|
|
5455
5455
|
"date-range": s(M),
|
|
5456
5456
|
"onUpdate:dateRange": x[0] || (x[0] = (y) => Pe(M) ? M.value = y : null),
|
|
5457
5457
|
compare: !1
|
|
@@ -5466,7 +5466,7 @@ const _r = [
|
|
|
5466
5466
|
I.value ? (w(), P("div", Xr, [
|
|
5467
5467
|
l(U, { size: "xl" }),
|
|
5468
5468
|
t("span", Jr, k(s(o)("report.common.isLoading")), 1)
|
|
5469
|
-
])) : e.value.length > 0 ? (w(),
|
|
5469
|
+
])) : e.value.length > 0 ? (w(), z(A, {
|
|
5470
5470
|
key: 1,
|
|
5471
5471
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
5472
5472
|
"row-data": e.value,
|
|
@@ -5527,7 +5527,7 @@ const _r = [
|
|
|
5527
5527
|
items: I
|
|
5528
5528
|
}, null, 8, ["model-value"]),
|
|
5529
5529
|
t("div", ti, [
|
|
5530
|
-
(w(),
|
|
5530
|
+
(w(), z(je(M.value), {
|
|
5531
5531
|
modelValue: e.value,
|
|
5532
5532
|
"onUpdate:modelValue": f[2] || (f[2] = (A) => e.value = A),
|
|
5533
5533
|
"error-logs": p.errorLogs
|
|
@@ -5551,10 +5551,10 @@ const _r = [
|
|
|
5551
5551
|
}, Bi = { class: "flex flex-col max-w-[100%]" }, Yi = { class: "w-[25%] font-semibold" }, qi = {
|
|
5552
5552
|
key: 1,
|
|
5553
5553
|
class: "w-[100%] flex flex-col gap-2"
|
|
5554
|
-
},
|
|
5554
|
+
}, zi = {
|
|
5555
5555
|
key: 2,
|
|
5556
5556
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
5557
|
-
},
|
|
5557
|
+
}, Hi = { class: "flex flex-col gap-16" }, Gi = { class: "fm-typo-en-title-sm-800" }, Qi = { class: "flex flex-row items-center w-[100%] justify-start" }, Wi = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Xi = { class: "flex flex-row items-center w-[100%] justify-start" }, Ji = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Zi = { class: "flex flex-row items-center w-[100%] justify-start" }, ed = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, td = { class: "flex flex-col gap-16 pt-3 pb-3" }, od = { class: "flex flex-row items-center gap-5" }, ad = { class: "fm-typo-en-title-sm-800" }, ld = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, nd = { class: "flex flex-row items-center justify-between gap-x-16" }, sd = { class: "fm-typo-en-title-sm-800" }, rd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, id = { class: "flex flex-row items-center justify-between gap-x-16" }, dd = { class: "fm-typo-en-title-sm-800" }, pd = { class: "flex flex-row items-center justify-between gap-x-16" }, ud = { class: "fm-typo-en-title-sm-800" }, md = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, cd = /* @__PURE__ */ me({
|
|
5558
5558
|
__name: "Setting",
|
|
5559
5559
|
props: /* @__PURE__ */ _e({
|
|
5560
5560
|
retrievedDebtors: {
|
|
@@ -5575,7 +5575,7 @@ const _r = [
|
|
|
5575
5575
|
}),
|
|
5576
5576
|
emits: ["update:modelValue"],
|
|
5577
5577
|
setup(g) {
|
|
5578
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
5578
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), { flags: h } = dt(), U = Y(
|
|
5579
5579
|
() => N.map(($) => ({ label: $.name, value: $.id }))
|
|
5580
5580
|
), A = Y(
|
|
5581
5581
|
() => !h.some(
|
|
@@ -5680,7 +5680,7 @@ const _r = [
|
|
|
5680
5680
|
(G = (j = e.value) == null ? void 0 : j.platform) != null && G.mappings && (e.value.platform.mappings[$] = c);
|
|
5681
5681
|
}
|
|
5682
5682
|
function a($) {
|
|
5683
|
-
return $ ? $ === "ROUNDING" ||
|
|
5683
|
+
return $ ? $ === "ROUNDING" || $.startsWith("DISCOUNT") : !1;
|
|
5684
5684
|
}
|
|
5685
5685
|
function D($ = []) {
|
|
5686
5686
|
return $.map(
|
|
@@ -5863,7 +5863,7 @@ const _r = [
|
|
|
5863
5863
|
])) : O("", !0),
|
|
5864
5864
|
t("div", ji, [
|
|
5865
5865
|
t("div", Li, k(s(o)("report.integration.autocount.debtor")), 1),
|
|
5866
|
-
g.retrievedDebtors.isLoaded ? O("", !0) : (w(),
|
|
5866
|
+
g.retrievedDebtors.isLoaded ? O("", !0) : (w(), z(T, {
|
|
5867
5867
|
key: 0,
|
|
5868
5868
|
size: "xl"
|
|
5869
5869
|
})),
|
|
@@ -5883,7 +5883,7 @@ const _r = [
|
|
|
5883
5883
|
]),
|
|
5884
5884
|
t("div", Bi, [
|
|
5885
5885
|
t("div", Yi, k(s(o)("report.integration.autocount.location")), 1),
|
|
5886
|
-
g.retrievedLocations.isLoaded ? O("", !0) : (w(),
|
|
5886
|
+
g.retrievedLocations.isLoaded ? O("", !0) : (w(), z(T, {
|
|
5887
5887
|
key: 0,
|
|
5888
5888
|
size: "xl"
|
|
5889
5889
|
})),
|
|
@@ -5896,11 +5896,11 @@ const _r = [
|
|
|
5896
5896
|
class: "flex-grow",
|
|
5897
5897
|
disabled: !g.retrievedLocations.isLoaded
|
|
5898
5898
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])
|
|
5899
|
-
])) : g.retrievedLocations.isError ? (w(), P("div",
|
|
5899
|
+
])) : g.retrievedLocations.isError ? (w(), P("div", zi, k(s(o)("report.integration.errorFetchingLocation")), 1)) : O("", !0)
|
|
5900
5900
|
])
|
|
5901
5901
|
]),
|
|
5902
5902
|
l(J, { style: { margin: 0 } }),
|
|
5903
|
-
t("div",
|
|
5903
|
+
t("div", Hi, [
|
|
5904
5904
|
t("div", Gi, k(s(o)("report.integration.autocount.saveAndApprove")), 1),
|
|
5905
5905
|
t("div", Qi, [
|
|
5906
5906
|
t("div", Wi, k(s(o)("report.integration.autocount.invoice")), 1),
|
|
@@ -6340,13 +6340,13 @@ const gd = [
|
|
|
6340
6340
|
const m = V("FmButton"), C = V("FmCircularProgress"), i = V("FmTable");
|
|
6341
6341
|
return w(), P("div", vd, [
|
|
6342
6342
|
t("div", yd, [
|
|
6343
|
-
l(
|
|
6343
|
+
l(He, {
|
|
6344
6344
|
"date-range": s(I),
|
|
6345
6345
|
"onUpdate:dateRange": u[0] || (u[0] = (n) => Pe(I) ? I.value = n : null),
|
|
6346
6346
|
compare: !1
|
|
6347
6347
|
}, null, 8, ["date-range"]),
|
|
6348
6348
|
t("div", xd, [
|
|
6349
|
-
h.value ? (w(),
|
|
6349
|
+
h.value ? (w(), z(m, {
|
|
6350
6350
|
key: 0,
|
|
6351
6351
|
loading: p.value,
|
|
6352
6352
|
variant: "primary",
|
|
@@ -6364,7 +6364,7 @@ const gd = [
|
|
|
6364
6364
|
p.value ? (w(), P("div", bd, [
|
|
6365
6365
|
l(C, { size: "xl" }),
|
|
6366
6366
|
t("span", wd, k(s(o)("report.common.isLoading")), 1)
|
|
6367
|
-
])) : (w(),
|
|
6367
|
+
])) : (w(), z(i, {
|
|
6368
6368
|
key: 1,
|
|
6369
6369
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
6370
6370
|
"row-data": f.value,
|
|
@@ -6465,7 +6465,7 @@ const gd = [
|
|
|
6465
6465
|
items: I
|
|
6466
6466
|
}, null, 8, ["model-value"]),
|
|
6467
6467
|
t("div", Cd, [
|
|
6468
|
-
(w(),
|
|
6468
|
+
(w(), z(je((n = M.value) == null ? void 0 : n.component), lt({
|
|
6469
6469
|
modelValue: e.value,
|
|
6470
6470
|
"onUpdate:modelValue": u[2] || (u[2] = (r) => e.value = r)
|
|
6471
6471
|
}, (b = M.value) == null ? void 0 : b.props), null, 16, ["modelValue"]))
|
|
@@ -6476,7 +6476,7 @@ const gd = [
|
|
|
6476
6476
|
}), Sd = {
|
|
6477
6477
|
key: 0,
|
|
6478
6478
|
class: "flex flex-col h-full w-full"
|
|
6479
|
-
}, $d = { class: "flex flex-col gap-16 pb-[24px]" }, Ad = { class: "flex flex-row justify-between items-center gap-2" }, Dd = { class: "flex flex-row gap-2 items-center" }, Vd = { class: "relative group cursor-pointer" }, Id = { 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" }, Fd = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Kd = { class: "w-[90%] flex flex-col gap-24" }, Nd = { class: "flex flex-col gap-16" }, Td = { class: "fm-typo-en-title-sm-800" }, Md = { class: "flex flex-col max-w-[100%]" }, Rd = { class: "w-[25%] font-semibold" }, Ud = { class: "flex-grow" }, Pd = { class: "flex flex-col max-w-[100%]" }, jd = { class: "w-[25%] font-semibold" }, Ld = { class: "flex flex-col gap-16" }, Ed = { class: "grid-cols-2 grid gap-16" }, Od = { class: "flex flex-row items-center justify-between gap-x-16" }, Bd = { class: "flex flex-row items-center justify-between gap-x-16" }, Yd = { class: "fm-typo-en-title-sm-800" }, qd = { class: "flex flex-row items-center justify-between gap-x-16" },
|
|
6479
|
+
}, $d = { class: "flex flex-col gap-16 pb-[24px]" }, Ad = { class: "flex flex-row justify-between items-center gap-2" }, Dd = { class: "flex flex-row gap-2 items-center" }, Vd = { class: "relative group cursor-pointer" }, Id = { 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" }, Fd = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Kd = { class: "w-[90%] flex flex-col gap-24" }, Nd = { class: "flex flex-col gap-16" }, Td = { class: "fm-typo-en-title-sm-800" }, Md = { class: "flex flex-col max-w-[100%]" }, Rd = { class: "w-[25%] font-semibold" }, Ud = { class: "flex-grow" }, Pd = { class: "flex flex-col max-w-[100%]" }, jd = { class: "w-[25%] font-semibold" }, Ld = { class: "flex flex-col gap-16" }, Ed = { class: "grid-cols-2 grid gap-16" }, Od = { class: "flex flex-row items-center justify-between gap-x-16" }, Bd = { class: "flex flex-row items-center justify-between gap-x-16" }, Yd = { class: "fm-typo-en-title-sm-800" }, qd = { class: "flex flex-row items-center justify-between gap-x-16" }, zd = { class: "flex flex-row items-center justify-between gap-x-16" }, Hd = /* @__PURE__ */ me({
|
|
6480
6480
|
__name: "Setting",
|
|
6481
6481
|
props: {
|
|
6482
6482
|
modelValue: { required: !0 },
|
|
@@ -6484,7 +6484,7 @@ const gd = [
|
|
|
6484
6484
|
},
|
|
6485
6485
|
emits: ["update:modelValue"],
|
|
6486
6486
|
setup(g) {
|
|
6487
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
6487
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
6488
6488
|
() => N.map((C) => ({ label: C.name, value: C.id }))
|
|
6489
6489
|
);
|
|
6490
6490
|
async function U() {
|
|
@@ -6648,7 +6648,7 @@ const gd = [
|
|
|
6648
6648
|
(L = (K = (le = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : le.mappings) == null ? void 0 : K.invoice) != null && L.rounding && (e.value.platform.mappings.invoice.rounding.account = ne.account, e.value.platform.mappings.invoice.rounding.code = ne.code);
|
|
6649
6649
|
})
|
|
6650
6650
|
}, null, 8, ["model-value"]),
|
|
6651
|
-
(w(!0), P(Te, null, Ze((J = (G = (j = e.value) == null ? void 0 : j.platform) == null ? void 0 : G.mappings) == null ? void 0 : J.invoice.charges, (ne, Z) => (w(),
|
|
6651
|
+
(w(!0), P(Te, null, Ze((J = (G = (j = e.value) == null ? void 0 : j.platform) == null ? void 0 : G.mappings) == null ? void 0 : J.invoice.charges, (ne, Z) => (w(), z(ae, {
|
|
6652
6652
|
key: `charge-${Z}`,
|
|
6653
6653
|
modelValue: e.value.platform.mappings.invoice.charges[Z],
|
|
6654
6654
|
"onUpdate:modelValue": (le) => e.value.platform.mappings.invoice.charges[Z] = le,
|
|
@@ -6764,7 +6764,7 @@ const gd = [
|
|
|
6764
6764
|
})
|
|
6765
6765
|
}, null, 8, ["rows"]),
|
|
6766
6766
|
l(r, { style: { margin: 0 } }),
|
|
6767
|
-
t("div",
|
|
6767
|
+
t("div", zd, [
|
|
6768
6768
|
i[19] || (i[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Supplier", -1)),
|
|
6769
6769
|
l(b, {
|
|
6770
6770
|
variant: "secondary",
|
|
@@ -7209,7 +7209,7 @@ const gd = [
|
|
|
7209
7209
|
const a = V("FmButton"), D = V("FmCircularProgress"), d = V("FmTabs"), R = V("FmTable");
|
|
7210
7210
|
return w(), P("div", Gd, [
|
|
7211
7211
|
t("div", Qd, [
|
|
7212
|
-
l(
|
|
7212
|
+
l(He, {
|
|
7213
7213
|
"date-range": s(m),
|
|
7214
7214
|
"onUpdate:dateRange": r[0] || (r[0] = ($) => Pe(m) ? m.value = $ : null),
|
|
7215
7215
|
compare: !1
|
|
@@ -7230,29 +7230,29 @@ const gd = [
|
|
|
7230
7230
|
"onUpdate:modelValue": r[1] || (r[1] = ($) => n.value = $),
|
|
7231
7231
|
items: i
|
|
7232
7232
|
}, null, 8, ["model-value"]),
|
|
7233
|
-
n.value === "INVOICE" ? (w(),
|
|
7233
|
+
n.value === "INVOICE" ? (w(), z(R, {
|
|
7234
7234
|
key: 0,
|
|
7235
7235
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
7236
7236
|
"row-data": p.value,
|
|
7237
7237
|
"column-defs": f
|
|
7238
7238
|
}, null, 8, ["row-data"])) : O("", !0),
|
|
7239
|
-
n.value === "CREDIT_NOTE" ? (w(),
|
|
7239
|
+
n.value === "CREDIT_NOTE" ? (w(), z(R, {
|
|
7240
7240
|
key: 1,
|
|
7241
7241
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
7242
7242
|
"row-data": I.value,
|
|
7243
7243
|
"column-defs": x
|
|
7244
|
-
}, null, 8, ["row-data"])) : n.value === "DELIVERY_ORDER" ? (w(),
|
|
7244
|
+
}, null, 8, ["row-data"])) : n.value === "DELIVERY_ORDER" ? (w(), z(R, {
|
|
7245
7245
|
key: 2,
|
|
7246
7246
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
7247
7247
|
"row-data": M.value,
|
|
7248
7248
|
"column-defs": U
|
|
7249
|
-
}, null, 8, ["row-data"])) : n.value === "PURCHASE_ORDER" ? (w(),
|
|
7249
|
+
}, null, 8, ["row-data"])) : n.value === "PURCHASE_ORDER" ? (w(), z(R, {
|
|
7250
7250
|
key: 3,
|
|
7251
7251
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
7252
7252
|
"row-data": F.value,
|
|
7253
7253
|
"column-defs": h
|
|
7254
7254
|
}, null, 8, ["row-data"])) : O("", !0),
|
|
7255
|
-
n.value === "RAW_INVOICE" ? (w(),
|
|
7255
|
+
n.value === "RAW_INVOICE" ? (w(), z(R, {
|
|
7256
7256
|
key: 4,
|
|
7257
7257
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
7258
7258
|
"row-data": v.value,
|
|
@@ -7286,7 +7286,7 @@ const gd = [
|
|
|
7286
7286
|
case "preview":
|
|
7287
7287
|
return Zd;
|
|
7288
7288
|
case "setting":
|
|
7289
|
-
return
|
|
7289
|
+
return Hd;
|
|
7290
7290
|
default:
|
|
7291
7291
|
return null;
|
|
7292
7292
|
}
|
|
@@ -7312,7 +7312,7 @@ const gd = [
|
|
|
7312
7312
|
items: v
|
|
7313
7313
|
}, null, 8, ["model-value"]),
|
|
7314
7314
|
t("div", tp, [
|
|
7315
|
-
(w(),
|
|
7315
|
+
(w(), z(je(F.value), {
|
|
7316
7316
|
modelValue: e.value,
|
|
7317
7317
|
"onUpdate:modelValue": N[2] || (N[2] = (U) => e.value = U)
|
|
7318
7318
|
}, null, 8, ["modelValue"]))
|
|
@@ -7336,7 +7336,7 @@ const gd = [
|
|
|
7336
7336
|
}),
|
|
7337
7337
|
emits: ["update:modelValue"],
|
|
7338
7338
|
setup(g) {
|
|
7339
|
-
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } =
|
|
7339
|
+
const { t: o } = ye(), e = ve(g, "modelValue"), p = De(), v = Me(), I = Se(), { promptLoader: F } = qe(), { promptMessage: M } = ze(), { restaurants: N } = Ae(), { rules: f, notifyUnauthorized: x } = Le(), h = Y(
|
|
7340
7340
|
() => N.map((i) => ({ label: i.name, value: i.id }))
|
|
7341
7341
|
), U = [
|
|
7342
7342
|
{
|
|
@@ -7518,7 +7518,7 @@ const gd = [
|
|
|
7518
7518
|
])
|
|
7519
7519
|
]),
|
|
7520
7520
|
l(d, { style: { margin: 0 } }),
|
|
7521
|
-
e.value._id ? (w(),
|
|
7521
|
+
e.value._id ? (w(), z(et, {
|
|
7522
7522
|
key: 0,
|
|
7523
7523
|
modelValue: e.value.platform,
|
|
7524
7524
|
"onUpdate:modelValue": n[7] || (n[7] = (c) => e.value.platform = c),
|
|
@@ -7732,7 +7732,7 @@ const gd = [
|
|
|
7732
7732
|
const U = V("FmButton"), A = V("FmCircularProgress"), y = V("FmTable");
|
|
7733
7733
|
return w(), P("div", Ip, [
|
|
7734
7734
|
t("div", Fp, [
|
|
7735
|
-
l(
|
|
7735
|
+
l(He, {
|
|
7736
7736
|
"date-range": s(F),
|
|
7737
7737
|
"onUpdate:dateRange": h[0] || (h[0] = (u) => Pe(F) ? F.value = u : null),
|
|
7738
7738
|
compare: !1
|
|
@@ -7748,7 +7748,7 @@ const gd = [
|
|
|
7748
7748
|
p.value ? (w(), P("div", Np, [
|
|
7749
7749
|
l(A, { size: "xl" }),
|
|
7750
7750
|
t("span", Tp, k(s(o)("report.common.isLoading")), 1)
|
|
7751
|
-
])) : (w(),
|
|
7751
|
+
])) : (w(), z(y, {
|
|
7752
7752
|
key: 1,
|
|
7753
7753
|
class: "flex p-5 border border-fm-color-border-secondary rounded-lg h-auto min-w-full",
|
|
7754
7754
|
"row-data": M.value,
|
|
@@ -7820,7 +7820,7 @@ const gd = [
|
|
|
7820
7820
|
items: I
|
|
7821
7821
|
}, null, 8, ["model-value"]),
|
|
7822
7822
|
t("div", Up, [
|
|
7823
|
-
(w(),
|
|
7823
|
+
(w(), z(je((A = M.value) == null ? void 0 : A.component), lt({
|
|
7824
7824
|
modelValue: p.value,
|
|
7825
7825
|
"onUpdate:modelValue": f[2] || (f[2] = (u) => p.value = u)
|
|
7826
7826
|
}, (y = M.value) == null ? void 0 : y.props), null, 16, ["modelValue"]))
|
|
@@ -7890,7 +7890,7 @@ const gd = [
|
|
|
7890
7890
|
}
|
|
7891
7891
|
});
|
|
7892
7892
|
return (U, A) => (w(), P("div", jp, [
|
|
7893
|
-
(w(),
|
|
7893
|
+
(w(), z(je(h.value), {
|
|
7894
7894
|
modelValue: I.value,
|
|
7895
7895
|
"onUpdate:modelValue": A[0] || (A[0] = (y) => I.value = y),
|
|
7896
7896
|
"error-logs": F.value
|