@feedmepos/mf-payment 1.1.0-beta.3 → 1.1.0-beta.5
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/{PayoutAccount-aXUZqVC4.js → PayoutAccount-C8TaOd4c.js} +298 -284
- package/dist/{PayoutAccount-Dm__V5FS.js → PayoutAccount-k_oj_Se3.js} +5 -5
- package/dist/{PayoutAccountSetting-EbYjEXDF.js → PayoutAccountSetting-CqkCjQZG.js} +3 -3
- package/dist/{Restaurant-DLM9C8nc.js → Restaurant-9242Ya8l.js} +4 -4
- package/dist/{RestaurantSetting-GoDOJmXC.js → RestaurantSetting-BpWnw2Jj.js} +3 -3
- package/dist/{Settlement-CsLlypA1.js → Settlement-BOKEyc5M.js} +3 -3
- package/dist/{Settlement-BCGCz02p.js → Settlement-Fk2o5a_1.js} +3 -3
- package/dist/{SettlementTransactions-DtbZ2BMA.js → SettlementTransactions-Bcg3w7Hz.js} +3 -3
- package/dist/{SettlementTransactions-BXDX1-4U.js → SettlementTransactions-lYTbe3Pj.js} +3 -3
- package/dist/{Terminal-BhZitu-W.js → Terminal-B2Awbq_j.js} +5 -5
- package/dist/{TerminalSetting-lTAsTN8h.js → TerminalSetting-S_8IxAyI.js} +27 -27
- package/dist/{Transaction-AwhwSbRY.js → Transaction-DZ-dAEJB.js} +5 -5
- package/dist/{Transaction-CCTdVAZg.js → Transaction-dJxNlcIg.js} +7 -7
- package/dist/{TransactionOld-DLjym0JG.js → TransactionOld-B7uxSwpb.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-xSb40MKu.js → TransactionTable.vue_vue_type_script_setup_true_lang-vH38H_Lw.js} +58 -54
- package/dist/api/terminal/index.d.ts +2 -1
- package/dist/{app-348rfspt.js → app-CmhTSkBh.js} +291 -289
- package/dist/app.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/{assets-CizBCu1u.js → assets-BwS-N5IN.js} +2 -2
- package/dist/{grafana-NU2yqPXT.js → grafana-ysrdKpe6.js} +1 -1
- package/dist/index-Bgrrdm3Z.js +52 -0
- package/dist/{index-GlBLcdqs.js → index-CiOLWz3t.js} +1 -1
- package/dist/{index-OD8n4-_f.js → index-DDFIpPJy.js} +1 -1
- package/dist/{index-Dvg8rPAD.js → index-DloTaJJH.js} +1 -1
- package/dist/{index-DEvTHjDK.js → index-DrJyWI2l.js} +2815 -2813
- package/dist/{index-BDCzfWFu.js → index-bSRmzn11.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D-xbKBxe.js → index.vue_vue_type_script_setup_true_lang-Iz1uC_Gw.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-5sqoL9UC.js → payout-account-CasV_7ez.js} +110 -110
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index-D9Cv_ZfD.js +0 -45
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
|
2
|
-
import { u as O } from "./index-
|
3
|
-
import { _ as K } from "./index-
|
2
|
+
import { u as O } from "./index-DDFIpPJy.js";
|
3
|
+
import { _ as K } from "./index-DrJyWI2l.js";
|
4
4
|
import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
5
|
-
import { P as V } from "./payout-account-
|
6
|
-
import { p as D } from "./index-
|
5
|
+
import { P as V } from "./payout-account-CasV_7ez.js";
|
6
|
+
import { p as D } from "./index-CiOLWz3t.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Iz1uC_Gw.js";
|
9
9
|
import { useRouter as U } from "vue-router";
|
10
10
|
import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
const G = /* @__PURE__ */ y({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as k, resolveComponent as y, openBlock as b, createElementBlock as A, Fragment as $, createElementVNode as l, createVNode as s, withCtx as F, createTextVNode as _, toDisplayString as h, createCommentVNode as S, createBlock as C, ref as V, watch as z, computed as M, unref as v, isRef as G, h as B, onMounted as L, resolveDynamicComponent as H, normalizeProps as Y, mergeProps as Q } from "vue";
|
2
|
-
import { p as P } from "./index-
|
3
|
-
import { u as K, e as N } from "./index-
|
2
|
+
import { p as P } from "./index-CiOLWz3t.js";
|
3
|
+
import { u as K, e as N } from "./index-DrJyWI2l.js";
|
4
4
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as Z } from "vue-router";
|
6
|
-
import { u as D } from "./index-
|
6
|
+
import { u as D } from "./index-DDFIpPJy.js";
|
7
7
|
import { P as q, _ as J } from "./PDFViewer-BQfgFexr.js";
|
8
8
|
import { useSnackbar as j, components as X } from "@feedmepos/ui-library";
|
9
9
|
import { u as I } from "./error-K1CakhA9.js";
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
2
|
-
import { u as O } from "./index-
|
2
|
+
import { u as O } from "./index-DDFIpPJy.js";
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
|
-
import { u as G } from "./index-
|
5
|
+
import { u as G } from "./index-DrJyWI2l.js";
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
7
|
-
import { r as H } from "./index-
|
7
|
+
import { r as H } from "./index-DloTaJJH.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-ysrdKpe6.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
|
2
|
-
import { g as T, b as R, u as E, e as U } from "./index-
|
2
|
+
import { g as T, b as R, u as E, e as U } from "./index-DrJyWI2l.js";
|
3
3
|
import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as A } from "vue-router";
|
5
|
-
import { u as L } from "./index-
|
5
|
+
import { u as L } from "./index-DDFIpPJy.js";
|
6
6
|
import { z as p, a as v } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
|
-
import { r as z } from "./index-
|
8
|
+
import { r as z } from "./index-DloTaJJH.js";
|
9
9
|
const _ = {
|
10
10
|
async get(n) {
|
11
11
|
return T(
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as C, ref as F, computed as A, resolveComponent as k, openBlock as V, createBlock as S, h as M, watch as B, createElementBlock as j, Fragment as q, createElementVNode as l, createVNode as u, withCtx as b, unref as e, toDisplayString as m, createTextVNode as _, onMounted as z, isRef as T, createCommentVNode as Y } from "vue";
|
2
|
-
import { u as E } from "./index-
|
2
|
+
import { u as E } from "./index-DrJyWI2l.js";
|
3
3
|
import { h as K } from "./moment-h96o7c8I.js";
|
4
4
|
import { useI18n as D, useCoreStore as O } from "@feedmepos/mf-common";
|
5
5
|
import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { s as N } from "./index-
|
6
|
+
import { s as N } from "./index-bSRmzn11.js";
|
7
7
|
import { useDialog as L } from "@feedmepos/ui-library";
|
8
8
|
import { d as c } from "./dinero-CIVmXLL-.js";
|
9
9
|
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
10
10
|
import { useRouter as H } from "vue-router";
|
11
|
-
import { u as J } from "./index-
|
11
|
+
import { u as J } from "./index-DDFIpPJy.js";
|
12
12
|
import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
13
|
import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js";
|
14
14
|
import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as h, ref as C, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
|
2
|
-
import { u as D } from "./index-
|
2
|
+
import { u as D } from "./index-DrJyWI2l.js";
|
3
3
|
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as c } from "./index-
|
4
|
+
import { s as c } from "./index-bSRmzn11.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
6
|
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
8
|
import { useRouter as q } from "vue-router";
|
9
9
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as O } from "./index-
|
10
|
+
import { u as O } from "./index-DDFIpPJy.js";
|
11
11
|
import { u as U } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
13
|
const z = /* @__PURE__ */ h({
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as w, resolveComponent as g, openBlock as T, createBlock as L, normalizeClass as z, withCtx as i, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as R, createVNode as o, createTextVNode as d, h as I } from "vue";
|
2
|
-
import { e as C, u as Y } from "./index-
|
2
|
+
import { e as C, u as Y } from "./index-DrJyWI2l.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as E } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as H, a as q, t as J, b as Q } from "./assets-
|
5
|
+
import { g as H, a as q, t as J, b as Q } from "./assets-BwS-N5IN.js";
|
6
6
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
7
|
import { useRouter as X } from "vue-router";
|
8
|
-
import { s as Z } from "./index-
|
8
|
+
import { s as Z } from "./index-bSRmzn11.js";
|
9
9
|
import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
|
10
10
|
const ae = /* @__PURE__ */ w({
|
11
11
|
__name: "Status",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as x, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
|
2
|
-
import { e as E, u as q } from "./index-
|
2
|
+
import { e as E, u as q } from "./index-DrJyWI2l.js";
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as W, a as X, t as P, b as Z } from "./assets-
|
5
|
+
import { g as W, a as X, t as P, b as Z } from "./assets-BwS-N5IN.js";
|
6
6
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
7
|
import { useRouter as te } from "vue-router";
|
8
|
-
import { s as ae } from "./index-
|
8
|
+
import { s as ae } from "./index-bSRmzn11.js";
|
9
9
|
import { u as ne } from "./error-K1CakhA9.js";
|
10
10
|
import { w as oe } from "./Modal-DB8M9o1T.js";
|
11
11
|
const re = /* @__PURE__ */ w({
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
|
2
|
-
import { e as Ce } from "./index-
|
2
|
+
import { e as Ce } from "./index-DrJyWI2l.js";
|
3
3
|
import { h as ye } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as we } from "./index-
|
5
|
-
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as we } from "./index-DDFIpPJy.js";
|
5
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Iz1uC_Gw.js";
|
6
6
|
import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
|
8
|
-
import { t as Q } from "./index-
|
8
|
+
import { t as Q } from "./index-Bgrrdm3Z.js";
|
9
9
|
import { c as le } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { useCoreStore as ue } from "@feedmepos/mf-common";
|
11
|
-
import { g as Se } from "./grafana-
|
11
|
+
import { g as Se } from "./grafana-ysrdKpe6.js";
|
12
12
|
import { u as Y } from "./error-K1CakhA9.js";
|
13
13
|
import { z as re, a as ne } from "./validator-D5jtpt9A.js";
|
14
14
|
import { w as ae } from "./Modal-DB8M9o1T.js";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
|
2
|
-
import { u as R, e as U } from "./index-
|
2
|
+
import { u as R, e as U } from "./index-DrJyWI2l.js";
|
3
3
|
import { useRouter as E } from "vue-router";
|
4
|
-
import { t as C } from "./index-
|
4
|
+
import { t as C } from "./index-Bgrrdm3Z.js";
|
5
5
|
import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as H } from "./index-
|
6
|
+
import { u as H } from "./index-DDFIpPJy.js";
|
7
7
|
import { useSnackbar as Q } from "@feedmepos/ui-library";
|
8
8
|
import { u as J } from "./error-K1CakhA9.js";
|
9
9
|
import { z as W, a as X } from "./validator-D5jtpt9A.js";
|
@@ -17,7 +17,7 @@ const Z = /* @__PURE__ */ T({
|
|
17
17
|
}
|
18
18
|
},
|
19
19
|
setup(y) {
|
20
|
-
return (
|
20
|
+
return (d, e) => (b(), N(Y, null, [
|
21
21
|
e[0] || (e[0] = g("b", null, "Name", -1)),
|
22
22
|
V(": " + S(y.terminal.name), 1),
|
23
23
|
e[1] || (e[1] = g("br", null, null, -1)),
|
@@ -48,20 +48,20 @@ const Z = /* @__PURE__ */ T({
|
|
48
48
|
}
|
49
49
|
},
|
50
50
|
setup(y) {
|
51
|
-
const { isLoading:
|
51
|
+
const { isLoading: d, startAsyncCall: e } = R(), c = y, a = M(() => c.terminal), o = F(), v = F(), n = F(-1), p = F({
|
52
52
|
terminalId: ""
|
53
53
|
}), i = () => {
|
54
54
|
p.value.terminalId = "", n.value = -1;
|
55
55
|
}, l = () => {
|
56
56
|
if (e(async () => {
|
57
|
-
o.value = await C.
|
58
|
-
}), !
|
57
|
+
o.value = await C.getRestaurantTerminals(c.terminal.referenceId);
|
58
|
+
}), !c.terminal.ecrs)
|
59
59
|
return i();
|
60
|
-
const t =
|
60
|
+
const t = c.terminal.ecrs.findIndex((m) => m && m.gateway && m.gateway === "FeedMe");
|
61
61
|
if (t === -1)
|
62
62
|
return i();
|
63
63
|
n.value = t;
|
64
|
-
const r =
|
64
|
+
const r = c.terminal.ecrs.at(t);
|
65
65
|
r.gateway === "FeedMe" && r.config && (p.value = {
|
66
66
|
terminalId: r.config.terminalId
|
67
67
|
});
|
@@ -73,18 +73,18 @@ const Z = /* @__PURE__ */ T({
|
|
73
73
|
})));
|
74
74
|
async function u(t) {
|
75
75
|
var r;
|
76
|
-
(r =
|
76
|
+
(r = c.terminal.ecrs) == null || r.splice(t, 1), c.onUpdate(c.terminal);
|
77
77
|
}
|
78
78
|
return (t, r) => {
|
79
79
|
const m = f("FmCircularProgress"), k = f("FmSelect"), w = f("FmButton"), K = f("FmForm");
|
80
|
-
return _(
|
80
|
+
return _(d) ? (b(), N("div", ee, [
|
81
81
|
I(m, { size: "xxl" })
|
82
82
|
])) : (b(), x(K, {
|
83
83
|
key: 1,
|
84
84
|
ref: v.value,
|
85
85
|
class: "flex flex-col gap-16 w-[500px]",
|
86
86
|
onValidationSuccess: r[1] || (r[1] = () => {
|
87
|
-
n.value > -1 ? a.value.ecrs[n.value] = { gateway: "FeedMe", config: p.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "FeedMe", config: p.value })),
|
87
|
+
n.value > -1 ? a.value.ecrs[n.value] = { gateway: "FeedMe", config: p.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "FeedMe", config: p.value })), c.onUpdate(a.value);
|
88
88
|
})
|
89
89
|
}, {
|
90
90
|
default: q(() => [
|
@@ -128,7 +128,7 @@ const Z = /* @__PURE__ */ T({
|
|
128
128
|
}
|
129
129
|
},
|
130
130
|
setup(y) {
|
131
|
-
const
|
131
|
+
const d = y, e = $().currentCountry, c = [
|
132
132
|
{
|
133
133
|
label: "Fiuu Malaysia",
|
134
134
|
value: "cc.feedme.payment.rms",
|
@@ -144,7 +144,7 @@ const Z = /* @__PURE__ */ T({
|
|
144
144
|
value: "cc.feedme.payment.fiuu_sg",
|
145
145
|
region: U.F_COUNTRY.enum.SG
|
146
146
|
}
|
147
|
-
], a = M(() =>
|
147
|
+
], a = M(() => d.terminal), o = F(), v = F(-1), n = F({
|
148
148
|
packageId: "",
|
149
149
|
uniqueId: ""
|
150
150
|
}), p = () => {
|
@@ -165,7 +165,7 @@ const Z = /* @__PURE__ */ T({
|
|
165
165
|
D(a, i), G(i);
|
166
166
|
async function l(s) {
|
167
167
|
var u;
|
168
|
-
(u = a.value.gateways) == null || u.splice(s, 1),
|
168
|
+
(u = a.value.gateways) == null || u.splice(s, 1), d.onUpdate(a.value);
|
169
169
|
}
|
170
170
|
return (s, u) => {
|
171
171
|
const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"), k = f("FmForm");
|
@@ -173,7 +173,7 @@ const Z = /* @__PURE__ */ T({
|
|
173
173
|
ref: o.value,
|
174
174
|
class: "flex flex-col gap-16 w-[500px]",
|
175
175
|
onValidationSuccess: u[2] || (u[2] = () => {
|
176
|
-
v.value > -1 ? a.value.gateways[v.value] = { gateway: "Fiuu", config: n.value } : (a.value.gateways || (a.value.gateways = []), a.value.gateways.push({ gateway: "Fiuu", config: n.value })),
|
176
|
+
v.value > -1 ? a.value.gateways[v.value] = { gateway: "Fiuu", config: n.value } : (a.value.gateways || (a.value.gateways = []), a.value.gateways.push({ gateway: "Fiuu", config: n.value })), d.onUpdate(a.value);
|
177
177
|
})
|
178
178
|
}, {
|
179
179
|
default: q(() => [
|
@@ -181,7 +181,7 @@ const Z = /* @__PURE__ */ T({
|
|
181
181
|
modelValue: n.value.packageId,
|
182
182
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => n.value.packageId = w),
|
183
183
|
label: "Package ID",
|
184
|
-
items:
|
184
|
+
items: c.filter((w) => w.region === _(e))
|
185
185
|
}, null, 8, ["modelValue", "items"]),
|
186
186
|
I(r, {
|
187
187
|
modelValue: n.value.uniqueId,
|
@@ -221,7 +221,7 @@ const Z = /* @__PURE__ */ T({
|
|
221
221
|
}
|
222
222
|
},
|
223
223
|
setup(y) {
|
224
|
-
const
|
224
|
+
const d = y, e = M(() => d.terminal), c = F(), a = F(-1), o = F({
|
225
225
|
merchantId: "",
|
226
226
|
terminalId: "",
|
227
227
|
privateKey: ""
|
@@ -244,15 +244,15 @@ const Z = /* @__PURE__ */ T({
|
|
244
244
|
D(e, n), G(n);
|
245
245
|
async function p(i) {
|
246
246
|
var l;
|
247
|
-
(l = e.value.ecrs) == null || l.splice(i, 1),
|
247
|
+
(l = e.value.ecrs) == null || l.splice(i, 1), d.onUpdate(e.value);
|
248
248
|
}
|
249
249
|
return (i, l) => {
|
250
250
|
const s = f("FmTextField"), u = f("FmTextarea"), t = f("FmButton"), r = f("FmForm");
|
251
251
|
return b(), x(r, {
|
252
|
-
ref:
|
252
|
+
ref: c.value,
|
253
253
|
class: "flex flex-col gap-16 w-[500px]",
|
254
254
|
onValidationSuccess: l[3] || (l[3] = () => {
|
255
|
-
a.value > -1 ? e.value.ecrs[a.value] = { gateway: "Ghl", config: o.value } : (e.value.ecrs || (e.value.ecrs = []), e.value.ecrs.push({ gateway: "Ghl", config: o.value })),
|
255
|
+
a.value > -1 ? e.value.ecrs[a.value] = { gateway: "Ghl", config: o.value } : (e.value.ecrs || (e.value.ecrs = []), e.value.ecrs.push({ gateway: "Ghl", config: o.value })), d.onUpdate(e.value);
|
256
256
|
})
|
257
257
|
}, {
|
258
258
|
default: q(() => [
|
@@ -300,21 +300,21 @@ const Z = /* @__PURE__ */ T({
|
|
300
300
|
}
|
301
301
|
},
|
302
302
|
setup(y) {
|
303
|
-
const
|
303
|
+
const d = y, { tab: e } = H({
|
304
304
|
tab: "information"
|
305
|
-
}), { isLoading:
|
305
|
+
}), { isLoading: c, startAsyncCall: a } = R(!0), o = E(), v = Q(), n = F();
|
306
306
|
async function p(t) {
|
307
307
|
a(async () => {
|
308
308
|
try {
|
309
309
|
await C.updateById(
|
310
|
-
|
310
|
+
d.terminalId,
|
311
311
|
{
|
312
312
|
name: t.name,
|
313
313
|
status: t.status,
|
314
314
|
ecrs: t.ecrs ?? [],
|
315
315
|
gateways: t.gateways ?? []
|
316
316
|
}
|
317
|
-
), n.value = await C.readById(
|
317
|
+
), n.value = await C.readById(d.terminalId), v.open({
|
318
318
|
type: "success",
|
319
319
|
message: "Terminal updated successfully"
|
320
320
|
});
|
@@ -346,7 +346,7 @@ const Z = /* @__PURE__ */ T({
|
|
346
346
|
});
|
347
347
|
async function u() {
|
348
348
|
a(async () => {
|
349
|
-
n.value = await C.readById(
|
349
|
+
n.value = await C.readById(d.terminalId), n.value.deviceType !== "TERMINAL" && (i.push({
|
350
350
|
label: "FeedMe Terminal",
|
351
351
|
value: "terminal",
|
352
352
|
icon: "shopping_cart_checkout",
|
@@ -364,7 +364,7 @@ const Z = /* @__PURE__ */ T({
|
|
364
364
|
const m = f("FmTabs");
|
365
365
|
return b(), x(A, {
|
366
366
|
title: `Terminal (${(k = n.value) == null ? void 0 : k._id})`,
|
367
|
-
loading: _(
|
367
|
+
loading: _(c),
|
368
368
|
onBack: _(o).back
|
369
369
|
}, {
|
370
370
|
default: q(() => [
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as V, withCtx as T, createElementVNode as _, toDisplayString as Y, createElementBlock as A, unref as d, createVNode as f, Fragment as $, renderList as C, ref as O, watch as v, isRef as I, h as y } from "vue";
|
2
|
-
import { g as P, a as U, t as g, b as B, c as N } from "./assets-
|
2
|
+
import { g as P, a as U, t as g, b as B, c as N } from "./assets-BwS-N5IN.js";
|
3
3
|
import { h as w } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as G } from "./index-
|
4
|
+
import { u as G } from "./index-DDFIpPJy.js";
|
5
5
|
import { _ as L } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
6
6
|
import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
7
7
|
import { useSnackbar as Q, useDialog as z } from "@feedmepos/ui-library";
|
8
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
9
9
|
import { u as D } from "./error-K1CakhA9.js";
|
10
10
|
import { _ as H } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
11
|
-
import { g as J } from "./grafana-
|
12
|
-
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-
|
13
|
-
import { e as S } from "./index-
|
11
|
+
import { g as J } from "./grafana-ysrdKpe6.js";
|
12
|
+
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-Iz1uC_Gw.js";
|
13
|
+
import { e as S } from "./index-DrJyWI2l.js";
|
14
14
|
import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
15
15
|
const Z = /* @__PURE__ */ b({
|
16
16
|
__name: "Status",
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as B, ref as g, watch as E, computed as I, onMounted as J, resolveComponent as y, openBlock as v, createElementBlock as P, Fragment as Y, unref as t, createBlock as N, createCommentVNode as O, withCtx as T, createVNode as i, renderList as k, createElementVNode as V, isRef as b } from "vue";
|
2
|
-
import { t as L, b as G } from "./assets-
|
3
|
-
import { u as K, _ as C } from "./index-
|
4
|
-
import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { t as L, b as G } from "./assets-BwS-N5IN.js";
|
3
|
+
import { u as K, _ as C } from "./index-DrJyWI2l.js";
|
4
|
+
import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-vH38H_Lw.js";
|
5
5
|
import { h as $ } from "./moment-h96o7c8I.js";
|
6
6
|
import { useI18n as j, useCoreStore as q } from "@feedmepos/mf-common";
|
7
7
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as W } from "./index-
|
8
|
+
import { u as W } from "./index-DDFIpPJy.js";
|
9
9
|
import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
10
|
import { _ as Z } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
import { _ as ee } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
12
|
-
import { p as te } from "./index-
|
13
|
-
import { t as ae } from "./index-
|
12
|
+
import { p as te } from "./index-CiOLWz3t.js";
|
13
|
+
import { t as ae } from "./index-Bgrrdm3Z.js";
|
14
14
|
const ne = /* @__PURE__ */ B({
|
15
15
|
__name: "SourceSelector",
|
16
16
|
props: {
|
@@ -58,7 +58,7 @@ const ne = /* @__PURE__ */ B({
|
|
58
58
|
}
|
59
59
|
async function R() {
|
60
60
|
return m(async () => {
|
61
|
-
let e = await ae.
|
61
|
+
let e = await ae.getBusinessTerminals();
|
62
62
|
e.length !== 0 && (u.value = e);
|
63
63
|
});
|
64
64
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as T, ref as h, onMounted as Y, watch as f, resolveComponent as V, openBlock as C, createBlock as M, unref as t, withCtx as O, createElementVNode as u, createVNode as i, isRef as y } from "vue";
|
2
|
-
import { t as g, b as S } from "./assets-
|
3
|
-
import { u as $ } from "./index-
|
4
|
-
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { t as g, b as S } from "./assets-BwS-N5IN.js";
|
3
|
+
import { u as $ } from "./index-DrJyWI2l.js";
|
4
|
+
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-vH38H_Lw.js";
|
5
5
|
import { h as x } from "./moment-h96o7c8I.js";
|
6
6
|
import { useCoreStore as k, useI18n as E } from "@feedmepos/mf-common";
|
7
7
|
import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as P } from "./index-
|
8
|
+
import { u as P } from "./index-DDFIpPJy.js";
|
9
9
|
import { _ as A } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
10
|
import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js";
|
11
11
|
import { _ as F } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|