@feedmepos/mf-payment 1.5.38-dev → 1.5.40-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.
@@ -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-CaR8L0b2.js";
11
+ import { P as Un } from "./payout-account-BL9BAkwp.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-CaR8L0b2.js";
6
+ import { P as ie } from "./payout-account-BL9BAkwp.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";
@@ -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-CaR8L0b2.js";
6
+ import { c as BA, a as AA, P as k } from "./payout-account-BL9BAkwp.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";
@@ -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-CaR8L0b2.js";
5
+ import { P } from "./payout-account-BL9BAkwp.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";
@@ -14,7 +14,7 @@ import { _ as ue } from "./index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js
14
14
  import { _ as de } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
15
15
  import { s as P, z as me } from "./validator-DzjyJnvv.js";
16
16
  import { useCoreStore as pe } from "@feedmepos/mf-common";
17
- import { u as fe, a as ye } from "./index-Blj3xQ6H.js";
17
+ import { u as fe, a as ye } from "./index-BwdnN4a2.js";
18
18
  const ge = ["src"], he = /* @__PURE__ */ T({
19
19
  __name: "Gateway",
20
20
  props: {
@@ -263,7 +263,9 @@ const ge = ["src"], he = /* @__PURE__ */ T({
263
263
  return;
264
264
  }
265
265
  try {
266
- const u = await w.refetchTransaction({ transactionId: e.id });
266
+ const u = await w.refetchTransaction({
267
+ transactionId: e.id
268
+ });
267
269
  (n = r.value) == null || n.replaceData(t, q(u)), o.open({
268
270
  type: "success",
269
271
  title: "Transaction queried and updated successfully."
@@ -355,13 +357,16 @@ const ge = ["src"], he = /* @__PURE__ */ T({
355
357
  });
356
358
  return;
357
359
  }
358
- const a = le([
359
- {
360
- type: "span",
361
- queryKey: "transaction.id",
362
- queryValue: e.id
363
- }
364
- ], e.transactionAt);
360
+ const a = le(
361
+ [
362
+ {
363
+ type: "span",
364
+ queryKey: "transaction.id",
365
+ queryValue: e.id
366
+ }
367
+ ],
368
+ e.transactionAt
369
+ );
365
370
  window.open(a, "_blank");
366
371
  }
367
372
  async function Y(t) {
@@ -388,7 +393,10 @@ const ge = ["src"], he = /* @__PURE__ */ T({
388
393
  }).onPrimary(async (n) => {
389
394
  var u;
390
395
  try {
391
- const _ = await w.bindPayId({ transactionId: e.id, payId: n });
396
+ const _ = await w.bindPayId({
397
+ transactionId: e.id,
398
+ payId: n
399
+ });
392
400
  (u = r.value) == null || u.replaceData(t, q(_)), o.open({
393
401
  type: "success",
394
402
  title: "Pay ID set successfully."
@@ -426,7 +434,10 @@ const ge = ["src"], he = /* @__PURE__ */ T({
426
434
  }).onPrimary(async (n) => {
427
435
  var u;
428
436
  try {
429
- const _ = await w.setGatewayId({ transactionId: e.id, gatewayTransactionId: n });
437
+ const _ = await w.setGatewayId({
438
+ transactionId: e.id,
439
+ gatewayTransactionId: n
440
+ });
430
441
  (u = r.value) == null || u.replaceData(t, q(_)), o.open({
431
442
  type: "success",
432
443
  title: "Gateway ID set successfully."
@@ -456,10 +467,14 @@ ID: ${t.row.original.transactionId}`), b(de, { data: t.getValue(), extra: e });
456
467
  accessorKey: "payId",
457
468
  cell: ({ cell: t, row: e }) => {
458
469
  const a = l(e.original);
459
- return a ? b("a", {
460
- href: a,
461
- class: "text-blue-600 underline"
462
- }, t.getValue()) : t.getValue();
470
+ return a ? b(
471
+ "a",
472
+ {
473
+ href: a,
474
+ class: "text-blue-600 underline"
475
+ },
476
+ t.getValue()
477
+ ) : t.getValue();
463
478
  }
464
479
  },
465
480
  {
@@ -500,6 +515,10 @@ ID: ${t.row.original.transactionId}`), b(de, { data: t.getValue(), extra: e });
500
515
  accessorKey: "status",
501
516
  cell: ({ cell: t }) => b(te, { data: t.getValue() })
502
517
  },
518
+ {
519
+ header: () => "Restaurant",
520
+ accessorKey: "restaurantId"
521
+ },
503
522
  {
504
523
  header: () => "Source",
505
524
  accessorKey: "source",
@@ -17,7 +17,7 @@ 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-Blj3xQ6H.js";
20
+ import { u as Te, a as Ae } from "./index-BwdnN4a2.js";
21
21
  const he = {
22
22
  key: 1,
23
23
  class: "inline-flex"
@@ -196,13 +196,10 @@ const he = {
196
196
  onBeforeApply: h
197
197
  });
198
198
  V(v, () => {
199
- h(), L(), T = setTimeout(
200
- () => {
201
- var e;
202
- return (e = b.value) == null ? void 0 : e.reset();
203
- },
204
- 700
205
- );
199
+ h(), L(), T = setTimeout(() => {
200
+ var e;
201
+ return (e = b.value) == null ? void 0 : e.reset();
202
+ }, 700);
206
203
  }), V([d, p, u, _], () => {
207
204
  var e;
208
205
  (e = b.value) == null || e.reset();
@@ -234,7 +231,9 @@ const he = {
234
231
  async function l(e, t) {
235
232
  var s;
236
233
  try {
237
- const c = await U.refetchTransaction({ transactionId: e.id });
234
+ const c = await U.refetchTransaction({
235
+ transactionId: e.id
236
+ });
238
237
  (s = b.value) == null || s.replaceData(t, c), f.open({
239
238
  type: "success",
240
239
  title: "Transaction queried and updated successfully."
@@ -296,13 +295,16 @@ const he = {
296
295
  );
297
296
  }
298
297
  async function I(e, t) {
299
- const s = ve([
300
- {
301
- type: "span",
302
- queryKey: "transaction.id",
303
- queryValue: e.id
304
- }
305
- ], e.transactionAt);
298
+ const s = ve(
299
+ [
300
+ {
301
+ type: "span",
302
+ queryKey: "transaction.id",
303
+ queryValue: e.id
304
+ }
305
+ ],
306
+ e.transactionAt
307
+ );
306
308
  window.open(s, "_blank");
307
309
  }
308
310
  C("");
@@ -321,10 +323,14 @@ ID: ` + t.original.transactionId : t.original.id;
321
323
  accessorKey: "payId",
322
324
  cell: ({ cell: e, row: t }) => {
323
325
  const s = K(t.original);
324
- return s ? x("a", {
325
- href: s,
326
- class: "text-blue-600 underline"
327
- }, e.getValue()) : e.getValue();
326
+ return s ? x(
327
+ "a",
328
+ {
329
+ href: s,
330
+ class: "text-blue-600 underline"
331
+ },
332
+ e.getValue()
333
+ ) : e.getValue();
328
334
  }
329
335
  },
330
336
  {
@@ -458,7 +464,10 @@ ID: ` + t.original.transactionId : t.original.id;
458
464
  handler: async () => {
459
465
  var $;
460
466
  const i = await (($ = b.value) == null ? void 0 : $.allData());
461
- i != null && await n(U).downloadPortalTransactionReport(n(d), n(ne)(i));
467
+ i != null && await n(U).downloadPortalTransactionReport(
468
+ n(d),
469
+ n(ne)(i)
470
+ );
462
471
  }
463
472
  }, null, 8, ["button", "handler"])
464
473
  ])