@feedmepos/mf-payment 1.11.15 → 1.11.17-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +64 -0
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CJUBrKfE.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpSmJgWn.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-aCJzDfGx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BVqrbU1b.js} +3 -3
  4. package/dist/{Chargeback-CCZfMX0Y.js → Chargeback-BqQYNBGo.js} +6 -6
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BX87Rkc9.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DERNbQ3k.js} +473 -473
  6. package/dist/{ExternalTerminal-BPJwtNer.js → ExternalTerminal-fNOdfUBA.js} +7 -7
  7. package/dist/FoodCourtPayoutAccount-DNAcTdWF.js +187 -0
  8. package/dist/FoodCourtSettlement-CTtJEJ7Q.js +68 -0
  9. package/dist/FoodCourtTransaction-BaqOpZ2h.js +212 -0
  10. package/dist/Method.vue_vue_type_script_setup_true_lang-CYxMDr_T.js +58 -0
  11. package/dist/{OnboardForm--W6MA25W.js → OnboardForm-B4r4MFFi.js} +6 -6
  12. package/dist/{OnboardForm-zE4cuNN3.js → OnboardForm-Bz_kBQ_2.js} +694 -631
  13. package/dist/{OnboardSubmission-qS1nzaFM.js → OnboardSubmission-D_Mi1LR5.js} +6 -6
  14. package/dist/OnboardSubmission-GAG1q9Cu.js +733 -0
  15. package/dist/{PaymentCheckout-D_NGmznR.js → PaymentCheckout-BCy5_Qc8.js} +2 -2
  16. package/dist/{PayoutAccount-Di3pYzdJ.js → PayoutAccount-9jZqReid.js} +7 -7
  17. package/dist/PayoutAccount-BDdUpPUJ.js +405 -0
  18. package/dist/{PayoutAccountSetting-0tERQB3Q.js → PayoutAccountSetting-CbRrZ-uL.js} +7 -7
  19. package/dist/{Restaurant-B5GuoD5g.js → Restaurant-yzTw6u3J.js} +5 -5
  20. package/dist/{RestaurantSetting-CjoPVc5q.js → RestaurantSetting-LtwUZbiZ.js} +22 -8
  21. package/dist/Settlement-BTNKWaS6.js +510 -0
  22. package/dist/{Settlement-BYC3cpqm.js → Settlement-DKC-8m5B.js} +3 -3
  23. package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-hjz9Xw5x.js +132 -0
  24. package/dist/{SettlementTransactions-CLZqBioA.js → SettlementTransactions-B0wn4zEK.js} +106 -97
  25. package/dist/{SettlementTransactions-Bj19pnuE.js → SettlementTransactions-BA8lVRms.js} +5 -5
  26. package/dist/{Status.vue_vue_type_script_setup_true_lang-Byu1u7qn.js → Status.vue_vue_type_script_setup_true_lang-B8QvOL7Z.js} +1 -1
  27. package/dist/{Terminal-B1dxgUXS.js → Terminal-jqcSPL2f.js} +7 -7
  28. package/dist/{TerminalSetting-CKlz0oWq.js → TerminalSetting-IkoP5RPL.js} +776 -650
  29. package/dist/{TerminalTemplate-CmGXJgEX.js → TerminalTemplate-kSeKVJ-C.js} +5 -5
  30. package/dist/{TerminalTemplateSetting-pUK6zBfs.js → TerminalTemplateSetting-C7Q0ofoT.js} +6 -6
  31. package/dist/{Transaction-OIAlbaw-.js → Transaction-B9E6DQye.js} +16 -15
  32. package/dist/{Transaction-CJQebjH4.js → Transaction-CauQVnjl.js} +54 -52
  33. package/dist/{TransactionOld-cXJF0Orc.js → TransactionOld-fdLtZOUV.js} +10 -9
  34. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DeagNFgy.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Cm-r2le1.js} +1 -1
  35. package/dist/api/document/index.d.ts +2 -0
  36. package/dist/api/food-court/index.d.ts +31 -0
  37. package/dist/api/onboard-submission/index.d.ts +6 -1
  38. package/dist/api/terminal/index.d.ts +2 -1
  39. package/dist/{app-B_orez6m.js → app-LpRZG5SK.js} +10507 -9524
  40. package/dist/app.js +1 -1
  41. package/dist/{assets-D3Pi2PQM.js → assets-CU3fydSV.js} +47 -46
  42. package/dist/{grafana-CWeNnb1T.js → grafana-BBPv2vBQ.js} +1 -1
  43. package/dist/{index-C2rB5z2d.js → index-BFqUsoWz.js} +6827 -6833
  44. package/dist/{index-DSQBGDky.js → index-Be6BYI6Y.js} +52 -29
  45. package/dist/{index-sqSucYYa.js → index-CY-XsXFD.js} +1 -1
  46. package/dist/index-CazeCsOR.js +13 -0
  47. package/dist/{index-Cao_ELrY.js → index-CfdnF9Hu.js} +1 -1
  48. package/dist/{index-Ay9jLoV-.js → index-CnXoDo29.js} +1 -1
  49. package/dist/{index-JA6_vNKZ.js → index-DDRoa9oc.js} +2 -2
  50. package/dist/{index-B8Cre5qQ.js → index-DFb6LwIH.js} +39 -5
  51. package/dist/{index-BL39x2kM.js → index-DGBA5vc9.js} +1 -1
  52. package/dist/index-DYFngO0V.js +75 -0
  53. package/dist/{index-FJszgfpK.js → index-Da1J8lF1.js} +6 -1
  54. package/dist/{index-014CUHlg.js → index-DhTmRVyJ.js} +1 -1
  55. package/dist/{index-BfJbudkb.js → index-T3wrZJyq.js} +1 -1
  56. package/dist/index-j-zqgMuS.js +52 -0
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-C4iRjOFL.js → index.vue_vue_type_script_setup_true_lang-DiniY5At.js} +1 -1
  58. package/dist/{PayoutAccount-fD8ho-BH.js → mascot-side-DNc7naiM.js} +206 -598
  59. package/dist/model/onboard-submission.d.ts +5 -5
  60. package/dist/model/payout-account.d.ts +3 -2
  61. package/dist/{onboard-submission-n3XaOs1W.js → onboard-submission-CYp6UpDI.js} +4 -3
  62. package/dist/package.json +6 -6
  63. package/dist/{payout-account-BT_9hCd4.js → payout-account-B8ZjV2cD.js} +179 -169
  64. package/dist/router/food-court.d.ts +3 -0
  65. package/dist/router/index.d.ts +3 -1
  66. package/dist/stores/payoutAccount.d.ts +40 -38
  67. package/dist/style.css +1 -1
  68. package/dist/{tyro-BovmsorS.js → teya-UA6TM323.js} +3 -2
  69. package/dist/tsconfig.app.tsbuildinfo +1 -1
  70. package/dist/{useQuery-nKQ8fCJl.js → useQuery-BKgSfFAn.js} +1 -1
  71. package/dist/utils/food-court.d.ts +2 -0
  72. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
  73. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
  74. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
  75. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
  76. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +24 -24
  77. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
  78. package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +117 -0
  79. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +24 -24
  80. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +40 -38
  81. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +62 -60
  82. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +62 -60
  83. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +40 -38
  84. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +40 -38
  85. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +62 -60
  86. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  87. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
  88. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  89. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  90. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  91. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  92. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  93. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  94. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  95. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +32 -8
  96. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -4
  97. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +6 -4
  98. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -4
  99. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -4
  100. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -4
  101. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -4
  102. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -4
  103. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -4
  104. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +10 -4
  105. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -4
  106. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -4
  107. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -4
  108. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  109. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +38 -22
  110. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +38 -22
  111. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +38 -22
  112. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +38 -22
  113. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +38 -22
  114. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +38 -22
  115. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +38 -22
  116. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +38 -22
  117. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +38 -22
  118. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +38 -22
  119. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +38 -22
  120. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +38 -22
  121. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +38 -22
  122. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +38 -22
  123. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +38 -22
  124. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +38 -22
  125. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +38 -22
  126. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +38 -22
  127. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +38 -22
  128. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +38 -22
  129. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +38 -22
  130. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +38 -22
  131. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +38 -22
  132. package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +212 -0
  133. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +38 -22
  134. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +38 -22
  135. package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +30 -30
  136. package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +18 -18
  137. package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +18 -18
  138. package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +2 -0
  139. package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +2 -0
  140. package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +2 -0
  141. package/dist/views/onboard-submission/useTeyaConnect.d.ts +71 -0
  142. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +80 -76
  143. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
  144. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
  145. package/dist/views/settlement/SettlementTable.vue.d.ts +15 -5
  146. package/dist/views/settlement/SettlementTransactions.vue.d.ts +11 -1
  147. package/package.json +5 -5
  148. package/dist/Actions.vue_vue_type_script_setup_true_lang-BZajARcf.js +0 -118
  149. package/dist/OnboardSubmission-bQVeyRLu.js +0 -449
  150. package/dist/Settlement-CekZXSuy.js +0 -625
  151. package/dist/index-n58-Qewm.js +0 -62
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as E, openBlock as g, createElementBlock as A, toDisplayString as Y, resolveComponent as v, createBlock as C, withCtx as B, createElementVNode as w, unref as s, computed as S, normalizeClass as ee, createVNode as c, createCommentVNode as R, ref as p, Fragment as H, useModel as te, watch as W, resolveDynamicComponent as Z, mergeModels as L, createTextVNode as N, normalizeProps as ae, guardReactiveProps as ne, isRef as re, h as O } from "vue";
2
2
  import { h as le } from "./moment-h96o7c8I.js";
3
3
  import { useCoreStore as G } from "@feedmepos/mf-common";
4
- import { u as oe } from "./index-014CUHlg.js";
5
- import { _ as ie } from "./index.vue_vue_type_script_setup_true_lang-C4iRjOFL.js";
4
+ import { u as oe } from "./index-DhTmRVyJ.js";
5
+ import { _ as ie } from "./index.vue_vue_type_script_setup_true_lang-DiniY5At.js";
6
6
  import { _ as se } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { useSnackbar as Q, useDialogChild as ue, useDialog as me } from "@feedmepos/ui-library";
8
- import { e as h } from "./index-BfJbudkb.js";
8
+ import { e as h } from "./index-T3wrZJyq.js";
9
9
  import { c as de } from "./clipboard-4jh1WteU.js";
10
- import { g as ce } from "./assets-D3Pi2PQM.js";
10
+ import { g as ce } from "./assets-CU3fydSV.js";
11
11
  import { z as V, a as T } from "./validator-CTlVogBQ.js";
12
- import { _ as pe } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-aCJzDfGx.js";
13
- import { p as ve } from "./index-C2rB5z2d.js";
14
- import { e as j } from "./app-B_orez6m.js";
12
+ import { _ as pe } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BVqrbU1b.js";
13
+ import { p as ve } from "./index-BFqUsoWz.js";
14
+ import { e as j } from "./app-LpRZG5SK.js";
15
15
  import { u as z } from "./error-K1CakhA9.js";
16
16
  import { w as fe } from "./Modal-DB8M9o1T.js";
17
17
  const ye = /* @__PURE__ */ E({
@@ -0,0 +1,187 @@
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-BFqUsoWz.js";
5
+ import { _ as K } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
+ import { f as g } from "./index-DYFngO0V.js";
7
+ import { w as Q } from "./app-LpRZG5SK.js";
8
+ import { a as B, P as R } from "./payout-account-B8ZjV2cD.js";
9
+ import { m as X, _ as Z } from "./mascot-side-DNc7naiM.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
+ };
@@ -0,0 +1,68 @@
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-BFqUsoWz.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-DhTmRVyJ.js";
10
+ import { f as i } from "./index-DYFngO0V.js";
11
+ import { _ as k } from "./SettlementTable.vue_vue_type_script_setup_true_lang-hjz9Xw5x.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
+ };
@@ -0,0 +1,212 @@
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-BFqUsoWz.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-Cm-r2le1.js";
11
+ import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-DiniY5At.js";
12
+ import { f as k } from "./index-DYFngO0V.js";
13
+ import { t as B } from "./index-DGBA5vc9.js";
14
+ import { u as G } from "./index-DhTmRVyJ.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-CYxMDr_T.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
+ };
@@ -0,0 +1,58 @@
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-CU3fydSV.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
+ };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as gA, ref as x, computed as O, resolveComponent as S, openBlock as g, createElementBlock as p, createElementVNode as o, toDisplayString as I, renderSlot as kA, createCommentVNode as r, normalizeClass as NA, createBlock as G, withCtx as d, Fragment as X, createVNode as R, renderList as RA, createSlots as So, unref as U, watch as DA, onMounted as TA, onBeforeUnmount as $A, createTextVNode as FA, nextTick as JA, h as ZA, resolveDynamicComponent as wo } from "vue";
2
2
  import { z as N, a as D } from "./validator-CTlVogBQ.js";
3
- import { _ as mA, P as zA } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BX87Rkc9.js";
3
+ import { _ as mA, P as zA } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DERNbQ3k.js";
4
4
  import { useSnackbar as yA, useDialog as no, useFormChild as Wo } from "@feedmepos/ui-library";
5
- import { a as Mo } from "./onboard-submission-n3XaOs1W.js";
5
+ import { a as Mo } from "./onboard-submission-CYp6UpDI.js";
6
6
  import { useCoreStore as to, useI18n as Co } from "@feedmepos/mf-common";
7
- import { o as lA } from "./index-B8Cre5qQ.js";
8
- import { p as ao } from "./index-sqSucYYa.js";
9
- import { u as vA } from "./index-C2rB5z2d.js";
7
+ import { o as lA } from "./index-DFb6LwIH.js";
8
+ import { p as ao } from "./index-CY-XsXFD.js";
9
+ import { u as vA } from "./index-BFqUsoWz.js";
10
10
  import { s as po } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as Go } from "./payout-account-BT_9hCd4.js";
11
+ import { P as Go } from "./payout-account-B8ZjV2cD.js";
12
12
  import { useRouter as Vo } from "vue-router";
13
13
  import { _ as eo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const To = { class: "flex items-center justify-between gap-8" }, ko = { class: "flex items-center" }, mo = { class: "justify-self-center font-semibold" }, zo = {