@feedmepos/mf-payment 1.4.31 → 1.4.33

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 (62) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-C3p1aEDL.js → Actions.vue_vue_type_script_setup_true_lang-CuILLIJ8.js} +2 -2
  2. package/dist/{Chargeback-aEqBy8JJ.js → Chargeback-DZZPmcw2.js} +5 -5
  3. package/dist/{OnboardForm-DbwqHf5F.js → OnboardForm-BYEeREWi.js} +4 -4
  4. package/dist/{OnboardForm-dgJICfb_.js → OnboardForm-bTd7xNCg.js} +4 -4
  5. package/dist/{OnboardSubmission-DyPNzg8j.js → OnboardSubmission-B7-gOLSC.js} +5 -5
  6. package/dist/{OnboardSubmission-CSpZ75K3.js → OnboardSubmission-DMuLcjKw.js} +2 -2
  7. package/dist/{PayoutAccount-DZCfKfzo.js → PayoutAccount-BbRAKWfO.js} +5 -5
  8. package/dist/{PayoutAccount-DJyqWkre.js → PayoutAccount-iSIW-72s.js} +5 -5
  9. package/dist/{PayoutAccountSetting-DRuXPzN4.js → PayoutAccountSetting-Dj8cIWno.js} +479 -391
  10. package/dist/{Restaurant-DrRWis75.js → Restaurant-CMjg9X88.js} +4 -4
  11. package/dist/{RestaurantSetting-DX3raN_M.js → RestaurantSetting-C66kJwFD.js} +3 -3
  12. package/dist/{Settlement-DbwsZtDs.js → Settlement-BynnBo96.js} +3 -3
  13. package/dist/{Settlement-CgBI2X3j.js → Settlement-DagQe3ev.js} +3 -3
  14. package/dist/{SettlementTransactions-tcrBkvDc.js → SettlementTransactions-CIw8y4Q4.js} +4 -4
  15. package/dist/{SettlementTransactions-C70_fFFA.js → SettlementTransactions-D7TuWbuI.js} +4 -4
  16. package/dist/{Status.vue_vue_type_script_setup_true_lang-uaeTXFw3.js → Status.vue_vue_type_script_setup_true_lang-DIXUpnkm.js} +1 -1
  17. package/dist/{Terminal-DDFHCeRH.js → Terminal-B6bEPNGC.js} +5 -5
  18. package/dist/{TerminalSetting-cv-DRAwO.js → TerminalSetting-BTCP3pC0.js} +481 -356
  19. package/dist/{Transaction-Di9pJ5b-.js → Transaction-Bzf6COBo.js} +9 -9
  20. package/dist/{Transaction-CQg4RUsj.js → Transaction-DxfMMihr.js} +6 -6
  21. package/dist/{TransactionOld-a67MbfFi.js → TransactionOld-BBB5zibd.js} +6 -6
  22. package/dist/{app-lh1Y62py.js → app-DopaVelR.js} +23 -23
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-Crv1vHNN.js → assets-D3LUzPyw.js} +1 -1
  25. package/dist/{grafana-DGF5kjUv.js → grafana-CJp-OsSI.js} +1 -1
  26. package/dist/{index-Btev-8WJ.js → index-B2colhiY.js} +1 -1
  27. package/dist/{index-DlKNMBnz.js → index-B8ejEL5n.js} +8579 -8471
  28. package/dist/{index-X9HLi63I.js → index-BBn7cvxH.js} +1 -1
  29. package/dist/{index-DbTENTAQ.js → index-BksZxG5X.js} +1 -1
  30. package/dist/{index-DFjVdPoc.js → index-BqTuPkCO.js} +1 -1
  31. package/dist/{index-BKME0CUG.js → index-CRxYHQ1I.js} +1 -1
  32. package/dist/{index-UPRcqQ6e.js → index-OH-SVdfb.js} +1 -1
  33. package/dist/{index-Dvgk_7GJ.js → index-rkiQgUCX.js} +2 -2
  34. package/dist/{index.vue_vue_type_script_setup_true_lang-Doj7ETw7.js → index.vue_vue_type_script_setup_true_lang-Bb8EC5LM.js} +1 -1
  35. package/dist/package.json +2 -2
  36. package/dist/{payout-account-D-F5iW2d.js → payout-account-BXR5QHz1.js} +3 -3
  37. package/dist/{plugins-BAElWQsP.js → plugins-CY87Za1G.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
  40. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +10 -6
  41. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +11 -7
  42. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +11 -7
  43. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +47 -0
  44. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +9 -5
  45. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +24 -4
  46. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +26 -6
  47. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +24 -4
  48. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +24 -4
  49. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +24 -4
  50. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +24 -4
  51. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +24 -4
  52. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +230 -0
  53. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +24 -4
  54. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +24 -4
  55. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +24 -4
  56. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +24 -4
  57. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +24 -4
  58. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +24 -4
  59. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +24 -4
  60. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +24 -4
  61. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +24 -4
  62. package/package.json +2 -2
@@ -1,15 +1,15 @@
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
- import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
- import { useRouter as te } from "vue-router";
6
- import { u as j } from "./index-X9HLi63I.js";
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
7
  import { P as Q } from "./PDFViewer-DlSCBBxr.js";
8
- import { useSnackbar as Y, components as ae } from "@feedmepos/ui-library";
9
- import { u as R } from "./error-K1CakhA9.js";
10
- import { z as w, a as V } from "./validator-D5jtpt9A.js";
8
+ import { useSnackbar as Y, components as ne } from "@feedmepos/ui-library";
9
+ import { u as q } from "./error-K1CakhA9.js";
10
+ import { z as x, a as w } 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__ */ _({
12
+ const le = { class: "flex gap-16 mb-6" }, oe = ["src"], ue = /* @__PURE__ */ A({
13
13
  __name: "Information",
14
14
  props: {
15
15
  payoutAccount: {
@@ -18,36 +18,36 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
18
18
  }
19
19
  },
20
20
  setup(n) {
21
- return (y, e) => {
22
- const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
23
- return v(), h($, null, [
24
- m("div", ne, [
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, [
25
25
  u(t, {
26
26
  horizontal: "",
27
27
  class: "flex-1 p-6",
28
28
  variant: "elevated"
29
29
  }, {
30
30
  default: k(() => [
31
- u(c, { class: "flex flex-col gap-16 justify-between" }, {
31
+ u(s, { class: "flex flex-col gap-16 justify-between" }, {
32
32
  default: k(() => [
33
- u(d, {
33
+ u(m, {
34
34
  class: "p-0",
35
35
  title: "Account Info",
36
36
  subtitle: ""
37
37
  }),
38
- u(c, { class: "p-0" }, {
38
+ u(s, { class: "p-0" }, {
39
39
  default: k(() => {
40
- var o, p, s, a, r;
40
+ var l, p, c, a, r;
41
41
  return [
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))
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))
51
51
  ];
52
52
  }),
53
53
  _: 1
@@ -64,26 +64,26 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
64
64
  variant: "elevated"
65
65
  }, {
66
66
  default: k(() => [
67
- u(c, { class: "flex flex-col gap-16 justify-between" }, {
67
+ u(s, { class: "flex flex-col gap-16 justify-between" }, {
68
68
  default: k(() => [
69
- u(d, {
69
+ u(m, {
70
70
  class: "p-0",
71
71
  title: "Key Person",
72
72
  subtitle: ""
73
73
  }),
74
- u(c, { class: "p-0" }, {
74
+ u(s, { class: "p-0" }, {
75
75
  default: k(() => {
76
- var o, p, s, a, r, g, f, b;
76
+ var l, p, c, a, r, f, g, b;
77
77
  return [
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))
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))
87
87
  ];
88
88
  }),
89
89
  _: 1
@@ -95,15 +95,15 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
95
95
  _: 1
96
96
  })
97
97
  ]),
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", {
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", {
100
100
  key: 0,
101
101
  src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, le)) : C("", !0)
102
+ }, null, 8, oe)) : U("", !0)
103
103
  ], 64);
104
104
  };
105
105
  }
106
- }), ue = { class: "flex gap-16" }, re = { class: "flex-1" }, se = { class: "flex-1" }, ce = /* @__PURE__ */ _({
106
+ }), re = { class: "flex gap-16" }, se = { class: "flex-1" }, ce = { class: "flex-1" }, ie = /* @__PURE__ */ A({
107
107
  __name: "Settlement",
108
108
  props: {
109
109
  payoutAccount: {
@@ -112,34 +112,34 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
112
112
  }
113
113
  },
114
114
  setup(n) {
115
- return (y, e) => {
116
- const d = i("FmCardHeader"), c = i("FmCardSection"), t = i("FmCard");
117
- return v(), h($, null, [
115
+ return (v, e) => {
116
+ const m = d("FmCardHeader"), s = d("FmCardSection"), t = d("FmCard");
117
+ return y(), h(R, 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
123
  default: k(() => [
124
- u(c, { class: "flex flex-col gap-16 justify-between" }, {
124
+ u(s, { class: "flex flex-col gap-16 justify-between" }, {
125
125
  default: k(() => [
126
- u(d, {
126
+ u(m, {
127
127
  class: "p-0",
128
128
  title: "Bank Info",
129
129
  subtitle: ""
130
130
  }),
131
- u(c, { class: "p-0" }, {
131
+ u(s, { class: "p-0" }, {
132
132
  default: k(() => {
133
- var o, p, s, a, r, g;
133
+ var l, p, c, a, r, f;
134
134
  return [
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)
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)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -150,73 +150,73 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
150
150
  ]),
151
151
  _: 1
152
152
  }),
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, {
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, {
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"])) : C("", !0)
161
+ }, null, 8, ["pdf"])) : U("", !0)
162
162
  ]),
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, {
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, {
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"])) : C("", !0)
170
+ }, null, 8, ["pdf"])) : U("", !0)
171
171
  ])
172
172
  ])
173
173
  ], 64);
174
174
  };
175
175
  }
176
- }), ie = /* @__PURE__ */ _({
176
+ }), de = /* @__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 y = n, e = U(y.data.toString());
184
- return W(e, (d) => {
185
- y.onChange(parseFloat(d));
186
- }), (d, c) => {
187
- const t = i("FmTextField");
188
- return v(), x(t, {
183
+ const v = n, e = T(v.data.toString());
184
+ return W(e, (m) => {
185
+ v.onChange(parseFloat(m));
186
+ }), (m, s) => {
187
+ const t = d("FmTextField");
188
+ return y(), F(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
191
- "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
191
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
192
192
  }, {
193
- append: k(() => c[1] || (c[1] = [
194
- T("%")
193
+ append: k(() => s[1] || (s[1] = [
194
+ P("%")
195
195
  ])),
196
196
  _: 1
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), me = /* @__PURE__ */ _({
200
+ }), me = /* @__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 y = n, e = U(y.data.toString());
208
- return W(e, (d) => {
209
- y.onChange(parseInt(d));
210
- }), (d, c) => {
211
- const t = i("FmTextField");
212
- return v(), x(t, {
207
+ const v = n, e = T(v.data.toString());
208
+ return W(e, (m) => {
209
+ v.onChange(parseInt(m));
210
+ }), (m, s) => {
211
+ const t = d("FmTextField");
212
+ return y(), F(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
215
- "onUpdate:modelValue": c[0] || (c[0] = (o) => e.value = o)
215
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ _({
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({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -229,27 +229,27 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
229
229
  }
230
230
  },
231
231
  setup(n) {
232
- const y = n, e = U(!1), d = Y(), c = async (a) => {
232
+ const v = n, e = T(!1), m = Y(), s = async (a) => {
233
233
  try {
234
- e.value = !0, await y.onUpdate(a), d.open({
234
+ e.value = !0, await v.onUpdate(a), m.open({
235
235
  type: "success",
236
236
  title: "Payout account update succesfully"
237
237
  });
238
238
  } catch (r) {
239
- d.open({
239
+ m.open({
240
240
  type: "error",
241
241
  title: "Error occurs when updating payout account",
242
- message: R(r)
242
+ message: q(r)
243
243
  });
244
244
  } finally {
245
245
  e.value = !1;
246
246
  }
247
247
  }, { search: t } = j({
248
248
  search: ""
249
- }), o = G(() => {
250
- const { ssm: a, bank: r, bankStatement: g } = y.payoutAccount.store;
251
- return a && r && r.name && r.accountNumber && r.holderName && g;
252
- }), p = U(""), s = [
249
+ }), l = G(() => {
250
+ const { ssm: a, bank: r, bankStatement: f } = v.payoutAccount.store;
251
+ return a && r && r.name && r.accountNumber && r.holderName && f;
252
+ }), p = T(""), c = [
253
253
  {
254
254
  header: () => "Payment Method",
255
255
  accessorKey: "issuer",
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
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)), M(ie, {
263
+ return a.original.rate && (r = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(de, {
264
264
  data: r,
265
- onChange: (g) => {
266
- const f = y.payoutAccount.methods.at(a.index);
267
- f.rate || (f.rate = {
265
+ onChange: (f) => {
266
+ const g = v.payoutAccount.methods.at(a.index);
267
+ g.rate || (g.rate = {
268
268
  amount: 0,
269
269
  precision: 4
270
- }), f.rate.amount = g * Math.pow(10, f.rate.precision);
270
+ }), g.rate.amount = f * Math.pow(10, g.rate.precision);
271
271
  }
272
272
  });
273
273
  }
@@ -275,35 +275,35 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => M(me, {
278
+ cell: ({ row: a }) => B(me, {
279
279
  data: a.original.tPlus ?? 0,
280
280
  onChange: (r) => {
281
- const g = y.payoutAccount.methods.at(a.index);
282
- g.tPlus = r;
281
+ const f = v.payoutAccount.methods.at(a.index);
282
+ f.tPlus = r;
283
283
  }
284
284
  })
285
285
  }
286
286
  ];
287
287
  return (a, r) => {
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, {
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, [
292
+ u(g, {
293
293
  modelValue: n.payoutAccount.status,
294
- "onUpdate:modelValue": r[0] || (r[0] = (F) => n.payoutAccount.status = F),
294
+ "onUpdate:modelValue": r[0] || (r[0] = (V) => n.payoutAccount.status = V),
295
295
  label: "Account Status"
296
296
  }, {
297
297
  default: k(() => [
298
- u(g, {
298
+ u(f, {
299
299
  value: "NEW",
300
300
  label: "New"
301
301
  }),
302
- u(g, {
302
+ u(f, {
303
303
  value: "PENDING",
304
304
  label: "Pending"
305
305
  }),
306
- u(g, {
306
+ u(f, {
307
307
  value: "APPROVED",
308
308
  label: "Approved"
309
309
  })
@@ -311,65 +311,65 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
311
311
  _: 1
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
- m("div", ye, [
314
+ i("div", ve, [
315
315
  u(b, {
316
316
  modelValue: n.payoutAccount.enable,
317
- "onUpdate:modelValue": r[1] || (r[1] = (F) => n.payoutAccount.enable = F),
318
- disabled: !o.value,
317
+ "onUpdate:modelValue": r[1] || (r[1] = (V) => n.payoutAccount.enable = V),
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 ? (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),
324
+ n.payoutAccount.enable ? (y(), h(R, { key: 0 }, [
325
+ i("div", fe, [
326
+ i("div", ge, [
327
+ u(C, {
328
+ modelValue: o(t),
329
+ "onUpdate:modelValue": r[2] || (r[2] = (V) => E(t) ? t.value = V : null),
330
330
  placeholder: "Search Method ..."
331
331
  }, null, 8, ["modelValue"])
332
332
  ])
333
333
  ]),
334
- u(N, {
334
+ u(M, {
335
335
  class: "mt-6",
336
336
  modelValue: p.value,
337
- "onUpdate:modelValue": r[3] || (r[3] = (F) => p.value = F),
337
+ "onUpdate:modelValue": r[3] || (r[3] = (V) => p.value = V),
338
338
  "shrink-at": !1,
339
- "search-value": l(t),
339
+ "search-value": o(t),
340
340
  "row-data": n.payoutAccount.methods,
341
- "column-defs": s
341
+ "column-defs": c
342
342
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
- ], 64)) : C("", !0),
344
- u(K, {
343
+ ], 64)) : U("", !0),
344
+ u($, {
345
345
  class: "w-full mt-6",
346
346
  variant: "primary",
347
347
  label: "Save",
348
348
  loading: e.value,
349
- onclick: () => c(n.payoutAccount)
349
+ onclick: () => s(n.payoutAccount)
350
350
  }, null, 8, ["loading", "onclick"])
351
351
  ], 64);
352
352
  };
353
353
  }
354
- }), be = { class: "flex" }, Fe = /* @__PURE__ */ _({
354
+ }), Fe = { class: "flex" }, xe = /* @__PURE__ */ A({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
- setup(n, { emit: y }) {
358
- const e = y;
359
- return (d, c) => {
360
- const t = i("FmButton");
361
- return v(), h("div", be, [
357
+ setup(n, { emit: v }) {
358
+ const e = v;
359
+ return (m, s) => {
360
+ const t = d("FmButton");
361
+ return y(), h("div", Fe, [
362
362
  u(t, {
363
363
  variant: "plain",
364
364
  "prepend-icon": "delete",
365
- onClick: c[0] || (c[0] = (o) => {
366
- o.stopPropagation(), e("delete");
365
+ onClick: s[0] || (s[0] = (l) => {
366
+ l.stopPropagation(), e("delete");
367
367
  })
368
368
  })
369
369
  ]);
370
370
  };
371
371
  }
372
- }), xe = { class: "flex justify-end px-6 pb-6" }, we = /* @__PURE__ */ _({
372
+ }), we = { class: "flex justify-end px-6 pb-6" }, Ve = /* @__PURE__ */ A({
373
373
  __name: "PaymentChannel",
374
374
  props: {
375
375
  payoutAccount: {
@@ -378,41 +378,41 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
378
378
  }
379
379
  },
380
380
  setup(n) {
381
- const y = Y(), e = n, { isLoading: d, startAsyncCall: c } = O(), t = U([]);
382
- function o() {
383
- c(async () => {
384
- t.value = await D.getChannels(e.payoutAccount._id);
381
+ const v = Y(), e = n, { isLoading: m, startAsyncCall: s } = O(), t = T([]);
382
+ function l() {
383
+ s(async () => {
384
+ t.value = await N.getChannels(e.payoutAccount._id);
385
385
  });
386
386
  }
387
- J(o);
387
+ J(l);
388
388
  function p() {
389
- c(async () => {
389
+ s(async () => {
390
390
  try {
391
- await D.updateChannels(e.payoutAccount._id, t.value), y.open({
391
+ await N.updateChannels(e.payoutAccount._id, t.value), v.open({
392
392
  type: "success",
393
393
  title: "Payout account channels update succesfully"
394
394
  });
395
395
  } catch (r) {
396
- y.open({
396
+ v.open({
397
397
  type: "error",
398
398
  title: "Error occurs when updating payout account channels",
399
- message: R(r)
399
+ message: q(r)
400
400
  });
401
401
  }
402
402
  });
403
403
  }
404
- function s() {
405
- c(async () => {
404
+ function c() {
405
+ s(async () => {
406
406
  try {
407
- await D.resetChannels(e.payoutAccount._id), t.value = await D.getChannels(e.payoutAccount._id), y.open({
407
+ await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), v.open({
408
408
  type: "success",
409
409
  title: "Payout account channels reset succesfully"
410
410
  });
411
411
  } catch (r) {
412
- y.open({
412
+ v.open({
413
413
  type: "error",
414
414
  title: "Error occurs when reset payout account channels",
415
- message: R(r)
415
+ message: q(r)
416
416
  });
417
417
  }
418
418
  });
@@ -429,37 +429,37 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
429
429
  {
430
430
  header: () => "Display",
431
431
  accessorKey: "icon",
432
- cell: ({ row: r }) => M("img", { src: r.original.icon, width: 32, height: 32 })
432
+ cell: ({ row: r }) => B("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 }) => M(ae.FmTextField, {
437
+ cell: ({ row: r }) => B(ne.FmTextField, {
438
438
  modelValue: r.original.label,
439
- "onUpdate:modelValue": (g) => r.original.label = g
439
+ "onUpdate:modelValue": (f) => r.original.label = f
440
440
  })
441
441
  },
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: r }) => M(Fe, {
445
+ cell: ({ row: r }) => B(xe, {
446
446
  onDelete: () => t.value.splice(r.index, 1)
447
447
  })
448
448
  }
449
449
  ];
450
- return (r, g) => {
451
- const f = i("FmButton"), b = i("FmTable");
452
- return v(), h($, null, [
453
- m("div", xe, [
454
- u(f, {
450
+ return (r, f) => {
451
+ const g = d("FmButton"), b = d("FmTable");
452
+ return y(), h(R, null, [
453
+ i("div", we, [
454
+ u(g, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
457
457
  size: "md",
458
458
  icon: "history",
459
459
  label: "Reset",
460
- onClick: s
460
+ onClick: c
461
461
  }),
462
- u(f, {
462
+ u(g, {
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__ */ _({
468
468
  })
469
469
  ]),
470
470
  u(b, {
471
- loading: l(d),
471
+ loading: o(m),
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__ */ _({
476
476
  ], 64);
477
477
  };
478
478
  }
479
- }), Ve = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ _({
479
+ }), ke = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ A({
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__ */ _({
493
493
  }
494
494
  },
495
495
  setup(n) {
496
- var d;
497
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
496
+ var m;
497
+ const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
498
498
  merchantId: "",
499
499
  verifyKey: "",
500
500
  secretKey: ""
501
501
  });
502
- return (c, t) => {
503
- const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
504
- return v(), x(s, {
502
+ return (s, t) => {
503
+ const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
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
509
  default: k(() => [
510
- u(o, {
510
+ u(l, {
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: l(w)(l(V).string())
514
+ rules: o(x)(o(w).string())
515
515
  }, null, 8, ["modelValue", "rules"]),
516
- u(o, {
516
+ u(l, {
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: l(w)(l(V).string())
520
+ rules: o(x)(o(w).string())
521
521
  }, null, 8, ["modelValue", "rules"]),
522
- u(o, {
522
+ u(l, {
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: l(w)(l(V).string())
526
+ rules: o(x)(o(w).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
- m("div", Ve, [
529
- n.gateway ? (v(), x(p, {
528
+ i("div", ke, [
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"])) : C("", !0),
535
+ }, null, 8, ["onclick"])) : U("", !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__ */ _({
545
545
  }, 512);
546
546
  };
547
547
  }
548
- }), Ae = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ _({
548
+ }), Ae = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ A({
549
549
  __name: "MacauPassGateway",
550
550
  props: {
551
551
  gateway: {
@@ -562,60 +562,60 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
562
562
  }
563
563
  },
564
564
  setup(n) {
565
- var d;
566
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
565
+ var m;
566
+ const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
567
567
  merchantId: "",
568
568
  merchantName: "",
569
569
  merchantCategoryCode: "",
570
570
  storeID: "",
571
571
  storeName: ""
572
572
  });
573
- return (c, t) => {
574
- const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
575
- return v(), x(s, {
573
+ return (s, t) => {
574
+ const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
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
580
  default: k(() => [
581
- u(o, {
581
+ u(l, {
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: l(w)(l(V).string())
585
+ rules: o(x)(o(w).string())
586
586
  }, null, 8, ["modelValue", "rules"]),
587
- u(o, {
587
+ u(l, {
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: l(w)(l(V).string())
591
+ rules: o(x)(o(w).string())
592
592
  }, null, 8, ["modelValue", "rules"]),
593
- u(o, {
593
+ u(l, {
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: l(w)(l(V).string())
597
+ rules: o(x)(o(w).string())
598
598
  }, null, 8, ["modelValue", "rules"]),
599
- u(o, {
599
+ u(l, {
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: l(w)(l(V).string())
603
+ rules: o(x)(o(w).string())
604
604
  }, null, 8, ["modelValue", "rules"]),
605
- u(o, {
605
+ u(l, {
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: l(w)(l(V).string())
609
+ rules: o(x)(o(w).string())
610
610
  }, null, 8, ["modelValue", "rules"]),
611
- m("div", Ae, [
612
- n.gateway ? (v(), x(p, {
611
+ i("div", Ae, [
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"])) : C("", !0),
618
+ }, null, 8, ["onclick"])) : U("", !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__ */ _({
628
628
  }, 512);
629
629
  };
630
630
  }
631
- }), Ce = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ _({
631
+ }), Ue = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ A({
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__ */ _({
645
645
  }
646
646
  },
647
647
  setup(n) {
648
- var d;
649
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
648
+ var m;
649
+ const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
650
650
  merchantId: "",
651
651
  cardMerchantId: ""
652
652
  });
653
- return (c, t) => {
654
- const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
655
- return v(), x(s, {
653
+ return (s, t) => {
654
+ const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
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
660
  default: k(() => [
661
- u(o, {
661
+ u(l, {
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: l(w)(l(V).string())
665
+ rules: o(x)(o(w).string())
666
666
  }, null, 8, ["modelValue", "rules"]),
667
- u(o, {
667
+ u(l, {
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: l(w)(l(V).string())
671
+ rules: o(x)(o(w).string())
672
672
  }, null, 8, ["modelValue", "rules"]),
673
- m("div", Ce, [
674
- n.gateway ? (v(), x(p, {
673
+ i("div", Ue, [
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"])) : C("", !0),
680
+ }, null, 8, ["onclick"])) : U("", !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__ */ _({
690
690
  }, 512);
691
691
  };
692
692
  }
693
- }), Te = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ _({
693
+ }), Pe = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ A({
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__ */ _({
707
707
  }
708
708
  },
709
709
  setup(n) {
710
- var d;
711
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
710
+ var m;
711
+ const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
712
712
  merchantAccount: "",
713
713
  username: "",
714
714
  apiKey: "",
@@ -716,57 +716,57 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
716
716
  endpoint: "",
717
717
  hmacKey: ""
718
718
  });
719
- return (c, t) => {
720
- const o = i("FmTextField"), p = i("FmButton"), s = i("FmForm");
721
- return v(), x(s, {
719
+ return (s, t) => {
720
+ const l = d("FmTextField"), p = d("FmButton"), c = d("FmForm");
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
726
  default: k(() => [
727
- u(o, {
727
+ u(l, {
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: l(w)(l(V).string())
731
+ rules: o(x)(o(w).string())
732
732
  }, null, 8, ["modelValue", "rules"]),
733
- u(o, {
733
+ u(l, {
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: l(w)(l(V).string())
737
+ rules: o(x)(o(w).string())
738
738
  }, null, 8, ["modelValue", "rules"]),
739
- u(o, {
739
+ u(l, {
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: l(w)(l(V).string())
743
+ rules: o(x)(o(w).string())
744
744
  }, null, 8, ["modelValue", "rules"]),
745
- u(o, {
745
+ u(l, {
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: l(w)(l(V).string())
749
+ rules: o(x)(o(w).string())
750
750
  }, null, 8, ["modelValue", "rules"]),
751
- u(o, {
751
+ u(l, {
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: l(w)(l(V).string())
755
+ rules: o(x)(o(w).string())
756
756
  }, null, 8, ["modelValue", "rules"]),
757
- u(o, {
757
+ u(l, {
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
- m("div", Te, [
763
- n.gateway ? (v(), x(p, {
762
+ i("div", Pe, [
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"])) : C("", !0),
769
+ }, null, 8, ["onclick"])) : U("", !0),
770
770
  u(p, {
771
771
  type: "submit",
772
772
  class: "flex-1",
@@ -779,7 +779,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
779
779
  }, 512);
780
780
  };
781
781
  }
782
- }), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ _({
782
+ }), Se = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ A({
783
783
  __name: "KsherGateway",
784
784
  props: {
785
785
  gateway: {
@@ -796,41 +796,41 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
796
796
  }
797
797
  },
798
798
  setup(n) {
799
- var d;
800
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
799
+ var m;
800
+ const e = T(((m = n.gateway) == null ? void 0 : m.config) || {
801
801
  appId: "",
802
802
  privateKey: ""
803
803
  });
804
- return (c, t) => {
805
- const o = i("FmTextField"), p = i("FmTextarea"), s = i("FmButton"), a = i("FmForm");
806
- return v(), x(a, {
804
+ return (s, t) => {
805
+ const l = d("FmTextField"), p = d("FmTextarea"), c = d("FmButton"), a = d("FmForm");
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
811
  default: k(() => [
812
- u(o, {
812
+ u(l, {
813
813
  modelValue: e.value.appId,
814
814
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.appId = r),
815
815
  label: "App ID",
816
- rules: l(w)(l(V).string())
816
+ rules: o(x)(o(w).string())
817
817
  }, null, 8, ["modelValue", "rules"]),
818
818
  u(p, {
819
819
  modelValue: e.value.privateKey,
820
820
  "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.privateKey = r),
821
821
  label: "Private Key",
822
822
  placeholder: "Paste your private key including BEGIN and END markers",
823
- rules: l(w)(l(V).string())
823
+ rules: o(x)(o(w).string())
824
824
  }, null, 8, ["modelValue", "rules"]),
825
- m("div", Se, [
826
- n.gateway ? (v(), x(s, {
825
+ i("div", Se, [
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"])) : C("", !0),
833
- u(s, {
832
+ }, null, 8, ["onclick"])) : U("", !0),
833
+ u(c, {
834
834
  type: "submit",
835
835
  class: "flex-1",
836
836
  variant: "primary",
@@ -842,13 +842,13 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
842
842
  }, 512);
843
843
  };
844
844
  }
845
- }), Ie = {
845
+ }), De = {
846
846
  key: 0,
847
847
  className: "mt-1 my-6 text-gray-600"
848
- }, De = {
848
+ }, Ne = {
849
849
  key: 1,
850
850
  class: "flex items-center justify-center min-h-[80vh]"
851
- }, Ne = /* @__PURE__ */ _({
851
+ }, Me = /* @__PURE__ */ A({
852
852
  __name: "PaymentGateway",
853
853
  props: {
854
854
  payoutAccount: {
@@ -857,100 +857,106 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
857
857
  }
858
858
  },
859
859
  setup(n) {
860
- const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { gatewayTab: t } = j({
860
+ const v = X().currentCountry, e = v.value, m = Y(), { isLoading: s, startAsyncCall: t } = O(), { gatewayTab: l } = j({
861
861
  gatewayTab: ""
862
- }), o = n, p = [
862
+ }), p = n, c = [
863
863
  {
864
864
  label: "Fiuu",
865
865
  value: "RAZER_MERCHANT_SERVICE",
866
- render: ke,
867
- region: [P.F_COUNTRY.enum.SG]
866
+ render: _e,
867
+ region: [S.F_COUNTRY.enum.SG]
868
868
  },
869
869
  {
870
870
  label: "Macau Pass",
871
871
  value: "MACAU_PASS",
872
- render: _e,
873
- region: [P.F_COUNTRY.enum.MO]
872
+ render: Ce,
873
+ region: [S.F_COUNTRY.enum.MO]
874
874
  },
875
875
  {
876
876
  label: "Digio",
877
877
  value: "DIGIO",
878
- render: Ue,
879
- region: [P.F_COUNTRY.enum.TH]
878
+ render: Te,
879
+ region: [S.F_COUNTRY.enum.TH]
880
880
  },
881
881
  {
882
882
  label: "Ksher",
883
883
  value: "KSHER",
884
- render: Pe,
885
- region: [P.F_COUNTRY.enum.TH]
884
+ render: Ie,
885
+ region: [S.F_COUNTRY.enum.TH]
886
886
  },
887
887
  {
888
888
  label: "Adyen",
889
889
  value: "ADYEN",
890
890
  render: he,
891
- region: [P.F_COUNTRY.enum.SG]
891
+ region: [S.F_COUNTRY.enum.SG]
892
892
  }
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) {
895
- await c(async () => {
893
+ ], a = T(
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)
897
+ ));
898
+ async function g(b) {
899
+ await t(async () => {
896
900
  try {
897
- await D.updateGateway(o.payoutAccount._id, f), e.open({
901
+ await N.updateGateway(p.payoutAccount._id, b), m.open({
898
902
  type: "success",
899
903
  title: "Payout account gateways update succesfully"
900
904
  });
901
- } catch (b) {
902
- e.open({
905
+ } catch (C) {
906
+ m.open({
903
907
  type: "error",
904
908
  title: "Error occurs when updating payout account gateways",
905
- message: R(b)
909
+ message: q(C)
906
910
  });
907
911
  }
908
912
  });
909
913
  }
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, {
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),
920
+ 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($, {
921
925
  key: 2,
922
- "model-value": l(t),
923
- "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
926
+ "model-value": o(l),
927
+ "onUpdate:modelValue": C[0] || (C[0] = (_) => E(l) ? l.value = _ : null),
924
928
  class: "mb-6",
925
- items: r.value
929
+ items: f.value
926
930
  }, null, 8, ["model-value", "items"])),
927
- l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 3 }, {
928
- gateway: s.value.find((F) => {
929
- var A;
930
- return F.paymentGateway === ((A = a.value) == null ? void 0 : A.value);
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);
931
935
  }),
932
936
  onDelete: async () => {
933
- s.value = s.value.filter((F) => {
934
- var A;
935
- return F.paymentGateway !== ((A = a.value) == null ? void 0 : A.value);
936
- }), g(s.value);
937
+ a.value = a.value.filter((_) => {
938
+ var I;
939
+ return _.paymentGateway !== ((I = r.value) == null ? void 0 : I.value);
940
+ }), g(a.value);
937
941
  },
938
- onUpdate: (F) => {
939
- var B;
940
- let A = s.value.find((q) => {
941
- var Z;
942
- return q.paymentGateway === ((Z = a.value) == null ? void 0 : Z.value);
943
- });
944
- A ? A.config = F : s.value.push({
945
- paymentGateway: (B = a.value) == null ? void 0 : B.value,
946
- config: F
947
- }), g(s.value);
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);
948
+ }
949
+ );
950
+ I ? I.config = _ : a.value.push({
951
+ paymentGateway: (K = r.value) == null ? void 0 : K.value,
952
+ config: _
953
+ }), g(a.value);
948
954
  }
949
- })), null, 16)) : C("", !0)
955
+ })), null, 16)) : U("", !0)
950
956
  ], 64);
951
957
  };
952
958
  }
953
- }), Ke = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ _({
959
+ }), Re = { class: "flex mt-6 space-x-6" }, $e = /* @__PURE__ */ A({
954
960
  __name: "GooglePayToken",
955
961
  props: {
956
962
  gateway: {
@@ -967,53 +973,122 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
967
973
  }
968
974
  },
969
975
  setup(n) {
970
- const e = U(n.gateway || {
971
- // hardcoded first since only 1 PSP supported
972
- type: "googlePay",
973
- gateway: "RAZER_MERCHANT_SERVICE",
974
- config: {
975
- gateway: "molpay",
976
- gatewayMerchantId: "molpay"
976
+ const e = T(
977
+ n.gateway || {
978
+ type: "googlePay",
979
+ gateway: "RAZER_MERCHANT_SERVICE",
980
+ config: {
981
+ gateway: "molpay",
982
+ gatewayMerchantId: "molpay"
983
+ }
977
984
  }
978
- });
979
- return (d, c) => {
980
- const t = i("FmTextField"), o = i("FmButton"), p = i("FmForm");
981
- return v(), x(p, {
985
+ );
986
+ return (m, s) => {
987
+ const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
988
+ return y(), F(p, {
982
989
  ref: "form",
983
990
  class: "flex flex-col gap-16",
984
- onValidationSuccess: c[3] || (c[3] = () => n.onUpdate(e.value))
991
+ onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
985
992
  }, {
986
993
  default: k(() => [
987
994
  u(t, {
988
995
  modelValue: e.value.gateway,
989
- "onUpdate:modelValue": c[0] || (c[0] = (s) => e.value.gateway = s),
996
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
990
997
  label: "Gateway",
991
998
  disabled: !0,
992
- rules: l(w)(l(V).string())
999
+ rules: o(x)(o(w).string())
993
1000
  }, null, 8, ["modelValue", "rules"]),
994
1001
  u(t, {
995
1002
  modelValue: e.value.config.gateway,
996
- "onUpdate:modelValue": c[1] || (c[1] = (s) => e.value.config.gateway = s),
1003
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.gateway = c),
997
1004
  label: "Gateway ID",
998
1005
  disabled: !0,
999
- rules: l(w)(l(V).string())
1006
+ rules: o(x)(o(w).string())
1000
1007
  }, null, 8, ["modelValue", "rules"]),
1001
1008
  u(t, {
1002
- modelValue: e.value.config.gateway,
1003
- "onUpdate:modelValue": c[2] || (c[2] = (s) => e.value.config.gateway = s),
1009
+ modelValue: e.value.config.gatewayMerchantId,
1010
+ "onUpdate:modelValue": s[2] || (s[2] = (c) => e.value.config.gatewayMerchantId = c),
1004
1011
  label: "Gateway Merchant ID",
1005
1012
  disabled: !0,
1006
- rules: l(w)(l(V).string())
1013
+ rules: o(x)(o(w).string())
1014
+ }, null, 8, ["modelValue", "rules"]),
1015
+ i("div", Re, [
1016
+ n.gateway ? (y(), F(l, {
1017
+ key: 0,
1018
+ class: "flex-1",
1019
+ variant: "secondary",
1020
+ label: "Delete",
1021
+ onclick: () => n.onDelete()
1022
+ }, null, 8, ["onclick"])) : U("", !0),
1023
+ u(l, {
1024
+ type: "submit",
1025
+ class: "flex-1",
1026
+ variant: "primary",
1027
+ label: "Save"
1028
+ })
1029
+ ])
1030
+ ]),
1031
+ _: 1
1032
+ }, 512);
1033
+ };
1034
+ }
1035
+ }), Ge = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ A({
1036
+ __name: "ApplePayToken",
1037
+ props: {
1038
+ gateway: {
1039
+ type: Object,
1040
+ required: !0
1041
+ },
1042
+ onUpdate: {
1043
+ type: Function,
1044
+ required: !0
1045
+ },
1046
+ onDelete: {
1047
+ type: Function,
1048
+ required: !0
1049
+ }
1050
+ },
1051
+ setup(n) {
1052
+ const e = T(
1053
+ n.gateway || {
1054
+ type: "applePay",
1055
+ gateway: "RAZER_MERCHANT_SERVICE",
1056
+ config: {
1057
+ merchantId: "FMfeedme"
1058
+ }
1059
+ }
1060
+ );
1061
+ return (m, s) => {
1062
+ const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
1063
+ return y(), F(p, {
1064
+ ref: "form",
1065
+ class: "flex flex-col gap-16",
1066
+ onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
1067
+ }, {
1068
+ default: k(() => [
1069
+ u(t, {
1070
+ modelValue: e.value.gateway,
1071
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
1072
+ label: "Gateway",
1073
+ disabled: !0,
1074
+ rules: o(x)(o(w).string())
1007
1075
  }, null, 8, ["modelValue", "rules"]),
1008
- m("div", Ke, [
1009
- n.gateway ? (v(), x(o, {
1076
+ u(t, {
1077
+ modelValue: e.value.config.merchantId,
1078
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.merchantId = c),
1079
+ label: "Merchant ID",
1080
+ disabled: !0,
1081
+ rules: o(x)(o(w).string())
1082
+ }, null, 8, ["modelValue", "rules"]),
1083
+ i("div", Ge, [
1084
+ n.gateway ? (y(), F(l, {
1010
1085
  key: 0,
1011
1086
  class: "flex-1",
1012
1087
  variant: "secondary",
1013
1088
  label: "Delete",
1014
1089
  onclick: () => n.onDelete()
1015
- }, null, 8, ["onclick"])) : C("", !0),
1016
- u(o, {
1090
+ }, null, 8, ["onclick"])) : U("", !0),
1091
+ u(l, {
1017
1092
  type: "submit",
1018
1093
  class: "flex-1",
1019
1094
  variant: "primary",
@@ -1025,10 +1100,10 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
1025
1100
  }, 512);
1026
1101
  };
1027
1102
  }
1028
- }), Ge = {
1103
+ }), Be = {
1029
1104
  key: 0,
1030
1105
  class: "flex items-center justify-center min-h-[80vh]"
1031
- }, Me = /* @__PURE__ */ _({
1106
+ }, qe = /* @__PURE__ */ A({
1032
1107
  __name: "TokenGateway",
1033
1108
  props: {
1034
1109
  payoutAccount: {
@@ -1037,21 +1112,30 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
1037
1112
  }
1038
1113
  },
1039
1114
  setup(n) {
1040
- const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = O(), { tokenTab: t } = j({
1115
+ const v = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: s } = O(), { tokenTab: t } = j({
1041
1116
  tokenTab: ""
1042
- }), o = n, p = [
1117
+ }), l = n, p = [
1043
1118
  {
1044
1119
  label: "Google Pay",
1045
1120
  value: "googlePay",
1046
1121
  icon: "android",
1047
1122
  render: $e,
1048
- region: [P.F_COUNTRY.enum.MY, P.F_COUNTRY.enum.SG]
1123
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1124
+ },
1125
+ {
1126
+ label: "Apple Pay",
1127
+ value: "applePay",
1128
+ icon: "apple",
1129
+ render: Ke,
1130
+ region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
1049
1131
  }
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) {
1052
- await c(async () => {
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)
1134
+ ));
1135
+ async function f(g) {
1136
+ await s(async () => {
1053
1137
  try {
1054
- await D.updateTokens(o.payoutAccount._id, f), e.open({
1138
+ await N.updateTokens(l.payoutAccount._id, g), e.open({
1055
1139
  type: "success",
1056
1140
  title: "Payout account tokens gateway update succesfully"
1057
1141
  });
@@ -1059,51 +1143,55 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
1059
1143
  e.open({
1060
1144
  type: "error",
1061
1145
  title: "Error occurs when updating payout account tokens",
1062
- message: R(b)
1146
+ message: q(b)
1063
1147
  });
1064
1148
  }
1065
1149
  });
1066
1150
  }
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. ")
1151
+ 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: "),
1157
+ 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")
1074
1162
  ], -1)),
1075
- l(d) ? (v(), h("div", Ge, [
1076
- u(S, { size: "xxl" })
1077
- ])) : (v(), x(N, {
1163
+ o(m) ? (y(), h("div", Be, [
1164
+ u(C, { size: "xxl" })
1165
+ ])) : (y(), F(M, {
1078
1166
  key: 1,
1079
- "model-value": l(t),
1080
- "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
1081
- class: "mb-6",
1167
+ "model-value": o(t),
1168
+ "onUpdate:modelValue": b[0] || (b[0] = (V) => E(t) ? t.value = V : null),
1169
+ class: "mb-6 mt-6",
1082
1170
  items: r.value
1083
1171
  }, null, 8, ["model-value", "items"])),
1084
- l(t) ? (v(), x(z((K = a.value) == null ? void 0 : K.render), H(L({ key: 2 }, {
1085
- gateway: s.value.find((F) => {
1086
- var A;
1087
- return F.type === ((A = a.value) == null ? void 0 : A.value);
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);
1088
1176
  }),
1089
1177
  onDelete: async () => {
1090
- s.value = s.value.filter((F) => {
1091
- var A;
1092
- return F.type !== ((A = a.value) == null ? void 0 : A.value);
1093
- }), g(s.value);
1178
+ c.value = c.value.filter((V) => {
1179
+ var _;
1180
+ return V.type !== ((_ = a.value) == null ? void 0 : _.value);
1181
+ }), f(c.value);
1094
1182
  },
1095
- onUpdate: (F) => {
1096
- let A = s.value.find((B) => {
1097
- var q;
1098
- return B.type === ((q = a.value) == null ? void 0 : q.value);
1183
+ onUpdate: (V) => {
1184
+ let _ = c.value.find((I) => {
1185
+ var K;
1186
+ return I.type === ((K = a.value) == null ? void 0 : K.value);
1099
1187
  });
1100
- A ? A.config = F : s.value.push(F), g(s.value);
1188
+ _ ? _.config = V : c.value.push(V), f(c.value);
1101
1189
  }
1102
- })), null, 16)) : C("", !0)
1190
+ })), null, 16)) : U("", !0)
1103
1191
  ], 64);
1104
1192
  };
1105
1193
  }
1106
- }), Qe = /* @__PURE__ */ _({
1194
+ }), Xe = /* @__PURE__ */ A({
1107
1195
  __name: "PayoutAccountSetting",
1108
1196
  props: {
1109
1197
  accountId: {
@@ -1112,82 +1200,82 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
1112
1200
  }
1113
1201
  },
1114
1202
  setup(n) {
1115
- const y = n, { tab: e } = j({
1203
+ const v = n, { tab: e } = j({
1116
1204
  tab: "information"
1117
- }), { isLoading: d, startAsyncCall: c } = O(!0), t = te(), o = U();
1118
- async function p(g) {
1119
- await D.updateById(
1120
- y.accountId,
1121
- g
1122
- ), o.value = await D.readById(y.accountId);
1205
+ }), { isLoading: m, startAsyncCall: s } = O(!0), t = ae(), l = T();
1206
+ async function p(f) {
1207
+ await N.updateById(
1208
+ v.accountId,
1209
+ f
1210
+ ), l.value = await N.readById(v.accountId);
1123
1211
  }
1124
- const s = [
1212
+ const c = [
1125
1213
  {
1126
1214
  label: "Information",
1127
1215
  value: "information",
1128
1216
  icon: "overview",
1129
- render: oe
1217
+ render: ue
1130
1218
  },
1131
1219
  {
1132
1220
  label: "Settlement",
1133
1221
  value: "settlement",
1134
1222
  icon: "payments",
1135
- render: ce
1223
+ render: ie
1136
1224
  },
1137
1225
  {
1138
1226
  label: "MDR Status",
1139
1227
  value: "payment",
1140
1228
  icon: "account_box",
1141
- render: ge
1229
+ render: be
1142
1230
  },
1143
1231
  {
1144
1232
  label: "Online Gateways",
1145
1233
  icon: "assured_workload",
1146
1234
  value: "gateways",
1147
- render: Ne
1235
+ render: Me
1148
1236
  },
1149
1237
  {
1150
1238
  label: "Token Gateways",
1151
1239
  value: "tokens",
1152
1240
  icon: "wallet",
1153
- render: Me
1241
+ render: qe
1154
1242
  },
1155
1243
  {
1156
1244
  label: "Online Channels",
1157
1245
  icon: "shopping_cart",
1158
1246
  value: "channels",
1159
- render: we
1247
+ render: Ve
1160
1248
  }
1161
1249
  ];
1162
1250
  function a() {
1163
- c(async () => {
1164
- o.value = await D.readById(y.accountId);
1251
+ s(async () => {
1252
+ l.value = await N.readById(v.accountId);
1165
1253
  });
1166
1254
  }
1167
1255
  J(a);
1168
1256
  const r = G(() => {
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);
1170
- return g == null ? void 0 : g.render;
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);
1258
+ return f == null ? void 0 : f.render;
1171
1259
  });
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
1260
+ 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})`,
1265
+ loading: o(m),
1266
+ onBack: o(t).back
1179
1267
  }, {
1180
1268
  default: k(() => [
1181
1269
  u(b, {
1182
- "model-value": l(e),
1183
- "onUpdate:modelValue": f[0] || (f[0] = (N) => E(e) ? e.value = N : null),
1270
+ "model-value": o(e),
1271
+ "onUpdate:modelValue": g[0] || (g[0] = (M) => E(e) ? e.value = M : null),
1184
1272
  class: "mb-6",
1185
- items: s
1273
+ items: c
1186
1274
  }, null, 8, ["model-value"]),
1187
- l(e) ? (v(), x(z(r.value), H(L({ key: 0 }, {
1188
- payoutAccount: o.value,
1275
+ o(e) ? (y(), F(z(r.value), H(L({ key: 0 }, {
1276
+ payoutAccount: l.value,
1189
1277
  onUpdate: p
1190
- })), null, 16)) : C("", !0)
1278
+ })), null, 16)) : U("", !0)
1191
1279
  ]),
1192
1280
  _: 1
1193
1281
  }, 8, ["title", "loading", "onBack"]);
@@ -1195,5 +1283,5 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ _({
1195
1283
  }
1196
1284
  });
1197
1285
  export {
1198
- Qe as default
1286
+ Xe as default
1199
1287
  };