@feedmepos/mf-payment 1.8.1-dev → 1.8.2-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-Cuzla1oY.js → Actions.vue_vue_type_script_setup_true_lang-DTEtNSn0.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-D79gyND3.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Cd6D7JxK.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-OINuOkas.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzZePzBx.js} +2 -2
- package/dist/{Chargeback-sQQp7fCd.js → Chargeback--k3Sc269.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-C42uptsa.js → DocumentViewer.vue_vue_type_script_setup_true_lang-qt0R7G3l.js} +1 -1
- package/dist/{OnboardForm-CaOEbQ22.js → OnboardForm-BQf8mMqv.js} +6 -6
- package/dist/{OnboardForm-9mnBqMmd.js → OnboardForm-me9MIQPW.js} +6 -6
- package/dist/{OnboardSubmission-BeP-x0v2.js → OnboardSubmission-CRy_a6MZ.js} +6 -6
- package/dist/{OnboardSubmission-BdRBebcC.js → OnboardSubmission-D-q3ryM1.js} +3 -3
- package/dist/{PayoutAccount-PBySjzsl.js → PayoutAccount-BBZIFYHv.js} +7 -7
- package/dist/{PayoutAccount-DOFljBvE.js → PayoutAccount-CA0-FenU.js} +5 -5
- package/dist/{PayoutAccountSetting-CWAxe_Bk.js → PayoutAccountSetting-E8c0t725.js} +679 -609
- package/dist/{Restaurant-DoMkz27y.js → Restaurant-CJZVhzJB.js} +4 -4
- package/dist/{RestaurantSetting-Bz6qwpNC.js → RestaurantSetting-C39PQEKt.js} +156 -81
- package/dist/{Settlement-CMayu7aU.js → Settlement-DssD_F2s.js} +4 -4
- package/dist/{Settlement-BYZHrs8E.js → Settlement-DzzY0DMx.js} +3 -3
- package/dist/{SettlementTransactions-CyxL85fB.js → SettlementTransactions-D2Xioa5P.js} +5 -5
- package/dist/{SettlementTransactions-CRPIYXVW.js → SettlementTransactions-DBn9ZZrx.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DWJ_miup.js → Status.vue_vue_type_script_setup_true_lang-BvC2RAT0.js} +1 -1
- package/dist/{Terminal-DkwnRFFL.js → Terminal-BqXWec-h.js} +5 -5
- package/dist/{TerminalSetting-CGlMvxa8.js → TerminalSetting-D1j2HcJX.js} +5 -5
- package/dist/{Transaction-8t3Tgjwa.js → Transaction-D09SeHHy.js} +10 -10
- package/dist/{Transaction-fm0B5nRC.js → Transaction-GM0aWwMD.js} +11 -11
- package/dist/{TransactionOld-BCUkorA2.js → TransactionOld-B7C7w_nF.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DRthK8zD.js → TransactionStatus.vue_vue_type_script_setup_true_lang-gwTbVHHZ.js} +1 -1
- package/dist/{app-HurNvNS5.js → app-IMZnVpiW.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-DVLU2t_q.js → assets-CdIR0Fo6.js} +1 -1
- package/dist/{grafana-BsMCGCzE.js → grafana-BUVwK44E.js} +1 -1
- package/dist/{index-CYzo-plj.js → index-BDYQ2vRc.js} +1 -1
- package/dist/{index-BifkD6JA.js → index-COCd1-Jr.js} +1 -1
- package/dist/{index-03Hs823S.js → index-CQkc3pUj.js} +1 -1
- package/dist/{index-BwALxMhM.js → index-Cq0_oRPO.js} +2820 -2771
- package/dist/{index-DHD88s-a.js → index-CtTi9CvW.js} +2 -2
- package/dist/{index-C4XdtTWx.js → index-D3XosMuu.js} +1 -1
- package/dist/{index-nSB5f6HJ.js → index-DyEjrl8n.js} +1 -1
- package/dist/{index-DsLgOa7d.js → index-DzqFl5Rn.js} +1 -1
- package/dist/{index-BmEpfjpT.js → index-aeXyggRd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BsBHrQLx.js → index.vue_vue_type_script_setup_true_lang-Dv8NeEwd.js} +1 -1
- package/dist/{onboard-submission-CPRheDQl.js → onboard-submission-D_xLxM1D.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-D3OetCJc.js → payout-account-C8GNZ2kc.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +44 -32
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +41 -0
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- 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 +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.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 +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +48 -0
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
- 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 +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -64
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
- package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as Y } from "./index-
|
|
3
|
-
import { u as ne, e as
|
|
1
|
+
import { defineComponent as R, ref as U, resolveComponent as p, openBlock as F, 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-CQkc3pUj.js";
|
|
3
|
+
import { u as ne, e as q } from "./index-Cq0_oRPO.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-BDYQ2vRc.js";
|
|
7
|
+
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-qt0R7G3l.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-D3XosMuu.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-
|
|
13
|
-
import { s as X, o as ke, z as N, a as
|
|
12
|
+
import { P as xe } from "./payout-account-C8GNZ2kc.js";
|
|
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";
|
|
16
|
-
const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se = { class: "flex justify-between items-center mb-6" }, Ne = { class: "flex gap-4" },
|
|
16
|
+
const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se = { class: "flex justify-between items-center mb-6" }, Ne = { class: "flex gap-4" }, Ue = { class: "flex gap-4 mt-4" }, Ce = /* @__PURE__ */ R({
|
|
17
17
|
__name: "Information",
|
|
18
18
|
props: {
|
|
19
19
|
payoutAccount: {
|
|
@@ -26,83 +26,83 @@ 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(),
|
|
30
|
-
const
|
|
29
|
+
const l = a, e = W(), b = U(!1), u = U(!1), t = U(), c = U(""), g = (d) => {
|
|
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
|
-
},
|
|
35
|
+
}, o.readAsDataURL(d);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
t.value = d, c.value = d ? await
|
|
37
|
+
}, v = async (d) => {
|
|
38
|
+
t.value = d, c.value = d ? await g(d) : "";
|
|
39
39
|
}, m = () => {
|
|
40
40
|
u.value = !1, t.value = void 0, c.value = "";
|
|
41
|
-
},
|
|
41
|
+
}, f = () => {
|
|
42
42
|
t.value = void 0, c.value = "";
|
|
43
|
-
},
|
|
43
|
+
}, s = async (d) => {
|
|
44
44
|
var S;
|
|
45
|
-
const
|
|
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
|
d,
|
|
49
|
-
|
|
49
|
+
o,
|
|
50
50
|
l.payoutAccount.store.id
|
|
51
51
|
) : await te.adminUpload(
|
|
52
|
-
`business/${
|
|
52
|
+
`business/${o}/exterior/photo`,
|
|
53
53
|
d,
|
|
54
|
-
|
|
54
|
+
o,
|
|
55
55
|
void 0
|
|
56
56
|
);
|
|
57
|
-
},
|
|
57
|
+
}, y = async () => {
|
|
58
58
|
if (t.value)
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const d = await
|
|
60
|
+
b.value = !0;
|
|
61
|
+
const d = await s(t.value), o = {
|
|
62
62
|
...l.payoutAccount,
|
|
63
63
|
store: {
|
|
64
64
|
...l.payoutAccount.store,
|
|
65
65
|
exteriorPhoto: d
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
await l.onUpdate(
|
|
68
|
+
await l.onUpdate(o), u.value = !1, t.value = void 0, c.value = "", e.open({ type: "success", title: "Exterior photo updated successfully" });
|
|
69
69
|
} catch (d) {
|
|
70
70
|
e.open({ type: "error", title: "Failed to update exterior photo", message: Z(d) });
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
b.value = !1;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
return (d,
|
|
76
|
-
var
|
|
77
|
-
const S =
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
return (d, o) => {
|
|
76
|
+
var P, V, x, E;
|
|
77
|
+
const S = p("FmCardHeader"), A = p("FmCardSection"), C = p("FmCard"), I = p("FmButton"), T = p("FmDropField");
|
|
78
|
+
return F(), G(j, null, [
|
|
79
|
+
r("div", Ve, [
|
|
80
|
+
n(C, {
|
|
81
81
|
horizontal: "",
|
|
82
82
|
class: "flex-1 p-6",
|
|
83
83
|
variant: "elevated"
|
|
84
84
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
87
|
-
default:
|
|
88
|
-
|
|
85
|
+
default: w(() => [
|
|
86
|
+
n(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
87
|
+
default: w(() => [
|
|
88
|
+
n(S, {
|
|
89
89
|
class: "p-0",
|
|
90
90
|
title: "Account Info",
|
|
91
91
|
subtitle: ""
|
|
92
92
|
}),
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
var B,
|
|
93
|
+
n(A, { class: "p-0" }, {
|
|
94
|
+
default: w(() => {
|
|
95
|
+
var B, h, K, H, z;
|
|
96
96
|
return [
|
|
97
|
-
|
|
98
|
-
_(": " +
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
_(": " +
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
_(": " +
|
|
105
|
-
|
|
97
|
+
o[1] || (o[1] = r("b", null, "For", -1)),
|
|
98
|
+
_(": " + O((h = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : h.event) + " ", 1),
|
|
99
|
+
o[2] || (o[2] = r("br", null, null, -1)),
|
|
100
|
+
o[3] || (o[3] = r("b", null, "Reference", -1)),
|
|
101
|
+
_(": " + O((H = (K = a.payoutAccount) == null ? void 0 : K.store) == null ? void 0 : H.id), 1),
|
|
102
|
+
o[4] || (o[4] = r("br", null, null, -1)),
|
|
103
|
+
o[5] || (o[5] = r("b", null, "Business", -1)),
|
|
104
|
+
_(": " + O((z = a.payoutAccount) == null ? void 0 : z.businessId), 1),
|
|
105
|
+
o[6] || (o[6] = r("br", null, null, -1))
|
|
106
106
|
];
|
|
107
107
|
}),
|
|
108
108
|
_: 1
|
|
@@ -113,32 +113,32 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
115
|
}),
|
|
116
|
-
|
|
116
|
+
n(C, {
|
|
117
117
|
horizontal: "",
|
|
118
118
|
class: "flex-1 p-6",
|
|
119
119
|
variant: "elevated"
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
default:
|
|
124
|
-
|
|
121
|
+
default: w(() => [
|
|
122
|
+
n(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
123
|
+
default: w(() => [
|
|
124
|
+
n(S, {
|
|
125
125
|
class: "p-0",
|
|
126
126
|
title: "Key Person",
|
|
127
127
|
subtitle: ""
|
|
128
128
|
}),
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
var B,
|
|
129
|
+
n(A, { class: "p-0" }, {
|
|
130
|
+
default: w(() => {
|
|
131
|
+
var B, h, K, H, z, M, ie, ce;
|
|
132
132
|
return [
|
|
133
|
-
|
|
134
|
-
_(": " +
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
_(": " +
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
_(": " +
|
|
141
|
-
|
|
133
|
+
o[7] || (o[7] = r("b", null, "Email", -1)),
|
|
134
|
+
_(": " + O((K = (h = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : h.keyPerson) == null ? void 0 : K.email) + " ", 1),
|
|
135
|
+
o[8] || (o[8] = r("br", null, null, -1)),
|
|
136
|
+
o[9] || (o[9] = r("b", null, "Name", -1)),
|
|
137
|
+
_(": " + O((M = (z = (H = a.payoutAccount) == null ? void 0 : H.store) == null ? void 0 : z.keyPerson) == null ? void 0 : M.name), 1),
|
|
138
|
+
o[10] || (o[10] = r("br", null, null, -1)),
|
|
139
|
+
o[11] || (o[11] = r("b", null, "Phone", -1)),
|
|
140
|
+
_(": " + O((ce = (ie = a.payoutAccount) == null ? void 0 : ie.store.keyPerson) == null ? void 0 : ce.phone), 1),
|
|
141
|
+
o[12] || (o[12] = r("br", null, null, -1))
|
|
142
142
|
];
|
|
143
143
|
}),
|
|
144
144
|
_: 1
|
|
@@ -150,35 +150,35 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
150
150
|
_: 1
|
|
151
151
|
})
|
|
152
152
|
]),
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
r("div", Ae, [
|
|
154
|
+
n(C, {
|
|
155
155
|
horizontal: "",
|
|
156
156
|
class: "flex-1 p-6",
|
|
157
157
|
variant: "elevated"
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
default:
|
|
162
|
-
|
|
159
|
+
default: w(() => [
|
|
160
|
+
n(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
161
|
+
default: w(() => [
|
|
162
|
+
n(S, {
|
|
163
163
|
class: "p-0",
|
|
164
164
|
title: "Status Info",
|
|
165
165
|
subtitle: ""
|
|
166
166
|
}),
|
|
167
|
-
|
|
168
|
-
default:
|
|
169
|
-
var B,
|
|
167
|
+
n(A, { class: "p-0" }, {
|
|
168
|
+
default: w(() => {
|
|
169
|
+
var B, h, K;
|
|
170
170
|
return [
|
|
171
|
-
|
|
172
|
-
_(": " +
|
|
171
|
+
o[13] || (o[13] = r("b", null, "Submission Date", -1)),
|
|
172
|
+
_(": " + O((B = a.payoutAccount) != null && B.submissionDate ? i(fe)(a.payoutAccount.submissionDate).format(
|
|
173
173
|
"YYYY-MM-DD HH:mm:ss"
|
|
174
174
|
) : "—"), 1),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
_(": " +
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
_(": " +
|
|
181
|
-
|
|
175
|
+
o[14] || (o[14] = r("br", null, null, -1)),
|
|
176
|
+
o[15] || (o[15] = r("b", null, "Status By", -1)),
|
|
177
|
+
_(": " + O(((h = a.payoutAccount) == null ? void 0 : h.statusBy) ?? "—"), 1),
|
|
178
|
+
o[16] || (o[16] = r("br", null, null, -1)),
|
|
179
|
+
o[17] || (o[17] = r("b", null, "Status Reason", -1)),
|
|
180
|
+
_(": " + O(((K = a.payoutAccount) == null ? void 0 : K.statusReason) ?? "—"), 1),
|
|
181
|
+
o[18] || (o[18] = r("br", null, null, -1))
|
|
182
182
|
];
|
|
183
183
|
}),
|
|
184
184
|
_: 1
|
|
@@ -190,62 +190,62 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
190
190
|
_: 1
|
|
191
191
|
})
|
|
192
192
|
]),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
u.value ? (
|
|
193
|
+
r("div", Se, [
|
|
194
|
+
o[19] || (o[19] = r("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
|
|
195
|
+
r("div", Ne, [
|
|
196
|
+
u.value ? (F(), k(I, {
|
|
197
197
|
key: 0,
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
label: "Cancel",
|
|
200
200
|
onClick: m
|
|
201
|
-
})) :
|
|
202
|
-
u.value ?
|
|
201
|
+
})) : $("", !0),
|
|
202
|
+
u.value ? $("", !0) : (F(), k(I, {
|
|
203
203
|
key: 1,
|
|
204
204
|
variant: "primary",
|
|
205
205
|
label: "Edit Exterior Photo",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: o[0] || (o[0] = (B) => u.value = !0)
|
|
207
207
|
}))
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
|
-
u.value ? (
|
|
211
|
-
c.value ? (
|
|
212
|
-
|
|
210
|
+
u.value ? (F(), G(j, { key: 0 }, [
|
|
211
|
+
c.value ? (F(), G(j, { key: 0 }, [
|
|
212
|
+
n(Q, {
|
|
213
213
|
document: c.value,
|
|
214
214
|
"business-id": a.payoutAccount.businessId,
|
|
215
|
-
"restaurant-id": ((V = (
|
|
215
|
+
"restaurant-id": ((V = (P = a.payoutAccount) == null ? void 0 : P.store) == null ? void 0 : V.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
216
216
|
}, null, 8, ["document", "business-id", "restaurant-id"]),
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
r("div", Ue, [
|
|
218
|
+
n(I, {
|
|
219
219
|
variant: "tertiary",
|
|
220
220
|
label: "Remove",
|
|
221
221
|
size: "md",
|
|
222
222
|
"prepend-icon": "delete",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: f
|
|
224
224
|
}),
|
|
225
|
-
|
|
225
|
+
n(I, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
label: "Save",
|
|
228
228
|
size: "md",
|
|
229
|
-
loading:
|
|
230
|
-
onClick:
|
|
229
|
+
loading: b.value,
|
|
230
|
+
onClick: y
|
|
231
231
|
}, null, 8, ["loading"])
|
|
232
232
|
])
|
|
233
|
-
], 64)) : (
|
|
233
|
+
], 64)) : (F(), 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: v
|
|
238
238
|
}))
|
|
239
|
-
], 64)) : (
|
|
239
|
+
], 64)) : (F(), k(Q, {
|
|
240
240
|
key: 1,
|
|
241
241
|
document: a.payoutAccount.store.exteriorPhoto,
|
|
242
242
|
"business-id": a.payoutAccount.businessId,
|
|
243
|
-
"restaurant-id": ((
|
|
243
|
+
"restaurant-id": ((E = (x = a.payoutAccount) == null ? void 0 : x.store) == null ? void 0 : E.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
244
244
|
}, null, 8, ["document", "business-id", "restaurant-id"]))
|
|
245
245
|
], 64);
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
}), Ie = { class: "flex flex-col gap-8" },
|
|
248
|
+
}), Ie = { class: "flex flex-col gap-8" }, De = { class: "flex flex-col gap-8" }, Te = { class: "flex justify-end mb-2" }, he = /* @__PURE__ */ R({
|
|
249
249
|
__name: "SettlementEditDialog",
|
|
250
250
|
props: {
|
|
251
251
|
initialValue: {
|
|
@@ -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: b } = 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(), g = U(u.ssm ?? ""), v = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), f = X().trim().min(1, "Registration number is required"), s = X().trim().min(1, "Bank name is required"), y = X().trim().min(1, "Bank holder name is required"), d = X().trim().min(1, "Bank account number is required"), o = ke({
|
|
278
278
|
companyName: m,
|
|
279
|
-
regNo:
|
|
280
|
-
bankName:
|
|
281
|
-
bankHolderName:
|
|
279
|
+
regNo: f,
|
|
280
|
+
bankName: s,
|
|
281
|
+
bankHolderName: y,
|
|
282
282
|
bankAccountNumber: d
|
|
283
283
|
}), S = () => {
|
|
284
|
-
const V =
|
|
285
|
-
V.success && (
|
|
284
|
+
const V = o.safeParse(u);
|
|
285
|
+
V.success && (b({
|
|
286
286
|
...V.data,
|
|
287
287
|
ssm: u.ssm,
|
|
288
288
|
bankStatement: u.bankStatement,
|
|
@@ -292,166 +292,166 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
292
292
|
};
|
|
293
293
|
async function A(V) {
|
|
294
294
|
const x = new FileReader();
|
|
295
|
-
return new Promise((
|
|
295
|
+
return new Promise((E) => {
|
|
296
296
|
x.onload = (B) => {
|
|
297
|
-
var
|
|
298
|
-
|
|
297
|
+
var h;
|
|
298
|
+
E((h = B.target) == null ? void 0 : h.result);
|
|
299
299
|
}, x.readAsDataURL(V);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
const C = async (V) => {
|
|
303
|
-
t.value = V,
|
|
303
|
+
t.value = V, g.value = V ? await A(V) : "";
|
|
304
304
|
}, I = async (V) => {
|
|
305
|
-
c.value = V,
|
|
306
|
-
}, D = () => {
|
|
307
|
-
t.value = void 0, F.value = "";
|
|
305
|
+
c.value = V, v.value = V ? await A(V) : "";
|
|
308
306
|
}, T = () => {
|
|
309
|
-
|
|
307
|
+
t.value = void 0, g.value = "";
|
|
308
|
+
}, P = () => {
|
|
309
|
+
c.value = void 0, v.value = "";
|
|
310
310
|
};
|
|
311
311
|
return (V, x) => {
|
|
312
|
-
const
|
|
313
|
-
return
|
|
312
|
+
const E = p("FmTextField"), B = p("FmSelect"), h = p("FmButton"), K = p("FmFormGroup"), H = p("FmDropField"), z = p("FmForm");
|
|
313
|
+
return F(), k(z, {
|
|
314
314
|
class: "flex flex-col gap-16",
|
|
315
315
|
onValidationSuccess: S
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
x[9] || (x[9] =
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
317
|
+
default: w(() => [
|
|
318
|
+
x[9] || (x[9] = r("div", { class: "flex items-center my-2" }, [
|
|
319
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
320
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Account"),
|
|
321
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
322
322
|
], -1)),
|
|
323
|
-
|
|
323
|
+
n(E, {
|
|
324
324
|
modelValue: u.regNo,
|
|
325
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
325
|
+
"onUpdate:modelValue": x[0] || (x[0] = (M) => u.regNo = M),
|
|
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(f)),
|
|
330
330
|
autofocus: ""
|
|
331
331
|
}, null, 8, ["modelValue", "rules"]),
|
|
332
|
-
|
|
332
|
+
n(E, {
|
|
333
333
|
modelValue: u.companyName,
|
|
334
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
334
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => u.companyName = M),
|
|
335
335
|
label: "Company Name",
|
|
336
336
|
"label-mark": "required",
|
|
337
337
|
"helper-text": "Company Name must match uploaded SSM registration name.",
|
|
338
338
|
rules: i(N)(i(m))
|
|
339
339
|
}, null, 8, ["modelValue", "rules"]),
|
|
340
|
-
x[10] || (x[10] =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
x[10] || (x[10] = r("div", { class: "flex items-center my-2" }, [
|
|
341
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
342
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Bank"),
|
|
343
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
344
344
|
], -1)),
|
|
345
|
-
|
|
345
|
+
n(B, {
|
|
346
346
|
modelValue: u.bankName,
|
|
347
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
347
|
+
"onUpdate:modelValue": x[2] || (x[2] = (M) => u.bankName = M),
|
|
348
348
|
label: "Bank",
|
|
349
349
|
"label-mark": "required",
|
|
350
350
|
items: l.bankNameOptions,
|
|
351
|
-
rules: i(N)(i(
|
|
351
|
+
rules: i(N)(i(s))
|
|
352
352
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
353
|
-
|
|
353
|
+
n(E, {
|
|
354
354
|
modelValue: u.bankHolderName,
|
|
355
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
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(y))
|
|
359
359
|
}, null, 8, ["modelValue", "rules"]),
|
|
360
|
-
|
|
360
|
+
n(E, {
|
|
361
361
|
modelValue: u.bankAccountNumber,
|
|
362
|
-
"onUpdate:modelValue": x[4] || (x[4] = (
|
|
362
|
+
"onUpdate:modelValue": x[4] || (x[4] = (M) => u.bankAccountNumber = M),
|
|
363
363
|
label: "Bank Account Number",
|
|
364
364
|
"label-mark": "required",
|
|
365
365
|
type: "number",
|
|
366
366
|
rules: i(N)(i(d))
|
|
367
367
|
}, null, 8, ["modelValue", "rules"]),
|
|
368
|
-
x[11] || (x[11] =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
x[11] || (x[11] = r("div", { class: "flex items-center my-2" }, [
|
|
369
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
370
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Document"),
|
|
371
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
372
372
|
], -1)),
|
|
373
|
-
|
|
374
|
-
x[7] || (x[7] =
|
|
375
|
-
|
|
373
|
+
r("div", Ie, [
|
|
374
|
+
x[7] || (x[7] = r("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
375
|
+
g.value ? (F(), k(K, {
|
|
376
376
|
key: 0,
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": x[5] || (x[5] = (
|
|
377
|
+
modelValue: g.value,
|
|
378
|
+
"onUpdate:modelValue": x[5] || (x[5] = (M) => g.value = M),
|
|
379
379
|
label: "SSM"
|
|
380
380
|
}, {
|
|
381
|
-
default:
|
|
382
|
-
|
|
383
|
-
document:
|
|
381
|
+
default: w(() => [
|
|
382
|
+
n(Q, {
|
|
383
|
+
document: g.value,
|
|
384
384
|
"business-id": a.businessId,
|
|
385
385
|
"restaurant-id": a.restaurantId
|
|
386
386
|
}, {
|
|
387
|
-
default:
|
|
388
|
-
|
|
387
|
+
default: w(({ src: M }) => [
|
|
388
|
+
n(ee, {
|
|
389
389
|
height: 300,
|
|
390
|
-
pdf:
|
|
390
|
+
pdf: M,
|
|
391
391
|
"disable-text-layer": !0,
|
|
392
392
|
"disable-annotation-layer": !0
|
|
393
393
|
}, null, 8, ["pdf"])
|
|
394
394
|
]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
397
|
-
|
|
397
|
+
n(h, {
|
|
398
398
|
type: "button",
|
|
399
399
|
variant: "tertiary",
|
|
400
400
|
label: "Remove",
|
|
401
401
|
size: "md",
|
|
402
402
|
"prepend-icon": "delete",
|
|
403
|
-
onClick:
|
|
403
|
+
onClick: T
|
|
404
404
|
})
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["modelValue"])) : (
|
|
407
|
+
}, 8, ["modelValue"])) : (F(), k(H, {
|
|
408
408
|
key: 1,
|
|
409
409
|
accept: ".pdf",
|
|
410
410
|
onFileUpload: C
|
|
411
411
|
}))
|
|
412
412
|
]),
|
|
413
|
-
|
|
414
|
-
x[8] || (x[8] =
|
|
415
|
-
|
|
413
|
+
r("div", De, [
|
|
414
|
+
x[8] || (x[8] = r("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
415
|
+
v.value ? (F(), k(K, {
|
|
416
416
|
key: 0,
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": x[6] || (x[6] = (
|
|
417
|
+
modelValue: v.value,
|
|
418
|
+
"onUpdate:modelValue": x[6] || (x[6] = (M) => v.value = M),
|
|
419
419
|
label: "Bank Statement"
|
|
420
420
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
423
|
-
document:
|
|
421
|
+
default: w(() => [
|
|
422
|
+
n(Q, {
|
|
423
|
+
document: v.value,
|
|
424
424
|
"business-id": a.businessId,
|
|
425
425
|
"restaurant-id": a.restaurantId
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
427
|
+
default: w(({ src: M }) => [
|
|
428
|
+
n(ee, {
|
|
429
429
|
height: 300,
|
|
430
|
-
pdf:
|
|
430
|
+
pdf: M,
|
|
431
431
|
"disable-text-layer": !0,
|
|
432
432
|
"disable-annotation-layer": !0
|
|
433
433
|
}, null, 8, ["pdf"])
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
437
|
-
|
|
437
|
+
n(h, {
|
|
438
438
|
type: "button",
|
|
439
439
|
variant: "tertiary",
|
|
440
440
|
label: "Remove",
|
|
441
441
|
size: "md",
|
|
442
442
|
"prepend-icon": "delete",
|
|
443
|
-
onClick:
|
|
443
|
+
onClick: P
|
|
444
444
|
})
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
|
-
}, 8, ["modelValue"])) : (
|
|
447
|
+
}, 8, ["modelValue"])) : (F(), k(H, {
|
|
448
448
|
key: 1,
|
|
449
449
|
accept: ".pdf",
|
|
450
450
|
onFileUpload: I
|
|
451
451
|
}))
|
|
452
452
|
]),
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
r("div", Te, [
|
|
454
|
+
n(h, {
|
|
455
455
|
type: "submit",
|
|
456
456
|
variant: "primary",
|
|
457
457
|
label: "Save"
|
|
@@ -462,7 +462,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
465
|
+
}), Re = { class: "flex justify-end mb-6" }, Pe = { class: "flex gap-16 mb-6" }, Me = { class: "flex gap-16" }, Be = { class: "flex-1" }, _e = { class: "flex-1" }, $e = /* @__PURE__ */ R({
|
|
466
466
|
__name: "Settlement",
|
|
467
467
|
props: {
|
|
468
468
|
onUpdate: {
|
|
@@ -475,126 +475,126 @@ 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), b = de(), u = W(), t = xe.bankNameOptions(), c = () => {
|
|
479
|
+
var f, s, y, d, o, S, A, C, I, T;
|
|
480
480
|
return {
|
|
481
|
-
companyName: ((
|
|
482
|
-
regNo: ((
|
|
483
|
-
bankName: ((d = (
|
|
484
|
-
bankHolderName: ((S = (
|
|
481
|
+
companyName: ((f = l.payoutAccount.store) == null ? void 0 : f.companyName) ?? "",
|
|
482
|
+
regNo: ((s = l.payoutAccount.store) == null ? void 0 : s.regNo) ?? "",
|
|
483
|
+
bankName: ((d = (y = l.payoutAccount.store) == null ? void 0 : y.bank) == null ? void 0 : d.name) ?? "",
|
|
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
|
-
bankStatement: ((
|
|
487
|
+
bankStatement: ((T = l.payoutAccount.store) == null ? void 0 : T.bankStatement) ?? ""
|
|
488
488
|
};
|
|
489
|
-
},
|
|
490
|
-
var
|
|
491
|
-
const
|
|
492
|
-
if (((
|
|
489
|
+
}, g = async (f, s) => {
|
|
490
|
+
var o;
|
|
491
|
+
const y = (/* @__PURE__ */ new Date()).toISOString();
|
|
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/${
|
|
495
|
-
|
|
494
|
+
`restaurant/${l.payoutAccount.store.id}/documents/${f}/${y}.pdf`,
|
|
495
|
+
s,
|
|
496
496
|
l.payoutAccount.businessId,
|
|
497
497
|
l.payoutAccount.store.id
|
|
498
498
|
);
|
|
499
499
|
const d = l.payoutAccount.businessId || l.payoutAccount.store.id;
|
|
500
500
|
return await te.adminUpload(
|
|
501
|
-
`business/${d}/documents/${
|
|
502
|
-
|
|
501
|
+
`business/${d}/documents/${f}/${y}.pdf`,
|
|
502
|
+
s,
|
|
503
503
|
d,
|
|
504
504
|
void 0
|
|
505
505
|
);
|
|
506
|
-
},
|
|
506
|
+
}, v = async (f) => {
|
|
507
507
|
if (!l.payoutAccount.store) return;
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
508
|
+
let s = l.payoutAccount.store.ssm;
|
|
509
|
+
f.newSSM && (s = await g("ssm", f.newSSM));
|
|
510
|
+
let y = l.payoutAccount.store.bankStatement;
|
|
511
|
+
f.newBankStatement && (y = await g(
|
|
512
512
|
"bankStatement",
|
|
513
|
-
|
|
513
|
+
f.newBankStatement
|
|
514
514
|
));
|
|
515
515
|
const d = {
|
|
516
516
|
...l.payoutAccount,
|
|
517
517
|
store: {
|
|
518
518
|
...l.payoutAccount.store,
|
|
519
|
-
companyName:
|
|
520
|
-
regNo:
|
|
519
|
+
companyName: f.companyName,
|
|
520
|
+
regNo: f.regNo,
|
|
521
521
|
bank: {
|
|
522
522
|
...l.payoutAccount.store.bank ?? {},
|
|
523
|
-
name:
|
|
524
|
-
holderName:
|
|
525
|
-
accountNumber:
|
|
523
|
+
name: f.bankName,
|
|
524
|
+
holderName: f.bankHolderName,
|
|
525
|
+
accountNumber: f.bankAccountNumber
|
|
526
526
|
},
|
|
527
|
-
ssm:
|
|
528
|
-
bankStatement:
|
|
527
|
+
ssm: s,
|
|
528
|
+
bankStatement: y
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
try {
|
|
532
532
|
e.value = !0, await l.onUpdate(d), u.open({
|
|
533
533
|
type: "success",
|
|
534
534
|
title: "Settlement info updated successfully"
|
|
535
|
-
}),
|
|
536
|
-
} catch (
|
|
535
|
+
}), b.close();
|
|
536
|
+
} catch (o) {
|
|
537
537
|
u.open({
|
|
538
538
|
type: "error",
|
|
539
539
|
title: "Failed to update settlement info",
|
|
540
|
-
message: Z(
|
|
540
|
+
message: Z(o)
|
|
541
541
|
});
|
|
542
542
|
} finally {
|
|
543
543
|
e.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}, m = () => {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var f;
|
|
547
|
+
b.close(), b.open({
|
|
548
548
|
title: "Edit Settlement Info",
|
|
549
549
|
closeButton: !0,
|
|
550
550
|
overlay: !0,
|
|
551
|
-
contentComponent:
|
|
551
|
+
contentComponent: he,
|
|
552
552
|
contentComponentProps: {
|
|
553
553
|
initialValue: c(),
|
|
554
554
|
bankNameOptions: t,
|
|
555
555
|
businessId: l.payoutAccount.businessId,
|
|
556
|
-
restaurantId: ((
|
|
556
|
+
restaurantId: ((f = l.payoutAccount.store) == null ? void 0 : f.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
|
|
557
557
|
}
|
|
558
|
-
}).onPrimary((
|
|
559
|
-
|
|
558
|
+
}).onPrimary((s) => {
|
|
559
|
+
v(s);
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
|
-
return (
|
|
563
|
-
var A, C, I,
|
|
564
|
-
const
|
|
565
|
-
return
|
|
566
|
-
|
|
567
|
-
|
|
562
|
+
return (f, s) => {
|
|
563
|
+
var A, C, I, T;
|
|
564
|
+
const y = p("FmButton"), d = p("FmCardHeader"), o = p("FmCardSection"), S = p("FmCard");
|
|
565
|
+
return F(), G(j, null, [
|
|
566
|
+
r("div", Re, [
|
|
567
|
+
n(y, {
|
|
568
568
|
variant: "primary",
|
|
569
569
|
label: "Edit Settlement Info",
|
|
570
570
|
loading: e.value,
|
|
571
571
|
onclick: m
|
|
572
572
|
}, null, 8, ["loading"])
|
|
573
573
|
]),
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
r("div", Pe, [
|
|
575
|
+
n(S, {
|
|
576
576
|
horizontal: "",
|
|
577
577
|
class: "flex-1 p-6",
|
|
578
578
|
variant: "elevated"
|
|
579
579
|
}, {
|
|
580
|
-
default:
|
|
581
|
-
o
|
|
582
|
-
default:
|
|
583
|
-
|
|
580
|
+
default: w(() => [
|
|
581
|
+
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
582
|
+
default: w(() => [
|
|
583
|
+
n(d, {
|
|
584
584
|
class: "p-0",
|
|
585
585
|
title: "Company Info",
|
|
586
586
|
subtitle: ""
|
|
587
587
|
}),
|
|
588
|
-
o
|
|
589
|
-
default:
|
|
590
|
-
var
|
|
588
|
+
n(o, { class: "p-0" }, {
|
|
589
|
+
default: w(() => {
|
|
590
|
+
var P, V;
|
|
591
591
|
return [
|
|
592
|
-
|
|
593
|
-
_(": " +
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
_(": " +
|
|
597
|
-
|
|
592
|
+
s[0] || (s[0] = r("b", null, "Name", -1)),
|
|
593
|
+
_(": " + O((P = a.payoutAccount) == null ? void 0 : P.store.companyName), 1),
|
|
594
|
+
s[1] || (s[1] = r("br", null, null, -1)),
|
|
595
|
+
s[2] || (s[2] = r("b", null, "Registration Number", -1)),
|
|
596
|
+
_(": " + O((V = a.payoutAccount) == null ? void 0 : V.store.regNo), 1),
|
|
597
|
+
s[3] || (s[3] = r("br", null, null, -1))
|
|
598
598
|
];
|
|
599
599
|
}),
|
|
600
600
|
_: 1
|
|
@@ -605,31 +605,31 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
605
605
|
]),
|
|
606
606
|
_: 1
|
|
607
607
|
}),
|
|
608
|
-
|
|
608
|
+
n(S, {
|
|
609
609
|
horizontal: "",
|
|
610
610
|
class: "flex-1 p-6",
|
|
611
611
|
variant: "elevated"
|
|
612
612
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
o
|
|
615
|
-
default:
|
|
616
|
-
|
|
613
|
+
default: w(() => [
|
|
614
|
+
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
615
|
+
default: w(() => [
|
|
616
|
+
n(d, {
|
|
617
617
|
class: "p-0",
|
|
618
618
|
title: "Bank Info",
|
|
619
619
|
subtitle: ""
|
|
620
620
|
}),
|
|
621
|
-
o
|
|
622
|
-
default:
|
|
623
|
-
var
|
|
621
|
+
n(o, { class: "p-0" }, {
|
|
622
|
+
default: w(() => {
|
|
623
|
+
var P, V, x, E, B, h;
|
|
624
624
|
return [
|
|
625
|
-
|
|
626
|
-
_(": " +
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
_(": " +
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
_(": " +
|
|
625
|
+
s[4] || (s[4] = r("b", null, "Bank", -1)),
|
|
626
|
+
_(": " + O((V = (P = a.payoutAccount) == null ? void 0 : P.store.bank) == null ? void 0 : V.name), 1),
|
|
627
|
+
s[5] || (s[5] = r("br", null, null, -1)),
|
|
628
|
+
s[6] || (s[6] = r("b", null, "Name", -1)),
|
|
629
|
+
_(": " + O((E = (x = a.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : E.holderName), 1),
|
|
630
|
+
s[7] || (s[7] = r("br", null, null, -1)),
|
|
631
|
+
s[8] || (s[8] = r("b", null, "Number", -1)),
|
|
632
|
+
_(": " + O((h = (B = a.payoutAccount) == null ? void 0 : B.store.bank) == null ? void 0 : h.accountNumber), 1)
|
|
633
633
|
];
|
|
634
634
|
}),
|
|
635
635
|
_: 1
|
|
@@ -641,17 +641,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
641
641
|
_: 1
|
|
642
642
|
})
|
|
643
643
|
]),
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
r("div", Me, [
|
|
645
|
+
r("div", Be, [
|
|
646
|
+
s[9] || (s[9] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
647
|
+
n(Q, {
|
|
648
648
|
"business-id": a.payoutAccount.businessId,
|
|
649
649
|
"restaurant-id": ((C = (A = a.payoutAccount) == null ? void 0 : A.store) == null ? void 0 : C.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
650
650
|
document: a.payoutAccount.store.ssm
|
|
651
651
|
}, {
|
|
652
|
-
default:
|
|
653
|
-
|
|
654
|
-
pdf:
|
|
652
|
+
default: w(({ src: P }) => [
|
|
653
|
+
n(ee, {
|
|
654
|
+
pdf: P,
|
|
655
655
|
"disable-text-layer": !0,
|
|
656
656
|
"disable-annotation-layer": !0
|
|
657
657
|
}, null, 8, ["pdf"])
|
|
@@ -659,16 +659,16 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
659
659
|
_: 1
|
|
660
660
|
}, 8, ["business-id", "restaurant-id", "document"])
|
|
661
661
|
]),
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
662
|
+
r("div", _e, [
|
|
663
|
+
s[10] || (s[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
664
|
+
n(Q, {
|
|
665
665
|
"business-id": a.payoutAccount.businessId,
|
|
666
|
-
"restaurant-id": ((
|
|
666
|
+
"restaurant-id": ((T = (I = a.payoutAccount) == null ? void 0 : I.store) == null ? void 0 : T.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
667
667
|
document: a.payoutAccount.store.bankStatement
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
671
|
-
pdf:
|
|
669
|
+
default: w(({ src: P }) => [
|
|
670
|
+
n(ee, {
|
|
671
|
+
pdf: P,
|
|
672
672
|
"disable-text-layer": !0,
|
|
673
673
|
"disable-annotation-layer": !0
|
|
674
674
|
}, null, 8, ["pdf"])
|
|
@@ -680,7 +680,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
680
680
|
], 64);
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), Ee = /* @__PURE__ */ R({
|
|
684
684
|
__name: "RateInput",
|
|
685
685
|
props: {
|
|
686
686
|
data: {},
|
|
@@ -688,23 +688,23 @@ 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, (b) => {
|
|
692
|
+
l.onChange(parseFloat(b));
|
|
693
|
+
}), (b, u) => {
|
|
694
|
+
const t = p("FmTextField");
|
|
695
|
+
return F(), k(t, {
|
|
696
696
|
inputmode: "decimal",
|
|
697
697
|
modelValue: e.value,
|
|
698
698
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
699
699
|
}, {
|
|
700
|
-
append:
|
|
700
|
+
append: w(() => [...u[1] || (u[1] = [
|
|
701
701
|
_("%", -1)
|
|
702
702
|
])]),
|
|
703
703
|
_: 1
|
|
704
704
|
}, 8, ["modelValue"]);
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
}), qe = /* @__PURE__ */
|
|
707
|
+
}), qe = /* @__PURE__ */ R({
|
|
708
708
|
__name: "TPlusInput",
|
|
709
709
|
props: {
|
|
710
710
|
data: {},
|
|
@@ -712,18 +712,18 @@ 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, (b) => {
|
|
716
|
+
l.onChange(parseInt(b));
|
|
717
|
+
}), (b, u) => {
|
|
718
|
+
const t = p("FmTextField");
|
|
719
|
+
return F(), k(t, {
|
|
720
720
|
inputmode: "numeric",
|
|
721
721
|
modelValue: e.value,
|
|
722
722
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
723
723
|
}, null, 8, ["modelValue"]);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
}), Oe = /* @__PURE__ */
|
|
726
|
+
}), Oe = /* @__PURE__ */ R({
|
|
727
727
|
__name: "MinimumFeeInput",
|
|
728
728
|
props: {
|
|
729
729
|
data: {},
|
|
@@ -731,23 +731,23 @@ 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, (b) => {
|
|
735
|
+
l.onChange(parseFloat(b));
|
|
736
|
+
}), (b, u) => {
|
|
737
|
+
const t = p("FmTextField");
|
|
738
|
+
return F(), k(t, {
|
|
739
739
|
inputmode: "numeric",
|
|
740
740
|
modelValue: e.value,
|
|
741
741
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
742
742
|
}, {
|
|
743
|
-
prepend:
|
|
743
|
+
prepend: w(() => [...u[1] || (u[1] = [
|
|
744
744
|
_("$", -1)
|
|
745
745
|
])]),
|
|
746
746
|
_: 1
|
|
747
747
|
}, 8, ["modelValue"]);
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
}), Ge = { class: "flex gap-16 mt-6" },
|
|
750
|
+
}), Ge = { class: "flex gap-16 mt-6" }, Ke = { class: "flex-1" }, je = { class: "flex-1" }, Ye = { class: "my-6 w-full flex justify-end" }, He = { class: "w-[320px]" }, ze = /* @__PURE__ */ R({
|
|
751
751
|
__name: "PaymentStatus",
|
|
752
752
|
props: {
|
|
753
753
|
onUpdate: {
|
|
@@ -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), b = W(), u = de(), t = async (s) => {
|
|
764
764
|
try {
|
|
765
|
-
e.value = !0, await l.onUpdate(
|
|
765
|
+
e.value = !0, await l.onUpdate(s), b.open({
|
|
766
766
|
type: "success",
|
|
767
767
|
title: "Payout account update succesfully"
|
|
768
768
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
|
|
769
|
+
} catch (y) {
|
|
770
|
+
b.open({
|
|
771
771
|
type: "error",
|
|
772
772
|
title: "Error occurs when updating payout account",
|
|
773
|
-
message: Z(
|
|
773
|
+
message: Z(y)
|
|
774
774
|
});
|
|
775
775
|
} finally {
|
|
776
776
|
e.value = !1;
|
|
@@ -816,33 +816,33 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
816
816
|
otherLabel: "Other Reason",
|
|
817
817
|
otherPlaceholder: "Enter reason for rejection..."
|
|
818
818
|
}
|
|
819
|
-
}).onPrimary((
|
|
820
|
-
l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason =
|
|
819
|
+
}).onPrimary((s) => {
|
|
820
|
+
l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason = s, t(l.payoutAccount), u.close();
|
|
821
821
|
});
|
|
822
|
-
}, { search:
|
|
822
|
+
}, { search: g } = oe({
|
|
823
823
|
search: ""
|
|
824
|
-
}),
|
|
825
|
-
const { ssm:
|
|
826
|
-
return
|
|
827
|
-
}), m = U(""),
|
|
824
|
+
}), v = L(() => {
|
|
825
|
+
const { ssm: s, bank: y, bankStatement: d } = l.payoutAccount.store;
|
|
826
|
+
return s && y && y.name && y.accountNumber && y.holderName && d;
|
|
827
|
+
}), m = U(""), f = [
|
|
828
828
|
{
|
|
829
829
|
header: () => "Payment Method",
|
|
830
830
|
accessorKey: "issuer",
|
|
831
|
-
cell: (
|
|
831
|
+
cell: (s) => `${s.row.original.issuer} (${s.row.original.variant})`
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
header: () => "Rate",
|
|
835
835
|
accessorKey: "rate",
|
|
836
|
-
cell: ({ row:
|
|
837
|
-
let
|
|
838
|
-
return
|
|
839
|
-
data:
|
|
836
|
+
cell: ({ row: s }) => {
|
|
837
|
+
let y = 0;
|
|
838
|
+
return s.original.rate && (y = s.original.rate.amount / Math.pow(10, s.original.rate.precision)), J(Ee, {
|
|
839
|
+
data: y,
|
|
840
840
|
onChange: (d) => {
|
|
841
|
-
const
|
|
842
|
-
|
|
841
|
+
const o = l.payoutAccount.methods.at(s.index);
|
|
842
|
+
o.rate || (o.rate = {
|
|
843
843
|
amount: 0,
|
|
844
844
|
precision: 4
|
|
845
|
-
}),
|
|
845
|
+
}), o.rate.amount = d * Math.pow(10, o.rate.precision);
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
848
|
}
|
|
@@ -850,16 +850,16 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
850
850
|
{
|
|
851
851
|
header: () => "Minimum Fee",
|
|
852
852
|
accessorKey: "minimumFee",
|
|
853
|
-
cell: ({ row:
|
|
854
|
-
let
|
|
855
|
-
return
|
|
856
|
-
data:
|
|
853
|
+
cell: ({ row: s }) => {
|
|
854
|
+
let y = 0;
|
|
855
|
+
return s.original.minimumFee && (y = s.original.minimumFee.amount / Math.pow(10, s.original.minimumFee.precision)), J(Oe, {
|
|
856
|
+
data: y,
|
|
857
857
|
onChange: (d) => {
|
|
858
|
-
const
|
|
859
|
-
|
|
858
|
+
const o = l.payoutAccount.methods.at(s.index);
|
|
859
|
+
o.minimumFee || (o.minimumFee = {
|
|
860
860
|
amount: 0,
|
|
861
861
|
precision: 2
|
|
862
|
-
}),
|
|
862
|
+
}), o.minimumFee.amount = d * Math.pow(10, o.minimumFee.precision);
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
}
|
|
@@ -867,35 +867,35 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
867
867
|
{
|
|
868
868
|
header: () => "T plus",
|
|
869
869
|
accessorKey: "tPlus",
|
|
870
|
-
cell: ({ row:
|
|
871
|
-
data:
|
|
872
|
-
onChange: (
|
|
873
|
-
const d = l.payoutAccount.methods.at(
|
|
874
|
-
d.tPlus =
|
|
870
|
+
cell: ({ row: s }) => J(qe, {
|
|
871
|
+
data: s.original.tPlus ?? 0,
|
|
872
|
+
onChange: (y) => {
|
|
873
|
+
const d = l.payoutAccount.methods.at(s.index);
|
|
874
|
+
d.tPlus = y;
|
|
875
875
|
}
|
|
876
876
|
})
|
|
877
877
|
}
|
|
878
878
|
];
|
|
879
|
-
return (
|
|
880
|
-
const d =
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
o
|
|
879
|
+
return (s, y) => {
|
|
880
|
+
const d = p("FmRadio"), o = p("FmRadioGroup"), S = p("FmSwitch"), A = p("FmSearch"), C = p("FmTable"), I = p("FmButton");
|
|
881
|
+
return F(), G(j, null, [
|
|
882
|
+
r("div", Ge, [
|
|
883
|
+
r("div", Ke, [
|
|
884
|
+
n(o, {
|
|
885
885
|
modelValue: a.payoutAccount.status,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": y[0] || (y[0] = (T) => a.payoutAccount.status = T),
|
|
887
887
|
label: "Account Status"
|
|
888
888
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
|
|
889
|
+
default: w(() => [
|
|
890
|
+
n(d, {
|
|
891
891
|
value: "PENDING",
|
|
892
892
|
label: "Pending"
|
|
893
893
|
}),
|
|
894
|
-
|
|
894
|
+
n(d, {
|
|
895
895
|
value: "APPROVED",
|
|
896
896
|
label: "Approved"
|
|
897
897
|
}),
|
|
898
|
-
|
|
898
|
+
n(d, {
|
|
899
899
|
value: "REJECTED",
|
|
900
900
|
label: "Rejected",
|
|
901
901
|
onClick: c
|
|
@@ -904,37 +904,37 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
904
904
|
_: 1
|
|
905
905
|
}, 8, ["modelValue"])
|
|
906
906
|
]),
|
|
907
|
-
|
|
908
|
-
|
|
907
|
+
r("div", je, [
|
|
908
|
+
n(S, {
|
|
909
909
|
modelValue: a.payoutAccount.enable,
|
|
910
|
-
"onUpdate:modelValue":
|
|
911
|
-
disabled: !
|
|
910
|
+
"onUpdate:modelValue": y[1] || (y[1] = (T) => a.payoutAccount.enable = T),
|
|
911
|
+
disabled: !v.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 ? (
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
modelValue: i(
|
|
922
|
-
"onUpdate:modelValue":
|
|
917
|
+
a.payoutAccount.enable ? (F(), G(j, { key: 0 }, [
|
|
918
|
+
r("div", Ye, [
|
|
919
|
+
r("div", He, [
|
|
920
|
+
n(A, {
|
|
921
|
+
modelValue: i(g),
|
|
922
|
+
"onUpdate:modelValue": y[2] || (y[2] = (T) => ae(g) ? g.value = T : null),
|
|
923
923
|
placeholder: "Search Method ..."
|
|
924
924
|
}, null, 8, ["modelValue"])
|
|
925
925
|
])
|
|
926
926
|
]),
|
|
927
|
-
|
|
927
|
+
n(C, {
|
|
928
928
|
class: "mt-6",
|
|
929
929
|
modelValue: m.value,
|
|
930
|
-
"onUpdate:modelValue":
|
|
930
|
+
"onUpdate:modelValue": y[3] || (y[3] = (T) => m.value = T),
|
|
931
931
|
"shrink-at": !1,
|
|
932
|
-
"search-value": i(
|
|
932
|
+
"search-value": i(g),
|
|
933
933
|
"row-data": a.payoutAccount.methods,
|
|
934
|
-
"column-defs":
|
|
934
|
+
"column-defs": f
|
|
935
935
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
936
|
-
], 64)) :
|
|
937
|
-
|
|
936
|
+
], 64)) : $("", !0),
|
|
937
|
+
n(I, {
|
|
938
938
|
class: "w-full mt-6",
|
|
939
939
|
variant: "primary",
|
|
940
940
|
label: "Save",
|
|
@@ -944,15 +944,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
944
944
|
], 64);
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
}), Le = { class: "flex" }, Ze = /* @__PURE__ */
|
|
947
|
+
}), Le = { class: "flex" }, Ze = /* @__PURE__ */ R({
|
|
948
948
|
__name: "Actions",
|
|
949
949
|
emits: ["edit", "delete"],
|
|
950
950
|
setup(a, { emit: l }) {
|
|
951
951
|
const e = l;
|
|
952
|
-
return (
|
|
953
|
-
const t =
|
|
954
|
-
return
|
|
955
|
-
|
|
952
|
+
return (b, u) => {
|
|
953
|
+
const t = p("FmButton");
|
|
954
|
+
return F(), G("div", Le, [
|
|
955
|
+
n(t, {
|
|
956
956
|
variant: "plain",
|
|
957
957
|
"prepend-icon": "delete",
|
|
958
958
|
onClick: u[0] || (u[0] = (c) => {
|
|
@@ -962,7 +962,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
962
962
|
]);
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
}), Je = { class: "flex justify-end px-6 pb-6" }, Qe = /* @__PURE__ */
|
|
965
|
+
}), Je = { class: "flex justify-end px-6 pb-6" }, Qe = /* @__PURE__ */ R({
|
|
966
966
|
__name: "PaymentChannel",
|
|
967
967
|
props: {
|
|
968
968
|
payoutAccount: {
|
|
@@ -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: b, 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 g() {
|
|
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 (f) {
|
|
989
989
|
l.open({
|
|
990
990
|
type: "error",
|
|
991
991
|
title: "Error occurs when updating payout account channels",
|
|
992
|
-
message: Z(
|
|
992
|
+
message: Z(f)
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function v() {
|
|
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 (f) {
|
|
1005
1005
|
l.open({
|
|
1006
1006
|
type: "error",
|
|
1007
1007
|
title: "Error occurs when reset payout account channels",
|
|
1008
|
-
message: Z(
|
|
1008
|
+
message: Z(f)
|
|
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: f }) => J("img", { src: f.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": (
|
|
1030
|
+
cell: ({ row: f }) => J(Fe.FmTextField, {
|
|
1031
|
+
modelValue: f.original.label,
|
|
1032
|
+
"onUpdate:modelValue": (s) => f.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: f }) => J(Ze, {
|
|
1039
|
+
onDelete: () => t.value.splice(f.index, 1)
|
|
1040
1040
|
})
|
|
1041
1041
|
}
|
|
1042
1042
|
];
|
|
1043
|
-
return (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
|
|
1043
|
+
return (f, s) => {
|
|
1044
|
+
const y = p("FmButton"), d = p("FmTable");
|
|
1045
|
+
return F(), G(j, null, [
|
|
1046
|
+
r("div", Je, [
|
|
1047
|
+
n(y, {
|
|
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: v
|
|
1054
1054
|
}),
|
|
1055
|
-
|
|
1055
|
+
n(y, {
|
|
1056
1056
|
variant: "primary",
|
|
1057
1057
|
size: "md",
|
|
1058
1058
|
icon: "save",
|
|
1059
1059
|
label: "Save",
|
|
1060
|
-
onClick:
|
|
1060
|
+
onClick: g
|
|
1061
1061
|
})
|
|
1062
1062
|
]),
|
|
1063
|
-
|
|
1064
|
-
loading: i(
|
|
1063
|
+
n(d, {
|
|
1064
|
+
loading: i(b),
|
|
1065
1065
|
"row-data": t.value,
|
|
1066
1066
|
"column-defs": m,
|
|
1067
1067
|
"shrink-at": !1
|
|
@@ -1069,7 +1069,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1069
1069
|
], 64);
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
}), We = { class: "flex mt-6 space-x-6" }, Xe = /* @__PURE__ */
|
|
1072
|
+
}), We = { class: "flex mt-6 space-x-6" }, Xe = /* @__PURE__ */ R({
|
|
1073
1073
|
__name: "FiuuGateway",
|
|
1074
1074
|
props: {
|
|
1075
1075
|
gateway: {
|
|
@@ -1086,47 +1086,47 @@ 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 b;
|
|
1090
|
+
const e = U(((b = a.gateway) == null ? void 0 : b.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 = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
|
|
1097
|
+
return F(), k(v, {
|
|
1098
1098
|
ref: "form",
|
|
1099
1099
|
class: "flex flex-col gap-16",
|
|
1100
1100
|
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
1101
1101
|
}, {
|
|
1102
|
-
default:
|
|
1103
|
-
|
|
1102
|
+
default: w(() => [
|
|
1103
|
+
n(c, {
|
|
1104
1104
|
modelValue: e.value.merchantId,
|
|
1105
1105
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1106
1106
|
label: "Merchant ID",
|
|
1107
|
-
rules: i(N)(i(
|
|
1107
|
+
rules: i(N)(i(D).string())
|
|
1108
1108
|
}, null, 8, ["modelValue", "rules"]),
|
|
1109
|
-
|
|
1109
|
+
n(c, {
|
|
1110
1110
|
modelValue: e.value.verifyKey,
|
|
1111
1111
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.verifyKey = m),
|
|
1112
1112
|
label: "Verify Key",
|
|
1113
|
-
rules: i(N)(i(
|
|
1113
|
+
rules: i(N)(i(D).string())
|
|
1114
1114
|
}, null, 8, ["modelValue", "rules"]),
|
|
1115
|
-
|
|
1115
|
+
n(c, {
|
|
1116
1116
|
modelValue: e.value.secretKey,
|
|
1117
1117
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.secretKey = m),
|
|
1118
1118
|
label: "Secret Key",
|
|
1119
|
-
rules: i(N)(i(
|
|
1119
|
+
rules: i(N)(i(D).string())
|
|
1120
1120
|
}, null, 8, ["modelValue", "rules"]),
|
|
1121
|
-
|
|
1122
|
-
a.gateway ? (
|
|
1121
|
+
r("div", We, [
|
|
1122
|
+
a.gateway ? (F(), k(g, {
|
|
1123
1123
|
key: 0,
|
|
1124
1124
|
class: "flex-1",
|
|
1125
1125
|
variant: "secondary",
|
|
1126
1126
|
label: "Delete",
|
|
1127
1127
|
onclick: () => a.onDelete()
|
|
1128
|
-
}, null, 8, ["onclick"])) :
|
|
1129
|
-
|
|
1128
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1129
|
+
n(g, {
|
|
1130
1130
|
type: "submit",
|
|
1131
1131
|
class: "flex-1",
|
|
1132
1132
|
variant: "primary",
|
|
@@ -1138,7 +1138,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1138
1138
|
}, 512);
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
|
-
}), et = { class: "flex mt-6 space-x-6" }, tt = /* @__PURE__ */
|
|
1141
|
+
}), et = { class: "flex mt-6 space-x-6" }, tt = /* @__PURE__ */ R({
|
|
1142
1142
|
__name: "MacauPassGateway",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
gateway: {
|
|
@@ -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 b;
|
|
1159
|
+
const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1160
1160
|
merchantId: "",
|
|
1161
1161
|
merchantName: "",
|
|
1162
1162
|
merchantCategoryCode: "",
|
|
@@ -1164,52 +1164,52 @@ 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 = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
|
|
1168
|
+
return F(), k(v, {
|
|
1169
1169
|
ref: "form",
|
|
1170
1170
|
class: "flex flex-col gap-16",
|
|
1171
1171
|
onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
|
|
1172
1172
|
}, {
|
|
1173
|
-
default:
|
|
1174
|
-
|
|
1173
|
+
default: w(() => [
|
|
1174
|
+
n(c, {
|
|
1175
1175
|
modelValue: e.value.merchantId,
|
|
1176
1176
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1177
1177
|
label: "Merchant ID",
|
|
1178
|
-
rules: i(N)(i(
|
|
1178
|
+
rules: i(N)(i(D).string())
|
|
1179
1179
|
}, null, 8, ["modelValue", "rules"]),
|
|
1180
|
-
|
|
1180
|
+
n(c, {
|
|
1181
1181
|
modelValue: e.value.merchantName,
|
|
1182
1182
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.merchantName = m),
|
|
1183
1183
|
label: "Merchant Name",
|
|
1184
|
-
rules: i(N)(i(
|
|
1184
|
+
rules: i(N)(i(D).string())
|
|
1185
1185
|
}, null, 8, ["modelValue", "rules"]),
|
|
1186
|
-
|
|
1186
|
+
n(c, {
|
|
1187
1187
|
modelValue: e.value.merchantCategoryCode,
|
|
1188
1188
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.merchantCategoryCode = m),
|
|
1189
1189
|
label: "Merchant MCC",
|
|
1190
|
-
rules: i(N)(i(
|
|
1190
|
+
rules: i(N)(i(D).string())
|
|
1191
1191
|
}, null, 8, ["modelValue", "rules"]),
|
|
1192
|
-
|
|
1192
|
+
n(c, {
|
|
1193
1193
|
modelValue: e.value.storeID,
|
|
1194
1194
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => e.value.storeID = m),
|
|
1195
1195
|
label: "Store ID",
|
|
1196
|
-
rules: i(N)(i(
|
|
1196
|
+
rules: i(N)(i(D).string())
|
|
1197
1197
|
}, null, 8, ["modelValue", "rules"]),
|
|
1198
|
-
|
|
1198
|
+
n(c, {
|
|
1199
1199
|
modelValue: e.value.storeName,
|
|
1200
1200
|
"onUpdate:modelValue": t[4] || (t[4] = (m) => e.value.storeName = m),
|
|
1201
1201
|
label: "Store Name",
|
|
1202
|
-
rules: i(N)(i(
|
|
1202
|
+
rules: i(N)(i(D).string())
|
|
1203
1203
|
}, null, 8, ["modelValue", "rules"]),
|
|
1204
|
-
|
|
1205
|
-
a.gateway ? (
|
|
1204
|
+
r("div", et, [
|
|
1205
|
+
a.gateway ? (F(), k(g, {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
class: "flex-1",
|
|
1208
1208
|
variant: "secondary",
|
|
1209
1209
|
label: "Delete",
|
|
1210
1210
|
onclick: () => a.onDelete()
|
|
1211
|
-
}, null, 8, ["onclick"])) :
|
|
1212
|
-
|
|
1211
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1212
|
+
n(g, {
|
|
1213
1213
|
type: "submit",
|
|
1214
1214
|
class: "flex-1",
|
|
1215
1215
|
variant: "primary",
|
|
@@ -1221,7 +1221,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1221
1221
|
}, 512);
|
|
1222
1222
|
};
|
|
1223
1223
|
}
|
|
1224
|
-
}), at = { class: "flex mt-6 space-x-6" }, nt = /* @__PURE__ */
|
|
1224
|
+
}), at = { class: "flex mt-6 space-x-6" }, nt = /* @__PURE__ */ R({
|
|
1225
1225
|
__name: "DigioGateway",
|
|
1226
1226
|
props: {
|
|
1227
1227
|
gateway: {
|
|
@@ -1238,40 +1238,40 @@ 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 b;
|
|
1242
|
+
const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1243
1243
|
merchantId: "",
|
|
1244
1244
|
cardMerchantId: ""
|
|
1245
1245
|
});
|
|
1246
1246
|
return (u, t) => {
|
|
1247
|
-
const c =
|
|
1248
|
-
return
|
|
1247
|
+
const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
|
|
1248
|
+
return F(), k(v, {
|
|
1249
1249
|
ref: "form",
|
|
1250
1250
|
class: "flex flex-col gap-16",
|
|
1251
1251
|
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1252
1252
|
}, {
|
|
1253
|
-
default:
|
|
1254
|
-
|
|
1253
|
+
default: w(() => [
|
|
1254
|
+
n(c, {
|
|
1255
1255
|
modelValue: e.value.merchantId,
|
|
1256
1256
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1257
1257
|
label: "Merchant ID",
|
|
1258
|
-
rules: i(N)(i(
|
|
1258
|
+
rules: i(N)(i(D).string())
|
|
1259
1259
|
}, null, 8, ["modelValue", "rules"]),
|
|
1260
|
-
|
|
1260
|
+
n(c, {
|
|
1261
1261
|
modelValue: e.value.cardMerchantId,
|
|
1262
1262
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.cardMerchantId = m),
|
|
1263
1263
|
label: "Card Merchant ID",
|
|
1264
|
-
rules: i(N)(i(
|
|
1264
|
+
rules: i(N)(i(D).string())
|
|
1265
1265
|
}, null, 8, ["modelValue", "rules"]),
|
|
1266
|
-
|
|
1267
|
-
a.gateway ? (
|
|
1266
|
+
r("div", at, [
|
|
1267
|
+
a.gateway ? (F(), k(g, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
class: "flex-1",
|
|
1270
1270
|
variant: "secondary",
|
|
1271
1271
|
label: "Delete",
|
|
1272
1272
|
onclick: () => a.onDelete()
|
|
1273
|
-
}, null, 8, ["onclick"])) :
|
|
1274
|
-
|
|
1273
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1274
|
+
n(g, {
|
|
1275
1275
|
type: "submit",
|
|
1276
1276
|
class: "flex-1",
|
|
1277
1277
|
variant: "primary",
|
|
@@ -1283,7 +1283,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1283
1283
|
}, 512);
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
|
-
}), ot = { class: "flex mt-6 space-x-6" }, lt = /* @__PURE__ */
|
|
1286
|
+
}), ot = { class: "flex mt-6 space-x-6" }, lt = /* @__PURE__ */ R({
|
|
1287
1287
|
__name: "AdyenGateway",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
gateway: {
|
|
@@ -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 b;
|
|
1304
|
+
const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1305
1305
|
merchantAccount: "",
|
|
1306
1306
|
username: "",
|
|
1307
1307
|
apiKey: "",
|
|
@@ -1310,57 +1310,57 @@ 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 = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
|
|
1314
|
+
return F(), k(v, {
|
|
1315
1315
|
ref: "form",
|
|
1316
1316
|
class: "flex flex-col gap-16",
|
|
1317
1317
|
onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
|
|
1318
1318
|
}, {
|
|
1319
|
-
default:
|
|
1320
|
-
|
|
1319
|
+
default: w(() => [
|
|
1320
|
+
n(c, {
|
|
1321
1321
|
modelValue: e.value.endpoint,
|
|
1322
1322
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.endpoint = m),
|
|
1323
1323
|
label: "Endpoint",
|
|
1324
|
-
rules: i(N)(i(
|
|
1324
|
+
rules: i(N)(i(D).string())
|
|
1325
1325
|
}, null, 8, ["modelValue", "rules"]),
|
|
1326
|
-
|
|
1326
|
+
n(c, {
|
|
1327
1327
|
modelValue: e.value.merchantAccount,
|
|
1328
1328
|
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.merchantAccount = m),
|
|
1329
1329
|
label: "Merchant Account",
|
|
1330
|
-
rules: i(N)(i(
|
|
1330
|
+
rules: i(N)(i(D).string())
|
|
1331
1331
|
}, null, 8, ["modelValue", "rules"]),
|
|
1332
|
-
|
|
1332
|
+
n(c, {
|
|
1333
1333
|
modelValue: e.value.username,
|
|
1334
1334
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.username = m),
|
|
1335
1335
|
label: "Username",
|
|
1336
|
-
rules: i(N)(i(
|
|
1336
|
+
rules: i(N)(i(D).string())
|
|
1337
1337
|
}, null, 8, ["modelValue", "rules"]),
|
|
1338
|
-
|
|
1338
|
+
n(c, {
|
|
1339
1339
|
modelValue: e.value.apiKey,
|
|
1340
1340
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => e.value.apiKey = m),
|
|
1341
1341
|
label: "API Key",
|
|
1342
|
-
rules: i(N)(i(
|
|
1342
|
+
rules: i(N)(i(D).string())
|
|
1343
1343
|
}, null, 8, ["modelValue", "rules"]),
|
|
1344
|
-
|
|
1344
|
+
n(c, {
|
|
1345
1345
|
modelValue: e.value.clientKey,
|
|
1346
1346
|
"onUpdate:modelValue": t[4] || (t[4] = (m) => e.value.clientKey = m),
|
|
1347
1347
|
label: "Client Key",
|
|
1348
|
-
rules: i(N)(i(
|
|
1348
|
+
rules: i(N)(i(D).string())
|
|
1349
1349
|
}, null, 8, ["modelValue", "rules"]),
|
|
1350
|
-
|
|
1350
|
+
n(c, {
|
|
1351
1351
|
modelValue: e.value.hmacKey,
|
|
1352
1352
|
"onUpdate:modelValue": t[5] || (t[5] = (m) => e.value.hmacKey = m),
|
|
1353
1353
|
label: "HMac Key"
|
|
1354
1354
|
}, null, 8, ["modelValue"]),
|
|
1355
|
-
|
|
1356
|
-
a.gateway ? (
|
|
1355
|
+
r("div", ot, [
|
|
1356
|
+
a.gateway ? (F(), k(g, {
|
|
1357
1357
|
key: 0,
|
|
1358
1358
|
class: "flex-1",
|
|
1359
1359
|
variant: "secondary",
|
|
1360
1360
|
label: "Delete",
|
|
1361
1361
|
onclick: () => a.onDelete()
|
|
1362
|
-
}, null, 8, ["onclick"])) :
|
|
1363
|
-
|
|
1362
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1363
|
+
n(g, {
|
|
1364
1364
|
type: "submit",
|
|
1365
1365
|
class: "flex-1",
|
|
1366
1366
|
variant: "primary",
|
|
@@ -1372,7 +1372,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1372
1372
|
}, 512);
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
|
-
}), ut = { class: "flex mt-6 space-x-6" },
|
|
1375
|
+
}), ut = { class: "flex mt-6 space-x-6" }, rt = /* @__PURE__ */ R({
|
|
1376
1376
|
__name: "KsherGateway",
|
|
1377
1377
|
props: {
|
|
1378
1378
|
gateway: {
|
|
@@ -1389,41 +1389,41 @@ 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 b;
|
|
1393
|
+
const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1394
1394
|
appId: "",
|
|
1395
1395
|
privateKey: ""
|
|
1396
1396
|
});
|
|
1397
1397
|
return (u, t) => {
|
|
1398
|
-
const c =
|
|
1399
|
-
return
|
|
1398
|
+
const c = p("FmTextField"), g = p("FmTextarea"), v = p("FmButton"), m = p("FmForm");
|
|
1399
|
+
return F(), 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))
|
|
1403
1403
|
}, {
|
|
1404
|
-
default:
|
|
1405
|
-
|
|
1404
|
+
default: w(() => [
|
|
1405
|
+
n(c, {
|
|
1406
1406
|
modelValue: e.value.appId,
|
|
1407
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1407
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.appId = f),
|
|
1408
1408
|
label: "App ID",
|
|
1409
|
-
rules: i(N)(i(
|
|
1409
|
+
rules: i(N)(i(D).string())
|
|
1410
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1411
|
-
|
|
1411
|
+
n(g, {
|
|
1412
1412
|
modelValue: e.value.privateKey,
|
|
1413
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1413
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => e.value.privateKey = f),
|
|
1414
1414
|
label: "Private Key",
|
|
1415
1415
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
1416
|
-
rules: i(N)(i(
|
|
1416
|
+
rules: i(N)(i(D).string())
|
|
1417
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1418
|
-
|
|
1419
|
-
a.gateway ? (
|
|
1418
|
+
r("div", ut, [
|
|
1419
|
+
a.gateway ? (F(), k(v, {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
class: "flex-1",
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
label: "Delete",
|
|
1424
1424
|
onclick: () => a.onDelete()
|
|
1425
|
-
}, null, 8, ["onclick"])) :
|
|
1426
|
-
|
|
1425
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1426
|
+
n(v, {
|
|
1427
1427
|
type: "submit",
|
|
1428
1428
|
class: "flex-1",
|
|
1429
1429
|
variant: "primary",
|
|
@@ -1435,7 +1435,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1435
1435
|
}, 512);
|
|
1436
1436
|
};
|
|
1437
1437
|
}
|
|
1438
|
-
}),
|
|
1438
|
+
}), st = /* @__PURE__ */ R({
|
|
1439
1439
|
__name: "TyroGateway",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
gateway: {
|
|
@@ -1452,39 +1452,103 @@ 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 b;
|
|
1456
1456
|
const e = U(
|
|
1457
|
-
((
|
|
1457
|
+
((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1458
1458
|
locationId: ""
|
|
1459
1459
|
}
|
|
1460
1460
|
);
|
|
1461
1461
|
return (u, t) => {
|
|
1462
|
-
const c =
|
|
1463
|
-
return
|
|
1462
|
+
const c = p("FmTextField"), g = p("FmForm");
|
|
1463
|
+
return F(), k(g, {
|
|
1464
1464
|
ref: "form",
|
|
1465
1465
|
class: "flex flex-col gap-16",
|
|
1466
1466
|
onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
|
|
1467
1467
|
}, {
|
|
1468
|
-
default:
|
|
1469
|
-
|
|
1468
|
+
default: w(() => [
|
|
1469
|
+
n(c, {
|
|
1470
1470
|
modelValue: e.value.locationId,
|
|
1471
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1471
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.value.locationId = v),
|
|
1472
1472
|
label: "Location ID",
|
|
1473
1473
|
readonly: !0,
|
|
1474
|
-
rules: i(N)(i(
|
|
1474
|
+
rules: i(N)(i(D).string())
|
|
1475
1475
|
}, null, 8, ["modelValue", "rules"])
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 512);
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
|
-
}), it = {
|
|
1481
|
+
}), it = { class: "flex mt-6 space-x-6" }, ct = /* @__PURE__ */ R({
|
|
1482
|
+
__name: "BeamGateway",
|
|
1483
|
+
props: {
|
|
1484
|
+
gateway: {
|
|
1485
|
+
type: Object,
|
|
1486
|
+
required: !0
|
|
1487
|
+
},
|
|
1488
|
+
onUpdate: {
|
|
1489
|
+
type: Function,
|
|
1490
|
+
required: !0
|
|
1491
|
+
},
|
|
1492
|
+
onDelete: {
|
|
1493
|
+
type: Function,
|
|
1494
|
+
required: !0
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
setup(a) {
|
|
1498
|
+
var b;
|
|
1499
|
+
const e = U(
|
|
1500
|
+
((b = a.gateway) == null ? void 0 : b.config) || {
|
|
1501
|
+
merchantId: "",
|
|
1502
|
+
apiKey: ""
|
|
1503
|
+
}
|
|
1504
|
+
);
|
|
1505
|
+
return (u, t) => {
|
|
1506
|
+
const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
|
|
1507
|
+
return F(), k(v, {
|
|
1508
|
+
ref: "form",
|
|
1509
|
+
class: "flex flex-col gap-16",
|
|
1510
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1511
|
+
}, {
|
|
1512
|
+
default: w(() => [
|
|
1513
|
+
n(c, {
|
|
1514
|
+
modelValue: e.value.merchantId,
|
|
1515
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1516
|
+
label: "Merchant ID",
|
|
1517
|
+
rules: i(N)(i(D).string())
|
|
1518
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
1519
|
+
n(c, {
|
|
1520
|
+
modelValue: e.value.apiKey,
|
|
1521
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.apiKey = m),
|
|
1522
|
+
label: "Api Key",
|
|
1523
|
+
rules: i(N)(i(D).string())
|
|
1524
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
1525
|
+
r("div", it, [
|
|
1526
|
+
a.gateway ? (F(), k(g, {
|
|
1527
|
+
key: 0,
|
|
1528
|
+
class: "flex-1",
|
|
1529
|
+
variant: "secondary",
|
|
1530
|
+
label: "Delete",
|
|
1531
|
+
onclick: () => a.onDelete()
|
|
1532
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1533
|
+
n(g, {
|
|
1534
|
+
type: "submit",
|
|
1535
|
+
class: "flex-1",
|
|
1536
|
+
variant: "primary",
|
|
1537
|
+
label: "Save"
|
|
1538
|
+
})
|
|
1539
|
+
])
|
|
1540
|
+
]),
|
|
1541
|
+
_: 1
|
|
1542
|
+
}, 512);
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
}), mt = {
|
|
1482
1546
|
key: 0,
|
|
1483
1547
|
className: "mt-1 my-6 text-gray-600"
|
|
1484
|
-
},
|
|
1548
|
+
}, dt = {
|
|
1485
1549
|
key: 1,
|
|
1486
1550
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1487
|
-
},
|
|
1551
|
+
}, pt = /* @__PURE__ */ R({
|
|
1488
1552
|
__name: "PaymentGateway",
|
|
1489
1553
|
props: {
|
|
1490
1554
|
payoutAccount: {
|
|
@@ -1493,59 +1557,65 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1493
1557
|
}
|
|
1494
1558
|
},
|
|
1495
1559
|
setup(a) {
|
|
1496
|
-
const l = pe().currentCountry, e = l.value,
|
|
1560
|
+
const l = pe().currentCountry, e = l.value, b = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
|
|
1497
1561
|
gatewayTab: ""
|
|
1498
|
-
}),
|
|
1562
|
+
}), g = a, v = [
|
|
1499
1563
|
{
|
|
1500
1564
|
label: "Fiuu",
|
|
1501
1565
|
value: "RAZER_MERCHANT_SERVICE",
|
|
1502
1566
|
render: Xe,
|
|
1503
|
-
region: [
|
|
1567
|
+
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1504
1568
|
},
|
|
1505
1569
|
{
|
|
1506
1570
|
label: "Macau Pass",
|
|
1507
1571
|
value: "MACAU_PASS",
|
|
1508
1572
|
render: tt,
|
|
1509
|
-
region: [
|
|
1573
|
+
region: [q.F_COUNTRY.enum.MO]
|
|
1510
1574
|
},
|
|
1511
1575
|
{
|
|
1512
1576
|
label: "Digio",
|
|
1513
1577
|
value: "DIGIO",
|
|
1514
1578
|
render: nt,
|
|
1515
|
-
region: [
|
|
1579
|
+
region: [q.F_COUNTRY.enum.TH]
|
|
1516
1580
|
},
|
|
1517
1581
|
{
|
|
1518
1582
|
label: "Ksher",
|
|
1519
1583
|
value: "KSHER",
|
|
1520
|
-
render:
|
|
1521
|
-
region: [
|
|
1584
|
+
render: rt,
|
|
1585
|
+
region: [q.F_COUNTRY.enum.TH]
|
|
1522
1586
|
},
|
|
1523
1587
|
{
|
|
1524
1588
|
label: "Adyen",
|
|
1525
1589
|
value: "ADYEN",
|
|
1526
1590
|
render: lt,
|
|
1527
|
-
region: [
|
|
1591
|
+
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1528
1592
|
},
|
|
1529
1593
|
{
|
|
1530
1594
|
label: "Tyro",
|
|
1531
1595
|
value: "TYRO",
|
|
1532
|
-
render:
|
|
1533
|
-
region: [
|
|
1596
|
+
render: st,
|
|
1597
|
+
region: [q.F_COUNTRY.enum.AU]
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
label: "Beam",
|
|
1601
|
+
value: "BEAM",
|
|
1602
|
+
render: ct,
|
|
1603
|
+
region: [q.F_COUNTRY.enum.TH]
|
|
1534
1604
|
}
|
|
1535
1605
|
], m = U(
|
|
1536
|
-
|
|
1537
|
-
),
|
|
1538
|
-
(S) => S.region.includes(l.value ??
|
|
1606
|
+
g.payoutAccount.gateways ?? []
|
|
1607
|
+
), f = L(() => v.find((S) => S.value === c.value)), s = L(() => v.filter(
|
|
1608
|
+
(S) => S.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1539
1609
|
));
|
|
1540
|
-
async function
|
|
1610
|
+
async function y(S) {
|
|
1541
1611
|
await t(async () => {
|
|
1542
1612
|
try {
|
|
1543
|
-
await Y.updateGateway(
|
|
1613
|
+
await Y.updateGateway(g.payoutAccount._id, S), b.open({
|
|
1544
1614
|
type: "success",
|
|
1545
1615
|
title: "Payout account gateways update succesfully"
|
|
1546
1616
|
}), d.value = S.length === 0;
|
|
1547
1617
|
} catch (A) {
|
|
1548
|
-
|
|
1618
|
+
b.open({
|
|
1549
1619
|
type: "error",
|
|
1550
1620
|
title: "Error occurs when updating payout account gateways",
|
|
1551
1621
|
message: Z(A)
|
|
@@ -1553,66 +1623,66 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1553
1623
|
}
|
|
1554
1624
|
});
|
|
1555
1625
|
}
|
|
1556
|
-
const d = U((
|
|
1626
|
+
const d = U((g.payoutAccount.gateways ?? []).length === 0), o = L(() => e !== "MY" || !d.value);
|
|
1557
1627
|
return (S, A) => {
|
|
1558
|
-
var
|
|
1559
|
-
const C =
|
|
1560
|
-
return
|
|
1561
|
-
i(e) ? (
|
|
1562
|
-
|
|
1628
|
+
var P;
|
|
1629
|
+
const C = p("FmCircularProgress"), I = p("FmSwitch"), T = p("FmTabs");
|
|
1630
|
+
return F(), G(j, null, [
|
|
1631
|
+
i(e) ? (F(), G("p", mt, [...A[2] || (A[2] = [
|
|
1632
|
+
r("b", null, "Note: ", -1),
|
|
1563
1633
|
_(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1564
|
-
])])) :
|
|
1565
|
-
i(u) ? (
|
|
1566
|
-
|
|
1567
|
-
])) : (
|
|
1568
|
-
i(e) === "MY" ? (
|
|
1634
|
+
])])) : $("", !0),
|
|
1635
|
+
i(u) ? (F(), G("div", dt, [
|
|
1636
|
+
n(C, { size: "xxl" })
|
|
1637
|
+
])) : (F(), G(j, { key: 2 }, [
|
|
1638
|
+
i(e) === "MY" ? (F(), k(I, {
|
|
1569
1639
|
key: 0,
|
|
1570
1640
|
modelValue: d.value,
|
|
1571
1641
|
"onUpdate:modelValue": A[0] || (A[0] = (V) => d.value = V),
|
|
1572
1642
|
style: { "padding-bottom": "12px" },
|
|
1573
1643
|
label: "Use FeedMe's Default Account?"
|
|
1574
|
-
}, null, 8, ["modelValue"])) :
|
|
1575
|
-
|
|
1644
|
+
}, null, 8, ["modelValue"])) : $("", !0),
|
|
1645
|
+
o.value ? (F(), k(T, {
|
|
1576
1646
|
key: 1,
|
|
1577
1647
|
"model-value": i(c),
|
|
1578
1648
|
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(c) ? c.value = V : null),
|
|
1579
1649
|
class: "mb-6",
|
|
1580
|
-
items:
|
|
1581
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1582
|
-
|
|
1650
|
+
items: s.value
|
|
1651
|
+
}, null, 8, ["model-value", "items"])) : $("", !0),
|
|
1652
|
+
o.value && i(c) ? (F(), k(ue((P = f.value) == null ? void 0 : P.render), re(se({ key: 2 }, {
|
|
1583
1653
|
gateway: m.value.find(
|
|
1584
1654
|
(V) => {
|
|
1585
1655
|
var x;
|
|
1586
|
-
return V.paymentGateway === ((x =
|
|
1656
|
+
return V.paymentGateway === ((x = f.value) == null ? void 0 : x.value);
|
|
1587
1657
|
}
|
|
1588
1658
|
),
|
|
1589
1659
|
onDelete: async () => {
|
|
1590
1660
|
m.value = m.value.filter(
|
|
1591
1661
|
(V) => {
|
|
1592
1662
|
var x;
|
|
1593
|
-
return V.paymentGateway !== ((x =
|
|
1663
|
+
return V.paymentGateway !== ((x = f.value) == null ? void 0 : x.value);
|
|
1594
1664
|
}
|
|
1595
|
-
),
|
|
1665
|
+
), y(m.value);
|
|
1596
1666
|
},
|
|
1597
1667
|
onUpdate: (V) => {
|
|
1598
|
-
var
|
|
1668
|
+
var E;
|
|
1599
1669
|
let x = m.value.find(
|
|
1600
1670
|
(B) => {
|
|
1601
|
-
var
|
|
1602
|
-
return B.paymentGateway === ((
|
|
1671
|
+
var h;
|
|
1672
|
+
return B.paymentGateway === ((h = f.value) == null ? void 0 : h.value);
|
|
1603
1673
|
}
|
|
1604
1674
|
);
|
|
1605
1675
|
x ? x.config = V : m.value.push({
|
|
1606
|
-
paymentGateway: (
|
|
1676
|
+
paymentGateway: (E = f.value) == null ? void 0 : E.value,
|
|
1607
1677
|
config: V
|
|
1608
|
-
}),
|
|
1678
|
+
}), y(m.value);
|
|
1609
1679
|
}
|
|
1610
|
-
})), null, 16)) :
|
|
1680
|
+
})), null, 16)) : $("", !0)
|
|
1611
1681
|
], 64))
|
|
1612
1682
|
], 64);
|
|
1613
1683
|
};
|
|
1614
1684
|
}
|
|
1615
|
-
}),
|
|
1685
|
+
}), yt = { class: "flex mt-6 space-x-6" }, bt = /* @__PURE__ */ R({
|
|
1616
1686
|
__name: "GooglePayToken",
|
|
1617
1687
|
props: {
|
|
1618
1688
|
gateway: {
|
|
@@ -1639,44 +1709,44 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1639
1709
|
}
|
|
1640
1710
|
}
|
|
1641
1711
|
);
|
|
1642
|
-
return (
|
|
1643
|
-
const t =
|
|
1644
|
-
return
|
|
1712
|
+
return (b, u) => {
|
|
1713
|
+
const t = p("FmTextField"), c = p("FmButton"), g = p("FmForm");
|
|
1714
|
+
return F(), k(g, {
|
|
1645
1715
|
ref: "form",
|
|
1646
1716
|
class: "flex flex-col gap-16",
|
|
1647
1717
|
onValidationSuccess: u[3] || (u[3] = () => a.onUpdate(e.value))
|
|
1648
1718
|
}, {
|
|
1649
|
-
default:
|
|
1650
|
-
|
|
1719
|
+
default: w(() => [
|
|
1720
|
+
n(t, {
|
|
1651
1721
|
modelValue: e.value.gateway,
|
|
1652
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1722
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => e.value.gateway = v),
|
|
1653
1723
|
label: "Gateway",
|
|
1654
1724
|
disabled: !0,
|
|
1655
|
-
rules: i(N)(i(
|
|
1725
|
+
rules: i(N)(i(D).string())
|
|
1656
1726
|
}, null, 8, ["modelValue", "rules"]),
|
|
1657
|
-
|
|
1727
|
+
n(t, {
|
|
1658
1728
|
modelValue: e.value.config.gateway,
|
|
1659
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1729
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => e.value.config.gateway = v),
|
|
1660
1730
|
label: "Gateway ID",
|
|
1661
1731
|
disabled: !0,
|
|
1662
|
-
rules: i(N)(i(
|
|
1732
|
+
rules: i(N)(i(D).string())
|
|
1663
1733
|
}, null, 8, ["modelValue", "rules"]),
|
|
1664
|
-
|
|
1734
|
+
n(t, {
|
|
1665
1735
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1666
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1736
|
+
"onUpdate:modelValue": u[2] || (u[2] = (v) => e.value.config.gatewayMerchantId = v),
|
|
1667
1737
|
label: "Gateway Merchant ID",
|
|
1668
1738
|
disabled: !0,
|
|
1669
|
-
rules: i(N)(i(
|
|
1739
|
+
rules: i(N)(i(D).string())
|
|
1670
1740
|
}, null, 8, ["modelValue", "rules"]),
|
|
1671
|
-
|
|
1672
|
-
a.gateway ? (
|
|
1741
|
+
r("div", yt, [
|
|
1742
|
+
a.gateway ? (F(), k(c, {
|
|
1673
1743
|
key: 0,
|
|
1674
1744
|
class: "flex-1",
|
|
1675
1745
|
variant: "secondary",
|
|
1676
1746
|
label: "Delete",
|
|
1677
1747
|
onclick: () => a.onDelete()
|
|
1678
|
-
}, null, 8, ["onclick"])) :
|
|
1679
|
-
|
|
1748
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1749
|
+
n(c, {
|
|
1680
1750
|
type: "submit",
|
|
1681
1751
|
class: "flex-1",
|
|
1682
1752
|
variant: "primary",
|
|
@@ -1688,7 +1758,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1688
1758
|
}, 512);
|
|
1689
1759
|
};
|
|
1690
1760
|
}
|
|
1691
|
-
}),
|
|
1761
|
+
}), vt = { class: "flex mt-6 space-x-6" }, ft = /* @__PURE__ */ R({
|
|
1692
1762
|
__name: "ApplePayToken",
|
|
1693
1763
|
props: {
|
|
1694
1764
|
gateway: {
|
|
@@ -1714,37 +1784,37 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1714
1784
|
}
|
|
1715
1785
|
}
|
|
1716
1786
|
);
|
|
1717
|
-
return (
|
|
1718
|
-
const t =
|
|
1719
|
-
return
|
|
1787
|
+
return (b, u) => {
|
|
1788
|
+
const t = p("FmTextField"), c = p("FmButton"), g = p("FmForm");
|
|
1789
|
+
return F(), k(g, {
|
|
1720
1790
|
ref: "form",
|
|
1721
1791
|
class: "flex flex-col gap-16",
|
|
1722
1792
|
onValidationSuccess: u[2] || (u[2] = () => a.onUpdate(e.value))
|
|
1723
1793
|
}, {
|
|
1724
|
-
default:
|
|
1725
|
-
|
|
1794
|
+
default: w(() => [
|
|
1795
|
+
n(t, {
|
|
1726
1796
|
modelValue: e.value.gateway,
|
|
1727
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1797
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => e.value.gateway = v),
|
|
1728
1798
|
label: "Gateway",
|
|
1729
1799
|
disabled: !0,
|
|
1730
|
-
rules: i(N)(i(
|
|
1800
|
+
rules: i(N)(i(D).string())
|
|
1731
1801
|
}, null, 8, ["modelValue", "rules"]),
|
|
1732
|
-
|
|
1802
|
+
n(t, {
|
|
1733
1803
|
modelValue: e.value.config.merchantId,
|
|
1734
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1804
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => e.value.config.merchantId = v),
|
|
1735
1805
|
label: "Merchant ID",
|
|
1736
1806
|
disabled: !0,
|
|
1737
|
-
rules: i(N)(i(
|
|
1807
|
+
rules: i(N)(i(D).string())
|
|
1738
1808
|
}, null, 8, ["modelValue", "rules"]),
|
|
1739
|
-
|
|
1740
|
-
a.gateway ? (
|
|
1809
|
+
r("div", vt, [
|
|
1810
|
+
a.gateway ? (F(), k(c, {
|
|
1741
1811
|
key: 0,
|
|
1742
1812
|
class: "flex-1",
|
|
1743
1813
|
variant: "secondary",
|
|
1744
1814
|
label: "Delete",
|
|
1745
1815
|
onclick: () => a.onDelete()
|
|
1746
|
-
}, null, 8, ["onclick"])) :
|
|
1747
|
-
|
|
1816
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1817
|
+
n(c, {
|
|
1748
1818
|
type: "submit",
|
|
1749
1819
|
class: "flex-1",
|
|
1750
1820
|
variant: "primary",
|
|
@@ -1756,10 +1826,10 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1756
1826
|
}, 512);
|
|
1757
1827
|
};
|
|
1758
1828
|
}
|
|
1759
|
-
}),
|
|
1829
|
+
}), gt = {
|
|
1760
1830
|
key: 0,
|
|
1761
1831
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1762
|
-
},
|
|
1832
|
+
}, Ft = /* @__PURE__ */ R({
|
|
1763
1833
|
__name: "TokenGateway",
|
|
1764
1834
|
props: {
|
|
1765
1835
|
payoutAccount: {
|
|
@@ -1768,30 +1838,30 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1768
1838
|
}
|
|
1769
1839
|
},
|
|
1770
1840
|
setup(a) {
|
|
1771
|
-
const l = pe().currentCountry, e = W(), { isLoading:
|
|
1841
|
+
const l = pe().currentCountry, e = W(), { isLoading: b, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
|
|
1772
1842
|
tokenTab: ""
|
|
1773
|
-
}), c = a,
|
|
1843
|
+
}), c = a, g = [
|
|
1774
1844
|
{
|
|
1775
1845
|
label: "Google Pay",
|
|
1776
1846
|
value: "googlePay",
|
|
1777
1847
|
icon: "android",
|
|
1778
|
-
render:
|
|
1779
|
-
region: [
|
|
1848
|
+
render: bt,
|
|
1849
|
+
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1780
1850
|
},
|
|
1781
1851
|
{
|
|
1782
1852
|
label: "Apple Pay",
|
|
1783
1853
|
value: "applePay",
|
|
1784
1854
|
icon: "iOS",
|
|
1785
|
-
render:
|
|
1786
|
-
region: [
|
|
1855
|
+
render: ft,
|
|
1856
|
+
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1787
1857
|
}
|
|
1788
|
-
],
|
|
1789
|
-
(
|
|
1858
|
+
], v = U(c.payoutAccount.tokens ?? []), m = L(() => g.find((y) => y.value === t.value)), f = L(() => g.filter(
|
|
1859
|
+
(y) => y.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1790
1860
|
));
|
|
1791
|
-
async function
|
|
1861
|
+
async function s(y) {
|
|
1792
1862
|
await u(async () => {
|
|
1793
1863
|
try {
|
|
1794
|
-
await Y.updateTokens(c.payoutAccount._id,
|
|
1864
|
+
await Y.updateTokens(c.payoutAccount._id, y), e.open({
|
|
1795
1865
|
type: "success",
|
|
1796
1866
|
title: "Payout account tokens gateway update succesfully"
|
|
1797
1867
|
});
|
|
@@ -1804,50 +1874,50 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1804
1874
|
}
|
|
1805
1875
|
});
|
|
1806
1876
|
}
|
|
1807
|
-
return (
|
|
1877
|
+
return (y, d) => {
|
|
1808
1878
|
var A;
|
|
1809
|
-
const
|
|
1810
|
-
return
|
|
1811
|
-
d[1] || (d[1] =
|
|
1812
|
-
|
|
1879
|
+
const o = p("FmCircularProgress"), S = p("FmTabs");
|
|
1880
|
+
return F(), G(j, null, [
|
|
1881
|
+
d[1] || (d[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1882
|
+
r("b", null, "Note: "),
|
|
1813
1883
|
_(" 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. "),
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1884
|
+
r("br"),
|
|
1885
|
+
r("br"),
|
|
1886
|
+
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
|
+
r("br")
|
|
1818
1888
|
], -1)),
|
|
1819
|
-
i(
|
|
1820
|
-
o
|
|
1821
|
-
])) : (
|
|
1889
|
+
i(b) ? (F(), G("div", gt, [
|
|
1890
|
+
n(o, { size: "xxl" })
|
|
1891
|
+
])) : (F(), k(S, {
|
|
1822
1892
|
key: 1,
|
|
1823
1893
|
"model-value": i(t),
|
|
1824
1894
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => ae(t) ? t.value = C : null),
|
|
1825
1895
|
class: "mb-6 mt-6",
|
|
1826
|
-
items:
|
|
1896
|
+
items: f.value
|
|
1827
1897
|
}, null, 8, ["model-value", "items"])),
|
|
1828
|
-
i(t) ? (
|
|
1829
|
-
gateway:
|
|
1898
|
+
i(t) ? (F(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
|
|
1899
|
+
gateway: v.value.find((C) => {
|
|
1830
1900
|
var I;
|
|
1831
1901
|
return C.type === ((I = m.value) == null ? void 0 : I.value);
|
|
1832
1902
|
}),
|
|
1833
1903
|
onDelete: async () => {
|
|
1834
|
-
|
|
1904
|
+
v.value = v.value.filter((C) => {
|
|
1835
1905
|
var I;
|
|
1836
1906
|
return C.type !== ((I = m.value) == null ? void 0 : I.value);
|
|
1837
|
-
}),
|
|
1907
|
+
}), s(v.value);
|
|
1838
1908
|
},
|
|
1839
1909
|
onUpdate: (C) => {
|
|
1840
|
-
let I =
|
|
1841
|
-
var
|
|
1842
|
-
return
|
|
1910
|
+
let I = v.value.find((T) => {
|
|
1911
|
+
var P;
|
|
1912
|
+
return T.type === ((P = m.value) == null ? void 0 : P.value);
|
|
1843
1913
|
});
|
|
1844
|
-
I ? I.config = C :
|
|
1914
|
+
I ? I.config = C : v.value.push(C), s(v.value);
|
|
1845
1915
|
}
|
|
1846
|
-
})), null, 16)) :
|
|
1916
|
+
})), null, 16)) : $("", !0)
|
|
1847
1917
|
], 64);
|
|
1848
1918
|
};
|
|
1849
1919
|
}
|
|
1850
|
-
}),
|
|
1920
|
+
}), Mt = /* @__PURE__ */ R({
|
|
1851
1921
|
__name: "PayoutAccountSetting",
|
|
1852
1922
|
props: {
|
|
1853
1923
|
accountId: {
|
|
@@ -1858,25 +1928,25 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1858
1928
|
setup(a) {
|
|
1859
1929
|
const l = a, { tab: e } = oe({
|
|
1860
1930
|
tab: "information"
|
|
1861
|
-
}), { isLoading:
|
|
1862
|
-
async function
|
|
1931
|
+
}), { isLoading: b, startAsyncCall: u } = ne(!0), t = ve(), c = U();
|
|
1932
|
+
async function g(s) {
|
|
1863
1933
|
await Y.updateById(
|
|
1864
1934
|
l.accountId,
|
|
1865
|
-
|
|
1935
|
+
s
|
|
1866
1936
|
), c.value = await Y.readById(l.accountId);
|
|
1867
1937
|
}
|
|
1868
|
-
const
|
|
1938
|
+
const v = [
|
|
1869
1939
|
{
|
|
1870
1940
|
label: "Information",
|
|
1871
1941
|
value: "information",
|
|
1872
1942
|
icon: "overview",
|
|
1873
|
-
render:
|
|
1943
|
+
render: Ce
|
|
1874
1944
|
},
|
|
1875
1945
|
{
|
|
1876
1946
|
label: "Settlement",
|
|
1877
1947
|
value: "settlement",
|
|
1878
1948
|
icon: "payments",
|
|
1879
|
-
render:
|
|
1949
|
+
render: $e
|
|
1880
1950
|
},
|
|
1881
1951
|
{
|
|
1882
1952
|
label: "MDR Status",
|
|
@@ -1888,13 +1958,13 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1888
1958
|
label: "Online Gateways",
|
|
1889
1959
|
icon: "assured_workload",
|
|
1890
1960
|
value: "gateways",
|
|
1891
|
-
render:
|
|
1961
|
+
render: pt
|
|
1892
1962
|
},
|
|
1893
1963
|
{
|
|
1894
1964
|
label: "Token Gateways",
|
|
1895
1965
|
value: "tokens",
|
|
1896
1966
|
icon: "wallet",
|
|
1897
|
-
render:
|
|
1967
|
+
render: Ft
|
|
1898
1968
|
},
|
|
1899
1969
|
{
|
|
1900
1970
|
label: "Online Channels",
|
|
@@ -1909,29 +1979,29 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1909
1979
|
});
|
|
1910
1980
|
}
|
|
1911
1981
|
me(m);
|
|
1912
|
-
const
|
|
1913
|
-
const
|
|
1914
|
-
return
|
|
1982
|
+
const f = L(() => {
|
|
1983
|
+
const s = v.reduce((y, d) => y || (d.children ? d.children.find((o) => o.value === e.value) || null : d.value === e.value ? d : null), null);
|
|
1984
|
+
return s == null ? void 0 : s.render;
|
|
1915
1985
|
});
|
|
1916
|
-
return (
|
|
1917
|
-
var
|
|
1918
|
-
const d =
|
|
1919
|
-
return
|
|
1920
|
-
title: `Payout Account (${(
|
|
1921
|
-
loading: i(
|
|
1986
|
+
return (s, y) => {
|
|
1987
|
+
var o;
|
|
1988
|
+
const d = p("FmTabs");
|
|
1989
|
+
return F(), k(be, {
|
|
1990
|
+
title: `Payout Account (${(o = c.value) == null ? void 0 : o._id})`,
|
|
1991
|
+
loading: i(b),
|
|
1922
1992
|
onBack: i(t).back
|
|
1923
1993
|
}, {
|
|
1924
|
-
default:
|
|
1925
|
-
|
|
1994
|
+
default: w(() => [
|
|
1995
|
+
n(d, {
|
|
1926
1996
|
"model-value": i(e),
|
|
1927
|
-
"onUpdate:modelValue":
|
|
1997
|
+
"onUpdate:modelValue": y[0] || (y[0] = (S) => ae(e) ? e.value = S : null),
|
|
1928
1998
|
class: "mb-6",
|
|
1929
|
-
items:
|
|
1999
|
+
items: v
|
|
1930
2000
|
}, null, 8, ["model-value"]),
|
|
1931
|
-
i(e) ? (
|
|
2001
|
+
i(e) ? (F(), k(ue(f.value), re(se({ key: 0 }, {
|
|
1932
2002
|
payoutAccount: c.value,
|
|
1933
|
-
onUpdate:
|
|
1934
|
-
})), null, 16)) :
|
|
2003
|
+
onUpdate: g
|
|
2004
|
+
})), null, 16)) : $("", !0)
|
|
1935
2005
|
]),
|
|
1936
2006
|
_: 1
|
|
1937
2007
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1939,5 +2009,5 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1939
2009
|
}
|
|
1940
2010
|
});
|
|
1941
2011
|
export {
|
|
1942
|
-
|
|
2012
|
+
Mt as default
|
|
1943
2013
|
};
|