@feedmepos/mf-payment 1.4.29 → 1.4.30

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 (48) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CLMalWxE.js → Actions.vue_vue_type_script_setup_true_lang-BbQrewY-.js} +2 -2
  2. package/dist/{Chargeback-_-KfXEVv.js → Chargeback-aEqBy8JJ.js} +5 -5
  3. package/dist/{OnboardForm-DsjxJ5rn.js → OnboardForm-BJwsRXYG.js} +4 -4
  4. package/dist/{OnboardForm-CWMouF7e.js → OnboardForm-DmT0YZuj.js} +4 -4
  5. package/dist/{OnboardSubmission-Bdd38hsp.js → OnboardSubmission-CGIf8JzK.js} +5 -5
  6. package/dist/{OnboardSubmission-CwvVOaj_.js → OnboardSubmission-DiRLFPYG.js} +2 -2
  7. package/dist/{PayoutAccount-YqtpXBBe.js → PayoutAccount-DhdtjmgY.js} +5 -5
  8. package/dist/{PayoutAccount-HhE-cOzl.js → PayoutAccount-UeuXM5Dz.js} +5 -5
  9. package/dist/{PayoutAccountSetting-LxWKmBOI.js → PayoutAccountSetting-DRuXPzN4.js} +370 -301
  10. package/dist/{Restaurant-CiaK6wV9.js → Restaurant-DrRWis75.js} +4 -4
  11. package/dist/{RestaurantSetting-DOcVGjiD.js → RestaurantSetting-DX3raN_M.js} +3 -3
  12. package/dist/{Settlement-CU8BlYx0.js → Settlement-CgBI2X3j.js} +3 -3
  13. package/dist/{Settlement-0g10njYN.js → Settlement-DbwsZtDs.js} +3 -3
  14. package/dist/{SettlementTransactions-G9Q6Bi0g.js → SettlementTransactions-B0o-K3yc.js} +4 -4
  15. package/dist/{SettlementTransactions-DsWWADGe.js → SettlementTransactions-DZMxTrua.js} +4 -4
  16. package/dist/{Status.vue_vue_type_script_setup_true_lang-COp6-_i4.js → Status.vue_vue_type_script_setup_true_lang-uaeTXFw3.js} +1 -1
  17. package/dist/{Terminal-CetdabFy.js → Terminal-DDFHCeRH.js} +5 -5
  18. package/dist/{TerminalSetting-MKI0jupT.js → TerminalSetting-cv-DRAwO.js} +3 -3
  19. package/dist/{Transaction-BBGFc7jF.js → Transaction-B57yQ9nb.js} +9 -9
  20. package/dist/{Transaction-CL0kwjHI.js → Transaction-DhARIJcJ.js} +6 -6
  21. package/dist/{TransactionOld-_tvyK7TV.js → TransactionOld-D4N8x8Hx.js} +6 -6
  22. package/dist/{app-BkzaKCP4.js → app-BJIItHC0.js} +74 -74
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-DCTj0P5R.js → assets-CCpg3NHp.js} +16 -15
  25. package/dist/{grafana-3qKGKghh.js → grafana-DGF5kjUv.js} +1 -1
  26. package/dist/{index-DOv6nss7.js → index-BD5v32CS.js} +2 -2
  27. package/dist/{index-BQwri7nC.js → index-BKME0CUG.js} +1 -1
  28. package/dist/{index-CElp-4g_.js → index-Btev-8WJ.js} +1 -1
  29. package/dist/{index-DOLajImh.js → index-DFjVdPoc.js} +1 -1
  30. package/dist/{index-DvDscxQR.js → index-DbTENTAQ.js} +1 -1
  31. package/dist/{index-C3ZceSMT.js → index-DlKNMBnz.js} +9 -2
  32. package/dist/{index-MQyL_1-a.js → index-UPRcqQ6e.js} +1 -1
  33. package/dist/{index-DrP0JZhQ.js → index-X9HLi63I.js} +1 -1
  34. package/dist/{index.vue_vue_type_script_setup_true_lang-D__Vi_FK.js → index.vue_vue_type_script_setup_true_lang-Doj7ETw7.js} +1 -1
  35. package/dist/package.json +2 -2
  36. package/dist/{payout-account-B378Z3Wv.js → payout-account-D55S1h_Z.js} +3 -3
  37. package/dist/{plugins-BikZSYoK.js → plugins-CjWbnFk3.js} +1 -1
  38. package/dist/stores/payoutAccount.d.ts +12 -0
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +12 -0
  41. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +12 -0
  42. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +12 -0
  43. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +12 -0
  44. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +12 -0
  45. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +12 -0
  46. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +41 -0
  47. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +24 -0
  48. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { defineComponent as C, resolveComponent as d, openBlock as f, createElementBlock as T, Fragment as $, createElementVNode as i, createVNode as u, withCtx as A, createTextVNode as h, toDisplayString as S, createCommentVNode as _, createBlock as w, ref as U, watch as W, computed as G, unref as o, isRef as O, h as R, onMounted as J, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
2
- import { p as D } from "./index-DvDscxQR.js";
3
- import { u as E, e as I } from "./index-C3ZceSMT.js";
1
+ import { defineComponent as _, resolveComponent as i, openBlock as v, createElementBlock as h, Fragment as $, createElementVNode as m, createVNode as u, withCtx as k, createTextVNode as T, toDisplayString as I, createCommentVNode as C, createBlock as x, ref as U, watch as W, computed as G, unref as l, isRef as E, h as M, onMounted as J, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
2
+ import { p as D } from "./index-DbTENTAQ.js";
3
+ import { u as O, e as P } from "./index-DlKNMBnz.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 j } from "./index-DrP0JZhQ.js";
6
+ import { u as j } from "./index-X9HLi63I.js";
7
7
  import { P as Q } from "./PDFViewer-DlSCBBxr.js";
8
8
  import { useSnackbar as Y, components as ae } from "@feedmepos/ui-library";
9
- import { u as B } from "./error-K1CakhA9.js";
10
- import { z as x, a as V } from "./validator-D5jtpt9A.js";
9
+ import { u as R } from "./error-K1CakhA9.js";
10
+ import { z as w, a as V } from "./validator-D5jtpt9A.js";
11
11
  import { useCoreStore as X } from "@feedmepos/mf-common";
12
- const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
12
+ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
13
13
  __name: "Information",
14
14
  props: {
15
15
  payoutAccount: {
@@ -19,35 +19,35 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
19
19
  },
20
20
  setup(n) {
21
21
  return (y, e) => {
22
- const m = d("FmCardHeader"), c = d("FmCardSection"), t = d("FmCard");
23
- return f(), T($, null, [
24
- i("div", ne, [
22
+ const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
23
+ return v(), h($, null, [
24
+ m("div", ne, [
25
25
  u(t, {
26
26
  horizontal: "",
27
27
  class: "flex-1 p-6",
28
28
  variant: "elevated"
29
29
  }, {
30
- default: A(() => [
30
+ default: k(() => [
31
31
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
32
- default: A(() => [
33
- u(m, {
32
+ default: k(() => [
33
+ u(d, {
34
34
  class: "p-0",
35
35
  title: "Account Info",
36
36
  subtitle: ""
37
37
  }),
38
38
  u(c, { class: "p-0" }, {
39
- default: A(() => {
40
- var l, p, s, a, r;
39
+ default: k(() => {
40
+ var o, p, s, a, r;
41
41
  return [
42
- e[0] || (e[0] = i("b", null, "For", -1)),
43
- h(": " + S((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
- h(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.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
- h(": " + S((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
- e[5] || (e[5] = i("br", null, null, -1))
42
+ e[0] || (e[0] = m("b", null, "For", -1)),
43
+ T(": " + I((p = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : p.event) + " ", 1),
44
+ e[1] || (e[1] = m("br", null, null, -1)),
45
+ e[2] || (e[2] = m("b", null, "Reference", -1)),
46
+ T(": " + I((a = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : a.id), 1),
47
+ e[3] || (e[3] = m("br", null, null, -1)),
48
+ e[4] || (e[4] = m("b", null, "Business", -1)),
49
+ T(": " + I((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
+ e[5] || (e[5] = m("br", null, null, -1))
51
51
  ];
52
52
  }),
53
53
  _: 1
@@ -63,27 +63,27 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
63
63
  class: "flex-1 p-6",
64
64
  variant: "elevated"
65
65
  }, {
66
- default: A(() => [
66
+ default: k(() => [
67
67
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
68
- default: A(() => [
69
- u(m, {
68
+ default: k(() => [
69
+ u(d, {
70
70
  class: "p-0",
71
71
  title: "Key Person",
72
72
  subtitle: ""
73
73
  }),
74
74
  u(c, { class: "p-0" }, {
75
- default: A(() => {
76
- var l, p, s, a, r, g, v, b;
75
+ default: k(() => {
76
+ var o, p, s, a, r, g, f, b;
77
77
  return [
78
- e[6] || (e[6] = i("b", null, "Email", -1)),
79
- h(": " + S((s = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : s.email) + " ", 1),
80
- e[7] || (e[7] = i("br", null, null, -1)),
81
- e[8] || (e[8] = i("b", null, "Name", -1)),
82
- h(": " + S((g = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : g.name), 1),
83
- e[9] || (e[9] = i("br", null, null, -1)),
84
- e[10] || (e[10] = i("b", null, "Phone", -1)),
85
- h(": " + S((b = (v = n.payoutAccount) == null ? void 0 : v.store.keyPerson) == null ? void 0 : b.phone), 1),
86
- e[11] || (e[11] = i("br", null, null, -1))
78
+ e[6] || (e[6] = m("b", null, "Email", -1)),
79
+ T(": " + I((s = (p = (o = n.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : p.keyPerson) == null ? void 0 : s.email) + " ", 1),
80
+ e[7] || (e[7] = m("br", null, null, -1)),
81
+ e[8] || (e[8] = m("b", null, "Name", -1)),
82
+ T(": " + I((g = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : g.name), 1),
83
+ e[9] || (e[9] = m("br", null, null, -1)),
84
+ e[10] || (e[10] = m("b", null, "Phone", -1)),
85
+ T(": " + I((b = (f = n.payoutAccount) == null ? void 0 : f.store.keyPerson) == null ? void 0 : b.phone), 1),
86
+ e[11] || (e[11] = m("br", null, null, -1))
87
87
  ];
88
88
  }),
89
89
  _: 1
@@ -95,15 +95,15 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
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 ? (f(), T("img", {
98
+ e[12] || (e[12] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
99
+ n.payoutAccount.store.exteriorPhoto ? (v(), h("img", {
100
100
  key: 0,
101
101
  src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, le)) : _("", !0)
102
+ }, null, 8, le)) : C("", !0)
103
103
  ], 64);
104
104
  };
105
105
  }
106
- }), ue = { class: "flex gap-16" }, re = { class: "flex-1" }, se = { class: "flex-1" }, ce = /* @__PURE__ */ C({
106
+ }), ue = { class: "flex gap-16" }, re = { class: "flex-1" }, se = { class: "flex-1" }, ce = /* @__PURE__ */ _({
107
107
  __name: "Settlement",
108
108
  props: {
109
109
  payoutAccount: {
@@ -113,33 +113,33 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
113
113
  },
114
114
  setup(n) {
115
115
  return (y, e) => {
116
- const m = d("FmCardHeader"), c = d("FmCardSection"), t = d("FmCard");
117
- return f(), T($, null, [
116
+ const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
117
+ return v(), h($, 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: A(() => [
123
+ default: k(() => [
124
124
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
125
- default: A(() => [
126
- u(m, {
125
+ default: k(() => [
126
+ u(d, {
127
127
  class: "p-0",
128
128
  title: "Bank Info",
129
129
  subtitle: ""
130
130
  }),
131
131
  u(c, { class: "p-0" }, {
132
- default: A(() => {
133
- var l, p, s, a, r, g;
132
+ default: k(() => {
133
+ var o, p, s, a, r, g;
134
134
  return [
135
- e[0] || (e[0] = i("b", null, "Bank", -1)),
136
- h(": " + S((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
- h(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.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
- h(": " + S((g = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : g.accountNumber), 1)
135
+ e[0] || (e[0] = m("b", null, "Bank", -1)),
136
+ T(": " + I((p = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : p.name), 1),
137
+ e[1] || (e[1] = m("br", null, null, -1)),
138
+ e[2] || (e[2] = m("b", null, "Name", -1)),
139
+ T(": " + I((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
140
+ e[3] || (e[3] = m("br", null, null, -1)),
141
+ e[4] || (e[4] = m("b", null, "Number", -1)),
142
+ T(": " + I((g = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : g.accountNumber), 1)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -150,30 +150,30 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
150
150
  ]),
151
151
  _: 1
152
152
  }),
153
- i("div", ue, [
154
- i("div", re, [
155
- e[5] || (e[5] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
- n.payoutAccount.store.ssm ? (f(), w(Q, {
153
+ m("div", ue, [
154
+ m("div", re, [
155
+ e[5] || (e[5] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
+ n.payoutAccount.store.ssm ? (v(), x(Q, {
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"])) : _("", !0)
161
+ }, null, 8, ["pdf"])) : C("", !0)
162
162
  ]),
163
- i("div", se, [
164
- e[6] || (e[6] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
- n.payoutAccount.store.bankStatement ? (f(), w(Q, {
163
+ m("div", se, [
164
+ e[6] || (e[6] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
+ n.payoutAccount.store.bankStatement ? (v(), x(Q, {
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"])) : _("", !0)
170
+ }, null, 8, ["pdf"])) : C("", !0)
171
171
  ])
172
172
  ])
173
173
  ], 64);
174
174
  };
175
175
  }
176
- }), ie = /* @__PURE__ */ C({
176
+ }), ie = /* @__PURE__ */ _({
177
177
  __name: "RateInput",
178
178
  props: {
179
179
  data: {},
@@ -181,23 +181,23 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
181
181
  },
182
182
  setup(n) {
183
183
  const y = n, e = U(y.data.toString());
184
- return W(e, (m) => {
185
- y.onChange(parseFloat(m));
186
- }), (m, c) => {
187
- const t = d("FmTextField");
188
- return f(), w(t, {
184
+ return W(e, (d) => {
185
+ y.onChange(parseFloat(d));
186
+ }), (d, c) => {
187
+ const t = i("FmTextField");
188
+ return v(), x(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
191
- "onUpdate:modelValue": c[0] || (c[0] = (l) => e.value = l)
191
+ "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
192
192
  }, {
193
- append: A(() => c[1] || (c[1] = [
194
- h("%")
193
+ append: k(() => c[1] || (c[1] = [
194
+ T("%")
195
195
  ])),
196
196
  _: 1
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), de = /* @__PURE__ */ C({
200
+ }), me = /* @__PURE__ */ _({
201
201
  __name: "TPlusInput",
202
202
  props: {
203
203
  data: {},
@@ -205,18 +205,18 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
205
205
  },
206
206
  setup(n) {
207
207
  const y = n, e = U(y.data.toString());
208
- return W(e, (m) => {
209
- y.onChange(parseInt(m));
210
- }), (m, c) => {
211
- const t = d("FmTextField");
212
- return f(), w(t, {
208
+ return W(e, (d) => {
209
+ y.onChange(parseInt(d));
210
+ }), (d, c) => {
211
+ const t = i("FmTextField");
212
+ return v(), x(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
215
- "onUpdate:modelValue": c[0] || (c[0] = (l) => e.value = l)
215
+ "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), me = { 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__ */ C({
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__ */ _({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -229,24 +229,24 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
229
229
  }
230
230
  },
231
231
  setup(n) {
232
- const y = n, e = U(!1), m = Y(), c = async (a) => {
232
+ const y = n, e = U(!1), d = Y(), c = async (a) => {
233
233
  try {
234
- e.value = !0, await y.onUpdate(a), m.open({
234
+ e.value = !0, await y.onUpdate(a), d.open({
235
235
  type: "success",
236
236
  title: "Payout account update succesfully"
237
237
  });
238
238
  } catch (r) {
239
- m.open({
239
+ d.open({
240
240
  type: "error",
241
241
  title: "Error occurs when updating payout account",
242
- message: B(r)
242
+ message: R(r)
243
243
  });
244
244
  } finally {
245
245
  e.value = !1;
246
246
  }
247
247
  }, { search: t } = j({
248
248
  search: ""
249
- }), l = G(() => {
249
+ }), o = G(() => {
250
250
  const { ssm: a, bank: r, bankStatement: g } = y.payoutAccount.store;
251
251
  return a && r && r.name && r.accountNumber && r.holderName && g;
252
252
  }), p = U(""), s = [
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
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)), R(ie, {
263
+ return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), M(ie, {
264
264
  data: r,
265
265
  onChange: (g) => {
266
- const v = y.payoutAccount.methods.at(a.index);
267
- v.rate || (v.rate = {
266
+ const f = y.payoutAccount.methods.at(a.index);
267
+ f.rate || (f.rate = {
268
268
  amount: 0,
269
269
  precision: 4
270
- }), v.rate.amount = g * Math.pow(10, v.rate.precision);
270
+ }), f.rate.amount = g * Math.pow(10, f.rate.precision);
271
271
  }
272
272
  });
273
273
  }
@@ -275,7 +275,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => R(de, {
278
+ cell: ({ row: a }) => M(me, {
279
279
  data: a.original.tPlus ?? 0,
280
280
  onChange: (r) => {
281
281
  const g = y.payoutAccount.methods.at(a.index);
@@ -285,16 +285,16 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
285
285
  }
286
286
  ];
287
287
  return (a, r) => {
288
- const g = d("FmRadio"), v = d("FmRadioGroup"), b = d("FmSwitch"), P = d("FmSearch"), N = d("FmTable"), M = d("FmButton");
289
- return f(), T($, null, [
290
- i("div", me, [
291
- i("div", pe, [
292
- u(v, {
288
+ const g = i("FmRadio"), f = i("FmRadioGroup"), b = i("FmSwitch"), S = i("FmSearch"), N = i("FmTable"), K = i("FmButton");
289
+ return v(), h($, null, [
290
+ m("div", de, [
291
+ m("div", pe, [
292
+ u(f, {
293
293
  modelValue: n.payoutAccount.status,
294
294
  "onUpdate:modelValue": r[0] || (r[0] = (F) => n.payoutAccount.status = F),
295
295
  label: "Account Status"
296
296
  }, {
297
- default: A(() => [
297
+ default: k(() => [
298
298
  u(g, {
299
299
  value: "NEW",
300
300
  label: "New"
@@ -311,22 +311,22 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
311
311
  _: 1
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
- i("div", ye, [
314
+ m("div", ye, [
315
315
  u(b, {
316
316
  modelValue: n.payoutAccount.enable,
317
317
  "onUpdate:modelValue": r[1] || (r[1] = (F) => n.payoutAccount.enable = F),
318
- disabled: !l.value,
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 ? (f(), T($, { key: 0 }, [
325
- i("div", ve, [
326
- i("div", fe, [
327
- u(P, {
328
- modelValue: o(t),
329
- "onUpdate:modelValue": r[2] || (r[2] = (F) => O(t) ? t.value = F : null),
324
+ n.payoutAccount.enable ? (v(), h($, { key: 0 }, [
325
+ m("div", ve, [
326
+ m("div", fe, [
327
+ u(S, {
328
+ modelValue: l(t),
329
+ "onUpdate:modelValue": r[2] || (r[2] = (F) => E(t) ? t.value = F : null),
330
330
  placeholder: "Search Method ..."
331
331
  }, null, 8, ["modelValue"])
332
332
  ])
@@ -336,12 +336,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
336
336
  modelValue: p.value,
337
337
  "onUpdate:modelValue": r[3] || (r[3] = (F) => p.value = F),
338
338
  "shrink-at": !1,
339
- "search-value": o(t),
339
+ "search-value": l(t),
340
340
  "row-data": n.payoutAccount.methods,
341
341
  "column-defs": s
342
342
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
- ], 64)) : _("", !0),
344
- u(M, {
343
+ ], 64)) : C("", !0),
344
+ u(K, {
345
345
  class: "w-full mt-6",
346
346
  variant: "primary",
347
347
  label: "Save",
@@ -351,25 +351,25 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
351
351
  ], 64);
352
352
  };
353
353
  }
354
- }), be = { class: "flex" }, Fe = /* @__PURE__ */ C({
354
+ }), be = { class: "flex" }, Fe = /* @__PURE__ */ _({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
357
  setup(n, { emit: y }) {
358
358
  const e = y;
359
- return (m, c) => {
360
- const t = d("FmButton");
361
- return f(), T("div", be, [
359
+ return (d, c) => {
360
+ const t = i("FmButton");
361
+ return v(), h("div", be, [
362
362
  u(t, {
363
363
  variant: "plain",
364
364
  "prepend-icon": "delete",
365
- onClick: c[0] || (c[0] = (l) => {
366
- l.stopPropagation(), e("delete");
365
+ onClick: c[0] || (c[0] = (o) => {
366
+ o.stopPropagation(), e("delete");
367
367
  })
368
368
  })
369
369
  ]);
370
370
  };
371
371
  }
372
- }), we = { class: "flex justify-end px-6 pb-6" }, xe = /* @__PURE__ */ C({
372
+ }), xe = { class: "flex justify-end px-6 pb-6" }, we = /* @__PURE__ */ _({
373
373
  __name: "PaymentChannel",
374
374
  props: {
375
375
  payoutAccount: {
@@ -378,13 +378,13 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
378
378
  }
379
379
  },
380
380
  setup(n) {
381
- const y = Y(), e = n, { isLoading: m, startAsyncCall: c } = E(), t = U([]);
382
- function l() {
381
+ const y = Y(), e = n, { isLoading: d, startAsyncCall: c } = O(), t = U([]);
382
+ function o() {
383
383
  c(async () => {
384
384
  t.value = await D.getChannels(e.payoutAccount._id);
385
385
  });
386
386
  }
387
- J(l);
387
+ J(o);
388
388
  function p() {
389
389
  c(async () => {
390
390
  try {
@@ -396,7 +396,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
396
396
  y.open({
397
397
  type: "error",
398
398
  title: "Error occurs when updating payout account channels",
399
- message: B(r)
399
+ message: R(r)
400
400
  });
401
401
  }
402
402
  });
@@ -412,7 +412,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
412
412
  y.open({
413
413
  type: "error",
414
414
  title: "Error occurs when reset payout account channels",
415
- message: B(r)
415
+ message: R(r)
416
416
  });
417
417
  }
418
418
  });
@@ -429,12 +429,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
429
429
  {
430
430
  header: () => "Display",
431
431
  accessorKey: "icon",
432
- cell: ({ row: r }) => R("img", { src: r.original.icon, width: 32, height: 32 })
432
+ cell: ({ row: r }) => M("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 }) => R(ae.FmTextField, {
437
+ cell: ({ row: r }) => M(ae.FmTextField, {
438
438
  modelValue: r.original.label,
439
439
  "onUpdate:modelValue": (g) => r.original.label = g
440
440
  })
@@ -442,16 +442,16 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: r }) => R(Fe, {
445
+ cell: ({ row: r }) => M(Fe, {
446
446
  onDelete: () => t.value.splice(r.index, 1)
447
447
  })
448
448
  }
449
449
  ];
450
450
  return (r, g) => {
451
- const v = d("FmButton"), b = d("FmTable");
452
- return f(), T($, null, [
453
- i("div", we, [
454
- u(v, {
451
+ const f = i("FmButton"), b = i("FmTable");
452
+ return v(), h($, null, [
453
+ m("div", xe, [
454
+ u(f, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
457
457
  size: "md",
@@ -459,7 +459,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
459
459
  label: "Reset",
460
460
  onClick: s
461
461
  }),
462
- u(v, {
462
+ u(f, {
463
463
  variant: "primary",
464
464
  size: "md",
465
465
  icon: "save",
@@ -468,7 +468,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
468
468
  })
469
469
  ]),
470
470
  u(b, {
471
- loading: o(m),
471
+ loading: l(d),
472
472
  "row-data": t.value,
473
473
  "column-defs": a,
474
474
  "shrink-at": !1
@@ -476,7 +476,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
476
476
  ], 64);
477
477
  };
478
478
  }
479
- }), Ve = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ C({
479
+ }), Ve = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ _({
480
480
  __name: "FiuuGateway",
481
481
  props: {
482
482
  gateway: {
@@ -493,46 +493,46 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
493
493
  }
494
494
  },
495
495
  setup(n) {
496
- var m;
497
- const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
496
+ var d;
497
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
498
498
  merchantId: "",
499
499
  verifyKey: "",
500
500
  secretKey: ""
501
501
  });
502
502
  return (c, t) => {
503
- const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
504
- return f(), w(s, {
503
+ const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
504
+ return v(), x(s, {
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: A(() => [
510
- u(l, {
509
+ default: k(() => [
510
+ u(o, {
511
511
  modelValue: e.value.merchantId,
512
512
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
513
513
  label: "Merchant ID",
514
- rules: o(x)(o(V).string())
514
+ rules: l(w)(l(V).string())
515
515
  }, null, 8, ["modelValue", "rules"]),
516
- u(l, {
516
+ u(o, {
517
517
  modelValue: e.value.verifyKey,
518
518
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
519
519
  label: "Verify Key",
520
- rules: o(x)(o(V).string())
520
+ rules: l(w)(l(V).string())
521
521
  }, null, 8, ["modelValue", "rules"]),
522
- u(l, {
522
+ u(o, {
523
523
  modelValue: e.value.secretKey,
524
524
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
525
525
  label: "Secret Key",
526
- rules: o(x)(o(V).string())
526
+ rules: l(w)(l(V).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
- i("div", Ve, [
529
- n.gateway ? (f(), w(p, {
528
+ m("div", Ve, [
529
+ n.gateway ? (v(), x(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"])) : _("", !0),
535
+ }, null, 8, ["onclick"])) : C("", !0),
536
536
  u(p, {
537
537
  type: "submit",
538
538
  class: "flex-1",
@@ -545,7 +545,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
545
545
  }, 512);
546
546
  };
547
547
  }
548
- }), Ae = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ C({
548
+ }), Ae = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ _({
549
549
  __name: "MacauPassGateway",
550
550
  props: {
551
551
  gateway: {
@@ -562,8 +562,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
562
562
  }
563
563
  },
564
564
  setup(n) {
565
- var m;
566
- const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
565
+ var d;
566
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
567
567
  merchantId: "",
568
568
  merchantName: "",
569
569
  merchantCategoryCode: "",
@@ -571,51 +571,51 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
571
571
  storeName: ""
572
572
  });
573
573
  return (c, t) => {
574
- const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
575
- return f(), w(s, {
574
+ const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
575
+ return v(), x(s, {
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: A(() => [
581
- u(l, {
580
+ default: k(() => [
581
+ u(o, {
582
582
  modelValue: e.value.merchantId,
583
583
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
584
584
  label: "Merchant ID",
585
- rules: o(x)(o(V).string())
585
+ rules: l(w)(l(V).string())
586
586
  }, null, 8, ["modelValue", "rules"]),
587
- u(l, {
587
+ u(o, {
588
588
  modelValue: e.value.merchantName,
589
589
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
590
590
  label: "Merchant Name",
591
- rules: o(x)(o(V).string())
591
+ rules: l(w)(l(V).string())
592
592
  }, null, 8, ["modelValue", "rules"]),
593
- u(l, {
593
+ u(o, {
594
594
  modelValue: e.value.merchantCategoryCode,
595
595
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
596
596
  label: "Merchant MCC",
597
- rules: o(x)(o(V).string())
597
+ rules: l(w)(l(V).string())
598
598
  }, null, 8, ["modelValue", "rules"]),
599
- u(l, {
599
+ u(o, {
600
600
  modelValue: e.value.storeID,
601
601
  "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
602
602
  label: "Store ID",
603
- rules: o(x)(o(V).string())
603
+ rules: l(w)(l(V).string())
604
604
  }, null, 8, ["modelValue", "rules"]),
605
- u(l, {
605
+ u(o, {
606
606
  modelValue: e.value.storeName,
607
607
  "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
608
608
  label: "Store Name",
609
- rules: o(x)(o(V).string())
609
+ rules: l(w)(l(V).string())
610
610
  }, null, 8, ["modelValue", "rules"]),
611
- i("div", Ae, [
612
- n.gateway ? (f(), w(p, {
611
+ m("div", Ae, [
612
+ n.gateway ? (v(), x(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"])) : _("", !0),
618
+ }, null, 8, ["onclick"])) : C("", !0),
619
619
  u(p, {
620
620
  type: "submit",
621
621
  class: "flex-1",
@@ -628,7 +628,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
628
628
  }, 512);
629
629
  };
630
630
  }
631
- }), _e = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ C({
631
+ }), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ _({
632
632
  __name: "DigioGateway",
633
633
  props: {
634
634
  gateway: {
@@ -645,39 +645,39 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
645
645
  }
646
646
  },
647
647
  setup(n) {
648
- var m;
649
- const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
648
+ var d;
649
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
650
650
  merchantId: "",
651
651
  cardMerchantId: ""
652
652
  });
653
653
  return (c, t) => {
654
- const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
655
- return f(), w(s, {
654
+ const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
655
+ return v(), x(s, {
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: A(() => [
661
- u(l, {
660
+ default: k(() => [
661
+ u(o, {
662
662
  modelValue: e.value.merchantId,
663
663
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
664
664
  label: "Merchant ID",
665
- rules: o(x)(o(V).string())
665
+ rules: l(w)(l(V).string())
666
666
  }, null, 8, ["modelValue", "rules"]),
667
- u(l, {
667
+ u(o, {
668
668
  modelValue: e.value.cardMerchantId,
669
669
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
670
670
  label: "Card Merchant ID",
671
- rules: o(x)(o(V).string())
671
+ rules: l(w)(l(V).string())
672
672
  }, null, 8, ["modelValue", "rules"]),
673
- i("div", _e, [
674
- n.gateway ? (f(), w(p, {
673
+ m("div", Ce, [
674
+ n.gateway ? (v(), x(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"])) : _("", !0),
680
+ }, null, 8, ["onclick"])) : C("", !0),
681
681
  u(p, {
682
682
  type: "submit",
683
683
  class: "flex-1",
@@ -690,7 +690,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
690
690
  }, 512);
691
691
  };
692
692
  }
693
- }), he = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ C({
693
+ }), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ _({
694
694
  __name: "AdyenGateway",
695
695
  props: {
696
696
  gateway: {
@@ -707,8 +707,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
707
707
  }
708
708
  },
709
709
  setup(n) {
710
- var m;
711
- const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
710
+ var d;
711
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
712
712
  merchantAccount: "",
713
713
  username: "",
714
714
  apiKey: "",
@@ -717,56 +717,56 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
717
717
  hmacKey: ""
718
718
  });
719
719
  return (c, t) => {
720
- const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
721
- return f(), w(s, {
720
+ const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
721
+ return v(), x(s, {
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: A(() => [
727
- u(l, {
726
+ default: k(() => [
727
+ u(o, {
728
728
  modelValue: e.value.endpoint,
729
729
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
730
730
  label: "Endpoint",
731
- rules: o(x)(o(V).string())
731
+ rules: l(w)(l(V).string())
732
732
  }, null, 8, ["modelValue", "rules"]),
733
- u(l, {
733
+ u(o, {
734
734
  modelValue: e.value.merchantAccount,
735
735
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
736
736
  label: "Merchant Account",
737
- rules: o(x)(o(V).string())
737
+ rules: l(w)(l(V).string())
738
738
  }, null, 8, ["modelValue", "rules"]),
739
- u(l, {
739
+ u(o, {
740
740
  modelValue: e.value.username,
741
741
  "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
742
742
  label: "Username",
743
- rules: o(x)(o(V).string())
743
+ rules: l(w)(l(V).string())
744
744
  }, null, 8, ["modelValue", "rules"]),
745
- u(l, {
745
+ u(o, {
746
746
  modelValue: e.value.apiKey,
747
747
  "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
748
748
  label: "API Key",
749
- rules: o(x)(o(V).string())
749
+ rules: l(w)(l(V).string())
750
750
  }, null, 8, ["modelValue", "rules"]),
751
- u(l, {
751
+ u(o, {
752
752
  modelValue: e.value.clientKey,
753
753
  "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
754
754
  label: "Client Key",
755
- rules: o(x)(o(V).string())
755
+ rules: l(w)(l(V).string())
756
756
  }, null, 8, ["modelValue", "rules"]),
757
- u(l, {
757
+ u(o, {
758
758
  modelValue: e.value.hmacKey,
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", he, [
763
- n.gateway ? (f(), w(p, {
762
+ m("div", Te, [
763
+ n.gateway ? (v(), x(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"])) : _("", !0),
769
+ }, null, 8, ["onclick"])) : C("", !0),
770
770
  u(p, {
771
771
  type: "submit",
772
772
  class: "flex-1",
@@ -779,13 +779,76 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
779
779
  }, 512);
780
780
  };
781
781
  }
782
- }), Pe = {
782
+ }), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ _({
783
+ __name: "KsherGateway",
784
+ props: {
785
+ gateway: {
786
+ type: Object,
787
+ required: !0
788
+ },
789
+ onUpdate: {
790
+ type: Function,
791
+ required: !0
792
+ },
793
+ onDelete: {
794
+ type: Function,
795
+ required: !0
796
+ }
797
+ },
798
+ setup(n) {
799
+ var d;
800
+ const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
801
+ appId: "",
802
+ privateKey: ""
803
+ });
804
+ return (c, t) => {
805
+ const o = i("FmTextField"), p = i("FmTextarea"), s = i("FmButton"), a = i("FmForm");
806
+ return v(), x(a, {
807
+ ref: "form",
808
+ class: "flex flex-col gap-16",
809
+ onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
810
+ }, {
811
+ default: k(() => [
812
+ u(o, {
813
+ modelValue: e.value.appId,
814
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
815
+ label: "App ID",
816
+ rules: l(w)(l(V).string())
817
+ }, null, 8, ["modelValue", "rules"]),
818
+ u(p, {
819
+ modelValue: e.value.privateKey,
820
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.privateKey = r),
821
+ label: "Private Key",
822
+ placeholder: "Paste your private key including BEGIN and END markers",
823
+ rules: l(w)(l(V).string())
824
+ }, null, 8, ["modelValue", "rules"]),
825
+ m("div", Se, [
826
+ n.gateway ? (v(), x(s, {
827
+ key: 0,
828
+ class: "flex-1",
829
+ variant: "secondary",
830
+ label: "Delete",
831
+ onclick: () => n.onDelete()
832
+ }, null, 8, ["onclick"])) : C("", !0),
833
+ u(s, {
834
+ type: "submit",
835
+ class: "flex-1",
836
+ variant: "primary",
837
+ label: "Save"
838
+ })
839
+ ])
840
+ ]),
841
+ _: 1
842
+ }, 512);
843
+ };
844
+ }
845
+ }), Ie = {
783
846
  key: 0,
784
847
  className: "mt-1 my-6 text-gray-600"
785
- }, Se = {
848
+ }, De = {
786
849
  key: 1,
787
850
  class: "flex items-center justify-center min-h-[80vh]"
788
- }, Ie = /* @__PURE__ */ C({
851
+ }, Ne = /* @__PURE__ */ _({
789
852
  __name: "PaymentGateway",
790
853
  props: {
791
854
  payoutAccount: {
@@ -794,38 +857,44 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
794
857
  }
795
858
  },
796
859
  setup(n) {
797
- const y = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: c } = E(), { gatewayTab: t } = j({
860
+ const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { gatewayTab: t } = j({
798
861
  gatewayTab: ""
799
- }), l = n, p = [
862
+ }), o = n, p = [
800
863
  {
801
864
  label: "Fiuu",
802
865
  value: "RAZER_MERCHANT_SERVICE",
803
866
  render: ke,
804
- region: [I.F_COUNTRY.enum.SG]
867
+ region: [P.F_COUNTRY.enum.SG]
805
868
  },
806
869
  {
807
870
  label: "Macau Pass",
808
871
  value: "MACAU_PASS",
809
- render: Ce,
810
- region: [I.F_COUNTRY.enum.MO]
872
+ render: _e,
873
+ region: [P.F_COUNTRY.enum.MO]
811
874
  },
812
875
  {
813
876
  label: "Digio",
814
877
  value: "DIGIO",
815
878
  render: Ue,
816
- region: [I.F_COUNTRY.enum.TH]
879
+ region: [P.F_COUNTRY.enum.TH]
880
+ },
881
+ {
882
+ label: "Ksher",
883
+ value: "KSHER",
884
+ render: Pe,
885
+ region: [P.F_COUNTRY.enum.TH]
817
886
  },
818
887
  {
819
888
  label: "Adyen",
820
889
  value: "ADYEN",
821
- render: Te,
822
- region: [I.F_COUNTRY.enum.SG]
890
+ render: he,
891
+ region: [P.F_COUNTRY.enum.SG]
823
892
  }
824
- ], s = U(l.payoutAccount.gateways ?? []), a = G(() => p.find((v) => v.value === t.value)), r = G(() => p.filter((v) => v.region.includes(y.value ?? I.F_COUNTRY.enum.MY)));
825
- async function g(v) {
893
+ ], s = U(o.payoutAccount.gateways ?? []), a = G(() => p.find((f) => f.value === t.value)), r = G(() => p.filter((f) => f.region.includes(y.value ?? P.F_COUNTRY.enum.MY)));
894
+ async function g(f) {
826
895
  await c(async () => {
827
896
  try {
828
- await D.updateGateway(l.payoutAccount._id, v), e.open({
897
+ await D.updateGateway(o.payoutAccount._id, f), e.open({
829
898
  type: "success",
830
899
  title: "Payout account gateways update succesfully"
831
900
  });
@@ -833,55 +902,55 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
833
902
  e.open({
834
903
  type: "error",
835
904
  title: "Error occurs when updating payout account gateways",
836
- message: B(b)
905
+ message: R(b)
837
906
  });
838
907
  }
839
908
  });
840
909
  }
841
- return (v, b) => {
842
- var M;
843
- const P = d("FmCircularProgress"), N = d("FmTabs");
844
- return f(), T($, null, [
845
- o(y).value === o(I.F_COUNTRY).enum.MY ? (f(), T("p", Pe, b[1] || (b[1] = [
846
- i("b", null, "Note: ", -1),
847
- h(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
848
- ]))) : _("", !0),
849
- o(m) ? (f(), T("div", Se, [
850
- u(P, { size: "xxl" })
851
- ])) : (f(), w(N, {
910
+ return (f, b) => {
911
+ var K;
912
+ const S = i("FmCircularProgress"), N = i("FmTabs");
913
+ return v(), h($, null, [
914
+ l(y).value === l(P.F_COUNTRY).enum.MY ? (v(), h("p", Ie, b[1] || (b[1] = [
915
+ m("b", null, "Note: ", -1),
916
+ T(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
917
+ ]))) : C("", !0),
918
+ l(d) ? (v(), h("div", De, [
919
+ u(S, { size: "xxl" })
920
+ ])) : (v(), x(N, {
852
921
  key: 2,
853
- "model-value": o(t),
854
- "onUpdate:modelValue": b[0] || (b[0] = (F) => O(t) ? t.value = F : null),
922
+ "model-value": l(t),
923
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
855
924
  class: "mb-6",
856
925
  items: r.value
857
926
  }, null, 8, ["model-value", "items"])),
858
- o(t) ? (f(), w(z((M = a.value) == null ? void 0 : M.render), H(L({ key: 3 }, {
927
+ l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 3 }, {
859
928
  gateway: s.value.find((F) => {
860
- var k;
861
- return F.paymentGateway === ((k = a.value) == null ? void 0 : k.value);
929
+ var A;
930
+ return F.paymentGateway === ((A = a.value) == null ? void 0 : A.value);
862
931
  }),
863
932
  onDelete: async () => {
864
933
  s.value = s.value.filter((F) => {
865
- var k;
866
- return F.paymentGateway !== ((k = a.value) == null ? void 0 : k.value);
934
+ var A;
935
+ return F.paymentGateway !== ((A = a.value) == null ? void 0 : A.value);
867
936
  }), g(s.value);
868
937
  },
869
938
  onUpdate: (F) => {
870
- var K;
871
- let k = s.value.find((q) => {
939
+ var B;
940
+ let A = s.value.find((q) => {
872
941
  var Z;
873
942
  return q.paymentGateway === ((Z = a.value) == null ? void 0 : Z.value);
874
943
  });
875
- k ? k.config = F : s.value.push({
876
- paymentGateway: (K = a.value) == null ? void 0 : K.value,
944
+ A ? A.config = F : s.value.push({
945
+ paymentGateway: (B = a.value) == null ? void 0 : B.value,
877
946
  config: F
878
947
  }), g(s.value);
879
948
  }
880
- })), null, 16)) : _("", !0)
949
+ })), null, 16)) : C("", !0)
881
950
  ], 64);
882
951
  };
883
952
  }
884
- }), De = { class: "flex mt-6 space-x-6" }, Ne = /* @__PURE__ */ C({
953
+ }), Ke = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ _({
885
954
  __name: "GooglePayToken",
886
955
  props: {
887
956
  gateway: {
@@ -907,44 +976,44 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
907
976
  gatewayMerchantId: "molpay"
908
977
  }
909
978
  });
910
- return (m, c) => {
911
- const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
912
- return f(), w(p, {
979
+ return (d, c) => {
980
+ const t = i("FmTextField"), o = i("FmButton"), p = i("FmForm");
981
+ return v(), x(p, {
913
982
  ref: "form",
914
983
  class: "flex flex-col gap-16",
915
984
  onValidationSuccess: c[3] || (c[3] = () => n.onUpdate(e.value))
916
985
  }, {
917
- default: A(() => [
986
+ default: k(() => [
918
987
  u(t, {
919
988
  modelValue: e.value.gateway,
920
989
  "onUpdate:modelValue": c[0] || (c[0] = (s) => e.value.gateway = s),
921
990
  label: "Gateway",
922
991
  disabled: !0,
923
- rules: o(x)(o(V).string())
992
+ rules: l(w)(l(V).string())
924
993
  }, null, 8, ["modelValue", "rules"]),
925
994
  u(t, {
926
995
  modelValue: e.value.config.gateway,
927
996
  "onUpdate:modelValue": c[1] || (c[1] = (s) => e.value.config.gateway = s),
928
997
  label: "Gateway ID",
929
998
  disabled: !0,
930
- rules: o(x)(o(V).string())
999
+ rules: l(w)(l(V).string())
931
1000
  }, null, 8, ["modelValue", "rules"]),
932
1001
  u(t, {
933
1002
  modelValue: e.value.config.gateway,
934
1003
  "onUpdate:modelValue": c[2] || (c[2] = (s) => e.value.config.gateway = s),
935
1004
  label: "Gateway Merchant ID",
936
1005
  disabled: !0,
937
- rules: o(x)(o(V).string())
1006
+ rules: l(w)(l(V).string())
938
1007
  }, null, 8, ["modelValue", "rules"]),
939
- i("div", De, [
940
- n.gateway ? (f(), w(l, {
1008
+ m("div", Ke, [
1009
+ n.gateway ? (v(), x(o, {
941
1010
  key: 0,
942
1011
  class: "flex-1",
943
1012
  variant: "secondary",
944
1013
  label: "Delete",
945
1014
  onclick: () => n.onDelete()
946
- }, null, 8, ["onclick"])) : _("", !0),
947
- u(l, {
1015
+ }, null, 8, ["onclick"])) : C("", !0),
1016
+ u(o, {
948
1017
  type: "submit",
949
1018
  class: "flex-1",
950
1019
  variant: "primary",
@@ -956,10 +1025,10 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
956
1025
  }, 512);
957
1026
  };
958
1027
  }
959
- }), Me = {
1028
+ }), Ge = {
960
1029
  key: 0,
961
1030
  class: "flex items-center justify-center min-h-[80vh]"
962
- }, $e = /* @__PURE__ */ C({
1031
+ }, Me = /* @__PURE__ */ _({
963
1032
  __name: "TokenGateway",
964
1033
  props: {
965
1034
  payoutAccount: {
@@ -968,21 +1037,21 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
968
1037
  }
969
1038
  },
970
1039
  setup(n) {
971
- const y = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: c } = E(), { tokenTab: t } = j({
1040
+ const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { tokenTab: t } = j({
972
1041
  tokenTab: ""
973
- }), l = n, p = [
1042
+ }), o = n, p = [
974
1043
  {
975
1044
  label: "Google Pay",
976
1045
  value: "googlePay",
977
1046
  icon: "android",
978
- render: Ne,
979
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
1047
+ render: $e,
1048
+ region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
980
1049
  }
981
- ], s = U(l.payoutAccount.tokens ?? []), a = G(() => p.find((v) => v.value === t.value)), r = G(() => p.filter((v) => v.region.includes(y.value ?? I.F_COUNTRY.enum.MY)));
982
- async function g(v) {
1050
+ ], s = U(o.payoutAccount.tokens ?? []), a = G(() => p.find((f) => f.value === t.value)), r = G(() => p.filter((f) => f.region.includes(y.value ?? P.F_COUNTRY.enum.MY)));
1051
+ async function g(f) {
983
1052
  await c(async () => {
984
1053
  try {
985
- await D.updateTokens(l.payoutAccount._id, v), e.open({
1054
+ await D.updateTokens(o.payoutAccount._id, f), e.open({
986
1055
  type: "success",
987
1056
  title: "Payout account tokens gateway update succesfully"
988
1057
  });
@@ -990,51 +1059,51 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
990
1059
  e.open({
991
1060
  type: "error",
992
1061
  title: "Error occurs when updating payout account tokens",
993
- message: B(b)
1062
+ message: R(b)
994
1063
  });
995
1064
  }
996
1065
  });
997
1066
  }
998
- return (v, b) => {
999
- var M;
1000
- const P = d("FmCircularProgress"), N = d("FmTabs");
1001
- return f(), T($, null, [
1002
- b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
1003
- i("b", null, "Note: "),
1004
- h(" 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. ")
1067
+ return (f, b) => {
1068
+ var K;
1069
+ const S = i("FmCircularProgress"), N = i("FmTabs");
1070
+ return v(), h($, null, [
1071
+ b[1] || (b[1] = m("p", { className: "mt-1 my-6 text-gray-600" }, [
1072
+ m("b", null, "Note: "),
1073
+ T(" 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. ")
1005
1074
  ], -1)),
1006
- o(m) ? (f(), T("div", Me, [
1007
- u(P, { size: "xxl" })
1008
- ])) : (f(), w(N, {
1075
+ l(d) ? (v(), h("div", Ge, [
1076
+ u(S, { size: "xxl" })
1077
+ ])) : (v(), x(N, {
1009
1078
  key: 1,
1010
- "model-value": o(t),
1011
- "onUpdate:modelValue": b[0] || (b[0] = (F) => O(t) ? t.value = F : null),
1079
+ "model-value": l(t),
1080
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
1012
1081
  class: "mb-6",
1013
1082
  items: r.value
1014
1083
  }, null, 8, ["model-value", "items"])),
1015
- o(t) ? (f(), w(z((M = a.value) == null ? void 0 : M.render), H(L({ key: 2 }, {
1084
+ l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 2 }, {
1016
1085
  gateway: s.value.find((F) => {
1017
- var k;
1018
- return F.type === ((k = a.value) == null ? void 0 : k.value);
1086
+ var A;
1087
+ return F.type === ((A = a.value) == null ? void 0 : A.value);
1019
1088
  }),
1020
1089
  onDelete: async () => {
1021
1090
  s.value = s.value.filter((F) => {
1022
- var k;
1023
- return F.type !== ((k = a.value) == null ? void 0 : k.value);
1091
+ var A;
1092
+ return F.type !== ((A = a.value) == null ? void 0 : A.value);
1024
1093
  }), g(s.value);
1025
1094
  },
1026
1095
  onUpdate: (F) => {
1027
- let k = s.value.find((K) => {
1096
+ let A = s.value.find((B) => {
1028
1097
  var q;
1029
- return K.type === ((q = a.value) == null ? void 0 : q.value);
1098
+ return B.type === ((q = a.value) == null ? void 0 : q.value);
1030
1099
  });
1031
- k ? k.config = F : s.value.push(F), g(s.value);
1100
+ A ? A.config = F : s.value.push(F), g(s.value);
1032
1101
  }
1033
- })), null, 16)) : _("", !0)
1102
+ })), null, 16)) : C("", !0)
1034
1103
  ], 64);
1035
1104
  };
1036
1105
  }
1037
- }), Le = /* @__PURE__ */ C({
1106
+ }), Qe = /* @__PURE__ */ _({
1038
1107
  __name: "PayoutAccountSetting",
1039
1108
  props: {
1040
1109
  accountId: {
@@ -1045,12 +1114,12 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
1045
1114
  setup(n) {
1046
1115
  const y = n, { tab: e } = j({
1047
1116
  tab: "information"
1048
- }), { isLoading: m, startAsyncCall: c } = E(!0), t = te(), l = U();
1117
+ }), { isLoading: d, startAsyncCall: c } = O(!0), t = te(), o = U();
1049
1118
  async function p(g) {
1050
1119
  await D.updateById(
1051
1120
  y.accountId,
1052
1121
  g
1053
- ), l.value = await D.readById(y.accountId);
1122
+ ), o.value = await D.readById(y.accountId);
1054
1123
  }
1055
1124
  const s = [
1056
1125
  {
@@ -1075,50 +1144,50 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
1075
1144
  label: "Online Gateways",
1076
1145
  icon: "assured_workload",
1077
1146
  value: "gateways",
1078
- render: Ie
1147
+ render: Ne
1079
1148
  },
1080
1149
  {
1081
1150
  label: "Token Gateways",
1082
1151
  value: "tokens",
1083
1152
  icon: "wallet",
1084
- render: $e
1153
+ render: Me
1085
1154
  },
1086
1155
  {
1087
1156
  label: "Online Channels",
1088
1157
  icon: "shopping_cart",
1089
1158
  value: "channels",
1090
- render: xe
1159
+ render: we
1091
1160
  }
1092
1161
  ];
1093
1162
  function a() {
1094
1163
  c(async () => {
1095
- l.value = await D.readById(y.accountId);
1164
+ o.value = await D.readById(y.accountId);
1096
1165
  });
1097
1166
  }
1098
1167
  J(a);
1099
1168
  const r = G(() => {
1100
- const g = s.reduce((v, b) => v || (b.children ? b.children.find((P) => P.value === e.value) || null : b.value === e.value ? b : null), null);
1169
+ const g = s.reduce((f, b) => f || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
1101
1170
  return g == null ? void 0 : g.render;
1102
1171
  });
1103
- return (g, v) => {
1104
- var P;
1105
- const b = d("FmTabs");
1106
- return f(), w(ee, {
1107
- title: `Payout Account (${(P = l.value) == null ? void 0 : P._id})`,
1108
- loading: o(m),
1109
- onBack: o(t).back
1172
+ return (g, f) => {
1173
+ var S;
1174
+ const b = i("FmTabs");
1175
+ return v(), x(ee, {
1176
+ title: `Payout Account (${(S = o.value) == null ? void 0 : S._id})`,
1177
+ loading: l(d),
1178
+ onBack: l(t).back
1110
1179
  }, {
1111
- default: A(() => [
1180
+ default: k(() => [
1112
1181
  u(b, {
1113
- "model-value": o(e),
1114
- "onUpdate:modelValue": v[0] || (v[0] = (N) => O(e) ? e.value = N : null),
1182
+ "model-value": l(e),
1183
+ "onUpdate:modelValue": f[0] || (f[0] = (N) => E(e) ? e.value = N : null),
1115
1184
  class: "mb-6",
1116
1185
  items: s
1117
1186
  }, null, 8, ["model-value"]),
1118
- o(e) ? (f(), w(z(r.value), H(L({ key: 0 }, {
1119
- payoutAccount: l.value,
1187
+ l(e) ? (v(), x(z(r.value), H(L({ key: 0 }, {
1188
+ payoutAccount: o.value,
1120
1189
  onUpdate: p
1121
- })), null, 16)) : _("", !0)
1190
+ })), null, 16)) : C("", !0)
1122
1191
  ]),
1123
1192
  _: 1
1124
1193
  }, 8, ["title", "loading", "onBack"]);
@@ -1126,5 +1195,5 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
1126
1195
  }
1127
1196
  });
1128
1197
  export {
1129
- Le as default
1198
+ Qe as default
1130
1199
  };