@feedmepos/mf-payment 1.4.32 → 1.4.33
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-C3p1aEDL.js → Actions.vue_vue_type_script_setup_true_lang-CuILLIJ8.js} +2 -2
- package/dist/{Chargeback-aEqBy8JJ.js → Chargeback-DZZPmcw2.js} +5 -5
- package/dist/{OnboardForm-C-dEu7Ms.js → OnboardForm-BYEeREWi.js} +4 -4
- package/dist/{OnboardForm-cetQwMWi.js → OnboardForm-bTd7xNCg.js} +4 -4
- package/dist/{OnboardSubmission-EZyVJtPs.js → OnboardSubmission-B7-gOLSC.js} +5 -5
- package/dist/{OnboardSubmission-BC5MtKtL.js → OnboardSubmission-DMuLcjKw.js} +2 -2
- package/dist/{PayoutAccount-BDdl8-LY.js → PayoutAccount-BbRAKWfO.js} +5 -5
- package/dist/{PayoutAccount-C-PdYUyL.js → PayoutAccount-iSIW-72s.js} +5 -5
- package/dist/{PayoutAccountSetting-DRuXPzN4.js → PayoutAccountSetting-Dj8cIWno.js} +479 -391
- package/dist/{Restaurant-DrRWis75.js → Restaurant-CMjg9X88.js} +4 -4
- package/dist/{RestaurantSetting-DX3raN_M.js → RestaurantSetting-C66kJwFD.js} +3 -3
- package/dist/{Settlement-DbwsZtDs.js → Settlement-BynnBo96.js} +3 -3
- package/dist/{Settlement-CgBI2X3j.js → Settlement-DagQe3ev.js} +3 -3
- package/dist/{SettlementTransactions-tcrBkvDc.js → SettlementTransactions-CIw8y4Q4.js} +4 -4
- package/dist/{SettlementTransactions-C70_fFFA.js → SettlementTransactions-D7TuWbuI.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-uaeTXFw3.js → Status.vue_vue_type_script_setup_true_lang-DIXUpnkm.js} +1 -1
- package/dist/{Terminal-DDFHCeRH.js → Terminal-B6bEPNGC.js} +5 -5
- package/dist/{TerminalSetting-cv-DRAwO.js → TerminalSetting-BTCP3pC0.js} +481 -356
- package/dist/{Transaction-Di9pJ5b-.js → Transaction-Bzf6COBo.js} +9 -9
- package/dist/{Transaction-CQg4RUsj.js → Transaction-DxfMMihr.js} +6 -6
- package/dist/{TransactionOld-a67MbfFi.js → TransactionOld-BBB5zibd.js} +6 -6
- package/dist/{app-DtDI_k_I.js → app-DopaVelR.js} +74 -74
- package/dist/app.js +1 -1
- package/dist/{assets-Crv1vHNN.js → assets-D3LUzPyw.js} +1 -1
- package/dist/{grafana-DGF5kjUv.js → grafana-CJp-OsSI.js} +1 -1
- package/dist/{index-Btev-8WJ.js → index-B2colhiY.js} +1 -1
- package/dist/{index-DlKNMBnz.js → index-B8ejEL5n.js} +8579 -8471
- package/dist/{index-X9HLi63I.js → index-BBn7cvxH.js} +1 -1
- package/dist/{index-DbTENTAQ.js → index-BksZxG5X.js} +1 -1
- package/dist/{index-DFjVdPoc.js → index-BqTuPkCO.js} +1 -1
- package/dist/{index-BKME0CUG.js → index-CRxYHQ1I.js} +1 -1
- package/dist/{index-UPRcqQ6e.js → index-OH-SVdfb.js} +1 -1
- package/dist/{index-BqXnWkg9.js → index-rkiQgUCX.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Doj7ETw7.js → index.vue_vue_type_script_setup_true_lang-Bb8EC5LM.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BOk38kSX.js → payout-account-BXR5QHz1.js} +3 -3
- package/dist/{plugins-DZLiBiv5.js → plugins-CY87Za1G.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +10 -6
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +11 -7
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +11 -7
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +47 -0
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +9 -5
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +26 -6
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +230 -0
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +24 -4
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +24 -4
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { u as O, e as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { u as j } from "./index-
|
|
1
|
+
import { defineComponent as A, resolveComponent as d, openBlock as y, createElementBlock as h, Fragment as R, createElementVNode as i, createVNode as u, withCtx as k, createTextVNode as P, toDisplayString as D, createCommentVNode as U, createBlock as F, ref as T, watch as W, computed as G, unref as o, isRef as E, h as B, onMounted as J, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
|
|
2
|
+
import { p as N } from "./index-BksZxG5X.js";
|
|
3
|
+
import { u as O, e as S } from "./index-B8ejEL5n.js";
|
|
4
|
+
import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
5
|
+
import { useRouter as ae } from "vue-router";
|
|
6
|
+
import { u as j } from "./index-BBn7cvxH.js";
|
|
7
7
|
import { P as Q } from "./PDFViewer-DlSCBBxr.js";
|
|
8
|
-
import { useSnackbar as Y, components as
|
|
9
|
-
import { u as
|
|
10
|
-
import { z as
|
|
8
|
+
import { useSnackbar as Y, components as ne } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as q } from "./error-K1CakhA9.js";
|
|
10
|
+
import { z as x, a as w } from "./validator-D5jtpt9A.js";
|
|
11
11
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
12
|
-
const
|
|
12
|
+
const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
13
13
|
__name: "Information",
|
|
14
14
|
props: {
|
|
15
15
|
payoutAccount: {
|
|
@@ -18,36 +18,36 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
|
-
return (
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
21
|
+
return (v, e) => {
|
|
22
|
+
const m = d("FmCardHeader"), s = d("FmCardSection"), t = d("FmCard");
|
|
23
|
+
return y(), h(R, null, [
|
|
24
|
+
i("div", le, [
|
|
25
25
|
u(t, {
|
|
26
26
|
horizontal: "",
|
|
27
27
|
class: "flex-1 p-6",
|
|
28
28
|
variant: "elevated"
|
|
29
29
|
}, {
|
|
30
30
|
default: k(() => [
|
|
31
|
-
u(
|
|
31
|
+
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
32
32
|
default: k(() => [
|
|
33
|
-
u(
|
|
33
|
+
u(m, {
|
|
34
34
|
class: "p-0",
|
|
35
35
|
title: "Account Info",
|
|
36
36
|
subtitle: ""
|
|
37
37
|
}),
|
|
38
|
-
u(
|
|
38
|
+
u(s, { class: "p-0" }, {
|
|
39
39
|
default: k(() => {
|
|
40
|
-
var
|
|
40
|
+
var l, p, c, a, r;
|
|
41
41
|
return [
|
|
42
|
-
e[0] || (e[0] =
|
|
43
|
-
|
|
44
|
-
e[1] || (e[1] =
|
|
45
|
-
e[2] || (e[2] =
|
|
46
|
-
|
|
47
|
-
e[3] || (e[3] =
|
|
48
|
-
e[4] || (e[4] =
|
|
49
|
-
|
|
50
|
-
e[5] || (e[5] =
|
|
42
|
+
e[0] || (e[0] = i("b", null, "For", -1)),
|
|
43
|
+
P(": " + D((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
|
|
44
|
+
e[1] || (e[1] = i("br", null, null, -1)),
|
|
45
|
+
e[2] || (e[2] = i("b", null, "Reference", -1)),
|
|
46
|
+
P(": " + D((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
|
|
47
|
+
e[3] || (e[3] = i("br", null, null, -1)),
|
|
48
|
+
e[4] || (e[4] = i("b", null, "Business", -1)),
|
|
49
|
+
P(": " + D((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
|
|
50
|
+
e[5] || (e[5] = i("br", null, null, -1))
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
_: 1
|
|
@@ -64,26 +64,26 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
64
64
|
variant: "elevated"
|
|
65
65
|
}, {
|
|
66
66
|
default: k(() => [
|
|
67
|
-
u(
|
|
67
|
+
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
68
68
|
default: k(() => [
|
|
69
|
-
u(
|
|
69
|
+
u(m, {
|
|
70
70
|
class: "p-0",
|
|
71
71
|
title: "Key Person",
|
|
72
72
|
subtitle: ""
|
|
73
73
|
}),
|
|
74
|
-
u(
|
|
74
|
+
u(s, { class: "p-0" }, {
|
|
75
75
|
default: k(() => {
|
|
76
|
-
var
|
|
76
|
+
var l, p, c, a, r, f, g, b;
|
|
77
77
|
return [
|
|
78
|
-
e[6] || (e[6] =
|
|
79
|
-
|
|
80
|
-
e[7] || (e[7] =
|
|
81
|
-
e[8] || (e[8] =
|
|
82
|
-
|
|
83
|
-
e[9] || (e[9] =
|
|
84
|
-
e[10] || (e[10] =
|
|
85
|
-
|
|
86
|
-
e[11] || (e[11] =
|
|
78
|
+
e[6] || (e[6] = i("b", null, "Email", -1)),
|
|
79
|
+
P(": " + D((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
|
|
80
|
+
e[7] || (e[7] = i("br", null, null, -1)),
|
|
81
|
+
e[8] || (e[8] = i("b", null, "Name", -1)),
|
|
82
|
+
P(": " + D((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
|
|
83
|
+
e[9] || (e[9] = i("br", null, null, -1)),
|
|
84
|
+
e[10] || (e[10] = i("b", null, "Phone", -1)),
|
|
85
|
+
P(": " + D((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
|
|
86
|
+
e[11] || (e[11] = i("br", null, null, -1))
|
|
87
87
|
];
|
|
88
88
|
}),
|
|
89
89
|
_: 1
|
|
@@ -95,15 +95,15 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
95
95
|
_: 1
|
|
96
96
|
})
|
|
97
97
|
]),
|
|
98
|
-
e[12] || (e[12] =
|
|
99
|
-
n.payoutAccount.store.exteriorPhoto ? (
|
|
98
|
+
e[12] || (e[12] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
99
|
+
n.payoutAccount.store.exteriorPhoto ? (y(), h("img", {
|
|
100
100
|
key: 0,
|
|
101
101
|
src: n.payoutAccount.store.exteriorPhoto
|
|
102
|
-
}, null, 8,
|
|
102
|
+
}, null, 8, oe)) : U("", !0)
|
|
103
103
|
], 64);
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), re = { class: "flex gap-16" }, se = { class: "flex-1" }, ce = { class: "flex-1" }, ie = /* @__PURE__ */ A({
|
|
107
107
|
__name: "Settlement",
|
|
108
108
|
props: {
|
|
109
109
|
payoutAccount: {
|
|
@@ -112,34 +112,34 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
setup(n) {
|
|
115
|
-
return (
|
|
116
|
-
const
|
|
117
|
-
return
|
|
115
|
+
return (v, e) => {
|
|
116
|
+
const m = d("FmCardHeader"), s = d("FmCardSection"), t = d("FmCard");
|
|
117
|
+
return y(), h(R, null, [
|
|
118
118
|
u(t, {
|
|
119
119
|
horizontal: "",
|
|
120
120
|
class: "flex-1 p-6 mx-6 mb-6",
|
|
121
121
|
variant: "elevated"
|
|
122
122
|
}, {
|
|
123
123
|
default: k(() => [
|
|
124
|
-
u(
|
|
124
|
+
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
125
125
|
default: k(() => [
|
|
126
|
-
u(
|
|
126
|
+
u(m, {
|
|
127
127
|
class: "p-0",
|
|
128
128
|
title: "Bank Info",
|
|
129
129
|
subtitle: ""
|
|
130
130
|
}),
|
|
131
|
-
u(
|
|
131
|
+
u(s, { class: "p-0" }, {
|
|
132
132
|
default: k(() => {
|
|
133
|
-
var
|
|
133
|
+
var l, p, c, a, r, f;
|
|
134
134
|
return [
|
|
135
|
-
e[0] || (e[0] =
|
|
136
|
-
|
|
137
|
-
e[1] || (e[1] =
|
|
138
|
-
e[2] || (e[2] =
|
|
139
|
-
|
|
140
|
-
e[3] || (e[3] =
|
|
141
|
-
e[4] || (e[4] =
|
|
142
|
-
|
|
135
|
+
e[0] || (e[0] = i("b", null, "Bank", -1)),
|
|
136
|
+
P(": " + D((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
|
|
137
|
+
e[1] || (e[1] = i("br", null, null, -1)),
|
|
138
|
+
e[2] || (e[2] = i("b", null, "Name", -1)),
|
|
139
|
+
P(": " + D((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
|
|
140
|
+
e[3] || (e[3] = i("br", null, null, -1)),
|
|
141
|
+
e[4] || (e[4] = i("b", null, "Number", -1)),
|
|
142
|
+
P(": " + D((f = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : f.accountNumber), 1)
|
|
143
143
|
];
|
|
144
144
|
}),
|
|
145
145
|
_: 1
|
|
@@ -150,73 +150,73 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
150
150
|
]),
|
|
151
151
|
_: 1
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
e[5] || (e[5] =
|
|
156
|
-
n.payoutAccount.store.ssm ? (
|
|
153
|
+
i("div", re, [
|
|
154
|
+
i("div", se, [
|
|
155
|
+
e[5] || (e[5] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
156
|
+
n.payoutAccount.store.ssm ? (y(), F(Q, {
|
|
157
157
|
key: 0,
|
|
158
158
|
pdf: n.payoutAccount.store.ssm,
|
|
159
159
|
"disable-text-layer": !0,
|
|
160
160
|
"disable-annotation-layer": !0
|
|
161
|
-
}, null, 8, ["pdf"])) :
|
|
161
|
+
}, null, 8, ["pdf"])) : U("", !0)
|
|
162
162
|
]),
|
|
163
|
-
|
|
164
|
-
e[6] || (e[6] =
|
|
165
|
-
n.payoutAccount.store.bankStatement ? (
|
|
163
|
+
i("div", ce, [
|
|
164
|
+
e[6] || (e[6] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
165
|
+
n.payoutAccount.store.bankStatement ? (y(), F(Q, {
|
|
166
166
|
key: 0,
|
|
167
167
|
pdf: n.payoutAccount.store.bankStatement,
|
|
168
168
|
"disable-text-layer": !0,
|
|
169
169
|
"disable-annotation-layer": !0
|
|
170
|
-
}, null, 8, ["pdf"])) :
|
|
170
|
+
}, null, 8, ["pdf"])) : U("", !0)
|
|
171
171
|
])
|
|
172
172
|
])
|
|
173
173
|
], 64);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), de = /* @__PURE__ */ A({
|
|
177
177
|
__name: "RateInput",
|
|
178
178
|
props: {
|
|
179
179
|
data: {},
|
|
180
180
|
onChange: { type: Function }
|
|
181
181
|
},
|
|
182
182
|
setup(n) {
|
|
183
|
-
const
|
|
184
|
-
return W(e, (
|
|
185
|
-
|
|
186
|
-
}), (
|
|
187
|
-
const t =
|
|
188
|
-
return
|
|
183
|
+
const v = n, e = T(v.data.toString());
|
|
184
|
+
return W(e, (m) => {
|
|
185
|
+
v.onChange(parseFloat(m));
|
|
186
|
+
}), (m, s) => {
|
|
187
|
+
const t = d("FmTextField");
|
|
188
|
+
return y(), F(t, {
|
|
189
189
|
inputmode: "decimal",
|
|
190
190
|
modelValue: e.value,
|
|
191
|
-
"onUpdate:modelValue":
|
|
191
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
192
192
|
}, {
|
|
193
|
-
append: k(() =>
|
|
194
|
-
|
|
193
|
+
append: k(() => s[1] || (s[1] = [
|
|
194
|
+
P("%")
|
|
195
195
|
])),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["modelValue"]);
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
}), me = /* @__PURE__ */
|
|
200
|
+
}), me = /* @__PURE__ */ A({
|
|
201
201
|
__name: "TPlusInput",
|
|
202
202
|
props: {
|
|
203
203
|
data: {},
|
|
204
204
|
onChange: { type: Function }
|
|
205
205
|
},
|
|
206
206
|
setup(n) {
|
|
207
|
-
const
|
|
208
|
-
return W(e, (
|
|
209
|
-
|
|
210
|
-
}), (
|
|
211
|
-
const t =
|
|
212
|
-
return
|
|
207
|
+
const v = n, e = T(v.data.toString());
|
|
208
|
+
return W(e, (m) => {
|
|
209
|
+
v.onChange(parseInt(m));
|
|
210
|
+
}), (m, s) => {
|
|
211
|
+
const t = d("FmTextField");
|
|
212
|
+
return y(), F(t, {
|
|
213
213
|
inputmode: "numeric",
|
|
214
214
|
modelValue: e.value,
|
|
215
|
-
"onUpdate:modelValue":
|
|
215
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
216
216
|
}, null, 8, ["modelValue"]);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), pe = { class: "flex gap-16 mt-6" }, ye = { class: "flex-1" }, ve = { class: "flex-1" }, fe = { class: "my-6 w-full flex justify-end" }, ge = { class: "w-[320px]" }, be = /* @__PURE__ */ A({
|
|
220
220
|
__name: "PaymentStatus",
|
|
221
221
|
props: {
|
|
222
222
|
onUpdate: {
|
|
@@ -229,27 +229,27 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
setup(n) {
|
|
232
|
-
const
|
|
232
|
+
const v = n, e = T(!1), m = Y(), s = async (a) => {
|
|
233
233
|
try {
|
|
234
|
-
e.value = !0, await
|
|
234
|
+
e.value = !0, await v.onUpdate(a), m.open({
|
|
235
235
|
type: "success",
|
|
236
236
|
title: "Payout account update succesfully"
|
|
237
237
|
});
|
|
238
238
|
} catch (r) {
|
|
239
|
-
|
|
239
|
+
m.open({
|
|
240
240
|
type: "error",
|
|
241
241
|
title: "Error occurs when updating payout account",
|
|
242
|
-
message:
|
|
242
|
+
message: q(r)
|
|
243
243
|
});
|
|
244
244
|
} finally {
|
|
245
245
|
e.value = !1;
|
|
246
246
|
}
|
|
247
247
|
}, { search: t } = j({
|
|
248
248
|
search: ""
|
|
249
|
-
}),
|
|
250
|
-
const { ssm: a, bank: r, bankStatement:
|
|
251
|
-
return a && r && r.name && r.accountNumber && r.holderName &&
|
|
252
|
-
}), p =
|
|
249
|
+
}), l = G(() => {
|
|
250
|
+
const { ssm: a, bank: r, bankStatement: f } = v.payoutAccount.store;
|
|
251
|
+
return a && r && r.name && r.accountNumber && r.holderName && f;
|
|
252
|
+
}), p = T(""), c = [
|
|
253
253
|
{
|
|
254
254
|
header: () => "Payment Method",
|
|
255
255
|
accessorKey: "issuer",
|
|
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
260
260
|
accessorKey: "rate",
|
|
261
261
|
cell: ({ row: a }) => {
|
|
262
262
|
let r = 0;
|
|
263
|
-
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)),
|
|
263
|
+
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(de, {
|
|
264
264
|
data: r,
|
|
265
|
-
onChange: (
|
|
266
|
-
const
|
|
267
|
-
|
|
265
|
+
onChange: (f) => {
|
|
266
|
+
const g = v.payoutAccount.methods.at(a.index);
|
|
267
|
+
g.rate || (g.rate = {
|
|
268
268
|
amount: 0,
|
|
269
269
|
precision: 4
|
|
270
|
-
}),
|
|
270
|
+
}), g.rate.amount = f * Math.pow(10, g.rate.precision);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
@@ -275,35 +275,35 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
275
275
|
{
|
|
276
276
|
header: () => "T plus",
|
|
277
277
|
accessorKey: "tPlus",
|
|
278
|
-
cell: ({ row: a }) =>
|
|
278
|
+
cell: ({ row: a }) => B(me, {
|
|
279
279
|
data: a.original.tPlus ?? 0,
|
|
280
280
|
onChange: (r) => {
|
|
281
|
-
const
|
|
282
|
-
|
|
281
|
+
const f = v.payoutAccount.methods.at(a.index);
|
|
282
|
+
f.tPlus = r;
|
|
283
283
|
}
|
|
284
284
|
})
|
|
285
285
|
}
|
|
286
286
|
];
|
|
287
287
|
return (a, r) => {
|
|
288
|
-
const
|
|
289
|
-
return
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
u(
|
|
288
|
+
const f = d("FmRadio"), g = d("FmRadioGroup"), b = d("FmSwitch"), C = d("FmSearch"), M = d("FmTable"), $ = d("FmButton");
|
|
289
|
+
return y(), h(R, null, [
|
|
290
|
+
i("div", pe, [
|
|
291
|
+
i("div", ye, [
|
|
292
|
+
u(g, {
|
|
293
293
|
modelValue: n.payoutAccount.status,
|
|
294
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
294
|
+
"onUpdate:modelValue": r[0] || (r[0] = (V) => n.payoutAccount.status = V),
|
|
295
295
|
label: "Account Status"
|
|
296
296
|
}, {
|
|
297
297
|
default: k(() => [
|
|
298
|
-
u(
|
|
298
|
+
u(f, {
|
|
299
299
|
value: "NEW",
|
|
300
300
|
label: "New"
|
|
301
301
|
}),
|
|
302
|
-
u(
|
|
302
|
+
u(f, {
|
|
303
303
|
value: "PENDING",
|
|
304
304
|
label: "Pending"
|
|
305
305
|
}),
|
|
306
|
-
u(
|
|
306
|
+
u(f, {
|
|
307
307
|
value: "APPROVED",
|
|
308
308
|
label: "Approved"
|
|
309
309
|
})
|
|
@@ -311,65 +311,65 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
311
311
|
_: 1
|
|
312
312
|
}, 8, ["modelValue"])
|
|
313
313
|
]),
|
|
314
|
-
|
|
314
|
+
i("div", ve, [
|
|
315
315
|
u(b, {
|
|
316
316
|
modelValue: n.payoutAccount.enable,
|
|
317
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
318
|
-
disabled: !
|
|
317
|
+
"onUpdate:modelValue": r[1] || (r[1] = (V) => n.payoutAccount.enable = V),
|
|
318
|
+
disabled: !l.value,
|
|
319
319
|
label: "Enabled",
|
|
320
320
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
321
321
|
}, null, 8, ["modelValue", "disabled"])
|
|
322
322
|
])
|
|
323
323
|
]),
|
|
324
|
-
n.payoutAccount.enable ? (
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
u(
|
|
328
|
-
modelValue:
|
|
329
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
324
|
+
n.payoutAccount.enable ? (y(), h(R, { key: 0 }, [
|
|
325
|
+
i("div", fe, [
|
|
326
|
+
i("div", ge, [
|
|
327
|
+
u(C, {
|
|
328
|
+
modelValue: o(t),
|
|
329
|
+
"onUpdate:modelValue": r[2] || (r[2] = (V) => E(t) ? t.value = V : null),
|
|
330
330
|
placeholder: "Search Method ..."
|
|
331
331
|
}, null, 8, ["modelValue"])
|
|
332
332
|
])
|
|
333
333
|
]),
|
|
334
|
-
u(
|
|
334
|
+
u(M, {
|
|
335
335
|
class: "mt-6",
|
|
336
336
|
modelValue: p.value,
|
|
337
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
337
|
+
"onUpdate:modelValue": r[3] || (r[3] = (V) => p.value = V),
|
|
338
338
|
"shrink-at": !1,
|
|
339
|
-
"search-value":
|
|
339
|
+
"search-value": o(t),
|
|
340
340
|
"row-data": n.payoutAccount.methods,
|
|
341
|
-
"column-defs":
|
|
341
|
+
"column-defs": c
|
|
342
342
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
343
|
-
], 64)) :
|
|
344
|
-
u(
|
|
343
|
+
], 64)) : U("", !0),
|
|
344
|
+
u($, {
|
|
345
345
|
class: "w-full mt-6",
|
|
346
346
|
variant: "primary",
|
|
347
347
|
label: "Save",
|
|
348
348
|
loading: e.value,
|
|
349
|
-
onclick: () =>
|
|
349
|
+
onclick: () => s(n.payoutAccount)
|
|
350
350
|
}, null, 8, ["loading", "onclick"])
|
|
351
351
|
], 64);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), Fe = { class: "flex" }, xe = /* @__PURE__ */ A({
|
|
355
355
|
__name: "Actions",
|
|
356
356
|
emits: ["edit", "delete"],
|
|
357
|
-
setup(n, { emit:
|
|
358
|
-
const e =
|
|
359
|
-
return (
|
|
360
|
-
const t =
|
|
361
|
-
return
|
|
357
|
+
setup(n, { emit: v }) {
|
|
358
|
+
const e = v;
|
|
359
|
+
return (m, s) => {
|
|
360
|
+
const t = d("FmButton");
|
|
361
|
+
return y(), h("div", Fe, [
|
|
362
362
|
u(t, {
|
|
363
363
|
variant: "plain",
|
|
364
364
|
"prepend-icon": "delete",
|
|
365
|
-
onClick:
|
|
366
|
-
|
|
365
|
+
onClick: s[0] || (s[0] = (l) => {
|
|
366
|
+
l.stopPropagation(), e("delete");
|
|
367
367
|
})
|
|
368
368
|
})
|
|
369
369
|
]);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), we = { class: "flex justify-end px-6 pb-6" }, Ve = /* @__PURE__ */ A({
|
|
373
373
|
__name: "PaymentChannel",
|
|
374
374
|
props: {
|
|
375
375
|
payoutAccount: {
|
|
@@ -378,41 +378,41 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
380
|
setup(n) {
|
|
381
|
-
const
|
|
382
|
-
function
|
|
383
|
-
|
|
384
|
-
t.value = await
|
|
381
|
+
const v = Y(), e = n, { isLoading: m, startAsyncCall: s } = O(), t = T([]);
|
|
382
|
+
function l() {
|
|
383
|
+
s(async () => {
|
|
384
|
+
t.value = await N.getChannels(e.payoutAccount._id);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
J(
|
|
387
|
+
J(l);
|
|
388
388
|
function p() {
|
|
389
|
-
|
|
389
|
+
s(async () => {
|
|
390
390
|
try {
|
|
391
|
-
await
|
|
391
|
+
await N.updateChannels(e.payoutAccount._id, t.value), v.open({
|
|
392
392
|
type: "success",
|
|
393
393
|
title: "Payout account channels update succesfully"
|
|
394
394
|
});
|
|
395
395
|
} catch (r) {
|
|
396
|
-
|
|
396
|
+
v.open({
|
|
397
397
|
type: "error",
|
|
398
398
|
title: "Error occurs when updating payout account channels",
|
|
399
|
-
message:
|
|
399
|
+
message: q(r)
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
|
|
404
|
+
function c() {
|
|
405
|
+
s(async () => {
|
|
406
406
|
try {
|
|
407
|
-
await
|
|
407
|
+
await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), v.open({
|
|
408
408
|
type: "success",
|
|
409
409
|
title: "Payout account channels reset succesfully"
|
|
410
410
|
});
|
|
411
411
|
} catch (r) {
|
|
412
|
-
|
|
412
|
+
v.open({
|
|
413
413
|
type: "error",
|
|
414
414
|
title: "Error occurs when reset payout account channels",
|
|
415
|
-
message:
|
|
415
|
+
message: q(r)
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -429,37 +429,37 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
429
429
|
{
|
|
430
430
|
header: () => "Display",
|
|
431
431
|
accessorKey: "icon",
|
|
432
|
-
cell: ({ row: r }) =>
|
|
432
|
+
cell: ({ row: r }) => B("img", { src: r.original.icon, width: 32, height: 32 })
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
header: () => "Label",
|
|
436
436
|
accessorKey: "label",
|
|
437
|
-
cell: ({ row: r }) =>
|
|
437
|
+
cell: ({ row: r }) => B(ne.FmTextField, {
|
|
438
438
|
modelValue: r.original.label,
|
|
439
|
-
"onUpdate:modelValue": (
|
|
439
|
+
"onUpdate:modelValue": (f) => r.original.label = f
|
|
440
440
|
})
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
id: "actions",
|
|
444
444
|
header: () => "Actions",
|
|
445
|
-
cell: ({ row: r }) =>
|
|
445
|
+
cell: ({ row: r }) => B(xe, {
|
|
446
446
|
onDelete: () => t.value.splice(r.index, 1)
|
|
447
447
|
})
|
|
448
448
|
}
|
|
449
449
|
];
|
|
450
|
-
return (r,
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
u(
|
|
450
|
+
return (r, f) => {
|
|
451
|
+
const g = d("FmButton"), b = d("FmTable");
|
|
452
|
+
return y(), h(R, null, [
|
|
453
|
+
i("div", we, [
|
|
454
|
+
u(g, {
|
|
455
455
|
class: "mx-4",
|
|
456
456
|
variant: "destructive",
|
|
457
457
|
size: "md",
|
|
458
458
|
icon: "history",
|
|
459
459
|
label: "Reset",
|
|
460
|
-
onClick:
|
|
460
|
+
onClick: c
|
|
461
461
|
}),
|
|
462
|
-
u(
|
|
462
|
+
u(g, {
|
|
463
463
|
variant: "primary",
|
|
464
464
|
size: "md",
|
|
465
465
|
icon: "save",
|
|
@@ -468,7 +468,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
468
468
|
})
|
|
469
469
|
]),
|
|
470
470
|
u(b, {
|
|
471
|
-
loading:
|
|
471
|
+
loading: o(m),
|
|
472
472
|
"row-data": t.value,
|
|
473
473
|
"column-defs": a,
|
|
474
474
|
"shrink-at": !1
|
|
@@ -476,7 +476,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
476
476
|
], 64);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), ke = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ A({
|
|
480
480
|
__name: "FiuuGateway",
|
|
481
481
|
props: {
|
|
482
482
|
gateway: {
|
|
@@ -493,46 +493,46 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
493
493
|
}
|
|
494
494
|
},
|
|
495
495
|
setup(n) {
|
|
496
|
-
var
|
|
497
|
-
const e =
|
|
496
|
+
var m;
|
|
497
|
+
const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
498
498
|
merchantId: "",
|
|
499
499
|
verifyKey: "",
|
|
500
500
|
secretKey: ""
|
|
501
501
|
});
|
|
502
|
-
return (
|
|
503
|
-
const
|
|
504
|
-
return
|
|
502
|
+
return (s, t) => {
|
|
503
|
+
const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
|
|
504
|
+
return y(), F(c, {
|
|
505
505
|
ref: "form",
|
|
506
506
|
class: "flex flex-col gap-16",
|
|
507
507
|
onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
|
|
508
508
|
}, {
|
|
509
509
|
default: k(() => [
|
|
510
|
-
u(
|
|
510
|
+
u(l, {
|
|
511
511
|
modelValue: e.value.merchantId,
|
|
512
512
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
513
513
|
label: "Merchant ID",
|
|
514
|
-
rules:
|
|
514
|
+
rules: o(x)(o(w).string())
|
|
515
515
|
}, null, 8, ["modelValue", "rules"]),
|
|
516
|
-
u(
|
|
516
|
+
u(l, {
|
|
517
517
|
modelValue: e.value.verifyKey,
|
|
518
518
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
|
|
519
519
|
label: "Verify Key",
|
|
520
|
-
rules:
|
|
520
|
+
rules: o(x)(o(w).string())
|
|
521
521
|
}, null, 8, ["modelValue", "rules"]),
|
|
522
|
-
u(
|
|
522
|
+
u(l, {
|
|
523
523
|
modelValue: e.value.secretKey,
|
|
524
524
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
|
|
525
525
|
label: "Secret Key",
|
|
526
|
-
rules:
|
|
526
|
+
rules: o(x)(o(w).string())
|
|
527
527
|
}, null, 8, ["modelValue", "rules"]),
|
|
528
|
-
|
|
529
|
-
n.gateway ? (
|
|
528
|
+
i("div", ke, [
|
|
529
|
+
n.gateway ? (y(), F(p, {
|
|
530
530
|
key: 0,
|
|
531
531
|
class: "flex-1",
|
|
532
532
|
variant: "secondary",
|
|
533
533
|
label: "Delete",
|
|
534
534
|
onclick: () => n.onDelete()
|
|
535
|
-
}, null, 8, ["onclick"])) :
|
|
535
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
536
536
|
u(p, {
|
|
537
537
|
type: "submit",
|
|
538
538
|
class: "flex-1",
|
|
@@ -545,7 +545,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
545
545
|
}, 512);
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
}), Ae = { class: "flex mt-6 space-x-6" },
|
|
548
|
+
}), Ae = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ A({
|
|
549
549
|
__name: "MacauPassGateway",
|
|
550
550
|
props: {
|
|
551
551
|
gateway: {
|
|
@@ -562,60 +562,60 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
564
|
setup(n) {
|
|
565
|
-
var
|
|
566
|
-
const e =
|
|
565
|
+
var m;
|
|
566
|
+
const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
567
567
|
merchantId: "",
|
|
568
568
|
merchantName: "",
|
|
569
569
|
merchantCategoryCode: "",
|
|
570
570
|
storeID: "",
|
|
571
571
|
storeName: ""
|
|
572
572
|
});
|
|
573
|
-
return (
|
|
574
|
-
const
|
|
575
|
-
return
|
|
573
|
+
return (s, t) => {
|
|
574
|
+
const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
|
|
575
|
+
return y(), F(c, {
|
|
576
576
|
ref: "form",
|
|
577
577
|
class: "flex flex-col gap-16",
|
|
578
578
|
onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
|
|
579
579
|
}, {
|
|
580
580
|
default: k(() => [
|
|
581
|
-
u(
|
|
581
|
+
u(l, {
|
|
582
582
|
modelValue: e.value.merchantId,
|
|
583
583
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
584
584
|
label: "Merchant ID",
|
|
585
|
-
rules:
|
|
585
|
+
rules: o(x)(o(w).string())
|
|
586
586
|
}, null, 8, ["modelValue", "rules"]),
|
|
587
|
-
u(
|
|
587
|
+
u(l, {
|
|
588
588
|
modelValue: e.value.merchantName,
|
|
589
589
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
|
|
590
590
|
label: "Merchant Name",
|
|
591
|
-
rules:
|
|
591
|
+
rules: o(x)(o(w).string())
|
|
592
592
|
}, null, 8, ["modelValue", "rules"]),
|
|
593
|
-
u(
|
|
593
|
+
u(l, {
|
|
594
594
|
modelValue: e.value.merchantCategoryCode,
|
|
595
595
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
|
|
596
596
|
label: "Merchant MCC",
|
|
597
|
-
rules:
|
|
597
|
+
rules: o(x)(o(w).string())
|
|
598
598
|
}, null, 8, ["modelValue", "rules"]),
|
|
599
|
-
u(
|
|
599
|
+
u(l, {
|
|
600
600
|
modelValue: e.value.storeID,
|
|
601
601
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
|
|
602
602
|
label: "Store ID",
|
|
603
|
-
rules:
|
|
603
|
+
rules: o(x)(o(w).string())
|
|
604
604
|
}, null, 8, ["modelValue", "rules"]),
|
|
605
|
-
u(
|
|
605
|
+
u(l, {
|
|
606
606
|
modelValue: e.value.storeName,
|
|
607
607
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
|
|
608
608
|
label: "Store Name",
|
|
609
|
-
rules:
|
|
609
|
+
rules: o(x)(o(w).string())
|
|
610
610
|
}, null, 8, ["modelValue", "rules"]),
|
|
611
|
-
|
|
612
|
-
n.gateway ? (
|
|
611
|
+
i("div", Ae, [
|
|
612
|
+
n.gateway ? (y(), F(p, {
|
|
613
613
|
key: 0,
|
|
614
614
|
class: "flex-1",
|
|
615
615
|
variant: "secondary",
|
|
616
616
|
label: "Delete",
|
|
617
617
|
onclick: () => n.onDelete()
|
|
618
|
-
}, null, 8, ["onclick"])) :
|
|
618
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
619
619
|
u(p, {
|
|
620
620
|
type: "submit",
|
|
621
621
|
class: "flex-1",
|
|
@@ -628,7 +628,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
628
628
|
}, 512);
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), Ue = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ A({
|
|
632
632
|
__name: "DigioGateway",
|
|
633
633
|
props: {
|
|
634
634
|
gateway: {
|
|
@@ -645,39 +645,39 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
setup(n) {
|
|
648
|
-
var
|
|
649
|
-
const e =
|
|
648
|
+
var m;
|
|
649
|
+
const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
650
650
|
merchantId: "",
|
|
651
651
|
cardMerchantId: ""
|
|
652
652
|
});
|
|
653
|
-
return (
|
|
654
|
-
const
|
|
655
|
-
return
|
|
653
|
+
return (s, t) => {
|
|
654
|
+
const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
|
|
655
|
+
return y(), F(c, {
|
|
656
656
|
ref: "form",
|
|
657
657
|
class: "flex flex-col gap-16",
|
|
658
658
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
659
659
|
}, {
|
|
660
660
|
default: k(() => [
|
|
661
|
-
u(
|
|
661
|
+
u(l, {
|
|
662
662
|
modelValue: e.value.merchantId,
|
|
663
663
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
664
664
|
label: "Merchant ID",
|
|
665
|
-
rules:
|
|
665
|
+
rules: o(x)(o(w).string())
|
|
666
666
|
}, null, 8, ["modelValue", "rules"]),
|
|
667
|
-
u(
|
|
667
|
+
u(l, {
|
|
668
668
|
modelValue: e.value.cardMerchantId,
|
|
669
669
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
|
|
670
670
|
label: "Card Merchant ID",
|
|
671
|
-
rules:
|
|
671
|
+
rules: o(x)(o(w).string())
|
|
672
672
|
}, null, 8, ["modelValue", "rules"]),
|
|
673
|
-
|
|
674
|
-
n.gateway ? (
|
|
673
|
+
i("div", Ue, [
|
|
674
|
+
n.gateway ? (y(), F(p, {
|
|
675
675
|
key: 0,
|
|
676
676
|
class: "flex-1",
|
|
677
677
|
variant: "secondary",
|
|
678
678
|
label: "Delete",
|
|
679
679
|
onclick: () => n.onDelete()
|
|
680
|
-
}, null, 8, ["onclick"])) :
|
|
680
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
681
681
|
u(p, {
|
|
682
682
|
type: "submit",
|
|
683
683
|
class: "flex-1",
|
|
@@ -690,7 +690,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
690
690
|
}, 512);
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}),
|
|
693
|
+
}), Pe = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
|
|
694
694
|
__name: "AdyenGateway",
|
|
695
695
|
props: {
|
|
696
696
|
gateway: {
|
|
@@ -707,8 +707,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
707
707
|
}
|
|
708
708
|
},
|
|
709
709
|
setup(n) {
|
|
710
|
-
var
|
|
711
|
-
const e =
|
|
710
|
+
var m;
|
|
711
|
+
const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
712
712
|
merchantAccount: "",
|
|
713
713
|
username: "",
|
|
714
714
|
apiKey: "",
|
|
@@ -716,57 +716,57 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
716
716
|
endpoint: "",
|
|
717
717
|
hmacKey: ""
|
|
718
718
|
});
|
|
719
|
-
return (
|
|
720
|
-
const
|
|
721
|
-
return
|
|
719
|
+
return (s, t) => {
|
|
720
|
+
const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
|
|
721
|
+
return y(), F(c, {
|
|
722
722
|
ref: "form",
|
|
723
723
|
class: "flex flex-col gap-16",
|
|
724
724
|
onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
|
|
725
725
|
}, {
|
|
726
726
|
default: k(() => [
|
|
727
|
-
u(
|
|
727
|
+
u(l, {
|
|
728
728
|
modelValue: e.value.endpoint,
|
|
729
729
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
|
|
730
730
|
label: "Endpoint",
|
|
731
|
-
rules:
|
|
731
|
+
rules: o(x)(o(w).string())
|
|
732
732
|
}, null, 8, ["modelValue", "rules"]),
|
|
733
|
-
u(
|
|
733
|
+
u(l, {
|
|
734
734
|
modelValue: e.value.merchantAccount,
|
|
735
735
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
|
|
736
736
|
label: "Merchant Account",
|
|
737
|
-
rules:
|
|
737
|
+
rules: o(x)(o(w).string())
|
|
738
738
|
}, null, 8, ["modelValue", "rules"]),
|
|
739
|
-
u(
|
|
739
|
+
u(l, {
|
|
740
740
|
modelValue: e.value.username,
|
|
741
741
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
|
|
742
742
|
label: "Username",
|
|
743
|
-
rules:
|
|
743
|
+
rules: o(x)(o(w).string())
|
|
744
744
|
}, null, 8, ["modelValue", "rules"]),
|
|
745
|
-
u(
|
|
745
|
+
u(l, {
|
|
746
746
|
modelValue: e.value.apiKey,
|
|
747
747
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
|
|
748
748
|
label: "API Key",
|
|
749
|
-
rules:
|
|
749
|
+
rules: o(x)(o(w).string())
|
|
750
750
|
}, null, 8, ["modelValue", "rules"]),
|
|
751
|
-
u(
|
|
751
|
+
u(l, {
|
|
752
752
|
modelValue: e.value.clientKey,
|
|
753
753
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
|
|
754
754
|
label: "Client Key",
|
|
755
|
-
rules:
|
|
755
|
+
rules: o(x)(o(w).string())
|
|
756
756
|
}, null, 8, ["modelValue", "rules"]),
|
|
757
|
-
u(
|
|
757
|
+
u(l, {
|
|
758
758
|
modelValue: e.value.hmacKey,
|
|
759
759
|
"onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
|
|
760
760
|
label: "HMac Key"
|
|
761
761
|
}, null, 8, ["modelValue"]),
|
|
762
|
-
|
|
763
|
-
n.gateway ? (
|
|
762
|
+
i("div", Pe, [
|
|
763
|
+
n.gateway ? (y(), F(p, {
|
|
764
764
|
key: 0,
|
|
765
765
|
class: "flex-1",
|
|
766
766
|
variant: "secondary",
|
|
767
767
|
label: "Delete",
|
|
768
768
|
onclick: () => n.onDelete()
|
|
769
|
-
}, null, 8, ["onclick"])) :
|
|
769
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
770
770
|
u(p, {
|
|
771
771
|
type: "submit",
|
|
772
772
|
class: "flex-1",
|
|
@@ -779,7 +779,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
779
779
|
}, 512);
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
}), Se = { class: "flex mt-6 space-x-6" },
|
|
782
|
+
}), Se = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ A({
|
|
783
783
|
__name: "KsherGateway",
|
|
784
784
|
props: {
|
|
785
785
|
gateway: {
|
|
@@ -796,41 +796,41 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
setup(n) {
|
|
799
|
-
var
|
|
800
|
-
const e =
|
|
799
|
+
var m;
|
|
800
|
+
const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
801
801
|
appId: "",
|
|
802
802
|
privateKey: ""
|
|
803
803
|
});
|
|
804
|
-
return (
|
|
805
|
-
const
|
|
806
|
-
return
|
|
804
|
+
return (s, t) => {
|
|
805
|
+
const l = d("FmTextField"), p = d("FmTextarea"), c = d("FmButton"), a = d("FmForm");
|
|
806
|
+
return y(), F(a, {
|
|
807
807
|
ref: "form",
|
|
808
808
|
class: "flex flex-col gap-16",
|
|
809
809
|
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
810
810
|
}, {
|
|
811
811
|
default: k(() => [
|
|
812
|
-
u(
|
|
812
|
+
u(l, {
|
|
813
813
|
modelValue: e.value.appId,
|
|
814
814
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
|
|
815
815
|
label: "App ID",
|
|
816
|
-
rules:
|
|
816
|
+
rules: o(x)(o(w).string())
|
|
817
817
|
}, null, 8, ["modelValue", "rules"]),
|
|
818
818
|
u(p, {
|
|
819
819
|
modelValue: e.value.privateKey,
|
|
820
820
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.privateKey = r),
|
|
821
821
|
label: "Private Key",
|
|
822
822
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
823
|
-
rules:
|
|
823
|
+
rules: o(x)(o(w).string())
|
|
824
824
|
}, null, 8, ["modelValue", "rules"]),
|
|
825
|
-
|
|
826
|
-
n.gateway ? (
|
|
825
|
+
i("div", Se, [
|
|
826
|
+
n.gateway ? (y(), F(c, {
|
|
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"])) :
|
|
833
|
-
u(
|
|
832
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
833
|
+
u(c, {
|
|
834
834
|
type: "submit",
|
|
835
835
|
class: "flex-1",
|
|
836
836
|
variant: "primary",
|
|
@@ -842,13 +842,13 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
842
842
|
}, 512);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
845
|
+
}), De = {
|
|
846
846
|
key: 0,
|
|
847
847
|
className: "mt-1 my-6 text-gray-600"
|
|
848
|
-
},
|
|
848
|
+
}, Ne = {
|
|
849
849
|
key: 1,
|
|
850
850
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
851
|
-
},
|
|
851
|
+
}, Me = /* @__PURE__ */ A({
|
|
852
852
|
__name: "PaymentGateway",
|
|
853
853
|
props: {
|
|
854
854
|
payoutAccount: {
|
|
@@ -857,100 +857,106 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
859
|
setup(n) {
|
|
860
|
-
const
|
|
860
|
+
const v = X().currentCountry, e = v.value, m = Y(), { isLoading: s, startAsyncCall: t } = O(), { gatewayTab: l } = j({
|
|
861
861
|
gatewayTab: ""
|
|
862
|
-
}),
|
|
862
|
+
}), p = n, c = [
|
|
863
863
|
{
|
|
864
864
|
label: "Fiuu",
|
|
865
865
|
value: "RAZER_MERCHANT_SERVICE",
|
|
866
|
-
render:
|
|
867
|
-
region: [
|
|
866
|
+
render: _e,
|
|
867
|
+
region: [S.F_COUNTRY.enum.SG]
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
label: "Macau Pass",
|
|
871
871
|
value: "MACAU_PASS",
|
|
872
|
-
render:
|
|
873
|
-
region: [
|
|
872
|
+
render: Ce,
|
|
873
|
+
region: [S.F_COUNTRY.enum.MO]
|
|
874
874
|
},
|
|
875
875
|
{
|
|
876
876
|
label: "Digio",
|
|
877
877
|
value: "DIGIO",
|
|
878
|
-
render:
|
|
879
|
-
region: [
|
|
878
|
+
render: Te,
|
|
879
|
+
region: [S.F_COUNTRY.enum.TH]
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
label: "Ksher",
|
|
883
883
|
value: "KSHER",
|
|
884
|
-
render:
|
|
885
|
-
region: [
|
|
884
|
+
render: Ie,
|
|
885
|
+
region: [S.F_COUNTRY.enum.TH]
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
label: "Adyen",
|
|
889
889
|
value: "ADYEN",
|
|
890
890
|
render: he,
|
|
891
|
-
region: [
|
|
891
|
+
region: [S.F_COUNTRY.enum.SG]
|
|
892
892
|
}
|
|
893
|
-
],
|
|
894
|
-
|
|
895
|
-
|
|
893
|
+
], a = T(
|
|
894
|
+
p.payoutAccount.gateways ?? []
|
|
895
|
+
), r = G(() => c.find((b) => b.value === l.value)), f = G(() => c.filter(
|
|
896
|
+
(b) => b.region.includes(v.value ?? S.F_COUNTRY.enum.MY)
|
|
897
|
+
));
|
|
898
|
+
async function g(b) {
|
|
899
|
+
await t(async () => {
|
|
896
900
|
try {
|
|
897
|
-
await
|
|
901
|
+
await N.updateGateway(p.payoutAccount._id, b), m.open({
|
|
898
902
|
type: "success",
|
|
899
903
|
title: "Payout account gateways update succesfully"
|
|
900
904
|
});
|
|
901
|
-
} catch (
|
|
902
|
-
|
|
905
|
+
} catch (C) {
|
|
906
|
+
m.open({
|
|
903
907
|
type: "error",
|
|
904
908
|
title: "Error occurs when updating payout account gateways",
|
|
905
|
-
message:
|
|
909
|
+
message: q(C)
|
|
906
910
|
});
|
|
907
911
|
}
|
|
908
912
|
});
|
|
909
913
|
}
|
|
910
|
-
return (
|
|
911
|
-
var
|
|
912
|
-
const
|
|
913
|
-
return
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
]))) :
|
|
918
|
-
|
|
919
|
-
u(
|
|
920
|
-
])) : (
|
|
914
|
+
return (b, C) => {
|
|
915
|
+
var V;
|
|
916
|
+
const M = d("FmCircularProgress"), $ = d("FmTabs");
|
|
917
|
+
return y(), h(R, null, [
|
|
918
|
+
o(e) ? (y(), h("p", De, C[1] || (C[1] = [
|
|
919
|
+
i("b", null, "Note: ", -1),
|
|
920
|
+
P(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
|
|
921
|
+
]))) : U("", !0),
|
|
922
|
+
o(s) ? (y(), h("div", Ne, [
|
|
923
|
+
u(M, { size: "xxl" })
|
|
924
|
+
])) : (y(), F($, {
|
|
921
925
|
key: 2,
|
|
922
|
-
"model-value": l
|
|
923
|
-
"onUpdate:modelValue":
|
|
926
|
+
"model-value": o(l),
|
|
927
|
+
"onUpdate:modelValue": C[0] || (C[0] = (_) => E(l) ? l.value = _ : null),
|
|
924
928
|
class: "mb-6",
|
|
925
|
-
items:
|
|
929
|
+
items: f.value
|
|
926
930
|
}, null, 8, ["model-value", "items"])),
|
|
927
|
-
l
|
|
928
|
-
gateway:
|
|
929
|
-
var
|
|
930
|
-
return
|
|
931
|
+
o(l) ? (y(), F(z((V = r.value) == null ? void 0 : V.render), H(L({ key: 3 }, {
|
|
932
|
+
gateway: a.value.find((_) => {
|
|
933
|
+
var I;
|
|
934
|
+
return _.paymentGateway === ((I = r.value) == null ? void 0 : I.value);
|
|
931
935
|
}),
|
|
932
936
|
onDelete: async () => {
|
|
933
|
-
|
|
934
|
-
var
|
|
935
|
-
return
|
|
936
|
-
}), g(
|
|
937
|
+
a.value = a.value.filter((_) => {
|
|
938
|
+
var I;
|
|
939
|
+
return _.paymentGateway !== ((I = r.value) == null ? void 0 : I.value);
|
|
940
|
+
}), g(a.value);
|
|
937
941
|
},
|
|
938
|
-
onUpdate: (
|
|
939
|
-
var
|
|
940
|
-
let
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
942
|
+
onUpdate: (_) => {
|
|
943
|
+
var K;
|
|
944
|
+
let I = a.value.find(
|
|
945
|
+
(ee) => {
|
|
946
|
+
var Z;
|
|
947
|
+
return ee.paymentGateway === ((Z = r.value) == null ? void 0 : Z.value);
|
|
948
|
+
}
|
|
949
|
+
);
|
|
950
|
+
I ? I.config = _ : a.value.push({
|
|
951
|
+
paymentGateway: (K = r.value) == null ? void 0 : K.value,
|
|
952
|
+
config: _
|
|
953
|
+
}), g(a.value);
|
|
948
954
|
}
|
|
949
|
-
})), null, 16)) :
|
|
955
|
+
})), null, 16)) : U("", !0)
|
|
950
956
|
], 64);
|
|
951
957
|
};
|
|
952
958
|
}
|
|
953
|
-
}),
|
|
959
|
+
}), Re = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ A({
|
|
954
960
|
__name: "GooglePayToken",
|
|
955
961
|
props: {
|
|
956
962
|
gateway: {
|
|
@@ -967,53 +973,122 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
967
973
|
}
|
|
968
974
|
},
|
|
969
975
|
setup(n) {
|
|
970
|
-
const e =
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
976
|
+
const e = T(
|
|
977
|
+
n.gateway || {
|
|
978
|
+
type: "googlePay",
|
|
979
|
+
gateway: "RAZER_MERCHANT_SERVICE",
|
|
980
|
+
config: {
|
|
981
|
+
gateway: "molpay",
|
|
982
|
+
gatewayMerchantId: "molpay"
|
|
983
|
+
}
|
|
977
984
|
}
|
|
978
|
-
|
|
979
|
-
return (
|
|
980
|
-
const t =
|
|
981
|
-
return
|
|
985
|
+
);
|
|
986
|
+
return (m, s) => {
|
|
987
|
+
const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
|
|
988
|
+
return y(), F(p, {
|
|
982
989
|
ref: "form",
|
|
983
990
|
class: "flex flex-col gap-16",
|
|
984
|
-
onValidationSuccess:
|
|
991
|
+
onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
|
|
985
992
|
}, {
|
|
986
993
|
default: k(() => [
|
|
987
994
|
u(t, {
|
|
988
995
|
modelValue: e.value.gateway,
|
|
989
|
-
"onUpdate:modelValue":
|
|
996
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
990
997
|
label: "Gateway",
|
|
991
998
|
disabled: !0,
|
|
992
|
-
rules:
|
|
999
|
+
rules: o(x)(o(w).string())
|
|
993
1000
|
}, null, 8, ["modelValue", "rules"]),
|
|
994
1001
|
u(t, {
|
|
995
1002
|
modelValue: e.value.config.gateway,
|
|
996
|
-
"onUpdate:modelValue":
|
|
1003
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.gateway = c),
|
|
997
1004
|
label: "Gateway ID",
|
|
998
1005
|
disabled: !0,
|
|
999
|
-
rules:
|
|
1006
|
+
rules: o(x)(o(w).string())
|
|
1000
1007
|
}, null, 8, ["modelValue", "rules"]),
|
|
1001
1008
|
u(t, {
|
|
1002
|
-
modelValue: e.value.config.
|
|
1003
|
-
"onUpdate:modelValue":
|
|
1009
|
+
modelValue: e.value.config.gatewayMerchantId,
|
|
1010
|
+
"onUpdate:modelValue": s[2] || (s[2] = (c) => e.value.config.gatewayMerchantId = c),
|
|
1004
1011
|
label: "Gateway Merchant ID",
|
|
1005
1012
|
disabled: !0,
|
|
1006
|
-
rules:
|
|
1013
|
+
rules: o(x)(o(w).string())
|
|
1014
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
1015
|
+
i("div", Re, [
|
|
1016
|
+
n.gateway ? (y(), F(l, {
|
|
1017
|
+
key: 0,
|
|
1018
|
+
class: "flex-1",
|
|
1019
|
+
variant: "secondary",
|
|
1020
|
+
label: "Delete",
|
|
1021
|
+
onclick: () => n.onDelete()
|
|
1022
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
1023
|
+
u(l, {
|
|
1024
|
+
type: "submit",
|
|
1025
|
+
class: "flex-1",
|
|
1026
|
+
variant: "primary",
|
|
1027
|
+
label: "Save"
|
|
1028
|
+
})
|
|
1029
|
+
])
|
|
1030
|
+
]),
|
|
1031
|
+
_: 1
|
|
1032
|
+
}, 512);
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
}), Ge = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ A({
|
|
1036
|
+
__name: "ApplePayToken",
|
|
1037
|
+
props: {
|
|
1038
|
+
gateway: {
|
|
1039
|
+
type: Object,
|
|
1040
|
+
required: !0
|
|
1041
|
+
},
|
|
1042
|
+
onUpdate: {
|
|
1043
|
+
type: Function,
|
|
1044
|
+
required: !0
|
|
1045
|
+
},
|
|
1046
|
+
onDelete: {
|
|
1047
|
+
type: Function,
|
|
1048
|
+
required: !0
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
setup(n) {
|
|
1052
|
+
const e = T(
|
|
1053
|
+
n.gateway || {
|
|
1054
|
+
type: "applePay",
|
|
1055
|
+
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1056
|
+
config: {
|
|
1057
|
+
merchantId: "FMfeedme"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
);
|
|
1061
|
+
return (m, s) => {
|
|
1062
|
+
const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
|
|
1063
|
+
return y(), F(p, {
|
|
1064
|
+
ref: "form",
|
|
1065
|
+
class: "flex flex-col gap-16",
|
|
1066
|
+
onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
|
|
1067
|
+
}, {
|
|
1068
|
+
default: k(() => [
|
|
1069
|
+
u(t, {
|
|
1070
|
+
modelValue: e.value.gateway,
|
|
1071
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
1072
|
+
label: "Gateway",
|
|
1073
|
+
disabled: !0,
|
|
1074
|
+
rules: o(x)(o(w).string())
|
|
1007
1075
|
}, null, 8, ["modelValue", "rules"]),
|
|
1008
|
-
|
|
1009
|
-
|
|
1076
|
+
u(t, {
|
|
1077
|
+
modelValue: e.value.config.merchantId,
|
|
1078
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.merchantId = c),
|
|
1079
|
+
label: "Merchant ID",
|
|
1080
|
+
disabled: !0,
|
|
1081
|
+
rules: o(x)(o(w).string())
|
|
1082
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
1083
|
+
i("div", Ge, [
|
|
1084
|
+
n.gateway ? (y(), F(l, {
|
|
1010
1085
|
key: 0,
|
|
1011
1086
|
class: "flex-1",
|
|
1012
1087
|
variant: "secondary",
|
|
1013
1088
|
label: "Delete",
|
|
1014
1089
|
onclick: () => n.onDelete()
|
|
1015
|
-
}, null, 8, ["onclick"])) :
|
|
1016
|
-
u(
|
|
1090
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
1091
|
+
u(l, {
|
|
1017
1092
|
type: "submit",
|
|
1018
1093
|
class: "flex-1",
|
|
1019
1094
|
variant: "primary",
|
|
@@ -1025,10 +1100,10 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
1025
1100
|
}, 512);
|
|
1026
1101
|
};
|
|
1027
1102
|
}
|
|
1028
|
-
}),
|
|
1103
|
+
}), Be = {
|
|
1029
1104
|
key: 0,
|
|
1030
1105
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1031
|
-
},
|
|
1106
|
+
}, qe = /* @__PURE__ */ A({
|
|
1032
1107
|
__name: "TokenGateway",
|
|
1033
1108
|
props: {
|
|
1034
1109
|
payoutAccount: {
|
|
@@ -1037,21 +1112,30 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
1037
1112
|
}
|
|
1038
1113
|
},
|
|
1039
1114
|
setup(n) {
|
|
1040
|
-
const
|
|
1115
|
+
const v = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: s } = O(), { tokenTab: t } = j({
|
|
1041
1116
|
tokenTab: ""
|
|
1042
|
-
}),
|
|
1117
|
+
}), l = n, p = [
|
|
1043
1118
|
{
|
|
1044
1119
|
label: "Google Pay",
|
|
1045
1120
|
value: "googlePay",
|
|
1046
1121
|
icon: "android",
|
|
1047
1122
|
render: $e,
|
|
1048
|
-
region: [
|
|
1123
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
label: "Apple Pay",
|
|
1127
|
+
value: "applePay",
|
|
1128
|
+
icon: "apple",
|
|
1129
|
+
render: Ke,
|
|
1130
|
+
region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
|
|
1049
1131
|
}
|
|
1050
|
-
],
|
|
1051
|
-
|
|
1052
|
-
|
|
1132
|
+
], c = T(l.payoutAccount.tokens ?? []), a = G(() => p.find((g) => g.value === t.value)), r = G(() => p.filter(
|
|
1133
|
+
(g) => g.region.includes(v.value ?? S.F_COUNTRY.enum.MY)
|
|
1134
|
+
));
|
|
1135
|
+
async function f(g) {
|
|
1136
|
+
await s(async () => {
|
|
1053
1137
|
try {
|
|
1054
|
-
await
|
|
1138
|
+
await N.updateTokens(l.payoutAccount._id, g), e.open({
|
|
1055
1139
|
type: "success",
|
|
1056
1140
|
title: "Payout account tokens gateway update succesfully"
|
|
1057
1141
|
});
|
|
@@ -1059,51 +1143,55 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
1059
1143
|
e.open({
|
|
1060
1144
|
type: "error",
|
|
1061
1145
|
title: "Error occurs when updating payout account tokens",
|
|
1062
|
-
message:
|
|
1146
|
+
message: q(b)
|
|
1063
1147
|
});
|
|
1064
1148
|
}
|
|
1065
1149
|
});
|
|
1066
1150
|
}
|
|
1067
|
-
return (
|
|
1068
|
-
var
|
|
1069
|
-
const
|
|
1070
|
-
return
|
|
1071
|
-
b[1] || (b[1] =
|
|
1072
|
-
|
|
1073
|
-
|
|
1151
|
+
return (g, b) => {
|
|
1152
|
+
var $;
|
|
1153
|
+
const C = d("FmCircularProgress"), M = d("FmTabs");
|
|
1154
|
+
return y(), h(R, null, [
|
|
1155
|
+
b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1156
|
+
i("b", null, "Note: "),
|
|
1157
|
+
P(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
|
|
1158
|
+
i("br"),
|
|
1159
|
+
i("br"),
|
|
1160
|
+
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. `),
|
|
1161
|
+
i("br")
|
|
1074
1162
|
], -1)),
|
|
1075
|
-
|
|
1076
|
-
u(
|
|
1077
|
-
])) : (
|
|
1163
|
+
o(m) ? (y(), h("div", Be, [
|
|
1164
|
+
u(C, { size: "xxl" })
|
|
1165
|
+
])) : (y(), F(M, {
|
|
1078
1166
|
key: 1,
|
|
1079
|
-
"model-value":
|
|
1080
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1081
|
-
class: "mb-6",
|
|
1167
|
+
"model-value": o(t),
|
|
1168
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => E(t) ? t.value = V : null),
|
|
1169
|
+
class: "mb-6 mt-6",
|
|
1082
1170
|
items: r.value
|
|
1083
1171
|
}, null, 8, ["model-value", "items"])),
|
|
1084
|
-
|
|
1085
|
-
gateway:
|
|
1086
|
-
var
|
|
1087
|
-
return
|
|
1172
|
+
o(t) ? (y(), F(z(($ = a.value) == null ? void 0 : $.render), H(L({ key: 2 }, {
|
|
1173
|
+
gateway: c.value.find((V) => {
|
|
1174
|
+
var _;
|
|
1175
|
+
return V.type === ((_ = a.value) == null ? void 0 : _.value);
|
|
1088
1176
|
}),
|
|
1089
1177
|
onDelete: async () => {
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1092
|
-
return
|
|
1093
|
-
}),
|
|
1178
|
+
c.value = c.value.filter((V) => {
|
|
1179
|
+
var _;
|
|
1180
|
+
return V.type !== ((_ = a.value) == null ? void 0 : _.value);
|
|
1181
|
+
}), f(c.value);
|
|
1094
1182
|
},
|
|
1095
|
-
onUpdate: (
|
|
1096
|
-
let
|
|
1097
|
-
var
|
|
1098
|
-
return
|
|
1183
|
+
onUpdate: (V) => {
|
|
1184
|
+
let _ = c.value.find((I) => {
|
|
1185
|
+
var K;
|
|
1186
|
+
return I.type === ((K = a.value) == null ? void 0 : K.value);
|
|
1099
1187
|
});
|
|
1100
|
-
|
|
1188
|
+
_ ? _.config = V : c.value.push(V), f(c.value);
|
|
1101
1189
|
}
|
|
1102
|
-
})), null, 16)) :
|
|
1190
|
+
})), null, 16)) : U("", !0)
|
|
1103
1191
|
], 64);
|
|
1104
1192
|
};
|
|
1105
1193
|
}
|
|
1106
|
-
}),
|
|
1194
|
+
}), Xe = /* @__PURE__ */ A({
|
|
1107
1195
|
__name: "PayoutAccountSetting",
|
|
1108
1196
|
props: {
|
|
1109
1197
|
accountId: {
|
|
@@ -1112,82 +1200,82 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
1112
1200
|
}
|
|
1113
1201
|
},
|
|
1114
1202
|
setup(n) {
|
|
1115
|
-
const
|
|
1203
|
+
const v = n, { tab: e } = j({
|
|
1116
1204
|
tab: "information"
|
|
1117
|
-
}), { isLoading:
|
|
1118
|
-
async function p(
|
|
1119
|
-
await
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
),
|
|
1205
|
+
}), { isLoading: m, startAsyncCall: s } = O(!0), t = ae(), l = T();
|
|
1206
|
+
async function p(f) {
|
|
1207
|
+
await N.updateById(
|
|
1208
|
+
v.accountId,
|
|
1209
|
+
f
|
|
1210
|
+
), l.value = await N.readById(v.accountId);
|
|
1123
1211
|
}
|
|
1124
|
-
const
|
|
1212
|
+
const c = [
|
|
1125
1213
|
{
|
|
1126
1214
|
label: "Information",
|
|
1127
1215
|
value: "information",
|
|
1128
1216
|
icon: "overview",
|
|
1129
|
-
render:
|
|
1217
|
+
render: ue
|
|
1130
1218
|
},
|
|
1131
1219
|
{
|
|
1132
1220
|
label: "Settlement",
|
|
1133
1221
|
value: "settlement",
|
|
1134
1222
|
icon: "payments",
|
|
1135
|
-
render:
|
|
1223
|
+
render: ie
|
|
1136
1224
|
},
|
|
1137
1225
|
{
|
|
1138
1226
|
label: "MDR Status",
|
|
1139
1227
|
value: "payment",
|
|
1140
1228
|
icon: "account_box",
|
|
1141
|
-
render:
|
|
1229
|
+
render: be
|
|
1142
1230
|
},
|
|
1143
1231
|
{
|
|
1144
1232
|
label: "Online Gateways",
|
|
1145
1233
|
icon: "assured_workload",
|
|
1146
1234
|
value: "gateways",
|
|
1147
|
-
render:
|
|
1235
|
+
render: Me
|
|
1148
1236
|
},
|
|
1149
1237
|
{
|
|
1150
1238
|
label: "Token Gateways",
|
|
1151
1239
|
value: "tokens",
|
|
1152
1240
|
icon: "wallet",
|
|
1153
|
-
render:
|
|
1241
|
+
render: qe
|
|
1154
1242
|
},
|
|
1155
1243
|
{
|
|
1156
1244
|
label: "Online Channels",
|
|
1157
1245
|
icon: "shopping_cart",
|
|
1158
1246
|
value: "channels",
|
|
1159
|
-
render:
|
|
1247
|
+
render: Ve
|
|
1160
1248
|
}
|
|
1161
1249
|
];
|
|
1162
1250
|
function a() {
|
|
1163
|
-
|
|
1164
|
-
|
|
1251
|
+
s(async () => {
|
|
1252
|
+
l.value = await N.readById(v.accountId);
|
|
1165
1253
|
});
|
|
1166
1254
|
}
|
|
1167
1255
|
J(a);
|
|
1168
1256
|
const r = G(() => {
|
|
1169
|
-
const
|
|
1170
|
-
return
|
|
1257
|
+
const f = c.reduce((g, b) => g || (b.children ? b.children.find((C) => C.value === e.value) || null : b.value === e.value ? b : null), null);
|
|
1258
|
+
return f == null ? void 0 : f.render;
|
|
1171
1259
|
});
|
|
1172
|
-
return (
|
|
1173
|
-
var
|
|
1174
|
-
const b =
|
|
1175
|
-
return
|
|
1176
|
-
title: `Payout Account (${(
|
|
1177
|
-
loading:
|
|
1178
|
-
onBack:
|
|
1260
|
+
return (f, g) => {
|
|
1261
|
+
var C;
|
|
1262
|
+
const b = d("FmTabs");
|
|
1263
|
+
return y(), F(te, {
|
|
1264
|
+
title: `Payout Account (${(C = l.value) == null ? void 0 : C._id})`,
|
|
1265
|
+
loading: o(m),
|
|
1266
|
+
onBack: o(t).back
|
|
1179
1267
|
}, {
|
|
1180
1268
|
default: k(() => [
|
|
1181
1269
|
u(b, {
|
|
1182
|
-
"model-value":
|
|
1183
|
-
"onUpdate:modelValue":
|
|
1270
|
+
"model-value": o(e),
|
|
1271
|
+
"onUpdate:modelValue": g[0] || (g[0] = (M) => E(e) ? e.value = M : null),
|
|
1184
1272
|
class: "mb-6",
|
|
1185
|
-
items:
|
|
1273
|
+
items: c
|
|
1186
1274
|
}, null, 8, ["model-value"]),
|
|
1187
|
-
|
|
1188
|
-
payoutAccount:
|
|
1275
|
+
o(e) ? (y(), F(z(r.value), H(L({ key: 0 }, {
|
|
1276
|
+
payoutAccount: l.value,
|
|
1189
1277
|
onUpdate: p
|
|
1190
|
-
})), null, 16)) :
|
|
1278
|
+
})), null, 16)) : U("", !0)
|
|
1191
1279
|
]),
|
|
1192
1280
|
_: 1
|
|
1193
1281
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1195,5 +1283,5 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
|
1195
1283
|
}
|
|
1196
1284
|
});
|
|
1197
1285
|
export {
|
|
1198
|
-
|
|
1286
|
+
Xe as default
|
|
1199
1287
|
};
|