@feedmepos/mf-payment 1.8.2-dev → 1.8.3
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-DTEtNSn0.js → Actions.vue_vue_type_script_setup_true_lang-BSGz-vYS.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Cd6D7JxK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-QhHy3t8E.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzZePzBx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-fTGrC0GL.js} +2 -2
- package/dist/{Chargeback--k3Sc269.js → Chargeback-_yYgraXd.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-qt0R7G3l.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C71wuVoe.js} +1 -1
- package/dist/{OnboardForm-BQf8mMqv.js → OnboardForm-CcuNtcGY.js} +6 -6
- package/dist/{OnboardForm-me9MIQPW.js → OnboardForm-DwtSLZZ6.js} +6 -6
- package/dist/{OnboardSubmission-D-q3ryM1.js → OnboardSubmission-B13TG3VY.js} +3 -3
- package/dist/{OnboardSubmission-CRy_a6MZ.js → OnboardSubmission-B7WfxwtM.js} +6 -6
- package/dist/{PayoutAccount-BBZIFYHv.js → PayoutAccount-BH1AZPsn.js} +7 -7
- package/dist/{PayoutAccount-CA0-FenU.js → PayoutAccount-DKoSN0Oj.js} +5 -5
- package/dist/{PayoutAccountSetting-E8c0t725.js → PayoutAccountSetting-ChgN1fKw.js} +609 -679
- package/dist/{Restaurant-CJZVhzJB.js → Restaurant-DGF0JBQS.js} +4 -4
- package/dist/{RestaurantSetting-C39PQEKt.js → RestaurantSetting-CsXBf_vm.js} +81 -156
- package/dist/{Settlement-DssD_F2s.js → Settlement-Q5vvGkPy.js} +105 -103
- package/dist/{Settlement-DzzY0DMx.js → Settlement-yWwPTpRg.js} +3 -3
- package/dist/{SettlementTransactions-D2Xioa5P.js → SettlementTransactions-CoZ_d8v7.js} +5 -5
- package/dist/{SettlementTransactions-DBn9ZZrx.js → SettlementTransactions-D3Zl668N.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BvC2RAT0.js → Status.vue_vue_type_script_setup_true_lang-gOHlrQzZ.js} +1 -1
- package/dist/{Terminal-BqXWec-h.js → Terminal-CwG-DaEc.js} +5 -5
- package/dist/{TerminalSetting-D1j2HcJX.js → TerminalSetting-zm7YMozj.js} +5 -5
- package/dist/{Transaction-D09SeHHy.js → Transaction-CUChE6GZ.js} +10 -10
- package/dist/{Transaction-GM0aWwMD.js → Transaction-CXsRdbmU.js} +11 -11
- package/dist/{TransactionOld-B7C7w_nF.js → TransactionOld-BNjs4dYq.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-gwTbVHHZ.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C3AneKTm.js} +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/{app-IMZnVpiW.js → app-BaVLWYef.js} +355 -361
- package/dist/app.js +1 -1
- package/dist/{assets-CdIR0Fo6.js → assets-CIBOgszq.js} +1 -1
- package/dist/{grafana-BUVwK44E.js → grafana-CFBCBQ8m.js} +1 -1
- package/dist/{index-Cq0_oRPO.js → index-7w_c2P-2.js} +3874 -3918
- package/dist/{index-CQkc3pUj.js → index-BFUTi1W-.js} +1 -1
- package/dist/{index-CtTi9CvW.js → index-CBTRIvWq.js} +2 -2
- package/dist/{index-BDYQ2vRc.js → index-CC8i1RP4.js} +1 -1
- package/dist/{index-aeXyggRd.js → index-Cg1xw1iV.js} +1 -1
- package/dist/{index-DyEjrl8n.js → index-D1CnAe4w.js} +1 -1
- package/dist/{index-DzqFl5Rn.js → index-D79i4yHd.js} +53 -48
- package/dist/{index-COCd1-Jr.js → index-pd_Yn_Nn.js} +1 -1
- package/dist/{index-D3XosMuu.js → index-xHYVdwJd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dv8NeEwd.js → index.vue_vue_type_script_setup_true_lang-C1azAm9j.js} +1 -1
- package/dist/{onboard-submission-D_xLxM1D.js → onboard-submission-BDvoGLwP.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-C8GNZ2kc.js → payout-account-B0sMz1pz.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +32 -44
- 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 +32 -44
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +32 -44
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +32 -44
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- 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/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 +64 -88
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +25 -25
- package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
- package/package.json +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +0 -41
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +0 -48
|
@@ -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 M, ref as U, resolveComponent as y, openBlock as g, createElementBlock as G, Fragment as K, createElementVNode as s, createVNode as o, withCtx as k, createTextVNode as _, toDisplayString as q, unref as i, createBlock as w, createCommentVNode as E, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as me, resolveDynamicComponent as ue, normalizeProps as se, mergeProps as re } from "vue";
|
|
2
|
+
import { p as Y } from "./index-BFUTi1W-.js";
|
|
3
|
+
import { u as ne, e as O } from "./index-7w_c2P-2.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-CC8i1RP4.js";
|
|
7
|
+
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-C71wuVoe.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-xHYVdwJd.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-B0sMz1pz.js";
|
|
13
|
+
import { s as X, o as ke, z as N, a as h } 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" }, Ce = { class: "flex gap-4 mt-4" }, Ue = /* @__PURE__ */ M({
|
|
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(), v = U(!1), u = U(!1), t = U(), c = U(""), F = (d) => {
|
|
30
|
+
const n = new FileReader();
|
|
31
31
|
return new Promise((S) => {
|
|
32
|
-
|
|
32
|
+
n.onload = (A) => {
|
|
33
33
|
var C;
|
|
34
34
|
return S((C = A.target) == null ? void 0 : C.result);
|
|
35
|
-
},
|
|
35
|
+
}, n.readAsDataURL(d);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
t.value = d, c.value = d ? await
|
|
37
|
+
}, f = async (d) => {
|
|
38
|
+
t.value = d, c.value = d ? await F(d) : "";
|
|
39
39
|
}, m = () => {
|
|
40
40
|
u.value = !1, t.value = void 0, c.value = "";
|
|
41
|
-
},
|
|
41
|
+
}, b = () => {
|
|
42
42
|
t.value = void 0, c.value = "";
|
|
43
|
-
},
|
|
43
|
+
}, r = async (d) => {
|
|
44
44
|
var S;
|
|
45
|
-
const
|
|
45
|
+
const n = 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
|
+
n,
|
|
50
50
|
l.payoutAccount.store.id
|
|
51
51
|
) : await te.adminUpload(
|
|
52
|
-
`business/${
|
|
52
|
+
`business/${n}/exterior/photo`,
|
|
53
53
|
d,
|
|
54
|
-
|
|
54
|
+
n,
|
|
55
55
|
void 0
|
|
56
56
|
);
|
|
57
|
-
},
|
|
57
|
+
}, p = async () => {
|
|
58
58
|
if (t.value)
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const d = await
|
|
60
|
+
v.value = !0;
|
|
61
|
+
const d = await r(t.value), n = {
|
|
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(n), 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
|
+
v.value = !1;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
return (d,
|
|
76
|
-
var
|
|
77
|
-
const S =
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
return (d, n) => {
|
|
76
|
+
var T, V, x, $;
|
|
77
|
+
const S = y("FmCardHeader"), A = y("FmCardSection"), C = y("FmCard"), I = y("FmButton"), D = y("FmDropField");
|
|
78
|
+
return g(), G(K, null, [
|
|
79
|
+
s("div", Ve, [
|
|
80
|
+
o(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: k(() => [
|
|
86
|
+
o(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
87
|
+
default: k(() => [
|
|
88
|
+
o(S, {
|
|
89
89
|
class: "p-0",
|
|
90
90
|
title: "Account Info",
|
|
91
91
|
subtitle: ""
|
|
92
92
|
}),
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
var B,
|
|
93
|
+
o(A, { class: "p-0" }, {
|
|
94
|
+
default: k(() => {
|
|
95
|
+
var B, R, j, H, z;
|
|
96
96
|
return [
|
|
97
|
-
|
|
98
|
-
_(": " +
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
_(": " +
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
_(": " +
|
|
105
|
-
|
|
97
|
+
n[1] || (n[1] = s("b", null, "For", -1)),
|
|
98
|
+
_(": " + q((R = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : R.event) + " ", 1),
|
|
99
|
+
n[2] || (n[2] = s("br", null, null, -1)),
|
|
100
|
+
n[3] || (n[3] = s("b", null, "Reference", -1)),
|
|
101
|
+
_(": " + q((H = (j = a.payoutAccount) == null ? void 0 : j.store) == null ? void 0 : H.id), 1),
|
|
102
|
+
n[4] || (n[4] = s("br", null, null, -1)),
|
|
103
|
+
n[5] || (n[5] = s("b", null, "Business", -1)),
|
|
104
|
+
_(": " + q((z = a.payoutAccount) == null ? void 0 : z.businessId), 1),
|
|
105
|
+
n[6] || (n[6] = s("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
|
+
o(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: k(() => [
|
|
122
|
+
o(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
123
|
+
default: k(() => [
|
|
124
|
+
o(S, {
|
|
125
125
|
class: "p-0",
|
|
126
126
|
title: "Key Person",
|
|
127
127
|
subtitle: ""
|
|
128
128
|
}),
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
var B,
|
|
129
|
+
o(A, { class: "p-0" }, {
|
|
130
|
+
default: k(() => {
|
|
131
|
+
var B, R, j, H, z, P, ie, ce;
|
|
132
132
|
return [
|
|
133
|
-
|
|
134
|
-
_(": " +
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
_(": " +
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
_(": " +
|
|
141
|
-
|
|
133
|
+
n[7] || (n[7] = s("b", null, "Email", -1)),
|
|
134
|
+
_(": " + q((j = (R = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : R.keyPerson) == null ? void 0 : j.email) + " ", 1),
|
|
135
|
+
n[8] || (n[8] = s("br", null, null, -1)),
|
|
136
|
+
n[9] || (n[9] = s("b", null, "Name", -1)),
|
|
137
|
+
_(": " + q((P = (z = (H = a.payoutAccount) == null ? void 0 : H.store) == null ? void 0 : z.keyPerson) == null ? void 0 : P.name), 1),
|
|
138
|
+
n[10] || (n[10] = s("br", null, null, -1)),
|
|
139
|
+
n[11] || (n[11] = s("b", null, "Phone", -1)),
|
|
140
|
+
_(": " + q((ce = (ie = a.payoutAccount) == null ? void 0 : ie.store.keyPerson) == null ? void 0 : ce.phone), 1),
|
|
141
|
+
n[12] || (n[12] = s("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
|
+
s("div", Ae, [
|
|
154
|
+
o(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: k(() => [
|
|
160
|
+
o(A, { class: "flex flex-col gap-16 justify-between" }, {
|
|
161
|
+
default: k(() => [
|
|
162
|
+
o(S, {
|
|
163
163
|
class: "p-0",
|
|
164
164
|
title: "Status Info",
|
|
165
165
|
subtitle: ""
|
|
166
166
|
}),
|
|
167
|
-
|
|
168
|
-
default:
|
|
169
|
-
var B,
|
|
167
|
+
o(A, { class: "p-0" }, {
|
|
168
|
+
default: k(() => {
|
|
169
|
+
var B, R, j;
|
|
170
170
|
return [
|
|
171
|
-
|
|
172
|
-
_(": " +
|
|
171
|
+
n[13] || (n[13] = s("b", null, "Submission Date", -1)),
|
|
172
|
+
_(": " + q((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
|
+
n[14] || (n[14] = s("br", null, null, -1)),
|
|
176
|
+
n[15] || (n[15] = s("b", null, "Status By", -1)),
|
|
177
|
+
_(": " + q(((R = a.payoutAccount) == null ? void 0 : R.statusBy) ?? "—"), 1),
|
|
178
|
+
n[16] || (n[16] = s("br", null, null, -1)),
|
|
179
|
+
n[17] || (n[17] = s("b", null, "Status Reason", -1)),
|
|
180
|
+
_(": " + q(((j = a.payoutAccount) == null ? void 0 : j.statusReason) ?? "—"), 1),
|
|
181
|
+
n[18] || (n[18] = s("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
|
+
s("div", Se, [
|
|
194
|
+
n[19] || (n[19] = s("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
|
|
195
|
+
s("div", Ne, [
|
|
196
|
+
u.value ? (g(), w(I, {
|
|
197
197
|
key: 0,
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
label: "Cancel",
|
|
200
200
|
onClick: m
|
|
201
|
-
})) :
|
|
202
|
-
u.value ?
|
|
201
|
+
})) : E("", !0),
|
|
202
|
+
u.value ? E("", !0) : (g(), w(I, {
|
|
203
203
|
key: 1,
|
|
204
204
|
variant: "primary",
|
|
205
205
|
label: "Edit Exterior Photo",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: n[0] || (n[0] = (B) => u.value = !0)
|
|
207
207
|
}))
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
|
-
u.value ? (
|
|
211
|
-
c.value ? (
|
|
212
|
-
|
|
210
|
+
u.value ? (g(), G(K, { key: 0 }, [
|
|
211
|
+
c.value ? (g(), G(K, { key: 0 }, [
|
|
212
|
+
o(Q, {
|
|
213
213
|
document: c.value,
|
|
214
214
|
"business-id": a.payoutAccount.businessId,
|
|
215
|
-
"restaurant-id": ((V = (
|
|
215
|
+
"restaurant-id": ((V = (T = a.payoutAccount) == null ? void 0 : T.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
|
+
s("div", Ce, [
|
|
218
|
+
o(I, {
|
|
219
219
|
variant: "tertiary",
|
|
220
220
|
label: "Remove",
|
|
221
221
|
size: "md",
|
|
222
222
|
"prepend-icon": "delete",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: b
|
|
224
224
|
}),
|
|
225
|
-
|
|
225
|
+
o(I, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
label: "Save",
|
|
228
228
|
size: "md",
|
|
229
|
-
loading:
|
|
230
|
-
onClick:
|
|
229
|
+
loading: v.value,
|
|
230
|
+
onClick: p
|
|
231
231
|
}, null, 8, ["loading"])
|
|
232
232
|
])
|
|
233
|
-
], 64)) : (
|
|
233
|
+
], 64)) : (g(), w(D, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "h-[300px] w-full",
|
|
236
236
|
accept: ".png,.jpg,.jpeg,.webp,.pdf",
|
|
237
|
-
onFileUpload:
|
|
237
|
+
onFileUpload: f
|
|
238
238
|
}))
|
|
239
|
-
], 64)) : (
|
|
239
|
+
], 64)) : (g(), w(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": (($ = (x = a.payoutAccount) == null ? void 0 : x.store) == null ? void 0 : $.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" }, he = { class: "flex flex-col gap-8" }, De = { class: "flex justify-end mb-2" }, Re = /* @__PURE__ */ M({
|
|
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: v } = ge(), u = ye({
|
|
270
270
|
companyName: l.initialValue.companyName,
|
|
271
271
|
regNo: l.initialValue.regNo,
|
|
272
272
|
bankName: l.initialValue.bankName,
|
|
@@ -274,15 +274,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
274
274
|
bankAccountNumber: l.initialValue.bankAccountNumber,
|
|
275
275
|
ssm: l.initialValue.ssm,
|
|
276
276
|
bankStatement: l.initialValue.bankStatement
|
|
277
|
-
}), t = U(), c = U(),
|
|
277
|
+
}), t = U(), c = U(), F = U(u.ssm ?? ""), f = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), b = X().trim().min(1, "Registration number is required"), r = X().trim().min(1, "Bank name is required"), p = X().trim().min(1, "Bank holder name is required"), d = X().trim().min(1, "Bank account number is required"), n = ke({
|
|
278
278
|
companyName: m,
|
|
279
|
-
regNo:
|
|
280
|
-
bankName:
|
|
281
|
-
bankHolderName:
|
|
279
|
+
regNo: b,
|
|
280
|
+
bankName: r,
|
|
281
|
+
bankHolderName: p,
|
|
282
282
|
bankAccountNumber: d
|
|
283
283
|
}), S = () => {
|
|
284
|
-
const V =
|
|
285
|
-
V.success && (
|
|
284
|
+
const V = n.safeParse(u);
|
|
285
|
+
V.success && (v({
|
|
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(($) => {
|
|
296
296
|
x.onload = (B) => {
|
|
297
|
-
var
|
|
298
|
-
|
|
297
|
+
var R;
|
|
298
|
+
$((R = B.target) == null ? void 0 : R.result);
|
|
299
299
|
}, x.readAsDataURL(V);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
const C = async (V) => {
|
|
303
|
-
t.value = V,
|
|
303
|
+
t.value = V, F.value = V ? await A(V) : "";
|
|
304
304
|
}, I = async (V) => {
|
|
305
|
-
c.value = V,
|
|
305
|
+
c.value = V, f.value = V ? await A(V) : "";
|
|
306
|
+
}, D = () => {
|
|
307
|
+
t.value = void 0, F.value = "";
|
|
306
308
|
}, T = () => {
|
|
307
|
-
|
|
308
|
-
}, P = () => {
|
|
309
|
-
c.value = void 0, v.value = "";
|
|
309
|
+
c.value = void 0, f.value = "";
|
|
310
310
|
};
|
|
311
311
|
return (V, x) => {
|
|
312
|
-
const
|
|
313
|
-
return
|
|
312
|
+
const $ = y("FmTextField"), B = y("FmSelect"), R = y("FmButton"), j = y("FmFormGroup"), H = y("FmDropField"), z = y("FmForm");
|
|
313
|
+
return g(), w(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: k(() => [
|
|
318
|
+
x[9] || (x[9] = s("div", { class: "flex items-center my-2" }, [
|
|
319
|
+
s("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
320
|
+
s("span", { class: "text-left mx-6 text-gray-500" }, "Account"),
|
|
321
|
+
s("hr", { class: "flex-grow border-t border-gray-300" })
|
|
322
322
|
], -1)),
|
|
323
|
-
|
|
323
|
+
o($, {
|
|
324
324
|
modelValue: u.regNo,
|
|
325
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
325
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => u.regNo = P),
|
|
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(b)),
|
|
330
330
|
autofocus: ""
|
|
331
331
|
}, null, 8, ["modelValue", "rules"]),
|
|
332
|
-
|
|
332
|
+
o($, {
|
|
333
333
|
modelValue: u.companyName,
|
|
334
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
334
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => u.companyName = P),
|
|
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] = s("div", { class: "flex items-center my-2" }, [
|
|
341
|
+
s("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
342
|
+
s("span", { class: "text-left mx-6 text-gray-500" }, "Bank"),
|
|
343
|
+
s("hr", { class: "flex-grow border-t border-gray-300" })
|
|
344
344
|
], -1)),
|
|
345
|
-
|
|
345
|
+
o(B, {
|
|
346
346
|
modelValue: u.bankName,
|
|
347
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
347
|
+
"onUpdate:modelValue": x[2] || (x[2] = (P) => u.bankName = P),
|
|
348
348
|
label: "Bank",
|
|
349
349
|
"label-mark": "required",
|
|
350
350
|
items: l.bankNameOptions,
|
|
351
|
-
rules: i(N)(i(
|
|
351
|
+
rules: i(N)(i(r))
|
|
352
352
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
353
|
-
|
|
353
|
+
o($, {
|
|
354
354
|
modelValue: u.bankHolderName,
|
|
355
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
355
|
+
"onUpdate:modelValue": x[3] || (x[3] = (P) => u.bankHolderName = P),
|
|
356
356
|
label: "Bank Holder",
|
|
357
357
|
"label-mark": "required",
|
|
358
|
-
rules: i(N)(i(
|
|
358
|
+
rules: i(N)(i(p))
|
|
359
359
|
}, null, 8, ["modelValue", "rules"]),
|
|
360
|
-
|
|
360
|
+
o($, {
|
|
361
361
|
modelValue: u.bankAccountNumber,
|
|
362
|
-
"onUpdate:modelValue": x[4] || (x[4] = (
|
|
362
|
+
"onUpdate:modelValue": x[4] || (x[4] = (P) => u.bankAccountNumber = P),
|
|
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] = s("div", { class: "flex items-center my-2" }, [
|
|
369
|
+
s("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
370
|
+
s("span", { class: "text-left mx-6 text-gray-500" }, "Document"),
|
|
371
|
+
s("hr", { class: "flex-grow border-t border-gray-300" })
|
|
372
372
|
], -1)),
|
|
373
|
-
|
|
374
|
-
x[7] || (x[7] =
|
|
375
|
-
|
|
373
|
+
s("div", Ie, [
|
|
374
|
+
x[7] || (x[7] = s("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
375
|
+
F.value ? (g(), w(j, {
|
|
376
376
|
key: 0,
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": x[5] || (x[5] = (
|
|
377
|
+
modelValue: F.value,
|
|
378
|
+
"onUpdate:modelValue": x[5] || (x[5] = (P) => F.value = P),
|
|
379
379
|
label: "SSM"
|
|
380
380
|
}, {
|
|
381
|
-
default:
|
|
382
|
-
|
|
383
|
-
document:
|
|
381
|
+
default: k(() => [
|
|
382
|
+
o(Q, {
|
|
383
|
+
document: F.value,
|
|
384
384
|
"business-id": a.businessId,
|
|
385
385
|
"restaurant-id": a.restaurantId
|
|
386
386
|
}, {
|
|
387
|
-
default:
|
|
388
|
-
|
|
387
|
+
default: k(({ src: P }) => [
|
|
388
|
+
o(ee, {
|
|
389
389
|
height: 300,
|
|
390
|
-
pdf:
|
|
390
|
+
pdf: P,
|
|
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
|
+
o(R, {
|
|
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: D
|
|
404
404
|
})
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["modelValue"])) : (
|
|
407
|
+
}, 8, ["modelValue"])) : (g(), w(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
|
+
s("div", he, [
|
|
414
|
+
x[8] || (x[8] = s("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
415
|
+
f.value ? (g(), w(j, {
|
|
416
416
|
key: 0,
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": x[6] || (x[6] = (
|
|
417
|
+
modelValue: f.value,
|
|
418
|
+
"onUpdate:modelValue": x[6] || (x[6] = (P) => f.value = P),
|
|
419
419
|
label: "Bank Statement"
|
|
420
420
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
423
|
-
document:
|
|
421
|
+
default: k(() => [
|
|
422
|
+
o(Q, {
|
|
423
|
+
document: f.value,
|
|
424
424
|
"business-id": a.businessId,
|
|
425
425
|
"restaurant-id": a.restaurantId
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
427
|
+
default: k(({ src: P }) => [
|
|
428
|
+
o(ee, {
|
|
429
429
|
height: 300,
|
|
430
|
-
pdf:
|
|
430
|
+
pdf: P,
|
|
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
|
+
o(R, {
|
|
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: T
|
|
444
444
|
})
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
|
-
}, 8, ["modelValue"])) : (
|
|
447
|
+
}, 8, ["modelValue"])) : (g(), w(H, {
|
|
448
448
|
key: 1,
|
|
449
449
|
accept: ".pdf",
|
|
450
450
|
onFileUpload: I
|
|
451
451
|
}))
|
|
452
452
|
]),
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
s("div", De, [
|
|
454
|
+
o(R, {
|
|
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
|
+
}), Te = { 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" }, Ee = /* @__PURE__ */ M({
|
|
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), v = de(), u = W(), t = xe.bankNameOptions(), c = () => {
|
|
479
|
+
var b, r, p, d, n, S, A, C, I, D;
|
|
480
480
|
return {
|
|
481
|
-
companyName: ((
|
|
482
|
-
regNo: ((
|
|
483
|
-
bankName: ((d = (
|
|
484
|
-
bankHolderName: ((S = (
|
|
481
|
+
companyName: ((b = l.payoutAccount.store) == null ? void 0 : b.companyName) ?? "",
|
|
482
|
+
regNo: ((r = l.payoutAccount.store) == null ? void 0 : r.regNo) ?? "",
|
|
483
|
+
bankName: ((d = (p = l.payoutAccount.store) == null ? void 0 : p.bank) == null ? void 0 : d.name) ?? "",
|
|
484
|
+
bankHolderName: ((S = (n = l.payoutAccount.store) == null ? void 0 : n.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: ((D = l.payoutAccount.store) == null ? void 0 : D.bankStatement) ?? ""
|
|
488
488
|
};
|
|
489
|
-
},
|
|
490
|
-
var
|
|
491
|
-
const
|
|
492
|
-
if (((
|
|
489
|
+
}, F = async (b, r) => {
|
|
490
|
+
var n;
|
|
491
|
+
const p = (/* @__PURE__ */ new Date()).toISOString();
|
|
492
|
+
if (((n = l.payoutAccount.store) == null ? void 0 : n.event) === "ORDERING")
|
|
493
493
|
return await te.adminUpload(
|
|
494
|
-
`restaurant/${l.payoutAccount.store.id}/documents/${
|
|
495
|
-
|
|
494
|
+
`restaurant/${l.payoutAccount.store.id}/documents/${b}/${p}.pdf`,
|
|
495
|
+
r,
|
|
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/${b}/${p}.pdf`,
|
|
502
|
+
r,
|
|
503
503
|
d,
|
|
504
504
|
void 0
|
|
505
505
|
);
|
|
506
|
-
},
|
|
506
|
+
}, f = async (b) => {
|
|
507
507
|
if (!l.payoutAccount.store) return;
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
508
|
+
let r = l.payoutAccount.store.ssm;
|
|
509
|
+
b.newSSM && (r = await F("ssm", b.newSSM));
|
|
510
|
+
let p = l.payoutAccount.store.bankStatement;
|
|
511
|
+
b.newBankStatement && (p = await F(
|
|
512
512
|
"bankStatement",
|
|
513
|
-
|
|
513
|
+
b.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: b.companyName,
|
|
520
|
+
regNo: b.regNo,
|
|
521
521
|
bank: {
|
|
522
522
|
...l.payoutAccount.store.bank ?? {},
|
|
523
|
-
name:
|
|
524
|
-
holderName:
|
|
525
|
-
accountNumber:
|
|
523
|
+
name: b.bankName,
|
|
524
|
+
holderName: b.bankHolderName,
|
|
525
|
+
accountNumber: b.bankAccountNumber
|
|
526
526
|
},
|
|
527
|
-
ssm:
|
|
528
|
-
bankStatement:
|
|
527
|
+
ssm: r,
|
|
528
|
+
bankStatement: p
|
|
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
|
+
}), v.close();
|
|
536
|
+
} catch (n) {
|
|
537
537
|
u.open({
|
|
538
538
|
type: "error",
|
|
539
539
|
title: "Failed to update settlement info",
|
|
540
|
-
message: Z(
|
|
540
|
+
message: Z(n)
|
|
541
541
|
});
|
|
542
542
|
} finally {
|
|
543
543
|
e.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}, m = () => {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var b;
|
|
547
|
+
v.close(), v.open({
|
|
548
548
|
title: "Edit Settlement Info",
|
|
549
549
|
closeButton: !0,
|
|
550
550
|
overlay: !0,
|
|
551
|
-
contentComponent:
|
|
551
|
+
contentComponent: Re,
|
|
552
552
|
contentComponentProps: {
|
|
553
553
|
initialValue: c(),
|
|
554
554
|
bankNameOptions: t,
|
|
555
555
|
businessId: l.payoutAccount.businessId,
|
|
556
|
-
restaurantId: ((
|
|
556
|
+
restaurantId: ((b = l.payoutAccount.store) == null ? void 0 : b.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
|
|
557
557
|
}
|
|
558
|
-
}).onPrimary((
|
|
559
|
-
|
|
558
|
+
}).onPrimary((r) => {
|
|
559
|
+
f(r);
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
|
-
return (
|
|
563
|
-
var A, C, I,
|
|
564
|
-
const
|
|
565
|
-
return
|
|
566
|
-
|
|
567
|
-
|
|
562
|
+
return (b, r) => {
|
|
563
|
+
var A, C, I, D;
|
|
564
|
+
const p = y("FmButton"), d = y("FmCardHeader"), n = y("FmCardSection"), S = y("FmCard");
|
|
565
|
+
return g(), G(K, null, [
|
|
566
|
+
s("div", Te, [
|
|
567
|
+
o(p, {
|
|
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
|
+
s("div", Pe, [
|
|
575
|
+
o(S, {
|
|
576
576
|
horizontal: "",
|
|
577
577
|
class: "flex-1 p-6",
|
|
578
578
|
variant: "elevated"
|
|
579
579
|
}, {
|
|
580
|
-
default:
|
|
581
|
-
n
|
|
582
|
-
default:
|
|
583
|
-
|
|
580
|
+
default: k(() => [
|
|
581
|
+
o(n, { class: "flex flex-col gap-16 justify-between" }, {
|
|
582
|
+
default: k(() => [
|
|
583
|
+
o(d, {
|
|
584
584
|
class: "p-0",
|
|
585
585
|
title: "Company Info",
|
|
586
586
|
subtitle: ""
|
|
587
587
|
}),
|
|
588
|
-
n
|
|
589
|
-
default:
|
|
590
|
-
var
|
|
588
|
+
o(n, { class: "p-0" }, {
|
|
589
|
+
default: k(() => {
|
|
590
|
+
var T, V;
|
|
591
591
|
return [
|
|
592
|
-
|
|
593
|
-
_(": " +
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
_(": " +
|
|
597
|
-
|
|
592
|
+
r[0] || (r[0] = s("b", null, "Name", -1)),
|
|
593
|
+
_(": " + q((T = a.payoutAccount) == null ? void 0 : T.store.companyName), 1),
|
|
594
|
+
r[1] || (r[1] = s("br", null, null, -1)),
|
|
595
|
+
r[2] || (r[2] = s("b", null, "Registration Number", -1)),
|
|
596
|
+
_(": " + q((V = a.payoutAccount) == null ? void 0 : V.store.regNo), 1),
|
|
597
|
+
r[3] || (r[3] = s("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
|
+
o(S, {
|
|
609
609
|
horizontal: "",
|
|
610
610
|
class: "flex-1 p-6",
|
|
611
611
|
variant: "elevated"
|
|
612
612
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
n
|
|
615
|
-
default:
|
|
616
|
-
|
|
613
|
+
default: k(() => [
|
|
614
|
+
o(n, { class: "flex flex-col gap-16 justify-between" }, {
|
|
615
|
+
default: k(() => [
|
|
616
|
+
o(d, {
|
|
617
617
|
class: "p-0",
|
|
618
618
|
title: "Bank Info",
|
|
619
619
|
subtitle: ""
|
|
620
620
|
}),
|
|
621
|
-
n
|
|
622
|
-
default:
|
|
623
|
-
var
|
|
621
|
+
o(n, { class: "p-0" }, {
|
|
622
|
+
default: k(() => {
|
|
623
|
+
var T, V, x, $, B, R;
|
|
624
624
|
return [
|
|
625
|
-
|
|
626
|
-
_(": " +
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
_(": " +
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
_(": " +
|
|
625
|
+
r[4] || (r[4] = s("b", null, "Bank", -1)),
|
|
626
|
+
_(": " + q((V = (T = a.payoutAccount) == null ? void 0 : T.store.bank) == null ? void 0 : V.name), 1),
|
|
627
|
+
r[5] || (r[5] = s("br", null, null, -1)),
|
|
628
|
+
r[6] || (r[6] = s("b", null, "Name", -1)),
|
|
629
|
+
_(": " + q(($ = (x = a.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : $.holderName), 1),
|
|
630
|
+
r[7] || (r[7] = s("br", null, null, -1)),
|
|
631
|
+
r[8] || (r[8] = s("b", null, "Number", -1)),
|
|
632
|
+
_(": " + q((R = (B = a.payoutAccount) == null ? void 0 : B.store.bank) == null ? void 0 : R.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
|
+
s("div", Me, [
|
|
645
|
+
s("div", Be, [
|
|
646
|
+
r[9] || (r[9] = s("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
647
|
+
o(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: k(({ src: T }) => [
|
|
653
|
+
o(ee, {
|
|
654
|
+
pdf: T,
|
|
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
|
+
s("div", _e, [
|
|
663
|
+
r[10] || (r[10] = s("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
664
|
+
o(Q, {
|
|
665
665
|
"business-id": a.payoutAccount.businessId,
|
|
666
|
-
"restaurant-id": ((
|
|
666
|
+
"restaurant-id": ((D = (I = a.payoutAccount) == null ? void 0 : I.store) == null ? void 0 : D.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
667
667
|
document: a.payoutAccount.store.bankStatement
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
671
|
-
pdf:
|
|
669
|
+
default: k(({ src: T }) => [
|
|
670
|
+
o(ee, {
|
|
671
|
+
pdf: T,
|
|
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
|
+
}), $e = /* @__PURE__ */ M({
|
|
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, (v) => {
|
|
692
|
+
l.onChange(parseFloat(v));
|
|
693
|
+
}), (v, u) => {
|
|
694
|
+
const t = y("FmTextField");
|
|
695
|
+
return g(), w(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: k(() => [...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__ */ M({
|
|
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, (v) => {
|
|
716
|
+
l.onChange(parseInt(v));
|
|
717
|
+
}), (v, u) => {
|
|
718
|
+
const t = y("FmTextField");
|
|
719
|
+
return g(), w(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__ */ M({
|
|
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, (v) => {
|
|
735
|
+
l.onChange(parseFloat(v));
|
|
736
|
+
}), (v, u) => {
|
|
737
|
+
const t = y("FmTextField");
|
|
738
|
+
return g(), w(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: k(() => [...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" }, je = { class: "flex-1" }, Ke = { class: "flex-1" }, Ye = { class: "my-6 w-full flex justify-end" }, He = { class: "w-[320px]" }, ze = /* @__PURE__ */ M({
|
|
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), v = W(), u = de(), t = async (r) => {
|
|
764
764
|
try {
|
|
765
|
-
e.value = !0, await l.onUpdate(
|
|
765
|
+
e.value = !0, await l.onUpdate(r), v.open({
|
|
766
766
|
type: "success",
|
|
767
767
|
title: "Payout account update succesfully"
|
|
768
768
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
|
|
769
|
+
} catch (p) {
|
|
770
|
+
v.open({
|
|
771
771
|
type: "error",
|
|
772
772
|
title: "Error occurs when updating payout account",
|
|
773
|
-
message: Z(
|
|
773
|
+
message: Z(p)
|
|
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((r) => {
|
|
820
|
+
l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason = r, t(l.payoutAccount), u.close();
|
|
821
821
|
});
|
|
822
|
-
}, { search:
|
|
822
|
+
}, { search: F } = oe({
|
|
823
823
|
search: ""
|
|
824
|
-
}),
|
|
825
|
-
const { ssm:
|
|
826
|
-
return
|
|
827
|
-
}), m = U(""),
|
|
824
|
+
}), f = L(() => {
|
|
825
|
+
const { ssm: r, bank: p, bankStatement: d } = l.payoutAccount.store;
|
|
826
|
+
return r && p && p.name && p.accountNumber && p.holderName && d;
|
|
827
|
+
}), m = U(""), b = [
|
|
828
828
|
{
|
|
829
829
|
header: () => "Payment Method",
|
|
830
830
|
accessorKey: "issuer",
|
|
831
|
-
cell: (
|
|
831
|
+
cell: (r) => `${r.row.original.issuer} (${r.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: r }) => {
|
|
837
|
+
let p = 0;
|
|
838
|
+
return r.original.rate && (p = r.original.rate.amount / Math.pow(10, r.original.rate.precision)), J($e, {
|
|
839
|
+
data: p,
|
|
840
840
|
onChange: (d) => {
|
|
841
|
-
const
|
|
842
|
-
|
|
841
|
+
const n = l.payoutAccount.methods.at(r.index);
|
|
842
|
+
n.rate || (n.rate = {
|
|
843
843
|
amount: 0,
|
|
844
844
|
precision: 4
|
|
845
|
-
}),
|
|
845
|
+
}), n.rate.amount = d * Math.pow(10, n.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: r }) => {
|
|
854
|
+
let p = 0;
|
|
855
|
+
return r.original.minimumFee && (p = r.original.minimumFee.amount / Math.pow(10, r.original.minimumFee.precision)), J(Oe, {
|
|
856
|
+
data: p,
|
|
857
857
|
onChange: (d) => {
|
|
858
|
-
const
|
|
859
|
-
|
|
858
|
+
const n = l.payoutAccount.methods.at(r.index);
|
|
859
|
+
n.minimumFee || (n.minimumFee = {
|
|
860
860
|
amount: 0,
|
|
861
861
|
precision: 2
|
|
862
|
-
}),
|
|
862
|
+
}), n.minimumFee.amount = d * Math.pow(10, n.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: r }) => J(qe, {
|
|
871
|
+
data: r.original.tPlus ?? 0,
|
|
872
|
+
onChange: (p) => {
|
|
873
|
+
const d = l.payoutAccount.methods.at(r.index);
|
|
874
|
+
d.tPlus = p;
|
|
875
875
|
}
|
|
876
876
|
})
|
|
877
877
|
}
|
|
878
878
|
];
|
|
879
|
-
return (
|
|
880
|
-
const d =
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
n
|
|
879
|
+
return (r, p) => {
|
|
880
|
+
const d = y("FmRadio"), n = y("FmRadioGroup"), S = y("FmSwitch"), A = y("FmSearch"), C = y("FmTable"), I = y("FmButton");
|
|
881
|
+
return g(), G(K, null, [
|
|
882
|
+
s("div", Ge, [
|
|
883
|
+
s("div", je, [
|
|
884
|
+
o(n, {
|
|
885
885
|
modelValue: a.payoutAccount.status,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": p[0] || (p[0] = (D) => a.payoutAccount.status = D),
|
|
887
887
|
label: "Account Status"
|
|
888
888
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
|
|
889
|
+
default: k(() => [
|
|
890
|
+
o(d, {
|
|
891
891
|
value: "PENDING",
|
|
892
892
|
label: "Pending"
|
|
893
893
|
}),
|
|
894
|
-
|
|
894
|
+
o(d, {
|
|
895
895
|
value: "APPROVED",
|
|
896
896
|
label: "Approved"
|
|
897
897
|
}),
|
|
898
|
-
|
|
898
|
+
o(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
|
+
s("div", Ke, [
|
|
908
|
+
o(S, {
|
|
909
909
|
modelValue: a.payoutAccount.enable,
|
|
910
|
-
"onUpdate:modelValue":
|
|
911
|
-
disabled: !
|
|
910
|
+
"onUpdate:modelValue": p[1] || (p[1] = (D) => a.payoutAccount.enable = D),
|
|
911
|
+
disabled: !f.value,
|
|
912
912
|
label: "Enabled",
|
|
913
913
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
914
914
|
}, null, 8, ["modelValue", "disabled"])
|
|
915
915
|
])
|
|
916
916
|
]),
|
|
917
|
-
a.payoutAccount.enable ? (
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
modelValue: i(
|
|
922
|
-
"onUpdate:modelValue":
|
|
917
|
+
a.payoutAccount.enable ? (g(), G(K, { key: 0 }, [
|
|
918
|
+
s("div", Ye, [
|
|
919
|
+
s("div", He, [
|
|
920
|
+
o(A, {
|
|
921
|
+
modelValue: i(F),
|
|
922
|
+
"onUpdate:modelValue": p[2] || (p[2] = (D) => ae(F) ? F.value = D : null),
|
|
923
923
|
placeholder: "Search Method ..."
|
|
924
924
|
}, null, 8, ["modelValue"])
|
|
925
925
|
])
|
|
926
926
|
]),
|
|
927
|
-
|
|
927
|
+
o(C, {
|
|
928
928
|
class: "mt-6",
|
|
929
929
|
modelValue: m.value,
|
|
930
|
-
"onUpdate:modelValue":
|
|
930
|
+
"onUpdate:modelValue": p[3] || (p[3] = (D) => m.value = D),
|
|
931
931
|
"shrink-at": !1,
|
|
932
|
-
"search-value": i(
|
|
932
|
+
"search-value": i(F),
|
|
933
933
|
"row-data": a.payoutAccount.methods,
|
|
934
|
-
"column-defs":
|
|
934
|
+
"column-defs": b
|
|
935
935
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
936
|
-
], 64)) :
|
|
937
|
-
|
|
936
|
+
], 64)) : E("", !0),
|
|
937
|
+
o(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__ */ M({
|
|
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 (v, u) => {
|
|
953
|
+
const t = y("FmButton");
|
|
954
|
+
return g(), G("div", Le, [
|
|
955
|
+
o(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__ */ M({
|
|
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: v, startAsyncCall: u } = ne(), t = U([]);
|
|
975
975
|
function c() {
|
|
976
976
|
u(async () => {
|
|
977
977
|
t.value = await Y.getChannels(e.payoutAccount._id);
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
me(c);
|
|
981
|
-
function
|
|
981
|
+
function F() {
|
|
982
982
|
u(async () => {
|
|
983
983
|
try {
|
|
984
984
|
await Y.updateChannels(e.payoutAccount._id, t.value), l.open({
|
|
985
985
|
type: "success",
|
|
986
986
|
title: "Payout account channels update succesfully"
|
|
987
987
|
});
|
|
988
|
-
} catch (
|
|
988
|
+
} catch (b) {
|
|
989
989
|
l.open({
|
|
990
990
|
type: "error",
|
|
991
991
|
title: "Error occurs when updating payout account channels",
|
|
992
|
-
message: Z(
|
|
992
|
+
message: Z(b)
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function f() {
|
|
998
998
|
u(async () => {
|
|
999
999
|
try {
|
|
1000
1000
|
await Y.resetChannels(e.payoutAccount._id), t.value = await Y.getChannels(e.payoutAccount._id), l.open({
|
|
1001
1001
|
type: "success",
|
|
1002
1002
|
title: "Payout account channels reset succesfully"
|
|
1003
1003
|
});
|
|
1004
|
-
} catch (
|
|
1004
|
+
} catch (b) {
|
|
1005
1005
|
l.open({
|
|
1006
1006
|
type: "error",
|
|
1007
1007
|
title: "Error occurs when reset payout account channels",
|
|
1008
|
-
message: Z(
|
|
1008
|
+
message: Z(b)
|
|
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: b }) => J("img", { src: b.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: b }) => J(Fe.FmTextField, {
|
|
1031
|
+
modelValue: b.original.label,
|
|
1032
|
+
"onUpdate:modelValue": (r) => b.original.label = r
|
|
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: b }) => J(Ze, {
|
|
1039
|
+
onDelete: () => t.value.splice(b.index, 1)
|
|
1040
1040
|
})
|
|
1041
1041
|
}
|
|
1042
1042
|
];
|
|
1043
|
-
return (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
|
|
1043
|
+
return (b, r) => {
|
|
1044
|
+
const p = y("FmButton"), d = y("FmTable");
|
|
1045
|
+
return g(), G(K, null, [
|
|
1046
|
+
s("div", Je, [
|
|
1047
|
+
o(p, {
|
|
1048
1048
|
class: "mx-4",
|
|
1049
1049
|
variant: "destructive",
|
|
1050
1050
|
size: "md",
|
|
1051
1051
|
icon: "history",
|
|
1052
1052
|
label: "Reset",
|
|
1053
|
-
onClick:
|
|
1053
|
+
onClick: f
|
|
1054
1054
|
}),
|
|
1055
|
-
|
|
1055
|
+
o(p, {
|
|
1056
1056
|
variant: "primary",
|
|
1057
1057
|
size: "md",
|
|
1058
1058
|
icon: "save",
|
|
1059
1059
|
label: "Save",
|
|
1060
|
-
onClick:
|
|
1060
|
+
onClick: F
|
|
1061
1061
|
})
|
|
1062
1062
|
]),
|
|
1063
|
-
|
|
1064
|
-
loading: i(
|
|
1063
|
+
o(d, {
|
|
1064
|
+
loading: i(v),
|
|
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__ */ M({
|
|
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 v;
|
|
1090
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1091
1091
|
merchantId: "",
|
|
1092
1092
|
verifyKey: "",
|
|
1093
1093
|
secretKey: ""
|
|
1094
1094
|
});
|
|
1095
1095
|
return (u, t) => {
|
|
1096
|
-
const c =
|
|
1097
|
-
return
|
|
1096
|
+
const c = y("FmTextField"), F = y("FmButton"), f = y("FmForm");
|
|
1097
|
+
return g(), w(f, {
|
|
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: k(() => [
|
|
1103
|
+
o(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(h).string())
|
|
1108
1108
|
}, null, 8, ["modelValue", "rules"]),
|
|
1109
|
-
|
|
1109
|
+
o(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(h).string())
|
|
1114
1114
|
}, null, 8, ["modelValue", "rules"]),
|
|
1115
|
-
|
|
1115
|
+
o(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(h).string())
|
|
1120
1120
|
}, null, 8, ["modelValue", "rules"]),
|
|
1121
|
-
|
|
1122
|
-
a.gateway ? (
|
|
1121
|
+
s("div", We, [
|
|
1122
|
+
a.gateway ? (g(), w(F, {
|
|
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"])) : E("", !0),
|
|
1129
|
+
o(F, {
|
|
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__ */ M({
|
|
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 v;
|
|
1159
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.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 = y("FmTextField"), F = y("FmButton"), f = y("FmForm");
|
|
1168
|
+
return g(), w(f, {
|
|
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: k(() => [
|
|
1174
|
+
o(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(h).string())
|
|
1179
1179
|
}, null, 8, ["modelValue", "rules"]),
|
|
1180
|
-
|
|
1180
|
+
o(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(h).string())
|
|
1185
1185
|
}, null, 8, ["modelValue", "rules"]),
|
|
1186
|
-
|
|
1186
|
+
o(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(h).string())
|
|
1191
1191
|
}, null, 8, ["modelValue", "rules"]),
|
|
1192
|
-
|
|
1192
|
+
o(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(h).string())
|
|
1197
1197
|
}, null, 8, ["modelValue", "rules"]),
|
|
1198
|
-
|
|
1198
|
+
o(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(h).string())
|
|
1203
1203
|
}, null, 8, ["modelValue", "rules"]),
|
|
1204
|
-
|
|
1205
|
-
a.gateway ? (
|
|
1204
|
+
s("div", et, [
|
|
1205
|
+
a.gateway ? (g(), w(F, {
|
|
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"])) : E("", !0),
|
|
1212
|
+
o(F, {
|
|
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__ */ M({
|
|
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 v;
|
|
1242
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1243
1243
|
merchantId: "",
|
|
1244
1244
|
cardMerchantId: ""
|
|
1245
1245
|
});
|
|
1246
1246
|
return (u, t) => {
|
|
1247
|
-
const c =
|
|
1248
|
-
return
|
|
1247
|
+
const c = y("FmTextField"), F = y("FmButton"), f = y("FmForm");
|
|
1248
|
+
return g(), w(f, {
|
|
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: k(() => [
|
|
1254
|
+
o(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(h).string())
|
|
1259
1259
|
}, null, 8, ["modelValue", "rules"]),
|
|
1260
|
-
|
|
1260
|
+
o(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(h).string())
|
|
1265
1265
|
}, null, 8, ["modelValue", "rules"]),
|
|
1266
|
-
|
|
1267
|
-
a.gateway ? (
|
|
1266
|
+
s("div", at, [
|
|
1267
|
+
a.gateway ? (g(), w(F, {
|
|
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"])) : E("", !0),
|
|
1274
|
+
o(F, {
|
|
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__ */ M({
|
|
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 v;
|
|
1304
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.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 = y("FmTextField"), F = y("FmButton"), f = y("FmForm");
|
|
1314
|
+
return g(), w(f, {
|
|
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: k(() => [
|
|
1320
|
+
o(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(h).string())
|
|
1325
1325
|
}, null, 8, ["modelValue", "rules"]),
|
|
1326
|
-
|
|
1326
|
+
o(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(h).string())
|
|
1331
1331
|
}, null, 8, ["modelValue", "rules"]),
|
|
1332
|
-
|
|
1332
|
+
o(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(h).string())
|
|
1337
1337
|
}, null, 8, ["modelValue", "rules"]),
|
|
1338
|
-
|
|
1338
|
+
o(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(h).string())
|
|
1343
1343
|
}, null, 8, ["modelValue", "rules"]),
|
|
1344
|
-
|
|
1344
|
+
o(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(h).string())
|
|
1349
1349
|
}, null, 8, ["modelValue", "rules"]),
|
|
1350
|
-
|
|
1350
|
+
o(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
|
+
s("div", ot, [
|
|
1356
|
+
a.gateway ? (g(), w(F, {
|
|
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"])) : E("", !0),
|
|
1363
|
+
o(F, {
|
|
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" }, st = /* @__PURE__ */ M({
|
|
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 v;
|
|
1393
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1394
1394
|
appId: "",
|
|
1395
1395
|
privateKey: ""
|
|
1396
1396
|
});
|
|
1397
1397
|
return (u, t) => {
|
|
1398
|
-
const c =
|
|
1399
|
-
return
|
|
1398
|
+
const c = y("FmTextField"), F = y("FmTextarea"), f = y("FmButton"), m = y("FmForm");
|
|
1399
|
+
return g(), w(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: k(() => [
|
|
1405
|
+
o(c, {
|
|
1406
1406
|
modelValue: e.value.appId,
|
|
1407
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1407
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.value.appId = b),
|
|
1408
1408
|
label: "App ID",
|
|
1409
|
-
rules: i(N)(i(
|
|
1409
|
+
rules: i(N)(i(h).string())
|
|
1410
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1411
|
-
|
|
1411
|
+
o(F, {
|
|
1412
1412
|
modelValue: e.value.privateKey,
|
|
1413
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1413
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.value.privateKey = b),
|
|
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(h).string())
|
|
1417
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1418
|
-
|
|
1419
|
-
a.gateway ? (
|
|
1418
|
+
s("div", ut, [
|
|
1419
|
+
a.gateway ? (g(), w(f, {
|
|
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"])) : E("", !0),
|
|
1426
|
+
o(f, {
|
|
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
|
+
}), rt = /* @__PURE__ */ M({
|
|
1439
1439
|
__name: "TyroGateway",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
gateway: {
|
|
@@ -1452,103 +1452,39 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1452
1452
|
}
|
|
1453
1453
|
},
|
|
1454
1454
|
setup(a) {
|
|
1455
|
-
var
|
|
1455
|
+
var v;
|
|
1456
1456
|
const e = U(
|
|
1457
|
-
((
|
|
1457
|
+
((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1458
1458
|
locationId: ""
|
|
1459
1459
|
}
|
|
1460
1460
|
);
|
|
1461
1461
|
return (u, t) => {
|
|
1462
|
-
const c =
|
|
1463
|
-
return
|
|
1462
|
+
const c = y("FmTextField"), F = y("FmForm");
|
|
1463
|
+
return g(), w(F, {
|
|
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: k(() => [
|
|
1469
|
+
o(c, {
|
|
1470
1470
|
modelValue: e.value.locationId,
|
|
1471
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1471
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.locationId = f),
|
|
1472
1472
|
label: "Location ID",
|
|
1473
1473
|
readonly: !0,
|
|
1474
|
-
rules: i(N)(i(
|
|
1474
|
+
rules: i(N)(i(h).string())
|
|
1475
1475
|
}, null, 8, ["modelValue", "rules"])
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 512);
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
|
-
}), it = {
|
|
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 = {
|
|
1481
|
+
}), it = {
|
|
1546
1482
|
key: 0,
|
|
1547
1483
|
className: "mt-1 my-6 text-gray-600"
|
|
1548
|
-
},
|
|
1484
|
+
}, ct = {
|
|
1549
1485
|
key: 1,
|
|
1550
1486
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1551
|
-
},
|
|
1487
|
+
}, mt = /* @__PURE__ */ M({
|
|
1552
1488
|
__name: "PaymentGateway",
|
|
1553
1489
|
props: {
|
|
1554
1490
|
payoutAccount: {
|
|
@@ -1557,65 +1493,59 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1557
1493
|
}
|
|
1558
1494
|
},
|
|
1559
1495
|
setup(a) {
|
|
1560
|
-
const l = pe().currentCountry, e = l.value,
|
|
1496
|
+
const l = pe().currentCountry, e = l.value, v = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
|
|
1561
1497
|
gatewayTab: ""
|
|
1562
|
-
}),
|
|
1498
|
+
}), F = a, f = [
|
|
1563
1499
|
{
|
|
1564
1500
|
label: "Fiuu",
|
|
1565
1501
|
value: "RAZER_MERCHANT_SERVICE",
|
|
1566
1502
|
render: Xe,
|
|
1567
|
-
region: [
|
|
1503
|
+
region: [O.F_COUNTRY.enum.MY, O.F_COUNTRY.enum.SG]
|
|
1568
1504
|
},
|
|
1569
1505
|
{
|
|
1570
1506
|
label: "Macau Pass",
|
|
1571
1507
|
value: "MACAU_PASS",
|
|
1572
1508
|
render: tt,
|
|
1573
|
-
region: [
|
|
1509
|
+
region: [O.F_COUNTRY.enum.MO]
|
|
1574
1510
|
},
|
|
1575
1511
|
{
|
|
1576
1512
|
label: "Digio",
|
|
1577
1513
|
value: "DIGIO",
|
|
1578
1514
|
render: nt,
|
|
1579
|
-
region: [
|
|
1515
|
+
region: [O.F_COUNTRY.enum.TH]
|
|
1580
1516
|
},
|
|
1581
1517
|
{
|
|
1582
1518
|
label: "Ksher",
|
|
1583
1519
|
value: "KSHER",
|
|
1584
|
-
render:
|
|
1585
|
-
region: [
|
|
1520
|
+
render: st,
|
|
1521
|
+
region: [O.F_COUNTRY.enum.TH]
|
|
1586
1522
|
},
|
|
1587
1523
|
{
|
|
1588
1524
|
label: "Adyen",
|
|
1589
1525
|
value: "ADYEN",
|
|
1590
1526
|
render: lt,
|
|
1591
|
-
region: [
|
|
1527
|
+
region: [O.F_COUNTRY.enum.MY, O.F_COUNTRY.enum.SG]
|
|
1592
1528
|
},
|
|
1593
1529
|
{
|
|
1594
1530
|
label: "Tyro",
|
|
1595
1531
|
value: "TYRO",
|
|
1596
|
-
render:
|
|
1597
|
-
region: [
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
label: "Beam",
|
|
1601
|
-
value: "BEAM",
|
|
1602
|
-
render: ct,
|
|
1603
|
-
region: [q.F_COUNTRY.enum.TH]
|
|
1532
|
+
render: rt,
|
|
1533
|
+
region: [O.F_COUNTRY.enum.AU]
|
|
1604
1534
|
}
|
|
1605
1535
|
], m = U(
|
|
1606
|
-
|
|
1607
|
-
),
|
|
1608
|
-
(S) => S.region.includes(l.value ??
|
|
1536
|
+
F.payoutAccount.gateways ?? []
|
|
1537
|
+
), b = L(() => f.find((S) => S.value === c.value)), r = L(() => f.filter(
|
|
1538
|
+
(S) => S.region.includes(l.value ?? O.F_COUNTRY.enum.MY)
|
|
1609
1539
|
));
|
|
1610
|
-
async function
|
|
1540
|
+
async function p(S) {
|
|
1611
1541
|
await t(async () => {
|
|
1612
1542
|
try {
|
|
1613
|
-
await Y.updateGateway(
|
|
1543
|
+
await Y.updateGateway(F.payoutAccount._id, S), v.open({
|
|
1614
1544
|
type: "success",
|
|
1615
1545
|
title: "Payout account gateways update succesfully"
|
|
1616
1546
|
}), d.value = S.length === 0;
|
|
1617
1547
|
} catch (A) {
|
|
1618
|
-
|
|
1548
|
+
v.open({
|
|
1619
1549
|
type: "error",
|
|
1620
1550
|
title: "Error occurs when updating payout account gateways",
|
|
1621
1551
|
message: Z(A)
|
|
@@ -1623,66 +1553,66 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1623
1553
|
}
|
|
1624
1554
|
});
|
|
1625
1555
|
}
|
|
1626
|
-
const d = U((
|
|
1556
|
+
const d = U((F.payoutAccount.gateways ?? []).length === 0), n = L(() => e !== "MY" || !d.value);
|
|
1627
1557
|
return (S, A) => {
|
|
1628
|
-
var
|
|
1629
|
-
const C =
|
|
1630
|
-
return
|
|
1631
|
-
i(e) ? (
|
|
1632
|
-
|
|
1558
|
+
var T;
|
|
1559
|
+
const C = y("FmCircularProgress"), I = y("FmSwitch"), D = y("FmTabs");
|
|
1560
|
+
return g(), G(K, null, [
|
|
1561
|
+
i(e) ? (g(), G("p", it, [...A[2] || (A[2] = [
|
|
1562
|
+
s("b", null, "Note: ", -1),
|
|
1633
1563
|
_(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1634
|
-
])])) :
|
|
1635
|
-
i(u) ? (
|
|
1636
|
-
|
|
1637
|
-
])) : (
|
|
1638
|
-
i(e) === "MY" ? (
|
|
1564
|
+
])])) : E("", !0),
|
|
1565
|
+
i(u) ? (g(), G("div", ct, [
|
|
1566
|
+
o(C, { size: "xxl" })
|
|
1567
|
+
])) : (g(), G(K, { key: 2 }, [
|
|
1568
|
+
i(e) === "MY" ? (g(), w(I, {
|
|
1639
1569
|
key: 0,
|
|
1640
1570
|
modelValue: d.value,
|
|
1641
1571
|
"onUpdate:modelValue": A[0] || (A[0] = (V) => d.value = V),
|
|
1642
1572
|
style: { "padding-bottom": "12px" },
|
|
1643
1573
|
label: "Use FeedMe's Default Account?"
|
|
1644
|
-
}, null, 8, ["modelValue"])) :
|
|
1645
|
-
|
|
1574
|
+
}, null, 8, ["modelValue"])) : E("", !0),
|
|
1575
|
+
n.value ? (g(), w(D, {
|
|
1646
1576
|
key: 1,
|
|
1647
1577
|
"model-value": i(c),
|
|
1648
1578
|
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(c) ? c.value = V : null),
|
|
1649
1579
|
class: "mb-6",
|
|
1650
|
-
items:
|
|
1651
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1652
|
-
|
|
1580
|
+
items: r.value
|
|
1581
|
+
}, null, 8, ["model-value", "items"])) : E("", !0),
|
|
1582
|
+
n.value && i(c) ? (g(), w(ue((T = b.value) == null ? void 0 : T.render), se(re({ key: 2 }, {
|
|
1653
1583
|
gateway: m.value.find(
|
|
1654
1584
|
(V) => {
|
|
1655
1585
|
var x;
|
|
1656
|
-
return V.paymentGateway === ((x =
|
|
1586
|
+
return V.paymentGateway === ((x = b.value) == null ? void 0 : x.value);
|
|
1657
1587
|
}
|
|
1658
1588
|
),
|
|
1659
1589
|
onDelete: async () => {
|
|
1660
1590
|
m.value = m.value.filter(
|
|
1661
1591
|
(V) => {
|
|
1662
1592
|
var x;
|
|
1663
|
-
return V.paymentGateway !== ((x =
|
|
1593
|
+
return V.paymentGateway !== ((x = b.value) == null ? void 0 : x.value);
|
|
1664
1594
|
}
|
|
1665
|
-
),
|
|
1595
|
+
), p(m.value);
|
|
1666
1596
|
},
|
|
1667
1597
|
onUpdate: (V) => {
|
|
1668
|
-
var
|
|
1598
|
+
var $;
|
|
1669
1599
|
let x = m.value.find(
|
|
1670
1600
|
(B) => {
|
|
1671
|
-
var
|
|
1672
|
-
return B.paymentGateway === ((
|
|
1601
|
+
var R;
|
|
1602
|
+
return B.paymentGateway === ((R = b.value) == null ? void 0 : R.value);
|
|
1673
1603
|
}
|
|
1674
1604
|
);
|
|
1675
1605
|
x ? x.config = V : m.value.push({
|
|
1676
|
-
paymentGateway: (
|
|
1606
|
+
paymentGateway: ($ = b.value) == null ? void 0 : $.value,
|
|
1677
1607
|
config: V
|
|
1678
|
-
}),
|
|
1608
|
+
}), p(m.value);
|
|
1679
1609
|
}
|
|
1680
|
-
})), null, 16)) :
|
|
1610
|
+
})), null, 16)) : E("", !0)
|
|
1681
1611
|
], 64))
|
|
1682
1612
|
], 64);
|
|
1683
1613
|
};
|
|
1684
1614
|
}
|
|
1685
|
-
}),
|
|
1615
|
+
}), dt = { class: "flex mt-6 space-x-6" }, pt = /* @__PURE__ */ M({
|
|
1686
1616
|
__name: "GooglePayToken",
|
|
1687
1617
|
props: {
|
|
1688
1618
|
gateway: {
|
|
@@ -1709,44 +1639,44 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1709
1639
|
}
|
|
1710
1640
|
}
|
|
1711
1641
|
);
|
|
1712
|
-
return (
|
|
1713
|
-
const t =
|
|
1714
|
-
return
|
|
1642
|
+
return (v, u) => {
|
|
1643
|
+
const t = y("FmTextField"), c = y("FmButton"), F = y("FmForm");
|
|
1644
|
+
return g(), w(F, {
|
|
1715
1645
|
ref: "form",
|
|
1716
1646
|
class: "flex flex-col gap-16",
|
|
1717
1647
|
onValidationSuccess: u[3] || (u[3] = () => a.onUpdate(e.value))
|
|
1718
1648
|
}, {
|
|
1719
|
-
default:
|
|
1720
|
-
|
|
1649
|
+
default: k(() => [
|
|
1650
|
+
o(t, {
|
|
1721
1651
|
modelValue: e.value.gateway,
|
|
1722
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1652
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1723
1653
|
label: "Gateway",
|
|
1724
1654
|
disabled: !0,
|
|
1725
|
-
rules: i(N)(i(
|
|
1655
|
+
rules: i(N)(i(h).string())
|
|
1726
1656
|
}, null, 8, ["modelValue", "rules"]),
|
|
1727
|
-
|
|
1657
|
+
o(t, {
|
|
1728
1658
|
modelValue: e.value.config.gateway,
|
|
1729
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1659
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.gateway = f),
|
|
1730
1660
|
label: "Gateway ID",
|
|
1731
1661
|
disabled: !0,
|
|
1732
|
-
rules: i(N)(i(
|
|
1662
|
+
rules: i(N)(i(h).string())
|
|
1733
1663
|
}, null, 8, ["modelValue", "rules"]),
|
|
1734
|
-
|
|
1664
|
+
o(t, {
|
|
1735
1665
|
modelValue: e.value.config.gatewayMerchantId,
|
|
1736
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1666
|
+
"onUpdate:modelValue": u[2] || (u[2] = (f) => e.value.config.gatewayMerchantId = f),
|
|
1737
1667
|
label: "Gateway Merchant ID",
|
|
1738
1668
|
disabled: !0,
|
|
1739
|
-
rules: i(N)(i(
|
|
1669
|
+
rules: i(N)(i(h).string())
|
|
1740
1670
|
}, null, 8, ["modelValue", "rules"]),
|
|
1741
|
-
|
|
1742
|
-
a.gateway ? (
|
|
1671
|
+
s("div", dt, [
|
|
1672
|
+
a.gateway ? (g(), w(c, {
|
|
1743
1673
|
key: 0,
|
|
1744
1674
|
class: "flex-1",
|
|
1745
1675
|
variant: "secondary",
|
|
1746
1676
|
label: "Delete",
|
|
1747
1677
|
onclick: () => a.onDelete()
|
|
1748
|
-
}, null, 8, ["onclick"])) :
|
|
1749
|
-
|
|
1678
|
+
}, null, 8, ["onclick"])) : E("", !0),
|
|
1679
|
+
o(c, {
|
|
1750
1680
|
type: "submit",
|
|
1751
1681
|
class: "flex-1",
|
|
1752
1682
|
variant: "primary",
|
|
@@ -1758,7 +1688,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1758
1688
|
}, 512);
|
|
1759
1689
|
};
|
|
1760
1690
|
}
|
|
1761
|
-
}),
|
|
1691
|
+
}), yt = { class: "flex mt-6 space-x-6" }, bt = /* @__PURE__ */ M({
|
|
1762
1692
|
__name: "ApplePayToken",
|
|
1763
1693
|
props: {
|
|
1764
1694
|
gateway: {
|
|
@@ -1784,37 +1714,37 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1784
1714
|
}
|
|
1785
1715
|
}
|
|
1786
1716
|
);
|
|
1787
|
-
return (
|
|
1788
|
-
const t =
|
|
1789
|
-
return
|
|
1717
|
+
return (v, u) => {
|
|
1718
|
+
const t = y("FmTextField"), c = y("FmButton"), F = y("FmForm");
|
|
1719
|
+
return g(), w(F, {
|
|
1790
1720
|
ref: "form",
|
|
1791
1721
|
class: "flex flex-col gap-16",
|
|
1792
1722
|
onValidationSuccess: u[2] || (u[2] = () => a.onUpdate(e.value))
|
|
1793
1723
|
}, {
|
|
1794
|
-
default:
|
|
1795
|
-
|
|
1724
|
+
default: k(() => [
|
|
1725
|
+
o(t, {
|
|
1796
1726
|
modelValue: e.value.gateway,
|
|
1797
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1727
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1798
1728
|
label: "Gateway",
|
|
1799
1729
|
disabled: !0,
|
|
1800
|
-
rules: i(N)(i(
|
|
1730
|
+
rules: i(N)(i(h).string())
|
|
1801
1731
|
}, null, 8, ["modelValue", "rules"]),
|
|
1802
|
-
|
|
1732
|
+
o(t, {
|
|
1803
1733
|
modelValue: e.value.config.merchantId,
|
|
1804
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1734
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.merchantId = f),
|
|
1805
1735
|
label: "Merchant ID",
|
|
1806
1736
|
disabled: !0,
|
|
1807
|
-
rules: i(N)(i(
|
|
1737
|
+
rules: i(N)(i(h).string())
|
|
1808
1738
|
}, null, 8, ["modelValue", "rules"]),
|
|
1809
|
-
|
|
1810
|
-
a.gateway ? (
|
|
1739
|
+
s("div", yt, [
|
|
1740
|
+
a.gateway ? (g(), w(c, {
|
|
1811
1741
|
key: 0,
|
|
1812
1742
|
class: "flex-1",
|
|
1813
1743
|
variant: "secondary",
|
|
1814
1744
|
label: "Delete",
|
|
1815
1745
|
onclick: () => a.onDelete()
|
|
1816
|
-
}, null, 8, ["onclick"])) :
|
|
1817
|
-
|
|
1746
|
+
}, null, 8, ["onclick"])) : E("", !0),
|
|
1747
|
+
o(c, {
|
|
1818
1748
|
type: "submit",
|
|
1819
1749
|
class: "flex-1",
|
|
1820
1750
|
variant: "primary",
|
|
@@ -1826,10 +1756,10 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1826
1756
|
}, 512);
|
|
1827
1757
|
};
|
|
1828
1758
|
}
|
|
1829
|
-
}),
|
|
1759
|
+
}), vt = {
|
|
1830
1760
|
key: 0,
|
|
1831
1761
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1832
|
-
},
|
|
1762
|
+
}, ft = /* @__PURE__ */ M({
|
|
1833
1763
|
__name: "TokenGateway",
|
|
1834
1764
|
props: {
|
|
1835
1765
|
payoutAccount: {
|
|
@@ -1838,30 +1768,30 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1838
1768
|
}
|
|
1839
1769
|
},
|
|
1840
1770
|
setup(a) {
|
|
1841
|
-
const l = pe().currentCountry, e = W(), { isLoading:
|
|
1771
|
+
const l = pe().currentCountry, e = W(), { isLoading: v, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
|
|
1842
1772
|
tokenTab: ""
|
|
1843
|
-
}), c = a,
|
|
1773
|
+
}), c = a, F = [
|
|
1844
1774
|
{
|
|
1845
1775
|
label: "Google Pay",
|
|
1846
1776
|
value: "googlePay",
|
|
1847
1777
|
icon: "android",
|
|
1848
|
-
render:
|
|
1849
|
-
region: [
|
|
1778
|
+
render: pt,
|
|
1779
|
+
region: [O.F_COUNTRY.enum.MY, O.F_COUNTRY.enum.SG]
|
|
1850
1780
|
},
|
|
1851
1781
|
{
|
|
1852
1782
|
label: "Apple Pay",
|
|
1853
1783
|
value: "applePay",
|
|
1854
1784
|
icon: "iOS",
|
|
1855
|
-
render:
|
|
1856
|
-
region: [
|
|
1785
|
+
render: bt,
|
|
1786
|
+
region: [O.F_COUNTRY.enum.MY, O.F_COUNTRY.enum.SG]
|
|
1857
1787
|
}
|
|
1858
|
-
],
|
|
1859
|
-
(
|
|
1788
|
+
], f = U(c.payoutAccount.tokens ?? []), m = L(() => F.find((p) => p.value === t.value)), b = L(() => F.filter(
|
|
1789
|
+
(p) => p.region.includes(l.value ?? O.F_COUNTRY.enum.MY)
|
|
1860
1790
|
));
|
|
1861
|
-
async function
|
|
1791
|
+
async function r(p) {
|
|
1862
1792
|
await u(async () => {
|
|
1863
1793
|
try {
|
|
1864
|
-
await Y.updateTokens(c.payoutAccount._id,
|
|
1794
|
+
await Y.updateTokens(c.payoutAccount._id, p), e.open({
|
|
1865
1795
|
type: "success",
|
|
1866
1796
|
title: "Payout account tokens gateway update succesfully"
|
|
1867
1797
|
});
|
|
@@ -1874,50 +1804,50 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1874
1804
|
}
|
|
1875
1805
|
});
|
|
1876
1806
|
}
|
|
1877
|
-
return (
|
|
1807
|
+
return (p, d) => {
|
|
1878
1808
|
var A;
|
|
1879
|
-
const
|
|
1880
|
-
return
|
|
1881
|
-
d[1] || (d[1] =
|
|
1882
|
-
|
|
1809
|
+
const n = y("FmCircularProgress"), S = y("FmTabs");
|
|
1810
|
+
return g(), G(K, null, [
|
|
1811
|
+
d[1] || (d[1] = s("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1812
|
+
s("b", null, "Note: "),
|
|
1883
1813
|
_(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1814
|
+
s("br"),
|
|
1815
|
+
s("br"),
|
|
1816
|
+
s("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. `),
|
|
1817
|
+
s("br")
|
|
1888
1818
|
], -1)),
|
|
1889
|
-
i(
|
|
1890
|
-
n
|
|
1891
|
-
])) : (
|
|
1819
|
+
i(v) ? (g(), G("div", vt, [
|
|
1820
|
+
o(n, { size: "xxl" })
|
|
1821
|
+
])) : (g(), w(S, {
|
|
1892
1822
|
key: 1,
|
|
1893
1823
|
"model-value": i(t),
|
|
1894
1824
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => ae(t) ? t.value = C : null),
|
|
1895
1825
|
class: "mb-6 mt-6",
|
|
1896
|
-
items:
|
|
1826
|
+
items: b.value
|
|
1897
1827
|
}, null, 8, ["model-value", "items"])),
|
|
1898
|
-
i(t) ? (
|
|
1899
|
-
gateway:
|
|
1828
|
+
i(t) ? (g(), w(ue((A = m.value) == null ? void 0 : A.render), se(re({ key: 2 }, {
|
|
1829
|
+
gateway: f.value.find((C) => {
|
|
1900
1830
|
var I;
|
|
1901
1831
|
return C.type === ((I = m.value) == null ? void 0 : I.value);
|
|
1902
1832
|
}),
|
|
1903
1833
|
onDelete: async () => {
|
|
1904
|
-
|
|
1834
|
+
f.value = f.value.filter((C) => {
|
|
1905
1835
|
var I;
|
|
1906
1836
|
return C.type !== ((I = m.value) == null ? void 0 : I.value);
|
|
1907
|
-
}),
|
|
1837
|
+
}), r(f.value);
|
|
1908
1838
|
},
|
|
1909
1839
|
onUpdate: (C) => {
|
|
1910
|
-
let I =
|
|
1911
|
-
var
|
|
1912
|
-
return
|
|
1840
|
+
let I = f.value.find((D) => {
|
|
1841
|
+
var T;
|
|
1842
|
+
return D.type === ((T = m.value) == null ? void 0 : T.value);
|
|
1913
1843
|
});
|
|
1914
|
-
I ? I.config = C :
|
|
1844
|
+
I ? I.config = C : f.value.push(C), r(f.value);
|
|
1915
1845
|
}
|
|
1916
|
-
})), null, 16)) :
|
|
1846
|
+
})), null, 16)) : E("", !0)
|
|
1917
1847
|
], 64);
|
|
1918
1848
|
};
|
|
1919
1849
|
}
|
|
1920
|
-
}),
|
|
1850
|
+
}), Tt = /* @__PURE__ */ M({
|
|
1921
1851
|
__name: "PayoutAccountSetting",
|
|
1922
1852
|
props: {
|
|
1923
1853
|
accountId: {
|
|
@@ -1928,25 +1858,25 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1928
1858
|
setup(a) {
|
|
1929
1859
|
const l = a, { tab: e } = oe({
|
|
1930
1860
|
tab: "information"
|
|
1931
|
-
}), { isLoading:
|
|
1932
|
-
async function
|
|
1861
|
+
}), { isLoading: v, startAsyncCall: u } = ne(!0), t = ve(), c = U();
|
|
1862
|
+
async function F(r) {
|
|
1933
1863
|
await Y.updateById(
|
|
1934
1864
|
l.accountId,
|
|
1935
|
-
|
|
1865
|
+
r
|
|
1936
1866
|
), c.value = await Y.readById(l.accountId);
|
|
1937
1867
|
}
|
|
1938
|
-
const
|
|
1868
|
+
const f = [
|
|
1939
1869
|
{
|
|
1940
1870
|
label: "Information",
|
|
1941
1871
|
value: "information",
|
|
1942
1872
|
icon: "overview",
|
|
1943
|
-
render:
|
|
1873
|
+
render: Ue
|
|
1944
1874
|
},
|
|
1945
1875
|
{
|
|
1946
1876
|
label: "Settlement",
|
|
1947
1877
|
value: "settlement",
|
|
1948
1878
|
icon: "payments",
|
|
1949
|
-
render:
|
|
1879
|
+
render: Ee
|
|
1950
1880
|
},
|
|
1951
1881
|
{
|
|
1952
1882
|
label: "MDR Status",
|
|
@@ -1958,13 +1888,13 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1958
1888
|
label: "Online Gateways",
|
|
1959
1889
|
icon: "assured_workload",
|
|
1960
1890
|
value: "gateways",
|
|
1961
|
-
render:
|
|
1891
|
+
render: mt
|
|
1962
1892
|
},
|
|
1963
1893
|
{
|
|
1964
1894
|
label: "Token Gateways",
|
|
1965
1895
|
value: "tokens",
|
|
1966
1896
|
icon: "wallet",
|
|
1967
|
-
render:
|
|
1897
|
+
render: ft
|
|
1968
1898
|
},
|
|
1969
1899
|
{
|
|
1970
1900
|
label: "Online Channels",
|
|
@@ -1979,29 +1909,29 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1979
1909
|
});
|
|
1980
1910
|
}
|
|
1981
1911
|
me(m);
|
|
1982
|
-
const
|
|
1983
|
-
const
|
|
1984
|
-
return
|
|
1912
|
+
const b = L(() => {
|
|
1913
|
+
const r = f.reduce((p, d) => p || (d.children ? d.children.find((n) => n.value === e.value) || null : d.value === e.value ? d : null), null);
|
|
1914
|
+
return r == null ? void 0 : r.render;
|
|
1985
1915
|
});
|
|
1986
|
-
return (
|
|
1987
|
-
var
|
|
1988
|
-
const d =
|
|
1989
|
-
return
|
|
1990
|
-
title: `Payout Account (${(
|
|
1991
|
-
loading: i(
|
|
1916
|
+
return (r, p) => {
|
|
1917
|
+
var n;
|
|
1918
|
+
const d = y("FmTabs");
|
|
1919
|
+
return g(), w(be, {
|
|
1920
|
+
title: `Payout Account (${(n = c.value) == null ? void 0 : n._id})`,
|
|
1921
|
+
loading: i(v),
|
|
1992
1922
|
onBack: i(t).back
|
|
1993
1923
|
}, {
|
|
1994
|
-
default:
|
|
1995
|
-
|
|
1924
|
+
default: k(() => [
|
|
1925
|
+
o(d, {
|
|
1996
1926
|
"model-value": i(e),
|
|
1997
|
-
"onUpdate:modelValue":
|
|
1927
|
+
"onUpdate:modelValue": p[0] || (p[0] = (S) => ae(e) ? e.value = S : null),
|
|
1998
1928
|
class: "mb-6",
|
|
1999
|
-
items:
|
|
1929
|
+
items: f
|
|
2000
1930
|
}, null, 8, ["model-value"]),
|
|
2001
|
-
i(e) ? (
|
|
1931
|
+
i(e) ? (g(), w(ue(b.value), se(re({ key: 0 }, {
|
|
2002
1932
|
payoutAccount: c.value,
|
|
2003
|
-
onUpdate:
|
|
2004
|
-
})), null, 16)) :
|
|
1933
|
+
onUpdate: F
|
|
1934
|
+
})), null, 16)) : E("", !0)
|
|
2005
1935
|
]),
|
|
2006
1936
|
_: 1
|
|
2007
1937
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -2009,5 +1939,5 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
2009
1939
|
}
|
|
2010
1940
|
});
|
|
2011
1941
|
export {
|
|
2012
|
-
|
|
1942
|
+
Tt as default
|
|
2013
1943
|
};
|