@feedmepos/mf-payment 1.5.41-dev → 1.5.41

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.
@@ -8,7 +8,7 @@ import { p as En } from "./index-Dq4IAN2N.js";
8
8
  import { useSnackbar as Vn, useFormChild as Kn, useDialog as Qn } from "@feedmepos/ui-library";
9
9
  import { u as yn } from "./index-T2CVm7-_.js";
10
10
  import { s as Sn } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as Un } from "./payout-account-BbXW0roB.js";
11
+ import { P as Un } from "./payout-account-CLB1HPi7.js";
12
12
  import { useRouter as In } from "vue-router";
13
13
  const _n = { class: "flex" }, $n = { class: "justify-self-center font-semibold" }, nt = ["src"], tt = ["src"], C = /* @__PURE__ */ rn({
14
14
  __name: "UploadButton",
@@ -3,7 +3,7 @@ import { o as z } from "./index-DhYZ6Ghe.js";
3
3
  import { u as Z, p as oe } from "./index-T2CVm7-_.js";
4
4
  import { useRouter as re } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-DzjyJnvv.js";
6
- import { P as ie } from "./payout-account-BbXW0roB.js";
6
+ import { P as ie } from "./payout-account-CLB1HPi7.js";
7
7
  import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-3pmwclcO.js";
8
8
  import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
9
  import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-B41rO8q8.js";
@@ -2,7 +2,7 @@ import { defineComponent as _, resolveComponent as p, openBlock as y, createBloc
2
2
  import { u as K } from "./index-Q0ELb0wB.js";
3
3
  import { p as D } from "./index-T2CVm7-_.js";
4
4
  import { _ as $ } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
5
- import { P } from "./payout-account-BbXW0roB.js";
5
+ import { P } from "./payout-account-CLB1HPi7.js";
6
6
  import { p as A } from "./index-Dq4IAN2N.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js";
@@ -3,7 +3,7 @@ import { defineStore as rA, storeToRefs as lA } from "pinia";
3
3
  import { p as J } from "./index-Dq4IAN2N.js";
4
4
  import { p as Z, u as nA, e as cA } from "./index-T2CVm7-_.js";
5
5
  import { useI18n as L, useCoreStore as sA } from "@feedmepos/mf-common";
6
- import { c as BA, a as AA, P as k } from "./payout-account-BbXW0roB.js";
6
+ import { c as BA, a as AA, P as k } from "./payout-account-CLB1HPi7.js";
7
7
  import { useDialogChild as uA, useDialog as wA } from "@feedmepos/ui-library";
8
8
  import { z as X, a as q } from "./validator-DzjyJnvv.js";
9
9
  import { P as tA } from "./PDFViewer-CIPPbzWD.js";
@@ -407,9 +407,12 @@ const se = /* @__PURE__ */ x({
407
407
  });
408
408
  async function F() {
409
409
  return y(async () => {
410
- let o = await le.readBusinessPayoutAccounts();
411
- if (o.length !== 0)
412
- return o;
410
+ try {
411
+ let o = await le.readBusinessPayoutAccounts();
412
+ return o.length === 0 ? void 0 : o;
413
+ } catch {
414
+ return [];
415
+ }
413
416
  });
414
417
  }
415
418
  async function T() {
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, ref as C, watch as V, onMounted as H, resolveComponent as A, unref as n, openBlock as P, createBlock as w, createElementBlock as O, createVNode as y, withCtx as B, createElementVNode as F, Fragment as W, renderList as X, createTextVNode as Z, toDisplayString as ee, onBeforeUnmount as te, isRef as D, h as x } from "vue";
1
+ import { defineComponent as G, ref as C, watch as V, onMounted as H, resolveComponent as h, unref as n, openBlock as P, createBlock as w, createElementBlock as O, createVNode as y, withCtx as B, createElementVNode as F, Fragment as W, renderList as X, createTextVNode as Z, toDisplayString as ee, onBeforeUnmount as te, isRef as D, h as x } from "vue";
2
2
  import { t as U } from "./index-jfRfVr4R.js";
3
3
  import { h as z } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as J, useCoreStore as Q } from "@feedmepos/mf-common";
@@ -17,8 +17,8 @@ import { g as ve } from "./grafana-VY3mqepx.js";
17
17
  import { w as j } from "./Modal-DB8M9o1T.js";
18
18
  import { u as q } from "./error-K1CakhA9.js";
19
19
  import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js";
20
- import { u as Te, a as Ae } from "./index-BwdnN4a2.js";
21
- const he = {
20
+ import { u as Te, a as he } from "./index-BwdnN4a2.js";
21
+ const Ae = {
22
22
  key: 1,
23
23
  class: "inline-flex"
24
24
  }, Se = { class: "relative" }, Ne = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, Ee = /* @__PURE__ */ G({
@@ -35,9 +35,9 @@ const he = {
35
35
  emits: ["update:id", "update:by"],
36
36
  setup(M, { emit: f }) {
37
37
  const g = M, m = f, { t: r } = J(), { currentBusiness: K, readRestaurants: b } = Q(), { isLoading: d, startAsyncCall: v } = de(!0), p = C([]), u = C(), _ = C(""), T = C([]);
38
- let h;
38
+ let A;
39
39
  V(_, async () => {
40
- h && clearTimeout(h), h = setTimeout(() => {
40
+ A && clearTimeout(A), A = setTimeout(() => {
41
41
  var l = new RegExp(_.value, "i");
42
42
  T.value = p.value.filter((o) => {
43
43
  const a = JSON.stringify(o);
@@ -50,16 +50,22 @@ const he = {
50
50
  });
51
51
  async function L() {
52
52
  return v(async () => {
53
- let l = await ue.readBusinessPayoutAccounts();
54
- if (l.length !== 0)
55
- return l;
53
+ try {
54
+ let l = await ue.readBusinessPayoutAccounts();
55
+ return l.length === 0 ? [] : l;
56
+ } catch {
57
+ return [];
58
+ }
56
59
  });
57
60
  }
58
61
  async function Y() {
59
62
  return v(async () => {
60
- let l = await me.getBusinessTerminals();
61
- if (l.length !== 0)
62
- return l;
63
+ try {
64
+ let l = await me.getBusinessTerminals();
65
+ return l.length === 0 ? [] : l;
66
+ } catch {
67
+ return [];
68
+ }
63
69
  });
64
70
  }
65
71
  async function k() {
@@ -110,11 +116,11 @@ const he = {
110
116
  p.value = l, T.value = p.value, d.value = !1;
111
117
  }
112
118
  return H(k), V(K, k), (l, o) => {
113
- const a = A("FmCircularProgress"), I = A("FmChip"), S = A("FmSearch"), N = A("FmMenuItem"), E = A("FmMenu");
119
+ const a = h("FmCircularProgress"), I = h("FmChip"), S = h("FmSearch"), N = h("FmMenuItem"), E = h("FmMenu");
114
120
  return n(d) ? (P(), w(a, {
115
121
  key: 0,
116
122
  size: "md"
117
- })) : (P(), O("div", he, [
123
+ })) : (P(), O("div", Ae, [
118
124
  y(E, { "close-on-click": !0 }, {
119
125
  "menu-button": B(() => {
120
126
  var e;
@@ -159,7 +165,7 @@ const he = {
159
165
  },
160
166
  setup(M) {
161
167
  return (f, g) => {
162
- const m = A("FmIcon");
168
+ const m = h("FmIcon");
163
169
  return P(), O("span", Fe, [
164
170
  Z(ee(M.row.original.seqNumber) + " ", 1),
165
171
  y(m, {
@@ -174,7 +180,7 @@ const he = {
174
180
  __name: "Transaction",
175
181
  setup(M) {
176
182
  var N, E;
177
- const f = pe(), g = ye(), { sessionUser: m } = Q(), { t: r } = J(), { getBillLink: K } = Ae(), b = C(), { dateRange: d, searchKey: v, status: p, id: u, by: _ } = se({
183
+ const f = pe(), g = ye(), { sessionUser: m } = Q(), { t: r } = J(), { getBillLink: K } = he(), b = C(), { dateRange: d, searchKey: v, status: p, id: u, by: _ } = se({
178
184
  by: "",
179
185
  id: "",
180
186
  searchKey: "",
@@ -185,7 +191,7 @@ const he = {
185
191
  }
186
192
  });
187
193
  let T;
188
- const h = () => {
194
+ const A = () => {
189
195
  T && (clearTimeout(T), T = void 0);
190
196
  }, {
191
197
  promptSuggestion: L,
@@ -193,10 +199,10 @@ const he = {
193
199
  } = Te({
194
200
  searchKey: v,
195
201
  dateRange: d,
196
- onBeforeApply: h
202
+ onBeforeApply: A
197
203
  });
198
204
  V(v, () => {
199
- h(), L(), T = setTimeout(() => {
205
+ A(), L(), T = setTimeout(() => {
200
206
  var e;
201
207
  return (e = b.value) == null ? void 0 : e.reset();
202
208
  }, 700);
@@ -204,7 +210,7 @@ const he = {
204
210
  var e;
205
211
  (e = b.value) == null || e.reset();
206
212
  }), te(() => {
207
- h(), Y();
213
+ A(), Y();
208
214
  });
209
215
  const k = [
210
216
  {
@@ -419,7 +425,7 @@ ID: ` + t.original.transactionId : t.original.id;
419
425
  }
420
426
  })
421
427
  }), (e, t) => {
422
- const s = A("FmSearch"), c = A("FmSelect");
428
+ const s = h("FmSearch"), c = h("FmSelect");
423
429
  return P(), w(ae, {
424
430
  title: n(r)("payment.transactions.title"),
425
431
  description: n(r)("payment.transactions.description"),