@feedmepos/mf-payment 1.5.64-dev → 1.5.67-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-D4Vqzy09.js → Actions.vue_vue_type_script_setup_true_lang-CR0uH8uH.js} +1 -1
- package/dist/{Chargeback-BqeZFXW6.js → Chargeback-id7B_0Mo.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CMaTG0WU.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CcLRVQsm.js} +1 -1
- package/dist/{OnboardForm-yVKzD609.js → OnboardForm-B-GSTbEb.js} +5 -5
- package/dist/{OnboardForm-Brio8PFS.js → OnboardForm-HhBh0o7t.js} +5 -5
- package/dist/{OnboardSubmission-BYvgYNkK.js → OnboardSubmission-B3mQbpKg.js} +5 -5
- package/dist/{OnboardSubmission-CzR8nXw1.js → OnboardSubmission-DJXp_9Ck.js} +3 -3
- package/dist/{PayoutAccount-BgAa7zFo.js → PayoutAccount-Ber0Ot0O.js} +4 -4
- package/dist/{PayoutAccount-D0wpj1dm.js → PayoutAccount-CmZ_Oa50.js} +5 -5
- package/dist/{PayoutAccountSetting-CkrRvte4.js → PayoutAccountSetting-DErGNyWW.js} +318 -269
- package/dist/{Restaurant-BQ8-pOeP.js → Restaurant-DMpLQ-m5.js} +4 -4
- package/dist/{RestaurantSetting-BXii0HXX.js → RestaurantSetting-C9ecFKSv.js} +3 -3
- package/dist/{Settlement-DSHOPPUh.js → Settlement-CM19oWo1.js} +3 -3
- package/dist/{Settlement-D0OnbNPH.js → Settlement-DFakfE9e.js} +4 -4
- package/dist/{SettlementTransactions-DaVTyPcJ.js → SettlementTransactions-B8Fr5Wfa.js} +4 -4
- package/dist/{SettlementTransactions-DpEt7wLE.js → SettlementTransactions-D3AC8agO.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B05LuBsp.js → Status.vue_vue_type_script_setup_true_lang-BWsw0-qx.js} +1 -1
- package/dist/{Terminal-NAhda9IQ.js → Terminal-VBg-Tncj.js} +5 -5
- package/dist/{TerminalSetting-GHoLcHpJ.js → TerminalSetting-cHe1EAz-.js} +4 -4
- package/dist/{Transaction-B45NPqif.js → Transaction-BsjWMMEP.js} +9 -9
- package/dist/{Transaction-NyZ8Ccc6.js → Transaction-DdV_N3l9.js} +5 -5
- package/dist/{TransactionOld-C57ZBqVr.js → TransactionOld-DpN-JSaX.js} +6 -6
- package/dist/api/onboard-submission/index.d.ts +2 -2
- package/dist/{app-CxUYS_yY.js → app-CDRspUAH.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-B_zPI08-.js → assets-83mdCXdK.js} +1 -1
- package/dist/{grafana-CsFUAPt6.js → grafana-D1M_gN2d.js} +1 -1
- package/dist/{index-B9nBAihf.js → index-BCQStiw6.js} +1 -1
- package/dist/{index-Tmt8zfe5.js → index-BgJzLLIW.js} +1 -1
- package/dist/{index-CSu-hYGn.js → index-CKD8vczB.js} +1 -1
- package/dist/{index-CU3pLYbg.js → index-CM5NtnYZ.js} +3 -3
- package/dist/{index-B317hrHB.js → index-CPj477gk.js} +1 -1
- package/dist/{index-BkKT37K1.js → index-Ct__yPEf.js} +1 -1
- package/dist/{index-B_qUyJzb.js → index-D1IYVrYU.js} +1363 -1340
- package/dist/{index-7Z9p1eCA.js → index-Dnl1u77G.js} +1 -1
- package/dist/{index-DO2S4bEB.js → index-TDpPEzSH.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-ByG2zlLp.js → index.vue_vue_type_script_setup_true_lang-dN0Twm5r.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +2 -2
- package/dist/{payout-account-BG6bgqZy.js → payout-account-DWMSs6y5.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +46 -36
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +46 -36
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -38
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -38
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +46 -36
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +46 -36
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -38
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +39 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -12
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +92 -72
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +36 -36
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +18 -18
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as $ } from "./index-
|
|
3
|
-
import { u as Y, e as
|
|
1
|
+
import { defineComponent as k, resolveComponent as p, openBlock as g, createElementBlock as N, Fragment as E, createElementVNode as r, createVNode as a, withCtx as F, createTextVNode as T, toDisplayString as I, unref as u, ref as U, watch as Z, createBlock as V, computed as O, isRef as j, createCommentVNode as D, h as B, onMounted as ne, resolveDynamicComponent as J, normalizeProps as Q, mergeProps as W } from "vue";
|
|
2
|
+
import { p as $ } from "./index-BgJzLLIW.js";
|
|
3
|
+
import { u as Y, e as S } from "./index-D1IYVrYU.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 z } from "./index-
|
|
7
|
-
import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as z } from "./index-CKD8vczB.js";
|
|
7
|
+
import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CcLRVQsm.js";
|
|
8
8
|
import { h as se } from "./moment-h96o7c8I.js";
|
|
9
9
|
import { P as te } from "./PDFViewer-CIPPbzWD.js";
|
|
10
10
|
import { useSnackbar as H, useDialog as re, components as ie } from "@feedmepos/ui-library";
|
|
@@ -12,7 +12,7 @@ import { u as q } from "./error-K1CakhA9.js";
|
|
|
12
12
|
import { _ as ce } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js";
|
|
13
13
|
import { z as w, a as A } from "./validator-DzjyJnvv.js";
|
|
14
14
|
import { useCoreStore as ae } from "@feedmepos/mf-common";
|
|
15
|
-
const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */
|
|
15
|
+
const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */ k({
|
|
16
16
|
__name: "Information",
|
|
17
17
|
props: {
|
|
18
18
|
payoutAccount: {
|
|
@@ -23,8 +23,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
23
23
|
setup(n) {
|
|
24
24
|
return (f, e) => {
|
|
25
25
|
var s, v;
|
|
26
|
-
const
|
|
27
|
-
return g(), N(
|
|
26
|
+
const d = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
|
|
27
|
+
return g(), N(E, null, [
|
|
28
28
|
r("div", me, [
|
|
29
29
|
a(t, {
|
|
30
30
|
horizontal: "",
|
|
@@ -34,23 +34,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
34
34
|
default: F(() => [
|
|
35
35
|
a(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
36
36
|
default: F(() => [
|
|
37
|
-
a(
|
|
37
|
+
a(d, {
|
|
38
38
|
class: "p-0",
|
|
39
39
|
title: "Account Info",
|
|
40
40
|
subtitle: ""
|
|
41
41
|
}),
|
|
42
42
|
a(o, { class: "p-0" }, {
|
|
43
43
|
default: F(() => {
|
|
44
|
-
var
|
|
44
|
+
var i, l, y, m, c;
|
|
45
45
|
return [
|
|
46
46
|
e[0] || (e[0] = r("b", null, "For", -1)),
|
|
47
|
-
|
|
47
|
+
T(": " + I((l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.event) + " ", 1),
|
|
48
48
|
e[1] || (e[1] = r("br", null, null, -1)),
|
|
49
49
|
e[2] || (e[2] = r("b", null, "Reference", -1)),
|
|
50
|
-
|
|
50
|
+
T(": " + I((m = (y = n.payoutAccount) == null ? void 0 : y.store) == null ? void 0 : m.id), 1),
|
|
51
51
|
e[3] || (e[3] = r("br", null, null, -1)),
|
|
52
52
|
e[4] || (e[4] = r("b", null, "Business", -1)),
|
|
53
|
-
|
|
53
|
+
T(": " + I((c = n.payoutAccount) == null ? void 0 : c.businessId), 1),
|
|
54
54
|
e[5] || (e[5] = r("br", null, null, -1))
|
|
55
55
|
];
|
|
56
56
|
}),
|
|
@@ -70,23 +70,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
70
70
|
default: F(() => [
|
|
71
71
|
a(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
72
72
|
default: F(() => [
|
|
73
|
-
a(
|
|
73
|
+
a(d, {
|
|
74
74
|
class: "p-0",
|
|
75
75
|
title: "Key Person",
|
|
76
76
|
subtitle: ""
|
|
77
77
|
}),
|
|
78
78
|
a(o, { class: "p-0" }, {
|
|
79
79
|
default: F(() => {
|
|
80
|
-
var
|
|
80
|
+
var i, l, y, m, c, b, x, C;
|
|
81
81
|
return [
|
|
82
82
|
e[6] || (e[6] = r("b", null, "Email", -1)),
|
|
83
|
-
|
|
83
|
+
T(": " + I((y = (l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.keyPerson) == null ? void 0 : y.email) + " ", 1),
|
|
84
84
|
e[7] || (e[7] = r("br", null, null, -1)),
|
|
85
85
|
e[8] || (e[8] = r("b", null, "Name", -1)),
|
|
86
|
-
|
|
86
|
+
T(": " + I((b = (c = (m = n.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : c.keyPerson) == null ? void 0 : b.name), 1),
|
|
87
87
|
e[9] || (e[9] = r("br", null, null, -1)),
|
|
88
88
|
e[10] || (e[10] = r("b", null, "Phone", -1)),
|
|
89
|
-
|
|
89
|
+
T(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.keyPerson) == null ? void 0 : C.phone), 1),
|
|
90
90
|
e[11] || (e[11] = r("br", null, null, -1))
|
|
91
91
|
];
|
|
92
92
|
}),
|
|
@@ -108,25 +108,25 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
108
108
|
default: F(() => [
|
|
109
109
|
a(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
110
110
|
default: F(() => [
|
|
111
|
-
a(
|
|
111
|
+
a(d, {
|
|
112
112
|
class: "p-0",
|
|
113
113
|
title: "Status Info",
|
|
114
114
|
subtitle: ""
|
|
115
115
|
}),
|
|
116
116
|
a(o, { class: "p-0" }, {
|
|
117
117
|
default: F(() => {
|
|
118
|
-
var
|
|
118
|
+
var i, l, y;
|
|
119
119
|
return [
|
|
120
120
|
e[12] || (e[12] = r("b", null, "Submission Date", -1)),
|
|
121
|
-
|
|
121
|
+
T(": " + I((i = n.payoutAccount) != null && i.submissionDate ? u(se)(n.payoutAccount.submissionDate).format(
|
|
122
122
|
"YYYY-MM-DD HH:mm:ss"
|
|
123
123
|
) : "—"), 1),
|
|
124
124
|
e[13] || (e[13] = r("br", null, null, -1)),
|
|
125
125
|
e[14] || (e[14] = r("b", null, "Status By", -1)),
|
|
126
|
-
|
|
126
|
+
T(": " + I(((l = n.payoutAccount) == null ? void 0 : l.statusBy) ?? "—"), 1),
|
|
127
127
|
e[15] || (e[15] = r("br", null, null, -1)),
|
|
128
128
|
e[16] || (e[16] = r("b", null, "Status Reason", -1)),
|
|
129
|
-
|
|
129
|
+
T(": " + I(((y = n.payoutAccount) == null ? void 0 : y.statusReason) ?? "—"), 1),
|
|
130
130
|
e[17] || (e[17] = r("br", null, null, -1))
|
|
131
131
|
];
|
|
132
132
|
}),
|
|
@@ -148,7 +148,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
148
148
|
], 64);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
}), ye = { class: "flex gap-16 mb-6" }, fe = { class: "flex gap-16" }, ve = { class: "flex-1" }, be = { class: "flex-1" }, ge = /* @__PURE__ */
|
|
151
|
+
}), ye = { class: "flex gap-16 mb-6" }, fe = { class: "flex gap-16" }, ve = { class: "flex-1" }, be = { class: "flex-1" }, ge = /* @__PURE__ */ k({
|
|
152
152
|
__name: "Settlement",
|
|
153
153
|
props: {
|
|
154
154
|
payoutAccount: {
|
|
@@ -158,9 +158,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
158
158
|
},
|
|
159
159
|
setup(n) {
|
|
160
160
|
return (f, e) => {
|
|
161
|
-
var s, v,
|
|
162
|
-
const
|
|
163
|
-
return g(), N(
|
|
161
|
+
var s, v, i, l;
|
|
162
|
+
const d = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
|
|
163
|
+
return g(), N(E, null, [
|
|
164
164
|
r("div", ye, [
|
|
165
165
|
a(t, {
|
|
166
166
|
horizontal: "",
|
|
@@ -170,20 +170,20 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
170
170
|
default: F(() => [
|
|
171
171
|
a(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
172
172
|
default: F(() => [
|
|
173
|
-
a(
|
|
173
|
+
a(d, {
|
|
174
174
|
class: "p-0",
|
|
175
175
|
title: "Company Info",
|
|
176
176
|
subtitle: ""
|
|
177
177
|
}),
|
|
178
178
|
a(o, { class: "p-0" }, {
|
|
179
179
|
default: F(() => {
|
|
180
|
-
var
|
|
180
|
+
var y, m;
|
|
181
181
|
return [
|
|
182
182
|
e[0] || (e[0] = r("b", null, "Name", -1)),
|
|
183
|
-
|
|
183
|
+
T(": " + I((y = n.payoutAccount) == null ? void 0 : y.store.companyName), 1),
|
|
184
184
|
e[1] || (e[1] = r("br", null, null, -1)),
|
|
185
185
|
e[2] || (e[2] = r("b", null, "Registration Number", -1)),
|
|
186
|
-
|
|
186
|
+
T(": " + I((m = n.payoutAccount) == null ? void 0 : m.store.regNo), 1),
|
|
187
187
|
e[3] || (e[3] = r("br", null, null, -1))
|
|
188
188
|
];
|
|
189
189
|
}),
|
|
@@ -203,23 +203,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
203
203
|
default: F(() => [
|
|
204
204
|
a(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
205
205
|
default: F(() => [
|
|
206
|
-
a(
|
|
206
|
+
a(d, {
|
|
207
207
|
class: "p-0",
|
|
208
208
|
title: "Bank Info",
|
|
209
209
|
subtitle: ""
|
|
210
210
|
}),
|
|
211
211
|
a(o, { class: "p-0" }, {
|
|
212
212
|
default: F(() => {
|
|
213
|
-
var
|
|
213
|
+
var y, m, c, b, x, C;
|
|
214
214
|
return [
|
|
215
215
|
e[4] || (e[4] = r("b", null, "Bank", -1)),
|
|
216
|
-
|
|
216
|
+
T(": " + I((m = (y = n.payoutAccount) == null ? void 0 : y.store.bank) == null ? void 0 : m.name), 1),
|
|
217
217
|
e[5] || (e[5] = r("br", null, null, -1)),
|
|
218
218
|
e[6] || (e[6] = r("b", null, "Name", -1)),
|
|
219
|
-
|
|
219
|
+
T(": " + I((b = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : b.holderName), 1),
|
|
220
220
|
e[7] || (e[7] = r("br", null, null, -1)),
|
|
221
221
|
e[8] || (e[8] = r("b", null, "Number", -1)),
|
|
222
|
-
|
|
222
|
+
T(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : C.accountNumber), 1)
|
|
223
223
|
];
|
|
224
224
|
}),
|
|
225
225
|
_: 1
|
|
@@ -239,9 +239,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
239
239
|
"restaurant-id": ((v = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : v.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
|
|
240
240
|
document: n.payoutAccount.store.ssm
|
|
241
241
|
}, {
|
|
242
|
-
default: F(({ src:
|
|
242
|
+
default: F(({ src: y }) => [
|
|
243
243
|
a(te, {
|
|
244
|
-
pdf:
|
|
244
|
+
pdf: y,
|
|
245
245
|
"disable-text-layer": !0,
|
|
246
246
|
"disable-annotation-layer": !0
|
|
247
247
|
}, null, 8, ["pdf"])
|
|
@@ -253,12 +253,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
253
253
|
e[10] || (e[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
254
254
|
a(L, {
|
|
255
255
|
"business-id": n.payoutAccount.businessId,
|
|
256
|
-
"restaurant-id": ((l = (
|
|
256
|
+
"restaurant-id": ((l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
|
|
257
257
|
document: n.payoutAccount.store.bankStatement
|
|
258
258
|
}, {
|
|
259
|
-
default: F(({ src:
|
|
259
|
+
default: F(({ src: y }) => [
|
|
260
260
|
a(te, {
|
|
261
|
-
pdf:
|
|
261
|
+
pdf: y,
|
|
262
262
|
"disable-text-layer": !0,
|
|
263
263
|
"disable-annotation-layer": !0
|
|
264
264
|
}, null, 8, ["pdf"])
|
|
@@ -270,17 +270,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
270
270
|
], 64);
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
}), Fe = /* @__PURE__ */
|
|
273
|
+
}), Fe = /* @__PURE__ */ k({
|
|
274
274
|
__name: "RateInput",
|
|
275
275
|
props: {
|
|
276
276
|
data: {},
|
|
277
277
|
onChange: { type: Function }
|
|
278
278
|
},
|
|
279
279
|
setup(n) {
|
|
280
|
-
const f = n, e =
|
|
281
|
-
return Z(e, (
|
|
282
|
-
f.onChange(parseFloat(
|
|
283
|
-
}), (
|
|
280
|
+
const f = n, e = U(f.data.toString());
|
|
281
|
+
return Z(e, (d) => {
|
|
282
|
+
f.onChange(parseFloat(d));
|
|
283
|
+
}), (d, o) => {
|
|
284
284
|
const t = p("FmTextField");
|
|
285
285
|
return g(), V(t, {
|
|
286
286
|
inputmode: "decimal",
|
|
@@ -288,23 +288,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
288
288
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
289
289
|
}, {
|
|
290
290
|
append: F(() => [...o[1] || (o[1] = [
|
|
291
|
-
|
|
291
|
+
T("%", -1)
|
|
292
292
|
])]),
|
|
293
293
|
_: 1
|
|
294
294
|
}, 8, ["modelValue"]);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), xe = /* @__PURE__ */
|
|
297
|
+
}), xe = /* @__PURE__ */ k({
|
|
298
298
|
__name: "TPlusInput",
|
|
299
299
|
props: {
|
|
300
300
|
data: {},
|
|
301
301
|
onChange: { type: Function }
|
|
302
302
|
},
|
|
303
303
|
setup(n) {
|
|
304
|
-
const f = n, e =
|
|
305
|
-
return Z(e, (
|
|
306
|
-
f.onChange(parseInt(
|
|
307
|
-
}), (
|
|
304
|
+
const f = n, e = U(f.data.toString());
|
|
305
|
+
return Z(e, (d) => {
|
|
306
|
+
f.onChange(parseInt(d));
|
|
307
|
+
}), (d, o) => {
|
|
308
308
|
const t = p("FmTextField");
|
|
309
309
|
return g(), V(t, {
|
|
310
310
|
inputmode: "numeric",
|
|
@@ -313,17 +313,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
313
313
|
}, null, 8, ["modelValue"]);
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
}), Ve = /* @__PURE__ */
|
|
316
|
+
}), Ve = /* @__PURE__ */ k({
|
|
317
317
|
__name: "MinimumFeeInput",
|
|
318
318
|
props: {
|
|
319
319
|
data: {},
|
|
320
320
|
onChange: { type: Function }
|
|
321
321
|
},
|
|
322
322
|
setup(n) {
|
|
323
|
-
const f = n, e =
|
|
324
|
-
return Z(e, (
|
|
325
|
-
f.onChange(parseFloat(
|
|
326
|
-
}), (
|
|
323
|
+
const f = n, e = U(f.data.toString());
|
|
324
|
+
return Z(e, (d) => {
|
|
325
|
+
f.onChange(parseFloat(d));
|
|
326
|
+
}), (d, o) => {
|
|
327
327
|
const t = p("FmTextField");
|
|
328
328
|
return g(), V(t, {
|
|
329
329
|
inputmode: "numeric",
|
|
@@ -331,13 +331,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
331
331
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
332
332
|
}, {
|
|
333
333
|
prepend: F(() => [...o[1] || (o[1] = [
|
|
334
|
-
|
|
334
|
+
T("$", -1)
|
|
335
335
|
])]),
|
|
336
336
|
_: 1
|
|
337
337
|
}, 8, ["modelValue"]);
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
}), we = { class: "flex gap-16 mt-6" }, Ae = { class: "flex-1" }, Ce = { class: "flex-1" }, ke = { class: "my-6 w-full flex justify-end" },
|
|
340
|
+
}), we = { class: "flex gap-16 mt-6" }, Ae = { class: "flex-1" }, Ce = { class: "flex-1" }, ke = { class: "my-6 w-full flex justify-end" }, Te = { class: "w-[320px]" }, Ue = /* @__PURE__ */ k({
|
|
341
341
|
__name: "PaymentStatus",
|
|
342
342
|
props: {
|
|
343
343
|
onUpdate: {
|
|
@@ -350,17 +350,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
setup(n) {
|
|
353
|
-
const f = n, e =
|
|
353
|
+
const f = n, e = U(!1), d = H(), o = re(), t = async (m) => {
|
|
354
354
|
try {
|
|
355
|
-
e.value = !0, await f.onUpdate(m),
|
|
355
|
+
e.value = !0, await f.onUpdate(m), d.open({
|
|
356
356
|
type: "success",
|
|
357
357
|
title: "Payout account update succesfully"
|
|
358
358
|
});
|
|
359
|
-
} catch (
|
|
360
|
-
|
|
359
|
+
} catch (c) {
|
|
360
|
+
d.open({
|
|
361
361
|
type: "error",
|
|
362
362
|
title: "Error occurs when updating payout account",
|
|
363
|
-
message: q(
|
|
363
|
+
message: q(c)
|
|
364
364
|
});
|
|
365
365
|
} finally {
|
|
366
366
|
e.value = !1;
|
|
@@ -380,10 +380,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
380
380
|
});
|
|
381
381
|
}, { search: v } = z({
|
|
382
382
|
search: ""
|
|
383
|
-
}),
|
|
384
|
-
const { ssm: m, bank:
|
|
385
|
-
return m &&
|
|
386
|
-
}), l =
|
|
383
|
+
}), i = O(() => {
|
|
384
|
+
const { ssm: m, bank: c, bankStatement: b } = f.payoutAccount.store;
|
|
385
|
+
return m && c && c.name && c.accountNumber && c.holderName && b;
|
|
386
|
+
}), l = U(""), y = [
|
|
387
387
|
{
|
|
388
388
|
header: () => "Payment Method",
|
|
389
389
|
accessorKey: "issuer",
|
|
@@ -393,9 +393,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
393
393
|
header: () => "Rate",
|
|
394
394
|
accessorKey: "rate",
|
|
395
395
|
cell: ({ row: m }) => {
|
|
396
|
-
let
|
|
397
|
-
return m.original.rate && (
|
|
398
|
-
data:
|
|
396
|
+
let c = 0;
|
|
397
|
+
return m.original.rate && (c = m.original.rate.amount / Math.pow(10, m.original.rate.precision)), B(Fe, {
|
|
398
|
+
data: c,
|
|
399
399
|
onChange: (b) => {
|
|
400
400
|
const x = f.payoutAccount.methods.at(m.index);
|
|
401
401
|
x.rate || (x.rate = {
|
|
@@ -410,9 +410,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
410
410
|
header: () => "Minimum Fee",
|
|
411
411
|
accessorKey: "minimumFee",
|
|
412
412
|
cell: ({ row: m }) => {
|
|
413
|
-
let
|
|
414
|
-
return m.original.minimumFee && (
|
|
415
|
-
data:
|
|
413
|
+
let c = 0;
|
|
414
|
+
return m.original.minimumFee && (c = m.original.minimumFee.amount / Math.pow(10, m.original.minimumFee.precision)), B(Ve, {
|
|
415
|
+
data: c,
|
|
416
416
|
onChange: (b) => {
|
|
417
417
|
const x = f.payoutAccount.methods.at(m.index);
|
|
418
418
|
x.minimumFee || (x.minimumFee = {
|
|
@@ -426,23 +426,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
426
426
|
{
|
|
427
427
|
header: () => "T plus",
|
|
428
428
|
accessorKey: "tPlus",
|
|
429
|
-
cell: ({ row: m }) =>
|
|
429
|
+
cell: ({ row: m }) => B(xe, {
|
|
430
430
|
data: m.original.tPlus ?? 0,
|
|
431
|
-
onChange: (
|
|
431
|
+
onChange: (c) => {
|
|
432
432
|
const b = f.payoutAccount.methods.at(m.index);
|
|
433
|
-
b.tPlus =
|
|
433
|
+
b.tPlus = c;
|
|
434
434
|
}
|
|
435
435
|
})
|
|
436
436
|
}
|
|
437
437
|
];
|
|
438
|
-
return (m,
|
|
439
|
-
const b = p("FmRadio"), x = p("FmRadioGroup"), C = p("FmSwitch"),
|
|
440
|
-
return g(), N(
|
|
438
|
+
return (m, c) => {
|
|
439
|
+
const b = p("FmRadio"), x = p("FmRadioGroup"), C = p("FmSwitch"), _ = p("FmSearch"), P = p("FmTable"), R = p("FmButton");
|
|
440
|
+
return g(), N(E, null, [
|
|
441
441
|
r("div", we, [
|
|
442
442
|
r("div", Ae, [
|
|
443
443
|
a(x, {
|
|
444
444
|
modelValue: n.payoutAccount.status,
|
|
445
|
-
"onUpdate:modelValue":
|
|
445
|
+
"onUpdate:modelValue": c[0] || (c[0] = (M) => n.payoutAccount.status = M),
|
|
446
446
|
label: "Account Status"
|
|
447
447
|
}, {
|
|
448
448
|
default: F(() => [
|
|
@@ -466,34 +466,34 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
466
466
|
r("div", Ce, [
|
|
467
467
|
a(C, {
|
|
468
468
|
modelValue: n.payoutAccount.enable,
|
|
469
|
-
"onUpdate:modelValue":
|
|
470
|
-
disabled: !
|
|
469
|
+
"onUpdate:modelValue": c[1] || (c[1] = (M) => n.payoutAccount.enable = M),
|
|
470
|
+
disabled: !i.value,
|
|
471
471
|
label: "Enabled",
|
|
472
472
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
473
473
|
}, null, 8, ["modelValue", "disabled"])
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
|
-
n.payoutAccount.enable ? (g(), N(
|
|
476
|
+
n.payoutAccount.enable ? (g(), N(E, { key: 0 }, [
|
|
477
477
|
r("div", ke, [
|
|
478
|
-
r("div",
|
|
479
|
-
a(
|
|
478
|
+
r("div", Te, [
|
|
479
|
+
a(_, {
|
|
480
480
|
modelValue: u(v),
|
|
481
|
-
"onUpdate:modelValue":
|
|
481
|
+
"onUpdate:modelValue": c[2] || (c[2] = (M) => j(v) ? v.value = M : null),
|
|
482
482
|
placeholder: "Search Method ..."
|
|
483
483
|
}, null, 8, ["modelValue"])
|
|
484
484
|
])
|
|
485
485
|
]),
|
|
486
|
-
a(
|
|
486
|
+
a(P, {
|
|
487
487
|
class: "mt-6",
|
|
488
488
|
modelValue: l.value,
|
|
489
|
-
"onUpdate:modelValue":
|
|
489
|
+
"onUpdate:modelValue": c[3] || (c[3] = (M) => l.value = M),
|
|
490
490
|
"shrink-at": !1,
|
|
491
491
|
"search-value": u(v),
|
|
492
492
|
"row-data": n.payoutAccount.methods,
|
|
493
|
-
"column-defs":
|
|
493
|
+
"column-defs": y
|
|
494
494
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
495
|
-
], 64)) :
|
|
496
|
-
a(
|
|
495
|
+
], 64)) : D("", !0),
|
|
496
|
+
a(R, {
|
|
497
497
|
class: "w-full mt-6",
|
|
498
498
|
variant: "primary",
|
|
499
499
|
label: "Save",
|
|
@@ -503,12 +503,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
503
503
|
], 64);
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
}), Ie = { class: "flex" }, Se = /* @__PURE__ */
|
|
506
|
+
}), Ie = { class: "flex" }, Se = /* @__PURE__ */ k({
|
|
507
507
|
__name: "Actions",
|
|
508
508
|
emits: ["edit", "delete"],
|
|
509
509
|
setup(n, { emit: f }) {
|
|
510
510
|
const e = f;
|
|
511
|
-
return (
|
|
511
|
+
return (d, o) => {
|
|
512
512
|
const t = p("FmButton");
|
|
513
513
|
return g(), N("div", Ie, [
|
|
514
514
|
a(t, {
|
|
@@ -521,7 +521,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
521
521
|
]);
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
}), De = { class: "flex justify-end px-6 pb-6" },
|
|
524
|
+
}), De = { class: "flex justify-end px-6 pb-6" }, _e = /* @__PURE__ */ k({
|
|
525
525
|
__name: "PaymentChannel",
|
|
526
526
|
props: {
|
|
527
527
|
payoutAccount: {
|
|
@@ -530,7 +530,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
530
530
|
}
|
|
531
531
|
},
|
|
532
532
|
setup(n) {
|
|
533
|
-
const f = H(), e = n, { isLoading:
|
|
533
|
+
const f = H(), e = n, { isLoading: d, startAsyncCall: o } = Y(), t = U([]);
|
|
534
534
|
function s() {
|
|
535
535
|
o(async () => {
|
|
536
536
|
t.value = await $.getChannels(e.payoutAccount._id);
|
|
@@ -544,27 +544,27 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
544
544
|
type: "success",
|
|
545
545
|
title: "Payout account channels update succesfully"
|
|
546
546
|
});
|
|
547
|
-
} catch (
|
|
547
|
+
} catch (y) {
|
|
548
548
|
f.open({
|
|
549
549
|
type: "error",
|
|
550
550
|
title: "Error occurs when updating payout account channels",
|
|
551
|
-
message: q(
|
|
551
|
+
message: q(y)
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function i() {
|
|
557
557
|
o(async () => {
|
|
558
558
|
try {
|
|
559
559
|
await $.resetChannels(e.payoutAccount._id), t.value = await $.getChannels(e.payoutAccount._id), f.open({
|
|
560
560
|
type: "success",
|
|
561
561
|
title: "Payout account channels reset succesfully"
|
|
562
562
|
});
|
|
563
|
-
} catch (
|
|
563
|
+
} catch (y) {
|
|
564
564
|
f.open({
|
|
565
565
|
type: "error",
|
|
566
566
|
title: "Error occurs when reset payout account channels",
|
|
567
|
-
message: q(
|
|
567
|
+
message: q(y)
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
570
|
});
|
|
@@ -581,37 +581,37 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
581
581
|
{
|
|
582
582
|
header: () => "Display",
|
|
583
583
|
accessorKey: "icon",
|
|
584
|
-
cell: ({ row:
|
|
584
|
+
cell: ({ row: y }) => B("img", { src: y.original.icon, width: 32, height: 32 })
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
header: () => "Label",
|
|
588
588
|
accessorKey: "label",
|
|
589
|
-
cell: ({ row:
|
|
590
|
-
modelValue:
|
|
591
|
-
"onUpdate:modelValue": (m) =>
|
|
589
|
+
cell: ({ row: y }) => B(ie.FmTextField, {
|
|
590
|
+
modelValue: y.original.label,
|
|
591
|
+
"onUpdate:modelValue": (m) => y.original.label = m
|
|
592
592
|
})
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
id: "actions",
|
|
596
596
|
header: () => "Actions",
|
|
597
|
-
cell: ({ row:
|
|
598
|
-
onDelete: () => t.value.splice(
|
|
597
|
+
cell: ({ row: y }) => B(Se, {
|
|
598
|
+
onDelete: () => t.value.splice(y.index, 1)
|
|
599
599
|
})
|
|
600
600
|
}
|
|
601
601
|
];
|
|
602
|
-
return (
|
|
603
|
-
const
|
|
604
|
-
return g(), N(
|
|
602
|
+
return (y, m) => {
|
|
603
|
+
const c = p("FmButton"), b = p("FmTable");
|
|
604
|
+
return g(), N(E, null, [
|
|
605
605
|
r("div", De, [
|
|
606
|
-
a(
|
|
606
|
+
a(c, {
|
|
607
607
|
class: "mx-4",
|
|
608
608
|
variant: "destructive",
|
|
609
609
|
size: "md",
|
|
610
610
|
icon: "history",
|
|
611
611
|
label: "Reset",
|
|
612
|
-
onClick:
|
|
612
|
+
onClick: i
|
|
613
613
|
}),
|
|
614
|
-
a(
|
|
614
|
+
a(c, {
|
|
615
615
|
variant: "primary",
|
|
616
616
|
size: "md",
|
|
617
617
|
icon: "save",
|
|
@@ -620,7 +620,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
620
620
|
})
|
|
621
621
|
]),
|
|
622
622
|
a(b, {
|
|
623
|
-
loading: u(
|
|
623
|
+
loading: u(d),
|
|
624
624
|
"row-data": t.value,
|
|
625
625
|
"column-defs": l,
|
|
626
626
|
"shrink-at": !1
|
|
@@ -628,7 +628,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
628
628
|
], 64);
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), Pe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ k({
|
|
632
632
|
__name: "FiuuGateway",
|
|
633
633
|
props: {
|
|
634
634
|
gateway: {
|
|
@@ -645,15 +645,15 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
setup(n) {
|
|
648
|
-
var
|
|
649
|
-
const e =
|
|
648
|
+
var d;
|
|
649
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
650
650
|
merchantId: "",
|
|
651
651
|
verifyKey: "",
|
|
652
652
|
secretKey: ""
|
|
653
653
|
});
|
|
654
654
|
return (o, t) => {
|
|
655
|
-
const s = p("FmTextField"), v = p("FmButton"),
|
|
656
|
-
return g(), V(
|
|
655
|
+
const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
|
|
656
|
+
return g(), V(i, {
|
|
657
657
|
ref: "form",
|
|
658
658
|
class: "flex flex-col gap-16",
|
|
659
659
|
onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
|
|
@@ -677,14 +677,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
677
677
|
label: "Secret Key",
|
|
678
678
|
rules: u(w)(u(A).string())
|
|
679
679
|
}, null, 8, ["modelValue", "rules"]),
|
|
680
|
-
r("div",
|
|
680
|
+
r("div", Pe, [
|
|
681
681
|
n.gateway ? (g(), V(v, {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "flex-1",
|
|
684
684
|
variant: "secondary",
|
|
685
685
|
label: "Delete",
|
|
686
686
|
onclick: () => n.onDelete()
|
|
687
|
-
}, null, 8, ["onclick"])) :
|
|
687
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
688
688
|
a(v, {
|
|
689
689
|
type: "submit",
|
|
690
690
|
class: "flex-1",
|
|
@@ -697,7 +697,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
697
697
|
}, 512);
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
}), Ne = { class: "flex mt-6 space-x-6" },
|
|
700
|
+
}), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ k({
|
|
701
701
|
__name: "MacauPassGateway",
|
|
702
702
|
props: {
|
|
703
703
|
gateway: {
|
|
@@ -714,8 +714,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
setup(n) {
|
|
717
|
-
var
|
|
718
|
-
const e =
|
|
717
|
+
var d;
|
|
718
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
719
719
|
merchantId: "",
|
|
720
720
|
merchantName: "",
|
|
721
721
|
merchantCategoryCode: "",
|
|
@@ -723,8 +723,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
723
723
|
storeName: ""
|
|
724
724
|
});
|
|
725
725
|
return (o, t) => {
|
|
726
|
-
const s = p("FmTextField"), v = p("FmButton"),
|
|
727
|
-
return g(), V(
|
|
726
|
+
const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
|
|
727
|
+
return g(), V(i, {
|
|
728
728
|
ref: "form",
|
|
729
729
|
class: "flex flex-col gap-16",
|
|
730
730
|
onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
|
|
@@ -767,7 +767,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
767
767
|
variant: "secondary",
|
|
768
768
|
label: "Delete",
|
|
769
769
|
onclick: () => n.onDelete()
|
|
770
|
-
}, null, 8, ["onclick"])) :
|
|
770
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
771
771
|
a(v, {
|
|
772
772
|
type: "submit",
|
|
773
773
|
class: "flex-1",
|
|
@@ -780,7 +780,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
780
780
|
}, 512);
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), he = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ k({
|
|
784
784
|
__name: "DigioGateway",
|
|
785
785
|
props: {
|
|
786
786
|
gateway: {
|
|
@@ -797,14 +797,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
797
797
|
}
|
|
798
798
|
},
|
|
799
799
|
setup(n) {
|
|
800
|
-
var
|
|
801
|
-
const e =
|
|
800
|
+
var d;
|
|
801
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
802
802
|
merchantId: "",
|
|
803
803
|
cardMerchantId: ""
|
|
804
804
|
});
|
|
805
805
|
return (o, t) => {
|
|
806
|
-
const s = p("FmTextField"), v = p("FmButton"),
|
|
807
|
-
return g(), V(
|
|
806
|
+
const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
|
|
807
|
+
return g(), V(i, {
|
|
808
808
|
ref: "form",
|
|
809
809
|
class: "flex flex-col gap-16",
|
|
810
810
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
@@ -822,14 +822,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
822
822
|
label: "Card Merchant ID",
|
|
823
823
|
rules: u(w)(u(A).string())
|
|
824
824
|
}, null, 8, ["modelValue", "rules"]),
|
|
825
|
-
r("div",
|
|
825
|
+
r("div", he, [
|
|
826
826
|
n.gateway ? (g(), V(v, {
|
|
827
827
|
key: 0,
|
|
828
828
|
class: "flex-1",
|
|
829
829
|
variant: "secondary",
|
|
830
830
|
label: "Delete",
|
|
831
831
|
onclick: () => n.onDelete()
|
|
832
|
-
}, null, 8, ["onclick"])) :
|
|
832
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
833
833
|
a(v, {
|
|
834
834
|
type: "submit",
|
|
835
835
|
class: "flex-1",
|
|
@@ -842,7 +842,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
842
842
|
}, 512);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
845
|
+
}), Ge = { class: "flex mt-6 space-x-6" }, Ee = /* @__PURE__ */ k({
|
|
846
846
|
__name: "AdyenGateway",
|
|
847
847
|
props: {
|
|
848
848
|
gateway: {
|
|
@@ -859,8 +859,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
859
859
|
}
|
|
860
860
|
},
|
|
861
861
|
setup(n) {
|
|
862
|
-
var
|
|
863
|
-
const e =
|
|
862
|
+
var d;
|
|
863
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
864
864
|
merchantAccount: "",
|
|
865
865
|
username: "",
|
|
866
866
|
apiKey: "",
|
|
@@ -869,8 +869,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
869
869
|
hmacKey: ""
|
|
870
870
|
});
|
|
871
871
|
return (o, t) => {
|
|
872
|
-
const s = p("FmTextField"), v = p("FmButton"),
|
|
873
|
-
return g(), V(
|
|
872
|
+
const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
|
|
873
|
+
return g(), V(i, {
|
|
874
874
|
ref: "form",
|
|
875
875
|
class: "flex flex-col gap-16",
|
|
876
876
|
onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
|
|
@@ -911,14 +911,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
911
911
|
"onUpdate:modelValue": t[5] || (t[5] = (l) => e.value.hmacKey = l),
|
|
912
912
|
label: "HMac Key"
|
|
913
913
|
}, null, 8, ["modelValue"]),
|
|
914
|
-
r("div",
|
|
914
|
+
r("div", Ge, [
|
|
915
915
|
n.gateway ? (g(), V(v, {
|
|
916
916
|
key: 0,
|
|
917
917
|
class: "flex-1",
|
|
918
918
|
variant: "secondary",
|
|
919
919
|
label: "Delete",
|
|
920
920
|
onclick: () => n.onDelete()
|
|
921
|
-
}, null, 8, ["onclick"])) :
|
|
921
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
922
922
|
a(v, {
|
|
923
923
|
type: "submit",
|
|
924
924
|
class: "flex-1",
|
|
@@ -931,7 +931,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
931
931
|
}, 512);
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
|
-
}),
|
|
934
|
+
}), Oe = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ k({
|
|
935
935
|
__name: "KsherGateway",
|
|
936
936
|
props: {
|
|
937
937
|
gateway: {
|
|
@@ -948,13 +948,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
948
948
|
}
|
|
949
949
|
},
|
|
950
950
|
setup(n) {
|
|
951
|
-
var
|
|
952
|
-
const e =
|
|
951
|
+
var d;
|
|
952
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
953
953
|
appId: "",
|
|
954
954
|
privateKey: ""
|
|
955
955
|
});
|
|
956
956
|
return (o, t) => {
|
|
957
|
-
const s = p("FmTextField"), v = p("FmTextarea"),
|
|
957
|
+
const s = p("FmTextField"), v = p("FmTextarea"), i = p("FmButton"), l = p("FmForm");
|
|
958
958
|
return g(), V(l, {
|
|
959
959
|
ref: "form",
|
|
960
960
|
class: "flex flex-col gap-16",
|
|
@@ -963,26 +963,26 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
963
963
|
default: F(() => [
|
|
964
964
|
a(s, {
|
|
965
965
|
modelValue: e.value.appId,
|
|
966
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
966
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.appId = y),
|
|
967
967
|
label: "App ID",
|
|
968
968
|
rules: u(w)(u(A).string())
|
|
969
969
|
}, null, 8, ["modelValue", "rules"]),
|
|
970
970
|
a(v, {
|
|
971
971
|
modelValue: e.value.privateKey,
|
|
972
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
972
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.privateKey = y),
|
|
973
973
|
label: "Private Key",
|
|
974
974
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
975
975
|
rules: u(w)(u(A).string())
|
|
976
976
|
}, null, 8, ["modelValue", "rules"]),
|
|
977
|
-
r("div",
|
|
978
|
-
n.gateway ? (g(), V(
|
|
977
|
+
r("div", Oe, [
|
|
978
|
+
n.gateway ? (g(), V(i, {
|
|
979
979
|
key: 0,
|
|
980
980
|
class: "flex-1",
|
|
981
981
|
variant: "secondary",
|
|
982
982
|
label: "Delete",
|
|
983
983
|
onclick: () => n.onDelete()
|
|
984
|
-
}, null, 8, ["onclick"])) :
|
|
985
|
-
a(
|
|
984
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
985
|
+
a(i, {
|
|
986
986
|
type: "submit",
|
|
987
987
|
class: "flex-1",
|
|
988
988
|
variant: "primary",
|
|
@@ -994,13 +994,56 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
994
994
|
}, 512);
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
}),
|
|
997
|
+
}), Ke = /* @__PURE__ */ k({
|
|
998
|
+
__name: "TyroGateway",
|
|
999
|
+
props: {
|
|
1000
|
+
gateway: {
|
|
1001
|
+
type: Object,
|
|
1002
|
+
required: !0
|
|
1003
|
+
},
|
|
1004
|
+
onUpdate: {
|
|
1005
|
+
type: Function,
|
|
1006
|
+
required: !0
|
|
1007
|
+
},
|
|
1008
|
+
onDelete: {
|
|
1009
|
+
type: Function,
|
|
1010
|
+
required: !0
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
setup(n) {
|
|
1014
|
+
var d;
|
|
1015
|
+
const e = U(
|
|
1016
|
+
((d = n.gateway) == null ? void 0 : d.config) || {
|
|
1017
|
+
locationId: ""
|
|
1018
|
+
}
|
|
1019
|
+
);
|
|
1020
|
+
return (o, t) => {
|
|
1021
|
+
const s = p("FmTextField"), v = p("FmForm");
|
|
1022
|
+
return g(), V(v, {
|
|
1023
|
+
ref: "form",
|
|
1024
|
+
class: "flex flex-col gap-16",
|
|
1025
|
+
onValidationSuccess: t[1] || (t[1] = () => n.onUpdate(e.value))
|
|
1026
|
+
}, {
|
|
1027
|
+
default: F(() => [
|
|
1028
|
+
a(s, {
|
|
1029
|
+
modelValue: e.value.locationId,
|
|
1030
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.locationId = i),
|
|
1031
|
+
label: "Location ID",
|
|
1032
|
+
readonly: !0,
|
|
1033
|
+
rules: u(w)(u(A).string())
|
|
1034
|
+
}, null, 8, ["modelValue", "rules"])
|
|
1035
|
+
]),
|
|
1036
|
+
_: 1
|
|
1037
|
+
}, 512);
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
}), qe = {
|
|
998
1041
|
key: 0,
|
|
999
1042
|
className: "mt-1 my-6 text-gray-600"
|
|
1000
|
-
},
|
|
1043
|
+
}, je = {
|
|
1001
1044
|
key: 1,
|
|
1002
1045
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1003
|
-
},
|
|
1046
|
+
}, Ye = /* @__PURE__ */ k({
|
|
1004
1047
|
__name: "PaymentGateway",
|
|
1005
1048
|
props: {
|
|
1006
1049
|
payoutAccount: {
|
|
@@ -1009,120 +1052,126 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1009
1052
|
}
|
|
1010
1053
|
},
|
|
1011
1054
|
setup(n) {
|
|
1012
|
-
const f = ae().currentCountry, e = f.value,
|
|
1055
|
+
const f = ae().currentCountry, e = f.value, d = H(), { isLoading: o, startAsyncCall: t } = Y(), { gatewayTab: s } = z({
|
|
1013
1056
|
gatewayTab: ""
|
|
1014
|
-
}), v = n,
|
|
1057
|
+
}), v = n, i = [
|
|
1015
1058
|
{
|
|
1016
1059
|
label: "Fiuu",
|
|
1017
1060
|
value: "RAZER_MERCHANT_SERVICE",
|
|
1018
|
-
render:
|
|
1019
|
-
region: [
|
|
1061
|
+
render: Re,
|
|
1062
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1020
1063
|
},
|
|
1021
1064
|
{
|
|
1022
1065
|
label: "Macau Pass",
|
|
1023
1066
|
value: "MACAU_PASS",
|
|
1024
|
-
render:
|
|
1025
|
-
region: [
|
|
1067
|
+
render: Me,
|
|
1068
|
+
region: [S.F_COUNTRY.enum.MO]
|
|
1026
1069
|
},
|
|
1027
1070
|
{
|
|
1028
1071
|
label: "Digio",
|
|
1029
1072
|
value: "DIGIO",
|
|
1030
1073
|
render: $e,
|
|
1031
|
-
region: [
|
|
1074
|
+
region: [S.F_COUNTRY.enum.TH]
|
|
1032
1075
|
},
|
|
1033
1076
|
{
|
|
1034
1077
|
label: "Ksher",
|
|
1035
1078
|
value: "KSHER",
|
|
1036
|
-
render:
|
|
1037
|
-
region: [
|
|
1079
|
+
render: Be,
|
|
1080
|
+
region: [S.F_COUNTRY.enum.TH]
|
|
1038
1081
|
},
|
|
1039
1082
|
{
|
|
1040
1083
|
label: "Adyen",
|
|
1041
1084
|
value: "ADYEN",
|
|
1042
|
-
render:
|
|
1043
|
-
region: [
|
|
1085
|
+
render: Ee,
|
|
1086
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
label: "Tyro",
|
|
1090
|
+
value: "TYRO",
|
|
1091
|
+
render: Ke,
|
|
1092
|
+
region: [S.F_COUNTRY.enum.AU]
|
|
1044
1093
|
}
|
|
1045
|
-
], l =
|
|
1094
|
+
], l = U(
|
|
1046
1095
|
v.payoutAccount.gateways ?? []
|
|
1047
|
-
),
|
|
1048
|
-
(C) => C.region.includes(f.value ??
|
|
1096
|
+
), y = O(() => i.find((C) => C.value === s.value)), m = O(() => i.filter(
|
|
1097
|
+
(C) => C.region.includes(f.value ?? S.F_COUNTRY.enum.MY)
|
|
1049
1098
|
));
|
|
1050
|
-
async function
|
|
1099
|
+
async function c(C) {
|
|
1051
1100
|
await t(async () => {
|
|
1052
1101
|
try {
|
|
1053
|
-
await $.updateGateway(v.payoutAccount._id, C),
|
|
1102
|
+
await $.updateGateway(v.payoutAccount._id, C), d.open({
|
|
1054
1103
|
type: "success",
|
|
1055
1104
|
title: "Payout account gateways update succesfully"
|
|
1056
1105
|
}), b.value = C.length === 0;
|
|
1057
|
-
} catch (
|
|
1058
|
-
|
|
1106
|
+
} catch (_) {
|
|
1107
|
+
d.open({
|
|
1059
1108
|
type: "error",
|
|
1060
1109
|
title: "Error occurs when updating payout account gateways",
|
|
1061
|
-
message: q(
|
|
1110
|
+
message: q(_)
|
|
1062
1111
|
});
|
|
1063
1112
|
}
|
|
1064
1113
|
});
|
|
1065
1114
|
}
|
|
1066
|
-
const b =
|
|
1067
|
-
return (C,
|
|
1068
|
-
var
|
|
1069
|
-
const
|
|
1070
|
-
return g(), N(
|
|
1071
|
-
u(e) ? (g(), N("p",
|
|
1115
|
+
const b = U((v.payoutAccount.gateways ?? []).length === 0), x = O(() => e !== "MY" || !b.value);
|
|
1116
|
+
return (C, _) => {
|
|
1117
|
+
var K;
|
|
1118
|
+
const P = p("FmCircularProgress"), R = p("FmSwitch"), M = p("FmTabs");
|
|
1119
|
+
return g(), N(E, null, [
|
|
1120
|
+
u(e) ? (g(), N("p", qe, [..._[2] || (_[2] = [
|
|
1072
1121
|
r("b", null, "Note: ", -1),
|
|
1073
|
-
|
|
1074
|
-
])])) :
|
|
1075
|
-
u(o) ? (g(), N("div",
|
|
1076
|
-
a(
|
|
1077
|
-
])) : (g(), N(
|
|
1078
|
-
u(e) === "MY" ? (g(), V(
|
|
1122
|
+
T(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1123
|
+
])])) : D("", !0),
|
|
1124
|
+
u(o) ? (g(), N("div", je, [
|
|
1125
|
+
a(P, { size: "xxl" })
|
|
1126
|
+
])) : (g(), N(E, { key: 2 }, [
|
|
1127
|
+
u(e) === "MY" ? (g(), V(R, {
|
|
1079
1128
|
key: 0,
|
|
1080
1129
|
modelValue: b.value,
|
|
1081
|
-
"onUpdate:modelValue":
|
|
1130
|
+
"onUpdate:modelValue": _[0] || (_[0] = (h) => b.value = h),
|
|
1082
1131
|
style: { "padding-bottom": "12px" },
|
|
1083
1132
|
label: "Use FeedMe's Fiuu Account?"
|
|
1084
|
-
}, null, 8, ["modelValue"])) :
|
|
1085
|
-
x.value ? (g(), V(
|
|
1133
|
+
}, null, 8, ["modelValue"])) : D("", !0),
|
|
1134
|
+
x.value ? (g(), V(M, {
|
|
1086
1135
|
key: 1,
|
|
1087
1136
|
"model-value": u(s),
|
|
1088
|
-
"onUpdate:modelValue":
|
|
1137
|
+
"onUpdate:modelValue": _[1] || (_[1] = (h) => j(s) ? s.value = h : null),
|
|
1089
1138
|
class: "mb-6",
|
|
1090
1139
|
items: m.value
|
|
1091
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1092
|
-
x.value && u(s) ? (g(), V(J((
|
|
1140
|
+
}, null, 8, ["model-value", "items"])) : D("", !0),
|
|
1141
|
+
x.value && u(s) ? (g(), V(J((K = y.value) == null ? void 0 : K.render), Q(W({ key: 2 }, {
|
|
1093
1142
|
gateway: l.value.find(
|
|
1094
|
-
(
|
|
1095
|
-
var
|
|
1096
|
-
return
|
|
1143
|
+
(h) => {
|
|
1144
|
+
var G;
|
|
1145
|
+
return h.paymentGateway === ((G = y.value) == null ? void 0 : G.value);
|
|
1097
1146
|
}
|
|
1098
1147
|
),
|
|
1099
1148
|
onDelete: async () => {
|
|
1100
1149
|
l.value = l.value.filter(
|
|
1101
|
-
(
|
|
1102
|
-
var
|
|
1103
|
-
return
|
|
1150
|
+
(h) => {
|
|
1151
|
+
var G;
|
|
1152
|
+
return h.paymentGateway !== ((G = y.value) == null ? void 0 : G.value);
|
|
1104
1153
|
}
|
|
1105
|
-
),
|
|
1154
|
+
), c(l.value);
|
|
1106
1155
|
},
|
|
1107
|
-
onUpdate: (
|
|
1156
|
+
onUpdate: (h) => {
|
|
1108
1157
|
var X;
|
|
1109
|
-
let
|
|
1158
|
+
let G = l.value.find(
|
|
1110
1159
|
(le) => {
|
|
1111
1160
|
var ee;
|
|
1112
|
-
return le.paymentGateway === ((ee =
|
|
1161
|
+
return le.paymentGateway === ((ee = y.value) == null ? void 0 : ee.value);
|
|
1113
1162
|
}
|
|
1114
1163
|
);
|
|
1115
|
-
|
|
1116
|
-
paymentGateway: (X =
|
|
1117
|
-
config:
|
|
1118
|
-
}),
|
|
1164
|
+
G ? G.config = h : l.value.push({
|
|
1165
|
+
paymentGateway: (X = y.value) == null ? void 0 : X.value,
|
|
1166
|
+
config: h
|
|
1167
|
+
}), c(l.value);
|
|
1119
1168
|
}
|
|
1120
|
-
})), null, 16)) :
|
|
1169
|
+
})), null, 16)) : D("", !0)
|
|
1121
1170
|
], 64))
|
|
1122
1171
|
], 64);
|
|
1123
1172
|
};
|
|
1124
1173
|
}
|
|
1125
|
-
}),
|
|
1174
|
+
}), ze = { class: "flex mt-6 space-x-6" }, He = /* @__PURE__ */ k({
|
|
1126
1175
|
__name: "GooglePayToken",
|
|
1127
1176
|
props: {
|
|
1128
1177
|
gateway: {
|
|
@@ -1139,7 +1188,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1139
1188
|
}
|
|
1140
1189
|
},
|
|
1141
1190
|
setup(n) {
|
|
1142
|
-
const e =
|
|
1191
|
+
const e = U(
|
|
1143
1192
|
n.gateway || {
|
|
1144
1193
|
type: "googlePay",
|
|
1145
1194
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1149,7 +1198,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1149
1198
|
}
|
|
1150
1199
|
}
|
|
1151
1200
|
);
|
|
1152
|
-
return (
|
|
1201
|
+
return (d, o) => {
|
|
1153
1202
|
const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
|
|
1154
1203
|
return g(), V(v, {
|
|
1155
1204
|
ref: "form",
|
|
@@ -1159,33 +1208,33 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1159
1208
|
default: F(() => [
|
|
1160
1209
|
a(t, {
|
|
1161
1210
|
modelValue: e.value.gateway,
|
|
1162
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1211
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.value.gateway = i),
|
|
1163
1212
|
label: "Gateway",
|
|
1164
1213
|
disabled: !0,
|
|
1165
1214
|
rules: u(w)(u(A).string())
|
|
1166
1215
|
}, null, 8, ["modelValue", "rules"]),
|
|
1167
1216
|
a(t, {
|
|
1168
1217
|
modelValue: e.value.config.gateway,
|
|
1169
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1218
|
+
"onUpdate:modelValue": o[1] || (o[1] = (i) => e.value.config.gateway = i),
|
|
1170
1219
|
label: "Gateway ID",
|
|
1171
1220
|
disabled: !0,
|
|
1172
1221
|
rules: u(w)(u(A).string())
|
|
1173
1222
|
}, null, 8, ["modelValue", "rules"]),
|
|
1174
1223
|
a(t, {
|
|
1175
1224
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1176
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
1225
|
+
"onUpdate:modelValue": o[2] || (o[2] = (i) => e.value.config.gatewayMerchantId = i),
|
|
1177
1226
|
label: "Gateway Merchant ID",
|
|
1178
1227
|
disabled: !0,
|
|
1179
1228
|
rules: u(w)(u(A).string())
|
|
1180
1229
|
}, null, 8, ["modelValue", "rules"]),
|
|
1181
|
-
r("div",
|
|
1230
|
+
r("div", ze, [
|
|
1182
1231
|
n.gateway ? (g(), V(s, {
|
|
1183
1232
|
key: 0,
|
|
1184
1233
|
class: "flex-1",
|
|
1185
1234
|
variant: "secondary",
|
|
1186
1235
|
label: "Delete",
|
|
1187
1236
|
onclick: () => n.onDelete()
|
|
1188
|
-
}, null, 8, ["onclick"])) :
|
|
1237
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
1189
1238
|
a(s, {
|
|
1190
1239
|
type: "submit",
|
|
1191
1240
|
class: "flex-1",
|
|
@@ -1198,7 +1247,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1198
1247
|
}, 512);
|
|
1199
1248
|
};
|
|
1200
1249
|
}
|
|
1201
|
-
}),
|
|
1250
|
+
}), Le = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ k({
|
|
1202
1251
|
__name: "ApplePayToken",
|
|
1203
1252
|
props: {
|
|
1204
1253
|
gateway: {
|
|
@@ -1215,7 +1264,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1215
1264
|
}
|
|
1216
1265
|
},
|
|
1217
1266
|
setup(n) {
|
|
1218
|
-
const e =
|
|
1267
|
+
const e = U(
|
|
1219
1268
|
n.gateway || {
|
|
1220
1269
|
type: "applePay",
|
|
1221
1270
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1224,7 +1273,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1224
1273
|
}
|
|
1225
1274
|
}
|
|
1226
1275
|
);
|
|
1227
|
-
return (
|
|
1276
|
+
return (d, o) => {
|
|
1228
1277
|
const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
|
|
1229
1278
|
return g(), V(v, {
|
|
1230
1279
|
ref: "form",
|
|
@@ -1234,26 +1283,26 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1234
1283
|
default: F(() => [
|
|
1235
1284
|
a(t, {
|
|
1236
1285
|
modelValue: e.value.gateway,
|
|
1237
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1286
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => e.value.gateway = i),
|
|
1238
1287
|
label: "Gateway",
|
|
1239
1288
|
disabled: !0,
|
|
1240
1289
|
rules: u(w)(u(A).string())
|
|
1241
1290
|
}, null, 8, ["modelValue", "rules"]),
|
|
1242
1291
|
a(t, {
|
|
1243
1292
|
modelValue: e.value.config.merchantId,
|
|
1244
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1293
|
+
"onUpdate:modelValue": o[1] || (o[1] = (i) => e.value.config.merchantId = i),
|
|
1245
1294
|
label: "Merchant ID",
|
|
1246
1295
|
disabled: !0,
|
|
1247
1296
|
rules: u(w)(u(A).string())
|
|
1248
1297
|
}, null, 8, ["modelValue", "rules"]),
|
|
1249
|
-
r("div",
|
|
1298
|
+
r("div", Le, [
|
|
1250
1299
|
n.gateway ? (g(), V(s, {
|
|
1251
1300
|
key: 0,
|
|
1252
1301
|
class: "flex-1",
|
|
1253
1302
|
variant: "secondary",
|
|
1254
1303
|
label: "Delete",
|
|
1255
1304
|
onclick: () => n.onDelete()
|
|
1256
|
-
}, null, 8, ["onclick"])) :
|
|
1305
|
+
}, null, 8, ["onclick"])) : D("", !0),
|
|
1257
1306
|
a(s, {
|
|
1258
1307
|
type: "submit",
|
|
1259
1308
|
class: "flex-1",
|
|
@@ -1266,10 +1315,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1266
1315
|
}, 512);
|
|
1267
1316
|
};
|
|
1268
1317
|
}
|
|
1269
|
-
}),
|
|
1318
|
+
}), Je = {
|
|
1270
1319
|
key: 0,
|
|
1271
1320
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1272
|
-
},
|
|
1321
|
+
}, Qe = /* @__PURE__ */ k({
|
|
1273
1322
|
__name: "TokenGateway",
|
|
1274
1323
|
props: {
|
|
1275
1324
|
payoutAccount: {
|
|
@@ -1278,30 +1327,30 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1278
1327
|
}
|
|
1279
1328
|
},
|
|
1280
1329
|
setup(n) {
|
|
1281
|
-
const f = ae().currentCountry, e = H(), { isLoading:
|
|
1330
|
+
const f = ae().currentCountry, e = H(), { isLoading: d, startAsyncCall: o } = Y(), { tokenTab: t } = z({
|
|
1282
1331
|
tokenTab: ""
|
|
1283
1332
|
}), s = n, v = [
|
|
1284
1333
|
{
|
|
1285
1334
|
label: "Google Pay",
|
|
1286
1335
|
value: "googlePay",
|
|
1287
1336
|
icon: "android",
|
|
1288
|
-
render:
|
|
1289
|
-
region: [
|
|
1337
|
+
render: He,
|
|
1338
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1290
1339
|
},
|
|
1291
1340
|
{
|
|
1292
1341
|
label: "Apple Pay",
|
|
1293
1342
|
value: "applePay",
|
|
1294
1343
|
icon: "iOS",
|
|
1295
|
-
render:
|
|
1296
|
-
region: [
|
|
1344
|
+
render: Ze,
|
|
1345
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1297
1346
|
}
|
|
1298
|
-
],
|
|
1299
|
-
(
|
|
1347
|
+
], i = U(s.payoutAccount.tokens ?? []), l = O(() => v.find((c) => c.value === t.value)), y = O(() => v.filter(
|
|
1348
|
+
(c) => c.region.includes(f.value ?? S.F_COUNTRY.enum.MY)
|
|
1300
1349
|
));
|
|
1301
|
-
async function m(
|
|
1350
|
+
async function m(c) {
|
|
1302
1351
|
await o(async () => {
|
|
1303
1352
|
try {
|
|
1304
|
-
await $.updateTokens(s.payoutAccount._id,
|
|
1353
|
+
await $.updateTokens(s.payoutAccount._id, c), e.open({
|
|
1305
1354
|
type: "success",
|
|
1306
1355
|
title: "Payout account tokens gateway update succesfully"
|
|
1307
1356
|
});
|
|
@@ -1314,50 +1363,50 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1314
1363
|
}
|
|
1315
1364
|
});
|
|
1316
1365
|
}
|
|
1317
|
-
return (
|
|
1318
|
-
var
|
|
1366
|
+
return (c, b) => {
|
|
1367
|
+
var _;
|
|
1319
1368
|
const x = p("FmCircularProgress"), C = p("FmTabs");
|
|
1320
|
-
return g(), N(
|
|
1369
|
+
return g(), N(E, null, [
|
|
1321
1370
|
b[1] || (b[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1322
1371
|
r("b", null, "Note: "),
|
|
1323
|
-
|
|
1372
|
+
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. "),
|
|
1324
1373
|
r("br"),
|
|
1325
1374
|
r("br"),
|
|
1326
1375
|
r("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1327
1376
|
r("br")
|
|
1328
1377
|
], -1)),
|
|
1329
|
-
u(
|
|
1378
|
+
u(d) ? (g(), N("div", Je, [
|
|
1330
1379
|
a(x, { size: "xxl" })
|
|
1331
1380
|
])) : (g(), V(C, {
|
|
1332
1381
|
key: 1,
|
|
1333
1382
|
"model-value": u(t),
|
|
1334
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1383
|
+
"onUpdate:modelValue": b[0] || (b[0] = (P) => j(t) ? t.value = P : null),
|
|
1335
1384
|
class: "mb-6 mt-6",
|
|
1336
|
-
items:
|
|
1385
|
+
items: y.value
|
|
1337
1386
|
}, null, 8, ["model-value", "items"])),
|
|
1338
|
-
u(t) ? (g(), V(J((
|
|
1339
|
-
gateway:
|
|
1340
|
-
var
|
|
1341
|
-
return
|
|
1387
|
+
u(t) ? (g(), V(J((_ = l.value) == null ? void 0 : _.render), Q(W({ key: 2 }, {
|
|
1388
|
+
gateway: i.value.find((P) => {
|
|
1389
|
+
var R;
|
|
1390
|
+
return P.type === ((R = l.value) == null ? void 0 : R.value);
|
|
1342
1391
|
}),
|
|
1343
1392
|
onDelete: async () => {
|
|
1344
|
-
|
|
1345
|
-
var
|
|
1346
|
-
return
|
|
1347
|
-
}), m(
|
|
1393
|
+
i.value = i.value.filter((P) => {
|
|
1394
|
+
var R;
|
|
1395
|
+
return P.type !== ((R = l.value) == null ? void 0 : R.value);
|
|
1396
|
+
}), m(i.value);
|
|
1348
1397
|
},
|
|
1349
|
-
onUpdate: (
|
|
1350
|
-
let
|
|
1351
|
-
var
|
|
1352
|
-
return
|
|
1398
|
+
onUpdate: (P) => {
|
|
1399
|
+
let R = i.value.find((M) => {
|
|
1400
|
+
var K;
|
|
1401
|
+
return M.type === ((K = l.value) == null ? void 0 : K.value);
|
|
1353
1402
|
});
|
|
1354
|
-
|
|
1403
|
+
R ? R.config = P : i.value.push(P), m(i.value);
|
|
1355
1404
|
}
|
|
1356
|
-
})), null, 16)) :
|
|
1405
|
+
})), null, 16)) : D("", !0)
|
|
1357
1406
|
], 64);
|
|
1358
1407
|
};
|
|
1359
1408
|
}
|
|
1360
|
-
}),
|
|
1409
|
+
}), dt = /* @__PURE__ */ k({
|
|
1361
1410
|
__name: "PayoutAccountSetting",
|
|
1362
1411
|
props: {
|
|
1363
1412
|
accountId: {
|
|
@@ -1368,14 +1417,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1368
1417
|
setup(n) {
|
|
1369
1418
|
const f = n, { tab: e } = z({
|
|
1370
1419
|
tab: "information"
|
|
1371
|
-
}), { isLoading:
|
|
1420
|
+
}), { isLoading: d, startAsyncCall: o } = Y(!0), t = ue(), s = U();
|
|
1372
1421
|
async function v(m) {
|
|
1373
1422
|
await $.updateById(
|
|
1374
1423
|
f.accountId,
|
|
1375
1424
|
m
|
|
1376
1425
|
), s.value = await $.readById(f.accountId);
|
|
1377
1426
|
}
|
|
1378
|
-
const
|
|
1427
|
+
const i = [
|
|
1379
1428
|
{
|
|
1380
1429
|
label: "Information",
|
|
1381
1430
|
value: "information",
|
|
@@ -1392,25 +1441,25 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1392
1441
|
label: "MDR Status",
|
|
1393
1442
|
value: "payment",
|
|
1394
1443
|
icon: "account_box",
|
|
1395
|
-
render:
|
|
1444
|
+
render: Ue
|
|
1396
1445
|
},
|
|
1397
1446
|
{
|
|
1398
1447
|
label: "Online Gateways",
|
|
1399
1448
|
icon: "assured_workload",
|
|
1400
1449
|
value: "gateways",
|
|
1401
|
-
render:
|
|
1450
|
+
render: Ye
|
|
1402
1451
|
},
|
|
1403
1452
|
{
|
|
1404
1453
|
label: "Token Gateways",
|
|
1405
1454
|
value: "tokens",
|
|
1406
1455
|
icon: "wallet",
|
|
1407
|
-
render:
|
|
1456
|
+
render: Qe
|
|
1408
1457
|
},
|
|
1409
1458
|
{
|
|
1410
1459
|
label: "Online Channels",
|
|
1411
1460
|
icon: "shopping_cart",
|
|
1412
1461
|
value: "channels",
|
|
1413
|
-
render:
|
|
1462
|
+
render: _e
|
|
1414
1463
|
}
|
|
1415
1464
|
];
|
|
1416
1465
|
function l() {
|
|
@@ -1419,29 +1468,29 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1419
1468
|
});
|
|
1420
1469
|
}
|
|
1421
1470
|
ne(l);
|
|
1422
|
-
const
|
|
1423
|
-
const m =
|
|
1471
|
+
const y = O(() => {
|
|
1472
|
+
const m = i.reduce((c, b) => c || (b.children ? b.children.find((x) => x.value === e.value) || null : b.value === e.value ? b : null), null);
|
|
1424
1473
|
return m == null ? void 0 : m.render;
|
|
1425
1474
|
});
|
|
1426
|
-
return (m,
|
|
1475
|
+
return (m, c) => {
|
|
1427
1476
|
var x;
|
|
1428
1477
|
const b = p("FmTabs");
|
|
1429
1478
|
return g(), V(oe, {
|
|
1430
1479
|
title: `Payout Account (${(x = s.value) == null ? void 0 : x._id})`,
|
|
1431
|
-
loading: u(
|
|
1480
|
+
loading: u(d),
|
|
1432
1481
|
onBack: u(t).back
|
|
1433
1482
|
}, {
|
|
1434
1483
|
default: F(() => [
|
|
1435
1484
|
a(b, {
|
|
1436
1485
|
"model-value": u(e),
|
|
1437
|
-
"onUpdate:modelValue":
|
|
1486
|
+
"onUpdate:modelValue": c[0] || (c[0] = (C) => j(e) ? e.value = C : null),
|
|
1438
1487
|
class: "mb-6",
|
|
1439
|
-
items:
|
|
1488
|
+
items: i
|
|
1440
1489
|
}, null, 8, ["model-value"]),
|
|
1441
|
-
u(e) ? (g(), V(J(
|
|
1490
|
+
u(e) ? (g(), V(J(y.value), Q(W({ key: 0 }, {
|
|
1442
1491
|
payoutAccount: s.value,
|
|
1443
1492
|
onUpdate: v
|
|
1444
|
-
})), null, 16)) :
|
|
1493
|
+
})), null, 16)) : D("", !0)
|
|
1445
1494
|
]),
|
|
1446
1495
|
_: 1
|
|
1447
1496
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1449,5 +1498,5 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
|
|
|
1449
1498
|
}
|
|
1450
1499
|
});
|
|
1451
1500
|
export {
|
|
1452
|
-
|
|
1501
|
+
dt as default
|
|
1453
1502
|
};
|