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