@feedmepos/mf-payment 1.4.37 → 1.4.39

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 (66) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Bk0JJG8s.js → Actions.vue_vue_type_script_setup_true_lang-Dm9-P1P6.js} +2 -2
  2. package/dist/{Chargeback-DZZPmcw2.js → Chargeback-CF_p5AkJ.js} +5 -5
  3. package/dist/{OnboardForm-b_7rmdp-.js → OnboardForm-B7CkEXGv.js} +4 -4
  4. package/dist/{OnboardForm-L60_og6x.js → OnboardForm-Dsxjljqr.js} +4 -4
  5. package/dist/{OnboardSubmission-iYI21aCU.js → OnboardSubmission-CHRiLayt.js} +5 -5
  6. package/dist/{OnboardSubmission-Jm2Z4N7V.js → OnboardSubmission-DHZ74Q8K.js} +2 -2
  7. package/dist/{PayoutAccount-BOL9rvMj.js → PayoutAccount-B2tLhNCP.js} +5 -5
  8. package/dist/{PayoutAccount-E7QgJudp.js → PayoutAccount-CYbZJGR1.js} +5 -5
  9. package/dist/{PayoutAccountSetting-Dj8cIWno.js → PayoutAccountSetting-Byfhf8vi.js} +288 -274
  10. package/dist/{Restaurant-CMjg9X88.js → Restaurant-BFM6IVeo.js} +4 -4
  11. package/dist/{RestaurantSetting-C66kJwFD.js → RestaurantSetting-CRWzH54g.js} +3 -3
  12. package/dist/{Settlement-BynnBo96.js → Settlement-BVyNw-s_.js} +3 -3
  13. package/dist/{Settlement-BJMsyM2H.js → Settlement-CK5FGMkl.js} +3 -3
  14. package/dist/{SettlementTransactions-DYHTV5Z2.js → SettlementTransactions-B_OHLhd0.js} +4 -4
  15. package/dist/{SettlementTransactions-B7xUY6Xt.js → SettlementTransactions-q8-O_icK.js} +4 -4
  16. package/dist/{Status.vue_vue_type_script_setup_true_lang-DIXUpnkm.js → Status.vue_vue_type_script_setup_true_lang-B_1HKa0E.js} +1 -1
  17. package/dist/{Terminal-B6bEPNGC.js → Terminal-BSmGsSH6.js} +5 -5
  18. package/dist/{TerminalSetting-D1HF1unx.js → TerminalSetting-B70azG2l.js} +3 -3
  19. package/dist/{Transaction-CwIDxvss.js → Transaction-BhnPGXP_.js} +6 -6
  20. package/dist/{Transaction-CA5tb68I.js → Transaction-ycjLL38i.js} +9 -9
  21. package/dist/{TransactionOld-DmqBtUcB.js → TransactionOld-hQw2jPbw.js} +6 -6
  22. package/dist/{app-CQiul24e.js → app-jWqIMlvQ.js} +74 -74
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-T1fUoqNx.js → assets-B1D_MgMU.js} +1 -1
  25. package/dist/{grafana-CJp-OsSI.js → grafana-CpZFM_Is.js} +1 -1
  26. package/dist/{index-B8ejEL5n.js → index-BCwCx3CJ.js} +36 -23
  27. package/dist/{index-B2colhiY.js → index-BOXe3lBY.js} +1 -1
  28. package/dist/{index-BksZxG5X.js → index-CIj4gYaQ.js} +1 -1
  29. package/dist/{index-BBn7cvxH.js → index-Cif5ZVCF.js} +1 -1
  30. package/dist/{index-CRxYHQ1I.js → index-DkkJFPfC.js} +1 -1
  31. package/dist/{index-CfWdUyNi.js → index-U0rV6-CG.js} +2 -2
  32. package/dist/{index-BqTuPkCO.js → index-wMVjSqOV.js} +1 -1
  33. package/dist/{index-OH-SVdfb.js → index-yD13EQmY.js} +1 -1
  34. package/dist/{index.vue_vue_type_script_setup_true_lang-Bb8EC5LM.js → index.vue_vue_type_script_setup_true_lang-BzAMhFiq.js} +1 -1
  35. package/dist/package.json +2 -2
  36. package/dist/{payout-account-CH0Dq0s4.js → payout-account-Bf_SST_W.js} +3 -3
  37. package/dist/{plugins-DfTvOgLR.js → plugins-DJOA7bw1.js} +1 -1
  38. package/dist/stores/payoutAccount.d.ts +16 -16
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
  41. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +42 -36
  42. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +42 -36
  43. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
  44. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
  45. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +42 -36
  46. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  47. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  48. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  49. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  50. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  51. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  52. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  53. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  54. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  55. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  56. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  57. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  58. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  59. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  60. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  61. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  62. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  63. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
  64. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +64 -64
  65. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +32 -32
  66. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { defineComponent as A, resolveComponent as d, openBlock as y, createElementBlock as h, Fragment as R, createElementVNode as i, createVNode as u, withCtx as k, createTextVNode as P, toDisplayString as D, createCommentVNode as U, createBlock as F, ref as T, watch as W, computed as G, unref as o, isRef as E, h as B, onMounted as J, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
2
- import { p as N } from "./index-BksZxG5X.js";
3
- import { u as O, e as S } from "./index-B8ejEL5n.js";
4
- import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
- import { useRouter as ae } from "vue-router";
6
- import { u as j } from "./index-BBn7cvxH.js";
7
- import { P as Q } from "./PDFViewer-DlSCBBxr.js";
8
- import { useSnackbar as Y, components as ne } from "@feedmepos/ui-library";
1
+ import { defineComponent as A, resolveComponent as i, openBlock as y, createElementBlock as S, Fragment as $, createElementVNode as d, createVNode as u, withCtx as V, createTextVNode as P, toDisplayString as M, createCommentVNode as _, createBlock as F, ref as C, watch as ee, computed as K, unref as o, isRef as E, h as O, onMounted as te, resolveDynamicComponent as L, normalizeProps as Z, mergeProps as Q } from "vue";
2
+ import { p as R } from "./index-CIj4gYaQ.js";
3
+ import { u as Y, e as h } from "./index-BCwCx3CJ.js";
4
+ import { _ as le } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
+ import { useRouter as oe } from "vue-router";
6
+ import { u as j } from "./index-Cif5ZVCF.js";
7
+ import { P as X } from "./PDFViewer-DlSCBBxr.js";
8
+ import { useSnackbar as z, components as ue } from "@feedmepos/ui-library";
9
9
  import { u as q } from "./error-K1CakhA9.js";
10
10
  import { z as x, a as w } from "./validator-D5jtpt9A.js";
11
- import { useCoreStore as X } from "@feedmepos/mf-common";
12
- const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
11
+ import { useCoreStore as ae } from "@feedmepos/mf-common";
12
+ const re = { class: "flex gap-16 mb-6" }, se = ["src"], ce = /* @__PURE__ */ A({
13
13
  __name: "Information",
14
14
  props: {
15
15
  payoutAccount: {
@@ -19,35 +19,35 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
19
19
  },
20
20
  setup(n) {
21
21
  return (v, e) => {
22
- const m = d("FmCardHeader"), s = d("FmCardSection"), t = d("FmCard");
23
- return y(), h(R, null, [
24
- i("div", le, [
22
+ const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
23
+ return y(), S($, null, [
24
+ d("div", re, [
25
25
  u(t, {
26
26
  horizontal: "",
27
27
  class: "flex-1 p-6",
28
28
  variant: "elevated"
29
29
  }, {
30
- default: k(() => [
30
+ default: V(() => [
31
31
  u(s, { class: "flex flex-col gap-16 justify-between" }, {
32
- default: k(() => [
32
+ default: V(() => [
33
33
  u(m, {
34
34
  class: "p-0",
35
35
  title: "Account Info",
36
36
  subtitle: ""
37
37
  }),
38
38
  u(s, { class: "p-0" }, {
39
- default: k(() => {
39
+ default: V(() => {
40
40
  var l, p, c, a, r;
41
41
  return [
42
- e[0] || (e[0] = i("b", null, "For", -1)),
43
- P(": " + D((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
44
- e[1] || (e[1] = i("br", null, null, -1)),
45
- e[2] || (e[2] = i("b", null, "Reference", -1)),
46
- P(": " + D((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
47
- e[3] || (e[3] = i("br", null, null, -1)),
48
- e[4] || (e[4] = i("b", null, "Business", -1)),
49
- P(": " + D((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
- e[5] || (e[5] = i("br", null, null, -1))
42
+ e[0] || (e[0] = d("b", null, "For", -1)),
43
+ P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
44
+ e[1] || (e[1] = d("br", null, null, -1)),
45
+ e[2] || (e[2] = d("b", null, "Reference", -1)),
46
+ P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : a.id), 1),
47
+ e[3] || (e[3] = d("br", null, null, -1)),
48
+ e[4] || (e[4] = d("b", null, "Business", -1)),
49
+ P(": " + M((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
+ e[5] || (e[5] = d("br", null, null, -1))
51
51
  ];
52
52
  }),
53
53
  _: 1
@@ -63,27 +63,27 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
63
63
  class: "flex-1 p-6",
64
64
  variant: "elevated"
65
65
  }, {
66
- default: k(() => [
66
+ default: V(() => [
67
67
  u(s, { class: "flex flex-col gap-16 justify-between" }, {
68
- default: k(() => [
68
+ default: V(() => [
69
69
  u(m, {
70
70
  class: "p-0",
71
71
  title: "Key Person",
72
72
  subtitle: ""
73
73
  }),
74
74
  u(s, { class: "p-0" }, {
75
- default: k(() => {
75
+ default: V(() => {
76
76
  var l, p, c, a, r, f, g, b;
77
77
  return [
78
- e[6] || (e[6] = i("b", null, "Email", -1)),
79
- P(": " + D((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
80
- e[7] || (e[7] = i("br", null, null, -1)),
81
- e[8] || (e[8] = i("b", null, "Name", -1)),
82
- P(": " + D((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
83
- e[9] || (e[9] = i("br", null, null, -1)),
84
- e[10] || (e[10] = i("b", null, "Phone", -1)),
85
- P(": " + D((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
86
- e[11] || (e[11] = i("br", null, null, -1))
78
+ e[6] || (e[6] = d("b", null, "Email", -1)),
79
+ P(": " + M((c = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : c.email) + " ", 1),
80
+ e[7] || (e[7] = d("br", null, null, -1)),
81
+ e[8] || (e[8] = d("b", null, "Name", -1)),
82
+ P(": " + M((f = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : f.name), 1),
83
+ e[9] || (e[9] = d("br", null, null, -1)),
84
+ e[10] || (e[10] = d("b", null, "Phone", -1)),
85
+ P(": " + M((b = (g = n.payoutAccount) == null ? void 0 : g.store.keyPerson) == null ? void 0 : b.phone), 1),
86
+ e[11] || (e[11] = d("br", null, null, -1))
87
87
  ];
88
88
  }),
89
89
  _: 1
@@ -95,15 +95,15 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
95
95
  _: 1
96
96
  })
97
97
  ]),
98
- e[12] || (e[12] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
99
- n.payoutAccount.store.exteriorPhoto ? (y(), h("img", {
98
+ e[12] || (e[12] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
99
+ n.payoutAccount.store.exteriorPhoto ? (y(), S("img", {
100
100
  key: 0,
101
101
  src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, oe)) : U("", !0)
102
+ }, null, 8, se)) : _("", !0)
103
103
  ], 64);
104
104
  };
105
105
  }
106
- }), re = { class: "flex gap-16" }, se = { class: "flex-1" }, ce = { class: "flex-1" }, ie = /* @__PURE__ */ A({
106
+ }), ie = { class: "flex gap-16" }, de = { class: "flex-1" }, me = { class: "flex-1" }, pe = /* @__PURE__ */ A({
107
107
  __name: "Settlement",
108
108
  props: {
109
109
  payoutAccount: {
@@ -113,33 +113,33 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
113
113
  },
114
114
  setup(n) {
115
115
  return (v, e) => {
116
- const m = d("FmCardHeader"), s = d("FmCardSection"), t = d("FmCard");
117
- return y(), h(R, null, [
116
+ const m = i("FmCardHeader"), s = i("FmCardSection"), t = i("FmCard");
117
+ return y(), S($, null, [
118
118
  u(t, {
119
119
  horizontal: "",
120
120
  class: "flex-1 p-6 mx-6 mb-6",
121
121
  variant: "elevated"
122
122
  }, {
123
- default: k(() => [
123
+ default: V(() => [
124
124
  u(s, { class: "flex flex-col gap-16 justify-between" }, {
125
- default: k(() => [
125
+ default: V(() => [
126
126
  u(m, {
127
127
  class: "p-0",
128
128
  title: "Bank Info",
129
129
  subtitle: ""
130
130
  }),
131
131
  u(s, { class: "p-0" }, {
132
- default: k(() => {
132
+ default: V(() => {
133
133
  var l, p, c, a, r, f;
134
134
  return [
135
- e[0] || (e[0] = i("b", null, "Bank", -1)),
136
- P(": " + D((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
137
- e[1] || (e[1] = i("br", null, null, -1)),
138
- e[2] || (e[2] = i("b", null, "Name", -1)),
139
- P(": " + D((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
140
- e[3] || (e[3] = i("br", null, null, -1)),
141
- e[4] || (e[4] = i("b", null, "Number", -1)),
142
- P(": " + D((f = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : f.accountNumber), 1)
135
+ e[0] || (e[0] = d("b", null, "Bank", -1)),
136
+ P(": " + M((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
137
+ e[1] || (e[1] = d("br", null, null, -1)),
138
+ e[2] || (e[2] = d("b", null, "Name", -1)),
139
+ P(": " + M((a = (c = n.payoutAccount) == null ? void 0 : c.store.bank) == null ? void 0 : a.holderName), 1),
140
+ e[3] || (e[3] = d("br", null, null, -1)),
141
+ e[4] || (e[4] = d("b", null, "Number", -1)),
142
+ P(": " + M((f = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : f.accountNumber), 1)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -150,65 +150,65 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
150
150
  ]),
151
151
  _: 1
152
152
  }),
153
- i("div", re, [
154
- i("div", se, [
155
- e[5] || (e[5] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
- n.payoutAccount.store.ssm ? (y(), F(Q, {
153
+ d("div", ie, [
154
+ d("div", de, [
155
+ e[5] || (e[5] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
+ n.payoutAccount.store.ssm ? (y(), F(X, {
157
157
  key: 0,
158
158
  pdf: n.payoutAccount.store.ssm,
159
159
  "disable-text-layer": !0,
160
160
  "disable-annotation-layer": !0
161
- }, null, 8, ["pdf"])) : U("", !0)
161
+ }, null, 8, ["pdf"])) : _("", !0)
162
162
  ]),
163
- i("div", ce, [
164
- e[6] || (e[6] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
- n.payoutAccount.store.bankStatement ? (y(), F(Q, {
163
+ d("div", me, [
164
+ e[6] || (e[6] = d("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
+ n.payoutAccount.store.bankStatement ? (y(), F(X, {
166
166
  key: 0,
167
167
  pdf: n.payoutAccount.store.bankStatement,
168
168
  "disable-text-layer": !0,
169
169
  "disable-annotation-layer": !0
170
- }, null, 8, ["pdf"])) : U("", !0)
170
+ }, null, 8, ["pdf"])) : _("", !0)
171
171
  ])
172
172
  ])
173
173
  ], 64);
174
174
  };
175
175
  }
176
- }), de = /* @__PURE__ */ A({
176
+ }), ye = /* @__PURE__ */ A({
177
177
  __name: "RateInput",
178
178
  props: {
179
179
  data: {},
180
180
  onChange: { type: Function }
181
181
  },
182
182
  setup(n) {
183
- const v = n, e = T(v.data.toString());
184
- return W(e, (m) => {
183
+ const v = n, e = C(v.data.toString());
184
+ return ee(e, (m) => {
185
185
  v.onChange(parseFloat(m));
186
186
  }), (m, s) => {
187
- const t = d("FmTextField");
187
+ const t = i("FmTextField");
188
188
  return y(), F(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
191
191
  "onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
192
192
  }, {
193
- append: k(() => s[1] || (s[1] = [
193
+ append: V(() => s[1] || (s[1] = [
194
194
  P("%")
195
195
  ])),
196
196
  _: 1
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), me = /* @__PURE__ */ A({
200
+ }), ve = /* @__PURE__ */ A({
201
201
  __name: "TPlusInput",
202
202
  props: {
203
203
  data: {},
204
204
  onChange: { type: Function }
205
205
  },
206
206
  setup(n) {
207
- const v = n, e = T(v.data.toString());
208
- return W(e, (m) => {
207
+ const v = n, e = C(v.data.toString());
208
+ return ee(e, (m) => {
209
209
  v.onChange(parseInt(m));
210
210
  }), (m, s) => {
211
- const t = d("FmTextField");
211
+ const t = i("FmTextField");
212
212
  return y(), F(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
@@ -216,7 +216,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), pe = { class: "flex gap-16 mt-6" }, ye = { class: "flex-1" }, ve = { class: "flex-1" }, fe = { class: "my-6 w-full flex justify-end" }, ge = { class: "w-[320px]" }, be = /* @__PURE__ */ A({
219
+ }), fe = { class: "flex gap-16 mt-6" }, ge = { class: "flex-1" }, be = { class: "flex-1" }, Fe = { class: "my-6 w-full flex justify-end" }, xe = { class: "w-[320px]" }, we = /* @__PURE__ */ A({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -229,7 +229,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
229
229
  }
230
230
  },
231
231
  setup(n) {
232
- const v = n, e = T(!1), m = Y(), s = async (a) => {
232
+ const v = n, e = C(!1), m = z(), s = async (a) => {
233
233
  try {
234
234
  e.value = !0, await v.onUpdate(a), m.open({
235
235
  type: "success",
@@ -246,10 +246,10 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
246
246
  }
247
247
  }, { search: t } = j({
248
248
  search: ""
249
- }), l = G(() => {
249
+ }), l = K(() => {
250
250
  const { ssm: a, bank: r, bankStatement: f } = v.payoutAccount.store;
251
251
  return a && r && r.name && r.accountNumber && r.holderName && f;
252
- }), p = T(""), c = [
252
+ }), p = C(""), c = [
253
253
  {
254
254
  header: () => "Payment Method",
255
255
  accessorKey: "issuer",
@@ -260,7 +260,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
260
260
  accessorKey: "rate",
261
261
  cell: ({ row: a }) => {
262
262
  let r = 0;
263
- return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(de, {
263
+ return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), O(ye, {
264
264
  data: r,
265
265
  onChange: (f) => {
266
266
  const g = v.payoutAccount.methods.at(a.index);
@@ -275,7 +275,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => B(me, {
278
+ cell: ({ row: a }) => O(ve, {
279
279
  data: a.original.tPlus ?? 0,
280
280
  onChange: (r) => {
281
281
  const f = v.payoutAccount.methods.at(a.index);
@@ -285,16 +285,16 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
285
285
  }
286
286
  ];
287
287
  return (a, r) => {
288
- const f = d("FmRadio"), g = d("FmRadioGroup"), b = d("FmSwitch"), C = d("FmSearch"), M = d("FmTable"), $ = d("FmButton");
289
- return y(), h(R, null, [
290
- i("div", pe, [
291
- i("div", ye, [
288
+ const f = i("FmRadio"), g = i("FmRadioGroup"), b = i("FmSwitch"), I = i("FmSearch"), U = i("FmTable"), T = i("FmButton");
289
+ return y(), S($, null, [
290
+ d("div", fe, [
291
+ d("div", ge, [
292
292
  u(g, {
293
293
  modelValue: n.payoutAccount.status,
294
- "onUpdate:modelValue": r[0] || (r[0] = (V) => n.payoutAccount.status = V),
294
+ "onUpdate:modelValue": r[0] || (r[0] = (k) => n.payoutAccount.status = k),
295
295
  label: "Account Status"
296
296
  }, {
297
- default: k(() => [
297
+ default: V(() => [
298
298
  u(f, {
299
299
  value: "NEW",
300
300
  label: "New"
@@ -311,37 +311,37 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
311
311
  _: 1
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
- i("div", ve, [
314
+ d("div", be, [
315
315
  u(b, {
316
316
  modelValue: n.payoutAccount.enable,
317
- "onUpdate:modelValue": r[1] || (r[1] = (V) => n.payoutAccount.enable = V),
317
+ "onUpdate:modelValue": r[1] || (r[1] = (k) => n.payoutAccount.enable = k),
318
318
  disabled: !l.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 ? (y(), h(R, { key: 0 }, [
325
- i("div", fe, [
326
- i("div", ge, [
327
- u(C, {
324
+ n.payoutAccount.enable ? (y(), S($, { key: 0 }, [
325
+ d("div", Fe, [
326
+ d("div", xe, [
327
+ u(I, {
328
328
  modelValue: o(t),
329
- "onUpdate:modelValue": r[2] || (r[2] = (V) => E(t) ? t.value = V : null),
329
+ "onUpdate:modelValue": r[2] || (r[2] = (k) => E(t) ? t.value = k : null),
330
330
  placeholder: "Search Method ..."
331
331
  }, null, 8, ["modelValue"])
332
332
  ])
333
333
  ]),
334
- u(M, {
334
+ u(U, {
335
335
  class: "mt-6",
336
336
  modelValue: p.value,
337
- "onUpdate:modelValue": r[3] || (r[3] = (V) => p.value = V),
337
+ "onUpdate:modelValue": r[3] || (r[3] = (k) => p.value = k),
338
338
  "shrink-at": !1,
339
339
  "search-value": o(t),
340
340
  "row-data": n.payoutAccount.methods,
341
341
  "column-defs": c
342
342
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
- ], 64)) : U("", !0),
344
- u($, {
343
+ ], 64)) : _("", !0),
344
+ u(T, {
345
345
  class: "w-full mt-6",
346
346
  variant: "primary",
347
347
  label: "Save",
@@ -351,14 +351,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
351
351
  ], 64);
352
352
  };
353
353
  }
354
- }), Fe = { class: "flex" }, xe = /* @__PURE__ */ A({
354
+ }), Ve = { class: "flex" }, ke = /* @__PURE__ */ A({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
357
  setup(n, { emit: v }) {
358
358
  const e = v;
359
359
  return (m, s) => {
360
- const t = d("FmButton");
361
- return y(), h("div", Fe, [
360
+ const t = i("FmButton");
361
+ return y(), S("div", Ve, [
362
362
  u(t, {
363
363
  variant: "plain",
364
364
  "prepend-icon": "delete",
@@ -369,7 +369,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
369
369
  ]);
370
370
  };
371
371
  }
372
- }), we = { class: "flex justify-end px-6 pb-6" }, Ve = /* @__PURE__ */ A({
372
+ }), _e = { class: "flex justify-end px-6 pb-6" }, Ae = /* @__PURE__ */ A({
373
373
  __name: "PaymentChannel",
374
374
  props: {
375
375
  payoutAccount: {
@@ -378,17 +378,17 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
378
378
  }
379
379
  },
380
380
  setup(n) {
381
- const v = Y(), e = n, { isLoading: m, startAsyncCall: s } = O(), t = T([]);
381
+ const v = z(), e = n, { isLoading: m, startAsyncCall: s } = Y(), t = C([]);
382
382
  function l() {
383
383
  s(async () => {
384
- t.value = await N.getChannels(e.payoutAccount._id);
384
+ t.value = await R.getChannels(e.payoutAccount._id);
385
385
  });
386
386
  }
387
- J(l);
387
+ te(l);
388
388
  function p() {
389
389
  s(async () => {
390
390
  try {
391
- await N.updateChannels(e.payoutAccount._id, t.value), v.open({
391
+ await R.updateChannels(e.payoutAccount._id, t.value), v.open({
392
392
  type: "success",
393
393
  title: "Payout account channels update succesfully"
394
394
  });
@@ -404,7 +404,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
404
404
  function c() {
405
405
  s(async () => {
406
406
  try {
407
- await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), v.open({
407
+ await R.resetChannels(e.payoutAccount._id), t.value = await R.getChannels(e.payoutAccount._id), v.open({
408
408
  type: "success",
409
409
  title: "Payout account channels reset succesfully"
410
410
  });
@@ -429,12 +429,12 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
429
429
  {
430
430
  header: () => "Display",
431
431
  accessorKey: "icon",
432
- cell: ({ row: r }) => B("img", { src: r.original.icon, width: 32, height: 32 })
432
+ cell: ({ row: r }) => O("img", { src: r.original.icon, width: 32, height: 32 })
433
433
  },
434
434
  {
435
435
  header: () => "Label",
436
436
  accessorKey: "label",
437
- cell: ({ row: r }) => B(ne.FmTextField, {
437
+ cell: ({ row: r }) => O(ue.FmTextField, {
438
438
  modelValue: r.original.label,
439
439
  "onUpdate:modelValue": (f) => r.original.label = f
440
440
  })
@@ -442,15 +442,15 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: r }) => B(xe, {
445
+ cell: ({ row: r }) => O(ke, {
446
446
  onDelete: () => t.value.splice(r.index, 1)
447
447
  })
448
448
  }
449
449
  ];
450
450
  return (r, f) => {
451
- const g = d("FmButton"), b = d("FmTable");
452
- return y(), h(R, null, [
453
- i("div", we, [
451
+ const g = i("FmButton"), b = i("FmTable");
452
+ return y(), S($, null, [
453
+ d("div", _e, [
454
454
  u(g, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
@@ -476,7 +476,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
476
476
  ], 64);
477
477
  };
478
478
  }
479
- }), ke = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ A({
479
+ }), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ A({
480
480
  __name: "FiuuGateway",
481
481
  props: {
482
482
  gateway: {
@@ -494,19 +494,19 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
494
494
  },
495
495
  setup(n) {
496
496
  var m;
497
- const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
497
+ const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
498
498
  merchantId: "",
499
499
  verifyKey: "",
500
500
  secretKey: ""
501
501
  });
502
502
  return (s, t) => {
503
- const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
503
+ const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
504
504
  return y(), F(c, {
505
505
  ref: "form",
506
506
  class: "flex flex-col gap-16",
507
507
  onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
508
508
  }, {
509
- default: k(() => [
509
+ default: V(() => [
510
510
  u(l, {
511
511
  modelValue: e.value.merchantId,
512
512
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
@@ -525,14 +525,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
525
525
  label: "Secret Key",
526
526
  rules: o(x)(o(w).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
- i("div", ke, [
528
+ d("div", Ce, [
529
529
  n.gateway ? (y(), F(p, {
530
530
  key: 0,
531
531
  class: "flex-1",
532
532
  variant: "secondary",
533
533
  label: "Delete",
534
534
  onclick: () => n.onDelete()
535
- }, null, 8, ["onclick"])) : U("", !0),
535
+ }, null, 8, ["onclick"])) : _("", !0),
536
536
  u(p, {
537
537
  type: "submit",
538
538
  class: "flex-1",
@@ -545,7 +545,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
545
545
  }, 512);
546
546
  };
547
547
  }
548
- }), Ae = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ A({
548
+ }), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
549
549
  __name: "MacauPassGateway",
550
550
  props: {
551
551
  gateway: {
@@ -563,7 +563,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
563
563
  },
564
564
  setup(n) {
565
565
  var m;
566
- const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
566
+ const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
567
567
  merchantId: "",
568
568
  merchantName: "",
569
569
  merchantCategoryCode: "",
@@ -571,13 +571,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
571
571
  storeName: ""
572
572
  });
573
573
  return (s, t) => {
574
- const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
574
+ const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
575
575
  return y(), F(c, {
576
576
  ref: "form",
577
577
  class: "flex flex-col gap-16",
578
578
  onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
579
579
  }, {
580
- default: k(() => [
580
+ default: V(() => [
581
581
  u(l, {
582
582
  modelValue: e.value.merchantId,
583
583
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
@@ -608,14 +608,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
608
608
  label: "Store Name",
609
609
  rules: o(x)(o(w).string())
610
610
  }, null, 8, ["modelValue", "rules"]),
611
- i("div", Ae, [
611
+ d("div", Te, [
612
612
  n.gateway ? (y(), F(p, {
613
613
  key: 0,
614
614
  class: "flex-1",
615
615
  variant: "secondary",
616
616
  label: "Delete",
617
617
  onclick: () => n.onDelete()
618
- }, null, 8, ["onclick"])) : U("", !0),
618
+ }, null, 8, ["onclick"])) : _("", !0),
619
619
  u(p, {
620
620
  type: "submit",
621
621
  class: "flex-1",
@@ -628,7 +628,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
628
628
  }, 512);
629
629
  };
630
630
  }
631
- }), Ue = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ A({
631
+ }), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ A({
632
632
  __name: "DigioGateway",
633
633
  props: {
634
634
  gateway: {
@@ -646,18 +646,18 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
646
646
  },
647
647
  setup(n) {
648
648
  var m;
649
- const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
649
+ const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
650
650
  merchantId: "",
651
651
  cardMerchantId: ""
652
652
  });
653
653
  return (s, t) => {
654
- const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
654
+ const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
655
655
  return y(), F(c, {
656
656
  ref: "form",
657
657
  class: "flex flex-col gap-16",
658
658
  onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
659
659
  }, {
660
- default: k(() => [
660
+ default: V(() => [
661
661
  u(l, {
662
662
  modelValue: e.value.merchantId,
663
663
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
@@ -670,14 +670,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
670
670
  label: "Card Merchant ID",
671
671
  rules: o(x)(o(w).string())
672
672
  }, null, 8, ["modelValue", "rules"]),
673
- i("div", Ue, [
673
+ d("div", Se, [
674
674
  n.gateway ? (y(), F(p, {
675
675
  key: 0,
676
676
  class: "flex-1",
677
677
  variant: "secondary",
678
678
  label: "Delete",
679
679
  onclick: () => n.onDelete()
680
- }, null, 8, ["onclick"])) : U("", !0),
680
+ }, null, 8, ["onclick"])) : _("", !0),
681
681
  u(p, {
682
682
  type: "submit",
683
683
  class: "flex-1",
@@ -690,7 +690,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
690
690
  }, 512);
691
691
  };
692
692
  }
693
- }), Pe = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
693
+ }), Ie = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ A({
694
694
  __name: "AdyenGateway",
695
695
  props: {
696
696
  gateway: {
@@ -708,7 +708,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
708
708
  },
709
709
  setup(n) {
710
710
  var m;
711
- const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
711
+ const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
712
712
  merchantAccount: "",
713
713
  username: "",
714
714
  apiKey: "",
@@ -717,13 +717,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
717
717
  hmacKey: ""
718
718
  });
719
719
  return (s, t) => {
720
- const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
720
+ const l = i("FmTextField"), p = i("FmButton"), c = i("FmForm");
721
721
  return y(), F(c, {
722
722
  ref: "form",
723
723
  class: "flex flex-col gap-16",
724
724
  onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
725
725
  }, {
726
- default: k(() => [
726
+ default: V(() => [
727
727
  u(l, {
728
728
  modelValue: e.value.endpoint,
729
729
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
@@ -759,14 +759,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
759
759
  "onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
760
760
  label: "HMac Key"
761
761
  }, null, 8, ["modelValue"]),
762
- i("div", Pe, [
762
+ d("div", Ie, [
763
763
  n.gateway ? (y(), F(p, {
764
764
  key: 0,
765
765
  class: "flex-1",
766
766
  variant: "secondary",
767
767
  label: "Delete",
768
768
  onclick: () => n.onDelete()
769
- }, null, 8, ["onclick"])) : U("", !0),
769
+ }, null, 8, ["onclick"])) : _("", !0),
770
770
  u(p, {
771
771
  type: "submit",
772
772
  class: "flex-1",
@@ -779,7 +779,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
779
779
  }, 512);
780
780
  };
781
781
  }
782
- }), Se = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ A({
782
+ }), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ A({
783
783
  __name: "KsherGateway",
784
784
  props: {
785
785
  gateway: {
@@ -797,18 +797,18 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
797
797
  },
798
798
  setup(n) {
799
799
  var m;
800
- const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
800
+ const e = C(((m = n.gateway) == null ? void 0 : m.config) || {
801
801
  appId: "",
802
802
  privateKey: ""
803
803
  });
804
804
  return (s, t) => {
805
- const l = d("FmTextField"), p = d("FmTextarea"), c = d("FmButton"), a = d("FmForm");
805
+ const l = i("FmTextField"), p = i("FmTextarea"), c = i("FmButton"), a = i("FmForm");
806
806
  return y(), F(a, {
807
807
  ref: "form",
808
808
  class: "flex flex-col gap-16",
809
809
  onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
810
810
  }, {
811
- default: k(() => [
811
+ default: V(() => [
812
812
  u(l, {
813
813
  modelValue: e.value.appId,
814
814
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
@@ -822,14 +822,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
822
822
  placeholder: "Paste your private key including BEGIN and END markers",
823
823
  rules: o(x)(o(w).string())
824
824
  }, null, 8, ["modelValue", "rules"]),
825
- i("div", Se, [
825
+ d("div", Ne, [
826
826
  n.gateway ? (y(), F(c, {
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"])) : U("", !0),
832
+ }, null, 8, ["onclick"])) : _("", !0),
833
833
  u(c, {
834
834
  type: "submit",
835
835
  class: "flex-1",
@@ -842,13 +842,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
842
842
  }, 512);
843
843
  };
844
844
  }
845
- }), De = {
845
+ }), Re = {
846
846
  key: 0,
847
847
  className: "mt-1 my-6 text-gray-600"
848
- }, Ne = {
848
+ }, Ge = {
849
849
  key: 1,
850
850
  class: "flex items-center justify-center min-h-[80vh]"
851
- }, Me = /* @__PURE__ */ A({
851
+ }, $e = /* @__PURE__ */ A({
852
852
  __name: "PaymentGateway",
853
853
  props: {
854
854
  payoutAccount: {
@@ -857,106 +857,120 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
857
857
  }
858
858
  },
859
859
  setup(n) {
860
- const v = X().currentCountry, e = v.value, m = Y(), { isLoading: s, startAsyncCall: t } = O(), { gatewayTab: l } = j({
860
+ const v = ae().currentCountry, e = v.value, m = z(), { isLoading: s, startAsyncCall: t } = Y(), { gatewayTab: l } = j({
861
861
  gatewayTab: ""
862
862
  }), p = n, c = [
863
863
  {
864
864
  label: "Fiuu",
865
865
  value: "RAZER_MERCHANT_SERVICE",
866
- render: _e,
867
- region: [S.F_COUNTRY.enum.SG]
866
+ render: Ue,
867
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
868
868
  },
869
869
  {
870
870
  label: "Macau Pass",
871
871
  value: "MACAU_PASS",
872
- render: Ce,
873
- region: [S.F_COUNTRY.enum.MO]
872
+ render: he,
873
+ region: [h.F_COUNTRY.enum.MO]
874
874
  },
875
875
  {
876
876
  label: "Digio",
877
877
  value: "DIGIO",
878
- render: Te,
879
- region: [S.F_COUNTRY.enum.TH]
878
+ render: Pe,
879
+ region: [h.F_COUNTRY.enum.TH]
880
880
  },
881
881
  {
882
882
  label: "Ksher",
883
883
  value: "KSHER",
884
- render: Ie,
885
- region: [S.F_COUNTRY.enum.TH]
884
+ render: Me,
885
+ region: [h.F_COUNTRY.enum.TH]
886
886
  },
887
887
  {
888
888
  label: "Adyen",
889
889
  value: "ADYEN",
890
- render: he,
891
- region: [S.F_COUNTRY.enum.SG]
890
+ render: De,
891
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
892
892
  }
893
- ], a = T(
893
+ ], a = C(
894
894
  p.payoutAccount.gateways ?? []
895
- ), r = G(() => c.find((b) => b.value === l.value)), f = G(() => c.filter(
896
- (b) => b.region.includes(v.value ?? S.F_COUNTRY.enum.MY)
895
+ ), r = K(() => c.find((U) => U.value === l.value)), f = K(() => c.filter(
896
+ (U) => U.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
897
897
  ));
898
- async function g(b) {
898
+ async function g(U) {
899
899
  await t(async () => {
900
900
  try {
901
- await N.updateGateway(p.payoutAccount._id, b), m.open({
901
+ await R.updateGateway(p.payoutAccount._id, U), m.open({
902
902
  type: "success",
903
903
  title: "Payout account gateways update succesfully"
904
- });
905
- } catch (C) {
904
+ }), b.value = U.length === 0;
905
+ } catch (T) {
906
906
  m.open({
907
907
  type: "error",
908
908
  title: "Error occurs when updating payout account gateways",
909
- message: q(C)
909
+ message: q(T)
910
910
  });
911
911
  }
912
912
  });
913
913
  }
914
- return (b, C) => {
915
- var V;
916
- const M = d("FmCircularProgress"), $ = d("FmTabs");
917
- return y(), h(R, null, [
918
- o(e) ? (y(), h("p", De, C[1] || (C[1] = [
919
- i("b", null, "Note: ", -1),
914
+ const b = C((p.payoutAccount.gateways ?? []).length === 0), I = K(() => e !== "MY" || !b.value);
915
+ return (U, T) => {
916
+ var B;
917
+ const k = i("FmCircularProgress"), D = i("FmSwitch"), H = i("FmTabs");
918
+ return y(), S($, null, [
919
+ o(e) ? (y(), S("p", Re, T[2] || (T[2] = [
920
+ d("b", null, "Note: ", -1),
920
921
  P(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
921
- ]))) : U("", !0),
922
- o(s) ? (y(), h("div", Ne, [
923
- u(M, { size: "xxl" })
924
- ])) : (y(), F($, {
925
- key: 2,
926
- "model-value": o(l),
927
- "onUpdate:modelValue": C[0] || (C[0] = (_) => E(l) ? l.value = _ : null),
928
- class: "mb-6",
929
- items: f.value
930
- }, null, 8, ["model-value", "items"])),
931
- o(l) ? (y(), F(z((V = r.value) == null ? void 0 : V.render), H(L({ key: 3 }, {
932
- gateway: a.value.find((_) => {
933
- var I;
934
- return _.paymentGateway === ((I = r.value) == null ? void 0 : I.value);
935
- }),
936
- onDelete: async () => {
937
- a.value = a.value.filter((_) => {
938
- var I;
939
- return _.paymentGateway !== ((I = r.value) == null ? void 0 : I.value);
940
- }), g(a.value);
941
- },
942
- onUpdate: (_) => {
943
- var K;
944
- let I = a.value.find(
945
- (ee) => {
946
- var Z;
947
- return ee.paymentGateway === ((Z = r.value) == null ? void 0 : Z.value);
922
+ ]))) : _("", !0),
923
+ o(s) ? (y(), S("div", Ge, [
924
+ u(k, { size: "xxl" })
925
+ ])) : (y(), S($, { key: 2 }, [
926
+ o(e) === "MY" ? (y(), F(D, {
927
+ key: 0,
928
+ modelValue: b.value,
929
+ "onUpdate:modelValue": T[0] || (T[0] = (N) => b.value = N),
930
+ style: { "padding-bottom": "12px" },
931
+ label: "Use FeedMe's Fiuu Account?"
932
+ }, null, 8, ["modelValue"])) : _("", !0),
933
+ I.value ? (y(), F(H, {
934
+ key: 1,
935
+ "model-value": o(l),
936
+ "onUpdate:modelValue": T[1] || (T[1] = (N) => E(l) ? l.value = N : null),
937
+ class: "mb-6",
938
+ items: f.value
939
+ }, null, 8, ["model-value", "items"])) : _("", !0),
940
+ I.value && o(l) ? (y(), F(L((B = r.value) == null ? void 0 : B.render), Z(Q({ key: 2 }, {
941
+ gateway: a.value.find(
942
+ (N) => {
943
+ var G;
944
+ return N.paymentGateway === ((G = r.value) == null ? void 0 : G.value);
948
945
  }
949
- );
950
- I ? I.config = _ : a.value.push({
951
- paymentGateway: (K = r.value) == null ? void 0 : K.value,
952
- config: _
953
- }), g(a.value);
954
- }
955
- })), null, 16)) : U("", !0)
946
+ ),
947
+ onDelete: async () => {
948
+ a.value = a.value.filter(
949
+ (N) => {
950
+ var G;
951
+ return N.paymentGateway !== ((G = r.value) == null ? void 0 : G.value);
952
+ }
953
+ ), g(a.value);
954
+ },
955
+ onUpdate: (N) => {
956
+ var W;
957
+ let G = a.value.find(
958
+ (ne) => {
959
+ var J;
960
+ return ne.paymentGateway === ((J = r.value) == null ? void 0 : J.value);
961
+ }
962
+ );
963
+ G ? G.config = N : a.value.push({
964
+ paymentGateway: (W = r.value) == null ? void 0 : W.value,
965
+ config: N
966
+ }), g(a.value);
967
+ }
968
+ })), null, 16)) : _("", !0)
969
+ ], 64))
956
970
  ], 64);
957
971
  };
958
972
  }
959
- }), Re = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ A({
973
+ }), Ke = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ A({
960
974
  __name: "GooglePayToken",
961
975
  props: {
962
976
  gateway: {
@@ -973,7 +987,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
973
987
  }
974
988
  },
975
989
  setup(n) {
976
- const e = T(
990
+ const e = C(
977
991
  n.gateway || {
978
992
  type: "googlePay",
979
993
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -984,13 +998,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
984
998
  }
985
999
  );
986
1000
  return (m, s) => {
987
- const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
1001
+ const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
988
1002
  return y(), F(p, {
989
1003
  ref: "form",
990
1004
  class: "flex flex-col gap-16",
991
1005
  onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
992
1006
  }, {
993
- default: k(() => [
1007
+ default: V(() => [
994
1008
  u(t, {
995
1009
  modelValue: e.value.gateway,
996
1010
  "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
@@ -1012,14 +1026,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1012
1026
  disabled: !0,
1013
1027
  rules: o(x)(o(w).string())
1014
1028
  }, null, 8, ["modelValue", "rules"]),
1015
- i("div", Re, [
1029
+ d("div", Ke, [
1016
1030
  n.gateway ? (y(), F(l, {
1017
1031
  key: 0,
1018
1032
  class: "flex-1",
1019
1033
  variant: "secondary",
1020
1034
  label: "Delete",
1021
1035
  onclick: () => n.onDelete()
1022
- }, null, 8, ["onclick"])) : U("", !0),
1036
+ }, null, 8, ["onclick"])) : _("", !0),
1023
1037
  u(l, {
1024
1038
  type: "submit",
1025
1039
  class: "flex-1",
@@ -1032,7 +1046,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1032
1046
  }, 512);
1033
1047
  };
1034
1048
  }
1035
- }), Ge = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ A({
1049
+ }), Oe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ A({
1036
1050
  __name: "ApplePayToken",
1037
1051
  props: {
1038
1052
  gateway: {
@@ -1049,7 +1063,7 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1049
1063
  }
1050
1064
  },
1051
1065
  setup(n) {
1052
- const e = T(
1066
+ const e = C(
1053
1067
  n.gateway || {
1054
1068
  type: "applePay",
1055
1069
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -1059,13 +1073,13 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1059
1073
  }
1060
1074
  );
1061
1075
  return (m, s) => {
1062
- const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
1076
+ const t = i("FmTextField"), l = i("FmButton"), p = i("FmForm");
1063
1077
  return y(), F(p, {
1064
1078
  ref: "form",
1065
1079
  class: "flex flex-col gap-16",
1066
1080
  onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
1067
1081
  }, {
1068
- default: k(() => [
1082
+ default: V(() => [
1069
1083
  u(t, {
1070
1084
  modelValue: e.value.gateway,
1071
1085
  "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
@@ -1080,14 +1094,14 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1080
1094
  disabled: !0,
1081
1095
  rules: o(x)(o(w).string())
1082
1096
  }, null, 8, ["modelValue", "rules"]),
1083
- i("div", Ge, [
1097
+ d("div", Oe, [
1084
1098
  n.gateway ? (y(), F(l, {
1085
1099
  key: 0,
1086
1100
  class: "flex-1",
1087
1101
  variant: "secondary",
1088
1102
  label: "Delete",
1089
1103
  onclick: () => n.onDelete()
1090
- }, null, 8, ["onclick"])) : U("", !0),
1104
+ }, null, 8, ["onclick"])) : _("", !0),
1091
1105
  u(l, {
1092
1106
  type: "submit",
1093
1107
  class: "flex-1",
@@ -1100,10 +1114,10 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1100
1114
  }, 512);
1101
1115
  };
1102
1116
  }
1103
- }), Be = {
1117
+ }), Ee = {
1104
1118
  key: 0,
1105
1119
  class: "flex items-center justify-center min-h-[80vh]"
1106
- }, qe = /* @__PURE__ */ A({
1120
+ }, Ye = /* @__PURE__ */ A({
1107
1121
  __name: "TokenGateway",
1108
1122
  props: {
1109
1123
  payoutAccount: {
@@ -1112,30 +1126,30 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1112
1126
  }
1113
1127
  },
1114
1128
  setup(n) {
1115
- const v = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: s } = O(), { tokenTab: t } = j({
1129
+ const v = ae().currentCountry, e = z(), { isLoading: m, startAsyncCall: s } = Y(), { tokenTab: t } = j({
1116
1130
  tokenTab: ""
1117
1131
  }), l = n, p = [
1118
1132
  {
1119
1133
  label: "Google Pay",
1120
1134
  value: "googlePay",
1121
1135
  icon: "android",
1122
- render: $e,
1123
- region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1136
+ render: Be,
1137
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1124
1138
  },
1125
1139
  {
1126
1140
  label: "Apple Pay",
1127
1141
  value: "applePay",
1128
- icon: "apple",
1129
- render: Ke,
1130
- region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1142
+ icon: "iOS",
1143
+ render: qe,
1144
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1131
1145
  }
1132
- ], c = T(l.payoutAccount.tokens ?? []), a = G(() => p.find((g) => g.value === t.value)), r = G(() => p.filter(
1133
- (g) => g.region.includes(v.value ?? S.F_COUNTRY.enum.MY)
1146
+ ], c = C(l.payoutAccount.tokens ?? []), a = K(() => p.find((g) => g.value === t.value)), r = K(() => p.filter(
1147
+ (g) => g.region.includes(v.value ?? h.F_COUNTRY.enum.MY)
1134
1148
  ));
1135
1149
  async function f(g) {
1136
1150
  await s(async () => {
1137
1151
  try {
1138
- await N.updateTokens(l.payoutAccount._id, g), e.open({
1152
+ await R.updateTokens(l.payoutAccount._id, g), e.open({
1139
1153
  type: "success",
1140
1154
  title: "Payout account tokens gateway update succesfully"
1141
1155
  });
@@ -1149,49 +1163,49 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1149
1163
  });
1150
1164
  }
1151
1165
  return (g, b) => {
1152
- var $;
1153
- const C = d("FmCircularProgress"), M = d("FmTabs");
1154
- return y(), h(R, null, [
1155
- b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
1156
- i("b", null, "Note: "),
1166
+ var T;
1167
+ const I = i("FmCircularProgress"), U = i("FmTabs");
1168
+ return y(), S($, null, [
1169
+ b[1] || (b[1] = d("p", { className: "mt-1 my-6 text-gray-600" }, [
1170
+ d("b", null, "Note: "),
1157
1171
  P(" Token gateways appear above other online payment channels to comply with provider branding requirements. Configuration is standardized, so you generally only need to select the provider. "),
1158
- i("br"),
1159
- i("br"),
1160
- i("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. `),
1161
- i("br")
1172
+ d("br"),
1173
+ d("br"),
1174
+ d("b", null, ` Token payments are automatically enabled for "Pay-First" merchants. You do not need to adjust settings here unless you're modifying for a non-Pay-First merchant who wishes to manually enable this feature. `),
1175
+ d("br")
1162
1176
  ], -1)),
1163
- o(m) ? (y(), h("div", Be, [
1164
- u(C, { size: "xxl" })
1165
- ])) : (y(), F(M, {
1177
+ o(m) ? (y(), S("div", Ee, [
1178
+ u(I, { size: "xxl" })
1179
+ ])) : (y(), F(U, {
1166
1180
  key: 1,
1167
1181
  "model-value": o(t),
1168
- "onUpdate:modelValue": b[0] || (b[0] = (V) => E(t) ? t.value = V : null),
1182
+ "onUpdate:modelValue": b[0] || (b[0] = (k) => E(t) ? t.value = k : null),
1169
1183
  class: "mb-6 mt-6",
1170
1184
  items: r.value
1171
1185
  }, null, 8, ["model-value", "items"])),
1172
- o(t) ? (y(), F(z(($ = a.value) == null ? void 0 : $.render), H(L({ key: 2 }, {
1173
- gateway: c.value.find((V) => {
1174
- var _;
1175
- return V.type === ((_ = a.value) == null ? void 0 : _.value);
1186
+ o(t) ? (y(), F(L((T = a.value) == null ? void 0 : T.render), Z(Q({ key: 2 }, {
1187
+ gateway: c.value.find((k) => {
1188
+ var D;
1189
+ return k.type === ((D = a.value) == null ? void 0 : D.value);
1176
1190
  }),
1177
1191
  onDelete: async () => {
1178
- c.value = c.value.filter((V) => {
1179
- var _;
1180
- return V.type !== ((_ = a.value) == null ? void 0 : _.value);
1192
+ c.value = c.value.filter((k) => {
1193
+ var D;
1194
+ return k.type !== ((D = a.value) == null ? void 0 : D.value);
1181
1195
  }), f(c.value);
1182
1196
  },
1183
- onUpdate: (V) => {
1184
- let _ = c.value.find((I) => {
1185
- var K;
1186
- return I.type === ((K = a.value) == null ? void 0 : K.value);
1197
+ onUpdate: (k) => {
1198
+ let D = c.value.find((H) => {
1199
+ var B;
1200
+ return H.type === ((B = a.value) == null ? void 0 : B.value);
1187
1201
  });
1188
- _ ? _.config = V : c.value.push(V), f(c.value);
1202
+ D ? D.config = k : c.value.push(k), f(c.value);
1189
1203
  }
1190
- })), null, 16)) : U("", !0)
1204
+ })), null, 16)) : _("", !0)
1191
1205
  ], 64);
1192
1206
  };
1193
1207
  }
1194
- }), Xe = /* @__PURE__ */ A({
1208
+ }), at = /* @__PURE__ */ A({
1195
1209
  __name: "PayoutAccountSetting",
1196
1210
  props: {
1197
1211
  accountId: {
@@ -1202,80 +1216,80 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1202
1216
  setup(n) {
1203
1217
  const v = n, { tab: e } = j({
1204
1218
  tab: "information"
1205
- }), { isLoading: m, startAsyncCall: s } = O(!0), t = ae(), l = T();
1219
+ }), { isLoading: m, startAsyncCall: s } = Y(!0), t = oe(), l = C();
1206
1220
  async function p(f) {
1207
- await N.updateById(
1221
+ await R.updateById(
1208
1222
  v.accountId,
1209
1223
  f
1210
- ), l.value = await N.readById(v.accountId);
1224
+ ), l.value = await R.readById(v.accountId);
1211
1225
  }
1212
1226
  const c = [
1213
1227
  {
1214
1228
  label: "Information",
1215
1229
  value: "information",
1216
1230
  icon: "overview",
1217
- render: ue
1231
+ render: ce
1218
1232
  },
1219
1233
  {
1220
1234
  label: "Settlement",
1221
1235
  value: "settlement",
1222
1236
  icon: "payments",
1223
- render: ie
1237
+ render: pe
1224
1238
  },
1225
1239
  {
1226
1240
  label: "MDR Status",
1227
1241
  value: "payment",
1228
1242
  icon: "account_box",
1229
- render: be
1243
+ render: we
1230
1244
  },
1231
1245
  {
1232
1246
  label: "Online Gateways",
1233
1247
  icon: "assured_workload",
1234
1248
  value: "gateways",
1235
- render: Me
1249
+ render: $e
1236
1250
  },
1237
1251
  {
1238
1252
  label: "Token Gateways",
1239
1253
  value: "tokens",
1240
1254
  icon: "wallet",
1241
- render: qe
1255
+ render: Ye
1242
1256
  },
1243
1257
  {
1244
1258
  label: "Online Channels",
1245
1259
  icon: "shopping_cart",
1246
1260
  value: "channels",
1247
- render: Ve
1261
+ render: Ae
1248
1262
  }
1249
1263
  ];
1250
1264
  function a() {
1251
1265
  s(async () => {
1252
- l.value = await N.readById(v.accountId);
1266
+ l.value = await R.readById(v.accountId);
1253
1267
  });
1254
1268
  }
1255
- J(a);
1256
- const r = G(() => {
1257
- const f = c.reduce((g, b) => g || (b.children ? b.children.find((C) => C.value === e.value) || null : b.value === e.value ? b : null), null);
1269
+ te(a);
1270
+ const r = K(() => {
1271
+ const f = c.reduce((g, b) => g || (b.children ? b.children.find((I) => I.value === e.value) || null : b.value === e.value ? b : null), null);
1258
1272
  return f == null ? void 0 : f.render;
1259
1273
  });
1260
1274
  return (f, g) => {
1261
- var C;
1262
- const b = d("FmTabs");
1263
- return y(), F(te, {
1264
- title: `Payout Account (${(C = l.value) == null ? void 0 : C._id})`,
1275
+ var I;
1276
+ const b = i("FmTabs");
1277
+ return y(), F(le, {
1278
+ title: `Payout Account (${(I = l.value) == null ? void 0 : I._id})`,
1265
1279
  loading: o(m),
1266
1280
  onBack: o(t).back
1267
1281
  }, {
1268
- default: k(() => [
1282
+ default: V(() => [
1269
1283
  u(b, {
1270
1284
  "model-value": o(e),
1271
- "onUpdate:modelValue": g[0] || (g[0] = (M) => E(e) ? e.value = M : null),
1285
+ "onUpdate:modelValue": g[0] || (g[0] = (U) => E(e) ? e.value = U : null),
1272
1286
  class: "mb-6",
1273
1287
  items: c
1274
1288
  }, null, 8, ["model-value"]),
1275
- o(e) ? (y(), F(z(r.value), H(L({ key: 0 }, {
1289
+ o(e) ? (y(), F(L(r.value), Z(Q({ key: 0 }, {
1276
1290
  payoutAccount: l.value,
1277
1291
  onUpdate: p
1278
- })), null, 16)) : U("", !0)
1292
+ })), null, 16)) : _("", !0)
1279
1293
  ]),
1280
1294
  _: 1
1281
1295
  }, 8, ["title", "loading", "onBack"]);
@@ -1283,5 +1297,5 @@ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
1283
1297
  }
1284
1298
  });
1285
1299
  export {
1286
- Xe as default
1300
+ at as default
1287
1301
  };