@feedmepos/mf-payment 1.4.38 → 1.4.39
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-C1HA4dA2.js → OnboardForm-B7CkEXGv.js} +2 -2
- package/dist/{OnboardForm-CSwv-JMK.js → OnboardForm-Dsxjljqr.js} +2 -2
- package/dist/{OnboardSubmission-DeEhWi2y.js → OnboardSubmission-CHRiLayt.js} +1 -1
- package/dist/{OnboardSubmission-Ctfsad96.js → OnboardSubmission-DHZ74Q8K.js} +1 -1
- package/dist/{PayoutAccount-sYHu8imZ.js → PayoutAccount-B2tLhNCP.js} +1 -1
- package/dist/{PayoutAccount-D1LOrBk6.js → PayoutAccount-CYbZJGR1.js} +3 -3
- package/dist/{PayoutAccountSetting-CUTZqupc.js → PayoutAccountSetting-Byfhf8vi.js} +95 -94
- package/dist/{app-BtL_h4_R.js → app-jWqIMlvQ.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{index-G4bYOaro.js → index-U0rV6-CG.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CloqCNlq.js → payout-account-Bf_SST_W.js} +2 -2
- package/dist/{plugins-Bg6JJRhO.js → plugins-DJOA7bw1.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as
|
|
1
|
+
import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as S, Fragment as $, createElementVNode as d, createVNode as u, withCtx as V, createTextVNode as P, toDisplayString as M, createCommentVNode as _, createBlock as F, ref as C, watch as ee, computed as K, unref as o, isRef as E, h as O, onMounted as te, resolveDynamicComponent as L, normalizeProps as Z, mergeProps as Q } from "vue";
|
|
2
2
|
import { p as R } from "./index-CIj4gYaQ.js";
|
|
3
|
-
import { u as Y, e as
|
|
3
|
+
import { u as Y, e as h } from "./index-BCwCx3CJ.js";
|
|
4
4
|
import { _ as le } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
5
5
|
import { useRouter as oe } from "vue-router";
|
|
6
6
|
import { u as j } from "./index-Cif5ZVCF.js";
|
|
7
7
|
import { P as X } from "./PDFViewer-DlSCBBxr.js";
|
|
8
8
|
import { useSnackbar as z, components as ue } from "@feedmepos/ui-library";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as q } from "./error-K1CakhA9.js";
|
|
10
10
|
import { z as x, a as w } from "./validator-D5jtpt9A.js";
|
|
11
11
|
import { useCoreStore as ae } from "@feedmepos/mf-common";
|
|
12
12
|
const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
@@ -20,7 +20,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (v, e) => {
|
|
22
22
|
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
23
|
-
return y(),
|
|
23
|
+
return y(), S($, null, [
|
|
24
24
|
d("div", re, [
|
|
25
25
|
u(t, {
|
|
26
26
|
horizontal: "",
|
|
@@ -73,7 +73,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
73
73
|
}),
|
|
74
74
|
u(s, { class: "p-0" }, {
|
|
75
75
|
default: V(() => {
|
|
76
|
-
var l, p, c, a, r, f, g,
|
|
76
|
+
var l, p, c, a, r, f, g, b;
|
|
77
77
|
return [
|
|
78
78
|
e[6] || (e[6] = d("b", null, "Email", -1)),
|
|
79
79
|
P(": " + M((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
|
|
@@ -82,7 +82,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
82
82
|
P(": " + M((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
|
|
83
83
|
e[9] || (e[9] = d("br", null, null, -1)),
|
|
84
84
|
e[10] || (e[10] = d("b", null, "Phone", -1)),
|
|
85
|
-
P(": " + M((
|
|
85
|
+
P(": " + M((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
|
|
86
86
|
e[11] || (e[11] = d("br", null, null, -1))
|
|
87
87
|
];
|
|
88
88
|
}),
|
|
@@ -96,7 +96,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
96
96
|
})
|
|
97
97
|
]),
|
|
98
98
|
e[12] || (e[12] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
99
|
-
n.payoutAccount.store.exteriorPhoto ? (y(),
|
|
99
|
+
n.payoutAccount.store.exteriorPhoto ? (y(), S("img", {
|
|
100
100
|
key: 0,
|
|
101
101
|
src: n.payoutAccount.store.exteriorPhoto
|
|
102
102
|
}, null, 8, se)) : _("", !0)
|
|
@@ -114,7 +114,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
114
114
|
setup(n) {
|
|
115
115
|
return (v, e) => {
|
|
116
116
|
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
117
|
-
return y(),
|
|
117
|
+
return y(), S($, null, [
|
|
118
118
|
u(t, {
|
|
119
119
|
horizontal: "",
|
|
120
120
|
class: "flex-1 p-6 mx-6 mb-6",
|
|
@@ -153,7 +153,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
153
153
|
d("div", ie, [
|
|
154
154
|
d("div", de, [
|
|
155
155
|
e[5] || (e[5] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
156
|
-
n.payoutAccount.store.ssm ? (y(),
|
|
156
|
+
n.payoutAccount.store.ssm ? (y(), F(X, {
|
|
157
157
|
key: 0,
|
|
158
158
|
pdf: n.payoutAccount.store.ssm,
|
|
159
159
|
"disable-text-layer": !0,
|
|
@@ -162,7 +162,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
162
162
|
]),
|
|
163
163
|
d("div", me, [
|
|
164
164
|
e[6] || (e[6] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
165
|
-
n.payoutAccount.store.bankStatement ? (y(),
|
|
165
|
+
n.payoutAccount.store.bankStatement ? (y(), F(X, {
|
|
166
166
|
key: 0,
|
|
167
167
|
pdf: n.payoutAccount.store.bankStatement,
|
|
168
168
|
"disable-text-layer": !0,
|
|
@@ -185,7 +185,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
185
185
|
v.onChange(parseFloat(m));
|
|
186
186
|
}), (m, s) => {
|
|
187
187
|
const t = i("FmTextField");
|
|
188
|
-
return y(),
|
|
188
|
+
return y(), F(t, {
|
|
189
189
|
inputmode: "decimal",
|
|
190
190
|
modelValue: e.value,
|
|
191
191
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
@@ -209,7 +209,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
209
209
|
v.onChange(parseInt(m));
|
|
210
210
|
}), (m, s) => {
|
|
211
211
|
const t = i("FmTextField");
|
|
212
|
-
return y(),
|
|
212
|
+
return y(), F(t, {
|
|
213
213
|
inputmode: "numeric",
|
|
214
214
|
modelValue: e.value,
|
|
215
215
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
@@ -239,7 +239,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
239
239
|
m.open({
|
|
240
240
|
type: "error",
|
|
241
241
|
title: "Error occurs when updating payout account",
|
|
242
|
-
message:
|
|
242
|
+
message: q(r)
|
|
243
243
|
});
|
|
244
244
|
} finally {
|
|
245
245
|
e.value = !1;
|
|
@@ -260,7 +260,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
260
260
|
accessorKey: "rate",
|
|
261
261
|
cell: ({ row: a }) => {
|
|
262
262
|
let r = 0;
|
|
263
|
-
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)),
|
|
263
|
+
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), O(ye, {
|
|
264
264
|
data: r,
|
|
265
265
|
onChange: (f) => {
|
|
266
266
|
const g = v.payoutAccount.methods.at(a.index);
|
|
@@ -275,7 +275,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
275
275
|
{
|
|
276
276
|
header: () => "T plus",
|
|
277
277
|
accessorKey: "tPlus",
|
|
278
|
-
cell: ({ row: a }) =>
|
|
278
|
+
cell: ({ row: a }) => O(ve, {
|
|
279
279
|
data: a.original.tPlus ?? 0,
|
|
280
280
|
onChange: (r) => {
|
|
281
281
|
const f = v.payoutAccount.methods.at(a.index);
|
|
@@ -285,8 +285,8 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
285
285
|
}
|
|
286
286
|
];
|
|
287
287
|
return (a, r) => {
|
|
288
|
-
const f = i("FmRadio"), g = i("FmRadioGroup"),
|
|
289
|
-
return y(),
|
|
288
|
+
const f = i("FmRadio"), g = i("FmRadioGroup"), b = i("FmSwitch"), I = i("FmSearch"), U = i("FmTable"), T = i("FmButton");
|
|
289
|
+
return y(), S($, null, [
|
|
290
290
|
d("div", fe, [
|
|
291
291
|
d("div", ge, [
|
|
292
292
|
u(g, {
|
|
@@ -312,7 +312,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
312
312
|
}, 8, ["modelValue"])
|
|
313
313
|
]),
|
|
314
314
|
d("div", be, [
|
|
315
|
-
u(
|
|
315
|
+
u(b, {
|
|
316
316
|
modelValue: n.payoutAccount.enable,
|
|
317
317
|
"onUpdate:modelValue": r[1] || (r[1] = (k) => n.payoutAccount.enable = k),
|
|
318
318
|
disabled: !l.value,
|
|
@@ -321,17 +321,17 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
321
321
|
}, null, 8, ["modelValue", "disabled"])
|
|
322
322
|
])
|
|
323
323
|
]),
|
|
324
|
-
n.payoutAccount.enable ? (y(),
|
|
324
|
+
n.payoutAccount.enable ? (y(), S($, { key: 0 }, [
|
|
325
325
|
d("div", Fe, [
|
|
326
326
|
d("div", xe, [
|
|
327
327
|
u(I, {
|
|
328
328
|
modelValue: o(t),
|
|
329
|
-
"onUpdate:modelValue": r[2] || (r[2] = (k) =>
|
|
329
|
+
"onUpdate:modelValue": r[2] || (r[2] = (k) => E(t) ? t.value = k : null),
|
|
330
330
|
placeholder: "Search Method ..."
|
|
331
331
|
}, null, 8, ["modelValue"])
|
|
332
332
|
])
|
|
333
333
|
]),
|
|
334
|
-
u(
|
|
334
|
+
u(U, {
|
|
335
335
|
class: "mt-6",
|
|
336
336
|
modelValue: p.value,
|
|
337
337
|
"onUpdate:modelValue": r[3] || (r[3] = (k) => p.value = k),
|
|
@@ -341,7 +341,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
341
341
|
"column-defs": c
|
|
342
342
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
343
343
|
], 64)) : _("", !0),
|
|
344
|
-
u(
|
|
344
|
+
u(T, {
|
|
345
345
|
class: "w-full mt-6",
|
|
346
346
|
variant: "primary",
|
|
347
347
|
label: "Save",
|
|
@@ -358,7 +358,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
358
358
|
const e = v;
|
|
359
359
|
return (m, s) => {
|
|
360
360
|
const t = i("FmButton");
|
|
361
|
-
return y(),
|
|
361
|
+
return y(), S("div", Ve, [
|
|
362
362
|
u(t, {
|
|
363
363
|
variant: "plain",
|
|
364
364
|
"prepend-icon": "delete",
|
|
@@ -396,7 +396,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
396
396
|
v.open({
|
|
397
397
|
type: "error",
|
|
398
398
|
title: "Error occurs when updating payout account channels",
|
|
399
|
-
message:
|
|
399
|
+
message: q(r)
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
});
|
|
@@ -412,7 +412,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
412
412
|
v.open({
|
|
413
413
|
type: "error",
|
|
414
414
|
title: "Error occurs when reset payout account channels",
|
|
415
|
-
message:
|
|
415
|
+
message: q(r)
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -429,12 +429,12 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
429
429
|
{
|
|
430
430
|
header: () => "Display",
|
|
431
431
|
accessorKey: "icon",
|
|
432
|
-
cell: ({ row: r }) =>
|
|
432
|
+
cell: ({ row: r }) => O("img", { src: r.original.icon, width: 32, height: 32 })
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
header: () => "Label",
|
|
436
436
|
accessorKey: "label",
|
|
437
|
-
cell: ({ row: r }) =>
|
|
437
|
+
cell: ({ row: r }) => O(ue.FmTextField, {
|
|
438
438
|
modelValue: r.original.label,
|
|
439
439
|
"onUpdate:modelValue": (f) => r.original.label = f
|
|
440
440
|
})
|
|
@@ -442,14 +442,14 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
442
442
|
{
|
|
443
443
|
id: "actions",
|
|
444
444
|
header: () => "Actions",
|
|
445
|
-
cell: ({ row: r }) =>
|
|
445
|
+
cell: ({ row: r }) => O(ke, {
|
|
446
446
|
onDelete: () => t.value.splice(r.index, 1)
|
|
447
447
|
})
|
|
448
448
|
}
|
|
449
449
|
];
|
|
450
450
|
return (r, f) => {
|
|
451
|
-
const g = i("FmButton"),
|
|
452
|
-
return y(),
|
|
451
|
+
const g = i("FmButton"), b = i("FmTable");
|
|
452
|
+
return y(), S($, null, [
|
|
453
453
|
d("div", _e, [
|
|
454
454
|
u(g, {
|
|
455
455
|
class: "mx-4",
|
|
@@ -467,7 +467,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
467
467
|
onClick: p
|
|
468
468
|
})
|
|
469
469
|
]),
|
|
470
|
-
u(
|
|
470
|
+
u(b, {
|
|
471
471
|
loading: o(m),
|
|
472
472
|
"row-data": t.value,
|
|
473
473
|
"column-defs": a,
|
|
@@ -501,7 +501,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
501
501
|
});
|
|
502
502
|
return (s, t) => {
|
|
503
503
|
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
504
|
-
return y(),
|
|
504
|
+
return y(), F(c, {
|
|
505
505
|
ref: "form",
|
|
506
506
|
class: "flex flex-col gap-16",
|
|
507
507
|
onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
|
|
@@ -526,7 +526,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
526
526
|
rules: o(x)(o(w).string())
|
|
527
527
|
}, null, 8, ["modelValue", "rules"]),
|
|
528
528
|
d("div", Ce, [
|
|
529
|
-
n.gateway ? (y(),
|
|
529
|
+
n.gateway ? (y(), F(p, {
|
|
530
530
|
key: 0,
|
|
531
531
|
class: "flex-1",
|
|
532
532
|
variant: "secondary",
|
|
@@ -572,7 +572,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
572
572
|
});
|
|
573
573
|
return (s, t) => {
|
|
574
574
|
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
575
|
-
return y(),
|
|
575
|
+
return y(), F(c, {
|
|
576
576
|
ref: "form",
|
|
577
577
|
class: "flex flex-col gap-16",
|
|
578
578
|
onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
|
|
@@ -609,7 +609,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
609
609
|
rules: o(x)(o(w).string())
|
|
610
610
|
}, null, 8, ["modelValue", "rules"]),
|
|
611
611
|
d("div", Te, [
|
|
612
|
-
n.gateway ? (y(),
|
|
612
|
+
n.gateway ? (y(), F(p, {
|
|
613
613
|
key: 0,
|
|
614
614
|
class: "flex-1",
|
|
615
615
|
variant: "secondary",
|
|
@@ -652,7 +652,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
652
652
|
});
|
|
653
653
|
return (s, t) => {
|
|
654
654
|
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
655
|
-
return y(),
|
|
655
|
+
return y(), F(c, {
|
|
656
656
|
ref: "form",
|
|
657
657
|
class: "flex flex-col gap-16",
|
|
658
658
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
@@ -671,7 +671,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
671
671
|
rules: o(x)(o(w).string())
|
|
672
672
|
}, null, 8, ["modelValue", "rules"]),
|
|
673
673
|
d("div", Se, [
|
|
674
|
-
n.gateway ? (y(),
|
|
674
|
+
n.gateway ? (y(), F(p, {
|
|
675
675
|
key: 0,
|
|
676
676
|
class: "flex-1",
|
|
677
677
|
variant: "secondary",
|
|
@@ -718,7 +718,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
718
718
|
});
|
|
719
719
|
return (s, t) => {
|
|
720
720
|
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
721
|
-
return y(),
|
|
721
|
+
return y(), F(c, {
|
|
722
722
|
ref: "form",
|
|
723
723
|
class: "flex flex-col gap-16",
|
|
724
724
|
onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
|
|
@@ -760,7 +760,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
760
760
|
label: "HMac Key"
|
|
761
761
|
}, null, 8, ["modelValue"]),
|
|
762
762
|
d("div", Ie, [
|
|
763
|
-
n.gateway ? (y(),
|
|
763
|
+
n.gateway ? (y(), F(p, {
|
|
764
764
|
key: 0,
|
|
765
765
|
class: "flex-1",
|
|
766
766
|
variant: "secondary",
|
|
@@ -803,7 +803,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
803
803
|
});
|
|
804
804
|
return (s, t) => {
|
|
805
805
|
const l = i("FmTextField"), p = i("FmTextarea"), c = i("FmButton"), a = i("FmForm");
|
|
806
|
-
return y(),
|
|
806
|
+
return y(), F(a, {
|
|
807
807
|
ref: "form",
|
|
808
808
|
class: "flex flex-col gap-16",
|
|
809
809
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
@@ -823,7 +823,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
823
823
|
rules: o(x)(o(w).string())
|
|
824
824
|
}, null, 8, ["modelValue", "rules"]),
|
|
825
825
|
d("div", Ne, [
|
|
826
|
-
n.gateway ? (y(),
|
|
826
|
+
n.gateway ? (y(), F(c, {
|
|
827
827
|
key: 0,
|
|
828
828
|
class: "flex-1",
|
|
829
829
|
variant: "secondary",
|
|
@@ -864,79 +864,80 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
864
864
|
label: "Fiuu",
|
|
865
865
|
value: "RAZER_MERCHANT_SERVICE",
|
|
866
866
|
render: Ue,
|
|
867
|
-
region: [
|
|
867
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
label: "Macau Pass",
|
|
871
871
|
value: "MACAU_PASS",
|
|
872
872
|
render: he,
|
|
873
|
-
region: [
|
|
873
|
+
region: [h.F_COUNTRY.enum.MO]
|
|
874
874
|
},
|
|
875
875
|
{
|
|
876
876
|
label: "Digio",
|
|
877
877
|
value: "DIGIO",
|
|
878
878
|
render: Pe,
|
|
879
|
-
region: [
|
|
879
|
+
region: [h.F_COUNTRY.enum.TH]
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
label: "Ksher",
|
|
883
883
|
value: "KSHER",
|
|
884
884
|
render: Me,
|
|
885
|
-
region: [
|
|
885
|
+
region: [h.F_COUNTRY.enum.TH]
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
label: "Adyen",
|
|
889
889
|
value: "ADYEN",
|
|
890
890
|
render: De,
|
|
891
|
-
region: [
|
|
891
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
892
892
|
}
|
|
893
893
|
], a = C(
|
|
894
894
|
p.payoutAccount.gateways ?? []
|
|
895
|
-
), r = K(() => c.find((
|
|
896
|
-
(
|
|
895
|
+
), r = K(() => c.find((U) => U.value === l.value)), f = K(() => c.filter(
|
|
896
|
+
(U) => U.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
|
|
897
897
|
));
|
|
898
|
-
async function g(
|
|
898
|
+
async function g(U) {
|
|
899
899
|
await t(async () => {
|
|
900
900
|
try {
|
|
901
|
-
await R.updateGateway(p.payoutAccount._id,
|
|
901
|
+
await R.updateGateway(p.payoutAccount._id, U), m.open({
|
|
902
902
|
type: "success",
|
|
903
903
|
title: "Payout account gateways update succesfully"
|
|
904
|
-
});
|
|
905
|
-
} catch (
|
|
904
|
+
}), b.value = U.length === 0;
|
|
905
|
+
} catch (T) {
|
|
906
906
|
m.open({
|
|
907
907
|
type: "error",
|
|
908
908
|
title: "Error occurs when updating payout account gateways",
|
|
909
|
-
message:
|
|
909
|
+
message: q(T)
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
const
|
|
915
|
-
return (
|
|
914
|
+
const b = C((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !b.value);
|
|
915
|
+
return (U, T) => {
|
|
916
916
|
var B;
|
|
917
917
|
const k = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
|
|
918
|
-
return y(),
|
|
919
|
-
o(e) ? (y(),
|
|
918
|
+
return y(), S($, null, [
|
|
919
|
+
o(e) ? (y(), S("p", Re, T[2] || (T[2] = [
|
|
920
920
|
d("b", null, "Note: ", -1),
|
|
921
921
|
P(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
|
|
922
922
|
]))) : _("", !0),
|
|
923
|
-
o(s) ? (y(),
|
|
923
|
+
o(s) ? (y(), S("div", Ge, [
|
|
924
924
|
u(k, { size: "xxl" })
|
|
925
|
-
])) : (y(),
|
|
926
|
-
o(e) === "MY" ? (y(),
|
|
925
|
+
])) : (y(), S($, { key: 2 }, [
|
|
926
|
+
o(e) === "MY" ? (y(), F(D, {
|
|
927
927
|
key: 0,
|
|
928
|
-
modelValue:
|
|
929
|
-
"onUpdate:modelValue":
|
|
928
|
+
modelValue: b.value,
|
|
929
|
+
"onUpdate:modelValue": T[0] || (T[0] = (N) => b.value = N),
|
|
930
|
+
style: { "padding-bottom": "12px" },
|
|
930
931
|
label: "Use FeedMe's Fiuu Account?"
|
|
931
932
|
}, null, 8, ["modelValue"])) : _("", !0),
|
|
932
|
-
I.value ? (y(),
|
|
933
|
+
I.value ? (y(), F(H, {
|
|
933
934
|
key: 1,
|
|
934
935
|
"model-value": o(l),
|
|
935
|
-
"onUpdate:modelValue":
|
|
936
|
+
"onUpdate:modelValue": T[1] || (T[1] = (N) => E(l) ? l.value = N : null),
|
|
936
937
|
class: "mb-6",
|
|
937
938
|
items: f.value
|
|
938
939
|
}, null, 8, ["model-value", "items"])) : _("", !0),
|
|
939
|
-
o(l) ? (y(),
|
|
940
|
+
I.value && o(l) ? (y(), F(L((B = r.value) == null ? void 0 : B.render), Z(Q({ key: 2 }, {
|
|
940
941
|
gateway: a.value.find(
|
|
941
942
|
(N) => {
|
|
942
943
|
var G;
|
|
@@ -998,7 +999,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
998
999
|
);
|
|
999
1000
|
return (m, s) => {
|
|
1000
1001
|
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
1001
|
-
return y(),
|
|
1002
|
+
return y(), F(p, {
|
|
1002
1003
|
ref: "form",
|
|
1003
1004
|
class: "flex flex-col gap-16",
|
|
1004
1005
|
onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
|
|
@@ -1026,7 +1027,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1026
1027
|
rules: o(x)(o(w).string())
|
|
1027
1028
|
}, null, 8, ["modelValue", "rules"]),
|
|
1028
1029
|
d("div", Ke, [
|
|
1029
|
-
n.gateway ? (y(),
|
|
1030
|
+
n.gateway ? (y(), F(l, {
|
|
1030
1031
|
key: 0,
|
|
1031
1032
|
class: "flex-1",
|
|
1032
1033
|
variant: "secondary",
|
|
@@ -1045,7 +1046,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1045
1046
|
}, 512);
|
|
1046
1047
|
};
|
|
1047
1048
|
}
|
|
1048
|
-
}),
|
|
1049
|
+
}), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ A({
|
|
1049
1050
|
__name: "ApplePayToken",
|
|
1050
1051
|
props: {
|
|
1051
1052
|
gateway: {
|
|
@@ -1073,7 +1074,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1073
1074
|
);
|
|
1074
1075
|
return (m, s) => {
|
|
1075
1076
|
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
1076
|
-
return y(),
|
|
1077
|
+
return y(), F(p, {
|
|
1077
1078
|
ref: "form",
|
|
1078
1079
|
class: "flex flex-col gap-16",
|
|
1079
1080
|
onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
|
|
@@ -1093,8 +1094,8 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1093
1094
|
disabled: !0,
|
|
1094
1095
|
rules: o(x)(o(w).string())
|
|
1095
1096
|
}, null, 8, ["modelValue", "rules"]),
|
|
1096
|
-
d("div",
|
|
1097
|
-
n.gateway ? (y(),
|
|
1097
|
+
d("div", Oe, [
|
|
1098
|
+
n.gateway ? (y(), F(l, {
|
|
1098
1099
|
key: 0,
|
|
1099
1100
|
class: "flex-1",
|
|
1100
1101
|
variant: "secondary",
|
|
@@ -1113,7 +1114,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1113
1114
|
}, 512);
|
|
1114
1115
|
};
|
|
1115
1116
|
}
|
|
1116
|
-
}),
|
|
1117
|
+
}), Ee = {
|
|
1117
1118
|
key: 0,
|
|
1118
1119
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1119
1120
|
}, Ye = /* @__PURE__ */ A({
|
|
@@ -1133,17 +1134,17 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1133
1134
|
value: "googlePay",
|
|
1134
1135
|
icon: "android",
|
|
1135
1136
|
render: Be,
|
|
1136
|
-
region: [
|
|
1137
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
1137
1138
|
},
|
|
1138
1139
|
{
|
|
1139
1140
|
label: "Apple Pay",
|
|
1140
1141
|
value: "applePay",
|
|
1141
|
-
icon: "
|
|
1142
|
-
render:
|
|
1143
|
-
region: [
|
|
1142
|
+
icon: "iOS",
|
|
1143
|
+
render: qe,
|
|
1144
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
1144
1145
|
}
|
|
1145
1146
|
], c = C(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
|
|
1146
|
-
(g) => g.region.includes(v.value ??
|
|
1147
|
+
(g) => g.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
|
|
1147
1148
|
));
|
|
1148
1149
|
async function f(g) {
|
|
1149
1150
|
await s(async () => {
|
|
@@ -1152,20 +1153,20 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1152
1153
|
type: "success",
|
|
1153
1154
|
title: "Payout account tokens gateway update succesfully"
|
|
1154
1155
|
});
|
|
1155
|
-
} catch (
|
|
1156
|
+
} catch (b) {
|
|
1156
1157
|
e.open({
|
|
1157
1158
|
type: "error",
|
|
1158
1159
|
title: "Error occurs when updating payout account tokens",
|
|
1159
|
-
message:
|
|
1160
|
+
message: q(b)
|
|
1160
1161
|
});
|
|
1161
1162
|
}
|
|
1162
1163
|
});
|
|
1163
1164
|
}
|
|
1164
|
-
return (g,
|
|
1165
|
-
var
|
|
1166
|
-
const I = i("FmCircularProgress"),
|
|
1167
|
-
return y(),
|
|
1168
|
-
|
|
1165
|
+
return (g, b) => {
|
|
1166
|
+
var T;
|
|
1167
|
+
const I = i("FmCircularProgress"), U = i("FmTabs");
|
|
1168
|
+
return y(), S($, null, [
|
|
1169
|
+
b[1] || (b[1] = d("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1169
1170
|
d("b", null, "Note: "),
|
|
1170
1171
|
P(" 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. "),
|
|
1171
1172
|
d("br"),
|
|
@@ -1173,16 +1174,16 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1173
1174
|
d("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. `),
|
|
1174
1175
|
d("br")
|
|
1175
1176
|
], -1)),
|
|
1176
|
-
o(m) ? (y(),
|
|
1177
|
+
o(m) ? (y(), S("div", Ee, [
|
|
1177
1178
|
u(I, { size: "xxl" })
|
|
1178
|
-
])) : (y(),
|
|
1179
|
+
])) : (y(), F(U, {
|
|
1179
1180
|
key: 1,
|
|
1180
1181
|
"model-value": o(t),
|
|
1181
|
-
"onUpdate:modelValue":
|
|
1182
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => E(t) ? t.value = k : null),
|
|
1182
1183
|
class: "mb-6 mt-6",
|
|
1183
1184
|
items: r.value
|
|
1184
1185
|
}, null, 8, ["model-value", "items"])),
|
|
1185
|
-
o(t) ? (y(),
|
|
1186
|
+
o(t) ? (y(), F(L((T = a.value) == null ? void 0 : T.render), Z(Q({ key: 2 }, {
|
|
1186
1187
|
gateway: c.value.find((k) => {
|
|
1187
1188
|
var D;
|
|
1188
1189
|
return k.type === ((D = a.value) == null ? void 0 : D.value);
|
|
@@ -1267,25 +1268,25 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
|
1267
1268
|
}
|
|
1268
1269
|
te(a);
|
|
1269
1270
|
const r = K(() => {
|
|
1270
|
-
const f = c.reduce((g,
|
|
1271
|
+
const f = c.reduce((g, b) => g || (b.children ? b.children.find((I) => I.value === e.value) || null : b.value === e.value ? b : null), null);
|
|
1271
1272
|
return f == null ? void 0 : f.render;
|
|
1272
1273
|
});
|
|
1273
1274
|
return (f, g) => {
|
|
1274
1275
|
var I;
|
|
1275
|
-
const
|
|
1276
|
-
return y(),
|
|
1276
|
+
const b = i("FmTabs");
|
|
1277
|
+
return y(), F(le, {
|
|
1277
1278
|
title: `Payout Account (${(I = l.value) == null ? void 0 : I._id})`,
|
|
1278
1279
|
loading: o(m),
|
|
1279
1280
|
onBack: o(t).back
|
|
1280
1281
|
}, {
|
|
1281
1282
|
default: V(() => [
|
|
1282
|
-
u(
|
|
1283
|
+
u(b, {
|
|
1283
1284
|
"model-value": o(e),
|
|
1284
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
1285
|
+
"onUpdate:modelValue": g[0] || (g[0] = (U) => E(e) ? e.value = U : null),
|
|
1285
1286
|
class: "mb-6",
|
|
1286
1287
|
items: c
|
|
1287
1288
|
}, null, 8, ["model-value"]),
|
|
1288
|
-
o(e) ? (y(),
|
|
1289
|
+
o(e) ? (y(), F(L(r.value), Z(Q({ key: 0 }, {
|
|
1289
1290
|
payoutAccount: l.value,
|
|
1290
1291
|
onUpdate: p
|
|
1291
1292
|
})), null, 16)) : _("", !0)
|
|
@@ -383,7 +383,7 @@ const Gn = {
|
|
|
383
383
|
sidebarDisplay: "Payout Accounts",
|
|
384
384
|
section: "payment-gateway"
|
|
385
385
|
},
|
|
386
|
-
component: () => import("./PayoutAccount-
|
|
386
|
+
component: () => import("./PayoutAccount-B2tLhNCP.js")
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -392,7 +392,7 @@ const Gn = {
|
|
|
392
392
|
meta: {
|
|
393
393
|
parent: "mf-payment-admin.payout-account"
|
|
394
394
|
},
|
|
395
|
-
component: () => import("./PayoutAccountSetting-
|
|
395
|
+
component: () => import("./PayoutAccountSetting-Byfhf8vi.js")
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
path: "/admin/onboarding",
|
|
@@ -401,7 +401,7 @@ const Gn = {
|
|
|
401
401
|
sidebarDisplay: "Payment Onboarding",
|
|
402
402
|
section: "payment-gateway"
|
|
403
403
|
},
|
|
404
|
-
component: () => import("./OnboardSubmission-
|
|
404
|
+
component: () => import("./OnboardSubmission-CHRiLayt.js")
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -410,7 +410,7 @@ const Gn = {
|
|
|
410
410
|
meta: {
|
|
411
411
|
parent: "mf-payment-admin.onboard-submission"
|
|
412
412
|
},
|
|
413
|
-
component: () => import("./OnboardForm-
|
|
413
|
+
component: () => import("./OnboardForm-Dsxjljqr.js")
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
path: "/admin/terminal/pos",
|
|
@@ -516,7 +516,7 @@ const Gn = {
|
|
|
516
516
|
{
|
|
517
517
|
path: "/payout-account",
|
|
518
518
|
name: "mf-payment-payout-account",
|
|
519
|
-
component: () => import("./PayoutAccount-
|
|
519
|
+
component: () => import("./PayoutAccount-CYbZJGR1.js"),
|
|
520
520
|
meta: {
|
|
521
521
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
522
522
|
}
|
|
@@ -524,7 +524,7 @@ const Gn = {
|
|
|
524
524
|
{
|
|
525
525
|
path: "/onboard-submission",
|
|
526
526
|
name: "mf-payment-onboard-submission",
|
|
527
|
-
component: () => import("./OnboardSubmission-
|
|
527
|
+
component: () => import("./OnboardSubmission-DHZ74Q8K.js"),
|
|
528
528
|
meta: {
|
|
529
529
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
530
530
|
region: { MY: !0 }
|
|
@@ -534,7 +534,7 @@ const Gn = {
|
|
|
534
534
|
path: "/onboard-submission/:type/:submission?",
|
|
535
535
|
name: "mf-payment-onboard-submission-form",
|
|
536
536
|
props: !0,
|
|
537
|
-
component: () => import("./OnboardForm-
|
|
537
|
+
component: () => import("./OnboardForm-B7CkEXGv.js"),
|
|
538
538
|
meta: {
|
|
539
539
|
parent: "mf-payment-onboard-submission"
|
|
540
540
|
}
|
package/dist/app.js
CHANGED