@feedmepos/mf-payment 1.5.53-dev → 1.5.55-dev
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/{Actions.vue_vue_type_script_setup_true_lang-CkvJljZO.js → Actions.vue_vue_type_script_setup_true_lang-D_PoXVbz.js} +1 -1
- package/dist/{Chargeback-6iuWBeI2.js → Chargeback-C19-PvY0.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-OmBpXKer.js → DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js} +1 -1
- package/dist/{OnboardForm-BtriYUid.js → OnboardForm-6AxZrEAf.js} +5 -5
- package/dist/{OnboardForm--kRbMFOt.js → OnboardForm-CziPCl4D.js} +5 -5
- package/dist/{OnboardSubmission-gps62Ktl.js → OnboardSubmission-C2BYK2p1.js} +5 -5
- package/dist/{OnboardSubmission-D8aJPkMw.js → OnboardSubmission-DvWwQFy6.js} +2 -2
- package/dist/{PayoutAccount-CKungfsn.js → PayoutAccount-BKxMz4dT.js} +321 -305
- package/dist/{PayoutAccount-DBnxkII_.js → PayoutAccount-BT_92dvG.js} +63 -54
- package/dist/{PayoutAccountSetting-It0MmOKV.js → PayoutAccountSetting-CUK1KEM0.js} +436 -386
- package/dist/{Restaurant-BuxwLnR4.js → Restaurant-4cO60aVP.js} +4 -4
- package/dist/{RestaurantSetting-Dmhzr9be.js → RestaurantSetting-BhsE03YE.js} +3 -3
- package/dist/{Settlement-C89j3OZr.js → Settlement-0ajzgU77.js} +3 -3
- package/dist/{Settlement-CxsJJQp5.js → Settlement-8pr4NMy2.js} +4 -4
- package/dist/{SettlementTransactions-u27r0h8a.js → SettlementTransactions-3F4EOoyz.js} +4 -4
- package/dist/{SettlementTransactions-oc-sT18u.js → SettlementTransactions-DD285bSJ.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BESgeD2u.js → Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js} +1 -1
- package/dist/{Terminal-DKMNAvjq.js → Terminal-Sfe6Nf9j.js} +5 -5
- package/dist/{TerminalSetting-CjbtdTlL.js → TerminalSetting-KjacSx_V.js} +3 -3
- package/dist/{Transaction-BtbTjwIH.js → Transaction-44TKMEDC.js} +5 -5
- package/dist/{Transaction-CC0DaPbH.js → Transaction-hVVgSn4x.js} +9 -9
- package/dist/{TransactionOld-jcOxo0TN.js → TransactionOld-CxPbWyfm.js} +6 -6
- package/dist/api/payout/index.d.ts +1 -1
- package/dist/{app-DtWLhdzZ.js → app-CxJUOgZy.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-z1SFV5YX.js → assets-DIbq1BVX.js} +1 -1
- package/dist/{grafana-DqZQILnD.js → grafana-B0iQmK6j.js} +1 -1
- package/dist/{index-BdoKrYCJ.js → index-B0L21J1j.js} +1 -1
- package/dist/{index-BpNXNi7o.js → index-BHCs_NnD.js} +1 -1
- package/dist/{index-Kpua9F5o.js → index-BkQ7t3F6.js} +1 -1
- package/dist/{index-BKbdCXBS.js → index-C80a7-Ks.js} +7 -3
- package/dist/{index-BtpGftcM.js → index-C_Y5Sfc9.js} +1 -1
- package/dist/{index-DMhjy8uJ.js → index-CnN_MV2-.js} +2 -2
- package/dist/{index-B8KU4_R2.js → index-CxnWUe_K.js} +1 -1
- package/dist/{index-BeeoiRHZ.js → index-D0j1LZAB.js} +5259 -5239
- package/dist/{index-D2bYJt3H.js → index-XTdSN6CV.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CL_J8vkd.js → index.vue_vue_type_script_setup_true_lang-BksGFeSf.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +3 -3
- package/dist/{payout-account-DJj5A6jR.js → payout-account-CP6qQFlB.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +23 -17
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/cell/Status.vue.d.ts +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +42 -36
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +42 -36
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +42 -36
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -32
- package/dist/views/payout-account/cell/Status.vue.d.ts +1 -1
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +84 -84
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +42 -42
- package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { u as j, e as
|
|
1
|
+
import { defineComponent as U, resolveComponent as d, openBlock as b, createElementBlock as _, Fragment as $, createElementVNode as i, createVNode as l, withCtx as F, createTextVNode as C, toDisplayString as D, ref as I, watch as Z, createBlock as x, computed as G, createCommentVNode as S, isRef as q, unref as r, h as B, onMounted as ne, resolveDynamicComponent as J, normalizeProps as Q, mergeProps as W } from "vue";
|
|
2
|
+
import { p as h } from "./index-C80a7-Ks.js";
|
|
3
|
+
import { u as j, e as R } from "./index-D0j1LZAB.js";
|
|
4
4
|
import { _ as oe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
5
5
|
import { useRouter as ue } from "vue-router";
|
|
6
|
-
import { u as Y } from "./index-
|
|
7
|
-
import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Y } from "./index-BkQ7t3F6.js";
|
|
7
|
+
import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js";
|
|
8
8
|
import { P as te } from "./PDFViewer-CIPPbzWD.js";
|
|
9
9
|
import { useSnackbar as z, components as se } from "@feedmepos/ui-library";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as O } from "./error-K1CakhA9.js";
|
|
11
11
|
import { z as V, a as w } from "./validator-DzjyJnvv.js";
|
|
12
12
|
import { useCoreStore as ae } from "@feedmepos/mf-common";
|
|
13
|
-
const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */
|
|
13
|
+
const re = { class: "flex gap-16 mb-6" }, ie = { class: "flex gap-16 mb-6" }, ce = /* @__PURE__ */ U({
|
|
14
14
|
__name: "Information",
|
|
15
15
|
props: {
|
|
16
16
|
payoutAccount: {
|
|
@@ -20,9 +20,9 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
20
20
|
},
|
|
21
21
|
setup(n) {
|
|
22
22
|
return (p, e) => {
|
|
23
|
-
var
|
|
24
|
-
const
|
|
25
|
-
return
|
|
23
|
+
var s, f;
|
|
24
|
+
const m = d("FmCardHeader"), u = d("FmCardSection"), t = d("FmCard");
|
|
25
|
+
return b(), _($, null, [
|
|
26
26
|
i("div", re, [
|
|
27
27
|
l(t, {
|
|
28
28
|
horizontal: "",
|
|
@@ -30,25 +30,25 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
30
30
|
variant: "elevated"
|
|
31
31
|
}, {
|
|
32
32
|
default: F(() => [
|
|
33
|
-
l(
|
|
33
|
+
l(u, { class: "flex flex-col gap-16 justify-between" }, {
|
|
34
34
|
default: F(() => [
|
|
35
|
-
l(
|
|
35
|
+
l(m, {
|
|
36
36
|
class: "p-0",
|
|
37
37
|
title: "Account Info",
|
|
38
38
|
subtitle: ""
|
|
39
39
|
}),
|
|
40
|
-
l(
|
|
40
|
+
l(u, { class: "p-0" }, {
|
|
41
41
|
default: F(() => {
|
|
42
|
-
var c, a, o,
|
|
42
|
+
var c, a, o, y, v;
|
|
43
43
|
return [
|
|
44
44
|
e[0] || (e[0] = i("b", null, "For", -1)),
|
|
45
|
-
|
|
45
|
+
C(": " + D((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.event) + " ", 1),
|
|
46
46
|
e[1] || (e[1] = i("br", null, null, -1)),
|
|
47
47
|
e[2] || (e[2] = i("b", null, "Reference", -1)),
|
|
48
|
-
|
|
48
|
+
C(": " + D((y = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : y.id), 1),
|
|
49
49
|
e[3] || (e[3] = i("br", null, null, -1)),
|
|
50
50
|
e[4] || (e[4] = i("b", null, "Business", -1)),
|
|
51
|
-
|
|
51
|
+
C(": " + D((v = n.payoutAccount) == null ? void 0 : v.businessId), 1),
|
|
52
52
|
e[5] || (e[5] = i("br", null, null, -1))
|
|
53
53
|
];
|
|
54
54
|
}),
|
|
@@ -66,25 +66,25 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
66
66
|
variant: "elevated"
|
|
67
67
|
}, {
|
|
68
68
|
default: F(() => [
|
|
69
|
-
l(
|
|
69
|
+
l(u, { class: "flex flex-col gap-16 justify-between" }, {
|
|
70
70
|
default: F(() => [
|
|
71
|
-
l(
|
|
71
|
+
l(m, {
|
|
72
72
|
class: "p-0",
|
|
73
73
|
title: "Key Person",
|
|
74
74
|
subtitle: ""
|
|
75
75
|
}),
|
|
76
|
-
l(
|
|
76
|
+
l(u, { class: "p-0" }, {
|
|
77
77
|
default: F(() => {
|
|
78
|
-
var c, a, o,
|
|
78
|
+
var c, a, o, y, v, g, T, k;
|
|
79
79
|
return [
|
|
80
80
|
e[6] || (e[6] = i("b", null, "Email", -1)),
|
|
81
|
-
|
|
81
|
+
C(": " + D((o = (a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.keyPerson) == null ? void 0 : o.email) + " ", 1),
|
|
82
82
|
e[7] || (e[7] = i("br", null, null, -1)),
|
|
83
83
|
e[8] || (e[8] = i("b", null, "Name", -1)),
|
|
84
|
-
|
|
84
|
+
C(": " + D((g = (v = (y = n.payoutAccount) == null ? void 0 : y.store) == null ? void 0 : v.keyPerson) == null ? void 0 : g.name), 1),
|
|
85
85
|
e[9] || (e[9] = i("br", null, null, -1)),
|
|
86
86
|
e[10] || (e[10] = i("b", null, "Phone", -1)),
|
|
87
|
-
|
|
87
|
+
C(": " + D((k = (T = n.payoutAccount) == null ? void 0 : T.store.keyPerson) == null ? void 0 : k.phone), 1),
|
|
88
88
|
e[11] || (e[11] = i("br", null, null, -1))
|
|
89
89
|
];
|
|
90
90
|
}),
|
|
@@ -97,16 +97,54 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
97
97
|
_: 1
|
|
98
98
|
})
|
|
99
99
|
]),
|
|
100
|
-
|
|
100
|
+
i("div", ie, [
|
|
101
|
+
l(t, {
|
|
102
|
+
horizontal: "",
|
|
103
|
+
class: "flex-1 p-6",
|
|
104
|
+
variant: "elevated"
|
|
105
|
+
}, {
|
|
106
|
+
default: F(() => [
|
|
107
|
+
l(u, { class: "flex flex-col gap-16 justify-between" }, {
|
|
108
|
+
default: F(() => [
|
|
109
|
+
l(m, {
|
|
110
|
+
class: "p-0",
|
|
111
|
+
title: "Status Info",
|
|
112
|
+
subtitle: ""
|
|
113
|
+
}),
|
|
114
|
+
l(u, { class: "p-0" }, {
|
|
115
|
+
default: F(() => {
|
|
116
|
+
var c, a, o;
|
|
117
|
+
return [
|
|
118
|
+
e[12] || (e[12] = i("b", null, "Submission Date", -1)),
|
|
119
|
+
C(": " + D(((c = n.payoutAccount) == null ? void 0 : c.submissionDate) ?? "—"), 1),
|
|
120
|
+
e[13] || (e[13] = i("br", null, null, -1)),
|
|
121
|
+
e[14] || (e[14] = i("b", null, "Status By", -1)),
|
|
122
|
+
C(": " + D(((a = n.payoutAccount) == null ? void 0 : a.statusBy) ?? "—"), 1),
|
|
123
|
+
e[15] || (e[15] = i("br", null, null, -1)),
|
|
124
|
+
e[16] || (e[16] = i("b", null, "Status Reason", -1)),
|
|
125
|
+
C(": " + D(((o = n.payoutAccount) == null ? void 0 : o.statusReason) ?? "—"), 1),
|
|
126
|
+
e[17] || (e[17] = i("br", null, null, -1))
|
|
127
|
+
];
|
|
128
|
+
}),
|
|
129
|
+
_: 1
|
|
130
|
+
})
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
e[18] || (e[18] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
101
139
|
l(L, {
|
|
102
140
|
document: n.payoutAccount.store.exteriorPhoto,
|
|
103
141
|
"business-id": n.payoutAccount.businessId,
|
|
104
|
-
"restaurant-id": ((f = (
|
|
142
|
+
"restaurant-id": ((f = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : f.event) === "ORDERING" ? n.payoutAccount.store.id : void 0
|
|
105
143
|
}, null, 8, ["document", "business-id", "restaurant-id"])
|
|
106
144
|
], 64);
|
|
107
145
|
};
|
|
108
146
|
}
|
|
109
|
-
}),
|
|
147
|
+
}), de = { class: "flex gap-16 mb-6" }, me = { class: "flex gap-16" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = /* @__PURE__ */ U({
|
|
110
148
|
__name: "Settlement",
|
|
111
149
|
props: {
|
|
112
150
|
payoutAccount: {
|
|
@@ -116,32 +154,32 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
116
154
|
},
|
|
117
155
|
setup(n) {
|
|
118
156
|
return (p, e) => {
|
|
119
|
-
var
|
|
120
|
-
const
|
|
121
|
-
return
|
|
122
|
-
i("div",
|
|
157
|
+
var s, f, c, a;
|
|
158
|
+
const m = d("FmCardHeader"), u = d("FmCardSection"), t = d("FmCard");
|
|
159
|
+
return b(), _($, null, [
|
|
160
|
+
i("div", de, [
|
|
123
161
|
l(t, {
|
|
124
162
|
horizontal: "",
|
|
125
163
|
class: "flex-1 p-6",
|
|
126
164
|
variant: "elevated"
|
|
127
165
|
}, {
|
|
128
166
|
default: F(() => [
|
|
129
|
-
l(
|
|
167
|
+
l(u, { class: "flex flex-col gap-16 justify-between" }, {
|
|
130
168
|
default: F(() => [
|
|
131
|
-
l(
|
|
169
|
+
l(m, {
|
|
132
170
|
class: "p-0",
|
|
133
171
|
title: "Company Info",
|
|
134
172
|
subtitle: ""
|
|
135
173
|
}),
|
|
136
|
-
l(
|
|
174
|
+
l(u, { class: "p-0" }, {
|
|
137
175
|
default: F(() => {
|
|
138
|
-
var o,
|
|
176
|
+
var o, y;
|
|
139
177
|
return [
|
|
140
178
|
e[0] || (e[0] = i("b", null, "Name", -1)),
|
|
141
|
-
|
|
179
|
+
C(": " + D((o = n.payoutAccount) == null ? void 0 : o.store.companyName), 1),
|
|
142
180
|
e[1] || (e[1] = i("br", null, null, -1)),
|
|
143
181
|
e[2] || (e[2] = i("b", null, "Registration Number", -1)),
|
|
144
|
-
|
|
182
|
+
C(": " + D((y = n.payoutAccount) == null ? void 0 : y.store.regNo), 1),
|
|
145
183
|
e[3] || (e[3] = i("br", null, null, -1))
|
|
146
184
|
];
|
|
147
185
|
}),
|
|
@@ -159,25 +197,25 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
159
197
|
variant: "elevated"
|
|
160
198
|
}, {
|
|
161
199
|
default: F(() => [
|
|
162
|
-
l(
|
|
200
|
+
l(u, { class: "flex flex-col gap-16 justify-between" }, {
|
|
163
201
|
default: F(() => [
|
|
164
|
-
l(
|
|
202
|
+
l(m, {
|
|
165
203
|
class: "p-0",
|
|
166
204
|
title: "Bank Info",
|
|
167
205
|
subtitle: ""
|
|
168
206
|
}),
|
|
169
|
-
l(
|
|
207
|
+
l(u, { class: "p-0" }, {
|
|
170
208
|
default: F(() => {
|
|
171
|
-
var o,
|
|
209
|
+
var o, y, v, g, T, k;
|
|
172
210
|
return [
|
|
173
211
|
e[4] || (e[4] = i("b", null, "Bank", -1)),
|
|
174
|
-
|
|
212
|
+
C(": " + D((y = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : y.name), 1),
|
|
175
213
|
e[5] || (e[5] = i("br", null, null, -1)),
|
|
176
214
|
e[6] || (e[6] = i("b", null, "Name", -1)),
|
|
177
|
-
|
|
215
|
+
C(": " + D((g = (v = n.payoutAccount) == null ? void 0 : v.store.bank) == null ? void 0 : g.holderName), 1),
|
|
178
216
|
e[7] || (e[7] = i("br", null, null, -1)),
|
|
179
217
|
e[8] || (e[8] = i("b", null, "Number", -1)),
|
|
180
|
-
|
|
218
|
+
C(": " + D((k = (T = n.payoutAccount) == null ? void 0 : T.store.bank) == null ? void 0 : k.accountNumber), 1)
|
|
181
219
|
];
|
|
182
220
|
}),
|
|
183
221
|
_: 1
|
|
@@ -190,11 +228,11 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
190
228
|
})
|
|
191
229
|
]),
|
|
192
230
|
i("div", me, [
|
|
193
|
-
i("div",
|
|
231
|
+
i("div", pe, [
|
|
194
232
|
e[9] || (e[9] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
195
233
|
l(L, {
|
|
196
234
|
"business-id": n.payoutAccount.businessId,
|
|
197
|
-
"restaurant-id": ((f = (
|
|
235
|
+
"restaurant-id": ((f = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : f.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
|
|
198
236
|
document: n.payoutAccount.store.ssm
|
|
199
237
|
}, {
|
|
200
238
|
default: F(({ src: o }) => [
|
|
@@ -207,7 +245,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
207
245
|
_: 1
|
|
208
246
|
}, 8, ["business-id", "restaurant-id", "document"])
|
|
209
247
|
]),
|
|
210
|
-
i("div",
|
|
248
|
+
i("div", ye, [
|
|
211
249
|
e[10] || (e[10] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
212
250
|
l(L, {
|
|
213
251
|
"business-id": n.payoutAccount.businessId,
|
|
@@ -228,74 +266,74 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
228
266
|
], 64);
|
|
229
267
|
};
|
|
230
268
|
}
|
|
231
|
-
}),
|
|
269
|
+
}), fe = /* @__PURE__ */ U({
|
|
232
270
|
__name: "RateInput",
|
|
233
271
|
props: {
|
|
234
272
|
data: {},
|
|
235
273
|
onChange: { type: Function }
|
|
236
274
|
},
|
|
237
275
|
setup(n) {
|
|
238
|
-
const p = n, e =
|
|
239
|
-
return Z(e, (
|
|
240
|
-
p.onChange(parseFloat(
|
|
241
|
-
}), (
|
|
242
|
-
const t =
|
|
243
|
-
return
|
|
276
|
+
const p = n, e = I(p.data.toString());
|
|
277
|
+
return Z(e, (m) => {
|
|
278
|
+
p.onChange(parseFloat(m));
|
|
279
|
+
}), (m, u) => {
|
|
280
|
+
const t = d("FmTextField");
|
|
281
|
+
return b(), x(t, {
|
|
244
282
|
inputmode: "decimal",
|
|
245
283
|
modelValue: e.value,
|
|
246
|
-
"onUpdate:modelValue":
|
|
284
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => e.value = s)
|
|
247
285
|
}, {
|
|
248
|
-
append: F(() => [...
|
|
249
|
-
|
|
286
|
+
append: F(() => [...u[1] || (u[1] = [
|
|
287
|
+
C("%", -1)
|
|
250
288
|
])]),
|
|
251
289
|
_: 1
|
|
252
290
|
}, 8, ["modelValue"]);
|
|
253
291
|
};
|
|
254
292
|
}
|
|
255
|
-
}),
|
|
293
|
+
}), be = /* @__PURE__ */ U({
|
|
256
294
|
__name: "TPlusInput",
|
|
257
295
|
props: {
|
|
258
296
|
data: {},
|
|
259
297
|
onChange: { type: Function }
|
|
260
298
|
},
|
|
261
299
|
setup(n) {
|
|
262
|
-
const p = n, e =
|
|
263
|
-
return Z(e, (
|
|
264
|
-
p.onChange(parseInt(
|
|
265
|
-
}), (
|
|
266
|
-
const t =
|
|
267
|
-
return
|
|
300
|
+
const p = n, e = I(p.data.toString());
|
|
301
|
+
return Z(e, (m) => {
|
|
302
|
+
p.onChange(parseInt(m));
|
|
303
|
+
}), (m, u) => {
|
|
304
|
+
const t = d("FmTextField");
|
|
305
|
+
return b(), x(t, {
|
|
268
306
|
inputmode: "numeric",
|
|
269
307
|
modelValue: e.value,
|
|
270
|
-
"onUpdate:modelValue":
|
|
308
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => e.value = s)
|
|
271
309
|
}, null, 8, ["modelValue"]);
|
|
272
310
|
};
|
|
273
311
|
}
|
|
274
|
-
}), ge = /* @__PURE__ */
|
|
312
|
+
}), ge = /* @__PURE__ */ U({
|
|
275
313
|
__name: "MinimumFeeInput",
|
|
276
314
|
props: {
|
|
277
315
|
data: {},
|
|
278
316
|
onChange: { type: Function }
|
|
279
317
|
},
|
|
280
318
|
setup(n) {
|
|
281
|
-
const p = n, e =
|
|
282
|
-
return Z(e, (
|
|
283
|
-
p.onChange(parseFloat(
|
|
284
|
-
}), (
|
|
285
|
-
const t =
|
|
286
|
-
return
|
|
319
|
+
const p = n, e = I(p.data.toString());
|
|
320
|
+
return Z(e, (m) => {
|
|
321
|
+
p.onChange(parseFloat(m));
|
|
322
|
+
}), (m, u) => {
|
|
323
|
+
const t = d("FmTextField");
|
|
324
|
+
return b(), x(t, {
|
|
287
325
|
inputmode: "numeric",
|
|
288
326
|
modelValue: e.value,
|
|
289
|
-
"onUpdate:modelValue":
|
|
327
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => e.value = s)
|
|
290
328
|
}, {
|
|
291
|
-
prepend: F(() => [...
|
|
292
|
-
|
|
329
|
+
prepend: F(() => [...u[1] || (u[1] = [
|
|
330
|
+
C("$", -1)
|
|
293
331
|
])]),
|
|
294
332
|
_: 1
|
|
295
333
|
}, 8, ["modelValue"]);
|
|
296
334
|
};
|
|
297
335
|
}
|
|
298
|
-
}),
|
|
336
|
+
}), Fe = { class: "flex gap-16 mt-6" }, xe = { class: "flex-1" }, Ve = { class: "flex-1" }, we = { class: "my-6 w-full flex justify-end" }, Ae = { class: "w-[320px]" }, ke = /* @__PURE__ */ U({
|
|
299
337
|
__name: "PaymentStatus",
|
|
300
338
|
props: {
|
|
301
339
|
onUpdate: {
|
|
@@ -308,27 +346,27 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
308
346
|
}
|
|
309
347
|
},
|
|
310
348
|
setup(n) {
|
|
311
|
-
const p = n, e =
|
|
349
|
+
const p = n, e = I(!1), m = z(), u = async (a) => {
|
|
312
350
|
try {
|
|
313
|
-
e.value = !0, await p.onUpdate(a),
|
|
351
|
+
e.value = !0, await p.onUpdate(a), m.open({
|
|
314
352
|
type: "success",
|
|
315
353
|
title: "Payout account update succesfully"
|
|
316
354
|
});
|
|
317
355
|
} catch (o) {
|
|
318
|
-
|
|
356
|
+
m.open({
|
|
319
357
|
type: "error",
|
|
320
358
|
title: "Error occurs when updating payout account",
|
|
321
|
-
message:
|
|
359
|
+
message: O(o)
|
|
322
360
|
});
|
|
323
361
|
} finally {
|
|
324
362
|
e.value = !1;
|
|
325
363
|
}
|
|
326
364
|
}, { search: t } = Y({
|
|
327
365
|
search: ""
|
|
328
|
-
}),
|
|
329
|
-
const { ssm: a, bank: o, bankStatement:
|
|
330
|
-
return a && o && o.name && o.accountNumber && o.holderName &&
|
|
331
|
-
}), f =
|
|
366
|
+
}), s = G(() => {
|
|
367
|
+
const { ssm: a, bank: o, bankStatement: y } = p.payoutAccount.store;
|
|
368
|
+
return a && o && o.name && o.accountNumber && o.holderName && y;
|
|
369
|
+
}), f = I(""), c = [
|
|
332
370
|
{
|
|
333
371
|
header: () => "Payment Method",
|
|
334
372
|
accessorKey: "issuer",
|
|
@@ -339,14 +377,14 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
339
377
|
accessorKey: "rate",
|
|
340
378
|
cell: ({ row: a }) => {
|
|
341
379
|
let o = 0;
|
|
342
|
-
return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)),
|
|
380
|
+
return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(fe, {
|
|
343
381
|
data: o,
|
|
344
|
-
onChange: (
|
|
345
|
-
const
|
|
346
|
-
|
|
382
|
+
onChange: (y) => {
|
|
383
|
+
const v = p.payoutAccount.methods.at(a.index);
|
|
384
|
+
v.rate || (v.rate = {
|
|
347
385
|
amount: 0,
|
|
348
386
|
precision: 4
|
|
349
|
-
}),
|
|
387
|
+
}), v.rate.amount = y * Math.pow(10, v.rate.precision);
|
|
350
388
|
}
|
|
351
389
|
});
|
|
352
390
|
}
|
|
@@ -356,14 +394,14 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
356
394
|
accessorKey: "minimumFee",
|
|
357
395
|
cell: ({ row: a }) => {
|
|
358
396
|
let o = 0;
|
|
359
|
-
return a.original.minimumFee && (o = a.original.minimumFee.amount / Math.pow(10, a.original.minimumFee.precision)),
|
|
397
|
+
return a.original.minimumFee && (o = a.original.minimumFee.amount / Math.pow(10, a.original.minimumFee.precision)), B(ge, {
|
|
360
398
|
data: o,
|
|
361
|
-
onChange: (
|
|
362
|
-
const
|
|
363
|
-
|
|
399
|
+
onChange: (y) => {
|
|
400
|
+
const v = p.payoutAccount.methods.at(a.index);
|
|
401
|
+
v.minimumFee || (v.minimumFee = {
|
|
364
402
|
amount: 0,
|
|
365
403
|
precision: 2
|
|
366
|
-
}),
|
|
404
|
+
}), v.minimumFee.amount = y * Math.pow(10, v.minimumFee.precision);
|
|
367
405
|
}
|
|
368
406
|
});
|
|
369
407
|
}
|
|
@@ -371,101 +409,113 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
371
409
|
{
|
|
372
410
|
header: () => "T plus",
|
|
373
411
|
accessorKey: "tPlus",
|
|
374
|
-
cell: ({ row: a }) =>
|
|
412
|
+
cell: ({ row: a }) => B(be, {
|
|
375
413
|
data: a.original.tPlus ?? 0,
|
|
376
414
|
onChange: (o) => {
|
|
377
|
-
const
|
|
378
|
-
|
|
415
|
+
const y = p.payoutAccount.methods.at(a.index);
|
|
416
|
+
y.tPlus = o;
|
|
379
417
|
}
|
|
380
418
|
})
|
|
381
419
|
}
|
|
382
420
|
];
|
|
383
421
|
return (a, o) => {
|
|
384
|
-
const
|
|
385
|
-
return
|
|
386
|
-
i("div",
|
|
387
|
-
i("div",
|
|
388
|
-
l(
|
|
422
|
+
const y = d("FmRadio"), v = d("FmRadioGroup"), g = d("FmInput"), T = d("FmSwitch"), k = d("FmSearch"), P = d("FmTable"), N = d("FmButton");
|
|
423
|
+
return b(), _($, null, [
|
|
424
|
+
i("div", Fe, [
|
|
425
|
+
i("div", xe, [
|
|
426
|
+
l(v, {
|
|
389
427
|
modelValue: n.payoutAccount.status,
|
|
390
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
428
|
+
"onUpdate:modelValue": o[0] || (o[0] = (A) => n.payoutAccount.status = A),
|
|
391
429
|
label: "Account Status"
|
|
392
430
|
}, {
|
|
393
431
|
default: F(() => [
|
|
394
|
-
l(
|
|
432
|
+
l(y, {
|
|
395
433
|
value: "NEW",
|
|
396
434
|
label: "New"
|
|
397
435
|
}),
|
|
398
|
-
l(
|
|
436
|
+
l(y, {
|
|
399
437
|
value: "PENDING",
|
|
400
438
|
label: "Pending"
|
|
401
439
|
}),
|
|
402
|
-
l(
|
|
440
|
+
l(y, {
|
|
403
441
|
value: "APPROVED",
|
|
404
442
|
label: "Approved"
|
|
443
|
+
}),
|
|
444
|
+
l(y, {
|
|
445
|
+
value: "REJECTED",
|
|
446
|
+
label: "Rejected"
|
|
405
447
|
})
|
|
406
448
|
]),
|
|
407
449
|
_: 1
|
|
408
|
-
}, 8, ["modelValue"])
|
|
450
|
+
}, 8, ["modelValue"]),
|
|
451
|
+
n.payoutAccount.status === "REJECTED" ? (b(), x(g, {
|
|
452
|
+
key: 0,
|
|
453
|
+
modelValue: n.payoutAccount.statusReason,
|
|
454
|
+
"onUpdate:modelValue": o[1] || (o[1] = (A) => n.payoutAccount.statusReason = A),
|
|
455
|
+
class: "mt-4",
|
|
456
|
+
label: "Rejection Reason",
|
|
457
|
+
placeholder: "Enter reason for rejection..."
|
|
458
|
+
}, null, 8, ["modelValue"])) : S("", !0)
|
|
409
459
|
]),
|
|
410
|
-
i("div",
|
|
411
|
-
l(
|
|
460
|
+
i("div", Ve, [
|
|
461
|
+
l(T, {
|
|
412
462
|
modelValue: n.payoutAccount.enable,
|
|
413
|
-
"onUpdate:modelValue": o[
|
|
414
|
-
disabled: !
|
|
463
|
+
"onUpdate:modelValue": o[2] || (o[2] = (A) => n.payoutAccount.enable = A),
|
|
464
|
+
disabled: !s.value,
|
|
415
465
|
label: "Enabled",
|
|
416
466
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
417
467
|
}, null, 8, ["modelValue", "disabled"])
|
|
418
468
|
])
|
|
419
469
|
]),
|
|
420
|
-
n.payoutAccount.enable ? (
|
|
421
|
-
i("div",
|
|
422
|
-
i("div",
|
|
423
|
-
l(
|
|
424
|
-
modelValue:
|
|
425
|
-
"onUpdate:modelValue": o[
|
|
470
|
+
n.payoutAccount.enable ? (b(), _($, { key: 0 }, [
|
|
471
|
+
i("div", we, [
|
|
472
|
+
i("div", Ae, [
|
|
473
|
+
l(k, {
|
|
474
|
+
modelValue: r(t),
|
|
475
|
+
"onUpdate:modelValue": o[3] || (o[3] = (A) => q(t) ? t.value = A : null),
|
|
426
476
|
placeholder: "Search Method ..."
|
|
427
477
|
}, null, 8, ["modelValue"])
|
|
428
478
|
])
|
|
429
479
|
]),
|
|
430
|
-
l(
|
|
480
|
+
l(P, {
|
|
431
481
|
class: "mt-6",
|
|
432
482
|
modelValue: f.value,
|
|
433
|
-
"onUpdate:modelValue": o[
|
|
483
|
+
"onUpdate:modelValue": o[4] || (o[4] = (A) => f.value = A),
|
|
434
484
|
"shrink-at": !1,
|
|
435
|
-
"search-value":
|
|
485
|
+
"search-value": r(t),
|
|
436
486
|
"row-data": n.payoutAccount.methods,
|
|
437
487
|
"column-defs": c
|
|
438
488
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
439
|
-
], 64)) :
|
|
440
|
-
l(
|
|
489
|
+
], 64)) : S("", !0),
|
|
490
|
+
l(N, {
|
|
441
491
|
class: "w-full mt-6",
|
|
442
492
|
variant: "primary",
|
|
443
493
|
label: "Save",
|
|
444
494
|
loading: e.value,
|
|
445
|
-
onclick: () =>
|
|
495
|
+
onclick: () => u(n.payoutAccount)
|
|
446
496
|
}, null, 8, ["loading", "onclick"])
|
|
447
497
|
], 64);
|
|
448
498
|
};
|
|
449
499
|
}
|
|
450
|
-
}),
|
|
500
|
+
}), Ce = { class: "flex" }, Ue = /* @__PURE__ */ U({
|
|
451
501
|
__name: "Actions",
|
|
452
502
|
emits: ["edit", "delete"],
|
|
453
503
|
setup(n, { emit: p }) {
|
|
454
504
|
const e = p;
|
|
455
|
-
return (
|
|
456
|
-
const t =
|
|
457
|
-
return
|
|
505
|
+
return (m, u) => {
|
|
506
|
+
const t = d("FmButton");
|
|
507
|
+
return b(), _("div", Ce, [
|
|
458
508
|
l(t, {
|
|
459
509
|
variant: "plain",
|
|
460
510
|
"prepend-icon": "delete",
|
|
461
|
-
onClick:
|
|
462
|
-
|
|
511
|
+
onClick: u[0] || (u[0] = (s) => {
|
|
512
|
+
s.stopPropagation(), e("delete");
|
|
463
513
|
})
|
|
464
514
|
})
|
|
465
515
|
]);
|
|
466
516
|
};
|
|
467
517
|
}
|
|
468
|
-
}),
|
|
518
|
+
}), Te = { class: "flex justify-end px-6 pb-6" }, Ie = /* @__PURE__ */ U({
|
|
469
519
|
__name: "PaymentChannel",
|
|
470
520
|
props: {
|
|
471
521
|
payoutAccount: {
|
|
@@ -474,17 +524,17 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
474
524
|
}
|
|
475
525
|
},
|
|
476
526
|
setup(n) {
|
|
477
|
-
const p = z(), e = n, { isLoading:
|
|
478
|
-
function
|
|
479
|
-
|
|
480
|
-
t.value = await
|
|
527
|
+
const p = z(), e = n, { isLoading: m, startAsyncCall: u } = j(), t = I([]);
|
|
528
|
+
function s() {
|
|
529
|
+
u(async () => {
|
|
530
|
+
t.value = await h.getChannels(e.payoutAccount._id);
|
|
481
531
|
});
|
|
482
532
|
}
|
|
483
|
-
ne(
|
|
533
|
+
ne(s);
|
|
484
534
|
function f() {
|
|
485
|
-
|
|
535
|
+
u(async () => {
|
|
486
536
|
try {
|
|
487
|
-
await
|
|
537
|
+
await h.updateChannels(e.payoutAccount._id, t.value), p.open({
|
|
488
538
|
type: "success",
|
|
489
539
|
title: "Payout account channels update succesfully"
|
|
490
540
|
});
|
|
@@ -492,15 +542,15 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
492
542
|
p.open({
|
|
493
543
|
type: "error",
|
|
494
544
|
title: "Error occurs when updating payout account channels",
|
|
495
|
-
message:
|
|
545
|
+
message: O(o)
|
|
496
546
|
});
|
|
497
547
|
}
|
|
498
548
|
});
|
|
499
549
|
}
|
|
500
550
|
function c() {
|
|
501
|
-
|
|
551
|
+
u(async () => {
|
|
502
552
|
try {
|
|
503
|
-
await
|
|
553
|
+
await h.resetChannels(e.payoutAccount._id), t.value = await h.getChannels(e.payoutAccount._id), p.open({
|
|
504
554
|
type: "success",
|
|
505
555
|
title: "Payout account channels reset succesfully"
|
|
506
556
|
});
|
|
@@ -508,7 +558,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
508
558
|
p.open({
|
|
509
559
|
type: "error",
|
|
510
560
|
title: "Error occurs when reset payout account channels",
|
|
511
|
-
message:
|
|
561
|
+
message: O(o)
|
|
512
562
|
});
|
|
513
563
|
}
|
|
514
564
|
});
|
|
@@ -525,29 +575,29 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
525
575
|
{
|
|
526
576
|
header: () => "Display",
|
|
527
577
|
accessorKey: "icon",
|
|
528
|
-
cell: ({ row: o }) =>
|
|
578
|
+
cell: ({ row: o }) => B("img", { src: o.original.icon, width: 32, height: 32 })
|
|
529
579
|
},
|
|
530
580
|
{
|
|
531
581
|
header: () => "Label",
|
|
532
582
|
accessorKey: "label",
|
|
533
|
-
cell: ({ row: o }) =>
|
|
583
|
+
cell: ({ row: o }) => B(se.FmTextField, {
|
|
534
584
|
modelValue: o.original.label,
|
|
535
|
-
"onUpdate:modelValue": (
|
|
585
|
+
"onUpdate:modelValue": (y) => o.original.label = y
|
|
536
586
|
})
|
|
537
587
|
},
|
|
538
588
|
{
|
|
539
589
|
id: "actions",
|
|
540
590
|
header: () => "Actions",
|
|
541
|
-
cell: ({ row: o }) =>
|
|
591
|
+
cell: ({ row: o }) => B(Ue, {
|
|
542
592
|
onDelete: () => t.value.splice(o.index, 1)
|
|
543
593
|
})
|
|
544
594
|
}
|
|
545
595
|
];
|
|
546
|
-
return (o,
|
|
547
|
-
const
|
|
548
|
-
return
|
|
549
|
-
i("div",
|
|
550
|
-
l(
|
|
596
|
+
return (o, y) => {
|
|
597
|
+
const v = d("FmButton"), g = d("FmTable");
|
|
598
|
+
return b(), _($, null, [
|
|
599
|
+
i("div", Te, [
|
|
600
|
+
l(v, {
|
|
551
601
|
class: "mx-4",
|
|
552
602
|
variant: "destructive",
|
|
553
603
|
size: "md",
|
|
@@ -555,7 +605,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
555
605
|
label: "Reset",
|
|
556
606
|
onClick: c
|
|
557
607
|
}),
|
|
558
|
-
l(
|
|
608
|
+
l(v, {
|
|
559
609
|
variant: "primary",
|
|
560
610
|
size: "md",
|
|
561
611
|
icon: "save",
|
|
@@ -563,8 +613,8 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
563
613
|
onClick: f
|
|
564
614
|
})
|
|
565
615
|
]),
|
|
566
|
-
l(
|
|
567
|
-
loading:
|
|
616
|
+
l(g, {
|
|
617
|
+
loading: r(m),
|
|
568
618
|
"row-data": t.value,
|
|
569
619
|
"column-defs": a,
|
|
570
620
|
"shrink-at": !1
|
|
@@ -572,7 +622,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
572
622
|
], 64);
|
|
573
623
|
};
|
|
574
624
|
}
|
|
575
|
-
}),
|
|
625
|
+
}), Se = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ U({
|
|
576
626
|
__name: "FiuuGateway",
|
|
577
627
|
props: {
|
|
578
628
|
gateway: {
|
|
@@ -589,46 +639,46 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
589
639
|
}
|
|
590
640
|
},
|
|
591
641
|
setup(n) {
|
|
592
|
-
var
|
|
593
|
-
const e =
|
|
642
|
+
var m;
|
|
643
|
+
const e = I(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
594
644
|
merchantId: "",
|
|
595
645
|
verifyKey: "",
|
|
596
646
|
secretKey: ""
|
|
597
647
|
});
|
|
598
|
-
return (
|
|
599
|
-
const
|
|
600
|
-
return
|
|
648
|
+
return (u, t) => {
|
|
649
|
+
const s = d("FmTextField"), f = d("FmButton"), c = d("FmForm");
|
|
650
|
+
return b(), x(c, {
|
|
601
651
|
ref: "form",
|
|
602
652
|
class: "flex flex-col gap-16",
|
|
603
653
|
onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
|
|
604
654
|
}, {
|
|
605
655
|
default: F(() => [
|
|
606
|
-
l(
|
|
656
|
+
l(s, {
|
|
607
657
|
modelValue: e.value.merchantId,
|
|
608
658
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
609
659
|
label: "Merchant ID",
|
|
610
|
-
rules:
|
|
660
|
+
rules: r(V)(r(w).string())
|
|
611
661
|
}, null, 8, ["modelValue", "rules"]),
|
|
612
|
-
l(
|
|
662
|
+
l(s, {
|
|
613
663
|
modelValue: e.value.verifyKey,
|
|
614
664
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
|
|
615
665
|
label: "Verify Key",
|
|
616
|
-
rules:
|
|
666
|
+
rules: r(V)(r(w).string())
|
|
617
667
|
}, null, 8, ["modelValue", "rules"]),
|
|
618
|
-
l(
|
|
668
|
+
l(s, {
|
|
619
669
|
modelValue: e.value.secretKey,
|
|
620
670
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
|
|
621
671
|
label: "Secret Key",
|
|
622
|
-
rules:
|
|
672
|
+
rules: r(V)(r(w).string())
|
|
623
673
|
}, null, 8, ["modelValue", "rules"]),
|
|
624
|
-
i("div",
|
|
625
|
-
n.gateway ? (
|
|
674
|
+
i("div", Se, [
|
|
675
|
+
n.gateway ? (b(), x(f, {
|
|
626
676
|
key: 0,
|
|
627
677
|
class: "flex-1",
|
|
628
678
|
variant: "secondary",
|
|
629
679
|
label: "Delete",
|
|
630
680
|
onclick: () => n.onDelete()
|
|
631
|
-
}, null, 8, ["onclick"])) :
|
|
681
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
632
682
|
l(f, {
|
|
633
683
|
type: "submit",
|
|
634
684
|
class: "flex-1",
|
|
@@ -641,7 +691,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
641
691
|
}, 512);
|
|
642
692
|
};
|
|
643
693
|
}
|
|
644
|
-
}),
|
|
694
|
+
}), Pe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ U({
|
|
645
695
|
__name: "MacauPassGateway",
|
|
646
696
|
props: {
|
|
647
697
|
gateway: {
|
|
@@ -658,60 +708,60 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
658
708
|
}
|
|
659
709
|
},
|
|
660
710
|
setup(n) {
|
|
661
|
-
var
|
|
662
|
-
const e =
|
|
711
|
+
var m;
|
|
712
|
+
const e = I(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
663
713
|
merchantId: "",
|
|
664
714
|
merchantName: "",
|
|
665
715
|
merchantCategoryCode: "",
|
|
666
716
|
storeID: "",
|
|
667
717
|
storeName: ""
|
|
668
718
|
});
|
|
669
|
-
return (
|
|
670
|
-
const
|
|
671
|
-
return
|
|
719
|
+
return (u, t) => {
|
|
720
|
+
const s = d("FmTextField"), f = d("FmButton"), c = d("FmForm");
|
|
721
|
+
return b(), x(c, {
|
|
672
722
|
ref: "form",
|
|
673
723
|
class: "flex flex-col gap-16",
|
|
674
724
|
onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
|
|
675
725
|
}, {
|
|
676
726
|
default: F(() => [
|
|
677
|
-
l(
|
|
727
|
+
l(s, {
|
|
678
728
|
modelValue: e.value.merchantId,
|
|
679
729
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
680
730
|
label: "Merchant ID",
|
|
681
|
-
rules:
|
|
731
|
+
rules: r(V)(r(w).string())
|
|
682
732
|
}, null, 8, ["modelValue", "rules"]),
|
|
683
|
-
l(
|
|
733
|
+
l(s, {
|
|
684
734
|
modelValue: e.value.merchantName,
|
|
685
735
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
|
|
686
736
|
label: "Merchant Name",
|
|
687
|
-
rules:
|
|
737
|
+
rules: r(V)(r(w).string())
|
|
688
738
|
}, null, 8, ["modelValue", "rules"]),
|
|
689
|
-
l(
|
|
739
|
+
l(s, {
|
|
690
740
|
modelValue: e.value.merchantCategoryCode,
|
|
691
741
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
|
|
692
742
|
label: "Merchant MCC",
|
|
693
|
-
rules:
|
|
743
|
+
rules: r(V)(r(w).string())
|
|
694
744
|
}, null, 8, ["modelValue", "rules"]),
|
|
695
|
-
l(
|
|
745
|
+
l(s, {
|
|
696
746
|
modelValue: e.value.storeID,
|
|
697
747
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
|
|
698
748
|
label: "Store ID",
|
|
699
|
-
rules:
|
|
749
|
+
rules: r(V)(r(w).string())
|
|
700
750
|
}, null, 8, ["modelValue", "rules"]),
|
|
701
|
-
l(
|
|
751
|
+
l(s, {
|
|
702
752
|
modelValue: e.value.storeName,
|
|
703
753
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
|
|
704
754
|
label: "Store Name",
|
|
705
|
-
rules:
|
|
755
|
+
rules: r(V)(r(w).string())
|
|
706
756
|
}, null, 8, ["modelValue", "rules"]),
|
|
707
|
-
i("div",
|
|
708
|
-
n.gateway ? (
|
|
757
|
+
i("div", Pe, [
|
|
758
|
+
n.gateway ? (b(), x(f, {
|
|
709
759
|
key: 0,
|
|
710
760
|
class: "flex-1",
|
|
711
761
|
variant: "secondary",
|
|
712
762
|
label: "Delete",
|
|
713
763
|
onclick: () => n.onDelete()
|
|
714
|
-
}, null, 8, ["onclick"])) :
|
|
764
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
715
765
|
l(f, {
|
|
716
766
|
type: "submit",
|
|
717
767
|
class: "flex-1",
|
|
@@ -724,7 +774,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
724
774
|
}, 512);
|
|
725
775
|
};
|
|
726
776
|
}
|
|
727
|
-
}),
|
|
777
|
+
}), Ne = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ U({
|
|
728
778
|
__name: "DigioGateway",
|
|
729
779
|
props: {
|
|
730
780
|
gateway: {
|
|
@@ -741,39 +791,39 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
741
791
|
}
|
|
742
792
|
},
|
|
743
793
|
setup(n) {
|
|
744
|
-
var
|
|
745
|
-
const e =
|
|
794
|
+
var m;
|
|
795
|
+
const e = I(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
746
796
|
merchantId: "",
|
|
747
797
|
cardMerchantId: ""
|
|
748
798
|
});
|
|
749
|
-
return (
|
|
750
|
-
const
|
|
751
|
-
return
|
|
799
|
+
return (u, t) => {
|
|
800
|
+
const s = d("FmTextField"), f = d("FmButton"), c = d("FmForm");
|
|
801
|
+
return b(), x(c, {
|
|
752
802
|
ref: "form",
|
|
753
803
|
class: "flex flex-col gap-16",
|
|
754
804
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
755
805
|
}, {
|
|
756
806
|
default: F(() => [
|
|
757
|
-
l(
|
|
807
|
+
l(s, {
|
|
758
808
|
modelValue: e.value.merchantId,
|
|
759
809
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
760
810
|
label: "Merchant ID",
|
|
761
|
-
rules:
|
|
811
|
+
rules: r(V)(r(w).string())
|
|
762
812
|
}, null, 8, ["modelValue", "rules"]),
|
|
763
|
-
l(
|
|
813
|
+
l(s, {
|
|
764
814
|
modelValue: e.value.cardMerchantId,
|
|
765
815
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
|
|
766
816
|
label: "Card Merchant ID",
|
|
767
|
-
rules:
|
|
817
|
+
rules: r(V)(r(w).string())
|
|
768
818
|
}, null, 8, ["modelValue", "rules"]),
|
|
769
|
-
i("div",
|
|
770
|
-
n.gateway ? (
|
|
819
|
+
i("div", Ne, [
|
|
820
|
+
n.gateway ? (b(), x(f, {
|
|
771
821
|
key: 0,
|
|
772
822
|
class: "flex-1",
|
|
773
823
|
variant: "secondary",
|
|
774
824
|
label: "Delete",
|
|
775
825
|
onclick: () => n.onDelete()
|
|
776
|
-
}, null, 8, ["onclick"])) :
|
|
826
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
777
827
|
l(f, {
|
|
778
828
|
type: "submit",
|
|
779
829
|
class: "flex-1",
|
|
@@ -786,7 +836,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
786
836
|
}, 512);
|
|
787
837
|
};
|
|
788
838
|
}
|
|
789
|
-
}),
|
|
839
|
+
}), Me = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ U({
|
|
790
840
|
__name: "AdyenGateway",
|
|
791
841
|
props: {
|
|
792
842
|
gateway: {
|
|
@@ -803,8 +853,8 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
803
853
|
}
|
|
804
854
|
},
|
|
805
855
|
setup(n) {
|
|
806
|
-
var
|
|
807
|
-
const e =
|
|
856
|
+
var m;
|
|
857
|
+
const e = I(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
808
858
|
merchantAccount: "",
|
|
809
859
|
username: "",
|
|
810
860
|
apiKey: "",
|
|
@@ -812,57 +862,57 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
812
862
|
endpoint: "",
|
|
813
863
|
hmacKey: ""
|
|
814
864
|
});
|
|
815
|
-
return (
|
|
816
|
-
const
|
|
817
|
-
return
|
|
865
|
+
return (u, t) => {
|
|
866
|
+
const s = d("FmTextField"), f = d("FmButton"), c = d("FmForm");
|
|
867
|
+
return b(), x(c, {
|
|
818
868
|
ref: "form",
|
|
819
869
|
class: "flex flex-col gap-16",
|
|
820
870
|
onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
|
|
821
871
|
}, {
|
|
822
872
|
default: F(() => [
|
|
823
|
-
l(
|
|
873
|
+
l(s, {
|
|
824
874
|
modelValue: e.value.endpoint,
|
|
825
875
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
|
|
826
876
|
label: "Endpoint",
|
|
827
|
-
rules:
|
|
877
|
+
rules: r(V)(r(w).string())
|
|
828
878
|
}, null, 8, ["modelValue", "rules"]),
|
|
829
|
-
l(
|
|
879
|
+
l(s, {
|
|
830
880
|
modelValue: e.value.merchantAccount,
|
|
831
881
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
|
|
832
882
|
label: "Merchant Account",
|
|
833
|
-
rules:
|
|
883
|
+
rules: r(V)(r(w).string())
|
|
834
884
|
}, null, 8, ["modelValue", "rules"]),
|
|
835
|
-
l(
|
|
885
|
+
l(s, {
|
|
836
886
|
modelValue: e.value.username,
|
|
837
887
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
|
|
838
888
|
label: "Username",
|
|
839
|
-
rules:
|
|
889
|
+
rules: r(V)(r(w).string())
|
|
840
890
|
}, null, 8, ["modelValue", "rules"]),
|
|
841
|
-
l(
|
|
891
|
+
l(s, {
|
|
842
892
|
modelValue: e.value.apiKey,
|
|
843
893
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
|
|
844
894
|
label: "API Key",
|
|
845
|
-
rules:
|
|
895
|
+
rules: r(V)(r(w).string())
|
|
846
896
|
}, null, 8, ["modelValue", "rules"]),
|
|
847
|
-
l(
|
|
897
|
+
l(s, {
|
|
848
898
|
modelValue: e.value.clientKey,
|
|
849
899
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
|
|
850
900
|
label: "Client Key",
|
|
851
|
-
rules:
|
|
901
|
+
rules: r(V)(r(w).string())
|
|
852
902
|
}, null, 8, ["modelValue", "rules"]),
|
|
853
|
-
l(
|
|
903
|
+
l(s, {
|
|
854
904
|
modelValue: e.value.hmacKey,
|
|
855
905
|
"onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
|
|
856
906
|
label: "HMac Key"
|
|
857
907
|
}, null, 8, ["modelValue"]),
|
|
858
|
-
i("div",
|
|
859
|
-
n.gateway ? (
|
|
908
|
+
i("div", Me, [
|
|
909
|
+
n.gateway ? (b(), x(f, {
|
|
860
910
|
key: 0,
|
|
861
911
|
class: "flex-1",
|
|
862
912
|
variant: "secondary",
|
|
863
913
|
label: "Delete",
|
|
864
914
|
onclick: () => n.onDelete()
|
|
865
|
-
}, null, 8, ["onclick"])) :
|
|
915
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
866
916
|
l(f, {
|
|
867
917
|
type: "submit",
|
|
868
918
|
class: "flex-1",
|
|
@@ -875,7 +925,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
875
925
|
}, 512);
|
|
876
926
|
};
|
|
877
927
|
}
|
|
878
|
-
}),
|
|
928
|
+
}), Ee = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ U({
|
|
879
929
|
__name: "KsherGateway",
|
|
880
930
|
props: {
|
|
881
931
|
gateway: {
|
|
@@ -892,40 +942,40 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
892
942
|
}
|
|
893
943
|
},
|
|
894
944
|
setup(n) {
|
|
895
|
-
var
|
|
896
|
-
const e =
|
|
945
|
+
var m;
|
|
946
|
+
const e = I(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
897
947
|
appId: "",
|
|
898
948
|
privateKey: ""
|
|
899
949
|
});
|
|
900
|
-
return (
|
|
901
|
-
const
|
|
902
|
-
return
|
|
950
|
+
return (u, t) => {
|
|
951
|
+
const s = d("FmTextField"), f = d("FmTextarea"), c = d("FmButton"), a = d("FmForm");
|
|
952
|
+
return b(), x(a, {
|
|
903
953
|
ref: "form",
|
|
904
954
|
class: "flex flex-col gap-16",
|
|
905
955
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
906
956
|
}, {
|
|
907
957
|
default: F(() => [
|
|
908
|
-
l(
|
|
958
|
+
l(s, {
|
|
909
959
|
modelValue: e.value.appId,
|
|
910
960
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.appId = o),
|
|
911
961
|
label: "App ID",
|
|
912
|
-
rules:
|
|
962
|
+
rules: r(V)(r(w).string())
|
|
913
963
|
}, null, 8, ["modelValue", "rules"]),
|
|
914
964
|
l(f, {
|
|
915
965
|
modelValue: e.value.privateKey,
|
|
916
966
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.privateKey = o),
|
|
917
967
|
label: "Private Key",
|
|
918
968
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
919
|
-
rules:
|
|
969
|
+
rules: r(V)(r(w).string())
|
|
920
970
|
}, null, 8, ["modelValue", "rules"]),
|
|
921
|
-
i("div",
|
|
922
|
-
n.gateway ? (
|
|
971
|
+
i("div", Ee, [
|
|
972
|
+
n.gateway ? (b(), x(c, {
|
|
923
973
|
key: 0,
|
|
924
974
|
class: "flex-1",
|
|
925
975
|
variant: "secondary",
|
|
926
976
|
label: "Delete",
|
|
927
977
|
onclick: () => n.onDelete()
|
|
928
|
-
}, null, 8, ["onclick"])) :
|
|
978
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
929
979
|
l(c, {
|
|
930
980
|
type: "submit",
|
|
931
981
|
class: "flex-1",
|
|
@@ -938,13 +988,13 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
938
988
|
}, 512);
|
|
939
989
|
};
|
|
940
990
|
}
|
|
941
|
-
}),
|
|
991
|
+
}), Ge = {
|
|
942
992
|
key: 0,
|
|
943
993
|
className: "mt-1 my-6 text-gray-600"
|
|
944
|
-
},
|
|
994
|
+
}, Be = {
|
|
945
995
|
key: 1,
|
|
946
996
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
947
|
-
},
|
|
997
|
+
}, Ke = /* @__PURE__ */ U({
|
|
948
998
|
__name: "PaymentGateway",
|
|
949
999
|
props: {
|
|
950
1000
|
payoutAccount: {
|
|
@@ -953,120 +1003,120 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
953
1003
|
}
|
|
954
1004
|
},
|
|
955
1005
|
setup(n) {
|
|
956
|
-
const p = ae().currentCountry, e = p.value,
|
|
1006
|
+
const p = ae().currentCountry, e = p.value, m = z(), { isLoading: u, startAsyncCall: t } = j(), { gatewayTab: s } = Y({
|
|
957
1007
|
gatewayTab: ""
|
|
958
1008
|
}), f = n, c = [
|
|
959
1009
|
{
|
|
960
1010
|
label: "Fiuu",
|
|
961
1011
|
value: "RAZER_MERCHANT_SERVICE",
|
|
962
|
-
render:
|
|
963
|
-
region: [
|
|
1012
|
+
render: De,
|
|
1013
|
+
region: [R.F_COUNTRY.enum.MY, R.F_COUNTRY.enum.SG]
|
|
964
1014
|
},
|
|
965
1015
|
{
|
|
966
1016
|
label: "Macau Pass",
|
|
967
1017
|
value: "MACAU_PASS",
|
|
968
|
-
render:
|
|
969
|
-
region: [
|
|
1018
|
+
render: Re,
|
|
1019
|
+
region: [R.F_COUNTRY.enum.MO]
|
|
970
1020
|
},
|
|
971
1021
|
{
|
|
972
1022
|
label: "Digio",
|
|
973
1023
|
value: "DIGIO",
|
|
974
|
-
render:
|
|
975
|
-
region: [
|
|
1024
|
+
render: _e,
|
|
1025
|
+
region: [R.F_COUNTRY.enum.TH]
|
|
976
1026
|
},
|
|
977
1027
|
{
|
|
978
1028
|
label: "Ksher",
|
|
979
1029
|
value: "KSHER",
|
|
980
|
-
render:
|
|
981
|
-
region: [
|
|
1030
|
+
render: $e,
|
|
1031
|
+
region: [R.F_COUNTRY.enum.TH]
|
|
982
1032
|
},
|
|
983
1033
|
{
|
|
984
1034
|
label: "Adyen",
|
|
985
1035
|
value: "ADYEN",
|
|
986
|
-
render:
|
|
987
|
-
region: [
|
|
1036
|
+
render: he,
|
|
1037
|
+
region: [R.F_COUNTRY.enum.MY, R.F_COUNTRY.enum.SG]
|
|
988
1038
|
}
|
|
989
|
-
], a =
|
|
1039
|
+
], a = I(
|
|
990
1040
|
f.payoutAccount.gateways ?? []
|
|
991
|
-
), o =
|
|
992
|
-
(
|
|
1041
|
+
), o = G(() => c.find((k) => k.value === s.value)), y = G(() => c.filter(
|
|
1042
|
+
(k) => k.region.includes(p.value ?? R.F_COUNTRY.enum.MY)
|
|
993
1043
|
));
|
|
994
|
-
async function
|
|
1044
|
+
async function v(k) {
|
|
995
1045
|
await t(async () => {
|
|
996
1046
|
try {
|
|
997
|
-
await
|
|
1047
|
+
await h.updateGateway(f.payoutAccount._id, k), m.open({
|
|
998
1048
|
type: "success",
|
|
999
1049
|
title: "Payout account gateways update succesfully"
|
|
1000
|
-
}),
|
|
1001
|
-
} catch (
|
|
1002
|
-
|
|
1050
|
+
}), g.value = k.length === 0;
|
|
1051
|
+
} catch (P) {
|
|
1052
|
+
m.open({
|
|
1003
1053
|
type: "error",
|
|
1004
1054
|
title: "Error occurs when updating payout account gateways",
|
|
1005
|
-
message:
|
|
1055
|
+
message: O(P)
|
|
1006
1056
|
});
|
|
1007
1057
|
}
|
|
1008
1058
|
});
|
|
1009
1059
|
}
|
|
1010
|
-
const
|
|
1011
|
-
return (
|
|
1012
|
-
var
|
|
1013
|
-
const
|
|
1014
|
-
return
|
|
1015
|
-
|
|
1060
|
+
const g = I((f.payoutAccount.gateways ?? []).length === 0), T = G(() => e !== "MY" || !g.value);
|
|
1061
|
+
return (k, P) => {
|
|
1062
|
+
var K;
|
|
1063
|
+
const N = d("FmCircularProgress"), A = d("FmSwitch"), H = d("FmTabs");
|
|
1064
|
+
return b(), _($, null, [
|
|
1065
|
+
r(e) ? (b(), _("p", Ge, [...P[2] || (P[2] = [
|
|
1016
1066
|
i("b", null, "Note: ", -1),
|
|
1017
|
-
|
|
1018
|
-
])])) :
|
|
1019
|
-
|
|
1020
|
-
l(
|
|
1021
|
-
])) : (
|
|
1022
|
-
|
|
1067
|
+
C(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1068
|
+
])])) : S("", !0),
|
|
1069
|
+
r(u) ? (b(), _("div", Be, [
|
|
1070
|
+
l(N, { size: "xxl" })
|
|
1071
|
+
])) : (b(), _($, { key: 2 }, [
|
|
1072
|
+
r(e) === "MY" ? (b(), x(A, {
|
|
1023
1073
|
key: 0,
|
|
1024
|
-
modelValue:
|
|
1025
|
-
"onUpdate:modelValue":
|
|
1074
|
+
modelValue: g.value,
|
|
1075
|
+
"onUpdate:modelValue": P[0] || (P[0] = (M) => g.value = M),
|
|
1026
1076
|
style: { "padding-bottom": "12px" },
|
|
1027
1077
|
label: "Use FeedMe's Fiuu Account?"
|
|
1028
|
-
}, null, 8, ["modelValue"])) :
|
|
1029
|
-
|
|
1078
|
+
}, null, 8, ["modelValue"])) : S("", !0),
|
|
1079
|
+
T.value ? (b(), x(H, {
|
|
1030
1080
|
key: 1,
|
|
1031
|
-
"model-value": s
|
|
1032
|
-
"onUpdate:modelValue":
|
|
1081
|
+
"model-value": r(s),
|
|
1082
|
+
"onUpdate:modelValue": P[1] || (P[1] = (M) => q(s) ? s.value = M : null),
|
|
1033
1083
|
class: "mb-6",
|
|
1034
|
-
items:
|
|
1035
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1036
|
-
|
|
1084
|
+
items: y.value
|
|
1085
|
+
}, null, 8, ["model-value", "items"])) : S("", !0),
|
|
1086
|
+
T.value && r(s) ? (b(), x(J((K = o.value) == null ? void 0 : K.render), Q(W({ key: 2 }, {
|
|
1037
1087
|
gateway: a.value.find(
|
|
1038
1088
|
(M) => {
|
|
1039
|
-
var
|
|
1040
|
-
return M.paymentGateway === ((
|
|
1089
|
+
var E;
|
|
1090
|
+
return M.paymentGateway === ((E = o.value) == null ? void 0 : E.value);
|
|
1041
1091
|
}
|
|
1042
1092
|
),
|
|
1043
1093
|
onDelete: async () => {
|
|
1044
1094
|
a.value = a.value.filter(
|
|
1045
1095
|
(M) => {
|
|
1046
|
-
var
|
|
1047
|
-
return M.paymentGateway !== ((
|
|
1096
|
+
var E;
|
|
1097
|
+
return M.paymentGateway !== ((E = o.value) == null ? void 0 : E.value);
|
|
1048
1098
|
}
|
|
1049
|
-
),
|
|
1099
|
+
), v(a.value);
|
|
1050
1100
|
},
|
|
1051
1101
|
onUpdate: (M) => {
|
|
1052
1102
|
var X;
|
|
1053
|
-
let
|
|
1103
|
+
let E = a.value.find(
|
|
1054
1104
|
(le) => {
|
|
1055
1105
|
var ee;
|
|
1056
1106
|
return le.paymentGateway === ((ee = o.value) == null ? void 0 : ee.value);
|
|
1057
1107
|
}
|
|
1058
1108
|
);
|
|
1059
|
-
|
|
1109
|
+
E ? E.config = M : a.value.push({
|
|
1060
1110
|
paymentGateway: (X = o.value) == null ? void 0 : X.value,
|
|
1061
1111
|
config: M
|
|
1062
|
-
}),
|
|
1112
|
+
}), v(a.value);
|
|
1063
1113
|
}
|
|
1064
|
-
})), null, 16)) :
|
|
1114
|
+
})), null, 16)) : S("", !0)
|
|
1065
1115
|
], 64))
|
|
1066
1116
|
], 64);
|
|
1067
1117
|
};
|
|
1068
1118
|
}
|
|
1069
|
-
}),
|
|
1119
|
+
}), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ U({
|
|
1070
1120
|
__name: "GooglePayToken",
|
|
1071
1121
|
props: {
|
|
1072
1122
|
gateway: {
|
|
@@ -1083,7 +1133,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1083
1133
|
}
|
|
1084
1134
|
},
|
|
1085
1135
|
setup(n) {
|
|
1086
|
-
const e =
|
|
1136
|
+
const e = I(
|
|
1087
1137
|
n.gateway || {
|
|
1088
1138
|
type: "googlePay",
|
|
1089
1139
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1093,44 +1143,44 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1093
1143
|
}
|
|
1094
1144
|
}
|
|
1095
1145
|
);
|
|
1096
|
-
return (
|
|
1097
|
-
const t =
|
|
1098
|
-
return
|
|
1146
|
+
return (m, u) => {
|
|
1147
|
+
const t = d("FmTextField"), s = d("FmButton"), f = d("FmForm");
|
|
1148
|
+
return b(), x(f, {
|
|
1099
1149
|
ref: "form",
|
|
1100
1150
|
class: "flex flex-col gap-16",
|
|
1101
|
-
onValidationSuccess:
|
|
1151
|
+
onValidationSuccess: u[3] || (u[3] = () => n.onUpdate(e.value))
|
|
1102
1152
|
}, {
|
|
1103
1153
|
default: F(() => [
|
|
1104
1154
|
l(t, {
|
|
1105
1155
|
modelValue: e.value.gateway,
|
|
1106
|
-
"onUpdate:modelValue":
|
|
1156
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value.gateway = c),
|
|
1107
1157
|
label: "Gateway",
|
|
1108
1158
|
disabled: !0,
|
|
1109
|
-
rules:
|
|
1159
|
+
rules: r(V)(r(w).string())
|
|
1110
1160
|
}, null, 8, ["modelValue", "rules"]),
|
|
1111
1161
|
l(t, {
|
|
1112
1162
|
modelValue: e.value.config.gateway,
|
|
1113
|
-
"onUpdate:modelValue":
|
|
1163
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => e.value.config.gateway = c),
|
|
1114
1164
|
label: "Gateway ID",
|
|
1115
1165
|
disabled: !0,
|
|
1116
|
-
rules:
|
|
1166
|
+
rules: r(V)(r(w).string())
|
|
1117
1167
|
}, null, 8, ["modelValue", "rules"]),
|
|
1118
1168
|
l(t, {
|
|
1119
1169
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1120
|
-
"onUpdate:modelValue":
|
|
1170
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => e.value.config.gatewayMerchantId = c),
|
|
1121
1171
|
label: "Gateway Merchant ID",
|
|
1122
1172
|
disabled: !0,
|
|
1123
|
-
rules:
|
|
1173
|
+
rules: r(V)(r(w).string())
|
|
1124
1174
|
}, null, 8, ["modelValue", "rules"]),
|
|
1125
|
-
i("div",
|
|
1126
|
-
n.gateway ? (
|
|
1175
|
+
i("div", Oe, [
|
|
1176
|
+
n.gateway ? (b(), x(s, {
|
|
1127
1177
|
key: 0,
|
|
1128
1178
|
class: "flex-1",
|
|
1129
1179
|
variant: "secondary",
|
|
1130
1180
|
label: "Delete",
|
|
1131
1181
|
onclick: () => n.onDelete()
|
|
1132
|
-
}, null, 8, ["onclick"])) :
|
|
1133
|
-
l(
|
|
1182
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
1183
|
+
l(s, {
|
|
1134
1184
|
type: "submit",
|
|
1135
1185
|
class: "flex-1",
|
|
1136
1186
|
variant: "primary",
|
|
@@ -1142,7 +1192,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1142
1192
|
}, 512);
|
|
1143
1193
|
};
|
|
1144
1194
|
}
|
|
1145
|
-
}),
|
|
1195
|
+
}), je = { class: "flex mt-6 space-x-6" }, Ye = /* @__PURE__ */ U({
|
|
1146
1196
|
__name: "ApplePayToken",
|
|
1147
1197
|
props: {
|
|
1148
1198
|
gateway: {
|
|
@@ -1159,7 +1209,7 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1159
1209
|
}
|
|
1160
1210
|
},
|
|
1161
1211
|
setup(n) {
|
|
1162
|
-
const e =
|
|
1212
|
+
const e = I(
|
|
1163
1213
|
n.gateway || {
|
|
1164
1214
|
type: "applePay",
|
|
1165
1215
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1168,37 +1218,37 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1168
1218
|
}
|
|
1169
1219
|
}
|
|
1170
1220
|
);
|
|
1171
|
-
return (
|
|
1172
|
-
const t =
|
|
1173
|
-
return
|
|
1221
|
+
return (m, u) => {
|
|
1222
|
+
const t = d("FmTextField"), s = d("FmButton"), f = d("FmForm");
|
|
1223
|
+
return b(), x(f, {
|
|
1174
1224
|
ref: "form",
|
|
1175
1225
|
class: "flex flex-col gap-16",
|
|
1176
|
-
onValidationSuccess:
|
|
1226
|
+
onValidationSuccess: u[2] || (u[2] = () => n.onUpdate(e.value))
|
|
1177
1227
|
}, {
|
|
1178
1228
|
default: F(() => [
|
|
1179
1229
|
l(t, {
|
|
1180
1230
|
modelValue: e.value.gateway,
|
|
1181
|
-
"onUpdate:modelValue":
|
|
1231
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value.gateway = c),
|
|
1182
1232
|
label: "Gateway",
|
|
1183
1233
|
disabled: !0,
|
|
1184
|
-
rules:
|
|
1234
|
+
rules: r(V)(r(w).string())
|
|
1185
1235
|
}, null, 8, ["modelValue", "rules"]),
|
|
1186
1236
|
l(t, {
|
|
1187
1237
|
modelValue: e.value.config.merchantId,
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1238
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => e.value.config.merchantId = c),
|
|
1189
1239
|
label: "Merchant ID",
|
|
1190
1240
|
disabled: !0,
|
|
1191
|
-
rules:
|
|
1241
|
+
rules: r(V)(r(w).string())
|
|
1192
1242
|
}, null, 8, ["modelValue", "rules"]),
|
|
1193
|
-
i("div",
|
|
1194
|
-
n.gateway ? (
|
|
1243
|
+
i("div", je, [
|
|
1244
|
+
n.gateway ? (b(), x(s, {
|
|
1195
1245
|
key: 0,
|
|
1196
1246
|
class: "flex-1",
|
|
1197
1247
|
variant: "secondary",
|
|
1198
1248
|
label: "Delete",
|
|
1199
1249
|
onclick: () => n.onDelete()
|
|
1200
|
-
}, null, 8, ["onclick"])) :
|
|
1201
|
-
l(
|
|
1250
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
|
1251
|
+
l(s, {
|
|
1202
1252
|
type: "submit",
|
|
1203
1253
|
class: "flex-1",
|
|
1204
1254
|
variant: "primary",
|
|
@@ -1210,10 +1260,10 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1210
1260
|
}, 512);
|
|
1211
1261
|
};
|
|
1212
1262
|
}
|
|
1213
|
-
}),
|
|
1263
|
+
}), ze = {
|
|
1214
1264
|
key: 0,
|
|
1215
1265
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1216
|
-
},
|
|
1266
|
+
}, He = /* @__PURE__ */ U({
|
|
1217
1267
|
__name: "TokenGateway",
|
|
1218
1268
|
props: {
|
|
1219
1269
|
payoutAccount: {
|
|
@@ -1222,86 +1272,86 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1222
1272
|
}
|
|
1223
1273
|
},
|
|
1224
1274
|
setup(n) {
|
|
1225
|
-
const p = ae().currentCountry, e = z(), { isLoading:
|
|
1275
|
+
const p = ae().currentCountry, e = z(), { isLoading: m, startAsyncCall: u } = j(), { tokenTab: t } = Y({
|
|
1226
1276
|
tokenTab: ""
|
|
1227
|
-
}),
|
|
1277
|
+
}), s = n, f = [
|
|
1228
1278
|
{
|
|
1229
1279
|
label: "Google Pay",
|
|
1230
1280
|
value: "googlePay",
|
|
1231
1281
|
icon: "android",
|
|
1232
|
-
render:
|
|
1233
|
-
region: [
|
|
1282
|
+
render: qe,
|
|
1283
|
+
region: [R.F_COUNTRY.enum.MY, R.F_COUNTRY.enum.SG]
|
|
1234
1284
|
},
|
|
1235
1285
|
{
|
|
1236
1286
|
label: "Apple Pay",
|
|
1237
1287
|
value: "applePay",
|
|
1238
1288
|
icon: "iOS",
|
|
1239
|
-
render:
|
|
1240
|
-
region: [
|
|
1289
|
+
render: Ye,
|
|
1290
|
+
region: [R.F_COUNTRY.enum.MY, R.F_COUNTRY.enum.SG]
|
|
1241
1291
|
}
|
|
1242
|
-
], c =
|
|
1243
|
-
(
|
|
1292
|
+
], c = I(s.payoutAccount.tokens ?? []), a = G(() => f.find((v) => v.value === t.value)), o = G(() => f.filter(
|
|
1293
|
+
(v) => v.region.includes(p.value ?? R.F_COUNTRY.enum.MY)
|
|
1244
1294
|
));
|
|
1245
|
-
async function v
|
|
1246
|
-
await
|
|
1295
|
+
async function y(v) {
|
|
1296
|
+
await u(async () => {
|
|
1247
1297
|
try {
|
|
1248
|
-
await
|
|
1298
|
+
await h.updateTokens(s.payoutAccount._id, v), e.open({
|
|
1249
1299
|
type: "success",
|
|
1250
1300
|
title: "Payout account tokens gateway update succesfully"
|
|
1251
1301
|
});
|
|
1252
|
-
} catch (
|
|
1302
|
+
} catch (g) {
|
|
1253
1303
|
e.open({
|
|
1254
1304
|
type: "error",
|
|
1255
1305
|
title: "Error occurs when updating payout account tokens",
|
|
1256
|
-
message:
|
|
1306
|
+
message: O(g)
|
|
1257
1307
|
});
|
|
1258
1308
|
}
|
|
1259
1309
|
});
|
|
1260
1310
|
}
|
|
1261
|
-
return (
|
|
1262
|
-
var
|
|
1263
|
-
const
|
|
1264
|
-
return
|
|
1265
|
-
|
|
1311
|
+
return (v, g) => {
|
|
1312
|
+
var P;
|
|
1313
|
+
const T = d("FmCircularProgress"), k = d("FmTabs");
|
|
1314
|
+
return b(), _($, null, [
|
|
1315
|
+
g[1] || (g[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1266
1316
|
i("b", null, "Note: "),
|
|
1267
|
-
|
|
1317
|
+
C(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
|
|
1268
1318
|
i("br"),
|
|
1269
1319
|
i("br"),
|
|
1270
1320
|
i("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1271
1321
|
i("br")
|
|
1272
1322
|
], -1)),
|
|
1273
|
-
|
|
1274
|
-
l(
|
|
1275
|
-
])) : (
|
|
1323
|
+
r(m) ? (b(), _("div", ze, [
|
|
1324
|
+
l(T, { size: "xxl" })
|
|
1325
|
+
])) : (b(), x(k, {
|
|
1276
1326
|
key: 1,
|
|
1277
|
-
"model-value":
|
|
1278
|
-
"onUpdate:modelValue":
|
|
1327
|
+
"model-value": r(t),
|
|
1328
|
+
"onUpdate:modelValue": g[0] || (g[0] = (N) => q(t) ? t.value = N : null),
|
|
1279
1329
|
class: "mb-6 mt-6",
|
|
1280
1330
|
items: o.value
|
|
1281
1331
|
}, null, 8, ["model-value", "items"])),
|
|
1282
|
-
|
|
1283
|
-
gateway: c.value.find((
|
|
1284
|
-
var
|
|
1285
|
-
return
|
|
1332
|
+
r(t) ? (b(), x(J((P = a.value) == null ? void 0 : P.render), Q(W({ key: 2 }, {
|
|
1333
|
+
gateway: c.value.find((N) => {
|
|
1334
|
+
var A;
|
|
1335
|
+
return N.type === ((A = a.value) == null ? void 0 : A.value);
|
|
1286
1336
|
}),
|
|
1287
1337
|
onDelete: async () => {
|
|
1288
|
-
c.value = c.value.filter((
|
|
1289
|
-
var
|
|
1290
|
-
return
|
|
1291
|
-
}),
|
|
1338
|
+
c.value = c.value.filter((N) => {
|
|
1339
|
+
var A;
|
|
1340
|
+
return N.type !== ((A = a.value) == null ? void 0 : A.value);
|
|
1341
|
+
}), y(c.value);
|
|
1292
1342
|
},
|
|
1293
|
-
onUpdate: (
|
|
1294
|
-
let
|
|
1295
|
-
var
|
|
1296
|
-
return H.type === ((
|
|
1343
|
+
onUpdate: (N) => {
|
|
1344
|
+
let A = c.value.find((H) => {
|
|
1345
|
+
var K;
|
|
1346
|
+
return H.type === ((K = a.value) == null ? void 0 : K.value);
|
|
1297
1347
|
});
|
|
1298
|
-
|
|
1348
|
+
A ? A.config = N : c.value.push(N), y(c.value);
|
|
1299
1349
|
}
|
|
1300
|
-
})), null, 16)) :
|
|
1350
|
+
})), null, 16)) : S("", !0)
|
|
1301
1351
|
], 64);
|
|
1302
1352
|
};
|
|
1303
1353
|
}
|
|
1304
|
-
}),
|
|
1354
|
+
}), ut = /* @__PURE__ */ U({
|
|
1305
1355
|
__name: "PayoutAccountSetting",
|
|
1306
1356
|
props: {
|
|
1307
1357
|
accountId: {
|
|
@@ -1312,80 +1362,80 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1312
1362
|
setup(n) {
|
|
1313
1363
|
const p = n, { tab: e } = Y({
|
|
1314
1364
|
tab: "information"
|
|
1315
|
-
}), { isLoading:
|
|
1316
|
-
async function f(
|
|
1317
|
-
await
|
|
1365
|
+
}), { isLoading: m, startAsyncCall: u } = j(!0), t = ue(), s = I();
|
|
1366
|
+
async function f(y) {
|
|
1367
|
+
await h.updateById(
|
|
1318
1368
|
p.accountId,
|
|
1319
|
-
|
|
1320
|
-
),
|
|
1369
|
+
y
|
|
1370
|
+
), s.value = await h.readById(p.accountId);
|
|
1321
1371
|
}
|
|
1322
1372
|
const c = [
|
|
1323
1373
|
{
|
|
1324
1374
|
label: "Information",
|
|
1325
1375
|
value: "information",
|
|
1326
1376
|
icon: "overview",
|
|
1327
|
-
render:
|
|
1377
|
+
render: ce
|
|
1328
1378
|
},
|
|
1329
1379
|
{
|
|
1330
1380
|
label: "Settlement",
|
|
1331
1381
|
value: "settlement",
|
|
1332
1382
|
icon: "payments",
|
|
1333
|
-
render:
|
|
1383
|
+
render: ve
|
|
1334
1384
|
},
|
|
1335
1385
|
{
|
|
1336
1386
|
label: "MDR Status",
|
|
1337
1387
|
value: "payment",
|
|
1338
1388
|
icon: "account_box",
|
|
1339
|
-
render:
|
|
1389
|
+
render: ke
|
|
1340
1390
|
},
|
|
1341
1391
|
{
|
|
1342
1392
|
label: "Online Gateways",
|
|
1343
1393
|
icon: "assured_workload",
|
|
1344
1394
|
value: "gateways",
|
|
1345
|
-
render:
|
|
1395
|
+
render: Ke
|
|
1346
1396
|
},
|
|
1347
1397
|
{
|
|
1348
1398
|
label: "Token Gateways",
|
|
1349
1399
|
value: "tokens",
|
|
1350
1400
|
icon: "wallet",
|
|
1351
|
-
render:
|
|
1401
|
+
render: He
|
|
1352
1402
|
},
|
|
1353
1403
|
{
|
|
1354
1404
|
label: "Online Channels",
|
|
1355
1405
|
icon: "shopping_cart",
|
|
1356
1406
|
value: "channels",
|
|
1357
|
-
render:
|
|
1407
|
+
render: Ie
|
|
1358
1408
|
}
|
|
1359
1409
|
];
|
|
1360
1410
|
function a() {
|
|
1361
|
-
|
|
1362
|
-
|
|
1411
|
+
u(async () => {
|
|
1412
|
+
s.value = await h.readById(p.accountId);
|
|
1363
1413
|
});
|
|
1364
1414
|
}
|
|
1365
1415
|
ne(a);
|
|
1366
|
-
const o =
|
|
1367
|
-
const
|
|
1368
|
-
return
|
|
1416
|
+
const o = G(() => {
|
|
1417
|
+
const y = c.reduce((v, g) => v || (g.children ? g.children.find((T) => T.value === e.value) || null : g.value === e.value ? g : null), null);
|
|
1418
|
+
return y == null ? void 0 : y.render;
|
|
1369
1419
|
});
|
|
1370
|
-
return (
|
|
1371
|
-
var
|
|
1372
|
-
const
|
|
1373
|
-
return
|
|
1374
|
-
title: `Payout Account (${(
|
|
1375
|
-
loading:
|
|
1376
|
-
onBack:
|
|
1420
|
+
return (y, v) => {
|
|
1421
|
+
var T;
|
|
1422
|
+
const g = d("FmTabs");
|
|
1423
|
+
return b(), x(oe, {
|
|
1424
|
+
title: `Payout Account (${(T = s.value) == null ? void 0 : T._id})`,
|
|
1425
|
+
loading: r(m),
|
|
1426
|
+
onBack: r(t).back
|
|
1377
1427
|
}, {
|
|
1378
1428
|
default: F(() => [
|
|
1379
|
-
l(
|
|
1380
|
-
"model-value":
|
|
1381
|
-
"onUpdate:modelValue":
|
|
1429
|
+
l(g, {
|
|
1430
|
+
"model-value": r(e),
|
|
1431
|
+
"onUpdate:modelValue": v[0] || (v[0] = (k) => q(e) ? e.value = k : null),
|
|
1382
1432
|
class: "mb-6",
|
|
1383
1433
|
items: c
|
|
1384
1434
|
}, null, 8, ["model-value"]),
|
|
1385
|
-
|
|
1386
|
-
payoutAccount:
|
|
1435
|
+
r(e) ? (b(), x(J(o.value), Q(W({ key: 0 }, {
|
|
1436
|
+
payoutAccount: s.value,
|
|
1387
1437
|
onUpdate: f
|
|
1388
|
-
})), null, 16)) :
|
|
1438
|
+
})), null, 16)) : S("", !0)
|
|
1389
1439
|
]),
|
|
1390
1440
|
_: 1
|
|
1391
1441
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1393,5 +1443,5 @@ const re = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
|
|
|
1393
1443
|
}
|
|
1394
1444
|
});
|
|
1395
1445
|
export {
|
|
1396
|
-
|
|
1446
|
+
ut as default
|
|
1397
1447
|
};
|