@feedmepos/mf-payment 1.0.18-beta.6 → 1.0.19-beta.1

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 (59) hide show
  1. package/dist/{PayoutAccount-CWMAMv9E.js → PayoutAccount-CoLimRQM.js} +194 -192
  2. package/dist/{PayoutAccount-DCw9y3_Y.js → PayoutAccount-D0RGHtA4.js} +5 -5
  3. package/dist/{PayoutAccountSetting-Cuqsl9Tk.js → PayoutAccountSetting-CN-tUZQf.js} +3 -3
  4. package/dist/{Restaurant-B_f6jZlG.js → Restaurant-gzN6-DY5.js} +4 -4
  5. package/dist/{RestaurantSetting-61NADWkw.js → RestaurantSetting-DpKWG2Bq.js} +3 -3
  6. package/dist/{Settlement-DCFQ0FVT.js → Settlement-DJR3WX8B.js} +15 -18
  7. package/dist/{Settlement-gWG5fLDE.js → Settlement-DmFn25M9.js} +3 -3
  8. package/dist/{SettlementTransactions-Vp2C4iTs.js → SettlementTransactions-BaNNAOpB.js} +4 -4
  9. package/dist/{SettlementTransactions-CYQuc2vo.js → SettlementTransactions-CZ1L6_8_.js} +4 -4
  10. package/dist/{Terminal-Y_mwTYoV.js → Terminal-l6bGKjPy.js} +5 -5
  11. package/dist/{TerminalSetting-The30mmc.js → TerminalSetting-DD2tcdKq.js} +3 -3
  12. package/dist/TerminalTransaction-BFE-U3vO.js +333 -0
  13. package/dist/TerminalTransaction-BMyX5RFn.js +589 -0
  14. package/dist/{Transaction-CynGcEWo.js → Transaction-goo-qXa6.js} +5 -5
  15. package/dist/{Transaction-DQboDqME.js → Transaction-jrupEpuJ.js} +6 -6
  16. package/dist/{TransactionOld-CDUrRoTU.js → TransactionOld-CDoda2mV.js} +4 -4
  17. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-jgZcIJkl.js → TransactionTable.vue_vue_type_script_setup_true_lang-DtsUuONi.js} +37 -24
  18. package/dist/{app-C_XWN93C.js → app-D4MIIhHc.js} +179 -179
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-DcN1yBqB.js → assets-CB5Az-tE.js} +49 -37
  21. package/dist/{grafana-Iua_GDdK.js → grafana-DGLbMw2m.js} +1 -1
  22. package/dist/{index-0kpiv4D3.js → index-B2Mkv6Be.js} +1 -1
  23. package/dist/{index-CInv2G8c.js → index-BMrU1czH.js} +1 -1
  24. package/dist/{index-BkIed3CN.js → index-CTPgeznu.js} +1 -1
  25. package/dist/{index-B82q4UTt.js → index-Dp7enr5-.js} +11684 -11388
  26. package/dist/{index-BJiYmjQ4.js → index-T010-cPJ.js} +1 -1
  27. package/dist/{index-B4EmvVmQ.js → index-jzIFnMET.js} +22 -17
  28. package/dist/{index-CPy1JN5j.js → index-uiC4xdYO.js} +1 -1
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-BpqSwE1U.js → index.vue_vue_type_script_setup_true_lang-D4k8D2GE.js} +1 -1
  30. package/dist/package.json +2 -2
  31. package/dist/{payout-account-CjqfKSPy.js → payout-account-CxWcE_MB.js} +2 -2
  32. package/dist/stores/payoutAccount.d.ts +2 -2
  33. package/dist/{transaction-DqXd6x1T.js → transaction-CMiTtgGP.js} +22 -20
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +2 -2
  36. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +2 -2
  37. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +2 -2
  38. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  39. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  40. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  41. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  42. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  43. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  44. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  45. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -16
  46. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +18 -16
  47. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +18 -16
  48. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -16
  49. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +18 -16
  50. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +1 -1
  51. package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +7 -0
  52. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +4 -4
  53. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
  54. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
  55. package/dist/views/terminal-transaction/cell/Method.vue.d.ts +7 -0
  56. package/dist/views/transaction/cell/Method.vue.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/dist/TerminalTransaction-CagDukZo.js +0 -269
  59. package/dist/TerminalTransaction-D1H45URe.js +0 -526
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
2
- import { u as O } from "./index-CInv2G8c.js";
3
- import { _ as K } from "./index-B82q4UTt.js";
2
+ import { u as O } from "./index-BMrU1czH.js";
3
+ import { _ as K } from "./index-Dp7enr5-.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-CjqfKSPy.js";
6
- import { p as D } from "./index-CPy1JN5j.js";
5
+ import { P as V } from "./payout-account-CxWcE_MB.js";
6
+ import { p as D } from "./index-uiC4xdYO.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-BpqSwE1U.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-D4k8D2GE.js";
9
9
  import { useRouter as U } from "vue-router";
10
10
  import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
11
  const G = /* @__PURE__ */ y({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as S, resolveComponent as i, openBlock as v, createElementBlock as C, Fragment as B, createElementVNode as o, createVNode as u, withCtx as b, createTextVNode as g, toDisplayString as F, createCommentVNode as V, createBlock as P, ref as w, watch as R, computed as E, unref as k, isRef as M, h as T, onMounted as D, resolveDynamicComponent as _, normalizeProps as q, mergeProps as z } from "vue";
2
- import { p as $ } from "./index-CPy1JN5j.js";
3
- import { u as H } from "./index-B82q4UTt.js";
2
+ import { p as $ } from "./index-uiC4xdYO.js";
3
+ import { u as H } from "./index-Dp7enr5-.js";
4
4
  import { _ as K } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as O } from "vue-router";
6
- import { u as h } from "./index-CInv2G8c.js";
6
+ import { u as h } from "./index-BMrU1czH.js";
7
7
  import { P as U } from "./PDFViewer-xrBtzrlR.js";
8
8
  import { useSnackbar as G } from "@feedmepos/ui-library";
9
9
  import { u as L } from "./error-K1CakhA9.js";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as D, renderList as q, computed as C, watch as I, onMounted as N, unref as b, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-CInv2G8c.js";
2
+ import { u as O } from "./index-BMrU1czH.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-B82q4UTt.js";
5
+ import { u as G } from "./index-Dp7enr5-.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-0kpiv4D3.js";
7
+ import { r as H } from "./index-B2Mkv6Be.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-Iua_GDdK.js";
9
+ import { g as X } from "./grafana-DGLbMw2m.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
2
- import { g as T, b as R, u as E, e as U } from "./index-B82q4UTt.js";
2
+ import { g as T, b as R, u as E, e as U } from "./index-Dp7enr5-.js";
3
3
  import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as A } from "vue-router";
5
- import { u as L } from "./index-CInv2G8c.js";
5
+ import { u as L } from "./index-BMrU1czH.js";
6
6
  import { z as p, a as v } from "./validator-D5jtpt9A.js";
7
7
  import { useCoreStore as j } from "@feedmepos/mf-common";
8
- import { r as z } from "./index-0kpiv4D3.js";
8
+ import { r as z } from "./index-B2Mkv6Be.js";
9
9
  const _ = {
10
10
  async get(n) {
11
11
  return T(
@@ -1,14 +1,14 @@
1
- import { defineComponent as T, ref as x, computed as R, resolveComponent as w, openBlock as A, createBlock as C, h as Y, watch as M, createElementBlock as P, Fragment as I, createElementVNode as a, createVNode as n, withCtx as p, createTextVNode as b, toDisplayString as v, unref as u, onMounted as U, isRef as N, createCommentVNode as _ } from "vue";
2
- import { u as j } from "./index-B82q4UTt.js";
1
+ import { defineComponent as T, ref as x, computed as R, resolveComponent as w, openBlock as V, createBlock as C, h as Y, watch as M, createElementBlock as P, Fragment as I, createElementVNode as a, createVNode as n, withCtx as p, createTextVNode as b, toDisplayString as v, unref as u, onMounted as U, isRef as N, createCommentVNode as _ } from "vue";
2
+ import { u as j } from "./index-Dp7enr5-.js";
3
3
  import { h as D } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as q } from "@feedmepos/mf-common";
5
5
  import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as K } from "./index-BJiYmjQ4.js";
6
+ import { s as K } from "./index-T010-cPJ.js";
7
7
  import { useDialogChild as E, useDialog as O } from "@feedmepos/ui-library";
8
8
  import { d } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as h } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
10
  import { useRouter as L } from "vue-router";
11
- import { u as H } from "./index-CInv2G8c.js";
11
+ import { u as H } from "./index-BMrU1czH.js";
12
12
  import { _ as J } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as Q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js";
14
14
  import { _ as W } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -70,7 +70,7 @@ const G = /* @__PURE__ */ T({
70
70
  })));
71
71
  return (t, o) => {
72
72
  const e = w("FmTable");
73
- return A(), C(e, {
73
+ return V(), C(e, {
74
74
  modelValue: i.value,
75
75
  "onUpdate:modelValue": o[0] || (o[0] = (s) => i.value = s),
76
76
  "row-data": c.value,
@@ -138,7 +138,7 @@ const G = /* @__PURE__ */ T({
138
138
  })));
139
139
  return (t, o) => {
140
140
  const e = w("FmTable");
141
- return A(), C(e, {
141
+ return V(), C(e, {
142
142
  modelValue: i.value,
143
143
  "onUpdate:modelValue": o[0] || (o[0] = (s) => i.value = s),
144
144
  "row-data": c.value,
@@ -169,10 +169,7 @@ const G = /* @__PURE__ */ T({
169
169
  },
170
170
  {
171
171
  header: () => "Type",
172
- accessorKey: "group",
173
- meta: {
174
- textAlign: "center"
175
- }
172
+ accessorKey: "group"
176
173
  },
177
174
  {
178
175
  header: () => "Transaction At",
@@ -208,7 +205,7 @@ const G = /* @__PURE__ */ T({
208
205
  }, 700);
209
206
  }), (o, e) => {
210
207
  const s = w("FmCardHeader"), F = w("FmCardSection"), k = w("FmCard"), $ = w("FmSearch"), y = w("FmTable");
211
- return A(), P(I, null, [
208
+ return V(), P(I, null, [
212
209
  a("div", Z, [
213
210
  n(k, {
214
211
  horizontal: "",
@@ -369,7 +366,7 @@ const G = /* @__PURE__ */ T({
369
366
  }
370
367
  return U(k), M([c, l], k), (y, f) => {
371
368
  const B = w("FmTabs");
372
- return A(), C(z, {
369
+ return V(), C(z, {
373
370
  title: "Settlements",
374
371
  description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
375
372
  loading: !1
@@ -398,13 +395,13 @@ const G = /* @__PURE__ */ T({
398
395
  a("div", le, [
399
396
  n(W, {
400
397
  modelValue: u(l),
401
- "onUpdate:modelValue": f[0] || (f[0] = (V) => N(l) ? l.value = V : null)
398
+ "onUpdate:modelValue": f[0] || (f[0] = (A) => N(l) ? l.value = A : null)
402
399
  }, null, 8, ["modelValue"])
403
400
  ]),
404
401
  a("div", re, [
405
402
  n(B, {
406
403
  modelValue: u(r),
407
- "onUpdate:modelValue": f[1] || (f[1] = (V) => N(r) ? r.value = V : null),
404
+ "onUpdate:modelValue": f[1] || (f[1] = (A) => N(r) ? r.value = A : null),
408
405
  items: [
409
406
  {
410
407
  label: "FeedMe",
@@ -419,20 +416,20 @@ const G = /* @__PURE__ */ T({
419
416
  ]
420
417
  }, null, 8, ["modelValue"])
421
418
  ]),
422
- u(r) === "fiuu" ? (A(), C(X, {
419
+ u(r) === "fiuu" ? (V(), C(X, {
423
420
  key: 0,
424
421
  loading: u(i),
425
422
  data: e.value,
426
423
  onRowClick: $
427
424
  }, null, 8, ["loading", "data"])) : _("", !0),
428
- u(r) === "feedme" ? (A(), C(G, {
425
+ u(r) === "feedme" ? (V(), C(G, {
429
426
  key: 1,
430
427
  loading: u(i),
431
428
  data: o.value,
432
- onRowClick: f[2] || (f[2] = (V) => u(g).push({
429
+ onRowClick: f[2] || (f[2] = (A) => u(g).push({
433
430
  name: "mf-payment-settlement-transaction",
434
431
  params: {
435
- settlementId: V._id
432
+ settlementId: A._id
436
433
  }
437
434
  }))
438
435
  }, null, 8, ["loading", "data"])) : _("", !0)
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as C, ref as h, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
2
- import { u as D } from "./index-B82q4UTt.js";
2
+ import { u as D } from "./index-Dp7enr5-.js";
3
3
  import { h as g } from "./moment-h96o7c8I.js";
4
- import { s as c } from "./index-BJiYmjQ4.js";
4
+ import { s as c } from "./index-T010-cPJ.js";
5
5
  import { useSnackbar as T } from "@feedmepos/ui-library";
6
6
  import { d as v } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as q } from "vue-router";
9
9
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as O } from "./index-CInv2G8c.js";
10
+ import { u as O } from "./index-BMrU1czH.js";
11
11
  import { u as U } from "./error-K1CakhA9.js";
12
12
  import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  const z = /* @__PURE__ */ C({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as x, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-B82q4UTt.js";
2
+ import { e as E, u as q } from "./index-Dp7enr5-.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X } from "./assets-DcN1yBqB.js";
6
- import { t as P, a as Z } from "./transaction-DqXd6x1T.js";
5
+ import { g as W, a as X } from "./assets-CB5Az-tE.js";
6
+ import { t as P, a as Z } from "./transaction-CMiTtgGP.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-BJiYmjQ4.js";
9
+ import { s as ae } from "./index-T010-cPJ.js";
10
10
  import { u as ne } from "./error-K1CakhA9.js";
11
11
  import { w as oe } from "./Modal-DB8M9o1T.js";
12
12
  const re = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as z, watch as $, createVNode as a, createTextVNode as i, h } from "vue";
2
- import { e as C, u as G } from "./index-B82q4UTt.js";
2
+ import { e as C, u as G } from "./index-Dp7enr5-.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-DcN1yBqB.js";
6
- import { t as q, a as J } from "./transaction-DqXd6x1T.js";
5
+ import { g as Y, a as H } from "./assets-CB5Az-tE.js";
6
+ import { t as q, a as J } from "./transaction-CMiTtgGP.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-BJiYmjQ4.js";
9
+ import { s as X } from "./index-T010-cPJ.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as D, ref as k, onUpdated as ie, h as M, onMounted as me, Fragment as se, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as le, createVNode as _, resolveComponent as P, normalizeClass as pe, withCtx as q, createBlock as O, createCommentVNode as K, computed as ge, unref as S, watch as te, isRef as re } from "vue";
2
- import { e as Ce } from "./index-B82q4UTt.js";
2
+ import { e as Ce } from "./index-Dp7enr5-.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
- import { u as we } from "./index-CInv2G8c.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-BpqSwE1U.js";
4
+ import { u as we } from "./index-BMrU1czH.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-D4k8D2GE.js";
6
6
  import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
8
- import { t as x } from "./index-BkIed3CN.js";
8
+ import { t as x } from "./index-CTPgeznu.js";
9
9
  import { c as ue } from "./clipboard-4jh1WteU.js";
10
10
  import { useCoreStore as de } from "@feedmepos/mf-common";
11
- import { g as Se } from "./grafana-Iua_GDdK.js";
11
+ import { g as Se } from "./grafana-DGLbMw2m.js";
12
12
  import { u as Y } from "./error-K1CakhA9.js";
13
13
  import { z as ne, a as ae } from "./validator-D5jtpt9A.js";
14
14
  import { w as oe } from "./Modal-DB8M9o1T.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
2
- import { u as R, e as U } from "./index-B82q4UTt.js";
2
+ import { u as R, e as U } from "./index-Dp7enr5-.js";
3
3
  import { useRouter as E } from "vue-router";
4
- import { t as C } from "./index-BkIed3CN.js";
4
+ import { t as C } from "./index-CTPgeznu.js";
5
5
  import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as H } from "./index-CInv2G8c.js";
6
+ import { u as H } from "./index-BMrU1czH.js";
7
7
  import { useSnackbar as Q } from "@feedmepos/ui-library";
8
8
  import { u as J } from "./error-K1CakhA9.js";
9
9
  import { z as W, a as X } from "./validator-D5jtpt9A.js";
@@ -0,0 +1,333 @@
1
+ import { defineComponent as I, resolveComponent as _, openBlock as f, createElementBlock as C, Fragment as S, createVNode as l, withCtx as u, unref as m, createCommentVNode as D, createElementVNode as d, createBlock as x, normalizeClass as O, toDisplayString as M, ref as V, watch as w, isRef as g, h as A } from "vue";
2
+ import { c as s } from "./index-Dp7enr5-.js";
3
+ import { h as N } from "./moment-h96o7c8I.js";
4
+ import { u as $ } from "./index-BMrU1czH.js";
5
+ import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-D4k8D2GE.js";
6
+ import "@feedmepos/ui-library";
7
+ import { g as Y, a as k } from "./assets-CB5Az-tE.js";
8
+ import { E as L, t as R } from "./index-jzIFnMET.js";
9
+ import { d as P } from "./dinero-CIVmXLL-.js";
10
+ import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
11
+ import { _ as G } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
12
+ import { _ as q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
+ import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
14
+ import { _ as W } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
15
+ import { _ as j } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js";
16
+ import { useCoreStore as H } from "@feedmepos/mf-common";
17
+ const z = ["src"], Q = ["src"], J = /* @__PURE__ */ I({
18
+ __name: "Gateway",
19
+ props: {
20
+ row: {},
21
+ data: {}
22
+ },
23
+ setup(T) {
24
+ return (t, i) => {
25
+ const r = _("FmTooltip");
26
+ return f(), C(S, null, [
27
+ l(r, {
28
+ variant: "plain",
29
+ placement: "top",
30
+ content: "ECR Terminal",
31
+ "hide-arrow": !0
32
+ }, {
33
+ default: u(() => [
34
+ t.row.original.ecrGateway ? (f(), C("img", {
35
+ key: 0,
36
+ class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
37
+ src: m(L)
38
+ }, null, 8, z)) : D("", !0)
39
+ ]),
40
+ _: 1
41
+ }),
42
+ l(r, {
43
+ variant: "plain",
44
+ placement: "top",
45
+ content: t.row.original.gateway,
46
+ "hide-arrow": !0
47
+ }, {
48
+ default: u(() => [
49
+ d("img", {
50
+ class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
51
+ src: m(Y)(t.row.original.gateway)
52
+ }, null, 8, Q)
53
+ ]),
54
+ _: 1
55
+ }, 8, ["content"])
56
+ ], 64);
57
+ };
58
+ }
59
+ }), X = /* @__PURE__ */ I({
60
+ __name: "Status",
61
+ props: {
62
+ row: {},
63
+ data: {}
64
+ },
65
+ setup(T) {
66
+ const t = T;
67
+ function i() {
68
+ return t.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : t.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : t.data === s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
69
+ }
70
+ return (r, n) => {
71
+ const c = _("FmBadge");
72
+ return f(), x(c, {
73
+ inline: "",
74
+ class: O(i())
75
+ }, {
76
+ default: u(() => [
77
+ d("div", null, M(r.data.toUpperCase()), 1)
78
+ ]),
79
+ _: 1
80
+ }, 8, ["class"]);
81
+ };
82
+ }
83
+ }), Z = ["src"], ee = /* @__PURE__ */ I({
84
+ __name: "Method",
85
+ props: {
86
+ row: {},
87
+ data: {}
88
+ },
89
+ setup(T) {
90
+ return (t, i) => {
91
+ const r = _("FmTooltip");
92
+ return f(), x(r, {
93
+ variant: "plain",
94
+ placement: "top",
95
+ content: t.row.original.method,
96
+ "hide-arrow": !0
97
+ }, {
98
+ default: u(() => [
99
+ d("img", {
100
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
101
+ src: m(k)(t.row.original.method, "")
102
+ }, null, 8, Z)
103
+ ]),
104
+ _: 1
105
+ }, 8, ["content"]);
106
+ };
107
+ }
108
+ }), ae = { class: "flex justify-between mb-6 items-start" }, te = { class: "flex space-x-8 items-start" }, re = { class: "flex space-x-4 self-center" }, oe = { class: "flex space-x-12 mb-6" }, we = /* @__PURE__ */ I({
109
+ __name: "TerminalTransaction",
110
+ setup(T) {
111
+ const t = V(), { currentRestaurant: i } = H(), { dateRange: r, status: n, searchKey: c } = $({
112
+ searchKey: "",
113
+ status: [s.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
114
+ dateRange: {
115
+ startDate: N().startOf("day").format("YYYY-MM-DD"),
116
+ endDate: N().endOf("day").format("YYYY-MM-DD")
117
+ }
118
+ });
119
+ w([r, n], () => {
120
+ var e;
121
+ return (e = t.value) == null ? void 0 : e.reset();
122
+ }), w(i, () => {
123
+ var e;
124
+ return (e = t.value) == null ? void 0 : e.reset();
125
+ });
126
+ let y;
127
+ w(c, async () => {
128
+ y && clearTimeout(y), y = setTimeout(
129
+ () => {
130
+ var e;
131
+ return (e = t.value) == null ? void 0 : e.reset();
132
+ },
133
+ 700
134
+ );
135
+ });
136
+ const v = [
137
+ {
138
+ label: "Success",
139
+ value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.success
140
+ },
141
+ {
142
+ label: "Refunded",
143
+ value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
144
+ },
145
+ {
146
+ label: "Process",
147
+ value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.process
148
+ },
149
+ {
150
+ label: "Failed",
151
+ value: s.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
152
+ }
153
+ ], b = function(e) {
154
+ let a = "-", p = "-";
155
+ if (e.details) {
156
+ e.details.amount && (a = P(e.details.amount).toFormat("$0.00"));
157
+ const h = s.FdoTerminalTransactionWalletDetails.safeParse(e.details);
158
+ h.success && (p = h.data.method.issuer);
159
+ const o = s.FdoTerminalTransactionCardDetails.safeParse(e.details);
160
+ o.success && (p = o.data.cardType);
161
+ }
162
+ return {
163
+ id: e._id,
164
+ transactionId: e.transactionId,
165
+ orderId: e.orderId,
166
+ refId: e.refId,
167
+ terminalId: e.terminalId,
168
+ transactionAt: N(e.transactionAt).format("YYYY-MM-DD HH:mm:ss"),
169
+ action: e.action,
170
+ gateway: e.gateway,
171
+ ecrGateway: e.ecrGateway,
172
+ amount: a,
173
+ method: p,
174
+ seqNumber: e.seqNumber,
175
+ error: e.error
176
+ };
177
+ }, E = [
178
+ {
179
+ accessorKey: "transactionId",
180
+ header: () => "Transaction ID",
181
+ meta: {
182
+ textAlign: "left"
183
+ },
184
+ cell: ({ cell: e }) => A(G, { data: e.getValue() })
185
+ },
186
+ {
187
+ accessorKey: "orderId",
188
+ header: () => "Pay ID",
189
+ meta: {
190
+ textAlign: "left"
191
+ }
192
+ },
193
+ {
194
+ header: () => "Bill Seq No",
195
+ accessorKey: "seqNumber"
196
+ },
197
+ {
198
+ accessorKey: "refId",
199
+ header: () => "Reference ID",
200
+ meta: {
201
+ textAlign: "left"
202
+ }
203
+ },
204
+ {
205
+ accessorKey: "gateway",
206
+ header: () => "Gateway",
207
+ meta: {
208
+ textAlign: "center",
209
+ maxWidth: "128px"
210
+ },
211
+ cell: ({ cell: e, row: a }) => A(J, { row: a, data: e.getValue() })
212
+ },
213
+ {
214
+ accessorKey: "method",
215
+ header: () => "Method",
216
+ meta: {
217
+ textAlign: "center",
218
+ maxWidth: "128px"
219
+ },
220
+ cell: ({ cell: e, row: a }) => A(ee, { row: a, data: e.getValue() })
221
+ },
222
+ {
223
+ accessorKey: "action",
224
+ header: () => "Status",
225
+ meta: {
226
+ textAlign: "right",
227
+ maxWidth: "132px"
228
+ },
229
+ cell: ({ cell: e, row: a }) => A(X, { row: a, data: e.getValue() })
230
+ },
231
+ {
232
+ accessorKey: "amount",
233
+ header: () => "Sales Amount",
234
+ meta: {
235
+ textAlign: "center"
236
+ }
237
+ },
238
+ {
239
+ accessorKey: "terminalId",
240
+ header: () => "Terminal ID",
241
+ meta: {
242
+ textAlign: "left"
243
+ }
244
+ },
245
+ {
246
+ accessorKey: "transactionAt",
247
+ header: () => "Transaction At",
248
+ meta: {
249
+ textAlign: "left"
250
+ }
251
+ }
252
+ ], F = (e, a) => i.value ? R.readRestaurantTransactions({
253
+ restaurantId: i.value._id,
254
+ status: n.value,
255
+ searchKey: c.value,
256
+ limit: e,
257
+ cursor: a,
258
+ start: r.value.startDate,
259
+ end: r.value.endDate
260
+ }) : Promise.resolve({ data: [], meta: { cursor: "" } });
261
+ return (e, a) => {
262
+ const p = _("FmSearch"), h = _("FmSelect");
263
+ return f(), x(q, {
264
+ title: "Terminal Transactions",
265
+ description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
266
+ loading: !1
267
+ }, {
268
+ default: u(() => [
269
+ d("div", ae, [
270
+ d("div", te, [
271
+ l(j),
272
+ l(p, {
273
+ "model-value": m(c),
274
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => g(c) ? c.value = o : null),
275
+ class: "mr-8",
276
+ label: "Search",
277
+ placeholder: "Search Transactions ..."
278
+ }, null, 8, ["model-value"]),
279
+ l(h, {
280
+ modelValue: m(n),
281
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => g(n) ? n.value = o : null),
282
+ class: "mr-6 w-[300px]",
283
+ label: "Status",
284
+ "label-mark": "required",
285
+ multiselect: "",
286
+ items: v
287
+ }, {
288
+ "prepend-menu": u(() => [
289
+ l(U, {
290
+ modelValue: m(n),
291
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => g(n) ? n.value = o : null),
292
+ items: v
293
+ }, null, 8, ["modelValue"])
294
+ ]),
295
+ _: 1
296
+ }, 8, ["modelValue"])
297
+ ]),
298
+ d("div", re, [
299
+ l(B, {
300
+ button: {
301
+ appendIcon: "file_download",
302
+ variant: "primary",
303
+ label: "Export"
304
+ },
305
+ handler: async () => {
306
+ var o;
307
+ return m(R).downloadTransactions(await ((o = t.value) == null ? void 0 : o.allData()) ?? []);
308
+ }
309
+ }, null, 8, ["handler"])
310
+ ])
311
+ ]),
312
+ d("div", oe, [
313
+ l(W, {
314
+ modelValue: m(r),
315
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => g(r) ? r.value = o : null)
316
+ }, null, 8, ["modelValue"])
317
+ ]),
318
+ l(K, {
319
+ ref_key: "controller",
320
+ ref: t,
321
+ "column-defs": E,
322
+ "rows-defs": b,
323
+ paginate: F
324
+ }, null, 512)
325
+ ]),
326
+ _: 1
327
+ });
328
+ };
329
+ }
330
+ });
331
+ export {
332
+ we as default
333
+ };