@feedmepos/mf-payment 1.4.7 → 1.4.9

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 (64) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CZYcJMXD.js → Actions.vue_vue_type_script_setup_true_lang-NVVDBgu2.js} +2 -2
  2. package/dist/{OnboardForm-BcrtWsWm.js → OnboardForm-CO-gRNBl.js} +4 -4
  3. package/dist/{OnboardForm-CIbaEMwf.js → OnboardForm-i3UXFhVW.js} +4 -4
  4. package/dist/{OnboardSubmission-Cm3WR3pw.js → OnboardSubmission-BN11hozP.js} +5 -5
  5. package/dist/{OnboardSubmission-BfK8L_eM.js → OnboardSubmission-BoudwTyR.js} +2 -2
  6. package/dist/{PayoutAccount-DKAlk7t4.js → PayoutAccount-BOb3un4S.js} +5 -5
  7. package/dist/{PayoutAccount-B8pDGkjJ.js → PayoutAccount-CL8ONTto.js} +5 -5
  8. package/dist/{PayoutAccountSetting-yH2ZRT-A.js → PayoutAccountSetting-CasobYXH.js} +139 -132
  9. package/dist/{Restaurant-CeH2FJRT.js → Restaurant-Cxsbp2jQ.js} +4 -4
  10. package/dist/{RestaurantSetting-BV1XLh-9.js → RestaurantSetting-BykOuVYY.js} +112 -105
  11. package/dist/{Settlement-DW_ElmEK.js → Settlement-DfKj96mQ.js} +3 -3
  12. package/dist/{Settlement-DzYUTaVE.js → Settlement-m45suXxV.js} +3 -3
  13. package/dist/{SettlementTransactions-BdDILkFA.js → SettlementTransactions-DGgUpZgA.js} +3 -3
  14. package/dist/{SettlementTransactions-CnRbyrp1.js → SettlementTransactions-Dkc5Wogr.js} +3 -3
  15. package/dist/{Status.vue_vue_type_script_setup_true_lang-B7a304Y6.js → Status.vue_vue_type_script_setup_true_lang-BP-wktEP.js} +1 -1
  16. package/dist/{Terminal-DA_mJQMD.js → Terminal-C7AdBY9Y.js} +5 -5
  17. package/dist/{TerminalSetting-GFMILaSV.js → TerminalSetting-DJYGoWdb.js} +3 -3
  18. package/dist/{Transaction-BIPXYUK1.js → Transaction-CcUFfb3m.js} +8 -8
  19. package/dist/{Transaction-LkD5KPuT.js → Transaction-OthZffw8.js} +5 -5
  20. package/dist/{TransactionOld-O97RNWZC.js → TransactionOld-BLYgVqKA.js} +5 -5
  21. package/dist/{app-QW40QJu9.js → app-LbrmOxsV.js} +22 -22
  22. package/dist/app.js +1 -1
  23. package/dist/{assets-BuMkWZHi.js → assets-G_4EYkBh.js} +1 -1
  24. package/dist/{grafana-BrdrOUM4.js → grafana-Cqdyar0p.js} +1 -1
  25. package/dist/{index-C4FfKmPS.js → index-B1nXFe1-.js} +4589 -4580
  26. package/dist/{index-ILoz50zh.js → index-CNGLJkBO.js} +1 -1
  27. package/dist/{index-BWjmOoX3.js → index-CVpKc-VE.js} +1 -1
  28. package/dist/{index-DJrcobek.js → index-Db-jphAQ.js} +1 -1
  29. package/dist/{index-j0nww2Hf.js → index-DvoVfG2y.js} +1 -1
  30. package/dist/{index-C8G7ruiF.js → index-Gr7lw7we.js} +1 -1
  31. package/dist/{index-B3JbsRRU.js → index-V60aTS9B.js} +2 -2
  32. package/dist/{index.vue_vue_type_script_setup_true_lang-v7o6C5Pg.js → index.vue_vue_type_script_setup_true_lang-D62UrwAv.js} +1 -1
  33. package/dist/package.json +2 -2
  34. package/dist/{payout-account-DFer8uW8.js → payout-account-Crav1TAY.js} +3 -3
  35. package/dist/{plugins-DOZFFqtK.js → plugins-CJ-W8eYA.js} +1 -1
  36. package/dist/stores/payoutAccount.d.ts +8 -6
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +8 -6
  39. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +10 -8
  40. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +10 -8
  41. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +8 -6
  42. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +8 -6
  43. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +10 -8
  44. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -0
  45. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +2 -0
  46. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -6
  47. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -6
  48. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -6
  49. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -6
  50. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -6
  51. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -6
  52. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -6
  53. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -6
  54. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -6
  55. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -6
  56. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -6
  57. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -6
  58. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -6
  59. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -6
  60. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -6
  61. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +16 -12
  62. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +40 -40
  63. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +20 -20
  64. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
- import { defineComponent as C, resolveComponent as m, openBlock as f, createElementBlock as T, Fragment as $, createElementVNode as i, createVNode as u, withCtx as V, createTextVNode as U, toDisplayString as S, createCommentVNode as _, createBlock as w, ref as h, watch as W, computed as G, unref as o, isRef as K, h as R, onMounted as J, resolveDynamicComponent as z, normalizeProps as L, mergeProps as H } from "vue";
2
- import { p as D } from "./index-BWjmOoX3.js";
3
- import { u as E, e as I } from "./index-C4FfKmPS.js";
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 E, h as R, onMounted as J, resolveDynamicComponent as z, normalizeProps as L, mergeProps as H } from "vue";
2
+ import { p as D } from "./index-CVpKc-VE.js";
3
+ import { u as K, e as I } from "./index-B1nXFe1-.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-ILoz50zh.js";
6
+ import { u as j } from "./index-CNGLJkBO.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
9
  import { u as B } from "./error-K1CakhA9.js";
10
- import { z as k, a as A } from "./validator-D5jtpt9A.js";
10
+ import { z as x, a as V } from "./validator-D5jtpt9A.js";
11
11
  import { useCoreStore as X } from "@feedmepos/mf-common";
12
12
  const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
13
13
  __name: "Information",
@@ -19,7 +19,7 @@ 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 d = m("FmCardHeader"), c = m("FmCardSection"), t = m("FmCard");
22
+ const m = d("FmCardHeader"), c = d("FmCardSection"), t = d("FmCard");
23
23
  return f(), T($, null, [
24
24
  i("div", ne, [
25
25
  u(t, {
@@ -27,26 +27,26 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
27
27
  class: "flex-1 p-6",
28
28
  variant: "elevated"
29
29
  }, {
30
- default: V(() => [
30
+ default: A(() => [
31
31
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
32
- default: V(() => [
33
- u(d, {
32
+ default: A(() => [
33
+ u(m, {
34
34
  class: "p-0",
35
35
  title: "Account Info",
36
36
  subtitle: ""
37
37
  }),
38
38
  u(c, { class: "p-0" }, {
39
- default: V(() => {
39
+ default: A(() => {
40
40
  var l, p, s, a, r;
41
41
  return [
42
42
  e[0] || (e[0] = i("b", null, "For", -1)),
43
- U(": " + S((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
43
+ h(": " + S((p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.event) + " ", 1),
44
44
  e[1] || (e[1] = i("br", null, null, -1)),
45
45
  e[2] || (e[2] = i("b", null, "Reference", -1)),
46
- U(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : a.id), 1),
46
+ h(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.store) == null ? void 0 : a.id), 1),
47
47
  e[3] || (e[3] = i("br", null, null, -1)),
48
48
  e[4] || (e[4] = i("b", null, "Business", -1)),
49
- U(": " + S((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
49
+ h(": " + S((r = n.payoutAccount) == null ? void 0 : r.businessId), 1),
50
50
  e[5] || (e[5] = i("br", null, null, -1))
51
51
  ];
52
52
  }),
@@ -63,26 +63,26 @@ 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: V(() => [
66
+ default: A(() => [
67
67
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
68
- default: V(() => [
69
- u(d, {
68
+ default: A(() => [
69
+ u(m, {
70
70
  class: "p-0",
71
71
  title: "Key Person",
72
72
  subtitle: ""
73
73
  }),
74
74
  u(c, { class: "p-0" }, {
75
- default: V(() => {
75
+ default: A(() => {
76
76
  var l, p, s, a, r, g, v, b;
77
77
  return [
78
78
  e[6] || (e[6] = i("b", null, "Email", -1)),
79
- U(": " + S((s = (p = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : p.keyPerson) == null ? void 0 : s.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
80
  e[7] || (e[7] = i("br", null, null, -1)),
81
81
  e[8] || (e[8] = i("b", null, "Name", -1)),
82
- U(": " + S((g = (r = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : r.keyPerson) == null ? void 0 : g.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
83
  e[9] || (e[9] = i("br", null, null, -1)),
84
84
  e[10] || (e[10] = i("b", null, "Phone", -1)),
85
- U(": " + S((b = (v = n.payoutAccount) == null ? void 0 : v.store.keyPerson) == null ? void 0 : b.phone), 1),
85
+ h(": " + S((b = (v = n.payoutAccount) == null ? void 0 : v.store.keyPerson) == null ? void 0 : b.phone), 1),
86
86
  e[11] || (e[11] = i("br", null, null, -1))
87
87
  ];
88
88
  }),
@@ -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 d = m("FmCardHeader"), c = m("FmCardSection"), t = m("FmCard");
116
+ const m = d("FmCardHeader"), c = d("FmCardSection"), t = d("FmCard");
117
117
  return f(), T($, 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: V(() => [
123
+ default: A(() => [
124
124
  u(c, { class: "flex flex-col gap-16 justify-between" }, {
125
- default: V(() => [
126
- u(d, {
125
+ default: A(() => [
126
+ u(m, {
127
127
  class: "p-0",
128
128
  title: "Bank Info",
129
129
  subtitle: ""
130
130
  }),
131
131
  u(c, { class: "p-0" }, {
132
- default: V(() => {
132
+ default: A(() => {
133
133
  var l, p, s, a, r, g;
134
134
  return [
135
135
  e[0] || (e[0] = i("b", null, "Bank", -1)),
136
- U(": " + S((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
136
+ h(": " + S((p = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : p.name), 1),
137
137
  e[1] || (e[1] = i("br", null, null, -1)),
138
138
  e[2] || (e[2] = i("b", null, "Name", -1)),
139
- U(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
139
+ h(": " + S((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
140
140
  e[3] || (e[3] = i("br", null, null, -1)),
141
141
  e[4] || (e[4] = i("b", null, "Number", -1)),
142
- U(": " + S((g = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : g.accountNumber), 1)
142
+ h(": " + S((g = (r = n.payoutAccount) == null ? void 0 : r.store.bank) == null ? void 0 : g.accountNumber), 1)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -180,35 +180,35 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
180
180
  onChange: { type: Function }
181
181
  },
182
182
  setup(n) {
183
- const y = n, e = h(y.data.toString());
184
- return W(e, (d) => {
185
- y.onChange(parseFloat(d));
186
- }), (d, c) => {
187
- const t = m("FmTextField");
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
188
  return f(), w(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
191
191
  "onUpdate:modelValue": c[0] || (c[0] = (l) => e.value = l)
192
192
  }, {
193
- append: V(() => c[1] || (c[1] = [
194
- U("%")
193
+ append: A(() => c[1] || (c[1] = [
194
+ h("%")
195
195
  ])),
196
196
  _: 1
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), me = /* @__PURE__ */ C({
200
+ }), de = /* @__PURE__ */ C({
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 = h(y.data.toString());
208
- return W(e, (d) => {
209
- y.onChange(parseInt(d));
210
- }), (d, c) => {
211
- const t = m("FmTextField");
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
212
  return f(), w(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
@@ -216,7 +216,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
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__ */ C({
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({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -229,14 +229,14 @@ 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 = h(!1), d = Y(), c = async (a) => {
232
+ const y = n, e = U(!1), m = Y(), c = async (a) => {
233
233
  try {
234
- e.value = !0, await y.onUpdate(a), d.open({
234
+ e.value = !0, await y.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
242
  message: B(r)
@@ -249,7 +249,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
249
249
  }), l = 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
- }), p = h(""), s = [
252
+ }), p = U(""), s = [
253
253
  {
254
254
  header: () => "Payment Method",
255
255
  accessorKey: "issuer",
@@ -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(me, {
278
+ cell: ({ row: a }) => R(de, {
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 = m("FmRadio"), v = m("FmRadioGroup"), b = m("FmSwitch"), P = m("FmSearch"), N = m("FmTable"), M = m("FmButton");
288
+ const g = d("FmRadio"), v = d("FmRadioGroup"), b = d("FmSwitch"), P = d("FmSearch"), N = d("FmTable"), M = d("FmButton");
289
289
  return f(), T($, null, [
290
- i("div", de, [
290
+ i("div", me, [
291
291
  i("div", pe, [
292
292
  u(v, {
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: V(() => [
297
+ default: A(() => [
298
298
  u(g, {
299
299
  value: "NEW",
300
300
  label: "New"
@@ -326,7 +326,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
326
326
  i("div", fe, [
327
327
  u(P, {
328
328
  modelValue: o(t),
329
- "onUpdate:modelValue": r[2] || (r[2] = (F) => K(t) ? t.value = F : null),
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
  ])
@@ -356,8 +356,8 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
356
356
  emits: ["edit", "delete"],
357
357
  setup(n, { emit: y }) {
358
358
  const e = y;
359
- return (d, c) => {
360
- const t = m("FmButton");
359
+ return (m, c) => {
360
+ const t = d("FmButton");
361
361
  return f(), T("div", be, [
362
362
  u(t, {
363
363
  variant: "plain",
@@ -378,7 +378,7 @@ 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: d, startAsyncCall: c } = E(), t = h([]);
381
+ const y = Y(), e = n, { isLoading: m, startAsyncCall: c } = K(), t = U([]);
382
382
  function l() {
383
383
  c(async () => {
384
384
  t.value = await D.getChannels(e.payoutAccount._id);
@@ -448,7 +448,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
448
448
  }
449
449
  ];
450
450
  return (r, g) => {
451
- const v = m("FmButton"), b = m("FmTable");
451
+ const v = d("FmButton"), b = d("FmTable");
452
452
  return f(), T($, null, [
453
453
  i("div", we, [
454
454
  u(v, {
@@ -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(d),
471
+ loading: o(m),
472
472
  "row-data": t.value,
473
473
  "column-defs": a,
474
474
  "shrink-at": !1
@@ -493,37 +493,37 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
493
493
  }
494
494
  },
495
495
  setup(n) {
496
- var d;
497
- const e = h(((d = n.gateway) == null ? void 0 : d.config) || {
496
+ var m;
497
+ const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
498
498
  merchantId: "",
499
499
  verifyKey: "",
500
500
  secretKey: ""
501
501
  });
502
502
  return (c, t) => {
503
- const l = m("FmTextField"), p = m("FmButton"), s = m("FmForm");
503
+ const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
504
504
  return f(), w(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: V(() => [
509
+ default: A(() => [
510
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: o(k)(o(A).string())
514
+ rules: o(x)(o(V).string())
515
515
  }, null, 8, ["modelValue", "rules"]),
516
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: o(k)(o(A).string())
520
+ rules: o(x)(o(V).string())
521
521
  }, null, 8, ["modelValue", "rules"]),
522
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: o(k)(o(A).string())
526
+ rules: o(x)(o(V).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
528
  i("div", Ve, [
529
529
  n.gateway ? (f(), w(p, {
@@ -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 d;
566
- const e = h(((d = n.gateway) == null ? void 0 : d.config) || {
565
+ var m;
566
+ const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
567
567
  merchantId: "",
568
568
  merchantName: "",
569
569
  merchantCategoryCode: "",
@@ -571,42 +571,42 @@ 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 = m("FmTextField"), p = m("FmButton"), s = m("FmForm");
574
+ const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
575
575
  return f(), w(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: V(() => [
580
+ default: A(() => [
581
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: o(k)(o(A).string())
585
+ rules: o(x)(o(V).string())
586
586
  }, null, 8, ["modelValue", "rules"]),
587
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: o(k)(o(A).string())
591
+ rules: o(x)(o(V).string())
592
592
  }, null, 8, ["modelValue", "rules"]),
593
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: o(k)(o(A).string())
597
+ rules: o(x)(o(V).string())
598
598
  }, null, 8, ["modelValue", "rules"]),
599
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: o(k)(o(A).string())
603
+ rules: o(x)(o(V).string())
604
604
  }, null, 8, ["modelValue", "rules"]),
605
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: o(k)(o(A).string())
609
+ rules: o(x)(o(V).string())
610
610
  }, null, 8, ["modelValue", "rules"]),
611
611
  i("div", Ae, [
612
612
  n.gateway ? (f(), w(p, {
@@ -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" }, he = /* @__PURE__ */ C({
631
+ }), _e = { class: "flex mt-6 space-x-6" }, Ue = /* @__PURE__ */ C({
632
632
  __name: "DigioGateway",
633
633
  props: {
634
634
  gateway: {
@@ -645,30 +645,30 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
645
645
  }
646
646
  },
647
647
  setup(n) {
648
- var d;
649
- const e = h(((d = n.gateway) == null ? void 0 : d.config) || {
648
+ var m;
649
+ const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
650
650
  merchantId: "",
651
651
  cardMerchantId: ""
652
652
  });
653
653
  return (c, t) => {
654
- const l = m("FmTextField"), p = m("FmButton"), s = m("FmForm");
654
+ const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
655
655
  return f(), w(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: V(() => [
660
+ default: A(() => [
661
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: o(k)(o(A).string())
665
+ rules: o(x)(o(V).string())
666
666
  }, null, 8, ["modelValue", "rules"]),
667
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: o(k)(o(A).string())
671
+ rules: o(x)(o(V).string())
672
672
  }, null, 8, ["modelValue", "rules"]),
673
673
  i("div", _e, [
674
674
  n.gateway ? (f(), w(p, {
@@ -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
- }), Ue = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ C({
693
+ }), he = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ C({
694
694
  __name: "AdyenGateway",
695
695
  props: {
696
696
  gateway: {
@@ -707,46 +707,53 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
707
707
  }
708
708
  },
709
709
  setup(n) {
710
- var d;
711
- const e = h(((d = n.gateway) == null ? void 0 : d.config) || {
710
+ var m;
711
+ const e = U(((m = n.gateway) == null ? void 0 : m.config) || {
712
712
  merchantAccount: "",
713
713
  username: "",
714
714
  apiKey: "",
715
- clientKey: ""
715
+ clientKey: "",
716
+ endpoint: ""
716
717
  });
717
718
  return (c, t) => {
718
- const l = m("FmTextField"), p = m("FmButton"), s = m("FmForm");
719
+ const l = d("FmTextField"), p = d("FmButton"), s = d("FmForm");
719
720
  return f(), w(s, {
720
721
  ref: "form",
721
722
  class: "flex flex-col gap-16",
722
- onValidationSuccess: t[4] || (t[4] = () => n.onUpdate(e.value))
723
+ onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
723
724
  }, {
724
- default: V(() => [
725
+ default: A(() => [
726
+ u(l, {
727
+ modelValue: e.value.endpoint,
728
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
729
+ label: "Endpoint",
730
+ rules: o(x)(o(V).string())
731
+ }, null, 8, ["modelValue", "rules"]),
725
732
  u(l, {
726
733
  modelValue: e.value.merchantAccount,
727
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantAccount = a),
734
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
728
735
  label: "Merchant Account",
729
- rules: o(k)(o(A).string())
736
+ rules: o(x)(o(V).string())
730
737
  }, null, 8, ["modelValue", "rules"]),
731
738
  u(l, {
732
739
  modelValue: e.value.username,
733
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.username = a),
740
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
734
741
  label: "Username",
735
- rules: o(k)(o(A).string())
742
+ rules: o(x)(o(V).string())
736
743
  }, null, 8, ["modelValue", "rules"]),
737
744
  u(l, {
738
745
  modelValue: e.value.apiKey,
739
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.apiKey = a),
746
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
740
747
  label: "API Key",
741
- rules: o(k)(o(A).string())
748
+ rules: o(x)(o(V).string())
742
749
  }, null, 8, ["modelValue", "rules"]),
743
750
  u(l, {
744
751
  modelValue: e.value.clientKey,
745
- "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.clientKey = a),
752
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
746
753
  label: "Client Key",
747
- rules: o(k)(o(A).string())
754
+ rules: o(x)(o(V).string())
748
755
  }, null, 8, ["modelValue", "rules"]),
749
- i("div", Ue, [
756
+ i("div", he, [
750
757
  n.gateway ? (f(), w(p, {
751
758
  key: 0,
752
759
  class: "flex-1",
@@ -781,7 +788,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
781
788
  }
782
789
  },
783
790
  setup(n) {
784
- const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = E(), { gatewayTab: t } = j({
791
+ const y = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: c } = K(), { gatewayTab: t } = j({
785
792
  gatewayTab: ""
786
793
  }), l = n, p = [
787
794
  {
@@ -799,7 +806,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
799
806
  {
800
807
  label: "Digio",
801
808
  value: "DIGIO",
802
- render: he,
809
+ render: Ue,
803
810
  region: [I.F_COUNTRY.enum.TH]
804
811
  },
805
812
  {
@@ -808,7 +815,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
808
815
  render: Te,
809
816
  region: [I.F_COUNTRY.enum.SG]
810
817
  }
811
- ], s = h(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)));
818
+ ], 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)));
812
819
  async function g(v) {
813
820
  await c(async () => {
814
821
  try {
@@ -827,39 +834,39 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
827
834
  }
828
835
  return (v, b) => {
829
836
  var M;
830
- const P = m("FmCircularProgress"), N = m("FmTabs");
837
+ const P = d("FmCircularProgress"), N = d("FmTabs");
831
838
  return f(), T($, null, [
832
839
  o(y).value === o(I.F_COUNTRY).enum.MY ? (f(), T("p", Pe, b[1] || (b[1] = [
833
840
  i("b", null, "Note: ", -1),
834
- U(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
841
+ h(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
835
842
  ]))) : _("", !0),
836
- o(d) ? (f(), T("div", Se, [
843
+ o(m) ? (f(), T("div", Se, [
837
844
  u(P, { size: "xxl" })
838
845
  ])) : (f(), w(N, {
839
846
  key: 2,
840
847
  "model-value": o(t),
841
- "onUpdate:modelValue": b[0] || (b[0] = (F) => K(t) ? t.value = F : null),
848
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
842
849
  class: "mb-6",
843
850
  items: r.value
844
851
  }, null, 8, ["model-value", "items"])),
845
852
  o(t) ? (f(), w(z((M = a.value) == null ? void 0 : M.render), L(H({ key: 3 }, {
846
853
  gateway: s.value.find((F) => {
847
- var x;
848
- return F.paymentGateway === ((x = a.value) == null ? void 0 : x.value);
854
+ var k;
855
+ return F.paymentGateway === ((k = a.value) == null ? void 0 : k.value);
849
856
  }),
850
857
  onDelete: async () => {
851
858
  s.value = s.value.filter((F) => {
852
- var x;
853
- return F.paymentGateway !== ((x = a.value) == null ? void 0 : x.value);
859
+ var k;
860
+ return F.paymentGateway !== ((k = a.value) == null ? void 0 : k.value);
854
861
  }), g(s.value);
855
862
  },
856
863
  onUpdate: (F) => {
857
864
  var q;
858
- let x = s.value.find((O) => {
865
+ let k = s.value.find((O) => {
859
866
  var Z;
860
867
  return O.paymentGateway === ((Z = a.value) == null ? void 0 : Z.value);
861
868
  });
862
- x ? x.config = F : s.value.push({
869
+ k ? k.config = F : s.value.push({
863
870
  paymentGateway: (q = a.value) == null ? void 0 : q.value,
864
871
  config: F
865
872
  }), g(s.value);
@@ -885,7 +892,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
885
892
  }
886
893
  },
887
894
  setup(n) {
888
- const e = h(n.gateway || {
895
+ const e = U(n.gateway || {
889
896
  // hardcoded first since only 1 PSP supported
890
897
  type: "googlePay",
891
898
  gateway: "RAZER_MERCHANT_SERVICE",
@@ -894,34 +901,34 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
894
901
  gatewayMerchantId: "molpay"
895
902
  }
896
903
  });
897
- return (d, c) => {
898
- const t = m("FmTextField"), l = m("FmButton"), p = m("FmForm");
904
+ return (m, c) => {
905
+ const t = d("FmTextField"), l = d("FmButton"), p = d("FmForm");
899
906
  return f(), w(p, {
900
907
  ref: "form",
901
908
  class: "flex flex-col gap-16",
902
909
  onValidationSuccess: c[3] || (c[3] = () => n.onUpdate(e.value))
903
910
  }, {
904
- default: V(() => [
911
+ default: A(() => [
905
912
  u(t, {
906
913
  modelValue: e.value.gateway,
907
914
  "onUpdate:modelValue": c[0] || (c[0] = (s) => e.value.gateway = s),
908
915
  label: "Gateway",
909
916
  disabled: !0,
910
- rules: o(k)(o(A).string())
917
+ rules: o(x)(o(V).string())
911
918
  }, null, 8, ["modelValue", "rules"]),
912
919
  u(t, {
913
920
  modelValue: e.value.config.gateway,
914
921
  "onUpdate:modelValue": c[1] || (c[1] = (s) => e.value.config.gateway = s),
915
922
  label: "Gateway ID",
916
923
  disabled: !0,
917
- rules: o(k)(o(A).string())
924
+ rules: o(x)(o(V).string())
918
925
  }, null, 8, ["modelValue", "rules"]),
919
926
  u(t, {
920
927
  modelValue: e.value.config.gateway,
921
928
  "onUpdate:modelValue": c[2] || (c[2] = (s) => e.value.config.gateway = s),
922
929
  label: "Gateway Merchant ID",
923
930
  disabled: !0,
924
- rules: o(k)(o(A).string())
931
+ rules: o(x)(o(V).string())
925
932
  }, null, 8, ["modelValue", "rules"]),
926
933
  i("div", De, [
927
934
  n.gateway ? (f(), w(l, {
@@ -955,7 +962,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
955
962
  }
956
963
  },
957
964
  setup(n) {
958
- const y = X().currentCountry, e = Y(), { isLoading: d, startAsyncCall: c } = E(), { tokenTab: t } = j({
965
+ const y = X().currentCountry, e = Y(), { isLoading: m, startAsyncCall: c } = K(), { tokenTab: t } = j({
959
966
  tokenTab: ""
960
967
  }), l = n, p = [
961
968
  {
@@ -965,7 +972,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
965
972
  render: Ne,
966
973
  region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
967
974
  }
968
- ], s = h(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)));
975
+ ], 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)));
969
976
  async function g(v) {
970
977
  await c(async () => {
971
978
  try {
@@ -984,38 +991,38 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
984
991
  }
985
992
  return (v, b) => {
986
993
  var M;
987
- const P = m("FmCircularProgress"), N = m("FmTabs");
994
+ const P = d("FmCircularProgress"), N = d("FmTabs");
988
995
  return f(), T($, null, [
989
996
  b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
990
997
  i("b", null, "Note: "),
991
- U(" 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. ")
998
+ 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. ")
992
999
  ], -1)),
993
- o(d) ? (f(), T("div", Me, [
1000
+ o(m) ? (f(), T("div", Me, [
994
1001
  u(P, { size: "xxl" })
995
1002
  ])) : (f(), w(N, {
996
1003
  key: 1,
997
1004
  "model-value": o(t),
998
- "onUpdate:modelValue": b[0] || (b[0] = (F) => K(t) ? t.value = F : null),
1005
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => E(t) ? t.value = F : null),
999
1006
  class: "mb-6",
1000
1007
  items: r.value
1001
1008
  }, null, 8, ["model-value", "items"])),
1002
1009
  o(t) ? (f(), w(z((M = a.value) == null ? void 0 : M.render), L(H({ key: 2 }, {
1003
1010
  gateway: s.value.find((F) => {
1004
- var x;
1005
- return F.type === ((x = a.value) == null ? void 0 : x.value);
1011
+ var k;
1012
+ return F.type === ((k = a.value) == null ? void 0 : k.value);
1006
1013
  }),
1007
1014
  onDelete: async () => {
1008
1015
  s.value = s.value.filter((F) => {
1009
- var x;
1010
- return F.type !== ((x = a.value) == null ? void 0 : x.value);
1016
+ var k;
1017
+ return F.type !== ((k = a.value) == null ? void 0 : k.value);
1011
1018
  }), g(s.value);
1012
1019
  },
1013
1020
  onUpdate: (F) => {
1014
- let x = s.value.find((q) => {
1021
+ let k = s.value.find((q) => {
1015
1022
  var O;
1016
1023
  return q.type === ((O = a.value) == null ? void 0 : O.value);
1017
1024
  });
1018
- x ? x.config = F : s.value.push(F), g(s.value);
1025
+ k ? k.config = F : s.value.push(F), g(s.value);
1019
1026
  }
1020
1027
  })), null, 16)) : _("", !0)
1021
1028
  ], 64);
@@ -1032,7 +1039,7 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
1032
1039
  setup(n) {
1033
1040
  const y = n, { tab: e } = j({
1034
1041
  tab: "information"
1035
- }), { isLoading: d, startAsyncCall: c } = E(!0), t = te(), l = h();
1042
+ }), { isLoading: m, startAsyncCall: c } = K(!0), t = te(), l = U();
1036
1043
  async function p(g) {
1037
1044
  await D.updateById(
1038
1045
  y.accountId,
@@ -1089,16 +1096,16 @@ const ne = { class: "flex gap-16 mb-6" }, le = ["src"], oe = /* @__PURE__ */ C({
1089
1096
  });
1090
1097
  return (g, v) => {
1091
1098
  var P;
1092
- const b = m("FmTabs");
1099
+ const b = d("FmTabs");
1093
1100
  return f(), w(ee, {
1094
1101
  title: `Payout Account (${(P = l.value) == null ? void 0 : P._id})`,
1095
- loading: o(d),
1102
+ loading: o(m),
1096
1103
  onBack: o(t).back
1097
1104
  }, {
1098
- default: V(() => [
1105
+ default: A(() => [
1099
1106
  u(b, {
1100
1107
  "model-value": o(e),
1101
- "onUpdate:modelValue": v[0] || (v[0] = (N) => K(e) ? e.value = N : null),
1108
+ "onUpdate:modelValue": v[0] || (v[0] = (N) => E(e) ? e.value = N : null),
1102
1109
  class: "mb-6",
1103
1110
  items: s
1104
1111
  }, null, 8, ["model-value"]),