@feedmepos/mf-payment 1.9.13-dev → 1.9.15
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-BSVr75X6.js → Actions.vue_vue_type_script_setup_true_lang-BXgHGNC-.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DepXoTFK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CVX7jsCL.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-T7WuGpcv.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DyyOEAlS.js} +2 -2
- package/dist/{Chargeback-BGGrIqC1.js → Chargeback-CzGb2qrj.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-LFfqIXzg.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BL_91vvu.js} +1 -1
- package/dist/{ExternalTerminal-Bgil7e9q.js → ExternalTerminal-DqxMSE0K.js} +6 -6
- package/dist/{OnboardForm-Bi55-0QC.js → OnboardForm-Mdi-W6G_.js} +6 -6
- package/dist/{OnboardForm-GY9iFm_0.js → OnboardForm-xqybdqSJ.js} +6 -6
- package/dist/{OnboardSubmission-BjxoLtdy.js → OnboardSubmission-C3rTFoVo.js} +3 -3
- package/dist/{OnboardSubmission-XtXfACsT.js → OnboardSubmission-COfHEeQD.js} +6 -6
- package/dist/{PayoutAccount-Cf9KDVaS.js → PayoutAccount-6BtrDGLI.js} +7 -7
- package/dist/{PayoutAccount-DRJkFbb7.js → PayoutAccount-DIUT5yBj.js} +5 -5
- package/dist/{PayoutAccountSetting-jo5pD78A.js → PayoutAccountSetting-yY-uwUjp.js} +303 -298
- package/dist/{Restaurant-T23GXyN4.js → Restaurant-BAoDUO78.js} +4 -4
- package/dist/{RestaurantSetting-Dt_43sff.js → RestaurantSetting-DlP5Tenc.js} +133 -127
- package/dist/{Settlement-DYIC_qx5.js → Settlement-CcCDXA-0.js} +4 -4
- package/dist/{Settlement-iQawCsTk.js → Settlement-CjXaV58A.js} +3 -3
- package/dist/{SettlementTransactions-DxtVwsGQ.js → SettlementTransactions-BlPvG-4Y.js} +5 -5
- package/dist/{SettlementTransactions-D6e2Jfz8.js → SettlementTransactions-Cmo7AUZD.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-RMf0UvJO.js → Status.vue_vue_type_script_setup_true_lang-Bhgfjh5T.js} +1 -1
- package/dist/{Terminal-B-MDewvq.js → Terminal-BIkz19PG.js} +6 -6
- package/dist/{TerminalSetting-CpDVVqna.js → TerminalSetting-CjCN7uyo.js} +1164 -1038
- package/dist/{Transaction-BdoEqUsK.js → Transaction-BDum2QDI.js} +11 -11
- package/dist/{Transaction-DQJOm0M1.js → Transaction-CA8w8syf.js} +10 -10
- package/dist/{TransactionOld-Cv-ldfgv.js → TransactionOld-C6QjHM9R.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DgXB350L.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DpnCDoAu.js} +1 -1
- package/dist/{app-BV0gwDWT.js → app-DSMJE8lZ.js} +353 -362
- package/dist/app.js +1 -1
- package/dist/{assets-B3BMwzbu.js → assets-tw3UIJp-.js} +35 -34
- package/dist/{grafana-BnniZglw.js → grafana-_2snxoSk.js} +1 -1
- package/dist/{index-D-aQKndH.js → index-BQdV_OnA.js} +1 -1
- package/dist/{index-2OskxiaA.js → index-Ccc_rvgC.js} +1 -1
- package/dist/{index-Bahs0LXz.js → index-CjjoPVnQ.js} +1 -1
- package/dist/{index-CHb_FpXY.js → index-Ck6E6roO.js} +8582 -8289
- package/dist/{index-DVY0KmHF.js → index-D0Ui2BhX.js} +1 -1
- package/dist/{index-GluKZYof.js → index-DZWnrh1w.js} +1 -1
- package/dist/{index-JjM7nnLl.js → index-Z4Uo8sdb.js} +1 -1
- package/dist/{index-jy0qmXan.js → index-fLgg0fDG.js} +1 -1
- package/dist/{index-afhcVzt-.js → index-fMLDkmGA.js} +1 -1
- package/dist/{index-BANsbSLN.js → index-k-8f2BQB.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-CQyJ-QxJ.js → index.vue_vue_type_script_setup_true_lang-DB7kUcYX.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-yLxQsG7y.js → onboard-submission-BKnZXNdc.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-C86XmNO4.js → payout-account-DylXcFZf.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +28 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +8 -8
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +28 -26
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +32 -30
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +32 -30
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +28 -26
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +28 -26
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +32 -30
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -2
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +196 -0
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +12 -12
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -12
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +56 -52
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +24 -24
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +12 -12
- package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as R, ref as U, resolveComponent as
|
|
2
|
-
import { p as Y } from "./index-
|
|
3
|
-
import { u as ne, e as q } from "./index-
|
|
1
|
+
import { defineComponent as R, ref as U, resolveComponent as d, openBlock as g, createElementBlock as G, Fragment as j, createElementVNode as r, createVNode as n, withCtx as w, createTextVNode as _, toDisplayString as O, unref as i, createBlock as k, createCommentVNode as $, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as me, resolveDynamicComponent as ue, normalizeProps as re, mergeProps as se } from "vue";
|
|
2
|
+
import { p as Y } from "./index-BQdV_OnA.js";
|
|
3
|
+
import { u as ne, e as q } from "./index-Ck6E6roO.js";
|
|
4
4
|
import { _ as be } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
5
5
|
import { useRouter as ve } from "vue-router";
|
|
6
|
-
import { u as oe } from "./index-
|
|
7
|
-
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as oe } from "./index-D0Ui2BhX.js";
|
|
7
|
+
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BL_91vvu.js";
|
|
8
8
|
import { h as fe } from "./moment-h96o7c8I.js";
|
|
9
|
-
import { d as te } from "./index-
|
|
9
|
+
import { d as te } from "./index-Z4Uo8sdb.js";
|
|
10
10
|
import { useSnackbar as W, useDialogChild as ge, useDialog as de, components as Fe } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as Z } from "./error-K1CakhA9.js";
|
|
12
|
-
import { P as xe } from "./payout-account-
|
|
12
|
+
import { P as xe } from "./payout-account-DylXcFZf.js";
|
|
13
13
|
import { s as X, o as ke, z as N, a as D } from "./validator-CTlVogBQ.js";
|
|
14
14
|
import { _ as we } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
|
|
15
15
|
import { useCoreStore as pe } from "@feedmepos/mf-common";
|
|
@@ -26,56 +26,56 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
setup(a) {
|
|
29
|
-
const l = a, e = W(),
|
|
29
|
+
const l = a, e = W(), v = U(!1), u = U(!1), t = U(), c = U(""), F = (p) => {
|
|
30
30
|
const o = new FileReader();
|
|
31
31
|
return new Promise((S) => {
|
|
32
32
|
o.onload = (A) => {
|
|
33
33
|
var C;
|
|
34
34
|
return S((C = A.target) == null ? void 0 : C.result);
|
|
35
|
-
}, o.readAsDataURL(
|
|
35
|
+
}, o.readAsDataURL(p);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
t.value =
|
|
37
|
+
}, f = async (p) => {
|
|
38
|
+
t.value = p, c.value = p ? await F(p) : "";
|
|
39
39
|
}, m = () => {
|
|
40
40
|
u.value = !1, t.value = void 0, c.value = "";
|
|
41
|
-
},
|
|
41
|
+
}, y = () => {
|
|
42
42
|
t.value = void 0, c.value = "";
|
|
43
|
-
}, s = async (
|
|
43
|
+
}, s = async (p) => {
|
|
44
44
|
var S;
|
|
45
45
|
const o = l.payoutAccount.businessId || l.payoutAccount.store.id;
|
|
46
46
|
return ((S = l.payoutAccount.store) == null ? void 0 : S.event) === "ORDERING" ? await te.adminUpload(
|
|
47
47
|
`restaurant/${l.payoutAccount.store.id}/exterior/photo`,
|
|
48
|
-
|
|
48
|
+
p,
|
|
49
49
|
o,
|
|
50
50
|
l.payoutAccount.store.id
|
|
51
51
|
) : await te.adminUpload(
|
|
52
52
|
`business/${o}/exterior/photo`,
|
|
53
|
-
|
|
53
|
+
p,
|
|
54
54
|
o,
|
|
55
55
|
void 0
|
|
56
56
|
);
|
|
57
|
-
},
|
|
57
|
+
}, b = async () => {
|
|
58
58
|
if (t.value)
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const
|
|
60
|
+
v.value = !0;
|
|
61
|
+
const p = await s(t.value), o = {
|
|
62
62
|
...l.payoutAccount,
|
|
63
63
|
store: {
|
|
64
64
|
...l.payoutAccount.store,
|
|
65
|
-
exteriorPhoto:
|
|
65
|
+
exteriorPhoto: p
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
await l.onUpdate(o), u.value = !1, t.value = void 0, c.value = "", e.open({ type: "success", title: "Exterior photo updated successfully" });
|
|
69
|
-
} catch (
|
|
70
|
-
e.open({ type: "error", title: "Failed to update exterior photo", message: Z(
|
|
69
|
+
} catch (p) {
|
|
70
|
+
e.open({ type: "error", title: "Failed to update exterior photo", message: Z(p) });
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
v.value = !1;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
return (
|
|
75
|
+
return (p, o) => {
|
|
76
76
|
var P, V, x, E;
|
|
77
|
-
const S =
|
|
78
|
-
return
|
|
77
|
+
const S = d("FmCardHeader"), A = d("FmCardSection"), C = d("FmCard"), I = d("FmButton"), T = d("FmDropField");
|
|
78
|
+
return g(), G(j, null, [
|
|
79
79
|
r("div", Ve, [
|
|
80
80
|
n(C, {
|
|
81
81
|
horizontal: "",
|
|
@@ -193,13 +193,13 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
193
193
|
r("div", Se, [
|
|
194
194
|
o[19] || (o[19] = r("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
|
|
195
195
|
r("div", Ne, [
|
|
196
|
-
u.value ? (
|
|
196
|
+
u.value ? (g(), k(I, {
|
|
197
197
|
key: 0,
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
label: "Cancel",
|
|
200
200
|
onClick: m
|
|
201
201
|
})) : $("", !0),
|
|
202
|
-
u.value ? $("", !0) : (
|
|
202
|
+
u.value ? $("", !0) : (g(), k(I, {
|
|
203
203
|
key: 1,
|
|
204
204
|
variant: "primary",
|
|
205
205
|
label: "Edit Exterior Photo",
|
|
@@ -207,8 +207,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
207
207
|
}))
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
|
-
u.value ? (
|
|
211
|
-
c.value ? (
|
|
210
|
+
u.value ? (g(), G(j, { key: 0 }, [
|
|
211
|
+
c.value ? (g(), G(j, { key: 0 }, [
|
|
212
212
|
n(Q, {
|
|
213
213
|
document: c.value,
|
|
214
214
|
"business-id": a.payoutAccount.businessId,
|
|
@@ -220,23 +220,23 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
220
220
|
label: "Remove",
|
|
221
221
|
size: "md",
|
|
222
222
|
"prepend-icon": "delete",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: y
|
|
224
224
|
}),
|
|
225
225
|
n(I, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
label: "Save",
|
|
228
228
|
size: "md",
|
|
229
|
-
loading:
|
|
230
|
-
onClick:
|
|
229
|
+
loading: v.value,
|
|
230
|
+
onClick: b
|
|
231
231
|
}, null, 8, ["loading"])
|
|
232
232
|
])
|
|
233
|
-
], 64)) : (
|
|
233
|
+
], 64)) : (g(), k(T, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "h-[300px] w-full",
|
|
236
236
|
accept: ".png,.jpg,.jpeg,.webp,.pdf",
|
|
237
|
-
onFileUpload:
|
|
237
|
+
onFileUpload: f
|
|
238
238
|
}))
|
|
239
|
-
], 64)) : (
|
|
239
|
+
], 64)) : (g(), k(Q, {
|
|
240
240
|
key: 1,
|
|
241
241
|
document: a.payoutAccount.store.exteriorPhoto,
|
|
242
242
|
"business-id": a.payoutAccount.businessId,
|
|
@@ -266,7 +266,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
setup(a) {
|
|
269
|
-
const l = a, { emitAction: e, emitData:
|
|
269
|
+
const l = a, { emitAction: e, emitData: v } = ge(), u = ye({
|
|
270
270
|
companyName: l.initialValue.companyName,
|
|
271
271
|
regNo: l.initialValue.regNo,
|
|
272
272
|
bankName: l.initialValue.bankName,
|
|
@@ -274,15 +274,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
274
274
|
bankAccountNumber: l.initialValue.bankAccountNumber,
|
|
275
275
|
ssm: l.initialValue.ssm,
|
|
276
276
|
bankStatement: l.initialValue.bankStatement
|
|
277
|
-
}), t = U(), c = U(),
|
|
277
|
+
}), t = U(), c = U(), F = U(u.ssm ?? ""), f = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), y = X().trim().min(1, "Registration number is required"), s = X().trim().min(1, "Bank name is required"), b = X().trim().min(1, "Bank holder name is required"), p = X().trim().min(1, "Bank account number is required"), o = ke({
|
|
278
278
|
companyName: m,
|
|
279
|
-
regNo:
|
|
279
|
+
regNo: y,
|
|
280
280
|
bankName: s,
|
|
281
|
-
bankHolderName:
|
|
282
|
-
bankAccountNumber:
|
|
281
|
+
bankHolderName: b,
|
|
282
|
+
bankAccountNumber: p
|
|
283
283
|
}), S = () => {
|
|
284
284
|
const V = o.safeParse(u);
|
|
285
|
-
V.success && (
|
|
285
|
+
V.success && (v({
|
|
286
286
|
...V.data,
|
|
287
287
|
ssm: u.ssm,
|
|
288
288
|
bankStatement: u.bankStatement,
|
|
@@ -300,17 +300,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
const C = async (V) => {
|
|
303
|
-
t.value = V,
|
|
303
|
+
t.value = V, F.value = V ? await A(V) : "";
|
|
304
304
|
}, I = async (V) => {
|
|
305
|
-
c.value = V,
|
|
305
|
+
c.value = V, f.value = V ? await A(V) : "";
|
|
306
306
|
}, T = () => {
|
|
307
|
-
t.value = void 0,
|
|
307
|
+
t.value = void 0, F.value = "";
|
|
308
308
|
}, P = () => {
|
|
309
|
-
c.value = void 0,
|
|
309
|
+
c.value = void 0, f.value = "";
|
|
310
310
|
};
|
|
311
311
|
return (V, x) => {
|
|
312
|
-
const E =
|
|
313
|
-
return
|
|
312
|
+
const E = d("FmTextField"), B = d("FmSelect"), h = d("FmButton"), K = d("FmFormGroup"), H = d("FmDropField"), z = d("FmForm");
|
|
313
|
+
return g(), k(z, {
|
|
314
314
|
class: "flex flex-col gap-16",
|
|
315
315
|
onValidationSuccess: S
|
|
316
316
|
}, {
|
|
@@ -326,7 +326,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
326
326
|
label: "Registration Number",
|
|
327
327
|
"label-mark": "required",
|
|
328
328
|
"helper-text": "Registration Number must match uploaded SSM registration number.",
|
|
329
|
-
rules: i(N)(i(
|
|
329
|
+
rules: i(N)(i(y)),
|
|
330
330
|
autofocus: ""
|
|
331
331
|
}, null, 8, ["modelValue", "rules"]),
|
|
332
332
|
n(E, {
|
|
@@ -355,7 +355,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
355
355
|
"onUpdate:modelValue": x[3] || (x[3] = (M) => u.bankHolderName = M),
|
|
356
356
|
label: "Bank Holder",
|
|
357
357
|
"label-mark": "required",
|
|
358
|
-
rules: i(N)(i(
|
|
358
|
+
rules: i(N)(i(b))
|
|
359
359
|
}, null, 8, ["modelValue", "rules"]),
|
|
360
360
|
n(E, {
|
|
361
361
|
modelValue: u.bankAccountNumber,
|
|
@@ -363,7 +363,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
363
363
|
label: "Bank Account Number",
|
|
364
364
|
"label-mark": "required",
|
|
365
365
|
type: "number",
|
|
366
|
-
rules: i(N)(i(
|
|
366
|
+
rules: i(N)(i(p))
|
|
367
367
|
}, null, 8, ["modelValue", "rules"]),
|
|
368
368
|
x[11] || (x[11] = r("div", { class: "flex items-center my-2" }, [
|
|
369
369
|
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
@@ -372,15 +372,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
372
372
|
], -1)),
|
|
373
373
|
r("div", Ie, [
|
|
374
374
|
x[7] || (x[7] = r("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
375
|
-
|
|
375
|
+
F.value ? (g(), k(K, {
|
|
376
376
|
key: 0,
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": x[5] || (x[5] = (M) =>
|
|
377
|
+
modelValue: F.value,
|
|
378
|
+
"onUpdate:modelValue": x[5] || (x[5] = (M) => F.value = M),
|
|
379
379
|
label: "SSM"
|
|
380
380
|
}, {
|
|
381
381
|
default: w(() => [
|
|
382
382
|
n(Q, {
|
|
383
|
-
document:
|
|
383
|
+
document: F.value,
|
|
384
384
|
"business-id": a.businessId,
|
|
385
385
|
"restaurant-id": a.restaurantId
|
|
386
386
|
}, {
|
|
@@ -404,7 +404,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
404
404
|
})
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["modelValue"])) : (
|
|
407
|
+
}, 8, ["modelValue"])) : (g(), k(H, {
|
|
408
408
|
key: 1,
|
|
409
409
|
accept: ".pdf",
|
|
410
410
|
onFileUpload: C
|
|
@@ -412,15 +412,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
412
412
|
]),
|
|
413
413
|
r("div", De, [
|
|
414
414
|
x[8] || (x[8] = r("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
415
|
-
|
|
415
|
+
f.value ? (g(), k(K, {
|
|
416
416
|
key: 0,
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": x[6] || (x[6] = (M) =>
|
|
417
|
+
modelValue: f.value,
|
|
418
|
+
"onUpdate:modelValue": x[6] || (x[6] = (M) => f.value = M),
|
|
419
419
|
label: "Bank Statement"
|
|
420
420
|
}, {
|
|
421
421
|
default: w(() => [
|
|
422
422
|
n(Q, {
|
|
423
|
-
document:
|
|
423
|
+
document: f.value,
|
|
424
424
|
"business-id": a.businessId,
|
|
425
425
|
"restaurant-id": a.restaurantId
|
|
426
426
|
}, {
|
|
@@ -444,7 +444,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
444
444
|
})
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
|
-
}, 8, ["modelValue"])) : (
|
|
447
|
+
}, 8, ["modelValue"])) : (g(), k(H, {
|
|
448
448
|
key: 1,
|
|
449
449
|
accept: ".pdf",
|
|
450
450
|
onFileUpload: I
|
|
@@ -475,64 +475,64 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
setup(a) {
|
|
478
|
-
const l = a, e = U(!1),
|
|
479
|
-
var
|
|
478
|
+
const l = a, e = U(!1), v = de(), u = W(), t = xe.bankNameOptions(), c = () => {
|
|
479
|
+
var y, s, b, p, o, S, A, C, I, T;
|
|
480
480
|
return {
|
|
481
|
-
companyName: ((
|
|
481
|
+
companyName: ((y = l.payoutAccount.store) == null ? void 0 : y.companyName) ?? "",
|
|
482
482
|
regNo: ((s = l.payoutAccount.store) == null ? void 0 : s.regNo) ?? "",
|
|
483
|
-
bankName: ((
|
|
483
|
+
bankName: ((p = (b = l.payoutAccount.store) == null ? void 0 : b.bank) == null ? void 0 : p.name) ?? "",
|
|
484
484
|
bankHolderName: ((S = (o = l.payoutAccount.store) == null ? void 0 : o.bank) == null ? void 0 : S.holderName) ?? "",
|
|
485
485
|
bankAccountNumber: ((C = (A = l.payoutAccount.store) == null ? void 0 : A.bank) == null ? void 0 : C.accountNumber) ?? "",
|
|
486
486
|
ssm: ((I = l.payoutAccount.store) == null ? void 0 : I.ssm) ?? "",
|
|
487
487
|
bankStatement: ((T = l.payoutAccount.store) == null ? void 0 : T.bankStatement) ?? ""
|
|
488
488
|
};
|
|
489
|
-
},
|
|
489
|
+
}, F = async (y, s) => {
|
|
490
490
|
var o;
|
|
491
|
-
const
|
|
491
|
+
const b = (/* @__PURE__ */ new Date()).toISOString();
|
|
492
492
|
if (((o = l.payoutAccount.store) == null ? void 0 : o.event) === "ORDERING")
|
|
493
493
|
return await te.adminUpload(
|
|
494
|
-
`restaurant/${l.payoutAccount.store.id}/documents/${
|
|
494
|
+
`restaurant/${l.payoutAccount.store.id}/documents/${y}/${b}.pdf`,
|
|
495
495
|
s,
|
|
496
496
|
l.payoutAccount.businessId,
|
|
497
497
|
l.payoutAccount.store.id
|
|
498
498
|
);
|
|
499
|
-
const
|
|
499
|
+
const p = l.payoutAccount.businessId || l.payoutAccount.store.id;
|
|
500
500
|
return await te.adminUpload(
|
|
501
|
-
`business/${
|
|
501
|
+
`business/${p}/documents/${y}/${b}.pdf`,
|
|
502
502
|
s,
|
|
503
|
-
|
|
503
|
+
p,
|
|
504
504
|
void 0
|
|
505
505
|
);
|
|
506
|
-
},
|
|
506
|
+
}, f = async (y) => {
|
|
507
507
|
if (!l.payoutAccount.store) return;
|
|
508
508
|
let s = l.payoutAccount.store.ssm;
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
509
|
+
y.newSSM && (s = await F("ssm", y.newSSM));
|
|
510
|
+
let b = l.payoutAccount.store.bankStatement;
|
|
511
|
+
y.newBankStatement && (b = await F(
|
|
512
512
|
"bankStatement",
|
|
513
|
-
|
|
513
|
+
y.newBankStatement
|
|
514
514
|
));
|
|
515
|
-
const
|
|
515
|
+
const p = {
|
|
516
516
|
...l.payoutAccount,
|
|
517
517
|
store: {
|
|
518
518
|
...l.payoutAccount.store,
|
|
519
|
-
companyName:
|
|
520
|
-
regNo:
|
|
519
|
+
companyName: y.companyName,
|
|
520
|
+
regNo: y.regNo,
|
|
521
521
|
bank: {
|
|
522
522
|
...l.payoutAccount.store.bank ?? {},
|
|
523
|
-
name:
|
|
524
|
-
holderName:
|
|
525
|
-
accountNumber:
|
|
523
|
+
name: y.bankName,
|
|
524
|
+
holderName: y.bankHolderName,
|
|
525
|
+
accountNumber: y.bankAccountNumber
|
|
526
526
|
},
|
|
527
527
|
ssm: s,
|
|
528
|
-
bankStatement:
|
|
528
|
+
bankStatement: b
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
try {
|
|
532
|
-
e.value = !0, await l.onUpdate(
|
|
532
|
+
e.value = !0, await l.onUpdate(p), u.open({
|
|
533
533
|
type: "success",
|
|
534
534
|
title: "Settlement info updated successfully"
|
|
535
|
-
}),
|
|
535
|
+
}), v.close();
|
|
536
536
|
} catch (o) {
|
|
537
537
|
u.open({
|
|
538
538
|
type: "error",
|
|
@@ -543,8 +543,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
543
543
|
e.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}, m = () => {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var y;
|
|
547
|
+
v.close(), v.open({
|
|
548
548
|
title: "Edit Settlement Info",
|
|
549
549
|
closeButton: !0,
|
|
550
550
|
overlay: !0,
|
|
@@ -553,18 +553,18 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
553
553
|
initialValue: c(),
|
|
554
554
|
bankNameOptions: t,
|
|
555
555
|
businessId: l.payoutAccount.businessId,
|
|
556
|
-
restaurantId: ((
|
|
556
|
+
restaurantId: ((y = l.payoutAccount.store) == null ? void 0 : y.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
|
|
557
557
|
}
|
|
558
558
|
}).onPrimary((s) => {
|
|
559
|
-
|
|
559
|
+
f(s);
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
|
-
return (
|
|
562
|
+
return (y, s) => {
|
|
563
563
|
var A, C, I, T;
|
|
564
|
-
const
|
|
565
|
-
return
|
|
564
|
+
const b = d("FmButton"), p = d("FmCardHeader"), o = d("FmCardSection"), S = d("FmCard");
|
|
565
|
+
return g(), G(j, null, [
|
|
566
566
|
r("div", Re, [
|
|
567
|
-
n(
|
|
567
|
+
n(b, {
|
|
568
568
|
variant: "primary",
|
|
569
569
|
label: "Edit Settlement Info",
|
|
570
570
|
loading: e.value,
|
|
@@ -580,7 +580,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
580
580
|
default: w(() => [
|
|
581
581
|
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
582
582
|
default: w(() => [
|
|
583
|
-
n(
|
|
583
|
+
n(p, {
|
|
584
584
|
class: "p-0",
|
|
585
585
|
title: "Company Info",
|
|
586
586
|
subtitle: ""
|
|
@@ -613,7 +613,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
613
613
|
default: w(() => [
|
|
614
614
|
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
615
615
|
default: w(() => [
|
|
616
|
-
n(
|
|
616
|
+
n(p, {
|
|
617
617
|
class: "p-0",
|
|
618
618
|
title: "Bank Info",
|
|
619
619
|
subtitle: ""
|
|
@@ -688,11 +688,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
688
688
|
},
|
|
689
689
|
setup(a) {
|
|
690
690
|
const l = a, e = U(l.data.toString());
|
|
691
|
-
return le(e, (
|
|
692
|
-
l.onChange(parseFloat(
|
|
693
|
-
}), (
|
|
694
|
-
const t =
|
|
695
|
-
return
|
|
691
|
+
return le(e, (v) => {
|
|
692
|
+
l.onChange(parseFloat(v));
|
|
693
|
+
}), (v, u) => {
|
|
694
|
+
const t = d("FmTextField");
|
|
695
|
+
return g(), k(t, {
|
|
696
696
|
inputmode: "decimal",
|
|
697
697
|
modelValue: e.value,
|
|
698
698
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
@@ -712,11 +712,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
712
712
|
},
|
|
713
713
|
setup(a) {
|
|
714
714
|
const l = a, e = U(l.data.toString());
|
|
715
|
-
return le(e, (
|
|
716
|
-
l.onChange(parseInt(
|
|
717
|
-
}), (
|
|
718
|
-
const t =
|
|
719
|
-
return
|
|
715
|
+
return le(e, (v) => {
|
|
716
|
+
l.onChange(parseInt(v));
|
|
717
|
+
}), (v, u) => {
|
|
718
|
+
const t = d("FmTextField");
|
|
719
|
+
return g(), k(t, {
|
|
720
720
|
inputmode: "numeric",
|
|
721
721
|
modelValue: e.value,
|
|
722
722
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
@@ -731,11 +731,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
731
731
|
},
|
|
732
732
|
setup(a) {
|
|
733
733
|
const l = a, e = U(l.data.toString());
|
|
734
|
-
return le(e, (
|
|
735
|
-
l.onChange(parseFloat(
|
|
736
|
-
}), (
|
|
737
|
-
const t =
|
|
738
|
-
return
|
|
734
|
+
return le(e, (v) => {
|
|
735
|
+
l.onChange(parseFloat(v));
|
|
736
|
+
}), (v, u) => {
|
|
737
|
+
const t = d("FmTextField");
|
|
738
|
+
return g(), k(t, {
|
|
739
739
|
inputmode: "numeric",
|
|
740
740
|
modelValue: e.value,
|
|
741
741
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
@@ -760,17 +760,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
760
760
|
}
|
|
761
761
|
},
|
|
762
762
|
setup(a) {
|
|
763
|
-
const l = a, e = U(!1),
|
|
763
|
+
const l = a, e = U(!1), v = W(), u = de(), t = async (s) => {
|
|
764
764
|
try {
|
|
765
|
-
e.value = !0, await l.onUpdate(s),
|
|
765
|
+
e.value = !0, await l.onUpdate(s), v.open({
|
|
766
766
|
type: "success",
|
|
767
767
|
title: "Payout account update succesfully"
|
|
768
768
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
|
|
769
|
+
} catch (b) {
|
|
770
|
+
v.open({
|
|
771
771
|
type: "error",
|
|
772
772
|
title: "Error occurs when updating payout account",
|
|
773
|
-
message: Z(
|
|
773
|
+
message: Z(b)
|
|
774
774
|
});
|
|
775
775
|
} finally {
|
|
776
776
|
e.value = !1;
|
|
@@ -819,12 +819,12 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
819
819
|
}).onPrimary((s) => {
|
|
820
820
|
l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason = s, t(l.payoutAccount), u.close();
|
|
821
821
|
});
|
|
822
|
-
}, { search:
|
|
822
|
+
}, { search: F } = oe({
|
|
823
823
|
search: ""
|
|
824
|
-
}),
|
|
825
|
-
const { ssm: s, bank:
|
|
826
|
-
return s &&
|
|
827
|
-
}), m = U(""),
|
|
824
|
+
}), f = L(() => {
|
|
825
|
+
const { ssm: s, bank: b, bankStatement: p } = l.payoutAccount.store;
|
|
826
|
+
return s && b && b.name && b.accountNumber && b.holderName && p;
|
|
827
|
+
}), m = U(""), y = [
|
|
828
828
|
{
|
|
829
829
|
header: () => "Payment Method",
|
|
830
830
|
accessorKey: "issuer",
|
|
@@ -834,15 +834,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
834
834
|
header: () => "Rate",
|
|
835
835
|
accessorKey: "rate",
|
|
836
836
|
cell: ({ row: s }) => {
|
|
837
|
-
let
|
|
838
|
-
return s.original.rate && (
|
|
839
|
-
data:
|
|
840
|
-
onChange: (
|
|
837
|
+
let b = 0;
|
|
838
|
+
return s.original.rate && (b = s.original.rate.amount / Math.pow(10, s.original.rate.precision)), J(Ee, {
|
|
839
|
+
data: b,
|
|
840
|
+
onChange: (p) => {
|
|
841
841
|
const o = l.payoutAccount.methods.at(s.index);
|
|
842
842
|
o.rate || (o.rate = {
|
|
843
843
|
amount: 0,
|
|
844
844
|
precision: 4
|
|
845
|
-
}), o.rate.amount =
|
|
845
|
+
}), o.rate.amount = p * Math.pow(10, o.rate.precision);
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
848
|
}
|
|
@@ -851,15 +851,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
851
851
|
header: () => "Minimum Fee",
|
|
852
852
|
accessorKey: "minimumFee",
|
|
853
853
|
cell: ({ row: s }) => {
|
|
854
|
-
let
|
|
855
|
-
return s.original.minimumFee && (
|
|
856
|
-
data:
|
|
857
|
-
onChange: (
|
|
854
|
+
let b = 0;
|
|
855
|
+
return s.original.minimumFee && (b = s.original.minimumFee.amount / Math.pow(10, s.original.minimumFee.precision)), J(Oe, {
|
|
856
|
+
data: b,
|
|
857
|
+
onChange: (p) => {
|
|
858
858
|
const o = l.payoutAccount.methods.at(s.index);
|
|
859
859
|
o.minimumFee || (o.minimumFee = {
|
|
860
860
|
amount: 0,
|
|
861
861
|
precision: 2
|
|
862
|
-
}), o.minimumFee.amount =
|
|
862
|
+
}), o.minimumFee.amount = p * Math.pow(10, o.minimumFee.precision);
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
}
|
|
@@ -869,33 +869,33 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
869
869
|
accessorKey: "tPlus",
|
|
870
870
|
cell: ({ row: s }) => J(qe, {
|
|
871
871
|
data: s.original.tPlus ?? 0,
|
|
872
|
-
onChange: (
|
|
873
|
-
const
|
|
874
|
-
|
|
872
|
+
onChange: (b) => {
|
|
873
|
+
const p = l.payoutAccount.methods.at(s.index);
|
|
874
|
+
p.tPlus = b;
|
|
875
875
|
}
|
|
876
876
|
})
|
|
877
877
|
}
|
|
878
878
|
];
|
|
879
|
-
return (s,
|
|
880
|
-
const
|
|
881
|
-
return
|
|
879
|
+
return (s, b) => {
|
|
880
|
+
const p = d("FmRadio"), o = d("FmRadioGroup"), S = d("FmSwitch"), A = d("FmSearch"), C = d("FmTable"), I = d("FmButton");
|
|
881
|
+
return g(), G(j, null, [
|
|
882
882
|
r("div", Ge, [
|
|
883
883
|
r("div", Ke, [
|
|
884
884
|
n(o, {
|
|
885
885
|
modelValue: a.payoutAccount.status,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => a.payoutAccount.status = T),
|
|
887
887
|
label: "Account Status"
|
|
888
888
|
}, {
|
|
889
889
|
default: w(() => [
|
|
890
|
-
n(
|
|
890
|
+
n(p, {
|
|
891
891
|
value: "PENDING",
|
|
892
892
|
label: "Pending"
|
|
893
893
|
}),
|
|
894
|
-
n(
|
|
894
|
+
n(p, {
|
|
895
895
|
value: "APPROVED",
|
|
896
896
|
label: "Approved"
|
|
897
897
|
}),
|
|
898
|
-
n(
|
|
898
|
+
n(p, {
|
|
899
899
|
value: "REJECTED",
|
|
900
900
|
label: "Rejected",
|
|
901
901
|
onClick: c
|
|
@@ -907,19 +907,19 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
907
907
|
r("div", je, [
|
|
908
908
|
n(S, {
|
|
909
909
|
modelValue: a.payoutAccount.enable,
|
|
910
|
-
"onUpdate:modelValue":
|
|
911
|
-
disabled: !
|
|
910
|
+
"onUpdate:modelValue": b[1] || (b[1] = (T) => a.payoutAccount.enable = T),
|
|
911
|
+
disabled: !f.value,
|
|
912
912
|
label: "Enabled",
|
|
913
913
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
914
914
|
}, null, 8, ["modelValue", "disabled"])
|
|
915
915
|
])
|
|
916
916
|
]),
|
|
917
|
-
a.payoutAccount.enable ? (
|
|
917
|
+
a.payoutAccount.enable ? (g(), G(j, { key: 0 }, [
|
|
918
918
|
r("div", Ye, [
|
|
919
919
|
r("div", He, [
|
|
920
920
|
n(A, {
|
|
921
|
-
modelValue: i(
|
|
922
|
-
"onUpdate:modelValue":
|
|
921
|
+
modelValue: i(F),
|
|
922
|
+
"onUpdate:modelValue": b[2] || (b[2] = (T) => ae(F) ? F.value = T : null),
|
|
923
923
|
placeholder: "Search Method ..."
|
|
924
924
|
}, null, 8, ["modelValue"])
|
|
925
925
|
])
|
|
@@ -927,11 +927,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
927
927
|
n(C, {
|
|
928
928
|
class: "mt-6",
|
|
929
929
|
modelValue: m.value,
|
|
930
|
-
"onUpdate:modelValue":
|
|
930
|
+
"onUpdate:modelValue": b[3] || (b[3] = (T) => m.value = T),
|
|
931
931
|
"shrink-at": !1,
|
|
932
|
-
"search-value": i(
|
|
932
|
+
"search-value": i(F),
|
|
933
933
|
"row-data": a.payoutAccount.methods,
|
|
934
|
-
"column-defs":
|
|
934
|
+
"column-defs": y
|
|
935
935
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
936
936
|
], 64)) : $("", !0),
|
|
937
937
|
n(I, {
|
|
@@ -949,9 +949,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
949
949
|
emits: ["edit", "delete"],
|
|
950
950
|
setup(a, { emit: l }) {
|
|
951
951
|
const e = l;
|
|
952
|
-
return (
|
|
953
|
-
const t =
|
|
954
|
-
return
|
|
952
|
+
return (v, u) => {
|
|
953
|
+
const t = d("FmButton");
|
|
954
|
+
return g(), G("div", Le, [
|
|
955
955
|
n(t, {
|
|
956
956
|
variant: "plain",
|
|
957
957
|
"prepend-icon": "delete",
|
|
@@ -971,41 +971,41 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
971
971
|
}
|
|
972
972
|
},
|
|
973
973
|
setup(a) {
|
|
974
|
-
const l = W(), e = a, { isLoading:
|
|
974
|
+
const l = W(), e = a, { isLoading: v, startAsyncCall: u } = ne(), t = U([]);
|
|
975
975
|
function c() {
|
|
976
976
|
u(async () => {
|
|
977
977
|
t.value = await Y.getChannels(e.payoutAccount._id);
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
me(c);
|
|
981
|
-
function
|
|
981
|
+
function F() {
|
|
982
982
|
u(async () => {
|
|
983
983
|
try {
|
|
984
984
|
await Y.updateChannels(e.payoutAccount._id, t.value), l.open({
|
|
985
985
|
type: "success",
|
|
986
986
|
title: "Payout account channels update succesfully"
|
|
987
987
|
});
|
|
988
|
-
} catch (
|
|
988
|
+
} catch (y) {
|
|
989
989
|
l.open({
|
|
990
990
|
type: "error",
|
|
991
991
|
title: "Error occurs when updating payout account channels",
|
|
992
|
-
message: Z(
|
|
992
|
+
message: Z(y)
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function f() {
|
|
998
998
|
u(async () => {
|
|
999
999
|
try {
|
|
1000
1000
|
await Y.resetChannels(e.payoutAccount._id), t.value = await Y.getChannels(e.payoutAccount._id), l.open({
|
|
1001
1001
|
type: "success",
|
|
1002
1002
|
title: "Payout account channels reset succesfully"
|
|
1003
1003
|
});
|
|
1004
|
-
} catch (
|
|
1004
|
+
} catch (y) {
|
|
1005
1005
|
l.open({
|
|
1006
1006
|
type: "error",
|
|
1007
1007
|
title: "Error occurs when reset payout account channels",
|
|
1008
|
-
message: Z(
|
|
1008
|
+
message: Z(y)
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
@@ -1022,46 +1022,46 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1022
1022
|
{
|
|
1023
1023
|
header: () => "Display",
|
|
1024
1024
|
accessorKey: "icon",
|
|
1025
|
-
cell: ({ row:
|
|
1025
|
+
cell: ({ row: y }) => J("img", { src: y.original.icon, width: 32, height: 32 })
|
|
1026
1026
|
},
|
|
1027
1027
|
{
|
|
1028
1028
|
header: () => "Label",
|
|
1029
1029
|
accessorKey: "label",
|
|
1030
|
-
cell: ({ row:
|
|
1031
|
-
modelValue:
|
|
1032
|
-
"onUpdate:modelValue": (s) =>
|
|
1030
|
+
cell: ({ row: y }) => J(Fe.FmTextField, {
|
|
1031
|
+
modelValue: y.original.label,
|
|
1032
|
+
"onUpdate:modelValue": (s) => y.original.label = s
|
|
1033
1033
|
})
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
id: "actions",
|
|
1037
1037
|
header: () => "Actions",
|
|
1038
|
-
cell: ({ row:
|
|
1039
|
-
onDelete: () => t.value.splice(
|
|
1038
|
+
cell: ({ row: y }) => J(Ze, {
|
|
1039
|
+
onDelete: () => t.value.splice(y.index, 1)
|
|
1040
1040
|
})
|
|
1041
1041
|
}
|
|
1042
1042
|
];
|
|
1043
|
-
return (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1043
|
+
return (y, s) => {
|
|
1044
|
+
const b = d("FmButton"), p = d("FmTable");
|
|
1045
|
+
return g(), G(j, null, [
|
|
1046
1046
|
r("div", Je, [
|
|
1047
|
-
n(
|
|
1047
|
+
n(b, {
|
|
1048
1048
|
class: "mx-4",
|
|
1049
1049
|
variant: "destructive",
|
|
1050
1050
|
size: "md",
|
|
1051
1051
|
icon: "history",
|
|
1052
1052
|
label: "Reset",
|
|
1053
|
-
onClick:
|
|
1053
|
+
onClick: f
|
|
1054
1054
|
}),
|
|
1055
|
-
n(
|
|
1055
|
+
n(b, {
|
|
1056
1056
|
variant: "primary",
|
|
1057
1057
|
size: "md",
|
|
1058
1058
|
icon: "save",
|
|
1059
1059
|
label: "Save",
|
|
1060
|
-
onClick:
|
|
1060
|
+
onClick: F
|
|
1061
1061
|
})
|
|
1062
1062
|
]),
|
|
1063
|
-
n(
|
|
1064
|
-
loading: i(
|
|
1063
|
+
n(p, {
|
|
1064
|
+
loading: i(v),
|
|
1065
1065
|
"row-data": t.value,
|
|
1066
1066
|
"column-defs": m,
|
|
1067
1067
|
"shrink-at": !1
|
|
@@ -1086,15 +1086,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
setup(a) {
|
|
1089
|
-
var
|
|
1090
|
-
const e = U(((
|
|
1089
|
+
var v;
|
|
1090
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1091
1091
|
merchantId: "",
|
|
1092
1092
|
verifyKey: "",
|
|
1093
1093
|
secretKey: ""
|
|
1094
1094
|
});
|
|
1095
1095
|
return (u, t) => {
|
|
1096
|
-
const c =
|
|
1097
|
-
return
|
|
1096
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1097
|
+
return g(), k(f, {
|
|
1098
1098
|
ref: "form",
|
|
1099
1099
|
class: "flex flex-col gap-16",
|
|
1100
1100
|
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
@@ -1119,14 +1119,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1119
1119
|
rules: i(N)(i(D).string())
|
|
1120
1120
|
}, null, 8, ["modelValue", "rules"]),
|
|
1121
1121
|
r("div", We, [
|
|
1122
|
-
a.gateway ? (
|
|
1122
|
+
a.gateway ? (g(), k(F, {
|
|
1123
1123
|
key: 0,
|
|
1124
1124
|
class: "flex-1",
|
|
1125
1125
|
variant: "secondary",
|
|
1126
1126
|
label: "Delete",
|
|
1127
1127
|
onclick: () => a.onDelete()
|
|
1128
1128
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1129
|
-
n(
|
|
1129
|
+
n(F, {
|
|
1130
1130
|
type: "submit",
|
|
1131
1131
|
class: "flex-1",
|
|
1132
1132
|
variant: "primary",
|
|
@@ -1155,8 +1155,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
1157
|
setup(a) {
|
|
1158
|
-
var
|
|
1159
|
-
const e = U(((
|
|
1158
|
+
var v;
|
|
1159
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1160
1160
|
merchantId: "",
|
|
1161
1161
|
merchantName: "",
|
|
1162
1162
|
merchantCategoryCode: "",
|
|
@@ -1164,8 +1164,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1164
1164
|
storeName: ""
|
|
1165
1165
|
});
|
|
1166
1166
|
return (u, t) => {
|
|
1167
|
-
const c =
|
|
1168
|
-
return
|
|
1167
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1168
|
+
return g(), k(f, {
|
|
1169
1169
|
ref: "form",
|
|
1170
1170
|
class: "flex flex-col gap-16",
|
|
1171
1171
|
onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
|
|
@@ -1202,14 +1202,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1202
1202
|
rules: i(N)(i(D).string())
|
|
1203
1203
|
}, null, 8, ["modelValue", "rules"]),
|
|
1204
1204
|
r("div", et, [
|
|
1205
|
-
a.gateway ? (
|
|
1205
|
+
a.gateway ? (g(), k(F, {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
class: "flex-1",
|
|
1208
1208
|
variant: "secondary",
|
|
1209
1209
|
label: "Delete",
|
|
1210
1210
|
onclick: () => a.onDelete()
|
|
1211
1211
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1212
|
-
n(
|
|
1212
|
+
n(F, {
|
|
1213
1213
|
type: "submit",
|
|
1214
1214
|
class: "flex-1",
|
|
1215
1215
|
variant: "primary",
|
|
@@ -1238,14 +1238,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1238
1238
|
}
|
|
1239
1239
|
},
|
|
1240
1240
|
setup(a) {
|
|
1241
|
-
var
|
|
1242
|
-
const e = U(((
|
|
1241
|
+
var v;
|
|
1242
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1243
1243
|
merchantId: "",
|
|
1244
1244
|
cardMerchantId: ""
|
|
1245
1245
|
});
|
|
1246
1246
|
return (u, t) => {
|
|
1247
|
-
const c =
|
|
1248
|
-
return
|
|
1247
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1248
|
+
return g(), k(f, {
|
|
1249
1249
|
ref: "form",
|
|
1250
1250
|
class: "flex flex-col gap-16",
|
|
1251
1251
|
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
@@ -1264,14 +1264,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1264
1264
|
rules: i(N)(i(D).string())
|
|
1265
1265
|
}, null, 8, ["modelValue", "rules"]),
|
|
1266
1266
|
r("div", at, [
|
|
1267
|
-
a.gateway ? (
|
|
1267
|
+
a.gateway ? (g(), k(F, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
class: "flex-1",
|
|
1270
1270
|
variant: "secondary",
|
|
1271
1271
|
label: "Delete",
|
|
1272
1272
|
onclick: () => a.onDelete()
|
|
1273
1273
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1274
|
-
n(
|
|
1274
|
+
n(F, {
|
|
1275
1275
|
type: "submit",
|
|
1276
1276
|
class: "flex-1",
|
|
1277
1277
|
variant: "primary",
|
|
@@ -1300,8 +1300,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1300
1300
|
}
|
|
1301
1301
|
},
|
|
1302
1302
|
setup(a) {
|
|
1303
|
-
var
|
|
1304
|
-
const e = U(((
|
|
1303
|
+
var v;
|
|
1304
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1305
1305
|
merchantAccount: "",
|
|
1306
1306
|
username: "",
|
|
1307
1307
|
apiKey: "",
|
|
@@ -1310,8 +1310,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1310
1310
|
hmacKey: ""
|
|
1311
1311
|
});
|
|
1312
1312
|
return (u, t) => {
|
|
1313
|
-
const c =
|
|
1314
|
-
return
|
|
1313
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1314
|
+
return g(), k(f, {
|
|
1315
1315
|
ref: "form",
|
|
1316
1316
|
class: "flex flex-col gap-16",
|
|
1317
1317
|
onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
|
|
@@ -1353,14 +1353,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1353
1353
|
label: "HMac Key"
|
|
1354
1354
|
}, null, 8, ["modelValue"]),
|
|
1355
1355
|
r("div", ot, [
|
|
1356
|
-
a.gateway ? (
|
|
1356
|
+
a.gateway ? (g(), k(F, {
|
|
1357
1357
|
key: 0,
|
|
1358
1358
|
class: "flex-1",
|
|
1359
1359
|
variant: "secondary",
|
|
1360
1360
|
label: "Delete",
|
|
1361
1361
|
onclick: () => a.onDelete()
|
|
1362
1362
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1363
|
-
n(
|
|
1363
|
+
n(F, {
|
|
1364
1364
|
type: "submit",
|
|
1365
1365
|
class: "flex-1",
|
|
1366
1366
|
variant: "primary",
|
|
@@ -1389,14 +1389,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1389
1389
|
}
|
|
1390
1390
|
},
|
|
1391
1391
|
setup(a) {
|
|
1392
|
-
var
|
|
1393
|
-
const e = U(((
|
|
1392
|
+
var v;
|
|
1393
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1394
1394
|
appId: "",
|
|
1395
1395
|
privateKey: ""
|
|
1396
1396
|
});
|
|
1397
1397
|
return (u, t) => {
|
|
1398
|
-
const c =
|
|
1399
|
-
return
|
|
1398
|
+
const c = d("FmTextField"), F = d("FmTextarea"), f = d("FmButton"), m = d("FmForm");
|
|
1399
|
+
return g(), k(m, {
|
|
1400
1400
|
ref: "form",
|
|
1401
1401
|
class: "flex flex-col gap-16",
|
|
1402
1402
|
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
@@ -1404,26 +1404,26 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1404
1404
|
default: w(() => [
|
|
1405
1405
|
n(c, {
|
|
1406
1406
|
modelValue: e.value.appId,
|
|
1407
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1407
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.appId = y),
|
|
1408
1408
|
label: "App ID",
|
|
1409
1409
|
rules: i(N)(i(D).string())
|
|
1410
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1411
|
-
n(
|
|
1411
|
+
n(F, {
|
|
1412
1412
|
modelValue: e.value.privateKey,
|
|
1413
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1413
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.privateKey = y),
|
|
1414
1414
|
label: "Private Key",
|
|
1415
1415
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
1416
1416
|
rules: i(N)(i(D).string())
|
|
1417
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1418
1418
|
r("div", ut, [
|
|
1419
|
-
a.gateway ? (
|
|
1419
|
+
a.gateway ? (g(), k(f, {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
class: "flex-1",
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
label: "Delete",
|
|
1424
1424
|
onclick: () => a.onDelete()
|
|
1425
1425
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1426
|
-
n(
|
|
1426
|
+
n(f, {
|
|
1427
1427
|
type: "submit",
|
|
1428
1428
|
class: "flex-1",
|
|
1429
1429
|
variant: "primary",
|
|
@@ -1452,15 +1452,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1452
1452
|
}
|
|
1453
1453
|
},
|
|
1454
1454
|
setup(a) {
|
|
1455
|
-
var
|
|
1455
|
+
var v;
|
|
1456
1456
|
const e = U(
|
|
1457
|
-
((
|
|
1457
|
+
((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1458
1458
|
locationId: ""
|
|
1459
1459
|
}
|
|
1460
1460
|
);
|
|
1461
1461
|
return (u, t) => {
|
|
1462
|
-
const c =
|
|
1463
|
-
return
|
|
1462
|
+
const c = d("FmTextField"), F = d("FmForm");
|
|
1463
|
+
return g(), k(F, {
|
|
1464
1464
|
ref: "form",
|
|
1465
1465
|
class: "flex flex-col gap-16",
|
|
1466
1466
|
onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
|
|
@@ -1468,7 +1468,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1468
1468
|
default: w(() => [
|
|
1469
1469
|
n(c, {
|
|
1470
1470
|
modelValue: e.value.locationId,
|
|
1471
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1471
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.locationId = f),
|
|
1472
1472
|
label: "Location ID",
|
|
1473
1473
|
readonly: !0,
|
|
1474
1474
|
rules: i(N)(i(D).string())
|
|
@@ -1495,42 +1495,47 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1495
1495
|
}
|
|
1496
1496
|
},
|
|
1497
1497
|
setup(a) {
|
|
1498
|
-
var
|
|
1499
|
-
const e = U(
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
);
|
|
1498
|
+
var v;
|
|
1499
|
+
const e = U({
|
|
1500
|
+
merchantId: "",
|
|
1501
|
+
apiKey: "",
|
|
1502
|
+
isDirect: !1,
|
|
1503
|
+
...(v = a.gateway) == null ? void 0 : v.config
|
|
1504
|
+
});
|
|
1505
1505
|
return (u, t) => {
|
|
1506
|
-
const c =
|
|
1507
|
-
return
|
|
1506
|
+
const c = d("FmTextField"), F = d("FmSwitch"), f = d("FmButton"), m = d("FmForm");
|
|
1507
|
+
return g(), k(m, {
|
|
1508
1508
|
ref: "form",
|
|
1509
1509
|
class: "flex flex-col gap-16",
|
|
1510
|
-
onValidationSuccess: t[
|
|
1510
|
+
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
1511
1511
|
}, {
|
|
1512
1512
|
default: w(() => [
|
|
1513
1513
|
n(c, {
|
|
1514
1514
|
modelValue: e.value.merchantId,
|
|
1515
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1515
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.merchantId = y),
|
|
1516
1516
|
label: "Merchant ID",
|
|
1517
1517
|
rules: i(N)(i(D).string())
|
|
1518
1518
|
}, null, 8, ["modelValue", "rules"]),
|
|
1519
1519
|
n(c, {
|
|
1520
1520
|
modelValue: e.value.apiKey,
|
|
1521
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1521
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.apiKey = y),
|
|
1522
1522
|
label: "Api Key",
|
|
1523
1523
|
rules: i(N)(i(D).string())
|
|
1524
1524
|
}, null, 8, ["modelValue", "rules"]),
|
|
1525
|
+
n(F, {
|
|
1526
|
+
modelValue: e.value.isDirect,
|
|
1527
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.value.isDirect = y),
|
|
1528
|
+
label: "Is Direct"
|
|
1529
|
+
}, null, 8, ["modelValue"]),
|
|
1525
1530
|
r("div", it, [
|
|
1526
|
-
a.gateway ? (
|
|
1531
|
+
a.gateway ? (g(), k(f, {
|
|
1527
1532
|
key: 0,
|
|
1528
1533
|
class: "flex-1",
|
|
1529
1534
|
variant: "secondary",
|
|
1530
1535
|
label: "Delete",
|
|
1531
1536
|
onclick: () => a.onDelete()
|
|
1532
1537
|
}, null, 8, ["onclick"])) : $("", !0),
|
|
1533
|
-
n(
|
|
1538
|
+
n(f, {
|
|
1534
1539
|
type: "submit",
|
|
1535
1540
|
class: "flex-1",
|
|
1536
1541
|
variant: "primary",
|
|
@@ -1557,9 +1562,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1557
1562
|
}
|
|
1558
1563
|
},
|
|
1559
1564
|
setup(a) {
|
|
1560
|
-
const l = pe().currentCountry, e = l.value,
|
|
1565
|
+
const l = pe().currentCountry, e = l.value, v = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
|
|
1561
1566
|
gatewayTab: ""
|
|
1562
|
-
}),
|
|
1567
|
+
}), F = a, f = [
|
|
1563
1568
|
{
|
|
1564
1569
|
label: "Fiuu",
|
|
1565
1570
|
value: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1603,19 +1608,19 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1603
1608
|
region: [q.F_COUNTRY.enum.TH]
|
|
1604
1609
|
}
|
|
1605
1610
|
], m = U(
|
|
1606
|
-
|
|
1607
|
-
),
|
|
1611
|
+
F.payoutAccount.gateways ?? []
|
|
1612
|
+
), y = L(() => f.find((S) => S.value === c.value)), s = L(() => f.filter(
|
|
1608
1613
|
(S) => S.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1609
1614
|
));
|
|
1610
|
-
async function
|
|
1615
|
+
async function b(S) {
|
|
1611
1616
|
await t(async () => {
|
|
1612
1617
|
try {
|
|
1613
|
-
await Y.updateGateway(
|
|
1618
|
+
await Y.updateGateway(F.payoutAccount._id, S), v.open({
|
|
1614
1619
|
type: "success",
|
|
1615
1620
|
title: "Payout account gateways update succesfully"
|
|
1616
|
-
}),
|
|
1621
|
+
}), p.value = S.length === 0;
|
|
1617
1622
|
} catch (A) {
|
|
1618
|
-
|
|
1623
|
+
v.open({
|
|
1619
1624
|
type: "error",
|
|
1620
1625
|
title: "Error occurs when updating payout account gateways",
|
|
1621
1626
|
message: Z(A)
|
|
@@ -1623,59 +1628,59 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1623
1628
|
}
|
|
1624
1629
|
});
|
|
1625
1630
|
}
|
|
1626
|
-
const
|
|
1631
|
+
const p = U((F.payoutAccount.gateways ?? []).length === 0), o = L(() => e !== "MY" || !p.value);
|
|
1627
1632
|
return (S, A) => {
|
|
1628
1633
|
var P;
|
|
1629
|
-
const C =
|
|
1630
|
-
return
|
|
1631
|
-
i(e) ? (
|
|
1634
|
+
const C = d("FmCircularProgress"), I = d("FmSwitch"), T = d("FmTabs");
|
|
1635
|
+
return g(), G(j, null, [
|
|
1636
|
+
i(e) ? (g(), G("p", mt, [...A[2] || (A[2] = [
|
|
1632
1637
|
r("b", null, "Note: ", -1),
|
|
1633
1638
|
_(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1634
1639
|
])])) : $("", !0),
|
|
1635
|
-
i(u) ? (
|
|
1640
|
+
i(u) ? (g(), G("div", dt, [
|
|
1636
1641
|
n(C, { size: "xxl" })
|
|
1637
|
-
])) : (
|
|
1638
|
-
i(e) === "MY" ? (
|
|
1642
|
+
])) : (g(), G(j, { key: 2 }, [
|
|
1643
|
+
i(e) === "MY" ? (g(), k(I, {
|
|
1639
1644
|
key: 0,
|
|
1640
|
-
modelValue:
|
|
1641
|
-
"onUpdate:modelValue": A[0] || (A[0] = (V) =>
|
|
1645
|
+
modelValue: p.value,
|
|
1646
|
+
"onUpdate:modelValue": A[0] || (A[0] = (V) => p.value = V),
|
|
1642
1647
|
style: { "padding-bottom": "12px" },
|
|
1643
1648
|
label: "Use FeedMe's Default Account?"
|
|
1644
1649
|
}, null, 8, ["modelValue"])) : $("", !0),
|
|
1645
|
-
o.value ? (
|
|
1650
|
+
o.value ? (g(), k(T, {
|
|
1646
1651
|
key: 1,
|
|
1647
1652
|
"model-value": i(c),
|
|
1648
1653
|
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(c) ? c.value = V : null),
|
|
1649
1654
|
class: "mb-6",
|
|
1650
1655
|
items: s.value
|
|
1651
1656
|
}, null, 8, ["model-value", "items"])) : $("", !0),
|
|
1652
|
-
o.value && i(c) ? (
|
|
1657
|
+
o.value && i(c) ? (g(), k(ue((P = y.value) == null ? void 0 : P.render), re(se({ key: 2 }, {
|
|
1653
1658
|
gateway: m.value.find(
|
|
1654
1659
|
(V) => {
|
|
1655
1660
|
var x;
|
|
1656
|
-
return V.paymentGateway === ((x =
|
|
1661
|
+
return V.paymentGateway === ((x = y.value) == null ? void 0 : x.value);
|
|
1657
1662
|
}
|
|
1658
1663
|
),
|
|
1659
1664
|
onDelete: async () => {
|
|
1660
1665
|
m.value = m.value.filter(
|
|
1661
1666
|
(V) => {
|
|
1662
1667
|
var x;
|
|
1663
|
-
return V.paymentGateway !== ((x =
|
|
1668
|
+
return V.paymentGateway !== ((x = y.value) == null ? void 0 : x.value);
|
|
1664
1669
|
}
|
|
1665
|
-
),
|
|
1670
|
+
), b(m.value);
|
|
1666
1671
|
},
|
|
1667
1672
|
onUpdate: (V) => {
|
|
1668
1673
|
var E;
|
|
1669
1674
|
let x = m.value.find(
|
|
1670
1675
|
(B) => {
|
|
1671
1676
|
var h;
|
|
1672
|
-
return B.paymentGateway === ((h =
|
|
1677
|
+
return B.paymentGateway === ((h = y.value) == null ? void 0 : h.value);
|
|
1673
1678
|
}
|
|
1674
1679
|
);
|
|
1675
1680
|
x ? x.config = V : m.value.push({
|
|
1676
|
-
paymentGateway: (E =
|
|
1681
|
+
paymentGateway: (E = y.value) == null ? void 0 : E.value,
|
|
1677
1682
|
config: V
|
|
1678
|
-
}),
|
|
1683
|
+
}), b(m.value);
|
|
1679
1684
|
}
|
|
1680
1685
|
})), null, 16)) : $("", !0)
|
|
1681
1686
|
], 64))
|
|
@@ -1709,9 +1714,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1709
1714
|
}
|
|
1710
1715
|
}
|
|
1711
1716
|
);
|
|
1712
|
-
return (
|
|
1713
|
-
const t =
|
|
1714
|
-
return
|
|
1717
|
+
return (v, u) => {
|
|
1718
|
+
const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
|
|
1719
|
+
return g(), k(F, {
|
|
1715
1720
|
ref: "form",
|
|
1716
1721
|
class: "flex flex-col gap-16",
|
|
1717
1722
|
onValidationSuccess: u[3] || (u[3] = () => a.onUpdate(e.value))
|
|
@@ -1719,27 +1724,27 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1719
1724
|
default: w(() => [
|
|
1720
1725
|
n(t, {
|
|
1721
1726
|
modelValue: e.value.gateway,
|
|
1722
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1727
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1723
1728
|
label: "Gateway",
|
|
1724
1729
|
disabled: !0,
|
|
1725
1730
|
rules: i(N)(i(D).string())
|
|
1726
1731
|
}, null, 8, ["modelValue", "rules"]),
|
|
1727
1732
|
n(t, {
|
|
1728
1733
|
modelValue: e.value.config.gateway,
|
|
1729
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1734
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.gateway = f),
|
|
1730
1735
|
label: "Gateway ID",
|
|
1731
1736
|
disabled: !0,
|
|
1732
1737
|
rules: i(N)(i(D).string())
|
|
1733
1738
|
}, null, 8, ["modelValue", "rules"]),
|
|
1734
1739
|
n(t, {
|
|
1735
1740
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1736
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1741
|
+
"onUpdate:modelValue": u[2] || (u[2] = (f) => e.value.config.gatewayMerchantId = f),
|
|
1737
1742
|
label: "Gateway Merchant ID",
|
|
1738
1743
|
disabled: !0,
|
|
1739
1744
|
rules: i(N)(i(D).string())
|
|
1740
1745
|
}, null, 8, ["modelValue", "rules"]),
|
|
1741
1746
|
r("div", yt, [
|
|
1742
|
-
a.gateway ? (
|
|
1747
|
+
a.gateway ? (g(), k(c, {
|
|
1743
1748
|
key: 0,
|
|
1744
1749
|
class: "flex-1",
|
|
1745
1750
|
variant: "secondary",
|
|
@@ -1784,9 +1789,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1784
1789
|
}
|
|
1785
1790
|
}
|
|
1786
1791
|
);
|
|
1787
|
-
return (
|
|
1788
|
-
const t =
|
|
1789
|
-
return
|
|
1792
|
+
return (v, u) => {
|
|
1793
|
+
const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
|
|
1794
|
+
return g(), k(F, {
|
|
1790
1795
|
ref: "form",
|
|
1791
1796
|
class: "flex flex-col gap-16",
|
|
1792
1797
|
onValidationSuccess: u[2] || (u[2] = () => a.onUpdate(e.value))
|
|
@@ -1794,20 +1799,20 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1794
1799
|
default: w(() => [
|
|
1795
1800
|
n(t, {
|
|
1796
1801
|
modelValue: e.value.gateway,
|
|
1797
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1802
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1798
1803
|
label: "Gateway",
|
|
1799
1804
|
disabled: !0,
|
|
1800
1805
|
rules: i(N)(i(D).string())
|
|
1801
1806
|
}, null, 8, ["modelValue", "rules"]),
|
|
1802
1807
|
n(t, {
|
|
1803
1808
|
modelValue: e.value.config.merchantId,
|
|
1804
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1809
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.merchantId = f),
|
|
1805
1810
|
label: "Merchant ID",
|
|
1806
1811
|
disabled: !0,
|
|
1807
1812
|
rules: i(N)(i(D).string())
|
|
1808
1813
|
}, null, 8, ["modelValue", "rules"]),
|
|
1809
1814
|
r("div", vt, [
|
|
1810
|
-
a.gateway ? (
|
|
1815
|
+
a.gateway ? (g(), k(c, {
|
|
1811
1816
|
key: 0,
|
|
1812
1817
|
class: "flex-1",
|
|
1813
1818
|
variant: "secondary",
|
|
@@ -1838,9 +1843,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1838
1843
|
}
|
|
1839
1844
|
},
|
|
1840
1845
|
setup(a) {
|
|
1841
|
-
const l = pe().currentCountry, e = W(), { isLoading:
|
|
1846
|
+
const l = pe().currentCountry, e = W(), { isLoading: v, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
|
|
1842
1847
|
tokenTab: ""
|
|
1843
|
-
}), c = a,
|
|
1848
|
+
}), c = a, F = [
|
|
1844
1849
|
{
|
|
1845
1850
|
label: "Google Pay",
|
|
1846
1851
|
value: "googlePay",
|
|
@@ -1855,30 +1860,30 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1855
1860
|
render: ft,
|
|
1856
1861
|
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1857
1862
|
}
|
|
1858
|
-
],
|
|
1859
|
-
(
|
|
1863
|
+
], f = U(c.payoutAccount.tokens ?? []), m = L(() => F.find((b) => b.value === t.value)), y = L(() => F.filter(
|
|
1864
|
+
(b) => b.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1860
1865
|
));
|
|
1861
|
-
async function s(
|
|
1866
|
+
async function s(b) {
|
|
1862
1867
|
await u(async () => {
|
|
1863
1868
|
try {
|
|
1864
|
-
await Y.updateTokens(c.payoutAccount._id,
|
|
1869
|
+
await Y.updateTokens(c.payoutAccount._id, b), e.open({
|
|
1865
1870
|
type: "success",
|
|
1866
1871
|
title: "Payout account tokens gateway update succesfully"
|
|
1867
1872
|
});
|
|
1868
|
-
} catch (
|
|
1873
|
+
} catch (p) {
|
|
1869
1874
|
e.open({
|
|
1870
1875
|
type: "error",
|
|
1871
1876
|
title: "Error occurs when updating payout account tokens",
|
|
1872
|
-
message: Z(
|
|
1877
|
+
message: Z(p)
|
|
1873
1878
|
});
|
|
1874
1879
|
}
|
|
1875
1880
|
});
|
|
1876
1881
|
}
|
|
1877
|
-
return (
|
|
1882
|
+
return (b, p) => {
|
|
1878
1883
|
var A;
|
|
1879
|
-
const o =
|
|
1880
|
-
return
|
|
1881
|
-
|
|
1884
|
+
const o = d("FmCircularProgress"), S = d("FmTabs");
|
|
1885
|
+
return g(), G(j, null, [
|
|
1886
|
+
p[1] || (p[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1882
1887
|
r("b", null, "Note: "),
|
|
1883
1888
|
_(" 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. "),
|
|
1884
1889
|
r("br"),
|
|
@@ -1886,32 +1891,32 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1886
1891
|
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. `),
|
|
1887
1892
|
r("br")
|
|
1888
1893
|
], -1)),
|
|
1889
|
-
i(
|
|
1894
|
+
i(v) ? (g(), G("div", gt, [
|
|
1890
1895
|
n(o, { size: "xxl" })
|
|
1891
|
-
])) : (
|
|
1896
|
+
])) : (g(), k(S, {
|
|
1892
1897
|
key: 1,
|
|
1893
1898
|
"model-value": i(t),
|
|
1894
|
-
"onUpdate:modelValue":
|
|
1899
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => ae(t) ? t.value = C : null),
|
|
1895
1900
|
class: "mb-6 mt-6",
|
|
1896
|
-
items:
|
|
1901
|
+
items: y.value
|
|
1897
1902
|
}, null, 8, ["model-value", "items"])),
|
|
1898
|
-
i(t) ? (
|
|
1899
|
-
gateway:
|
|
1903
|
+
i(t) ? (g(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
|
|
1904
|
+
gateway: f.value.find((C) => {
|
|
1900
1905
|
var I;
|
|
1901
1906
|
return C.type === ((I = m.value) == null ? void 0 : I.value);
|
|
1902
1907
|
}),
|
|
1903
1908
|
onDelete: async () => {
|
|
1904
|
-
|
|
1909
|
+
f.value = f.value.filter((C) => {
|
|
1905
1910
|
var I;
|
|
1906
1911
|
return C.type !== ((I = m.value) == null ? void 0 : I.value);
|
|
1907
|
-
}), s(
|
|
1912
|
+
}), s(f.value);
|
|
1908
1913
|
},
|
|
1909
1914
|
onUpdate: (C) => {
|
|
1910
|
-
let I =
|
|
1915
|
+
let I = f.value.find((T) => {
|
|
1911
1916
|
var P;
|
|
1912
1917
|
return T.type === ((P = m.value) == null ? void 0 : P.value);
|
|
1913
1918
|
});
|
|
1914
|
-
I ? I.config = C :
|
|
1919
|
+
I ? I.config = C : f.value.push(C), s(f.value);
|
|
1915
1920
|
}
|
|
1916
1921
|
})), null, 16)) : $("", !0)
|
|
1917
1922
|
], 64);
|
|
@@ -1928,14 +1933,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1928
1933
|
setup(a) {
|
|
1929
1934
|
const l = a, { tab: e } = oe({
|
|
1930
1935
|
tab: "information"
|
|
1931
|
-
}), { isLoading:
|
|
1932
|
-
async function
|
|
1936
|
+
}), { isLoading: v, startAsyncCall: u } = ne(!0), t = ve(), c = U();
|
|
1937
|
+
async function F(s) {
|
|
1933
1938
|
await Y.updateById(
|
|
1934
1939
|
l.accountId,
|
|
1935
1940
|
s
|
|
1936
1941
|
), c.value = await Y.readById(l.accountId);
|
|
1937
1942
|
}
|
|
1938
|
-
const
|
|
1943
|
+
const f = [
|
|
1939
1944
|
{
|
|
1940
1945
|
label: "Information",
|
|
1941
1946
|
value: "information",
|
|
@@ -1979,28 +1984,28 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1979
1984
|
});
|
|
1980
1985
|
}
|
|
1981
1986
|
me(m);
|
|
1982
|
-
const
|
|
1983
|
-
const s =
|
|
1987
|
+
const y = L(() => {
|
|
1988
|
+
const s = f.reduce((b, p) => b || (p.children ? p.children.find((o) => o.value === e.value) || null : p.value === e.value ? p : null), null);
|
|
1984
1989
|
return s == null ? void 0 : s.render;
|
|
1985
1990
|
});
|
|
1986
|
-
return (s,
|
|
1991
|
+
return (s, b) => {
|
|
1987
1992
|
var o;
|
|
1988
|
-
const
|
|
1989
|
-
return
|
|
1993
|
+
const p = d("FmTabs");
|
|
1994
|
+
return g(), k(be, {
|
|
1990
1995
|
title: `Payout Account (${(o = c.value) == null ? void 0 : o._id})`,
|
|
1991
|
-
loading: i(
|
|
1996
|
+
loading: i(v),
|
|
1992
1997
|
onBack: i(t).back
|
|
1993
1998
|
}, {
|
|
1994
1999
|
default: w(() => [
|
|
1995
|
-
n(
|
|
2000
|
+
n(p, {
|
|
1996
2001
|
"model-value": i(e),
|
|
1997
|
-
"onUpdate:modelValue":
|
|
2002
|
+
"onUpdate:modelValue": b[0] || (b[0] = (S) => ae(e) ? e.value = S : null),
|
|
1998
2003
|
class: "mb-6",
|
|
1999
|
-
items:
|
|
2004
|
+
items: f
|
|
2000
2005
|
}, null, 8, ["model-value"]),
|
|
2001
|
-
i(e) ? (
|
|
2006
|
+
i(e) ? (g(), k(ue(y.value), re(se({ key: 0 }, {
|
|
2002
2007
|
payoutAccount: c.value,
|
|
2003
|
-
onUpdate:
|
|
2008
|
+
onUpdate: F
|
|
2004
2009
|
})), null, 16)) : $("", !0)
|
|
2005
2010
|
]),
|
|
2006
2011
|
_: 1
|