@feedmepos/mf-payment 1.9.13-dev → 1.9.15

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 (105) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BSVr75X6.js → Actions.vue_vue_type_script_setup_true_lang-BXgHGNC-.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DepXoTFK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CVX7jsCL.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-T7WuGpcv.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DyyOEAlS.js} +2 -2
  4. package/dist/{Chargeback-BGGrIqC1.js → Chargeback-CzGb2qrj.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-LFfqIXzg.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BL_91vvu.js} +1 -1
  6. package/dist/{ExternalTerminal-Bgil7e9q.js → ExternalTerminal-DqxMSE0K.js} +6 -6
  7. package/dist/{OnboardForm-Bi55-0QC.js → OnboardForm-Mdi-W6G_.js} +6 -6
  8. package/dist/{OnboardForm-GY9iFm_0.js → OnboardForm-xqybdqSJ.js} +6 -6
  9. package/dist/{OnboardSubmission-BjxoLtdy.js → OnboardSubmission-C3rTFoVo.js} +3 -3
  10. package/dist/{OnboardSubmission-XtXfACsT.js → OnboardSubmission-COfHEeQD.js} +6 -6
  11. package/dist/{PayoutAccount-Cf9KDVaS.js → PayoutAccount-6BtrDGLI.js} +7 -7
  12. package/dist/{PayoutAccount-DRJkFbb7.js → PayoutAccount-DIUT5yBj.js} +5 -5
  13. package/dist/{PayoutAccountSetting-jo5pD78A.js → PayoutAccountSetting-yY-uwUjp.js} +303 -298
  14. package/dist/{Restaurant-T23GXyN4.js → Restaurant-BAoDUO78.js} +4 -4
  15. package/dist/{RestaurantSetting-Dt_43sff.js → RestaurantSetting-DlP5Tenc.js} +133 -127
  16. package/dist/{Settlement-DYIC_qx5.js → Settlement-CcCDXA-0.js} +4 -4
  17. package/dist/{Settlement-iQawCsTk.js → Settlement-CjXaV58A.js} +3 -3
  18. package/dist/{SettlementTransactions-DxtVwsGQ.js → SettlementTransactions-BlPvG-4Y.js} +5 -5
  19. package/dist/{SettlementTransactions-D6e2Jfz8.js → SettlementTransactions-Cmo7AUZD.js} +5 -5
  20. package/dist/{Status.vue_vue_type_script_setup_true_lang-RMf0UvJO.js → Status.vue_vue_type_script_setup_true_lang-Bhgfjh5T.js} +1 -1
  21. package/dist/{Terminal-B-MDewvq.js → Terminal-BIkz19PG.js} +6 -6
  22. package/dist/{TerminalSetting-CpDVVqna.js → TerminalSetting-CjCN7uyo.js} +1164 -1038
  23. package/dist/{Transaction-BdoEqUsK.js → Transaction-BDum2QDI.js} +11 -11
  24. package/dist/{Transaction-DQJOm0M1.js → Transaction-CA8w8syf.js} +10 -10
  25. package/dist/{TransactionOld-Cv-ldfgv.js → TransactionOld-C6QjHM9R.js} +7 -7
  26. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DgXB350L.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DpnCDoAu.js} +1 -1
  27. package/dist/{app-BV0gwDWT.js → app-DSMJE8lZ.js} +353 -362
  28. package/dist/app.js +1 -1
  29. package/dist/{assets-B3BMwzbu.js → assets-tw3UIJp-.js} +35 -34
  30. package/dist/{grafana-BnniZglw.js → grafana-_2snxoSk.js} +1 -1
  31. package/dist/{index-D-aQKndH.js → index-BQdV_OnA.js} +1 -1
  32. package/dist/{index-2OskxiaA.js → index-Ccc_rvgC.js} +1 -1
  33. package/dist/{index-Bahs0LXz.js → index-CjjoPVnQ.js} +1 -1
  34. package/dist/{index-CHb_FpXY.js → index-Ck6E6roO.js} +8582 -8289
  35. package/dist/{index-DVY0KmHF.js → index-D0Ui2BhX.js} +1 -1
  36. package/dist/{index-GluKZYof.js → index-DZWnrh1w.js} +1 -1
  37. package/dist/{index-JjM7nnLl.js → index-Z4Uo8sdb.js} +1 -1
  38. package/dist/{index-jy0qmXan.js → index-fLgg0fDG.js} +1 -1
  39. package/dist/{index-afhcVzt-.js → index-fMLDkmGA.js} +1 -1
  40. package/dist/{index-BANsbSLN.js → index-k-8f2BQB.js} +2 -2
  41. package/dist/{index.vue_vue_type_script_setup_true_lang-CQyJ-QxJ.js → index.vue_vue_type_script_setup_true_lang-DB7kUcYX.js} +1 -1
  42. package/dist/model/payout-account.d.ts +2 -2
  43. package/dist/{onboard-submission-yLxQsG7y.js → onboard-submission-BKnZXNdc.js} +1 -1
  44. package/dist/package.json +3 -3
  45. package/dist/{payout-account-C86XmNO4.js → payout-account-DylXcFZf.js} +3 -3
  46. package/dist/stores/payoutAccount.d.ts +28 -26
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +8 -8
  49. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +8 -8
  50. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +8 -8
  51. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +28 -26
  52. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +32 -30
  53. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +32 -30
  54. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +28 -26
  55. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +28 -26
  56. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +32 -30
  57. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -0
  58. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  59. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  60. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  61. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  63. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  64. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -2
  65. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  66. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  67. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +2 -2
  68. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +2 -2
  69. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  70. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  71. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +2 -2
  72. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
  73. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  74. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  75. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
  76. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +12 -12
  77. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +12 -12
  78. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -12
  79. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +12 -12
  80. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +12 -12
  81. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -12
  82. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +12 -12
  83. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +12 -12
  84. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +12 -12
  85. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +12 -12
  86. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +12 -12
  87. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +12 -12
  88. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +12 -12
  89. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +12 -12
  90. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +12 -12
  91. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +12 -12
  92. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +12 -12
  93. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +12 -12
  94. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +12 -12
  95. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +12 -12
  96. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +196 -0
  97. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +12 -12
  98. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +12 -12
  99. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +12 -12
  100. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -12
  101. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +56 -52
  102. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +24 -24
  103. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +12 -12
  104. package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
  105. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { defineComponent as R, ref as U, resolveComponent as p, openBlock as F, createElementBlock as G, Fragment as j, createElementVNode as r, createVNode as n, withCtx as w, createTextVNode as _, toDisplayString as O, unref as i, createBlock as k, createCommentVNode as $, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as me, resolveDynamicComponent as ue, normalizeProps as re, mergeProps as se } from "vue";
2
- import { p as Y } from "./index-D-aQKndH.js";
3
- import { u as ne, e as q } from "./index-CHb_FpXY.js";
1
+ import { defineComponent as R, ref as U, resolveComponent as d, openBlock as g, createElementBlock as G, Fragment as j, createElementVNode as r, createVNode as n, withCtx as w, createTextVNode as _, toDisplayString as O, unref as i, createBlock as k, createCommentVNode as $, reactive as ye, watch as le, computed as L, isRef as ae, h as J, onMounted as me, resolveDynamicComponent as ue, normalizeProps as re, mergeProps as se } from "vue";
2
+ import { p as Y } from "./index-BQdV_OnA.js";
3
+ import { u as ne, e as q } from "./index-Ck6E6roO.js";
4
4
  import { _ as be } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
5
5
  import { useRouter as ve } from "vue-router";
6
- import { u as oe } from "./index-DVY0KmHF.js";
7
- import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-LFfqIXzg.js";
6
+ import { u as oe } from "./index-D0Ui2BhX.js";
7
+ import { _ as Q, P as ee } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BL_91vvu.js";
8
8
  import { h as fe } from "./moment-h96o7c8I.js";
9
- import { d as te } from "./index-JjM7nnLl.js";
9
+ import { d as te } from "./index-Z4Uo8sdb.js";
10
10
  import { useSnackbar as W, useDialogChild as ge, useDialog as de, components as Fe } from "@feedmepos/ui-library";
11
11
  import { u as Z } from "./error-K1CakhA9.js";
12
- import { P as xe } from "./payout-account-C86XmNO4.js";
12
+ import { P as xe } from "./payout-account-DylXcFZf.js";
13
13
  import { s as X, o as ke, z as N, a as D } from "./validator-CTlVogBQ.js";
14
14
  import { _ as we } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
15
15
  import { useCoreStore as pe } from "@feedmepos/mf-common";
@@ -26,56 +26,56 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
26
26
  }
27
27
  },
28
28
  setup(a) {
29
- const l = a, e = W(), b = U(!1), u = U(!1), t = U(), c = U(""), g = (d) => {
29
+ const l = a, e = W(), v = U(!1), u = U(!1), t = U(), c = U(""), F = (p) => {
30
30
  const o = new FileReader();
31
31
  return new Promise((S) => {
32
32
  o.onload = (A) => {
33
33
  var C;
34
34
  return S((C = A.target) == null ? void 0 : C.result);
35
- }, o.readAsDataURL(d);
35
+ }, o.readAsDataURL(p);
36
36
  });
37
- }, v = async (d) => {
38
- t.value = d, c.value = d ? await g(d) : "";
37
+ }, f = async (p) => {
38
+ t.value = p, c.value = p ? await F(p) : "";
39
39
  }, m = () => {
40
40
  u.value = !1, t.value = void 0, c.value = "";
41
- }, f = () => {
41
+ }, y = () => {
42
42
  t.value = void 0, c.value = "";
43
- }, s = async (d) => {
43
+ }, s = async (p) => {
44
44
  var S;
45
45
  const o = l.payoutAccount.businessId || l.payoutAccount.store.id;
46
46
  return ((S = l.payoutAccount.store) == null ? void 0 : S.event) === "ORDERING" ? await te.adminUpload(
47
47
  `restaurant/${l.payoutAccount.store.id}/exterior/photo`,
48
- d,
48
+ p,
49
49
  o,
50
50
  l.payoutAccount.store.id
51
51
  ) : await te.adminUpload(
52
52
  `business/${o}/exterior/photo`,
53
- d,
53
+ p,
54
54
  o,
55
55
  void 0
56
56
  );
57
- }, y = async () => {
57
+ }, b = async () => {
58
58
  if (t.value)
59
59
  try {
60
- b.value = !0;
61
- const d = await s(t.value), o = {
60
+ v.value = !0;
61
+ const p = await s(t.value), o = {
62
62
  ...l.payoutAccount,
63
63
  store: {
64
64
  ...l.payoutAccount.store,
65
- exteriorPhoto: d
65
+ exteriorPhoto: p
66
66
  }
67
67
  };
68
68
  await l.onUpdate(o), u.value = !1, t.value = void 0, c.value = "", e.open({ type: "success", title: "Exterior photo updated successfully" });
69
- } catch (d) {
70
- e.open({ type: "error", title: "Failed to update exterior photo", message: Z(d) });
69
+ } catch (p) {
70
+ e.open({ type: "error", title: "Failed to update exterior photo", message: Z(p) });
71
71
  } finally {
72
- b.value = !1;
72
+ v.value = !1;
73
73
  }
74
74
  };
75
- return (d, o) => {
75
+ return (p, o) => {
76
76
  var P, V, x, E;
77
- const S = p("FmCardHeader"), A = p("FmCardSection"), C = p("FmCard"), I = p("FmButton"), T = p("FmDropField");
78
- return F(), G(j, null, [
77
+ const S = d("FmCardHeader"), A = d("FmCardSection"), C = d("FmCard"), I = d("FmButton"), T = d("FmDropField");
78
+ return g(), G(j, null, [
79
79
  r("div", Ve, [
80
80
  n(C, {
81
81
  horizontal: "",
@@ -193,13 +193,13 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
193
193
  r("div", Se, [
194
194
  o[19] || (o[19] = r("p", { class: "fm-typo-en-body-lg-600" }, "Exterior Photo", -1)),
195
195
  r("div", Ne, [
196
- u.value ? (F(), k(I, {
196
+ u.value ? (g(), k(I, {
197
197
  key: 0,
198
198
  variant: "tertiary",
199
199
  label: "Cancel",
200
200
  onClick: m
201
201
  })) : $("", !0),
202
- u.value ? $("", !0) : (F(), k(I, {
202
+ u.value ? $("", !0) : (g(), k(I, {
203
203
  key: 1,
204
204
  variant: "primary",
205
205
  label: "Edit Exterior Photo",
@@ -207,8 +207,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
207
207
  }))
208
208
  ])
209
209
  ]),
210
- u.value ? (F(), G(j, { key: 0 }, [
211
- c.value ? (F(), G(j, { key: 0 }, [
210
+ u.value ? (g(), G(j, { key: 0 }, [
211
+ c.value ? (g(), G(j, { key: 0 }, [
212
212
  n(Q, {
213
213
  document: c.value,
214
214
  "business-id": a.payoutAccount.businessId,
@@ -220,23 +220,23 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
220
220
  label: "Remove",
221
221
  size: "md",
222
222
  "prepend-icon": "delete",
223
- onClick: f
223
+ onClick: y
224
224
  }),
225
225
  n(I, {
226
226
  variant: "primary",
227
227
  label: "Save",
228
228
  size: "md",
229
- loading: b.value,
230
- onClick: y
229
+ loading: v.value,
230
+ onClick: b
231
231
  }, null, 8, ["loading"])
232
232
  ])
233
- ], 64)) : (F(), k(T, {
233
+ ], 64)) : (g(), k(T, {
234
234
  key: 1,
235
235
  class: "h-[300px] w-full",
236
236
  accept: ".png,.jpg,.jpeg,.webp,.pdf",
237
- onFileUpload: v
237
+ onFileUpload: f
238
238
  }))
239
- ], 64)) : (F(), k(Q, {
239
+ ], 64)) : (g(), k(Q, {
240
240
  key: 1,
241
241
  document: a.payoutAccount.store.exteriorPhoto,
242
242
  "business-id": a.payoutAccount.businessId,
@@ -266,7 +266,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
266
266
  }
267
267
  },
268
268
  setup(a) {
269
- const l = a, { emitAction: e, emitData: b } = ge(), u = ye({
269
+ const l = a, { emitAction: e, emitData: v } = ge(), u = ye({
270
270
  companyName: l.initialValue.companyName,
271
271
  regNo: l.initialValue.regNo,
272
272
  bankName: l.initialValue.bankName,
@@ -274,15 +274,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
274
274
  bankAccountNumber: l.initialValue.bankAccountNumber,
275
275
  ssm: l.initialValue.ssm,
276
276
  bankStatement: l.initialValue.bankStatement
277
- }), t = U(), c = U(), g = U(u.ssm ?? ""), v = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), f = X().trim().min(1, "Registration number is required"), s = X().trim().min(1, "Bank name is required"), y = X().trim().min(1, "Bank holder name is required"), d = X().trim().min(1, "Bank account number is required"), o = ke({
277
+ }), t = U(), c = U(), F = U(u.ssm ?? ""), f = U(u.bankStatement ?? ""), m = X().trim().min(1, "Company name is required"), y = X().trim().min(1, "Registration number is required"), s = X().trim().min(1, "Bank name is required"), b = X().trim().min(1, "Bank holder name is required"), p = X().trim().min(1, "Bank account number is required"), o = ke({
278
278
  companyName: m,
279
- regNo: f,
279
+ regNo: y,
280
280
  bankName: s,
281
- bankHolderName: y,
282
- bankAccountNumber: d
281
+ bankHolderName: b,
282
+ bankAccountNumber: p
283
283
  }), S = () => {
284
284
  const V = o.safeParse(u);
285
- V.success && (b({
285
+ V.success && (v({
286
286
  ...V.data,
287
287
  ssm: u.ssm,
288
288
  bankStatement: u.bankStatement,
@@ -300,17 +300,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
300
300
  });
301
301
  }
302
302
  const C = async (V) => {
303
- t.value = V, g.value = V ? await A(V) : "";
303
+ t.value = V, F.value = V ? await A(V) : "";
304
304
  }, I = async (V) => {
305
- c.value = V, v.value = V ? await A(V) : "";
305
+ c.value = V, f.value = V ? await A(V) : "";
306
306
  }, T = () => {
307
- t.value = void 0, g.value = "";
307
+ t.value = void 0, F.value = "";
308
308
  }, P = () => {
309
- c.value = void 0, v.value = "";
309
+ c.value = void 0, f.value = "";
310
310
  };
311
311
  return (V, x) => {
312
- const E = p("FmTextField"), B = p("FmSelect"), h = p("FmButton"), K = p("FmFormGroup"), H = p("FmDropField"), z = p("FmForm");
313
- return F(), k(z, {
312
+ const E = d("FmTextField"), B = d("FmSelect"), h = d("FmButton"), K = d("FmFormGroup"), H = d("FmDropField"), z = d("FmForm");
313
+ return g(), k(z, {
314
314
  class: "flex flex-col gap-16",
315
315
  onValidationSuccess: S
316
316
  }, {
@@ -326,7 +326,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
326
326
  label: "Registration Number",
327
327
  "label-mark": "required",
328
328
  "helper-text": "Registration Number must match uploaded SSM registration number.",
329
- rules: i(N)(i(f)),
329
+ rules: i(N)(i(y)),
330
330
  autofocus: ""
331
331
  }, null, 8, ["modelValue", "rules"]),
332
332
  n(E, {
@@ -355,7 +355,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
355
355
  "onUpdate:modelValue": x[3] || (x[3] = (M) => u.bankHolderName = M),
356
356
  label: "Bank Holder",
357
357
  "label-mark": "required",
358
- rules: i(N)(i(y))
358
+ rules: i(N)(i(b))
359
359
  }, null, 8, ["modelValue", "rules"]),
360
360
  n(E, {
361
361
  modelValue: u.bankAccountNumber,
@@ -363,7 +363,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
363
363
  label: "Bank Account Number",
364
364
  "label-mark": "required",
365
365
  type: "number",
366
- rules: i(N)(i(d))
366
+ rules: i(N)(i(p))
367
367
  }, null, 8, ["modelValue", "rules"]),
368
368
  x[11] || (x[11] = r("div", { class: "flex items-center my-2" }, [
369
369
  r("hr", { class: "w-[80px] border-t border-gray-300" }),
@@ -372,15 +372,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
372
372
  ], -1)),
373
373
  r("div", Ie, [
374
374
  x[7] || (x[7] = r("p", { class: "fm-typo-en-body-md-500" }, "SSM (PDF)", -1)),
375
- g.value ? (F(), k(K, {
375
+ F.value ? (g(), k(K, {
376
376
  key: 0,
377
- modelValue: g.value,
378
- "onUpdate:modelValue": x[5] || (x[5] = (M) => g.value = M),
377
+ modelValue: F.value,
378
+ "onUpdate:modelValue": x[5] || (x[5] = (M) => F.value = M),
379
379
  label: "SSM"
380
380
  }, {
381
381
  default: w(() => [
382
382
  n(Q, {
383
- document: g.value,
383
+ document: F.value,
384
384
  "business-id": a.businessId,
385
385
  "restaurant-id": a.restaurantId
386
386
  }, {
@@ -404,7 +404,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
404
404
  })
405
405
  ]),
406
406
  _: 1
407
- }, 8, ["modelValue"])) : (F(), k(H, {
407
+ }, 8, ["modelValue"])) : (g(), k(H, {
408
408
  key: 1,
409
409
  accept: ".pdf",
410
410
  onFileUpload: C
@@ -412,15 +412,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
412
412
  ]),
413
413
  r("div", De, [
414
414
  x[8] || (x[8] = r("p", { class: "fm-typo-en-body-md-500" }, "Bank Statement (PDF)", -1)),
415
- v.value ? (F(), k(K, {
415
+ f.value ? (g(), k(K, {
416
416
  key: 0,
417
- modelValue: v.value,
418
- "onUpdate:modelValue": x[6] || (x[6] = (M) => v.value = M),
417
+ modelValue: f.value,
418
+ "onUpdate:modelValue": x[6] || (x[6] = (M) => f.value = M),
419
419
  label: "Bank Statement"
420
420
  }, {
421
421
  default: w(() => [
422
422
  n(Q, {
423
- document: v.value,
423
+ document: f.value,
424
424
  "business-id": a.businessId,
425
425
  "restaurant-id": a.restaurantId
426
426
  }, {
@@ -444,7 +444,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
444
444
  })
445
445
  ]),
446
446
  _: 1
447
- }, 8, ["modelValue"])) : (F(), k(H, {
447
+ }, 8, ["modelValue"])) : (g(), k(H, {
448
448
  key: 1,
449
449
  accept: ".pdf",
450
450
  onFileUpload: I
@@ -475,64 +475,64 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
475
475
  }
476
476
  },
477
477
  setup(a) {
478
- const l = a, e = U(!1), b = de(), u = W(), t = xe.bankNameOptions(), c = () => {
479
- var f, s, y, d, o, S, A, C, I, T;
478
+ const l = a, e = U(!1), v = de(), u = W(), t = xe.bankNameOptions(), c = () => {
479
+ var y, s, b, p, o, S, A, C, I, T;
480
480
  return {
481
- companyName: ((f = l.payoutAccount.store) == null ? void 0 : f.companyName) ?? "",
481
+ companyName: ((y = l.payoutAccount.store) == null ? void 0 : y.companyName) ?? "",
482
482
  regNo: ((s = l.payoutAccount.store) == null ? void 0 : s.regNo) ?? "",
483
- bankName: ((d = (y = l.payoutAccount.store) == null ? void 0 : y.bank) == null ? void 0 : d.name) ?? "",
483
+ bankName: ((p = (b = l.payoutAccount.store) == null ? void 0 : b.bank) == null ? void 0 : p.name) ?? "",
484
484
  bankHolderName: ((S = (o = l.payoutAccount.store) == null ? void 0 : o.bank) == null ? void 0 : S.holderName) ?? "",
485
485
  bankAccountNumber: ((C = (A = l.payoutAccount.store) == null ? void 0 : A.bank) == null ? void 0 : C.accountNumber) ?? "",
486
486
  ssm: ((I = l.payoutAccount.store) == null ? void 0 : I.ssm) ?? "",
487
487
  bankStatement: ((T = l.payoutAccount.store) == null ? void 0 : T.bankStatement) ?? ""
488
488
  };
489
- }, g = async (f, s) => {
489
+ }, F = async (y, s) => {
490
490
  var o;
491
- const y = (/* @__PURE__ */ new Date()).toISOString();
491
+ const b = (/* @__PURE__ */ new Date()).toISOString();
492
492
  if (((o = l.payoutAccount.store) == null ? void 0 : o.event) === "ORDERING")
493
493
  return await te.adminUpload(
494
- `restaurant/${l.payoutAccount.store.id}/documents/${f}/${y}.pdf`,
494
+ `restaurant/${l.payoutAccount.store.id}/documents/${y}/${b}.pdf`,
495
495
  s,
496
496
  l.payoutAccount.businessId,
497
497
  l.payoutAccount.store.id
498
498
  );
499
- const d = l.payoutAccount.businessId || l.payoutAccount.store.id;
499
+ const p = l.payoutAccount.businessId || l.payoutAccount.store.id;
500
500
  return await te.adminUpload(
501
- `business/${d}/documents/${f}/${y}.pdf`,
501
+ `business/${p}/documents/${y}/${b}.pdf`,
502
502
  s,
503
- d,
503
+ p,
504
504
  void 0
505
505
  );
506
- }, v = async (f) => {
506
+ }, f = async (y) => {
507
507
  if (!l.payoutAccount.store) return;
508
508
  let s = l.payoutAccount.store.ssm;
509
- f.newSSM && (s = await g("ssm", f.newSSM));
510
- let y = l.payoutAccount.store.bankStatement;
511
- f.newBankStatement && (y = await g(
509
+ y.newSSM && (s = await F("ssm", y.newSSM));
510
+ let b = l.payoutAccount.store.bankStatement;
511
+ y.newBankStatement && (b = await F(
512
512
  "bankStatement",
513
- f.newBankStatement
513
+ y.newBankStatement
514
514
  ));
515
- const d = {
515
+ const p = {
516
516
  ...l.payoutAccount,
517
517
  store: {
518
518
  ...l.payoutAccount.store,
519
- companyName: f.companyName,
520
- regNo: f.regNo,
519
+ companyName: y.companyName,
520
+ regNo: y.regNo,
521
521
  bank: {
522
522
  ...l.payoutAccount.store.bank ?? {},
523
- name: f.bankName,
524
- holderName: f.bankHolderName,
525
- accountNumber: f.bankAccountNumber
523
+ name: y.bankName,
524
+ holderName: y.bankHolderName,
525
+ accountNumber: y.bankAccountNumber
526
526
  },
527
527
  ssm: s,
528
- bankStatement: y
528
+ bankStatement: b
529
529
  }
530
530
  };
531
531
  try {
532
- e.value = !0, await l.onUpdate(d), u.open({
532
+ e.value = !0, await l.onUpdate(p), u.open({
533
533
  type: "success",
534
534
  title: "Settlement info updated successfully"
535
- }), b.close();
535
+ }), v.close();
536
536
  } catch (o) {
537
537
  u.open({
538
538
  type: "error",
@@ -543,8 +543,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
543
543
  e.value = !1;
544
544
  }
545
545
  }, m = () => {
546
- var f;
547
- b.close(), b.open({
546
+ var y;
547
+ v.close(), v.open({
548
548
  title: "Edit Settlement Info",
549
549
  closeButton: !0,
550
550
  overlay: !0,
@@ -553,18 +553,18 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
553
553
  initialValue: c(),
554
554
  bankNameOptions: t,
555
555
  businessId: l.payoutAccount.businessId,
556
- restaurantId: ((f = l.payoutAccount.store) == null ? void 0 : f.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
556
+ restaurantId: ((y = l.payoutAccount.store) == null ? void 0 : y.event) === "ORDERING" ? l.payoutAccount.store.id : void 0
557
557
  }
558
558
  }).onPrimary((s) => {
559
- v(s);
559
+ f(s);
560
560
  });
561
561
  };
562
- return (f, s) => {
562
+ return (y, s) => {
563
563
  var A, C, I, T;
564
- const y = p("FmButton"), d = p("FmCardHeader"), o = p("FmCardSection"), S = p("FmCard");
565
- return F(), G(j, null, [
564
+ const b = d("FmButton"), p = d("FmCardHeader"), o = d("FmCardSection"), S = d("FmCard");
565
+ return g(), G(j, null, [
566
566
  r("div", Re, [
567
- n(y, {
567
+ n(b, {
568
568
  variant: "primary",
569
569
  label: "Edit Settlement Info",
570
570
  loading: e.value,
@@ -580,7 +580,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
580
580
  default: w(() => [
581
581
  n(o, { class: "flex flex-col gap-16 justify-between" }, {
582
582
  default: w(() => [
583
- n(d, {
583
+ n(p, {
584
584
  class: "p-0",
585
585
  title: "Company Info",
586
586
  subtitle: ""
@@ -613,7 +613,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
613
613
  default: w(() => [
614
614
  n(o, { class: "flex flex-col gap-16 justify-between" }, {
615
615
  default: w(() => [
616
- n(d, {
616
+ n(p, {
617
617
  class: "p-0",
618
618
  title: "Bank Info",
619
619
  subtitle: ""
@@ -688,11 +688,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
688
688
  },
689
689
  setup(a) {
690
690
  const l = a, e = U(l.data.toString());
691
- return le(e, (b) => {
692
- l.onChange(parseFloat(b));
693
- }), (b, u) => {
694
- const t = p("FmTextField");
695
- return F(), k(t, {
691
+ return le(e, (v) => {
692
+ l.onChange(parseFloat(v));
693
+ }), (v, u) => {
694
+ const t = d("FmTextField");
695
+ return g(), k(t, {
696
696
  inputmode: "decimal",
697
697
  modelValue: e.value,
698
698
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
@@ -712,11 +712,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
712
712
  },
713
713
  setup(a) {
714
714
  const l = a, e = U(l.data.toString());
715
- return le(e, (b) => {
716
- l.onChange(parseInt(b));
717
- }), (b, u) => {
718
- const t = p("FmTextField");
719
- return F(), k(t, {
715
+ return le(e, (v) => {
716
+ l.onChange(parseInt(v));
717
+ }), (v, u) => {
718
+ const t = d("FmTextField");
719
+ return g(), k(t, {
720
720
  inputmode: "numeric",
721
721
  modelValue: e.value,
722
722
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
@@ -731,11 +731,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
731
731
  },
732
732
  setup(a) {
733
733
  const l = a, e = U(l.data.toString());
734
- return le(e, (b) => {
735
- l.onChange(parseFloat(b));
736
- }), (b, u) => {
737
- const t = p("FmTextField");
738
- return F(), k(t, {
734
+ return le(e, (v) => {
735
+ l.onChange(parseFloat(v));
736
+ }), (v, u) => {
737
+ const t = d("FmTextField");
738
+ return g(), k(t, {
739
739
  inputmode: "numeric",
740
740
  modelValue: e.value,
741
741
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c)
@@ -760,17 +760,17 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
760
760
  }
761
761
  },
762
762
  setup(a) {
763
- const l = a, e = U(!1), b = W(), u = de(), t = async (s) => {
763
+ const l = a, e = U(!1), v = W(), u = de(), t = async (s) => {
764
764
  try {
765
- e.value = !0, await l.onUpdate(s), b.open({
765
+ e.value = !0, await l.onUpdate(s), v.open({
766
766
  type: "success",
767
767
  title: "Payout account update succesfully"
768
768
  });
769
- } catch (y) {
770
- b.open({
769
+ } catch (b) {
770
+ v.open({
771
771
  type: "error",
772
772
  title: "Error occurs when updating payout account",
773
- message: Z(y)
773
+ message: Z(b)
774
774
  });
775
775
  } finally {
776
776
  e.value = !1;
@@ -819,12 +819,12 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
819
819
  }).onPrimary((s) => {
820
820
  l.payoutAccount.enable = !1, l.payoutAccount.status = "REJECTED", l.payoutAccount.statusReason = s, t(l.payoutAccount), u.close();
821
821
  });
822
- }, { search: g } = oe({
822
+ }, { search: F } = oe({
823
823
  search: ""
824
- }), v = L(() => {
825
- const { ssm: s, bank: y, bankStatement: d } = l.payoutAccount.store;
826
- return s && y && y.name && y.accountNumber && y.holderName && d;
827
- }), m = U(""), f = [
824
+ }), f = L(() => {
825
+ const { ssm: s, bank: b, bankStatement: p } = l.payoutAccount.store;
826
+ return s && b && b.name && b.accountNumber && b.holderName && p;
827
+ }), m = U(""), y = [
828
828
  {
829
829
  header: () => "Payment Method",
830
830
  accessorKey: "issuer",
@@ -834,15 +834,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
834
834
  header: () => "Rate",
835
835
  accessorKey: "rate",
836
836
  cell: ({ row: s }) => {
837
- let y = 0;
838
- return s.original.rate && (y = s.original.rate.amount / Math.pow(10, s.original.rate.precision)), J(Ee, {
839
- data: y,
840
- onChange: (d) => {
837
+ let b = 0;
838
+ return s.original.rate && (b = s.original.rate.amount / Math.pow(10, s.original.rate.precision)), J(Ee, {
839
+ data: b,
840
+ onChange: (p) => {
841
841
  const o = l.payoutAccount.methods.at(s.index);
842
842
  o.rate || (o.rate = {
843
843
  amount: 0,
844
844
  precision: 4
845
- }), o.rate.amount = d * Math.pow(10, o.rate.precision);
845
+ }), o.rate.amount = p * Math.pow(10, o.rate.precision);
846
846
  }
847
847
  });
848
848
  }
@@ -851,15 +851,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
851
851
  header: () => "Minimum Fee",
852
852
  accessorKey: "minimumFee",
853
853
  cell: ({ row: s }) => {
854
- let y = 0;
855
- return s.original.minimumFee && (y = s.original.minimumFee.amount / Math.pow(10, s.original.minimumFee.precision)), J(Oe, {
856
- data: y,
857
- onChange: (d) => {
854
+ let b = 0;
855
+ return s.original.minimumFee && (b = s.original.minimumFee.amount / Math.pow(10, s.original.minimumFee.precision)), J(Oe, {
856
+ data: b,
857
+ onChange: (p) => {
858
858
  const o = l.payoutAccount.methods.at(s.index);
859
859
  o.minimumFee || (o.minimumFee = {
860
860
  amount: 0,
861
861
  precision: 2
862
- }), o.minimumFee.amount = d * Math.pow(10, o.minimumFee.precision);
862
+ }), o.minimumFee.amount = p * Math.pow(10, o.minimumFee.precision);
863
863
  }
864
864
  });
865
865
  }
@@ -869,33 +869,33 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
869
869
  accessorKey: "tPlus",
870
870
  cell: ({ row: s }) => J(qe, {
871
871
  data: s.original.tPlus ?? 0,
872
- onChange: (y) => {
873
- const d = l.payoutAccount.methods.at(s.index);
874
- d.tPlus = y;
872
+ onChange: (b) => {
873
+ const p = l.payoutAccount.methods.at(s.index);
874
+ p.tPlus = b;
875
875
  }
876
876
  })
877
877
  }
878
878
  ];
879
- return (s, y) => {
880
- const d = p("FmRadio"), o = p("FmRadioGroup"), S = p("FmSwitch"), A = p("FmSearch"), C = p("FmTable"), I = p("FmButton");
881
- return F(), G(j, null, [
879
+ return (s, b) => {
880
+ const p = d("FmRadio"), o = d("FmRadioGroup"), S = d("FmSwitch"), A = d("FmSearch"), C = d("FmTable"), I = d("FmButton");
881
+ return g(), G(j, null, [
882
882
  r("div", Ge, [
883
883
  r("div", Ke, [
884
884
  n(o, {
885
885
  modelValue: a.payoutAccount.status,
886
- "onUpdate:modelValue": y[0] || (y[0] = (T) => a.payoutAccount.status = T),
886
+ "onUpdate:modelValue": b[0] || (b[0] = (T) => a.payoutAccount.status = T),
887
887
  label: "Account Status"
888
888
  }, {
889
889
  default: w(() => [
890
- n(d, {
890
+ n(p, {
891
891
  value: "PENDING",
892
892
  label: "Pending"
893
893
  }),
894
- n(d, {
894
+ n(p, {
895
895
  value: "APPROVED",
896
896
  label: "Approved"
897
897
  }),
898
- n(d, {
898
+ n(p, {
899
899
  value: "REJECTED",
900
900
  label: "Rejected",
901
901
  onClick: c
@@ -907,19 +907,19 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
907
907
  r("div", je, [
908
908
  n(S, {
909
909
  modelValue: a.payoutAccount.enable,
910
- "onUpdate:modelValue": y[1] || (y[1] = (T) => a.payoutAccount.enable = T),
911
- disabled: !v.value,
910
+ "onUpdate:modelValue": b[1] || (b[1] = (T) => a.payoutAccount.enable = T),
911
+ disabled: !f.value,
912
912
  label: "Enabled",
913
913
  sublabel: "Merchant can use online features such as e-payment, settlement"
914
914
  }, null, 8, ["modelValue", "disabled"])
915
915
  ])
916
916
  ]),
917
- a.payoutAccount.enable ? (F(), G(j, { key: 0 }, [
917
+ a.payoutAccount.enable ? (g(), G(j, { key: 0 }, [
918
918
  r("div", Ye, [
919
919
  r("div", He, [
920
920
  n(A, {
921
- modelValue: i(g),
922
- "onUpdate:modelValue": y[2] || (y[2] = (T) => ae(g) ? g.value = T : null),
921
+ modelValue: i(F),
922
+ "onUpdate:modelValue": b[2] || (b[2] = (T) => ae(F) ? F.value = T : null),
923
923
  placeholder: "Search Method ..."
924
924
  }, null, 8, ["modelValue"])
925
925
  ])
@@ -927,11 +927,11 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
927
927
  n(C, {
928
928
  class: "mt-6",
929
929
  modelValue: m.value,
930
- "onUpdate:modelValue": y[3] || (y[3] = (T) => m.value = T),
930
+ "onUpdate:modelValue": b[3] || (b[3] = (T) => m.value = T),
931
931
  "shrink-at": !1,
932
- "search-value": i(g),
932
+ "search-value": i(F),
933
933
  "row-data": a.payoutAccount.methods,
934
- "column-defs": f
934
+ "column-defs": y
935
935
  }, null, 8, ["modelValue", "search-value", "row-data"])
936
936
  ], 64)) : $("", !0),
937
937
  n(I, {
@@ -949,9 +949,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
949
949
  emits: ["edit", "delete"],
950
950
  setup(a, { emit: l }) {
951
951
  const e = l;
952
- return (b, u) => {
953
- const t = p("FmButton");
954
- return F(), G("div", Le, [
952
+ return (v, u) => {
953
+ const t = d("FmButton");
954
+ return g(), G("div", Le, [
955
955
  n(t, {
956
956
  variant: "plain",
957
957
  "prepend-icon": "delete",
@@ -971,41 +971,41 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
971
971
  }
972
972
  },
973
973
  setup(a) {
974
- const l = W(), e = a, { isLoading: b, startAsyncCall: u } = ne(), t = U([]);
974
+ const l = W(), e = a, { isLoading: v, startAsyncCall: u } = ne(), t = U([]);
975
975
  function c() {
976
976
  u(async () => {
977
977
  t.value = await Y.getChannels(e.payoutAccount._id);
978
978
  });
979
979
  }
980
980
  me(c);
981
- function g() {
981
+ function F() {
982
982
  u(async () => {
983
983
  try {
984
984
  await Y.updateChannels(e.payoutAccount._id, t.value), l.open({
985
985
  type: "success",
986
986
  title: "Payout account channels update succesfully"
987
987
  });
988
- } catch (f) {
988
+ } catch (y) {
989
989
  l.open({
990
990
  type: "error",
991
991
  title: "Error occurs when updating payout account channels",
992
- message: Z(f)
992
+ message: Z(y)
993
993
  });
994
994
  }
995
995
  });
996
996
  }
997
- function v() {
997
+ function f() {
998
998
  u(async () => {
999
999
  try {
1000
1000
  await Y.resetChannels(e.payoutAccount._id), t.value = await Y.getChannels(e.payoutAccount._id), l.open({
1001
1001
  type: "success",
1002
1002
  title: "Payout account channels reset succesfully"
1003
1003
  });
1004
- } catch (f) {
1004
+ } catch (y) {
1005
1005
  l.open({
1006
1006
  type: "error",
1007
1007
  title: "Error occurs when reset payout account channels",
1008
- message: Z(f)
1008
+ message: Z(y)
1009
1009
  });
1010
1010
  }
1011
1011
  });
@@ -1022,46 +1022,46 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1022
1022
  {
1023
1023
  header: () => "Display",
1024
1024
  accessorKey: "icon",
1025
- cell: ({ row: f }) => J("img", { src: f.original.icon, width: 32, height: 32 })
1025
+ cell: ({ row: y }) => J("img", { src: y.original.icon, width: 32, height: 32 })
1026
1026
  },
1027
1027
  {
1028
1028
  header: () => "Label",
1029
1029
  accessorKey: "label",
1030
- cell: ({ row: f }) => J(Fe.FmTextField, {
1031
- modelValue: f.original.label,
1032
- "onUpdate:modelValue": (s) => f.original.label = s
1030
+ cell: ({ row: y }) => J(Fe.FmTextField, {
1031
+ modelValue: y.original.label,
1032
+ "onUpdate:modelValue": (s) => y.original.label = s
1033
1033
  })
1034
1034
  },
1035
1035
  {
1036
1036
  id: "actions",
1037
1037
  header: () => "Actions",
1038
- cell: ({ row: f }) => J(Ze, {
1039
- onDelete: () => t.value.splice(f.index, 1)
1038
+ cell: ({ row: y }) => J(Ze, {
1039
+ onDelete: () => t.value.splice(y.index, 1)
1040
1040
  })
1041
1041
  }
1042
1042
  ];
1043
- return (f, s) => {
1044
- const y = p("FmButton"), d = p("FmTable");
1045
- return F(), G(j, null, [
1043
+ return (y, s) => {
1044
+ const b = d("FmButton"), p = d("FmTable");
1045
+ return g(), G(j, null, [
1046
1046
  r("div", Je, [
1047
- n(y, {
1047
+ n(b, {
1048
1048
  class: "mx-4",
1049
1049
  variant: "destructive",
1050
1050
  size: "md",
1051
1051
  icon: "history",
1052
1052
  label: "Reset",
1053
- onClick: v
1053
+ onClick: f
1054
1054
  }),
1055
- n(y, {
1055
+ n(b, {
1056
1056
  variant: "primary",
1057
1057
  size: "md",
1058
1058
  icon: "save",
1059
1059
  label: "Save",
1060
- onClick: g
1060
+ onClick: F
1061
1061
  })
1062
1062
  ]),
1063
- n(d, {
1064
- loading: i(b),
1063
+ n(p, {
1064
+ loading: i(v),
1065
1065
  "row-data": t.value,
1066
1066
  "column-defs": m,
1067
1067
  "shrink-at": !1
@@ -1086,15 +1086,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1086
1086
  }
1087
1087
  },
1088
1088
  setup(a) {
1089
- var b;
1090
- const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
1089
+ var v;
1090
+ const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
1091
1091
  merchantId: "",
1092
1092
  verifyKey: "",
1093
1093
  secretKey: ""
1094
1094
  });
1095
1095
  return (u, t) => {
1096
- const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
1097
- return F(), k(v, {
1096
+ const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
1097
+ return g(), k(f, {
1098
1098
  ref: "form",
1099
1099
  class: "flex flex-col gap-16",
1100
1100
  onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
@@ -1119,14 +1119,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1119
1119
  rules: i(N)(i(D).string())
1120
1120
  }, null, 8, ["modelValue", "rules"]),
1121
1121
  r("div", We, [
1122
- a.gateway ? (F(), k(g, {
1122
+ a.gateway ? (g(), k(F, {
1123
1123
  key: 0,
1124
1124
  class: "flex-1",
1125
1125
  variant: "secondary",
1126
1126
  label: "Delete",
1127
1127
  onclick: () => a.onDelete()
1128
1128
  }, null, 8, ["onclick"])) : $("", !0),
1129
- n(g, {
1129
+ n(F, {
1130
1130
  type: "submit",
1131
1131
  class: "flex-1",
1132
1132
  variant: "primary",
@@ -1155,8 +1155,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1155
1155
  }
1156
1156
  },
1157
1157
  setup(a) {
1158
- var b;
1159
- const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
1158
+ var v;
1159
+ const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
1160
1160
  merchantId: "",
1161
1161
  merchantName: "",
1162
1162
  merchantCategoryCode: "",
@@ -1164,8 +1164,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1164
1164
  storeName: ""
1165
1165
  });
1166
1166
  return (u, t) => {
1167
- const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
1168
- return F(), k(v, {
1167
+ const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
1168
+ return g(), k(f, {
1169
1169
  ref: "form",
1170
1170
  class: "flex flex-col gap-16",
1171
1171
  onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
@@ -1202,14 +1202,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1202
1202
  rules: i(N)(i(D).string())
1203
1203
  }, null, 8, ["modelValue", "rules"]),
1204
1204
  r("div", et, [
1205
- a.gateway ? (F(), k(g, {
1205
+ a.gateway ? (g(), k(F, {
1206
1206
  key: 0,
1207
1207
  class: "flex-1",
1208
1208
  variant: "secondary",
1209
1209
  label: "Delete",
1210
1210
  onclick: () => a.onDelete()
1211
1211
  }, null, 8, ["onclick"])) : $("", !0),
1212
- n(g, {
1212
+ n(F, {
1213
1213
  type: "submit",
1214
1214
  class: "flex-1",
1215
1215
  variant: "primary",
@@ -1238,14 +1238,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1238
1238
  }
1239
1239
  },
1240
1240
  setup(a) {
1241
- var b;
1242
- const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
1241
+ var v;
1242
+ const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
1243
1243
  merchantId: "",
1244
1244
  cardMerchantId: ""
1245
1245
  });
1246
1246
  return (u, t) => {
1247
- const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
1248
- return F(), k(v, {
1247
+ const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
1248
+ return g(), k(f, {
1249
1249
  ref: "form",
1250
1250
  class: "flex flex-col gap-16",
1251
1251
  onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
@@ -1264,14 +1264,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1264
1264
  rules: i(N)(i(D).string())
1265
1265
  }, null, 8, ["modelValue", "rules"]),
1266
1266
  r("div", at, [
1267
- a.gateway ? (F(), k(g, {
1267
+ a.gateway ? (g(), k(F, {
1268
1268
  key: 0,
1269
1269
  class: "flex-1",
1270
1270
  variant: "secondary",
1271
1271
  label: "Delete",
1272
1272
  onclick: () => a.onDelete()
1273
1273
  }, null, 8, ["onclick"])) : $("", !0),
1274
- n(g, {
1274
+ n(F, {
1275
1275
  type: "submit",
1276
1276
  class: "flex-1",
1277
1277
  variant: "primary",
@@ -1300,8 +1300,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1300
1300
  }
1301
1301
  },
1302
1302
  setup(a) {
1303
- var b;
1304
- const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
1303
+ var v;
1304
+ const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
1305
1305
  merchantAccount: "",
1306
1306
  username: "",
1307
1307
  apiKey: "",
@@ -1310,8 +1310,8 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1310
1310
  hmacKey: ""
1311
1311
  });
1312
1312
  return (u, t) => {
1313
- const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
1314
- return F(), k(v, {
1313
+ const c = d("FmTextField"), F = d("FmButton"), f = d("FmForm");
1314
+ return g(), k(f, {
1315
1315
  ref: "form",
1316
1316
  class: "flex flex-col gap-16",
1317
1317
  onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
@@ -1353,14 +1353,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1353
1353
  label: "HMac Key"
1354
1354
  }, null, 8, ["modelValue"]),
1355
1355
  r("div", ot, [
1356
- a.gateway ? (F(), k(g, {
1356
+ a.gateway ? (g(), k(F, {
1357
1357
  key: 0,
1358
1358
  class: "flex-1",
1359
1359
  variant: "secondary",
1360
1360
  label: "Delete",
1361
1361
  onclick: () => a.onDelete()
1362
1362
  }, null, 8, ["onclick"])) : $("", !0),
1363
- n(g, {
1363
+ n(F, {
1364
1364
  type: "submit",
1365
1365
  class: "flex-1",
1366
1366
  variant: "primary",
@@ -1389,14 +1389,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1389
1389
  }
1390
1390
  },
1391
1391
  setup(a) {
1392
- var b;
1393
- const e = U(((b = a.gateway) == null ? void 0 : b.config) || {
1392
+ var v;
1393
+ const e = U(((v = a.gateway) == null ? void 0 : v.config) || {
1394
1394
  appId: "",
1395
1395
  privateKey: ""
1396
1396
  });
1397
1397
  return (u, t) => {
1398
- const c = p("FmTextField"), g = p("FmTextarea"), v = p("FmButton"), m = p("FmForm");
1399
- return F(), k(m, {
1398
+ const c = d("FmTextField"), F = d("FmTextarea"), f = d("FmButton"), m = d("FmForm");
1399
+ return g(), k(m, {
1400
1400
  ref: "form",
1401
1401
  class: "flex flex-col gap-16",
1402
1402
  onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
@@ -1404,26 +1404,26 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1404
1404
  default: w(() => [
1405
1405
  n(c, {
1406
1406
  modelValue: e.value.appId,
1407
- "onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.appId = f),
1407
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.appId = y),
1408
1408
  label: "App ID",
1409
1409
  rules: i(N)(i(D).string())
1410
1410
  }, null, 8, ["modelValue", "rules"]),
1411
- n(g, {
1411
+ n(F, {
1412
1412
  modelValue: e.value.privateKey,
1413
- "onUpdate:modelValue": t[1] || (t[1] = (f) => e.value.privateKey = f),
1413
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.privateKey = y),
1414
1414
  label: "Private Key",
1415
1415
  placeholder: "Paste your private key including BEGIN and END markers",
1416
1416
  rules: i(N)(i(D).string())
1417
1417
  }, null, 8, ["modelValue", "rules"]),
1418
1418
  r("div", ut, [
1419
- a.gateway ? (F(), k(v, {
1419
+ a.gateway ? (g(), k(f, {
1420
1420
  key: 0,
1421
1421
  class: "flex-1",
1422
1422
  variant: "secondary",
1423
1423
  label: "Delete",
1424
1424
  onclick: () => a.onDelete()
1425
1425
  }, null, 8, ["onclick"])) : $("", !0),
1426
- n(v, {
1426
+ n(f, {
1427
1427
  type: "submit",
1428
1428
  class: "flex-1",
1429
1429
  variant: "primary",
@@ -1452,15 +1452,15 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1452
1452
  }
1453
1453
  },
1454
1454
  setup(a) {
1455
- var b;
1455
+ var v;
1456
1456
  const e = U(
1457
- ((b = a.gateway) == null ? void 0 : b.config) || {
1457
+ ((v = a.gateway) == null ? void 0 : v.config) || {
1458
1458
  locationId: ""
1459
1459
  }
1460
1460
  );
1461
1461
  return (u, t) => {
1462
- const c = p("FmTextField"), g = p("FmForm");
1463
- return F(), k(g, {
1462
+ const c = d("FmTextField"), F = d("FmForm");
1463
+ return g(), k(F, {
1464
1464
  ref: "form",
1465
1465
  class: "flex flex-col gap-16",
1466
1466
  onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
@@ -1468,7 +1468,7 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1468
1468
  default: w(() => [
1469
1469
  n(c, {
1470
1470
  modelValue: e.value.locationId,
1471
- "onUpdate:modelValue": t[0] || (t[0] = (v) => e.value.locationId = v),
1471
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => e.value.locationId = f),
1472
1472
  label: "Location ID",
1473
1473
  readonly: !0,
1474
1474
  rules: i(N)(i(D).string())
@@ -1495,42 +1495,47 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1495
1495
  }
1496
1496
  },
1497
1497
  setup(a) {
1498
- var b;
1499
- const e = U(
1500
- ((b = a.gateway) == null ? void 0 : b.config) || {
1501
- merchantId: "",
1502
- apiKey: ""
1503
- }
1504
- );
1498
+ var v;
1499
+ const e = U({
1500
+ merchantId: "",
1501
+ apiKey: "",
1502
+ isDirect: !1,
1503
+ ...(v = a.gateway) == null ? void 0 : v.config
1504
+ });
1505
1505
  return (u, t) => {
1506
- const c = p("FmTextField"), g = p("FmButton"), v = p("FmForm");
1507
- return F(), k(v, {
1506
+ const c = d("FmTextField"), F = d("FmSwitch"), f = d("FmButton"), m = d("FmForm");
1507
+ return g(), k(m, {
1508
1508
  ref: "form",
1509
1509
  class: "flex flex-col gap-16",
1510
- onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
1510
+ onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
1511
1511
  }, {
1512
1512
  default: w(() => [
1513
1513
  n(c, {
1514
1514
  modelValue: e.value.merchantId,
1515
- "onUpdate:modelValue": t[0] || (t[0] = (m) => e.value.merchantId = m),
1515
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.merchantId = y),
1516
1516
  label: "Merchant ID",
1517
1517
  rules: i(N)(i(D).string())
1518
1518
  }, null, 8, ["modelValue", "rules"]),
1519
1519
  n(c, {
1520
1520
  modelValue: e.value.apiKey,
1521
- "onUpdate:modelValue": t[1] || (t[1] = (m) => e.value.apiKey = m),
1521
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.apiKey = y),
1522
1522
  label: "Api Key",
1523
1523
  rules: i(N)(i(D).string())
1524
1524
  }, null, 8, ["modelValue", "rules"]),
1525
+ n(F, {
1526
+ modelValue: e.value.isDirect,
1527
+ "onUpdate:modelValue": t[2] || (t[2] = (y) => e.value.isDirect = y),
1528
+ label: "Is Direct"
1529
+ }, null, 8, ["modelValue"]),
1525
1530
  r("div", it, [
1526
- a.gateway ? (F(), k(g, {
1531
+ a.gateway ? (g(), k(f, {
1527
1532
  key: 0,
1528
1533
  class: "flex-1",
1529
1534
  variant: "secondary",
1530
1535
  label: "Delete",
1531
1536
  onclick: () => a.onDelete()
1532
1537
  }, null, 8, ["onclick"])) : $("", !0),
1533
- n(g, {
1538
+ n(f, {
1534
1539
  type: "submit",
1535
1540
  class: "flex-1",
1536
1541
  variant: "primary",
@@ -1557,9 +1562,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1557
1562
  }
1558
1563
  },
1559
1564
  setup(a) {
1560
- const l = pe().currentCountry, e = l.value, b = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
1565
+ const l = pe().currentCountry, e = l.value, v = W(), { isLoading: u, startAsyncCall: t } = ne(), { gatewayTab: c } = oe({
1561
1566
  gatewayTab: ""
1562
- }), g = a, v = [
1567
+ }), F = a, f = [
1563
1568
  {
1564
1569
  label: "Fiuu",
1565
1570
  value: "RAZER_MERCHANT_SERVICE",
@@ -1603,19 +1608,19 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1603
1608
  region: [q.F_COUNTRY.enum.TH]
1604
1609
  }
1605
1610
  ], m = U(
1606
- g.payoutAccount.gateways ?? []
1607
- ), f = L(() => v.find((S) => S.value === c.value)), s = L(() => v.filter(
1611
+ F.payoutAccount.gateways ?? []
1612
+ ), y = L(() => f.find((S) => S.value === c.value)), s = L(() => f.filter(
1608
1613
  (S) => S.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
1609
1614
  ));
1610
- async function y(S) {
1615
+ async function b(S) {
1611
1616
  await t(async () => {
1612
1617
  try {
1613
- await Y.updateGateway(g.payoutAccount._id, S), b.open({
1618
+ await Y.updateGateway(F.payoutAccount._id, S), v.open({
1614
1619
  type: "success",
1615
1620
  title: "Payout account gateways update succesfully"
1616
- }), d.value = S.length === 0;
1621
+ }), p.value = S.length === 0;
1617
1622
  } catch (A) {
1618
- b.open({
1623
+ v.open({
1619
1624
  type: "error",
1620
1625
  title: "Error occurs when updating payout account gateways",
1621
1626
  message: Z(A)
@@ -1623,59 +1628,59 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1623
1628
  }
1624
1629
  });
1625
1630
  }
1626
- const d = U((g.payoutAccount.gateways ?? []).length === 0), o = L(() => e !== "MY" || !d.value);
1631
+ const p = U((F.payoutAccount.gateways ?? []).length === 0), o = L(() => e !== "MY" || !p.value);
1627
1632
  return (S, A) => {
1628
1633
  var P;
1629
- const C = p("FmCircularProgress"), I = p("FmSwitch"), T = p("FmTabs");
1630
- return F(), G(j, null, [
1631
- i(e) ? (F(), G("p", mt, [...A[2] || (A[2] = [
1634
+ const C = d("FmCircularProgress"), I = d("FmSwitch"), T = d("FmTabs");
1635
+ return g(), G(j, null, [
1636
+ i(e) ? (g(), G("p", mt, [...A[2] || (A[2] = [
1632
1637
  r("b", null, "Note: ", -1),
1633
1638
  _(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
1634
1639
  ])])) : $("", !0),
1635
- i(u) ? (F(), G("div", dt, [
1640
+ i(u) ? (g(), G("div", dt, [
1636
1641
  n(C, { size: "xxl" })
1637
- ])) : (F(), G(j, { key: 2 }, [
1638
- i(e) === "MY" ? (F(), k(I, {
1642
+ ])) : (g(), G(j, { key: 2 }, [
1643
+ i(e) === "MY" ? (g(), k(I, {
1639
1644
  key: 0,
1640
- modelValue: d.value,
1641
- "onUpdate:modelValue": A[0] || (A[0] = (V) => d.value = V),
1645
+ modelValue: p.value,
1646
+ "onUpdate:modelValue": A[0] || (A[0] = (V) => p.value = V),
1642
1647
  style: { "padding-bottom": "12px" },
1643
1648
  label: "Use FeedMe's Default Account?"
1644
1649
  }, null, 8, ["modelValue"])) : $("", !0),
1645
- o.value ? (F(), k(T, {
1650
+ o.value ? (g(), k(T, {
1646
1651
  key: 1,
1647
1652
  "model-value": i(c),
1648
1653
  "onUpdate:modelValue": A[1] || (A[1] = (V) => ae(c) ? c.value = V : null),
1649
1654
  class: "mb-6",
1650
1655
  items: s.value
1651
1656
  }, null, 8, ["model-value", "items"])) : $("", !0),
1652
- o.value && i(c) ? (F(), k(ue((P = f.value) == null ? void 0 : P.render), re(se({ key: 2 }, {
1657
+ o.value && i(c) ? (g(), k(ue((P = y.value) == null ? void 0 : P.render), re(se({ key: 2 }, {
1653
1658
  gateway: m.value.find(
1654
1659
  (V) => {
1655
1660
  var x;
1656
- return V.paymentGateway === ((x = f.value) == null ? void 0 : x.value);
1661
+ return V.paymentGateway === ((x = y.value) == null ? void 0 : x.value);
1657
1662
  }
1658
1663
  ),
1659
1664
  onDelete: async () => {
1660
1665
  m.value = m.value.filter(
1661
1666
  (V) => {
1662
1667
  var x;
1663
- return V.paymentGateway !== ((x = f.value) == null ? void 0 : x.value);
1668
+ return V.paymentGateway !== ((x = y.value) == null ? void 0 : x.value);
1664
1669
  }
1665
- ), y(m.value);
1670
+ ), b(m.value);
1666
1671
  },
1667
1672
  onUpdate: (V) => {
1668
1673
  var E;
1669
1674
  let x = m.value.find(
1670
1675
  (B) => {
1671
1676
  var h;
1672
- return B.paymentGateway === ((h = f.value) == null ? void 0 : h.value);
1677
+ return B.paymentGateway === ((h = y.value) == null ? void 0 : h.value);
1673
1678
  }
1674
1679
  );
1675
1680
  x ? x.config = V : m.value.push({
1676
- paymentGateway: (E = f.value) == null ? void 0 : E.value,
1681
+ paymentGateway: (E = y.value) == null ? void 0 : E.value,
1677
1682
  config: V
1678
- }), y(m.value);
1683
+ }), b(m.value);
1679
1684
  }
1680
1685
  })), null, 16)) : $("", !0)
1681
1686
  ], 64))
@@ -1709,9 +1714,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1709
1714
  }
1710
1715
  }
1711
1716
  );
1712
- return (b, u) => {
1713
- const t = p("FmTextField"), c = p("FmButton"), g = p("FmForm");
1714
- return F(), k(g, {
1717
+ return (v, u) => {
1718
+ const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
1719
+ return g(), k(F, {
1715
1720
  ref: "form",
1716
1721
  class: "flex flex-col gap-16",
1717
1722
  onValidationSuccess: u[3] || (u[3] = () => a.onUpdate(e.value))
@@ -1719,27 +1724,27 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1719
1724
  default: w(() => [
1720
1725
  n(t, {
1721
1726
  modelValue: e.value.gateway,
1722
- "onUpdate:modelValue": u[0] || (u[0] = (v) => e.value.gateway = v),
1727
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
1723
1728
  label: "Gateway",
1724
1729
  disabled: !0,
1725
1730
  rules: i(N)(i(D).string())
1726
1731
  }, null, 8, ["modelValue", "rules"]),
1727
1732
  n(t, {
1728
1733
  modelValue: e.value.config.gateway,
1729
- "onUpdate:modelValue": u[1] || (u[1] = (v) => e.value.config.gateway = v),
1734
+ "onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.gateway = f),
1730
1735
  label: "Gateway ID",
1731
1736
  disabled: !0,
1732
1737
  rules: i(N)(i(D).string())
1733
1738
  }, null, 8, ["modelValue", "rules"]),
1734
1739
  n(t, {
1735
1740
  modelValue: e.value.config.gatewayMerchantId,
1736
- "onUpdate:modelValue": u[2] || (u[2] = (v) => e.value.config.gatewayMerchantId = v),
1741
+ "onUpdate:modelValue": u[2] || (u[2] = (f) => e.value.config.gatewayMerchantId = f),
1737
1742
  label: "Gateway Merchant ID",
1738
1743
  disabled: !0,
1739
1744
  rules: i(N)(i(D).string())
1740
1745
  }, null, 8, ["modelValue", "rules"]),
1741
1746
  r("div", yt, [
1742
- a.gateway ? (F(), k(c, {
1747
+ a.gateway ? (g(), k(c, {
1743
1748
  key: 0,
1744
1749
  class: "flex-1",
1745
1750
  variant: "secondary",
@@ -1784,9 +1789,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1784
1789
  }
1785
1790
  }
1786
1791
  );
1787
- return (b, u) => {
1788
- const t = p("FmTextField"), c = p("FmButton"), g = p("FmForm");
1789
- return F(), k(g, {
1792
+ return (v, u) => {
1793
+ const t = d("FmTextField"), c = d("FmButton"), F = d("FmForm");
1794
+ return g(), k(F, {
1790
1795
  ref: "form",
1791
1796
  class: "flex flex-col gap-16",
1792
1797
  onValidationSuccess: u[2] || (u[2] = () => a.onUpdate(e.value))
@@ -1794,20 +1799,20 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1794
1799
  default: w(() => [
1795
1800
  n(t, {
1796
1801
  modelValue: e.value.gateway,
1797
- "onUpdate:modelValue": u[0] || (u[0] = (v) => e.value.gateway = v),
1802
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => e.value.gateway = f),
1798
1803
  label: "Gateway",
1799
1804
  disabled: !0,
1800
1805
  rules: i(N)(i(D).string())
1801
1806
  }, null, 8, ["modelValue", "rules"]),
1802
1807
  n(t, {
1803
1808
  modelValue: e.value.config.merchantId,
1804
- "onUpdate:modelValue": u[1] || (u[1] = (v) => e.value.config.merchantId = v),
1809
+ "onUpdate:modelValue": u[1] || (u[1] = (f) => e.value.config.merchantId = f),
1805
1810
  label: "Merchant ID",
1806
1811
  disabled: !0,
1807
1812
  rules: i(N)(i(D).string())
1808
1813
  }, null, 8, ["modelValue", "rules"]),
1809
1814
  r("div", vt, [
1810
- a.gateway ? (F(), k(c, {
1815
+ a.gateway ? (g(), k(c, {
1811
1816
  key: 0,
1812
1817
  class: "flex-1",
1813
1818
  variant: "secondary",
@@ -1838,9 +1843,9 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1838
1843
  }
1839
1844
  },
1840
1845
  setup(a) {
1841
- const l = pe().currentCountry, e = W(), { isLoading: b, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
1846
+ const l = pe().currentCountry, e = W(), { isLoading: v, startAsyncCall: u } = ne(), { tokenTab: t } = oe({
1842
1847
  tokenTab: ""
1843
- }), c = a, g = [
1848
+ }), c = a, F = [
1844
1849
  {
1845
1850
  label: "Google Pay",
1846
1851
  value: "googlePay",
@@ -1855,30 +1860,30 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1855
1860
  render: ft,
1856
1861
  region: [q.F_COUNTRY.enum.MY, q.F_COUNTRY.enum.SG]
1857
1862
  }
1858
- ], v = U(c.payoutAccount.tokens ?? []), m = L(() => g.find((y) => y.value === t.value)), f = L(() => g.filter(
1859
- (y) => y.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
1863
+ ], f = U(c.payoutAccount.tokens ?? []), m = L(() => F.find((b) => b.value === t.value)), y = L(() => F.filter(
1864
+ (b) => b.region.includes(l.value ?? q.F_COUNTRY.enum.MY)
1860
1865
  ));
1861
- async function s(y) {
1866
+ async function s(b) {
1862
1867
  await u(async () => {
1863
1868
  try {
1864
- await Y.updateTokens(c.payoutAccount._id, y), e.open({
1869
+ await Y.updateTokens(c.payoutAccount._id, b), e.open({
1865
1870
  type: "success",
1866
1871
  title: "Payout account tokens gateway update succesfully"
1867
1872
  });
1868
- } catch (d) {
1873
+ } catch (p) {
1869
1874
  e.open({
1870
1875
  type: "error",
1871
1876
  title: "Error occurs when updating payout account tokens",
1872
- message: Z(d)
1877
+ message: Z(p)
1873
1878
  });
1874
1879
  }
1875
1880
  });
1876
1881
  }
1877
- return (y, d) => {
1882
+ return (b, p) => {
1878
1883
  var A;
1879
- const o = p("FmCircularProgress"), S = p("FmTabs");
1880
- return F(), G(j, null, [
1881
- d[1] || (d[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
1884
+ const o = d("FmCircularProgress"), S = d("FmTabs");
1885
+ return g(), G(j, null, [
1886
+ p[1] || (p[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
1882
1887
  r("b", null, "Note: "),
1883
1888
  _(" 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. "),
1884
1889
  r("br"),
@@ -1886,32 +1891,32 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1886
1891
  r("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
1887
1892
  r("br")
1888
1893
  ], -1)),
1889
- i(b) ? (F(), G("div", gt, [
1894
+ i(v) ? (g(), G("div", gt, [
1890
1895
  n(o, { size: "xxl" })
1891
- ])) : (F(), k(S, {
1896
+ ])) : (g(), k(S, {
1892
1897
  key: 1,
1893
1898
  "model-value": i(t),
1894
- "onUpdate:modelValue": d[0] || (d[0] = (C) => ae(t) ? t.value = C : null),
1899
+ "onUpdate:modelValue": p[0] || (p[0] = (C) => ae(t) ? t.value = C : null),
1895
1900
  class: "mb-6 mt-6",
1896
- items: f.value
1901
+ items: y.value
1897
1902
  }, null, 8, ["model-value", "items"])),
1898
- i(t) ? (F(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
1899
- gateway: v.value.find((C) => {
1903
+ i(t) ? (g(), k(ue((A = m.value) == null ? void 0 : A.render), re(se({ key: 2 }, {
1904
+ gateway: f.value.find((C) => {
1900
1905
  var I;
1901
1906
  return C.type === ((I = m.value) == null ? void 0 : I.value);
1902
1907
  }),
1903
1908
  onDelete: async () => {
1904
- v.value = v.value.filter((C) => {
1909
+ f.value = f.value.filter((C) => {
1905
1910
  var I;
1906
1911
  return C.type !== ((I = m.value) == null ? void 0 : I.value);
1907
- }), s(v.value);
1912
+ }), s(f.value);
1908
1913
  },
1909
1914
  onUpdate: (C) => {
1910
- let I = v.value.find((T) => {
1915
+ let I = f.value.find((T) => {
1911
1916
  var P;
1912
1917
  return T.type === ((P = m.value) == null ? void 0 : P.value);
1913
1918
  });
1914
- I ? I.config = C : v.value.push(C), s(v.value);
1919
+ I ? I.config = C : f.value.push(C), s(f.value);
1915
1920
  }
1916
1921
  })), null, 16)) : $("", !0)
1917
1922
  ], 64);
@@ -1928,14 +1933,14 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1928
1933
  setup(a) {
1929
1934
  const l = a, { tab: e } = oe({
1930
1935
  tab: "information"
1931
- }), { isLoading: b, startAsyncCall: u } = ne(!0), t = ve(), c = U();
1932
- async function g(s) {
1936
+ }), { isLoading: v, startAsyncCall: u } = ne(!0), t = ve(), c = U();
1937
+ async function F(s) {
1933
1938
  await Y.updateById(
1934
1939
  l.accountId,
1935
1940
  s
1936
1941
  ), c.value = await Y.readById(l.accountId);
1937
1942
  }
1938
- const v = [
1943
+ const f = [
1939
1944
  {
1940
1945
  label: "Information",
1941
1946
  value: "information",
@@ -1979,28 +1984,28 @@ const Ve = { class: "flex gap-16 mb-6" }, Ae = { class: "flex gap-16 mb-6" }, Se
1979
1984
  });
1980
1985
  }
1981
1986
  me(m);
1982
- const f = L(() => {
1983
- const s = v.reduce((y, d) => y || (d.children ? d.children.find((o) => o.value === e.value) || null : d.value === e.value ? d : null), null);
1987
+ const y = L(() => {
1988
+ const s = f.reduce((b, p) => b || (p.children ? p.children.find((o) => o.value === e.value) || null : p.value === e.value ? p : null), null);
1984
1989
  return s == null ? void 0 : s.render;
1985
1990
  });
1986
- return (s, y) => {
1991
+ return (s, b) => {
1987
1992
  var o;
1988
- const d = p("FmTabs");
1989
- return F(), k(be, {
1993
+ const p = d("FmTabs");
1994
+ return g(), k(be, {
1990
1995
  title: `Payout Account (${(o = c.value) == null ? void 0 : o._id})`,
1991
- loading: i(b),
1996
+ loading: i(v),
1992
1997
  onBack: i(t).back
1993
1998
  }, {
1994
1999
  default: w(() => [
1995
- n(d, {
2000
+ n(p, {
1996
2001
  "model-value": i(e),
1997
- "onUpdate:modelValue": y[0] || (y[0] = (S) => ae(e) ? e.value = S : null),
2002
+ "onUpdate:modelValue": b[0] || (b[0] = (S) => ae(e) ? e.value = S : null),
1998
2003
  class: "mb-6",
1999
- items: v
2004
+ items: f
2000
2005
  }, null, 8, ["model-value"]),
2001
- i(e) ? (F(), k(ue(f.value), re(se({ key: 0 }, {
2006
+ i(e) ? (g(), k(ue(y.value), re(se({ key: 0 }, {
2002
2007
  payoutAccount: c.value,
2003
- onUpdate: g
2008
+ onUpdate: F
2004
2009
  })), null, 16)) : $("", !0)
2005
2010
  ]),
2006
2011
  _: 1