@feedmepos/mf-payment 1.11.21-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.
Files changed (162) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-DEkSpYbw.js +118 -0
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-tIIhKqfC.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZeyS_-_.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CokgK9dU.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BGU64S5Z.js} +3 -3
  4. package/dist/{Chargeback-BSNm5Whb.js → Chargeback-DwXllRT4.js} +9 -9
  5. 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
  6. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Begw8inp.js → DocumentViewer.vue_vue_type_script_setup_true_lang-saQlwl6a.js} +857 -857
  7. package/dist/{ExternalTerminal-BtiirHH7.js → ExternalTerminal-DWnv8BaM.js} +31 -31
  8. package/dist/{OnboardForm-Cgcuf0r6.js → OnboardForm--to1SX2z.js} +631 -694
  9. package/dist/{OnboardForm-DOb23ll1.js → OnboardForm-BWIWimOG.js} +8 -8
  10. package/dist/OnboardSubmission-BtiI1ewF.js +449 -0
  11. package/dist/{OnboardSubmission-CC0ZX55H.js → OnboardSubmission-DFhK_eus.js} +7 -7
  12. package/dist/{PaymentCheckout-CVaNIydV.js → PaymentCheckout-CsDfQl6k.js} +4 -4
  13. package/dist/{mascot-side-DfHFKGca.js → PayoutAccount-DtUHIt8d.js} +598 -206
  14. package/dist/{PayoutAccount-BIjtYzcj.js → PayoutAccount-DxC8i69H.js} +9 -9
  15. package/dist/{PayoutAccountSetting-B9lSTTDX.js → PayoutAccountSetting-z-TySDXR.js} +10 -10
  16. package/dist/{Restaurant-CcINdDm6.js → Restaurant-3NdsiWwv.js} +5 -5
  17. package/dist/{RestaurantSetting-BUO3jAIx.js → RestaurantSetting-Cyn1i8dn.js} +9 -23
  18. package/dist/Settlement--SIL-7He.js +625 -0
  19. package/dist/{Settlement-Dl8kbvs7.js → Settlement-CiKtgAZ4.js} +5 -5
  20. package/dist/{SettlementTransactions-gAwDZgI5.js → SettlementTransactions-C52wiVAb.js} +6 -6
  21. package/dist/{SettlementTransactions-Bw8vsUSE.js → SettlementTransactions-CI2SHJB3.js} +97 -106
  22. package/dist/{Status.vue_vue_type_script_setup_true_lang-Cz1jdrK-.js → Status.vue_vue_type_script_setup_true_lang-DgqA7PhV.js} +1 -1
  23. package/dist/{Terminal-s3fZ4Ger.js → Terminal-Cx-X-ik5.js} +19 -19
  24. package/dist/{TerminalSetting-CKYdb1AZ.js → TerminalSetting-DY0EYdD-.js} +650 -776
  25. package/dist/{TerminalTemplate-W2SBnJbf.js → TerminalTemplate-BORrJdEH.js} +7 -7
  26. package/dist/{TerminalTemplateSetting-MhWFtpIH.js → TerminalTemplateSetting-CYaaQ5jC.js} +6 -6
  27. package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js → TextInputDialog.vue_vue_type_script_setup_true_lang-CJ29Mqtm.js} +1 -1
  28. package/dist/{Transaction-DG9T1XRw.js → Transaction-Bj9ckoKD.js} +19 -20
  29. package/dist/{Transaction-Cm5l0iG4.js → Transaction-D1W9J-YG.js} +54 -56
  30. package/dist/{TransactionOld-CIvl12-V.js → TransactionOld-C-3Y9idi.js} +11 -12
  31. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-CjzPJbri.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C6ybTX_E.js} +2 -2
  32. package/dist/api/document/index.d.ts +0 -2
  33. package/dist/api/onboard-submission/index.d.ts +1 -6
  34. package/dist/api/terminal/index.d.ts +1 -2
  35. package/dist/{app-CviOqqR4.js → app-C8rDUQ-r.js} +12352 -14195
  36. package/dist/app.js +1 -1
  37. package/dist/{assets-C5f-_lr4.js → assets-QZbz5BYj.js} +46 -47
  38. package/dist/components/CursorTable/index.vue.d.ts +21 -3
  39. package/dist/components/PagingTable/index.vue.d.ts +9 -3
  40. package/dist/{grafana-BuGjOOOM.js → grafana-CHfYDJ1b.js} +4 -4
  41. package/dist/{index-BJUwhq11.js → index-4KwdYYMe.js} +2 -2
  42. package/dist/{index-CU4n4Gc1.js → index-7ofYlGzn.js} +1 -1
  43. package/dist/index-BgS9t01N.js +62 -0
  44. package/dist/{index-DRo7-Kdv.js → index-Bgh4RGim.js} +2 -2
  45. package/dist/{index-BQiPmPK1.js → index-CX2hs-UQ.js} +1 -1
  46. package/dist/{index-zSjouiil.js → index-CX9xj_f6.js} +1 -6
  47. package/dist/index-CdIL37va.js +33692 -0
  48. package/dist/{index-CquFJ1TU.js → index-DVsHI6PR.js} +29 -52
  49. package/dist/{index-BanBtFr8.js → index-Yt_qv8lG.js} +5 -39
  50. package/dist/index-mU9AofgQ.js +137 -0
  51. package/dist/{index-B2bh5bmh.js → index-x-AN2d5y.js} +2 -2
  52. package/dist/{index-C3VarNn8.js → index-yTZ7Gd-r.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DiKuvTLi.js → index.vue_vue_type_script_setup_true_lang-CtE5UAGa.js} +1 -1
  54. package/dist/mf-payment.css +1 -0
  55. package/dist/model/onboard-submission.d.ts +5 -5
  56. package/dist/model/payout-account.d.ts +2 -3
  57. package/dist/{moment-h96o7c8I.js → moment-FRs5-R1e.js} +1194 -1067
  58. package/dist/{onboard-submission-BCiBZhlj.js → onboard-submission-BdIQCrc0.js} +7 -8
  59. package/dist/package.json +76 -18
  60. package/dist/payout-account-CKYWpyP9.js +466 -0
  61. package/dist/router/index.d.ts +1 -3
  62. package/dist/stores/payoutAccount.d.ts +38 -40
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{teya-UA6TM323.js → tyro-BovmsorS.js} +2 -3
  65. package/dist/{useQuery-BqVESg1n.js → useQuery-CkPLx8V5.js} +1 -1
  66. package/dist/{validator-CTlVogBQ.js → validator-Bz2eU53Y.js} +6 -6
  67. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
  68. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
  69. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
  70. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
  71. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +24 -24
  72. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
  73. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +24 -24
  74. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +38 -40
  75. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +60 -62
  76. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +60 -62
  77. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +38 -40
  78. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +38 -40
  79. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +60 -62
  80. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  81. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
  82. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  83. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  84. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  85. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  86. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  87. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  88. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  89. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +8 -32
  90. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -6
  91. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -6
  92. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -6
  93. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +4 -6
  94. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -6
  95. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -6
  96. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -6
  97. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -6
  98. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -10
  99. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -6
  100. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -6
  101. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -6
  102. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  103. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +22 -38
  104. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +22 -38
  105. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +22 -38
  106. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +22 -38
  107. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +22 -38
  108. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +22 -38
  109. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +22 -38
  110. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +22 -38
  111. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +22 -38
  112. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +22 -38
  113. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +22 -38
  114. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +22 -38
  115. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +22 -38
  116. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +22 -38
  117. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +22 -38
  118. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +22 -38
  119. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +22 -38
  120. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +22 -38
  121. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +22 -38
  122. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +22 -38
  123. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +22 -38
  124. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +22 -38
  125. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +22 -38
  126. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +22 -38
  127. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +22 -38
  128. package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +30 -30
  129. package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +18 -18
  130. package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +18 -18
  131. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +76 -80
  132. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
  133. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
  134. package/dist/views/settlement/SettlementTable.vue.d.ts +5 -15
  135. package/dist/views/settlement/SettlementTransactions.vue.d.ts +1 -11
  136. package/package.json +16 -17
  137. package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +0 -64
  138. package/dist/FoodCourtPayoutAccount-CX2rxeS-.js +0 -187
  139. package/dist/FoodCourtSettlement-x-g0xDhh.js +0 -68
  140. package/dist/FoodCourtTransaction-BUXShUiR.js +0 -212
  141. package/dist/Method.vue_vue_type_script_setup_true_lang-DQkiA5Z_.js +0 -58
  142. package/dist/OnboardSubmission-DJODM-eE.js +0 -733
  143. package/dist/PayoutAccount-Y0p_Sz-0.js +0 -405
  144. package/dist/Settlement-C6nz9feY.js +0 -510
  145. package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-BeXqDk44.js +0 -132
  146. package/dist/api/food-court/index.d.ts +0 -31
  147. package/dist/index-B7Q8ctGL.js +0 -131
  148. package/dist/index-BZyPNY4u.js +0 -75
  149. package/dist/index-CHnkD2RB.js +0 -32927
  150. package/dist/index-CazeCsOR.js +0 -13
  151. package/dist/index-j-zqgMuS.js +0 -52
  152. package/dist/payout-account-t2cftVHc.js +0 -474
  153. package/dist/router/context-guard.d.ts +0 -3
  154. package/dist/router/food-court.d.ts +0 -3
  155. package/dist/style.css +0 -1
  156. package/dist/utils/food-court.d.ts +0 -2
  157. package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +0 -117
  158. package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +0 -212
  159. package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +0 -2
  160. package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +0 -2
  161. package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +0 -2
  162. 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-CHnkD2RB.js";
5
- import { _ as K } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
- import { f as g } from "./index-BZyPNY4u.js";
7
- import { w as Q } from "./app-CviOqqR4.js";
8
- import { a as B, P as R } from "./payout-account-t2cftVHc.js";
9
- import { m as X, _ as Z } from "./mascot-side-DfHFKGca.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-CHnkD2RB.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-B7Q8ctGL.js";
10
- import { f as i } from "./index-BZyPNY4u.js";
11
- import { _ as k } from "./SettlementTable.vue_vue_type_script_setup_true_lang-BeXqDk44.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-CHnkD2RB.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-CjzPJbri.js";
11
- import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-DiKuvTLi.js";
12
- import { f as k } from "./index-BZyPNY4u.js";
13
- import { t as B } from "./index-B2bh5bmh.js";
14
- import { u as G } from "./index-B7Q8ctGL.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-DQkiA5Z_.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-C5f-_lr4.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
- };