@feedmepos/mf-payment 1.11.22-dev → 1.12.0
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-DEkSpYbw.js +118 -0
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DlTlaRr0.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZeyS_-_.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CqFT58M_.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BGU64S5Z.js} +3 -3
- package/dist/{Chargeback-D71IAGTk.js → Chargeback-DwXllRT4.js} +9 -9
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js → DateRangePicker.vue_vue_type_script_setup_true_lang-5ZaLjKl_.js} +2 -2
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Dj3fMKVr.js → DocumentViewer.vue_vue_type_script_setup_true_lang-saQlwl6a.js} +857 -857
- package/dist/{ExternalTerminal-Cc9qwfN3.js → ExternalTerminal-DWnv8BaM.js} +31 -31
- package/dist/{OnboardForm-oAWTQnVu.js → OnboardForm--to1SX2z.js} +631 -694
- package/dist/{OnboardForm-DQ44zTWg.js → OnboardForm-BWIWimOG.js} +8 -8
- package/dist/OnboardSubmission-BtiI1ewF.js +449 -0
- package/dist/{OnboardSubmission-CSDvUix8.js → OnboardSubmission-DFhK_eus.js} +7 -7
- package/dist/{PaymentCheckout-oHQmbYkX.js → PaymentCheckout-CsDfQl6k.js} +4 -4
- package/dist/{mascot-side-BE_abER6.js → PayoutAccount-DtUHIt8d.js} +598 -206
- package/dist/{PayoutAccount-Dx8OtJxp.js → PayoutAccount-DxC8i69H.js} +9 -9
- package/dist/{PayoutAccountSetting-DoCZVhn3.js → PayoutAccountSetting-z-TySDXR.js} +10 -10
- package/dist/{Restaurant-Ct9aQWSp.js → Restaurant-3NdsiWwv.js} +5 -5
- package/dist/{RestaurantSetting-D7Yuuw47.js → RestaurantSetting-Cyn1i8dn.js} +9 -23
- package/dist/Settlement--SIL-7He.js +625 -0
- package/dist/{Settlement-gUV3TF4A.js → Settlement-CiKtgAZ4.js} +5 -5
- package/dist/{SettlementTransactions-BY3T-dG3.js → SettlementTransactions-C52wiVAb.js} +6 -6
- package/dist/{SettlementTransactions-DIkkrW6-.js → SettlementTransactions-CI2SHJB3.js} +97 -106
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CQlT9Qj_.js → Status.vue_vue_type_script_setup_true_lang-DgqA7PhV.js} +1 -1
- package/dist/{Terminal-CPoxr6Ga.js → Terminal-Cx-X-ik5.js} +19 -19
- package/dist/{TerminalSetting-hmswppko.js → TerminalSetting-DY0EYdD-.js} +650 -776
- package/dist/{TerminalTemplate-B3zOtzmP.js → TerminalTemplate-BORrJdEH.js} +7 -7
- package/dist/{TerminalTemplateSetting-2R_LV6YP.js → TerminalTemplateSetting-CYaaQ5jC.js} +6 -6
- package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js → TextInputDialog.vue_vue_type_script_setup_true_lang-CJ29Mqtm.js} +1 -1
- package/dist/{Transaction-CE5Y7oSP.js → Transaction-Bj9ckoKD.js} +19 -20
- package/dist/{Transaction-BV-_41-w.js → Transaction-D1W9J-YG.js} +54 -56
- package/dist/{TransactionOld-B2i6FWoP.js → TransactionOld-C-3Y9idi.js} +11 -12
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D07Iu5dG.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C6ybTX_E.js} +2 -2
- package/dist/api/document/index.d.ts +0 -2
- package/dist/api/onboard-submission/index.d.ts +1 -6
- package/dist/api/terminal/index.d.ts +1 -2
- package/dist/{app-Db-hwBve.js → app-C8rDUQ-r.js} +14579 -14132
- package/dist/app.js +1 -1
- package/dist/{assets-CB7rE-mh.js → assets-QZbz5BYj.js} +46 -47
- package/dist/components/CursorTable/index.vue.d.ts +21 -3
- package/dist/components/PagingTable/index.vue.d.ts +9 -3
- package/dist/{grafana-5eWxG5r8.js → grafana-CHfYDJ1b.js} +4 -4
- package/dist/{index-rGzBv5-u.js → index-4KwdYYMe.js} +2 -2
- package/dist/{index-X_UgwLJS.js → index-7ofYlGzn.js} +1 -1
- package/dist/index-BgS9t01N.js +62 -0
- package/dist/{index-bczomY2M.js → index-Bgh4RGim.js} +2 -2
- package/dist/{index-DWU5m3QZ.js → index-CX2hs-UQ.js} +1 -1
- package/dist/{index-BNEwsJyD.js → index-CX9xj_f6.js} +1 -6
- package/dist/index-CdIL37va.js +33692 -0
- package/dist/{index-DWVs6h52.js → index-DVsHI6PR.js} +29 -52
- package/dist/{index-BCnQ-hAJ.js → index-Yt_qv8lG.js} +5 -39
- package/dist/index-mU9AofgQ.js +137 -0
- package/dist/{index-BmV1RaRw.js → index-x-AN2d5y.js} +2 -2
- package/dist/{index-DxQ3wF-X.js → index-yTZ7Gd-r.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CSeS9lVS.js → index.vue_vue_type_script_setup_true_lang-CtE5UAGa.js} +1 -1
- package/dist/mf-payment.css +1 -0
- package/dist/model/onboard-submission.d.ts +5 -5
- package/dist/model/payout-account.d.ts +2 -3
- package/dist/{moment-h96o7c8I.js → moment-FRs5-R1e.js} +1194 -1067
- package/dist/{onboard-submission-BTnbIwsJ.js → onboard-submission-BdIQCrc0.js} +7 -8
- package/dist/package.json +76 -18
- package/dist/payout-account-CKYWpyP9.js +466 -0
- package/dist/router/index.d.ts +1 -3
- package/dist/stores/payoutAccount.d.ts +38 -40
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{teya-UA6TM323.js → tyro-BovmsorS.js} +2 -3
- package/dist/{useQuery-BJX-S-uW.js → useQuery-CkPLx8V5.js} +1 -1
- package/dist/{validator-CTlVogBQ.js → validator-Bz2eU53Y.js} +6 -6
- package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
- package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
- package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
- package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +24 -24
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +38 -40
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +60 -62
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +8 -32
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -10
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -6
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +22 -38
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +22 -38
- package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +30 -30
- package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +18 -18
- package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +18 -18
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +76 -80
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
- package/dist/views/settlement/SettlementTable.vue.d.ts +5 -15
- package/dist/views/settlement/SettlementTransactions.vue.d.ts +1 -11
- package/package.json +16 -17
- package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +0 -64
- package/dist/FoodCourtPayoutAccount-58TARaq6.js +0 -187
- package/dist/FoodCourtSettlement-BGgvu91A.js +0 -68
- package/dist/FoodCourtTransaction-B1rZHqE_.js +0 -212
- package/dist/Method.vue_vue_type_script_setup_true_lang-B8Vq5gSl.js +0 -58
- package/dist/OnboardSubmission-ncq-dkfF.js +0 -733
- package/dist/PayoutAccount-4ZI4Ik2p.js +0 -405
- package/dist/Settlement-BPaaEj_X.js +0 -510
- package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-BsGmww2X.js +0 -132
- package/dist/api/food-court/index.d.ts +0 -31
- package/dist/index-B-xGomR7.js +0 -131
- package/dist/index-B6SmnK1g.js +0 -32927
- package/dist/index-CazeCsOR.js +0 -13
- package/dist/index-DXIvYLMm.js +0 -75
- package/dist/index-j-zqgMuS.js +0 -52
- package/dist/payout-account-BRzRptNv.js +0 -474
- package/dist/router/context-guard.d.ts +0 -3
- package/dist/router/food-court.d.ts +0 -3
- package/dist/style.css +0 -1
- package/dist/utils/food-court.d.ts +0 -2
- package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +0 -117
- package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +0 -212
- package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +0 -2
- package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +0 -2
- package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +0 -2
- package/dist/views/onboard-submission/useTeyaConnect.d.ts +0 -71
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, ref as L, computed as p, onMounted as W, resolveComponent as v, openBlock as r, createBlock as P, unref as i, withCtx as y, createElementBlock as f, createElementVNode as e, createVNode as _, toDisplayString as n, createTextVNode as O, Fragment as q, createCommentVNode as D, normalizeClass as z } from "vue";
|
|
2
|
-
import { useI18n as G, useCoreStore as M } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as Y } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as H } from "./index-B6SmnK1g.js";
|
|
5
|
-
import { _ as K } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { f as g } from "./index-DXIvYLMm.js";
|
|
7
|
-
import { w as Q } from "./app-Db-hwBve.js";
|
|
8
|
-
import { a as B, P as R } from "./payout-account-BRzRptNv.js";
|
|
9
|
-
import { m as X, _ as Z } from "./mascot-side-BE_abER6.js";
|
|
10
|
-
const tt = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "flex items-center justify-center min-h-[80vh]"
|
|
13
|
-
}, et = { class: "mr-6 lg:block lg:w-1/6" }, ot = ["src"], at = { class: "w-full max-w-lg text-left" }, nt = { class: "py-4" }, st = { class: "flex items-start justify-between gap-16" }, lt = { class: "fm-typo-en-title-sm-600" }, ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it = { class: "flex flex-col items-end gap-4" }, ut = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "text-xs text-red-500"
|
|
16
|
-
}, rt = { class: "grid grid-cols-2 gap-16" }, dt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, mt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, pt = { class: "flex justify-end" }, T = "FOODCOURT", wt = /* @__PURE__ */ J({
|
|
17
|
-
__name: "FoodCourtPayoutAccount",
|
|
18
|
-
setup(vt) {
|
|
19
|
-
const { t: c } = G(), b = Y(), { isLoading: S, startAsyncCall: C } = H(!0), { currentFoodCourt: V } = M(), d = Q(), t = L(), h = p(
|
|
20
|
-
() => {
|
|
21
|
-
var o, a, s, l;
|
|
22
|
-
return ((a = (o = V.value) == null ? void 0 : o.profile) == null ? void 0 : a.name) ?? ((l = (s = t.value) == null ? void 0 : s.ref) == null ? void 0 : l.name) ?? void 0;
|
|
23
|
-
}
|
|
24
|
-
), u = p(
|
|
25
|
-
() => !t.value || t.value.status === "NEW" || t.value.status === "REJECTED"
|
|
26
|
-
), I = p(() => {
|
|
27
|
-
var o;
|
|
28
|
-
switch ((o = t.value) == null ? void 0 : o.status) {
|
|
29
|
-
case "NEW":
|
|
30
|
-
return "bg-yellow-400";
|
|
31
|
-
case "PENDING":
|
|
32
|
-
return "bg-orange-400";
|
|
33
|
-
case "REJECTED":
|
|
34
|
-
return "bg-red-500";
|
|
35
|
-
default:
|
|
36
|
-
return "bg-green-400";
|
|
37
|
-
}
|
|
38
|
-
}), U = p(() => {
|
|
39
|
-
var a, s;
|
|
40
|
-
const o = ((s = (a = t.value) == null ? void 0 : a.store.bank) == null ? void 0 : s.accountNumber) ?? "";
|
|
41
|
-
return o.length > 4 ? `••••${o.slice(-4)}` : o;
|
|
42
|
-
});
|
|
43
|
-
function x(o) {
|
|
44
|
-
const { id: a, event: s, ...l } = o.store;
|
|
45
|
-
return {
|
|
46
|
-
enable: o.enable,
|
|
47
|
-
methods: o.methods.length > 0 ? o.methods : void 0,
|
|
48
|
-
store: l
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function k() {
|
|
52
|
-
const o = B.initPayoutAccount("", t.value);
|
|
53
|
-
o.store.event = T, o.store.id = d ?? "";
|
|
54
|
-
const a = !t.value;
|
|
55
|
-
b.open({
|
|
56
|
-
title: u.value ? c("payment.payout_account.dialog.title") : c("payment.payout_account.dialog.view_title"),
|
|
57
|
-
closeButton: !0,
|
|
58
|
-
overlay: !0,
|
|
59
|
-
contentComponent: Z,
|
|
60
|
-
contentComponentProps: {
|
|
61
|
-
initialValue: { payoutSetting: o },
|
|
62
|
-
isNewAccount: a,
|
|
63
|
-
isUpdateAccount: !a && u.value,
|
|
64
|
-
bankNameOptions: R.bankNameOptions(),
|
|
65
|
-
bankTypeOptions: R.bankTypeOptions(),
|
|
66
|
-
storeEventOptions: [{ label: "Food court", value: T }],
|
|
67
|
-
restaurantOptions: [],
|
|
68
|
-
// Anything that is not an outlet's account is offered these as what it
|
|
69
|
-
// pays out for, so the court goes here.
|
|
70
|
-
businessOptions: [
|
|
71
|
-
{ label: h.value ?? d, value: d }
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
}).onPrimary(async (l) => {
|
|
75
|
-
b.close(), await C(async () => {
|
|
76
|
-
const m = await B.mergeData(
|
|
77
|
-
{ foodCourtId: d },
|
|
78
|
-
o,
|
|
79
|
-
l
|
|
80
|
-
);
|
|
81
|
-
t.value = a ? await g.createPayoutAccount(x(m)) : await g.updatePayoutAccount(x(m));
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
async function $() {
|
|
86
|
-
await C(async () => {
|
|
87
|
-
t.value = await g.readPayoutAccount();
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
return W($), (o, a) => {
|
|
91
|
-
const s = v("FmButton"), l = v("FmBadge"), m = v("FmCardSection"), j = v("FmCard");
|
|
92
|
-
return r(), P(K, {
|
|
93
|
-
title: i(c)("payment.payout_account.title"),
|
|
94
|
-
description: i(c)("payment.payout_account.description"),
|
|
95
|
-
loading: i(S)
|
|
96
|
-
}, {
|
|
97
|
-
default: y(() => [
|
|
98
|
-
t.value ? (r(), P(j, {
|
|
99
|
-
key: 1,
|
|
100
|
-
variant: "elevated",
|
|
101
|
-
class: "p-6 max-w-[720px]"
|
|
102
|
-
}, {
|
|
103
|
-
default: y(() => [
|
|
104
|
-
_(m, { class: "flex flex-col gap-16" }, {
|
|
105
|
-
default: y(() => {
|
|
106
|
-
var w, N, E, A, F;
|
|
107
|
-
return [
|
|
108
|
-
e("div", st, [
|
|
109
|
-
e("div", null, [
|
|
110
|
-
e("div", lt, n(h.value ?? t.value.store.id), 1),
|
|
111
|
-
e("div", ct, [
|
|
112
|
-
O(n(t.value.store.companyName) + " ", 1),
|
|
113
|
-
t.value.store.regNo ? (r(), f(q, { key: 0 }, [
|
|
114
|
-
O(" (" + n(t.value.store.regNo) + ") ", 1)
|
|
115
|
-
], 64)) : D("", !0)
|
|
116
|
-
])
|
|
117
|
-
]),
|
|
118
|
-
e("div", it, [
|
|
119
|
-
_(l, {
|
|
120
|
-
inline: "",
|
|
121
|
-
class: z(`!w-[16px] !h-[16px] ${I.value}`)
|
|
122
|
-
}, {
|
|
123
|
-
default: y(() => [
|
|
124
|
-
e("div", null, n(t.value.status), 1)
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["class"]),
|
|
128
|
-
t.value.status === "REJECTED" && t.value.statusReason ? (r(), f("div", ut, n(t.value.statusReason), 1)) : D("", !0)
|
|
129
|
-
])
|
|
130
|
-
]),
|
|
131
|
-
e("div", rt, [
|
|
132
|
-
e("div", null, [
|
|
133
|
-
e("div", dt, n(i(c)("payment.payout_account.dialog.section.bank")), 1),
|
|
134
|
-
e("div", null, n((w = t.value.store.bank) == null ? void 0 : w.holderName), 1),
|
|
135
|
-
e("div", null, n((N = t.value.store.bank) == null ? void 0 : N.name) + " · " + n(U.value), 1)
|
|
136
|
-
]),
|
|
137
|
-
e("div", null, [
|
|
138
|
-
e("div", mt, n(i(c)("payment.payout_account.dialog.section.pic")), 1),
|
|
139
|
-
e("div", null, n((E = t.value.store.keyPerson) == null ? void 0 : E.name), 1),
|
|
140
|
-
e("div", null, n((A = t.value.store.keyPerson) == null ? void 0 : A.email), 1),
|
|
141
|
-
e("div", null, n((F = t.value.store.keyPerson) == null ? void 0 : F.phone), 1)
|
|
142
|
-
])
|
|
143
|
-
]),
|
|
144
|
-
e("div", pt, [
|
|
145
|
-
_(s, {
|
|
146
|
-
"prepend-icon": u.value ? "edit" : "visibility",
|
|
147
|
-
variant: u.value ? "primary" : "secondary",
|
|
148
|
-
label: u.value ? "Update" : "View Details",
|
|
149
|
-
onClick: k
|
|
150
|
-
}, null, 8, ["prepend-icon", "variant", "label"])
|
|
151
|
-
])
|
|
152
|
-
];
|
|
153
|
-
}),
|
|
154
|
-
_: 1
|
|
155
|
-
})
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
})) : (r(), f("div", tt, [
|
|
159
|
-
e("div", et, [
|
|
160
|
-
e("img", {
|
|
161
|
-
src: i(X),
|
|
162
|
-
alt: "mascot",
|
|
163
|
-
class: "w-full h-auto"
|
|
164
|
-
}, null, 8, ot)
|
|
165
|
-
]),
|
|
166
|
-
e("div", at, [
|
|
167
|
-
a[0] || (a[0] = e("h1", { class: "text-2xl font-bold mb-2" }, " Welcome! Your food court doesn't have a payout account yet. ", -1)),
|
|
168
|
-
a[1] || (a[1] = e("p", { class: "mb-2 mt-1" }, " Apply now so the food court's sales can be paid out to its bank account. ", -1)),
|
|
169
|
-
e("div", nt, [
|
|
170
|
-
_(s, {
|
|
171
|
-
"prepend-icon": "manage_accounts",
|
|
172
|
-
variant: "primary",
|
|
173
|
-
label: "Apply Now",
|
|
174
|
-
onClick: k
|
|
175
|
-
})
|
|
176
|
-
])
|
|
177
|
-
])
|
|
178
|
-
]))
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}, 8, ["title", "description", "loading"]);
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
export {
|
|
186
|
-
wt as default
|
|
187
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as c, onMounted as _, watch as y, openBlock as D, createBlock as w, unref as t, withCtx as v, createElementVNode as Y, createVNode as s, isRef as g } from "vue";
|
|
2
|
-
import { h as l } from "./moment-h96o7c8I.js";
|
|
3
|
-
import { useRouter as h } from "vue-router";
|
|
4
|
-
import { useI18n as C } from "@feedmepos/mf-common";
|
|
5
|
-
import { u as R } from "./index-B6SmnK1g.js";
|
|
6
|
-
import { _ as b } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
7
|
-
import { _ as x } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
|
-
import { _ as M } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
9
|
-
import { u as V } from "./index-B-xGomR7.js";
|
|
10
|
-
import { f as i } from "./index-DXIvYLMm.js";
|
|
11
|
-
import { _ as k } from "./SettlementTable.vue_vue_type_script_setup_true_lang-BsGmww2X.js";
|
|
12
|
-
const $ = { class: "flex justify-between items-center mb-6" }, q = /* @__PURE__ */ p({
|
|
13
|
-
__name: "FoodCourtSettlement",
|
|
14
|
-
setup(I) {
|
|
15
|
-
const d = h(), { t: o } = C(), { isLoading: u, startAsyncCall: f } = R(!0), { dateRange: e } = V({
|
|
16
|
-
dateRange: {
|
|
17
|
-
startDate: l().startOf("day").format("YYYY-MM-DD"),
|
|
18
|
-
endDate: l().endOf("day").format("YYYY-MM-DD")
|
|
19
|
-
}
|
|
20
|
-
}), r = c([]);
|
|
21
|
-
async function m() {
|
|
22
|
-
await f(async () => {
|
|
23
|
-
r.value = await i.readSettlements({
|
|
24
|
-
start: e.value.startDate,
|
|
25
|
-
end: e.value.endDate
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return _(m), y(e, m), (L, a) => (D(), w(b, {
|
|
30
|
-
title: t(o)("payment.settlements.title"),
|
|
31
|
-
description: t(o)("payment.settlements.description"),
|
|
32
|
-
loading: !1
|
|
33
|
-
}, {
|
|
34
|
-
default: v(() => [
|
|
35
|
-
Y("div", $, [
|
|
36
|
-
s(M, {
|
|
37
|
-
modelValue: t(e),
|
|
38
|
-
"onUpdate:modelValue": a[0] || (a[0] = (n) => g(e) ? e.value = n : null)
|
|
39
|
-
}, null, 8, ["modelValue"]),
|
|
40
|
-
s(x, {
|
|
41
|
-
button: {
|
|
42
|
-
appendIcon: "file_download",
|
|
43
|
-
variant: "primary",
|
|
44
|
-
label: t(o)("payment.settlements.export")
|
|
45
|
-
},
|
|
46
|
-
handler: () => t(i).downloadSettlementReport({
|
|
47
|
-
start: t(e).startDate,
|
|
48
|
-
end: t(e).endDate
|
|
49
|
-
})
|
|
50
|
-
}, null, 8, ["button", "handler"])
|
|
51
|
-
]),
|
|
52
|
-
s(k, {
|
|
53
|
-
loading: t(u),
|
|
54
|
-
data: r.value,
|
|
55
|
-
"show-invoice-notice": !1,
|
|
56
|
-
onRowClick: a[1] || (a[1] = (n) => t(d).push({
|
|
57
|
-
name: "mf-payment-food-court-settlement-transaction",
|
|
58
|
-
params: { settlementId: n._id }
|
|
59
|
-
}))
|
|
60
|
-
}, null, 8, ["loading", "data"])
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["title", "description"]));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
q as default
|
|
68
|
-
};
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as F, watch as S, onBeforeUnmount as I, resolveComponent as g, openBlock as C, createBlock as U, unref as a, withCtx as A, createElementVNode as p, createVNode as i, isRef as _, h as y } from "vue";
|
|
2
|
-
import { h } from "./moment-h96o7c8I.js";
|
|
3
|
-
import { useI18n as V } from "@feedmepos/mf-common";
|
|
4
|
-
import "@feedmepos/ui-library";
|
|
5
|
-
import { p as c } from "./index-B6SmnK1g.js";
|
|
6
|
-
import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
7
|
-
import { _ as R } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
|
-
import { _ as K } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
9
|
-
import { _ as P } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
10
|
-
import { t as w, a as M, _ as $ } from "./TransactionStatus.vue_vue_type_script_setup_true_lang-D07Iu5dG.js";
|
|
11
|
-
import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-CSeS9lVS.js";
|
|
12
|
-
import { f as k } from "./index-DXIvYLMm.js";
|
|
13
|
-
import { t as B } from "./index-BmV1RaRw.js";
|
|
14
|
-
import { u as G } from "./index-B-xGomR7.js";
|
|
15
|
-
import { u as L } from "./index-j-zqgMuS.js";
|
|
16
|
-
import { _ as j, a as q } from "./Method.vue_vue_type_script_setup_true_lang-B8Vq5gSl.js";
|
|
17
|
-
const Q = { class: "flex justify-between mb-6 items-center" }, z = { class: "flex space-x-8 items-start" }, H = { class: "flex space-x-4 self-center" }, J = { class: "flex space-x-12 mb-6" }, _e = /* @__PURE__ */ x({
|
|
18
|
-
__name: "FoodCourtTransaction",
|
|
19
|
-
setup(W) {
|
|
20
|
-
const { t } = V(), m = F(), { dateRange: o, searchKey: l, status: r } = G({
|
|
21
|
-
searchKey: "",
|
|
22
|
-
status: [c.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
|
23
|
-
dateRange: {
|
|
24
|
-
startDate: h().startOf("day").format("YYYY-MM-DD"),
|
|
25
|
-
endDate: h().endOf("day").format("YYYY-MM-DD")
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
let u;
|
|
29
|
-
const f = () => {
|
|
30
|
-
u && (clearTimeout(u), u = void 0);
|
|
31
|
-
}, {
|
|
32
|
-
promptSuggestion: b,
|
|
33
|
-
closeSuggestion: E
|
|
34
|
-
} = L({
|
|
35
|
-
searchKey: l,
|
|
36
|
-
dateRange: o,
|
|
37
|
-
onBeforeApply: f
|
|
38
|
-
});
|
|
39
|
-
S(l, () => {
|
|
40
|
-
f(), b(), u = setTimeout(() => {
|
|
41
|
-
var e;
|
|
42
|
-
return (e = m.value) == null ? void 0 : e.reset();
|
|
43
|
-
}, 700);
|
|
44
|
-
}), S([o, r], () => {
|
|
45
|
-
var e;
|
|
46
|
-
(e = m.value) == null || e.reset();
|
|
47
|
-
}), I(() => {
|
|
48
|
-
f(), E();
|
|
49
|
-
});
|
|
50
|
-
const T = [
|
|
51
|
-
{
|
|
52
|
-
label: "Success",
|
|
53
|
-
value: c.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
label: "Refunded",
|
|
57
|
-
value: c.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "Pending",
|
|
61
|
-
value: c.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
label: "Pending Settlement",
|
|
65
|
-
value: c.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING_SETTLEMENT
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "Failed",
|
|
69
|
-
value: c.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
|
|
70
|
-
}
|
|
71
|
-
], N = [
|
|
72
|
-
{
|
|
73
|
-
header: () => t("payment.transactions.table.id"),
|
|
74
|
-
accessorKey: "id"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
header: () => t("payment.transactions.table.pay_id"),
|
|
78
|
-
accessorKey: "payId"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
header: () => t("payment.transactions.table.gateway_id"),
|
|
82
|
-
accessorKey: "gatewayTransactionId"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
header: () => t("payment.transactions.table.gateway"),
|
|
86
|
-
accessorKey: "gateway",
|
|
87
|
-
meta: {
|
|
88
|
-
textAlign: "center"
|
|
89
|
-
},
|
|
90
|
-
cell: ({ cell: e, row: n }) => n.original.gateway ? y(j, { row: n, data: e.getValue() }) : ""
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
header: () => t("payment.transactions.table.method"),
|
|
94
|
-
accessorKey: "method",
|
|
95
|
-
meta: {
|
|
96
|
-
textAlign: "center"
|
|
97
|
-
},
|
|
98
|
-
cell: ({ cell: e, row: n }) => n.original.method ? y(q, { row: n, data: e.getValue() }) : ""
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
header: () => t("payment.transactions.table.type"),
|
|
102
|
-
accessorKey: "payFor",
|
|
103
|
-
meta: {
|
|
104
|
-
textAlign: "center"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
header: () => t("payment.transactions.table.status"),
|
|
109
|
-
accessorKey: "status",
|
|
110
|
-
cell: ({ cell: e }) => y($, { data: e.getValue() })
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
header: () => t("payment.transactions.table.source"),
|
|
114
|
-
accessorKey: "source",
|
|
115
|
-
cell: ({ row: e }) => `(${e.original.sourceType}) ${e.original.source}`
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
header: () => t("payment.transactions.table.transaction_at"),
|
|
119
|
-
accessorKey: "transactionAt",
|
|
120
|
-
meta: {
|
|
121
|
-
width: "180px"
|
|
122
|
-
},
|
|
123
|
-
cell: ({ row: e }) => e.original.status === "REFUNDED" ? e.original.refundedAt : e.original.transactionAt
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
header: () => t("payment.transactions.table.sales_amount"),
|
|
127
|
-
accessorKey: "amount"
|
|
128
|
-
}
|
|
129
|
-
];
|
|
130
|
-
return (e, n) => {
|
|
131
|
-
const v = g("FmSearch"), D = g("FmSelect");
|
|
132
|
-
return C(), U(Y, {
|
|
133
|
-
title: a(t)("payment.transactions.title"),
|
|
134
|
-
description: a(t)("payment.transactions.description"),
|
|
135
|
-
loading: !1
|
|
136
|
-
}, {
|
|
137
|
-
default: A(() => [
|
|
138
|
-
p("div", Q, [
|
|
139
|
-
p("div", z, [
|
|
140
|
-
i(v, {
|
|
141
|
-
"model-value": a(l),
|
|
142
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) => _(l) ? l.value = s : null),
|
|
143
|
-
class: "mr-8",
|
|
144
|
-
label: a(t)("payment.transactions.search.title"),
|
|
145
|
-
placeholder: a(t)("payment.transactions.search.placeholder")
|
|
146
|
-
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
147
|
-
i(D, {
|
|
148
|
-
modelValue: a(r),
|
|
149
|
-
"onUpdate:modelValue": n[2] || (n[2] = (s) => _(r) ? r.value = s : null),
|
|
150
|
-
class: "mr-6 w-[300px]",
|
|
151
|
-
label: a(t)("payment.transactions.status"),
|
|
152
|
-
"label-mark": "required",
|
|
153
|
-
multiselect: "",
|
|
154
|
-
items: T
|
|
155
|
-
}, {
|
|
156
|
-
"prepend-menu": A(() => [
|
|
157
|
-
i(K, {
|
|
158
|
-
modelValue: a(r),
|
|
159
|
-
"onUpdate:modelValue": n[1] || (n[1] = (s) => _(r) ? r.value = s : null),
|
|
160
|
-
items: T
|
|
161
|
-
}, null, 8, ["modelValue"])
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["modelValue", "label"])
|
|
165
|
-
]),
|
|
166
|
-
p("div", H, [
|
|
167
|
-
i(R, {
|
|
168
|
-
button: {
|
|
169
|
-
appendIcon: "file_download",
|
|
170
|
-
variant: "primary",
|
|
171
|
-
label: a(t)("payment.transactions.button.export")
|
|
172
|
-
},
|
|
173
|
-
handler: async () => {
|
|
174
|
-
var d;
|
|
175
|
-
const s = await ((d = m.value) == null ? void 0 : d.allData());
|
|
176
|
-
s != null && await a(B).downloadPortalTransactionReport(
|
|
177
|
-
a(o),
|
|
178
|
-
a(w)(s)
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
}, null, 8, ["button", "handler"])
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
p("div", J, [
|
|
185
|
-
i(P, {
|
|
186
|
-
modelValue: a(o),
|
|
187
|
-
"onUpdate:modelValue": n[3] || (n[3] = (s) => _(o) ? o.value = s : null)
|
|
188
|
-
}, null, 8, ["modelValue"])
|
|
189
|
-
]),
|
|
190
|
-
i(O, {
|
|
191
|
-
ref_key: "controller",
|
|
192
|
-
ref: m,
|
|
193
|
-
"column-defs": N,
|
|
194
|
-
"rows-defs": a(M),
|
|
195
|
-
paginate: (s, d) => a(k).readTransactions({
|
|
196
|
-
limit: s,
|
|
197
|
-
cursor: d,
|
|
198
|
-
status: a(r),
|
|
199
|
-
search: a(l),
|
|
200
|
-
start: a(o).startDate,
|
|
201
|
-
end: a(o).endDate
|
|
202
|
-
})
|
|
203
|
-
}, null, 8, ["rows-defs", "paginate"])
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}, 8, ["title", "description"]);
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
export {
|
|
211
|
-
_e as default
|
|
212
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as n, openBlock as r, createBlock as a, withCtx as c, createElementVNode as i, unref as s } from "vue";
|
|
2
|
-
import { g as p, a as d } from "./assets-CB7rE-mh.js";
|
|
3
|
-
import "@feedmepos/ui-library";
|
|
4
|
-
const u = ["src"], f = /* @__PURE__ */ e({
|
|
5
|
-
__name: "Gateway",
|
|
6
|
-
props: {
|
|
7
|
-
row: {},
|
|
8
|
-
data: {}
|
|
9
|
-
},
|
|
10
|
-
setup(t) {
|
|
11
|
-
return (m, l) => {
|
|
12
|
-
const o = n("FmTooltip");
|
|
13
|
-
return r(), a(o, {
|
|
14
|
-
variant: "plain",
|
|
15
|
-
placement: "top",
|
|
16
|
-
content: t.row.original.gateway,
|
|
17
|
-
"hide-arrow": !0
|
|
18
|
-
}, {
|
|
19
|
-
default: c(() => [
|
|
20
|
-
i("img", {
|
|
21
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
22
|
-
src: s(p)(t.row.original.gateway)
|
|
23
|
-
}, null, 8, u)
|
|
24
|
-
]),
|
|
25
|
-
_: 1
|
|
26
|
-
}, 8, ["content"]);
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}), _ = ["src"], x = /* @__PURE__ */ e({
|
|
30
|
-
__name: "Method",
|
|
31
|
-
props: {
|
|
32
|
-
row: {},
|
|
33
|
-
data: {}
|
|
34
|
-
},
|
|
35
|
-
setup(t) {
|
|
36
|
-
return (m, l) => {
|
|
37
|
-
const o = n("FmTooltip");
|
|
38
|
-
return r(), a(o, {
|
|
39
|
-
variant: "plain",
|
|
40
|
-
placement: "top",
|
|
41
|
-
content: t.row.original.method.issuer,
|
|
42
|
-
"hide-arrow": !0
|
|
43
|
-
}, {
|
|
44
|
-
default: c(() => [
|
|
45
|
-
i("img", {
|
|
46
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
47
|
-
src: s(d)(t.row.original.method.issuer, t.row.original.method.variant)
|
|
48
|
-
}, null, 8, _)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["content"]);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
f as _,
|
|
57
|
-
x as a
|
|
58
|
-
};
|