@feedmepos/mf-payment 1.10.5-dev → 1.10.6
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-BIxmXhVi.js → Actions.vue_vue_type_script_setup_true_lang-CqJd1X0X.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BOuAR3Jk.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Eu7ASW2o.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CVWH4h9m.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CRCrBun9.js} +2 -2
- package/dist/{Chargeback-D-SaWEZ3.js → Chargeback-CMd35ws-.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B1VBR6hm.js} +1 -1
- package/dist/{ExternalTerminal-DSFdyxgo.js → ExternalTerminal--aTxkXzh.js} +6 -6
- package/dist/{OnboardForm-rjhOG28l.js → OnboardForm-C3h1KO1O.js} +87 -86
- package/dist/{OnboardForm-BW_d_NI5.js → OnboardForm-Cv-b3Skb.js} +6 -6
- package/dist/{OnboardSubmission-CvSo8EfH.js → OnboardSubmission-Ck3nezzM.js} +6 -6
- package/dist/{OnboardSubmission-b73A_sV3.js → OnboardSubmission-CxeCT_G3.js} +3 -3
- package/dist/{PayoutAccount-q8erqoPY.js → PayoutAccount-BGoBqwop.js} +7 -7
- package/dist/{PayoutAccount-DaFv-aML.js → PayoutAccount-BYYsU904.js} +5 -5
- package/dist/{PayoutAccountSetting-DxxdGfgG.js → PayoutAccountSetting-Cb3qV2mD.js} +722 -715
- package/dist/{Restaurant-CV8QkUbQ.js → Restaurant-Fzvk7vXR.js} +4 -4
- package/dist/{RestaurantSetting-CTlqvfdy.js → RestaurantSetting-DbUoc8oN.js} +3 -3
- package/dist/{Settlement-iRQ6XDJ4.js → Settlement-BRIrYWpz.js} +4 -4
- package/dist/{Settlement-Cl9Gg13I.js → Settlement-W01KavYf.js} +3 -3
- package/dist/{SettlementTransactions-CHUT3xnm.js → SettlementTransactions-DapiPPJF.js} +5 -5
- package/dist/{SettlementTransactions-blKyTkGq.js → SettlementTransactions-mwlfQemB.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js → Status.vue_vue_type_script_setup_true_lang-Ds_0bxtO.js} +1 -1
- package/dist/{Terminal-BXvAm6w3.js → Terminal-83TwJ7ie.js} +6 -6
- package/dist/{TerminalSetting-C4o5IOpK.js → TerminalSetting-DqQoSYrZ.js} +6 -6
- package/dist/{Transaction-BIeW9fTK.js → Transaction-DHs4jxYL.js} +10 -10
- package/dist/{Transaction-DntiUDtA.js → Transaction-cq5rmTfT.js} +11 -11
- package/dist/{TransactionOld-BLrS-7GS.js → TransactionOld-DaheibSS.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-CjQ2GMrD.js → TransactionStatus.vue_vue_type_script_setup_true_lang-BoPXEI9q.js} +1 -1
- package/dist/{app-DyJjl-JW.js → app-DUV0ashg.js} +353 -362
- package/dist/app.js +1 -1
- package/dist/{assets-Dli_wsgY.js → assets-BGnM7nin.js} +1 -1
- package/dist/{grafana-B_QqlaQQ.js → grafana-BoNOlJ9-.js} +1 -1
- package/dist/{index-DjlqF6I0.js → index-BaEy-M8O.js} +1 -1
- package/dist/{index-CqWAZhwv.js → index-BboUkfWO.js} +2 -2
- package/dist/{index-B8bREy8p.js → index-C15EF9Ej.js} +1 -1
- package/dist/{index-8GWhPszq.js → index-ChsCKiRb.js} +1 -1
- package/dist/{index-CbTXFbRi.js → index-D8-ut4k_.js} +2 -1
- package/dist/{index-C1n_Ih97.js → index-DJzgbPBh.js} +1 -1
- package/dist/{index-Cvrxt3gd.js → index-DQ9q6Ng_.js} +1 -1
- package/dist/{index-CUDgQRLT.js → index-DVQwRCIo.js} +1 -1
- package/dist/{index-eEK4FJWw.js → index-Dp9alEOk.js} +1 -1
- package/dist/{index-BAEwRvM-.js → index-cp0D_L8y.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BBqaMh-p.js → index.vue_vue_type_script_setup_true_lang-D1bbu1bC.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-DW1TUY3U.js → onboard-submission-CHqAHLM5.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-BEdIU70O.js → payout-account-DLL_RAnN.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +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/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
|
@@ -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 h, ref as C, resolveComponent as p, openBlock as F, createElementBlock as G, Fragment as j, createElementVNode as u, createVNode as n, withCtx as w, createTextVNode as _, toDisplayString as O, unref as s, createBlock as k, createCommentVNode as E, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as de, resolveDynamicComponent as ue, normalizeProps as re, mergeProps as se } from "vue";
|
|
2
|
+
import { p as Y } from "./index-Dp9alEOk.js";
|
|
3
|
+
import { u as ne, e as q } from "./index-D8-ut4k_.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-BaEy-M8O.js";
|
|
7
|
+
import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-B1VBR6hm.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-DJzgbPBh.js";
|
|
10
|
+
import { useSnackbar as W, useDialogChild as ge, useDialog as pe, 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-DLL_RAnN.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 ie } 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" }, Ce = { class: "flex gap-4 mt-4" }, Ue = /* @__PURE__ */ h({
|
|
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 o = a, t = W(), d = C(!1), c = C(!1), e = C(), i = C(""), f = (y) => {
|
|
30
|
+
const l = new FileReader();
|
|
31
31
|
return new Promise((S) => {
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
return S((
|
|
35
|
-
},
|
|
32
|
+
l.onload = (A) => {
|
|
33
|
+
var U;
|
|
34
|
+
return S((U = A.target) == null ? void 0 : U.result);
|
|
35
|
+
}, l.readAsDataURL(y);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
|
|
37
|
+
}, g = async (y) => {
|
|
38
|
+
e.value = y, i.value = y ? await f(y) : "";
|
|
39
39
|
}, m = () => {
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
40
|
+
c.value = !1, e.value = void 0, i.value = "";
|
|
41
|
+
}, b = () => {
|
|
42
|
+
e.value = void 0, i.value = "";
|
|
43
|
+
}, r = async (y) => {
|
|
44
44
|
var S;
|
|
45
|
-
const
|
|
46
|
-
return ((S =
|
|
47
|
-
`restaurant/${
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
const l = o.payoutAccount.businessId || o.payoutAccount.store.id;
|
|
46
|
+
return ((S = o.payoutAccount.store) == null ? void 0 : S.event) === "ORDERING" ? await te.adminUpload(
|
|
47
|
+
`restaurant/${o.payoutAccount.store.id}/exterior/photo`,
|
|
48
|
+
y,
|
|
49
|
+
l,
|
|
50
|
+
o.payoutAccount.store.id
|
|
51
51
|
) : await te.adminUpload(
|
|
52
|
-
`business/${
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
`business/${l}/exterior/photo`,
|
|
53
|
+
y,
|
|
54
|
+
l,
|
|
55
55
|
void 0
|
|
56
56
|
);
|
|
57
|
-
},
|
|
58
|
-
if (
|
|
57
|
+
}, v = async () => {
|
|
58
|
+
if (e.value)
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
...
|
|
60
|
+
d.value = !0;
|
|
61
|
+
const y = await r(e.value), l = {
|
|
62
|
+
...o.payoutAccount,
|
|
63
63
|
store: {
|
|
64
|
-
...
|
|
65
|
-
exteriorPhoto:
|
|
64
|
+
...o.payoutAccount.store,
|
|
65
|
+
exteriorPhoto: y
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
await
|
|
69
|
-
} catch (
|
|
70
|
-
|
|
68
|
+
await o.onUpdate(l), c.value = !1, e.value = void 0, i.value = "", t.open({ type: "success", title: "Exterior photo updated successfully" });
|
|
69
|
+
} catch (y) {
|
|
70
|
+
t.open({ type: "error", title: "Failed to update exterior photo", message: Z(y) });
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
d.value = !1;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
return (
|
|
76
|
-
var P, V, x,
|
|
77
|
-
const S =
|
|
78
|
-
return
|
|
79
|
-
|
|
80
|
-
n(
|
|
75
|
+
return (y, l) => {
|
|
76
|
+
var P, V, x, $;
|
|
77
|
+
const S = p("FmCardHeader"), A = p("FmCardSection"), U = p("FmCard"), I = p("FmButton"), R = p("FmDropField");
|
|
78
|
+
return F(), G(j, null, [
|
|
79
|
+
u("div", Ve, [
|
|
80
|
+
n(U, {
|
|
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, T, K, H, z;
|
|
96
96
|
return [
|
|
97
|
-
|
|
98
|
-
_(": " + O((
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
l[1] || (l[1] = u("b", null, "For", -1)),
|
|
98
|
+
_(": " + O((T = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : T.event) + " ", 1),
|
|
99
|
+
l[2] || (l[2] = u("br", null, null, -1)),
|
|
100
|
+
l[3] || (l[3] = u("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
|
+
l[4] || (l[4] = u("br", null, null, -1)),
|
|
103
|
+
l[5] || (l[5] = u("b", null, "Business", -1)),
|
|
104
104
|
_(": " + O((z = a.payoutAccount) == null ? void 0 : z.businessId), 1),
|
|
105
|
-
|
|
105
|
+
l[6] || (l[6] = u("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(U, {
|
|
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, T, K, H, z, M, ce, me;
|
|
132
132
|
return [
|
|
133
|
-
|
|
134
|
-
_(": " + O((K = (
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
l[7] || (l[7] = u("b", null, "Email", -1)),
|
|
134
|
+
_(": " + O((K = (T = (B = a.payoutAccount) == null ? void 0 : B.store) == null ? void 0 : T.keyPerson) == null ? void 0 : K.email) + " ", 1),
|
|
135
|
+
l[8] || (l[8] = u("br", null, null, -1)),
|
|
136
|
+
l[9] || (l[9] = u("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
|
+
l[10] || (l[10] = u("br", null, null, -1)),
|
|
139
|
+
l[11] || (l[11] = u("b", null, "Phone", -1)),
|
|
140
|
+
_(": " + O((me = (ce = a.payoutAccount) == null ? void 0 : ce.store.keyPerson) == null ? void 0 : me.phone), 1),
|
|
141
|
+
l[12] || (l[12] = u("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
|
+
u("div", Ae, [
|
|
154
|
+
n(U, {
|
|
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, T, K;
|
|
170
170
|
return [
|
|
171
|
-
|
|
172
|
-
_(": " + O((B = a.payoutAccount) != null && B.submissionDate ?
|
|
171
|
+
l[13] || (l[13] = u("b", null, "Submission Date", -1)),
|
|
172
|
+
_(": " + O((B = a.payoutAccount) != null && B.submissionDate ? s(fe)(a.payoutAccount.submissionDate).format(
|
|
173
173
|
"YYYY-MM-DD HH:mm:ss"
|
|
174
174
|
) : "—"), 1),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
_(": " + O(((
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
l[14] || (l[14] = u("br", null, null, -1)),
|
|
176
|
+
l[15] || (l[15] = u("b", null, "Status By", -1)),
|
|
177
|
+
_(": " + O(((T = a.payoutAccount) == null ? void 0 : T.statusBy) ?? "—"), 1),
|
|
178
|
+
l[16] || (l[16] = u("br", null, null, -1)),
|
|
179
|
+
l[17] || (l[17] = u("b", null, "Status Reason", -1)),
|
|
180
180
|
_(": " + O(((K = a.payoutAccount) == null ? void 0 : K.statusReason) ?? "—"), 1),
|
|
181
|
-
|
|
181
|
+
l[18] || (l[18] = u("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
|
+
u("div", Se, [
|
|
194
|
+
l[19] || (l[19] = u("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
|
|
195
|
+
u("div", Ne, [
|
|
196
|
+
c.value ? (F(), k(I, {
|
|
197
197
|
key: 0,
|
|
198
198
|
variant: "tertiary",
|
|
199
199
|
label: "Cancel",
|
|
200
200
|
onClick: m
|
|
201
|
-
})) :
|
|
202
|
-
|
|
201
|
+
})) : E("", !0),
|
|
202
|
+
c.value ? E("", !0) : (F(), k(I, {
|
|
203
203
|
key: 1,
|
|
204
204
|
variant: "primary",
|
|
205
205
|
label: "Edit Exterior Photo",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: l[0] || (l[0] = (B) => c.value = !0)
|
|
207
207
|
}))
|
|
208
208
|
])
|
|
209
209
|
]),
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
c.value ? (F(), G(j, { key: 0 }, [
|
|
211
|
+
i.value ? (F(), G(j, { key: 0 }, [
|
|
212
212
|
n(Q, {
|
|
213
|
-
document:
|
|
213
|
+
document: i.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
|
+
u("div", Ce, [
|
|
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: b
|
|
224
224
|
}),
|
|
225
225
|
n(I, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
label: "Save",
|
|
228
228
|
size: "md",
|
|
229
|
-
loading:
|
|
230
|
-
onClick:
|
|
229
|
+
loading: d.value,
|
|
230
|
+
onClick: v
|
|
231
231
|
}, null, 8, ["loading"])
|
|
232
232
|
])
|
|
233
|
-
], 64)) : (
|
|
233
|
+
], 64)) : (F(), k(R, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "h-[300px] w-full",
|
|
236
236
|
accept: ".png,.jpg,.jpeg,.webp,.pdf",
|
|
237
|
-
onFileUpload:
|
|
237
|
+
onFileUpload: g
|
|
238
238
|
}))
|
|
239
|
-
], 64)) : (
|
|
239
|
+
], 64)) : (F(), k(Q, {
|
|
240
240
|
key: 1,
|
|
241
241
|
document: a.payoutAccount.store.exteriorPhoto,
|
|
242
242
|
"business-id": a.payoutAccount.businessId,
|
|
243
|
-
"restaurant-id": ((
|
|
243
|
+
"restaurant-id": (($ = (x = a.payoutAccount) == null ? void 0 : x.store) == null ? void 0 : $.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
|
|
244
244
|
}, null, 8, ["document", "business-id", "restaurant-id"]))
|
|
245
245
|
], 64);
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
}), Ie = { class: "flex flex-col gap-8" }, De = { class: "flex flex-col gap-8" },
|
|
248
|
+
}), Ie = { class: "flex flex-col gap-8" }, De = { class: "flex flex-col gap-8" }, Re = { class: "flex justify-end mb-2" }, Te = /* @__PURE__ */ h({
|
|
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 o = a, { emitAction: t, emitData: d } = ge(), c = ye({
|
|
270
|
+
companyName: o.initialValue.companyName,
|
|
271
|
+
regNo: o.initialValue.regNo,
|
|
272
|
+
bankName: o.initialValue.bankName,
|
|
273
|
+
bankHolderName: o.initialValue.bankHolderName,
|
|
274
|
+
bankAccountNumber: o.initialValue.bankAccountNumber,
|
|
275
|
+
ssm: o.initialValue.ssm,
|
|
276
|
+
bankStatement: o.initialValue.bankStatement
|
|
277
|
+
}), e = C(), i = C(), f = C(c.ssm ?? ""), g = C(c.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), b = X().trim().min(1, "Registration number is required"), r = X().trim().min(1, "Bank name is required"), v = X().trim().min(1, "Bank holder name is required"), y = X().trim().min(1, "Bank account number is required"), l = ke({
|
|
278
278
|
companyName: m,
|
|
279
|
-
regNo:
|
|
280
|
-
bankName:
|
|
281
|
-
bankHolderName:
|
|
282
|
-
bankAccountNumber:
|
|
279
|
+
regNo: b,
|
|
280
|
+
bankName: r,
|
|
281
|
+
bankHolderName: v,
|
|
282
|
+
bankAccountNumber: y
|
|
283
283
|
}), S = () => {
|
|
284
|
-
const V =
|
|
285
|
-
V.success && (
|
|
284
|
+
const V = l.safeParse(c);
|
|
285
|
+
V.success && (d({
|
|
286
286
|
...V.data,
|
|
287
|
-
ssm:
|
|
288
|
-
bankStatement:
|
|
289
|
-
newSSM:
|
|
290
|
-
newBankStatement:
|
|
291
|
-
}),
|
|
287
|
+
ssm: c.ssm,
|
|
288
|
+
bankStatement: c.bankStatement,
|
|
289
|
+
newSSM: e.value,
|
|
290
|
+
newBankStatement: i.value
|
|
291
|
+
}), t("primary"));
|
|
292
292
|
};
|
|
293
293
|
async function A(V) {
|
|
294
294
|
const x = new FileReader();
|
|
295
|
-
return new Promise((
|
|
295
|
+
return new Promise(($) => {
|
|
296
296
|
x.onload = (B) => {
|
|
297
|
-
var
|
|
298
|
-
|
|
297
|
+
var T;
|
|
298
|
+
$((T = B.target) == null ? void 0 : T.result);
|
|
299
299
|
}, x.readAsDataURL(V);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
|
|
302
|
+
const U = async (V) => {
|
|
303
|
+
e.value = V, f.value = V ? await A(V) : "";
|
|
304
304
|
}, I = async (V) => {
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
|
|
305
|
+
i.value = V, g.value = V ? await A(V) : "";
|
|
306
|
+
}, R = () => {
|
|
307
|
+
e.value = void 0, f.value = "";
|
|
308
308
|
}, P = () => {
|
|
309
|
-
|
|
309
|
+
i.value = void 0, g.value = "";
|
|
310
310
|
};
|
|
311
311
|
return (V, x) => {
|
|
312
|
-
const
|
|
313
|
-
return
|
|
312
|
+
const $ = p("FmTextField"), B = p("FmSelect"), T = p("FmButton"), K = p("FmFormGroup"), H = p("FmDropField"), z = p("FmForm");
|
|
313
|
+
return F(), k(z, {
|
|
314
314
|
class: "flex flex-col gap-16",
|
|
315
315
|
onValidationSuccess: S
|
|
316
316
|
}, {
|
|
317
317
|
default: w(() => [
|
|
318
|
-
x[9] || (x[9] =
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
x[9] || (x[9] = u("div", { class: "flex items-center my-2" }, [
|
|
319
|
+
u("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
320
|
+
u("span", { class: "text-left mx-6 text-gray-500" }, "Account"),
|
|
321
|
+
u("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($, {
|
|
324
|
+
modelValue: c.regNo,
|
|
325
|
+
"onUpdate:modelValue": x[0] || (x[0] = (M) => c.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: s(N)(s(b)),
|
|
330
330
|
autofocus: ""
|
|
331
331
|
}, null, 8, ["modelValue", "rules"]),
|
|
332
|
-
n(
|
|
333
|
-
modelValue:
|
|
334
|
-
"onUpdate:modelValue": x[1] || (x[1] = (M) =>
|
|
332
|
+
n($, {
|
|
333
|
+
modelValue: c.companyName,
|
|
334
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => c.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: s(N)(s(m))
|
|
339
339
|
}, null, 8, ["modelValue", "rules"]),
|
|
340
|
-
x[10] || (x[10] =
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
x[10] || (x[10] = u("div", { class: "flex items-center my-2" }, [
|
|
341
|
+
u("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
342
|
+
u("span", { class: "text-left mx-6 text-gray-500" }, "Bank"),
|
|
343
|
+
u("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: c.bankName,
|
|
347
|
+
"onUpdate:modelValue": x[2] || (x[2] = (M) => c.bankName = M),
|
|
348
348
|
label: "Bank",
|
|
349
349
|
"label-mark": "required",
|
|
350
|
-
items:
|
|
351
|
-
rules:
|
|
350
|
+
items: o.bankNameOptions,
|
|
351
|
+
rules: s(N)(s(r))
|
|
352
352
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
353
|
-
n(
|
|
354
|
-
modelValue:
|
|
355
|
-
"onUpdate:modelValue": x[3] || (x[3] = (M) =>
|
|
353
|
+
n($, {
|
|
354
|
+
modelValue: c.bankHolderName,
|
|
355
|
+
"onUpdate:modelValue": x[3] || (x[3] = (M) => c.bankHolderName = M),
|
|
356
356
|
label: "Bank Holder",
|
|
357
357
|
"label-mark": "required",
|
|
358
|
-
rules:
|
|
358
|
+
rules: s(N)(s(v))
|
|
359
359
|
}, null, 8, ["modelValue", "rules"]),
|
|
360
|
-
n(
|
|
361
|
-
modelValue:
|
|
362
|
-
"onUpdate:modelValue": x[4] || (x[4] = (M) =>
|
|
360
|
+
n($, {
|
|
361
|
+
modelValue: c.bankAccountNumber,
|
|
362
|
+
"onUpdate:modelValue": x[4] || (x[4] = (M) => c.bankAccountNumber = M),
|
|
363
363
|
label: "Bank Account Number",
|
|
364
364
|
"label-mark": "required",
|
|
365
365
|
type: "number",
|
|
366
|
-
rules:
|
|
366
|
+
rules: s(N)(s(y))
|
|
367
367
|
}, null, 8, ["modelValue", "rules"]),
|
|
368
|
-
x[11] || (x[11] =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
x[11] || (x[11] = u("div", { class: "flex items-center my-2" }, [
|
|
369
|
+
u("hr", { class: "w-[80px] border-t border-gray-300" }),
|
|
370
|
+
u("span", { class: "text-left mx-6 text-gray-500" }, "Document"),
|
|
371
|
+
u("hr", { class: "flex-grow border-t border-gray-300" })
|
|
372
372
|
], -1)),
|
|
373
|
-
|
|
374
|
-
x[7] || (x[7] =
|
|
375
|
-
|
|
373
|
+
u("div", Ie, [
|
|
374
|
+
x[7] || (x[7] = u("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
|
|
375
|
+
f.value ? (F(), 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(T, {
|
|
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: R
|
|
404
404
|
})
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["modelValue"])) : (
|
|
407
|
+
}, 8, ["modelValue"])) : (F(), k(H, {
|
|
408
408
|
key: 1,
|
|
409
409
|
accept: ".pdf",
|
|
410
|
-
onFileUpload:
|
|
410
|
+
onFileUpload: U
|
|
411
411
|
}))
|
|
412
412
|
]),
|
|
413
|
-
|
|
414
|
-
x[8] || (x[8] =
|
|
415
|
-
|
|
413
|
+
u("div", De, [
|
|
414
|
+
x[8] || (x[8] = u("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
|
|
415
|
+
g.value ? (F(), k(K, {
|
|
416
416
|
key: 0,
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": x[6] || (x[6] = (M) =>
|
|
417
|
+
modelValue: g.value,
|
|
418
|
+
"onUpdate:modelValue": x[6] || (x[6] = (M) => g.value = M),
|
|
419
419
|
label: "Bank Statement"
|
|
420
420
|
}, {
|
|
421
421
|
default: w(() => [
|
|
422
422
|
n(Q, {
|
|
423
|
-
document:
|
|
423
|
+
document: g.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(T, {
|
|
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"])) : (F(), k(H, {
|
|
448
448
|
key: 1,
|
|
449
449
|
accept: ".pdf",
|
|
450
450
|
onFileUpload: I
|
|
451
451
|
}))
|
|
452
452
|
]),
|
|
453
|
-
|
|
454
|
-
n(
|
|
453
|
+
u("div", Re, [
|
|
454
|
+
n(T, {
|
|
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
|
+
}), he = { class: "flex justify-end mb-6" }, Pe = { class: "flex gap-16 mb-6" }, Me = { class: "flex gap-16" }, Be = { class: "flex-1" }, _e = { class: "flex-1" }, Ee = /* @__PURE__ */ h({
|
|
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 o = a, t = C(!1), d = pe(), c = W(), e = xe.bankNameOptions(), i = () => {
|
|
479
|
+
var b, r, v, y, l, S, A, U, I, R;
|
|
480
480
|
return {
|
|
481
|
-
companyName: ((
|
|
482
|
-
regNo: ((
|
|
483
|
-
bankName: ((
|
|
484
|
-
bankHolderName: ((S = (
|
|
485
|
-
bankAccountNumber: ((
|
|
486
|
-
ssm: ((I =
|
|
487
|
-
bankStatement: ((
|
|
481
|
+
companyName: ((b = o.payoutAccount.store) == null ? void 0 : b.companyName) ?? "",
|
|
482
|
+
regNo: ((r = o.payoutAccount.store) == null ? void 0 : r.regNo) ?? "",
|
|
483
|
+
bankName: ((y = (v = o.payoutAccount.store) == null ? void 0 : v.bank) == null ? void 0 : y.name) ?? "",
|
|
484
|
+
bankHolderName: ((S = (l = o.payoutAccount.store) == null ? void 0 : l.bank) == null ? void 0 : S.holderName) ?? "",
|
|
485
|
+
bankAccountNumber: ((U = (A = o.payoutAccount.store) == null ? void 0 : A.bank) == null ? void 0 : U.accountNumber) ?? "",
|
|
486
|
+
ssm: ((I = o.payoutAccount.store) == null ? void 0 : I.ssm) ?? "",
|
|
487
|
+
bankStatement: ((R = o.payoutAccount.store) == null ? void 0 : R.bankStatement) ?? ""
|
|
488
488
|
};
|
|
489
|
-
},
|
|
490
|
-
var
|
|
491
|
-
const
|
|
492
|
-
if (((
|
|
489
|
+
}, f = async (b, r) => {
|
|
490
|
+
var l;
|
|
491
|
+
const v = (/* @__PURE__ */ new Date()).toISOString();
|
|
492
|
+
if (((l = o.payoutAccount.store) == null ? void 0 : l.event) === "ORDERING")
|
|
493
493
|
return await te.adminUpload(
|
|
494
|
-
`restaurant/${
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
`restaurant/${o.payoutAccount.store.id}/documents/${b}/${v}.pdf`,
|
|
495
|
+
r,
|
|
496
|
+
o.payoutAccount.businessId,
|
|
497
|
+
o.payoutAccount.store.id
|
|
498
498
|
);
|
|
499
|
-
const
|
|
499
|
+
const y = o.payoutAccount.businessId || o.payoutAccount.store.id;
|
|
500
500
|
return await te.adminUpload(
|
|
501
|
-
`business/${
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
`business/${y}/documents/${b}/${v}.pdf`,
|
|
502
|
+
r,
|
|
503
|
+
y,
|
|
504
504
|
void 0
|
|
505
505
|
);
|
|
506
|
-
},
|
|
507
|
-
if (!
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
506
|
+
}, g = async (b) => {
|
|
507
|
+
if (!o.payoutAccount.store) return;
|
|
508
|
+
let r = o.payoutAccount.store.ssm;
|
|
509
|
+
b.newSSM && (r = await f("ssm", b.newSSM));
|
|
510
|
+
let v = o.payoutAccount.store.bankStatement;
|
|
511
|
+
b.newBankStatement && (v = await f(
|
|
512
512
|
"bankStatement",
|
|
513
|
-
|
|
513
|
+
b.newBankStatement
|
|
514
514
|
));
|
|
515
|
-
const
|
|
516
|
-
...
|
|
515
|
+
const y = {
|
|
516
|
+
...o.payoutAccount,
|
|
517
517
|
store: {
|
|
518
|
-
...
|
|
519
|
-
companyName:
|
|
520
|
-
regNo:
|
|
518
|
+
...o.payoutAccount.store,
|
|
519
|
+
companyName: b.companyName,
|
|
520
|
+
regNo: b.regNo,
|
|
521
521
|
bank: {
|
|
522
|
-
...
|
|
523
|
-
name:
|
|
524
|
-
holderName:
|
|
525
|
-
accountNumber:
|
|
522
|
+
...o.payoutAccount.store.bank ?? {},
|
|
523
|
+
name: b.bankName,
|
|
524
|
+
holderName: b.bankHolderName,
|
|
525
|
+
accountNumber: b.bankAccountNumber
|
|
526
526
|
},
|
|
527
|
-
ssm:
|
|
528
|
-
bankStatement:
|
|
527
|
+
ssm: r,
|
|
528
|
+
bankStatement: v
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
t.value = !0, await o.onUpdate(y), c.open({
|
|
533
533
|
type: "success",
|
|
534
534
|
title: "Settlement info updated successfully"
|
|
535
|
-
}),
|
|
536
|
-
} catch (
|
|
537
|
-
|
|
535
|
+
}), d.close();
|
|
536
|
+
} catch (l) {
|
|
537
|
+
c.open({
|
|
538
538
|
type: "error",
|
|
539
539
|
title: "Failed to update settlement info",
|
|
540
|
-
message: Z(
|
|
540
|
+
message: Z(l)
|
|
541
541
|
});
|
|
542
542
|
} finally {
|
|
543
|
-
|
|
543
|
+
t.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}, m = () => {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var b;
|
|
547
|
+
d.close(), d.open({
|
|
548
548
|
title: "Edit Settlement Info",
|
|
549
549
|
closeButton: !0,
|
|
550
550
|
overlay: !0,
|
|
551
|
-
contentComponent:
|
|
551
|
+
contentComponent: Te,
|
|
552
552
|
contentComponentProps: {
|
|
553
|
-
initialValue:
|
|
554
|
-
bankNameOptions:
|
|
555
|
-
businessId:
|
|
556
|
-
restaurantId: ((
|
|
553
|
+
initialValue: i(),
|
|
554
|
+
bankNameOptions: e,
|
|
555
|
+
businessId: o.payoutAccount.businessId,
|
|
556
|
+
restaurantId: ((b = o.payoutAccount.store) == null ? void 0 : b.event) === "ORDERING" ? o.payoutAccount.store.id : void 0
|
|
557
557
|
}
|
|
558
|
-
}).onPrimary((
|
|
559
|
-
|
|
558
|
+
}).onPrimary((r) => {
|
|
559
|
+
g(r);
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
|
-
return (
|
|
563
|
-
var A,
|
|
564
|
-
const
|
|
565
|
-
return
|
|
566
|
-
|
|
567
|
-
n(
|
|
562
|
+
return (b, r) => {
|
|
563
|
+
var A, U, I, R;
|
|
564
|
+
const v = p("FmButton"), y = p("FmCardHeader"), l = p("FmCardSection"), S = p("FmCard");
|
|
565
|
+
return F(), G(j, null, [
|
|
566
|
+
u("div", he, [
|
|
567
|
+
n(v, {
|
|
568
568
|
variant: "primary",
|
|
569
569
|
label: "Edit Settlement Info",
|
|
570
|
-
loading:
|
|
570
|
+
loading: t.value,
|
|
571
571
|
onclick: m
|
|
572
572
|
}, null, 8, ["loading"])
|
|
573
573
|
]),
|
|
574
|
-
|
|
574
|
+
u("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(l, { class: "flex flex-col gap-16 justify-between" }, {
|
|
582
582
|
default: w(() => [
|
|
583
|
-
n(
|
|
583
|
+
n(y, {
|
|
584
584
|
class: "p-0",
|
|
585
585
|
title: "Company Info",
|
|
586
586
|
subtitle: ""
|
|
587
587
|
}),
|
|
588
|
-
n(
|
|
588
|
+
n(l, { class: "p-0" }, {
|
|
589
589
|
default: w(() => {
|
|
590
590
|
var P, V;
|
|
591
591
|
return [
|
|
592
|
-
|
|
592
|
+
r[0] || (r[0] = u("b", null, "Name", -1)),
|
|
593
593
|
_(": " + O((P = a.payoutAccount) == null ? void 0 : P.store.companyName), 1),
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
r[1] || (r[1] = u("br", null, null, -1)),
|
|
595
|
+
r[2] || (r[2] = u("b", null, "Registration Number", -1)),
|
|
596
596
|
_(": " + O((V = a.payoutAccount) == null ? void 0 : V.store.regNo), 1),
|
|
597
|
-
|
|
597
|
+
r[3] || (r[3] = u("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(l, { class: "flex flex-col gap-16 justify-between" }, {
|
|
615
615
|
default: w(() => [
|
|
616
|
-
n(
|
|
616
|
+
n(y, {
|
|
617
617
|
class: "p-0",
|
|
618
618
|
title: "Bank Info",
|
|
619
619
|
subtitle: ""
|
|
620
620
|
}),
|
|
621
|
-
n(
|
|
621
|
+
n(l, { class: "p-0" }, {
|
|
622
622
|
default: w(() => {
|
|
623
|
-
var P, V, x,
|
|
623
|
+
var P, V, x, $, B, T;
|
|
624
624
|
return [
|
|
625
|
-
|
|
625
|
+
r[4] || (r[4] = u("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
|
+
r[5] || (r[5] = u("br", null, null, -1)),
|
|
628
|
+
r[6] || (r[6] = u("b", null, "Name", -1)),
|
|
629
|
+
_(": " + O(($ = (x = a.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : $.holderName), 1),
|
|
630
|
+
r[7] || (r[7] = u("br", null, null, -1)),
|
|
631
|
+
r[8] || (r[8] = u("b", null, "Number", -1)),
|
|
632
|
+
_(": " + O((T = (B = a.payoutAccount) == null ? void 0 : B.store.bank) == null ? void 0 : T.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
|
+
u("div", Me, [
|
|
645
|
+
u("div", Be, [
|
|
646
|
+
r[9] || (r[9] = u("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": ((U = (A = a.payoutAccount) == null ? void 0 : A.store) == null ? void 0 : U.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
|
+
u("div", _e, [
|
|
663
|
+
r[10] || (r[10] = u("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": ((R = (I = a.payoutAccount) == null ? void 0 : I.store) == null ? void 0 : R.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
|
+
}), $e = /* @__PURE__ */ h({
|
|
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 o = a, t = C(o.data.toString());
|
|
691
|
+
return le(t, (d) => {
|
|
692
|
+
o.onChange(parseFloat(d));
|
|
693
|
+
}), (d, c) => {
|
|
694
|
+
const e = p("FmTextField");
|
|
695
|
+
return F(), k(e, {
|
|
696
696
|
inputmode: "decimal",
|
|
697
|
-
modelValue:
|
|
698
|
-
"onUpdate:modelValue":
|
|
697
|
+
modelValue: t.value,
|
|
698
|
+
"onUpdate:modelValue": c[0] || (c[0] = (i) => t.value = i)
|
|
699
699
|
}, {
|
|
700
|
-
append: w(() => [...
|
|
700
|
+
append: w(() => [...c[1] || (c[1] = [
|
|
701
701
|
_("%", -1)
|
|
702
702
|
])]),
|
|
703
703
|
_: 1
|
|
704
704
|
}, 8, ["modelValue"]);
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
}), qe = /* @__PURE__ */
|
|
707
|
+
}), qe = /* @__PURE__ */ h({
|
|
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 o = a, t = C(o.data.toString());
|
|
715
|
+
return le(t, (d) => {
|
|
716
|
+
o.onChange(parseInt(d));
|
|
717
|
+
}), (d, c) => {
|
|
718
|
+
const e = p("FmTextField");
|
|
719
|
+
return F(), k(e, {
|
|
720
720
|
inputmode: "numeric",
|
|
721
|
-
modelValue:
|
|
722
|
-
"onUpdate:modelValue":
|
|
721
|
+
modelValue: t.value,
|
|
722
|
+
"onUpdate:modelValue": c[0] || (c[0] = (i) => t.value = i)
|
|
723
723
|
}, null, 8, ["modelValue"]);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
}), Oe = /* @__PURE__ */
|
|
726
|
+
}), Oe = /* @__PURE__ */ h({
|
|
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 o = a, t = C(o.data.toString());
|
|
734
|
+
return le(t, (d) => {
|
|
735
|
+
o.onChange(parseFloat(d));
|
|
736
|
+
}), (d, c) => {
|
|
737
|
+
const e = p("FmTextField");
|
|
738
|
+
return F(), k(e, {
|
|
739
739
|
inputmode: "numeric",
|
|
740
|
-
modelValue:
|
|
741
|
-
"onUpdate:modelValue":
|
|
740
|
+
modelValue: t.value,
|
|
741
|
+
"onUpdate:modelValue": c[0] || (c[0] = (i) => t.value = i)
|
|
742
742
|
}, {
|
|
743
|
-
prepend: w(() => [...
|
|
743
|
+
prepend: w(() => [...c[1] || (c[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__ */ h({
|
|
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 o = a, t = C(!1), d = W(), c = pe(), e = async (r) => {
|
|
764
764
|
try {
|
|
765
|
-
|
|
765
|
+
t.value = !0, await o.onUpdate(r), d.open({
|
|
766
766
|
type: "success",
|
|
767
767
|
title: "Payout account update succesfully"
|
|
768
768
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
|
|
769
|
+
} catch (v) {
|
|
770
|
+
d.open({
|
|
771
771
|
type: "error",
|
|
772
772
|
title: "Error occurs when updating payout account",
|
|
773
|
-
message: Z(
|
|
773
|
+
message: Z(v)
|
|
774
774
|
});
|
|
775
775
|
} finally {
|
|
776
|
-
|
|
776
|
+
t.value = !1;
|
|
777
777
|
}
|
|
778
|
-
},
|
|
779
|
-
|
|
778
|
+
}, i = async () => {
|
|
779
|
+
c.close(), c.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((r) => {
|
|
820
|
+
o.payoutAccount.enable = !1, o.payoutAccount.status = "REJECTED", o.payoutAccount.statusReason = r, e(o.payoutAccount), c.close();
|
|
821
821
|
});
|
|
822
|
-
}, { search:
|
|
822
|
+
}, { search: f } = oe({
|
|
823
823
|
search: ""
|
|
824
|
-
}),
|
|
825
|
-
const { ssm:
|
|
826
|
-
return
|
|
827
|
-
}), m =
|
|
824
|
+
}), g = L(() => {
|
|
825
|
+
const { ssm: r, bank: v, bankStatement: y } = o.payoutAccount.store;
|
|
826
|
+
return r && v && v.name && v.accountNumber && v.holderName && y;
|
|
827
|
+
}), m = C(""), b = [
|
|
828
828
|
{
|
|
829
829
|
header: () => "Payment Method",
|
|
830
830
|
accessorKey: "issuer",
|
|
831
|
-
cell: (
|
|
831
|
+
cell: (r) => `${r.row.original.issuer} (${r.row.original.variant})`
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
834
|
header: () => "Rate",
|
|
835
835
|
accessorKey: "rate",
|
|
836
|
-
cell: ({ row:
|
|
837
|
-
let
|
|
838
|
-
return
|
|
839
|
-
data:
|
|
840
|
-
onChange: (
|
|
841
|
-
const
|
|
842
|
-
|
|
836
|
+
cell: ({ row: r }) => {
|
|
837
|
+
let v = 0;
|
|
838
|
+
return r.original.rate && (v = r.original.rate.amount / Math.pow(10, r.original.rate.precision)), J($e, {
|
|
839
|
+
data: v,
|
|
840
|
+
onChange: (y) => {
|
|
841
|
+
const l = o.payoutAccount.methods.at(r.index);
|
|
842
|
+
l.rate || (l.rate = {
|
|
843
843
|
amount: 0,
|
|
844
844
|
precision: 4
|
|
845
|
-
}),
|
|
845
|
+
}), l.rate.amount = y * Math.pow(10, l.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: r }) => {
|
|
854
|
+
let v = 0;
|
|
855
|
+
return r.original.minimumFee && (v = r.original.minimumFee.amount / Math.pow(10, r.original.minimumFee.precision)), J(Oe, {
|
|
856
|
+
data: v,
|
|
857
|
+
onChange: (y) => {
|
|
858
|
+
const l = o.payoutAccount.methods.at(r.index);
|
|
859
|
+
l.minimumFee || (l.minimumFee = {
|
|
860
860
|
amount: 0,
|
|
861
861
|
precision: 2
|
|
862
|
-
}),
|
|
862
|
+
}), l.minimumFee.amount = y * Math.pow(10, l.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: r }) => J(qe, {
|
|
871
|
+
data: r.original.tPlus ?? 0,
|
|
872
|
+
onChange: (v) => {
|
|
873
|
+
const y = o.payoutAccount.methods.at(r.index);
|
|
874
|
+
y.tPlus = v;
|
|
875
875
|
}
|
|
876
876
|
})
|
|
877
877
|
}
|
|
878
878
|
];
|
|
879
|
-
return (
|
|
880
|
-
const
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
n(
|
|
879
|
+
return (r, v) => {
|
|
880
|
+
const y = p("FmRadio"), l = p("FmRadioGroup"), S = p("FmSwitch"), A = p("FmSearch"), U = p("FmTable"), I = p("FmButton");
|
|
881
|
+
return F(), G(j, null, [
|
|
882
|
+
u("div", Ge, [
|
|
883
|
+
u("div", Ke, [
|
|
884
|
+
n(l, {
|
|
885
885
|
modelValue: a.payoutAccount.status,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": v[0] || (v[0] = (R) => a.payoutAccount.status = R),
|
|
887
887
|
label: "Account Status"
|
|
888
888
|
}, {
|
|
889
889
|
default: w(() => [
|
|
890
|
-
n(
|
|
890
|
+
n(y, {
|
|
891
891
|
value: "PENDING",
|
|
892
892
|
label: "Pending"
|
|
893
893
|
}),
|
|
894
|
-
n(
|
|
894
|
+
n(y, {
|
|
895
895
|
value: "APPROVED",
|
|
896
896
|
label: "Approved"
|
|
897
897
|
}),
|
|
898
|
-
n(
|
|
898
|
+
n(y, {
|
|
899
899
|
value: "REJECTED",
|
|
900
900
|
label: "Rejected",
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: i
|
|
902
902
|
})
|
|
903
903
|
]),
|
|
904
904
|
_: 1
|
|
905
905
|
}, 8, ["modelValue"])
|
|
906
906
|
]),
|
|
907
|
-
|
|
907
|
+
u("div", je, [
|
|
908
908
|
n(S, {
|
|
909
909
|
modelValue: a.payoutAccount.enable,
|
|
910
|
-
"onUpdate:modelValue":
|
|
911
|
-
disabled: !
|
|
910
|
+
"onUpdate:modelValue": v[1] || (v[1] = (R) => a.payoutAccount.enable = R),
|
|
911
|
+
disabled: !g.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 ? (F(), G(j, { key: 0 }, [
|
|
918
|
+
u("div", Ye, [
|
|
919
|
+
u("div", He, [
|
|
920
920
|
n(A, {
|
|
921
|
-
modelValue:
|
|
922
|
-
"onUpdate:modelValue":
|
|
921
|
+
modelValue: s(f),
|
|
922
|
+
"onUpdate:modelValue": v[2] || (v[2] = (R) => ae(f) ? f.value = R : null),
|
|
923
923
|
placeholder: "Search Method ..."
|
|
924
924
|
}, null, 8, ["modelValue"])
|
|
925
925
|
])
|
|
926
926
|
]),
|
|
927
|
-
n(
|
|
927
|
+
n(U, {
|
|
928
928
|
class: "mt-6",
|
|
929
929
|
modelValue: m.value,
|
|
930
|
-
"onUpdate:modelValue":
|
|
930
|
+
"onUpdate:modelValue": v[3] || (v[3] = (R) => m.value = R),
|
|
931
931
|
"shrink-at": !1,
|
|
932
|
-
"search-value":
|
|
932
|
+
"search-value": s(f),
|
|
933
933
|
"row-data": a.payoutAccount.methods,
|
|
934
|
-
"column-defs":
|
|
934
|
+
"column-defs": b
|
|
935
935
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
|
936
|
-
], 64)) :
|
|
936
|
+
], 64)) : E("", !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: t.value,
|
|
942
|
+
onclick: () => e(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__ */ h({
|
|
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: o }) {
|
|
951
|
+
const t = o;
|
|
952
|
+
return (d, c) => {
|
|
953
|
+
const e = p("FmButton");
|
|
954
|
+
return F(), G("div", Le, [
|
|
955
|
+
n(e, {
|
|
956
956
|
variant: "plain",
|
|
957
957
|
"prepend-icon": "delete",
|
|
958
|
-
onClick:
|
|
959
|
-
|
|
958
|
+
onClick: c[0] || (c[0] = (i) => {
|
|
959
|
+
i.stopPropagation(), t("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__ */ h({
|
|
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 o = W(), t = a, { isLoading: d, startAsyncCall: c } = ne(), e = C([]);
|
|
975
|
+
function i() {
|
|
976
|
+
c(async () => {
|
|
977
|
+
e.value = await Y.getChannels(t.payoutAccount._id);
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
|
-
|
|
981
|
-
function
|
|
982
|
-
|
|
980
|
+
de(i);
|
|
981
|
+
function f() {
|
|
982
|
+
c(async () => {
|
|
983
983
|
try {
|
|
984
|
-
await Y.updateChannels(
|
|
984
|
+
await Y.updateChannels(t.payoutAccount._id, e.value), o.open({
|
|
985
985
|
type: "success",
|
|
986
986
|
title: "Payout account channels update succesfully"
|
|
987
987
|
});
|
|
988
|
-
} catch (
|
|
989
|
-
|
|
988
|
+
} catch (b) {
|
|
989
|
+
o.open({
|
|
990
990
|
type: "error",
|
|
991
991
|
title: "Error occurs when updating payout account channels",
|
|
992
|
-
message: Z(
|
|
992
|
+
message: Z(b)
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
|
|
997
|
+
function g() {
|
|
998
|
+
c(async () => {
|
|
999
999
|
try {
|
|
1000
|
-
await Y.resetChannels(
|
|
1000
|
+
await Y.resetChannels(t.payoutAccount._id), e.value = await Y.getChannels(t.payoutAccount._id), o.open({
|
|
1001
1001
|
type: "success",
|
|
1002
1002
|
title: "Payout account channels reset succesfully"
|
|
1003
1003
|
});
|
|
1004
|
-
} catch (
|
|
1005
|
-
|
|
1004
|
+
} catch (b) {
|
|
1005
|
+
o.open({
|
|
1006
1006
|
type: "error",
|
|
1007
1007
|
title: "Error occurs when reset payout account channels",
|
|
1008
|
-
message: Z(
|
|
1008
|
+
message: Z(b)
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
@@ -1022,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: b }) => J("img", { src: b.original.icon, width: 32, height: 32 })
|
|
1026
1026
|
},
|
|
1027
1027
|
{
|
|
1028
1028
|
header: () => "Label",
|
|
1029
1029
|
accessorKey: "label",
|
|
1030
|
-
cell: ({ row:
|
|
1031
|
-
modelValue:
|
|
1032
|
-
"onUpdate:modelValue": (
|
|
1030
|
+
cell: ({ row: b }) => J(Fe.FmTextField, {
|
|
1031
|
+
modelValue: b.original.label,
|
|
1032
|
+
"onUpdate:modelValue": (r) => b.original.label = r
|
|
1033
1033
|
})
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
id: "actions",
|
|
1037
1037
|
header: () => "Actions",
|
|
1038
|
-
cell: ({ row:
|
|
1039
|
-
onDelete: () =>
|
|
1038
|
+
cell: ({ row: b }) => J(Ze, {
|
|
1039
|
+
onDelete: () => e.value.splice(b.index, 1)
|
|
1040
1040
|
})
|
|
1041
1041
|
}
|
|
1042
1042
|
];
|
|
1043
|
-
return (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
n(
|
|
1043
|
+
return (b, r) => {
|
|
1044
|
+
const v = p("FmButton"), y = p("FmTable");
|
|
1045
|
+
return F(), G(j, null, [
|
|
1046
|
+
u("div", Je, [
|
|
1047
|
+
n(v, {
|
|
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: g
|
|
1054
1054
|
}),
|
|
1055
|
-
n(
|
|
1055
|
+
n(v, {
|
|
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(y, {
|
|
1064
|
+
loading: s(d),
|
|
1065
|
+
"row-data": e.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__ */ h({
|
|
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 d;
|
|
1090
|
+
const t = C(((d = a.gateway) == null ? void 0 : d.config) || {
|
|
1091
1091
|
merchantId: "",
|
|
1092
1092
|
verifyKey: "",
|
|
1093
1093
|
secretKey: ""
|
|
1094
1094
|
});
|
|
1095
|
-
return (
|
|
1096
|
-
const
|
|
1097
|
-
return
|
|
1095
|
+
return (c, e) => {
|
|
1096
|
+
const i = p("FmTextField"), f = p("FmButton"), g = p("FmForm");
|
|
1097
|
+
return F(), k(g, {
|
|
1098
1098
|
ref: "form",
|
|
1099
1099
|
class: "flex flex-col gap-16",
|
|
1100
|
-
onValidationSuccess:
|
|
1100
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(t.value))
|
|
1101
1101
|
}, {
|
|
1102
1102
|
default: w(() => [
|
|
1103
|
-
n(
|
|
1104
|
-
modelValue:
|
|
1105
|
-
"onUpdate:modelValue":
|
|
1103
|
+
n(i, {
|
|
1104
|
+
modelValue: t.value.merchantId,
|
|
1105
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.merchantId = m),
|
|
1106
1106
|
label: "Merchant ID",
|
|
1107
|
-
rules:
|
|
1107
|
+
rules: s(N)(s(D).string())
|
|
1108
1108
|
}, null, 8, ["modelValue", "rules"]),
|
|
1109
|
-
n(
|
|
1110
|
-
modelValue:
|
|
1111
|
-
"onUpdate:modelValue":
|
|
1109
|
+
n(i, {
|
|
1110
|
+
modelValue: t.value.verifyKey,
|
|
1111
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.verifyKey = m),
|
|
1112
1112
|
label: "Verify Key",
|
|
1113
|
-
rules:
|
|
1113
|
+
rules: s(N)(s(D).string())
|
|
1114
1114
|
}, null, 8, ["modelValue", "rules"]),
|
|
1115
|
-
n(
|
|
1116
|
-
modelValue:
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1115
|
+
n(i, {
|
|
1116
|
+
modelValue: t.value.secretKey,
|
|
1117
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.secretKey = m),
|
|
1118
1118
|
label: "Secret Key",
|
|
1119
|
-
rules:
|
|
1119
|
+
rules: s(N)(s(D).string())
|
|
1120
1120
|
}, null, 8, ["modelValue", "rules"]),
|
|
1121
|
-
|
|
1122
|
-
a.gateway ? (
|
|
1121
|
+
u("div", We, [
|
|
1122
|
+
a.gateway ? (F(), 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"])) : E("", !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__ */ h({
|
|
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 d;
|
|
1159
|
+
const t = C(((d = a.gateway) == null ? void 0 : d.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 (c, e) => {
|
|
1167
|
+
const i = p("FmTextField"), f = p("FmButton"), g = p("FmForm");
|
|
1168
|
+
return F(), k(g, {
|
|
1169
1169
|
ref: "form",
|
|
1170
1170
|
class: "flex flex-col gap-16",
|
|
1171
|
-
onValidationSuccess:
|
|
1171
|
+
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(t.value))
|
|
1172
1172
|
}, {
|
|
1173
1173
|
default: w(() => [
|
|
1174
|
-
n(
|
|
1175
|
-
modelValue:
|
|
1176
|
-
"onUpdate:modelValue":
|
|
1174
|
+
n(i, {
|
|
1175
|
+
modelValue: t.value.merchantId,
|
|
1176
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.merchantId = m),
|
|
1177
1177
|
label: "Merchant ID",
|
|
1178
|
-
rules:
|
|
1178
|
+
rules: s(N)(s(D).string())
|
|
1179
1179
|
}, null, 8, ["modelValue", "rules"]),
|
|
1180
|
-
n(
|
|
1181
|
-
modelValue:
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1180
|
+
n(i, {
|
|
1181
|
+
modelValue: t.value.merchantName,
|
|
1182
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.merchantName = m),
|
|
1183
1183
|
label: "Merchant Name",
|
|
1184
|
-
rules:
|
|
1184
|
+
rules: s(N)(s(D).string())
|
|
1185
1185
|
}, null, 8, ["modelValue", "rules"]),
|
|
1186
|
-
n(
|
|
1187
|
-
modelValue:
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1186
|
+
n(i, {
|
|
1187
|
+
modelValue: t.value.merchantCategoryCode,
|
|
1188
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.merchantCategoryCode = m),
|
|
1189
1189
|
label: "Merchant MCC",
|
|
1190
|
-
rules:
|
|
1190
|
+
rules: s(N)(s(D).string())
|
|
1191
1191
|
}, null, 8, ["modelValue", "rules"]),
|
|
1192
|
-
n(
|
|
1193
|
-
modelValue:
|
|
1194
|
-
"onUpdate:modelValue":
|
|
1192
|
+
n(i, {
|
|
1193
|
+
modelValue: t.value.storeID,
|
|
1194
|
+
"onUpdate:modelValue": e[3] || (e[3] = (m) => t.value.storeID = m),
|
|
1195
1195
|
label: "Store ID",
|
|
1196
|
-
rules:
|
|
1196
|
+
rules: s(N)(s(D).string())
|
|
1197
1197
|
}, null, 8, ["modelValue", "rules"]),
|
|
1198
|
-
n(
|
|
1199
|
-
modelValue:
|
|
1200
|
-
"onUpdate:modelValue":
|
|
1198
|
+
n(i, {
|
|
1199
|
+
modelValue: t.value.storeName,
|
|
1200
|
+
"onUpdate:modelValue": e[4] || (e[4] = (m) => t.value.storeName = m),
|
|
1201
1201
|
label: "Store Name",
|
|
1202
|
-
rules:
|
|
1202
|
+
rules: s(N)(s(D).string())
|
|
1203
1203
|
}, null, 8, ["modelValue", "rules"]),
|
|
1204
|
-
|
|
1205
|
-
a.gateway ? (
|
|
1204
|
+
u("div", et, [
|
|
1205
|
+
a.gateway ? (F(), 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"])) : E("", !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__ */ h({
|
|
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 d;
|
|
1242
|
+
const t = C(((d = a.gateway) == null ? void 0 : d.config) || {
|
|
1243
1243
|
merchantId: "",
|
|
1244
1244
|
cardMerchantId: ""
|
|
1245
1245
|
});
|
|
1246
|
-
return (
|
|
1247
|
-
const
|
|
1248
|
-
return
|
|
1246
|
+
return (c, e) => {
|
|
1247
|
+
const i = p("FmTextField"), f = p("FmButton"), g = p("FmForm");
|
|
1248
|
+
return F(), k(g, {
|
|
1249
1249
|
ref: "form",
|
|
1250
1250
|
class: "flex flex-col gap-16",
|
|
1251
|
-
onValidationSuccess:
|
|
1251
|
+
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(t.value))
|
|
1252
1252
|
}, {
|
|
1253
1253
|
default: w(() => [
|
|
1254
|
-
n(
|
|
1255
|
-
modelValue:
|
|
1256
|
-
"onUpdate:modelValue":
|
|
1254
|
+
n(i, {
|
|
1255
|
+
modelValue: t.value.merchantId,
|
|
1256
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.merchantId = m),
|
|
1257
1257
|
label: "Merchant ID",
|
|
1258
|
-
rules:
|
|
1258
|
+
rules: s(N)(s(D).string())
|
|
1259
1259
|
}, null, 8, ["modelValue", "rules"]),
|
|
1260
|
-
n(
|
|
1261
|
-
modelValue:
|
|
1262
|
-
"onUpdate:modelValue":
|
|
1260
|
+
n(i, {
|
|
1261
|
+
modelValue: t.value.cardMerchantId,
|
|
1262
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.cardMerchantId = m),
|
|
1263
1263
|
label: "Card Merchant ID",
|
|
1264
|
-
rules:
|
|
1264
|
+
rules: s(N)(s(D).string())
|
|
1265
1265
|
}, null, 8, ["modelValue", "rules"]),
|
|
1266
|
-
|
|
1267
|
-
a.gateway ? (
|
|
1266
|
+
u("div", at, [
|
|
1267
|
+
a.gateway ? (F(), 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"])) : E("", !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__ */ h({
|
|
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 d;
|
|
1304
|
+
const t = C(((d = a.gateway) == null ? void 0 : d.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 (c, e) => {
|
|
1313
|
+
const i = p("FmTextField"), f = p("FmButton"), g = p("FmForm");
|
|
1314
|
+
return F(), k(g, {
|
|
1315
1315
|
ref: "form",
|
|
1316
1316
|
class: "flex flex-col gap-16",
|
|
1317
|
-
onValidationSuccess:
|
|
1317
|
+
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(t.value))
|
|
1318
1318
|
}, {
|
|
1319
1319
|
default: w(() => [
|
|
1320
|
-
n(
|
|
1321
|
-
modelValue:
|
|
1322
|
-
"onUpdate:modelValue":
|
|
1320
|
+
n(i, {
|
|
1321
|
+
modelValue: t.value.endpoint,
|
|
1322
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.endpoint = m),
|
|
1323
1323
|
label: "Endpoint",
|
|
1324
|
-
rules:
|
|
1324
|
+
rules: s(N)(s(D).string())
|
|
1325
1325
|
}, null, 8, ["modelValue", "rules"]),
|
|
1326
|
-
n(
|
|
1327
|
-
modelValue:
|
|
1328
|
-
"onUpdate:modelValue":
|
|
1326
|
+
n(i, {
|
|
1327
|
+
modelValue: t.value.merchantAccount,
|
|
1328
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.merchantAccount = m),
|
|
1329
1329
|
label: "Merchant Account",
|
|
1330
|
-
rules:
|
|
1330
|
+
rules: s(N)(s(D).string())
|
|
1331
1331
|
}, null, 8, ["modelValue", "rules"]),
|
|
1332
|
-
n(
|
|
1333
|
-
modelValue:
|
|
1334
|
-
"onUpdate:modelValue":
|
|
1332
|
+
n(i, {
|
|
1333
|
+
modelValue: t.value.username,
|
|
1334
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.username = m),
|
|
1335
1335
|
label: "Username",
|
|
1336
|
-
rules:
|
|
1336
|
+
rules: s(N)(s(D).string())
|
|
1337
1337
|
}, null, 8, ["modelValue", "rules"]),
|
|
1338
|
-
n(
|
|
1339
|
-
modelValue:
|
|
1340
|
-
"onUpdate:modelValue":
|
|
1338
|
+
n(i, {
|
|
1339
|
+
modelValue: t.value.apiKey,
|
|
1340
|
+
"onUpdate:modelValue": e[3] || (e[3] = (m) => t.value.apiKey = m),
|
|
1341
1341
|
label: "API Key",
|
|
1342
|
-
rules:
|
|
1342
|
+
rules: s(N)(s(D).string())
|
|
1343
1343
|
}, null, 8, ["modelValue", "rules"]),
|
|
1344
|
-
n(
|
|
1345
|
-
modelValue:
|
|
1346
|
-
"onUpdate:modelValue":
|
|
1344
|
+
n(i, {
|
|
1345
|
+
modelValue: t.value.clientKey,
|
|
1346
|
+
"onUpdate:modelValue": e[4] || (e[4] = (m) => t.value.clientKey = m),
|
|
1347
1347
|
label: "Client Key",
|
|
1348
|
-
rules:
|
|
1348
|
+
rules: s(N)(s(D).string())
|
|
1349
1349
|
}, null, 8, ["modelValue", "rules"]),
|
|
1350
|
-
n(
|
|
1351
|
-
modelValue:
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1350
|
+
n(i, {
|
|
1351
|
+
modelValue: t.value.hmacKey,
|
|
1352
|
+
"onUpdate:modelValue": e[5] || (e[5] = (m) => t.value.hmacKey = m),
|
|
1353
1353
|
label: "HMac Key"
|
|
1354
1354
|
}, null, 8, ["modelValue"]),
|
|
1355
|
-
|
|
1356
|
-
a.gateway ? (
|
|
1355
|
+
u("div", ot, [
|
|
1356
|
+
a.gateway ? (F(), 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"])) : E("", !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__ */ h({
|
|
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 d;
|
|
1393
|
+
const t = C(((d = a.gateway) == null ? void 0 : d.config) || {
|
|
1394
1394
|
appId: "",
|
|
1395
1395
|
privateKey: ""
|
|
1396
1396
|
});
|
|
1397
|
-
return (
|
|
1398
|
-
const
|
|
1399
|
-
return
|
|
1397
|
+
return (c, e) => {
|
|
1398
|
+
const i = p("FmTextField"), f = p("FmTextarea"), g = p("FmButton"), m = p("FmForm");
|
|
1399
|
+
return F(), k(m, {
|
|
1400
1400
|
ref: "form",
|
|
1401
1401
|
class: "flex flex-col gap-16",
|
|
1402
|
-
onValidationSuccess:
|
|
1402
|
+
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(t.value))
|
|
1403
1403
|
}, {
|
|
1404
1404
|
default: w(() => [
|
|
1405
|
-
n(
|
|
1406
|
-
modelValue:
|
|
1407
|
-
"onUpdate:modelValue":
|
|
1405
|
+
n(i, {
|
|
1406
|
+
modelValue: t.value.appId,
|
|
1407
|
+
"onUpdate:modelValue": e[0] || (e[0] = (b) => t.value.appId = b),
|
|
1408
1408
|
label: "App ID",
|
|
1409
|
-
rules:
|
|
1409
|
+
rules: s(N)(s(D).string())
|
|
1410
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1411
|
-
n(
|
|
1412
|
-
modelValue:
|
|
1413
|
-
"onUpdate:modelValue":
|
|
1411
|
+
n(f, {
|
|
1412
|
+
modelValue: t.value.privateKey,
|
|
1413
|
+
"onUpdate:modelValue": e[1] || (e[1] = (b) => t.value.privateKey = b),
|
|
1414
1414
|
label: "Private Key",
|
|
1415
1415
|
placeholder: "Paste your private key including BEGIN and END markers",
|
|
1416
|
-
rules:
|
|
1416
|
+
rules: s(N)(s(D).string())
|
|
1417
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1418
|
-
|
|
1419
|
-
a.gateway ? (
|
|
1418
|
+
u("div", ut, [
|
|
1419
|
+
a.gateway ? (F(), k(g, {
|
|
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"])) : E("", !0),
|
|
1426
|
+
n(g, {
|
|
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__ */ h({
|
|
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 d;
|
|
1456
|
+
const t = C(
|
|
1457
|
+
((d = a.gateway) == null ? void 0 : d.config) || {
|
|
1458
1458
|
locationId: ""
|
|
1459
1459
|
}
|
|
1460
1460
|
);
|
|
1461
|
-
return (
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
1461
|
+
return (c, e) => {
|
|
1462
|
+
const i = p("FmTextField"), f = p("FmForm");
|
|
1463
|
+
return F(), k(f, {
|
|
1464
1464
|
ref: "form",
|
|
1465
1465
|
class: "flex flex-col gap-16",
|
|
1466
|
-
onValidationSuccess:
|
|
1466
|
+
onValidationSuccess: e[1] || (e[1] = () => a.onUpdate(t.value))
|
|
1467
1467
|
}, {
|
|
1468
1468
|
default: w(() => [
|
|
1469
|
-
n(
|
|
1470
|
-
modelValue:
|
|
1471
|
-
"onUpdate:modelValue":
|
|
1469
|
+
n(i, {
|
|
1470
|
+
modelValue: t.value.locationId,
|
|
1471
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => t.value.locationId = g),
|
|
1472
1472
|
label: "Location ID",
|
|
1473
1473
|
readonly: !0,
|
|
1474
|
-
rules:
|
|
1474
|
+
rules: s(N)(s(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__ */ h({
|
|
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 d;
|
|
1499
|
+
const t = C({
|
|
1500
1500
|
merchantId: "",
|
|
1501
1501
|
apiKey: "",
|
|
1502
1502
|
isDirect: !1,
|
|
1503
|
-
...(
|
|
1503
|
+
...(d = a.gateway) == null ? void 0 : d.config
|
|
1504
1504
|
});
|
|
1505
|
-
return (
|
|
1506
|
-
const
|
|
1507
|
-
return
|
|
1505
|
+
return (c, e) => {
|
|
1506
|
+
const i = p("FmTextField"), f = p("FmSwitch"), g = p("FmButton"), m = p("FmForm");
|
|
1507
|
+
return F(), k(m, {
|
|
1508
1508
|
ref: "form",
|
|
1509
1509
|
class: "flex flex-col gap-16",
|
|
1510
|
-
onValidationSuccess:
|
|
1510
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(t.value))
|
|
1511
1511
|
}, {
|
|
1512
1512
|
default: w(() => [
|
|
1513
|
-
n(
|
|
1514
|
-
modelValue:
|
|
1515
|
-
"onUpdate:modelValue":
|
|
1513
|
+
n(i, {
|
|
1514
|
+
modelValue: t.value.merchantId,
|
|
1515
|
+
"onUpdate:modelValue": e[0] || (e[0] = (b) => t.value.merchantId = b),
|
|
1516
1516
|
label: "Merchant ID",
|
|
1517
|
-
rules:
|
|
1517
|
+
rules: s(N)(s(D).string())
|
|
1518
1518
|
}, null, 8, ["modelValue", "rules"]),
|
|
1519
|
-
n(
|
|
1520
|
-
modelValue:
|
|
1521
|
-
"onUpdate:modelValue":
|
|
1519
|
+
n(i, {
|
|
1520
|
+
modelValue: t.value.apiKey,
|
|
1521
|
+
"onUpdate:modelValue": e[1] || (e[1] = (b) => t.value.apiKey = b),
|
|
1522
1522
|
label: "Api Key",
|
|
1523
|
-
rules:
|
|
1523
|
+
rules: s(N)(s(D).string())
|
|
1524
1524
|
}, null, 8, ["modelValue", "rules"]),
|
|
1525
|
-
n(
|
|
1526
|
-
modelValue:
|
|
1527
|
-
"onUpdate:modelValue":
|
|
1525
|
+
n(f, {
|
|
1526
|
+
modelValue: t.value.isDirect,
|
|
1527
|
+
"onUpdate:modelValue": e[2] || (e[2] = (b) => t.value.isDirect = b),
|
|
1528
1528
|
label: "Is Direct"
|
|
1529
1529
|
}, null, 8, ["modelValue"]),
|
|
1530
|
-
|
|
1531
|
-
a.gateway ? (
|
|
1530
|
+
u("div", it, [
|
|
1531
|
+
a.gateway ? (F(), k(g, {
|
|
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"])) : E("", !0),
|
|
1538
|
+
n(g, {
|
|
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__ */ h({
|
|
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 o = ie().currentCountry, t = o.value, d = W(), { isLoading: c, startAsyncCall: e } = ne(), { gatewayTab: i } = oe({
|
|
1566
1566
|
gatewayTab: ""
|
|
1567
|
-
}),
|
|
1567
|
+
}), f = a, g = [
|
|
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 = C(
|
|
1611
|
+
f.payoutAccount.gateways ?? []
|
|
1612
|
+
), b = L(() => g.find((S) => S.value === i.value)), r = L(() => g.filter(
|
|
1613
|
+
(S) => S.region.includes(o.value ?? q.F_COUNTRY.enum.MY)
|
|
1614
1614
|
));
|
|
1615
|
-
async function
|
|
1616
|
-
await
|
|
1615
|
+
async function v(S) {
|
|
1616
|
+
await e(async () => {
|
|
1617
1617
|
try {
|
|
1618
|
-
await Y.updateGateway(
|
|
1618
|
+
await Y.updateGateway(f.payoutAccount._id, S), d.open({
|
|
1619
1619
|
type: "success",
|
|
1620
1620
|
title: "Payout account gateways update succesfully"
|
|
1621
|
-
}),
|
|
1621
|
+
}), y.value = S.length === 0;
|
|
1622
1622
|
} catch (A) {
|
|
1623
|
-
|
|
1623
|
+
d.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 y = C((f.payoutAccount.gateways ?? []).length === 0), l = L(() => t !== "MY" || !y.value);
|
|
1632
1632
|
return (S, A) => {
|
|
1633
1633
|
var P;
|
|
1634
|
-
const
|
|
1635
|
-
return
|
|
1636
|
-
|
|
1637
|
-
|
|
1634
|
+
const U = p("FmCircularProgress"), I = p("FmSwitch"), R = p("FmTabs");
|
|
1635
|
+
return F(), G(j, null, [
|
|
1636
|
+
s(t) ? (F(), G("p", mt, [...A[2] || (A[2] = [
|
|
1637
|
+
u("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
|
+
])])) : E("", !0),
|
|
1640
|
+
s(c) ? (F(), G("div", dt, [
|
|
1641
|
+
n(U, { size: "xxl" })
|
|
1642
|
+
])) : (F(), G(j, { key: 2 }, [
|
|
1643
|
+
s(t) === "MY" ? (F(), k(I, {
|
|
1644
1644
|
key: 0,
|
|
1645
|
-
modelValue:
|
|
1646
|
-
"onUpdate:modelValue": A[0] || (A[0] = (V) =>
|
|
1645
|
+
modelValue: y.value,
|
|
1646
|
+
"onUpdate:modelValue": A[0] || (A[0] = (V) => y.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"])) : E("", !0),
|
|
1650
|
+
l.value ? (F(), k(R, {
|
|
1651
1651
|
key: 1,
|
|
1652
|
-
"model-value": i
|
|
1653
|
-
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(
|
|
1652
|
+
"model-value": s(i),
|
|
1653
|
+
"onUpdate:modelValue": A[1] || (A[1] = (V) => ae(i) ? i.value = V : null),
|
|
1654
1654
|
class: "mb-6",
|
|
1655
|
-
items:
|
|
1656
|
-
}, null, 8, ["model-value", "items"])) :
|
|
1657
|
-
|
|
1655
|
+
items: r.value
|
|
1656
|
+
}, null, 8, ["model-value", "items"])) : E("", !0),
|
|
1657
|
+
l.value && s(i) ? (F(), k(ue((P = b.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 = b.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 = b.value) == null ? void 0 : x.value);
|
|
1669
1669
|
}
|
|
1670
|
-
),
|
|
1670
|
+
), v(m.value);
|
|
1671
1671
|
},
|
|
1672
1672
|
onUpdate: (V) => {
|
|
1673
|
-
var
|
|
1673
|
+
var $;
|
|
1674
1674
|
let x = m.value.find(
|
|
1675
1675
|
(B) => {
|
|
1676
|
-
var
|
|
1677
|
-
return B.paymentGateway === ((
|
|
1676
|
+
var T;
|
|
1677
|
+
return B.paymentGateway === ((T = b.value) == null ? void 0 : T.value);
|
|
1678
1678
|
}
|
|
1679
1679
|
);
|
|
1680
1680
|
x ? x.config = V : m.value.push({
|
|
1681
|
-
paymentGateway: (
|
|
1681
|
+
paymentGateway: ($ = b.value) == null ? void 0 : $.value,
|
|
1682
1682
|
config: V
|
|
1683
|
-
}),
|
|
1683
|
+
}), v(m.value);
|
|
1684
1684
|
}
|
|
1685
|
-
})), null, 16)) :
|
|
1685
|
+
})), null, 16)) : E("", !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__ */ h({
|
|
1691
1691
|
__name: "GooglePayToken",
|
|
1692
1692
|
props: {
|
|
1693
1693
|
gateway: {
|
|
@@ -1704,8 +1704,15 @@ 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
|
-
|
|
1707
|
+
const o = a, t = ie(), d = C(
|
|
1708
|
+
o.gateway || t.currentCountry.value === "MY" ? {
|
|
1709
|
+
type: "googlePay",
|
|
1710
|
+
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1711
|
+
config: {
|
|
1712
|
+
gateway: "revenuemonster",
|
|
1713
|
+
gatewayMerchantId: "BCR2DN4TVGD2BK2A"
|
|
1714
|
+
}
|
|
1715
|
+
} : {
|
|
1709
1716
|
type: "googlePay",
|
|
1710
1717
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
1711
1718
|
config: {
|
|
@@ -1714,44 +1721,44 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1714
1721
|
}
|
|
1715
1722
|
}
|
|
1716
1723
|
);
|
|
1717
|
-
return (
|
|
1718
|
-
const
|
|
1719
|
-
return
|
|
1724
|
+
return (c, e) => {
|
|
1725
|
+
const i = p("FmTextField"), f = p("FmButton"), g = p("FmForm");
|
|
1726
|
+
return F(), k(g, {
|
|
1720
1727
|
ref: "form",
|
|
1721
1728
|
class: "flex flex-col gap-16",
|
|
1722
|
-
onValidationSuccess:
|
|
1729
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(d.value))
|
|
1723
1730
|
}, {
|
|
1724
1731
|
default: w(() => [
|
|
1725
|
-
n(
|
|
1726
|
-
modelValue:
|
|
1727
|
-
"onUpdate:modelValue":
|
|
1732
|
+
n(i, {
|
|
1733
|
+
modelValue: d.value.gateway,
|
|
1734
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => d.value.gateway = m),
|
|
1728
1735
|
label: "Gateway",
|
|
1729
1736
|
disabled: !0,
|
|
1730
|
-
rules:
|
|
1737
|
+
rules: s(N)(s(D).string())
|
|
1731
1738
|
}, null, 8, ["modelValue", "rules"]),
|
|
1732
|
-
n(
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue":
|
|
1739
|
+
n(i, {
|
|
1740
|
+
modelValue: d.value.config.gateway,
|
|
1741
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => d.value.config.gateway = m),
|
|
1735
1742
|
label: "Gateway ID",
|
|
1736
1743
|
disabled: !0,
|
|
1737
|
-
rules:
|
|
1744
|
+
rules: s(N)(s(D).string())
|
|
1738
1745
|
}, null, 8, ["modelValue", "rules"]),
|
|
1739
|
-
n(
|
|
1740
|
-
modelValue:
|
|
1741
|
-
"onUpdate:modelValue":
|
|
1746
|
+
n(i, {
|
|
1747
|
+
modelValue: d.value.config.gatewayMerchantId,
|
|
1748
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => d.value.config.gatewayMerchantId = m),
|
|
1742
1749
|
label: "Gateway Merchant ID",
|
|
1743
1750
|
disabled: !0,
|
|
1744
|
-
rules:
|
|
1751
|
+
rules: s(N)(s(D).string())
|
|
1745
1752
|
}, null, 8, ["modelValue", "rules"]),
|
|
1746
|
-
|
|
1747
|
-
a.gateway ? (
|
|
1753
|
+
u("div", yt, [
|
|
1754
|
+
a.gateway ? (F(), k(f, {
|
|
1748
1755
|
key: 0,
|
|
1749
1756
|
class: "flex-1",
|
|
1750
1757
|
variant: "secondary",
|
|
1751
1758
|
label: "Delete",
|
|
1752
1759
|
onclick: () => a.onDelete()
|
|
1753
|
-
}, null, 8, ["onclick"])) :
|
|
1754
|
-
n(
|
|
1760
|
+
}, null, 8, ["onclick"])) : E("", !0),
|
|
1761
|
+
n(f, {
|
|
1755
1762
|
type: "submit",
|
|
1756
1763
|
class: "flex-1",
|
|
1757
1764
|
variant: "primary",
|
|
@@ -1763,7 +1770,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1763
1770
|
}, 512);
|
|
1764
1771
|
};
|
|
1765
1772
|
}
|
|
1766
|
-
}), vt = { class: "flex mt-6 space-x-6" }, ft = /* @__PURE__ */
|
|
1773
|
+
}), vt = { class: "flex mt-6 space-x-6" }, ft = /* @__PURE__ */ h({
|
|
1767
1774
|
__name: "ApplePayToken",
|
|
1768
1775
|
props: {
|
|
1769
1776
|
gateway: {
|
|
@@ -1780,7 +1787,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1780
1787
|
}
|
|
1781
1788
|
},
|
|
1782
1789
|
setup(a) {
|
|
1783
|
-
const
|
|
1790
|
+
const t = C(
|
|
1784
1791
|
a.gateway || {
|
|
1785
1792
|
type: "applePay",
|
|
1786
1793
|
gateway: "RAZER_MERCHANT_SERVICE",
|
|
@@ -1789,37 +1796,37 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1789
1796
|
}
|
|
1790
1797
|
}
|
|
1791
1798
|
);
|
|
1792
|
-
return (
|
|
1793
|
-
const
|
|
1794
|
-
return
|
|
1799
|
+
return (d, c) => {
|
|
1800
|
+
const e = p("FmTextField"), i = p("FmButton"), f = p("FmForm");
|
|
1801
|
+
return F(), k(f, {
|
|
1795
1802
|
ref: "form",
|
|
1796
1803
|
class: "flex flex-col gap-16",
|
|
1797
|
-
onValidationSuccess:
|
|
1804
|
+
onValidationSuccess: c[2] || (c[2] = () => a.onUpdate(t.value))
|
|
1798
1805
|
}, {
|
|
1799
1806
|
default: w(() => [
|
|
1800
|
-
n(
|
|
1801
|
-
modelValue:
|
|
1802
|
-
"onUpdate:modelValue":
|
|
1807
|
+
n(e, {
|
|
1808
|
+
modelValue: t.value.gateway,
|
|
1809
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => t.value.gateway = g),
|
|
1803
1810
|
label: "Gateway",
|
|
1804
1811
|
disabled: !0,
|
|
1805
|
-
rules:
|
|
1812
|
+
rules: s(N)(s(D).string())
|
|
1806
1813
|
}, null, 8, ["modelValue", "rules"]),
|
|
1807
|
-
n(
|
|
1808
|
-
modelValue:
|
|
1809
|
-
"onUpdate:modelValue":
|
|
1814
|
+
n(e, {
|
|
1815
|
+
modelValue: t.value.config.merchantId,
|
|
1816
|
+
"onUpdate:modelValue": c[1] || (c[1] = (g) => t.value.config.merchantId = g),
|
|
1810
1817
|
label: "Merchant ID",
|
|
1811
1818
|
disabled: !0,
|
|
1812
|
-
rules:
|
|
1819
|
+
rules: s(N)(s(D).string())
|
|
1813
1820
|
}, null, 8, ["modelValue", "rules"]),
|
|
1814
|
-
|
|
1815
|
-
a.gateway ? (
|
|
1821
|
+
u("div", vt, [
|
|
1822
|
+
a.gateway ? (F(), k(i, {
|
|
1816
1823
|
key: 0,
|
|
1817
1824
|
class: "flex-1",
|
|
1818
1825
|
variant: "secondary",
|
|
1819
1826
|
label: "Delete",
|
|
1820
1827
|
onclick: () => a.onDelete()
|
|
1821
|
-
}, null, 8, ["onclick"])) :
|
|
1822
|
-
n(
|
|
1828
|
+
}, null, 8, ["onclick"])) : E("", !0),
|
|
1829
|
+
n(i, {
|
|
1823
1830
|
type: "submit",
|
|
1824
1831
|
class: "flex-1",
|
|
1825
1832
|
variant: "primary",
|
|
@@ -1834,7 +1841,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1834
1841
|
}), gt = {
|
|
1835
1842
|
key: 0,
|
|
1836
1843
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1837
|
-
}, Ft = /* @__PURE__ */
|
|
1844
|
+
}, Ft = /* @__PURE__ */ h({
|
|
1838
1845
|
__name: "TokenGateway",
|
|
1839
1846
|
props: {
|
|
1840
1847
|
payoutAccount: {
|
|
@@ -1843,9 +1850,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1843
1850
|
}
|
|
1844
1851
|
},
|
|
1845
1852
|
setup(a) {
|
|
1846
|
-
const
|
|
1853
|
+
const o = ie().currentCountry, t = W(), { isLoading: d, startAsyncCall: c } = ne(), { tokenTab: e } = oe({
|
|
1847
1854
|
tokenTab: ""
|
|
1848
|
-
}),
|
|
1855
|
+
}), i = a, f = [
|
|
1849
1856
|
{
|
|
1850
1857
|
label: "Google Pay",
|
|
1851
1858
|
value: "googlePay",
|
|
@@ -1858,71 +1865,71 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1858
1865
|
value: "applePay",
|
|
1859
1866
|
icon: "iOS",
|
|
1860
1867
|
render: ft,
|
|
1861
|
-
region: [q.F_COUNTRY.enum.
|
|
1868
|
+
region: [q.F_COUNTRY.enum.SG]
|
|
1862
1869
|
}
|
|
1863
|
-
],
|
|
1864
|
-
(
|
|
1870
|
+
], g = C(i.payoutAccount.tokens ?? []), m = L(() => f.find((v) => v.value === e.value)), b = L(() => f.filter(
|
|
1871
|
+
(v) => v.region.includes(o.value ?? q.F_COUNTRY.enum.MY)
|
|
1865
1872
|
));
|
|
1866
|
-
async function
|
|
1867
|
-
await
|
|
1873
|
+
async function r(v) {
|
|
1874
|
+
await c(async () => {
|
|
1868
1875
|
try {
|
|
1869
|
-
await Y.updateTokens(
|
|
1876
|
+
await Y.updateTokens(i.payoutAccount._id, v), t.open({
|
|
1870
1877
|
type: "success",
|
|
1871
1878
|
title: "Payout account tokens gateway update succesfully"
|
|
1872
1879
|
});
|
|
1873
|
-
} catch (
|
|
1874
|
-
|
|
1880
|
+
} catch (y) {
|
|
1881
|
+
t.open({
|
|
1875
1882
|
type: "error",
|
|
1876
1883
|
title: "Error occurs when updating payout account tokens",
|
|
1877
|
-
message: Z(
|
|
1884
|
+
message: Z(y)
|
|
1878
1885
|
});
|
|
1879
1886
|
}
|
|
1880
1887
|
});
|
|
1881
1888
|
}
|
|
1882
|
-
return (
|
|
1889
|
+
return (v, y) => {
|
|
1883
1890
|
var A;
|
|
1884
|
-
const
|
|
1885
|
-
return
|
|
1886
|
-
|
|
1887
|
-
|
|
1891
|
+
const l = p("FmCircularProgress"), S = p("FmTabs");
|
|
1892
|
+
return F(), G(j, null, [
|
|
1893
|
+
y[1] || (y[1] = u("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
1894
|
+
u("b", null, "Note: "),
|
|
1888
1895
|
_(" 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. "),
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1896
|
+
u("br"),
|
|
1897
|
+
u("br"),
|
|
1898
|
+
u("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. `),
|
|
1899
|
+
u("br")
|
|
1893
1900
|
], -1)),
|
|
1894
|
-
|
|
1895
|
-
n(
|
|
1896
|
-
])) : (
|
|
1901
|
+
s(d) ? (F(), G("div", gt, [
|
|
1902
|
+
n(l, { size: "xxl" })
|
|
1903
|
+
])) : (F(), k(S, {
|
|
1897
1904
|
key: 1,
|
|
1898
|
-
"model-value":
|
|
1899
|
-
"onUpdate:modelValue":
|
|
1905
|
+
"model-value": s(e),
|
|
1906
|
+
"onUpdate:modelValue": y[0] || (y[0] = (U) => ae(e) ? e.value = U : null),
|
|
1900
1907
|
class: "mb-6 mt-6",
|
|
1901
|
-
items:
|
|
1908
|
+
items: b.value
|
|
1902
1909
|
}, null, 8, ["model-value", "items"])),
|
|
1903
|
-
|
|
1904
|
-
gateway:
|
|
1910
|
+
s(e) ? (F(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
|
|
1911
|
+
gateway: g.value.find((U) => {
|
|
1905
1912
|
var I;
|
|
1906
|
-
return
|
|
1913
|
+
return U.type === ((I = m.value) == null ? void 0 : I.value);
|
|
1907
1914
|
}),
|
|
1908
1915
|
onDelete: async () => {
|
|
1909
|
-
|
|
1916
|
+
g.value = g.value.filter((U) => {
|
|
1910
1917
|
var I;
|
|
1911
|
-
return
|
|
1912
|
-
}),
|
|
1918
|
+
return U.type !== ((I = m.value) == null ? void 0 : I.value);
|
|
1919
|
+
}), r(g.value);
|
|
1913
1920
|
},
|
|
1914
|
-
onUpdate: (
|
|
1915
|
-
let I =
|
|
1921
|
+
onUpdate: (U) => {
|
|
1922
|
+
let I = g.value.find((R) => {
|
|
1916
1923
|
var P;
|
|
1917
|
-
return
|
|
1924
|
+
return R.type === ((P = m.value) == null ? void 0 : P.value);
|
|
1918
1925
|
});
|
|
1919
|
-
I ? I.config =
|
|
1926
|
+
I ? I.config = U : g.value.push(U), r(g.value);
|
|
1920
1927
|
}
|
|
1921
|
-
})), null, 16)) :
|
|
1928
|
+
})), null, 16)) : E("", !0)
|
|
1922
1929
|
], 64);
|
|
1923
1930
|
};
|
|
1924
1931
|
}
|
|
1925
|
-
}), Mt = /* @__PURE__ */
|
|
1932
|
+
}), Mt = /* @__PURE__ */ h({
|
|
1926
1933
|
__name: "PayoutAccountSetting",
|
|
1927
1934
|
props: {
|
|
1928
1935
|
accountId: {
|
|
@@ -1931,27 +1938,27 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1931
1938
|
}
|
|
1932
1939
|
},
|
|
1933
1940
|
setup(a) {
|
|
1934
|
-
const
|
|
1941
|
+
const o = a, { tab: t } = oe({
|
|
1935
1942
|
tab: "information"
|
|
1936
|
-
}), { isLoading:
|
|
1937
|
-
async function
|
|
1943
|
+
}), { isLoading: d, startAsyncCall: c } = ne(!0), e = ve(), i = C();
|
|
1944
|
+
async function f(r) {
|
|
1938
1945
|
await Y.updateById(
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
),
|
|
1946
|
+
o.accountId,
|
|
1947
|
+
r
|
|
1948
|
+
), i.value = await Y.readById(o.accountId);
|
|
1942
1949
|
}
|
|
1943
|
-
const
|
|
1950
|
+
const g = [
|
|
1944
1951
|
{
|
|
1945
1952
|
label: "Information",
|
|
1946
1953
|
value: "information",
|
|
1947
1954
|
icon: "overview",
|
|
1948
|
-
render:
|
|
1955
|
+
render: Ue
|
|
1949
1956
|
},
|
|
1950
1957
|
{
|
|
1951
1958
|
label: "Settlement",
|
|
1952
1959
|
value: "settlement",
|
|
1953
1960
|
icon: "payments",
|
|
1954
|
-
render:
|
|
1961
|
+
render: Ee
|
|
1955
1962
|
},
|
|
1956
1963
|
{
|
|
1957
1964
|
label: "MDR Status",
|
|
@@ -1979,34 +1986,34 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
|
|
|
1979
1986
|
}
|
|
1980
1987
|
];
|
|
1981
1988
|
function m() {
|
|
1982
|
-
|
|
1983
|
-
|
|
1989
|
+
c(async () => {
|
|
1990
|
+
i.value = await Y.readById(o.accountId);
|
|
1984
1991
|
});
|
|
1985
1992
|
}
|
|
1986
|
-
|
|
1987
|
-
const
|
|
1988
|
-
const
|
|
1989
|
-
return
|
|
1993
|
+
de(m);
|
|
1994
|
+
const b = L(() => {
|
|
1995
|
+
const r = g.reduce((v, y) => v || (y.children ? y.children.find((l) => l.value === t.value) || null : y.value === t.value ? y : null), null);
|
|
1996
|
+
return r == null ? void 0 : r.render;
|
|
1990
1997
|
});
|
|
1991
|
-
return (
|
|
1992
|
-
var
|
|
1993
|
-
const
|
|
1994
|
-
return
|
|
1995
|
-
title: `Payout Account (${(
|
|
1996
|
-
loading:
|
|
1997
|
-
onBack:
|
|
1998
|
+
return (r, v) => {
|
|
1999
|
+
var l;
|
|
2000
|
+
const y = p("FmTabs");
|
|
2001
|
+
return F(), k(be, {
|
|
2002
|
+
title: `Payout Account (${(l = i.value) == null ? void 0 : l._id})`,
|
|
2003
|
+
loading: s(d),
|
|
2004
|
+
onBack: s(e).back
|
|
1998
2005
|
}, {
|
|
1999
2006
|
default: w(() => [
|
|
2000
|
-
n(
|
|
2001
|
-
"model-value":
|
|
2002
|
-
"onUpdate:modelValue":
|
|
2007
|
+
n(y, {
|
|
2008
|
+
"model-value": s(t),
|
|
2009
|
+
"onUpdate:modelValue": v[0] || (v[0] = (S) => ae(t) ? t.value = S : null),
|
|
2003
2010
|
class: "mb-6",
|
|
2004
|
-
items:
|
|
2011
|
+
items: g
|
|
2005
2012
|
}, null, 8, ["model-value"]),
|
|
2006
|
-
|
|
2007
|
-
payoutAccount:
|
|
2008
|
-
onUpdate:
|
|
2009
|
-
})), null, 16)) :
|
|
2013
|
+
s(t) ? (F(), k(ue(b.value), re(se({ key: 0 }, {
|
|
2014
|
+
payoutAccount: i.value,
|
|
2015
|
+
onUpdate: f
|
|
2016
|
+
})), null, 16)) : E("", !0)
|
|
2010
2017
|
]),
|
|
2011
2018
|
_: 1
|
|
2012
2019
|
}, 8, ["title", "loading", "onBack"]);
|