@feedmepos/mf-payment 1.4.46 → 1.5.0-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 (127) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-sYaYPQ_s.js → Actions.vue_vue_type_script_setup_true_lang-DGbH2LsQ.js} +43 -43
  2. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js → AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js} +13 -13
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-I9eO197f.js +47 -0
  4. package/dist/{Chargeback-BftBez0p.js → Chargeback-19afdT_4.js} +83 -83
  5. package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js → DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js} +1 -1
  6. package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-CzwG5dCO.js +77 -0
  7. package/dist/Forbidden-CSTZjebc.js +38 -0
  8. package/dist/Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js +45 -0
  9. package/dist/{OnboardForm-CnKOFMMH.js → OnboardForm-Cc6JOr09.js} +596 -528
  10. package/dist/{OnboardForm-DqhRFi-H.js → OnboardForm-Do6ar3sx.js} +363 -347
  11. package/dist/{OnboardSubmission-DKxUJxCW.js → OnboardSubmission-B-leoVPo.js} +4 -4
  12. package/dist/{OnboardSubmission-munHiPKU.js → OnboardSubmission-Dj8AGb69.js} +8 -8
  13. package/dist/PDFViewer-DgyyGDHl.js +23209 -0
  14. package/dist/{PayoutAccount-DbLQjLVr.js → PayoutAccount--1J5ubvX.js} +341 -312
  15. package/dist/{PayoutAccount-C1ADGszh.js → PayoutAccount-ChGlsZ-O.js} +75 -75
  16. package/dist/{PayoutAccountSetting-YYswVooL.js → PayoutAccountSetting-BC0ANAqY.js} +281 -266
  17. package/dist/{Restaurant-26r7Q01z.js → Restaurant-ZiTHtFZJ.js} +79 -79
  18. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-Bzj_sdSY.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js} +3 -3
  19. package/dist/{RestaurantSetting-D1APrvzM.js → RestaurantSetting-M1jYaGwx.js} +5 -5
  20. package/dist/{SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js → SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js} +5 -5
  21. package/dist/{Settlement-CWX5RKwL.js → Settlement-Cj2W8VfH.js} +7 -7
  22. package/dist/{Settlement-Ix55QLVB.js → Settlement-D_nmqYEC.js} +12 -15
  23. package/dist/{SettlementTransactions-DYAlKO__.js → SettlementTransactions-Ch9jeQU6.js} +99 -99
  24. package/dist/{SettlementTransactions-BIodJ6DN.js → SettlementTransactions-DK1ONvn6.js} +55 -55
  25. package/dist/{Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +9 -9
  26. package/dist/Terminal-CoPPPePw.js +1135 -0
  27. package/dist/{TerminalSetting-BiaGvysm.js → TerminalSetting-PWs1fyFe.js} +549 -425
  28. package/dist/{Transaction-D51QiCaP.js → Transaction-BirTp8t6.js} +82 -82
  29. package/dist/{Transaction-ouagKBic.js → Transaction-CegzBK7m.js} +65 -65
  30. package/dist/{TransactionOld-CCzonxUD.js → TransactionOld-DqGMuWvL.js} +9 -9
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/document/index.d.ts +4 -0
  33. package/dist/{app-DE4U_54A.js → app-D6U0uODp.js} +894 -944
  34. package/dist/app.d.ts +1 -358
  35. package/dist/app.js +4 -3
  36. package/dist/{assets--JQWdCl5.js → assets-DtwUojcS.js} +1 -1
  37. package/dist/components/AdminLayout.vue.d.ts +3 -3
  38. package/dist/components/AutoCopyCell.vue.d.ts +1 -1
  39. package/dist/components/DocumentViewer.vue.d.ts +16 -0
  40. package/dist/components/ImagePreview.vue.d.ts +3 -3
  41. package/dist/components/Layout.vue.d.ts +3 -3
  42. package/dist/components/PDFViewer.vue.d.ts +4 -4
  43. package/dist/components/RestaurantSelector.vue.d.ts +1 -1
  44. package/dist/components/RouteCell.vue.d.ts +1 -1
  45. package/dist/{grafana-22PXAn1O.js → grafana-fZyobMgN.js} +1 -1
  46. package/dist/{index-B0uA-O38.js → index--K2ipr4H.js} +7 -7
  47. package/dist/{index-cCTvH31Z.js → index-BJNCcdvT.js} +22132 -24859
  48. package/dist/{index-Blb5YaYR.js → index-C-YBwRQp.js} +3 -3
  49. package/dist/{index-Ctn4LFui.js → index-CMN40t8e.js} +1 -1
  50. package/dist/{index-sc6pzeZl.js → index-CbONxZz2.js} +17 -13
  51. package/dist/{index-BLyx8ZQr.js → index-CtkwL_6R.js} +1 -1
  52. package/dist/{index-B9kHmV6p.js → index-D69RnDa7.js} +19 -19
  53. package/dist/index-_u7l8cO3.js +27 -0
  54. package/dist/{index-B0-Kn6Mw.js → index-eLZ3BErV.js} +12 -12
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-NUicoOT2.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +50 -50
  56. package/dist/model/payout-account.d.ts +2 -2
  57. package/dist/{Forbidden-Dqw0MqyC.js → no-data-BRmo6XOO.js} +2 -35
  58. package/dist/package.json +13 -7
  59. package/dist/{payout-account-KcIc3kyX.js → payout-account-CVYMFqu9.js} +78 -77
  60. package/dist/plugins.d.ts +1 -5
  61. package/dist/router/index.d.ts +1 -0
  62. package/dist/stores/payoutAccount.d.ts +16 -16
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{validator-D5jtpt9A.js → validator-DzjyJnvv.js} +842 -763
  65. package/dist/views/Forbidden.vue.d.ts +1 -1
  66. package/dist/views/admin/chargeback/cell/Actions.vue.d.ts +1 -1
  67. package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
  68. package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +3 -2
  69. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +17 -17
  70. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +17 -17
  71. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -22
  72. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -22
  73. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
  74. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +17 -17
  75. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -22
  76. package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +1 -1
  77. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  78. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  79. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  80. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  81. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +1 -1
  82. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +118 -244
  83. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  84. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  85. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  86. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
  87. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  88. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  89. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  90. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  91. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  92. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +28 -8
  93. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +1 -1
  94. package/dist/views/admin/terminal/cell/ID.vue.d.ts +1 -1
  95. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +29 -9
  96. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +28 -8
  97. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +29 -9
  98. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +28 -8
  99. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +28 -8
  100. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +28 -8
  101. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +28 -8
  102. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +28 -8
  103. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +250 -0
  104. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +28 -8
  105. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +28 -8
  106. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +28 -8
  107. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +28 -8
  108. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +28 -8
  109. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +28 -8
  110. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +28 -8
  111. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +28 -8
  112. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  113. package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
  114. package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
  115. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +6 -5
  116. package/dist/views/payout-account/PayoutAccountDialog.vue.d.ts +2 -2
  117. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
  118. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +68 -68
  119. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +34 -34
  120. package/dist/views/transaction/cell/Actions.vue.d.ts +1 -1
  121. package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
  122. package/package.json +26 -20
  123. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js +0 -47
  124. package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +0 -45
  125. package/dist/PDFViewer-DHKBD99J.js +0 -22433
  126. package/dist/Terminal-CrM7EzkM.js +0 -1095
  127. package/dist/plugins-DOA8YO_V.js +0 -1366
@@ -1,15 +1,16 @@
1
- import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as S, Fragment as $, createElementVNode as d, createVNode as u, withCtx as V, createTextVNode as P, toDisplayString as M, createCommentVNode as _, createBlock as F, ref as C, watch as ee, computed as K, unref as o, isRef as E, h as O, onMounted as te, resolveDynamicComponent as L, normalizeProps as Z, mergeProps as Q } from "vue";
2
- import { p as R } from "./index-B9kHmV6p.js";
3
- import { u as Y, e as h } from "./index-cCTvH31Z.js";
4
- import { _ as le } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
- import { useRouter as oe } from "vue-router";
6
- import { u as j } from "./index-BLyx8ZQr.js";
7
- import { P as X } from "./PDFViewer-DHKBD99J.js";
8
- import { useSnackbar as z, components as ue } from "@feedmepos/ui-library";
1
+ import { defineComponent as k, resolveComponent as i, openBlock as v, createElementBlock as P, Fragment as $, createElementVNode as d, createVNode as o, withCtx as V, createTextVNode as h, toDisplayString as M, ref as A, watch as te, createBlock as F, computed as K, isRef as E, unref as u, createCommentVNode as C, h as O, onMounted as ae, resolveDynamicComponent as Z, normalizeProps as Q, mergeProps as W } from "vue";
2
+ import { p as R } from "./index-D69RnDa7.js";
3
+ import { u as Y, e as S } from "./index-BJNCcdvT.js";
4
+ import { _ as oe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
5
+ import { useRouter as ue } from "vue-router";
6
+ import { u as j } from "./index-CtkwL_6R.js";
7
+ import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CzwG5dCO.js";
8
+ import { P as ee } from "./PDFViewer-DgyyGDHl.js";
9
+ import { useSnackbar as z, components as re } from "@feedmepos/ui-library";
9
10
  import { u as q } from "./error-K1CakhA9.js";
10
- import { z as x, a as w } from "./validator-D5jtpt9A.js";
11
- import { useCoreStore as ae } from "@feedmepos/mf-common";
12
- const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
11
+ import { z as x, a as w } from "./validator-DzjyJnvv.js";
12
+ import { useCoreStore as ne } from "@feedmepos/mf-common";
13
+ const se = { class: "flex gap-16 mb-6" }, ce = /* @__PURE__ */ k({
13
14
  __name: "Information",
14
15
  props: {
15
16
  payoutAccount: {
@@ -18,35 +19,35 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
18
19
  }
19
20
  },
20
21
  setup(n) {
21
- return (v, e) => {
22
+ return (y, e) => {
22
23
  const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
23
- return y(), S($, null, [
24
- d("div", re, [
25
- u(t, {
24
+ return v(), P($, null, [
25
+ d("div", se, [
26
+ o(t, {
26
27
  horizontal: "",
27
28
  class: "flex-1 p-6",
28
29
  variant: "elevated"
29
30
  }, {
30
31
  default: V(() => [
31
- u(s, { class: "flex flex-col gap-16 justify-between" }, {
32
+ o(s, { class: "flex flex-col gap-16 justify-between" }, {
32
33
  default: V(() => [
33
- u(m, {
34
+ o(m, {
34
35
  class: "p-0",
35
36
  title: "Account Info",
36
37
  subtitle: ""
37
38
  }),
38
- u(s, { class: "p-0" }, {
39
+ o(s, { class: "p-0" }, {
39
40
  default: V(() => {
40
41
  var l, p, c, a, r;
41
42
  return [
42
43
  e[0] || (e[0] = d("b", null, "For", -1)),
43
- P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
44
+ h(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
44
45
  e[1] || (e[1] = d("br", null, null, -1)),
45
46
  e[2] || (e[2] = d("b", null, "Reference", -1)),
46
- P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
47
+ h(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
47
48
  e[3] || (e[3] = d("br", null, null, -1)),
48
49
  e[4] || (e[4] = d("b", null, "Business", -1)),
49
- P(": " + M((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
+ h(": " + M((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
51
  e[5] || (e[5] = d("br", null, null, -1))
51
52
  ];
52
53
  }),
@@ -58,31 +59,31 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
58
59
  ]),
59
60
  _: 1
60
61
  }),
61
- u(t, {
62
+ o(t, {
62
63
  horizontal: "",
63
64
  class: "flex-1 p-6",
64
65
  variant: "elevated"
65
66
  }, {
66
67
  default: V(() => [
67
- u(s, { class: "flex flex-col gap-16 justify-between" }, {
68
+ o(s, { class: "flex flex-col gap-16 justify-between" }, {
68
69
  default: V(() => [
69
- u(m, {
70
+ o(m, {
70
71
  class: "p-0",
71
72
  title: "Key Person",
72
73
  subtitle: ""
73
74
  }),
74
- u(s, { class: "p-0" }, {
75
+ o(s, { class: "p-0" }, {
75
76
  default: V(() => {
76
77
  var l, p, c, a, r, f, g, b;
77
78
  return [
78
79
  e[6] || (e[6] = d("b", null, "Email", -1)),
79
- P(": " + M((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
80
+ h(": " + M((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
80
81
  e[7] || (e[7] = d("br", null, null, -1)),
81
82
  e[8] || (e[8] = d("b", null, "Name", -1)),
82
- P(": " + M((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
83
+ h(": " + M((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
83
84
  e[9] || (e[9] = d("br", null, null, -1)),
84
85
  e[10] || (e[10] = d("b", null, "Phone", -1)),
85
- P(": " + M((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
86
+ h(": " + M((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
86
87
  e[11] || (e[11] = d("br", null, null, -1))
87
88
  ];
88
89
  }),
@@ -96,14 +97,14 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
96
97
  })
97
98
  ]),
98
99
  e[12] || (e[12] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
99
- n.payoutAccount.store.exteriorPhoto ? (y(), S("img", {
100
- key: 0,
101
- src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, se)) : _("", !0)
100
+ o(L, {
101
+ document: n.payoutAccount.store.exteriorPhoto,
102
+ "restaurant-id": n.payoutAccount.store.id
103
+ }, null, 8, ["document", "restaurant-id"])
103
104
  ], 64);
104
105
  };
105
106
  }
106
- }), ie = { class: "flex gap-16" }, de = { class: "flex-1" }, me = { class: "flex-1" }, pe = /* @__PURE__ */ A({
107
+ }), ie = { class: "flex gap-16" }, de = { class: "flex-1" }, me = { class: "flex-1" }, pe = /* @__PURE__ */ k({
107
108
  __name: "Settlement",
108
109
  props: {
109
110
  payoutAccount: {
@@ -112,34 +113,34 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
112
113
  }
113
114
  },
114
115
  setup(n) {
115
- return (v, e) => {
116
+ return (y, e) => {
116
117
  const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
117
- return y(), S($, null, [
118
- u(t, {
118
+ return v(), P($, null, [
119
+ o(t, {
119
120
  horizontal: "",
120
121
  class: "flex-1 p-6 mx-6 mb-6",
121
122
  variant: "elevated"
122
123
  }, {
123
124
  default: V(() => [
124
- u(s, { class: "flex flex-col gap-16 justify-between" }, {
125
+ o(s, { class: "flex flex-col gap-16 justify-between" }, {
125
126
  default: V(() => [
126
- u(m, {
127
+ o(m, {
127
128
  class: "p-0",
128
129
  title: "Bank Info",
129
130
  subtitle: ""
130
131
  }),
131
- u(s, { class: "p-0" }, {
132
+ o(s, { class: "p-0" }, {
132
133
  default: V(() => {
133
134
  var l, p, c, a, r, f;
134
135
  return [
135
136
  e[0] || (e[0] = d("b", null, "Bank", -1)),
136
- P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
137
+ h(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
137
138
  e[1] || (e[1] = d("br", null, null, -1)),
138
139
  e[2] || (e[2] = d("b", null, "Name", -1)),
139
- P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
140
+ h(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
140
141
  e[3] || (e[3] = d("br", null, null, -1)),
141
142
  e[4] || (e[4] = d("b", null, "Number", -1)),
142
- P(": " + M((f = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : f.accountNumber), 1)
143
+ h(": " + M((f = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : f.accountNumber), 1)
143
144
  ];
144
145
  }),
145
146
  _: 1
@@ -153,70 +154,84 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
153
154
  d("div", ie, [
154
155
  d("div", de, [
155
156
  e[5] || (e[5] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
- n.payoutAccount.store.ssm ? (y(), F(X, {
157
- key: 0,
158
- pdf: n.payoutAccount.store.ssm,
159
- "disable-text-layer": !0,
160
- "disable-annotation-layer": !0
161
- }, null, 8, ["pdf"])) : _("", !0)
157
+ o(L, {
158
+ "restaurant-id": n.payoutAccount.store.id,
159
+ document: n.payoutAccount.store.ssm
160
+ }, {
161
+ default: V(({ src: l }) => [
162
+ o(ee, {
163
+ pdf: l,
164
+ "disable-text-layer": !0,
165
+ "disable-annotation-layer": !0
166
+ }, null, 8, ["pdf"])
167
+ ]),
168
+ _: 1
169
+ }, 8, ["restaurant-id", "document"])
162
170
  ]),
163
171
  d("div", me, [
164
172
  e[6] || (e[6] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
- n.payoutAccount.store.bankStatement ? (y(), F(X, {
166
- key: 0,
167
- pdf: n.payoutAccount.store.bankStatement,
168
- "disable-text-layer": !0,
169
- "disable-annotation-layer": !0
170
- }, null, 8, ["pdf"])) : _("", !0)
173
+ o(L, {
174
+ "restaurant-id": n.payoutAccount.store.id,
175
+ document: n.payoutAccount.store.bankStatement
176
+ }, {
177
+ default: V(({ src: l }) => [
178
+ o(ee, {
179
+ pdf: l,
180
+ "disable-text-layer": !0,
181
+ "disable-annotation-layer": !0
182
+ }, null, 8, ["pdf"])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["restaurant-id", "document"])
171
186
  ])
172
187
  ])
173
188
  ], 64);
174
189
  };
175
190
  }
176
- }), ye = /* @__PURE__ */ A({
191
+ }), ye = /* @__PURE__ */ k({
177
192
  __name: "RateInput",
178
193
  props: {
179
194
  data: {},
180
195
  onChange: { type: Function }
181
196
  },
182
197
  setup(n) {
183
- const v = n, e = C(v.data.toString());
184
- return ee(e, (m) => {
185
- v.onChange(parseFloat(m));
198
+ const y = n, e = A(y.data.toString());
199
+ return te(e, (m) => {
200
+ y.onChange(parseFloat(m));
186
201
  }), (m, s) => {
187
202
  const t = i("FmTextField");
188
- return y(), F(t, {
203
+ return v(), F(t, {
189
204
  inputmode: "decimal",
190
205
  modelValue: e.value,
191
206
  "onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
192
207
  }, {
193
- append: V(() => s[1] || (s[1] = [
194
- P("%")
195
- ])),
208
+ append: V(() => [...s[1] || (s[1] = [
209
+ h("%", -1)
210
+ ])]),
196
211
  _: 1
197
212
  }, 8, ["modelValue"]);
198
213
  };
199
214
  }
200
- }), ve = /* @__PURE__ */ A({
215
+ }), ve = /* @__PURE__ */ k({
201
216
  __name: "TPlusInput",
202
217
  props: {
203
218
  data: {},
204
219
  onChange: { type: Function }
205
220
  },
206
221
  setup(n) {
207
- const v = n, e = C(v.data.toString());
208
- return ee(e, (m) => {
209
- v.onChange(parseInt(m));
222
+ const y = n, e = A(y.data.toString());
223
+ return te(e, (m) => {
224
+ y.onChange(parseInt(m));
210
225
  }), (m, s) => {
211
226
  const t = i("FmTextField");
212
- return y(), F(t, {
227
+ return v(), F(t, {
213
228
  inputmode: "numeric",
214
229
  modelValue: e.value,
215
230
  "onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
216
231
  }, null, 8, ["modelValue"]);
217
232
  };
218
233
  }
219
- }), fe = { class: "flex gap-16 mt-6" }, ge = { class: "flex-1" }, be = { class: "flex-1" }, Fe = { class: "my-6 w-full flex justify-end" }, xe = { class: "w-[320px]" }, we = /* @__PURE__ */ A({
234
+ }), fe = { class: "flex gap-16 mt-6" }, ge = { class: "flex-1" }, be = { class: "flex-1" }, Fe = { class: "my-6 w-full flex justify-end" }, xe = { class: "w-[320px]" }, we = /* @__PURE__ */ k({
220
235
  __name: "PaymentStatus",
221
236
  props: {
222
237
  onUpdate: {
@@ -229,9 +244,9 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
229
244
  }
230
245
  },
231
246
  setup(n) {
232
- const v = n, e = C(!1), m = z(), s = async (a) => {
247
+ const y = n, e = A(!1), m = z(), s = async (a) => {
233
248
  try {
234
- e.value = !0, await v.onUpdate(a), m.open({
249
+ e.value = !0, await y.onUpdate(a), m.open({
235
250
  type: "success",
236
251
  title: "Payout account update succesfully"
237
252
  });
@@ -247,9 +262,9 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
247
262
  }, { search: t } = j({
248
263
  search: ""
249
264
  }), l = K(() => {
250
- const { ssm: a, bank: r, bankStatement: f } = v.payoutAccount.store;
265
+ const { ssm: a, bank: r, bankStatement: f } = y.payoutAccount.store;
251
266
  return a && r && r.name && r.accountNumber && r.holderName && f;
252
- }), p = C(""), c = [
267
+ }), p = A(""), c = [
253
268
  {
254
269
  header: () => "Payment Method",
255
270
  accessorKey: "issuer",
@@ -263,7 +278,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
263
278
  return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), O(ye, {
264
279
  data: r,
265
280
  onChange: (f) => {
266
- const g = v.payoutAccount.methods.at(a.index);
281
+ const g = y.payoutAccount.methods.at(a.index);
267
282
  g.rate || (g.rate = {
268
283
  amount: 0,
269
284
  precision: 4
@@ -278,7 +293,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
278
293
  cell: ({ row: a }) => O(ve, {
279
294
  data: a.original.tPlus ?? 0,
280
295
  onChange: (r) => {
281
- const f = v.payoutAccount.methods.at(a.index);
296
+ const f = y.payoutAccount.methods.at(a.index);
282
297
  f.tPlus = r;
283
298
  }
284
299
  })
@@ -286,24 +301,24 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
286
301
  ];
287
302
  return (a, r) => {
288
303
  const f = i("FmRadio"), g = i("FmRadioGroup"), b = i("FmSwitch"), I = i("FmSearch"), U = i("FmTable"), T = i("FmButton");
289
- return y(), S($, null, [
304
+ return v(), P($, null, [
290
305
  d("div", fe, [
291
306
  d("div", ge, [
292
- u(g, {
307
+ o(g, {
293
308
  modelValue: n.payoutAccount.status,
294
- "onUpdate:modelValue": r[0] || (r[0] = (k) => n.payoutAccount.status = k),
309
+ "onUpdate:modelValue": r[0] || (r[0] = (_) => n.payoutAccount.status = _),
295
310
  label: "Account Status"
296
311
  }, {
297
312
  default: V(() => [
298
- u(f, {
313
+ o(f, {
299
314
  value: "NEW",
300
315
  label: "New"
301
316
  }),
302
- u(f, {
317
+ o(f, {
303
318
  value: "PENDING",
304
319
  label: "Pending"
305
320
  }),
306
- u(f, {
321
+ o(f, {
307
322
  value: "APPROVED",
308
323
  label: "Approved"
309
324
  })
@@ -312,36 +327,36 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
312
327
  }, 8, ["modelValue"])
313
328
  ]),
314
329
  d("div", be, [
315
- u(b, {
330
+ o(b, {
316
331
  modelValue: n.payoutAccount.enable,
317
- "onUpdate:modelValue": r[1] || (r[1] = (k) => n.payoutAccount.enable = k),
332
+ "onUpdate:modelValue": r[1] || (r[1] = (_) => n.payoutAccount.enable = _),
318
333
  disabled: !l.value,
319
334
  label: "Enabled",
320
335
  sublabel: "Merchant can use online features such as e-payment, settlement"
321
336
  }, null, 8, ["modelValue", "disabled"])
322
337
  ])
323
338
  ]),
324
- n.payoutAccount.enable ? (y(), S($, { key: 0 }, [
339
+ n.payoutAccount.enable ? (v(), P($, { key: 0 }, [
325
340
  d("div", Fe, [
326
341
  d("div", xe, [
327
- u(I, {
328
- modelValue: o(t),
329
- "onUpdate:modelValue": r[2] || (r[2] = (k) => E(t) ? t.value = k : null),
342
+ o(I, {
343
+ modelValue: u(t),
344
+ "onUpdate:modelValue": r[2] || (r[2] = (_) => E(t) ? t.value = _ : null),
330
345
  placeholder: "Search Method ..."
331
346
  }, null, 8, ["modelValue"])
332
347
  ])
333
348
  ]),
334
- u(U, {
349
+ o(U, {
335
350
  class: "mt-6",
336
351
  modelValue: p.value,
337
- "onUpdate:modelValue": r[3] || (r[3] = (k) => p.value = k),
352
+ "onUpdate:modelValue": r[3] || (r[3] = (_) => p.value = _),
338
353
  "shrink-at": !1,
339
- "search-value": o(t),
354
+ "search-value": u(t),
340
355
  "row-data": n.payoutAccount.methods,
341
356
  "column-defs": c
342
357
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
- ], 64)) : _("", !0),
344
- u(T, {
358
+ ], 64)) : C("", !0),
359
+ o(T, {
345
360
  class: "w-full mt-6",
346
361
  variant: "primary",
347
362
  label: "Save",
@@ -351,15 +366,15 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
351
366
  ], 64);
352
367
  };
353
368
  }
354
- }), Ve = { class: "flex" }, ke = /* @__PURE__ */ A({
369
+ }), Ve = { class: "flex" }, _e = /* @__PURE__ */ k({
355
370
  __name: "Actions",
356
371
  emits: ["edit", "delete"],
357
- setup(n, { emit: v }) {
358
- const e = v;
372
+ setup(n, { emit: y }) {
373
+ const e = y;
359
374
  return (m, s) => {
360
375
  const t = i("FmButton");
361
- return y(), S("div", Ve, [
362
- u(t, {
376
+ return v(), P("div", Ve, [
377
+ o(t, {
363
378
  variant: "plain",
364
379
  "prepend-icon": "delete",
365
380
  onClick: s[0] || (s[0] = (l) => {
@@ -369,7 +384,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
369
384
  ]);
370
385
  };
371
386
  }
372
- }), _e = { class: "flex justify-end px-6 pb-6" }, Ae = /* @__PURE__ */ A({
387
+ }), ke = { class: "flex justify-end px-6 pb-6" }, Ae = /* @__PURE__ */ k({
373
388
  __name: "PaymentChannel",
374
389
  props: {
375
390
  payoutAccount: {
@@ -378,22 +393,22 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
378
393
  }
379
394
  },
380
395
  setup(n) {
381
- const v = z(), e = n, { isLoading: m, startAsyncCall: s } = Y(), t = C([]);
396
+ const y = z(), e = n, { isLoading: m, startAsyncCall: s } = Y(), t = A([]);
382
397
  function l() {
383
398
  s(async () => {
384
399
  t.value = await R.getChannels(e.payoutAccount._id);
385
400
  });
386
401
  }
387
- te(l);
402
+ ae(l);
388
403
  function p() {
389
404
  s(async () => {
390
405
  try {
391
- await R.updateChannels(e.payoutAccount._id, t.value), v.open({
406
+ await R.updateChannels(e.payoutAccount._id, t.value), y.open({
392
407
  type: "success",
393
408
  title: "Payout account channels update succesfully"
394
409
  });
395
410
  } catch (r) {
396
- v.open({
411
+ y.open({
397
412
  type: "error",
398
413
  title: "Error occurs when updating payout account channels",
399
414
  message: q(r)
@@ -404,12 +419,12 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
404
419
  function c() {
405
420
  s(async () => {
406
421
  try {
407
- await R.resetChannels(e.payoutAccount._id), t.value = await R.getChannels(e.payoutAccount._id), v.open({
422
+ await R.resetChannels(e.payoutAccount._id), t.value = await R.getChannels(e.payoutAccount._id), y.open({
408
423
  type: "success",
409
424
  title: "Payout account channels reset succesfully"
410
425
  });
411
426
  } catch (r) {
412
- v.open({
427
+ y.open({
413
428
  type: "error",
414
429
  title: "Error occurs when reset payout account channels",
415
430
  message: q(r)
@@ -434,7 +449,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
434
449
  {
435
450
  header: () => "Label",
436
451
  accessorKey: "label",
437
- cell: ({ row: r }) => O(ue.FmTextField, {
452
+ cell: ({ row: r }) => O(re.FmTextField, {
438
453
  modelValue: r.original.label,
439
454
  "onUpdate:modelValue": (f) => r.original.label = f
440
455
  })
@@ -442,16 +457,16 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
442
457
  {
443
458
  id: "actions",
444
459
  header: () => "Actions",
445
- cell: ({ row: r }) => O(ke, {
460
+ cell: ({ row: r }) => O(_e, {
446
461
  onDelete: () => t.value.splice(r.index, 1)
447
462
  })
448
463
  }
449
464
  ];
450
465
  return (r, f) => {
451
466
  const g = i("FmButton"), b = i("FmTable");
452
- return y(), S($, null, [
453
- d("div", _e, [
454
- u(g, {
467
+ return v(), P($, null, [
468
+ d("div", ke, [
469
+ o(g, {
455
470
  class: "mx-4",
456
471
  variant: "destructive",
457
472
  size: "md",
@@ -459,7 +474,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
459
474
  label: "Reset",
460
475
  onClick: c
461
476
  }),
462
- u(g, {
477
+ o(g, {
463
478
  variant: "primary",
464
479
  size: "md",
465
480
  icon: "save",
@@ -467,8 +482,8 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
467
482
  onClick: p
468
483
  })
469
484
  ]),
470
- u(b, {
471
- loading: o(m),
485
+ o(b, {
486
+ loading: u(m),
472
487
  "row-data": t.value,
473
488
  "column-defs": a,
474
489
  "shrink-at": !1
@@ -476,7 +491,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
476
491
  ], 64);
477
492
  };
478
493
  }
479
- }), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ A({
494
+ }), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ k({
480
495
  __name: "FiuuGateway",
481
496
  props: {
482
497
  gateway: {
@@ -494,46 +509,46 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
494
509
  },
495
510
  setup(n) {
496
511
  var m;
497
- const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
512
+ const e = A(((m = n.gateway) == null ? void 0 : m.config) || {
498
513
  merchantId: "",
499
514
  verifyKey: "",
500
515
  secretKey: ""
501
516
  });
502
517
  return (s, t) => {
503
518
  const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
504
- return y(), F(c, {
519
+ return v(), F(c, {
505
520
  ref: "form",
506
521
  class: "flex flex-col gap-16",
507
522
  onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
508
523
  }, {
509
524
  default: V(() => [
510
- u(l, {
525
+ o(l, {
511
526
  modelValue: e.value.merchantId,
512
527
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
513
528
  label: "Merchant ID",
514
- rules: o(x)(o(w).string())
529
+ rules: u(x)(u(w).string())
515
530
  }, null, 8, ["modelValue", "rules"]),
516
- u(l, {
531
+ o(l, {
517
532
  modelValue: e.value.verifyKey,
518
533
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
519
534
  label: "Verify Key",
520
- rules: o(x)(o(w).string())
535
+ rules: u(x)(u(w).string())
521
536
  }, null, 8, ["modelValue", "rules"]),
522
- u(l, {
537
+ o(l, {
523
538
  modelValue: e.value.secretKey,
524
539
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
525
540
  label: "Secret Key",
526
- rules: o(x)(o(w).string())
541
+ rules: u(x)(u(w).string())
527
542
  }, null, 8, ["modelValue", "rules"]),
528
543
  d("div", Ce, [
529
- n.gateway ? (y(), F(p, {
544
+ n.gateway ? (v(), F(p, {
530
545
  key: 0,
531
546
  class: "flex-1",
532
547
  variant: "secondary",
533
548
  label: "Delete",
534
549
  onclick: () => n.onDelete()
535
- }, null, 8, ["onclick"])) : _("", !0),
536
- u(p, {
550
+ }, null, 8, ["onclick"])) : C("", !0),
551
+ o(p, {
537
552
  type: "submit",
538
553
  class: "flex-1",
539
554
  variant: "primary",
@@ -545,7 +560,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
545
560
  }, 512);
546
561
  };
547
562
  }
548
- }), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
563
+ }), Te = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ k({
549
564
  __name: "MacauPassGateway",
550
565
  props: {
551
566
  gateway: {
@@ -563,7 +578,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
563
578
  },
564
579
  setup(n) {
565
580
  var m;
566
- const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
581
+ const e = A(((m = n.gateway) == null ? void 0 : m.config) || {
567
582
  merchantId: "",
568
583
  merchantName: "",
569
584
  merchantCategoryCode: "",
@@ -572,51 +587,51 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
572
587
  });
573
588
  return (s, t) => {
574
589
  const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
575
- return y(), F(c, {
590
+ return v(), F(c, {
576
591
  ref: "form",
577
592
  class: "flex flex-col gap-16",
578
593
  onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
579
594
  }, {
580
595
  default: V(() => [
581
- u(l, {
596
+ o(l, {
582
597
  modelValue: e.value.merchantId,
583
598
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
584
599
  label: "Merchant ID",
585
- rules: o(x)(o(w).string())
600
+ rules: u(x)(u(w).string())
586
601
  }, null, 8, ["modelValue", "rules"]),
587
- u(l, {
602
+ o(l, {
588
603
  modelValue: e.value.merchantName,
589
604
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
590
605
  label: "Merchant Name",
591
- rules: o(x)(o(w).string())
606
+ rules: u(x)(u(w).string())
592
607
  }, null, 8, ["modelValue", "rules"]),
593
- u(l, {
608
+ o(l, {
594
609
  modelValue: e.value.merchantCategoryCode,
595
610
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
596
611
  label: "Merchant MCC",
597
- rules: o(x)(o(w).string())
612
+ rules: u(x)(u(w).string())
598
613
  }, null, 8, ["modelValue", "rules"]),
599
- u(l, {
614
+ o(l, {
600
615
  modelValue: e.value.storeID,
601
616
  "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
602
617
  label: "Store ID",
603
- rules: o(x)(o(w).string())
618
+ rules: u(x)(u(w).string())
604
619
  }, null, 8, ["modelValue", "rules"]),
605
- u(l, {
620
+ o(l, {
606
621
  modelValue: e.value.storeName,
607
622
  "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
608
623
  label: "Store Name",
609
- rules: o(x)(o(w).string())
624
+ rules: u(x)(u(w).string())
610
625
  }, null, 8, ["modelValue", "rules"]),
611
626
  d("div", Te, [
612
- n.gateway ? (y(), F(p, {
627
+ n.gateway ? (v(), F(p, {
613
628
  key: 0,
614
629
  class: "flex-1",
615
630
  variant: "secondary",
616
631
  label: "Delete",
617
632
  onclick: () => n.onDelete()
618
- }, null, 8, ["onclick"])) : _("", !0),
619
- u(p, {
633
+ }, null, 8, ["onclick"])) : C("", !0),
634
+ o(p, {
620
635
  type: "submit",
621
636
  class: "flex-1",
622
637
  variant: "primary",
@@ -628,7 +643,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
628
643
  }, 512);
629
644
  };
630
645
  }
631
- }), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ A({
646
+ }), he = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ k({
632
647
  __name: "DigioGateway",
633
648
  props: {
634
649
  gateway: {
@@ -646,39 +661,39 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
646
661
  },
647
662
  setup(n) {
648
663
  var m;
649
- const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
664
+ const e = A(((m = n.gateway) == null ? void 0 : m.config) || {
650
665
  merchantId: "",
651
666
  cardMerchantId: ""
652
667
  });
653
668
  return (s, t) => {
654
669
  const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
655
- return y(), F(c, {
670
+ return v(), F(c, {
656
671
  ref: "form",
657
672
  class: "flex flex-col gap-16",
658
673
  onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
659
674
  }, {
660
675
  default: V(() => [
661
- u(l, {
676
+ o(l, {
662
677
  modelValue: e.value.merchantId,
663
678
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
664
679
  label: "Merchant ID",
665
- rules: o(x)(o(w).string())
680
+ rules: u(x)(u(w).string())
666
681
  }, null, 8, ["modelValue", "rules"]),
667
- u(l, {
682
+ o(l, {
668
683
  modelValue: e.value.cardMerchantId,
669
684
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
670
685
  label: "Card Merchant ID",
671
- rules: o(x)(o(w).string())
686
+ rules: u(x)(u(w).string())
672
687
  }, null, 8, ["modelValue", "rules"]),
673
- d("div", Se, [
674
- n.gateway ? (y(), F(p, {
688
+ d("div", he, [
689
+ n.gateway ? (v(), F(p, {
675
690
  key: 0,
676
691
  class: "flex-1",
677
692
  variant: "secondary",
678
693
  label: "Delete",
679
694
  onclick: () => n.onDelete()
680
- }, null, 8, ["onclick"])) : _("", !0),
681
- u(p, {
695
+ }, null, 8, ["onclick"])) : C("", !0),
696
+ o(p, {
682
697
  type: "submit",
683
698
  class: "flex-1",
684
699
  variant: "primary",
@@ -690,7 +705,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
690
705
  }, 512);
691
706
  };
692
707
  }
693
- }), Ie = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ A({
708
+ }), Ie = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ k({
694
709
  __name: "AdyenGateway",
695
710
  props: {
696
711
  gateway: {
@@ -708,7 +723,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
708
723
  },
709
724
  setup(n) {
710
725
  var m;
711
- const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
726
+ const e = A(((m = n.gateway) == null ? void 0 : m.config) || {
712
727
  merchantAccount: "",
713
728
  username: "",
714
729
  apiKey: "",
@@ -718,56 +733,56 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
718
733
  });
719
734
  return (s, t) => {
720
735
  const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
721
- return y(), F(c, {
736
+ return v(), F(c, {
722
737
  ref: "form",
723
738
  class: "flex flex-col gap-16",
724
739
  onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
725
740
  }, {
726
741
  default: V(() => [
727
- u(l, {
742
+ o(l, {
728
743
  modelValue: e.value.endpoint,
729
744
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
730
745
  label: "Endpoint",
731
- rules: o(x)(o(w).string())
746
+ rules: u(x)(u(w).string())
732
747
  }, null, 8, ["modelValue", "rules"]),
733
- u(l, {
748
+ o(l, {
734
749
  modelValue: e.value.merchantAccount,
735
750
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
736
751
  label: "Merchant Account",
737
- rules: o(x)(o(w).string())
752
+ rules: u(x)(u(w).string())
738
753
  }, null, 8, ["modelValue", "rules"]),
739
- u(l, {
754
+ o(l, {
740
755
  modelValue: e.value.username,
741
756
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
742
757
  label: "Username",
743
- rules: o(x)(o(w).string())
758
+ rules: u(x)(u(w).string())
744
759
  }, null, 8, ["modelValue", "rules"]),
745
- u(l, {
760
+ o(l, {
746
761
  modelValue: e.value.apiKey,
747
762
  "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
748
763
  label: "API Key",
749
- rules: o(x)(o(w).string())
764
+ rules: u(x)(u(w).string())
750
765
  }, null, 8, ["modelValue", "rules"]),
751
- u(l, {
766
+ o(l, {
752
767
  modelValue: e.value.clientKey,
753
768
  "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
754
769
  label: "Client Key",
755
- rules: o(x)(o(w).string())
770
+ rules: u(x)(u(w).string())
756
771
  }, null, 8, ["modelValue", "rules"]),
757
- u(l, {
772
+ o(l, {
758
773
  modelValue: e.value.hmacKey,
759
774
  "onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
760
775
  label: "HMac Key"
761
776
  }, null, 8, ["modelValue"]),
762
777
  d("div", Ie, [
763
- n.gateway ? (y(), F(p, {
778
+ n.gateway ? (v(), F(p, {
764
779
  key: 0,
765
780
  class: "flex-1",
766
781
  variant: "secondary",
767
782
  label: "Delete",
768
783
  onclick: () => n.onDelete()
769
- }, null, 8, ["onclick"])) : _("", !0),
770
- u(p, {
784
+ }, null, 8, ["onclick"])) : C("", !0),
785
+ o(p, {
771
786
  type: "submit",
772
787
  class: "flex-1",
773
788
  variant: "primary",
@@ -779,7 +794,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
779
794
  }, 512);
780
795
  };
781
796
  }
782
- }), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ A({
797
+ }), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ k({
783
798
  __name: "KsherGateway",
784
799
  props: {
785
800
  gateway: {
@@ -797,40 +812,40 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
797
812
  },
798
813
  setup(n) {
799
814
  var m;
800
- const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
815
+ const e = A(((m = n.gateway) == null ? void 0 : m.config) || {
801
816
  appId: "",
802
817
  privateKey: ""
803
818
  });
804
819
  return (s, t) => {
805
820
  const l = i("FmTextField"), p = i("FmTextarea"), c = i("FmButton"), a = i("FmForm");
806
- return y(), F(a, {
821
+ return v(), F(a, {
807
822
  ref: "form",
808
823
  class: "flex flex-col gap-16",
809
824
  onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
810
825
  }, {
811
826
  default: V(() => [
812
- u(l, {
827
+ o(l, {
813
828
  modelValue: e.value.appId,
814
829
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
815
830
  label: "App ID",
816
- rules: o(x)(o(w).string())
831
+ rules: u(x)(u(w).string())
817
832
  }, null, 8, ["modelValue", "rules"]),
818
- u(p, {
833
+ o(p, {
819
834
  modelValue: e.value.privateKey,
820
835
  "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.privateKey = r),
821
836
  label: "Private Key",
822
837
  placeholder: "Paste your private key including BEGIN and END markers",
823
- rules: o(x)(o(w).string())
838
+ rules: u(x)(u(w).string())
824
839
  }, null, 8, ["modelValue", "rules"]),
825
840
  d("div", Ne, [
826
- n.gateway ? (y(), F(c, {
841
+ n.gateway ? (v(), F(c, {
827
842
  key: 0,
828
843
  class: "flex-1",
829
844
  variant: "secondary",
830
845
  label: "Delete",
831
846
  onclick: () => n.onDelete()
832
- }, null, 8, ["onclick"])) : _("", !0),
833
- u(c, {
847
+ }, null, 8, ["onclick"])) : C("", !0),
848
+ o(c, {
834
849
  type: "submit",
835
850
  class: "flex-1",
836
851
  variant: "primary",
@@ -848,7 +863,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
848
863
  }, Ge = {
849
864
  key: 1,
850
865
  class: "flex items-center justify-center min-h-[80vh]"
851
- }, $e = /* @__PURE__ */ A({
866
+ }, $e = /* @__PURE__ */ k({
852
867
  __name: "PaymentGateway",
853
868
  props: {
854
869
  payoutAccount: {
@@ -857,43 +872,43 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
857
872
  }
858
873
  },
859
874
  setup(n) {
860
- const v = ae().currentCountry, e = v.value, m = z(), { isLoading: s, startAsyncCall: t } = Y(), { gatewayTab: l } = j({
875
+ const y = ne().currentCountry, e = y.value, m = z(), { isLoading: s, startAsyncCall: t } = Y(), { gatewayTab: l } = j({
861
876
  gatewayTab: ""
862
877
  }), p = n, c = [
863
878
  {
864
879
  label: "Fiuu",
865
880
  value: "RAZER_MERCHANT_SERVICE",
866
881
  render: Ue,
867
- region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
882
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
868
883
  },
869
884
  {
870
885
  label: "Macau Pass",
871
886
  value: "MACAU_PASS",
872
- render: he,
873
- region: [h.F_COUNTRY.enum.MO]
887
+ render: Se,
888
+ region: [S.F_COUNTRY.enum.MO]
874
889
  },
875
890
  {
876
891
  label: "Digio",
877
892
  value: "DIGIO",
878
893
  render: Pe,
879
- region: [h.F_COUNTRY.enum.TH]
894
+ region: [S.F_COUNTRY.enum.TH]
880
895
  },
881
896
  {
882
897
  label: "Ksher",
883
898
  value: "KSHER",
884
899
  render: Me,
885
- region: [h.F_COUNTRY.enum.TH]
900
+ region: [S.F_COUNTRY.enum.TH]
886
901
  },
887
902
  {
888
903
  label: "Adyen",
889
904
  value: "ADYEN",
890
905
  render: De,
891
- region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
906
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
892
907
  }
893
- ], a = C(
908
+ ], a = A(
894
909
  p.payoutAccount.gateways ?? []
895
910
  ), r = K(() => c.find((U) => U.value === l.value)), f = K(() => c.filter(
896
- (U) => U.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
911
+ (U) => U.region.includes(y.value ?? S.F_COUNTRY.enum.MY)
897
912
  ));
898
913
  async function g(U) {
899
914
  await t(async () => {
@@ -911,33 +926,33 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
911
926
  }
912
927
  });
913
928
  }
914
- const b = C((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !b.value);
929
+ const b = A((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !b.value);
915
930
  return (U, T) => {
916
931
  var B;
917
- const k = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
918
- return y(), S($, null, [
919
- o(e) ? (y(), S("p", Re, T[2] || (T[2] = [
932
+ const _ = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
933
+ return v(), P($, null, [
934
+ u(e) ? (v(), P("p", Re, [...T[2] || (T[2] = [
920
935
  d("b", null, "Note: ", -1),
921
- P(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
922
- ]))) : _("", !0),
923
- o(s) ? (y(), S("div", Ge, [
924
- u(k, { size: "xxl" })
925
- ])) : (y(), S($, { key: 2 }, [
926
- o(e) === "MY" ? (y(), F(D, {
936
+ h(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
937
+ ])])) : C("", !0),
938
+ u(s) ? (v(), P("div", Ge, [
939
+ o(_, { size: "xxl" })
940
+ ])) : (v(), P($, { key: 2 }, [
941
+ u(e) === "MY" ? (v(), F(D, {
927
942
  key: 0,
928
943
  modelValue: b.value,
929
944
  "onUpdate:modelValue": T[0] || (T[0] = (N) => b.value = N),
930
945
  style: { "padding-bottom": "12px" },
931
946
  label: "Use FeedMe's Fiuu Account?"
932
- }, null, 8, ["modelValue"])) : _("", !0),
933
- I.value ? (y(), F(H, {
947
+ }, null, 8, ["modelValue"])) : C("", !0),
948
+ I.value ? (v(), F(H, {
934
949
  key: 1,
935
- "model-value": o(l),
950
+ "model-value": u(l),
936
951
  "onUpdate:modelValue": T[1] || (T[1] = (N) => E(l) ? l.value = N : null),
937
952
  class: "mb-6",
938
953
  items: f.value
939
- }, null, 8, ["model-value", "items"])) : _("", !0),
940
- I.value && o(l) ? (y(), F(L((B = r.value) == null ? void 0 : B.render), Z(Q({ key: 2 }, {
954
+ }, null, 8, ["model-value", "items"])) : C("", !0),
955
+ I.value && u(l) ? (v(), F(Z((B = r.value) == null ? void 0 : B.render), Q(W({ key: 2 }, {
941
956
  gateway: a.value.find(
942
957
  (N) => {
943
958
  var G;
@@ -953,24 +968,24 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
953
968
  ), g(a.value);
954
969
  },
955
970
  onUpdate: (N) => {
956
- var W;
971
+ var J;
957
972
  let G = a.value.find(
958
- (ne) => {
959
- var J;
960
- return ne.paymentGateway === ((J = r.value) == null ? void 0 : J.value);
973
+ (le) => {
974
+ var X;
975
+ return le.paymentGateway === ((X = r.value) == null ? void 0 : X.value);
961
976
  }
962
977
  );
963
978
  G ? G.config = N : a.value.push({
964
- paymentGateway: (W = r.value) == null ? void 0 : W.value,
979
+ paymentGateway: (J = r.value) == null ? void 0 : J.value,
965
980
  config: N
966
981
  }), g(a.value);
967
982
  }
968
- })), null, 16)) : _("", !0)
983
+ })), null, 16)) : C("", !0)
969
984
  ], 64))
970
985
  ], 64);
971
986
  };
972
987
  }
973
- }), Ke = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ A({
988
+ }), Ke = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ k({
974
989
  __name: "GooglePayToken",
975
990
  props: {
976
991
  gateway: {
@@ -987,7 +1002,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
987
1002
  }
988
1003
  },
989
1004
  setup(n) {
990
- const e = C(
1005
+ const e = A(
991
1006
  n.gateway || {
992
1007
  type: "googlePay",
993
1008
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -999,42 +1014,42 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
999
1014
  );
1000
1015
  return (m, s) => {
1001
1016
  const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
1002
- return y(), F(p, {
1017
+ return v(), F(p, {
1003
1018
  ref: "form",
1004
1019
  class: "flex flex-col gap-16",
1005
1020
  onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
1006
1021
  }, {
1007
1022
  default: V(() => [
1008
- u(t, {
1023
+ o(t, {
1009
1024
  modelValue: e.value.gateway,
1010
1025
  "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
1011
1026
  label: "Gateway",
1012
1027
  disabled: !0,
1013
- rules: o(x)(o(w).string())
1028
+ rules: u(x)(u(w).string())
1014
1029
  }, null, 8, ["modelValue", "rules"]),
1015
- u(t, {
1030
+ o(t, {
1016
1031
  modelValue: e.value.config.gateway,
1017
1032
  "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.gateway = c),
1018
1033
  label: "Gateway ID",
1019
1034
  disabled: !0,
1020
- rules: o(x)(o(w).string())
1035
+ rules: u(x)(u(w).string())
1021
1036
  }, null, 8, ["modelValue", "rules"]),
1022
- u(t, {
1037
+ o(t, {
1023
1038
  modelValue: e.value.config.gatewayMerchantId,
1024
1039
  "onUpdate:modelValue": s[2] || (s[2] = (c) => e.value.config.gatewayMerchantId = c),
1025
1040
  label: "Gateway Merchant ID",
1026
1041
  disabled: !0,
1027
- rules: o(x)(o(w).string())
1042
+ rules: u(x)(u(w).string())
1028
1043
  }, null, 8, ["modelValue", "rules"]),
1029
1044
  d("div", Ke, [
1030
- n.gateway ? (y(), F(l, {
1045
+ n.gateway ? (v(), F(l, {
1031
1046
  key: 0,
1032
1047
  class: "flex-1",
1033
1048
  variant: "secondary",
1034
1049
  label: "Delete",
1035
1050
  onclick: () => n.onDelete()
1036
- }, null, 8, ["onclick"])) : _("", !0),
1037
- u(l, {
1051
+ }, null, 8, ["onclick"])) : C("", !0),
1052
+ o(l, {
1038
1053
  type: "submit",
1039
1054
  class: "flex-1",
1040
1055
  variant: "primary",
@@ -1046,7 +1061,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1046
1061
  }, 512);
1047
1062
  };
1048
1063
  }
1049
- }), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ A({
1064
+ }), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ k({
1050
1065
  __name: "ApplePayToken",
1051
1066
  props: {
1052
1067
  gateway: {
@@ -1063,7 +1078,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1063
1078
  }
1064
1079
  },
1065
1080
  setup(n) {
1066
- const e = C(
1081
+ const e = A(
1067
1082
  n.gateway || {
1068
1083
  type: "applePay",
1069
1084
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -1074,35 +1089,35 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1074
1089
  );
1075
1090
  return (m, s) => {
1076
1091
  const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
1077
- return y(), F(p, {
1092
+ return v(), F(p, {
1078
1093
  ref: "form",
1079
1094
  class: "flex flex-col gap-16",
1080
1095
  onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
1081
1096
  }, {
1082
1097
  default: V(() => [
1083
- u(t, {
1098
+ o(t, {
1084
1099
  modelValue: e.value.gateway,
1085
1100
  "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
1086
1101
  label: "Gateway",
1087
1102
  disabled: !0,
1088
- rules: o(x)(o(w).string())
1103
+ rules: u(x)(u(w).string())
1089
1104
  }, null, 8, ["modelValue", "rules"]),
1090
- u(t, {
1105
+ o(t, {
1091
1106
  modelValue: e.value.config.merchantId,
1092
1107
  "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.merchantId = c),
1093
1108
  label: "Merchant ID",
1094
1109
  disabled: !0,
1095
- rules: o(x)(o(w).string())
1110
+ rules: u(x)(u(w).string())
1096
1111
  }, null, 8, ["modelValue", "rules"]),
1097
1112
  d("div", Oe, [
1098
- n.gateway ? (y(), F(l, {
1113
+ n.gateway ? (v(), F(l, {
1099
1114
  key: 0,
1100
1115
  class: "flex-1",
1101
1116
  variant: "secondary",
1102
1117
  label: "Delete",
1103
1118
  onclick: () => n.onDelete()
1104
- }, null, 8, ["onclick"])) : _("", !0),
1105
- u(l, {
1119
+ }, null, 8, ["onclick"])) : C("", !0),
1120
+ o(l, {
1106
1121
  type: "submit",
1107
1122
  class: "flex-1",
1108
1123
  variant: "primary",
@@ -1117,7 +1132,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1117
1132
  }), Ee = {
1118
1133
  key: 0,
1119
1134
  class: "flex items-center justify-center min-h-[80vh]"
1120
- }, Ye = /* @__PURE__ */ A({
1135
+ }, Ye = /* @__PURE__ */ k({
1121
1136
  __name: "TokenGateway",
1122
1137
  props: {
1123
1138
  payoutAccount: {
@@ -1126,7 +1141,7 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1126
1141
  }
1127
1142
  },
1128
1143
  setup(n) {
1129
- const v = ae().currentCountry, e = z(), { isLoading: m, startAsyncCall: s } = Y(), { tokenTab: t } = j({
1144
+ const y = ne().currentCountry, e = z(), { isLoading: m, startAsyncCall: s } = Y(), { tokenTab: t } = j({
1130
1145
  tokenTab: ""
1131
1146
  }), l = n, p = [
1132
1147
  {
@@ -1134,17 +1149,17 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1134
1149
  value: "googlePay",
1135
1150
  icon: "android",
1136
1151
  render: Be,
1137
- region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1152
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1138
1153
  },
1139
1154
  {
1140
1155
  label: "Apple Pay",
1141
1156
  value: "applePay",
1142
1157
  icon: "iOS",
1143
1158
  render: qe,
1144
- region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1159
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1145
1160
  }
1146
- ], c = C(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
1147
- (g) => g.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
1161
+ ], c = A(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
1162
+ (g) => g.region.includes(y.value ?? S.F_COUNTRY.enum.MY)
1148
1163
  ));
1149
1164
  async function f(g) {
1150
1165
  await s(async () => {
@@ -1165,47 +1180,47 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1165
1180
  return (g, b) => {
1166
1181
  var T;
1167
1182
  const I = i("FmCircularProgress"), U = i("FmTabs");
1168
- return y(), S($, null, [
1183
+ return v(), P($, null, [
1169
1184
  b[1] || (b[1] = d("p", { className: "mt-1 my-6 text-gray-600" }, [
1170
1185
  d("b", null, "Note: "),
1171
- 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. "),
1186
+ h(" 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. "),
1172
1187
  d("br"),
1173
1188
  d("br"),
1174
1189
  d("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. `),
1175
1190
  d("br")
1176
1191
  ], -1)),
1177
- o(m) ? (y(), S("div", Ee, [
1178
- u(I, { size: "xxl" })
1179
- ])) : (y(), F(U, {
1192
+ u(m) ? (v(), P("div", Ee, [
1193
+ o(I, { size: "xxl" })
1194
+ ])) : (v(), F(U, {
1180
1195
  key: 1,
1181
- "model-value": o(t),
1182
- "onUpdate:modelValue": b[0] || (b[0] = (k) => E(t) ? t.value = k : null),
1196
+ "model-value": u(t),
1197
+ "onUpdate:modelValue": b[0] || (b[0] = (_) => E(t) ? t.value = _ : null),
1183
1198
  class: "mb-6 mt-6",
1184
1199
  items: r.value
1185
1200
  }, null, 8, ["model-value", "items"])),
1186
- o(t) ? (y(), F(L((T = a.value) == null ? void 0 : T.render), Z(Q({ key: 2 }, {
1187
- gateway: c.value.find((k) => {
1201
+ u(t) ? (v(), F(Z((T = a.value) == null ? void 0 : T.render), Q(W({ key: 2 }, {
1202
+ gateway: c.value.find((_) => {
1188
1203
  var D;
1189
- return k.type === ((D = a.value) == null ? void 0 : D.value);
1204
+ return _.type === ((D = a.value) == null ? void 0 : D.value);
1190
1205
  }),
1191
1206
  onDelete: async () => {
1192
- c.value = c.value.filter((k) => {
1207
+ c.value = c.value.filter((_) => {
1193
1208
  var D;
1194
- return k.type !== ((D = a.value) == null ? void 0 : D.value);
1209
+ return _.type !== ((D = a.value) == null ? void 0 : D.value);
1195
1210
  }), f(c.value);
1196
1211
  },
1197
- onUpdate: (k) => {
1212
+ onUpdate: (_) => {
1198
1213
  let D = c.value.find((H) => {
1199
1214
  var B;
1200
1215
  return H.type === ((B = a.value) == null ? void 0 : B.value);
1201
1216
  });
1202
- D ? D.config = k : c.value.push(k), f(c.value);
1217
+ D ? D.config = _ : c.value.push(_), f(c.value);
1203
1218
  }
1204
- })), null, 16)) : _("", !0)
1219
+ })), null, 16)) : C("", !0)
1205
1220
  ], 64);
1206
1221
  };
1207
1222
  }
1208
- }), at = /* @__PURE__ */ A({
1223
+ }), nt = /* @__PURE__ */ k({
1209
1224
  __name: "PayoutAccountSetting",
1210
1225
  props: {
1211
1226
  accountId: {
@@ -1214,14 +1229,14 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1214
1229
  }
1215
1230
  },
1216
1231
  setup(n) {
1217
- const v = n, { tab: e } = j({
1232
+ const y = n, { tab: e } = j({
1218
1233
  tab: "information"
1219
- }), { isLoading: m, startAsyncCall: s } = Y(!0), t = oe(), l = C();
1234
+ }), { isLoading: m, startAsyncCall: s } = Y(!0), t = ue(), l = A();
1220
1235
  async function p(f) {
1221
1236
  await R.updateById(
1222
- v.accountId,
1237
+ y.accountId,
1223
1238
  f
1224
- ), l.value = await R.readById(v.accountId);
1239
+ ), l.value = await R.readById(y.accountId);
1225
1240
  }
1226
1241
  const c = [
1227
1242
  {
@@ -1263,10 +1278,10 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1263
1278
  ];
1264
1279
  function a() {
1265
1280
  s(async () => {
1266
- l.value = await R.readById(v.accountId);
1281
+ l.value = await R.readById(y.accountId);
1267
1282
  });
1268
1283
  }
1269
- te(a);
1284
+ ae(a);
1270
1285
  const r = K(() => {
1271
1286
  const f = c.reduce((g, b) => g || (b.children ? b.children.find((I) => I.value === e.value) || null : b.value === e.value ? b : null), null);
1272
1287
  return f == null ? void 0 : f.render;
@@ -1274,22 +1289,22 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1274
1289
  return (f, g) => {
1275
1290
  var I;
1276
1291
  const b = i("FmTabs");
1277
- return y(), F(le, {
1292
+ return v(), F(oe, {
1278
1293
  title: `Payout Account (${(I = l.value) == null ? void 0 : I._id})`,
1279
- loading: o(m),
1280
- onBack: o(t).back
1294
+ loading: u(m),
1295
+ onBack: u(t).back
1281
1296
  }, {
1282
1297
  default: V(() => [
1283
- u(b, {
1284
- "model-value": o(e),
1298
+ o(b, {
1299
+ "model-value": u(e),
1285
1300
  "onUpdate:modelValue": g[0] || (g[0] = (U) => E(e) ? e.value = U : null),
1286
1301
  class: "mb-6",
1287
1302
  items: c
1288
1303
  }, null, 8, ["model-value"]),
1289
- o(e) ? (y(), F(L(r.value), Z(Q({ key: 0 }, {
1304
+ u(e) ? (v(), F(Z(r.value), Q(W({ key: 0 }, {
1290
1305
  payoutAccount: l.value,
1291
1306
  onUpdate: p
1292
- })), null, 16)) : _("", !0)
1307
+ })), null, 16)) : C("", !0)
1293
1308
  ]),
1294
1309
  _: 1
1295
1310
  }, 8, ["title", "loading", "onBack"]);
@@ -1297,5 +1312,5 @@ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
1297
1312
  }
1298
1313
  });
1299
1314
  export {
1300
- at as default
1315
+ nt as default
1301
1316
  };