@feedmepos/mf-payment 1.4.37 → 1.4.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{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-b_7rmdp-.js → OnboardForm-B7CkEXGv.js} +4 -4
- package/dist/{OnboardForm-L60_og6x.js → OnboardForm-Dsxjljqr.js} +4 -4
- package/dist/{OnboardSubmission-iYI21aCU.js → OnboardSubmission-CHRiLayt.js} +5 -5
- package/dist/{OnboardSubmission-Jm2Z4N7V.js → OnboardSubmission-DHZ74Q8K.js} +2 -2
- package/dist/{PayoutAccount-BOL9rvMj.js → PayoutAccount-B2tLhNCP.js} +5 -5
- package/dist/{PayoutAccount-E7QgJudp.js → PayoutAccount-CYbZJGR1.js} +5 -5
- package/dist/{PayoutAccountSetting-Dj8cIWno.js → PayoutAccountSetting-Byfhf8vi.js} +288 -274
- 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-CQiul24e.js → app-jWqIMlvQ.js} +74 -74
- 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-CfWdUyNi.js → index-U0rV6-CG.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-CH0Dq0s4.js → payout-account-Bf_SST_W.js} +3 -3
- package/dist/{plugins-DfTvOgLR.js → plugins-DJOA7bw1.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
|
|
1
|
+
import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as S, Fragment as $, createElementVNode as d, createVNode as u, withCtx as V, createTextVNode as P, toDisplayString as M, createCommentVNode as _, createBlock as F, ref as C, watch as ee, computed as K, unref as o, isRef as E, h as O, onMounted as te, resolveDynamicComponent as L, normalizeProps as Z, mergeProps as Q } from "vue";
|
|
2
|
+
import { p as R } from "./index-CIj4gYaQ.js";
|
|
3
|
+
import { u as Y, e as h } 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
9
|
import { u as q } 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(),
|
|
24
|
-
|
|
22
|
+
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
23
|
+
return y(), S($, 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:
|
|
75
|
+
default: V(() => {
|
|
76
76
|
var l, p, c, a, r, f, g, b;
|
|
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((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.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] =
|
|
99
|
-
n.payoutAccount.store.exteriorPhoto ? (y(),
|
|
98
|
+
e[12] || (e[12] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
99
|
+
n.payoutAccount.store.exteriorPhoto ? (y(), S("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(),
|
|
116
|
+
const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
|
|
117
|
+
return y(), S($, 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,65 +150,65 @@ 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(), F(
|
|
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(), F(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(), F(
|
|
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(), F(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 =
|
|
187
|
+
const t = i("FmTextField");
|
|
188
188
|
return y(), F(t, {
|
|
189
189
|
inputmode: "decimal",
|
|
190
190
|
modelValue: e.value,
|
|
191
191
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
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 =
|
|
211
|
+
const t = i("FmTextField");
|
|
212
212
|
return y(), F(t, {
|
|
213
213
|
inputmode: "numeric",
|
|
214
214
|
modelValue: e.value,
|
|
@@ -216,7 +216,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
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",
|
|
@@ -246,10 +246,10 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
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)), O(ye, {
|
|
264
264
|
data: r,
|
|
265
265
|
onChange: (f) => {
|
|
266
266
|
const g = v.payoutAccount.methods.at(a.index);
|
|
@@ -275,7 +275,7 @@ const 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 }) => O(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(),
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
const f = i("FmRadio"), g = i("FmRadioGroup"), b = i("FmSwitch"), I = i("FmSearch"), U = i("FmTable"), T = i("FmButton");
|
|
289
|
+
return y(), S($, null, [
|
|
290
|
+
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
|
-
|
|
314
|
+
d("div", be, [
|
|
315
315
|
u(b, {
|
|
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(),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
u(
|
|
324
|
+
n.payoutAccount.enable ? (y(), S($, { 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) => E(t) ? t.value = k : null),
|
|
330
330
|
placeholder: "Search Method ..."
|
|
331
331
|
}, null, 8, ["modelValue"])
|
|
332
332
|
])
|
|
333
333
|
]),
|
|
334
|
-
u(
|
|
334
|
+
u(U, {
|
|
335
335
|
class: "mt-6",
|
|
336
336
|
modelValue: p.value,
|
|
337
|
-
"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(T, {
|
|
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(),
|
|
360
|
+
const t = i("FmButton");
|
|
361
|
+
return y(), S("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
|
});
|
|
@@ -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
|
});
|
|
@@ -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 }) => O("img", { src: r.original.icon, width: 32, height: 32 })
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
header: () => "Label",
|
|
436
436
|
accessorKey: "label",
|
|
437
|
-
cell: ({ row: r }) =>
|
|
437
|
+
cell: ({ row: r }) => O(ue.FmTextField, {
|
|
438
438
|
modelValue: r.original.label,
|
|
439
439
|
"onUpdate:modelValue": (f) => r.original.label = f
|
|
440
440
|
})
|
|
@@ -442,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 }) => O(ke, {
|
|
446
446
|
onDelete: () => t.value.splice(r.index, 1)
|
|
447
447
|
})
|
|
448
448
|
}
|
|
449
449
|
];
|
|
450
450
|
return (r, f) => {
|
|
451
|
-
const g =
|
|
452
|
-
return y(),
|
|
453
|
-
|
|
451
|
+
const g = i("FmButton"), b = i("FmTable");
|
|
452
|
+
return y(), S($, null, [
|
|
453
|
+
d("div", _e, [
|
|
454
454
|
u(g, {
|
|
455
455
|
class: "mx-4",
|
|
456
456
|
variant: "destructive",
|
|
@@ -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 =
|
|
503
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
504
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
|
-
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
|
-
|
|
528
|
+
d("div", Ce, [
|
|
529
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"])) : _("", !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 =
|
|
574
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
575
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
|
-
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
|
-
|
|
611
|
+
d("div", Te, [
|
|
612
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"])) : _("", !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 =
|
|
654
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
655
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
|
-
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
|
-
|
|
673
|
+
d("div", Se, [
|
|
674
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"])) : _("", !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 =
|
|
720
|
+
const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
|
|
721
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
|
-
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
|
-
|
|
762
|
+
d("div", Ie, [
|
|
763
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"])) : _("", !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 =
|
|
805
|
+
const l = i("FmTextField"), p = i("FmTextarea"), c = i("FmButton"), a = i("FmForm");
|
|
806
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
|
-
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
|
-
|
|
825
|
+
d("div", Ne, [
|
|
826
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"])) :
|
|
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,120 @@ 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: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
label: "Macau Pass",
|
|
871
871
|
value: "MACAU_PASS",
|
|
872
|
-
render:
|
|
873
|
-
region: [
|
|
872
|
+
render: he,
|
|
873
|
+
region: [h.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: [h.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: [h.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: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
892
892
|
}
|
|
893
|
-
], a =
|
|
893
|
+
], a = C(
|
|
894
894
|
p.payoutAccount.gateways ?? []
|
|
895
|
-
), r =
|
|
896
|
-
(
|
|
895
|
+
), r = K(() => c.find((U) => U.value === l.value)), f = K(() => c.filter(
|
|
896
|
+
(U) => U.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
|
|
897
897
|
));
|
|
898
|
-
async function g(
|
|
898
|
+
async function g(U) {
|
|
899
899
|
await t(async () => {
|
|
900
900
|
try {
|
|
901
|
-
await
|
|
901
|
+
await R.updateGateway(p.payoutAccount._id, U), m.open({
|
|
902
902
|
type: "success",
|
|
903
903
|
title: "Payout account gateways update succesfully"
|
|
904
|
-
});
|
|
905
|
-
} catch (
|
|
904
|
+
}), b.value = U.length === 0;
|
|
905
|
+
} catch (T) {
|
|
906
906
|
m.open({
|
|
907
907
|
type: "error",
|
|
908
908
|
title: "Error occurs when updating payout account gateways",
|
|
909
|
-
message: q(
|
|
909
|
+
message: q(T)
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
914
|
+
const b = C((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !b.value);
|
|
915
|
+
return (U, T) => {
|
|
916
|
+
var B;
|
|
917
|
+
const k = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
|
|
918
|
+
return y(), S($, null, [
|
|
919
|
+
o(e) ? (y(), S("p", Re, T[2] || (T[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(),
|
|
923
|
-
u(
|
|
924
|
-
])) : (y(),
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
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(), S("div", Ge, [
|
|
924
|
+
u(k, { size: "xxl" })
|
|
925
|
+
])) : (y(), S($, { key: 2 }, [
|
|
926
|
+
o(e) === "MY" ? (y(), F(D, {
|
|
927
|
+
key: 0,
|
|
928
|
+
modelValue: b.value,
|
|
929
|
+
"onUpdate:modelValue": T[0] || (T[0] = (N) => b.value = N),
|
|
930
|
+
style: { "padding-bottom": "12px" },
|
|
931
|
+
label: "Use FeedMe's Fiuu Account?"
|
|
932
|
+
}, null, 8, ["modelValue"])) : _("", !0),
|
|
933
|
+
I.value ? (y(), F(H, {
|
|
934
|
+
key: 1,
|
|
935
|
+
"model-value": o(l),
|
|
936
|
+
"onUpdate:modelValue": T[1] || (T[1] = (N) => E(l) ? l.value = N : null),
|
|
937
|
+
class: "mb-6",
|
|
938
|
+
items: f.value
|
|
939
|
+
}, null, 8, ["model-value", "items"])) : _("", !0),
|
|
940
|
+
I.value && o(l) ? (y(), F(L((B = r.value) == null ? void 0 : B.render), Z(Q({ key: 2 }, {
|
|
941
|
+
gateway: a.value.find(
|
|
942
|
+
(N) => {
|
|
943
|
+
var G;
|
|
944
|
+
return N.paymentGateway === ((G = r.value) == null ? void 0 : G.value);
|
|
948
945
|
}
|
|
949
|
-
)
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
946
|
+
),
|
|
947
|
+
onDelete: async () => {
|
|
948
|
+
a.value = a.value.filter(
|
|
949
|
+
(N) => {
|
|
950
|
+
var G;
|
|
951
|
+
return N.paymentGateway !== ((G = r.value) == null ? void 0 : G.value);
|
|
952
|
+
}
|
|
953
|
+
), g(a.value);
|
|
954
|
+
},
|
|
955
|
+
onUpdate: (N) => {
|
|
956
|
+
var W;
|
|
957
|
+
let G = a.value.find(
|
|
958
|
+
(ne) => {
|
|
959
|
+
var J;
|
|
960
|
+
return ne.paymentGateway === ((J = r.value) == null ? void 0 : J.value);
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
G ? G.config = N : a.value.push({
|
|
964
|
+
paymentGateway: (W = r.value) == null ? void 0 : W.value,
|
|
965
|
+
config: N
|
|
966
|
+
}), g(a.value);
|
|
967
|
+
}
|
|
968
|
+
})), null, 16)) : _("", !0)
|
|
969
|
+
], 64))
|
|
956
970
|
], 64);
|
|
957
971
|
};
|
|
958
972
|
}
|
|
959
|
-
}),
|
|
973
|
+
}), Ke = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ A({
|
|
960
974
|
__name: "GooglePayToken",
|
|
961
975
|
props: {
|
|
962
976
|
gateway: {
|
|
@@ -973,7 +987,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
973
987
|
}
|
|
974
988
|
},
|
|
975
989
|
setup(n) {
|
|
976
|
-
const e =
|
|
990
|
+
const e = C(
|
|
977
991
|
n.gateway || {
|
|
978
992
|
type: "googlePay",
|
|
979
993
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -984,13 +998,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
984
998
|
}
|
|
985
999
|
);
|
|
986
1000
|
return (m, s) => {
|
|
987
|
-
const t =
|
|
1001
|
+
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
988
1002
|
return y(), F(p, {
|
|
989
1003
|
ref: "form",
|
|
990
1004
|
class: "flex flex-col gap-16",
|
|
991
1005
|
onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
|
|
992
1006
|
}, {
|
|
993
|
-
default:
|
|
1007
|
+
default: V(() => [
|
|
994
1008
|
u(t, {
|
|
995
1009
|
modelValue: e.value.gateway,
|
|
996
1010
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
@@ -1012,14 +1026,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1012
1026
|
disabled: !0,
|
|
1013
1027
|
rules: o(x)(o(w).string())
|
|
1014
1028
|
}, null, 8, ["modelValue", "rules"]),
|
|
1015
|
-
|
|
1029
|
+
d("div", Ke, [
|
|
1016
1030
|
n.gateway ? (y(), F(l, {
|
|
1017
1031
|
key: 0,
|
|
1018
1032
|
class: "flex-1",
|
|
1019
1033
|
variant: "secondary",
|
|
1020
1034
|
label: "Delete",
|
|
1021
1035
|
onclick: () => n.onDelete()
|
|
1022
|
-
}, null, 8, ["onclick"])) :
|
|
1036
|
+
}, null, 8, ["onclick"])) : _("", !0),
|
|
1023
1037
|
u(l, {
|
|
1024
1038
|
type: "submit",
|
|
1025
1039
|
class: "flex-1",
|
|
@@ -1032,7 +1046,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1032
1046
|
}, 512);
|
|
1033
1047
|
};
|
|
1034
1048
|
}
|
|
1035
|
-
}),
|
|
1049
|
+
}), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ A({
|
|
1036
1050
|
__name: "ApplePayToken",
|
|
1037
1051
|
props: {
|
|
1038
1052
|
gateway: {
|
|
@@ -1049,7 +1063,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1049
1063
|
}
|
|
1050
1064
|
},
|
|
1051
1065
|
setup(n) {
|
|
1052
|
-
const e =
|
|
1066
|
+
const e = C(
|
|
1053
1067
|
n.gateway || {
|
|
1054
1068
|
type: "applePay",
|
|
1055
1069
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1059,13 +1073,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1059
1073
|
}
|
|
1060
1074
|
);
|
|
1061
1075
|
return (m, s) => {
|
|
1062
|
-
const t =
|
|
1076
|
+
const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
|
|
1063
1077
|
return y(), F(p, {
|
|
1064
1078
|
ref: "form",
|
|
1065
1079
|
class: "flex flex-col gap-16",
|
|
1066
1080
|
onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
|
|
1067
1081
|
}, {
|
|
1068
|
-
default:
|
|
1082
|
+
default: V(() => [
|
|
1069
1083
|
u(t, {
|
|
1070
1084
|
modelValue: e.value.gateway,
|
|
1071
1085
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
|
|
@@ -1080,14 +1094,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1080
1094
|
disabled: !0,
|
|
1081
1095
|
rules: o(x)(o(w).string())
|
|
1082
1096
|
}, null, 8, ["modelValue", "rules"]),
|
|
1083
|
-
|
|
1097
|
+
d("div", Oe, [
|
|
1084
1098
|
n.gateway ? (y(), F(l, {
|
|
1085
1099
|
key: 0,
|
|
1086
1100
|
class: "flex-1",
|
|
1087
1101
|
variant: "secondary",
|
|
1088
1102
|
label: "Delete",
|
|
1089
1103
|
onclick: () => n.onDelete()
|
|
1090
|
-
}, null, 8, ["onclick"])) :
|
|
1104
|
+
}, null, 8, ["onclick"])) : _("", !0),
|
|
1091
1105
|
u(l, {
|
|
1092
1106
|
type: "submit",
|
|
1093
1107
|
class: "flex-1",
|
|
@@ -1100,10 +1114,10 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1100
1114
|
}, 512);
|
|
1101
1115
|
};
|
|
1102
1116
|
}
|
|
1103
|
-
}),
|
|
1117
|
+
}), Ee = {
|
|
1104
1118
|
key: 0,
|
|
1105
1119
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1106
|
-
},
|
|
1120
|
+
}, Ye = /* @__PURE__ */ A({
|
|
1107
1121
|
__name: "TokenGateway",
|
|
1108
1122
|
props: {
|
|
1109
1123
|
payoutAccount: {
|
|
@@ -1112,30 +1126,30 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1112
1126
|
}
|
|
1113
1127
|
},
|
|
1114
1128
|
setup(n) {
|
|
1115
|
-
const v =
|
|
1129
|
+
const v = ae().currentCountry, e = z(), { isLoading: m, startAsyncCall: s } = Y(), { tokenTab: t } = j({
|
|
1116
1130
|
tokenTab: ""
|
|
1117
1131
|
}), l = n, p = [
|
|
1118
1132
|
{
|
|
1119
1133
|
label: "Google Pay",
|
|
1120
1134
|
value: "googlePay",
|
|
1121
1135
|
icon: "android",
|
|
1122
|
-
render:
|
|
1123
|
-
region: [
|
|
1136
|
+
render: Be,
|
|
1137
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
1124
1138
|
},
|
|
1125
1139
|
{
|
|
1126
1140
|
label: "Apple Pay",
|
|
1127
1141
|
value: "applePay",
|
|
1128
|
-
icon: "
|
|
1129
|
-
render:
|
|
1130
|
-
region: [
|
|
1142
|
+
icon: "iOS",
|
|
1143
|
+
render: qe,
|
|
1144
|
+
region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
|
|
1131
1145
|
}
|
|
1132
|
-
], c =
|
|
1133
|
-
(g) => g.region.includes(v.value ??
|
|
1146
|
+
], c = C(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
|
|
1147
|
+
(g) => g.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
|
|
1134
1148
|
));
|
|
1135
1149
|
async function f(g) {
|
|
1136
1150
|
await s(async () => {
|
|
1137
1151
|
try {
|
|
1138
|
-
await
|
|
1152
|
+
await R.updateTokens(l.payoutAccount._id, g), e.open({
|
|
1139
1153
|
type: "success",
|
|
1140
1154
|
title: "Payout account tokens gateway update succesfully"
|
|
1141
1155
|
});
|
|
@@ -1149,49 +1163,49 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1149
1163
|
});
|
|
1150
1164
|
}
|
|
1151
1165
|
return (g, b) => {
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1154
|
-
return y(),
|
|
1155
|
-
b[1] || (b[1] =
|
|
1156
|
-
|
|
1166
|
+
var T;
|
|
1167
|
+
const I = i("FmCircularProgress"), U = i("FmTabs");
|
|
1168
|
+
return y(), S($, null, [
|
|
1169
|
+
b[1] || (b[1] = d("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1170
|
+
d("b", null, "Note: "),
|
|
1157
1171
|
P(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1172
|
+
d("br"),
|
|
1173
|
+
d("br"),
|
|
1174
|
+
d("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1175
|
+
d("br")
|
|
1162
1176
|
], -1)),
|
|
1163
|
-
o(m) ? (y(),
|
|
1164
|
-
u(
|
|
1165
|
-
])) : (y(), F(
|
|
1177
|
+
o(m) ? (y(), S("div", Ee, [
|
|
1178
|
+
u(I, { size: "xxl" })
|
|
1179
|
+
])) : (y(), F(U, {
|
|
1166
1180
|
key: 1,
|
|
1167
1181
|
"model-value": o(t),
|
|
1168
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
1182
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => E(t) ? t.value = k : null),
|
|
1169
1183
|
class: "mb-6 mt-6",
|
|
1170
1184
|
items: r.value
|
|
1171
1185
|
}, null, 8, ["model-value", "items"])),
|
|
1172
|
-
o(t) ? (y(), F(
|
|
1173
|
-
gateway: c.value.find((
|
|
1174
|
-
var
|
|
1175
|
-
return
|
|
1186
|
+
o(t) ? (y(), F(L((T = a.value) == null ? void 0 : T.render), Z(Q({ key: 2 }, {
|
|
1187
|
+
gateway: c.value.find((k) => {
|
|
1188
|
+
var D;
|
|
1189
|
+
return k.type === ((D = a.value) == null ? void 0 : D.value);
|
|
1176
1190
|
}),
|
|
1177
1191
|
onDelete: async () => {
|
|
1178
|
-
c.value = c.value.filter((
|
|
1179
|
-
var
|
|
1180
|
-
return
|
|
1192
|
+
c.value = c.value.filter((k) => {
|
|
1193
|
+
var D;
|
|
1194
|
+
return k.type !== ((D = a.value) == null ? void 0 : D.value);
|
|
1181
1195
|
}), f(c.value);
|
|
1182
1196
|
},
|
|
1183
|
-
onUpdate: (
|
|
1184
|
-
let
|
|
1185
|
-
var
|
|
1186
|
-
return
|
|
1197
|
+
onUpdate: (k) => {
|
|
1198
|
+
let D = c.value.find((H) => {
|
|
1199
|
+
var B;
|
|
1200
|
+
return H.type === ((B = a.value) == null ? void 0 : B.value);
|
|
1187
1201
|
});
|
|
1188
|
-
|
|
1202
|
+
D ? D.config = k : c.value.push(k), f(c.value);
|
|
1189
1203
|
}
|
|
1190
|
-
})), null, 16)) :
|
|
1204
|
+
})), null, 16)) : _("", !0)
|
|
1191
1205
|
], 64);
|
|
1192
1206
|
};
|
|
1193
1207
|
}
|
|
1194
|
-
}),
|
|
1208
|
+
}), at = /* @__PURE__ */ A({
|
|
1195
1209
|
__name: "PayoutAccountSetting",
|
|
1196
1210
|
props: {
|
|
1197
1211
|
accountId: {
|
|
@@ -1202,80 +1216,80 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1202
1216
|
setup(n) {
|
|
1203
1217
|
const v = n, { tab: e } = j({
|
|
1204
1218
|
tab: "information"
|
|
1205
|
-
}), { isLoading: m, startAsyncCall: s } =
|
|
1219
|
+
}), { isLoading: m, startAsyncCall: s } = Y(!0), t = oe(), l = C();
|
|
1206
1220
|
async function p(f) {
|
|
1207
|
-
await
|
|
1221
|
+
await R.updateById(
|
|
1208
1222
|
v.accountId,
|
|
1209
1223
|
f
|
|
1210
|
-
), l.value = await
|
|
1224
|
+
), l.value = await R.readById(v.accountId);
|
|
1211
1225
|
}
|
|
1212
1226
|
const c = [
|
|
1213
1227
|
{
|
|
1214
1228
|
label: "Information",
|
|
1215
1229
|
value: "information",
|
|
1216
1230
|
icon: "overview",
|
|
1217
|
-
render:
|
|
1231
|
+
render: ce
|
|
1218
1232
|
},
|
|
1219
1233
|
{
|
|
1220
1234
|
label: "Settlement",
|
|
1221
1235
|
value: "settlement",
|
|
1222
1236
|
icon: "payments",
|
|
1223
|
-
render:
|
|
1237
|
+
render: pe
|
|
1224
1238
|
},
|
|
1225
1239
|
{
|
|
1226
1240
|
label: "MDR Status",
|
|
1227
1241
|
value: "payment",
|
|
1228
1242
|
icon: "account_box",
|
|
1229
|
-
render:
|
|
1243
|
+
render: we
|
|
1230
1244
|
},
|
|
1231
1245
|
{
|
|
1232
1246
|
label: "Online Gateways",
|
|
1233
1247
|
icon: "assured_workload",
|
|
1234
1248
|
value: "gateways",
|
|
1235
|
-
render:
|
|
1249
|
+
render: $e
|
|
1236
1250
|
},
|
|
1237
1251
|
{
|
|
1238
1252
|
label: "Token Gateways",
|
|
1239
1253
|
value: "tokens",
|
|
1240
1254
|
icon: "wallet",
|
|
1241
|
-
render:
|
|
1255
|
+
render: Ye
|
|
1242
1256
|
},
|
|
1243
1257
|
{
|
|
1244
1258
|
label: "Online Channels",
|
|
1245
1259
|
icon: "shopping_cart",
|
|
1246
1260
|
value: "channels",
|
|
1247
|
-
render:
|
|
1261
|
+
render: Ae
|
|
1248
1262
|
}
|
|
1249
1263
|
];
|
|
1250
1264
|
function a() {
|
|
1251
1265
|
s(async () => {
|
|
1252
|
-
l.value = await
|
|
1266
|
+
l.value = await R.readById(v.accountId);
|
|
1253
1267
|
});
|
|
1254
1268
|
}
|
|
1255
|
-
|
|
1256
|
-
const r =
|
|
1257
|
-
const f = c.reduce((g, b) => g || (b.children ? b.children.find((
|
|
1269
|
+
te(a);
|
|
1270
|
+
const r = K(() => {
|
|
1271
|
+
const f = c.reduce((g, b) => g || (b.children ? b.children.find((I) => I.value === e.value) || null : b.value === e.value ? b : null), null);
|
|
1258
1272
|
return f == null ? void 0 : f.render;
|
|
1259
1273
|
});
|
|
1260
1274
|
return (f, g) => {
|
|
1261
|
-
var
|
|
1262
|
-
const b =
|
|
1263
|
-
return y(), F(
|
|
1264
|
-
title: `Payout Account (${(
|
|
1275
|
+
var I;
|
|
1276
|
+
const b = i("FmTabs");
|
|
1277
|
+
return y(), F(le, {
|
|
1278
|
+
title: `Payout Account (${(I = l.value) == null ? void 0 : I._id})`,
|
|
1265
1279
|
loading: o(m),
|
|
1266
1280
|
onBack: o(t).back
|
|
1267
1281
|
}, {
|
|
1268
|
-
default:
|
|
1282
|
+
default: V(() => [
|
|
1269
1283
|
u(b, {
|
|
1270
1284
|
"model-value": o(e),
|
|
1271
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
1285
|
+
"onUpdate:modelValue": g[0] || (g[0] = (U) => E(e) ? e.value = U : null),
|
|
1272
1286
|
class: "mb-6",
|
|
1273
1287
|
items: c
|
|
1274
1288
|
}, null, 8, ["model-value"]),
|
|
1275
|
-
o(e) ? (y(), F(
|
|
1289
|
+
o(e) ? (y(), F(L(r.value), Z(Q({ key: 0 }, {
|
|
1276
1290
|
payoutAccount: l.value,
|
|
1277
1291
|
onUpdate: p
|
|
1278
|
-
})), null, 16)) :
|
|
1292
|
+
})), null, 16)) : _("", !0)
|
|
1279
1293
|
]),
|
|
1280
1294
|
_: 1
|
|
1281
1295
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1283,5 +1297,5 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
|
|
|
1283
1297
|
}
|
|
1284
1298
|
});
|
|
1285
1299
|
export {
|
|
1286
|
-
|
|
1300
|
+
at as default
|
|
1287
1301
|
};
|