@feedmepos/mf-payment 1.6.22-dev → 1.6.24-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-BZofpuYY.js → Actions.vue_vue_type_script_setup_true_lang-CfpBus8E.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CuW3Nx8r.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D86X4SBT.js} +2 -2
- package/dist/{Chargeback-CXIUq_9h.js → Chargeback-D3g1A6nb.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BW0TJ_7C.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Buv8z4ni.js} +1 -1
- package/dist/{OnboardForm-COz_JnmO.js → OnboardForm-CHir9Btu.js} +5 -5
- package/dist/{OnboardForm-D5vxzJVr.js → OnboardForm-D57O0vs3.js} +5 -5
- package/dist/{OnboardSubmission-CkyQrENS.js → OnboardSubmission-BOEj8OAe.js} +2 -2
- package/dist/{OnboardSubmission-DZefEOz9.js → OnboardSubmission-Y6Khfcf2.js} +5 -5
- package/dist/{PayoutAccount-DXDHaxDu.js → PayoutAccount-CYLQa1q0.js} +5 -5
- package/dist/{PayoutAccount-W2bVnU-T.js → PayoutAccount-Cx-vRKx0.js} +5 -5
- package/dist/{PayoutAccountSetting-BBOBZQns.js → PayoutAccountSetting-h-ECAjUg.js} +420 -389
- package/dist/{Restaurant-IdQ7m4qi.js → Restaurant-C3JG5jTm.js} +4 -4
- package/dist/{RestaurantSetting-2j1gYzvJ.js → RestaurantSetting-CVJGDhr3.js} +3 -3
- package/dist/{Settlement-DpMYIEqK.js → Settlement-CFj4ZHEj.js} +3 -3
- package/dist/{Settlement-BnguSEm6.js → Settlement-YDfJfpqD.js} +4 -4
- package/dist/{SettlementTransactions-bMLTG5sW.js → SettlementTransactions-Bqs6AjVt.js} +4 -4
- package/dist/{SettlementTransactions-DLGs7xjN.js → SettlementTransactions-C8xr7D9B.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BTAkT3nz.js → Status.vue_vue_type_script_setup_true_lang-DuBsXgzP.js} +1 -1
- package/dist/{Terminal-CeIuM4y3.js → Terminal-BFgiH70m.js} +5 -5
- package/dist/{TerminalSetting-Dra4Ft4R.js → TerminalSetting-Bv9ugacI.js} +4 -4
- package/dist/TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js +95 -0
- package/dist/{Transaction-D3LQFkw3.js → Transaction-D-mLQ70N.js} +10 -10
- package/dist/{Transaction-ys9CZ4mq.js → Transaction-DVFos9iG.js} +10 -10
- package/dist/{TransactionOld-BNEFr_L7.js → TransactionOld-YmgueJYY.js} +7 -7
- package/dist/{app-CQymPCak.js → app-BZEXvbmu.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-S_7DFK9K.js → assets--_mQamiD.js} +1 -1
- package/dist/{grafana-BNCpO4vr.js → grafana-DhN7GnGA.js} +1 -1
- package/dist/helpers/sanitizePng.d.ts +12 -0
- package/dist/{index-B6GNZLI-.js → index-C-l3GAhP.js} +1 -1
- package/dist/{index-iYgDBwJt.js → index-CMQx91rD.js} +1 -1
- package/dist/{index-BmJTxwQX.js → index-CeZEM77q.js} +1 -1
- package/dist/{index-C7w0oBUy.js → index-Cjcuoaiu.js} +1 -1
- package/dist/index-CjdeCxlU.js +126 -0
- package/dist/{index-DUDrWdj1.js → index-DCMc1PDw.js} +1 -1
- package/dist/{index-DihkHX9B.js → index-DomE1UrM.js} +1 -1
- package/dist/{index-Ou6UzoUq.js → index-XZHPpZuF.js} +1 -1
- package/dist/{index-zuk3uS1U.js → index-rgwK36IL.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DLjF7aFe.js → index.vue_vue_type_script_setup_true_lang-BNgnzmHn.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DhwDnR1Y.js → payout-account-DJnCUWF1.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/transaction/TextInputDialog.vue.d.ts +42 -2
- package/package.json +1 -1
- package/dist/TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js +0 -55
- package/dist/index-BiSQ4v-X.js +0 -97
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as D, resolveComponent as y, openBlock as g, createElementBlock as
|
|
2
|
-
import { p as G } from "./index-
|
|
3
|
-
import { u as X, e as
|
|
1
|
+
import { defineComponent as D, resolveComponent as y, openBlock as g, createElementBlock as E, Fragment as j, createElementVNode as r, createVNode as n, withCtx as k, createTextVNode as h, toDisplayString as B, unref as s, reactive as de, ref as C, createBlock as w, watch as te, computed as Y, isRef as W, createCommentVNode as $, h as H, onMounted as se, resolveDynamicComponent as ae, normalizeProps as ne, mergeProps as oe } from "vue";
|
|
2
|
+
import { p as G } from "./index-C-l3GAhP.js";
|
|
3
|
+
import { u as X, e as _ } from "./index-CeZEM77q.js";
|
|
4
4
|
import { _ as pe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
5
5
|
import { useRouter as ye } from "vue-router";
|
|
6
|
-
import { u as ee } from "./index-
|
|
7
|
-
import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as ee } from "./index-Cjcuoaiu.js";
|
|
7
|
+
import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Buv8z4ni.js";
|
|
8
8
|
import { h as be } from "./moment-h96o7c8I.js";
|
|
9
9
|
import { useDialogChild as fe, useDialog as ie, useSnackbar as J, components as ve } from "@feedmepos/ui-library";
|
|
10
10
|
import { P as Q } from "./PDFViewer-CIPPbzWD.js";
|
|
11
11
|
import { u as z } from "./error-K1CakhA9.js";
|
|
12
|
-
import { P as ge } from "./payout-account-
|
|
13
|
-
import { d as
|
|
12
|
+
import { P as ge } from "./payout-account-DJnCUWF1.js";
|
|
13
|
+
import { d as re } from "./index-XZHPpZuF.js";
|
|
14
14
|
import { s as L, o as Fe, z as A, a as N } from "./validator-CTlVogBQ.js";
|
|
15
|
-
import { _ as xe } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as xe } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
|
|
16
16
|
import { useCoreStore as me } from "@feedmepos/mf-common";
|
|
17
17
|
const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we = /* @__PURE__ */ D({
|
|
18
18
|
__name: "Information",
|
|
@@ -22,38 +22,38 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
22
22
|
required: !0
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
25
|
+
setup(a) {
|
|
26
26
|
return (u, e) => {
|
|
27
27
|
var m, v;
|
|
28
28
|
const b = y("FmCardHeader"), l = y("FmCardSection"), t = y("FmCard");
|
|
29
|
-
return g(),
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return g(), E(j, null, [
|
|
30
|
+
r("div", ke, [
|
|
31
|
+
n(t, {
|
|
32
32
|
horizontal: "",
|
|
33
33
|
class: "flex-1 p-6",
|
|
34
34
|
variant: "elevated"
|
|
35
35
|
}, {
|
|
36
36
|
default: k(() => [
|
|
37
|
-
|
|
37
|
+
n(l, { class: "flex flex-col gap-16 justify-between" }, {
|
|
38
38
|
default: k(() => [
|
|
39
|
-
|
|
39
|
+
n(b, {
|
|
40
40
|
class: "p-0",
|
|
41
41
|
title: "Account Info",
|
|
42
42
|
subtitle: ""
|
|
43
43
|
}),
|
|
44
|
-
|
|
44
|
+
n(l, { class: "p-0" }, {
|
|
45
45
|
default: k(() => {
|
|
46
46
|
var p, i, d, o, c;
|
|
47
47
|
return [
|
|
48
|
-
e[0] || (e[0] =
|
|
49
|
-
|
|
50
|
-
e[1] || (e[1] =
|
|
51
|
-
e[2] || (e[2] =
|
|
52
|
-
|
|
53
|
-
e[3] || (e[3] =
|
|
54
|
-
e[4] || (e[4] =
|
|
55
|
-
|
|
56
|
-
e[5] || (e[5] =
|
|
48
|
+
e[0] || (e[0] = r("b", null, "For", -1)),
|
|
49
|
+
h(": " + B((i = (p = a.payoutAccount) == null ? void 0 : p.store) == null ? void 0 : i.event) + " ", 1),
|
|
50
|
+
e[1] || (e[1] = r("br", null, null, -1)),
|
|
51
|
+
e[2] || (e[2] = r("b", null, "Reference", -1)),
|
|
52
|
+
h(": " + B((o = (d = a.payoutAccount) == null ? void 0 : d.store) == null ? void 0 : o.id), 1),
|
|
53
|
+
e[3] || (e[3] = r("br", null, null, -1)),
|
|
54
|
+
e[4] || (e[4] = r("b", null, "Business", -1)),
|
|
55
|
+
h(": " + B((c = a.payoutAccount) == null ? void 0 : c.businessId), 1),
|
|
56
|
+
e[5] || (e[5] = r("br", null, null, -1))
|
|
57
57
|
];
|
|
58
58
|
}),
|
|
59
59
|
_: 1
|
|
@@ -64,32 +64,32 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
64
64
|
]),
|
|
65
65
|
_: 1
|
|
66
66
|
}),
|
|
67
|
-
|
|
67
|
+
n(t, {
|
|
68
68
|
horizontal: "",
|
|
69
69
|
class: "flex-1 p-6",
|
|
70
70
|
variant: "elevated"
|
|
71
71
|
}, {
|
|
72
72
|
default: k(() => [
|
|
73
|
-
|
|
73
|
+
n(l, { class: "flex flex-col gap-16 justify-between" }, {
|
|
74
74
|
default: k(() => [
|
|
75
|
-
|
|
75
|
+
n(b, {
|
|
76
76
|
class: "p-0",
|
|
77
77
|
title: "Key Person",
|
|
78
78
|
subtitle: ""
|
|
79
79
|
}),
|
|
80
|
-
|
|
80
|
+
n(l, { class: "p-0" }, {
|
|
81
81
|
default: k(() => {
|
|
82
82
|
var p, i, d, o, c, f, F, S;
|
|
83
83
|
return [
|
|
84
|
-
e[6] || (e[6] =
|
|
85
|
-
|
|
86
|
-
e[7] || (e[7] =
|
|
87
|
-
e[8] || (e[8] =
|
|
88
|
-
|
|
89
|
-
e[9] || (e[9] =
|
|
90
|
-
e[10] || (e[10] =
|
|
91
|
-
|
|
92
|
-
e[11] || (e[11] =
|
|
84
|
+
e[6] || (e[6] = r("b", null, "Email", -1)),
|
|
85
|
+
h(": " + B((d = (i = (p = a.payoutAccount) == null ? void 0 : p.store) == null ? void 0 : i.keyPerson) == null ? void 0 : d.email) + " ", 1),
|
|
86
|
+
e[7] || (e[7] = r("br", null, null, -1)),
|
|
87
|
+
e[8] || (e[8] = r("b", null, "Name", -1)),
|
|
88
|
+
h(": " + B((f = (c = (o = a.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : c.keyPerson) == null ? void 0 : f.name), 1),
|
|
89
|
+
e[9] || (e[9] = r("br", null, null, -1)),
|
|
90
|
+
e[10] || (e[10] = r("b", null, "Phone", -1)),
|
|
91
|
+
h(": " + B((S = (F = a.payoutAccount) == null ? void 0 : F.store.keyPerson) == null ? void 0 : S.phone), 1),
|
|
92
|
+
e[11] || (e[11] = r("br", null, null, -1))
|
|
93
93
|
];
|
|
94
94
|
}),
|
|
95
95
|
_: 1
|
|
@@ -101,35 +101,35 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
101
101
|
_: 1
|
|
102
102
|
})
|
|
103
103
|
]),
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
r("div", Ve, [
|
|
105
|
+
n(t, {
|
|
106
106
|
horizontal: "",
|
|
107
107
|
class: "flex-1 p-6",
|
|
108
108
|
variant: "elevated"
|
|
109
109
|
}, {
|
|
110
110
|
default: k(() => [
|
|
111
|
-
|
|
111
|
+
n(l, { class: "flex flex-col gap-16 justify-between" }, {
|
|
112
112
|
default: k(() => [
|
|
113
|
-
|
|
113
|
+
n(b, {
|
|
114
114
|
class: "p-0",
|
|
115
115
|
title: "Status Info",
|
|
116
116
|
subtitle: ""
|
|
117
117
|
}),
|
|
118
|
-
|
|
118
|
+
n(l, { class: "p-0" }, {
|
|
119
119
|
default: k(() => {
|
|
120
120
|
var p, i, d;
|
|
121
121
|
return [
|
|
122
|
-
e[12] || (e[12] =
|
|
123
|
-
|
|
122
|
+
e[12] || (e[12] = r("b", null, "Submission Date", -1)),
|
|
123
|
+
h(": " + B((p = a.payoutAccount) != null && p.submissionDate ? s(be)(a.payoutAccount.submissionDate).format(
|
|
124
124
|
"YYYY-MM-DD HH:mm:ss"
|
|
125
125
|
) : "—"), 1),
|
|
126
|
-
e[13] || (e[13] =
|
|
127
|
-
e[14] || (e[14] =
|
|
128
|
-
|
|
129
|
-
e[15] || (e[15] =
|
|
130
|
-
e[16] || (e[16] =
|
|
131
|
-
|
|
132
|
-
e[17] || (e[17] =
|
|
126
|
+
e[13] || (e[13] = r("br", null, null, -1)),
|
|
127
|
+
e[14] || (e[14] = r("b", null, "Status By", -1)),
|
|
128
|
+
h(": " + B(((i = a.payoutAccount) == null ? void 0 : i.statusBy) ?? "—"), 1),
|
|
129
|
+
e[15] || (e[15] = r("br", null, null, -1)),
|
|
130
|
+
e[16] || (e[16] = r("b", null, "Status Reason", -1)),
|
|
131
|
+
h(": " + B(((d = a.payoutAccount) == null ? void 0 : d.statusReason) ?? "—"), 1),
|
|
132
|
+
e[17] || (e[17] = r("br", null, null, -1))
|
|
133
133
|
];
|
|
134
134
|
}),
|
|
135
135
|
_: 1
|
|
@@ -141,11 +141,11 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
141
141
|
_: 1
|
|
142
142
|
})
|
|
143
143
|
]),
|
|
144
|
-
e[18] || (e[18] =
|
|
145
|
-
|
|
146
|
-
document:
|
|
147
|
-
"business-id":
|
|
148
|
-
"restaurant-id": ((v = (m =
|
|
144
|
+
e[18] || (e[18] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
|
145
|
+
n(Z, {
|
|
146
|
+
document: a.payoutAccount.store.exteriorPhoto,
|
|
147
|
+
"business-id": a.payoutAccount.businessId,
|
|
148
|
+
"restaurant-id": ((v = (m = a.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : v.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
149
149
|
}, null, 8, ["document", "business-id", "restaurant-id"])
|
|
150
150
|
], 64);
|
|
151
151
|
};
|
|
@@ -170,8 +170,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
170
170
|
default: void 0
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
-
setup(
|
|
174
|
-
const u =
|
|
173
|
+
setup(a) {
|
|
174
|
+
const u = a, { emitAction: e, emitData: b } = fe(), l = de({
|
|
175
175
|
companyName: u.initialValue.companyName,
|
|
176
176
|
regNo: u.initialValue.regNo,
|
|
177
177
|
bankName: u.initialValue.bankName,
|
|
@@ -197,10 +197,10 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
197
197
|
};
|
|
198
198
|
async function U(V) {
|
|
199
199
|
const x = new FileReader();
|
|
200
|
-
return new Promise((
|
|
200
|
+
return new Promise((q) => {
|
|
201
201
|
x.onload = (K) => {
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var O;
|
|
203
|
+
q((O = K.target) == null ? void 0 : O.result);
|
|
204
204
|
}, x.readAsDataURL(V);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -210,96 +210,96 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
210
210
|
m.value = V, p.value = V ? await U(V) : "";
|
|
211
211
|
}, R = () => {
|
|
212
212
|
t.value = void 0, v.value = "";
|
|
213
|
-
},
|
|
213
|
+
}, M = () => {
|
|
214
214
|
m.value = void 0, p.value = "";
|
|
215
215
|
};
|
|
216
216
|
return (V, x) => {
|
|
217
|
-
const
|
|
217
|
+
const q = y("FmTextField"), K = y("FmSelect"), O = y("FmButton"), le = y("FmFormGroup"), ue = y("FmDropField"), ce = y("FmForm");
|
|
218
218
|
return g(), w(ce, {
|
|
219
219
|
class: "flex flex-col gap-16",
|
|
220
220
|
onValidationSuccess: S
|
|
221
221
|
}, {
|
|
222
222
|
default: k(() => [
|
|
223
|
-
x[9] || (x[9] =
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
x[9] || (x[9] = r("div", { class: "flex items-center my-2" }, [
|
|
224
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
225
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Account"),
|
|
226
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
227
227
|
], -1)),
|
|
228
|
-
|
|
228
|
+
n(q, {
|
|
229
229
|
modelValue: l.regNo,
|
|
230
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
230
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => l.regNo = P),
|
|
231
231
|
label: "Registration Number",
|
|
232
232
|
"label-mark": "required",
|
|
233
233
|
"helper-text": "Registration Number must match uploaded SSM registration number.",
|
|
234
|
-
rules:
|
|
234
|
+
rules: s(A)(s(d)),
|
|
235
235
|
autofocus: ""
|
|
236
236
|
}, null, 8, ["modelValue", "rules"]),
|
|
237
|
-
|
|
237
|
+
n(q, {
|
|
238
238
|
modelValue: l.companyName,
|
|
239
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
239
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => l.companyName = P),
|
|
240
240
|
label: "Company Name",
|
|
241
241
|
"label-mark": "required",
|
|
242
242
|
"helper-text": "Company Name must match uploaded SSM registration name.",
|
|
243
|
-
rules:
|
|
243
|
+
rules: s(A)(s(i))
|
|
244
244
|
}, null, 8, ["modelValue", "rules"]),
|
|
245
|
-
x[10] || (x[10] =
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
x[10] || (x[10] = r("div", { class: "flex items-center my-2" }, [
|
|
246
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
247
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Bank"),
|
|
248
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
249
249
|
], -1)),
|
|
250
|
-
|
|
250
|
+
n(K, {
|
|
251
251
|
modelValue: l.bankName,
|
|
252
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
252
|
+
"onUpdate:modelValue": x[2] || (x[2] = (P) => l.bankName = P),
|
|
253
253
|
label: "Bank",
|
|
254
254
|
"label-mark": "required",
|
|
255
255
|
items: u.bankNameOptions,
|
|
256
|
-
rules:
|
|
256
|
+
rules: s(A)(s(o))
|
|
257
257
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
258
|
-
|
|
258
|
+
n(q, {
|
|
259
259
|
modelValue: l.bankHolderName,
|
|
260
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
260
|
+
"onUpdate:modelValue": x[3] || (x[3] = (P) => l.bankHolderName = P),
|
|
261
261
|
label: "Bank Holder",
|
|
262
262
|
"label-mark": "required",
|
|
263
|
-
rules:
|
|
263
|
+
rules: s(A)(s(c))
|
|
264
264
|
}, null, 8, ["modelValue", "rules"]),
|
|
265
|
-
|
|
265
|
+
n(q, {
|
|
266
266
|
modelValue: l.bankAccountNumber,
|
|
267
|
-
"onUpdate:modelValue": x[4] || (x[4] = (
|
|
267
|
+
"onUpdate:modelValue": x[4] || (x[4] = (P) => l.bankAccountNumber = P),
|
|
268
268
|
label: "Bank Account Number",
|
|
269
269
|
"label-mark": "required",
|
|
270
270
|
type: "number",
|
|
271
|
-
rules:
|
|
271
|
+
rules: s(A)(s(f))
|
|
272
272
|
}, null, 8, ["modelValue", "rules"]),
|
|
273
|
-
x[11] || (x[11] =
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
273
|
+
x[11] || (x[11] = r("div", { class: "flex items-center my-2" }, [
|
|
274
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
275
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Document"),
|
|
276
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
277
277
|
], -1)),
|
|
278
|
-
|
|
279
|
-
x[7] || (x[7] =
|
|
278
|
+
r("div", Ae, [
|
|
279
|
+
x[7] || (x[7] = r("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
280
280
|
v.value ? (g(), w(le, {
|
|
281
281
|
key: 0,
|
|
282
282
|
modelValue: v.value,
|
|
283
|
-
"onUpdate:modelValue": x[5] || (x[5] = (
|
|
283
|
+
"onUpdate:modelValue": x[5] || (x[5] = (P) => v.value = P),
|
|
284
284
|
label: "SSM"
|
|
285
285
|
}, {
|
|
286
286
|
default: k(() => [
|
|
287
|
-
|
|
287
|
+
n(Z, {
|
|
288
288
|
document: v.value,
|
|
289
|
-
"business-id":
|
|
290
|
-
"restaurant-id":
|
|
289
|
+
"business-id": a.businessId,
|
|
290
|
+
"restaurant-id": a.restaurantId
|
|
291
291
|
}, {
|
|
292
|
-
default: k(({ src:
|
|
293
|
-
|
|
292
|
+
default: k(({ src: P }) => [
|
|
293
|
+
n(Q, {
|
|
294
294
|
height: 300,
|
|
295
|
-
pdf:
|
|
295
|
+
pdf: P,
|
|
296
296
|
"disable-text-layer": !0,
|
|
297
297
|
"disable-annotation-layer": !0
|
|
298
298
|
}, null, 8, ["pdf"])
|
|
299
299
|
]),
|
|
300
300
|
_: 1
|
|
301
301
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
302
|
-
|
|
302
|
+
n(O, {
|
|
303
303
|
type: "button",
|
|
304
304
|
variant: "tertiary",
|
|
305
305
|
label: "Remove",
|
|
@@ -315,37 +315,37 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
315
315
|
onFileUpload: I
|
|
316
316
|
}))
|
|
317
317
|
]),
|
|
318
|
-
|
|
319
|
-
x[8] || (x[8] =
|
|
318
|
+
r("div", Se, [
|
|
319
|
+
x[8] || (x[8] = r("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
320
320
|
p.value ? (g(), w(le, {
|
|
321
321
|
key: 0,
|
|
322
322
|
modelValue: p.value,
|
|
323
|
-
"onUpdate:modelValue": x[6] || (x[6] = (
|
|
323
|
+
"onUpdate:modelValue": x[6] || (x[6] = (P) => p.value = P),
|
|
324
324
|
label: "Bank Statement"
|
|
325
325
|
}, {
|
|
326
326
|
default: k(() => [
|
|
327
|
-
|
|
327
|
+
n(Z, {
|
|
328
328
|
document: p.value,
|
|
329
|
-
"business-id":
|
|
330
|
-
"restaurant-id":
|
|
329
|
+
"business-id": a.businessId,
|
|
330
|
+
"restaurant-id": a.restaurantId
|
|
331
331
|
}, {
|
|
332
|
-
default: k(({ src:
|
|
333
|
-
|
|
332
|
+
default: k(({ src: P }) => [
|
|
333
|
+
n(Q, {
|
|
334
334
|
height: 300,
|
|
335
|
-
pdf:
|
|
335
|
+
pdf: P,
|
|
336
336
|
"disable-text-layer": !0,
|
|
337
337
|
"disable-annotation-layer": !0
|
|
338
338
|
}, null, 8, ["pdf"])
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
341
341
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
342
|
-
|
|
342
|
+
n(O, {
|
|
343
343
|
type: "button",
|
|
344
344
|
variant: "tertiary",
|
|
345
345
|
label: "Remove",
|
|
346
346
|
size: "md",
|
|
347
347
|
"prepend-icon": "delete",
|
|
348
|
-
onClick:
|
|
348
|
+
onClick: M
|
|
349
349
|
})
|
|
350
350
|
]),
|
|
351
351
|
_: 1
|
|
@@ -355,8 +355,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
355
355
|
onFileUpload: T
|
|
356
356
|
}))
|
|
357
357
|
]),
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
r("div", Ne, [
|
|
359
|
+
n(O, {
|
|
360
360
|
type: "submit",
|
|
361
361
|
variant: "primary",
|
|
362
362
|
label: "Save"
|
|
@@ -367,7 +367,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
367
367
|
});
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
}), Ue = { class: "flex justify-end mb-6" }, Ie = { class: "flex gap-16 mb-6" }, Te = { class: "flex gap-16" }, De = { class: "flex-1" }, Re = { class: "flex-1" },
|
|
370
|
+
}), Ue = { class: "flex justify-end mb-6" }, Ie = { class: "flex gap-16 mb-6" }, Te = { class: "flex gap-16" }, De = { class: "flex-1" }, Re = { class: "flex-1" }, he = /* @__PURE__ */ D({
|
|
371
371
|
__name: "Settlement",
|
|
372
372
|
props: {
|
|
373
373
|
onUpdate: {
|
|
@@ -379,8 +379,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
379
379
|
required: !0
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
|
-
setup(
|
|
383
|
-
const u =
|
|
382
|
+
setup(a) {
|
|
383
|
+
const u = a, e = C(!1), b = ie(), l = J(), t = ge.bankNameOptions(), m = () => {
|
|
384
384
|
var d, o, c, f, F, S, U, I, T, R;
|
|
385
385
|
return {
|
|
386
386
|
companyName: ((d = u.payoutAccount.store) == null ? void 0 : d.companyName) ?? "",
|
|
@@ -395,14 +395,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
395
395
|
var F;
|
|
396
396
|
const c = (/* @__PURE__ */ new Date()).toISOString();
|
|
397
397
|
if (((F = u.payoutAccount.store) == null ? void 0 : F.event) === "ORDERING")
|
|
398
|
-
return await
|
|
398
|
+
return await re.adminUpload(
|
|
399
399
|
`restaurant/${u.payoutAccount.store.id}/documents/${d}/${c}.pdf`,
|
|
400
400
|
o,
|
|
401
401
|
u.payoutAccount.businessId,
|
|
402
402
|
u.payoutAccount.store.id
|
|
403
403
|
);
|
|
404
404
|
const f = u.payoutAccount.businessId || u.payoutAccount.store.id;
|
|
405
|
-
return await
|
|
405
|
+
return await re.adminUpload(
|
|
406
406
|
`business/${f}/documents/${d}/${c}.pdf`,
|
|
407
407
|
o,
|
|
408
408
|
f,
|
|
@@ -467,39 +467,39 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
467
467
|
return (d, o) => {
|
|
468
468
|
var U, I, T, R;
|
|
469
469
|
const c = y("FmButton"), f = y("FmCardHeader"), F = y("FmCardSection"), S = y("FmCard");
|
|
470
|
-
return g(),
|
|
471
|
-
|
|
472
|
-
|
|
470
|
+
return g(), E(j, null, [
|
|
471
|
+
r("div", Ue, [
|
|
472
|
+
n(c, {
|
|
473
473
|
variant: "primary",
|
|
474
474
|
label: "Edit Settlement Info",
|
|
475
475
|
loading: e.value,
|
|
476
476
|
onclick: i
|
|
477
477
|
}, null, 8, ["loading"])
|
|
478
478
|
]),
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
r("div", Ie, [
|
|
480
|
+
n(S, {
|
|
481
481
|
horizontal: "",
|
|
482
482
|
class: "flex-1 p-6",
|
|
483
483
|
variant: "elevated"
|
|
484
484
|
}, {
|
|
485
485
|
default: k(() => [
|
|
486
|
-
|
|
486
|
+
n(F, { class: "flex flex-col gap-16 justify-between" }, {
|
|
487
487
|
default: k(() => [
|
|
488
|
-
|
|
488
|
+
n(f, {
|
|
489
489
|
class: "p-0",
|
|
490
490
|
title: "Company Info",
|
|
491
491
|
subtitle: ""
|
|
492
492
|
}),
|
|
493
|
-
|
|
493
|
+
n(F, { class: "p-0" }, {
|
|
494
494
|
default: k(() => {
|
|
495
|
-
var
|
|
495
|
+
var M, V;
|
|
496
496
|
return [
|
|
497
|
-
o[0] || (o[0] =
|
|
498
|
-
|
|
499
|
-
o[1] || (o[1] =
|
|
500
|
-
o[2] || (o[2] =
|
|
501
|
-
|
|
502
|
-
o[3] || (o[3] =
|
|
497
|
+
o[0] || (o[0] = r("b", null, "Name", -1)),
|
|
498
|
+
h(": " + B((M = a.payoutAccount) == null ? void 0 : M.store.companyName), 1),
|
|
499
|
+
o[1] || (o[1] = r("br", null, null, -1)),
|
|
500
|
+
o[2] || (o[2] = r("b", null, "Registration Number", -1)),
|
|
501
|
+
h(": " + B((V = a.payoutAccount) == null ? void 0 : V.store.regNo), 1),
|
|
502
|
+
o[3] || (o[3] = r("br", null, null, -1))
|
|
503
503
|
];
|
|
504
504
|
}),
|
|
505
505
|
_: 1
|
|
@@ -510,31 +510,31 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
510
510
|
]),
|
|
511
511
|
_: 1
|
|
512
512
|
}),
|
|
513
|
-
|
|
513
|
+
n(S, {
|
|
514
514
|
horizontal: "",
|
|
515
515
|
class: "flex-1 p-6",
|
|
516
516
|
variant: "elevated"
|
|
517
517
|
}, {
|
|
518
518
|
default: k(() => [
|
|
519
|
-
|
|
519
|
+
n(F, { class: "flex flex-col gap-16 justify-between" }, {
|
|
520
520
|
default: k(() => [
|
|
521
|
-
|
|
521
|
+
n(f, {
|
|
522
522
|
class: "p-0",
|
|
523
523
|
title: "Bank Info",
|
|
524
524
|
subtitle: ""
|
|
525
525
|
}),
|
|
526
|
-
|
|
526
|
+
n(F, { class: "p-0" }, {
|
|
527
527
|
default: k(() => {
|
|
528
|
-
var
|
|
528
|
+
var M, V, x, q, K, O;
|
|
529
529
|
return [
|
|
530
|
-
o[4] || (o[4] =
|
|
531
|
-
|
|
532
|
-
o[5] || (o[5] =
|
|
533
|
-
o[6] || (o[6] =
|
|
534
|
-
|
|
535
|
-
o[7] || (o[7] =
|
|
536
|
-
o[8] || (o[8] =
|
|
537
|
-
|
|
530
|
+
o[4] || (o[4] = r("b", null, "Bank", -1)),
|
|
531
|
+
h(": " + B((V = (M = a.payoutAccount) == null ? void 0 : M.store.bank) == null ? void 0 : V.name), 1),
|
|
532
|
+
o[5] || (o[5] = r("br", null, null, -1)),
|
|
533
|
+
o[6] || (o[6] = r("b", null, "Name", -1)),
|
|
534
|
+
h(": " + B((q = (x = a.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : q.holderName), 1),
|
|
535
|
+
o[7] || (o[7] = r("br", null, null, -1)),
|
|
536
|
+
o[8] || (o[8] = r("b", null, "Number", -1)),
|
|
537
|
+
h(": " + B((O = (K = a.payoutAccount) == null ? void 0 : K.store.bank) == null ? void 0 : O.accountNumber), 1)
|
|
538
538
|
];
|
|
539
539
|
}),
|
|
540
540
|
_: 1
|
|
@@ -546,17 +546,17 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
546
546
|
_: 1
|
|
547
547
|
})
|
|
548
548
|
]),
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
o[9] || (o[9] =
|
|
552
|
-
|
|
553
|
-
"business-id":
|
|
554
|
-
"restaurant-id": ((I = (U =
|
|
555
|
-
document:
|
|
549
|
+
r("div", Te, [
|
|
550
|
+
r("div", De, [
|
|
551
|
+
o[9] || (o[9] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
552
|
+
n(Z, {
|
|
553
|
+
"business-id": a.payoutAccount.businessId,
|
|
554
|
+
"restaurant-id": ((I = (U = a.payoutAccount) == null ? void 0 : U.store) == null ? void 0 : I.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
555
|
+
document: a.payoutAccount.store.ssm
|
|
556
556
|
}, {
|
|
557
|
-
default: k(({ src:
|
|
558
|
-
|
|
559
|
-
pdf:
|
|
557
|
+
default: k(({ src: M }) => [
|
|
558
|
+
n(Q, {
|
|
559
|
+
pdf: M,
|
|
560
560
|
"disable-text-layer": !0,
|
|
561
561
|
"disable-annotation-layer": !0
|
|
562
562
|
}, null, 8, ["pdf"])
|
|
@@ -564,16 +564,16 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
564
564
|
_: 1
|
|
565
565
|
}, 8, ["business-id", "restaurant-id", "document"])
|
|
566
566
|
]),
|
|
567
|
-
|
|
568
|
-
o[10] || (o[10] =
|
|
569
|
-
|
|
570
|
-
"business-id":
|
|
571
|
-
"restaurant-id": ((R = (T =
|
|
572
|
-
document:
|
|
567
|
+
r("div", Re, [
|
|
568
|
+
o[10] || (o[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
569
|
+
n(Z, {
|
|
570
|
+
"business-id": a.payoutAccount.businessId,
|
|
571
|
+
"restaurant-id": ((R = (T = a.payoutAccount) == null ? void 0 : T.store) == null ? void 0 : R.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
572
|
+
document: a.payoutAccount.store.bankStatement
|
|
573
573
|
}, {
|
|
574
|
-
default: k(({ src:
|
|
575
|
-
|
|
576
|
-
pdf:
|
|
574
|
+
default: k(({ src: M }) => [
|
|
575
|
+
n(Q, {
|
|
576
|
+
pdf: M,
|
|
577
577
|
"disable-text-layer": !0,
|
|
578
578
|
"disable-annotation-layer": !0
|
|
579
579
|
}, null, 8, ["pdf"])
|
|
@@ -585,14 +585,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
585
585
|
], 64);
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
}),
|
|
588
|
+
}), Me = /* @__PURE__ */ D({
|
|
589
589
|
__name: "RateInput",
|
|
590
590
|
props: {
|
|
591
591
|
data: {},
|
|
592
592
|
onChange: { type: Function }
|
|
593
593
|
},
|
|
594
|
-
setup(
|
|
595
|
-
const u =
|
|
594
|
+
setup(a) {
|
|
595
|
+
const u = a, e = C(u.data.toString());
|
|
596
596
|
return te(e, (b) => {
|
|
597
597
|
u.onChange(parseFloat(b));
|
|
598
598
|
}), (b, l) => {
|
|
@@ -603,20 +603,20 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
603
603
|
"onUpdate:modelValue": l[0] || (l[0] = (m) => e.value = m)
|
|
604
604
|
}, {
|
|
605
605
|
append: k(() => [...l[1] || (l[1] = [
|
|
606
|
-
|
|
606
|
+
h("%", -1)
|
|
607
607
|
])]),
|
|
608
608
|
_: 1
|
|
609
609
|
}, 8, ["modelValue"]);
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
}),
|
|
612
|
+
}), Pe = /* @__PURE__ */ D({
|
|
613
613
|
__name: "TPlusInput",
|
|
614
614
|
props: {
|
|
615
615
|
data: {},
|
|
616
616
|
onChange: { type: Function }
|
|
617
617
|
},
|
|
618
|
-
setup(
|
|
619
|
-
const u =
|
|
618
|
+
setup(a) {
|
|
619
|
+
const u = a, e = C(u.data.toString());
|
|
620
620
|
return te(e, (b) => {
|
|
621
621
|
u.onChange(parseInt(b));
|
|
622
622
|
}), (b, l) => {
|
|
@@ -628,14 +628,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
628
628
|
}, null, 8, ["modelValue"]);
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
}),
|
|
631
|
+
}), Be = /* @__PURE__ */ D({
|
|
632
632
|
__name: "MinimumFeeInput",
|
|
633
633
|
props: {
|
|
634
634
|
data: {},
|
|
635
635
|
onChange: { type: Function }
|
|
636
636
|
},
|
|
637
|
-
setup(
|
|
638
|
-
const u =
|
|
637
|
+
setup(a) {
|
|
638
|
+
const u = a, e = C(u.data.toString());
|
|
639
639
|
return te(e, (b) => {
|
|
640
640
|
u.onChange(parseFloat(b));
|
|
641
641
|
}), (b, l) => {
|
|
@@ -646,13 +646,13 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
646
646
|
"onUpdate:modelValue": l[0] || (l[0] = (m) => e.value = m)
|
|
647
647
|
}, {
|
|
648
648
|
prepend: k(() => [...l[1] || (l[1] = [
|
|
649
|
-
|
|
649
|
+
h("$", -1)
|
|
650
650
|
])]),
|
|
651
651
|
_: 1
|
|
652
652
|
}, 8, ["modelValue"]);
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
}),
|
|
655
|
+
}), _e = { class: "flex gap-16 mt-6" }, $e = { class: "flex-1" }, qe = { class: "flex-1" }, Oe = { class: "my-6 w-full flex justify-end" }, Ee = { class: "w-[320px]" }, Ge = /* @__PURE__ */ D({
|
|
656
656
|
__name: "PaymentStatus",
|
|
657
657
|
props: {
|
|
658
658
|
onUpdate: {
|
|
@@ -664,8 +664,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
664
664
|
required: !0
|
|
665
665
|
}
|
|
666
666
|
},
|
|
667
|
-
setup(
|
|
668
|
-
const u =
|
|
667
|
+
setup(a) {
|
|
668
|
+
const u = a, e = C(!1), b = J(), l = ie(), t = async (o) => {
|
|
669
669
|
try {
|
|
670
670
|
e.value = !0, await u.onUpdate(o), b.open({
|
|
671
671
|
type: "success",
|
|
@@ -688,7 +688,38 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
688
688
|
contentComponent: xe,
|
|
689
689
|
contentComponentProps: {
|
|
690
690
|
label: "Reason",
|
|
691
|
-
|
|
691
|
+
selectableReasons: [
|
|
692
|
+
{
|
|
693
|
+
label: "Incorrect Exterior Photo.",
|
|
694
|
+
value: "Incorrect Exterior Photo."
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
label: "The bank statement provided is unclear.",
|
|
698
|
+
value: "The bank statement provided is unclear."
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
label: "The exterior photo provided is unclear.",
|
|
702
|
+
value: "The exterior photo provided is unclear."
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
label: "Bank Account Name Mismatch with SSM Registration Name.",
|
|
706
|
+
value: "Bank Account Name Mismatch with SSM Registration Name."
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
label: 'Mismatch SSM with Signboard "Dimiliki Oleh"',
|
|
710
|
+
value: 'Mismatch SSM with Signboard "Dimiliki Oleh"'
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
label: "Mismatch Company Info with SSM Document",
|
|
714
|
+
value: "Mismatch Company Info with SSM Document"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
label: "Other (fill in manually)",
|
|
718
|
+
value: "OTHER"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
otherLabel: "Other Reason",
|
|
722
|
+
otherPlaceholder: "Enter reason for rejection..."
|
|
692
723
|
}
|
|
693
724
|
}).onPrimary((o) => {
|
|
694
725
|
u.payoutAccount.enable = !1, u.payoutAccount.status = "REJECTED", u.payoutAccount.statusReason = o, t(u.payoutAccount), l.close();
|
|
@@ -709,7 +740,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
709
740
|
accessorKey: "rate",
|
|
710
741
|
cell: ({ row: o }) => {
|
|
711
742
|
let c = 0;
|
|
712
|
-
return o.original.rate && (c = o.original.rate.amount / Math.pow(10, o.original.rate.precision)), H(
|
|
743
|
+
return o.original.rate && (c = o.original.rate.amount / Math.pow(10, o.original.rate.precision)), H(Me, {
|
|
713
744
|
data: c,
|
|
714
745
|
onChange: (f) => {
|
|
715
746
|
const F = u.payoutAccount.methods.at(o.index);
|
|
@@ -726,7 +757,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
726
757
|
accessorKey: "minimumFee",
|
|
727
758
|
cell: ({ row: o }) => {
|
|
728
759
|
let c = 0;
|
|
729
|
-
return o.original.minimumFee && (c = o.original.minimumFee.amount / Math.pow(10, o.original.minimumFee.precision)), H(
|
|
760
|
+
return o.original.minimumFee && (c = o.original.minimumFee.amount / Math.pow(10, o.original.minimumFee.precision)), H(Be, {
|
|
730
761
|
data: c,
|
|
731
762
|
onChange: (f) => {
|
|
732
763
|
const F = u.payoutAccount.methods.at(o.index);
|
|
@@ -741,7 +772,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
741
772
|
{
|
|
742
773
|
header: () => "T plus",
|
|
743
774
|
accessorKey: "tPlus",
|
|
744
|
-
cell: ({ row: o }) => H(
|
|
775
|
+
cell: ({ row: o }) => H(Pe, {
|
|
745
776
|
data: o.original.tPlus ?? 0,
|
|
746
777
|
onChange: (c) => {
|
|
747
778
|
const f = u.payoutAccount.methods.at(o.index);
|
|
@@ -752,24 +783,24 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
752
783
|
];
|
|
753
784
|
return (o, c) => {
|
|
754
785
|
const f = y("FmRadio"), F = y("FmRadioGroup"), S = y("FmSwitch"), U = y("FmSearch"), I = y("FmTable"), T = y("FmButton");
|
|
755
|
-
return g(),
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
modelValue:
|
|
760
|
-
"onUpdate:modelValue": c[0] || (c[0] = (R) =>
|
|
786
|
+
return g(), E(j, null, [
|
|
787
|
+
r("div", _e, [
|
|
788
|
+
r("div", $e, [
|
|
789
|
+
n(F, {
|
|
790
|
+
modelValue: a.payoutAccount.status,
|
|
791
|
+
"onUpdate:modelValue": c[0] || (c[0] = (R) => a.payoutAccount.status = R),
|
|
761
792
|
label: "Account Status"
|
|
762
793
|
}, {
|
|
763
794
|
default: k(() => [
|
|
764
|
-
|
|
795
|
+
n(f, {
|
|
765
796
|
value: "PENDING",
|
|
766
797
|
label: "Pending"
|
|
767
798
|
}),
|
|
768
|
-
|
|
799
|
+
n(f, {
|
|
769
800
|
value: "APPROVED",
|
|
770
801
|
label: "Approved"
|
|
771
802
|
}),
|
|
772
|
-
|
|
803
|
+
n(f, {
|
|
773
804
|
value: "REJECTED",
|
|
774
805
|
label: "Rejected",
|
|
775
806
|
onClick: m
|
|
@@ -778,42 +809,42 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
778
809
|
_: 1
|
|
779
810
|
}, 8, ["modelValue"])
|
|
780
811
|
]),
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
modelValue:
|
|
784
|
-
"onUpdate:modelValue": c[1] || (c[1] = (R) =>
|
|
812
|
+
r("div", qe, [
|
|
813
|
+
n(S, {
|
|
814
|
+
modelValue: a.payoutAccount.enable,
|
|
815
|
+
"onUpdate:modelValue": c[1] || (c[1] = (R) => a.payoutAccount.enable = R),
|
|
785
816
|
disabled: !p.value,
|
|
786
817
|
label: "Enabled",
|
|
787
818
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
788
819
|
}, null, 8, ["modelValue", "disabled"])
|
|
789
820
|
])
|
|
790
821
|
]),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
modelValue:
|
|
822
|
+
a.payoutAccount.enable ? (g(), E(j, { key: 0 }, [
|
|
823
|
+
r("div", Oe, [
|
|
824
|
+
r("div", Ee, [
|
|
825
|
+
n(U, {
|
|
826
|
+
modelValue: s(v),
|
|
796
827
|
"onUpdate:modelValue": c[2] || (c[2] = (R) => W(v) ? v.value = R : null),
|
|
797
828
|
placeholder: "Search Method ..."
|
|
798
829
|
}, null, 8, ["modelValue"])
|
|
799
830
|
])
|
|
800
831
|
]),
|
|
801
|
-
|
|
832
|
+
n(I, {
|
|
802
833
|
class: "mt-6",
|
|
803
834
|
modelValue: i.value,
|
|
804
835
|
"onUpdate:modelValue": c[3] || (c[3] = (R) => i.value = R),
|
|
805
836
|
"shrink-at": !1,
|
|
806
|
-
"search-value":
|
|
807
|
-
"row-data":
|
|
837
|
+
"search-value": s(v),
|
|
838
|
+
"row-data": a.payoutAccount.methods,
|
|
808
839
|
"column-defs": d
|
|
809
840
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
810
|
-
], 64)) :
|
|
811
|
-
|
|
841
|
+
], 64)) : $("", !0),
|
|
842
|
+
n(T, {
|
|
812
843
|
class: "w-full mt-6",
|
|
813
844
|
variant: "primary",
|
|
814
845
|
label: "Save",
|
|
815
846
|
loading: e.value,
|
|
816
|
-
onclick: () => t(
|
|
847
|
+
onclick: () => t(a.payoutAccount)
|
|
817
848
|
}, null, 8, ["loading", "onclick"])
|
|
818
849
|
], 64);
|
|
819
850
|
};
|
|
@@ -821,12 +852,12 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
821
852
|
}), Ke = { class: "flex" }, je = /* @__PURE__ */ D({
|
|
822
853
|
__name: "Actions",
|
|
823
854
|
emits: ["edit", "delete"],
|
|
824
|
-
setup(
|
|
855
|
+
setup(a, { emit: u }) {
|
|
825
856
|
const e = u;
|
|
826
857
|
return (b, l) => {
|
|
827
858
|
const t = y("FmButton");
|
|
828
|
-
return g(),
|
|
829
|
-
|
|
859
|
+
return g(), E("div", Ke, [
|
|
860
|
+
n(t, {
|
|
830
861
|
variant: "plain",
|
|
831
862
|
"prepend-icon": "delete",
|
|
832
863
|
onClick: l[0] || (l[0] = (m) => {
|
|
@@ -844,14 +875,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
844
875
|
required: !0
|
|
845
876
|
}
|
|
846
877
|
},
|
|
847
|
-
setup(
|
|
848
|
-
const u = J(), e =
|
|
878
|
+
setup(a) {
|
|
879
|
+
const u = J(), e = a, { isLoading: b, startAsyncCall: l } = X(), t = C([]);
|
|
849
880
|
function m() {
|
|
850
881
|
l(async () => {
|
|
851
882
|
t.value = await G.getChannels(e.payoutAccount._id);
|
|
852
883
|
});
|
|
853
884
|
}
|
|
854
|
-
|
|
885
|
+
se(m);
|
|
855
886
|
function v() {
|
|
856
887
|
l(async () => {
|
|
857
888
|
try {
|
|
@@ -916,9 +947,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
916
947
|
];
|
|
917
948
|
return (d, o) => {
|
|
918
949
|
const c = y("FmButton"), f = y("FmTable");
|
|
919
|
-
return g(),
|
|
920
|
-
|
|
921
|
-
|
|
950
|
+
return g(), E(j, null, [
|
|
951
|
+
r("div", Ye, [
|
|
952
|
+
n(c, {
|
|
922
953
|
class: "mx-4",
|
|
923
954
|
variant: "destructive",
|
|
924
955
|
size: "md",
|
|
@@ -926,7 +957,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
926
957
|
label: "Reset",
|
|
927
958
|
onClick: p
|
|
928
959
|
}),
|
|
929
|
-
|
|
960
|
+
n(c, {
|
|
930
961
|
variant: "primary",
|
|
931
962
|
size: "md",
|
|
932
963
|
icon: "save",
|
|
@@ -934,8 +965,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
934
965
|
onClick: v
|
|
935
966
|
})
|
|
936
967
|
]),
|
|
937
|
-
|
|
938
|
-
loading:
|
|
968
|
+
n(f, {
|
|
969
|
+
loading: s(b),
|
|
939
970
|
"row-data": t.value,
|
|
940
971
|
"column-defs": i,
|
|
941
972
|
"shrink-at": !1
|
|
@@ -959,9 +990,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
959
990
|
required: !0
|
|
960
991
|
}
|
|
961
992
|
},
|
|
962
|
-
setup(
|
|
993
|
+
setup(a) {
|
|
963
994
|
var b;
|
|
964
|
-
const e = C(((b =
|
|
995
|
+
const e = C(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
965
996
|
merchantId: "",
|
|
966
997
|
verifyKey: "",
|
|
967
998
|
secretKey: ""
|
|
@@ -971,36 +1002,36 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
971
1002
|
return g(), w(p, {
|
|
972
1003
|
ref: "form",
|
|
973
1004
|
class: "flex flex-col gap-16",
|
|
974
|
-
onValidationSuccess: t[3] || (t[3] = () =>
|
|
1005
|
+
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
975
1006
|
}, {
|
|
976
1007
|
default: k(() => [
|
|
977
|
-
|
|
1008
|
+
n(m, {
|
|
978
1009
|
modelValue: e.value.merchantId,
|
|
979
1010
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.merchantId = i),
|
|
980
1011
|
label: "Merchant ID",
|
|
981
|
-
rules:
|
|
1012
|
+
rules: s(A)(s(N).string())
|
|
982
1013
|
}, null, 8, ["modelValue", "rules"]),
|
|
983
|
-
|
|
1014
|
+
n(m, {
|
|
984
1015
|
modelValue: e.value.verifyKey,
|
|
985
1016
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.verifyKey = i),
|
|
986
1017
|
label: "Verify Key",
|
|
987
|
-
rules:
|
|
1018
|
+
rules: s(A)(s(N).string())
|
|
988
1019
|
}, null, 8, ["modelValue", "rules"]),
|
|
989
|
-
|
|
1020
|
+
n(m, {
|
|
990
1021
|
modelValue: e.value.secretKey,
|
|
991
1022
|
"onUpdate:modelValue": t[2] || (t[2] = (i) => e.value.secretKey = i),
|
|
992
1023
|
label: "Secret Key",
|
|
993
|
-
rules:
|
|
1024
|
+
rules: s(A)(s(N).string())
|
|
994
1025
|
}, null, 8, ["modelValue", "rules"]),
|
|
995
|
-
|
|
996
|
-
|
|
1026
|
+
r("div", ze, [
|
|
1027
|
+
a.gateway ? (g(), w(v, {
|
|
997
1028
|
key: 0,
|
|
998
1029
|
class: "flex-1",
|
|
999
1030
|
variant: "secondary",
|
|
1000
1031
|
label: "Delete",
|
|
1001
|
-
onclick: () =>
|
|
1002
|
-
}, null, 8, ["onclick"])) :
|
|
1003
|
-
|
|
1032
|
+
onclick: () => a.onDelete()
|
|
1033
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1034
|
+
n(v, {
|
|
1004
1035
|
type: "submit",
|
|
1005
1036
|
class: "flex-1",
|
|
1006
1037
|
variant: "primary",
|
|
@@ -1028,9 +1059,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1028
1059
|
required: !0
|
|
1029
1060
|
}
|
|
1030
1061
|
},
|
|
1031
|
-
setup(
|
|
1062
|
+
setup(a) {
|
|
1032
1063
|
var b;
|
|
1033
|
-
const e = C(((b =
|
|
1064
|
+
const e = C(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1034
1065
|
merchantId: "",
|
|
1035
1066
|
merchantName: "",
|
|
1036
1067
|
merchantCategoryCode: "",
|
|
@@ -1042,48 +1073,48 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1042
1073
|
return g(), w(p, {
|
|
1043
1074
|
ref: "form",
|
|
1044
1075
|
class: "flex flex-col gap-16",
|
|
1045
|
-
onValidationSuccess: t[5] || (t[5] = () =>
|
|
1076
|
+
onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
|
|
1046
1077
|
}, {
|
|
1047
1078
|
default: k(() => [
|
|
1048
|
-
|
|
1079
|
+
n(m, {
|
|
1049
1080
|
modelValue: e.value.merchantId,
|
|
1050
1081
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.merchantId = i),
|
|
1051
1082
|
label: "Merchant ID",
|
|
1052
|
-
rules:
|
|
1083
|
+
rules: s(A)(s(N).string())
|
|
1053
1084
|
}, null, 8, ["modelValue", "rules"]),
|
|
1054
|
-
|
|
1085
|
+
n(m, {
|
|
1055
1086
|
modelValue: e.value.merchantName,
|
|
1056
1087
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.merchantName = i),
|
|
1057
1088
|
label: "Merchant Name",
|
|
1058
|
-
rules:
|
|
1089
|
+
rules: s(A)(s(N).string())
|
|
1059
1090
|
}, null, 8, ["modelValue", "rules"]),
|
|
1060
|
-
|
|
1091
|
+
n(m, {
|
|
1061
1092
|
modelValue: e.value.merchantCategoryCode,
|
|
1062
1093
|
"onUpdate:modelValue": t[2] || (t[2] = (i) => e.value.merchantCategoryCode = i),
|
|
1063
1094
|
label: "Merchant MCC",
|
|
1064
|
-
rules:
|
|
1095
|
+
rules: s(A)(s(N).string())
|
|
1065
1096
|
}, null, 8, ["modelValue", "rules"]),
|
|
1066
|
-
|
|
1097
|
+
n(m, {
|
|
1067
1098
|
modelValue: e.value.storeID,
|
|
1068
1099
|
"onUpdate:modelValue": t[3] || (t[3] = (i) => e.value.storeID = i),
|
|
1069
1100
|
label: "Store ID",
|
|
1070
|
-
rules:
|
|
1101
|
+
rules: s(A)(s(N).string())
|
|
1071
1102
|
}, null, 8, ["modelValue", "rules"]),
|
|
1072
|
-
|
|
1103
|
+
n(m, {
|
|
1073
1104
|
modelValue: e.value.storeName,
|
|
1074
1105
|
"onUpdate:modelValue": t[4] || (t[4] = (i) => e.value.storeName = i),
|
|
1075
1106
|
label: "Store Name",
|
|
1076
|
-
rules:
|
|
1107
|
+
rules: s(A)(s(N).string())
|
|
1077
1108
|
}, null, 8, ["modelValue", "rules"]),
|
|
1078
|
-
|
|
1079
|
-
|
|
1109
|
+
r("div", Ze, [
|
|
1110
|
+
a.gateway ? (g(), w(v, {
|
|
1080
1111
|
key: 0,
|
|
1081
1112
|
class: "flex-1",
|
|
1082
1113
|
variant: "secondary",
|
|
1083
1114
|
label: "Delete",
|
|
1084
|
-
onclick: () =>
|
|
1085
|
-
}, null, 8, ["onclick"])) :
|
|
1086
|
-
|
|
1115
|
+
onclick: () => a.onDelete()
|
|
1116
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1117
|
+
n(v, {
|
|
1087
1118
|
type: "submit",
|
|
1088
1119
|
class: "flex-1",
|
|
1089
1120
|
variant: "primary",
|
|
@@ -1111,9 +1142,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1111
1142
|
required: !0
|
|
1112
1143
|
}
|
|
1113
1144
|
},
|
|
1114
|
-
setup(
|
|
1145
|
+
setup(a) {
|
|
1115
1146
|
var b;
|
|
1116
|
-
const e = C(((b =
|
|
1147
|
+
const e = C(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1117
1148
|
merchantId: "",
|
|
1118
1149
|
cardMerchantId: ""
|
|
1119
1150
|
});
|
|
@@ -1122,30 +1153,30 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1122
1153
|
return g(), w(p, {
|
|
1123
1154
|
ref: "form",
|
|
1124
1155
|
class: "flex flex-col gap-16",
|
|
1125
|
-
onValidationSuccess: t[2] || (t[2] = () =>
|
|
1156
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1126
1157
|
}, {
|
|
1127
1158
|
default: k(() => [
|
|
1128
|
-
|
|
1159
|
+
n(m, {
|
|
1129
1160
|
modelValue: e.value.merchantId,
|
|
1130
1161
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.merchantId = i),
|
|
1131
1162
|
label: "Merchant ID",
|
|
1132
|
-
rules:
|
|
1163
|
+
rules: s(A)(s(N).string())
|
|
1133
1164
|
}, null, 8, ["modelValue", "rules"]),
|
|
1134
|
-
|
|
1165
|
+
n(m, {
|
|
1135
1166
|
modelValue: e.value.cardMerchantId,
|
|
1136
1167
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.cardMerchantId = i),
|
|
1137
1168
|
label: "Card Merchant ID",
|
|
1138
|
-
rules:
|
|
1169
|
+
rules: s(A)(s(N).string())
|
|
1139
1170
|
}, null, 8, ["modelValue", "rules"]),
|
|
1140
|
-
|
|
1141
|
-
|
|
1171
|
+
r("div", Qe, [
|
|
1172
|
+
a.gateway ? (g(), w(v, {
|
|
1142
1173
|
key: 0,
|
|
1143
1174
|
class: "flex-1",
|
|
1144
1175
|
variant: "secondary",
|
|
1145
1176
|
label: "Delete",
|
|
1146
|
-
onclick: () =>
|
|
1147
|
-
}, null, 8, ["onclick"])) :
|
|
1148
|
-
|
|
1177
|
+
onclick: () => a.onDelete()
|
|
1178
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1179
|
+
n(v, {
|
|
1149
1180
|
type: "submit",
|
|
1150
1181
|
class: "flex-1",
|
|
1151
1182
|
variant: "primary",
|
|
@@ -1173,9 +1204,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1173
1204
|
required: !0
|
|
1174
1205
|
}
|
|
1175
1206
|
},
|
|
1176
|
-
setup(
|
|
1207
|
+
setup(a) {
|
|
1177
1208
|
var b;
|
|
1178
|
-
const e = C(((b =
|
|
1209
|
+
const e = C(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1179
1210
|
merchantAccount: "",
|
|
1180
1211
|
username: "",
|
|
1181
1212
|
apiKey: "",
|
|
@@ -1188,53 +1219,53 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1188
1219
|
return g(), w(p, {
|
|
1189
1220
|
ref: "form",
|
|
1190
1221
|
class: "flex flex-col gap-16",
|
|
1191
|
-
onValidationSuccess: t[6] || (t[6] = () =>
|
|
1222
|
+
onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
|
|
1192
1223
|
}, {
|
|
1193
1224
|
default: k(() => [
|
|
1194
|
-
|
|
1225
|
+
n(m, {
|
|
1195
1226
|
modelValue: e.value.endpoint,
|
|
1196
1227
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.endpoint = i),
|
|
1197
1228
|
label: "Endpoint",
|
|
1198
|
-
rules:
|
|
1229
|
+
rules: s(A)(s(N).string())
|
|
1199
1230
|
}, null, 8, ["modelValue", "rules"]),
|
|
1200
|
-
|
|
1231
|
+
n(m, {
|
|
1201
1232
|
modelValue: e.value.merchantAccount,
|
|
1202
1233
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.value.merchantAccount = i),
|
|
1203
1234
|
label: "Merchant Account",
|
|
1204
|
-
rules:
|
|
1235
|
+
rules: s(A)(s(N).string())
|
|
1205
1236
|
}, null, 8, ["modelValue", "rules"]),
|
|
1206
|
-
|
|
1237
|
+
n(m, {
|
|
1207
1238
|
modelValue: e.value.username,
|
|
1208
1239
|
"onUpdate:modelValue": t[2] || (t[2] = (i) => e.value.username = i),
|
|
1209
1240
|
label: "Username",
|
|
1210
|
-
rules:
|
|
1241
|
+
rules: s(A)(s(N).string())
|
|
1211
1242
|
}, null, 8, ["modelValue", "rules"]),
|
|
1212
|
-
|
|
1243
|
+
n(m, {
|
|
1213
1244
|
modelValue: e.value.apiKey,
|
|
1214
1245
|
"onUpdate:modelValue": t[3] || (t[3] = (i) => e.value.apiKey = i),
|
|
1215
1246
|
label: "API Key",
|
|
1216
|
-
rules:
|
|
1247
|
+
rules: s(A)(s(N).string())
|
|
1217
1248
|
}, null, 8, ["modelValue", "rules"]),
|
|
1218
|
-
|
|
1249
|
+
n(m, {
|
|
1219
1250
|
modelValue: e.value.clientKey,
|
|
1220
1251
|
"onUpdate:modelValue": t[4] || (t[4] = (i) => e.value.clientKey = i),
|
|
1221
1252
|
label: "Client Key",
|
|
1222
|
-
rules:
|
|
1253
|
+
rules: s(A)(s(N).string())
|
|
1223
1254
|
}, null, 8, ["modelValue", "rules"]),
|
|
1224
|
-
|
|
1255
|
+
n(m, {
|
|
1225
1256
|
modelValue: e.value.hmacKey,
|
|
1226
1257
|
"onUpdate:modelValue": t[5] || (t[5] = (i) => e.value.hmacKey = i),
|
|
1227
1258
|
label: "HMac Key"
|
|
1228
1259
|
}, null, 8, ["modelValue"]),
|
|
1229
|
-
|
|
1230
|
-
|
|
1260
|
+
r("div", Xe, [
|
|
1261
|
+
a.gateway ? (g(), w(v, {
|
|
1231
1262
|
key: 0,
|
|
1232
1263
|
class: "flex-1",
|
|
1233
1264
|
variant: "secondary",
|
|
1234
1265
|
label: "Delete",
|
|
1235
|
-
onclick: () =>
|
|
1236
|
-
}, null, 8, ["onclick"])) :
|
|
1237
|
-
|
|
1266
|
+
onclick: () => a.onDelete()
|
|
1267
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1268
|
+
n(v, {
|
|
1238
1269
|
type: "submit",
|
|
1239
1270
|
class: "flex-1",
|
|
1240
1271
|
variant: "primary",
|
|
@@ -1246,7 +1277,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1246
1277
|
}, 512);
|
|
1247
1278
|
};
|
|
1248
1279
|
}
|
|
1249
|
-
}), tt = { class: "flex mt-6 space-x-6" },
|
|
1280
|
+
}), tt = { class: "flex mt-6 space-x-6" }, at = /* @__PURE__ */ D({
|
|
1250
1281
|
__name: "KsherGateway",
|
|
1251
1282
|
props: {
|
|
1252
1283
|
gateway: {
|
|
@@ -1262,9 +1293,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1262
1293
|
required: !0
|
|
1263
1294
|
}
|
|
1264
1295
|
},
|
|
1265
|
-
setup(
|
|
1296
|
+
setup(a) {
|
|
1266
1297
|
var b;
|
|
1267
|
-
const e = C(((b =
|
|
1298
|
+
const e = C(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1268
1299
|
appId: "",
|
|
1269
1300
|
privateKey: ""
|
|
1270
1301
|
});
|
|
@@ -1273,31 +1304,31 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1273
1304
|
return g(), w(i, {
|
|
1274
1305
|
ref: "form",
|
|
1275
1306
|
class: "flex flex-col gap-16",
|
|
1276
|
-
onValidationSuccess: t[2] || (t[2] = () =>
|
|
1307
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1277
1308
|
}, {
|
|
1278
1309
|
default: k(() => [
|
|
1279
|
-
|
|
1310
|
+
n(m, {
|
|
1280
1311
|
modelValue: e.value.appId,
|
|
1281
1312
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.value.appId = d),
|
|
1282
1313
|
label: "App ID",
|
|
1283
|
-
rules:
|
|
1314
|
+
rules: s(A)(s(N).string())
|
|
1284
1315
|
}, null, 8, ["modelValue", "rules"]),
|
|
1285
|
-
|
|
1316
|
+
n(v, {
|
|
1286
1317
|
modelValue: e.value.privateKey,
|
|
1287
1318
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.value.privateKey = d),
|
|
1288
1319
|
label: "Private Key",
|
|
1289
1320
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
1290
|
-
rules:
|
|
1321
|
+
rules: s(A)(s(N).string())
|
|
1291
1322
|
}, null, 8, ["modelValue", "rules"]),
|
|
1292
|
-
|
|
1293
|
-
|
|
1323
|
+
r("div", tt, [
|
|
1324
|
+
a.gateway ? (g(), w(p, {
|
|
1294
1325
|
key: 0,
|
|
1295
1326
|
class: "flex-1",
|
|
1296
1327
|
variant: "secondary",
|
|
1297
1328
|
label: "Delete",
|
|
1298
|
-
onclick: () =>
|
|
1299
|
-
}, null, 8, ["onclick"])) :
|
|
1300
|
-
|
|
1329
|
+
onclick: () => a.onDelete()
|
|
1330
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1331
|
+
n(p, {
|
|
1301
1332
|
type: "submit",
|
|
1302
1333
|
class: "flex-1",
|
|
1303
1334
|
variant: "primary",
|
|
@@ -1309,7 +1340,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1309
1340
|
}, 512);
|
|
1310
1341
|
};
|
|
1311
1342
|
}
|
|
1312
|
-
}),
|
|
1343
|
+
}), nt = /* @__PURE__ */ D({
|
|
1313
1344
|
__name: "TyroGateway",
|
|
1314
1345
|
props: {
|
|
1315
1346
|
gateway: {
|
|
@@ -1325,10 +1356,10 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1325
1356
|
required: !0
|
|
1326
1357
|
}
|
|
1327
1358
|
},
|
|
1328
|
-
setup(
|
|
1359
|
+
setup(a) {
|
|
1329
1360
|
var b;
|
|
1330
1361
|
const e = C(
|
|
1331
|
-
((b =
|
|
1362
|
+
((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1332
1363
|
locationId: ""
|
|
1333
1364
|
}
|
|
1334
1365
|
);
|
|
@@ -1337,15 +1368,15 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1337
1368
|
return g(), w(v, {
|
|
1338
1369
|
ref: "form",
|
|
1339
1370
|
class: "flex flex-col gap-16",
|
|
1340
|
-
onValidationSuccess: t[1] || (t[1] = () =>
|
|
1371
|
+
onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
|
|
1341
1372
|
}, {
|
|
1342
1373
|
default: k(() => [
|
|
1343
|
-
|
|
1374
|
+
n(m, {
|
|
1344
1375
|
modelValue: e.value.locationId,
|
|
1345
1376
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.value.locationId = p),
|
|
1346
1377
|
label: "Location ID",
|
|
1347
1378
|
readonly: !0,
|
|
1348
|
-
rules:
|
|
1379
|
+
rules: s(A)(s(N).string())
|
|
1349
1380
|
}, null, 8, ["modelValue", "rules"])
|
|
1350
1381
|
]),
|
|
1351
1382
|
_: 1
|
|
@@ -1366,50 +1397,50 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1366
1397
|
required: !0
|
|
1367
1398
|
}
|
|
1368
1399
|
},
|
|
1369
|
-
setup(
|
|
1400
|
+
setup(a) {
|
|
1370
1401
|
const u = me().currentCountry, e = u.value, b = J(), { isLoading: l, startAsyncCall: t } = X(), { gatewayTab: m } = ee({
|
|
1371
1402
|
gatewayTab: ""
|
|
1372
|
-
}), v =
|
|
1403
|
+
}), v = a, p = [
|
|
1373
1404
|
{
|
|
1374
1405
|
label: "Fiuu",
|
|
1375
1406
|
value: "RAZER_MERCHANT_SERVICE",
|
|
1376
1407
|
render: Le,
|
|
1377
|
-
region: [
|
|
1408
|
+
region: [_.F_COUNTRY.enum.MY, _.F_COUNTRY.enum.SG]
|
|
1378
1409
|
},
|
|
1379
1410
|
{
|
|
1380
1411
|
label: "Macau Pass",
|
|
1381
1412
|
value: "MACAU_PASS",
|
|
1382
1413
|
render: Je,
|
|
1383
|
-
region: [
|
|
1414
|
+
region: [_.F_COUNTRY.enum.MO]
|
|
1384
1415
|
},
|
|
1385
1416
|
{
|
|
1386
1417
|
label: "Digio",
|
|
1387
1418
|
value: "DIGIO",
|
|
1388
1419
|
render: We,
|
|
1389
|
-
region: [
|
|
1420
|
+
region: [_.F_COUNTRY.enum.TH]
|
|
1390
1421
|
},
|
|
1391
1422
|
{
|
|
1392
1423
|
label: "Ksher",
|
|
1393
1424
|
value: "KSHER",
|
|
1394
|
-
render:
|
|
1395
|
-
region: [
|
|
1425
|
+
render: at,
|
|
1426
|
+
region: [_.F_COUNTRY.enum.TH]
|
|
1396
1427
|
},
|
|
1397
1428
|
{
|
|
1398
1429
|
label: "Adyen",
|
|
1399
1430
|
value: "ADYEN",
|
|
1400
1431
|
render: et,
|
|
1401
|
-
region: [
|
|
1432
|
+
region: [_.F_COUNTRY.enum.MY, _.F_COUNTRY.enum.SG]
|
|
1402
1433
|
},
|
|
1403
1434
|
{
|
|
1404
1435
|
label: "Tyro",
|
|
1405
1436
|
value: "TYRO",
|
|
1406
|
-
render:
|
|
1407
|
-
region: [
|
|
1437
|
+
render: nt,
|
|
1438
|
+
region: [_.F_COUNTRY.enum.AU]
|
|
1408
1439
|
}
|
|
1409
1440
|
], i = C(
|
|
1410
1441
|
v.payoutAccount.gateways ?? []
|
|
1411
1442
|
), d = Y(() => p.find((S) => S.value === m.value)), o = Y(() => p.filter(
|
|
1412
|
-
(S) => S.region.includes(u.value ??
|
|
1443
|
+
(S) => S.region.includes(u.value ?? _.F_COUNTRY.enum.MY)
|
|
1413
1444
|
));
|
|
1414
1445
|
async function c(S) {
|
|
1415
1446
|
await t(async () => {
|
|
@@ -1429,31 +1460,31 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1429
1460
|
}
|
|
1430
1461
|
const f = C((v.payoutAccount.gateways ?? []).length === 0), F = Y(() => e !== "MY" || !f.value);
|
|
1431
1462
|
return (S, U) => {
|
|
1432
|
-
var
|
|
1463
|
+
var M;
|
|
1433
1464
|
const I = y("FmCircularProgress"), T = y("FmSwitch"), R = y("FmTabs");
|
|
1434
|
-
return g(),
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
])])) :
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
])) : (g(),
|
|
1442
|
-
|
|
1465
|
+
return g(), E(j, null, [
|
|
1466
|
+
s(e) ? (g(), E("p", ot, [...U[2] || (U[2] = [
|
|
1467
|
+
r("b", null, "Note: ", -1),
|
|
1468
|
+
h(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1469
|
+
])])) : $("", !0),
|
|
1470
|
+
s(l) ? (g(), E("div", lt, [
|
|
1471
|
+
n(I, { size: "xxl" })
|
|
1472
|
+
])) : (g(), E(j, { key: 2 }, [
|
|
1473
|
+
s(e) === "MY" ? (g(), w(T, {
|
|
1443
1474
|
key: 0,
|
|
1444
1475
|
modelValue: f.value,
|
|
1445
1476
|
"onUpdate:modelValue": U[0] || (U[0] = (V) => f.value = V),
|
|
1446
1477
|
style: { "padding-bottom": "12px" },
|
|
1447
1478
|
label: "Use FeedMe's Default Account?"
|
|
1448
|
-
}, null, 8, ["modelValue"])) :
|
|
1479
|
+
}, null, 8, ["modelValue"])) : $("", !0),
|
|
1449
1480
|
F.value ? (g(), w(R, {
|
|
1450
1481
|
key: 1,
|
|
1451
|
-
"model-value":
|
|
1482
|
+
"model-value": s(m),
|
|
1452
1483
|
"onUpdate:modelValue": U[1] || (U[1] = (V) => W(m) ? m.value = V : null),
|
|
1453
1484
|
class: "mb-6",
|
|
1454
1485
|
items: o.value
|
|
1455
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1456
|
-
F.value &&
|
|
1486
|
+
}, null, 8, ["model-value", "items"])) : $("", !0),
|
|
1487
|
+
F.value && s(m) ? (g(), w(ae((M = d.value) == null ? void 0 : M.render), ne(oe({ key: 2 }, {
|
|
1457
1488
|
gateway: i.value.find(
|
|
1458
1489
|
(V) => {
|
|
1459
1490
|
var x;
|
|
@@ -1469,24 +1500,24 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1469
1500
|
), c(i.value);
|
|
1470
1501
|
},
|
|
1471
1502
|
onUpdate: (V) => {
|
|
1472
|
-
var
|
|
1503
|
+
var q;
|
|
1473
1504
|
let x = i.value.find(
|
|
1474
1505
|
(K) => {
|
|
1475
|
-
var
|
|
1476
|
-
return K.paymentGateway === ((
|
|
1506
|
+
var O;
|
|
1507
|
+
return K.paymentGateway === ((O = d.value) == null ? void 0 : O.value);
|
|
1477
1508
|
}
|
|
1478
1509
|
);
|
|
1479
1510
|
x ? x.config = V : i.value.push({
|
|
1480
|
-
paymentGateway: (
|
|
1511
|
+
paymentGateway: (q = d.value) == null ? void 0 : q.value,
|
|
1481
1512
|
config: V
|
|
1482
1513
|
}), c(i.value);
|
|
1483
1514
|
}
|
|
1484
|
-
})), null, 16)) :
|
|
1515
|
+
})), null, 16)) : $("", !0)
|
|
1485
1516
|
], 64))
|
|
1486
1517
|
], 64);
|
|
1487
1518
|
};
|
|
1488
1519
|
}
|
|
1489
|
-
}),
|
|
1520
|
+
}), rt = { class: "flex mt-6 space-x-6" }, st = /* @__PURE__ */ D({
|
|
1490
1521
|
__name: "GooglePayToken",
|
|
1491
1522
|
props: {
|
|
1492
1523
|
gateway: {
|
|
@@ -1502,9 +1533,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1502
1533
|
required: !0
|
|
1503
1534
|
}
|
|
1504
1535
|
},
|
|
1505
|
-
setup(
|
|
1536
|
+
setup(a) {
|
|
1506
1537
|
const e = C(
|
|
1507
|
-
|
|
1538
|
+
a.gateway || {
|
|
1508
1539
|
type: "googlePay",
|
|
1509
1540
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1510
1541
|
config: {
|
|
@@ -1518,39 +1549,39 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1518
1549
|
return g(), w(v, {
|
|
1519
1550
|
ref: "form",
|
|
1520
1551
|
class: "flex flex-col gap-16",
|
|
1521
|
-
onValidationSuccess: l[3] || (l[3] = () =>
|
|
1552
|
+
onValidationSuccess: l[3] || (l[3] = () => a.onUpdate(e.value))
|
|
1522
1553
|
}, {
|
|
1523
1554
|
default: k(() => [
|
|
1524
|
-
|
|
1555
|
+
n(t, {
|
|
1525
1556
|
modelValue: e.value.gateway,
|
|
1526
1557
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => e.value.gateway = p),
|
|
1527
1558
|
label: "Gateway",
|
|
1528
1559
|
disabled: !0,
|
|
1529
|
-
rules:
|
|
1560
|
+
rules: s(A)(s(N).string())
|
|
1530
1561
|
}, null, 8, ["modelValue", "rules"]),
|
|
1531
|
-
|
|
1562
|
+
n(t, {
|
|
1532
1563
|
modelValue: e.value.config.gateway,
|
|
1533
1564
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => e.value.config.gateway = p),
|
|
1534
1565
|
label: "Gateway ID",
|
|
1535
1566
|
disabled: !0,
|
|
1536
|
-
rules:
|
|
1567
|
+
rules: s(A)(s(N).string())
|
|
1537
1568
|
}, null, 8, ["modelValue", "rules"]),
|
|
1538
|
-
|
|
1569
|
+
n(t, {
|
|
1539
1570
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1540
1571
|
"onUpdate:modelValue": l[2] || (l[2] = (p) => e.value.config.gatewayMerchantId = p),
|
|
1541
1572
|
label: "Gateway Merchant ID",
|
|
1542
1573
|
disabled: !0,
|
|
1543
|
-
rules:
|
|
1574
|
+
rules: s(A)(s(N).string())
|
|
1544
1575
|
}, null, 8, ["modelValue", "rules"]),
|
|
1545
|
-
|
|
1546
|
-
|
|
1576
|
+
r("div", rt, [
|
|
1577
|
+
a.gateway ? (g(), w(m, {
|
|
1547
1578
|
key: 0,
|
|
1548
1579
|
class: "flex-1",
|
|
1549
1580
|
variant: "secondary",
|
|
1550
1581
|
label: "Delete",
|
|
1551
|
-
onclick: () =>
|
|
1552
|
-
}, null, 8, ["onclick"])) :
|
|
1553
|
-
|
|
1582
|
+
onclick: () => a.onDelete()
|
|
1583
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1584
|
+
n(m, {
|
|
1554
1585
|
type: "submit",
|
|
1555
1586
|
class: "flex-1",
|
|
1556
1587
|
variant: "primary",
|
|
@@ -1578,9 +1609,9 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1578
1609
|
required: !0
|
|
1579
1610
|
}
|
|
1580
1611
|
},
|
|
1581
|
-
setup(
|
|
1612
|
+
setup(a) {
|
|
1582
1613
|
const e = C(
|
|
1583
|
-
|
|
1614
|
+
a.gateway || {
|
|
1584
1615
|
type: "applePay",
|
|
1585
1616
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1586
1617
|
config: {
|
|
@@ -1593,32 +1624,32 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1593
1624
|
return g(), w(v, {
|
|
1594
1625
|
ref: "form",
|
|
1595
1626
|
class: "flex flex-col gap-16",
|
|
1596
|
-
onValidationSuccess: l[2] || (l[2] = () =>
|
|
1627
|
+
onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(e.value))
|
|
1597
1628
|
}, {
|
|
1598
1629
|
default: k(() => [
|
|
1599
|
-
|
|
1630
|
+
n(t, {
|
|
1600
1631
|
modelValue: e.value.gateway,
|
|
1601
1632
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => e.value.gateway = p),
|
|
1602
1633
|
label: "Gateway",
|
|
1603
1634
|
disabled: !0,
|
|
1604
|
-
rules:
|
|
1635
|
+
rules: s(A)(s(N).string())
|
|
1605
1636
|
}, null, 8, ["modelValue", "rules"]),
|
|
1606
|
-
|
|
1637
|
+
n(t, {
|
|
1607
1638
|
modelValue: e.value.config.merchantId,
|
|
1608
1639
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => e.value.config.merchantId = p),
|
|
1609
1640
|
label: "Merchant ID",
|
|
1610
1641
|
disabled: !0,
|
|
1611
|
-
rules:
|
|
1642
|
+
rules: s(A)(s(N).string())
|
|
1612
1643
|
}, null, 8, ["modelValue", "rules"]),
|
|
1613
|
-
|
|
1614
|
-
|
|
1644
|
+
r("div", it, [
|
|
1645
|
+
a.gateway ? (g(), w(m, {
|
|
1615
1646
|
key: 0,
|
|
1616
1647
|
class: "flex-1",
|
|
1617
1648
|
variant: "secondary",
|
|
1618
1649
|
label: "Delete",
|
|
1619
|
-
onclick: () =>
|
|
1620
|
-
}, null, 8, ["onclick"])) :
|
|
1621
|
-
|
|
1650
|
+
onclick: () => a.onDelete()
|
|
1651
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1652
|
+
n(m, {
|
|
1622
1653
|
type: "submit",
|
|
1623
1654
|
class: "flex-1",
|
|
1624
1655
|
variant: "primary",
|
|
@@ -1641,26 +1672,26 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1641
1672
|
required: !0
|
|
1642
1673
|
}
|
|
1643
1674
|
},
|
|
1644
|
-
setup(
|
|
1675
|
+
setup(a) {
|
|
1645
1676
|
const u = me().currentCountry, e = J(), { isLoading: b, startAsyncCall: l } = X(), { tokenTab: t } = ee({
|
|
1646
1677
|
tokenTab: ""
|
|
1647
|
-
}), m =
|
|
1678
|
+
}), m = a, v = [
|
|
1648
1679
|
{
|
|
1649
1680
|
label: "Google Pay",
|
|
1650
1681
|
value: "googlePay",
|
|
1651
1682
|
icon: "android",
|
|
1652
|
-
render:
|
|
1653
|
-
region: [
|
|
1683
|
+
render: st,
|
|
1684
|
+
region: [_.F_COUNTRY.enum.MY, _.F_COUNTRY.enum.SG]
|
|
1654
1685
|
},
|
|
1655
1686
|
{
|
|
1656
1687
|
label: "Apple Pay",
|
|
1657
1688
|
value: "applePay",
|
|
1658
1689
|
icon: "iOS",
|
|
1659
1690
|
render: mt,
|
|
1660
|
-
region: [
|
|
1691
|
+
region: [_.F_COUNTRY.enum.MY, _.F_COUNTRY.enum.SG]
|
|
1661
1692
|
}
|
|
1662
1693
|
], p = C(m.payoutAccount.tokens ?? []), i = Y(() => v.find((c) => c.value === t.value)), d = Y(() => v.filter(
|
|
1663
|
-
(c) => c.region.includes(u.value ??
|
|
1694
|
+
(c) => c.region.includes(u.value ?? _.F_COUNTRY.enum.MY)
|
|
1664
1695
|
));
|
|
1665
1696
|
async function o(c) {
|
|
1666
1697
|
await l(async () => {
|
|
@@ -1681,25 +1712,25 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1681
1712
|
return (c, f) => {
|
|
1682
1713
|
var U;
|
|
1683
1714
|
const F = y("FmCircularProgress"), S = y("FmTabs");
|
|
1684
|
-
return g(),
|
|
1685
|
-
f[1] || (f[1] =
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1715
|
+
return g(), E(j, null, [
|
|
1716
|
+
f[1] || (f[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1717
|
+
r("b", null, "Note: "),
|
|
1718
|
+
h(" 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. "),
|
|
1719
|
+
r("br"),
|
|
1720
|
+
r("br"),
|
|
1721
|
+
r("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1722
|
+
r("br")
|
|
1692
1723
|
], -1)),
|
|
1693
|
-
|
|
1694
|
-
|
|
1724
|
+
s(b) ? (g(), E("div", ct, [
|
|
1725
|
+
n(F, { size: "xxl" })
|
|
1695
1726
|
])) : (g(), w(S, {
|
|
1696
1727
|
key: 1,
|
|
1697
|
-
"model-value":
|
|
1728
|
+
"model-value": s(t),
|
|
1698
1729
|
"onUpdate:modelValue": f[0] || (f[0] = (I) => W(t) ? t.value = I : null),
|
|
1699
1730
|
class: "mb-6 mt-6",
|
|
1700
1731
|
items: d.value
|
|
1701
1732
|
}, null, 8, ["model-value", "items"])),
|
|
1702
|
-
|
|
1733
|
+
s(t) ? (g(), w(ae((U = i.value) == null ? void 0 : U.render), ne(oe({ key: 2 }, {
|
|
1703
1734
|
gateway: p.value.find((I) => {
|
|
1704
1735
|
var T;
|
|
1705
1736
|
return I.type === ((T = i.value) == null ? void 0 : T.value);
|
|
@@ -1712,12 +1743,12 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1712
1743
|
},
|
|
1713
1744
|
onUpdate: (I) => {
|
|
1714
1745
|
let T = p.value.find((R) => {
|
|
1715
|
-
var
|
|
1716
|
-
return R.type === ((
|
|
1746
|
+
var M;
|
|
1747
|
+
return R.type === ((M = i.value) == null ? void 0 : M.value);
|
|
1717
1748
|
});
|
|
1718
1749
|
T ? T.config = I : p.value.push(I), o(p.value);
|
|
1719
1750
|
}
|
|
1720
|
-
})), null, 16)) :
|
|
1751
|
+
})), null, 16)) : $("", !0)
|
|
1721
1752
|
], 64);
|
|
1722
1753
|
};
|
|
1723
1754
|
}
|
|
@@ -1729,8 +1760,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1729
1760
|
required: !0
|
|
1730
1761
|
}
|
|
1731
1762
|
},
|
|
1732
|
-
setup(
|
|
1733
|
-
const u =
|
|
1763
|
+
setup(a) {
|
|
1764
|
+
const u = a, { tab: e } = ee({
|
|
1734
1765
|
tab: "information"
|
|
1735
1766
|
}), { isLoading: b, startAsyncCall: l } = X(!0), t = ye(), m = C();
|
|
1736
1767
|
async function v(o) {
|
|
@@ -1750,7 +1781,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1750
1781
|
label: "Settlement",
|
|
1751
1782
|
value: "settlement",
|
|
1752
1783
|
icon: "payments",
|
|
1753
|
-
render:
|
|
1784
|
+
render: he
|
|
1754
1785
|
},
|
|
1755
1786
|
{
|
|
1756
1787
|
label: "MDR Status",
|
|
@@ -1782,7 +1813,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1782
1813
|
m.value = await G.readById(u.accountId);
|
|
1783
1814
|
});
|
|
1784
1815
|
}
|
|
1785
|
-
|
|
1816
|
+
se(i);
|
|
1786
1817
|
const d = Y(() => {
|
|
1787
1818
|
const o = p.reduce((c, f) => c || (f.children ? f.children.find((F) => F.value === e.value) || null : f.value === e.value ? f : null), null);
|
|
1788
1819
|
return o == null ? void 0 : o.render;
|
|
@@ -1792,20 +1823,20 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
|
|
|
1792
1823
|
const f = y("FmTabs");
|
|
1793
1824
|
return g(), w(pe, {
|
|
1794
1825
|
title: `Payout Account (${(F = m.value) == null ? void 0 : F._id})`,
|
|
1795
|
-
loading:
|
|
1796
|
-
onBack:
|
|
1826
|
+
loading: s(b),
|
|
1827
|
+
onBack: s(t).back
|
|
1797
1828
|
}, {
|
|
1798
1829
|
default: k(() => [
|
|
1799
|
-
|
|
1800
|
-
"model-value":
|
|
1830
|
+
n(f, {
|
|
1831
|
+
"model-value": s(e),
|
|
1801
1832
|
"onUpdate:modelValue": c[0] || (c[0] = (S) => W(e) ? e.value = S : null),
|
|
1802
1833
|
class: "mb-6",
|
|
1803
1834
|
items: p
|
|
1804
1835
|
}, null, 8, ["model-value"]),
|
|
1805
|
-
|
|
1836
|
+
s(e) ? (g(), w(ae(d.value), ne(oe({ key: 0 }, {
|
|
1806
1837
|
payoutAccount: m.value,
|
|
1807
1838
|
onUpdate: v
|
|
1808
|
-
})), null, 16)) :
|
|
1839
|
+
})), null, 16)) : $("", !0)
|
|
1809
1840
|
]),
|
|
1810
1841
|
_: 1
|
|
1811
1842
|
}, 8, ["title", "loading", "onBack"]);
|