@feedmepos/mf-payment 1.5.29-dev → 1.5.30-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 (47) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-DLw0ITPH.js +118 -0
  2. package/dist/{Chargeback-CocH4bON.js → Chargeback-Bu9myaUA.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-tGPnCbHL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-VTOtgJqq.js} +1 -1
  4. package/dist/{OnboardForm-BLk46c4b.js → OnboardForm-CHS-Wn8q.js} +5 -5
  5. package/dist/{OnboardForm-CqohYc7w.js → OnboardForm-r4gfwRzj.js} +5 -5
  6. package/dist/{OnboardSubmission-CNJ-CYki.js → OnboardSubmission-Cs9HaAOd.js} +5 -5
  7. package/dist/{OnboardSubmission-CIZuFLWF.js → OnboardSubmission-DrhAUv7t.js} +2 -2
  8. package/dist/{PayoutAccount-Qzl0EU8D.js → PayoutAccount-Cw8mr3AT.js} +4 -4
  9. package/dist/{PayoutAccount-2vZvDUNZ.js → PayoutAccount-yapBZD1_.js} +5 -5
  10. package/dist/{PayoutAccountSetting-DfrRhtcP.js → PayoutAccountSetting-l63lJr70.js} +4 -4
  11. package/dist/{Restaurant-Ckh7iZ9v.js → Restaurant-DT1CBXoU.js} +4 -4
  12. package/dist/{RestaurantSetting-CeHORT_l.js → RestaurantSetting-BZLLNlRl.js} +3 -3
  13. package/dist/{Settlement-DWj3kJpX.js → Settlement-D6Qq9kGF.js} +3 -3
  14. package/dist/{Settlement-Dkf0_6WU.js → Settlement-Dv0jEXTB.js} +3 -3
  15. package/dist/SettlementTransactions-BCk6M7qB.js +300 -0
  16. package/dist/{SettlementTransactions-B_-EF9FQ.js → SettlementTransactions-JFsFu_Ht.js} +112 -136
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BRylU6yC.js → Status.vue_vue_type_script_setup_true_lang-Bc_fNAZo.js} +1 -1
  18. package/dist/{Terminal-CO1Qqx4X.js → Terminal-CDMAnVwE.js} +5 -5
  19. package/dist/{TerminalSetting-14CDkcsr.js → TerminalSetting-DK9AiBdT.js} +3 -3
  20. package/dist/{Transaction-LS_h6ecG.js → Transaction-N5r7T7V9.js} +151 -176
  21. package/dist/{Transaction-CkZKTFNI.js → Transaction-vwCDt0Pw.js} +23 -23
  22. package/dist/{TransactionOld-Bivy85L4.js → TransactionOld-BHppAR5F.js} +10 -10
  23. package/dist/{app-DUlTcsCJ.js → app-CA6LqLXm.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/assets-BX4ZyCcr.js +169 -0
  26. package/dist/{views/settlement/cell/Status.vue.d.ts → components/TransactionStatus.vue.d.ts} +0 -2
  27. package/dist/{grafana-D_fIUdUm.js → grafana-CoN-qHoW.js} +1 -1
  28. package/dist/{index-D7IY2VY_.js → index-BF7EP59L.js} +1 -1
  29. package/dist/{index-BganQIV3.js → index-Bh-678tK.js} +1 -1
  30. package/dist/{index-cOl7pH9_.js → index-CIfxqNP6.js} +1 -1
  31. package/dist/{index-DGCnviAy.js → index-CZgeE6DH.js} +1 -1
  32. package/dist/{index-CsxAKwXK.js → index-CbznfaxU.js} +1 -1
  33. package/dist/{index-DEC3wCyK.js → index-DLjeORZk.js} +1 -1
  34. package/dist/{index-CcCcgcKj.js → index-Dt8OKmo1.js} +1 -0
  35. package/dist/{index-C87vsLzf.js → index-Rhg526GN.js} +1 -1
  36. package/dist/{index-WuRUC8sI.js → index-pYSEWi8A.js} +2 -2
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-H0-KLC0F.js → index.vue_vue_type_script_setup_true_lang-DUmgGiHt.js} +1 -1
  38. package/dist/package.json +2 -2
  39. package/dist/{payout-account-DyUwLBkF.js → payout-account-Bv0sunto.js} +3 -3
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +2 -2
  42. package/dist/Actions.vue_vue_type_script_setup_true_lang-DGrZmVUQ.js +0 -144
  43. package/dist/SettlementTransactions-BfDzz9CE.js +0 -324
  44. package/dist/assets-zMyaBFbU.js +0 -144
  45. package/dist/views/admin/settlement/cell/Status.vue.d.ts +0 -7
  46. package/dist/views/admin/transaction/cell/Status.vue.d.ts +0 -7
  47. package/dist/views/transaction/cell/Status.vue.d.ts +0 -7
@@ -0,0 +1,300 @@
1
+ import { defineComponent as $, resolveComponent as f, openBlock as C, createBlock as K, withCtx as i, createElementVNode as n, unref as a, ref as h, onMounted as D, watch as L, createVNode as o, toDisplayString as l, createTextVNode as d, h as k } from "vue";
2
+ import { u as G } from "./index-Dt8OKmo1.js";
3
+ import "@feedmepos/ui-library";
4
+ import { d as I } from "./dinero-CIVmXLL-.js";
5
+ import { g as H, a as P, _ as U, t as q } from "./assets-BX4ZyCcr.js";
6
+ import { t as J } from "./index-Bh-678tK.js";
7
+ import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
8
+ import { useRouter as W } from "vue-router";
9
+ import { s as X } from "./index-CZgeE6DH.js";
10
+ import { useI18n as Z, useCoreStore as ee } from "@feedmepos/mf-common";
11
+ import { h as te } from "./moment-h96o7c8I.js";
12
+ const ae = ["src"], ne = /* @__PURE__ */ $({
13
+ __name: "Gateway",
14
+ props: {
15
+ row: {},
16
+ data: {}
17
+ },
18
+ setup(u) {
19
+ return (t, b) => {
20
+ const y = f("FmTooltip");
21
+ return C(), K(y, {
22
+ variant: "plain",
23
+ placement: "top",
24
+ content: u.row.original.gateway,
25
+ "hide-arrow": !0
26
+ }, {
27
+ default: i(() => [
28
+ n("img", {
29
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
30
+ src: a(H)(u.row.original.gateway)
31
+ }, null, 8, ae)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["content"]);
35
+ };
36
+ }
37
+ }), le = ["src"], oe = /* @__PURE__ */ $({
38
+ __name: "Method",
39
+ props: {
40
+ row: {},
41
+ data: {}
42
+ },
43
+ setup(u) {
44
+ return (t, b) => {
45
+ const y = f("FmTooltip");
46
+ return C(), K(y, {
47
+ variant: "plain",
48
+ placement: "top",
49
+ content: u.row.original.method.issuer,
50
+ "hide-arrow": !0
51
+ }, {
52
+ default: i(() => [
53
+ n("img", {
54
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
55
+ src: a(P)(u.row.original.method.issuer, u.row.original.method.variant)
56
+ }, null, 8, le)
57
+ ]),
58
+ _: 1
59
+ }, 8, ["content"]);
60
+ };
61
+ }
62
+ }), se = { class: "flex mb-6" }, re = { class: "my-6 w-[240px]" }, he = /* @__PURE__ */ $({
63
+ __name: "SettlementTransactions",
64
+ props: {
65
+ settlementId: {
66
+ type: String,
67
+ required: !0
68
+ }
69
+ },
70
+ setup(u) {
71
+ const { t } = Z(), b = u, { isLoading: y, startAsyncCall: E } = G(!0), { currentRestaurant: M } = ee(), O = W(), m = h(), x = h([]), w = h([]);
72
+ async function R(s = !1) {
73
+ E(async () => {
74
+ s || (m.value = await X.readRestaurantSettlementById(b.settlementId));
75
+ const e = await J.readRestaurantTransactionsBySettlementId(b.settlementId);
76
+ x.value = q(e), w.value = x.value;
77
+ });
78
+ }
79
+ function N() {
80
+ R();
81
+ }
82
+ D(N), L(M, N);
83
+ const S = h(""), Y = [
84
+ {
85
+ header: () => t("payment.settlements.dialog.feedme.id"),
86
+ accessorKey: "id"
87
+ },
88
+ {
89
+ header: () => t("payment.settlements.dialog.feedme.pay_id"),
90
+ accessorKey: "payId"
91
+ },
92
+ {
93
+ header: () => t("payment.settlements.dialog.feedme.gateway"),
94
+ accessorKey: "gateway",
95
+ meta: {
96
+ textAlign: "center"
97
+ },
98
+ cell: ({ cell: s, row: e }) => e.original.method ? k(ne, { row: e, data: s.getValue() }) : ""
99
+ },
100
+ {
101
+ header: () => t("payment.settlements.dialog.feedme.method"),
102
+ accessorKey: "method",
103
+ meta: {
104
+ textAlign: "center"
105
+ },
106
+ cell: ({ cell: s, row: e }) => e.original.method ? k(oe, { row: e, data: s.getValue() }) : ""
107
+ },
108
+ {
109
+ header: () => t("payment.settlements.dialog.feedme.payFor"),
110
+ accessorKey: "payFor"
111
+ },
112
+ {
113
+ header: () => t("payment.settlements.dialog.feedme.type"),
114
+ accessorKey: "type",
115
+ meta: {
116
+ textAlign: "center"
117
+ },
118
+ cell: ({ row: s }) => {
119
+ if (!s.original.method)
120
+ return "";
121
+ const e = s.original.method.variant;
122
+ return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
123
+ }
124
+ },
125
+ {
126
+ header: () => t("payment.settlements.dialog.feedme.status"),
127
+ accessorKey: "status",
128
+ cell: ({ cell: s }) => k(U, { data: s.getValue() })
129
+ },
130
+ {
131
+ header: () => t("payment.settlements.dialog.feedme.transaction_at"),
132
+ accessorKey: "transactionAt",
133
+ meta: {
134
+ width: "180px"
135
+ }
136
+ },
137
+ {
138
+ header: () => t("payment.settlements.dialog.feedme.sales_amount"),
139
+ accessorKey: "amount"
140
+ },
141
+ {
142
+ header: () => t("payment.settlements.dialog.feedme.fee"),
143
+ accessorKey: "fee"
144
+ },
145
+ {
146
+ header: () => t("payment.settlements.dialog.feedme.settlement_amount"),
147
+ accessorKey: "payout"
148
+ }
149
+ ], _ = h("");
150
+ let F;
151
+ return L(_, async () => {
152
+ F && clearTimeout(F), F = setTimeout(() => {
153
+ var s = new RegExp(_.value, "i");
154
+ w.value = x.value.filter((e) => {
155
+ const v = JSON.stringify(e);
156
+ return s.test(v);
157
+ });
158
+ }, 700);
159
+ }), (s, e) => {
160
+ var V, A;
161
+ const v = f("FmCardHeader"), g = f("FmCardSection"), T = f("FmCard"), j = f("FmSearch"), z = f("FmTable");
162
+ return C(), K(Q, {
163
+ title: `${a(t)("payment.settlements.dialog.title")} (${(V = m.value) == null ? void 0 : V._id})`,
164
+ description: `${a(t)("payment.settlements.dialog.date")}: ${a(te)((A = m.value) == null ? void 0 : A.createdAt).format("YYYY-MM-DD")}`,
165
+ loading: a(y),
166
+ onBack: a(O).back
167
+ }, {
168
+ default: i(() => [
169
+ n("div", se, [
170
+ o(T, {
171
+ horizontal: "",
172
+ class: "flex-1 p-6",
173
+ variant: "elevated"
174
+ }, {
175
+ default: i(() => [
176
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
177
+ default: i(() => [
178
+ o(v, {
179
+ class: "p-0",
180
+ title: a(t)("payment.settlements.dialog.info.transaction.title"),
181
+ subtitle: ""
182
+ }, null, 8, ["title"]),
183
+ o(g, { class: "p-0" }, {
184
+ default: i(() => {
185
+ var r, c, p, B;
186
+ return [
187
+ n("b", null, l(a(t)("payment.settlements.dialog.info.transaction.for")), 1),
188
+ d(": " + l((c = (r = m.value) == null ? void 0 : r.store) == null ? void 0 : c.event) + " ", 1),
189
+ e[2] || (e[2] = n("br", null, null, -1)),
190
+ n("b", null, l(a(t)("payment.settlements.dialog.info.transaction.reference")), 1),
191
+ d(": " + l((B = (p = m.value) == null ? void 0 : p.store) == null ? void 0 : B.id), 1),
192
+ e[3] || (e[3] = n("br", null, null, -1)),
193
+ n("b", null, l(a(t)("payment.settlements.dialog.info.transaction.count")), 1),
194
+ d(": " + l(x.value.length), 1)
195
+ ];
196
+ }),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ _: 1
204
+ }),
205
+ o(T, {
206
+ horizontal: "",
207
+ class: "flex-1 p-6 mx-6",
208
+ variant: "elevated"
209
+ }, {
210
+ default: i(() => [
211
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
212
+ default: i(() => [
213
+ o(v, {
214
+ class: "p-0",
215
+ title: a(t)("payment.settlements.dialog.info.bank.title"),
216
+ subtitle: ""
217
+ }, null, 8, ["title"]),
218
+ o(g, { class: "p-0" }, {
219
+ default: i(() => {
220
+ var r, c, p;
221
+ return [
222
+ n("b", null, l(a(t)("payment.settlements.dialog.info.bank.for")), 1),
223
+ d(": " + l((r = m.value) == null ? void 0 : r.beneficiaryBank.name), 1),
224
+ e[4] || (e[4] = n("br", null, null, -1)),
225
+ n("b", null, l(a(t)("payment.settlements.dialog.info.bank.name")), 1),
226
+ d(": " + l((c = m.value) == null ? void 0 : c.beneficiaryBank.holderName), 1),
227
+ e[5] || (e[5] = n("br", null, null, -1)),
228
+ n("b", null, l(a(t)("payment.settlements.dialog.info.bank.number")), 1),
229
+ d(": " + l((p = m.value) == null ? void 0 : p.beneficiaryBank.accountNumber), 1)
230
+ ];
231
+ }),
232
+ _: 1
233
+ })
234
+ ]),
235
+ _: 1
236
+ })
237
+ ]),
238
+ _: 1
239
+ }),
240
+ o(T, {
241
+ horizontal: "",
242
+ class: "flex-1 p-6",
243
+ variant: "elevated"
244
+ }, {
245
+ default: i(() => [
246
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
247
+ default: i(() => [
248
+ o(v, {
249
+ class: "p-0",
250
+ title: a(t)("payment.settlements.dialog.info.payout.title"),
251
+ subtitle: ""
252
+ }, null, 8, ["title"]),
253
+ o(g, { class: "p-0" }, {
254
+ default: i(() => {
255
+ var r, c, p;
256
+ return [
257
+ n("b", null, l(a(t)("payment.settlements.dialog.info.payout.amount")), 1),
258
+ d(": " + l(a(I)((r = m.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
259
+ e[6] || (e[6] = n("br", null, null, -1)),
260
+ n("b", null, l(a(t)("payment.settlements.dialog.info.payout.fee")), 1),
261
+ d(": " + l(a(I)((c = m.value) == null ? void 0 : c.totalFee).toFormat("$0.00")), 1),
262
+ e[7] || (e[7] = n("br", null, null, -1)),
263
+ n("b", null, l(a(t)("payment.settlements.dialog.info.payout.payout")), 1),
264
+ d(": " + l(a(I)((p = m.value) == null ? void 0 : p.totalPayout).toFormat("$0.00")), 1)
265
+ ];
266
+ }),
267
+ _: 1
268
+ })
269
+ ]),
270
+ _: 1
271
+ })
272
+ ]),
273
+ _: 1
274
+ })
275
+ ]),
276
+ n("div", re, [
277
+ o(j, {
278
+ modelValue: _.value,
279
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => _.value = r),
280
+ placeholder: a(t)("payment.settlements.dialog.search")
281
+ }, null, 8, ["modelValue", "placeholder"])
282
+ ]),
283
+ o(z, {
284
+ modelValue: S.value,
285
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => S.value = r),
286
+ "shrink-at": !1,
287
+ "search-value": _.value,
288
+ "row-data": w.value,
289
+ "column-defs": Y,
290
+ loading: a(y)
291
+ }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
292
+ ]),
293
+ _: 1
294
+ }, 8, ["title", "description", "loading", "onBack"]);
295
+ };
296
+ }
297
+ });
298
+ export {
299
+ he as default
300
+ };