@feedmepos/mf-payment 1.6.5 → 1.6.6-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 (43) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DAxaoH2_.js → Actions.vue_vue_type_script_setup_true_lang-Clsf72yT.js} +1 -1
  2. package/dist/{Chargeback-mmahMkU2.js → Chargeback-DoiZmxRc.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CdICJijx.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DlwyoRyN.js} +1 -1
  4. package/dist/{OnboardForm-DcHQqYYX.js → OnboardForm-DGWfjxZR.js} +5 -5
  5. package/dist/{OnboardForm-0wfXiZNq.js → OnboardForm-DXV-Pc1Y.js} +5 -5
  6. package/dist/{OnboardSubmission-Dp4QmPAZ.js → OnboardSubmission-BBXMk9Tw.js} +2 -2
  7. package/dist/{OnboardSubmission-CRIsACkI.js → OnboardSubmission-vZZEO9ez.js} +5 -5
  8. package/dist/{PayoutAccount-B0fiUu5k.js → PayoutAccount-C0rVV_Sn.js} +5 -5
  9. package/dist/{PayoutAccount-CVP7XAWH.js → PayoutAccount-TbyH0c8w.js} +5 -5
  10. package/dist/{PayoutAccountSetting-AfiXAw4i.js → PayoutAccountSetting-Cy7-BGpz.js} +96 -93
  11. package/dist/{Restaurant-DjVmC321.js → Restaurant-DOx3AlXt.js} +4 -4
  12. package/dist/{RestaurantSetting-otcaVBEY.js → RestaurantSetting-CIdcsypt.js} +3 -3
  13. package/dist/{Settlement-BR0eiOvD.js → Settlement-BikQzNUH.js} +4 -4
  14. package/dist/{Settlement-EvbyEhZy.js → Settlement-COiJkyPE.js} +3 -3
  15. package/dist/{SettlementTransactions-CzXpI06o.js → SettlementTransactions-CAUt1eQe.js} +4 -4
  16. package/dist/{SettlementTransactions-Cl5MpLRe.js → SettlementTransactions-DWd6qioy.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-1c-L6wBM.js → Status.vue_vue_type_script_setup_true_lang-yZz_GVVU.js} +1 -1
  18. package/dist/{Terminal-CFw1icwx.js → Terminal-BSAYsZ00.js} +5 -5
  19. package/dist/{TerminalSetting-BnHK2VcU.js → TerminalSetting-CdAABoUa.js} +245 -243
  20. package/dist/{Transaction-D2LeKB1L.js → Transaction-CADEPU1t.js} +13 -13
  21. package/dist/{Transaction-Hh9DsZti.js → Transaction-RFoivnE3.js} +9 -9
  22. package/dist/{TransactionOld-CZzDvZ4V.js → TransactionOld-LsRHg_jj.js} +7 -7
  23. package/dist/api/document/index.d.ts +1 -0
  24. package/dist/{app-CnRmLdS_.js → app-BKYw-TBs.js} +180 -171
  25. package/dist/app.js +1 -1
  26. package/dist/{assets-8u-qS55J.js → assets-Q3jwGdH2.js} +1 -1
  27. package/dist/{grafana-DVHjaRm4.js → grafana-CUQUJCoc.js} +1 -1
  28. package/dist/{index-DTY9OeUA.js → index-BgLxG5Su.js} +1 -1
  29. package/dist/{index-D6wYQSLs.js → index-CMeKR83d.js} +1 -1
  30. package/dist/{index-DyVl5OC4.js → index-Cln1qxWz.js} +1 -1
  31. package/dist/{index-BnFjLAZ9.js → index-Cm10hA-5.js} +21 -3
  32. package/dist/{index-DP823O2i.js → index-DTfDweZz.js} +1 -1
  33. package/dist/{index-iujpUb8Z.js → index-D_Ns3MqY.js} +2 -2
  34. package/dist/{index-fKbtEyKA.js → index-DtC940-u.js} +1 -1
  35. package/dist/index-FbkInaFL.js +62 -0
  36. package/dist/{index-CWbl1nrA.js → index-HFB7pbLN.js} +1 -1
  37. package/dist/{index-DjPlzbUi.js → index-fFwg-TQI.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-D-7OGj8L.js → index.vue_vue_type_script_setup_true_lang-ClzNDEHF.js} +1 -1
  39. package/dist/package.json +2 -2
  40. package/dist/{payout-account-CpX1Qppg.js → payout-account-DGQQnDkh.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/package.json +1 -1
  43. package/dist/index-BwdnN4a2.js +0 -58
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as D, resolveComponent as y, openBlock as g, createElementBlock as O, Fragment as j, createElementVNode as s, createVNode as a, withCtx as k, createTextVNode as P, toDisplayString as M, unref as r, reactive as de, ref as C, createBlock as w, watch as te, computed as Y, isRef as W, createCommentVNode as q, h as H, onMounted as re, resolveDynamicComponent as ne, normalizeProps as ae, mergeProps as oe } from "vue";
2
- import { p as G } from "./index-CWbl1nrA.js";
3
- import { u as X, e as $ } from "./index-DjPlzbUi.js";
2
+ import { p as G } from "./index-HFB7pbLN.js";
3
+ import { u as X, e as $ } from "./index-fFwg-TQI.js";
4
4
  import { _ as pe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
5
5
  import { useRouter as ye } from "vue-router";
6
- import { u as ee } from "./index-fKbtEyKA.js";
7
- import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CdICJijx.js";
6
+ import { u as ee } from "./index-DtC940-u.js";
7
+ import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DlwyoRyN.js";
8
8
  import { h as be } from "./moment-h96o7c8I.js";
9
9
  import { useDialogChild as fe, useDialog as ie, useSnackbar as J, components as ve } from "@feedmepos/ui-library";
10
10
  import { P as Q } from "./PDFViewer-CIPPbzWD.js";
11
11
  import { u as z } from "./error-K1CakhA9.js";
12
- import { P as ge } from "./payout-account-CpX1Qppg.js";
13
- import { d as se } from "./index-BnFjLAZ9.js";
12
+ import { P as ge } from "./payout-account-DGQQnDkh.js";
13
+ import { d as se } from "./index-Cm10hA-5.js";
14
14
  import { s as L, o as Fe, z as A, a as N } from "./validator-CTlVogBQ.js";
15
15
  import { _ as xe } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js";
16
16
  import { useCoreStore as me } from "@feedmepos/mf-common";
@@ -24,7 +24,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
24
24
  },
25
25
  setup(n) {
26
26
  return (u, e) => {
27
- var m, f;
27
+ var m, v;
28
28
  const b = y("FmCardHeader"), l = y("FmCardSection"), t = y("FmCard");
29
29
  return g(), O(j, null, [
30
30
  s("div", ke, [
@@ -79,13 +79,13 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
79
79
  }),
80
80
  a(l, { class: "p-0" }, {
81
81
  default: k(() => {
82
- var p, i, d, o, c, v, F, S;
82
+ var p, i, d, o, c, f, F, S;
83
83
  return [
84
84
  e[6] || (e[6] = s("b", null, "Email", -1)),
85
85
  P(": " + M((d = (i = (p = n.payoutAccount) == null ? void 0 : p.store) == null ? void 0 : i.keyPerson) == null ? void 0 : d.email) + " ", 1),
86
86
  e[7] || (e[7] = s("br", null, null, -1)),
87
87
  e[8] || (e[8] = s("b", null, "Name", -1)),
88
- P(": " + M((v = (c = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : c.keyPerson) == null ? void 0 : v.name), 1),
88
+ P(": " + M((f = (c = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : c.keyPerson) == null ? void 0 : f.name), 1),
89
89
  e[9] || (e[9] = s("br", null, null, -1)),
90
90
  e[10] || (e[10] = s("b", null, "Phone", -1)),
91
91
  P(": " + M((S = (F = n.payoutAccount) == null ? void 0 : F.store.keyPerson) == null ? void 0 : S.phone), 1),
@@ -145,7 +145,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
145
145
  a(Z, {
146
146
  document: n.payoutAccount.store.exteriorPhoto,
147
147
  "business-id": n.payoutAccount.businessId,
148
- "restaurant-id": ((f = (m = n.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : f.event) === "ORDERING" ? n.payoutAccount.store.id : void 0
148
+ "restaurant-id": ((v = (m = n.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : v.event) === "ORDERING" ? n.payoutAccount.store.id : void 0
149
149
  }, null, 8, ["document", "business-id", "restaurant-id"])
150
150
  ], 64);
151
151
  };
@@ -179,12 +179,12 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
179
179
  bankAccountNumber: u.initialValue.bankAccountNumber,
180
180
  ssm: u.initialValue.ssm,
181
181
  bankStatement: u.initialValue.bankStatement
182
- }), t = C(), m = C(), f = C(l.ssm ?? ""), p = C(l.bankStatement ?? ""), i = L().trim().min(1, "Company name is required"), d = L().trim().min(1, "Registration number is required"), o = L().trim().min(1, "Bank name is required"), c = L().trim().min(1, "Bank holder name is required"), v = L().trim().min(1, "Bank account number is required"), F = Fe({
182
+ }), t = C(), m = C(), v = C(l.ssm ?? ""), p = C(l.bankStatement ?? ""), i = L().trim().min(1, "Company name is required"), d = L().trim().min(1, "Registration number is required"), o = L().trim().min(1, "Bank name is required"), c = L().trim().min(1, "Bank holder name is required"), f = L().trim().min(1, "Bank account number is required"), F = Fe({
183
183
  companyName: i,
184
184
  regNo: d,
185
185
  bankName: o,
186
186
  bankHolderName: c,
187
- bankAccountNumber: v
187
+ bankAccountNumber: f
188
188
  }), S = () => {
189
189
  const V = F.safeParse(l);
190
190
  V.success && (b({
@@ -205,11 +205,11 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
205
205
  });
206
206
  }
207
207
  const I = async (V) => {
208
- t.value = V, f.value = V ? await U(V) : "";
208
+ t.value = V, v.value = V ? await U(V) : "";
209
209
  }, T = async (V) => {
210
210
  m.value = V, p.value = V ? await U(V) : "";
211
211
  }, R = () => {
212
- t.value = void 0, f.value = "";
212
+ t.value = void 0, v.value = "";
213
213
  }, _ = () => {
214
214
  m.value = void 0, p.value = "";
215
215
  };
@@ -268,7 +268,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
268
268
  label: "Bank Account Number",
269
269
  "label-mark": "required",
270
270
  type: "number",
271
- rules: r(A)(r(v))
271
+ rules: r(A)(r(f))
272
272
  }, null, 8, ["modelValue", "rules"]),
273
273
  x[11] || (x[11] = s("div", { class: "flex items-center my-2" }, [
274
274
  s("hr", { class: "w-[80px] border-t border-gray-300" }),
@@ -277,15 +277,15 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
277
277
  ], -1)),
278
278
  s("div", Ae, [
279
279
  x[7] || (x[7] = s("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
280
- f.value ? (g(), w(le, {
280
+ v.value ? (g(), w(le, {
281
281
  key: 0,
282
- modelValue: f.value,
283
- "onUpdate:modelValue": x[5] || (x[5] = (B) => f.value = B),
282
+ modelValue: v.value,
283
+ "onUpdate:modelValue": x[5] || (x[5] = (B) => v.value = B),
284
284
  label: "SSM"
285
285
  }, {
286
286
  default: k(() => [
287
287
  a(Z, {
288
- document: f.value,
288
+ document: v.value,
289
289
  "business-id": n.businessId,
290
290
  "restaurant-id": n.restaurantId
291
291
  }, {
@@ -381,40 +381,43 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
381
381
  },
382
382
  setup(n) {
383
383
  const u = n, e = C(!1), b = ie(), l = J(), t = ge.bankNameOptions(), m = () => {
384
- var d, o, c, v, F, S, U, I, T, R;
384
+ var d, o, c, f, F, S, U, I, T, R;
385
385
  return {
386
386
  companyName: ((d = u.payoutAccount.store) == null ? void 0 : d.companyName) ?? "",
387
387
  regNo: ((o = u.payoutAccount.store) == null ? void 0 : o.regNo) ?? "",
388
- bankName: ((v = (c = u.payoutAccount.store) == null ? void 0 : c.bank) == null ? void 0 : v.name) ?? "",
388
+ bankName: ((f = (c = u.payoutAccount.store) == null ? void 0 : c.bank) == null ? void 0 : f.name) ?? "",
389
389
  bankHolderName: ((S = (F = u.payoutAccount.store) == null ? void 0 : F.bank) == null ? void 0 : S.holderName) ?? "",
390
390
  bankAccountNumber: ((I = (U = u.payoutAccount.store) == null ? void 0 : U.bank) == null ? void 0 : I.accountNumber) ?? "",
391
391
  ssm: ((T = u.payoutAccount.store) == null ? void 0 : T.ssm) ?? "",
392
392
  bankStatement: ((R = u.payoutAccount.store) == null ? void 0 : R.bankStatement) ?? ""
393
393
  };
394
- }, f = async (d, o) => {
394
+ }, v = async (d, o) => {
395
395
  var F;
396
396
  const c = (/* @__PURE__ */ new Date()).toISOString();
397
397
  if (((F = u.payoutAccount.store) == null ? void 0 : F.event) === "ORDERING")
398
- return await se.upload(
398
+ return await se.adminUpload(
399
399
  `restaurant/${u.payoutAccount.store.id}/documents/${d}/${c}.pdf`,
400
400
  o,
401
+ u.payoutAccount.businessId,
401
402
  u.payoutAccount.store.id
402
403
  );
403
- const v = u.payoutAccount.businessId || u.payoutAccount.store.id;
404
- return await se.upload(
405
- `business/${v}/documents/${d}/${c}.pdf`,
406
- o
404
+ const f = u.payoutAccount.businessId || u.payoutAccount.store.id;
405
+ return await se.adminUpload(
406
+ `business/${f}/documents/${d}/${c}.pdf`,
407
+ o,
408
+ f,
409
+ void 0
407
410
  );
408
411
  }, p = async (d) => {
409
412
  if (!u.payoutAccount.store) return;
410
413
  let o = u.payoutAccount.store.ssm;
411
- d.newSSM && (o = await f("ssm", d.newSSM));
414
+ d.newSSM && (o = await v("ssm", d.newSSM));
412
415
  let c = u.payoutAccount.store.bankStatement;
413
- d.newBankStatement && (c = await f(
416
+ d.newBankStatement && (c = await v(
414
417
  "bankStatement",
415
418
  d.newBankStatement
416
419
  ));
417
- const v = {
420
+ const f = {
418
421
  ...u.payoutAccount,
419
422
  store: {
420
423
  ...u.payoutAccount.store,
@@ -431,7 +434,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
431
434
  }
432
435
  };
433
436
  try {
434
- e.value = !0, await u.onUpdate(v), l.open({
437
+ e.value = !0, await u.onUpdate(f), l.open({
435
438
  type: "success",
436
439
  title: "Settlement info updated successfully"
437
440
  }), b.close();
@@ -463,7 +466,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
463
466
  };
464
467
  return (d, o) => {
465
468
  var U, I, T, R;
466
- const c = y("FmButton"), v = y("FmCardHeader"), F = y("FmCardSection"), S = y("FmCard");
469
+ const c = y("FmButton"), f = y("FmCardHeader"), F = y("FmCardSection"), S = y("FmCard");
467
470
  return g(), O(j, null, [
468
471
  s("div", Ue, [
469
472
  a(c, {
@@ -482,7 +485,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
482
485
  default: k(() => [
483
486
  a(F, { class: "flex flex-col gap-16 justify-between" }, {
484
487
  default: k(() => [
485
- a(v, {
488
+ a(f, {
486
489
  class: "p-0",
487
490
  title: "Company Info",
488
491
  subtitle: ""
@@ -515,7 +518,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
515
518
  default: k(() => [
516
519
  a(F, { class: "flex flex-col gap-16 justify-between" }, {
517
520
  default: k(() => [
518
- a(v, {
521
+ a(f, {
519
522
  class: "p-0",
520
523
  title: "Bank Info",
521
524
  subtitle: ""
@@ -690,11 +693,11 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
690
693
  }).onPrimary((o) => {
691
694
  u.payoutAccount.enable = !1, u.payoutAccount.status = "REJECTED", u.payoutAccount.statusReason = o, t(u.payoutAccount), l.close();
692
695
  });
693
- }, { search: f } = ee({
696
+ }, { search: v } = ee({
694
697
  search: ""
695
698
  }), p = Y(() => {
696
- const { ssm: o, bank: c, bankStatement: v } = u.payoutAccount.store;
697
- return o && c && c.name && c.accountNumber && c.holderName && v;
699
+ const { ssm: o, bank: c, bankStatement: f } = u.payoutAccount.store;
700
+ return o && c && c.name && c.accountNumber && c.holderName && f;
698
701
  }), i = C(""), d = [
699
702
  {
700
703
  header: () => "Payment Method",
@@ -708,12 +711,12 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
708
711
  let c = 0;
709
712
  return o.original.rate && (c = o.original.rate.amount / Math.pow(10, o.original.rate.precision)), H(_e, {
710
713
  data: c,
711
- onChange: (v) => {
714
+ onChange: (f) => {
712
715
  const F = u.payoutAccount.methods.at(o.index);
713
716
  F.rate || (F.rate = {
714
717
  amount: 0,
715
718
  precision: 4
716
- }), F.rate.amount = v * Math.pow(10, F.rate.precision);
719
+ }), F.rate.amount = f * Math.pow(10, F.rate.precision);
717
720
  }
718
721
  });
719
722
  }
@@ -725,12 +728,12 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
725
728
  let c = 0;
726
729
  return o.original.minimumFee && (c = o.original.minimumFee.amount / Math.pow(10, o.original.minimumFee.precision)), H(Me, {
727
730
  data: c,
728
- onChange: (v) => {
731
+ onChange: (f) => {
729
732
  const F = u.payoutAccount.methods.at(o.index);
730
733
  F.minimumFee || (F.minimumFee = {
731
734
  amount: 0,
732
735
  precision: 2
733
- }), F.minimumFee.amount = v * Math.pow(10, F.minimumFee.precision);
736
+ }), F.minimumFee.amount = f * Math.pow(10, F.minimumFee.precision);
734
737
  }
735
738
  });
736
739
  }
@@ -741,14 +744,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
741
744
  cell: ({ row: o }) => H(Be, {
742
745
  data: o.original.tPlus ?? 0,
743
746
  onChange: (c) => {
744
- const v = u.payoutAccount.methods.at(o.index);
745
- v.tPlus = c;
747
+ const f = u.payoutAccount.methods.at(o.index);
748
+ f.tPlus = c;
746
749
  }
747
750
  })
748
751
  }
749
752
  ];
750
753
  return (o, c) => {
751
- const v = y("FmRadio"), F = y("FmRadioGroup"), S = y("FmSwitch"), U = y("FmSearch"), I = y("FmTable"), T = y("FmButton");
754
+ const f = y("FmRadio"), F = y("FmRadioGroup"), S = y("FmSwitch"), U = y("FmSearch"), I = y("FmTable"), T = y("FmButton");
752
755
  return g(), O(j, null, [
753
756
  s("div", $e, [
754
757
  s("div", qe, [
@@ -758,15 +761,15 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
758
761
  label: "Account Status"
759
762
  }, {
760
763
  default: k(() => [
761
- a(v, {
764
+ a(f, {
762
765
  value: "PENDING",
763
766
  label: "Pending"
764
767
  }),
765
- a(v, {
768
+ a(f, {
766
769
  value: "APPROVED",
767
770
  label: "Approved"
768
771
  }),
769
- a(v, {
772
+ a(f, {
770
773
  value: "REJECTED",
771
774
  label: "Rejected",
772
775
  onClick: m
@@ -789,8 +792,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
789
792
  s("div", Ee, [
790
793
  s("div", Oe, [
791
794
  a(U, {
792
- modelValue: r(f),
793
- "onUpdate:modelValue": c[2] || (c[2] = (R) => W(f) ? f.value = R : null),
795
+ modelValue: r(v),
796
+ "onUpdate:modelValue": c[2] || (c[2] = (R) => W(v) ? v.value = R : null),
794
797
  placeholder: "Search Method ..."
795
798
  }, null, 8, ["modelValue"])
796
799
  ])
@@ -800,7 +803,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
800
803
  modelValue: i.value,
801
804
  "onUpdate:modelValue": c[3] || (c[3] = (R) => i.value = R),
802
805
  "shrink-at": !1,
803
- "search-value": r(f),
806
+ "search-value": r(v),
804
807
  "row-data": n.payoutAccount.methods,
805
808
  "column-defs": d
806
809
  }, null, 8, ["modelValue", "search-value", "row-data"])
@@ -849,7 +852,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
849
852
  });
850
853
  }
851
854
  re(m);
852
- function f() {
855
+ function v() {
853
856
  l(async () => {
854
857
  try {
855
858
  await G.updateChannels(e.payoutAccount._id, t.value), u.open({
@@ -912,7 +915,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
912
915
  }
913
916
  ];
914
917
  return (d, o) => {
915
- const c = y("FmButton"), v = y("FmTable");
918
+ const c = y("FmButton"), f = y("FmTable");
916
919
  return g(), O(j, null, [
917
920
  s("div", Ye, [
918
921
  a(c, {
@@ -928,10 +931,10 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
928
931
  size: "md",
929
932
  icon: "save",
930
933
  label: "Save",
931
- onClick: f
934
+ onClick: v
932
935
  })
933
936
  ]),
934
- a(v, {
937
+ a(f, {
935
938
  loading: r(b),
936
939
  "row-data": t.value,
937
940
  "column-defs": i,
@@ -964,7 +967,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
964
967
  secretKey: ""
965
968
  });
966
969
  return (l, t) => {
967
- const m = y("FmTextField"), f = y("FmButton"), p = y("FmForm");
970
+ const m = y("FmTextField"), v = y("FmButton"), p = y("FmForm");
968
971
  return g(), w(p, {
969
972
  ref: "form",
970
973
  class: "flex flex-col gap-16",
@@ -990,14 +993,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
990
993
  rules: r(A)(r(N).string())
991
994
  }, null, 8, ["modelValue", "rules"]),
992
995
  s("div", ze, [
993
- n.gateway ? (g(), w(f, {
996
+ n.gateway ? (g(), w(v, {
994
997
  key: 0,
995
998
  class: "flex-1",
996
999
  variant: "secondary",
997
1000
  label: "Delete",
998
1001
  onclick: () => n.onDelete()
999
1002
  }, null, 8, ["onclick"])) : q("", !0),
1000
- a(f, {
1003
+ a(v, {
1001
1004
  type: "submit",
1002
1005
  class: "flex-1",
1003
1006
  variant: "primary",
@@ -1035,7 +1038,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1035
1038
  storeName: ""
1036
1039
  });
1037
1040
  return (l, t) => {
1038
- const m = y("FmTextField"), f = y("FmButton"), p = y("FmForm");
1041
+ const m = y("FmTextField"), v = y("FmButton"), p = y("FmForm");
1039
1042
  return g(), w(p, {
1040
1043
  ref: "form",
1041
1044
  class: "flex flex-col gap-16",
@@ -1073,14 +1076,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1073
1076
  rules: r(A)(r(N).string())
1074
1077
  }, null, 8, ["modelValue", "rules"]),
1075
1078
  s("div", Ze, [
1076
- n.gateway ? (g(), w(f, {
1079
+ n.gateway ? (g(), w(v, {
1077
1080
  key: 0,
1078
1081
  class: "flex-1",
1079
1082
  variant: "secondary",
1080
1083
  label: "Delete",
1081
1084
  onclick: () => n.onDelete()
1082
1085
  }, null, 8, ["onclick"])) : q("", !0),
1083
- a(f, {
1086
+ a(v, {
1084
1087
  type: "submit",
1085
1088
  class: "flex-1",
1086
1089
  variant: "primary",
@@ -1115,7 +1118,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1115
1118
  cardMerchantId: ""
1116
1119
  });
1117
1120
  return (l, t) => {
1118
- const m = y("FmTextField"), f = y("FmButton"), p = y("FmForm");
1121
+ const m = y("FmTextField"), v = y("FmButton"), p = y("FmForm");
1119
1122
  return g(), w(p, {
1120
1123
  ref: "form",
1121
1124
  class: "flex flex-col gap-16",
@@ -1135,14 +1138,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1135
1138
  rules: r(A)(r(N).string())
1136
1139
  }, null, 8, ["modelValue", "rules"]),
1137
1140
  s("div", Qe, [
1138
- n.gateway ? (g(), w(f, {
1141
+ n.gateway ? (g(), w(v, {
1139
1142
  key: 0,
1140
1143
  class: "flex-1",
1141
1144
  variant: "secondary",
1142
1145
  label: "Delete",
1143
1146
  onclick: () => n.onDelete()
1144
1147
  }, null, 8, ["onclick"])) : q("", !0),
1145
- a(f, {
1148
+ a(v, {
1146
1149
  type: "submit",
1147
1150
  class: "flex-1",
1148
1151
  variant: "primary",
@@ -1181,7 +1184,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1181
1184
  hmacKey: ""
1182
1185
  });
1183
1186
  return (l, t) => {
1184
- const m = y("FmTextField"), f = y("FmButton"), p = y("FmForm");
1187
+ const m = y("FmTextField"), v = y("FmButton"), p = y("FmForm");
1185
1188
  return g(), w(p, {
1186
1189
  ref: "form",
1187
1190
  class: "flex flex-col gap-16",
@@ -1224,14 +1227,14 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1224
1227
  label: "HMac Key"
1225
1228
  }, null, 8, ["modelValue"]),
1226
1229
  s("div", Xe, [
1227
- n.gateway ? (g(), w(f, {
1230
+ n.gateway ? (g(), w(v, {
1228
1231
  key: 0,
1229
1232
  class: "flex-1",
1230
1233
  variant: "secondary",
1231
1234
  label: "Delete",
1232
1235
  onclick: () => n.onDelete()
1233
1236
  }, null, 8, ["onclick"])) : q("", !0),
1234
- a(f, {
1237
+ a(v, {
1235
1238
  type: "submit",
1236
1239
  class: "flex-1",
1237
1240
  variant: "primary",
@@ -1266,7 +1269,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1266
1269
  privateKey: ""
1267
1270
  });
1268
1271
  return (l, t) => {
1269
- const m = y("FmTextField"), f = y("FmTextarea"), p = y("FmButton"), i = y("FmForm");
1272
+ const m = y("FmTextField"), v = y("FmTextarea"), p = y("FmButton"), i = y("FmForm");
1270
1273
  return g(), w(i, {
1271
1274
  ref: "form",
1272
1275
  class: "flex flex-col gap-16",
@@ -1279,7 +1282,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1279
1282
  label: "App ID",
1280
1283
  rules: r(A)(r(N).string())
1281
1284
  }, null, 8, ["modelValue", "rules"]),
1282
- a(f, {
1285
+ a(v, {
1283
1286
  modelValue: e.value.privateKey,
1284
1287
  "onUpdate:modelValue": t[1] || (t[1] = (d) => e.value.privateKey = d),
1285
1288
  label: "Private Key",
@@ -1330,8 +1333,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1330
1333
  }
1331
1334
  );
1332
1335
  return (l, t) => {
1333
- const m = y("FmTextField"), f = y("FmForm");
1334
- return g(), w(f, {
1336
+ const m = y("FmTextField"), v = y("FmForm");
1337
+ return g(), w(v, {
1335
1338
  ref: "form",
1336
1339
  class: "flex flex-col gap-16",
1337
1340
  onValidationSuccess: t[1] || (t[1] = () => n.onUpdate(e.value))
@@ -1366,7 +1369,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1366
1369
  setup(n) {
1367
1370
  const u = me().currentCountry, e = u.value, b = J(), { isLoading: l, startAsyncCall: t } = X(), { gatewayTab: m } = ee({
1368
1371
  gatewayTab: ""
1369
- }), f = n, p = [
1372
+ }), v = n, p = [
1370
1373
  {
1371
1374
  label: "Fiuu",
1372
1375
  value: "RAZER_MERCHANT_SERVICE",
@@ -1404,17 +1407,17 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1404
1407
  region: [$.F_COUNTRY.enum.AU]
1405
1408
  }
1406
1409
  ], i = C(
1407
- f.payoutAccount.gateways ?? []
1410
+ v.payoutAccount.gateways ?? []
1408
1411
  ), d = Y(() => p.find((S) => S.value === m.value)), o = Y(() => p.filter(
1409
1412
  (S) => S.region.includes(u.value ?? $.F_COUNTRY.enum.MY)
1410
1413
  ));
1411
1414
  async function c(S) {
1412
1415
  await t(async () => {
1413
1416
  try {
1414
- await G.updateGateway(f.payoutAccount._id, S), b.open({
1417
+ await G.updateGateway(v.payoutAccount._id, S), b.open({
1415
1418
  type: "success",
1416
1419
  title: "Payout account gateways update succesfully"
1417
- }), v.value = S.length === 0;
1420
+ }), f.value = S.length === 0;
1418
1421
  } catch (U) {
1419
1422
  b.open({
1420
1423
  type: "error",
@@ -1424,7 +1427,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1424
1427
  }
1425
1428
  });
1426
1429
  }
1427
- const v = C((f.payoutAccount.gateways ?? []).length === 0), F = Y(() => e !== "MY" || !v.value);
1430
+ const f = C((v.payoutAccount.gateways ?? []).length === 0), F = Y(() => e !== "MY" || !f.value);
1428
1431
  return (S, U) => {
1429
1432
  var _;
1430
1433
  const I = y("FmCircularProgress"), T = y("FmSwitch"), R = y("FmTabs");
@@ -1438,8 +1441,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1438
1441
  ])) : (g(), O(j, { key: 2 }, [
1439
1442
  r(e) === "MY" ? (g(), w(T, {
1440
1443
  key: 0,
1441
- modelValue: v.value,
1442
- "onUpdate:modelValue": U[0] || (U[0] = (V) => v.value = V),
1444
+ modelValue: f.value,
1445
+ "onUpdate:modelValue": U[0] || (U[0] = (V) => f.value = V),
1443
1446
  style: { "padding-bottom": "12px" },
1444
1447
  label: "Use FeedMe's Default Account?"
1445
1448
  }, null, 8, ["modelValue"])) : q("", !0),
@@ -1511,8 +1514,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1511
1514
  }
1512
1515
  );
1513
1516
  return (b, l) => {
1514
- const t = y("FmTextField"), m = y("FmButton"), f = y("FmForm");
1515
- return g(), w(f, {
1517
+ const t = y("FmTextField"), m = y("FmButton"), v = y("FmForm");
1518
+ return g(), w(v, {
1516
1519
  ref: "form",
1517
1520
  class: "flex flex-col gap-16",
1518
1521
  onValidationSuccess: l[3] || (l[3] = () => n.onUpdate(e.value))
@@ -1586,8 +1589,8 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1586
1589
  }
1587
1590
  );
1588
1591
  return (b, l) => {
1589
- const t = y("FmTextField"), m = y("FmButton"), f = y("FmForm");
1590
- return g(), w(f, {
1592
+ const t = y("FmTextField"), m = y("FmButton"), v = y("FmForm");
1593
+ return g(), w(v, {
1591
1594
  ref: "form",
1592
1595
  class: "flex flex-col gap-16",
1593
1596
  onValidationSuccess: l[2] || (l[2] = () => n.onUpdate(e.value))
@@ -1641,7 +1644,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1641
1644
  setup(n) {
1642
1645
  const u = me().currentCountry, e = J(), { isLoading: b, startAsyncCall: l } = X(), { tokenTab: t } = ee({
1643
1646
  tokenTab: ""
1644
- }), m = n, f = [
1647
+ }), m = n, v = [
1645
1648
  {
1646
1649
  label: "Google Pay",
1647
1650
  value: "googlePay",
@@ -1656,7 +1659,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1656
1659
  render: mt,
1657
1660
  region: [$.F_COUNTRY.enum.MY, $.F_COUNTRY.enum.SG]
1658
1661
  }
1659
- ], p = C(m.payoutAccount.tokens ?? []), i = Y(() => f.find((c) => c.value === t.value)), d = Y(() => f.filter(
1662
+ ], p = C(m.payoutAccount.tokens ?? []), i = Y(() => v.find((c) => c.value === t.value)), d = Y(() => v.filter(
1660
1663
  (c) => c.region.includes(u.value ?? $.F_COUNTRY.enum.MY)
1661
1664
  ));
1662
1665
  async function o(c) {
@@ -1666,20 +1669,20 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1666
1669
  type: "success",
1667
1670
  title: "Payout account tokens gateway update succesfully"
1668
1671
  });
1669
- } catch (v) {
1672
+ } catch (f) {
1670
1673
  e.open({
1671
1674
  type: "error",
1672
1675
  title: "Error occurs when updating payout account tokens",
1673
- message: z(v)
1676
+ message: z(f)
1674
1677
  });
1675
1678
  }
1676
1679
  });
1677
1680
  }
1678
- return (c, v) => {
1681
+ return (c, f) => {
1679
1682
  var U;
1680
1683
  const F = y("FmCircularProgress"), S = y("FmTabs");
1681
1684
  return g(), O(j, null, [
1682
- v[1] || (v[1] = s("p", { className: "mt-1 my-6 text-gray-600" }, [
1685
+ f[1] || (f[1] = s("p", { className: "mt-1 my-6 text-gray-600" }, [
1683
1686
  s("b", null, "Note: "),
1684
1687
  P(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
1685
1688
  s("br"),
@@ -1692,7 +1695,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1692
1695
  ])) : (g(), w(S, {
1693
1696
  key: 1,
1694
1697
  "model-value": r(t),
1695
- "onUpdate:modelValue": v[0] || (v[0] = (I) => W(t) ? t.value = I : null),
1698
+ "onUpdate:modelValue": f[0] || (f[0] = (I) => W(t) ? t.value = I : null),
1696
1699
  class: "mb-6 mt-6",
1697
1700
  items: d.value
1698
1701
  }, null, 8, ["model-value", "items"])),
@@ -1730,7 +1733,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1730
1733
  const u = n, { tab: e } = ee({
1731
1734
  tab: "information"
1732
1735
  }), { isLoading: b, startAsyncCall: l } = X(!0), t = ye(), m = C();
1733
- async function f(o) {
1736
+ async function v(o) {
1734
1737
  await G.updateById(
1735
1738
  u.accountId,
1736
1739
  o
@@ -1781,19 +1784,19 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1781
1784
  }
1782
1785
  re(i);
1783
1786
  const d = Y(() => {
1784
- const o = p.reduce((c, v) => c || (v.children ? v.children.find((F) => F.value === e.value) || null : v.value === e.value ? v : null), null);
1787
+ const o = p.reduce((c, f) => c || (f.children ? f.children.find((F) => F.value === e.value) || null : f.value === e.value ? f : null), null);
1785
1788
  return o == null ? void 0 : o.render;
1786
1789
  });
1787
1790
  return (o, c) => {
1788
1791
  var F;
1789
- const v = y("FmTabs");
1792
+ const f = y("FmTabs");
1790
1793
  return g(), w(pe, {
1791
1794
  title: `Payout Account (${(F = m.value) == null ? void 0 : F._id})`,
1792
1795
  loading: r(b),
1793
1796
  onBack: r(t).back
1794
1797
  }, {
1795
1798
  default: k(() => [
1796
- a(v, {
1799
+ a(f, {
1797
1800
  "model-value": r(e),
1798
1801
  "onUpdate:modelValue": c[0] || (c[0] = (S) => W(e) ? e.value = S : null),
1799
1802
  class: "mb-6",
@@ -1801,7 +1804,7 @@ const ke = { class: "flex gap-16 mb-6" }, Ve = { class: "flex gap-16 mb-6" }, we
1801
1804
  }, null, 8, ["model-value"]),
1802
1805
  r(e) ? (g(), w(ne(d.value), ae(oe({ key: 0 }, {
1803
1806
  payoutAccount: m.value,
1804
- onUpdate: f
1807
+ onUpdate: v
1805
1808
  })), null, 16)) : q("", !0)
1806
1809
  ]),
1807
1810
  _: 1
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as _, openBlock as x, createBlock as A, withCtx as $, createElementVNode as p, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, createVNode as v, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-fKbtEyKA.js";
2
+ import { u as O } from "./index-DtC940-u.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-DjPlzbUi.js";
5
+ import { u as G } from "./index-fFwg-TQI.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
7
- import { r as H } from "./index-DyVl5OC4.js";
7
+ import { r as H } from "./index-Cln1qxWz.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-DVHjaRm4.js";
9
+ import { g as X } from "./grafana-CUQUJCoc.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as S, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as U, computed as O, onMounted as R, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as H } from "vue";
2
- import { g as q, b as M, u as K, e as I } from "./index-DjPlzbUi.js";
2
+ import { g as q, b as M, u as K, e as I } from "./index-fFwg-TQI.js";
3
3
  import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
4
4
  import { useRouter as Q } from "vue-router";
5
- import { u as P } from "./index-fKbtEyKA.js";
5
+ import { u as P } from "./index-DtC940-u.js";
6
6
  import { z as y, a as f } from "./validator-CTlVogBQ.js";
7
7
  import { useCoreStore as E } from "@feedmepos/mf-common";
8
8
  import { u as Z } from "./error-K1CakhA9.js";
9
9
  import { useSnackbar as J } from "@feedmepos/ui-library";
10
- import { r as W } from "./index-DyVl5OC4.js";
10
+ import { r as W } from "./index-Cln1qxWz.js";
11
11
  const C = {
12
12
  async get(a) {
13
13
  return q(