@feedmepos/mf-payment 1.5.66-dev → 1.5.68-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 (88) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DozVhsJ6.js → Actions.vue_vue_type_script_setup_true_lang-CSOopYCT.js} +1 -1
  2. package/dist/{Chargeback-CigcCPLN.js → Chargeback-id7B_0Mo.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CWxi1dJK.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CcLRVQsm.js} +1 -1
  4. package/dist/{OnboardForm-CczrWUPq.js → OnboardForm-D-aXzztS.js} +5 -5
  5. package/dist/{OnboardForm-DdbghiWp.js → OnboardForm-HBMaRw1e.js} +5 -5
  6. package/dist/{OnboardSubmission-DP_Or_d9.js → OnboardSubmission-B3mQbpKg.js} +5 -5
  7. package/dist/OnboardSubmission-udG2ocVW.js +446 -0
  8. package/dist/{PayoutAccount-QRi1Nez3.js → PayoutAccount-HjxoJlBH.js} +4 -4
  9. package/dist/{PayoutAccount-tW7XQizF.js → PayoutAccount-dpr6UgEW.js} +5 -5
  10. package/dist/{PayoutAccountSetting-PJaSEfY0.js → PayoutAccountSetting-DErGNyWW.js} +318 -269
  11. package/dist/{Restaurant-wBwQH7BD.js → Restaurant-DMpLQ-m5.js} +4 -4
  12. package/dist/{RestaurantSetting-D21X4uNO.js → RestaurantSetting-C9ecFKSv.js} +3 -3
  13. package/dist/{Settlement-OtkTou9V.js → Settlement-CM19oWo1.js} +3 -3
  14. package/dist/{Settlement-CBYuvSm2.js → Settlement-DFakfE9e.js} +4 -4
  15. package/dist/{SettlementTransactions-B8UpgN2b.js → SettlementTransactions-Blijz_Gp.js} +4 -4
  16. package/dist/{SettlementTransactions-CT3JwEoS.js → SettlementTransactions-DLuErd-f.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-1GJaXhi3.js → Status.vue_vue_type_script_setup_true_lang-BWsw0-qx.js} +1 -1
  18. package/dist/{Terminal-CpNDJUNJ.js → Terminal-VBg-Tncj.js} +5 -5
  19. package/dist/{TerminalSetting-CtozS02_.js → TerminalSetting-cHe1EAz-.js} +4 -4
  20. package/dist/{Transaction-8sCZxA2-.js → Transaction-CN3CDKsq.js} +5 -5
  21. package/dist/{Transaction-rtN_DHpZ.js → Transaction-GPSPpTqz.js} +9 -9
  22. package/dist/{TransactionOld-cFUbbK2e.js → TransactionOld-CsvoWSRR.js} +6 -6
  23. package/dist/{app-C8pEIKUo.js → app-BjI5oUMX.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-_4dnPBP9.js → assets-D1S1_plg.js} +81 -79
  26. package/dist/{grafana-Bt15ziAx.js → grafana-D1M_gN2d.js} +1 -1
  27. package/dist/{index-fQ1lHxkT.js → index-BCQStiw6.js} +1 -1
  28. package/dist/{index-BHbmikdq.js → index-BgJzLLIW.js} +1 -1
  29. package/dist/{index-9tPvBmIv.js → index-CKD8vczB.js} +1 -1
  30. package/dist/{index-60dUveeA.js → index-CM5NtnYZ.js} +2 -2
  31. package/dist/{index-DXqlUE4I.js → index-CPj477gk.js} +1 -1
  32. package/dist/{index-C6DfImpF.js → index-Ct__yPEf.js} +1 -1
  33. package/dist/{index-Cy9NzvZs.js → index-D1IYVrYU.js} +350 -350
  34. package/dist/{index-w7gHvsfF.js → index-Dnl1u77G.js} +1 -1
  35. package/dist/{index-Dk2x49h4.js → index-TDpPEzSH.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-ZwcLu308.js → index.vue_vue_type_script_setup_true_lang-dN0Twm5r.js} +1 -1
  37. package/dist/model/payout-account.d.ts +2 -2
  38. package/dist/package.json +3 -3
  39. package/dist/{payout-account-t7rVUCrZ.js → payout-account-CLjnN1G2.js} +3 -3
  40. package/dist/stores/payoutAccount.d.ts +12 -12
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/tyro-BovmsorS.js +5 -0
  43. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
  44. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
  45. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +16 -16
  46. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +12 -12
  47. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +32 -32
  48. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +32 -32
  49. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +12 -12
  50. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +12 -12
  51. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +32 -32
  52. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +39 -0
  53. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
  54. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
  55. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
  56. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  57. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
  58. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +8 -8
  59. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
  60. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
  61. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  62. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
  63. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  64. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  65. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  66. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  67. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  68. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  69. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  70. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  71. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  72. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
  73. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
  74. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  75. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  76. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  77. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  78. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  79. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
  80. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  81. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  82. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  83. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +24 -24
  84. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
  85. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
  86. package/package.json +2 -2
  87. package/dist/OnboardSubmission-BDrD59ih.js +0 -446
  88. package/dist/softspace-D9cEyOQT.js +0 -4
@@ -1,10 +1,10 @@
1
- import { defineComponent as U, resolveComponent as p, openBlock as g, createElementBlock as N, Fragment as G, createElementVNode as r, createVNode as a, withCtx as F, createTextVNode as k, toDisplayString as I, unref as u, ref as T, watch as Z, createBlock as V, computed as B, isRef as j, createCommentVNode as S, h as K, onMounted as ne, resolveDynamicComponent as J, normalizeProps as Q, mergeProps as W } from "vue";
2
- import { p as $ } from "./index-BHbmikdq.js";
3
- import { u as Y, e as P } from "./index-Cy9NzvZs.js";
1
+ import { defineComponent as k, resolveComponent as p, openBlock as g, createElementBlock as N, Fragment as E, createElementVNode as r, createVNode as a, withCtx as F, createTextVNode as T, toDisplayString as I, unref as u, ref as U, watch as Z, createBlock as V, computed as O, isRef as j, createCommentVNode as D, h as B, onMounted as ne, resolveDynamicComponent as J, normalizeProps as Q, mergeProps as W } from "vue";
2
+ import { p as $ } from "./index-BgJzLLIW.js";
3
+ import { u as Y, e as S } from "./index-D1IYVrYU.js";
4
4
  import { _ as oe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
5
5
  import { useRouter as ue } from "vue-router";
6
- import { u as z } from "./index-9tPvBmIv.js";
7
- import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CWxi1dJK.js";
6
+ import { u as z } from "./index-CKD8vczB.js";
7
+ import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CcLRVQsm.js";
8
8
  import { h as se } from "./moment-h96o7c8I.js";
9
9
  import { P as te } from "./PDFViewer-CIPPbzWD.js";
10
10
  import { useSnackbar as H, useDialog as re, components as ie } from "@feedmepos/ui-library";
@@ -12,7 +12,7 @@ import { u as q } from "./error-K1CakhA9.js";
12
12
  import { _ as ce } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js";
13
13
  import { z as w, a as A } from "./validator-DzjyJnvv.js";
14
14
  import { useCoreStore as ae } from "@feedmepos/mf-common";
15
- const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */ U({
15
+ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe = /* @__PURE__ */ k({
16
16
  __name: "Information",
17
17
  props: {
18
18
  payoutAccount: {
@@ -23,8 +23,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
23
23
  setup(n) {
24
24
  return (f, e) => {
25
25
  var s, v;
26
- const y = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
27
- return g(), N(G, null, [
26
+ const d = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
27
+ return g(), N(E, null, [
28
28
  r("div", me, [
29
29
  a(t, {
30
30
  horizontal: "",
@@ -34,23 +34,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
34
34
  default: F(() => [
35
35
  a(o, { class: "flex flex-col gap-16 justify-between" }, {
36
36
  default: F(() => [
37
- a(y, {
37
+ a(d, {
38
38
  class: "p-0",
39
39
  title: "Account Info",
40
40
  subtitle: ""
41
41
  }),
42
42
  a(o, { class: "p-0" }, {
43
43
  default: F(() => {
44
- var c, l, d, m, i;
44
+ var i, l, y, m, c;
45
45
  return [
46
46
  e[0] || (e[0] = r("b", null, "For", -1)),
47
- k(": " + I((l = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : l.event) + " ", 1),
47
+ T(": " + I((l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.event) + " ", 1),
48
48
  e[1] || (e[1] = r("br", null, null, -1)),
49
49
  e[2] || (e[2] = r("b", null, "Reference", -1)),
50
- k(": " + I((m = (d = n.payoutAccount) == null ? void 0 : d.store) == null ? void 0 : m.id), 1),
50
+ T(": " + I((m = (y = n.payoutAccount) == null ? void 0 : y.store) == null ? void 0 : m.id), 1),
51
51
  e[3] || (e[3] = r("br", null, null, -1)),
52
52
  e[4] || (e[4] = r("b", null, "Business", -1)),
53
- k(": " + I((i = n.payoutAccount) == null ? void 0 : i.businessId), 1),
53
+ T(": " + I((c = n.payoutAccount) == null ? void 0 : c.businessId), 1),
54
54
  e[5] || (e[5] = r("br", null, null, -1))
55
55
  ];
56
56
  }),
@@ -70,23 +70,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
70
70
  default: F(() => [
71
71
  a(o, { class: "flex flex-col gap-16 justify-between" }, {
72
72
  default: F(() => [
73
- a(y, {
73
+ a(d, {
74
74
  class: "p-0",
75
75
  title: "Key Person",
76
76
  subtitle: ""
77
77
  }),
78
78
  a(o, { class: "p-0" }, {
79
79
  default: F(() => {
80
- var c, l, d, m, i, b, x, C;
80
+ var i, l, y, m, c, b, x, C;
81
81
  return [
82
82
  e[6] || (e[6] = r("b", null, "Email", -1)),
83
- k(": " + I((d = (l = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : l.keyPerson) == null ? void 0 : d.email) + " ", 1),
83
+ T(": " + I((y = (l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.keyPerson) == null ? void 0 : y.email) + " ", 1),
84
84
  e[7] || (e[7] = r("br", null, null, -1)),
85
85
  e[8] || (e[8] = r("b", null, "Name", -1)),
86
- k(": " + I((b = (i = (m = n.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : i.keyPerson) == null ? void 0 : b.name), 1),
86
+ T(": " + I((b = (c = (m = n.payoutAccount) == null ? void 0 : m.store) == null ? void 0 : c.keyPerson) == null ? void 0 : b.name), 1),
87
87
  e[9] || (e[9] = r("br", null, null, -1)),
88
88
  e[10] || (e[10] = r("b", null, "Phone", -1)),
89
- k(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.keyPerson) == null ? void 0 : C.phone), 1),
89
+ T(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.keyPerson) == null ? void 0 : C.phone), 1),
90
90
  e[11] || (e[11] = r("br", null, null, -1))
91
91
  ];
92
92
  }),
@@ -108,25 +108,25 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
108
108
  default: F(() => [
109
109
  a(o, { class: "flex flex-col gap-16 justify-between" }, {
110
110
  default: F(() => [
111
- a(y, {
111
+ a(d, {
112
112
  class: "p-0",
113
113
  title: "Status Info",
114
114
  subtitle: ""
115
115
  }),
116
116
  a(o, { class: "p-0" }, {
117
117
  default: F(() => {
118
- var c, l, d;
118
+ var i, l, y;
119
119
  return [
120
120
  e[12] || (e[12] = r("b", null, "Submission Date", -1)),
121
- k(": " + I((c = n.payoutAccount) != null && c.submissionDate ? u(se)(n.payoutAccount.submissionDate).format(
121
+ T(": " + I((i = n.payoutAccount) != null && i.submissionDate ? u(se)(n.payoutAccount.submissionDate).format(
122
122
  "YYYY-MM-DD HH:mm:ss"
123
123
  ) : "—"), 1),
124
124
  e[13] || (e[13] = r("br", null, null, -1)),
125
125
  e[14] || (e[14] = r("b", null, "Status By", -1)),
126
- k(": " + I(((l = n.payoutAccount) == null ? void 0 : l.statusBy) ?? "—"), 1),
126
+ T(": " + I(((l = n.payoutAccount) == null ? void 0 : l.statusBy) ?? "—"), 1),
127
127
  e[15] || (e[15] = r("br", null, null, -1)),
128
128
  e[16] || (e[16] = r("b", null, "Status Reason", -1)),
129
- k(": " + I(((d = n.payoutAccount) == null ? void 0 : d.statusReason) ?? "—"), 1),
129
+ T(": " + I(((y = n.payoutAccount) == null ? void 0 : y.statusReason) ?? "—"), 1),
130
130
  e[17] || (e[17] = r("br", null, null, -1))
131
131
  ];
132
132
  }),
@@ -148,7 +148,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
148
148
  ], 64);
149
149
  };
150
150
  }
151
- }), ye = { class: "flex gap-16 mb-6" }, fe = { class: "flex gap-16" }, ve = { class: "flex-1" }, be = { class: "flex-1" }, ge = /* @__PURE__ */ U({
151
+ }), ye = { class: "flex gap-16 mb-6" }, fe = { class: "flex gap-16" }, ve = { class: "flex-1" }, be = { class: "flex-1" }, ge = /* @__PURE__ */ k({
152
152
  __name: "Settlement",
153
153
  props: {
154
154
  payoutAccount: {
@@ -158,9 +158,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
158
158
  },
159
159
  setup(n) {
160
160
  return (f, e) => {
161
- var s, v, c, l;
162
- const y = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
163
- return g(), N(G, null, [
161
+ var s, v, i, l;
162
+ const d = p("FmCardHeader"), o = p("FmCardSection"), t = p("FmCard");
163
+ return g(), N(E, null, [
164
164
  r("div", ye, [
165
165
  a(t, {
166
166
  horizontal: "",
@@ -170,20 +170,20 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
170
170
  default: F(() => [
171
171
  a(o, { class: "flex flex-col gap-16 justify-between" }, {
172
172
  default: F(() => [
173
- a(y, {
173
+ a(d, {
174
174
  class: "p-0",
175
175
  title: "Company Info",
176
176
  subtitle: ""
177
177
  }),
178
178
  a(o, { class: "p-0" }, {
179
179
  default: F(() => {
180
- var d, m;
180
+ var y, m;
181
181
  return [
182
182
  e[0] || (e[0] = r("b", null, "Name", -1)),
183
- k(": " + I((d = n.payoutAccount) == null ? void 0 : d.store.companyName), 1),
183
+ T(": " + I((y = n.payoutAccount) == null ? void 0 : y.store.companyName), 1),
184
184
  e[1] || (e[1] = r("br", null, null, -1)),
185
185
  e[2] || (e[2] = r("b", null, "Registration Number", -1)),
186
- k(": " + I((m = n.payoutAccount) == null ? void 0 : m.store.regNo), 1),
186
+ T(": " + I((m = n.payoutAccount) == null ? void 0 : m.store.regNo), 1),
187
187
  e[3] || (e[3] = r("br", null, null, -1))
188
188
  ];
189
189
  }),
@@ -203,23 +203,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
203
203
  default: F(() => [
204
204
  a(o, { class: "flex flex-col gap-16 justify-between" }, {
205
205
  default: F(() => [
206
- a(y, {
206
+ a(d, {
207
207
  class: "p-0",
208
208
  title: "Bank Info",
209
209
  subtitle: ""
210
210
  }),
211
211
  a(o, { class: "p-0" }, {
212
212
  default: F(() => {
213
- var d, m, i, b, x, C;
213
+ var y, m, c, b, x, C;
214
214
  return [
215
215
  e[4] || (e[4] = r("b", null, "Bank", -1)),
216
- k(": " + I((m = (d = n.payoutAccount) == null ? void 0 : d.store.bank) == null ? void 0 : m.name), 1),
216
+ T(": " + I((m = (y = n.payoutAccount) == null ? void 0 : y.store.bank) == null ? void 0 : m.name), 1),
217
217
  e[5] || (e[5] = r("br", null, null, -1)),
218
218
  e[6] || (e[6] = r("b", null, "Name", -1)),
219
- k(": " + I((b = (i = n.payoutAccount) == null ? void 0 : i.store.bank) == null ? void 0 : b.holderName), 1),
219
+ T(": " + I((b = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : b.holderName), 1),
220
220
  e[7] || (e[7] = r("br", null, null, -1)),
221
221
  e[8] || (e[8] = r("b", null, "Number", -1)),
222
- k(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : C.accountNumber), 1)
222
+ T(": " + I((C = (x = n.payoutAccount) == null ? void 0 : x.store.bank) == null ? void 0 : C.accountNumber), 1)
223
223
  ];
224
224
  }),
225
225
  _: 1
@@ -239,9 +239,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
239
239
  "restaurant-id": ((v = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : v.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
240
240
  document: n.payoutAccount.store.ssm
241
241
  }, {
242
- default: F(({ src: d }) => [
242
+ default: F(({ src: y }) => [
243
243
  a(te, {
244
- pdf: d,
244
+ pdf: y,
245
245
  "disable-text-layer": !0,
246
246
  "disable-annotation-layer": !0
247
247
  }, null, 8, ["pdf"])
@@ -253,12 +253,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
253
253
  e[10] || (e[10] = r("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
254
254
  a(L, {
255
255
  "business-id": n.payoutAccount.businessId,
256
- "restaurant-id": ((l = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : l.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
256
+ "restaurant-id": ((l = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : l.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
257
257
  document: n.payoutAccount.store.bankStatement
258
258
  }, {
259
- default: F(({ src: d }) => [
259
+ default: F(({ src: y }) => [
260
260
  a(te, {
261
- pdf: d,
261
+ pdf: y,
262
262
  "disable-text-layer": !0,
263
263
  "disable-annotation-layer": !0
264
264
  }, null, 8, ["pdf"])
@@ -270,17 +270,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
270
270
  ], 64);
271
271
  };
272
272
  }
273
- }), Fe = /* @__PURE__ */ U({
273
+ }), Fe = /* @__PURE__ */ k({
274
274
  __name: "RateInput",
275
275
  props: {
276
276
  data: {},
277
277
  onChange: { type: Function }
278
278
  },
279
279
  setup(n) {
280
- const f = n, e = T(f.data.toString());
281
- return Z(e, (y) => {
282
- f.onChange(parseFloat(y));
283
- }), (y, o) => {
280
+ const f = n, e = U(f.data.toString());
281
+ return Z(e, (d) => {
282
+ f.onChange(parseFloat(d));
283
+ }), (d, o) => {
284
284
  const t = p("FmTextField");
285
285
  return g(), V(t, {
286
286
  inputmode: "decimal",
@@ -288,23 +288,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
288
288
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
289
289
  }, {
290
290
  append: F(() => [...o[1] || (o[1] = [
291
- k("%", -1)
291
+ T("%", -1)
292
292
  ])]),
293
293
  _: 1
294
294
  }, 8, ["modelValue"]);
295
295
  };
296
296
  }
297
- }), xe = /* @__PURE__ */ U({
297
+ }), xe = /* @__PURE__ */ k({
298
298
  __name: "TPlusInput",
299
299
  props: {
300
300
  data: {},
301
301
  onChange: { type: Function }
302
302
  },
303
303
  setup(n) {
304
- const f = n, e = T(f.data.toString());
305
- return Z(e, (y) => {
306
- f.onChange(parseInt(y));
307
- }), (y, o) => {
304
+ const f = n, e = U(f.data.toString());
305
+ return Z(e, (d) => {
306
+ f.onChange(parseInt(d));
307
+ }), (d, o) => {
308
308
  const t = p("FmTextField");
309
309
  return g(), V(t, {
310
310
  inputmode: "numeric",
@@ -313,17 +313,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
313
313
  }, null, 8, ["modelValue"]);
314
314
  };
315
315
  }
316
- }), Ve = /* @__PURE__ */ U({
316
+ }), Ve = /* @__PURE__ */ k({
317
317
  __name: "MinimumFeeInput",
318
318
  props: {
319
319
  data: {},
320
320
  onChange: { type: Function }
321
321
  },
322
322
  setup(n) {
323
- const f = n, e = T(f.data.toString());
324
- return Z(e, (y) => {
325
- f.onChange(parseFloat(y));
326
- }), (y, o) => {
323
+ const f = n, e = U(f.data.toString());
324
+ return Z(e, (d) => {
325
+ f.onChange(parseFloat(d));
326
+ }), (d, o) => {
327
327
  const t = p("FmTextField");
328
328
  return g(), V(t, {
329
329
  inputmode: "numeric",
@@ -331,13 +331,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
331
331
  "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
332
332
  }, {
333
333
  prepend: F(() => [...o[1] || (o[1] = [
334
- k("$", -1)
334
+ T("$", -1)
335
335
  ])]),
336
336
  _: 1
337
337
  }, 8, ["modelValue"]);
338
338
  };
339
339
  }
340
- }), we = { class: "flex gap-16 mt-6" }, Ae = { class: "flex-1" }, Ce = { class: "flex-1" }, ke = { class: "my-6 w-full flex justify-end" }, Ue = { class: "w-[320px]" }, Te = /* @__PURE__ */ U({
340
+ }), we = { class: "flex gap-16 mt-6" }, Ae = { class: "flex-1" }, Ce = { class: "flex-1" }, ke = { class: "my-6 w-full flex justify-end" }, Te = { class: "w-[320px]" }, Ue = /* @__PURE__ */ k({
341
341
  __name: "PaymentStatus",
342
342
  props: {
343
343
  onUpdate: {
@@ -350,17 +350,17 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
350
350
  }
351
351
  },
352
352
  setup(n) {
353
- const f = n, e = T(!1), y = H(), o = re(), t = async (m) => {
353
+ const f = n, e = U(!1), d = H(), o = re(), t = async (m) => {
354
354
  try {
355
- e.value = !0, await f.onUpdate(m), y.open({
355
+ e.value = !0, await f.onUpdate(m), d.open({
356
356
  type: "success",
357
357
  title: "Payout account update succesfully"
358
358
  });
359
- } catch (i) {
360
- y.open({
359
+ } catch (c) {
360
+ d.open({
361
361
  type: "error",
362
362
  title: "Error occurs when updating payout account",
363
- message: q(i)
363
+ message: q(c)
364
364
  });
365
365
  } finally {
366
366
  e.value = !1;
@@ -380,10 +380,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
380
380
  });
381
381
  }, { search: v } = z({
382
382
  search: ""
383
- }), c = B(() => {
384
- const { ssm: m, bank: i, bankStatement: b } = f.payoutAccount.store;
385
- return m && i && i.name && i.accountNumber && i.holderName && b;
386
- }), l = T(""), d = [
383
+ }), i = O(() => {
384
+ const { ssm: m, bank: c, bankStatement: b } = f.payoutAccount.store;
385
+ return m && c && c.name && c.accountNumber && c.holderName && b;
386
+ }), l = U(""), y = [
387
387
  {
388
388
  header: () => "Payment Method",
389
389
  accessorKey: "issuer",
@@ -393,9 +393,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
393
393
  header: () => "Rate",
394
394
  accessorKey: "rate",
395
395
  cell: ({ row: m }) => {
396
- let i = 0;
397
- return m.original.rate && (i = m.original.rate.amount / Math.pow(10, m.original.rate.precision)), K(Fe, {
398
- data: i,
396
+ let c = 0;
397
+ return m.original.rate && (c = m.original.rate.amount / Math.pow(10, m.original.rate.precision)), B(Fe, {
398
+ data: c,
399
399
  onChange: (b) => {
400
400
  const x = f.payoutAccount.methods.at(m.index);
401
401
  x.rate || (x.rate = {
@@ -410,9 +410,9 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
410
410
  header: () => "Minimum Fee",
411
411
  accessorKey: "minimumFee",
412
412
  cell: ({ row: m }) => {
413
- let i = 0;
414
- return m.original.minimumFee && (i = m.original.minimumFee.amount / Math.pow(10, m.original.minimumFee.precision)), K(Ve, {
415
- data: i,
413
+ let c = 0;
414
+ return m.original.minimumFee && (c = m.original.minimumFee.amount / Math.pow(10, m.original.minimumFee.precision)), B(Ve, {
415
+ data: c,
416
416
  onChange: (b) => {
417
417
  const x = f.payoutAccount.methods.at(m.index);
418
418
  x.minimumFee || (x.minimumFee = {
@@ -426,23 +426,23 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
426
426
  {
427
427
  header: () => "T plus",
428
428
  accessorKey: "tPlus",
429
- cell: ({ row: m }) => K(xe, {
429
+ cell: ({ row: m }) => B(xe, {
430
430
  data: m.original.tPlus ?? 0,
431
- onChange: (i) => {
431
+ onChange: (c) => {
432
432
  const b = f.payoutAccount.methods.at(m.index);
433
- b.tPlus = i;
433
+ b.tPlus = c;
434
434
  }
435
435
  })
436
436
  }
437
437
  ];
438
- return (m, i) => {
439
- const b = p("FmRadio"), x = p("FmRadioGroup"), C = p("FmSwitch"), D = p("FmSearch"), R = p("FmTable"), _ = p("FmButton");
440
- return g(), N(G, null, [
438
+ return (m, c) => {
439
+ const b = p("FmRadio"), x = p("FmRadioGroup"), C = p("FmSwitch"), _ = p("FmSearch"), P = p("FmTable"), R = p("FmButton");
440
+ return g(), N(E, null, [
441
441
  r("div", we, [
442
442
  r("div", Ae, [
443
443
  a(x, {
444
444
  modelValue: n.payoutAccount.status,
445
- "onUpdate:modelValue": i[0] || (i[0] = (h) => n.payoutAccount.status = h),
445
+ "onUpdate:modelValue": c[0] || (c[0] = (M) => n.payoutAccount.status = M),
446
446
  label: "Account Status"
447
447
  }, {
448
448
  default: F(() => [
@@ -466,34 +466,34 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
466
466
  r("div", Ce, [
467
467
  a(C, {
468
468
  modelValue: n.payoutAccount.enable,
469
- "onUpdate:modelValue": i[1] || (i[1] = (h) => n.payoutAccount.enable = h),
470
- disabled: !c.value,
469
+ "onUpdate:modelValue": c[1] || (c[1] = (M) => n.payoutAccount.enable = M),
470
+ disabled: !i.value,
471
471
  label: "Enabled",
472
472
  sublabel: "Merchant can use online features such as e-payment, settlement"
473
473
  }, null, 8, ["modelValue", "disabled"])
474
474
  ])
475
475
  ]),
476
- n.payoutAccount.enable ? (g(), N(G, { key: 0 }, [
476
+ n.payoutAccount.enable ? (g(), N(E, { key: 0 }, [
477
477
  r("div", ke, [
478
- r("div", Ue, [
479
- a(D, {
478
+ r("div", Te, [
479
+ a(_, {
480
480
  modelValue: u(v),
481
- "onUpdate:modelValue": i[2] || (i[2] = (h) => j(v) ? v.value = h : null),
481
+ "onUpdate:modelValue": c[2] || (c[2] = (M) => j(v) ? v.value = M : null),
482
482
  placeholder: "Search Method ..."
483
483
  }, null, 8, ["modelValue"])
484
484
  ])
485
485
  ]),
486
- a(R, {
486
+ a(P, {
487
487
  class: "mt-6",
488
488
  modelValue: l.value,
489
- "onUpdate:modelValue": i[3] || (i[3] = (h) => l.value = h),
489
+ "onUpdate:modelValue": c[3] || (c[3] = (M) => l.value = M),
490
490
  "shrink-at": !1,
491
491
  "search-value": u(v),
492
492
  "row-data": n.payoutAccount.methods,
493
- "column-defs": d
493
+ "column-defs": y
494
494
  }, null, 8, ["modelValue", "search-value", "row-data"])
495
- ], 64)) : S("", !0),
496
- a(_, {
495
+ ], 64)) : D("", !0),
496
+ a(R, {
497
497
  class: "w-full mt-6",
498
498
  variant: "primary",
499
499
  label: "Save",
@@ -503,12 +503,12 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
503
503
  ], 64);
504
504
  };
505
505
  }
506
- }), Ie = { class: "flex" }, Se = /* @__PURE__ */ U({
506
+ }), Ie = { class: "flex" }, Se = /* @__PURE__ */ k({
507
507
  __name: "Actions",
508
508
  emits: ["edit", "delete"],
509
509
  setup(n, { emit: f }) {
510
510
  const e = f;
511
- return (y, o) => {
511
+ return (d, o) => {
512
512
  const t = p("FmButton");
513
513
  return g(), N("div", Ie, [
514
514
  a(t, {
@@ -521,7 +521,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
521
521
  ]);
522
522
  };
523
523
  }
524
- }), De = { class: "flex justify-end px-6 pb-6" }, Pe = /* @__PURE__ */ U({
524
+ }), De = { class: "flex justify-end px-6 pb-6" }, _e = /* @__PURE__ */ k({
525
525
  __name: "PaymentChannel",
526
526
  props: {
527
527
  payoutAccount: {
@@ -530,7 +530,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
530
530
  }
531
531
  },
532
532
  setup(n) {
533
- const f = H(), e = n, { isLoading: y, startAsyncCall: o } = Y(), t = T([]);
533
+ const f = H(), e = n, { isLoading: d, startAsyncCall: o } = Y(), t = U([]);
534
534
  function s() {
535
535
  o(async () => {
536
536
  t.value = await $.getChannels(e.payoutAccount._id);
@@ -544,27 +544,27 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
544
544
  type: "success",
545
545
  title: "Payout account channels update succesfully"
546
546
  });
547
- } catch (d) {
547
+ } catch (y) {
548
548
  f.open({
549
549
  type: "error",
550
550
  title: "Error occurs when updating payout account channels",
551
- message: q(d)
551
+ message: q(y)
552
552
  });
553
553
  }
554
554
  });
555
555
  }
556
- function c() {
556
+ function i() {
557
557
  o(async () => {
558
558
  try {
559
559
  await $.resetChannels(e.payoutAccount._id), t.value = await $.getChannels(e.payoutAccount._id), f.open({
560
560
  type: "success",
561
561
  title: "Payout account channels reset succesfully"
562
562
  });
563
- } catch (d) {
563
+ } catch (y) {
564
564
  f.open({
565
565
  type: "error",
566
566
  title: "Error occurs when reset payout account channels",
567
- message: q(d)
567
+ message: q(y)
568
568
  });
569
569
  }
570
570
  });
@@ -581,37 +581,37 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
581
581
  {
582
582
  header: () => "Display",
583
583
  accessorKey: "icon",
584
- cell: ({ row: d }) => K("img", { src: d.original.icon, width: 32, height: 32 })
584
+ cell: ({ row: y }) => B("img", { src: y.original.icon, width: 32, height: 32 })
585
585
  },
586
586
  {
587
587
  header: () => "Label",
588
588
  accessorKey: "label",
589
- cell: ({ row: d }) => K(ie.FmTextField, {
590
- modelValue: d.original.label,
591
- "onUpdate:modelValue": (m) => d.original.label = m
589
+ cell: ({ row: y }) => B(ie.FmTextField, {
590
+ modelValue: y.original.label,
591
+ "onUpdate:modelValue": (m) => y.original.label = m
592
592
  })
593
593
  },
594
594
  {
595
595
  id: "actions",
596
596
  header: () => "Actions",
597
- cell: ({ row: d }) => K(Se, {
598
- onDelete: () => t.value.splice(d.index, 1)
597
+ cell: ({ row: y }) => B(Se, {
598
+ onDelete: () => t.value.splice(y.index, 1)
599
599
  })
600
600
  }
601
601
  ];
602
- return (d, m) => {
603
- const i = p("FmButton"), b = p("FmTable");
604
- return g(), N(G, null, [
602
+ return (y, m) => {
603
+ const c = p("FmButton"), b = p("FmTable");
604
+ return g(), N(E, null, [
605
605
  r("div", De, [
606
- a(i, {
606
+ a(c, {
607
607
  class: "mx-4",
608
608
  variant: "destructive",
609
609
  size: "md",
610
610
  icon: "history",
611
611
  label: "Reset",
612
- onClick: c
612
+ onClick: i
613
613
  }),
614
- a(i, {
614
+ a(c, {
615
615
  variant: "primary",
616
616
  size: "md",
617
617
  icon: "save",
@@ -620,7 +620,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
620
620
  })
621
621
  ]),
622
622
  a(b, {
623
- loading: u(y),
623
+ loading: u(d),
624
624
  "row-data": t.value,
625
625
  "column-defs": l,
626
626
  "shrink-at": !1
@@ -628,7 +628,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
628
628
  ], 64);
629
629
  };
630
630
  }
631
- }), Re = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ U({
631
+ }), Pe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ k({
632
632
  __name: "FiuuGateway",
633
633
  props: {
634
634
  gateway: {
@@ -645,15 +645,15 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
645
645
  }
646
646
  },
647
647
  setup(n) {
648
- var y;
649
- const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
648
+ var d;
649
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
650
650
  merchantId: "",
651
651
  verifyKey: "",
652
652
  secretKey: ""
653
653
  });
654
654
  return (o, t) => {
655
- const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
656
- return g(), V(c, {
655
+ const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
656
+ return g(), V(i, {
657
657
  ref: "form",
658
658
  class: "flex flex-col gap-16",
659
659
  onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
@@ -677,14 +677,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
677
677
  label: "Secret Key",
678
678
  rules: u(w)(u(A).string())
679
679
  }, null, 8, ["modelValue", "rules"]),
680
- r("div", Re, [
680
+ r("div", Pe, [
681
681
  n.gateway ? (g(), V(v, {
682
682
  key: 0,
683
683
  class: "flex-1",
684
684
  variant: "secondary",
685
685
  label: "Delete",
686
686
  onclick: () => n.onDelete()
687
- }, null, 8, ["onclick"])) : S("", !0),
687
+ }, null, 8, ["onclick"])) : D("", !0),
688
688
  a(v, {
689
689
  type: "submit",
690
690
  class: "flex-1",
@@ -697,7 +697,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
697
697
  }, 512);
698
698
  };
699
699
  }
700
- }), Ne = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ U({
700
+ }), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ k({
701
701
  __name: "MacauPassGateway",
702
702
  props: {
703
703
  gateway: {
@@ -714,8 +714,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
714
714
  }
715
715
  },
716
716
  setup(n) {
717
- var y;
718
- const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
717
+ var d;
718
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
719
719
  merchantId: "",
720
720
  merchantName: "",
721
721
  merchantCategoryCode: "",
@@ -723,8 +723,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
723
723
  storeName: ""
724
724
  });
725
725
  return (o, t) => {
726
- const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
727
- return g(), V(c, {
726
+ const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
727
+ return g(), V(i, {
728
728
  ref: "form",
729
729
  class: "flex flex-col gap-16",
730
730
  onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
@@ -767,7 +767,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
767
767
  variant: "secondary",
768
768
  label: "Delete",
769
769
  onclick: () => n.onDelete()
770
- }, null, 8, ["onclick"])) : S("", !0),
770
+ }, null, 8, ["onclick"])) : D("", !0),
771
771
  a(v, {
772
772
  type: "submit",
773
773
  class: "flex-1",
@@ -780,7 +780,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
780
780
  }, 512);
781
781
  };
782
782
  }
783
- }), Me = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ U({
783
+ }), he = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ k({
784
784
  __name: "DigioGateway",
785
785
  props: {
786
786
  gateway: {
@@ -797,14 +797,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
797
797
  }
798
798
  },
799
799
  setup(n) {
800
- var y;
801
- const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
800
+ var d;
801
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
802
802
  merchantId: "",
803
803
  cardMerchantId: ""
804
804
  });
805
805
  return (o, t) => {
806
- const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
807
- return g(), V(c, {
806
+ const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
807
+ return g(), V(i, {
808
808
  ref: "form",
809
809
  class: "flex flex-col gap-16",
810
810
  onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
@@ -822,14 +822,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
822
822
  label: "Card Merchant ID",
823
823
  rules: u(w)(u(A).string())
824
824
  }, null, 8, ["modelValue", "rules"]),
825
- r("div", Me, [
825
+ r("div", he, [
826
826
  n.gateway ? (g(), V(v, {
827
827
  key: 0,
828
828
  class: "flex-1",
829
829
  variant: "secondary",
830
830
  label: "Delete",
831
831
  onclick: () => n.onDelete()
832
- }, null, 8, ["onclick"])) : S("", !0),
832
+ }, null, 8, ["onclick"])) : D("", !0),
833
833
  a(v, {
834
834
  type: "submit",
835
835
  class: "flex-1",
@@ -842,7 +842,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
842
842
  }, 512);
843
843
  };
844
844
  }
845
- }), Ee = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */ U({
845
+ }), Ge = { class: "flex mt-6 space-x-6" }, Ee = /* @__PURE__ */ k({
846
846
  __name: "AdyenGateway",
847
847
  props: {
848
848
  gateway: {
@@ -859,8 +859,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
859
859
  }
860
860
  },
861
861
  setup(n) {
862
- var y;
863
- const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
862
+ var d;
863
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
864
864
  merchantAccount: "",
865
865
  username: "",
866
866
  apiKey: "",
@@ -869,8 +869,8 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
869
869
  hmacKey: ""
870
870
  });
871
871
  return (o, t) => {
872
- const s = p("FmTextField"), v = p("FmButton"), c = p("FmForm");
873
- return g(), V(c, {
872
+ const s = p("FmTextField"), v = p("FmButton"), i = p("FmForm");
873
+ return g(), V(i, {
874
874
  ref: "form",
875
875
  class: "flex flex-col gap-16",
876
876
  onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
@@ -911,14 +911,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
911
911
  "onUpdate:modelValue": t[5] || (t[5] = (l) => e.value.hmacKey = l),
912
912
  label: "HMac Key"
913
913
  }, null, 8, ["modelValue"]),
914
- r("div", Ee, [
914
+ r("div", Ge, [
915
915
  n.gateway ? (g(), V(v, {
916
916
  key: 0,
917
917
  class: "flex-1",
918
918
  variant: "secondary",
919
919
  label: "Delete",
920
920
  onclick: () => n.onDelete()
921
- }, null, 8, ["onclick"])) : S("", !0),
921
+ }, null, 8, ["onclick"])) : D("", !0),
922
922
  a(v, {
923
923
  type: "submit",
924
924
  class: "flex-1",
@@ -931,7 +931,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
931
931
  }, 512);
932
932
  };
933
933
  }
934
- }), Be = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ U({
934
+ }), Oe = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ k({
935
935
  __name: "KsherGateway",
936
936
  props: {
937
937
  gateway: {
@@ -948,13 +948,13 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
948
948
  }
949
949
  },
950
950
  setup(n) {
951
- var y;
952
- const e = T(((y = n.gateway) == null ? void 0 : y.config) || {
951
+ var d;
952
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
953
953
  appId: "",
954
954
  privateKey: ""
955
955
  });
956
956
  return (o, t) => {
957
- const s = p("FmTextField"), v = p("FmTextarea"), c = p("FmButton"), l = p("FmForm");
957
+ const s = p("FmTextField"), v = p("FmTextarea"), i = p("FmButton"), l = p("FmForm");
958
958
  return g(), V(l, {
959
959
  ref: "form",
960
960
  class: "flex flex-col gap-16",
@@ -963,26 +963,26 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
963
963
  default: F(() => [
964
964
  a(s, {
965
965
  modelValue: e.value.appId,
966
- "onUpdate:modelValue": t[0] || (t[0] = (d) => e.value.appId = d),
966
+ "onUpdate:modelValue": t[0] || (t[0] = (y) => e.value.appId = y),
967
967
  label: "App ID",
968
968
  rules: u(w)(u(A).string())
969
969
  }, null, 8, ["modelValue", "rules"]),
970
970
  a(v, {
971
971
  modelValue: e.value.privateKey,
972
- "onUpdate:modelValue": t[1] || (t[1] = (d) => e.value.privateKey = d),
972
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => e.value.privateKey = y),
973
973
  label: "Private Key",
974
974
  placeholder: "Paste your private key including BEGIN and END markers",
975
975
  rules: u(w)(u(A).string())
976
976
  }, null, 8, ["modelValue", "rules"]),
977
- r("div", Be, [
978
- n.gateway ? (g(), V(c, {
977
+ r("div", Oe, [
978
+ n.gateway ? (g(), V(i, {
979
979
  key: 0,
980
980
  class: "flex-1",
981
981
  variant: "secondary",
982
982
  label: "Delete",
983
983
  onclick: () => n.onDelete()
984
- }, null, 8, ["onclick"])) : S("", !0),
985
- a(c, {
984
+ }, null, 8, ["onclick"])) : D("", !0),
985
+ a(i, {
986
986
  type: "submit",
987
987
  class: "flex-1",
988
988
  variant: "primary",
@@ -994,13 +994,56 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
994
994
  }, 512);
995
995
  };
996
996
  }
997
- }), Oe = {
997
+ }), Ke = /* @__PURE__ */ k({
998
+ __name: "TyroGateway",
999
+ props: {
1000
+ gateway: {
1001
+ type: Object,
1002
+ required: !0
1003
+ },
1004
+ onUpdate: {
1005
+ type: Function,
1006
+ required: !0
1007
+ },
1008
+ onDelete: {
1009
+ type: Function,
1010
+ required: !0
1011
+ }
1012
+ },
1013
+ setup(n) {
1014
+ var d;
1015
+ const e = U(
1016
+ ((d = n.gateway) == null ? void 0 : d.config) || {
1017
+ locationId: ""
1018
+ }
1019
+ );
1020
+ return (o, t) => {
1021
+ const s = p("FmTextField"), v = p("FmForm");
1022
+ return g(), V(v, {
1023
+ ref: "form",
1024
+ class: "flex flex-col gap-16",
1025
+ onValidationSuccess: t[1] || (t[1] = () => n.onUpdate(e.value))
1026
+ }, {
1027
+ default: F(() => [
1028
+ a(s, {
1029
+ modelValue: e.value.locationId,
1030
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.value.locationId = i),
1031
+ label: "Location ID",
1032
+ readonly: !0,
1033
+ rules: u(w)(u(A).string())
1034
+ }, null, 8, ["modelValue", "rules"])
1035
+ ]),
1036
+ _: 1
1037
+ }, 512);
1038
+ };
1039
+ }
1040
+ }), qe = {
998
1041
  key: 0,
999
1042
  className: "mt-1 my-6 text-gray-600"
1000
- }, qe = {
1043
+ }, je = {
1001
1044
  key: 1,
1002
1045
  class: "flex items-center justify-center min-h-[80vh]"
1003
- }, je = /* @__PURE__ */ U({
1046
+ }, Ye = /* @__PURE__ */ k({
1004
1047
  __name: "PaymentGateway",
1005
1048
  props: {
1006
1049
  payoutAccount: {
@@ -1009,120 +1052,126 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1009
1052
  }
1010
1053
  },
1011
1054
  setup(n) {
1012
- const f = ae().currentCountry, e = f.value, y = H(), { isLoading: o, startAsyncCall: t } = Y(), { gatewayTab: s } = z({
1055
+ const f = ae().currentCountry, e = f.value, d = H(), { isLoading: o, startAsyncCall: t } = Y(), { gatewayTab: s } = z({
1013
1056
  gatewayTab: ""
1014
- }), v = n, c = [
1057
+ }), v = n, i = [
1015
1058
  {
1016
1059
  label: "Fiuu",
1017
1060
  value: "RAZER_MERCHANT_SERVICE",
1018
- render: _e,
1019
- region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
1061
+ render: Re,
1062
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1020
1063
  },
1021
1064
  {
1022
1065
  label: "Macau Pass",
1023
1066
  value: "MACAU_PASS",
1024
- render: he,
1025
- region: [P.F_COUNTRY.enum.MO]
1067
+ render: Me,
1068
+ region: [S.F_COUNTRY.enum.MO]
1026
1069
  },
1027
1070
  {
1028
1071
  label: "Digio",
1029
1072
  value: "DIGIO",
1030
1073
  render: $e,
1031
- region: [P.F_COUNTRY.enum.TH]
1074
+ region: [S.F_COUNTRY.enum.TH]
1032
1075
  },
1033
1076
  {
1034
1077
  label: "Ksher",
1035
1078
  value: "KSHER",
1036
- render: Ke,
1037
- region: [P.F_COUNTRY.enum.TH]
1079
+ render: Be,
1080
+ region: [S.F_COUNTRY.enum.TH]
1038
1081
  },
1039
1082
  {
1040
1083
  label: "Adyen",
1041
1084
  value: "ADYEN",
1042
- render: Ge,
1043
- region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
1085
+ render: Ee,
1086
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1087
+ },
1088
+ {
1089
+ label: "Tyro",
1090
+ value: "TYRO",
1091
+ render: Ke,
1092
+ region: [S.F_COUNTRY.enum.AU]
1044
1093
  }
1045
- ], l = T(
1094
+ ], l = U(
1046
1095
  v.payoutAccount.gateways ?? []
1047
- ), d = B(() => c.find((C) => C.value === s.value)), m = B(() => c.filter(
1048
- (C) => C.region.includes(f.value ?? P.F_COUNTRY.enum.MY)
1096
+ ), y = O(() => i.find((C) => C.value === s.value)), m = O(() => i.filter(
1097
+ (C) => C.region.includes(f.value ?? S.F_COUNTRY.enum.MY)
1049
1098
  ));
1050
- async function i(C) {
1099
+ async function c(C) {
1051
1100
  await t(async () => {
1052
1101
  try {
1053
- await $.updateGateway(v.payoutAccount._id, C), y.open({
1102
+ await $.updateGateway(v.payoutAccount._id, C), d.open({
1054
1103
  type: "success",
1055
1104
  title: "Payout account gateways update succesfully"
1056
1105
  }), b.value = C.length === 0;
1057
- } catch (D) {
1058
- y.open({
1106
+ } catch (_) {
1107
+ d.open({
1059
1108
  type: "error",
1060
1109
  title: "Error occurs when updating payout account gateways",
1061
- message: q(D)
1110
+ message: q(_)
1062
1111
  });
1063
1112
  }
1064
1113
  });
1065
1114
  }
1066
- const b = T((v.payoutAccount.gateways ?? []).length === 0), x = B(() => e !== "MY" || !b.value);
1067
- return (C, D) => {
1068
- var O;
1069
- const R = p("FmCircularProgress"), _ = p("FmSwitch"), h = p("FmTabs");
1070
- return g(), N(G, null, [
1071
- u(e) ? (g(), N("p", Oe, [...D[2] || (D[2] = [
1115
+ const b = U((v.payoutAccount.gateways ?? []).length === 0), x = O(() => e !== "MY" || !b.value);
1116
+ return (C, _) => {
1117
+ var K;
1118
+ const P = p("FmCircularProgress"), R = p("FmSwitch"), M = p("FmTabs");
1119
+ return g(), N(E, null, [
1120
+ u(e) ? (g(), N("p", qe, [..._[2] || (_[2] = [
1072
1121
  r("b", null, "Note: ", -1),
1073
- k(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
1074
- ])])) : S("", !0),
1075
- u(o) ? (g(), N("div", qe, [
1076
- a(R, { size: "xxl" })
1077
- ])) : (g(), N(G, { key: 2 }, [
1078
- u(e) === "MY" ? (g(), V(_, {
1122
+ T(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
1123
+ ])])) : D("", !0),
1124
+ u(o) ? (g(), N("div", je, [
1125
+ a(P, { size: "xxl" })
1126
+ ])) : (g(), N(E, { key: 2 }, [
1127
+ u(e) === "MY" ? (g(), V(R, {
1079
1128
  key: 0,
1080
1129
  modelValue: b.value,
1081
- "onUpdate:modelValue": D[0] || (D[0] = (M) => b.value = M),
1130
+ "onUpdate:modelValue": _[0] || (_[0] = (h) => b.value = h),
1082
1131
  style: { "padding-bottom": "12px" },
1083
1132
  label: "Use FeedMe's Fiuu Account?"
1084
- }, null, 8, ["modelValue"])) : S("", !0),
1085
- x.value ? (g(), V(h, {
1133
+ }, null, 8, ["modelValue"])) : D("", !0),
1134
+ x.value ? (g(), V(M, {
1086
1135
  key: 1,
1087
1136
  "model-value": u(s),
1088
- "onUpdate:modelValue": D[1] || (D[1] = (M) => j(s) ? s.value = M : null),
1137
+ "onUpdate:modelValue": _[1] || (_[1] = (h) => j(s) ? s.value = h : null),
1089
1138
  class: "mb-6",
1090
1139
  items: m.value
1091
- }, null, 8, ["model-value", "items"])) : S("", !0),
1092
- x.value && u(s) ? (g(), V(J((O = d.value) == null ? void 0 : O.render), Q(W({ key: 2 }, {
1140
+ }, null, 8, ["model-value", "items"])) : D("", !0),
1141
+ x.value && u(s) ? (g(), V(J((K = y.value) == null ? void 0 : K.render), Q(W({ key: 2 }, {
1093
1142
  gateway: l.value.find(
1094
- (M) => {
1095
- var E;
1096
- return M.paymentGateway === ((E = d.value) == null ? void 0 : E.value);
1143
+ (h) => {
1144
+ var G;
1145
+ return h.paymentGateway === ((G = y.value) == null ? void 0 : G.value);
1097
1146
  }
1098
1147
  ),
1099
1148
  onDelete: async () => {
1100
1149
  l.value = l.value.filter(
1101
- (M) => {
1102
- var E;
1103
- return M.paymentGateway !== ((E = d.value) == null ? void 0 : E.value);
1150
+ (h) => {
1151
+ var G;
1152
+ return h.paymentGateway !== ((G = y.value) == null ? void 0 : G.value);
1104
1153
  }
1105
- ), i(l.value);
1154
+ ), c(l.value);
1106
1155
  },
1107
- onUpdate: (M) => {
1156
+ onUpdate: (h) => {
1108
1157
  var X;
1109
- let E = l.value.find(
1158
+ let G = l.value.find(
1110
1159
  (le) => {
1111
1160
  var ee;
1112
- return le.paymentGateway === ((ee = d.value) == null ? void 0 : ee.value);
1161
+ return le.paymentGateway === ((ee = y.value) == null ? void 0 : ee.value);
1113
1162
  }
1114
1163
  );
1115
- E ? E.config = M : l.value.push({
1116
- paymentGateway: (X = d.value) == null ? void 0 : X.value,
1117
- config: M
1118
- }), i(l.value);
1164
+ G ? G.config = h : l.value.push({
1165
+ paymentGateway: (X = y.value) == null ? void 0 : X.value,
1166
+ config: h
1167
+ }), c(l.value);
1119
1168
  }
1120
- })), null, 16)) : S("", !0)
1169
+ })), null, 16)) : D("", !0)
1121
1170
  ], 64))
1122
1171
  ], 64);
1123
1172
  };
1124
1173
  }
1125
- }), Ye = { class: "flex mt-6 space-x-6" }, ze = /* @__PURE__ */ U({
1174
+ }), ze = { class: "flex mt-6 space-x-6" }, He = /* @__PURE__ */ k({
1126
1175
  __name: "GooglePayToken",
1127
1176
  props: {
1128
1177
  gateway: {
@@ -1139,7 +1188,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1139
1188
  }
1140
1189
  },
1141
1190
  setup(n) {
1142
- const e = T(
1191
+ const e = U(
1143
1192
  n.gateway || {
1144
1193
  type: "googlePay",
1145
1194
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -1149,7 +1198,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1149
1198
  }
1150
1199
  }
1151
1200
  );
1152
- return (y, o) => {
1201
+ return (d, o) => {
1153
1202
  const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
1154
1203
  return g(), V(v, {
1155
1204
  ref: "form",
@@ -1159,33 +1208,33 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1159
1208
  default: F(() => [
1160
1209
  a(t, {
1161
1210
  modelValue: e.value.gateway,
1162
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e.value.gateway = c),
1211
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => e.value.gateway = i),
1163
1212
  label: "Gateway",
1164
1213
  disabled: !0,
1165
1214
  rules: u(w)(u(A).string())
1166
1215
  }, null, 8, ["modelValue", "rules"]),
1167
1216
  a(t, {
1168
1217
  modelValue: e.value.config.gateway,
1169
- "onUpdate:modelValue": o[1] || (o[1] = (c) => e.value.config.gateway = c),
1218
+ "onUpdate:modelValue": o[1] || (o[1] = (i) => e.value.config.gateway = i),
1170
1219
  label: "Gateway ID",
1171
1220
  disabled: !0,
1172
1221
  rules: u(w)(u(A).string())
1173
1222
  }, null, 8, ["modelValue", "rules"]),
1174
1223
  a(t, {
1175
1224
  modelValue: e.value.config.gatewayMerchantId,
1176
- "onUpdate:modelValue": o[2] || (o[2] = (c) => e.value.config.gatewayMerchantId = c),
1225
+ "onUpdate:modelValue": o[2] || (o[2] = (i) => e.value.config.gatewayMerchantId = i),
1177
1226
  label: "Gateway Merchant ID",
1178
1227
  disabled: !0,
1179
1228
  rules: u(w)(u(A).string())
1180
1229
  }, null, 8, ["modelValue", "rules"]),
1181
- r("div", Ye, [
1230
+ r("div", ze, [
1182
1231
  n.gateway ? (g(), V(s, {
1183
1232
  key: 0,
1184
1233
  class: "flex-1",
1185
1234
  variant: "secondary",
1186
1235
  label: "Delete",
1187
1236
  onclick: () => n.onDelete()
1188
- }, null, 8, ["onclick"])) : S("", !0),
1237
+ }, null, 8, ["onclick"])) : D("", !0),
1189
1238
  a(s, {
1190
1239
  type: "submit",
1191
1240
  class: "flex-1",
@@ -1198,7 +1247,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1198
1247
  }, 512);
1199
1248
  };
1200
1249
  }
1201
- }), He = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ U({
1250
+ }), Le = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ k({
1202
1251
  __name: "ApplePayToken",
1203
1252
  props: {
1204
1253
  gateway: {
@@ -1215,7 +1264,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1215
1264
  }
1216
1265
  },
1217
1266
  setup(n) {
1218
- const e = T(
1267
+ const e = U(
1219
1268
  n.gateway || {
1220
1269
  type: "applePay",
1221
1270
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -1224,7 +1273,7 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1224
1273
  }
1225
1274
  }
1226
1275
  );
1227
- return (y, o) => {
1276
+ return (d, o) => {
1228
1277
  const t = p("FmTextField"), s = p("FmButton"), v = p("FmForm");
1229
1278
  return g(), V(v, {
1230
1279
  ref: "form",
@@ -1234,26 +1283,26 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1234
1283
  default: F(() => [
1235
1284
  a(t, {
1236
1285
  modelValue: e.value.gateway,
1237
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e.value.gateway = c),
1286
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => e.value.gateway = i),
1238
1287
  label: "Gateway",
1239
1288
  disabled: !0,
1240
1289
  rules: u(w)(u(A).string())
1241
1290
  }, null, 8, ["modelValue", "rules"]),
1242
1291
  a(t, {
1243
1292
  modelValue: e.value.config.merchantId,
1244
- "onUpdate:modelValue": o[1] || (o[1] = (c) => e.value.config.merchantId = c),
1293
+ "onUpdate:modelValue": o[1] || (o[1] = (i) => e.value.config.merchantId = i),
1245
1294
  label: "Merchant ID",
1246
1295
  disabled: !0,
1247
1296
  rules: u(w)(u(A).string())
1248
1297
  }, null, 8, ["modelValue", "rules"]),
1249
- r("div", He, [
1298
+ r("div", Le, [
1250
1299
  n.gateway ? (g(), V(s, {
1251
1300
  key: 0,
1252
1301
  class: "flex-1",
1253
1302
  variant: "secondary",
1254
1303
  label: "Delete",
1255
1304
  onclick: () => n.onDelete()
1256
- }, null, 8, ["onclick"])) : S("", !0),
1305
+ }, null, 8, ["onclick"])) : D("", !0),
1257
1306
  a(s, {
1258
1307
  type: "submit",
1259
1308
  class: "flex-1",
@@ -1266,10 +1315,10 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1266
1315
  }, 512);
1267
1316
  };
1268
1317
  }
1269
- }), Ze = {
1318
+ }), Je = {
1270
1319
  key: 0,
1271
1320
  class: "flex items-center justify-center min-h-[80vh]"
1272
- }, Je = /* @__PURE__ */ U({
1321
+ }, Qe = /* @__PURE__ */ k({
1273
1322
  __name: "TokenGateway",
1274
1323
  props: {
1275
1324
  payoutAccount: {
@@ -1278,30 +1327,30 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1278
1327
  }
1279
1328
  },
1280
1329
  setup(n) {
1281
- const f = ae().currentCountry, e = H(), { isLoading: y, startAsyncCall: o } = Y(), { tokenTab: t } = z({
1330
+ const f = ae().currentCountry, e = H(), { isLoading: d, startAsyncCall: o } = Y(), { tokenTab: t } = z({
1282
1331
  tokenTab: ""
1283
1332
  }), s = n, v = [
1284
1333
  {
1285
1334
  label: "Google Pay",
1286
1335
  value: "googlePay",
1287
1336
  icon: "android",
1288
- render: ze,
1289
- region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
1337
+ render: He,
1338
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1290
1339
  },
1291
1340
  {
1292
1341
  label: "Apple Pay",
1293
1342
  value: "applePay",
1294
1343
  icon: "iOS",
1295
- render: Le,
1296
- region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
1344
+ render: Ze,
1345
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1297
1346
  }
1298
- ], c = T(s.payoutAccount.tokens ?? []), l = B(() => v.find((i) => i.value === t.value)), d = B(() => v.filter(
1299
- (i) => i.region.includes(f.value ?? P.F_COUNTRY.enum.MY)
1347
+ ], i = U(s.payoutAccount.tokens ?? []), l = O(() => v.find((c) => c.value === t.value)), y = O(() => v.filter(
1348
+ (c) => c.region.includes(f.value ?? S.F_COUNTRY.enum.MY)
1300
1349
  ));
1301
- async function m(i) {
1350
+ async function m(c) {
1302
1351
  await o(async () => {
1303
1352
  try {
1304
- await $.updateTokens(s.payoutAccount._id, i), e.open({
1353
+ await $.updateTokens(s.payoutAccount._id, c), e.open({
1305
1354
  type: "success",
1306
1355
  title: "Payout account tokens gateway update succesfully"
1307
1356
  });
@@ -1314,50 +1363,50 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1314
1363
  }
1315
1364
  });
1316
1365
  }
1317
- return (i, b) => {
1318
- var D;
1366
+ return (c, b) => {
1367
+ var _;
1319
1368
  const x = p("FmCircularProgress"), C = p("FmTabs");
1320
- return g(), N(G, null, [
1369
+ return g(), N(E, null, [
1321
1370
  b[1] || (b[1] = r("p", { className: "mt-1 my-6 text-gray-600" }, [
1322
1371
  r("b", null, "Note: "),
1323
- k(" 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. "),
1372
+ T(" 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. "),
1324
1373
  r("br"),
1325
1374
  r("br"),
1326
1375
  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. `),
1327
1376
  r("br")
1328
1377
  ], -1)),
1329
- u(y) ? (g(), N("div", Ze, [
1378
+ u(d) ? (g(), N("div", Je, [
1330
1379
  a(x, { size: "xxl" })
1331
1380
  ])) : (g(), V(C, {
1332
1381
  key: 1,
1333
1382
  "model-value": u(t),
1334
- "onUpdate:modelValue": b[0] || (b[0] = (R) => j(t) ? t.value = R : null),
1383
+ "onUpdate:modelValue": b[0] || (b[0] = (P) => j(t) ? t.value = P : null),
1335
1384
  class: "mb-6 mt-6",
1336
- items: d.value
1385
+ items: y.value
1337
1386
  }, null, 8, ["model-value", "items"])),
1338
- u(t) ? (g(), V(J((D = l.value) == null ? void 0 : D.render), Q(W({ key: 2 }, {
1339
- gateway: c.value.find((R) => {
1340
- var _;
1341
- return R.type === ((_ = l.value) == null ? void 0 : _.value);
1387
+ u(t) ? (g(), V(J((_ = l.value) == null ? void 0 : _.render), Q(W({ key: 2 }, {
1388
+ gateway: i.value.find((P) => {
1389
+ var R;
1390
+ return P.type === ((R = l.value) == null ? void 0 : R.value);
1342
1391
  }),
1343
1392
  onDelete: async () => {
1344
- c.value = c.value.filter((R) => {
1345
- var _;
1346
- return R.type !== ((_ = l.value) == null ? void 0 : _.value);
1347
- }), m(c.value);
1393
+ i.value = i.value.filter((P) => {
1394
+ var R;
1395
+ return P.type !== ((R = l.value) == null ? void 0 : R.value);
1396
+ }), m(i.value);
1348
1397
  },
1349
- onUpdate: (R) => {
1350
- let _ = c.value.find((h) => {
1351
- var O;
1352
- return h.type === ((O = l.value) == null ? void 0 : O.value);
1398
+ onUpdate: (P) => {
1399
+ let R = i.value.find((M) => {
1400
+ var K;
1401
+ return M.type === ((K = l.value) == null ? void 0 : K.value);
1353
1402
  });
1354
- _ ? _.config = R : c.value.push(R), m(c.value);
1403
+ R ? R.config = P : i.value.push(P), m(i.value);
1355
1404
  }
1356
- })), null, 16)) : S("", !0)
1405
+ })), null, 16)) : D("", !0)
1357
1406
  ], 64);
1358
1407
  };
1359
1408
  }
1360
- }), mt = /* @__PURE__ */ U({
1409
+ }), dt = /* @__PURE__ */ k({
1361
1410
  __name: "PayoutAccountSetting",
1362
1411
  props: {
1363
1412
  accountId: {
@@ -1368,14 +1417,14 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1368
1417
  setup(n) {
1369
1418
  const f = n, { tab: e } = z({
1370
1419
  tab: "information"
1371
- }), { isLoading: y, startAsyncCall: o } = Y(!0), t = ue(), s = T();
1420
+ }), { isLoading: d, startAsyncCall: o } = Y(!0), t = ue(), s = U();
1372
1421
  async function v(m) {
1373
1422
  await $.updateById(
1374
1423
  f.accountId,
1375
1424
  m
1376
1425
  ), s.value = await $.readById(f.accountId);
1377
1426
  }
1378
- const c = [
1427
+ const i = [
1379
1428
  {
1380
1429
  label: "Information",
1381
1430
  value: "information",
@@ -1392,25 +1441,25 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1392
1441
  label: "MDR Status",
1393
1442
  value: "payment",
1394
1443
  icon: "account_box",
1395
- render: Te
1444
+ render: Ue
1396
1445
  },
1397
1446
  {
1398
1447
  label: "Online Gateways",
1399
1448
  icon: "assured_workload",
1400
1449
  value: "gateways",
1401
- render: je
1450
+ render: Ye
1402
1451
  },
1403
1452
  {
1404
1453
  label: "Token Gateways",
1405
1454
  value: "tokens",
1406
1455
  icon: "wallet",
1407
- render: Je
1456
+ render: Qe
1408
1457
  },
1409
1458
  {
1410
1459
  label: "Online Channels",
1411
1460
  icon: "shopping_cart",
1412
1461
  value: "channels",
1413
- render: Pe
1462
+ render: _e
1414
1463
  }
1415
1464
  ];
1416
1465
  function l() {
@@ -1419,29 +1468,29 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1419
1468
  });
1420
1469
  }
1421
1470
  ne(l);
1422
- const d = B(() => {
1423
- const m = c.reduce((i, b) => i || (b.children ? b.children.find((x) => x.value === e.value) || null : b.value === e.value ? b : null), null);
1471
+ const y = O(() => {
1472
+ const m = i.reduce((c, b) => c || (b.children ? b.children.find((x) => x.value === e.value) || null : b.value === e.value ? b : null), null);
1424
1473
  return m == null ? void 0 : m.render;
1425
1474
  });
1426
- return (m, i) => {
1475
+ return (m, c) => {
1427
1476
  var x;
1428
1477
  const b = p("FmTabs");
1429
1478
  return g(), V(oe, {
1430
1479
  title: `Payout Account (${(x = s.value) == null ? void 0 : x._id})`,
1431
- loading: u(y),
1480
+ loading: u(d),
1432
1481
  onBack: u(t).back
1433
1482
  }, {
1434
1483
  default: F(() => [
1435
1484
  a(b, {
1436
1485
  "model-value": u(e),
1437
- "onUpdate:modelValue": i[0] || (i[0] = (C) => j(e) ? e.value = C : null),
1486
+ "onUpdate:modelValue": c[0] || (c[0] = (C) => j(e) ? e.value = C : null),
1438
1487
  class: "mb-6",
1439
- items: c
1488
+ items: i
1440
1489
  }, null, 8, ["model-value"]),
1441
- u(e) ? (g(), V(J(d.value), Q(W({ key: 0 }, {
1490
+ u(e) ? (g(), V(J(y.value), Q(W({ key: 0 }, {
1442
1491
  payoutAccount: s.value,
1443
1492
  onUpdate: v
1444
- })), null, 16)) : S("", !0)
1493
+ })), null, 16)) : D("", !0)
1445
1494
  ]),
1446
1495
  _: 1
1447
1496
  }, 8, ["title", "loading", "onBack"]);
@@ -1449,5 +1498,5 @@ const me = { class: "flex gap-16 mb-6" }, de = { class: "flex gap-16 mb-6" }, pe
1449
1498
  }
1450
1499
  });
1451
1500
  export {
1452
- mt as default
1501
+ dt as default
1453
1502
  };