@feedmepos/mf-payment 1.2.26 → 1.2.27

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.
@@ -2,10 +2,10 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
2
2
  import { u as O } from "./index-BOwfUR6x.js";
3
3
  import { p as K } from "./index-tCobqIDD.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-CdudVI6I.js";
5
+ import { P as V } from "./payout-account-rJmG1Gi5.js";
6
6
  import { p as D } from "./index-JCMXdVSJ.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.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({
@@ -3,11 +3,11 @@ import { p as K } from "./index-JCMXdVSJ.js";
3
3
  import { p as U, u as gA, e as lA } from "./index-tCobqIDD.js";
4
4
  import { defineStore as rA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
6
- import { c as cA, a as _, P as J } from "./payout-account-CdudVI6I.js";
6
+ import { c as cA, a as _, P as J } from "./payout-account-rJmG1Gi5.js";
7
7
  import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
9
  import { P as $ } from "./PDFViewer-xrBtzrlR.js";
10
- import "./app-CU7mklRE.js";
10
+ import "./app-BohCgZld.js";
11
11
  import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
12
12
  function wA() {
13
13
  return {
@@ -2,7 +2,7 @@ import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as m
2
2
  import { e as Ce } from "./index-tCobqIDD.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
4
  import { u as we } from "./index-BOwfUR6x.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.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
8
  import { t as Q } from "./index-BQtW6X1l.js";
@@ -9,7 +9,7 @@ import { w as q } from "./Modal-DB8M9o1T.js";
9
9
  import { u as F } from "./error-K1CakhA9.js";
10
10
  import { _ as J } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
11
11
  import { g as W } from "./grafana-DCGA3gMb.js";
12
- import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js";
12
+ import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js";
13
13
  import { e as D } from "./index-tCobqIDD.js";
14
14
  import { _ as Z } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
15
15
  import { useCoreStore as ee } from "@feedmepos/mf-common";
@@ -327,7 +327,7 @@ const Gn = {
327
327
  sidebarDisplay: "Payout Accounts",
328
328
  section: "payment-gateway"
329
329
  },
330
- component: () => import("./PayoutAccount-C4zN4xMw.js")
330
+ component: () => import("./PayoutAccount-DI5YpzGm.js")
331
331
  },
332
332
  {
333
333
  path: "/admin/payout-accounts/:accountId",
@@ -345,7 +345,7 @@ const Gn = {
345
345
  sidebarDisplay: "POS",
346
346
  section: "device"
347
347
  },
348
- component: () => import("./Terminal-CRizNZ4p.js"),
348
+ component: () => import("./Terminal-KE_9M2jr.js"),
349
349
  props: {
350
350
  type: "POS"
351
351
  }
@@ -357,7 +357,7 @@ const Gn = {
357
357
  sidebarDisplay: "Kiosks",
358
358
  section: "device"
359
359
  },
360
- component: () => import("./Terminal-CRizNZ4p.js"),
360
+ component: () => import("./Terminal-KE_9M2jr.js"),
361
361
  props: {
362
362
  type: "KIOSK"
363
363
  }
@@ -369,7 +369,7 @@ const Gn = {
369
369
  sidebarDisplay: "Terminals",
370
370
  section: "device"
371
371
  },
372
- component: () => import("./Terminal-CRizNZ4p.js"),
372
+ component: () => import("./Terminal-KE_9M2jr.js"),
373
373
  props: {
374
374
  type: "TERMINAL"
375
375
  }
@@ -407,7 +407,7 @@ const Gn = {
407
407
  meta: {
408
408
  sidebarDisplay: "Transactions"
409
409
  },
410
- component: () => import("./Transaction-ykrWGKIa.js")
410
+ component: () => import("./Transaction-CA9RQ8qT.js")
411
411
  },
412
412
  {
413
413
  path: "/admin/settlement",
@@ -434,7 +434,7 @@ const Gn = {
434
434
  {
435
435
  path: "/payout-account",
436
436
  name: "mf-payment-payout-account",
437
- component: () => import("./PayoutAccount-DoUb4juo.js"),
437
+ component: () => import("./PayoutAccount-mlaDc7_i.js"),
438
438
  meta: {
439
439
  sidebarDisplay: "i18n:payment.routes.payout_account"
440
440
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-CU7mklRE.js";
1
+ import { h as e, i as r, f as o } from "./app-BohCgZld.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,26 +1,26 @@
1
- import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as A, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R, nextTick as G } from "vue";
2
- import { u as H } from "./index-tCobqIDD.js";
1
+ import { defineComponent as U, ref as r, resolveComponent as p, openBlock as f, createBlock as S, withCtx as z, createVNode as m, createElementVNode as s, normalizeStyle as j, createElementBlock as M, Fragment as N, renderList as E, computed as k, watch as I, onMounted as O, unref as D, toDisplayString as B, createCommentVNode as R, normalizeClass as G, nextTick as H } from "vue";
2
+ import { u as J } from "./index-tCobqIDD.js";
3
3
  import "@feedmepos/ui-library";
4
- const J = ["id"], U = /* @__PURE__ */ I({
4
+ const K = ["id"], L = /* @__PURE__ */ U({
5
5
  __name: "FmTableSelection",
6
6
  props: {
7
7
  value: {},
8
8
  items: {}
9
9
  },
10
10
  emits: ["update:modelValue"],
11
- setup(g, { emit: k }) {
12
- const F = k, y = g, i = r(!1);
11
+ setup(g, { emit: F }) {
12
+ const h = F, y = g, i = r(!1);
13
13
  return (x, c) => {
14
- const h = p("FmButton"), V = p("FmMenuItem"), b = p("FmMenu");
15
- return f(), L(b, {
14
+ const V = p("FmButton"), C = p("FmMenuItem"), b = p("FmMenu");
15
+ return f(), S(b, {
16
16
  "max-height": 264,
17
17
  shift: "",
18
18
  onMenuChanged: c[0] || (c[0] = (a) => i.value = a)
19
19
  }, {
20
- "menu-button": P(() => {
20
+ "menu-button": z(() => {
21
21
  var a;
22
22
  return [
23
- d(h, {
23
+ m(V, {
24
24
  icon: i.value ? "expand_less" : "expand_more",
25
25
  label: (a = x.items.find((o) => o.value === y.value)) == null ? void 0 : a.label,
26
26
  "icon-position": "append",
@@ -29,31 +29,31 @@ const J = ["id"], U = /* @__PURE__ */ I({
29
29
  }, null, 8, ["icon", "label"])
30
30
  ];
31
31
  }),
32
- "menu-wrapper": P(({ maxHeight: a }) => [
33
- u("div", {
32
+ "menu-wrapper": z(({ maxHeight: a }) => [
33
+ s("div", {
34
34
  id: `menu-wrapper-${a}`,
35
- style: A({ maxHeight: `${a}px` }),
35
+ style: j({ maxHeight: `${a}px` }),
36
36
  class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
37
37
  }, [
38
- (f(!0), M(N, null, j(x.items, (o) => (f(), L(V, {
38
+ (f(!0), M(N, null, E(x.items, (o) => (f(), S(C, {
39
39
  key: o.value,
40
40
  label: o.label,
41
41
  value: o.value,
42
42
  "model-value": o.value === y.value,
43
- "onUpdate:modelValue": (l) => F("update:modelValue", o.value)
43
+ "onUpdate:modelValue": (l) => h("update:modelValue", o.value)
44
44
  }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
45
- ], 12, J)
45
+ ], 12, K)
46
46
  ]),
47
47
  _: 1
48
48
  });
49
49
  };
50
50
  }
51
- }), K = {
51
+ }), Q = {
52
52
  key: 0,
53
53
  class: "basis-72 bg-white flex items-center justify-between px-24 pt-6"
54
- }, Q = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, W = { class: "flex gap-8 items-center" }, X = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, Y = {
55
- class: /* @__PURE__ */ R(["flex gap-8 items-center"])
56
- }, Z = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, ee = { class: "flex gap-8" }, ne = /* @__PURE__ */ I({
54
+ }, W = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, X = { class: "flex gap-8 items-center" }, Y = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, Z = {
55
+ class: /* @__PURE__ */ G(["flex gap-8 items-center"])
56
+ }, ee = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, te = { class: "flex gap-8" }, oe = /* @__PURE__ */ U({
57
57
  __name: "index",
58
58
  props: {
59
59
  columnDefs: {
@@ -70,28 +70,30 @@ const J = ["id"], U = /* @__PURE__ */ I({
70
70
  }
71
71
  },
72
72
  emits: ["row-click"],
73
- setup(g, { expose: k, emit: F }) {
73
+ setup(g, { expose: F, emit: h }) {
74
74
  const y = [10, 20, 30, 50, 100].map((t) => ({
75
75
  label: t.toString(),
76
76
  value: t
77
- })), i = g, x = F, { isLoading: c, startLoading: h, stopLoading: V } = H(!0), b = r(), a = r(), o = r(""), l = r(10), n = r(1), v = r(0), _ = async function(t = !1) {
78
- h(), t && (a.value = [], o.value = "", n.value = 1, await G(), v.value = 0);
77
+ })), i = g, x = h, { isLoading: c, startLoading: V, stopLoading: C } = J(!0), b = r(), a = r(), o = r(""), l = r(10), n = r(1), v = r(0), _ = async function(t = !1) {
78
+ V(), t && (a.value = [], o.value = "", n.value = 1, await H(), v.value = 0);
79
79
  const e = await i.paginate(l.value, o.value);
80
- a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1, V();
81
- }, T = C(() => n.value > 1), $ = C(() => n.value < v.value ? !0 : o.value > ""), q = C(() => {
80
+ a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1, C();
81
+ }, T = k(() => n.value > 1), $ = k(() => n.value < v.value ? !0 : o.value > ""), q = k(() => {
82
82
  const t = l.value * (n.value - 1), e = t + l.value;
83
83
  return (a.value ?? []).slice(t, e).map(i.rowsDefs);
84
84
  });
85
- return S(l, () => _(!0)), S(n, (t) => {
85
+ I(l, () => _(!0)), I(n, (t) => {
86
86
  t > v.value && _();
87
- }), E(() => _()), k({
87
+ }), O(() => _());
88
+ const A = k(() => l.value * (n.value - 1));
89
+ return F({
88
90
  reset: () => _(!0),
89
91
  data: () => a.value ?? [],
90
92
  allData: async () => {
91
93
  let t = [], e = "";
92
94
  do {
93
- const m = await i.paginate(100, e);
94
- t = [...t, ...m.data], e = m.meta.cursor ?? "";
95
+ const d = await i.paginate(100, e);
96
+ t = [...t, ...d.data], e = d.meta.cursor ?? "";
95
97
  } while (e > "");
96
98
  return t;
97
99
  },
@@ -100,59 +102,59 @@ const J = ["id"], U = /* @__PURE__ */ I({
100
102
  return (a.value ?? []).slice(t, e);
101
103
  },
102
104
  replaceData: (t, e) => {
103
- const m = l.value * (n.value - 1) + t;
104
- a.value && (a.value[m] = e);
105
+ const d = l.value * (n.value - 1) + t;
106
+ a.value && (a.value[d] = e);
105
107
  }
106
108
  }), (t, e) => {
107
- const m = p("FmTable"), z = p("FmButton");
109
+ const d = p("FmTable"), P = p("FmButton");
108
110
  return f(), M(N, null, [
109
- d(m, {
111
+ m(d, {
110
112
  modelValue: b.value,
111
- "onUpdate:modelValue": e[0] || (e[0] = (s) => b.value = s),
113
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => b.value = u),
112
114
  loading: D(c),
113
115
  "page-size": l.value,
114
116
  "row-data": q.value,
115
117
  "column-defs": g.columnDefs,
116
118
  "hide-footer": !0,
117
119
  "shrink-at": !1,
118
- onRowClick: e[1] || (e[1] = (s) => {
120
+ onRowClick: e[1] || (e[1] = (u) => {
119
121
  var w;
120
- return x("row-click", (w = a.value) == null ? void 0 : w.at(s.index));
122
+ return x("row-click", (w = a.value) == null ? void 0 : w.at(A.value + u.index));
121
123
  })
122
124
  }, null, 8, ["modelValue", "loading", "page-size", "row-data", "column-defs"]),
123
- D(c) ? O("", !0) : (f(), M("div", K, [
124
- u("div", Q, [
125
- u("div", W, [
126
- e[6] || (e[6] = u("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
127
- d(U, {
125
+ D(c) ? R("", !0) : (f(), M("div", Q, [
126
+ s("div", W, [
127
+ s("div", X, [
128
+ e[6] || (e[6] = s("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
129
+ m(L, {
128
130
  items: D(y),
129
131
  value: l.value,
130
- "onUpdate:modelValue": e[2] || (e[2] = (s) => l.value = s)
132
+ "onUpdate:modelValue": e[2] || (e[2] = (u) => l.value = u)
131
133
  }, null, 8, ["items", "value"])
132
134
  ]),
133
- u("span", X, B((n.value - 1) * l.value) + " - " + B((n.value - 1) * l.value + l.value), 1)
135
+ s("span", Y, B((n.value - 1) * l.value) + " - " + B((n.value - 1) * l.value + l.value), 1)
134
136
  ]),
135
- u("div", Y, [
136
- d(U, {
137
- items: Array.from(Array(v.value), (s, w) => w + 1).map(
138
- (s) => ({
139
- label: s.toString(),
140
- value: s
137
+ s("div", Z, [
138
+ m(L, {
139
+ items: Array.from(Array(v.value), (u, w) => w + 1).map(
140
+ (u) => ({
141
+ label: u.toString(),
142
+ value: u
141
143
  })
142
144
  ),
143
145
  value: n.value,
144
- "onUpdate:modelValue": e[3] || (e[3] = (s) => n.value = s)
146
+ "onUpdate:modelValue": e[3] || (e[3] = (u) => n.value = u)
145
147
  }, null, 8, ["items", "value"]),
146
- u("span", Z, " Page " + B(n.value), 1),
147
- u("div", ee, [
148
- d(z, {
148
+ s("span", ee, " Page " + B(n.value), 1),
149
+ s("div", te, [
150
+ m(P, {
149
151
  disabled: !T.value,
150
152
  icon: "chevron_left",
151
153
  "icon-color": "neutral-black",
152
154
  variant: "tertiary",
153
155
  onClick: e[4] || (e[4] = () => n.value -= 1)
154
156
  }, null, 8, ["disabled"]),
155
- d(z, {
157
+ m(P, {
156
158
  disabled: !$.value,
157
159
  icon: "chevron_right",
158
160
  "icon-color": "neutral-black",
@@ -167,5 +169,5 @@ const J = ["id"], U = /* @__PURE__ */ I({
167
169
  }
168
170
  });
169
171
  export {
170
- ne as _
172
+ oe as _
171
173
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,4 +1,4 @@
1
- import { _ as Je, C as Qe, r as Ee, S as et, g as re, a as tt, b as nt, c as _e, F as rt, d as st, e as it } from "./app-CU7mklRE.js";
1
+ import { _ as Je, C as Qe, r as Ee, S as et, g as re, a as tt, b as nt, c as _e, F as rt, d as st, e as it } from "./app-BohCgZld.js";
2
2
  import { c as ot, a as at, B as ut, p as Y } from "./index-tCobqIDD.js";
3
3
  import { useCoreStore as ct } from "@feedmepos/mf-common";
4
4
  /**