@feedmepos/mf-payment 1.4.29 → 1.4.30
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-CLMalWxE.js → Actions.vue_vue_type_script_setup_true_lang-BbQrewY-.js} +2 -2
- package/dist/{Chargeback-_-KfXEVv.js → Chargeback-aEqBy8JJ.js} +5 -5
- package/dist/{OnboardForm-DsjxJ5rn.js → OnboardForm-BJwsRXYG.js} +4 -4
- package/dist/{OnboardForm-CWMouF7e.js → OnboardForm-DmT0YZuj.js} +4 -4
- package/dist/{OnboardSubmission-Bdd38hsp.js → OnboardSubmission-CGIf8JzK.js} +5 -5
- package/dist/{OnboardSubmission-CwvVOaj_.js → OnboardSubmission-DiRLFPYG.js} +2 -2
- package/dist/{PayoutAccount-YqtpXBBe.js → PayoutAccount-DhdtjmgY.js} +5 -5
- package/dist/{PayoutAccount-HhE-cOzl.js → PayoutAccount-UeuXM5Dz.js} +5 -5
- package/dist/{PayoutAccountSetting-LxWKmBOI.js → PayoutAccountSetting-DRuXPzN4.js} +370 -301
- package/dist/{Restaurant-CiaK6wV9.js → Restaurant-DrRWis75.js} +4 -4
- package/dist/{RestaurantSetting-DOcVGjiD.js → RestaurantSetting-DX3raN_M.js} +3 -3
- package/dist/{Settlement-CU8BlYx0.js → Settlement-CgBI2X3j.js} +3 -3
- package/dist/{Settlement-0g10njYN.js → Settlement-DbwsZtDs.js} +3 -3
- package/dist/{SettlementTransactions-G9Q6Bi0g.js → SettlementTransactions-B0o-K3yc.js} +4 -4
- package/dist/{SettlementTransactions-DsWWADGe.js → SettlementTransactions-DZMxTrua.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-COp6-_i4.js → Status.vue_vue_type_script_setup_true_lang-uaeTXFw3.js} +1 -1
- package/dist/{Terminal-CetdabFy.js → Terminal-DDFHCeRH.js} +5 -5
- package/dist/{TerminalSetting-MKI0jupT.js → TerminalSetting-cv-DRAwO.js} +3 -3
- package/dist/{Transaction-BBGFc7jF.js → Transaction-B57yQ9nb.js} +9 -9
- package/dist/{Transaction-CL0kwjHI.js → Transaction-DhARIJcJ.js} +6 -6
- package/dist/{TransactionOld-_tvyK7TV.js → TransactionOld-D4N8x8Hx.js} +6 -6
- package/dist/{app-BkzaKCP4.js → app-BJIItHC0.js} +74 -74
- package/dist/app.js +1 -1
- package/dist/{assets-DCTj0P5R.js → assets-CCpg3NHp.js} +16 -15
- package/dist/{grafana-3qKGKghh.js → grafana-DGF5kjUv.js} +1 -1
- package/dist/{index-DOv6nss7.js → index-BD5v32CS.js} +2 -2
- package/dist/{index-BQwri7nC.js → index-BKME0CUG.js} +1 -1
- package/dist/{index-CElp-4g_.js → index-Btev-8WJ.js} +1 -1
- package/dist/{index-DOLajImh.js → index-DFjVdPoc.js} +1 -1
- package/dist/{index-DvDscxQR.js → index-DbTENTAQ.js} +1 -1
- package/dist/{index-C3ZceSMT.js → index-DlKNMBnz.js} +9 -2
- package/dist/{index-MQyL_1-a.js → index-UPRcqQ6e.js} +1 -1
- package/dist/{index-DrP0JZhQ.js → index-X9HLi63I.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D__Vi_FK.js → index.vue_vue_type_script_setup_true_lang-Doj7ETw7.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-B378Z3Wv.js → payout-account-D55S1h_Z.js} +3 -3
- package/dist/{plugins-BikZSYoK.js → plugins-CjWbnFk3.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +12 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +12 -0
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +41 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +24 -0
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as D } from "./index-
|
|
3
|
-
import { u as
|
|
1
|
+
import { defineComponent as _, resolveComponent as i, openBlock as v, createElementBlock as h, Fragment as $, createElementVNode as m, createVNode as u, withCtx as k, createTextVNode as T, toDisplayString as I, createCommentVNode as C, createBlock as x, ref as U, watch as W, computed as G, unref as l, isRef as E, h as M, onMounted as J, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
|
|
2
|
+
import { p as D } from "./index-DbTENTAQ.js";
|
|
3
|
+
import { u as O, e as P } from "./index-DlKNMBnz.js";
|
|
4
4
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
5
5
|
import { useRouter as te } from "vue-router";
|
|
6
|
-
import { u as j } from "./index-
|
|
6
|
+
import { u as j } from "./index-X9HLi63I.js";
|
|
7
7
|
import { P as Q } from "./PDFViewer-DlSCBBxr.js";
|
|
8
8
|
import { useSnackbar as Y, components as ae } from "@feedmepos/ui-library";
|
|
9
|
-
import { u as
|
|
10
|
-
import { z as
|
|
9
|
+
import { u as R } from "./error-K1CakhA9.js";
|
|
10
|
+
import { z as w, a as V } from "./validator-D5jtpt9A.js";
|
|
11
11
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
12
|
-
const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */
|
|
12
|
+
const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
|
|
13
13
|
__name: "Information",
|
|
14
14
|
props: {
|
|
15
15
|
payoutAccount: {
|
|
@@ -19,35 +19,35 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (y, e) => {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
22
|
+
const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
|
|
23
|
+
return v(), h($, null, [
|
|
24
|
+
m("div", ne, [
|
|
25
25
|
u(t, {
|
|
26
26
|
horizontal: "",
|
|
27
27
|
class: "flex-1 p-6",
|
|
28
28
|
variant: "elevated"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
30
|
+
default: k(() => [
|
|
31
31
|
u(c, { class: "flex flex-col gap-16 justify-between" }, {
|
|
32
|
-
default:
|
|
33
|
-
u(
|
|
32
|
+
default: k(() => [
|
|
33
|
+
u(d, {
|
|
34
34
|
class: "p-0",
|
|
35
35
|
title: "Account Info",
|
|
36
36
|
subtitle: ""
|
|
37
37
|
}),
|
|
38
38
|
u(c, { class: "p-0" }, {
|
|
39
|
-
default:
|
|
40
|
-
var
|
|
39
|
+
default: k(() => {
|
|
40
|
+
var o, p, s, a, r;
|
|
41
41
|
return [
|
|
42
|
-
e[0] || (e[0] =
|
|
43
|
-
|
|
44
|
-
e[1] || (e[1] =
|
|
45
|
-
e[2] || (e[2] =
|
|
46
|
-
|
|
47
|
-
e[3] || (e[3] =
|
|
48
|
-
e[4] || (e[4] =
|
|
49
|
-
|
|
50
|
-
e[5] || (e[5] =
|
|
42
|
+
e[0] || (e[0] = m("b", null, "For", -1)),
|
|
43
|
+
T(": " + I((p = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : p.event) + " ", 1),
|
|
44
|
+
e[1] || (e[1] = m("br", null, null, -1)),
|
|
45
|
+
e[2] || (e[2] = m("b", null, "Reference", -1)),
|
|
46
|
+
T(": " + I((a = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : a.id), 1),
|
|
47
|
+
e[3] || (e[3] = m("br", null, null, -1)),
|
|
48
|
+
e[4] || (e[4] = m("b", null, "Business", -1)),
|
|
49
|
+
T(": " + I((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
|
|
50
|
+
e[5] || (e[5] = m("br", null, null, -1))
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
_: 1
|
|
@@ -63,27 +63,27 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
63
63
|
class: "flex-1 p-6",
|
|
64
64
|
variant: "elevated"
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
66
|
+
default: k(() => [
|
|
67
67
|
u(c, { class: "flex flex-col gap-16 justify-between" }, {
|
|
68
|
-
default:
|
|
69
|
-
u(
|
|
68
|
+
default: k(() => [
|
|
69
|
+
u(d, {
|
|
70
70
|
class: "p-0",
|
|
71
71
|
title: "Key Person",
|
|
72
72
|
subtitle: ""
|
|
73
73
|
}),
|
|
74
74
|
u(c, { class: "p-0" }, {
|
|
75
|
-
default:
|
|
76
|
-
var
|
|
75
|
+
default: k(() => {
|
|
76
|
+
var o, p, s, a, r, g, f, b;
|
|
77
77
|
return [
|
|
78
|
-
e[6] || (e[6] =
|
|
79
|
-
|
|
80
|
-
e[7] || (e[7] =
|
|
81
|
-
e[8] || (e[8] =
|
|
82
|
-
|
|
83
|
-
e[9] || (e[9] =
|
|
84
|
-
e[10] || (e[10] =
|
|
85
|
-
|
|
86
|
-
e[11] || (e[11] =
|
|
78
|
+
e[6] || (e[6] = m("b", null, "Email", -1)),
|
|
79
|
+
T(": " + I((s = (p = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : p.keyPerson) == null ? void 0 : s.email) + " ", 1),
|
|
80
|
+
e[7] || (e[7] = m("br", null, null, -1)),
|
|
81
|
+
e[8] || (e[8] = m("b", null, "Name", -1)),
|
|
82
|
+
T(": " + I((g = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : g.name), 1),
|
|
83
|
+
e[9] || (e[9] = m("br", null, null, -1)),
|
|
84
|
+
e[10] || (e[10] = m("b", null, "Phone", -1)),
|
|
85
|
+
T(": " + I((b = (f = n.payoutAccount) == null ? void 0 : f.store.keyPerson) == null ? void 0 : b.phone), 1),
|
|
86
|
+
e[11] || (e[11] = m("br", null, null, -1))
|
|
87
87
|
];
|
|
88
88
|
}),
|
|
89
89
|
_: 1
|
|
@@ -95,15 +95,15 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
95
95
|
_: 1
|
|
96
96
|
})
|
|
97
97
|
]),
|
|
98
|
-
e[12] || (e[12] =
|
|
99
|
-
n.payoutAccount.store.exteriorPhoto ? (
|
|
98
|
+
e[12] || (e[12] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
99
|
+
n.payoutAccount.store.exteriorPhoto ? (v(), h("img", {
|
|
100
100
|
key: 0,
|
|
101
101
|
src: n.payoutAccount.store.exteriorPhoto
|
|
102
|
-
}, null, 8, le)) :
|
|
102
|
+
}, null, 8, le)) : C("", !0)
|
|
103
103
|
], 64);
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
}), ue = { class: "flex gap-16" }, re = { class: "flex-1" }, se = { class: "flex-1" }, ce = /* @__PURE__ */
|
|
106
|
+
}), ue = { class: "flex gap-16" }, re = { class: "flex-1" }, se = { class: "flex-1" }, ce = /* @__PURE__ */ _({
|
|
107
107
|
__name: "Settlement",
|
|
108
108
|
props: {
|
|
109
109
|
payoutAccount: {
|
|
@@ -113,33 +113,33 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
113
113
|
},
|
|
114
114
|
setup(n) {
|
|
115
115
|
return (y, e) => {
|
|
116
|
-
const
|
|
117
|
-
return
|
|
116
|
+
const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
|
|
117
|
+
return v(), 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: k(() => [
|
|
124
124
|
u(c, { class: "flex flex-col gap-16 justify-between" }, {
|
|
125
|
-
default:
|
|
126
|
-
u(
|
|
125
|
+
default: k(() => [
|
|
126
|
+
u(d, {
|
|
127
127
|
class: "p-0",
|
|
128
128
|
title: "Bank Info",
|
|
129
129
|
subtitle: ""
|
|
130
130
|
}),
|
|
131
131
|
u(c, { class: "p-0" }, {
|
|
132
|
-
default:
|
|
133
|
-
var
|
|
132
|
+
default: k(() => {
|
|
133
|
+
var o, p, s, a, r, g;
|
|
134
134
|
return [
|
|
135
|
-
e[0] || (e[0] =
|
|
136
|
-
|
|
137
|
-
e[1] || (e[1] =
|
|
138
|
-
e[2] || (e[2] =
|
|
139
|
-
|
|
140
|
-
e[3] || (e[3] =
|
|
141
|
-
e[4] || (e[4] =
|
|
142
|
-
|
|
135
|
+
e[0] || (e[0] = m("b", null, "Bank", -1)),
|
|
136
|
+
T(": " + I((p = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : p.name), 1),
|
|
137
|
+
e[1] || (e[1] = m("br", null, null, -1)),
|
|
138
|
+
e[2] || (e[2] = m("b", null, "Name", -1)),
|
|
139
|
+
T(": " + I((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
|
|
140
|
+
e[3] || (e[3] = m("br", null, null, -1)),
|
|
141
|
+
e[4] || (e[4] = m("b", null, "Number", -1)),
|
|
142
|
+
T(": " + I((g = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : g.accountNumber), 1)
|
|
143
143
|
];
|
|
144
144
|
}),
|
|
145
145
|
_: 1
|
|
@@ -150,30 +150,30 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
150
150
|
]),
|
|
151
151
|
_: 1
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
e[5] || (e[5] =
|
|
156
|
-
n.payoutAccount.store.ssm ? (
|
|
153
|
+
m("div", ue, [
|
|
154
|
+
m("div", re, [
|
|
155
|
+
e[5] || (e[5] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
156
|
+
n.payoutAccount.store.ssm ? (v(), x(Q, {
|
|
157
157
|
key: 0,
|
|
158
158
|
pdf: n.payoutAccount.store.ssm,
|
|
159
159
|
"disable-text-layer": !0,
|
|
160
160
|
"disable-annotation-layer": !0
|
|
161
|
-
}, null, 8, ["pdf"])) :
|
|
161
|
+
}, null, 8, ["pdf"])) : C("", !0)
|
|
162
162
|
]),
|
|
163
|
-
|
|
164
|
-
e[6] || (e[6] =
|
|
165
|
-
n.payoutAccount.store.bankStatement ? (
|
|
163
|
+
m("div", se, [
|
|
164
|
+
e[6] || (e[6] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
165
|
+
n.payoutAccount.store.bankStatement ? (v(), x(Q, {
|
|
166
166
|
key: 0,
|
|
167
167
|
pdf: n.payoutAccount.store.bankStatement,
|
|
168
168
|
"disable-text-layer": !0,
|
|
169
169
|
"disable-annotation-layer": !0
|
|
170
|
-
}, null, 8, ["pdf"])) :
|
|
170
|
+
}, null, 8, ["pdf"])) : C("", !0)
|
|
171
171
|
])
|
|
172
172
|
])
|
|
173
173
|
], 64);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
}), ie = /* @__PURE__ */
|
|
176
|
+
}), ie = /* @__PURE__ */ _({
|
|
177
177
|
__name: "RateInput",
|
|
178
178
|
props: {
|
|
179
179
|
data: {},
|
|
@@ -181,23 +181,23 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
181
181
|
},
|
|
182
182
|
setup(n) {
|
|
183
183
|
const y = n, e = U(y.data.toString());
|
|
184
|
-
return W(e, (
|
|
185
|
-
y.onChange(parseFloat(
|
|
186
|
-
}), (
|
|
187
|
-
const t =
|
|
188
|
-
return
|
|
184
|
+
return W(e, (d) => {
|
|
185
|
+
y.onChange(parseFloat(d));
|
|
186
|
+
}), (d, c) => {
|
|
187
|
+
const t = i("FmTextField");
|
|
188
|
+
return v(), x(t, {
|
|
189
189
|
inputmode: "decimal",
|
|
190
190
|
modelValue: e.value,
|
|
191
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
191
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
|
|
192
192
|
}, {
|
|
193
|
-
append:
|
|
194
|
-
|
|
193
|
+
append: k(() => c[1] || (c[1] = [
|
|
194
|
+
T("%")
|
|
195
195
|
])),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["modelValue"]);
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), me = /* @__PURE__ */ _({
|
|
201
201
|
__name: "TPlusInput",
|
|
202
202
|
props: {
|
|
203
203
|
data: {},
|
|
@@ -205,18 +205,18 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
205
205
|
},
|
|
206
206
|
setup(n) {
|
|
207
207
|
const y = n, e = U(y.data.toString());
|
|
208
|
-
return W(e, (
|
|
209
|
-
y.onChange(parseInt(
|
|
210
|
-
}), (
|
|
211
|
-
const t =
|
|
212
|
-
return
|
|
208
|
+
return W(e, (d) => {
|
|
209
|
+
y.onChange(parseInt(d));
|
|
210
|
+
}), (d, c) => {
|
|
211
|
+
const t = i("FmTextField");
|
|
212
|
+
return v(), x(t, {
|
|
213
213
|
inputmode: "numeric",
|
|
214
214
|
modelValue: e.value,
|
|
215
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
215
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
|
|
216
216
|
}, null, 8, ["modelValue"]);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ _({
|
|
220
220
|
__name: "PaymentStatus",
|
|
221
221
|
props: {
|
|
222
222
|
onUpdate: {
|
|
@@ -229,24 +229,24 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
setup(n) {
|
|
232
|
-
const y = n, e = U(!1),
|
|
232
|
+
const y = n, e = U(!1), d = Y(), c = async (a) => {
|
|
233
233
|
try {
|
|
234
|
-
e.value = !0, await y.onUpdate(a),
|
|
234
|
+
e.value = !0, await y.onUpdate(a), d.open({
|
|
235
235
|
type: "success",
|
|
236
236
|
title: "Payout account update succesfully"
|
|
237
237
|
});
|
|
238
238
|
} catch (r) {
|
|
239
|
-
|
|
239
|
+
d.open({
|
|
240
240
|
type: "error",
|
|
241
241
|
title: "Error occurs when updating payout account",
|
|
242
|
-
message:
|
|
242
|
+
message: R(r)
|
|
243
243
|
});
|
|
244
244
|
} finally {
|
|
245
245
|
e.value = !1;
|
|
246
246
|
}
|
|
247
247
|
}, { search: t } = j({
|
|
248
248
|
search: ""
|
|
249
|
-
}),
|
|
249
|
+
}), o = G(() => {
|
|
250
250
|
const { ssm: a, bank: r, bankStatement: g } = y.payoutAccount.store;
|
|
251
251
|
return a && r && r.name && r.accountNumber && r.holderName && g;
|
|
252
252
|
}), p = U(""), s = [
|
|
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
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)), M(ie, {
|
|
264
264
|
data: r,
|
|
265
265
|
onChange: (g) => {
|
|
266
|
-
const
|
|
267
|
-
|
|
266
|
+
const f = y.payoutAccount.methods.at(a.index);
|
|
267
|
+
f.rate || (f.rate = {
|
|
268
268
|
amount: 0,
|
|
269
269
|
precision: 4
|
|
270
|
-
}),
|
|
270
|
+
}), f.rate.amount = g * Math.pow(10, f.rate.precision);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
@@ -275,7 +275,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
275
275
|
{
|
|
276
276
|
header: () => "T plus",
|
|
277
277
|
accessorKey: "tPlus",
|
|
278
|
-
cell: ({ row: a }) =>
|
|
278
|
+
cell: ({ row: a }) => M(me, {
|
|
279
279
|
data: a.original.tPlus ?? 0,
|
|
280
280
|
onChange: (r) => {
|
|
281
281
|
const g = y.payoutAccount.methods.at(a.index);
|
|
@@ -285,16 +285,16 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
285
285
|
}
|
|
286
286
|
];
|
|
287
287
|
return (a, r) => {
|
|
288
|
-
const g =
|
|
289
|
-
return
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
u(
|
|
288
|
+
const g = i("FmRadio"), f = i("FmRadioGroup"), b = i("FmSwitch"), S = i("FmSearch"), N = i("FmTable"), K = i("FmButton");
|
|
289
|
+
return v(), h($, null, [
|
|
290
|
+
m("div", de, [
|
|
291
|
+
m("div", pe, [
|
|
292
|
+
u(f, {
|
|
293
293
|
modelValue: n.payoutAccount.status,
|
|
294
294
|
"onUpdate:modelValue": r[0] || (r[0] = (F) => n.payoutAccount.status = F),
|
|
295
295
|
label: "Account Status"
|
|
296
296
|
}, {
|
|
297
|
-
default:
|
|
297
|
+
default: k(() => [
|
|
298
298
|
u(g, {
|
|
299
299
|
value: "NEW",
|
|
300
300
|
label: "New"
|
|
@@ -311,22 +311,22 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
311
311
|
_: 1
|
|
312
312
|
}, 8, ["modelValue"])
|
|
313
313
|
]),
|
|
314
|
-
|
|
314
|
+
m("div", ye, [
|
|
315
315
|
u(b, {
|
|
316
316
|
modelValue: n.payoutAccount.enable,
|
|
317
317
|
"onUpdate:modelValue": r[1] || (r[1] = (F) => n.payoutAccount.enable = F),
|
|
318
|
-
disabled: !
|
|
318
|
+
disabled: !o.value,
|
|
319
319
|
label: "Enabled",
|
|
320
320
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
321
321
|
}, null, 8, ["modelValue", "disabled"])
|
|
322
322
|
])
|
|
323
323
|
]),
|
|
324
|
-
n.payoutAccount.enable ? (
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
u(
|
|
328
|
-
modelValue:
|
|
329
|
-
"onUpdate:modelValue": r[2] || (r[2] = (F) =>
|
|
324
|
+
n.payoutAccount.enable ? (v(), h($, { key: 0 }, [
|
|
325
|
+
m("div", ve, [
|
|
326
|
+
m("div", fe, [
|
|
327
|
+
u(S, {
|
|
328
|
+
modelValue: l(t),
|
|
329
|
+
"onUpdate:modelValue": r[2] || (r[2] = (F) => E(t) ? t.value = F : null),
|
|
330
330
|
placeholder: "Search Method ..."
|
|
331
331
|
}, null, 8, ["modelValue"])
|
|
332
332
|
])
|
|
@@ -336,12 +336,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
336
336
|
modelValue: p.value,
|
|
337
337
|
"onUpdate:modelValue": r[3] || (r[3] = (F) => p.value = F),
|
|
338
338
|
"shrink-at": !1,
|
|
339
|
-
"search-value":
|
|
339
|
+
"search-value": l(t),
|
|
340
340
|
"row-data": n.payoutAccount.methods,
|
|
341
341
|
"column-defs": s
|
|
342
342
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
343
|
-
], 64)) :
|
|
344
|
-
u(
|
|
343
|
+
], 64)) : C("", !0),
|
|
344
|
+
u(K, {
|
|
345
345
|
class: "w-full mt-6",
|
|
346
346
|
variant: "primary",
|
|
347
347
|
label: "Save",
|
|
@@ -351,25 +351,25 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
351
351
|
], 64);
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
}), be = { class: "flex" }, Fe = /* @__PURE__ */
|
|
354
|
+
}), be = { class: "flex" }, Fe = /* @__PURE__ */ _({
|
|
355
355
|
__name: "Actions",
|
|
356
356
|
emits: ["edit", "delete"],
|
|
357
357
|
setup(n, { emit: y }) {
|
|
358
358
|
const e = y;
|
|
359
|
-
return (
|
|
360
|
-
const t =
|
|
361
|
-
return
|
|
359
|
+
return (d, c) => {
|
|
360
|
+
const t = i("FmButton");
|
|
361
|
+
return v(), h("div", be, [
|
|
362
362
|
u(t, {
|
|
363
363
|
variant: "plain",
|
|
364
364
|
"prepend-icon": "delete",
|
|
365
|
-
onClick: c[0] || (c[0] = (
|
|
366
|
-
|
|
365
|
+
onClick: c[0] || (c[0] = (o) => {
|
|
366
|
+
o.stopPropagation(), e("delete");
|
|
367
367
|
})
|
|
368
368
|
})
|
|
369
369
|
]);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), xe = { class: "flex justify-end px-6 pb-6" }, we = /* @__PURE__ */ _({
|
|
373
373
|
__name: "PaymentChannel",
|
|
374
374
|
props: {
|
|
375
375
|
payoutAccount: {
|
|
@@ -378,13 +378,13 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
380
|
setup(n) {
|
|
381
|
-
const y = Y(), e = n, { isLoading:
|
|
382
|
-
function
|
|
381
|
+
const y = Y(), e = n, { isLoading: d, startAsyncCall: c } = O(), t = U([]);
|
|
382
|
+
function o() {
|
|
383
383
|
c(async () => {
|
|
384
384
|
t.value = await D.getChannels(e.payoutAccount._id);
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
J(
|
|
387
|
+
J(o);
|
|
388
388
|
function p() {
|
|
389
389
|
c(async () => {
|
|
390
390
|
try {
|
|
@@ -396,7 +396,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
396
396
|
y.open({
|
|
397
397
|
type: "error",
|
|
398
398
|
title: "Error occurs when updating payout account channels",
|
|
399
|
-
message:
|
|
399
|
+
message: R(r)
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
});
|
|
@@ -412,7 +412,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
412
412
|
y.open({
|
|
413
413
|
type: "error",
|
|
414
414
|
title: "Error occurs when reset payout account channels",
|
|
415
|
-
message:
|
|
415
|
+
message: R(r)
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -429,12 +429,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
429
429
|
{
|
|
430
430
|
header: () => "Display",
|
|
431
431
|
accessorKey: "icon",
|
|
432
|
-
cell: ({ row: r }) =>
|
|
432
|
+
cell: ({ row: r }) => M("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 }) => M(ae.FmTextField, {
|
|
438
438
|
modelValue: r.original.label,
|
|
439
439
|
"onUpdate:modelValue": (g) => r.original.label = g
|
|
440
440
|
})
|
|
@@ -442,16 +442,16 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
442
442
|
{
|
|
443
443
|
id: "actions",
|
|
444
444
|
header: () => "Actions",
|
|
445
|
-
cell: ({ row: r }) =>
|
|
445
|
+
cell: ({ row: r }) => M(Fe, {
|
|
446
446
|
onDelete: () => t.value.splice(r.index, 1)
|
|
447
447
|
})
|
|
448
448
|
}
|
|
449
449
|
];
|
|
450
450
|
return (r, g) => {
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
u(
|
|
451
|
+
const f = i("FmButton"), b = i("FmTable");
|
|
452
|
+
return v(), h($, null, [
|
|
453
|
+
m("div", xe, [
|
|
454
|
+
u(f, {
|
|
455
455
|
class: "mx-4",
|
|
456
456
|
variant: "destructive",
|
|
457
457
|
size: "md",
|
|
@@ -459,7 +459,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
459
459
|
label: "Reset",
|
|
460
460
|
onClick: s
|
|
461
461
|
}),
|
|
462
|
-
u(
|
|
462
|
+
u(f, {
|
|
463
463
|
variant: "primary",
|
|
464
464
|
size: "md",
|
|
465
465
|
icon: "save",
|
|
@@ -468,7 +468,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
468
468
|
})
|
|
469
469
|
]),
|
|
470
470
|
u(b, {
|
|
471
|
-
loading:
|
|
471
|
+
loading: l(d),
|
|
472
472
|
"row-data": t.value,
|
|
473
473
|
"column-defs": a,
|
|
474
474
|
"shrink-at": !1
|
|
@@ -476,7 +476,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
476
476
|
], 64);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
}), Ve = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */
|
|
479
|
+
}), Ve = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ _({
|
|
480
480
|
__name: "FiuuGateway",
|
|
481
481
|
props: {
|
|
482
482
|
gateway: {
|
|
@@ -493,46 +493,46 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
493
493
|
}
|
|
494
494
|
},
|
|
495
495
|
setup(n) {
|
|
496
|
-
var
|
|
497
|
-
const e = U(((
|
|
496
|
+
var d;
|
|
497
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
498
498
|
merchantId: "",
|
|
499
499
|
verifyKey: "",
|
|
500
500
|
secretKey: ""
|
|
501
501
|
});
|
|
502
502
|
return (c, t) => {
|
|
503
|
-
const
|
|
504
|
-
return
|
|
503
|
+
const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
|
|
504
|
+
return v(), x(s, {
|
|
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:
|
|
510
|
-
u(
|
|
509
|
+
default: k(() => [
|
|
510
|
+
u(o, {
|
|
511
511
|
modelValue: e.value.merchantId,
|
|
512
512
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
513
513
|
label: "Merchant ID",
|
|
514
|
-
rules:
|
|
514
|
+
rules: l(w)(l(V).string())
|
|
515
515
|
}, null, 8, ["modelValue", "rules"]),
|
|
516
|
-
u(
|
|
516
|
+
u(o, {
|
|
517
517
|
modelValue: e.value.verifyKey,
|
|
518
518
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
|
|
519
519
|
label: "Verify Key",
|
|
520
|
-
rules:
|
|
520
|
+
rules: l(w)(l(V).string())
|
|
521
521
|
}, null, 8, ["modelValue", "rules"]),
|
|
522
|
-
u(
|
|
522
|
+
u(o, {
|
|
523
523
|
modelValue: e.value.secretKey,
|
|
524
524
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
|
|
525
525
|
label: "Secret Key",
|
|
526
|
-
rules:
|
|
526
|
+
rules: l(w)(l(V).string())
|
|
527
527
|
}, null, 8, ["modelValue", "rules"]),
|
|
528
|
-
|
|
529
|
-
n.gateway ? (
|
|
528
|
+
m("div", Ve, [
|
|
529
|
+
n.gateway ? (v(), x(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"])) : C("", !0),
|
|
536
536
|
u(p, {
|
|
537
537
|
type: "submit",
|
|
538
538
|
class: "flex-1",
|
|
@@ -545,7 +545,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
545
545
|
}, 512);
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
}), Ae = { class: "flex mt-6 space-x-6" },
|
|
548
|
+
}), Ae = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ _({
|
|
549
549
|
__name: "MacauPassGateway",
|
|
550
550
|
props: {
|
|
551
551
|
gateway: {
|
|
@@ -562,8 +562,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
564
|
setup(n) {
|
|
565
|
-
var
|
|
566
|
-
const e = U(((
|
|
565
|
+
var d;
|
|
566
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
567
567
|
merchantId: "",
|
|
568
568
|
merchantName: "",
|
|
569
569
|
merchantCategoryCode: "",
|
|
@@ -571,51 +571,51 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
571
571
|
storeName: ""
|
|
572
572
|
});
|
|
573
573
|
return (c, t) => {
|
|
574
|
-
const
|
|
575
|
-
return
|
|
574
|
+
const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
|
|
575
|
+
return v(), x(s, {
|
|
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:
|
|
581
|
-
u(
|
|
580
|
+
default: k(() => [
|
|
581
|
+
u(o, {
|
|
582
582
|
modelValue: e.value.merchantId,
|
|
583
583
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
584
584
|
label: "Merchant ID",
|
|
585
|
-
rules:
|
|
585
|
+
rules: l(w)(l(V).string())
|
|
586
586
|
}, null, 8, ["modelValue", "rules"]),
|
|
587
|
-
u(
|
|
587
|
+
u(o, {
|
|
588
588
|
modelValue: e.value.merchantName,
|
|
589
589
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
|
|
590
590
|
label: "Merchant Name",
|
|
591
|
-
rules:
|
|
591
|
+
rules: l(w)(l(V).string())
|
|
592
592
|
}, null, 8, ["modelValue", "rules"]),
|
|
593
|
-
u(
|
|
593
|
+
u(o, {
|
|
594
594
|
modelValue: e.value.merchantCategoryCode,
|
|
595
595
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
|
|
596
596
|
label: "Merchant MCC",
|
|
597
|
-
rules:
|
|
597
|
+
rules: l(w)(l(V).string())
|
|
598
598
|
}, null, 8, ["modelValue", "rules"]),
|
|
599
|
-
u(
|
|
599
|
+
u(o, {
|
|
600
600
|
modelValue: e.value.storeID,
|
|
601
601
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
|
|
602
602
|
label: "Store ID",
|
|
603
|
-
rules:
|
|
603
|
+
rules: l(w)(l(V).string())
|
|
604
604
|
}, null, 8, ["modelValue", "rules"]),
|
|
605
|
-
u(
|
|
605
|
+
u(o, {
|
|
606
606
|
modelValue: e.value.storeName,
|
|
607
607
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
|
|
608
608
|
label: "Store Name",
|
|
609
|
-
rules:
|
|
609
|
+
rules: l(w)(l(V).string())
|
|
610
610
|
}, null, 8, ["modelValue", "rules"]),
|
|
611
|
-
|
|
612
|
-
n.gateway ? (
|
|
611
|
+
m("div", Ae, [
|
|
612
|
+
n.gateway ? (v(), x(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"])) : C("", !0),
|
|
619
619
|
u(p, {
|
|
620
620
|
type: "submit",
|
|
621
621
|
class: "flex-1",
|
|
@@ -628,7 +628,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
628
628
|
}, 512);
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ _({
|
|
632
632
|
__name: "DigioGateway",
|
|
633
633
|
props: {
|
|
634
634
|
gateway: {
|
|
@@ -645,39 +645,39 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
setup(n) {
|
|
648
|
-
var
|
|
649
|
-
const e = U(((
|
|
648
|
+
var d;
|
|
649
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
650
650
|
merchantId: "",
|
|
651
651
|
cardMerchantId: ""
|
|
652
652
|
});
|
|
653
653
|
return (c, t) => {
|
|
654
|
-
const
|
|
655
|
-
return
|
|
654
|
+
const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
|
|
655
|
+
return v(), x(s, {
|
|
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:
|
|
661
|
-
u(
|
|
660
|
+
default: k(() => [
|
|
661
|
+
u(o, {
|
|
662
662
|
modelValue: e.value.merchantId,
|
|
663
663
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
|
|
664
664
|
label: "Merchant ID",
|
|
665
|
-
rules:
|
|
665
|
+
rules: l(w)(l(V).string())
|
|
666
666
|
}, null, 8, ["modelValue", "rules"]),
|
|
667
|
-
u(
|
|
667
|
+
u(o, {
|
|
668
668
|
modelValue: e.value.cardMerchantId,
|
|
669
669
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
|
|
670
670
|
label: "Card Merchant ID",
|
|
671
|
-
rules:
|
|
671
|
+
rules: l(w)(l(V).string())
|
|
672
672
|
}, null, 8, ["modelValue", "rules"]),
|
|
673
|
-
|
|
674
|
-
n.gateway ? (
|
|
673
|
+
m("div", Ce, [
|
|
674
|
+
n.gateway ? (v(), x(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"])) : C("", !0),
|
|
681
681
|
u(p, {
|
|
682
682
|
type: "submit",
|
|
683
683
|
class: "flex-1",
|
|
@@ -690,7 +690,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
690
690
|
}, 512);
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}),
|
|
693
|
+
}), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ _({
|
|
694
694
|
__name: "AdyenGateway",
|
|
695
695
|
props: {
|
|
696
696
|
gateway: {
|
|
@@ -707,8 +707,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
707
707
|
}
|
|
708
708
|
},
|
|
709
709
|
setup(n) {
|
|
710
|
-
var
|
|
711
|
-
const e = U(((
|
|
710
|
+
var d;
|
|
711
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
712
712
|
merchantAccount: "",
|
|
713
713
|
username: "",
|
|
714
714
|
apiKey: "",
|
|
@@ -717,56 +717,56 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
717
717
|
hmacKey: ""
|
|
718
718
|
});
|
|
719
719
|
return (c, t) => {
|
|
720
|
-
const
|
|
721
|
-
return
|
|
720
|
+
const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
|
|
721
|
+
return v(), x(s, {
|
|
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:
|
|
727
|
-
u(
|
|
726
|
+
default: k(() => [
|
|
727
|
+
u(o, {
|
|
728
728
|
modelValue: e.value.endpoint,
|
|
729
729
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
|
|
730
730
|
label: "Endpoint",
|
|
731
|
-
rules:
|
|
731
|
+
rules: l(w)(l(V).string())
|
|
732
732
|
}, null, 8, ["modelValue", "rules"]),
|
|
733
|
-
u(
|
|
733
|
+
u(o, {
|
|
734
734
|
modelValue: e.value.merchantAccount,
|
|
735
735
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
|
|
736
736
|
label: "Merchant Account",
|
|
737
|
-
rules:
|
|
737
|
+
rules: l(w)(l(V).string())
|
|
738
738
|
}, null, 8, ["modelValue", "rules"]),
|
|
739
|
-
u(
|
|
739
|
+
u(o, {
|
|
740
740
|
modelValue: e.value.username,
|
|
741
741
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
|
|
742
742
|
label: "Username",
|
|
743
|
-
rules:
|
|
743
|
+
rules: l(w)(l(V).string())
|
|
744
744
|
}, null, 8, ["modelValue", "rules"]),
|
|
745
|
-
u(
|
|
745
|
+
u(o, {
|
|
746
746
|
modelValue: e.value.apiKey,
|
|
747
747
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
|
|
748
748
|
label: "API Key",
|
|
749
|
-
rules:
|
|
749
|
+
rules: l(w)(l(V).string())
|
|
750
750
|
}, null, 8, ["modelValue", "rules"]),
|
|
751
|
-
u(
|
|
751
|
+
u(o, {
|
|
752
752
|
modelValue: e.value.clientKey,
|
|
753
753
|
"onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
|
|
754
754
|
label: "Client Key",
|
|
755
|
-
rules:
|
|
755
|
+
rules: l(w)(l(V).string())
|
|
756
756
|
}, null, 8, ["modelValue", "rules"]),
|
|
757
|
-
u(
|
|
757
|
+
u(o, {
|
|
758
758
|
modelValue: e.value.hmacKey,
|
|
759
759
|
"onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
|
|
760
760
|
label: "HMac Key"
|
|
761
761
|
}, null, 8, ["modelValue"]),
|
|
762
|
-
|
|
763
|
-
n.gateway ? (
|
|
762
|
+
m("div", Te, [
|
|
763
|
+
n.gateway ? (v(), x(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"])) : C("", !0),
|
|
770
770
|
u(p, {
|
|
771
771
|
type: "submit",
|
|
772
772
|
class: "flex-1",
|
|
@@ -779,13 +779,76 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
779
779
|
}, 512);
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
}), Pe = {
|
|
782
|
+
}), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ _({
|
|
783
|
+
__name: "KsherGateway",
|
|
784
|
+
props: {
|
|
785
|
+
gateway: {
|
|
786
|
+
type: Object,
|
|
787
|
+
required: !0
|
|
788
|
+
},
|
|
789
|
+
onUpdate: {
|
|
790
|
+
type: Function,
|
|
791
|
+
required: !0
|
|
792
|
+
},
|
|
793
|
+
onDelete: {
|
|
794
|
+
type: Function,
|
|
795
|
+
required: !0
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
setup(n) {
|
|
799
|
+
var d;
|
|
800
|
+
const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
|
|
801
|
+
appId: "",
|
|
802
|
+
privateKey: ""
|
|
803
|
+
});
|
|
804
|
+
return (c, t) => {
|
|
805
|
+
const o = i("FmTextField"), p = i("FmTextarea"), s = i("FmButton"), a = i("FmForm");
|
|
806
|
+
return v(), x(a, {
|
|
807
|
+
ref: "form",
|
|
808
|
+
class: "flex flex-col gap-16",
|
|
809
|
+
onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
|
|
810
|
+
}, {
|
|
811
|
+
default: k(() => [
|
|
812
|
+
u(o, {
|
|
813
|
+
modelValue: e.value.appId,
|
|
814
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
|
|
815
|
+
label: "App ID",
|
|
816
|
+
rules: l(w)(l(V).string())
|
|
817
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
818
|
+
u(p, {
|
|
819
|
+
modelValue: e.value.privateKey,
|
|
820
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.privateKey = r),
|
|
821
|
+
label: "Private Key",
|
|
822
|
+
placeholder: "Paste your private key including BEGIN and END markers",
|
|
823
|
+
rules: l(w)(l(V).string())
|
|
824
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
825
|
+
m("div", Se, [
|
|
826
|
+
n.gateway ? (v(), x(s, {
|
|
827
|
+
key: 0,
|
|
828
|
+
class: "flex-1",
|
|
829
|
+
variant: "secondary",
|
|
830
|
+
label: "Delete",
|
|
831
|
+
onclick: () => n.onDelete()
|
|
832
|
+
}, null, 8, ["onclick"])) : C("", !0),
|
|
833
|
+
u(s, {
|
|
834
|
+
type: "submit",
|
|
835
|
+
class: "flex-1",
|
|
836
|
+
variant: "primary",
|
|
837
|
+
label: "Save"
|
|
838
|
+
})
|
|
839
|
+
])
|
|
840
|
+
]),
|
|
841
|
+
_: 1
|
|
842
|
+
}, 512);
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
}), Ie = {
|
|
783
846
|
key: 0,
|
|
784
847
|
className: "mt-1 my-6 text-gray-600"
|
|
785
|
-
},
|
|
848
|
+
}, De = {
|
|
786
849
|
key: 1,
|
|
787
850
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
788
|
-
},
|
|
851
|
+
}, Ne = /* @__PURE__ */ _({
|
|
789
852
|
__name: "PaymentGateway",
|
|
790
853
|
props: {
|
|
791
854
|
payoutAccount: {
|
|
@@ -794,38 +857,44 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
794
857
|
}
|
|
795
858
|
},
|
|
796
859
|
setup(n) {
|
|
797
|
-
const y = X().currentCountry, e = Y(), { isLoading:
|
|
860
|
+
const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { gatewayTab: t } = j({
|
|
798
861
|
gatewayTab: ""
|
|
799
|
-
}),
|
|
862
|
+
}), o = n, p = [
|
|
800
863
|
{
|
|
801
864
|
label: "Fiuu",
|
|
802
865
|
value: "RAZER_MERCHANT_SERVICE",
|
|
803
866
|
render: ke,
|
|
804
|
-
region: [
|
|
867
|
+
region: [P.F_COUNTRY.enum.SG]
|
|
805
868
|
},
|
|
806
869
|
{
|
|
807
870
|
label: "Macau Pass",
|
|
808
871
|
value: "MACAU_PASS",
|
|
809
|
-
render:
|
|
810
|
-
region: [
|
|
872
|
+
render: _e,
|
|
873
|
+
region: [P.F_COUNTRY.enum.MO]
|
|
811
874
|
},
|
|
812
875
|
{
|
|
813
876
|
label: "Digio",
|
|
814
877
|
value: "DIGIO",
|
|
815
878
|
render: Ue,
|
|
816
|
-
region: [
|
|
879
|
+
region: [P.F_COUNTRY.enum.TH]
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
label: "Ksher",
|
|
883
|
+
value: "KSHER",
|
|
884
|
+
render: Pe,
|
|
885
|
+
region: [P.F_COUNTRY.enum.TH]
|
|
817
886
|
},
|
|
818
887
|
{
|
|
819
888
|
label: "Adyen",
|
|
820
889
|
value: "ADYEN",
|
|
821
|
-
render:
|
|
822
|
-
region: [
|
|
890
|
+
render: he,
|
|
891
|
+
region: [P.F_COUNTRY.enum.SG]
|
|
823
892
|
}
|
|
824
|
-
], s = U(
|
|
825
|
-
async function g(
|
|
893
|
+
], s = U(o.payoutAccount.gateways ?? []), a = G(() => p.find((f) => f.value === t.value)), r = G(() => p.filter((f) => f.region.includes(y.value ?? P.F_COUNTRY.enum.MY)));
|
|
894
|
+
async function g(f) {
|
|
826
895
|
await c(async () => {
|
|
827
896
|
try {
|
|
828
|
-
await D.updateGateway(
|
|
897
|
+
await D.updateGateway(o.payoutAccount._id, f), e.open({
|
|
829
898
|
type: "success",
|
|
830
899
|
title: "Payout account gateways update succesfully"
|
|
831
900
|
});
|
|
@@ -833,55 +902,55 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
833
902
|
e.open({
|
|
834
903
|
type: "error",
|
|
835
904
|
title: "Error occurs when updating payout account gateways",
|
|
836
|
-
message:
|
|
905
|
+
message: R(b)
|
|
837
906
|
});
|
|
838
907
|
}
|
|
839
908
|
});
|
|
840
909
|
}
|
|
841
|
-
return (
|
|
842
|
-
var
|
|
843
|
-
const
|
|
844
|
-
return
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
]))) :
|
|
849
|
-
|
|
850
|
-
u(
|
|
851
|
-
])) : (
|
|
910
|
+
return (f, b) => {
|
|
911
|
+
var K;
|
|
912
|
+
const S = i("FmCircularProgress"), N = i("FmTabs");
|
|
913
|
+
return v(), h($, null, [
|
|
914
|
+
l(y).value === l(P.F_COUNTRY).enum.MY ? (v(), h("p", Ie, b[1] || (b[1] = [
|
|
915
|
+
m("b", null, "Note: ", -1),
|
|
916
|
+
T(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
|
|
917
|
+
]))) : C("", !0),
|
|
918
|
+
l(d) ? (v(), h("div", De, [
|
|
919
|
+
u(S, { size: "xxl" })
|
|
920
|
+
])) : (v(), x(N, {
|
|
852
921
|
key: 2,
|
|
853
|
-
"model-value":
|
|
854
|
-
"onUpdate:modelValue": b[0] || (b[0] = (F) =>
|
|
922
|
+
"model-value": l(t),
|
|
923
|
+
"onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
|
|
855
924
|
class: "mb-6",
|
|
856
925
|
items: r.value
|
|
857
926
|
}, null, 8, ["model-value", "items"])),
|
|
858
|
-
|
|
927
|
+
l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 3 }, {
|
|
859
928
|
gateway: s.value.find((F) => {
|
|
860
|
-
var
|
|
861
|
-
return F.paymentGateway === ((
|
|
929
|
+
var A;
|
|
930
|
+
return F.paymentGateway === ((A = a.value) == null ? void 0 : A.value);
|
|
862
931
|
}),
|
|
863
932
|
onDelete: async () => {
|
|
864
933
|
s.value = s.value.filter((F) => {
|
|
865
|
-
var
|
|
866
|
-
return F.paymentGateway !== ((
|
|
934
|
+
var A;
|
|
935
|
+
return F.paymentGateway !== ((A = a.value) == null ? void 0 : A.value);
|
|
867
936
|
}), g(s.value);
|
|
868
937
|
},
|
|
869
938
|
onUpdate: (F) => {
|
|
870
|
-
var
|
|
871
|
-
let
|
|
939
|
+
var B;
|
|
940
|
+
let A = s.value.find((q) => {
|
|
872
941
|
var Z;
|
|
873
942
|
return q.paymentGateway === ((Z = a.value) == null ? void 0 : Z.value);
|
|
874
943
|
});
|
|
875
|
-
|
|
876
|
-
paymentGateway: (
|
|
944
|
+
A ? A.config = F : s.value.push({
|
|
945
|
+
paymentGateway: (B = a.value) == null ? void 0 : B.value,
|
|
877
946
|
config: F
|
|
878
947
|
}), g(s.value);
|
|
879
948
|
}
|
|
880
|
-
})), null, 16)) :
|
|
949
|
+
})), null, 16)) : C("", !0)
|
|
881
950
|
], 64);
|
|
882
951
|
};
|
|
883
952
|
}
|
|
884
|
-
}),
|
|
953
|
+
}), Ke = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ _({
|
|
885
954
|
__name: "GooglePayToken",
|
|
886
955
|
props: {
|
|
887
956
|
gateway: {
|
|
@@ -907,44 +976,44 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
907
976
|
gatewayMerchantId: "molpay"
|
|
908
977
|
}
|
|
909
978
|
});
|
|
910
|
-
return (
|
|
911
|
-
const t =
|
|
912
|
-
return
|
|
979
|
+
return (d, c) => {
|
|
980
|
+
const t = i("FmTextField"), o = i("FmButton"), p = i("FmForm");
|
|
981
|
+
return v(), x(p, {
|
|
913
982
|
ref: "form",
|
|
914
983
|
class: "flex flex-col gap-16",
|
|
915
984
|
onValidationSuccess: c[3] || (c[3] = () => n.onUpdate(e.value))
|
|
916
985
|
}, {
|
|
917
|
-
default:
|
|
986
|
+
default: k(() => [
|
|
918
987
|
u(t, {
|
|
919
988
|
modelValue: e.value.gateway,
|
|
920
989
|
"onUpdate:modelValue": c[0] || (c[0] = (s) => e.value.gateway = s),
|
|
921
990
|
label: "Gateway",
|
|
922
991
|
disabled: !0,
|
|
923
|
-
rules:
|
|
992
|
+
rules: l(w)(l(V).string())
|
|
924
993
|
}, null, 8, ["modelValue", "rules"]),
|
|
925
994
|
u(t, {
|
|
926
995
|
modelValue: e.value.config.gateway,
|
|
927
996
|
"onUpdate:modelValue": c[1] || (c[1] = (s) => e.value.config.gateway = s),
|
|
928
997
|
label: "Gateway ID",
|
|
929
998
|
disabled: !0,
|
|
930
|
-
rules:
|
|
999
|
+
rules: l(w)(l(V).string())
|
|
931
1000
|
}, null, 8, ["modelValue", "rules"]),
|
|
932
1001
|
u(t, {
|
|
933
1002
|
modelValue: e.value.config.gateway,
|
|
934
1003
|
"onUpdate:modelValue": c[2] || (c[2] = (s) => e.value.config.gateway = s),
|
|
935
1004
|
label: "Gateway Merchant ID",
|
|
936
1005
|
disabled: !0,
|
|
937
|
-
rules:
|
|
1006
|
+
rules: l(w)(l(V).string())
|
|
938
1007
|
}, null, 8, ["modelValue", "rules"]),
|
|
939
|
-
|
|
940
|
-
n.gateway ? (
|
|
1008
|
+
m("div", Ke, [
|
|
1009
|
+
n.gateway ? (v(), x(o, {
|
|
941
1010
|
key: 0,
|
|
942
1011
|
class: "flex-1",
|
|
943
1012
|
variant: "secondary",
|
|
944
1013
|
label: "Delete",
|
|
945
1014
|
onclick: () => n.onDelete()
|
|
946
|
-
}, null, 8, ["onclick"])) :
|
|
947
|
-
u(
|
|
1015
|
+
}, null, 8, ["onclick"])) : C("", !0),
|
|
1016
|
+
u(o, {
|
|
948
1017
|
type: "submit",
|
|
949
1018
|
class: "flex-1",
|
|
950
1019
|
variant: "primary",
|
|
@@ -956,10 +1025,10 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
956
1025
|
}, 512);
|
|
957
1026
|
};
|
|
958
1027
|
}
|
|
959
|
-
}),
|
|
1028
|
+
}), Ge = {
|
|
960
1029
|
key: 0,
|
|
961
1030
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
962
|
-
},
|
|
1031
|
+
}, Me = /* @__PURE__ */ _({
|
|
963
1032
|
__name: "TokenGateway",
|
|
964
1033
|
props: {
|
|
965
1034
|
payoutAccount: {
|
|
@@ -968,21 +1037,21 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
968
1037
|
}
|
|
969
1038
|
},
|
|
970
1039
|
setup(n) {
|
|
971
|
-
const y = X().currentCountry, e = Y(), { isLoading:
|
|
1040
|
+
const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { tokenTab: t } = j({
|
|
972
1041
|
tokenTab: ""
|
|
973
|
-
}),
|
|
1042
|
+
}), o = n, p = [
|
|
974
1043
|
{
|
|
975
1044
|
label: "Google Pay",
|
|
976
1045
|
value: "googlePay",
|
|
977
1046
|
icon: "android",
|
|
978
|
-
render:
|
|
979
|
-
region: [
|
|
1047
|
+
render: $e,
|
|
1048
|
+
region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
|
|
980
1049
|
}
|
|
981
|
-
], s = U(
|
|
982
|
-
async function g(
|
|
1050
|
+
], s = U(o.payoutAccount.tokens ?? []), a = G(() => p.find((f) => f.value === t.value)), r = G(() => p.filter((f) => f.region.includes(y.value ?? P.F_COUNTRY.enum.MY)));
|
|
1051
|
+
async function g(f) {
|
|
983
1052
|
await c(async () => {
|
|
984
1053
|
try {
|
|
985
|
-
await D.updateTokens(
|
|
1054
|
+
await D.updateTokens(o.payoutAccount._id, f), e.open({
|
|
986
1055
|
type: "success",
|
|
987
1056
|
title: "Payout account tokens gateway update succesfully"
|
|
988
1057
|
});
|
|
@@ -990,51 +1059,51 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
990
1059
|
e.open({
|
|
991
1060
|
type: "error",
|
|
992
1061
|
title: "Error occurs when updating payout account tokens",
|
|
993
|
-
message:
|
|
1062
|
+
message: R(b)
|
|
994
1063
|
});
|
|
995
1064
|
}
|
|
996
1065
|
});
|
|
997
1066
|
}
|
|
998
|
-
return (
|
|
999
|
-
var
|
|
1000
|
-
const
|
|
1001
|
-
return
|
|
1002
|
-
b[1] || (b[1] =
|
|
1003
|
-
|
|
1004
|
-
|
|
1067
|
+
return (f, b) => {
|
|
1068
|
+
var K;
|
|
1069
|
+
const S = i("FmCircularProgress"), N = i("FmTabs");
|
|
1070
|
+
return v(), h($, null, [
|
|
1071
|
+
b[1] || (b[1] = m("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1072
|
+
m("b", null, "Note: "),
|
|
1073
|
+
T(" Token gateway always on the top of every other methods ( online channels ), and it's was branding requirements from each of the payment token gateway provider. For setting most of the time are the same and only need to select for which provider. ")
|
|
1005
1074
|
], -1)),
|
|
1006
|
-
|
|
1007
|
-
u(
|
|
1008
|
-
])) : (
|
|
1075
|
+
l(d) ? (v(), h("div", Ge, [
|
|
1076
|
+
u(S, { size: "xxl" })
|
|
1077
|
+
])) : (v(), x(N, {
|
|
1009
1078
|
key: 1,
|
|
1010
|
-
"model-value":
|
|
1011
|
-
"onUpdate:modelValue": b[0] || (b[0] = (F) =>
|
|
1079
|
+
"model-value": l(t),
|
|
1080
|
+
"onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
|
|
1012
1081
|
class: "mb-6",
|
|
1013
1082
|
items: r.value
|
|
1014
1083
|
}, null, 8, ["model-value", "items"])),
|
|
1015
|
-
|
|
1084
|
+
l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 2 }, {
|
|
1016
1085
|
gateway: s.value.find((F) => {
|
|
1017
|
-
var
|
|
1018
|
-
return F.type === ((
|
|
1086
|
+
var A;
|
|
1087
|
+
return F.type === ((A = a.value) == null ? void 0 : A.value);
|
|
1019
1088
|
}),
|
|
1020
1089
|
onDelete: async () => {
|
|
1021
1090
|
s.value = s.value.filter((F) => {
|
|
1022
|
-
var
|
|
1023
|
-
return F.type !== ((
|
|
1091
|
+
var A;
|
|
1092
|
+
return F.type !== ((A = a.value) == null ? void 0 : A.value);
|
|
1024
1093
|
}), g(s.value);
|
|
1025
1094
|
},
|
|
1026
1095
|
onUpdate: (F) => {
|
|
1027
|
-
let
|
|
1096
|
+
let A = s.value.find((B) => {
|
|
1028
1097
|
var q;
|
|
1029
|
-
return
|
|
1098
|
+
return B.type === ((q = a.value) == null ? void 0 : q.value);
|
|
1030
1099
|
});
|
|
1031
|
-
|
|
1100
|
+
A ? A.config = F : s.value.push(F), g(s.value);
|
|
1032
1101
|
}
|
|
1033
|
-
})), null, 16)) :
|
|
1102
|
+
})), null, 16)) : C("", !0)
|
|
1034
1103
|
], 64);
|
|
1035
1104
|
};
|
|
1036
1105
|
}
|
|
1037
|
-
}),
|
|
1106
|
+
}), Qe = /* @__PURE__ */ _({
|
|
1038
1107
|
__name: "PayoutAccountSetting",
|
|
1039
1108
|
props: {
|
|
1040
1109
|
accountId: {
|
|
@@ -1045,12 +1114,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
1045
1114
|
setup(n) {
|
|
1046
1115
|
const y = n, { tab: e } = j({
|
|
1047
1116
|
tab: "information"
|
|
1048
|
-
}), { isLoading:
|
|
1117
|
+
}), { isLoading: d, startAsyncCall: c } = O(!0), t = te(), o = U();
|
|
1049
1118
|
async function p(g) {
|
|
1050
1119
|
await D.updateById(
|
|
1051
1120
|
y.accountId,
|
|
1052
1121
|
g
|
|
1053
|
-
),
|
|
1122
|
+
), o.value = await D.readById(y.accountId);
|
|
1054
1123
|
}
|
|
1055
1124
|
const s = [
|
|
1056
1125
|
{
|
|
@@ -1075,50 +1144,50 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
1075
1144
|
label: "Online Gateways",
|
|
1076
1145
|
icon: "assured_workload",
|
|
1077
1146
|
value: "gateways",
|
|
1078
|
-
render:
|
|
1147
|
+
render: Ne
|
|
1079
1148
|
},
|
|
1080
1149
|
{
|
|
1081
1150
|
label: "Token Gateways",
|
|
1082
1151
|
value: "tokens",
|
|
1083
1152
|
icon: "wallet",
|
|
1084
|
-
render:
|
|
1153
|
+
render: Me
|
|
1085
1154
|
},
|
|
1086
1155
|
{
|
|
1087
1156
|
label: "Online Channels",
|
|
1088
1157
|
icon: "shopping_cart",
|
|
1089
1158
|
value: "channels",
|
|
1090
|
-
render:
|
|
1159
|
+
render: we
|
|
1091
1160
|
}
|
|
1092
1161
|
];
|
|
1093
1162
|
function a() {
|
|
1094
1163
|
c(async () => {
|
|
1095
|
-
|
|
1164
|
+
o.value = await D.readById(y.accountId);
|
|
1096
1165
|
});
|
|
1097
1166
|
}
|
|
1098
1167
|
J(a);
|
|
1099
1168
|
const r = G(() => {
|
|
1100
|
-
const g = s.reduce((
|
|
1169
|
+
const g = s.reduce((f, b) => f || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
|
|
1101
1170
|
return g == null ? void 0 : g.render;
|
|
1102
1171
|
});
|
|
1103
|
-
return (g,
|
|
1104
|
-
var
|
|
1105
|
-
const b =
|
|
1106
|
-
return
|
|
1107
|
-
title: `Payout Account (${(
|
|
1108
|
-
loading:
|
|
1109
|
-
onBack:
|
|
1172
|
+
return (g, f) => {
|
|
1173
|
+
var S;
|
|
1174
|
+
const b = i("FmTabs");
|
|
1175
|
+
return v(), x(ee, {
|
|
1176
|
+
title: `Payout Account (${(S = o.value) == null ? void 0 : S._id})`,
|
|
1177
|
+
loading: l(d),
|
|
1178
|
+
onBack: l(t).back
|
|
1110
1179
|
}, {
|
|
1111
|
-
default:
|
|
1180
|
+
default: k(() => [
|
|
1112
1181
|
u(b, {
|
|
1113
|
-
"model-value":
|
|
1114
|
-
"onUpdate:modelValue":
|
|
1182
|
+
"model-value": l(e),
|
|
1183
|
+
"onUpdate:modelValue": f[0] || (f[0] = (N) => E(e) ? e.value = N : null),
|
|
1115
1184
|
class: "mb-6",
|
|
1116
1185
|
items: s
|
|
1117
1186
|
}, null, 8, ["model-value"]),
|
|
1118
|
-
|
|
1119
|
-
payoutAccount:
|
|
1187
|
+
l(e) ? (v(), x(z(r.value), H(L({ key: 0 }, {
|
|
1188
|
+
payoutAccount: o.value,
|
|
1120
1189
|
onUpdate: p
|
|
1121
|
-
})), null, 16)) :
|
|
1190
|
+
})), null, 16)) : C("", !0)
|
|
1122
1191
|
]),
|
|
1123
1192
|
_: 1
|
|
1124
1193
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1126,5 +1195,5 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
|
|
|
1126
1195
|
}
|
|
1127
1196
|
});
|
|
1128
1197
|
export {
|
|
1129
|
-
|
|
1198
|
+
Qe as default
|
|
1130
1199
|
};
|