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