@feedmepos/mf-payment 1.4.36 → 1.4.38
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-Bk0JJG8s.js → Actions.vue_vue_type_script_setup_true_lang-Dm9-P1P6.js} +2 -2
- package/dist/{Chargeback-DZZPmcw2.js → Chargeback-CF_p5AkJ.js} +5 -5
- package/dist/{OnboardForm-CvhNMpBW.js → OnboardForm-C1HA4dA2.js} +4 -4
- package/dist/{OnboardForm-BGoTHTBH.js → OnboardForm-CSwv-JMK.js} +4 -4
- package/dist/{OnboardSubmission-CVzeJZUR.js → OnboardSubmission-Ctfsad96.js} +2 -2
- package/dist/{OnboardSubmission-DXYeprSM.js → OnboardSubmission-DeEhWi2y.js} +5 -5
- package/dist/{PayoutAccount-Byzd-ams.js → PayoutAccount-D1LOrBk6.js} +5 -5
- package/dist/{PayoutAccount-CHDycpkY.js → PayoutAccount-sYHu8imZ.js} +5 -5
- package/dist/{PayoutAccountSetting-Dj8cIWno.js → PayoutAccountSetting-CUTZqupc.js} +311 -298
- package/dist/{Restaurant-CMjg9X88.js → Restaurant-BFM6IVeo.js} +4 -4
- package/dist/{RestaurantSetting-C66kJwFD.js → RestaurantSetting-CRWzH54g.js} +3 -3
- package/dist/{Settlement-BynnBo96.js → Settlement-BVyNw-s_.js} +3 -3
- package/dist/{Settlement-BJMsyM2H.js → Settlement-CK5FGMkl.js} +3 -3
- package/dist/{SettlementTransactions-DYHTV5Z2.js → SettlementTransactions-B_OHLhd0.js} +4 -4
- package/dist/{SettlementTransactions-B7xUY6Xt.js → SettlementTransactions-q8-O_icK.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DIXUpnkm.js → Status.vue_vue_type_script_setup_true_lang-B_1HKa0E.js} +1 -1
- package/dist/{Terminal-B6bEPNGC.js → Terminal-BSmGsSH6.js} +5 -5
- package/dist/{TerminalSetting-D1HF1unx.js → TerminalSetting-B70azG2l.js} +3 -3
- package/dist/{Transaction-CwIDxvss.js → Transaction-BhnPGXP_.js} +6 -6
- package/dist/{Transaction-CA5tb68I.js → Transaction-ycjLL38i.js} +9 -9
- package/dist/{TransactionOld-DmqBtUcB.js → TransactionOld-hQw2jPbw.js} +6 -6
- package/dist/{app-D-Jz549j.js → app-BtL_h4_R.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-T1fUoqNx.js → assets-B1D_MgMU.js} +1 -1
- package/dist/{grafana-CJp-OsSI.js → grafana-CpZFM_Is.js} +1 -1
- package/dist/{index-B8ejEL5n.js → index-BCwCx3CJ.js} +36 -23
- package/dist/{index-B2colhiY.js → index-BOXe3lBY.js} +1 -1
- package/dist/{index-BksZxG5X.js → index-CIj4gYaQ.js} +1 -1
- package/dist/{index-BBn7cvxH.js → index-Cif5ZVCF.js} +1 -1
- package/dist/{index-CRxYHQ1I.js → index-DkkJFPfC.js} +1 -1
- package/dist/{index-CYSrm3cF.js → index-G4bYOaro.js} +2 -2
- package/dist/{index-BqTuPkCO.js → index-wMVjSqOV.js} +1 -1
- package/dist/{index-OH-SVdfb.js → index-yD13EQmY.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bb8EC5LM.js → index.vue_vue_type_script_setup_true_lang-BzAMhFiq.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BvbYSPMV.js → payout-account-CloqCNlq.js} +3 -3
- package/dist/{plugins-1an9gsXJ.js → plugins-Bg6JJRhO.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +42 -36
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +42 -36
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +42 -36
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +64 -64
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +32 -32
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as A, resolveComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { u as j } from "./index-
|
|
7
|
-
import { P as
|
|
8
|
-
import { useSnackbar as
|
|
9
|
-
import { u as
|
|
1
|
+
import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as h, Fragment as $, createElementVNode as d, createVNode as u, withCtx as V, createTextVNode as P, toDisplayString as M, createCommentVNode as _, createBlock as b, ref as C, watch as ee, computed as K, unref as o, isRef as O, h as q, onMounted as te, resolveDynamicComponent as L, normalizeProps as Z, mergeProps as Q } from "vue";
|
|
2
|
+
import { p as R } from "./index-CIj4gYaQ.js";
|
|
3
|
+
import { u as Y, e as T } from "./index-BCwCx3CJ.js";
|
|
4
|
+
import { _ as le } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
5
|
+
import { useRouter as oe } from "vue-router";
|
|
6
|
+
import { u as j } from "./index-Cif5ZVCF.js";
|
|
7
|
+
import { P as X } from "./PDFViewer-DlSCBBxr.js";
|
|
8
|
+
import { useSnackbar as z, components as ue } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as E } from "./error-K1CakhA9.js";
|
|
10
10
|
import { z as x, a as w } from "./validator-D5jtpt9A.js";
|
|
11
|
-
import { useCoreStore as
|
|
12
|
-
const
|
|
11
|
+
import { useCoreStore as ae } from "@feedmepos/mf-common";
|
|
12
|
+
const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
|
|
13
13
|
__name: "Information",
|
|
14
14
|
props: {
|
|
15
15
|
payoutAccount: {
|
|
@@ -19,35 +19,35 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (v, e) => {
|
|
22
|
-
const m =
|
|
23
|
-
return y(), h(
|
|
24
|
-
|
|
22
|
+
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
23
|
+
return y(), h($, null, [
|
|
24
|
+
d("div", re, [
|
|
25
25
|
u(t, {
|
|
26
26
|
horizontal: "",
|
|
27
27
|
class: "flex-1 p-6",
|
|
28
28
|
variant: "elevated"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
30
|
+
default: V(() => [
|
|
31
31
|
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
32
|
-
default:
|
|
32
|
+
default: V(() => [
|
|
33
33
|
u(m, {
|
|
34
34
|
class: "p-0",
|
|
35
35
|
title: "Account Info",
|
|
36
36
|
subtitle: ""
|
|
37
37
|
}),
|
|
38
38
|
u(s, { class: "p-0" }, {
|
|
39
|
-
default:
|
|
39
|
+
default: V(() => {
|
|
40
40
|
var l, p, c, a, r;
|
|
41
41
|
return [
|
|
42
|
-
e[0] || (e[0] =
|
|
43
|
-
P(": " +
|
|
44
|
-
e[1] || (e[1] =
|
|
45
|
-
e[2] || (e[2] =
|
|
46
|
-
P(": " +
|
|
47
|
-
e[3] || (e[3] =
|
|
48
|
-
e[4] || (e[4] =
|
|
49
|
-
P(": " +
|
|
50
|
-
e[5] || (e[5] =
|
|
42
|
+
e[0] || (e[0] = d("b", null, "For", -1)),
|
|
43
|
+
P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
|
|
44
|
+
e[1] || (e[1] = d("br", null, null, -1)),
|
|
45
|
+
e[2] || (e[2] = d("b", null, "Reference", -1)),
|
|
46
|
+
P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
|
|
47
|
+
e[3] || (e[3] = d("br", null, null, -1)),
|
|
48
|
+
e[4] || (e[4] = d("b", null, "Business", -1)),
|
|
49
|
+
P(": " + M((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
|
|
50
|
+
e[5] || (e[5] = d("br", null, null, -1))
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
_: 1
|
|
@@ -63,27 +63,27 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
63
63
|
class: "flex-1 p-6",
|
|
64
64
|
variant: "elevated"
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
66
|
+
default: V(() => [
|
|
67
67
|
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
68
|
-
default:
|
|
68
|
+
default: V(() => [
|
|
69
69
|
u(m, {
|
|
70
70
|
class: "p-0",
|
|
71
71
|
title: "Key Person",
|
|
72
72
|
subtitle: ""
|
|
73
73
|
}),
|
|
74
74
|
u(s, { class: "p-0" }, {
|
|
75
|
-
default:
|
|
76
|
-
var l, p, c, a, r, f, g,
|
|
75
|
+
default: V(() => {
|
|
76
|
+
var l, p, c, a, r, f, g, F;
|
|
77
77
|
return [
|
|
78
|
-
e[6] || (e[6] =
|
|
79
|
-
P(": " +
|
|
80
|
-
e[7] || (e[7] =
|
|
81
|
-
e[8] || (e[8] =
|
|
82
|
-
P(": " +
|
|
83
|
-
e[9] || (e[9] =
|
|
84
|
-
e[10] || (e[10] =
|
|
85
|
-
P(": " +
|
|
86
|
-
e[11] || (e[11] =
|
|
78
|
+
e[6] || (e[6] = d("b", null, "Email", -1)),
|
|
79
|
+
P(": " + M((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] = d("br", null, null, -1)),
|
|
81
|
+
e[8] || (e[8] = d("b", null, "Name", -1)),
|
|
82
|
+
P(": " + M((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
|
|
83
|
+
e[9] || (e[9] = d("br", null, null, -1)),
|
|
84
|
+
e[10] || (e[10] = d("b", null, "Phone", -1)),
|
|
85
|
+
P(": " + M((F = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : F.phone), 1),
|
|
86
|
+
e[11] || (e[11] = d("br", null, null, -1))
|
|
87
87
|
];
|
|
88
88
|
}),
|
|
89
89
|
_: 1
|
|
@@ -95,15 +95,15 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
95
95
|
_: 1
|
|
96
96
|
})
|
|
97
97
|
]),
|
|
98
|
-
e[12] || (e[12] =
|
|
98
|
+
e[12] || (e[12] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
99
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, se)) : _("", !0)
|
|
103
103
|
], 64);
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), ie = { class: "flex gap-16" }, de = { class: "flex-1" }, me = { class: "flex-1" }, pe = /* @__PURE__ */ A({
|
|
107
107
|
__name: "Settlement",
|
|
108
108
|
props: {
|
|
109
109
|
payoutAccount: {
|
|
@@ -113,33 +113,33 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
113
113
|
},
|
|
114
114
|
setup(n) {
|
|
115
115
|
return (v, e) => {
|
|
116
|
-
const m =
|
|
117
|
-
return y(), h(
|
|
116
|
+
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
117
|
+
return y(), h($, 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
|
-
default:
|
|
123
|
+
default: V(() => [
|
|
124
124
|
u(s, { class: "flex flex-col gap-16 justify-between" }, {
|
|
125
|
-
default:
|
|
125
|
+
default: V(() => [
|
|
126
126
|
u(m, {
|
|
127
127
|
class: "p-0",
|
|
128
128
|
title: "Bank Info",
|
|
129
129
|
subtitle: ""
|
|
130
130
|
}),
|
|
131
131
|
u(s, { class: "p-0" }, {
|
|
132
|
-
default:
|
|
132
|
+
default: V(() => {
|
|
133
133
|
var l, p, c, a, r, f;
|
|
134
134
|
return [
|
|
135
|
-
e[0] || (e[0] =
|
|
136
|
-
P(": " +
|
|
137
|
-
e[1] || (e[1] =
|
|
138
|
-
e[2] || (e[2] =
|
|
139
|
-
P(": " +
|
|
140
|
-
e[3] || (e[3] =
|
|
141
|
-
e[4] || (e[4] =
|
|
142
|
-
P(": " +
|
|
135
|
+
e[0] || (e[0] = d("b", null, "Bank", -1)),
|
|
136
|
+
P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
|
|
137
|
+
e[1] || (e[1] = d("br", null, null, -1)),
|
|
138
|
+
e[2] || (e[2] = d("b", null, "Name", -1)),
|
|
139
|
+
P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
|
|
140
|
+
e[3] || (e[3] = d("br", null, null, -1)),
|
|
141
|
+
e[4] || (e[4] = d("b", null, "Number", -1)),
|
|
142
|
+
P(": " + M((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 le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
150
150
|
]),
|
|
151
151
|
_: 1
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
e[5] || (e[5] =
|
|
156
|
-
n.payoutAccount.store.ssm ? (y(),
|
|
153
|
+
d("div", ie, [
|
|
154
|
+
d("div", de, [
|
|
155
|
+
e[5] || (e[5] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
156
|
+
n.payoutAccount.store.ssm ? (y(), b(X, {
|
|
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"])) : _("", !0)
|
|
162
162
|
]),
|
|
163
|
-
|
|
164
|
-
e[6] || (e[6] =
|
|
165
|
-
n.payoutAccount.store.bankStatement ? (y(),
|
|
163
|
+
d("div", me, [
|
|
164
|
+
e[6] || (e[6] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
165
|
+
n.payoutAccount.store.bankStatement ? (y(), b(X, {
|
|
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"])) : _("", !0)
|
|
171
171
|
])
|
|
172
172
|
])
|
|
173
173
|
], 64);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
}),
|
|
176
|
+
}), ye = /* @__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 v = n, e =
|
|
184
|
-
return
|
|
183
|
+
const v = n, e = C(v.data.toString());
|
|
184
|
+
return ee(e, (m) => {
|
|
185
185
|
v.onChange(parseFloat(m));
|
|
186
186
|
}), (m, s) => {
|
|
187
|
-
const t =
|
|
188
|
-
return y(),
|
|
187
|
+
const t = i("FmTextField");
|
|
188
|
+
return y(), b(t, {
|
|
189
189
|
inputmode: "decimal",
|
|
190
190
|
modelValue: e.value,
|
|
191
191
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
192
192
|
}, {
|
|
193
|
-
append:
|
|
193
|
+
append: V(() => s[1] || (s[1] = [
|
|
194
194
|
P("%")
|
|
195
195
|
])),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["modelValue"]);
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), ve = /* @__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 v = n, e =
|
|
208
|
-
return
|
|
207
|
+
const v = n, e = C(v.data.toString());
|
|
208
|
+
return ee(e, (m) => {
|
|
209
209
|
v.onChange(parseInt(m));
|
|
210
210
|
}), (m, s) => {
|
|
211
|
-
const t =
|
|
212
|
-
return y(),
|
|
211
|
+
const t = i("FmTextField");
|
|
212
|
+
return y(), b(t, {
|
|
213
213
|
inputmode: "numeric",
|
|
214
214
|
modelValue: e.value,
|
|
215
215
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
216
216
|
}, null, 8, ["modelValue"]);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), fe = { class: "flex gap-16 mt-6" }, ge = { class: "flex-1" }, be = { class: "flex-1" }, Fe = { class: "my-6 w-full flex justify-end" }, xe = { class: "w-[320px]" }, we = /* @__PURE__ */ A({
|
|
220
220
|
__name: "PaymentStatus",
|
|
221
221
|
props: {
|
|
222
222
|
onUpdate: {
|
|
@@ -229,7 +229,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
setup(n) {
|
|
232
|
-
const v = n, e =
|
|
232
|
+
const v = n, e = C(!1), m = z(), s = async (a) => {
|
|
233
233
|
try {
|
|
234
234
|
e.value = !0, await v.onUpdate(a), m.open({
|
|
235
235
|
type: "success",
|
|
@@ -239,17 +239,17 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
239
239
|
m.open({
|
|
240
240
|
type: "error",
|
|
241
241
|
title: "Error occurs when updating payout account",
|
|
242
|
-
message:
|
|
242
|
+
message: E(r)
|
|
243
243
|
});
|
|
244
244
|
} finally {
|
|
245
245
|
e.value = !1;
|
|
246
246
|
}
|
|
247
247
|
}, { search: t } = j({
|
|
248
248
|
search: ""
|
|
249
|
-
}), l =
|
|
249
|
+
}), l = K(() => {
|
|
250
250
|
const { ssm: a, bank: r, bankStatement: f } = v.payoutAccount.store;
|
|
251
251
|
return a && r && r.name && r.accountNumber && r.holderName && f;
|
|
252
|
-
}), p =
|
|
252
|
+
}), p = C(""), c = [
|
|
253
253
|
{
|
|
254
254
|
header: () => "Payment Method",
|
|
255
255
|
accessorKey: "issuer",
|
|
@@ -260,7 +260,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
260
260
|
accessorKey: "rate",
|
|
261
261
|
cell: ({ row: a }) => {
|
|
262
262
|
let r = 0;
|
|
263
|
-
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)),
|
|
263
|
+
return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), q(ye, {
|
|
264
264
|
data: r,
|
|
265
265
|
onChange: (f) => {
|
|
266
266
|
const g = v.payoutAccount.methods.at(a.index);
|
|
@@ -275,7 +275,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
275
275
|
{
|
|
276
276
|
header: () => "T plus",
|
|
277
277
|
accessorKey: "tPlus",
|
|
278
|
-
cell: ({ row: a }) =>
|
|
278
|
+
cell: ({ row: a }) => q(ve, {
|
|
279
279
|
data: a.original.tPlus ?? 0,
|
|
280
280
|
onChange: (r) => {
|
|
281
281
|
const f = v.payoutAccount.methods.at(a.index);
|
|
@@ -285,16 +285,16 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
285
285
|
}
|
|
286
286
|
];
|
|
287
287
|
return (a, r) => {
|
|
288
|
-
const f =
|
|
289
|
-
return y(), h(
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
const f = i("FmRadio"), g = i("FmRadioGroup"), F = i("FmSwitch"), I = i("FmSearch"), S = i("FmTable"), U = i("FmButton");
|
|
289
|
+
return y(), h($, null, [
|
|
290
|
+
d("div", fe, [
|
|
291
|
+
d("div", ge, [
|
|
292
292
|
u(g, {
|
|
293
293
|
modelValue: n.payoutAccount.status,
|
|
294
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
294
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => n.payoutAccount.status = k),
|
|
295
295
|
label: "Account Status"
|
|
296
296
|
}, {
|
|
297
|
-
default:
|
|
297
|
+
default: V(() => [
|
|
298
298
|
u(f, {
|
|
299
299
|
value: "NEW",
|
|
300
300
|
label: "New"
|
|
@@ -311,37 +311,37 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
311
311
|
_: 1
|
|
312
312
|
}, 8, ["modelValue"])
|
|
313
313
|
]),
|
|
314
|
-
|
|
315
|
-
u(
|
|
314
|
+
d("div", be, [
|
|
315
|
+
u(F, {
|
|
316
316
|
modelValue: n.payoutAccount.enable,
|
|
317
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
317
|
+
"onUpdate:modelValue": r[1] || (r[1] = (k) => n.payoutAccount.enable = k),
|
|
318
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 ? (y(), h(
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
u(
|
|
324
|
+
n.payoutAccount.enable ? (y(), h($, { key: 0 }, [
|
|
325
|
+
d("div", Fe, [
|
|
326
|
+
d("div", xe, [
|
|
327
|
+
u(I, {
|
|
328
328
|
modelValue: o(t),
|
|
329
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
329
|
+
"onUpdate:modelValue": r[2] || (r[2] = (k) => O(t) ? t.value = k : null),
|
|
330
330
|
placeholder: "Search Method ..."
|
|
331
331
|
}, null, 8, ["modelValue"])
|
|
332
332
|
])
|
|
333
333
|
]),
|
|
334
|
-
u(
|
|
334
|
+
u(S, {
|
|
335
335
|
class: "mt-6",
|
|
336
336
|
modelValue: p.value,
|
|
337
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
337
|
+
"onUpdate:modelValue": r[3] || (r[3] = (k) => p.value = k),
|
|
338
338
|
"shrink-at": !1,
|
|
339
339
|
"search-value": o(t),
|
|
340
340
|
"row-data": n.payoutAccount.methods,
|
|
341
341
|
"column-defs": c
|
|
342
342
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
343
|
-
], 64)) :
|
|
344
|
-
u(
|
|
343
|
+
], 64)) : _("", !0),
|
|
344
|
+
u(U, {
|
|
345
345
|
class: "w-full mt-6",
|
|
346
346
|
variant: "primary",
|
|
347
347
|
label: "Save",
|
|
@@ -351,14 +351,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
351
351
|
], 64);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), Ve = { class: "flex" }, ke = /* @__PURE__ */ A({
|
|
355
355
|
__name: "Actions",
|
|
356
356
|
emits: ["edit", "delete"],
|
|
357
357
|
setup(n, { emit: v }) {
|
|
358
358
|
const e = v;
|
|
359
359
|
return (m, s) => {
|
|
360
|
-
const t =
|
|
361
|
-
return y(), h("div",
|
|
360
|
+
const t = i("FmButton");
|
|
361
|
+
return y(), h("div", Ve, [
|
|
362
362
|
u(t, {
|
|
363
363
|
variant: "plain",
|
|
364
364
|
"prepend-icon": "delete",
|
|
@@ -369,7 +369,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
369
369
|
]);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), _e = { class: "flex justify-end px-6 pb-6" }, Ae = /* @__PURE__ */ A({
|
|
373
373
|
__name: "PaymentChannel",
|
|
374
374
|
props: {
|
|
375
375
|
payoutAccount: {
|
|
@@ -378,17 +378,17 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
380
|
setup(n) {
|
|
381
|
-
const v =
|
|
381
|
+
const v = z(), e = n, { isLoading: m, startAsyncCall: s } = Y(), t = C([]);
|
|
382
382
|
function l() {
|
|
383
383
|
s(async () => {
|
|
384
|
-
t.value = await
|
|
384
|
+
t.value = await R.getChannels(e.payoutAccount._id);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
|
|
387
|
+
te(l);
|
|
388
388
|
function p() {
|
|
389
389
|
s(async () => {
|
|
390
390
|
try {
|
|
391
|
-
await
|
|
391
|
+
await R.updateChannels(e.payoutAccount._id, t.value), v.open({
|
|
392
392
|
type: "success",
|
|
393
393
|
title: "Payout account channels update succesfully"
|
|
394
394
|
});
|
|
@@ -396,7 +396,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
396
396
|
v.open({
|
|
397
397
|
type: "error",
|
|
398
398
|
title: "Error occurs when updating payout account channels",
|
|
399
|
-
message:
|
|
399
|
+
message: E(r)
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
});
|
|
@@ -404,7 +404,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
404
404
|
function c() {
|
|
405
405
|
s(async () => {
|
|
406
406
|
try {
|
|
407
|
-
await
|
|
407
|
+
await R.resetChannels(e.payoutAccount._id), t.value = await R.getChannels(e.payoutAccount._id), v.open({
|
|
408
408
|
type: "success",
|
|
409
409
|
title: "Payout account channels reset succesfully"
|
|
410
410
|
});
|
|
@@ -412,7 +412,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
412
412
|
v.open({
|
|
413
413
|
type: "error",
|
|
414
414
|
title: "Error occurs when reset payout account channels",
|
|
415
|
-
message:
|
|
415
|
+
message: E(r)
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -429,12 +429,12 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
429
429
|
{
|
|
430
430
|
header: () => "Display",
|
|
431
431
|
accessorKey: "icon",
|
|
432
|
-
cell: ({ row: r }) =>
|
|
432
|
+
cell: ({ row: r }) => q("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 }) => q(ue.FmTextField, {
|
|
438
438
|
modelValue: r.original.label,
|
|
439
439
|
"onUpdate:modelValue": (f) => r.original.label = f
|
|
440
440
|
})
|
|
@@ -442,15 +442,15 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
442
442
|
{
|
|
443
443
|
id: "actions",
|
|
444
444
|
header: () => "Actions",
|
|
445
|
-
cell: ({ row: r }) =>
|
|
445
|
+
cell: ({ row: r }) => q(ke, {
|
|
446
446
|
onDelete: () => t.value.splice(r.index, 1)
|
|
447
447
|
})
|
|
448
448
|
}
|
|
449
449
|
];
|
|
450
450
|
return (r, f) => {
|
|
451
|
-
const g =
|
|
452
|
-
return y(), h(
|
|
453
|
-
|
|
451
|
+
const g = i("FmButton"), F = i("FmTable");
|
|
452
|
+
return y(), h($, null, [
|
|
453
|
+
d("div", _e, [
|
|
454
454
|
u(g, {
|
|
455
455
|
class: "mx-4",
|
|
456
456
|
variant: "destructive",
|
|
@@ -467,7 +467,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
467
467
|
onClick: p
|
|
468
468
|
})
|
|
469
469
|
]),
|
|
470
|
-
u(
|
|
470
|
+
u(F, {
|
|
471
471
|
loading: o(m),
|
|
472
472
|
"row-data": t.value,
|
|
473
473
|
"column-defs": a,
|
|
@@ -476,7 +476,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
476
476
|
], 64);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ A({
|
|
480
480
|
__name: "FiuuGateway",
|
|
481
481
|
props: {
|
|
482
482
|
gateway: {
|
|
@@ -494,19 +494,19 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
494
494
|
},
|
|
495
495
|
setup(n) {
|
|
496
496
|
var m;
|
|
497
|
-
const e =
|
|
497
|
+
const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
498
498
|
merchantId: "",
|
|
499
499
|
verifyKey: "",
|
|
500
500
|
secretKey: ""
|
|
501
501
|
});
|
|
502
502
|
return (s, t) => {
|
|
503
|
-
const l =
|
|
504
|
-
return y(),
|
|
503
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
504
|
+
return y(), b(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
|
-
default:
|
|
509
|
+
default: V(() => [
|
|
510
510
|
u(l, {
|
|
511
511
|
modelValue: e.value.merchantId,
|
|
512
512
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
@@ -525,14 +525,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
525
525
|
label: "Secret Key",
|
|
526
526
|
rules: o(x)(o(w).string())
|
|
527
527
|
}, null, 8, ["modelValue", "rules"]),
|
|
528
|
-
|
|
529
|
-
n.gateway ? (y(),
|
|
528
|
+
d("div", Ce, [
|
|
529
|
+
n.gateway ? (y(), b(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"])) : _("", !0),
|
|
536
536
|
u(p, {
|
|
537
537
|
type: "submit",
|
|
538
538
|
class: "flex-1",
|
|
@@ -545,7 +545,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
545
545
|
}, 512);
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
}),
|
|
548
|
+
}), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
|
|
549
549
|
__name: "MacauPassGateway",
|
|
550
550
|
props: {
|
|
551
551
|
gateway: {
|
|
@@ -563,7 +563,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
563
563
|
},
|
|
564
564
|
setup(n) {
|
|
565
565
|
var m;
|
|
566
|
-
const e =
|
|
566
|
+
const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
567
567
|
merchantId: "",
|
|
568
568
|
merchantName: "",
|
|
569
569
|
merchantCategoryCode: "",
|
|
@@ -571,13 +571,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
571
571
|
storeName: ""
|
|
572
572
|
});
|
|
573
573
|
return (s, t) => {
|
|
574
|
-
const l =
|
|
575
|
-
return y(),
|
|
574
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
575
|
+
return y(), b(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
|
-
default:
|
|
580
|
+
default: V(() => [
|
|
581
581
|
u(l, {
|
|
582
582
|
modelValue: e.value.merchantId,
|
|
583
583
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
@@ -608,14 +608,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
608
608
|
label: "Store Name",
|
|
609
609
|
rules: o(x)(o(w).string())
|
|
610
610
|
}, null, 8, ["modelValue", "rules"]),
|
|
611
|
-
|
|
612
|
-
n.gateway ? (y(),
|
|
611
|
+
d("div", Te, [
|
|
612
|
+
n.gateway ? (y(), b(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"])) : _("", !0),
|
|
619
619
|
u(p, {
|
|
620
620
|
type: "submit",
|
|
621
621
|
class: "flex-1",
|
|
@@ -628,7 +628,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
628
628
|
}, 512);
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ A({
|
|
632
632
|
__name: "DigioGateway",
|
|
633
633
|
props: {
|
|
634
634
|
gateway: {
|
|
@@ -646,18 +646,18 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
646
646
|
},
|
|
647
647
|
setup(n) {
|
|
648
648
|
var m;
|
|
649
|
-
const e =
|
|
649
|
+
const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
650
650
|
merchantId: "",
|
|
651
651
|
cardMerchantId: ""
|
|
652
652
|
});
|
|
653
653
|
return (s, t) => {
|
|
654
|
-
const l =
|
|
655
|
-
return y(),
|
|
654
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
655
|
+
return y(), b(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
|
-
default:
|
|
660
|
+
default: V(() => [
|
|
661
661
|
u(l, {
|
|
662
662
|
modelValue: e.value.merchantId,
|
|
663
663
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
@@ -670,14 +670,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
670
670
|
label: "Card Merchant ID",
|
|
671
671
|
rules: o(x)(o(w).string())
|
|
672
672
|
}, null, 8, ["modelValue", "rules"]),
|
|
673
|
-
|
|
674
|
-
n.gateway ? (y(),
|
|
673
|
+
d("div", Se, [
|
|
674
|
+
n.gateway ? (y(), b(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"])) : _("", !0),
|
|
681
681
|
u(p, {
|
|
682
682
|
type: "submit",
|
|
683
683
|
class: "flex-1",
|
|
@@ -690,7 +690,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
690
690
|
}, 512);
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}),
|
|
693
|
+
}), Ie = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ A({
|
|
694
694
|
__name: "AdyenGateway",
|
|
695
695
|
props: {
|
|
696
696
|
gateway: {
|
|
@@ -708,7 +708,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
708
708
|
},
|
|
709
709
|
setup(n) {
|
|
710
710
|
var m;
|
|
711
|
-
const e =
|
|
711
|
+
const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
712
712
|
merchantAccount: "",
|
|
713
713
|
username: "",
|
|
714
714
|
apiKey: "",
|
|
@@ -717,13 +717,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
717
717
|
hmacKey: ""
|
|
718
718
|
});
|
|
719
719
|
return (s, t) => {
|
|
720
|
-
const l =
|
|
721
|
-
return y(),
|
|
720
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
721
|
+
return y(), b(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
|
-
default:
|
|
726
|
+
default: V(() => [
|
|
727
727
|
u(l, {
|
|
728
728
|
modelValue: e.value.endpoint,
|
|
729
729
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
|
|
@@ -759,14 +759,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
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 ? (y(),
|
|
762
|
+
d("div", Ie, [
|
|
763
|
+
n.gateway ? (y(), b(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"])) : _("", !0),
|
|
770
770
|
u(p, {
|
|
771
771
|
type: "submit",
|
|
772
772
|
class: "flex-1",
|
|
@@ -779,7 +779,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
779
779
|
}, 512);
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
}),
|
|
782
|
+
}), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ A({
|
|
783
783
|
__name: "KsherGateway",
|
|
784
784
|
props: {
|
|
785
785
|
gateway: {
|
|
@@ -797,18 +797,18 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
797
797
|
},
|
|
798
798
|
setup(n) {
|
|
799
799
|
var m;
|
|
800
|
-
const e =
|
|
800
|
+
const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
|
|
801
801
|
appId: "",
|
|
802
802
|
privateKey: ""
|
|
803
803
|
});
|
|
804
804
|
return (s, t) => {
|
|
805
|
-
const l =
|
|
806
|
-
return y(),
|
|
805
|
+
const l = i("FmTextField"), p = i("FmTextarea"), c = i("FmButton"), a = i("FmForm");
|
|
806
|
+
return y(), b(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
|
-
default:
|
|
811
|
+
default: V(() => [
|
|
812
812
|
u(l, {
|
|
813
813
|
modelValue: e.value.appId,
|
|
814
814
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
|
|
@@ -822,14 +822,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
822
822
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
823
823
|
rules: o(x)(o(w).string())
|
|
824
824
|
}, null, 8, ["modelValue", "rules"]),
|
|
825
|
-
|
|
826
|
-
n.gateway ? (y(),
|
|
825
|
+
d("div", Ne, [
|
|
826
|
+
n.gateway ? (y(), b(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"])) :
|
|
832
|
+
}, null, 8, ["onclick"])) : _("", !0),
|
|
833
833
|
u(c, {
|
|
834
834
|
type: "submit",
|
|
835
835
|
class: "flex-1",
|
|
@@ -842,13 +842,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
842
842
|
}, 512);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
845
|
+
}), Re = {
|
|
846
846
|
key: 0,
|
|
847
847
|
className: "mt-1 my-6 text-gray-600"
|
|
848
|
-
},
|
|
848
|
+
}, Ge = {
|
|
849
849
|
key: 1,
|
|
850
850
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
851
|
-
},
|
|
851
|
+
}, $e = /* @__PURE__ */ A({
|
|
852
852
|
__name: "PaymentGateway",
|
|
853
853
|
props: {
|
|
854
854
|
payoutAccount: {
|
|
@@ -857,106 +857,119 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
859
|
setup(n) {
|
|
860
|
-
const v =
|
|
860
|
+
const v = ae().currentCountry, e = v.value, m = z(), { isLoading: s, startAsyncCall: t } = Y(), { 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: Ue,
|
|
867
|
+
region: [T.F_COUNTRY.enum.MY, T.F_COUNTRY.enum.SG]
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
label: "Macau Pass",
|
|
871
871
|
value: "MACAU_PASS",
|
|
872
|
-
render:
|
|
873
|
-
region: [
|
|
872
|
+
render: he,
|
|
873
|
+
region: [T.F_COUNTRY.enum.MO]
|
|
874
874
|
},
|
|
875
875
|
{
|
|
876
876
|
label: "Digio",
|
|
877
877
|
value: "DIGIO",
|
|
878
|
-
render:
|
|
879
|
-
region: [
|
|
878
|
+
render: Pe,
|
|
879
|
+
region: [T.F_COUNTRY.enum.TH]
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
label: "Ksher",
|
|
883
883
|
value: "KSHER",
|
|
884
|
-
render:
|
|
885
|
-
region: [
|
|
884
|
+
render: Me,
|
|
885
|
+
region: [T.F_COUNTRY.enum.TH]
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
label: "Adyen",
|
|
889
889
|
value: "ADYEN",
|
|
890
|
-
render:
|
|
891
|
-
region: [
|
|
890
|
+
render: De,
|
|
891
|
+
region: [T.F_COUNTRY.enum.MY, T.F_COUNTRY.enum.SG]
|
|
892
892
|
}
|
|
893
|
-
], a =
|
|
893
|
+
], a = C(
|
|
894
894
|
p.payoutAccount.gateways ?? []
|
|
895
|
-
), r =
|
|
896
|
-
(
|
|
895
|
+
), r = K(() => c.find((S) => S.value === l.value)), f = K(() => c.filter(
|
|
896
|
+
(S) => S.region.includes(v.value ?? T.F_COUNTRY.enum.MY)
|
|
897
897
|
));
|
|
898
|
-
async function g(
|
|
898
|
+
async function g(S) {
|
|
899
899
|
await t(async () => {
|
|
900
900
|
try {
|
|
901
|
-
await
|
|
901
|
+
await R.updateGateway(p.payoutAccount._id, S), m.open({
|
|
902
902
|
type: "success",
|
|
903
903
|
title: "Payout account gateways update succesfully"
|
|
904
904
|
});
|
|
905
|
-
} catch (
|
|
905
|
+
} catch (U) {
|
|
906
906
|
m.open({
|
|
907
907
|
type: "error",
|
|
908
908
|
title: "Error occurs when updating payout account gateways",
|
|
909
|
-
message:
|
|
909
|
+
message: E(U)
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
914
|
+
const F = C((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !F.value);
|
|
915
|
+
return (S, U) => {
|
|
916
|
+
var B;
|
|
917
|
+
const k = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
|
|
918
|
+
return y(), h($, null, [
|
|
919
|
+
o(e) ? (y(), h("p", Re, U[2] || (U[2] = [
|
|
920
|
+
d("b", null, "Note: ", -1),
|
|
920
921
|
P(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
|
|
921
|
-
]))) :
|
|
922
|
-
o(s) ? (y(), h("div",
|
|
923
|
-
u(
|
|
924
|
-
])) : (y(),
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
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);
|
|
922
|
+
]))) : _("", !0),
|
|
923
|
+
o(s) ? (y(), h("div", Ge, [
|
|
924
|
+
u(k, { size: "xxl" })
|
|
925
|
+
])) : (y(), h($, { key: 2 }, [
|
|
926
|
+
o(e) === "MY" ? (y(), b(D, {
|
|
927
|
+
key: 0,
|
|
928
|
+
modelValue: F.value,
|
|
929
|
+
"onUpdate:modelValue": U[0] || (U[0] = (N) => F.value = N),
|
|
930
|
+
label: "Use FeedMe's Fiuu Account?"
|
|
931
|
+
}, null, 8, ["modelValue"])) : _("", !0),
|
|
932
|
+
I.value ? (y(), b(H, {
|
|
933
|
+
key: 1,
|
|
934
|
+
"model-value": o(l),
|
|
935
|
+
"onUpdate:modelValue": U[1] || (U[1] = (N) => O(l) ? l.value = N : null),
|
|
936
|
+
class: "mb-6",
|
|
937
|
+
items: f.value
|
|
938
|
+
}, null, 8, ["model-value", "items"])) : _("", !0),
|
|
939
|
+
o(l) ? (y(), b(L((B = r.value) == null ? void 0 : B.render), Z(Q({ key: 2 }, {
|
|
940
|
+
gateway: a.value.find(
|
|
941
|
+
(N) => {
|
|
942
|
+
var G;
|
|
943
|
+
return N.paymentGateway === ((G = r.value) == null ? void 0 : G.value);
|
|
948
944
|
}
|
|
949
|
-
)
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
945
|
+
),
|
|
946
|
+
onDelete: async () => {
|
|
947
|
+
a.value = a.value.filter(
|
|
948
|
+
(N) => {
|
|
949
|
+
var G;
|
|
950
|
+
return N.paymentGateway !== ((G = r.value) == null ? void 0 : G.value);
|
|
951
|
+
}
|
|
952
|
+
), g(a.value);
|
|
953
|
+
},
|
|
954
|
+
onUpdate: (N) => {
|
|
955
|
+
var W;
|
|
956
|
+
let G = a.value.find(
|
|
957
|
+
(ne) => {
|
|
958
|
+
var J;
|
|
959
|
+
return ne.paymentGateway === ((J = r.value) == null ? void 0 : J.value);
|
|
960
|
+
}
|
|
961
|
+
);
|
|
962
|
+
G ? G.config = N : a.value.push({
|
|
963
|
+
paymentGateway: (W = r.value) == null ? void 0 : W.value,
|
|
964
|
+
config: N
|
|
965
|
+
}), g(a.value);
|
|
966
|
+
}
|
|
967
|
+
})), null, 16)) : _("", !0)
|
|
968
|
+
], 64))
|
|
956
969
|
], 64);
|
|
957
970
|
};
|
|
958
971
|
}
|
|
959
|
-
}),
|
|
972
|
+
}), Ke = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ A({
|
|
960
973
|
__name: "GooglePayToken",
|
|
961
974
|
props: {
|
|
962
975
|
gateway: {
|
|
@@ -973,7 +986,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
973
986
|
}
|
|
974
987
|
},
|
|
975
988
|
setup(n) {
|
|
976
|
-
const e =
|
|
989
|
+
const e = C(
|
|
977
990
|
n.gateway || {
|
|
978
991
|
type: "googlePay",
|
|
979
992
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -984,13 +997,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
984
997
|
}
|
|
985
998
|
);
|
|
986
999
|
return (m, s) => {
|
|
987
|
-
const t =
|
|
988
|
-
return y(),
|
|
1000
|
+
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
1001
|
+
return y(), b(p, {
|
|
989
1002
|
ref: "form",
|
|
990
1003
|
class: "flex flex-col gap-16",
|
|
991
1004
|
onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
|
|
992
1005
|
}, {
|
|
993
|
-
default:
|
|
1006
|
+
default: V(() => [
|
|
994
1007
|
u(t, {
|
|
995
1008
|
modelValue: e.value.gateway,
|
|
996
1009
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
@@ -1012,14 +1025,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1012
1025
|
disabled: !0,
|
|
1013
1026
|
rules: o(x)(o(w).string())
|
|
1014
1027
|
}, null, 8, ["modelValue", "rules"]),
|
|
1015
|
-
|
|
1016
|
-
n.gateway ? (y(),
|
|
1028
|
+
d("div", Ke, [
|
|
1029
|
+
n.gateway ? (y(), b(l, {
|
|
1017
1030
|
key: 0,
|
|
1018
1031
|
class: "flex-1",
|
|
1019
1032
|
variant: "secondary",
|
|
1020
1033
|
label: "Delete",
|
|
1021
1034
|
onclick: () => n.onDelete()
|
|
1022
|
-
}, null, 8, ["onclick"])) :
|
|
1035
|
+
}, null, 8, ["onclick"])) : _("", !0),
|
|
1023
1036
|
u(l, {
|
|
1024
1037
|
type: "submit",
|
|
1025
1038
|
class: "flex-1",
|
|
@@ -1032,7 +1045,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1032
1045
|
}, 512);
|
|
1033
1046
|
};
|
|
1034
1047
|
}
|
|
1035
|
-
}),
|
|
1048
|
+
}), qe = { class: "flex mt-6 space-x-6" }, Ee = /* @__PURE__ */ A({
|
|
1036
1049
|
__name: "ApplePayToken",
|
|
1037
1050
|
props: {
|
|
1038
1051
|
gateway: {
|
|
@@ -1049,7 +1062,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1049
1062
|
}
|
|
1050
1063
|
},
|
|
1051
1064
|
setup(n) {
|
|
1052
|
-
const e =
|
|
1065
|
+
const e = C(
|
|
1053
1066
|
n.gateway || {
|
|
1054
1067
|
type: "applePay",
|
|
1055
1068
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1059,13 +1072,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1059
1072
|
}
|
|
1060
1073
|
);
|
|
1061
1074
|
return (m, s) => {
|
|
1062
|
-
const t =
|
|
1063
|
-
return y(),
|
|
1075
|
+
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
1076
|
+
return y(), b(p, {
|
|
1064
1077
|
ref: "form",
|
|
1065
1078
|
class: "flex flex-col gap-16",
|
|
1066
1079
|
onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
|
|
1067
1080
|
}, {
|
|
1068
|
-
default:
|
|
1081
|
+
default: V(() => [
|
|
1069
1082
|
u(t, {
|
|
1070
1083
|
modelValue: e.value.gateway,
|
|
1071
1084
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
@@ -1080,14 +1093,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1080
1093
|
disabled: !0,
|
|
1081
1094
|
rules: o(x)(o(w).string())
|
|
1082
1095
|
}, null, 8, ["modelValue", "rules"]),
|
|
1083
|
-
|
|
1084
|
-
n.gateway ? (y(),
|
|
1096
|
+
d("div", qe, [
|
|
1097
|
+
n.gateway ? (y(), b(l, {
|
|
1085
1098
|
key: 0,
|
|
1086
1099
|
class: "flex-1",
|
|
1087
1100
|
variant: "secondary",
|
|
1088
1101
|
label: "Delete",
|
|
1089
1102
|
onclick: () => n.onDelete()
|
|
1090
|
-
}, null, 8, ["onclick"])) :
|
|
1103
|
+
}, null, 8, ["onclick"])) : _("", !0),
|
|
1091
1104
|
u(l, {
|
|
1092
1105
|
type: "submit",
|
|
1093
1106
|
class: "flex-1",
|
|
@@ -1100,10 +1113,10 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1100
1113
|
}, 512);
|
|
1101
1114
|
};
|
|
1102
1115
|
}
|
|
1103
|
-
}),
|
|
1116
|
+
}), Oe = {
|
|
1104
1117
|
key: 0,
|
|
1105
1118
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1106
|
-
},
|
|
1119
|
+
}, Ye = /* @__PURE__ */ A({
|
|
1107
1120
|
__name: "TokenGateway",
|
|
1108
1121
|
props: {
|
|
1109
1122
|
payoutAccount: {
|
|
@@ -1112,86 +1125,86 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1112
1125
|
}
|
|
1113
1126
|
},
|
|
1114
1127
|
setup(n) {
|
|
1115
|
-
const v =
|
|
1128
|
+
const v = ae().currentCountry, e = z(), { isLoading: m, startAsyncCall: s } = Y(), { tokenTab: t } = j({
|
|
1116
1129
|
tokenTab: ""
|
|
1117
1130
|
}), l = n, p = [
|
|
1118
1131
|
{
|
|
1119
1132
|
label: "Google Pay",
|
|
1120
1133
|
value: "googlePay",
|
|
1121
1134
|
icon: "android",
|
|
1122
|
-
render:
|
|
1123
|
-
region: [
|
|
1135
|
+
render: Be,
|
|
1136
|
+
region: [T.F_COUNTRY.enum.MY, T.F_COUNTRY.enum.SG]
|
|
1124
1137
|
},
|
|
1125
1138
|
{
|
|
1126
1139
|
label: "Apple Pay",
|
|
1127
1140
|
value: "applePay",
|
|
1128
1141
|
icon: "apple",
|
|
1129
|
-
render:
|
|
1130
|
-
region: [
|
|
1142
|
+
render: Ee,
|
|
1143
|
+
region: [T.F_COUNTRY.enum.MY, T.F_COUNTRY.enum.SG]
|
|
1131
1144
|
}
|
|
1132
|
-
], c =
|
|
1133
|
-
(g) => g.region.includes(v.value ??
|
|
1145
|
+
], c = C(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
|
|
1146
|
+
(g) => g.region.includes(v.value ?? T.F_COUNTRY.enum.MY)
|
|
1134
1147
|
));
|
|
1135
1148
|
async function f(g) {
|
|
1136
1149
|
await s(async () => {
|
|
1137
1150
|
try {
|
|
1138
|
-
await
|
|
1151
|
+
await R.updateTokens(l.payoutAccount._id, g), e.open({
|
|
1139
1152
|
type: "success",
|
|
1140
1153
|
title: "Payout account tokens gateway update succesfully"
|
|
1141
1154
|
});
|
|
1142
|
-
} catch (
|
|
1155
|
+
} catch (F) {
|
|
1143
1156
|
e.open({
|
|
1144
1157
|
type: "error",
|
|
1145
1158
|
title: "Error occurs when updating payout account tokens",
|
|
1146
|
-
message:
|
|
1159
|
+
message: E(F)
|
|
1147
1160
|
});
|
|
1148
1161
|
}
|
|
1149
1162
|
});
|
|
1150
1163
|
}
|
|
1151
|
-
return (g,
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1154
|
-
return y(), h(
|
|
1155
|
-
|
|
1156
|
-
|
|
1164
|
+
return (g, F) => {
|
|
1165
|
+
var U;
|
|
1166
|
+
const I = i("FmCircularProgress"), S = i("FmTabs");
|
|
1167
|
+
return y(), h($, null, [
|
|
1168
|
+
F[1] || (F[1] = d("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1169
|
+
d("b", null, "Note: "),
|
|
1157
1170
|
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
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1171
|
+
d("br"),
|
|
1172
|
+
d("br"),
|
|
1173
|
+
d("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1174
|
+
d("br")
|
|
1162
1175
|
], -1)),
|
|
1163
|
-
o(m) ? (y(), h("div",
|
|
1164
|
-
u(
|
|
1165
|
-
])) : (y(),
|
|
1176
|
+
o(m) ? (y(), h("div", Oe, [
|
|
1177
|
+
u(I, { size: "xxl" })
|
|
1178
|
+
])) : (y(), b(S, {
|
|
1166
1179
|
key: 1,
|
|
1167
1180
|
"model-value": o(t),
|
|
1168
|
-
"onUpdate:modelValue":
|
|
1181
|
+
"onUpdate:modelValue": F[0] || (F[0] = (k) => O(t) ? t.value = k : null),
|
|
1169
1182
|
class: "mb-6 mt-6",
|
|
1170
1183
|
items: r.value
|
|
1171
1184
|
}, null, 8, ["model-value", "items"])),
|
|
1172
|
-
o(t) ? (y(),
|
|
1173
|
-
gateway: c.value.find((
|
|
1174
|
-
var
|
|
1175
|
-
return
|
|
1185
|
+
o(t) ? (y(), b(L((U = a.value) == null ? void 0 : U.render), Z(Q({ key: 2 }, {
|
|
1186
|
+
gateway: c.value.find((k) => {
|
|
1187
|
+
var D;
|
|
1188
|
+
return k.type === ((D = a.value) == null ? void 0 : D.value);
|
|
1176
1189
|
}),
|
|
1177
1190
|
onDelete: async () => {
|
|
1178
|
-
c.value = c.value.filter((
|
|
1179
|
-
var
|
|
1180
|
-
return
|
|
1191
|
+
c.value = c.value.filter((k) => {
|
|
1192
|
+
var D;
|
|
1193
|
+
return k.type !== ((D = a.value) == null ? void 0 : D.value);
|
|
1181
1194
|
}), f(c.value);
|
|
1182
1195
|
},
|
|
1183
|
-
onUpdate: (
|
|
1184
|
-
let
|
|
1185
|
-
var
|
|
1186
|
-
return
|
|
1196
|
+
onUpdate: (k) => {
|
|
1197
|
+
let D = c.value.find((H) => {
|
|
1198
|
+
var B;
|
|
1199
|
+
return H.type === ((B = a.value) == null ? void 0 : B.value);
|
|
1187
1200
|
});
|
|
1188
|
-
|
|
1201
|
+
D ? D.config = k : c.value.push(k), f(c.value);
|
|
1189
1202
|
}
|
|
1190
|
-
})), null, 16)) :
|
|
1203
|
+
})), null, 16)) : _("", !0)
|
|
1191
1204
|
], 64);
|
|
1192
1205
|
};
|
|
1193
1206
|
}
|
|
1194
|
-
}),
|
|
1207
|
+
}), at = /* @__PURE__ */ A({
|
|
1195
1208
|
__name: "PayoutAccountSetting",
|
|
1196
1209
|
props: {
|
|
1197
1210
|
accountId: {
|
|
@@ -1202,80 +1215,80 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1202
1215
|
setup(n) {
|
|
1203
1216
|
const v = n, { tab: e } = j({
|
|
1204
1217
|
tab: "information"
|
|
1205
|
-
}), { isLoading: m, startAsyncCall: s } =
|
|
1218
|
+
}), { isLoading: m, startAsyncCall: s } = Y(!0), t = oe(), l = C();
|
|
1206
1219
|
async function p(f) {
|
|
1207
|
-
await
|
|
1220
|
+
await R.updateById(
|
|
1208
1221
|
v.accountId,
|
|
1209
1222
|
f
|
|
1210
|
-
), l.value = await
|
|
1223
|
+
), l.value = await R.readById(v.accountId);
|
|
1211
1224
|
}
|
|
1212
1225
|
const c = [
|
|
1213
1226
|
{
|
|
1214
1227
|
label: "Information",
|
|
1215
1228
|
value: "information",
|
|
1216
1229
|
icon: "overview",
|
|
1217
|
-
render:
|
|
1230
|
+
render: ce
|
|
1218
1231
|
},
|
|
1219
1232
|
{
|
|
1220
1233
|
label: "Settlement",
|
|
1221
1234
|
value: "settlement",
|
|
1222
1235
|
icon: "payments",
|
|
1223
|
-
render:
|
|
1236
|
+
render: pe
|
|
1224
1237
|
},
|
|
1225
1238
|
{
|
|
1226
1239
|
label: "MDR Status",
|
|
1227
1240
|
value: "payment",
|
|
1228
1241
|
icon: "account_box",
|
|
1229
|
-
render:
|
|
1242
|
+
render: we
|
|
1230
1243
|
},
|
|
1231
1244
|
{
|
|
1232
1245
|
label: "Online Gateways",
|
|
1233
1246
|
icon: "assured_workload",
|
|
1234
1247
|
value: "gateways",
|
|
1235
|
-
render:
|
|
1248
|
+
render: $e
|
|
1236
1249
|
},
|
|
1237
1250
|
{
|
|
1238
1251
|
label: "Token Gateways",
|
|
1239
1252
|
value: "tokens",
|
|
1240
1253
|
icon: "wallet",
|
|
1241
|
-
render:
|
|
1254
|
+
render: Ye
|
|
1242
1255
|
},
|
|
1243
1256
|
{
|
|
1244
1257
|
label: "Online Channels",
|
|
1245
1258
|
icon: "shopping_cart",
|
|
1246
1259
|
value: "channels",
|
|
1247
|
-
render:
|
|
1260
|
+
render: Ae
|
|
1248
1261
|
}
|
|
1249
1262
|
];
|
|
1250
1263
|
function a() {
|
|
1251
1264
|
s(async () => {
|
|
1252
|
-
l.value = await
|
|
1265
|
+
l.value = await R.readById(v.accountId);
|
|
1253
1266
|
});
|
|
1254
1267
|
}
|
|
1255
|
-
|
|
1256
|
-
const r =
|
|
1257
|
-
const f = c.reduce((g,
|
|
1268
|
+
te(a);
|
|
1269
|
+
const r = K(() => {
|
|
1270
|
+
const f = c.reduce((g, F) => g || (F.children ? F.children.find((I) => I.value === e.value) || null : F.value === e.value ? F : null), null);
|
|
1258
1271
|
return f == null ? void 0 : f.render;
|
|
1259
1272
|
});
|
|
1260
1273
|
return (f, g) => {
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1263
|
-
return y(),
|
|
1264
|
-
title: `Payout Account (${(
|
|
1274
|
+
var I;
|
|
1275
|
+
const F = i("FmTabs");
|
|
1276
|
+
return y(), b(le, {
|
|
1277
|
+
title: `Payout Account (${(I = l.value) == null ? void 0 : I._id})`,
|
|
1265
1278
|
loading: o(m),
|
|
1266
1279
|
onBack: o(t).back
|
|
1267
1280
|
}, {
|
|
1268
|
-
default:
|
|
1269
|
-
u(
|
|
1281
|
+
default: V(() => [
|
|
1282
|
+
u(F, {
|
|
1270
1283
|
"model-value": o(e),
|
|
1271
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
1284
|
+
"onUpdate:modelValue": g[0] || (g[0] = (S) => O(e) ? e.value = S : null),
|
|
1272
1285
|
class: "mb-6",
|
|
1273
1286
|
items: c
|
|
1274
1287
|
}, null, 8, ["model-value"]),
|
|
1275
|
-
o(e) ? (y(),
|
|
1288
|
+
o(e) ? (y(), b(L(r.value), Z(Q({ key: 0 }, {
|
|
1276
1289
|
payoutAccount: l.value,
|
|
1277
1290
|
onUpdate: p
|
|
1278
|
-
})), null, 16)) :
|
|
1291
|
+
})), null, 16)) : _("", !0)
|
|
1279
1292
|
]),
|
|
1280
1293
|
_: 1
|
|
1281
1294
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1283,5 +1296,5 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1283
1296
|
}
|
|
1284
1297
|
});
|
|
1285
1298
|
export {
|
|
1286
|
-
|
|
1299
|
+
at as default
|
|
1287
1300
|
};
|