@feedmepos/mf-payment 1.5.56-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-BGkRWJ1W.js → OnboardForm-D-wyJQY9.js} +1 -1
- package/dist/{OnboardForm-0BR3jqGJ.js → OnboardForm-DvRA8ZFe.js} +1 -1
- package/dist/{PayoutAccount-BkpugJsP.js → PayoutAccount-CFlQtAoG.js} +1 -1
- package/dist/{PayoutAccount-C0halZXa.js → PayoutAccount-NlE9-0J7.js} +1 -1
- package/dist/{PayoutAccountSetting-C2mquWAV.js → PayoutAccountSetting-CZwxUzo3.js} +260 -259
- package/dist/{app-D577rfXx.js → app-C5xqFDpA.js} +5 -5
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Bo0AnO4t.js → payout-account-CrHhzFPk.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent 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
2
|
import { p as $ } from "./index-C80a7-Ks.js";
|
|
3
|
-
import { u as Y, e as
|
|
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
6
|
import { u as z } from "./index-BkQ7t3F6.js";
|
|
@@ -10,9 +10,9 @@ import { P as te } from "./PDFViewer-CIPPbzWD.js";
|
|
|
10
10
|
import { useSnackbar as H, useDialog as re, components as ie } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as q } from "./error-K1CakhA9.js";
|
|
12
12
|
import { _ as ce } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js";
|
|
13
|
-
import { z as
|
|
13
|
+
import { z as w, a as A } from "./validator-DzjyJnvv.js";
|
|
14
14
|
import { useCoreStore as ae } from "@feedmepos/mf-common";
|
|
15
|
-
const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */
|
|
15
|
+
const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */ U({
|
|
16
16
|
__name: "Information",
|
|
17
17
|
props: {
|
|
18
18
|
payoutAccount: {
|
|
@@ -21,10 +21,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(n) {
|
|
24
|
-
return (
|
|
25
|
-
var s,
|
|
24
|
+
return (f, e) => {
|
|
25
|
+
var s, v;
|
|
26
26
|
const y = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
|
|
27
|
-
return g(),
|
|
27
|
+
return g(), N(G, null, [
|
|
28
28
|
r("div", me, [
|
|
29
29
|
a(t, {
|
|
30
30
|
horizontal: "",
|
|
@@ -41,16 +41,16 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
41
41
|
}),
|
|
42
42
|
a(o, { class: "p-0" }, {
|
|
43
43
|
default: F(() => {
|
|
44
|
-
var
|
|
44
|
+
var c, l, d, m, i;
|
|
45
45
|
return [
|
|
46
46
|
e[0] || (e[0] = r("b", null, "For", -1)),
|
|
47
|
-
k(": " + I((l = (
|
|
47
|
+
k(": " + I((l = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : l.event) + " ", 1),
|
|
48
48
|
e[1] || (e[1] = r("br", null, null, -1)),
|
|
49
49
|
e[2] || (e[2] = r("b", null, "Reference", -1)),
|
|
50
|
-
k(": " + I((
|
|
50
|
+
k(": " + I((m = (d = n.payoutAccount) == null ? void 0 : d.store) == null ? void 0 : m.id), 1),
|
|
51
51
|
e[3] || (e[3] = r("br", null, null, -1)),
|
|
52
52
|
e[4] || (e[4] = r("b", null, "Business", -1)),
|
|
53
|
-
k(": " + I((
|
|
53
|
+
k(": " + I((i = n.payoutAccount) == null ? void 0 : i.businessId), 1),
|
|
54
54
|
e[5] || (e[5] = r("br", null, null, -1))
|
|
55
55
|
];
|
|
56
56
|
}),
|
|
@@ -77,13 +77,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
77
77
|
}),
|
|
78
78
|
a(o, { class: "p-0" }, {
|
|
79
79
|
default: F(() => {
|
|
80
|
-
var
|
|
80
|
+
var c, l, d, m, i, b, x, C;
|
|
81
81
|
return [
|
|
82
82
|
e[6] || (e[6] = r("b", null, "Email", -1)),
|
|
83
|
-
k(": " + I((d = (l = (
|
|
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
84
|
e[7] || (e[7] = r("br", null, null, -1)),
|
|
85
85
|
e[8] || (e[8] = r("b", null, "Name", -1)),
|
|
86
|
-
k(": " + I((b = (
|
|
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
87
|
e[9] || (e[9] = r("br", null, null, -1)),
|
|
88
88
|
e[10] || (e[10] = r("b", null, "Phone", -1)),
|
|
89
89
|
k(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.keyPerson) == null ? void 0 : C.phone), 1),
|
|
@@ -115,10 +115,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
115
115
|
}),
|
|
116
116
|
a(o, { class: "p-0" }, {
|
|
117
117
|
default: F(() => {
|
|
118
|
-
var
|
|
118
|
+
var c, l, d;
|
|
119
119
|
return [
|
|
120
120
|
e[12] || (e[12] = r("b", null, "Submission Date", -1)),
|
|
121
|
-
k(": " + I((
|
|
121
|
+
k(": " + I((c = n.payoutAccount) != null && c.submissionDate ? u(se)(n.payoutAccount.submissionDate).format(
|
|
122
122
|
"YYYY-MM-DD HH:mm:ss"
|
|
123
123
|
) : "—"), 1),
|
|
124
124
|
e[13] || (e[13] = r("br", null, null, -1)),
|
|
@@ -143,12 +143,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
143
143
|
a(L, {
|
|
144
144
|
document: n.payoutAccount.store.exteriorPhoto,
|
|
145
145
|
"business-id": n.payoutAccount.businessId,
|
|
146
|
-
"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
|
|
147
147
|
}, null, 8, ["document", "business-id", "restaurant-id"])
|
|
148
148
|
], 64);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
}), ye = { class: "flex gap-16 mb-6" },
|
|
151
|
+
}), ye = { class: "flex gap-16 mb-6" }, fe = { class: "flex gap-16" }, ve = { class: "flex-1" }, be = { class: "flex-1" }, ge = /* @__PURE__ */ U({
|
|
152
152
|
__name: "Settlement",
|
|
153
153
|
props: {
|
|
154
154
|
payoutAccount: {
|
|
@@ -157,10 +157,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
setup(n) {
|
|
160
|
-
return (
|
|
161
|
-
var s,
|
|
160
|
+
return (f, e) => {
|
|
161
|
+
var s, v, c, l;
|
|
162
162
|
const y = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
|
|
163
|
-
return g(),
|
|
163
|
+
return g(), N(G, null, [
|
|
164
164
|
r("div", ye, [
|
|
165
165
|
a(t, {
|
|
166
166
|
horizontal: "",
|
|
@@ -177,13 +177,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
177
177
|
}),
|
|
178
178
|
a(o, { class: "p-0" }, {
|
|
179
179
|
default: F(() => {
|
|
180
|
-
var d,
|
|
180
|
+
var d, m;
|
|
181
181
|
return [
|
|
182
182
|
e[0] || (e[0] = r("b", null, "Name", -1)),
|
|
183
183
|
k(": " + I((d = n.payoutAccount) == null ? void 0 : d.store.companyName), 1),
|
|
184
184
|
e[1] || (e[1] = r("br", null, null, -1)),
|
|
185
185
|
e[2] || (e[2] = r("b", null, "Registration Number", -1)),
|
|
186
|
-
k(": " + I((
|
|
186
|
+
k(": " + I((m = n.payoutAccount) == null ? void 0 : m.store.regNo), 1),
|
|
187
187
|
e[3] || (e[3] = r("br", null, null, -1))
|
|
188
188
|
];
|
|
189
189
|
}),
|
|
@@ -210,13 +210,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
210
210
|
}),
|
|
211
211
|
a(o, { class: "p-0" }, {
|
|
212
212
|
default: F(() => {
|
|
213
|
-
var d,
|
|
213
|
+
var d, m, i, b, x, C;
|
|
214
214
|
return [
|
|
215
215
|
e[4] || (e[4] = r("b", null, "Bank", -1)),
|
|
216
|
-
k(": " + I((
|
|
216
|
+
k(": " + I((m = (d = n.payoutAccount) == null ? void 0 : d.store.bank) == null ? void 0 : m.name), 1),
|
|
217
217
|
e[5] || (e[5] = r("br", null, null, -1)),
|
|
218
218
|
e[6] || (e[6] = r("b", null, "Name", -1)),
|
|
219
|
-
k(": " + I((b = (
|
|
219
|
+
k(": " + I((b = (i = n.payoutAccount) == null ? void 0 : i.store.bank) == null ? void 0 : b.holderName), 1),
|
|
220
220
|
e[7] || (e[7] = r("br", null, null, -1)),
|
|
221
221
|
e[8] || (e[8] = r("b", null, "Number", -1)),
|
|
222
222
|
k(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : C.accountNumber), 1)
|
|
@@ -231,12 +231,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
231
231
|
_: 1
|
|
232
232
|
})
|
|
233
233
|
]),
|
|
234
|
-
r("div",
|
|
235
|
-
r("div",
|
|
234
|
+
r("div", fe, [
|
|
235
|
+
r("div", ve, [
|
|
236
236
|
e[9] || (e[9] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
237
237
|
a(L, {
|
|
238
238
|
"business-id": n.payoutAccount.businessId,
|
|
239
|
-
"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,
|
|
240
240
|
document: n.payoutAccount.store.ssm
|
|
241
241
|
}, {
|
|
242
242
|
default: F(({ src: d }) => [
|
|
@@ -253,7 +253,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
253
253
|
e[10] || (e[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
254
254
|
a(L, {
|
|
255
255
|
"business-id": n.payoutAccount.businessId,
|
|
256
|
-
"restaurant-id": ((l = (
|
|
256
|
+
"restaurant-id": ((l = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : l.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
|
|
257
257
|
document: n.payoutAccount.store.bankStatement
|
|
258
258
|
}, {
|
|
259
259
|
default: F(({ src: d }) => [
|
|
@@ -270,19 +270,19 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
270
270
|
], 64);
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
}), Fe = /* @__PURE__ */
|
|
273
|
+
}), Fe = /* @__PURE__ */ U({
|
|
274
274
|
__name: "RateInput",
|
|
275
275
|
props: {
|
|
276
276
|
data: {},
|
|
277
277
|
onChange: { type: Function }
|
|
278
278
|
},
|
|
279
279
|
setup(n) {
|
|
280
|
-
const
|
|
280
|
+
const f = n, e = T(f.data.toString());
|
|
281
281
|
return Z(e, (y) => {
|
|
282
|
-
|
|
282
|
+
f.onChange(parseFloat(y));
|
|
283
283
|
}), (y, o) => {
|
|
284
284
|
const t = p("FmTextField");
|
|
285
|
-
return g(),
|
|
285
|
+
return g(), V(t, {
|
|
286
286
|
inputmode: "decimal",
|
|
287
287
|
modelValue: e.value,
|
|
288
288
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
@@ -294,38 +294,38 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
294
294
|
}, 8, ["modelValue"]);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), xe = /* @__PURE__ */
|
|
297
|
+
}), xe = /* @__PURE__ */ U({
|
|
298
298
|
__name: "TPlusInput",
|
|
299
299
|
props: {
|
|
300
300
|
data: {},
|
|
301
301
|
onChange: { type: Function }
|
|
302
302
|
},
|
|
303
303
|
setup(n) {
|
|
304
|
-
const
|
|
304
|
+
const f = n, e = T(f.data.toString());
|
|
305
305
|
return Z(e, (y) => {
|
|
306
|
-
|
|
306
|
+
f.onChange(parseInt(y));
|
|
307
307
|
}), (y, o) => {
|
|
308
308
|
const t = p("FmTextField");
|
|
309
|
-
return g(),
|
|
309
|
+
return g(), V(t, {
|
|
310
310
|
inputmode: "numeric",
|
|
311
311
|
modelValue: e.value,
|
|
312
312
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
313
313
|
}, null, 8, ["modelValue"]);
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
}),
|
|
316
|
+
}), Ve = /* @__PURE__ */ U({
|
|
317
317
|
__name: "MinimumFeeInput",
|
|
318
318
|
props: {
|
|
319
319
|
data: {},
|
|
320
320
|
onChange: { type: Function }
|
|
321
321
|
},
|
|
322
322
|
setup(n) {
|
|
323
|
-
const
|
|
323
|
+
const f = n, e = T(f.data.toString());
|
|
324
324
|
return Z(e, (y) => {
|
|
325
|
-
|
|
325
|
+
f.onChange(parseFloat(y));
|
|
326
326
|
}), (y, o) => {
|
|
327
327
|
const t = p("FmTextField");
|
|
328
|
-
return g(),
|
|
328
|
+
return g(), V(t, {
|
|
329
329
|
inputmode: "numeric",
|
|
330
330
|
modelValue: e.value,
|
|
331
331
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
@@ -337,7 +337,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
337
337
|
}, 8, ["modelValue"]);
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
}),
|
|
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({
|
|
341
341
|
__name: "PaymentStatus",
|
|
342
342
|
props: {
|
|
343
343
|
onUpdate: {
|
|
@@ -350,17 +350,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
setup(n) {
|
|
353
|
-
const
|
|
353
|
+
const f = n, e = T(!1), y = H(), o = re(), t = async (m) => {
|
|
354
354
|
try {
|
|
355
|
-
e.value = !0, await
|
|
355
|
+
e.value = !0, await f.onUpdate(m), y.open({
|
|
356
356
|
type: "success",
|
|
357
357
|
title: "Payout account update succesfully"
|
|
358
358
|
});
|
|
359
|
-
} catch (
|
|
359
|
+
} catch (i) {
|
|
360
360
|
y.open({
|
|
361
361
|
type: "error",
|
|
362
362
|
title: "Error occurs when updating payout account",
|
|
363
|
-
message: q(
|
|
363
|
+
message: q(i)
|
|
364
364
|
});
|
|
365
365
|
} finally {
|
|
366
366
|
e.value = !1;
|
|
@@ -375,29 +375,29 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
375
375
|
label: "Reason",
|
|
376
376
|
placeholder: "Enter reason for rejection..."
|
|
377
377
|
}
|
|
378
|
-
}).onPrimary((
|
|
379
|
-
|
|
378
|
+
}).onPrimary((m) => {
|
|
379
|
+
f.payoutAccount.enable = !1, f.payoutAccount.status = "REJECTED", f.payoutAccount.statusReason = m, t(f.payoutAccount), o.close();
|
|
380
380
|
});
|
|
381
|
-
}, { search:
|
|
381
|
+
}, { search: v } = z({
|
|
382
382
|
search: ""
|
|
383
|
-
}),
|
|
384
|
-
const { ssm:
|
|
385
|
-
return
|
|
386
|
-
}), l =
|
|
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 = [
|
|
387
387
|
{
|
|
388
388
|
header: () => "Payment Method",
|
|
389
389
|
accessorKey: "issuer",
|
|
390
|
-
cell: (
|
|
390
|
+
cell: (m) => `${m.row.original.issuer} (${m.row.original.variant})`
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
header: () => "Rate",
|
|
394
394
|
accessorKey: "rate",
|
|
395
|
-
cell: ({ row:
|
|
396
|
-
let
|
|
397
|
-
return
|
|
398
|
-
data:
|
|
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
399
|
onChange: (b) => {
|
|
400
|
-
const x =
|
|
400
|
+
const x = f.payoutAccount.methods.at(m.index);
|
|
401
401
|
x.rate || (x.rate = {
|
|
402
402
|
amount: 0,
|
|
403
403
|
precision: 4
|
|
@@ -409,12 +409,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
409
409
|
{
|
|
410
410
|
header: () => "Minimum Fee",
|
|
411
411
|
accessorKey: "minimumFee",
|
|
412
|
-
cell: ({ row:
|
|
413
|
-
let
|
|
414
|
-
return
|
|
415
|
-
data:
|
|
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
416
|
onChange: (b) => {
|
|
417
|
-
const x =
|
|
417
|
+
const x = f.payoutAccount.methods.at(m.index);
|
|
418
418
|
x.minimumFee || (x.minimumFee = {
|
|
419
419
|
amount: 0,
|
|
420
420
|
precision: 2
|
|
@@ -426,22 +426,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
426
426
|
{
|
|
427
427
|
header: () => "T plus",
|
|
428
428
|
accessorKey: "tPlus",
|
|
429
|
-
cell: ({ row:
|
|
430
|
-
data:
|
|
431
|
-
onChange: (
|
|
432
|
-
const b =
|
|
433
|
-
b.tPlus =
|
|
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;
|
|
434
434
|
}
|
|
435
435
|
})
|
|
436
436
|
}
|
|
437
437
|
];
|
|
438
|
-
return (
|
|
439
|
-
const b = p("FmRadio"), x = p("FmRadioGroup"), C = p("FmSwitch"), D = p("FmSearch"),
|
|
440
|
-
return g(),
|
|
441
|
-
r("div",
|
|
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
442
|
r("div", Ae, [
|
|
443
443
|
a(x, {
|
|
444
|
-
|
|
444
|
+
modelValue: n.payoutAccount.status,
|
|
445
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => n.payoutAccount.status = h),
|
|
445
446
|
label: "Account Status"
|
|
446
447
|
}, {
|
|
447
448
|
default: F(() => [
|
|
@@ -460,39 +461,39 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
460
461
|
})
|
|
461
462
|
]),
|
|
462
463
|
_: 1
|
|
463
|
-
}, 8, ["
|
|
464
|
+
}, 8, ["modelValue"])
|
|
464
465
|
]),
|
|
465
466
|
r("div", Ce, [
|
|
466
467
|
a(C, {
|
|
467
468
|
modelValue: n.payoutAccount.enable,
|
|
468
|
-
"onUpdate:modelValue":
|
|
469
|
-
disabled: !
|
|
469
|
+
"onUpdate:modelValue": i[1] || (i[1] = (h) => n.payoutAccount.enable = h),
|
|
470
|
+
disabled: !c.value,
|
|
470
471
|
label: "Enabled",
|
|
471
472
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
472
473
|
}, null, 8, ["modelValue", "disabled"])
|
|
473
474
|
])
|
|
474
475
|
]),
|
|
475
|
-
n.payoutAccount.enable ? (g(),
|
|
476
|
+
n.payoutAccount.enable ? (g(), N(G, { key: 0 }, [
|
|
476
477
|
r("div", ke, [
|
|
477
|
-
r("div",
|
|
478
|
+
r("div", Ue, [
|
|
478
479
|
a(D, {
|
|
479
|
-
modelValue: u(
|
|
480
|
-
"onUpdate:modelValue":
|
|
480
|
+
modelValue: u(v),
|
|
481
|
+
"onUpdate:modelValue": i[2] || (i[2] = (h) => j(v) ? v.value = h : null),
|
|
481
482
|
placeholder: "Search Method ..."
|
|
482
483
|
}, null, 8, ["modelValue"])
|
|
483
484
|
])
|
|
484
485
|
]),
|
|
485
|
-
a(
|
|
486
|
+
a(R, {
|
|
486
487
|
class: "mt-6",
|
|
487
488
|
modelValue: l.value,
|
|
488
|
-
"onUpdate:modelValue":
|
|
489
|
+
"onUpdate:modelValue": i[3] || (i[3] = (h) => l.value = h),
|
|
489
490
|
"shrink-at": !1,
|
|
490
|
-
"search-value": u(
|
|
491
|
+
"search-value": u(v),
|
|
491
492
|
"row-data": n.payoutAccount.methods,
|
|
492
493
|
"column-defs": d
|
|
493
494
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
494
495
|
], 64)) : S("", !0),
|
|
495
|
-
a(
|
|
496
|
+
a(_, {
|
|
496
497
|
class: "w-full mt-6",
|
|
497
498
|
variant: "primary",
|
|
498
499
|
label: "Save",
|
|
@@ -502,14 +503,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
502
503
|
], 64);
|
|
503
504
|
};
|
|
504
505
|
}
|
|
505
|
-
}), Ie = { class: "flex" }, Se = /* @__PURE__ */
|
|
506
|
+
}), Ie = { class: "flex" }, Se = /* @__PURE__ */ U({
|
|
506
507
|
__name: "Actions",
|
|
507
508
|
emits: ["edit", "delete"],
|
|
508
|
-
setup(n, { emit:
|
|
509
|
-
const e =
|
|
509
|
+
setup(n, { emit: f }) {
|
|
510
|
+
const e = f;
|
|
510
511
|
return (y, o) => {
|
|
511
512
|
const t = p("FmButton");
|
|
512
|
-
return g(),
|
|
513
|
+
return g(), N("div", Ie, [
|
|
513
514
|
a(t, {
|
|
514
515
|
variant: "plain",
|
|
515
516
|
"prepend-icon": "delete",
|
|
@@ -520,7 +521,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
520
521
|
]);
|
|
521
522
|
};
|
|
522
523
|
}
|
|
523
|
-
}), De = { class: "flex justify-end px-6 pb-6" },
|
|
524
|
+
}), De = { class: "flex justify-end px-6 pb-6" }, Pe = /* @__PURE__ */ U({
|
|
524
525
|
__name: "PaymentChannel",
|
|
525
526
|
props: {
|
|
526
527
|
payoutAccount: {
|
|
@@ -529,22 +530,22 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
529
530
|
}
|
|
530
531
|
},
|
|
531
532
|
setup(n) {
|
|
532
|
-
const
|
|
533
|
+
const f = H(), e = n, { isLoading: y, startAsyncCall: o } = Y(), t = T([]);
|
|
533
534
|
function s() {
|
|
534
535
|
o(async () => {
|
|
535
536
|
t.value = await $.getChannels(e.payoutAccount._id);
|
|
536
537
|
});
|
|
537
538
|
}
|
|
538
539
|
ne(s);
|
|
539
|
-
function
|
|
540
|
+
function v() {
|
|
540
541
|
o(async () => {
|
|
541
542
|
try {
|
|
542
|
-
await $.updateChannels(e.payoutAccount._id, t.value),
|
|
543
|
+
await $.updateChannels(e.payoutAccount._id, t.value), f.open({
|
|
543
544
|
type: "success",
|
|
544
545
|
title: "Payout account channels update succesfully"
|
|
545
546
|
});
|
|
546
547
|
} catch (d) {
|
|
547
|
-
|
|
548
|
+
f.open({
|
|
548
549
|
type: "error",
|
|
549
550
|
title: "Error occurs when updating payout account channels",
|
|
550
551
|
message: q(d)
|
|
@@ -552,15 +553,15 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
552
553
|
}
|
|
553
554
|
});
|
|
554
555
|
}
|
|
555
|
-
function
|
|
556
|
+
function c() {
|
|
556
557
|
o(async () => {
|
|
557
558
|
try {
|
|
558
|
-
await $.resetChannels(e.payoutAccount._id), t.value = await $.getChannels(e.payoutAccount._id),
|
|
559
|
+
await $.resetChannels(e.payoutAccount._id), t.value = await $.getChannels(e.payoutAccount._id), f.open({
|
|
559
560
|
type: "success",
|
|
560
561
|
title: "Payout account channels reset succesfully"
|
|
561
562
|
});
|
|
562
563
|
} catch (d) {
|
|
563
|
-
|
|
564
|
+
f.open({
|
|
564
565
|
type: "error",
|
|
565
566
|
title: "Error occurs when reset payout account channels",
|
|
566
567
|
message: q(d)
|
|
@@ -587,7 +588,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
587
588
|
accessorKey: "label",
|
|
588
589
|
cell: ({ row: d }) => K(ie.FmTextField, {
|
|
589
590
|
modelValue: d.original.label,
|
|
590
|
-
"onUpdate:modelValue": (
|
|
591
|
+
"onUpdate:modelValue": (m) => d.original.label = m
|
|
591
592
|
})
|
|
592
593
|
},
|
|
593
594
|
{
|
|
@@ -598,24 +599,24 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
598
599
|
})
|
|
599
600
|
}
|
|
600
601
|
];
|
|
601
|
-
return (d,
|
|
602
|
-
const
|
|
603
|
-
return g(),
|
|
602
|
+
return (d, m) => {
|
|
603
|
+
const i = p("FmButton"), b = p("FmTable");
|
|
604
|
+
return g(), N(G, null, [
|
|
604
605
|
r("div", De, [
|
|
605
|
-
a(
|
|
606
|
+
a(i, {
|
|
606
607
|
class: "mx-4",
|
|
607
608
|
variant: "destructive",
|
|
608
609
|
size: "md",
|
|
609
610
|
icon: "history",
|
|
610
611
|
label: "Reset",
|
|
611
|
-
onClick:
|
|
612
|
+
onClick: c
|
|
612
613
|
}),
|
|
613
|
-
a(
|
|
614
|
+
a(i, {
|
|
614
615
|
variant: "primary",
|
|
615
616
|
size: "md",
|
|
616
617
|
icon: "save",
|
|
617
618
|
label: "Save",
|
|
618
|
-
onClick:
|
|
619
|
+
onClick: v
|
|
619
620
|
})
|
|
620
621
|
]),
|
|
621
622
|
a(b, {
|
|
@@ -627,7 +628,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
627
628
|
], 64);
|
|
628
629
|
};
|
|
629
630
|
}
|
|
630
|
-
}),
|
|
631
|
+
}), Re = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ U({
|
|
631
632
|
__name: "FiuuGateway",
|
|
632
633
|
props: {
|
|
633
634
|
gateway: {
|
|
@@ -645,14 +646,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
645
646
|
},
|
|
646
647
|
setup(n) {
|
|
647
648
|
var y;
|
|
648
|
-
const e =
|
|
649
|
+
const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
|
|
649
650
|
merchantId: "",
|
|
650
651
|
verifyKey: "",
|
|
651
652
|
secretKey: ""
|
|
652
653
|
});
|
|
653
654
|
return (o, t) => {
|
|
654
|
-
const s = p("FmTextField"),
|
|
655
|
-
return g(),
|
|
655
|
+
const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
|
|
656
|
+
return g(), V(c, {
|
|
656
657
|
ref: "form",
|
|
657
658
|
class: "flex flex-col gap-16",
|
|
658
659
|
onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
|
|
@@ -662,29 +663,29 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
662
663
|
modelValue: e.value.merchantId,
|
|
663
664
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.merchantId = l),
|
|
664
665
|
label: "Merchant ID",
|
|
665
|
-
rules: u(
|
|
666
|
+
rules: u(w)(u(A).string())
|
|
666
667
|
}, null, 8, ["modelValue", "rules"]),
|
|
667
668
|
a(s, {
|
|
668
669
|
modelValue: e.value.verifyKey,
|
|
669
670
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.verifyKey = l),
|
|
670
671
|
label: "Verify Key",
|
|
671
|
-
rules: u(
|
|
672
|
+
rules: u(w)(u(A).string())
|
|
672
673
|
}, null, 8, ["modelValue", "rules"]),
|
|
673
674
|
a(s, {
|
|
674
675
|
modelValue: e.value.secretKey,
|
|
675
676
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.value.secretKey = l),
|
|
676
677
|
label: "Secret Key",
|
|
677
|
-
rules: u(
|
|
678
|
+
rules: u(w)(u(A).string())
|
|
678
679
|
}, null, 8, ["modelValue", "rules"]),
|
|
679
|
-
r("div",
|
|
680
|
-
n.gateway ? (g(),
|
|
680
|
+
r("div", Re, [
|
|
681
|
+
n.gateway ? (g(), V(v, {
|
|
681
682
|
key: 0,
|
|
682
683
|
class: "flex-1",
|
|
683
684
|
variant: "secondary",
|
|
684
685
|
label: "Delete",
|
|
685
686
|
onclick: () => n.onDelete()
|
|
686
687
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
687
|
-
a(
|
|
688
|
+
a(v, {
|
|
688
689
|
type: "submit",
|
|
689
690
|
class: "flex-1",
|
|
690
691
|
variant: "primary",
|
|
@@ -696,7 +697,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
696
697
|
}, 512);
|
|
697
698
|
};
|
|
698
699
|
}
|
|
699
|
-
}),
|
|
700
|
+
}), Ne = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ U({
|
|
700
701
|
__name: "MacauPassGateway",
|
|
701
702
|
props: {
|
|
702
703
|
gateway: {
|
|
@@ -714,7 +715,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
714
715
|
},
|
|
715
716
|
setup(n) {
|
|
716
717
|
var y;
|
|
717
|
-
const e =
|
|
718
|
+
const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
|
|
718
719
|
merchantId: "",
|
|
719
720
|
merchantName: "",
|
|
720
721
|
merchantCategoryCode: "",
|
|
@@ -722,8 +723,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
722
723
|
storeName: ""
|
|
723
724
|
});
|
|
724
725
|
return (o, t) => {
|
|
725
|
-
const s = p("FmTextField"),
|
|
726
|
-
return g(),
|
|
726
|
+
const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
|
|
727
|
+
return g(), V(c, {
|
|
727
728
|
ref: "form",
|
|
728
729
|
class: "flex flex-col gap-16",
|
|
729
730
|
onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
|
|
@@ -733,41 +734,41 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
733
734
|
modelValue: e.value.merchantId,
|
|
734
735
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.merchantId = l),
|
|
735
736
|
label: "Merchant ID",
|
|
736
|
-
rules: u(
|
|
737
|
+
rules: u(w)(u(A).string())
|
|
737
738
|
}, null, 8, ["modelValue", "rules"]),
|
|
738
739
|
a(s, {
|
|
739
740
|
modelValue: e.value.merchantName,
|
|
740
741
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.merchantName = l),
|
|
741
742
|
label: "Merchant Name",
|
|
742
|
-
rules: u(
|
|
743
|
+
rules: u(w)(u(A).string())
|
|
743
744
|
}, null, 8, ["modelValue", "rules"]),
|
|
744
745
|
a(s, {
|
|
745
746
|
modelValue: e.value.merchantCategoryCode,
|
|
746
747
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.value.merchantCategoryCode = l),
|
|
747
748
|
label: "Merchant MCC",
|
|
748
|
-
rules: u(
|
|
749
|
+
rules: u(w)(u(A).string())
|
|
749
750
|
}, null, 8, ["modelValue", "rules"]),
|
|
750
751
|
a(s, {
|
|
751
752
|
modelValue: e.value.storeID,
|
|
752
753
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => e.value.storeID = l),
|
|
753
754
|
label: "Store ID",
|
|
754
|
-
rules: u(
|
|
755
|
+
rules: u(w)(u(A).string())
|
|
755
756
|
}, null, 8, ["modelValue", "rules"]),
|
|
756
757
|
a(s, {
|
|
757
758
|
modelValue: e.value.storeName,
|
|
758
759
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => e.value.storeName = l),
|
|
759
760
|
label: "Store Name",
|
|
760
|
-
rules: u(
|
|
761
|
+
rules: u(w)(u(A).string())
|
|
761
762
|
}, null, 8, ["modelValue", "rules"]),
|
|
762
|
-
r("div",
|
|
763
|
-
n.gateway ? (g(),
|
|
763
|
+
r("div", Ne, [
|
|
764
|
+
n.gateway ? (g(), V(v, {
|
|
764
765
|
key: 0,
|
|
765
766
|
class: "flex-1",
|
|
766
767
|
variant: "secondary",
|
|
767
768
|
label: "Delete",
|
|
768
769
|
onclick: () => n.onDelete()
|
|
769
770
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
770
|
-
a(
|
|
771
|
+
a(v, {
|
|
771
772
|
type: "submit",
|
|
772
773
|
class: "flex-1",
|
|
773
774
|
variant: "primary",
|
|
@@ -779,7 +780,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
779
780
|
}, 512);
|
|
780
781
|
};
|
|
781
782
|
}
|
|
782
|
-
}), Me = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */
|
|
783
|
+
}), Me = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ U({
|
|
783
784
|
__name: "DigioGateway",
|
|
784
785
|
props: {
|
|
785
786
|
gateway: {
|
|
@@ -797,13 +798,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
797
798
|
},
|
|
798
799
|
setup(n) {
|
|
799
800
|
var y;
|
|
800
|
-
const e =
|
|
801
|
+
const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
|
|
801
802
|
merchantId: "",
|
|
802
803
|
cardMerchantId: ""
|
|
803
804
|
});
|
|
804
805
|
return (o, t) => {
|
|
805
|
-
const s = p("FmTextField"),
|
|
806
|
-
return g(),
|
|
806
|
+
const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
|
|
807
|
+
return g(), V(c, {
|
|
807
808
|
ref: "form",
|
|
808
809
|
class: "flex flex-col gap-16",
|
|
809
810
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
@@ -813,23 +814,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
813
814
|
modelValue: e.value.merchantId,
|
|
814
815
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.merchantId = l),
|
|
815
816
|
label: "Merchant ID",
|
|
816
|
-
rules: u(
|
|
817
|
+
rules: u(w)(u(A).string())
|
|
817
818
|
}, null, 8, ["modelValue", "rules"]),
|
|
818
819
|
a(s, {
|
|
819
820
|
modelValue: e.value.cardMerchantId,
|
|
820
821
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.cardMerchantId = l),
|
|
821
822
|
label: "Card Merchant ID",
|
|
822
|
-
rules: u(
|
|
823
|
+
rules: u(w)(u(A).string())
|
|
823
824
|
}, null, 8, ["modelValue", "rules"]),
|
|
824
825
|
r("div", Me, [
|
|
825
|
-
n.gateway ? (g(),
|
|
826
|
+
n.gateway ? (g(), V(v, {
|
|
826
827
|
key: 0,
|
|
827
828
|
class: "flex-1",
|
|
828
829
|
variant: "secondary",
|
|
829
830
|
label: "Delete",
|
|
830
831
|
onclick: () => n.onDelete()
|
|
831
832
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
832
|
-
a(
|
|
833
|
+
a(v, {
|
|
833
834
|
type: "submit",
|
|
834
835
|
class: "flex-1",
|
|
835
836
|
variant: "primary",
|
|
@@ -841,7 +842,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
841
842
|
}, 512);
|
|
842
843
|
};
|
|
843
844
|
}
|
|
844
|
-
}), Ee = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */
|
|
845
|
+
}), Ee = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */ U({
|
|
845
846
|
__name: "AdyenGateway",
|
|
846
847
|
props: {
|
|
847
848
|
gateway: {
|
|
@@ -859,7 +860,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
859
860
|
},
|
|
860
861
|
setup(n) {
|
|
861
862
|
var y;
|
|
862
|
-
const e =
|
|
863
|
+
const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
|
|
863
864
|
merchantAccount: "",
|
|
864
865
|
username: "",
|
|
865
866
|
apiKey: "",
|
|
@@ -868,8 +869,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
868
869
|
hmacKey: ""
|
|
869
870
|
});
|
|
870
871
|
return (o, t) => {
|
|
871
|
-
const s = p("FmTextField"),
|
|
872
|
-
return g(),
|
|
872
|
+
const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
|
|
873
|
+
return g(), V(c, {
|
|
873
874
|
ref: "form",
|
|
874
875
|
class: "flex flex-col gap-16",
|
|
875
876
|
onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
|
|
@@ -879,31 +880,31 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
879
880
|
modelValue: e.value.endpoint,
|
|
880
881
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.endpoint = l),
|
|
881
882
|
label: "Endpoint",
|
|
882
|
-
rules: u(
|
|
883
|
+
rules: u(w)(u(A).string())
|
|
883
884
|
}, null, 8, ["modelValue", "rules"]),
|
|
884
885
|
a(s, {
|
|
885
886
|
modelValue: e.value.merchantAccount,
|
|
886
887
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.merchantAccount = l),
|
|
887
888
|
label: "Merchant Account",
|
|
888
|
-
rules: u(
|
|
889
|
+
rules: u(w)(u(A).string())
|
|
889
890
|
}, null, 8, ["modelValue", "rules"]),
|
|
890
891
|
a(s, {
|
|
891
892
|
modelValue: e.value.username,
|
|
892
893
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.value.username = l),
|
|
893
894
|
label: "Username",
|
|
894
|
-
rules: u(
|
|
895
|
+
rules: u(w)(u(A).string())
|
|
895
896
|
}, null, 8, ["modelValue", "rules"]),
|
|
896
897
|
a(s, {
|
|
897
898
|
modelValue: e.value.apiKey,
|
|
898
899
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => e.value.apiKey = l),
|
|
899
900
|
label: "API Key",
|
|
900
|
-
rules: u(
|
|
901
|
+
rules: u(w)(u(A).string())
|
|
901
902
|
}, null, 8, ["modelValue", "rules"]),
|
|
902
903
|
a(s, {
|
|
903
904
|
modelValue: e.value.clientKey,
|
|
904
905
|
"onUpdate:modelValue": t[4] || (t[4] = (l) => e.value.clientKey = l),
|
|
905
906
|
label: "Client Key",
|
|
906
|
-
rules: u(
|
|
907
|
+
rules: u(w)(u(A).string())
|
|
907
908
|
}, null, 8, ["modelValue", "rules"]),
|
|
908
909
|
a(s, {
|
|
909
910
|
modelValue: e.value.hmacKey,
|
|
@@ -911,14 +912,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
911
912
|
label: "HMac Key"
|
|
912
913
|
}, null, 8, ["modelValue"]),
|
|
913
914
|
r("div", Ee, [
|
|
914
|
-
n.gateway ? (g(),
|
|
915
|
+
n.gateway ? (g(), V(v, {
|
|
915
916
|
key: 0,
|
|
916
917
|
class: "flex-1",
|
|
917
918
|
variant: "secondary",
|
|
918
919
|
label: "Delete",
|
|
919
920
|
onclick: () => n.onDelete()
|
|
920
921
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
921
|
-
a(
|
|
922
|
+
a(v, {
|
|
922
923
|
type: "submit",
|
|
923
924
|
class: "flex-1",
|
|
924
925
|
variant: "primary",
|
|
@@ -930,7 +931,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
930
931
|
}, 512);
|
|
931
932
|
};
|
|
932
933
|
}
|
|
933
|
-
}), Be = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */
|
|
934
|
+
}), Be = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ U({
|
|
934
935
|
__name: "KsherGateway",
|
|
935
936
|
props: {
|
|
936
937
|
gateway: {
|
|
@@ -948,13 +949,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
948
949
|
},
|
|
949
950
|
setup(n) {
|
|
950
951
|
var y;
|
|
951
|
-
const e =
|
|
952
|
+
const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
|
|
952
953
|
appId: "",
|
|
953
954
|
privateKey: ""
|
|
954
955
|
});
|
|
955
956
|
return (o, t) => {
|
|
956
|
-
const s = p("FmTextField"),
|
|
957
|
-
return g(),
|
|
957
|
+
const s = p("FmTextField"), v = p("FmTextarea"), c = p("FmButton"), l = p("FmForm");
|
|
958
|
+
return g(), V(l, {
|
|
958
959
|
ref: "form",
|
|
959
960
|
class: "flex flex-col gap-16",
|
|
960
961
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
@@ -964,24 +965,24 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
964
965
|
modelValue: e.value.appId,
|
|
965
966
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.value.appId = d),
|
|
966
967
|
label: "App ID",
|
|
967
|
-
rules: u(
|
|
968
|
+
rules: u(w)(u(A).string())
|
|
968
969
|
}, null, 8, ["modelValue", "rules"]),
|
|
969
|
-
a(
|
|
970
|
+
a(v, {
|
|
970
971
|
modelValue: e.value.privateKey,
|
|
971
972
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.value.privateKey = d),
|
|
972
973
|
label: "Private Key",
|
|
973
974
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
974
|
-
rules: u(
|
|
975
|
+
rules: u(w)(u(A).string())
|
|
975
976
|
}, null, 8, ["modelValue", "rules"]),
|
|
976
977
|
r("div", Be, [
|
|
977
|
-
n.gateway ? (g(),
|
|
978
|
+
n.gateway ? (g(), V(c, {
|
|
978
979
|
key: 0,
|
|
979
980
|
class: "flex-1",
|
|
980
981
|
variant: "secondary",
|
|
981
982
|
label: "Delete",
|
|
982
983
|
onclick: () => n.onDelete()
|
|
983
984
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
984
|
-
a(
|
|
985
|
+
a(c, {
|
|
985
986
|
type: "submit",
|
|
986
987
|
class: "flex-1",
|
|
987
988
|
variant: "primary",
|
|
@@ -999,7 +1000,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
999
1000
|
}, qe = {
|
|
1000
1001
|
key: 1,
|
|
1001
1002
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1002
|
-
}, je = /* @__PURE__ */
|
|
1003
|
+
}, je = /* @__PURE__ */ U({
|
|
1003
1004
|
__name: "PaymentGateway",
|
|
1004
1005
|
props: {
|
|
1005
1006
|
payoutAccount: {
|
|
@@ -1008,48 +1009,48 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1008
1009
|
}
|
|
1009
1010
|
},
|
|
1010
1011
|
setup(n) {
|
|
1011
|
-
const
|
|
1012
|
+
const f = ae().currentCountry, e = f.value, y = H(), { isLoading: o, startAsyncCall: t } = Y(), { gatewayTab: s } = z({
|
|
1012
1013
|
gatewayTab: ""
|
|
1013
|
-
}),
|
|
1014
|
+
}), v = n, c = [
|
|
1014
1015
|
{
|
|
1015
1016
|
label: "Fiuu",
|
|
1016
1017
|
value: "RAZER_MERCHANT_SERVICE",
|
|
1017
|
-
render:
|
|
1018
|
-
region: [
|
|
1018
|
+
render: _e,
|
|
1019
|
+
region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
|
|
1019
1020
|
},
|
|
1020
1021
|
{
|
|
1021
1022
|
label: "Macau Pass",
|
|
1022
1023
|
value: "MACAU_PASS",
|
|
1023
|
-
render:
|
|
1024
|
-
region: [
|
|
1024
|
+
render: he,
|
|
1025
|
+
region: [P.F_COUNTRY.enum.MO]
|
|
1025
1026
|
},
|
|
1026
1027
|
{
|
|
1027
1028
|
label: "Digio",
|
|
1028
1029
|
value: "DIGIO",
|
|
1029
1030
|
render: $e,
|
|
1030
|
-
region: [
|
|
1031
|
+
region: [P.F_COUNTRY.enum.TH]
|
|
1031
1032
|
},
|
|
1032
1033
|
{
|
|
1033
1034
|
label: "Ksher",
|
|
1034
1035
|
value: "KSHER",
|
|
1035
1036
|
render: Ke,
|
|
1036
|
-
region: [
|
|
1037
|
+
region: [P.F_COUNTRY.enum.TH]
|
|
1037
1038
|
},
|
|
1038
1039
|
{
|
|
1039
1040
|
label: "Adyen",
|
|
1040
1041
|
value: "ADYEN",
|
|
1041
1042
|
render: Ge,
|
|
1042
|
-
region: [
|
|
1043
|
+
region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
|
|
1043
1044
|
}
|
|
1044
|
-
], l =
|
|
1045
|
-
|
|
1046
|
-
), d = B(() =>
|
|
1047
|
-
(C) => C.region.includes(
|
|
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)
|
|
1048
1049
|
));
|
|
1049
|
-
async function
|
|
1050
|
+
async function i(C) {
|
|
1050
1051
|
await t(async () => {
|
|
1051
1052
|
try {
|
|
1052
|
-
await $.updateGateway(
|
|
1053
|
+
await $.updateGateway(v.payoutAccount._id, C), y.open({
|
|
1053
1054
|
type: "success",
|
|
1054
1055
|
title: "Payout account gateways update succesfully"
|
|
1055
1056
|
}), b.value = C.length === 0;
|
|
@@ -1062,48 +1063,48 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1062
1063
|
}
|
|
1063
1064
|
});
|
|
1064
1065
|
}
|
|
1065
|
-
const b =
|
|
1066
|
+
const b = T((v.payoutAccount.gateways ?? []).length === 0), x = B(() => e !== "MY" || !b.value);
|
|
1066
1067
|
return (C, D) => {
|
|
1067
1068
|
var O;
|
|
1068
|
-
const
|
|
1069
|
-
return g(),
|
|
1070
|
-
u(e) ? (g(),
|
|
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] = [
|
|
1071
1072
|
r("b", null, "Note: ", -1),
|
|
1072
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)
|
|
1073
1074
|
])])) : S("", !0),
|
|
1074
|
-
u(o) ? (g(),
|
|
1075
|
-
a(
|
|
1076
|
-
])) : (g(),
|
|
1077
|
-
u(e) === "MY" ? (g(),
|
|
1075
|
+
u(o) ? (g(), N("div", qe, [
|
|
1076
|
+
a(R, { size: "xxl" })
|
|
1077
|
+
])) : (g(), N(G, { key: 2 }, [
|
|
1078
|
+
u(e) === "MY" ? (g(), V(_, {
|
|
1078
1079
|
key: 0,
|
|
1079
1080
|
modelValue: b.value,
|
|
1080
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
1081
|
+
"onUpdate:modelValue": D[0] || (D[0] = (M) => b.value = M),
|
|
1081
1082
|
style: { "padding-bottom": "12px" },
|
|
1082
1083
|
label: "Use FeedMe's Fiuu Account?"
|
|
1083
1084
|
}, null, 8, ["modelValue"])) : S("", !0),
|
|
1084
|
-
x.value ? (g(),
|
|
1085
|
+
x.value ? (g(), V(h, {
|
|
1085
1086
|
key: 1,
|
|
1086
1087
|
"model-value": u(s),
|
|
1087
|
-
"onUpdate:modelValue": D[1] || (D[1] = (
|
|
1088
|
+
"onUpdate:modelValue": D[1] || (D[1] = (M) => j(s) ? s.value = M : null),
|
|
1088
1089
|
class: "mb-6",
|
|
1089
|
-
items:
|
|
1090
|
+
items: m.value
|
|
1090
1091
|
}, null, 8, ["model-value", "items"])) : S("", !0),
|
|
1091
|
-
x.value && u(s) ? (g(),
|
|
1092
|
+
x.value && u(s) ? (g(), V(J((O = d.value) == null ? void 0 : O.render), Q(W({ key: 2 }, {
|
|
1092
1093
|
gateway: l.value.find(
|
|
1093
|
-
(
|
|
1094
|
+
(M) => {
|
|
1094
1095
|
var E;
|
|
1095
|
-
return
|
|
1096
|
+
return M.paymentGateway === ((E = d.value) == null ? void 0 : E.value);
|
|
1096
1097
|
}
|
|
1097
1098
|
),
|
|
1098
1099
|
onDelete: async () => {
|
|
1099
1100
|
l.value = l.value.filter(
|
|
1100
|
-
(
|
|
1101
|
+
(M) => {
|
|
1101
1102
|
var E;
|
|
1102
|
-
return
|
|
1103
|
+
return M.paymentGateway !== ((E = d.value) == null ? void 0 : E.value);
|
|
1103
1104
|
}
|
|
1104
|
-
),
|
|
1105
|
+
), i(l.value);
|
|
1105
1106
|
},
|
|
1106
|
-
onUpdate: (
|
|
1107
|
+
onUpdate: (M) => {
|
|
1107
1108
|
var X;
|
|
1108
1109
|
let E = l.value.find(
|
|
1109
1110
|
(le) => {
|
|
@@ -1111,17 +1112,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1111
1112
|
return le.paymentGateway === ((ee = d.value) == null ? void 0 : ee.value);
|
|
1112
1113
|
}
|
|
1113
1114
|
);
|
|
1114
|
-
E ? E.config =
|
|
1115
|
+
E ? E.config = M : l.value.push({
|
|
1115
1116
|
paymentGateway: (X = d.value) == null ? void 0 : X.value,
|
|
1116
|
-
config:
|
|
1117
|
-
}),
|
|
1117
|
+
config: M
|
|
1118
|
+
}), i(l.value);
|
|
1118
1119
|
}
|
|
1119
1120
|
})), null, 16)) : S("", !0)
|
|
1120
1121
|
], 64))
|
|
1121
1122
|
], 64);
|
|
1122
1123
|
};
|
|
1123
1124
|
}
|
|
1124
|
-
}), Ye = { class: "flex mt-6 space-x-6" }, ze = /* @__PURE__ */
|
|
1125
|
+
}), Ye = { class: "flex mt-6 space-x-6" }, ze = /* @__PURE__ */ U({
|
|
1125
1126
|
__name: "GooglePayToken",
|
|
1126
1127
|
props: {
|
|
1127
1128
|
gateway: {
|
|
@@ -1138,7 +1139,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1138
1139
|
}
|
|
1139
1140
|
},
|
|
1140
1141
|
setup(n) {
|
|
1141
|
-
const e =
|
|
1142
|
+
const e = T(
|
|
1142
1143
|
n.gateway || {
|
|
1143
1144
|
type: "googlePay",
|
|
1144
1145
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1149,8 +1150,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1149
1150
|
}
|
|
1150
1151
|
);
|
|
1151
1152
|
return (y, o) => {
|
|
1152
|
-
const t = p("FmTextField"), s = p("FmButton"),
|
|
1153
|
-
return g(),
|
|
1153
|
+
const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
|
|
1154
|
+
return g(), V(v, {
|
|
1154
1155
|
ref: "form",
|
|
1155
1156
|
class: "flex flex-col gap-16",
|
|
1156
1157
|
onValidationSuccess: o[3] || (o[3] = () => n.onUpdate(e.value))
|
|
@@ -1158,27 +1159,27 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1158
1159
|
default: F(() => [
|
|
1159
1160
|
a(t, {
|
|
1160
1161
|
modelValue: e.value.gateway,
|
|
1161
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1162
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => e.value.gateway = c),
|
|
1162
1163
|
label: "Gateway",
|
|
1163
1164
|
disabled: !0,
|
|
1164
|
-
rules: u(
|
|
1165
|
+
rules: u(w)(u(A).string())
|
|
1165
1166
|
}, null, 8, ["modelValue", "rules"]),
|
|
1166
1167
|
a(t, {
|
|
1167
1168
|
modelValue: e.value.config.gateway,
|
|
1168
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1169
|
+
"onUpdate:modelValue": o[1] || (o[1] = (c) => e.value.config.gateway = c),
|
|
1169
1170
|
label: "Gateway ID",
|
|
1170
1171
|
disabled: !0,
|
|
1171
|
-
rules: u(
|
|
1172
|
+
rules: u(w)(u(A).string())
|
|
1172
1173
|
}, null, 8, ["modelValue", "rules"]),
|
|
1173
1174
|
a(t, {
|
|
1174
1175
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1175
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
1176
|
+
"onUpdate:modelValue": o[2] || (o[2] = (c) => e.value.config.gatewayMerchantId = c),
|
|
1176
1177
|
label: "Gateway Merchant ID",
|
|
1177
1178
|
disabled: !0,
|
|
1178
|
-
rules: u(
|
|
1179
|
+
rules: u(w)(u(A).string())
|
|
1179
1180
|
}, null, 8, ["modelValue", "rules"]),
|
|
1180
1181
|
r("div", Ye, [
|
|
1181
|
-
n.gateway ? (g(),
|
|
1182
|
+
n.gateway ? (g(), V(s, {
|
|
1182
1183
|
key: 0,
|
|
1183
1184
|
class: "flex-1",
|
|
1184
1185
|
variant: "secondary",
|
|
@@ -1197,7 +1198,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1197
1198
|
}, 512);
|
|
1198
1199
|
};
|
|
1199
1200
|
}
|
|
1200
|
-
}), He = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */
|
|
1201
|
+
}), He = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ U({
|
|
1201
1202
|
__name: "ApplePayToken",
|
|
1202
1203
|
props: {
|
|
1203
1204
|
gateway: {
|
|
@@ -1214,7 +1215,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1214
1215
|
}
|
|
1215
1216
|
},
|
|
1216
1217
|
setup(n) {
|
|
1217
|
-
const e =
|
|
1218
|
+
const e = T(
|
|
1218
1219
|
n.gateway || {
|
|
1219
1220
|
type: "applePay",
|
|
1220
1221
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1224,8 +1225,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1224
1225
|
}
|
|
1225
1226
|
);
|
|
1226
1227
|
return (y, o) => {
|
|
1227
|
-
const t = p("FmTextField"), s = p("FmButton"),
|
|
1228
|
-
return g(),
|
|
1228
|
+
const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
|
|
1229
|
+
return g(), V(v, {
|
|
1229
1230
|
ref: "form",
|
|
1230
1231
|
class: "flex flex-col gap-16",
|
|
1231
1232
|
onValidationSuccess: o[2] || (o[2] = () => n.onUpdate(e.value))
|
|
@@ -1233,20 +1234,20 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1233
1234
|
default: F(() => [
|
|
1234
1235
|
a(t, {
|
|
1235
1236
|
modelValue: e.value.gateway,
|
|
1236
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1237
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => e.value.gateway = c),
|
|
1237
1238
|
label: "Gateway",
|
|
1238
1239
|
disabled: !0,
|
|
1239
|
-
rules: u(
|
|
1240
|
+
rules: u(w)(u(A).string())
|
|
1240
1241
|
}, null, 8, ["modelValue", "rules"]),
|
|
1241
1242
|
a(t, {
|
|
1242
1243
|
modelValue: e.value.config.merchantId,
|
|
1243
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1244
|
+
"onUpdate:modelValue": o[1] || (o[1] = (c) => e.value.config.merchantId = c),
|
|
1244
1245
|
label: "Merchant ID",
|
|
1245
1246
|
disabled: !0,
|
|
1246
|
-
rules: u(
|
|
1247
|
+
rules: u(w)(u(A).string())
|
|
1247
1248
|
}, null, 8, ["modelValue", "rules"]),
|
|
1248
1249
|
r("div", He, [
|
|
1249
|
-
n.gateway ? (g(),
|
|
1250
|
+
n.gateway ? (g(), V(s, {
|
|
1250
1251
|
key: 0,
|
|
1251
1252
|
class: "flex-1",
|
|
1252
1253
|
variant: "secondary",
|
|
@@ -1268,7 +1269,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1268
1269
|
}), Ze = {
|
|
1269
1270
|
key: 0,
|
|
1270
1271
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1271
|
-
}, Je = /* @__PURE__ */
|
|
1272
|
+
}, Je = /* @__PURE__ */ U({
|
|
1272
1273
|
__name: "TokenGateway",
|
|
1273
1274
|
props: {
|
|
1274
1275
|
payoutAccount: {
|
|
@@ -1277,30 +1278,30 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1277
1278
|
}
|
|
1278
1279
|
},
|
|
1279
1280
|
setup(n) {
|
|
1280
|
-
const
|
|
1281
|
+
const f = ae().currentCountry, e = H(), { isLoading: y, startAsyncCall: o } = Y(), { tokenTab: t } = z({
|
|
1281
1282
|
tokenTab: ""
|
|
1282
|
-
}), s = n,
|
|
1283
|
+
}), s = n, v = [
|
|
1283
1284
|
{
|
|
1284
1285
|
label: "Google Pay",
|
|
1285
1286
|
value: "googlePay",
|
|
1286
1287
|
icon: "android",
|
|
1287
1288
|
render: ze,
|
|
1288
|
-
region: [
|
|
1289
|
+
region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
|
|
1289
1290
|
},
|
|
1290
1291
|
{
|
|
1291
1292
|
label: "Apple Pay",
|
|
1292
1293
|
value: "applePay",
|
|
1293
1294
|
icon: "iOS",
|
|
1294
1295
|
render: Le,
|
|
1295
|
-
region: [
|
|
1296
|
+
region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
|
|
1296
1297
|
}
|
|
1297
|
-
],
|
|
1298
|
-
(
|
|
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)
|
|
1299
1300
|
));
|
|
1300
|
-
async function
|
|
1301
|
+
async function m(i) {
|
|
1301
1302
|
await o(async () => {
|
|
1302
1303
|
try {
|
|
1303
|
-
await $.updateTokens(s.payoutAccount._id,
|
|
1304
|
+
await $.updateTokens(s.payoutAccount._id, i), e.open({
|
|
1304
1305
|
type: "success",
|
|
1305
1306
|
title: "Payout account tokens gateway update succesfully"
|
|
1306
1307
|
});
|
|
@@ -1313,10 +1314,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1313
1314
|
}
|
|
1314
1315
|
});
|
|
1315
1316
|
}
|
|
1316
|
-
return (
|
|
1317
|
+
return (i, b) => {
|
|
1317
1318
|
var D;
|
|
1318
1319
|
const x = p("FmCircularProgress"), C = p("FmTabs");
|
|
1319
|
-
return g(),
|
|
1320
|
+
return g(), N(G, null, [
|
|
1320
1321
|
b[1] || (b[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1321
1322
|
r("b", null, "Note: "),
|
|
1322
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. "),
|
|
@@ -1325,38 +1326,38 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1325
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. `),
|
|
1326
1327
|
r("br")
|
|
1327
1328
|
], -1)),
|
|
1328
|
-
u(y) ? (g(),
|
|
1329
|
+
u(y) ? (g(), N("div", Ze, [
|
|
1329
1330
|
a(x, { size: "xxl" })
|
|
1330
|
-
])) : (g(),
|
|
1331
|
+
])) : (g(), V(C, {
|
|
1331
1332
|
key: 1,
|
|
1332
1333
|
"model-value": u(t),
|
|
1333
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1334
|
+
"onUpdate:modelValue": b[0] || (b[0] = (R) => j(t) ? t.value = R : null),
|
|
1334
1335
|
class: "mb-6 mt-6",
|
|
1335
1336
|
items: d.value
|
|
1336
1337
|
}, null, 8, ["model-value", "items"])),
|
|
1337
|
-
u(t) ? (g(),
|
|
1338
|
-
gateway:
|
|
1339
|
-
var
|
|
1340
|
-
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);
|
|
1341
1342
|
}),
|
|
1342
1343
|
onDelete: async () => {
|
|
1343
|
-
|
|
1344
|
-
var
|
|
1345
|
-
return
|
|
1346
|
-
}), c
|
|
1344
|
+
c.value = c.value.filter((R) => {
|
|
1345
|
+
var _;
|
|
1346
|
+
return R.type !== ((_ = l.value) == null ? void 0 : _.value);
|
|
1347
|
+
}), m(c.value);
|
|
1347
1348
|
},
|
|
1348
|
-
onUpdate: (
|
|
1349
|
-
let
|
|
1349
|
+
onUpdate: (R) => {
|
|
1350
|
+
let _ = c.value.find((h) => {
|
|
1350
1351
|
var O;
|
|
1351
|
-
return
|
|
1352
|
+
return h.type === ((O = l.value) == null ? void 0 : O.value);
|
|
1352
1353
|
});
|
|
1353
|
-
|
|
1354
|
+
_ ? _.config = R : c.value.push(R), m(c.value);
|
|
1354
1355
|
}
|
|
1355
1356
|
})), null, 16)) : S("", !0)
|
|
1356
1357
|
], 64);
|
|
1357
1358
|
};
|
|
1358
1359
|
}
|
|
1359
|
-
}), mt = /* @__PURE__ */
|
|
1360
|
+
}), mt = /* @__PURE__ */ U({
|
|
1360
1361
|
__name: "PayoutAccountSetting",
|
|
1361
1362
|
props: {
|
|
1362
1363
|
accountId: {
|
|
@@ -1365,16 +1366,16 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1365
1366
|
}
|
|
1366
1367
|
},
|
|
1367
1368
|
setup(n) {
|
|
1368
|
-
const
|
|
1369
|
+
const f = n, { tab: e } = z({
|
|
1369
1370
|
tab: "information"
|
|
1370
|
-
}), { isLoading: y, startAsyncCall: o } = Y(!0), t = ue(), s =
|
|
1371
|
-
async function
|
|
1371
|
+
}), { isLoading: y, startAsyncCall: o } = Y(!0), t = ue(), s = T();
|
|
1372
|
+
async function v(m) {
|
|
1372
1373
|
await $.updateById(
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
), s.value = await $.readById(
|
|
1374
|
+
f.accountId,
|
|
1375
|
+
m
|
|
1376
|
+
), s.value = await $.readById(f.accountId);
|
|
1376
1377
|
}
|
|
1377
|
-
const
|
|
1378
|
+
const c = [
|
|
1378
1379
|
{
|
|
1379
1380
|
label: "Information",
|
|
1380
1381
|
value: "information",
|
|
@@ -1391,7 +1392,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1391
1392
|
label: "MDR Status",
|
|
1392
1393
|
value: "payment",
|
|
1393
1394
|
icon: "account_box",
|
|
1394
|
-
render:
|
|
1395
|
+
render: Te
|
|
1395
1396
|
},
|
|
1396
1397
|
{
|
|
1397
1398
|
label: "Online Gateways",
|
|
@@ -1409,23 +1410,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1409
1410
|
label: "Online Channels",
|
|
1410
1411
|
icon: "shopping_cart",
|
|
1411
1412
|
value: "channels",
|
|
1412
|
-
render:
|
|
1413
|
+
render: Pe
|
|
1413
1414
|
}
|
|
1414
1415
|
];
|
|
1415
1416
|
function l() {
|
|
1416
1417
|
o(async () => {
|
|
1417
|
-
s.value = await $.readById(
|
|
1418
|
+
s.value = await $.readById(f.accountId);
|
|
1418
1419
|
});
|
|
1419
1420
|
}
|
|
1420
1421
|
ne(l);
|
|
1421
1422
|
const d = B(() => {
|
|
1422
|
-
const
|
|
1423
|
-
return
|
|
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;
|
|
1424
1425
|
});
|
|
1425
|
-
return (
|
|
1426
|
+
return (m, i) => {
|
|
1426
1427
|
var x;
|
|
1427
1428
|
const b = p("FmTabs");
|
|
1428
|
-
return g(),
|
|
1429
|
+
return g(), V(oe, {
|
|
1429
1430
|
title: `Payout Account (${(x = s.value) == null ? void 0 : x._id})`,
|
|
1430
1431
|
loading: u(y),
|
|
1431
1432
|
onBack: u(t).back
|
|
@@ -1433,13 +1434,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1433
1434
|
default: F(() => [
|
|
1434
1435
|
a(b, {
|
|
1435
1436
|
"model-value": u(e),
|
|
1436
|
-
"onUpdate:modelValue":
|
|
1437
|
+
"onUpdate:modelValue": i[0] || (i[0] = (C) => j(e) ? e.value = C : null),
|
|
1437
1438
|
class: "mb-6",
|
|
1438
|
-
items:
|
|
1439
|
+
items: c
|
|
1439
1440
|
}, null, 8, ["model-value"]),
|
|
1440
|
-
u(e) ? (g(),
|
|
1441
|
+
u(e) ? (g(), V(J(d.value), Q(W({ key: 0 }, {
|
|
1441
1442
|
payoutAccount: s.value,
|
|
1442
|
-
onUpdate:
|
|
1443
|
+
onUpdate: v
|
|
1443
1444
|
})), null, 16)) : S("", !0)
|
|
1444
1445
|
]),
|
|
1445
1446
|
_: 1
|