@feedmepos/mf-payment 1.10.3 → 1.10.5-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-DXXEAGNv.js → Actions.vue_vue_type_script_setup_true_lang-BIxmXhVi.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DtDcZPiM.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BOuAR3Jk.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzfC4Ydq.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CVWH4h9m.js} +2 -2
- package/dist/{Chargeback-CeT1Lhsx.js → Chargeback-D-SaWEZ3.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Anj6Ov3T.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js} +9 -4
- package/dist/{ExternalTerminal-CVwXtIQi.js → ExternalTerminal-DSFdyxgo.js} +6 -6
- package/dist/OnboardForm-BW_d_NI5.js +22533 -0
- package/dist/OnboardForm-rjhOG28l.js +1519 -0
- package/dist/{OnboardSubmission-DbCS8yrY.js → OnboardSubmission-CvSo8EfH.js} +6 -6
- package/dist/{OnboardSubmission-CMjrVivi.js → OnboardSubmission-b73A_sV3.js} +3 -3
- package/dist/{PayoutAccount-DAyjFYUb.js → PayoutAccount-DaFv-aML.js} +5 -5
- package/dist/{PayoutAccount-BQmYnRti.js → PayoutAccount-q8erqoPY.js} +7 -7
- package/dist/{PayoutAccountSetting-B2GvHok3.js → PayoutAccountSetting-DxxdGfgG.js} +715 -722
- package/dist/{Restaurant-BQYJBsl7.js → Restaurant-CV8QkUbQ.js} +4 -4
- package/dist/{RestaurantSetting-BAGLuDkq.js → RestaurantSetting-CTlqvfdy.js} +3 -3
- package/dist/{Settlement-DRAn74x0.js → Settlement-Cl9Gg13I.js} +3 -3
- package/dist/{Settlement-ChindqhG.js → Settlement-iRQ6XDJ4.js} +4 -4
- package/dist/{SettlementTransactions-BQr5WvYC.js → SettlementTransactions-CHUT3xnm.js} +5 -5
- package/dist/{SettlementTransactions-CIGKFRsD.js → SettlementTransactions-blKyTkGq.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D0RTxbYt.js → Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js} +1 -1
- package/dist/{Terminal-ITG71-h5.js → Terminal-BXvAm6w3.js} +6 -6
- package/dist/{TerminalSetting-DALz7UOI.js → TerminalSetting-C4o5IOpK.js} +6 -6
- package/dist/{Transaction-CMlbLJ40.js → Transaction-BIeW9fTK.js} +10 -10
- package/dist/{Transaction-CNczRMks.js → Transaction-DntiUDtA.js} +11 -11
- package/dist/{TransactionOld-Vc0BxLst.js → TransactionOld-BLrS-7GS.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D0IHQIDw.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CjQ2GMrD.js} +1 -1
- package/dist/{app-DIXzt9ON.js → app-DyJjl-JW.js} +362 -353
- package/dist/app.js +1 -1
- package/dist/{assets-D6PvbkZQ.js → assets-Dli_wsgY.js} +1 -1
- package/dist/components/PDFViewer.vue.d.ts +11 -1
- package/dist/{grafana-CIUpjt-p.js → grafana-B_QqlaQQ.js} +1 -1
- package/dist/{index-VP68zTCg.js → index-8GWhPszq.js} +1 -1
- package/dist/{index-Dd0_PteU.js → index-B8bREy8p.js} +1 -1
- package/dist/{index-Gru3oQsi.js → index-BAEwRvM-.js} +1 -1
- package/dist/{index-Dhl-wJsD.js → index-C1n_Ih97.js} +1 -1
- package/dist/{index-DSzEV9Z2.js → index-CUDgQRLT.js} +1 -1
- package/dist/{index-BJz6amD9.js → index-CbTXFbRi.js} +1 -2
- package/dist/{index-cVqHUVQr.js → index-CqWAZhwv.js} +2 -2
- package/dist/{index-DSTvbZSY.js → index-Cvrxt3gd.js} +1 -1
- package/dist/{index-BtizhJgd.js → index-DjlqF6I0.js} +1 -1
- package/dist/{index-6ArggUS4.js → index-eEK4FJWw.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-i75zV-qk.js → index.vue_vue_type_script_setup_true_lang-BBqaMh-p.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-CaLG3ujz.js → onboard-submission-DW1TUY3U.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BuF5FTeH.js → payout-account-BEdIU70O.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +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 +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +38 -38
- 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/settlement/SettlementTable.vue.d.ts +32 -32
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
- package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -1
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +32 -32
- package/package.json +2 -2
- package/dist/OnboardForm-CwNYDJWa.js +0 -1463
- package/dist/OnboardForm-DIDPFAwq.js +0 -22368
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as Y } from "./index-
|
|
3
|
-
import { u as ne, e as q } from "./index-
|
|
1
|
+
import { defineComponent as R, ref as U, resolveComponent as d, openBlock as g, createElementBlock as G, Fragment as j, createElementVNode as r, createVNode as n, withCtx as w, createTextVNode as _, toDisplayString as O, unref as i, createBlock as k, createCommentVNode as $, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as me, resolveDynamicComponent as ue, normalizeProps as re, mergeProps as se } from "vue";
|
|
2
|
+
import { p as Y } from "./index-eEK4FJWw.js";
|
|
3
|
+
import { u as ne, e as q } from "./index-CbTXFbRi.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-DjlqF6I0.js";
|
|
7
|
+
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js";
|
|
8
8
|
import { h as fe } from "./moment-h96o7c8I.js";
|
|
9
|
-
import { d as te } from "./index-
|
|
10
|
-
import { useSnackbar as W, useDialogChild as ge, useDialog as
|
|
9
|
+
import { d as te } from "./index-C1n_Ih97.js";
|
|
10
|
+
import { useSnackbar as W, useDialogChild as ge, useDialog as de, components as Fe } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as Z } from "./error-K1CakhA9.js";
|
|
12
|
-
import { P as xe } from "./payout-account-
|
|
12
|
+
import { P as xe } from "./payout-account-BEdIU70O.js";
|
|
13
13
|
import { s as X, o as ke, z as N, a as D } from "./validator-CTlVogBQ.js";
|
|
14
14
|
import { _ as we } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
|
|
15
|
-
import { useCoreStore as
|
|
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" },
|
|
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" }, Ue = { class: "flex gap-4 mt-4" }, Ce = /* @__PURE__ */ R({
|
|
17
17
|
__name: "Information",
|
|
18
18
|
props: {
|
|
19
19
|
payoutAccount: {
|
|
@@ -26,58 +26,58 @@ 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
|
|
30
|
-
const
|
|
29
|
+
const l = a, e = W(), v = U(!1), u = U(!1), t = U(), c = U(""), F = (p) => {
|
|
30
|
+
const o = new FileReader();
|
|
31
31
|
return new Promise((S) => {
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
return S((
|
|
35
|
-
},
|
|
32
|
+
o.onload = (A) => {
|
|
33
|
+
var C;
|
|
34
|
+
return S((C = A.target) == null ? void 0 : C.result);
|
|
35
|
+
}, o.readAsDataURL(p);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
|
|
37
|
+
}, f = async (p) => {
|
|
38
|
+
t.value = p, c.value = p ? await F(p) : "";
|
|
39
39
|
}, m = () => {
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
40
|
+
u.value = !1, t.value = void 0, c.value = "";
|
|
41
|
+
}, y = () => {
|
|
42
|
+
t.value = void 0, c.value = "";
|
|
43
|
+
}, s = async (p) => {
|
|
44
44
|
var S;
|
|
45
|
-
const
|
|
46
|
-
return ((S =
|
|
47
|
-
`restaurant/${
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
const o = l.payoutAccount.businessId || l.payoutAccount.store.id;
|
|
46
|
+
return ((S = l.payoutAccount.store) == null ? void 0 : S.event) === "ORDERING" ? await te.adminUpload(
|
|
47
|
+
`restaurant/${l.payoutAccount.store.id}/exterior/photo`,
|
|
48
|
+
p,
|
|
49
|
+
o,
|
|
50
|
+
l.payoutAccount.store.id
|
|
51
51
|
) : await te.adminUpload(
|
|
52
|
-
`business/${
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
`business/${o}/exterior/photo`,
|
|
53
|
+
p,
|
|
54
|
+
o,
|
|
55
55
|
void 0
|
|
56
56
|
);
|
|
57
|
-
},
|
|
58
|
-
if (
|
|
57
|
+
}, b = async () => {
|
|
58
|
+
if (t.value)
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
...
|
|
60
|
+
v.value = !0;
|
|
61
|
+
const p = await s(t.value), o = {
|
|
62
|
+
...l.payoutAccount,
|
|
63
63
|
store: {
|
|
64
|
-
...
|
|
65
|
-
exteriorPhoto:
|
|
64
|
+
...l.payoutAccount.store,
|
|
65
|
+
exteriorPhoto: p
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
await
|
|
69
|
-
} catch (
|
|
70
|
-
|
|
68
|
+
await l.onUpdate(o), u.value = !1, t.value = void 0, c.value = "", e.open({ type: "success", title: "Exterior photo updated successfully" });
|
|
69
|
+
} catch (p) {
|
|
70
|
+
e.open({ type: "error", title: "Failed to update exterior photo", message: Z(p) });
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
v.value = !1;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
return (
|
|
76
|
-
var P, V, x,
|
|
77
|
-
const S =
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
n(
|
|
75
|
+
return (p, o) => {
|
|
76
|
+
var P, V, x, E;
|
|
77
|
+
const S = d("FmCardHeader"), A = d("FmCardSection"), C = d("FmCard"), I = d("FmButton"), T = d("FmDropField");
|
|
78
|
+
return g(), G(j, null, [
|
|
79
|
+
r("div", Ve, [
|
|
80
|
+
n(C, {
|
|
81
81
|
horizontal: "",
|
|
82
82
|
class: "flex-1 p-6",
|
|
83
83
|
variant: "elevated"
|
|
@@ -92,17 +92,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
92
92
|
}),
|
|
93
93
|
n(A, { class: "p-0" }, {
|
|
94
94
|
default: w(() => {
|
|
95
|
-
var B,
|
|
95
|
+
var B, h, K, H, z;
|
|
96
96
|
return [
|
|
97
|
-
|
|
98
|
-
_(": " + O((
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
o[1] || (o[1] = r("b", null, "For", -1)),
|
|
98
|
+
_(": " + O((h = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : h.event) + " ", 1),
|
|
99
|
+
o[2] || (o[2] = r("br", null, null, -1)),
|
|
100
|
+
o[3] || (o[3] = r("b", null, "Reference", -1)),
|
|
101
101
|
_(": " + O((H = (K = a.payoutAccount) == null ? void 0 : K.store) == null ? void 0 : H.id), 1),
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
o[4] || (o[4] = r("br", null, null, -1)),
|
|
103
|
+
o[5] || (o[5] = r("b", null, "Business", -1)),
|
|
104
104
|
_(": " + O((z = a.payoutAccount) == null ? void 0 : z.businessId), 1),
|
|
105
|
-
|
|
105
|
+
o[6] || (o[6] = r("br", null, null, -1))
|
|
106
106
|
];
|
|
107
107
|
}),
|
|
108
108
|
_: 1
|
|
@@ -113,7 +113,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
115
|
}),
|
|
116
|
-
n(
|
|
116
|
+
n(C, {
|
|
117
117
|
horizontal: "",
|
|
118
118
|
class: "flex-1 p-6",
|
|
119
119
|
variant: "elevated"
|
|
@@ -128,17 +128,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
128
128
|
}),
|
|
129
129
|
n(A, { class: "p-0" }, {
|
|
130
130
|
default: w(() => {
|
|
131
|
-
var B,
|
|
131
|
+
var B, h, K, H, z, M, ie, ce;
|
|
132
132
|
return [
|
|
133
|
-
|
|
134
|
-
_(": " + O((K = (
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
o[7] || (o[7] = r("b", null, "Email", -1)),
|
|
134
|
+
_(": " + O((K = (h = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : h.keyPerson) == null ? void 0 : K.email) + " ", 1),
|
|
135
|
+
o[8] || (o[8] = r("br", null, null, -1)),
|
|
136
|
+
o[9] || (o[9] = r("b", null, "Name", -1)),
|
|
137
137
|
_(": " + O((M = (z = (H = a.payoutAccount) == null ? void 0 : H.store) == null ? void 0 : z.keyPerson) == null ? void 0 : M.name), 1),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
_(": " + O((
|
|
141
|
-
|
|
138
|
+
o[10] || (o[10] = r("br", null, null, -1)),
|
|
139
|
+
o[11] || (o[11] = r("b", null, "Phone", -1)),
|
|
140
|
+
_(": " + O((ce = (ie = a.payoutAccount) == null ? void 0 : ie.store.keyPerson) == null ? void 0 : ce.phone), 1),
|
|
141
|
+
o[12] || (o[12] = r("br", null, null, -1))
|
|
142
142
|
];
|
|
143
143
|
}),
|
|
144
144
|
_: 1
|
|
@@ -150,8 +150,8 @@ 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
|
-
n(
|
|
153
|
+
r("div", Ae, [
|
|
154
|
+
n(C, {
|
|
155
155
|
horizontal: "",
|
|
156
156
|
class: "flex-1 p-6",
|
|
157
157
|
variant: "elevated"
|
|
@@ -166,19 +166,19 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
166
166
|
}),
|
|
167
167
|
n(A, { class: "p-0" }, {
|
|
168
168
|
default: w(() => {
|
|
169
|
-
var B,
|
|
169
|
+
var B, h, K;
|
|
170
170
|
return [
|
|
171
|
-
|
|
172
|
-
_(": " + O((B = a.payoutAccount) != null && B.submissionDate ?
|
|
171
|
+
o[13] || (o[13] = r("b", null, "Submission Date", -1)),
|
|
172
|
+
_(": " + O((B = a.payoutAccount) != null && B.submissionDate ? i(fe)(a.payoutAccount.submissionDate).format(
|
|
173
173
|
"YYYY-MM-DD HH:mm:ss"
|
|
174
174
|
) : "—"), 1),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
_(": " + O(((
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
o[14] || (o[14] = r("br", null, null, -1)),
|
|
176
|
+
o[15] || (o[15] = r("b", null, "Status By", -1)),
|
|
177
|
+
_(": " + O(((h = a.payoutAccount) == null ? void 0 : h.statusBy) ?? "—"), 1),
|
|
178
|
+
o[16] || (o[16] = r("br", null, null, -1)),
|
|
179
|
+
o[17] || (o[17] = r("b", null, "Status Reason", -1)),
|
|
180
180
|
_(": " + O(((K = a.payoutAccount) == null ? void 0 : K.statusReason) ?? "—"), 1),
|
|
181
|
-
|
|
181
|
+
o[18] || (o[18] = r("br", null, null, -1))
|
|
182
182
|
];
|
|
183
183
|
}),
|
|
184
184
|
_: 1
|
|
@@ -190,62 +190,62 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
190
190
|
_: 1
|
|
191
191
|
})
|
|
192
192
|
]),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
r("div", Se, [
|
|
194
|
+
o[19] || (o[19] = r("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
|
|
195
|
+
r("div", Ne, [
|
|
196
|
+
u.value ? (g(), k(I, {
|
|
197
197
|
key: 0,
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
label: "Cancel",
|
|
200
200
|
onClick: m
|
|
201
|
-
})) :
|
|
202
|
-
|
|
201
|
+
})) : $("", !0),
|
|
202
|
+
u.value ? $("", !0) : (g(), k(I, {
|
|
203
203
|
key: 1,
|
|
204
204
|
variant: "primary",
|
|
205
205
|
label: "Edit Exterior Photo",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: o[0] || (o[0] = (B) => u.value = !0)
|
|
207
207
|
}))
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
u.value ? (g(), G(j, { key: 0 }, [
|
|
211
|
+
c.value ? (g(), G(j, { key: 0 }, [
|
|
212
212
|
n(Q, {
|
|
213
|
-
document:
|
|
213
|
+
document: c.value,
|
|
214
214
|
"business-id": a.payoutAccount.businessId,
|
|
215
215
|
"restaurant-id": ((V = (P = a.payoutAccount) == null ? void 0 : P.store) == null ? void 0 : V.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
216
216
|
}, null, 8, ["document", "business-id", "restaurant-id"]),
|
|
217
|
-
|
|
217
|
+
r("div", Ue, [
|
|
218
218
|
n(I, {
|
|
219
219
|
variant: "tertiary",
|
|
220
220
|
label: "Remove",
|
|
221
221
|
size: "md",
|
|
222
222
|
"prepend-icon": "delete",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: y
|
|
224
224
|
}),
|
|
225
225
|
n(I, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
label: "Save",
|
|
228
228
|
size: "md",
|
|
229
|
-
loading:
|
|
230
|
-
onClick:
|
|
229
|
+
loading: v.value,
|
|
230
|
+
onClick: b
|
|
231
231
|
}, null, 8, ["loading"])
|
|
232
232
|
])
|
|
233
|
-
], 64)) : (
|
|
233
|
+
], 64)) : (g(), k(T, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "h-[300px] w-full",
|
|
236
236
|
accept: ".png,.jpg,.jpeg,.webp,.pdf",
|
|
237
|
-
onFileUpload:
|
|
237
|
+
onFileUpload: f
|
|
238
238
|
}))
|
|
239
|
-
], 64)) : (
|
|
239
|
+
], 64)) : (g(), k(Q, {
|
|
240
240
|
key: 1,
|
|
241
241
|
document: a.payoutAccount.store.exteriorPhoto,
|
|
242
242
|
"business-id": a.payoutAccount.businessId,
|
|
243
|
-
"restaurant-id": ((
|
|
243
|
+
"restaurant-id": ((E = (x = a.payoutAccount) == null ? void 0 : x.store) == null ? void 0 : E.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
244
244
|
}, null, 8, ["document", "business-id", "restaurant-id"]))
|
|
245
245
|
], 64);
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
}), Ie = { class: "flex flex-col gap-8" }, De = { class: "flex flex-col gap-8" },
|
|
248
|
+
}), Ie = { class: "flex flex-col gap-8" }, De = { class: "flex flex-col gap-8" }, Te = { class: "flex justify-end mb-2" }, he = /* @__PURE__ */ R({
|
|
249
249
|
__name: "SettlementEditDialog",
|
|
250
250
|
props: {
|
|
251
251
|
initialValue: {
|
|
@@ -266,121 +266,121 @@ 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
|
|
270
|
-
companyName:
|
|
271
|
-
regNo:
|
|
272
|
-
bankName:
|
|
273
|
-
bankHolderName:
|
|
274
|
-
bankAccountNumber:
|
|
275
|
-
ssm:
|
|
276
|
-
bankStatement:
|
|
277
|
-
}),
|
|
269
|
+
const l = a, { emitAction: e, emitData: v } = ge(), u = ye({
|
|
270
|
+
companyName: l.initialValue.companyName,
|
|
271
|
+
regNo: l.initialValue.regNo,
|
|
272
|
+
bankName: l.initialValue.bankName,
|
|
273
|
+
bankHolderName: l.initialValue.bankHolderName,
|
|
274
|
+
bankAccountNumber: l.initialValue.bankAccountNumber,
|
|
275
|
+
ssm: l.initialValue.ssm,
|
|
276
|
+
bankStatement: l.initialValue.bankStatement
|
|
277
|
+
}), t = U(), c = U(), F = U(u.ssm ?? ""), f = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), y = X().trim().min(1, "Registration number is required"), s = X().trim().min(1, "Bank name is required"), b = X().trim().min(1, "Bank holder name is required"), p = X().trim().min(1, "Bank account number is required"), o = ke({
|
|
278
278
|
companyName: m,
|
|
279
|
-
regNo:
|
|
280
|
-
bankName:
|
|
281
|
-
bankHolderName:
|
|
282
|
-
bankAccountNumber:
|
|
279
|
+
regNo: y,
|
|
280
|
+
bankName: s,
|
|
281
|
+
bankHolderName: b,
|
|
282
|
+
bankAccountNumber: p
|
|
283
283
|
}), S = () => {
|
|
284
|
-
const V =
|
|
285
|
-
V.success && (
|
|
284
|
+
const V = o.safeParse(u);
|
|
285
|
+
V.success && (v({
|
|
286
286
|
...V.data,
|
|
287
|
-
ssm:
|
|
288
|
-
bankStatement:
|
|
289
|
-
newSSM:
|
|
290
|
-
newBankStatement:
|
|
291
|
-
}),
|
|
287
|
+
ssm: u.ssm,
|
|
288
|
+
bankStatement: u.bankStatement,
|
|
289
|
+
newSSM: t.value,
|
|
290
|
+
newBankStatement: c.value
|
|
291
|
+
}), e("primary"));
|
|
292
292
|
};
|
|
293
293
|
async function A(V) {
|
|
294
294
|
const x = new FileReader();
|
|
295
|
-
return new Promise((
|
|
295
|
+
return new Promise((E) => {
|
|
296
296
|
x.onload = (B) => {
|
|
297
|
-
var
|
|
298
|
-
|
|
297
|
+
var h;
|
|
298
|
+
E((h = B.target) == null ? void 0 : h.result);
|
|
299
299
|
}, x.readAsDataURL(V);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
|
|
302
|
+
const C = async (V) => {
|
|
303
|
+
t.value = V, F.value = V ? await A(V) : "";
|
|
304
304
|
}, I = async (V) => {
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
|
|
305
|
+
c.value = V, f.value = V ? await A(V) : "";
|
|
306
|
+
}, T = () => {
|
|
307
|
+
t.value = void 0, F.value = "";
|
|
308
308
|
}, P = () => {
|
|
309
|
-
|
|
309
|
+
c.value = void 0, f.value = "";
|
|
310
310
|
};
|
|
311
311
|
return (V, x) => {
|
|
312
|
-
const
|
|
313
|
-
return
|
|
312
|
+
const E = d("FmTextField"), B = d("FmSelect"), h = d("FmButton"), K = d("FmFormGroup"), H = d("FmDropField"), z = d("FmForm");
|
|
313
|
+
return g(), k(z, {
|
|
314
314
|
class: "flex flex-col gap-16",
|
|
315
315
|
onValidationSuccess: S
|
|
316
316
|
}, {
|
|
317
317
|
default: w(() => [
|
|
318
|
-
x[9] || (x[9] =
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
x[9] || (x[9] = r("div", { class: "flex items-center my-2" }, [
|
|
319
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
320
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Account"),
|
|
321
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
322
322
|
], -1)),
|
|
323
|
-
n(
|
|
324
|
-
modelValue:
|
|
325
|
-
"onUpdate:modelValue": x[0] || (x[0] = (M) =>
|
|
323
|
+
n(E, {
|
|
324
|
+
modelValue: u.regNo,
|
|
325
|
+
"onUpdate:modelValue": x[0] || (x[0] = (M) => u.regNo = M),
|
|
326
326
|
label: "Registration Number",
|
|
327
327
|
"label-mark": "required",
|
|
328
328
|
"helper-text": "Registration Number must match uploaded SSM registration number.",
|
|
329
|
-
rules:
|
|
329
|
+
rules: i(N)(i(y)),
|
|
330
330
|
autofocus: ""
|
|
331
331
|
}, null, 8, ["modelValue", "rules"]),
|
|
332
|
-
n(
|
|
333
|
-
modelValue:
|
|
334
|
-
"onUpdate:modelValue": x[1] || (x[1] = (M) =>
|
|
332
|
+
n(E, {
|
|
333
|
+
modelValue: u.companyName,
|
|
334
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => u.companyName = M),
|
|
335
335
|
label: "Company Name",
|
|
336
336
|
"label-mark": "required",
|
|
337
337
|
"helper-text": "Company Name must match uploaded SSM registration name.",
|
|
338
|
-
rules:
|
|
338
|
+
rules: i(N)(i(m))
|
|
339
339
|
}, null, 8, ["modelValue", "rules"]),
|
|
340
|
-
x[10] || (x[10] =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
x[10] || (x[10] = r("div", { class: "flex items-center my-2" }, [
|
|
341
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
342
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Bank"),
|
|
343
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
344
344
|
], -1)),
|
|
345
345
|
n(B, {
|
|
346
|
-
modelValue:
|
|
347
|
-
"onUpdate:modelValue": x[2] || (x[2] = (M) =>
|
|
346
|
+
modelValue: u.bankName,
|
|
347
|
+
"onUpdate:modelValue": x[2] || (x[2] = (M) => u.bankName = M),
|
|
348
348
|
label: "Bank",
|
|
349
349
|
"label-mark": "required",
|
|
350
|
-
items:
|
|
351
|
-
rules:
|
|
350
|
+
items: l.bankNameOptions,
|
|
351
|
+
rules: i(N)(i(s))
|
|
352
352
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
353
|
-
n(
|
|
354
|
-
modelValue:
|
|
355
|
-
"onUpdate:modelValue": x[3] || (x[3] = (M) =>
|
|
353
|
+
n(E, {
|
|
354
|
+
modelValue: u.bankHolderName,
|
|
355
|
+
"onUpdate:modelValue": x[3] || (x[3] = (M) => u.bankHolderName = M),
|
|
356
356
|
label: "Bank Holder",
|
|
357
357
|
"label-mark": "required",
|
|
358
|
-
rules:
|
|
358
|
+
rules: i(N)(i(b))
|
|
359
359
|
}, null, 8, ["modelValue", "rules"]),
|
|
360
|
-
n(
|
|
361
|
-
modelValue:
|
|
362
|
-
"onUpdate:modelValue": x[4] || (x[4] = (M) =>
|
|
360
|
+
n(E, {
|
|
361
|
+
modelValue: u.bankAccountNumber,
|
|
362
|
+
"onUpdate:modelValue": x[4] || (x[4] = (M) => u.bankAccountNumber = M),
|
|
363
363
|
label: "Bank Account Number",
|
|
364
364
|
"label-mark": "required",
|
|
365
365
|
type: "number",
|
|
366
|
-
rules:
|
|
366
|
+
rules: i(N)(i(p))
|
|
367
367
|
}, null, 8, ["modelValue", "rules"]),
|
|
368
|
-
x[11] || (x[11] =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
x[11] || (x[11] = r("div", { class: "flex items-center my-2" }, [
|
|
369
|
+
r("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
370
|
+
r("span", { class: "text-left mx-6 text-gray-500" }, "Document"),
|
|
371
|
+
r("hr", { class: "flex-grow border-t border-gray-300" })
|
|
372
372
|
], -1)),
|
|
373
|
-
|
|
374
|
-
x[7] || (x[7] =
|
|
375
|
-
|
|
373
|
+
r("div", Ie, [
|
|
374
|
+
x[7] || (x[7] = r("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
375
|
+
F.value ? (g(), k(K, {
|
|
376
376
|
key: 0,
|
|
377
|
-
modelValue:
|
|
378
|
-
"onUpdate:modelValue": x[5] || (x[5] = (M) =>
|
|
377
|
+
modelValue: F.value,
|
|
378
|
+
"onUpdate:modelValue": x[5] || (x[5] = (M) => F.value = M),
|
|
379
379
|
label: "SSM"
|
|
380
380
|
}, {
|
|
381
381
|
default: w(() => [
|
|
382
382
|
n(Q, {
|
|
383
|
-
document:
|
|
383
|
+
document: F.value,
|
|
384
384
|
"business-id": a.businessId,
|
|
385
385
|
"restaurant-id": a.restaurantId
|
|
386
386
|
}, {
|
|
@@ -394,33 +394,33 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
394
394
|
]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
397
|
-
n(
|
|
397
|
+
n(h, {
|
|
398
398
|
type: "button",
|
|
399
399
|
variant: "tertiary",
|
|
400
400
|
label: "Remove",
|
|
401
401
|
size: "md",
|
|
402
402
|
"prepend-icon": "delete",
|
|
403
|
-
onClick:
|
|
403
|
+
onClick: T
|
|
404
404
|
})
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["modelValue"])) : (
|
|
407
|
+
}, 8, ["modelValue"])) : (g(), k(H, {
|
|
408
408
|
key: 1,
|
|
409
409
|
accept: ".pdf",
|
|
410
|
-
onFileUpload:
|
|
410
|
+
onFileUpload: C
|
|
411
411
|
}))
|
|
412
412
|
]),
|
|
413
|
-
|
|
414
|
-
x[8] || (x[8] =
|
|
415
|
-
|
|
413
|
+
r("div", De, [
|
|
414
|
+
x[8] || (x[8] = r("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
415
|
+
f.value ? (g(), k(K, {
|
|
416
416
|
key: 0,
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": x[6] || (x[6] = (M) =>
|
|
417
|
+
modelValue: f.value,
|
|
418
|
+
"onUpdate:modelValue": x[6] || (x[6] = (M) => f.value = M),
|
|
419
419
|
label: "Bank Statement"
|
|
420
420
|
}, {
|
|
421
421
|
default: w(() => [
|
|
422
422
|
n(Q, {
|
|
423
|
-
document:
|
|
423
|
+
document: f.value,
|
|
424
424
|
"business-id": a.businessId,
|
|
425
425
|
"restaurant-id": a.restaurantId
|
|
426
426
|
}, {
|
|
@@ -434,7 +434,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
}, 8, ["document", "business-id", "restaurant-id"]),
|
|
437
|
-
n(
|
|
437
|
+
n(h, {
|
|
438
438
|
type: "button",
|
|
439
439
|
variant: "tertiary",
|
|
440
440
|
label: "Remove",
|
|
@@ -444,14 +444,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
444
444
|
})
|
|
445
445
|
]),
|
|
446
446
|
_: 1
|
|
447
|
-
}, 8, ["modelValue"])) : (
|
|
447
|
+
}, 8, ["modelValue"])) : (g(), k(H, {
|
|
448
448
|
key: 1,
|
|
449
449
|
accept: ".pdf",
|
|
450
450
|
onFileUpload: I
|
|
451
451
|
}))
|
|
452
452
|
]),
|
|
453
|
-
|
|
454
|
-
n(
|
|
453
|
+
r("div", Te, [
|
|
454
|
+
n(h, {
|
|
455
455
|
type: "submit",
|
|
456
456
|
variant: "primary",
|
|
457
457
|
label: "Save"
|
|
@@ -462,7 +462,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
}),
|
|
465
|
+
}), Re = { class: "flex justify-end mb-6" }, Pe = { class: "flex gap-16 mb-6" }, Me = { class: "flex gap-16" }, Be = { class: "flex-1" }, _e = { class: "flex-1" }, $e = /* @__PURE__ */ R({
|
|
466
466
|
__name: "Settlement",
|
|
467
467
|
props: {
|
|
468
468
|
onUpdate: {
|
|
@@ -475,126 +475,126 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
setup(a) {
|
|
478
|
-
const
|
|
479
|
-
var
|
|
478
|
+
const l = a, e = U(!1), v = de(), u = W(), t = xe.bankNameOptions(), c = () => {
|
|
479
|
+
var y, s, b, p, o, S, A, C, I, T;
|
|
480
480
|
return {
|
|
481
|
-
companyName: ((
|
|
482
|
-
regNo: ((
|
|
483
|
-
bankName: ((
|
|
484
|
-
bankHolderName: ((S = (
|
|
485
|
-
bankAccountNumber: ((
|
|
486
|
-
ssm: ((I =
|
|
487
|
-
bankStatement: ((
|
|
481
|
+
companyName: ((y = l.payoutAccount.store) == null ? void 0 : y.companyName) ?? "",
|
|
482
|
+
regNo: ((s = l.payoutAccount.store) == null ? void 0 : s.regNo) ?? "",
|
|
483
|
+
bankName: ((p = (b = l.payoutAccount.store) == null ? void 0 : b.bank) == null ? void 0 : p.name) ?? "",
|
|
484
|
+
bankHolderName: ((S = (o = l.payoutAccount.store) == null ? void 0 : o.bank) == null ? void 0 : S.holderName) ?? "",
|
|
485
|
+
bankAccountNumber: ((C = (A = l.payoutAccount.store) == null ? void 0 : A.bank) == null ? void 0 : C.accountNumber) ?? "",
|
|
486
|
+
ssm: ((I = l.payoutAccount.store) == null ? void 0 : I.ssm) ?? "",
|
|
487
|
+
bankStatement: ((T = l.payoutAccount.store) == null ? void 0 : T.bankStatement) ?? ""
|
|
488
488
|
};
|
|
489
|
-
},
|
|
490
|
-
var
|
|
491
|
-
const
|
|
492
|
-
if (((
|
|
489
|
+
}, F = async (y, s) => {
|
|
490
|
+
var o;
|
|
491
|
+
const b = (/* @__PURE__ */ new Date()).toISOString();
|
|
492
|
+
if (((o = l.payoutAccount.store) == null ? void 0 : o.event) === "ORDERING")
|
|
493
493
|
return await te.adminUpload(
|
|
494
|
-
`restaurant/${
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
`restaurant/${l.payoutAccount.store.id}/documents/${y}/${b}.pdf`,
|
|
495
|
+
s,
|
|
496
|
+
l.payoutAccount.businessId,
|
|
497
|
+
l.payoutAccount.store.id
|
|
498
498
|
);
|
|
499
|
-
const
|
|
499
|
+
const p = l.payoutAccount.businessId || l.payoutAccount.store.id;
|
|
500
500
|
return await te.adminUpload(
|
|
501
|
-
`business/${
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
`business/${p}/documents/${y}/${b}.pdf`,
|
|
502
|
+
s,
|
|
503
|
+
p,
|
|
504
504
|
void 0
|
|
505
505
|
);
|
|
506
|
-
},
|
|
507
|
-
if (!
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
506
|
+
}, f = async (y) => {
|
|
507
|
+
if (!l.payoutAccount.store) return;
|
|
508
|
+
let s = l.payoutAccount.store.ssm;
|
|
509
|
+
y.newSSM && (s = await F("ssm", y.newSSM));
|
|
510
|
+
let b = l.payoutAccount.store.bankStatement;
|
|
511
|
+
y.newBankStatement && (b = await F(
|
|
512
512
|
"bankStatement",
|
|
513
|
-
|
|
513
|
+
y.newBankStatement
|
|
514
514
|
));
|
|
515
|
-
const
|
|
516
|
-
...
|
|
515
|
+
const p = {
|
|
516
|
+
...l.payoutAccount,
|
|
517
517
|
store: {
|
|
518
|
-
...
|
|
519
|
-
companyName:
|
|
520
|
-
regNo:
|
|
518
|
+
...l.payoutAccount.store,
|
|
519
|
+
companyName: y.companyName,
|
|
520
|
+
regNo: y.regNo,
|
|
521
521
|
bank: {
|
|
522
|
-
...
|
|
523
|
-
name:
|
|
524
|
-
holderName:
|
|
525
|
-
accountNumber:
|
|
522
|
+
...l.payoutAccount.store.bank ?? {},
|
|
523
|
+
name: y.bankName,
|
|
524
|
+
holderName: y.bankHolderName,
|
|
525
|
+
accountNumber: y.bankAccountNumber
|
|
526
526
|
},
|
|
527
|
-
ssm:
|
|
528
|
-
bankStatement:
|
|
527
|
+
ssm: s,
|
|
528
|
+
bankStatement: b
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
e.value = !0, await l.onUpdate(p), u.open({
|
|
533
533
|
type: "success",
|
|
534
534
|
title: "Settlement info updated successfully"
|
|
535
|
-
}),
|
|
536
|
-
} catch (
|
|
537
|
-
|
|
535
|
+
}), v.close();
|
|
536
|
+
} catch (o) {
|
|
537
|
+
u.open({
|
|
538
538
|
type: "error",
|
|
539
539
|
title: "Failed to update settlement info",
|
|
540
|
-
message: Z(
|
|
540
|
+
message: Z(o)
|
|
541
541
|
});
|
|
542
542
|
} finally {
|
|
543
|
-
|
|
543
|
+
e.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}, m = () => {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var y;
|
|
547
|
+
v.close(), v.open({
|
|
548
548
|
title: "Edit Settlement Info",
|
|
549
549
|
closeButton: !0,
|
|
550
550
|
overlay: !0,
|
|
551
|
-
contentComponent:
|
|
551
|
+
contentComponent: he,
|
|
552
552
|
contentComponentProps: {
|
|
553
|
-
initialValue:
|
|
554
|
-
bankNameOptions:
|
|
555
|
-
businessId:
|
|
556
|
-
restaurantId: ((
|
|
553
|
+
initialValue: c(),
|
|
554
|
+
bankNameOptions: t,
|
|
555
|
+
businessId: l.payoutAccount.businessId,
|
|
556
|
+
restaurantId: ((y = l.payoutAccount.store) == null ? void 0 : y.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
|
|
557
557
|
}
|
|
558
|
-
}).onPrimary((
|
|
559
|
-
|
|
558
|
+
}).onPrimary((s) => {
|
|
559
|
+
f(s);
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
|
-
return (
|
|
563
|
-
var A,
|
|
564
|
-
const
|
|
565
|
-
return
|
|
566
|
-
|
|
567
|
-
n(
|
|
562
|
+
return (y, s) => {
|
|
563
|
+
var A, C, I, T;
|
|
564
|
+
const b = d("FmButton"), p = d("FmCardHeader"), o = d("FmCardSection"), S = d("FmCard");
|
|
565
|
+
return g(), G(j, null, [
|
|
566
|
+
r("div", Re, [
|
|
567
|
+
n(b, {
|
|
568
568
|
variant: "primary",
|
|
569
569
|
label: "Edit Settlement Info",
|
|
570
|
-
loading:
|
|
570
|
+
loading: e.value,
|
|
571
571
|
onclick: m
|
|
572
572
|
}, null, 8, ["loading"])
|
|
573
573
|
]),
|
|
574
|
-
|
|
574
|
+
r("div", Pe, [
|
|
575
575
|
n(S, {
|
|
576
576
|
horizontal: "",
|
|
577
577
|
class: "flex-1 p-6",
|
|
578
578
|
variant: "elevated"
|
|
579
579
|
}, {
|
|
580
580
|
default: w(() => [
|
|
581
|
-
n(
|
|
581
|
+
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
582
582
|
default: w(() => [
|
|
583
|
-
n(
|
|
583
|
+
n(p, {
|
|
584
584
|
class: "p-0",
|
|
585
585
|
title: "Company Info",
|
|
586
586
|
subtitle: ""
|
|
587
587
|
}),
|
|
588
|
-
n(
|
|
588
|
+
n(o, { class: "p-0" }, {
|
|
589
589
|
default: w(() => {
|
|
590
590
|
var P, V;
|
|
591
591
|
return [
|
|
592
|
-
|
|
592
|
+
s[0] || (s[0] = r("b", null, "Name", -1)),
|
|
593
593
|
_(": " + O((P = a.payoutAccount) == null ? void 0 : P.store.companyName), 1),
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
s[1] || (s[1] = r("br", null, null, -1)),
|
|
595
|
+
s[2] || (s[2] = r("b", null, "Registration Number", -1)),
|
|
596
596
|
_(": " + O((V = a.payoutAccount) == null ? void 0 : V.store.regNo), 1),
|
|
597
|
-
|
|
597
|
+
s[3] || (s[3] = r("br", null, null, -1))
|
|
598
598
|
];
|
|
599
599
|
}),
|
|
600
600
|
_: 1
|
|
@@ -611,25 +611,25 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
611
611
|
variant: "elevated"
|
|
612
612
|
}, {
|
|
613
613
|
default: w(() => [
|
|
614
|
-
n(
|
|
614
|
+
n(o, { class: "flex flex-col gap-16 justify-between" }, {
|
|
615
615
|
default: w(() => [
|
|
616
|
-
n(
|
|
616
|
+
n(p, {
|
|
617
617
|
class: "p-0",
|
|
618
618
|
title: "Bank Info",
|
|
619
619
|
subtitle: ""
|
|
620
620
|
}),
|
|
621
|
-
n(
|
|
621
|
+
n(o, { class: "p-0" }, {
|
|
622
622
|
default: w(() => {
|
|
623
|
-
var P, V, x,
|
|
623
|
+
var P, V, x, E, B, h;
|
|
624
624
|
return [
|
|
625
|
-
|
|
625
|
+
s[4] || (s[4] = r("b", null, "Bank", -1)),
|
|
626
626
|
_(": " + O((V = (P = a.payoutAccount) == null ? void 0 : P.store.bank) == null ? void 0 : V.name), 1),
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
_(": " + O((
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
_(": " + O((
|
|
627
|
+
s[5] || (s[5] = r("br", null, null, -1)),
|
|
628
|
+
s[6] || (s[6] = r("b", null, "Name", -1)),
|
|
629
|
+
_(": " + O((E = (x = a.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : E.holderName), 1),
|
|
630
|
+
s[7] || (s[7] = r("br", null, null, -1)),
|
|
631
|
+
s[8] || (s[8] = r("b", null, "Number", -1)),
|
|
632
|
+
_(": " + O((h = (B = a.payoutAccount) == null ? void 0 : B.store.bank) == null ? void 0 : h.accountNumber), 1)
|
|
633
633
|
];
|
|
634
634
|
}),
|
|
635
635
|
_: 1
|
|
@@ -641,12 +641,12 @@ 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
|
-
|
|
644
|
+
r("div", Me, [
|
|
645
|
+
r("div", Be, [
|
|
646
|
+
s[9] || (s[9] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
|
647
647
|
n(Q, {
|
|
648
648
|
"business-id": a.payoutAccount.businessId,
|
|
649
|
-
"restaurant-id": ((
|
|
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
652
|
default: w(({ src: P }) => [
|
|
@@ -659,11 +659,11 @@ 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
|
-
|
|
662
|
+
r("div", _e, [
|
|
663
|
+
s[10] || (s[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
|
664
664
|
n(Q, {
|
|
665
665
|
"business-id": a.payoutAccount.businessId,
|
|
666
|
-
"restaurant-id": ((
|
|
666
|
+
"restaurant-id": ((T = (I = a.payoutAccount) == null ? void 0 : I.store) == null ? void 0 : T.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
|
|
667
667
|
document: a.payoutAccount.store.bankStatement
|
|
668
668
|
}, {
|
|
669
669
|
default: w(({ src: P }) => [
|
|
@@ -680,74 +680,74 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
680
680
|
], 64);
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), Ee = /* @__PURE__ */ R({
|
|
684
684
|
__name: "RateInput",
|
|
685
685
|
props: {
|
|
686
686
|
data: {},
|
|
687
687
|
onChange: { type: Function }
|
|
688
688
|
},
|
|
689
689
|
setup(a) {
|
|
690
|
-
const
|
|
691
|
-
return le(
|
|
692
|
-
|
|
693
|
-
}), (
|
|
694
|
-
const
|
|
695
|
-
return
|
|
690
|
+
const l = a, e = U(l.data.toString());
|
|
691
|
+
return le(e, (v) => {
|
|
692
|
+
l.onChange(parseFloat(v));
|
|
693
|
+
}), (v, u) => {
|
|
694
|
+
const t = d("FmTextField");
|
|
695
|
+
return g(), k(t, {
|
|
696
696
|
inputmode: "decimal",
|
|
697
|
-
modelValue:
|
|
698
|
-
"onUpdate:modelValue":
|
|
697
|
+
modelValue: e.value,
|
|
698
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
699
699
|
}, {
|
|
700
|
-
append: w(() => [...
|
|
700
|
+
append: w(() => [...u[1] || (u[1] = [
|
|
701
701
|
_("%", -1)
|
|
702
702
|
])]),
|
|
703
703
|
_: 1
|
|
704
704
|
}, 8, ["modelValue"]);
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
}), qe = /* @__PURE__ */
|
|
707
|
+
}), qe = /* @__PURE__ */ R({
|
|
708
708
|
__name: "TPlusInput",
|
|
709
709
|
props: {
|
|
710
710
|
data: {},
|
|
711
711
|
onChange: { type: Function }
|
|
712
712
|
},
|
|
713
713
|
setup(a) {
|
|
714
|
-
const
|
|
715
|
-
return le(
|
|
716
|
-
|
|
717
|
-
}), (
|
|
718
|
-
const
|
|
719
|
-
return
|
|
714
|
+
const l = a, e = U(l.data.toString());
|
|
715
|
+
return le(e, (v) => {
|
|
716
|
+
l.onChange(parseInt(v));
|
|
717
|
+
}), (v, u) => {
|
|
718
|
+
const t = d("FmTextField");
|
|
719
|
+
return g(), k(t, {
|
|
720
720
|
inputmode: "numeric",
|
|
721
|
-
modelValue:
|
|
722
|
-
"onUpdate:modelValue":
|
|
721
|
+
modelValue: e.value,
|
|
722
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
723
723
|
}, null, 8, ["modelValue"]);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
}), Oe = /* @__PURE__ */
|
|
726
|
+
}), Oe = /* @__PURE__ */ R({
|
|
727
727
|
__name: "MinimumFeeInput",
|
|
728
728
|
props: {
|
|
729
729
|
data: {},
|
|
730
730
|
onChange: { type: Function }
|
|
731
731
|
},
|
|
732
732
|
setup(a) {
|
|
733
|
-
const
|
|
734
|
-
return le(
|
|
735
|
-
|
|
736
|
-
}), (
|
|
737
|
-
const
|
|
738
|
-
return
|
|
733
|
+
const l = a, e = U(l.data.toString());
|
|
734
|
+
return le(e, (v) => {
|
|
735
|
+
l.onChange(parseFloat(v));
|
|
736
|
+
}), (v, u) => {
|
|
737
|
+
const t = d("FmTextField");
|
|
738
|
+
return g(), k(t, {
|
|
739
739
|
inputmode: "numeric",
|
|
740
|
-
modelValue:
|
|
741
|
-
"onUpdate:modelValue":
|
|
740
|
+
modelValue: e.value,
|
|
741
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
|
|
742
742
|
}, {
|
|
743
|
-
prepend: w(() => [...
|
|
743
|
+
prepend: w(() => [...u[1] || (u[1] = [
|
|
744
744
|
_("$", -1)
|
|
745
745
|
])]),
|
|
746
746
|
_: 1
|
|
747
747
|
}, 8, ["modelValue"]);
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
}), Ge = { class: "flex gap-16 mt-6" }, Ke = { class: "flex-1" }, je = { class: "flex-1" }, Ye = { class: "my-6 w-full flex justify-end" }, He = { class: "w-[320px]" }, ze = /* @__PURE__ */
|
|
750
|
+
}), Ge = { class: "flex gap-16 mt-6" }, Ke = { class: "flex-1" }, je = { class: "flex-1" }, Ye = { class: "my-6 w-full flex justify-end" }, He = { class: "w-[320px]" }, ze = /* @__PURE__ */ R({
|
|
751
751
|
__name: "PaymentStatus",
|
|
752
752
|
props: {
|
|
753
753
|
onUpdate: {
|
|
@@ -760,23 +760,23 @@ 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
|
|
763
|
+
const l = a, e = U(!1), v = W(), u = de(), t = async (s) => {
|
|
764
764
|
try {
|
|
765
|
-
|
|
765
|
+
e.value = !0, await l.onUpdate(s), v.open({
|
|
766
766
|
type: "success",
|
|
767
767
|
title: "Payout account update succesfully"
|
|
768
768
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
|
|
769
|
+
} catch (b) {
|
|
770
|
+
v.open({
|
|
771
771
|
type: "error",
|
|
772
772
|
title: "Error occurs when updating payout account",
|
|
773
|
-
message: Z(
|
|
773
|
+
message: Z(b)
|
|
774
774
|
});
|
|
775
775
|
} finally {
|
|
776
|
-
|
|
776
|
+
e.value = !1;
|
|
777
777
|
}
|
|
778
|
-
},
|
|
779
|
-
|
|
778
|
+
}, c = async () => {
|
|
779
|
+
u.close(), u.open({
|
|
780
780
|
title: "Rejection Reason",
|
|
781
781
|
closeButton: !0,
|
|
782
782
|
overlay: !0,
|
|
@@ -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
|
-
|
|
819
|
+
}).onPrimary((s) => {
|
|
820
|
+
l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason = s, t(l.payoutAccount), u.close();
|
|
821
821
|
});
|
|
822
|
-
}, { search:
|
|
822
|
+
}, { search: F } = oe({
|
|
823
823
|
search: ""
|
|
824
|
-
}),
|
|
825
|
-
const { ssm:
|
|
826
|
-
return
|
|
827
|
-
}), m =
|
|
824
|
+
}), f = L(() => {
|
|
825
|
+
const { ssm: s, bank: b, bankStatement: p } = l.payoutAccount.store;
|
|
826
|
+
return s && b && b.name && b.accountNumber && b.holderName && p;
|
|
827
|
+
}), m = U(""), y = [
|
|
828
828
|
{
|
|
829
829
|
header: () => "Payment Method",
|
|
830
830
|
accessorKey: "issuer",
|
|
831
|
-
cell: (
|
|
831
|
+
cell: (s) => `${s.row.original.issuer} (${s.row.original.variant})`
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
header: () => "Rate",
|
|
835
835
|
accessorKey: "rate",
|
|
836
|
-
cell: ({ row:
|
|
837
|
-
let
|
|
838
|
-
return
|
|
839
|
-
data:
|
|
840
|
-
onChange: (
|
|
841
|
-
const
|
|
842
|
-
|
|
836
|
+
cell: ({ row: s }) => {
|
|
837
|
+
let b = 0;
|
|
838
|
+
return s.original.rate && (b = s.original.rate.amount / Math.pow(10, s.original.rate.precision)), J(Ee, {
|
|
839
|
+
data: b,
|
|
840
|
+
onChange: (p) => {
|
|
841
|
+
const o = l.payoutAccount.methods.at(s.index);
|
|
842
|
+
o.rate || (o.rate = {
|
|
843
843
|
amount: 0,
|
|
844
844
|
precision: 4
|
|
845
|
-
}),
|
|
845
|
+
}), o.rate.amount = p * Math.pow(10, o.rate.precision);
|
|
846
846
|
}
|
|
847
847
|
});
|
|
848
848
|
}
|
|
@@ -850,16 +850,16 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
850
850
|
{
|
|
851
851
|
header: () => "Minimum Fee",
|
|
852
852
|
accessorKey: "minimumFee",
|
|
853
|
-
cell: ({ row:
|
|
854
|
-
let
|
|
855
|
-
return
|
|
856
|
-
data:
|
|
857
|
-
onChange: (
|
|
858
|
-
const
|
|
859
|
-
|
|
853
|
+
cell: ({ row: s }) => {
|
|
854
|
+
let b = 0;
|
|
855
|
+
return s.original.minimumFee && (b = s.original.minimumFee.amount / Math.pow(10, s.original.minimumFee.precision)), J(Oe, {
|
|
856
|
+
data: b,
|
|
857
|
+
onChange: (p) => {
|
|
858
|
+
const o = l.payoutAccount.methods.at(s.index);
|
|
859
|
+
o.minimumFee || (o.minimumFee = {
|
|
860
860
|
amount: 0,
|
|
861
861
|
precision: 2
|
|
862
|
-
}),
|
|
862
|
+
}), o.minimumFee.amount = p * Math.pow(10, o.minimumFee.precision);
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
}
|
|
@@ -867,102 +867,102 @@ 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
|
|
874
|
-
|
|
870
|
+
cell: ({ row: s }) => J(qe, {
|
|
871
|
+
data: s.original.tPlus ?? 0,
|
|
872
|
+
onChange: (b) => {
|
|
873
|
+
const p = l.payoutAccount.methods.at(s.index);
|
|
874
|
+
p.tPlus = b;
|
|
875
875
|
}
|
|
876
876
|
})
|
|
877
877
|
}
|
|
878
878
|
];
|
|
879
|
-
return (
|
|
880
|
-
const
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
n(
|
|
879
|
+
return (s, b) => {
|
|
880
|
+
const p = d("FmRadio"), o = d("FmRadioGroup"), S = d("FmSwitch"), A = d("FmSearch"), C = d("FmTable"), I = d("FmButton");
|
|
881
|
+
return g(), G(j, null, [
|
|
882
|
+
r("div", Ge, [
|
|
883
|
+
r("div", Ke, [
|
|
884
|
+
n(o, {
|
|
885
885
|
modelValue: a.payoutAccount.status,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": b[0] || (b[0] = (T) => a.payoutAccount.status = T),
|
|
887
887
|
label: "Account Status"
|
|
888
888
|
}, {
|
|
889
889
|
default: w(() => [
|
|
890
|
-
n(
|
|
890
|
+
n(p, {
|
|
891
891
|
value: "PENDING",
|
|
892
892
|
label: "Pending"
|
|
893
893
|
}),
|
|
894
|
-
n(
|
|
894
|
+
n(p, {
|
|
895
895
|
value: "APPROVED",
|
|
896
896
|
label: "Approved"
|
|
897
897
|
}),
|
|
898
|
-
n(
|
|
898
|
+
n(p, {
|
|
899
899
|
value: "REJECTED",
|
|
900
900
|
label: "Rejected",
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: c
|
|
902
902
|
})
|
|
903
903
|
]),
|
|
904
904
|
_: 1
|
|
905
905
|
}, 8, ["modelValue"])
|
|
906
906
|
]),
|
|
907
|
-
|
|
907
|
+
r("div", je, [
|
|
908
908
|
n(S, {
|
|
909
909
|
modelValue: a.payoutAccount.enable,
|
|
910
|
-
"onUpdate:modelValue":
|
|
911
|
-
disabled: !
|
|
910
|
+
"onUpdate:modelValue": b[1] || (b[1] = (T) => a.payoutAccount.enable = T),
|
|
911
|
+
disabled: !f.value,
|
|
912
912
|
label: "Enabled",
|
|
913
913
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
|
914
914
|
}, null, 8, ["modelValue", "disabled"])
|
|
915
915
|
])
|
|
916
916
|
]),
|
|
917
|
-
a.payoutAccount.enable ? (
|
|
918
|
-
|
|
919
|
-
|
|
917
|
+
a.payoutAccount.enable ? (g(), G(j, { key: 0 }, [
|
|
918
|
+
r("div", Ye, [
|
|
919
|
+
r("div", He, [
|
|
920
920
|
n(A, {
|
|
921
|
-
modelValue:
|
|
922
|
-
"onUpdate:modelValue":
|
|
921
|
+
modelValue: i(F),
|
|
922
|
+
"onUpdate:modelValue": b[2] || (b[2] = (T) => ae(F) ? F.value = T : null),
|
|
923
923
|
placeholder: "Search Method ..."
|
|
924
924
|
}, null, 8, ["modelValue"])
|
|
925
925
|
])
|
|
926
926
|
]),
|
|
927
|
-
n(
|
|
927
|
+
n(C, {
|
|
928
928
|
class: "mt-6",
|
|
929
929
|
modelValue: m.value,
|
|
930
|
-
"onUpdate:modelValue":
|
|
930
|
+
"onUpdate:modelValue": b[3] || (b[3] = (T) => m.value = T),
|
|
931
931
|
"shrink-at": !1,
|
|
932
|
-
"search-value":
|
|
932
|
+
"search-value": i(F),
|
|
933
933
|
"row-data": a.payoutAccount.methods,
|
|
934
|
-
"column-defs":
|
|
934
|
+
"column-defs": y
|
|
935
935
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
936
|
-
], 64)) :
|
|
936
|
+
], 64)) : $("", !0),
|
|
937
937
|
n(I, {
|
|
938
938
|
class: "w-full mt-6",
|
|
939
939
|
variant: "primary",
|
|
940
940
|
label: "Save",
|
|
941
|
-
loading:
|
|
942
|
-
onclick: () =>
|
|
941
|
+
loading: e.value,
|
|
942
|
+
onclick: () => t(a.payoutAccount)
|
|
943
943
|
}, null, 8, ["loading", "onclick"])
|
|
944
944
|
], 64);
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
}), Le = { class: "flex" }, Ze = /* @__PURE__ */
|
|
947
|
+
}), Le = { class: "flex" }, Ze = /* @__PURE__ */ R({
|
|
948
948
|
__name: "Actions",
|
|
949
949
|
emits: ["edit", "delete"],
|
|
950
|
-
setup(a, { emit:
|
|
951
|
-
const
|
|
952
|
-
return (
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
n(
|
|
950
|
+
setup(a, { emit: l }) {
|
|
951
|
+
const e = l;
|
|
952
|
+
return (v, u) => {
|
|
953
|
+
const t = d("FmButton");
|
|
954
|
+
return g(), G("div", Le, [
|
|
955
|
+
n(t, {
|
|
956
956
|
variant: "plain",
|
|
957
957
|
"prepend-icon": "delete",
|
|
958
|
-
onClick:
|
|
959
|
-
|
|
958
|
+
onClick: u[0] || (u[0] = (c) => {
|
|
959
|
+
c.stopPropagation(), e("delete");
|
|
960
960
|
})
|
|
961
961
|
})
|
|
962
962
|
]);
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
}), Je = { class: "flex justify-end px-6 pb-6" }, Qe = /* @__PURE__ */
|
|
965
|
+
}), Je = { class: "flex justify-end px-6 pb-6" }, Qe = /* @__PURE__ */ R({
|
|
966
966
|
__name: "PaymentChannel",
|
|
967
967
|
props: {
|
|
968
968
|
payoutAccount: {
|
|
@@ -971,41 +971,41 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
971
971
|
}
|
|
972
972
|
},
|
|
973
973
|
setup(a) {
|
|
974
|
-
const
|
|
975
|
-
function
|
|
976
|
-
|
|
977
|
-
|
|
974
|
+
const l = W(), e = a, { isLoading: v, startAsyncCall: u } = ne(), t = U([]);
|
|
975
|
+
function c() {
|
|
976
|
+
u(async () => {
|
|
977
|
+
t.value = await Y.getChannels(e.payoutAccount._id);
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
|
-
|
|
981
|
-
function
|
|
982
|
-
|
|
980
|
+
me(c);
|
|
981
|
+
function F() {
|
|
982
|
+
u(async () => {
|
|
983
983
|
try {
|
|
984
|
-
await Y.updateChannels(
|
|
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 (
|
|
989
|
-
|
|
988
|
+
} catch (y) {
|
|
989
|
+
l.open({
|
|
990
990
|
type: "error",
|
|
991
991
|
title: "Error occurs when updating payout account channels",
|
|
992
|
-
message: Z(
|
|
992
|
+
message: Z(y)
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
|
|
997
|
+
function f() {
|
|
998
|
+
u(async () => {
|
|
999
999
|
try {
|
|
1000
|
-
await Y.resetChannels(
|
|
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 (
|
|
1005
|
-
|
|
1004
|
+
} catch (y) {
|
|
1005
|
+
l.open({
|
|
1006
1006
|
type: "error",
|
|
1007
1007
|
title: "Error occurs when reset payout account channels",
|
|
1008
|
-
message: Z(
|
|
1008
|
+
message: Z(y)
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
@@ -1022,54 +1022,54 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1022
1022
|
{
|
|
1023
1023
|
header: () => "Display",
|
|
1024
1024
|
accessorKey: "icon",
|
|
1025
|
-
cell: ({ row:
|
|
1025
|
+
cell: ({ row: y }) => J("img", { src: y.original.icon, width: 32, height: 32 })
|
|
1026
1026
|
},
|
|
1027
1027
|
{
|
|
1028
1028
|
header: () => "Label",
|
|
1029
1029
|
accessorKey: "label",
|
|
1030
|
-
cell: ({ row:
|
|
1031
|
-
modelValue:
|
|
1032
|
-
"onUpdate:modelValue": (
|
|
1030
|
+
cell: ({ row: y }) => J(Fe.FmTextField, {
|
|
1031
|
+
modelValue: y.original.label,
|
|
1032
|
+
"onUpdate:modelValue": (s) => y.original.label = s
|
|
1033
1033
|
})
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
id: "actions",
|
|
1037
1037
|
header: () => "Actions",
|
|
1038
|
-
cell: ({ row:
|
|
1039
|
-
onDelete: () =>
|
|
1038
|
+
cell: ({ row: y }) => J(Ze, {
|
|
1039
|
+
onDelete: () => t.value.splice(y.index, 1)
|
|
1040
1040
|
})
|
|
1041
1041
|
}
|
|
1042
1042
|
];
|
|
1043
|
-
return (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
n(
|
|
1043
|
+
return (y, s) => {
|
|
1044
|
+
const b = d("FmButton"), p = d("FmTable");
|
|
1045
|
+
return g(), G(j, null, [
|
|
1046
|
+
r("div", Je, [
|
|
1047
|
+
n(b, {
|
|
1048
1048
|
class: "mx-4",
|
|
1049
1049
|
variant: "destructive",
|
|
1050
1050
|
size: "md",
|
|
1051
1051
|
icon: "history",
|
|
1052
1052
|
label: "Reset",
|
|
1053
|
-
onClick:
|
|
1053
|
+
onClick: f
|
|
1054
1054
|
}),
|
|
1055
|
-
n(
|
|
1055
|
+
n(b, {
|
|
1056
1056
|
variant: "primary",
|
|
1057
1057
|
size: "md",
|
|
1058
1058
|
icon: "save",
|
|
1059
1059
|
label: "Save",
|
|
1060
|
-
onClick:
|
|
1060
|
+
onClick: F
|
|
1061
1061
|
})
|
|
1062
1062
|
]),
|
|
1063
|
-
n(
|
|
1064
|
-
loading:
|
|
1065
|
-
"row-data":
|
|
1063
|
+
n(p, {
|
|
1064
|
+
loading: i(v),
|
|
1065
|
+
"row-data": t.value,
|
|
1066
1066
|
"column-defs": m,
|
|
1067
1067
|
"shrink-at": !1
|
|
1068
1068
|
}, null, 8, ["loading", "row-data"])
|
|
1069
1069
|
], 64);
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
}), We = { class: "flex mt-6 space-x-6" }, Xe = /* @__PURE__ */
|
|
1072
|
+
}), We = { class: "flex mt-6 space-x-6" }, Xe = /* @__PURE__ */ R({
|
|
1073
1073
|
__name: "FiuuGateway",
|
|
1074
1074
|
props: {
|
|
1075
1075
|
gateway: {
|
|
@@ -1086,47 +1086,47 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
setup(a) {
|
|
1089
|
-
var
|
|
1090
|
-
const
|
|
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
|
-
return (
|
|
1096
|
-
const
|
|
1097
|
-
return
|
|
1095
|
+
return (u, t) => {
|
|
1096
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1097
|
+
return g(), k(f, {
|
|
1098
1098
|
ref: "form",
|
|
1099
1099
|
class: "flex flex-col gap-16",
|
|
1100
|
-
onValidationSuccess:
|
|
1100
|
+
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
1101
1101
|
}, {
|
|
1102
1102
|
default: w(() => [
|
|
1103
|
-
n(
|
|
1104
|
-
modelValue:
|
|
1105
|
-
"onUpdate:modelValue":
|
|
1103
|
+
n(c, {
|
|
1104
|
+
modelValue: e.value.merchantId,
|
|
1105
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1106
1106
|
label: "Merchant ID",
|
|
1107
|
-
rules:
|
|
1107
|
+
rules: i(N)(i(D).string())
|
|
1108
1108
|
}, null, 8, ["modelValue", "rules"]),
|
|
1109
|
-
n(
|
|
1110
|
-
modelValue:
|
|
1111
|
-
"onUpdate:modelValue":
|
|
1109
|
+
n(c, {
|
|
1110
|
+
modelValue: e.value.verifyKey,
|
|
1111
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.verifyKey = m),
|
|
1112
1112
|
label: "Verify Key",
|
|
1113
|
-
rules:
|
|
1113
|
+
rules: i(N)(i(D).string())
|
|
1114
1114
|
}, null, 8, ["modelValue", "rules"]),
|
|
1115
|
-
n(
|
|
1116
|
-
modelValue:
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1115
|
+
n(c, {
|
|
1116
|
+
modelValue: e.value.secretKey,
|
|
1117
|
+
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.secretKey = m),
|
|
1118
1118
|
label: "Secret Key",
|
|
1119
|
-
rules:
|
|
1119
|
+
rules: i(N)(i(D).string())
|
|
1120
1120
|
}, null, 8, ["modelValue", "rules"]),
|
|
1121
|
-
|
|
1122
|
-
a.gateway ? (
|
|
1121
|
+
r("div", We, [
|
|
1122
|
+
a.gateway ? (g(), k(F, {
|
|
1123
1123
|
key: 0,
|
|
1124
1124
|
class: "flex-1",
|
|
1125
1125
|
variant: "secondary",
|
|
1126
1126
|
label: "Delete",
|
|
1127
1127
|
onclick: () => a.onDelete()
|
|
1128
|
-
}, null, 8, ["onclick"])) :
|
|
1129
|
-
n(
|
|
1128
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1129
|
+
n(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__ */ R({
|
|
1142
1142
|
__name: "MacauPassGateway",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
gateway: {
|
|
@@ -1155,61 +1155,61 @@ 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
|
|
1158
|
+
var v;
|
|
1159
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1160
1160
|
merchantId: "",
|
|
1161
1161
|
merchantName: "",
|
|
1162
1162
|
merchantCategoryCode: "",
|
|
1163
1163
|
storeID: "",
|
|
1164
1164
|
storeName: ""
|
|
1165
1165
|
});
|
|
1166
|
-
return (
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1166
|
+
return (u, t) => {
|
|
1167
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1168
|
+
return g(), k(f, {
|
|
1169
1169
|
ref: "form",
|
|
1170
1170
|
class: "flex flex-col gap-16",
|
|
1171
|
-
onValidationSuccess:
|
|
1171
|
+
onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
|
|
1172
1172
|
}, {
|
|
1173
1173
|
default: w(() => [
|
|
1174
|
-
n(
|
|
1175
|
-
modelValue:
|
|
1176
|
-
"onUpdate:modelValue":
|
|
1174
|
+
n(c, {
|
|
1175
|
+
modelValue: e.value.merchantId,
|
|
1176
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1177
1177
|
label: "Merchant ID",
|
|
1178
|
-
rules:
|
|
1178
|
+
rules: i(N)(i(D).string())
|
|
1179
1179
|
}, null, 8, ["modelValue", "rules"]),
|
|
1180
|
-
n(
|
|
1181
|
-
modelValue:
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1180
|
+
n(c, {
|
|
1181
|
+
modelValue: e.value.merchantName,
|
|
1182
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.merchantName = m),
|
|
1183
1183
|
label: "Merchant Name",
|
|
1184
|
-
rules:
|
|
1184
|
+
rules: i(N)(i(D).string())
|
|
1185
1185
|
}, null, 8, ["modelValue", "rules"]),
|
|
1186
|
-
n(
|
|
1187
|
-
modelValue:
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1186
|
+
n(c, {
|
|
1187
|
+
modelValue: e.value.merchantCategoryCode,
|
|
1188
|
+
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.merchantCategoryCode = m),
|
|
1189
1189
|
label: "Merchant MCC",
|
|
1190
|
-
rules:
|
|
1190
|
+
rules: i(N)(i(D).string())
|
|
1191
1191
|
}, null, 8, ["modelValue", "rules"]),
|
|
1192
|
-
n(
|
|
1193
|
-
modelValue:
|
|
1194
|
-
"onUpdate:modelValue":
|
|
1192
|
+
n(c, {
|
|
1193
|
+
modelValue: e.value.storeID,
|
|
1194
|
+
"onUpdate:modelValue": t[3] || (t[3] = (m) => e.value.storeID = m),
|
|
1195
1195
|
label: "Store ID",
|
|
1196
|
-
rules:
|
|
1196
|
+
rules: i(N)(i(D).string())
|
|
1197
1197
|
}, null, 8, ["modelValue", "rules"]),
|
|
1198
|
-
n(
|
|
1199
|
-
modelValue:
|
|
1200
|
-
"onUpdate:modelValue":
|
|
1198
|
+
n(c, {
|
|
1199
|
+
modelValue: e.value.storeName,
|
|
1200
|
+
"onUpdate:modelValue": t[4] || (t[4] = (m) => e.value.storeName = m),
|
|
1201
1201
|
label: "Store Name",
|
|
1202
|
-
rules:
|
|
1202
|
+
rules: i(N)(i(D).string())
|
|
1203
1203
|
}, null, 8, ["modelValue", "rules"]),
|
|
1204
|
-
|
|
1205
|
-
a.gateway ? (
|
|
1204
|
+
r("div", et, [
|
|
1205
|
+
a.gateway ? (g(), k(F, {
|
|
1206
1206
|
key: 0,
|
|
1207
1207
|
class: "flex-1",
|
|
1208
1208
|
variant: "secondary",
|
|
1209
1209
|
label: "Delete",
|
|
1210
1210
|
onclick: () => a.onDelete()
|
|
1211
|
-
}, null, 8, ["onclick"])) :
|
|
1212
|
-
n(
|
|
1211
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1212
|
+
n(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__ */ R({
|
|
1225
1225
|
__name: "DigioGateway",
|
|
1226
1226
|
props: {
|
|
1227
1227
|
gateway: {
|
|
@@ -1238,40 +1238,40 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1238
1238
|
}
|
|
1239
1239
|
},
|
|
1240
1240
|
setup(a) {
|
|
1241
|
-
var
|
|
1242
|
-
const
|
|
1241
|
+
var v;
|
|
1242
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1243
1243
|
merchantId: "",
|
|
1244
1244
|
cardMerchantId: ""
|
|
1245
1245
|
});
|
|
1246
|
-
return (
|
|
1247
|
-
const
|
|
1248
|
-
return
|
|
1246
|
+
return (u, t) => {
|
|
1247
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1248
|
+
return g(), k(f, {
|
|
1249
1249
|
ref: "form",
|
|
1250
1250
|
class: "flex flex-col gap-16",
|
|
1251
|
-
onValidationSuccess:
|
|
1251
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1252
1252
|
}, {
|
|
1253
1253
|
default: w(() => [
|
|
1254
|
-
n(
|
|
1255
|
-
modelValue:
|
|
1256
|
-
"onUpdate:modelValue":
|
|
1254
|
+
n(c, {
|
|
1255
|
+
modelValue: e.value.merchantId,
|
|
1256
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
|
|
1257
1257
|
label: "Merchant ID",
|
|
1258
|
-
rules:
|
|
1258
|
+
rules: i(N)(i(D).string())
|
|
1259
1259
|
}, null, 8, ["modelValue", "rules"]),
|
|
1260
|
-
n(
|
|
1261
|
-
modelValue:
|
|
1262
|
-
"onUpdate:modelValue":
|
|
1260
|
+
n(c, {
|
|
1261
|
+
modelValue: e.value.cardMerchantId,
|
|
1262
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.cardMerchantId = m),
|
|
1263
1263
|
label: "Card Merchant ID",
|
|
1264
|
-
rules:
|
|
1264
|
+
rules: i(N)(i(D).string())
|
|
1265
1265
|
}, null, 8, ["modelValue", "rules"]),
|
|
1266
|
-
|
|
1267
|
-
a.gateway ? (
|
|
1266
|
+
r("div", at, [
|
|
1267
|
+
a.gateway ? (g(), k(F, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
class: "flex-1",
|
|
1270
1270
|
variant: "secondary",
|
|
1271
1271
|
label: "Delete",
|
|
1272
1272
|
onclick: () => a.onDelete()
|
|
1273
|
-
}, null, 8, ["onclick"])) :
|
|
1274
|
-
n(
|
|
1273
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1274
|
+
n(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__ */ R({
|
|
1287
1287
|
__name: "AdyenGateway",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
gateway: {
|
|
@@ -1300,8 +1300,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1300
1300
|
}
|
|
1301
1301
|
},
|
|
1302
1302
|
setup(a) {
|
|
1303
|
-
var
|
|
1304
|
-
const
|
|
1303
|
+
var v;
|
|
1304
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1305
1305
|
merchantAccount: "",
|
|
1306
1306
|
username: "",
|
|
1307
1307
|
apiKey: "",
|
|
@@ -1309,58 +1309,58 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1309
1309
|
endpoint: "",
|
|
1310
1310
|
hmacKey: ""
|
|
1311
1311
|
});
|
|
1312
|
-
return (
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1312
|
+
return (u, t) => {
|
|
1313
|
+
const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
|
|
1314
|
+
return g(), k(f, {
|
|
1315
1315
|
ref: "form",
|
|
1316
1316
|
class: "flex flex-col gap-16",
|
|
1317
|
-
onValidationSuccess:
|
|
1317
|
+
onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
|
|
1318
1318
|
}, {
|
|
1319
1319
|
default: w(() => [
|
|
1320
|
-
n(
|
|
1321
|
-
modelValue:
|
|
1322
|
-
"onUpdate:modelValue":
|
|
1320
|
+
n(c, {
|
|
1321
|
+
modelValue: e.value.endpoint,
|
|
1322
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.endpoint = m),
|
|
1323
1323
|
label: "Endpoint",
|
|
1324
|
-
rules:
|
|
1324
|
+
rules: i(N)(i(D).string())
|
|
1325
1325
|
}, null, 8, ["modelValue", "rules"]),
|
|
1326
|
-
n(
|
|
1327
|
-
modelValue:
|
|
1328
|
-
"onUpdate:modelValue":
|
|
1326
|
+
n(c, {
|
|
1327
|
+
modelValue: e.value.merchantAccount,
|
|
1328
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.merchantAccount = m),
|
|
1329
1329
|
label: "Merchant Account",
|
|
1330
|
-
rules:
|
|
1330
|
+
rules: i(N)(i(D).string())
|
|
1331
1331
|
}, null, 8, ["modelValue", "rules"]),
|
|
1332
|
-
n(
|
|
1333
|
-
modelValue:
|
|
1334
|
-
"onUpdate:modelValue":
|
|
1332
|
+
n(c, {
|
|
1333
|
+
modelValue: e.value.username,
|
|
1334
|
+
"onUpdate:modelValue": t[2] || (t[2] = (m) => e.value.username = m),
|
|
1335
1335
|
label: "Username",
|
|
1336
|
-
rules:
|
|
1336
|
+
rules: i(N)(i(D).string())
|
|
1337
1337
|
}, null, 8, ["modelValue", "rules"]),
|
|
1338
|
-
n(
|
|
1339
|
-
modelValue:
|
|
1340
|
-
"onUpdate:modelValue":
|
|
1338
|
+
n(c, {
|
|
1339
|
+
modelValue: e.value.apiKey,
|
|
1340
|
+
"onUpdate:modelValue": t[3] || (t[3] = (m) => e.value.apiKey = m),
|
|
1341
1341
|
label: "API Key",
|
|
1342
|
-
rules:
|
|
1342
|
+
rules: i(N)(i(D).string())
|
|
1343
1343
|
}, null, 8, ["modelValue", "rules"]),
|
|
1344
|
-
n(
|
|
1345
|
-
modelValue:
|
|
1346
|
-
"onUpdate:modelValue":
|
|
1344
|
+
n(c, {
|
|
1345
|
+
modelValue: e.value.clientKey,
|
|
1346
|
+
"onUpdate:modelValue": t[4] || (t[4] = (m) => e.value.clientKey = m),
|
|
1347
1347
|
label: "Client Key",
|
|
1348
|
-
rules:
|
|
1348
|
+
rules: i(N)(i(D).string())
|
|
1349
1349
|
}, null, 8, ["modelValue", "rules"]),
|
|
1350
|
-
n(
|
|
1351
|
-
modelValue:
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1350
|
+
n(c, {
|
|
1351
|
+
modelValue: e.value.hmacKey,
|
|
1352
|
+
"onUpdate:modelValue": t[5] || (t[5] = (m) => e.value.hmacKey = m),
|
|
1353
1353
|
label: "HMac Key"
|
|
1354
1354
|
}, null, 8, ["modelValue"]),
|
|
1355
|
-
|
|
1356
|
-
a.gateway ? (
|
|
1355
|
+
r("div", ot, [
|
|
1356
|
+
a.gateway ? (g(), k(F, {
|
|
1357
1357
|
key: 0,
|
|
1358
1358
|
class: "flex-1",
|
|
1359
1359
|
variant: "secondary",
|
|
1360
1360
|
label: "Delete",
|
|
1361
1361
|
onclick: () => a.onDelete()
|
|
1362
|
-
}, null, 8, ["onclick"])) :
|
|
1363
|
-
n(
|
|
1362
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1363
|
+
n(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" }, rt = /* @__PURE__ */
|
|
1375
|
+
}), ut = { class: "flex mt-6 space-x-6" }, rt = /* @__PURE__ */ R({
|
|
1376
1376
|
__name: "KsherGateway",
|
|
1377
1377
|
props: {
|
|
1378
1378
|
gateway: {
|
|
@@ -1389,41 +1389,41 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1389
1389
|
}
|
|
1390
1390
|
},
|
|
1391
1391
|
setup(a) {
|
|
1392
|
-
var
|
|
1393
|
-
const
|
|
1392
|
+
var v;
|
|
1393
|
+
const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1394
1394
|
appId: "",
|
|
1395
1395
|
privateKey: ""
|
|
1396
1396
|
});
|
|
1397
|
-
return (
|
|
1398
|
-
const
|
|
1399
|
-
return
|
|
1397
|
+
return (u, t) => {
|
|
1398
|
+
const c = d("FmTextField"), F = d("FmTextarea"), f = d("FmButton"), m = d("FmForm");
|
|
1399
|
+
return g(), k(m, {
|
|
1400
1400
|
ref: "form",
|
|
1401
1401
|
class: "flex flex-col gap-16",
|
|
1402
|
-
onValidationSuccess:
|
|
1402
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
|
|
1403
1403
|
}, {
|
|
1404
1404
|
default: w(() => [
|
|
1405
|
-
n(
|
|
1406
|
-
modelValue:
|
|
1407
|
-
"onUpdate:modelValue":
|
|
1405
|
+
n(c, {
|
|
1406
|
+
modelValue: e.value.appId,
|
|
1407
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.appId = y),
|
|
1408
1408
|
label: "App ID",
|
|
1409
|
-
rules:
|
|
1409
|
+
rules: i(N)(i(D).string())
|
|
1410
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1411
|
-
n(
|
|
1412
|
-
modelValue:
|
|
1413
|
-
"onUpdate:modelValue":
|
|
1411
|
+
n(F, {
|
|
1412
|
+
modelValue: e.value.privateKey,
|
|
1413
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.privateKey = y),
|
|
1414
1414
|
label: "Private Key",
|
|
1415
1415
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
1416
|
-
rules:
|
|
1416
|
+
rules: i(N)(i(D).string())
|
|
1417
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1418
|
-
|
|
1419
|
-
a.gateway ? (
|
|
1418
|
+
r("div", ut, [
|
|
1419
|
+
a.gateway ? (g(), k(f, {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
class: "flex-1",
|
|
1422
1422
|
variant: "secondary",
|
|
1423
1423
|
label: "Delete",
|
|
1424
1424
|
onclick: () => a.onDelete()
|
|
1425
|
-
}, null, 8, ["onclick"])) :
|
|
1426
|
-
n(
|
|
1425
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1426
|
+
n(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
|
-
}), st = /* @__PURE__ */
|
|
1438
|
+
}), st = /* @__PURE__ */ R({
|
|
1439
1439
|
__name: "TyroGateway",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
gateway: {
|
|
@@ -1452,33 +1452,33 @@ 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
|
|
1456
|
-
const
|
|
1457
|
-
((
|
|
1455
|
+
var v;
|
|
1456
|
+
const e = U(
|
|
1457
|
+
((v = a.gateway) == null ? void 0 : v.config) || {
|
|
1458
1458
|
locationId: ""
|
|
1459
1459
|
}
|
|
1460
1460
|
);
|
|
1461
|
-
return (
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
1461
|
+
return (u, t) => {
|
|
1462
|
+
const c = d("FmTextField"), F = d("FmForm");
|
|
1463
|
+
return g(), k(F, {
|
|
1464
1464
|
ref: "form",
|
|
1465
1465
|
class: "flex flex-col gap-16",
|
|
1466
|
-
onValidationSuccess:
|
|
1466
|
+
onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
|
|
1467
1467
|
}, {
|
|
1468
1468
|
default: w(() => [
|
|
1469
|
-
n(
|
|
1470
|
-
modelValue:
|
|
1471
|
-
"onUpdate:modelValue":
|
|
1469
|
+
n(c, {
|
|
1470
|
+
modelValue: e.value.locationId,
|
|
1471
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.locationId = f),
|
|
1472
1472
|
label: "Location ID",
|
|
1473
1473
|
readonly: !0,
|
|
1474
|
-
rules:
|
|
1474
|
+
rules: i(N)(i(D).string())
|
|
1475
1475
|
}, null, 8, ["modelValue", "rules"])
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 512);
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
|
-
}), it = { class: "flex mt-6 space-x-6" }, ct = /* @__PURE__ */
|
|
1481
|
+
}), it = { class: "flex mt-6 space-x-6" }, ct = /* @__PURE__ */ R({
|
|
1482
1482
|
__name: "BeamGateway",
|
|
1483
1483
|
props: {
|
|
1484
1484
|
gateway: {
|
|
@@ -1495,47 +1495,47 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1495
1495
|
}
|
|
1496
1496
|
},
|
|
1497
1497
|
setup(a) {
|
|
1498
|
-
var
|
|
1499
|
-
const
|
|
1498
|
+
var v;
|
|
1499
|
+
const e = U({
|
|
1500
1500
|
merchantId: "",
|
|
1501
1501
|
apiKey: "",
|
|
1502
1502
|
isDirect: !1,
|
|
1503
|
-
...(
|
|
1503
|
+
...(v = a.gateway) == null ? void 0 : v.config
|
|
1504
1504
|
});
|
|
1505
|
-
return (
|
|
1506
|
-
const
|
|
1507
|
-
return
|
|
1505
|
+
return (u, t) => {
|
|
1506
|
+
const c = d("FmTextField"), F = d("FmSwitch"), f = d("FmButton"), m = d("FmForm");
|
|
1507
|
+
return g(), k(m, {
|
|
1508
1508
|
ref: "form",
|
|
1509
1509
|
class: "flex flex-col gap-16",
|
|
1510
|
-
onValidationSuccess:
|
|
1510
|
+
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
|
1511
1511
|
}, {
|
|
1512
1512
|
default: w(() => [
|
|
1513
|
-
n(
|
|
1514
|
-
modelValue:
|
|
1515
|
-
"onUpdate:modelValue":
|
|
1513
|
+
n(c, {
|
|
1514
|
+
modelValue: e.value.merchantId,
|
|
1515
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.merchantId = y),
|
|
1516
1516
|
label: "Merchant ID",
|
|
1517
|
-
rules:
|
|
1517
|
+
rules: i(N)(i(D).string())
|
|
1518
1518
|
}, null, 8, ["modelValue", "rules"]),
|
|
1519
|
-
n(
|
|
1520
|
-
modelValue:
|
|
1521
|
-
"onUpdate:modelValue":
|
|
1519
|
+
n(c, {
|
|
1520
|
+
modelValue: e.value.apiKey,
|
|
1521
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.apiKey = y),
|
|
1522
1522
|
label: "Api Key",
|
|
1523
|
-
rules:
|
|
1523
|
+
rules: i(N)(i(D).string())
|
|
1524
1524
|
}, null, 8, ["modelValue", "rules"]),
|
|
1525
|
-
n(
|
|
1526
|
-
modelValue:
|
|
1527
|
-
"onUpdate:modelValue":
|
|
1525
|
+
n(F, {
|
|
1526
|
+
modelValue: e.value.isDirect,
|
|
1527
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.value.isDirect = y),
|
|
1528
1528
|
label: "Is Direct"
|
|
1529
1529
|
}, null, 8, ["modelValue"]),
|
|
1530
|
-
|
|
1531
|
-
a.gateway ? (
|
|
1530
|
+
r("div", it, [
|
|
1531
|
+
a.gateway ? (g(), k(f, {
|
|
1532
1532
|
key: 0,
|
|
1533
1533
|
class: "flex-1",
|
|
1534
1534
|
variant: "secondary",
|
|
1535
1535
|
label: "Delete",
|
|
1536
1536
|
onclick: () => a.onDelete()
|
|
1537
|
-
}, null, 8, ["onclick"])) :
|
|
1538
|
-
n(
|
|
1537
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1538
|
+
n(f, {
|
|
1539
1539
|
type: "submit",
|
|
1540
1540
|
class: "flex-1",
|
|
1541
1541
|
variant: "primary",
|
|
@@ -1553,7 +1553,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1553
1553
|
}, dt = {
|
|
1554
1554
|
key: 1,
|
|
1555
1555
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1556
|
-
}, pt = /* @__PURE__ */
|
|
1556
|
+
}, pt = /* @__PURE__ */ R({
|
|
1557
1557
|
__name: "PaymentGateway",
|
|
1558
1558
|
props: {
|
|
1559
1559
|
payoutAccount: {
|
|
@@ -1562,9 +1562,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1562
1562
|
}
|
|
1563
1563
|
},
|
|
1564
1564
|
setup(a) {
|
|
1565
|
-
const
|
|
1565
|
+
const l = pe().currentCountry, e = l.value, v = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
|
|
1566
1566
|
gatewayTab: ""
|
|
1567
|
-
}),
|
|
1567
|
+
}), F = a, f = [
|
|
1568
1568
|
{
|
|
1569
1569
|
label: "Fiuu",
|
|
1570
1570
|
value: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1607,20 +1607,20 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1607
1607
|
render: ct,
|
|
1608
1608
|
region: [q.F_COUNTRY.enum.TH]
|
|
1609
1609
|
}
|
|
1610
|
-
], m =
|
|
1611
|
-
|
|
1612
|
-
),
|
|
1613
|
-
(S) => S.region.includes(
|
|
1610
|
+
], m = U(
|
|
1611
|
+
F.payoutAccount.gateways ?? []
|
|
1612
|
+
), y = L(() => f.find((S) => S.value === c.value)), s = L(() => f.filter(
|
|
1613
|
+
(S) => S.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1614
1614
|
));
|
|
1615
|
-
async function
|
|
1616
|
-
await
|
|
1615
|
+
async function b(S) {
|
|
1616
|
+
await t(async () => {
|
|
1617
1617
|
try {
|
|
1618
|
-
await Y.updateGateway(
|
|
1618
|
+
await Y.updateGateway(F.payoutAccount._id, S), v.open({
|
|
1619
1619
|
type: "success",
|
|
1620
1620
|
title: "Payout account gateways update succesfully"
|
|
1621
|
-
}),
|
|
1621
|
+
}), p.value = S.length === 0;
|
|
1622
1622
|
} catch (A) {
|
|
1623
|
-
|
|
1623
|
+
v.open({
|
|
1624
1624
|
type: "error",
|
|
1625
1625
|
title: "Error occurs when updating payout account gateways",
|
|
1626
1626
|
message: Z(A)
|
|
@@ -1628,66 +1628,66 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1628
1628
|
}
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
|
-
const
|
|
1631
|
+
const p = U((F.payoutAccount.gateways ?? []).length === 0), o = L(() => e !== "MY" || !p.value);
|
|
1632
1632
|
return (S, A) => {
|
|
1633
1633
|
var P;
|
|
1634
|
-
const
|
|
1635
|
-
return
|
|
1636
|
-
|
|
1637
|
-
|
|
1634
|
+
const C = d("FmCircularProgress"), I = d("FmSwitch"), T = d("FmTabs");
|
|
1635
|
+
return g(), G(j, null, [
|
|
1636
|
+
i(e) ? (g(), G("p", mt, [...A[2] || (A[2] = [
|
|
1637
|
+
r("b", null, "Note: ", -1),
|
|
1638
1638
|
_(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
|
|
1639
|
-
])])) :
|
|
1640
|
-
|
|
1641
|
-
n(
|
|
1642
|
-
])) : (
|
|
1643
|
-
|
|
1639
|
+
])])) : $("", !0),
|
|
1640
|
+
i(u) ? (g(), G("div", dt, [
|
|
1641
|
+
n(C, { size: "xxl" })
|
|
1642
|
+
])) : (g(), G(j, { key: 2 }, [
|
|
1643
|
+
i(e) === "MY" ? (g(), k(I, {
|
|
1644
1644
|
key: 0,
|
|
1645
|
-
modelValue:
|
|
1646
|
-
"onUpdate:modelValue": A[0] || (A[0] = (V) =>
|
|
1645
|
+
modelValue: p.value,
|
|
1646
|
+
"onUpdate:modelValue": A[0] || (A[0] = (V) => p.value = V),
|
|
1647
1647
|
style: { "padding-bottom": "12px" },
|
|
1648
1648
|
label: "Use FeedMe's Default Account?"
|
|
1649
|
-
}, null, 8, ["modelValue"])) :
|
|
1650
|
-
|
|
1649
|
+
}, null, 8, ["modelValue"])) : $("", !0),
|
|
1650
|
+
o.value ? (g(), k(T, {
|
|
1651
1651
|
key: 1,
|
|
1652
|
-
"model-value":
|
|
1653
|
-
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(
|
|
1652
|
+
"model-value": i(c),
|
|
1653
|
+
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(c) ? c.value = V : null),
|
|
1654
1654
|
class: "mb-6",
|
|
1655
|
-
items:
|
|
1656
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1657
|
-
|
|
1655
|
+
items: s.value
|
|
1656
|
+
}, null, 8, ["model-value", "items"])) : $("", !0),
|
|
1657
|
+
o.value && i(c) ? (g(), k(ue((P = y.value) == null ? void 0 : P.render), re(se({ key: 2 }, {
|
|
1658
1658
|
gateway: m.value.find(
|
|
1659
1659
|
(V) => {
|
|
1660
1660
|
var x;
|
|
1661
|
-
return V.paymentGateway === ((x =
|
|
1661
|
+
return V.paymentGateway === ((x = y.value) == null ? void 0 : x.value);
|
|
1662
1662
|
}
|
|
1663
1663
|
),
|
|
1664
1664
|
onDelete: async () => {
|
|
1665
1665
|
m.value = m.value.filter(
|
|
1666
1666
|
(V) => {
|
|
1667
1667
|
var x;
|
|
1668
|
-
return V.paymentGateway !== ((x =
|
|
1668
|
+
return V.paymentGateway !== ((x = y.value) == null ? void 0 : x.value);
|
|
1669
1669
|
}
|
|
1670
|
-
),
|
|
1670
|
+
), b(m.value);
|
|
1671
1671
|
},
|
|
1672
1672
|
onUpdate: (V) => {
|
|
1673
|
-
var
|
|
1673
|
+
var E;
|
|
1674
1674
|
let x = m.value.find(
|
|
1675
1675
|
(B) => {
|
|
1676
|
-
var
|
|
1677
|
-
return B.paymentGateway === ((
|
|
1676
|
+
var h;
|
|
1677
|
+
return B.paymentGateway === ((h = y.value) == null ? void 0 : h.value);
|
|
1678
1678
|
}
|
|
1679
1679
|
);
|
|
1680
1680
|
x ? x.config = V : m.value.push({
|
|
1681
|
-
paymentGateway: (
|
|
1681
|
+
paymentGateway: (E = y.value) == null ? void 0 : E.value,
|
|
1682
1682
|
config: V
|
|
1683
|
-
}),
|
|
1683
|
+
}), b(m.value);
|
|
1684
1684
|
}
|
|
1685
|
-
})), null, 16)) :
|
|
1685
|
+
})), null, 16)) : $("", !0)
|
|
1686
1686
|
], 64))
|
|
1687
1687
|
], 64);
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
|
-
}), yt = { class: "flex mt-6 space-x-6" }, bt = /* @__PURE__ */
|
|
1690
|
+
}), yt = { class: "flex mt-6 space-x-6" }, bt = /* @__PURE__ */ R({
|
|
1691
1691
|
__name: "GooglePayToken",
|
|
1692
1692
|
props: {
|
|
1693
1693
|
gateway: {
|
|
@@ -1704,15 +1704,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1704
1704
|
}
|
|
1705
1705
|
},
|
|
1706
1706
|
setup(a) {
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1709
|
-
type: "googlePay",
|
|
1710
|
-
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1711
|
-
config: {
|
|
1712
|
-
gateway: "revenuemonster",
|
|
1713
|
-
gatewayMerchantId: "BCR2DN4TVGD2BK2A"
|
|
1714
|
-
}
|
|
1715
|
-
} : {
|
|
1707
|
+
const e = U(
|
|
1708
|
+
a.gateway || {
|
|
1716
1709
|
type: "googlePay",
|
|
1717
1710
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1718
1711
|
config: {
|
|
@@ -1721,44 +1714,44 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1721
1714
|
}
|
|
1722
1715
|
}
|
|
1723
1716
|
);
|
|
1724
|
-
return (
|
|
1725
|
-
const
|
|
1726
|
-
return
|
|
1717
|
+
return (v, u) => {
|
|
1718
|
+
const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
|
|
1719
|
+
return g(), k(F, {
|
|
1727
1720
|
ref: "form",
|
|
1728
1721
|
class: "flex flex-col gap-16",
|
|
1729
|
-
onValidationSuccess:
|
|
1722
|
+
onValidationSuccess: u[3] || (u[3] = () => a.onUpdate(e.value))
|
|
1730
1723
|
}, {
|
|
1731
1724
|
default: w(() => [
|
|
1732
|
-
n(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue":
|
|
1725
|
+
n(t, {
|
|
1726
|
+
modelValue: e.value.gateway,
|
|
1727
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1735
1728
|
label: "Gateway",
|
|
1736
1729
|
disabled: !0,
|
|
1737
|
-
rules:
|
|
1730
|
+
rules: i(N)(i(D).string())
|
|
1738
1731
|
}, null, 8, ["modelValue", "rules"]),
|
|
1739
|
-
n(
|
|
1740
|
-
modelValue:
|
|
1741
|
-
"onUpdate:modelValue":
|
|
1732
|
+
n(t, {
|
|
1733
|
+
modelValue: e.value.config.gateway,
|
|
1734
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.gateway = f),
|
|
1742
1735
|
label: "Gateway ID",
|
|
1743
1736
|
disabled: !0,
|
|
1744
|
-
rules:
|
|
1737
|
+
rules: i(N)(i(D).string())
|
|
1745
1738
|
}, null, 8, ["modelValue", "rules"]),
|
|
1746
|
-
n(
|
|
1747
|
-
modelValue:
|
|
1748
|
-
"onUpdate:modelValue":
|
|
1739
|
+
n(t, {
|
|
1740
|
+
modelValue: e.value.config.gatewayMerchantId,
|
|
1741
|
+
"onUpdate:modelValue": u[2] || (u[2] = (f) => e.value.config.gatewayMerchantId = f),
|
|
1749
1742
|
label: "Gateway Merchant ID",
|
|
1750
1743
|
disabled: !0,
|
|
1751
|
-
rules:
|
|
1744
|
+
rules: i(N)(i(D).string())
|
|
1752
1745
|
}, null, 8, ["modelValue", "rules"]),
|
|
1753
|
-
|
|
1754
|
-
a.gateway ? (
|
|
1746
|
+
r("div", yt, [
|
|
1747
|
+
a.gateway ? (g(), k(c, {
|
|
1755
1748
|
key: 0,
|
|
1756
1749
|
class: "flex-1",
|
|
1757
1750
|
variant: "secondary",
|
|
1758
1751
|
label: "Delete",
|
|
1759
1752
|
onclick: () => a.onDelete()
|
|
1760
|
-
}, null, 8, ["onclick"])) :
|
|
1761
|
-
n(
|
|
1753
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1754
|
+
n(c, {
|
|
1762
1755
|
type: "submit",
|
|
1763
1756
|
class: "flex-1",
|
|
1764
1757
|
variant: "primary",
|
|
@@ -1770,7 +1763,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1770
1763
|
}, 512);
|
|
1771
1764
|
};
|
|
1772
1765
|
}
|
|
1773
|
-
}), vt = { class: "flex mt-6 space-x-6" }, ft = /* @__PURE__ */
|
|
1766
|
+
}), vt = { class: "flex mt-6 space-x-6" }, ft = /* @__PURE__ */ R({
|
|
1774
1767
|
__name: "ApplePayToken",
|
|
1775
1768
|
props: {
|
|
1776
1769
|
gateway: {
|
|
@@ -1787,7 +1780,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1787
1780
|
}
|
|
1788
1781
|
},
|
|
1789
1782
|
setup(a) {
|
|
1790
|
-
const
|
|
1783
|
+
const e = U(
|
|
1791
1784
|
a.gateway || {
|
|
1792
1785
|
type: "applePay",
|
|
1793
1786
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1796,37 +1789,37 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1796
1789
|
}
|
|
1797
1790
|
}
|
|
1798
1791
|
);
|
|
1799
|
-
return (
|
|
1800
|
-
const
|
|
1801
|
-
return
|
|
1792
|
+
return (v, u) => {
|
|
1793
|
+
const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
|
|
1794
|
+
return g(), k(F, {
|
|
1802
1795
|
ref: "form",
|
|
1803
1796
|
class: "flex flex-col gap-16",
|
|
1804
|
-
onValidationSuccess:
|
|
1797
|
+
onValidationSuccess: u[2] || (u[2] = () => a.onUpdate(e.value))
|
|
1805
1798
|
}, {
|
|
1806
1799
|
default: w(() => [
|
|
1807
|
-
n(
|
|
1808
|
-
modelValue:
|
|
1809
|
-
"onUpdate:modelValue":
|
|
1800
|
+
n(t, {
|
|
1801
|
+
modelValue: e.value.gateway,
|
|
1802
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
|
|
1810
1803
|
label: "Gateway",
|
|
1811
1804
|
disabled: !0,
|
|
1812
|
-
rules:
|
|
1805
|
+
rules: i(N)(i(D).string())
|
|
1813
1806
|
}, null, 8, ["modelValue", "rules"]),
|
|
1814
|
-
n(
|
|
1815
|
-
modelValue:
|
|
1816
|
-
"onUpdate:modelValue":
|
|
1807
|
+
n(t, {
|
|
1808
|
+
modelValue: e.value.config.merchantId,
|
|
1809
|
+
"onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.merchantId = f),
|
|
1817
1810
|
label: "Merchant ID",
|
|
1818
1811
|
disabled: !0,
|
|
1819
|
-
rules:
|
|
1812
|
+
rules: i(N)(i(D).string())
|
|
1820
1813
|
}, null, 8, ["modelValue", "rules"]),
|
|
1821
|
-
|
|
1822
|
-
a.gateway ? (
|
|
1814
|
+
r("div", vt, [
|
|
1815
|
+
a.gateway ? (g(), k(c, {
|
|
1823
1816
|
key: 0,
|
|
1824
1817
|
class: "flex-1",
|
|
1825
1818
|
variant: "secondary",
|
|
1826
1819
|
label: "Delete",
|
|
1827
1820
|
onclick: () => a.onDelete()
|
|
1828
|
-
}, null, 8, ["onclick"])) :
|
|
1829
|
-
n(
|
|
1821
|
+
}, null, 8, ["onclick"])) : $("", !0),
|
|
1822
|
+
n(c, {
|
|
1830
1823
|
type: "submit",
|
|
1831
1824
|
class: "flex-1",
|
|
1832
1825
|
variant: "primary",
|
|
@@ -1841,7 +1834,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1841
1834
|
}), gt = {
|
|
1842
1835
|
key: 0,
|
|
1843
1836
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1844
|
-
}, Ft = /* @__PURE__ */
|
|
1837
|
+
}, Ft = /* @__PURE__ */ R({
|
|
1845
1838
|
__name: "TokenGateway",
|
|
1846
1839
|
props: {
|
|
1847
1840
|
payoutAccount: {
|
|
@@ -1850,9 +1843,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1850
1843
|
}
|
|
1851
1844
|
},
|
|
1852
1845
|
setup(a) {
|
|
1853
|
-
const
|
|
1846
|
+
const l = pe().currentCountry, e = W(), { isLoading: v, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
|
|
1854
1847
|
tokenTab: ""
|
|
1855
|
-
}),
|
|
1848
|
+
}), c = a, F = [
|
|
1856
1849
|
{
|
|
1857
1850
|
label: "Google Pay",
|
|
1858
1851
|
value: "googlePay",
|
|
@@ -1865,71 +1858,71 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1865
1858
|
value: "applePay",
|
|
1866
1859
|
icon: "iOS",
|
|
1867
1860
|
render: ft,
|
|
1868
|
-
region: [q.F_COUNTRY.enum.SG]
|
|
1861
|
+
region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
|
|
1869
1862
|
}
|
|
1870
|
-
],
|
|
1871
|
-
(
|
|
1863
|
+
], f = U(c.payoutAccount.tokens ?? []), m = L(() => F.find((b) => b.value === t.value)), y = L(() => F.filter(
|
|
1864
|
+
(b) => b.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
|
|
1872
1865
|
));
|
|
1873
|
-
async function
|
|
1874
|
-
await
|
|
1866
|
+
async function s(b) {
|
|
1867
|
+
await u(async () => {
|
|
1875
1868
|
try {
|
|
1876
|
-
await Y.updateTokens(
|
|
1869
|
+
await Y.updateTokens(c.payoutAccount._id, b), e.open({
|
|
1877
1870
|
type: "success",
|
|
1878
1871
|
title: "Payout account tokens gateway update succesfully"
|
|
1879
1872
|
});
|
|
1880
|
-
} catch (
|
|
1881
|
-
|
|
1873
|
+
} catch (p) {
|
|
1874
|
+
e.open({
|
|
1882
1875
|
type: "error",
|
|
1883
1876
|
title: "Error occurs when updating payout account tokens",
|
|
1884
|
-
message: Z(
|
|
1877
|
+
message: Z(p)
|
|
1885
1878
|
});
|
|
1886
1879
|
}
|
|
1887
1880
|
});
|
|
1888
1881
|
}
|
|
1889
|
-
return (
|
|
1882
|
+
return (b, p) => {
|
|
1890
1883
|
var A;
|
|
1891
|
-
const
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1894
|
-
|
|
1884
|
+
const o = d("FmCircularProgress"), S = d("FmTabs");
|
|
1885
|
+
return g(), G(j, null, [
|
|
1886
|
+
p[1] || (p[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1887
|
+
r("b", null, "Note: "),
|
|
1895
1888
|
_(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1889
|
+
r("br"),
|
|
1890
|
+
r("br"),
|
|
1891
|
+
r("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
|
|
1892
|
+
r("br")
|
|
1900
1893
|
], -1)),
|
|
1901
|
-
|
|
1902
|
-
n(
|
|
1903
|
-
])) : (
|
|
1894
|
+
i(v) ? (g(), G("div", gt, [
|
|
1895
|
+
n(o, { size: "xxl" })
|
|
1896
|
+
])) : (g(), k(S, {
|
|
1904
1897
|
key: 1,
|
|
1905
|
-
"model-value":
|
|
1906
|
-
"onUpdate:modelValue":
|
|
1898
|
+
"model-value": i(t),
|
|
1899
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => ae(t) ? t.value = C : null),
|
|
1907
1900
|
class: "mb-6 mt-6",
|
|
1908
|
-
items:
|
|
1901
|
+
items: y.value
|
|
1909
1902
|
}, null, 8, ["model-value", "items"])),
|
|
1910
|
-
|
|
1911
|
-
gateway:
|
|
1903
|
+
i(t) ? (g(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
|
|
1904
|
+
gateway: f.value.find((C) => {
|
|
1912
1905
|
var I;
|
|
1913
|
-
return
|
|
1906
|
+
return C.type === ((I = m.value) == null ? void 0 : I.value);
|
|
1914
1907
|
}),
|
|
1915
1908
|
onDelete: async () => {
|
|
1916
|
-
|
|
1909
|
+
f.value = f.value.filter((C) => {
|
|
1917
1910
|
var I;
|
|
1918
|
-
return
|
|
1919
|
-
}),
|
|
1911
|
+
return C.type !== ((I = m.value) == null ? void 0 : I.value);
|
|
1912
|
+
}), s(f.value);
|
|
1920
1913
|
},
|
|
1921
|
-
onUpdate: (
|
|
1922
|
-
let I =
|
|
1914
|
+
onUpdate: (C) => {
|
|
1915
|
+
let I = f.value.find((T) => {
|
|
1923
1916
|
var P;
|
|
1924
|
-
return
|
|
1917
|
+
return T.type === ((P = m.value) == null ? void 0 : P.value);
|
|
1925
1918
|
});
|
|
1926
|
-
I ? I.config =
|
|
1919
|
+
I ? I.config = C : f.value.push(C), s(f.value);
|
|
1927
1920
|
}
|
|
1928
|
-
})), null, 16)) :
|
|
1921
|
+
})), null, 16)) : $("", !0)
|
|
1929
1922
|
], 64);
|
|
1930
1923
|
};
|
|
1931
1924
|
}
|
|
1932
|
-
}), Mt = /* @__PURE__ */
|
|
1925
|
+
}), Mt = /* @__PURE__ */ R({
|
|
1933
1926
|
__name: "PayoutAccountSetting",
|
|
1934
1927
|
props: {
|
|
1935
1928
|
accountId: {
|
|
@@ -1938,27 +1931,27 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1938
1931
|
}
|
|
1939
1932
|
},
|
|
1940
1933
|
setup(a) {
|
|
1941
|
-
const
|
|
1934
|
+
const l = a, { tab: e } = oe({
|
|
1942
1935
|
tab: "information"
|
|
1943
|
-
}), { isLoading:
|
|
1944
|
-
async function
|
|
1936
|
+
}), { isLoading: v, startAsyncCall: u } = ne(!0), t = ve(), c = U();
|
|
1937
|
+
async function F(s) {
|
|
1945
1938
|
await Y.updateById(
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
),
|
|
1939
|
+
l.accountId,
|
|
1940
|
+
s
|
|
1941
|
+
), c.value = await Y.readById(l.accountId);
|
|
1949
1942
|
}
|
|
1950
|
-
const
|
|
1943
|
+
const f = [
|
|
1951
1944
|
{
|
|
1952
1945
|
label: "Information",
|
|
1953
1946
|
value: "information",
|
|
1954
1947
|
icon: "overview",
|
|
1955
|
-
render:
|
|
1948
|
+
render: Ce
|
|
1956
1949
|
},
|
|
1957
1950
|
{
|
|
1958
1951
|
label: "Settlement",
|
|
1959
1952
|
value: "settlement",
|
|
1960
1953
|
icon: "payments",
|
|
1961
|
-
render:
|
|
1954
|
+
render: $e
|
|
1962
1955
|
},
|
|
1963
1956
|
{
|
|
1964
1957
|
label: "MDR Status",
|
|
@@ -1986,34 +1979,34 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1986
1979
|
}
|
|
1987
1980
|
];
|
|
1988
1981
|
function m() {
|
|
1989
|
-
|
|
1990
|
-
|
|
1982
|
+
u(async () => {
|
|
1983
|
+
c.value = await Y.readById(l.accountId);
|
|
1991
1984
|
});
|
|
1992
1985
|
}
|
|
1993
|
-
|
|
1994
|
-
const
|
|
1995
|
-
const
|
|
1996
|
-
return
|
|
1986
|
+
me(m);
|
|
1987
|
+
const y = L(() => {
|
|
1988
|
+
const s = f.reduce((b, p) => b || (p.children ? p.children.find((o) => o.value === e.value) || null : p.value === e.value ? p : null), null);
|
|
1989
|
+
return s == null ? void 0 : s.render;
|
|
1997
1990
|
});
|
|
1998
|
-
return (
|
|
1999
|
-
var
|
|
2000
|
-
const
|
|
2001
|
-
return
|
|
2002
|
-
title: `Payout Account (${(
|
|
2003
|
-
loading:
|
|
2004
|
-
onBack:
|
|
1991
|
+
return (s, b) => {
|
|
1992
|
+
var o;
|
|
1993
|
+
const p = d("FmTabs");
|
|
1994
|
+
return g(), k(be, {
|
|
1995
|
+
title: `Payout Account (${(o = c.value) == null ? void 0 : o._id})`,
|
|
1996
|
+
loading: i(v),
|
|
1997
|
+
onBack: i(t).back
|
|
2005
1998
|
}, {
|
|
2006
1999
|
default: w(() => [
|
|
2007
|
-
n(
|
|
2008
|
-
"model-value":
|
|
2009
|
-
"onUpdate:modelValue":
|
|
2000
|
+
n(p, {
|
|
2001
|
+
"model-value": i(e),
|
|
2002
|
+
"onUpdate:modelValue": b[0] || (b[0] = (S) => ae(e) ? e.value = S : null),
|
|
2010
2003
|
class: "mb-6",
|
|
2011
|
-
items:
|
|
2004
|
+
items: f
|
|
2012
2005
|
}, null, 8, ["model-value"]),
|
|
2013
|
-
|
|
2014
|
-
payoutAccount:
|
|
2015
|
-
onUpdate:
|
|
2016
|
-
})), null, 16)) :
|
|
2006
|
+
i(e) ? (g(), k(ue(y.value), re(se({ key: 0 }, {
|
|
2007
|
+
payoutAccount: c.value,
|
|
2008
|
+
onUpdate: F
|
|
2009
|
+
})), null, 16)) : $("", !0)
|
|
2017
2010
|
]),
|
|
2018
2011
|
_: 1
|
|
2019
2012
|
}, 8, ["title", "loading", "onBack"]);
|