@feedmepos/mf-payment 1.2.14 → 1.2.16

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 (60) hide show
  1. package/dist/{PayoutAccount-B9sThTU6.js → PayoutAccount-CvMczmij.js} +6 -6
  2. package/dist/{PayoutAccount-C1-oQCFC.js → PayoutAccount-bF6506mg.js} +5 -5
  3. package/dist/{PayoutAccountSetting-D3ffGE0d.js → PayoutAccountSetting-Di_Rohl7.js} +391 -330
  4. package/dist/{Restaurant-3FLRoz2Z.js → Restaurant-BgfJ4kMh.js} +4 -4
  5. package/dist/RestaurantSetting-DLB_GBbu.js +754 -0
  6. package/dist/{Settlement-Bdj2WaoM.js → Settlement-DqwyJFk-.js} +3 -3
  7. package/dist/{Settlement-CC2B-e4f.js → Settlement-Mf5XJrXc.js} +3 -3
  8. package/dist/{SettlementTransactions-DGCj9bAe.js → SettlementTransactions-6vkA8-4o.js} +3 -3
  9. package/dist/{SettlementTransactions-CwLzHWsb.js → SettlementTransactions-DvzbSvA9.js} +3 -3
  10. package/dist/{Terminal-7c3OQF9g.js → Terminal-DC6alAxg.js} +5 -5
  11. package/dist/{TerminalSetting-B7xu6e4X.js → TerminalSetting-BE9fFg4j.js} +3 -3
  12. package/dist/{Transaction-D1LWBBsZ.js → Transaction-BPVSJWdM.js} +7 -7
  13. package/dist/{Transaction--t5VJdXQ.js → Transaction-BXynWN9l.js} +5 -5
  14. package/dist/{TransactionOld-DHVZ5iSD.js → TransactionOld-aJqwnMYJ.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CRkXGtHQ.js → TransactionTable.vue_vue_type_script_setup_true_lang-CX5eNJPx.js} +3 -3
  16. package/dist/{app-D24UkS2o.js → app-l69fYMyZ.js} +375 -375
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-B5NXw6Y4.js → assets-CRA5IzdW.js} +2 -2
  19. package/dist/{grafana-DaIIupgz.js → grafana-AnUnO24M.js} +1 -1
  20. package/dist/{index-B2DvBis-.js → index-34hQY02y.js} +2 -2
  21. package/dist/{index-BBYs-Llt.js → index-8V-GavUD.js} +1 -1
  22. package/dist/{index-Bboy-oty.js → index-BrtYLN-t.js} +1 -1
  23. package/dist/{index-BFdB2HXN.js → index-Cer_6J8b.js} +1 -1
  24. package/dist/{index-DvYpRRA_.js → index-DayhN_i6.js} +1 -1
  25. package/dist/{index-DNHpMza-.js → index-DmI9Gt5s.js} +9532 -9385
  26. package/dist/{index-Lio-k9My.js → index-k7EwR1PN.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-B8G7gIcx.js → index.vue_vue_type_script_setup_true_lang-BZvBvJ7L.js} +1 -1
  28. package/dist/package.json +2 -2
  29. package/dist/{payout-account-MSqoi8mH.js → payout-account-HJH4ybUc.js} +3 -3
  30. package/dist/stores/payoutAccount.d.ts +22 -12
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -12
  33. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +26 -16
  34. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +26 -16
  35. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -12
  36. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -12
  37. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +26 -16
  38. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +39 -0
  39. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
  40. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  41. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  42. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +45 -0
  43. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  44. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  45. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
  46. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -10
  47. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  48. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +48 -0
  49. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  50. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +14 -14
  51. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  52. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  53. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  54. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +16 -14
  55. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  56. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -24
  57. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +56 -56
  58. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +28 -28
  59. package/package.json +2 -2
  60. package/dist/RestaurantSetting-DnqiIepz.js +0 -625
@@ -1,15 +1,15 @@
1
- import { defineComponent as V, resolveComponent as y, openBlock as g, createElementBlock as _, Fragment as D, createElementVNode as i, createVNode as r, withCtx as k, createTextVNode as C, toDisplayString as U, createCommentVNode as P, createBlock as x, ref as T, watch as W, computed as G, unref as c, isRef as q, h as M, onMounted as J, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as H } from "vue";
2
- import { p as N } from "./index-B2DvBis-.js";
3
- import { u as j, e as $ } from "./index-DNHpMza-.js";
1
+ import { defineComponent as V, resolveComponent as m, openBlock as g, createElementBlock as h, Fragment as G, createElementVNode as i, createVNode as s, withCtx as k, createTextVNode as _, toDisplayString as U, createCommentVNode as T, createBlock as w, ref as P, watch as W, computed as R, unref as c, isRef as E, h as M, onMounted as J, resolveDynamicComponent as z, normalizeProps as L, mergeProps as H } from "vue";
2
+ import { p as I } from "./index-34hQY02y.js";
3
+ import { u as j, e as N } from "./index-DmI9Gt5s.js";
4
4
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as te } from "vue-router";
6
- import { u as K } from "./index-BFdB2HXN.js";
6
+ import { u as K } from "./index-Cer_6J8b.js";
7
7
  import { P as Q } from "./PDFViewer-xrBtzrlR.js";
8
- import { useSnackbar as z, components as ae } from "@feedmepos/ui-library";
8
+ import { useSnackbar as Y, components as ae } from "@feedmepos/ui-library";
9
9
  import { u as B } from "./error-K1CakhA9.js";
10
- import { z as A, a as h } from "./validator-D5jtpt9A.js";
10
+ import { z as C, a as A } from "./validator-D5jtpt9A.js";
11
11
  import { useCoreStore as X } from "@feedmepos/mf-common";
12
- const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
12
+ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ V({
13
13
  __name: "Information",
14
14
  props: {
15
15
  payoutAccount: {
@@ -17,36 +17,36 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
17
17
  required: !0
18
18
  }
19
19
  },
20
- setup(n) {
20
+ setup(a) {
21
21
  return (d, e) => {
22
- const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
23
- return g(), _(D, null, [
22
+ const p = m("FmCardHeader"), r = m("FmCardSection"), t = m("FmCard");
23
+ return g(), h(G, null, [
24
24
  i("div", ne, [
25
- r(t, {
25
+ s(t, {
26
26
  horizontal: "",
27
27
  class: "flex-1 p-6",
28
28
  variant: "elevated"
29
29
  }, {
30
30
  default: k(() => [
31
- r(u, { class: "flex flex-col gap-16 justify-between" }, {
31
+ s(r, { class: "flex flex-col gap-16 justify-between" }, {
32
32
  default: k(() => [
33
- r(v, {
33
+ s(p, {
34
34
  class: "p-0",
35
35
  title: "Account Info",
36
36
  subtitle: ""
37
37
  }),
38
- r(u, { class: "p-0" }, {
38
+ s(r, { class: "p-0" }, {
39
39
  default: k(() => {
40
- var l, f, s, a, o;
40
+ var o, y, u, n, l;
41
41
  return [
42
42
  e[0] || (e[0] = i("b", null, "For", -1)),
43
- C(": " + U((f = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : f.event) + " ", 1),
43
+ _(": " + U((y = (o = a.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : y.event) + " ", 1),
44
44
  e[1] || (e[1] = i("br", null, null, -1)),
45
45
  e[2] || (e[2] = i("b", null, "Reference", -1)),
46
- C(": " + U((a = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : a.id), 1),
46
+ _(": " + U((n = (u = a.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : n.id), 1),
47
47
  e[3] || (e[3] = i("br", null, null, -1)),
48
48
  e[4] || (e[4] = i("b", null, "Business", -1)),
49
- C(": " + U((o = n.payoutAccount) == null ? void 0 : o.businessId), 1),
49
+ _(": " + U((l = a.payoutAccount) == null ? void 0 : l.businessId), 1),
50
50
  e[5] || (e[5] = i("br", null, null, -1))
51
51
  ];
52
52
  }),
@@ -58,31 +58,31 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
58
58
  ]),
59
59
  _: 1
60
60
  }),
61
- r(t, {
61
+ s(t, {
62
62
  horizontal: "",
63
63
  class: "flex-1 p-6",
64
64
  variant: "elevated"
65
65
  }, {
66
66
  default: k(() => [
67
- r(u, { class: "flex flex-col gap-16 justify-between" }, {
67
+ s(r, { class: "flex flex-col gap-16 justify-between" }, {
68
68
  default: k(() => [
69
- r(v, {
69
+ s(p, {
70
70
  class: "p-0",
71
71
  title: "Key Person",
72
72
  subtitle: ""
73
73
  }),
74
- r(u, { class: "p-0" }, {
74
+ s(r, { class: "p-0" }, {
75
75
  default: k(() => {
76
- var l, f, s, a, o, p, m, b;
76
+ var o, y, u, n, l, v, f, b;
77
77
  return [
78
78
  e[6] || (e[6] = i("b", null, "Email", -1)),
79
- C(": " + U((s = (f = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : f.keyPerson) == null ? void 0 : s.email) + " ", 1),
79
+ _(": " + U((u = (y = (o = a.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : y.keyPerson) == null ? void 0 : u.email) + " ", 1),
80
80
  e[7] || (e[7] = i("br", null, null, -1)),
81
81
  e[8] || (e[8] = i("b", null, "Name", -1)),
82
- C(": " + U((p = (o = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : o.keyPerson) == null ? void 0 : p.name), 1),
82
+ _(": " + U((v = (l = (n = a.payoutAccount) == null ? void 0 : n.store) == null ? void 0 : l.keyPerson) == null ? void 0 : v.name), 1),
83
83
  e[9] || (e[9] = i("br", null, null, -1)),
84
84
  e[10] || (e[10] = i("b", null, "Phone", -1)),
85
- C(": " + U((b = (m = n.payoutAccount) == null ? void 0 : m.store.keyPerson) == null ? void 0 : b.phone), 1),
85
+ _(": " + U((b = (f = a.payoutAccount) == null ? void 0 : f.store.keyPerson) == null ? void 0 : b.phone), 1),
86
86
  e[11] || (e[11] = i("br", null, null, -1))
87
87
  ];
88
88
  }),
@@ -96,10 +96,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
96
96
  })
97
97
  ]),
98
98
  e[12] || (e[12] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
99
- n.payoutAccount.store.exteriorPhoto ? (g(), _("img", {
99
+ a.payoutAccount.store.exteriorPhoto ? (g(), h("img", {
100
100
  key: 0,
101
- src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, oe)) : P("", !0)
101
+ src: a.payoutAccount.store.exteriorPhoto
102
+ }, null, 8, le)) : T("", !0)
103
103
  ], 64);
104
104
  };
105
105
  }
@@ -111,35 +111,35 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
111
111
  required: !0
112
112
  }
113
113
  },
114
- setup(n) {
114
+ setup(a) {
115
115
  return (d, e) => {
116
- const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
117
- return g(), _(D, null, [
118
- r(t, {
116
+ const p = m("FmCardHeader"), r = m("FmCardSection"), t = m("FmCard");
117
+ return g(), h(G, null, [
118
+ s(t, {
119
119
  horizontal: "",
120
120
  class: "flex-1 p-6 mx-6 mb-6",
121
121
  variant: "elevated"
122
122
  }, {
123
123
  default: k(() => [
124
- r(u, { class: "flex flex-col gap-16 justify-between" }, {
124
+ s(r, { class: "flex flex-col gap-16 justify-between" }, {
125
125
  default: k(() => [
126
- r(v, {
126
+ s(p, {
127
127
  class: "p-0",
128
128
  title: "Bank Info",
129
129
  subtitle: ""
130
130
  }),
131
- r(u, { class: "p-0" }, {
131
+ s(r, { class: "p-0" }, {
132
132
  default: k(() => {
133
- var l, f, s, a, o, p;
133
+ var o, y, u, n, l, v;
134
134
  return [
135
135
  e[0] || (e[0] = i("b", null, "Bank", -1)),
136
- C(": " + U((f = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : f.name), 1),
136
+ _(": " + U((y = (o = a.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : y.name), 1),
137
137
  e[1] || (e[1] = i("br", null, null, -1)),
138
138
  e[2] || (e[2] = i("b", null, "Name", -1)),
139
- C(": " + U((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
139
+ _(": " + U((n = (u = a.payoutAccount) == null ? void 0 : u.store.bank) == null ? void 0 : n.holderName), 1),
140
140
  e[3] || (e[3] = i("br", null, null, -1)),
141
141
  e[4] || (e[4] = i("b", null, "Number", -1)),
142
- C(": " + U((p = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : p.accountNumber), 1)
142
+ _(": " + U((v = (l = a.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : v.accountNumber), 1)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -153,21 +153,21 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
153
153
  i("div", ue, [
154
154
  i("div", se, [
155
155
  e[5] || (e[5] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
- n.payoutAccount.store.ssm ? (g(), x(Q, {
156
+ a.payoutAccount.store.ssm ? (g(), w(Q, {
157
157
  key: 0,
158
- pdf: n.payoutAccount.store.ssm,
158
+ pdf: a.payoutAccount.store.ssm,
159
159
  "disable-text-layer": !0,
160
160
  "disable-annotation-layer": !0
161
- }, null, 8, ["pdf"])) : P("", !0)
161
+ }, null, 8, ["pdf"])) : T("", !0)
162
162
  ]),
163
163
  i("div", re, [
164
164
  e[6] || (e[6] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
- n.payoutAccount.store.bankStatement ? (g(), x(Q, {
165
+ a.payoutAccount.store.bankStatement ? (g(), w(Q, {
166
166
  key: 0,
167
- pdf: n.payoutAccount.store.bankStatement,
167
+ pdf: a.payoutAccount.store.bankStatement,
168
168
  "disable-text-layer": !0,
169
169
  "disable-annotation-layer": !0
170
- }, null, 8, ["pdf"])) : P("", !0)
170
+ }, null, 8, ["pdf"])) : T("", !0)
171
171
  ])
172
172
  ])
173
173
  ], 64);
@@ -179,19 +179,19 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
179
179
  data: {},
180
180
  onChange: { type: Function }
181
181
  },
182
- setup(n) {
183
- const d = n, e = T(d.data.toString());
184
- return W(e, (v) => {
185
- d.onChange(parseFloat(v));
186
- }), (v, u) => {
187
- const t = y("FmTextField");
188
- return g(), x(t, {
182
+ setup(a) {
183
+ const d = a, e = P(d.data.toString());
184
+ return W(e, (p) => {
185
+ d.onChange(parseFloat(p));
186
+ }), (p, r) => {
187
+ const t = m("FmTextField");
188
+ return g(), w(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
191
- "onUpdate:modelValue": u[0] || (u[0] = (l) => e.value = l)
191
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => e.value = o)
192
192
  }, {
193
- append: k(() => u[1] || (u[1] = [
194
- C("%")
193
+ append: k(() => r[1] || (r[1] = [
194
+ _("%")
195
195
  ])),
196
196
  _: 1
197
197
  }, 8, ["modelValue"]);
@@ -203,20 +203,20 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
203
203
  data: {},
204
204
  onChange: { type: Function }
205
205
  },
206
- setup(n) {
207
- const d = n, e = T(d.data.toString());
208
- return W(e, (v) => {
209
- d.onChange(parseInt(v));
210
- }), (v, u) => {
211
- const t = y("FmTextField");
212
- return g(), x(t, {
206
+ setup(a) {
207
+ const d = a, e = P(d.data.toString());
208
+ return W(e, (p) => {
209
+ d.onChange(parseInt(p));
210
+ }), (p, r) => {
211
+ const t = m("FmTextField");
212
+ return g(), w(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
215
- "onUpdate:modelValue": u[0] || (u[0] = (l) => e.value = l)
215
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => e.value = o)
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ V({
219
+ }), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, fe = { class: "my-6 w-full flex justify-end" }, ve = { class: "w-[320px]" }, ge = /* @__PURE__ */ V({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -228,46 +228,46 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
228
228
  required: !0
229
229
  }
230
230
  },
231
- setup(n) {
232
- const d = n, e = T(!1), v = z(), u = async (a) => {
231
+ setup(a) {
232
+ const d = a, e = P(!1), p = Y(), r = async (n) => {
233
233
  try {
234
- e.value = !0, await d.onUpdate(a), v.open({
234
+ e.value = !0, await d.onUpdate(n), p.open({
235
235
  type: "success",
236
236
  title: "Payout account update succesfully"
237
237
  });
238
- } catch (o) {
239
- v.open({
238
+ } catch (l) {
239
+ p.open({
240
240
  type: "error",
241
241
  title: "Error occurs when updating payout account",
242
- message: B(o)
242
+ message: B(l)
243
243
  });
244
244
  } finally {
245
245
  e.value = !1;
246
246
  }
247
247
  }, { search: t } = K({
248
248
  search: ""
249
- }), l = G(() => {
250
- const { ssm: a, bank: o, bankStatement: p } = d.payoutAccount.store;
251
- return a && o && o.name && o.accountNumber && o.holderName && p;
252
- }), f = T(""), s = [
249
+ }), o = R(() => {
250
+ const { ssm: n, bank: l, bankStatement: v } = d.payoutAccount.store;
251
+ return n && l && l.name && l.accountNumber && l.holderName && v;
252
+ }), y = P(""), u = [
253
253
  {
254
254
  header: () => "Payment Method",
255
255
  accessorKey: "issuer",
256
- cell: (a) => `${a.row.original.issuer} (${a.row.original.variant})`
256
+ cell: (n) => `${n.row.original.issuer} (${n.row.original.variant})`
257
257
  },
258
258
  {
259
259
  header: () => "Rate",
260
260
  accessorKey: "rate",
261
- cell: ({ row: a }) => {
262
- let o = 0;
263
- return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), M(ie, {
264
- data: o,
265
- onChange: (p) => {
266
- const m = d.payoutAccount.methods.at(a.index);
267
- m.rate || (m.rate = {
261
+ cell: ({ row: n }) => {
262
+ let l = 0;
263
+ return n.original.rate && (l = n.original.rate.amount / Math.pow(10, n.original.rate.precision)), M(ie, {
264
+ data: l,
265
+ onChange: (v) => {
266
+ const f = d.payoutAccount.methods.at(n.index);
267
+ f.rate || (f.rate = {
268
268
  amount: 0,
269
269
  precision: 4
270
- }), m.rate.amount = p * Math.pow(10, m.rate.precision);
270
+ }), f.rate.amount = v * Math.pow(10, f.rate.precision);
271
271
  }
272
272
  });
273
273
  }
@@ -275,35 +275,35 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => M(me, {
279
- data: a.original.tPlus ?? 0,
280
- onChange: (o) => {
281
- const p = d.payoutAccount.methods.at(a.index);
282
- p.tPlus = o;
278
+ cell: ({ row: n }) => M(me, {
279
+ data: n.original.tPlus ?? 0,
280
+ onChange: (l) => {
281
+ const v = d.payoutAccount.methods.at(n.index);
282
+ v.tPlus = l;
283
283
  }
284
284
  })
285
285
  }
286
286
  ];
287
- return (a, o) => {
288
- const p = y("FmRadio"), m = y("FmRadioGroup"), b = y("FmSwitch"), S = y("FmSearch"), I = y("FmTable"), R = y("FmButton");
289
- return g(), _(D, null, [
287
+ return (n, l) => {
288
+ const v = m("FmRadio"), f = m("FmRadioGroup"), b = m("FmSwitch"), S = m("FmSearch"), D = m("FmTable"), $ = m("FmButton");
289
+ return g(), h(G, null, [
290
290
  i("div", de, [
291
291
  i("div", pe, [
292
- r(m, {
293
- modelValue: n.payoutAccount.status,
294
- "onUpdate:modelValue": o[0] || (o[0] = (F) => n.payoutAccount.status = F),
292
+ s(f, {
293
+ modelValue: a.payoutAccount.status,
294
+ "onUpdate:modelValue": l[0] || (l[0] = (F) => a.payoutAccount.status = F),
295
295
  label: "Account Status"
296
296
  }, {
297
297
  default: k(() => [
298
- r(p, {
298
+ s(v, {
299
299
  value: "NEW",
300
300
  label: "New"
301
301
  }),
302
- r(p, {
302
+ s(v, {
303
303
  value: "PENDING",
304
304
  label: "Pending"
305
305
  }),
306
- r(p, {
306
+ s(v, {
307
307
  value: "APPROVED",
308
308
  label: "Approved"
309
309
  })
@@ -312,41 +312,41 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
314
  i("div", ye, [
315
- r(b, {
316
- modelValue: n.payoutAccount.enable,
317
- "onUpdate:modelValue": o[1] || (o[1] = (F) => n.payoutAccount.enable = F),
318
- disabled: !l.value,
315
+ s(b, {
316
+ modelValue: a.payoutAccount.enable,
317
+ "onUpdate:modelValue": l[1] || (l[1] = (F) => a.payoutAccount.enable = F),
318
+ disabled: !o.value,
319
319
  label: "Enabled",
320
320
  sublabel: "Merchant can use online features such as e-payment, settlement"
321
321
  }, null, 8, ["modelValue", "disabled"])
322
322
  ])
323
323
  ]),
324
- n.payoutAccount.enable ? (g(), _(D, { key: 0 }, [
325
- i("div", ve, [
326
- i("div", fe, [
327
- r(S, {
324
+ a.payoutAccount.enable ? (g(), h(G, { key: 0 }, [
325
+ i("div", fe, [
326
+ i("div", ve, [
327
+ s(S, {
328
328
  modelValue: c(t),
329
- "onUpdate:modelValue": o[2] || (o[2] = (F) => q(t) ? t.value = F : null),
329
+ "onUpdate:modelValue": l[2] || (l[2] = (F) => E(t) ? t.value = F : null),
330
330
  placeholder: "Search Method ..."
331
331
  }, null, 8, ["modelValue"])
332
332
  ])
333
333
  ]),
334
- r(I, {
334
+ s(D, {
335
335
  class: "mt-6",
336
- modelValue: f.value,
337
- "onUpdate:modelValue": o[3] || (o[3] = (F) => f.value = F),
336
+ modelValue: y.value,
337
+ "onUpdate:modelValue": l[3] || (l[3] = (F) => y.value = F),
338
338
  "shrink-at": !1,
339
339
  "search-value": c(t),
340
- "row-data": n.payoutAccount.methods,
341
- "column-defs": s
340
+ "row-data": a.payoutAccount.methods,
341
+ "column-defs": u
342
342
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
- ], 64)) : P("", !0),
344
- r(R, {
343
+ ], 64)) : T("", !0),
344
+ s($, {
345
345
  class: "w-full mt-6",
346
346
  variant: "primary",
347
347
  label: "Save",
348
348
  loading: e.value,
349
- onclick: () => u(n.payoutAccount)
349
+ onclick: () => r(a.payoutAccount)
350
350
  }, null, 8, ["loading", "onclick"])
351
351
  ], 64);
352
352
  };
@@ -354,16 +354,16 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
354
354
  }), be = { class: "flex" }, Fe = /* @__PURE__ */ V({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
- setup(n, { emit: d }) {
357
+ setup(a, { emit: d }) {
358
358
  const e = d;
359
- return (v, u) => {
360
- const t = y("FmButton");
361
- return g(), _("div", be, [
362
- r(t, {
359
+ return (p, r) => {
360
+ const t = m("FmButton");
361
+ return g(), h("div", be, [
362
+ s(t, {
363
363
  variant: "plain",
364
364
  "prepend-icon": "delete",
365
- onClick: u[0] || (u[0] = (l) => {
366
- l.stopPropagation(), e("delete");
365
+ onClick: r[0] || (r[0] = (o) => {
366
+ o.stopPropagation(), e("delete");
367
367
  })
368
368
  })
369
369
  ]);
@@ -377,47 +377,47 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
377
377
  required: !0
378
378
  }
379
379
  },
380
- setup(n) {
381
- const d = z(), e = n, { isLoading: v, startAsyncCall: u } = j(), t = T([]);
382
- function l() {
383
- u(async () => {
384
- t.value = await N.getChannels(e.payoutAccount._id);
380
+ setup(a) {
381
+ const d = Y(), e = a, { isLoading: p, startAsyncCall: r } = j(), t = P([]);
382
+ function o() {
383
+ r(async () => {
384
+ t.value = await I.getChannels(e.payoutAccount._id);
385
385
  });
386
386
  }
387
- J(l);
388
- function f() {
389
- u(async () => {
387
+ J(o);
388
+ function y() {
389
+ r(async () => {
390
390
  try {
391
- await N.updateChannels(e.payoutAccount._id, t.value), d.open({
391
+ await I.updateChannels(e.payoutAccount._id, t.value), d.open({
392
392
  type: "success",
393
393
  title: "Payout account channels update succesfully"
394
394
  });
395
- } catch (o) {
395
+ } catch (l) {
396
396
  d.open({
397
397
  type: "error",
398
398
  title: "Error occurs when updating payout account channels",
399
- message: B(o)
399
+ message: B(l)
400
400
  });
401
401
  }
402
402
  });
403
403
  }
404
- function s() {
405
- u(async () => {
404
+ function u() {
405
+ r(async () => {
406
406
  try {
407
- await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), d.open({
407
+ await I.resetChannels(e.payoutAccount._id), t.value = await I.getChannels(e.payoutAccount._id), d.open({
408
408
  type: "success",
409
409
  title: "Payout account channels reset succesfully"
410
410
  });
411
- } catch (o) {
411
+ } catch (l) {
412
412
  d.open({
413
413
  type: "error",
414
414
  title: "Error occurs when reset payout account channels",
415
- message: B(o)
415
+ message: B(l)
416
416
  });
417
417
  }
418
418
  });
419
419
  }
420
- const a = [
420
+ const n = [
421
421
  {
422
422
  header: () => "Gateway",
423
423
  accessorKey: "gateway"
@@ -429,48 +429,48 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
429
429
  {
430
430
  header: () => "Display",
431
431
  accessorKey: "icon",
432
- cell: ({ row: o }) => M("img", { src: o.original.icon, width: 32, height: 32 })
432
+ cell: ({ row: l }) => M("img", { src: l.original.icon, width: 32, height: 32 })
433
433
  },
434
434
  {
435
435
  header: () => "Label",
436
436
  accessorKey: "label",
437
- cell: ({ row: o }) => M(ae.FmTextField, {
438
- modelValue: o.original.label,
439
- "onUpdate:modelValue": (p) => o.original.label = p
437
+ cell: ({ row: l }) => M(ae.FmTextField, {
438
+ modelValue: l.original.label,
439
+ "onUpdate:modelValue": (v) => l.original.label = v
440
440
  })
441
441
  },
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: o }) => M(Fe, {
446
- onDelete: () => t.value.splice(o.index, 1)
445
+ cell: ({ row: l }) => M(Fe, {
446
+ onDelete: () => t.value.splice(l.index, 1)
447
447
  })
448
448
  }
449
449
  ];
450
- return (o, p) => {
451
- const m = y("FmButton"), b = y("FmTable");
452
- return g(), _(D, null, [
450
+ return (l, v) => {
451
+ const f = m("FmButton"), b = m("FmTable");
452
+ return g(), h(G, null, [
453
453
  i("div", we, [
454
- r(m, {
454
+ s(f, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
457
457
  size: "md",
458
458
  icon: "history",
459
459
  label: "Reset",
460
- onClick: s
460
+ onClick: u
461
461
  }),
462
- r(m, {
462
+ s(f, {
463
463
  variant: "primary",
464
464
  size: "md",
465
465
  icon: "save",
466
466
  label: "Save",
467
- onClick: f
467
+ onClick: y
468
468
  })
469
469
  ]),
470
- r(b, {
471
- loading: c(v),
470
+ s(b, {
471
+ loading: c(p),
472
472
  "row-data": t.value,
473
- "column-defs": a,
473
+ "column-defs": n,
474
474
  "shrink-at": !1
475
475
  }, null, 8, ["loading", "row-data"])
476
476
  ], 64);
@@ -492,48 +492,48 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
492
492
  required: !0
493
493
  }
494
494
  },
495
- setup(n) {
496
- var v;
497
- const e = T(((v = n.gateway) == null ? void 0 : v.config) || {
495
+ setup(a) {
496
+ var p;
497
+ const e = P(((p = a.gateway) == null ? void 0 : p.config) || {
498
498
  merchantId: "",
499
499
  verifyKey: "",
500
500
  secretKey: ""
501
501
  });
502
- return (u, t) => {
503
- const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
504
- return g(), x(s, {
502
+ return (r, t) => {
503
+ const o = m("FmTextField"), y = m("FmButton"), u = m("FmForm");
504
+ return g(), w(u, {
505
505
  ref: "form",
506
506
  class: "flex flex-col gap-16",
507
- onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
507
+ onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
508
508
  }, {
509
509
  default: k(() => [
510
- r(l, {
510
+ s(o, {
511
511
  modelValue: e.value.merchantId,
512
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
512
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
513
513
  label: "Merchant ID",
514
- rules: c(A)(c(h).string())
514
+ rules: c(C)(c(A).string())
515
515
  }, null, 8, ["modelValue", "rules"]),
516
- r(l, {
516
+ s(o, {
517
517
  modelValue: e.value.verifyKey,
518
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
518
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.verifyKey = n),
519
519
  label: "Verify Key",
520
- rules: c(A)(c(h).string())
520
+ rules: c(C)(c(A).string())
521
521
  }, null, 8, ["modelValue", "rules"]),
522
- r(l, {
522
+ s(o, {
523
523
  modelValue: e.value.secretKey,
524
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
524
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.secretKey = n),
525
525
  label: "Secret Key",
526
- rules: c(A)(c(h).string())
526
+ rules: c(C)(c(A).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
528
  i("div", ke, [
529
- n.gateway ? (g(), x(f, {
529
+ a.gateway ? (g(), w(y, {
530
530
  key: 0,
531
531
  class: "flex-1",
532
532
  variant: "secondary",
533
533
  label: "Delete",
534
- onclick: () => n.onDelete()
535
- }, null, 8, ["onclick"])) : P("", !0),
536
- r(f, {
534
+ onclick: () => a.onDelete()
535
+ }, null, 8, ["onclick"])) : T("", !0),
536
+ s(y, {
537
537
  type: "submit",
538
538
  class: "flex-1",
539
539
  variant: "primary",
@@ -545,7 +545,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
545
545
  }, 512);
546
546
  };
547
547
  }
548
- }), Ce = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ V({
548
+ }), _e = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ V({
549
549
  __name: "MacauPassGateway",
550
550
  props: {
551
551
  gateway: {
@@ -561,62 +561,62 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
561
561
  required: !0
562
562
  }
563
563
  },
564
- setup(n) {
565
- var v;
566
- const e = T(((v = n.gateway) == null ? void 0 : v.config) || {
564
+ setup(a) {
565
+ var p;
566
+ const e = P(((p = a.gateway) == null ? void 0 : p.config) || {
567
567
  merchantId: "",
568
568
  merchantName: "",
569
569
  merchantCategoryCode: "",
570
570
  storeID: "",
571
571
  storeName: ""
572
572
  });
573
- return (u, t) => {
574
- const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
575
- return g(), x(s, {
573
+ return (r, t) => {
574
+ const o = m("FmTextField"), y = m("FmButton"), u = m("FmForm");
575
+ return g(), w(u, {
576
576
  ref: "form",
577
577
  class: "flex flex-col gap-16",
578
- onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
578
+ onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
579
579
  }, {
580
580
  default: k(() => [
581
- r(l, {
581
+ s(o, {
582
582
  modelValue: e.value.merchantId,
583
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
583
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
584
584
  label: "Merchant ID",
585
- rules: c(A)(c(h).string())
585
+ rules: c(C)(c(A).string())
586
586
  }, null, 8, ["modelValue", "rules"]),
587
- r(l, {
587
+ s(o, {
588
588
  modelValue: e.value.merchantName,
589
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
589
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.merchantName = n),
590
590
  label: "Merchant Name",
591
- rules: c(A)(c(h).string())
591
+ rules: c(C)(c(A).string())
592
592
  }, null, 8, ["modelValue", "rules"]),
593
- r(l, {
593
+ s(o, {
594
594
  modelValue: e.value.merchantCategoryCode,
595
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
595
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.merchantCategoryCode = n),
596
596
  label: "Merchant MCC",
597
- rules: c(A)(c(h).string())
597
+ rules: c(C)(c(A).string())
598
598
  }, null, 8, ["modelValue", "rules"]),
599
- r(l, {
599
+ s(o, {
600
600
  modelValue: e.value.storeID,
601
- "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
601
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => e.value.storeID = n),
602
602
  label: "Store ID",
603
- rules: c(A)(c(h).string())
603
+ rules: c(C)(c(A).string())
604
604
  }, null, 8, ["modelValue", "rules"]),
605
- r(l, {
605
+ s(o, {
606
606
  modelValue: e.value.storeName,
607
- "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
607
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => e.value.storeName = n),
608
608
  label: "Store Name",
609
- rules: c(A)(c(h).string())
609
+ rules: c(C)(c(A).string())
610
610
  }, null, 8, ["modelValue", "rules"]),
611
- i("div", Ce, [
612
- n.gateway ? (g(), x(f, {
611
+ i("div", _e, [
612
+ a.gateway ? (g(), w(y, {
613
613
  key: 0,
614
614
  class: "flex-1",
615
615
  variant: "secondary",
616
616
  label: "Delete",
617
- onclick: () => n.onDelete()
618
- }, null, 8, ["onclick"])) : P("", !0),
619
- r(f, {
617
+ onclick: () => a.onDelete()
618
+ }, null, 8, ["onclick"])) : T("", !0),
619
+ s(y, {
620
620
  type: "submit",
621
621
  class: "flex-1",
622
622
  variant: "primary",
@@ -628,13 +628,68 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
628
628
  }, 512);
629
629
  };
630
630
  }
631
- }), Ae = {
631
+ }), Ae = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ V({
632
+ __name: "DigioGateway",
633
+ props: {
634
+ gateway: {
635
+ type: Object,
636
+ required: !0
637
+ },
638
+ onUpdate: {
639
+ type: Function,
640
+ required: !0
641
+ },
642
+ onDelete: {
643
+ type: Function,
644
+ required: !0
645
+ }
646
+ },
647
+ setup(a) {
648
+ var p;
649
+ const e = P(((p = a.gateway) == null ? void 0 : p.config) || {
650
+ merchantId: ""
651
+ });
652
+ return (r, t) => {
653
+ const o = m("FmTextField"), y = m("FmButton"), u = m("FmForm");
654
+ return g(), w(u, {
655
+ ref: "form",
656
+ class: "flex flex-col gap-16",
657
+ onValidationSuccess: t[1] || (t[1] = () => a.onUpdate(e.value))
658
+ }, {
659
+ default: k(() => [
660
+ s(o, {
661
+ modelValue: e.value.merchantId,
662
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
663
+ label: "Merchant ID",
664
+ rules: c(C)(c(A).string())
665
+ }, null, 8, ["modelValue", "rules"]),
666
+ i("div", Ae, [
667
+ a.gateway ? (g(), w(y, {
668
+ key: 0,
669
+ class: "flex-1",
670
+ variant: "secondary",
671
+ label: "Delete",
672
+ onclick: () => a.onDelete()
673
+ }, null, 8, ["onclick"])) : T("", !0),
674
+ s(y, {
675
+ type: "submit",
676
+ class: "flex-1",
677
+ variant: "primary",
678
+ label: "Save"
679
+ })
680
+ ])
681
+ ]),
682
+ _: 1
683
+ }, 512);
684
+ };
685
+ }
686
+ }), Te = {
632
687
  key: 0,
633
688
  className: "mt-1 my-6 text-gray-600"
634
- }, he = {
689
+ }, Pe = {
635
690
  key: 1,
636
691
  class: "flex items-center justify-center min-h-[80vh]"
637
- }, Pe = /* @__PURE__ */ V({
692
+ }, Se = /* @__PURE__ */ V({
638
693
  __name: "PaymentGateway",
639
694
  props: {
640
695
  payoutAccount: {
@@ -642,27 +697,33 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
642
697
  required: !0
643
698
  }
644
699
  },
645
- setup(n) {
646
- const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { gatewayTab: t } = K({
700
+ setup(a) {
701
+ const d = X().currentCountry, e = Y(), { isLoading: p, startAsyncCall: r } = j(), { gatewayTab: t } = K({
647
702
  gatewayTab: ""
648
- }), l = n, f = [
703
+ }), o = a, y = [
649
704
  {
650
705
  label: "Fiuu",
651
706
  value: "RAZER_MERCHANT_SERVICE",
652
707
  render: Ve,
653
- region: [$.F_COUNTRY.enum.SG]
708
+ region: [N.F_COUNTRY.enum.SG]
654
709
  },
655
710
  {
656
711
  label: "Macau Pass",
657
712
  value: "MACAU_PASS",
658
- render: _e,
659
- region: [$.F_COUNTRY.enum.MO]
713
+ render: Ce,
714
+ region: [N.F_COUNTRY.enum.MO]
715
+ },
716
+ {
717
+ label: "Digio",
718
+ value: "DIGIO",
719
+ form: he,
720
+ region: [N.F_COUNTRY.enum.TH]
660
721
  }
661
- ], s = T(l.payoutAccount.gateways ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
662
- async function p(m) {
663
- await u(async () => {
722
+ ], u = P(o.payoutAccount.gateways ?? []), n = R(() => y.find((f) => f.value === t.value)), l = R(() => y.filter((f) => f.region.includes(d.value ?? N.F_COUNTRY.enum.MY)));
723
+ async function v(f) {
724
+ await r(async () => {
664
725
  try {
665
- await N.updateGateway(l.payoutAccount._id, m), e.open({
726
+ await I.updateGateway(o.payoutAccount._id, f), e.open({
666
727
  type: "success",
667
728
  title: "Payout account gateways update succesfully"
668
729
  });
@@ -675,50 +736,50 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
675
736
  }
676
737
  });
677
738
  }
678
- return (m, b) => {
679
- var R;
680
- const S = y("FmCircularProgress"), I = y("FmTabs");
681
- return g(), _(D, null, [
682
- c(d).value === c($.F_COUNTRY).enum.MY ? (g(), _("p", Ae, b[1] || (b[1] = [
739
+ return (f, b) => {
740
+ var $;
741
+ const S = m("FmCircularProgress"), D = m("FmTabs");
742
+ return g(), h(G, null, [
743
+ c(d).value === c(N.F_COUNTRY).enum.MY ? (g(), h("p", Te, b[1] || (b[1] = [
683
744
  i("b", null, "Note: ", -1),
684
- C(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
685
- ]))) : P("", !0),
686
- c(v) ? (g(), _("div", he, [
687
- r(S, { size: "xxl" })
688
- ])) : (g(), x(I, {
745
+ _(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
746
+ ]))) : T("", !0),
747
+ c(p) ? (g(), h("div", Pe, [
748
+ s(S, { size: "xxl" })
749
+ ])) : (g(), w(D, {
689
750
  key: 2,
690
751
  "model-value": c(t),
691
- "onUpdate:modelValue": b[0] || (b[0] = (F) => q(t) ? t.value = F : null),
752
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
692
753
  class: "mb-6",
693
- items: o.value
754
+ items: l.value
694
755
  }, null, 8, ["model-value", "items"])),
695
- c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 3 }, {
696
- gateway: s.value.find((F) => {
697
- var w;
698
- return F.paymentGateway === ((w = a.value) == null ? void 0 : w.value);
756
+ c(t) ? (g(), w(z(($ = n.value) == null ? void 0 : $.render), L(H({ key: 3 }, {
757
+ gateway: u.value.find((F) => {
758
+ var x;
759
+ return F.paymentGateway === ((x = n.value) == null ? void 0 : x.value);
699
760
  }),
700
761
  onDelete: async () => {
701
- s.value = s.value.filter((F) => {
702
- var w;
703
- return F.paymentGateway !== ((w = a.value) == null ? void 0 : w.value);
704
- }), p(s.value);
762
+ u.value = u.value.filter((F) => {
763
+ var x;
764
+ return F.paymentGateway !== ((x = n.value) == null ? void 0 : x.value);
765
+ }), v(u.value);
705
766
  },
706
767
  onUpdate: (F) => {
707
- var E;
708
- let w = s.value.find((O) => {
768
+ var O;
769
+ let x = u.value.find((q) => {
709
770
  var Z;
710
- return O.paymentGateway === ((Z = a.value) == null ? void 0 : Z.value);
771
+ return q.paymentGateway === ((Z = n.value) == null ? void 0 : Z.value);
711
772
  });
712
- w ? w.config = F : s.value.push({
713
- paymentGateway: (E = a.value) == null ? void 0 : E.value,
773
+ x ? x.config = F : u.value.push({
774
+ paymentGateway: (O = n.value) == null ? void 0 : O.value,
714
775
  config: F
715
- }), p(s.value);
776
+ }), v(u.value);
716
777
  }
717
- })), null, 16)) : P("", !0)
778
+ })), null, 16)) : T("", !0)
718
779
  ], 64);
719
780
  };
720
781
  }
721
- }), Te = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ V({
782
+ }), Ue = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ V({
722
783
  __name: "GooglePayToken",
723
784
  props: {
724
785
  gateway: {
@@ -734,8 +795,8 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
734
795
  required: !0
735
796
  }
736
797
  },
737
- setup(n) {
738
- const e = T(n.gateway || {
798
+ setup(a) {
799
+ const e = P(a.gateway || {
739
800
  // hardcoded first since only 1 PSP supported
740
801
  type: "googlePay",
741
802
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -744,44 +805,44 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
744
805
  gatewayMerchantId: "molpay"
745
806
  }
746
807
  });
747
- return (v, u) => {
748
- const t = y("FmTextField"), l = y("FmButton"), f = y("FmForm");
749
- return g(), x(f, {
808
+ return (p, r) => {
809
+ const t = m("FmTextField"), o = m("FmButton"), y = m("FmForm");
810
+ return g(), w(y, {
750
811
  ref: "form",
751
812
  class: "flex flex-col gap-16",
752
- onValidationSuccess: u[3] || (u[3] = () => n.onUpdate(e.value))
813
+ onValidationSuccess: r[3] || (r[3] = () => a.onUpdate(e.value))
753
814
  }, {
754
815
  default: k(() => [
755
- r(t, {
816
+ s(t, {
756
817
  modelValue: e.value.gateway,
757
- "onUpdate:modelValue": u[0] || (u[0] = (s) => e.value.gateway = s),
818
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => e.value.gateway = u),
758
819
  label: "Gateway",
759
820
  disabled: !0,
760
- rules: c(A)(c(h).string())
821
+ rules: c(C)(c(A).string())
761
822
  }, null, 8, ["modelValue", "rules"]),
762
- r(t, {
823
+ s(t, {
763
824
  modelValue: e.value.config.gateway,
764
- "onUpdate:modelValue": u[1] || (u[1] = (s) => e.value.config.gateway = s),
825
+ "onUpdate:modelValue": r[1] || (r[1] = (u) => e.value.config.gateway = u),
765
826
  label: "Gateway ID",
766
827
  disabled: !0,
767
- rules: c(A)(c(h).string())
828
+ rules: c(C)(c(A).string())
768
829
  }, null, 8, ["modelValue", "rules"]),
769
- r(t, {
830
+ s(t, {
770
831
  modelValue: e.value.config.gateway,
771
- "onUpdate:modelValue": u[2] || (u[2] = (s) => e.value.config.gateway = s),
832
+ "onUpdate:modelValue": r[2] || (r[2] = (u) => e.value.config.gateway = u),
772
833
  label: "Gateway Merchant ID",
773
834
  disabled: !0,
774
- rules: c(A)(c(h).string())
835
+ rules: c(C)(c(A).string())
775
836
  }, null, 8, ["modelValue", "rules"]),
776
- i("div", Te, [
777
- n.gateway ? (g(), x(l, {
837
+ i("div", Ue, [
838
+ a.gateway ? (g(), w(o, {
778
839
  key: 0,
779
840
  class: "flex-1",
780
841
  variant: "secondary",
781
842
  label: "Delete",
782
- onclick: () => n.onDelete()
783
- }, null, 8, ["onclick"])) : P("", !0),
784
- r(l, {
843
+ onclick: () => a.onDelete()
844
+ }, null, 8, ["onclick"])) : T("", !0),
845
+ s(o, {
785
846
  type: "submit",
786
847
  class: "flex-1",
787
848
  variant: "primary",
@@ -793,10 +854,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
793
854
  }, 512);
794
855
  };
795
856
  }
796
- }), Ue = {
857
+ }), Ne = {
797
858
  key: 0,
798
859
  class: "flex items-center justify-center min-h-[80vh]"
799
- }, Ne = /* @__PURE__ */ V({
860
+ }, De = /* @__PURE__ */ V({
800
861
  __name: "TokenGateway",
801
862
  props: {
802
863
  payoutAccount: {
@@ -804,22 +865,22 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
804
865
  required: !0
805
866
  }
806
867
  },
807
- setup(n) {
808
- const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { tokenTab: t } = K({
868
+ setup(a) {
869
+ const d = X().currentCountry, e = Y(), { isLoading: p, startAsyncCall: r } = j(), { tokenTab: t } = K({
809
870
  tokenTab: ""
810
- }), l = n, f = [
871
+ }), o = a, y = [
811
872
  {
812
873
  label: "Google Pay",
813
874
  value: "googlePay",
814
875
  icon: "android",
815
- render: Se,
816
- region: [$.F_COUNTRY.enum.MY, $.F_COUNTRY.enum.SG]
876
+ render: Ie,
877
+ region: [N.F_COUNTRY.enum.MY, N.F_COUNTRY.enum.SG]
817
878
  }
818
- ], s = T(l.payoutAccount.tokens ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
819
- async function p(m) {
820
- await u(async () => {
879
+ ], u = P(o.payoutAccount.tokens ?? []), n = R(() => y.find((f) => f.value === t.value)), l = R(() => y.filter((f) => f.region.includes(d.value ?? N.F_COUNTRY.enum.MY)));
880
+ async function v(f) {
881
+ await r(async () => {
821
882
  try {
822
- await N.updateTokens(l.payoutAccount._id, m), e.open({
883
+ await I.updateTokens(o.payoutAccount._id, f), e.open({
823
884
  type: "success",
824
885
  title: "Payout account tokens gateway update succesfully"
825
886
  });
@@ -832,46 +893,46 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
832
893
  }
833
894
  });
834
895
  }
835
- return (m, b) => {
836
- var R;
837
- const S = y("FmCircularProgress"), I = y("FmTabs");
838
- return g(), _(D, null, [
896
+ return (f, b) => {
897
+ var $;
898
+ const S = m("FmCircularProgress"), D = m("FmTabs");
899
+ return g(), h(G, null, [
839
900
  b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
840
901
  i("b", null, "Note: "),
841
- C(" Token gateway always on the top of every other methods ( online channels ), and it's was branding requirements from each of the payment token gateway provider. For setting most of the time are the same and only need to select for which provider. ")
902
+ _(" Token gateway always on the top of every other methods ( online channels ), and it's was branding requirements from each of the payment token gateway provider. For setting most of the time are the same and only need to select for which provider. ")
842
903
  ], -1)),
843
- c(v) ? (g(), _("div", Ue, [
844
- r(S, { size: "xxl" })
845
- ])) : (g(), x(I, {
904
+ c(p) ? (g(), h("div", Ne, [
905
+ s(S, { size: "xxl" })
906
+ ])) : (g(), w(D, {
846
907
  key: 1,
847
908
  "model-value": c(t),
848
- "onUpdate:modelValue": b[0] || (b[0] = (F) => q(t) ? t.value = F : null),
909
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
849
910
  class: "mb-6",
850
- items: o.value
911
+ items: l.value
851
912
  }, null, 8, ["model-value", "items"])),
852
- c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 2 }, {
853
- gateway: s.value.find((F) => {
854
- var w;
855
- return F.type === ((w = a.value) == null ? void 0 : w.value);
913
+ c(t) ? (g(), w(z(($ = n.value) == null ? void 0 : $.render), L(H({ key: 2 }, {
914
+ gateway: u.value.find((F) => {
915
+ var x;
916
+ return F.type === ((x = n.value) == null ? void 0 : x.value);
856
917
  }),
857
918
  onDelete: async () => {
858
- s.value = s.value.filter((F) => {
859
- var w;
860
- return F.type !== ((w = a.value) == null ? void 0 : w.value);
861
- }), p(s.value);
919
+ u.value = u.value.filter((F) => {
920
+ var x;
921
+ return F.type !== ((x = n.value) == null ? void 0 : x.value);
922
+ }), v(u.value);
862
923
  },
863
924
  onUpdate: (F) => {
864
- let w = s.value.find((E) => {
865
- var O;
866
- return E.type === ((O = a.value) == null ? void 0 : O.value);
925
+ let x = u.value.find((O) => {
926
+ var q;
927
+ return O.type === ((q = n.value) == null ? void 0 : q.value);
867
928
  });
868
- w ? w.config = F : s.value.push(F), p(s.value);
929
+ x ? x.config = F : u.value.push(F), v(u.value);
869
930
  }
870
- })), null, 16)) : P("", !0)
931
+ })), null, 16)) : T("", !0)
871
932
  ], 64);
872
933
  };
873
934
  }
874
- }), Ke = /* @__PURE__ */ V({
935
+ }), ze = /* @__PURE__ */ V({
875
936
  __name: "PayoutAccountSetting",
876
937
  props: {
877
938
  accountId: {
@@ -879,22 +940,22 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
879
940
  required: !0
880
941
  }
881
942
  },
882
- setup(n) {
883
- const d = n, { tab: e } = K({
943
+ setup(a) {
944
+ const d = a, { tab: e } = K({
884
945
  tab: "information"
885
- }), { isLoading: v, startAsyncCall: u } = j(!0), t = te(), l = T();
886
- async function f(p) {
887
- await N.updateById(
946
+ }), { isLoading: p, startAsyncCall: r } = j(!0), t = te(), o = P();
947
+ async function y(v) {
948
+ await I.updateById(
888
949
  d.accountId,
889
- p
890
- ), l.value = await N.readById(d.accountId);
950
+ v
951
+ ), o.value = await I.readById(d.accountId);
891
952
  }
892
- const s = [
953
+ const u = [
893
954
  {
894
955
  label: "Information",
895
956
  value: "information",
896
957
  icon: "overview",
897
- render: le
958
+ render: oe
898
959
  },
899
960
  {
900
961
  label: "Settlement",
@@ -912,13 +973,13 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
912
973
  label: "Online Gateways",
913
974
  icon: "assured_workload",
914
975
  value: "gateways",
915
- render: Pe
976
+ render: Se
916
977
  },
917
978
  {
918
979
  label: "Token Gateways",
919
980
  value: "tokens",
920
981
  icon: "wallet",
921
- render: Ne
982
+ render: De
922
983
  },
923
984
  {
924
985
  label: "Online Channels",
@@ -927,35 +988,35 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
927
988
  render: xe
928
989
  }
929
990
  ];
930
- function a() {
931
- u(async () => {
932
- l.value = await N.readById(d.accountId);
991
+ function n() {
992
+ r(async () => {
993
+ o.value = await I.readById(d.accountId);
933
994
  });
934
995
  }
935
- J(a);
936
- const o = G(() => {
937
- const p = s.reduce((m, b) => m || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
938
- return p == null ? void 0 : p.render;
996
+ J(n);
997
+ const l = R(() => {
998
+ const v = u.reduce((f, b) => f || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
999
+ return v == null ? void 0 : v.render;
939
1000
  });
940
- return (p, m) => {
1001
+ return (v, f) => {
941
1002
  var S;
942
- const b = y("FmTabs");
943
- return g(), x(ee, {
944
- title: `Payout Account (${(S = l.value) == null ? void 0 : S._id})`,
945
- loading: c(v),
1003
+ const b = m("FmTabs");
1004
+ return g(), w(ee, {
1005
+ title: `Payout Account (${(S = o.value) == null ? void 0 : S._id})`,
1006
+ loading: c(p),
946
1007
  onBack: c(t).back
947
1008
  }, {
948
1009
  default: k(() => [
949
- r(b, {
1010
+ s(b, {
950
1011
  "model-value": c(e),
951
- "onUpdate:modelValue": m[0] || (m[0] = (I) => q(e) ? e.value = I : null),
1012
+ "onUpdate:modelValue": f[0] || (f[0] = (D) => E(e) ? e.value = D : null),
952
1013
  class: "mb-6",
953
- items: s
1014
+ items: u
954
1015
  }, null, 8, ["model-value"]),
955
- c(e) ? (g(), x(Y(o.value), L(H({ key: 0 }, {
956
- payoutAccount: l.value,
957
- onUpdate: f
958
- })), null, 16)) : P("", !0)
1016
+ c(e) ? (g(), w(z(l.value), L(H({ key: 0 }, {
1017
+ payoutAccount: o.value,
1018
+ onUpdate: y
1019
+ })), null, 16)) : T("", !0)
959
1020
  ]),
960
1021
  _: 1
961
1022
  }, 8, ["title", "loading", "onBack"]);
@@ -963,5 +1024,5 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
963
1024
  }
964
1025
  });
965
1026
  export {
966
- Ke as default
1027
+ ze as default
967
1028
  };