@feedmepos/mf-payment 1.5.18-dev → 1.5.21-dev

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 (73) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BVJmo7yZ.js → Actions.vue_vue_type_script_setup_true_lang-DbsSsOek.js} +2 -2
  2. package/dist/{Chargeback-tB9aRc32.js → Chargeback-Bds2iEV5.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BgL6Nuvr.js} +1 -1
  4. package/dist/{OnboardForm-lzWPdRnK.js → OnboardForm-BD9XawdM.js} +5 -5
  5. package/dist/{OnboardForm-CFjqDHUQ.js → OnboardForm-mQf8JjIF.js} +5 -5
  6. package/dist/{OnboardSubmission-BF3Wq8xe.js → OnboardSubmission-CBXLX9vB.js} +5 -5
  7. package/dist/{OnboardSubmission-JGk9_ODn.js → OnboardSubmission-CNjQNirx.js} +2 -2
  8. package/dist/{PayoutAccount-C3dLv3vp.js → PayoutAccount-B9KX0Gla.js} +87 -79
  9. package/dist/{PayoutAccount-kUXbY4SV.js → PayoutAccount-xMg-BquD.js} +270 -230
  10. package/dist/{PayoutAccountSetting-BGqJyEP-.js → PayoutAccountSetting-CUJtxE8n.js} +502 -467
  11. package/dist/{Restaurant-BQUb95tS.js → Restaurant-DVSk4KFB.js} +4 -4
  12. package/dist/{RestaurantSetting-DC0f4Ucf.js → RestaurantSetting-CPa7CFaW.js} +3 -3
  13. package/dist/{Settlement-DnPXVtTO.js → Settlement-BOS0NVhn.js} +3 -3
  14. package/dist/{Settlement-zgU3INW2.js → Settlement-CMEBmvhn.js} +3 -3
  15. package/dist/{SettlementTransactions-BeeHTBBa.js → SettlementTransactions-BKCPfMDs.js} +4 -4
  16. package/dist/{SettlementTransactions-CgDzvPcF.js → SettlementTransactions-BwVjsFCT.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-DiLHaz81.js → Status.vue_vue_type_script_setup_true_lang-BiTeDpBk.js} +1 -1
  18. package/dist/{Terminal-Dp4YfQLn.js → Terminal-DJSDtUUp.js} +5 -5
  19. package/dist/{TerminalSetting-22VMhd8q.js → TerminalSetting-CGGpemW8.js} +3 -3
  20. package/dist/{Transaction-DgrEw-tG.js → Transaction-BASuO5u4.js} +6 -6
  21. package/dist/{Transaction-CwxShg0E.js → Transaction-DA3HSvt8.js} +9 -9
  22. package/dist/{TransactionOld-DPF3VYZ7.js → TransactionOld-CmjVUkD9.js} +6 -6
  23. package/dist/{app-Fj7JOZst.js → app-CaU6ppED.js} +32 -26
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-lFgK3KQx.js → assets-BqyjGcBE.js} +1 -1
  26. package/dist/{grafana-BRpcfaCo.js → grafana-DecAHDp-.js} +1 -1
  27. package/dist/{index-CHX0p0Dm.js → index-B5j5U-Da.js} +1 -1
  28. package/dist/{index-COi73LGz.js → index-BKXccERQ.js} +1 -1
  29. package/dist/{index-DTD9SWXp.js → index-CylkiU8i.js} +1 -1
  30. package/dist/{index-QTsd1BO1.js → index-DQany4ND.js} +1413 -1447
  31. package/dist/{index-9ABD__aA.js → index-DklLFCf5.js} +1 -1
  32. package/dist/{index-hKHpA30o.js → index-DtIipWj2.js} +1 -1
  33. package/dist/{index-CFxxPCNY.js → index-HvRabCwb.js} +1 -1
  34. package/dist/{index-VWqgxrIV.js → index-lkMlxXDI.js} +1 -1
  35. package/dist/{index-Ur-VjIjX.js → index-pBoJWBgh.js} +2 -2
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-QCvHWbIq.js → index.vue_vue_type_script_setup_true_lang-0YY23afw.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-tKvh4Q7G.js → payout-account-hwxvXOZN.js} +57 -53
  39. package/dist/stores/payoutAccount.d.ts +20 -16
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
  42. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  43. package/dist/views/admin/payout-account/cell/DisplayName.vue.d.ts +6 -0
  44. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +20 -16
  45. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +40 -36
  46. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +40 -36
  47. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +20 -16
  48. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +20 -16
  49. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +40 -36
  50. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +12 -136
  51. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +12 -136
  52. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -136
  53. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +12 -136
  54. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -136
  55. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +12 -136
  56. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +12 -136
  57. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +12 -136
  58. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +12 -136
  59. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +12 -136
  60. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +12 -136
  61. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +12 -136
  62. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +12 -136
  63. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +12 -136
  64. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +12 -136
  65. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +12 -136
  66. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +12 -136
  67. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +12 -136
  68. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -136
  69. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +41 -33
  70. package/dist/views/payout-account/cell/DisplayName.vue.d.ts +6 -0
  71. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +64 -64
  72. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +32 -32
  73. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { defineComponent as _, resolveComponent as c, openBlock as f, createElementBlock as P, Fragment as $, createElementVNode as m, createVNode as o, withCtx as x, createTextVNode as S, toDisplayString as M, ref as U, watch as Z, createBlock as F, computed as K, isRef as q, unref as r, createCommentVNode as T, h as O, onMounted as ae, resolveDynamicComponent as Q, normalizeProps as W, mergeProps as J } from "vue";
2
- import { p as R } from "./index-hKHpA30o.js";
3
- import { u as Y, e as I } from "./index-QTsd1BO1.js";
1
+ import { defineComponent as C, resolveComponent as m, openBlock as g, createElementBlock as P, Fragment as $, createElementVNode as i, createVNode as l, withCtx as F, createTextVNode as T, toDisplayString as D, ref as U, watch as Z, createBlock as x, computed as K, isRef as q, unref as r, createCommentVNode as I, h as O, onMounted as ae, resolveDynamicComponent as Q, normalizeProps as W, mergeProps as J } from "vue";
2
+ import { p as R } from "./index-DtIipWj2.js";
3
+ import { u as j, e as h } from "./index-DQany4ND.js";
4
4
  import { _ as oe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
5
5
  import { useRouter as ue } from "vue-router";
6
- import { u as j } from "./index-CHX0p0Dm.js";
7
- import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js";
6
+ import { u as Y } from "./index-B5j5U-Da.js";
7
+ import { _ as L } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BgL6Nuvr.js";
8
8
  import { P as te } from "./PDFViewer-CIPPbzWD.js";
9
9
  import { useSnackbar as z, components as re } from "@feedmepos/ui-library";
10
10
  import { u as E } from "./error-K1CakhA9.js";
11
11
  import { z as V, a as w } from "./validator-DzjyJnvv.js";
12
12
  import { useCoreStore as ne } from "@feedmepos/mf-common";
13
- const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
13
+ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ C({
14
14
  __name: "Information",
15
15
  props: {
16
16
  payoutAccount: {
@@ -18,38 +18,38 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
18
18
  required: !0
19
19
  }
20
20
  },
21
- setup(n) {
21
+ setup(a) {
22
22
  return (p, e) => {
23
- var u, v;
24
- const d = c("FmCardHeader"), s = c("FmCardSection"), t = c("FmCard");
25
- return f(), P($, null, [
26
- m("div", se, [
27
- o(t, {
23
+ var u, f;
24
+ const d = m("FmCardHeader"), s = m("FmCardSection"), t = m("FmCard");
25
+ return g(), P($, null, [
26
+ i("div", se, [
27
+ l(t, {
28
28
  horizontal: "",
29
29
  class: "flex-1 p-6",
30
30
  variant: "elevated"
31
31
  }, {
32
- default: x(() => [
33
- o(s, { class: "flex flex-col gap-16 justify-between" }, {
34
- default: x(() => [
35
- o(d, {
32
+ default: F(() => [
33
+ l(s, { class: "flex flex-col gap-16 justify-between" }, {
34
+ default: F(() => [
35
+ l(d, {
36
36
  class: "p-0",
37
37
  title: "Account Info",
38
38
  subtitle: ""
39
39
  }),
40
- o(s, { class: "p-0" }, {
41
- default: x(() => {
42
- var i, a, l, g, y;
40
+ l(s, { class: "p-0" }, {
41
+ default: F(() => {
42
+ var c, n, o, v, y;
43
43
  return [
44
- e[0] || (e[0] = m("b", null, "For", -1)),
45
- S(": " + M((a = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : a.event) + " ", 1),
46
- e[1] || (e[1] = m("br", null, null, -1)),
47
- e[2] || (e[2] = m("b", null, "Reference", -1)),
48
- S(": " + M((g = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : g.id), 1),
49
- e[3] || (e[3] = m("br", null, null, -1)),
50
- e[4] || (e[4] = m("b", null, "Business", -1)),
51
- S(": " + M((y = n.payoutAccount) == null ? void 0 : y.businessId), 1),
52
- e[5] || (e[5] = m("br", null, null, -1))
44
+ e[0] || (e[0] = i("b", null, "For", -1)),
45
+ T(": " + D((n = (c = a.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : n.event) + " ", 1),
46
+ e[1] || (e[1] = i("br", null, null, -1)),
47
+ e[2] || (e[2] = i("b", null, "Reference", -1)),
48
+ T(": " + D((v = (o = a.payoutAccount) == null ? void 0 : o.store) == null ? void 0 : v.id), 1),
49
+ e[3] || (e[3] = i("br", null, null, -1)),
50
+ e[4] || (e[4] = i("b", null, "Business", -1)),
51
+ T(": " + D((y = a.payoutAccount) == null ? void 0 : y.businessId), 1),
52
+ e[5] || (e[5] = i("br", null, null, -1))
53
53
  ];
54
54
  }),
55
55
  _: 1
@@ -60,32 +60,32 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
60
60
  ]),
61
61
  _: 1
62
62
  }),
63
- o(t, {
63
+ l(t, {
64
64
  horizontal: "",
65
65
  class: "flex-1 p-6",
66
66
  variant: "elevated"
67
67
  }, {
68
- default: x(() => [
69
- o(s, { class: "flex flex-col gap-16 justify-between" }, {
70
- default: x(() => [
71
- o(d, {
68
+ default: F(() => [
69
+ l(s, { class: "flex flex-col gap-16 justify-between" }, {
70
+ default: F(() => [
71
+ l(d, {
72
72
  class: "p-0",
73
73
  title: "Key Person",
74
74
  subtitle: ""
75
75
  }),
76
- o(s, { class: "p-0" }, {
77
- default: x(() => {
78
- var i, a, l, g, y, b, C, A;
76
+ l(s, { class: "p-0" }, {
77
+ default: F(() => {
78
+ var c, n, o, v, y, b, _, A;
79
79
  return [
80
- e[6] || (e[6] = m("b", null, "Email", -1)),
81
- S(": " + M((l = (a = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : a.keyPerson) == null ? void 0 : l.email) + " ", 1),
82
- e[7] || (e[7] = m("br", null, null, -1)),
83
- e[8] || (e[8] = m("b", null, "Name", -1)),
84
- S(": " + M((b = (y = (g = n.payoutAccount) == null ? void 0 : g.store) == null ? void 0 : y.keyPerson) == null ? void 0 : b.name), 1),
85
- e[9] || (e[9] = m("br", null, null, -1)),
86
- e[10] || (e[10] = m("b", null, "Phone", -1)),
87
- S(": " + M((A = (C = n.payoutAccount) == null ? void 0 : C.store.keyPerson) == null ? void 0 : A.phone), 1),
88
- e[11] || (e[11] = m("br", null, null, -1))
80
+ e[6] || (e[6] = i("b", null, "Email", -1)),
81
+ T(": " + D((o = (n = (c = a.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : n.keyPerson) == null ? void 0 : o.email) + " ", 1),
82
+ e[7] || (e[7] = i("br", null, null, -1)),
83
+ e[8] || (e[8] = i("b", null, "Name", -1)),
84
+ T(": " + D((b = (y = (v = a.payoutAccount) == null ? void 0 : v.store) == null ? void 0 : y.keyPerson) == null ? void 0 : b.name), 1),
85
+ e[9] || (e[9] = i("br", null, null, -1)),
86
+ e[10] || (e[10] = i("b", null, "Phone", -1)),
87
+ T(": " + D((A = (_ = a.payoutAccount) == null ? void 0 : _.store.keyPerson) == null ? void 0 : A.phone), 1),
88
+ e[11] || (e[11] = i("br", null, null, -1))
89
89
  ];
90
90
  }),
91
91
  _: 1
@@ -97,15 +97,15 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
97
97
  _: 1
98
98
  })
99
99
  ]),
100
- e[12] || (e[12] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
101
- o(L, {
102
- document: n.payoutAccount.store.exteriorPhoto,
103
- "restaurant-id": ((v = (u = n.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : v.event) === "ORDERING" ? n.payoutAccount.store.id : void 0
100
+ e[12] || (e[12] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
101
+ l(L, {
102
+ document: a.payoutAccount.store.exteriorPhoto,
103
+ "restaurant-id": ((f = (u = a.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : f.event) === "ORDERING" ? a.payoutAccount.store.id : void 0
104
104
  }, null, 8, ["document", "restaurant-id"])
105
105
  ], 64);
106
106
  };
107
107
  }
108
- }), ce = { class: "flex gap-16" }, me = { class: "flex-1" }, de = { class: "flex-1" }, pe = /* @__PURE__ */ _({
108
+ }), ce = { class: "flex gap-16 mb-6" }, me = { class: "flex gap-16" }, de = { class: "flex-1" }, pe = { class: "flex-1" }, ye = /* @__PURE__ */ C({
109
109
  __name: "Settlement",
110
110
  props: {
111
111
  payoutAccount: {
@@ -113,56 +113,91 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
113
113
  required: !0
114
114
  }
115
115
  },
116
- setup(n) {
116
+ setup(a) {
117
117
  return (p, e) => {
118
- var u, v, i, a;
119
- const d = c("FmCardHeader"), s = c("FmCardSection"), t = c("FmCard");
120
- return f(), P($, null, [
121
- o(t, {
122
- horizontal: "",
123
- class: "flex-1 p-6 mx-6 mb-6",
124
- variant: "elevated"
125
- }, {
126
- default: x(() => [
127
- o(s, { class: "flex flex-col gap-16 justify-between" }, {
128
- default: x(() => [
129
- o(d, {
130
- class: "p-0",
131
- title: "Bank Info",
132
- subtitle: ""
133
- }),
134
- o(s, { class: "p-0" }, {
135
- default: x(() => {
136
- var l, g, y, b, C, A;
137
- return [
138
- e[0] || (e[0] = m("b", null, "Bank", -1)),
139
- S(": " + M((g = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : g.name), 1),
140
- e[1] || (e[1] = m("br", null, null, -1)),
141
- e[2] || (e[2] = m("b", null, "Name", -1)),
142
- S(": " + M((b = (y = n.payoutAccount) == null ? void 0 : y.store.bank) == null ? void 0 : b.holderName), 1),
143
- e[3] || (e[3] = m("br", null, null, -1)),
144
- e[4] || (e[4] = m("b", null, "Number", -1)),
145
- S(": " + M((A = (C = n.payoutAccount) == null ? void 0 : C.store.bank) == null ? void 0 : A.accountNumber), 1)
146
- ];
118
+ var u, f, c, n;
119
+ const d = m("FmCardHeader"), s = m("FmCardSection"), t = m("FmCard");
120
+ return g(), P($, null, [
121
+ i("div", ce, [
122
+ l(t, {
123
+ horizontal: "",
124
+ class: "flex-1 p-6",
125
+ variant: "elevated"
126
+ }, {
127
+ default: F(() => [
128
+ l(s, { class: "flex flex-col gap-16 justify-between" }, {
129
+ default: F(() => [
130
+ l(d, {
131
+ class: "p-0",
132
+ title: "Company Info",
133
+ subtitle: ""
147
134
  }),
148
- _: 1
149
- })
150
- ]),
151
- _: 1
152
- })
153
- ]),
154
- _: 1
155
- }),
156
- m("div", ce, [
157
- m("div", me, [
158
- e[5] || (e[5] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
159
- o(L, {
160
- "restaurant-id": ((v = (u = n.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : v.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
161
- document: n.payoutAccount.store.ssm
135
+ l(s, { class: "p-0" }, {
136
+ default: F(() => {
137
+ var o, v;
138
+ return [
139
+ e[0] || (e[0] = i("b", null, "Name", -1)),
140
+ T(": " + D((o = a.payoutAccount) == null ? void 0 : o.store.companyName), 1),
141
+ e[1] || (e[1] = i("br", null, null, -1)),
142
+ e[2] || (e[2] = i("b", null, "Registration Number", -1)),
143
+ T(": " + D((v = a.payoutAccount) == null ? void 0 : v.store.regNo), 1),
144
+ e[3] || (e[3] = i("br", null, null, -1))
145
+ ];
146
+ }),
147
+ _: 1
148
+ })
149
+ ]),
150
+ _: 1
151
+ })
152
+ ]),
153
+ _: 1
154
+ }),
155
+ l(t, {
156
+ horizontal: "",
157
+ class: "flex-1 p-6",
158
+ variant: "elevated"
159
+ }, {
160
+ default: F(() => [
161
+ l(s, { class: "flex flex-col gap-16 justify-between" }, {
162
+ default: F(() => [
163
+ l(d, {
164
+ class: "p-0",
165
+ title: "Bank Info",
166
+ subtitle: ""
167
+ }),
168
+ l(s, { class: "p-0" }, {
169
+ default: F(() => {
170
+ var o, v, y, b, _, A;
171
+ return [
172
+ e[4] || (e[4] = i("b", null, "Bank", -1)),
173
+ T(": " + D((v = (o = a.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : v.name), 1),
174
+ e[5] || (e[5] = i("br", null, null, -1)),
175
+ e[6] || (e[6] = i("b", null, "Name", -1)),
176
+ T(": " + D((b = (y = a.payoutAccount) == null ? void 0 : y.store.bank) == null ? void 0 : b.holderName), 1),
177
+ e[7] || (e[7] = i("br", null, null, -1)),
178
+ e[8] || (e[8] = i("b", null, "Number", -1)),
179
+ T(": " + D((A = (_ = a.payoutAccount) == null ? void 0 : _.store.bank) == null ? void 0 : A.accountNumber), 1)
180
+ ];
181
+ }),
182
+ _: 1
183
+ })
184
+ ]),
185
+ _: 1
186
+ })
187
+ ]),
188
+ _: 1
189
+ })
190
+ ]),
191
+ i("div", me, [
192
+ i("div", de, [
193
+ e[9] || (e[9] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
194
+ l(L, {
195
+ "restaurant-id": ((f = (u = a.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : f.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
196
+ document: a.payoutAccount.store.ssm
162
197
  }, {
163
- default: x(({ src: l }) => [
164
- o(te, {
165
- pdf: l,
198
+ default: F(({ src: o }) => [
199
+ l(te, {
200
+ pdf: o,
166
201
  "disable-text-layer": !0,
167
202
  "disable-annotation-layer": !0
168
203
  }, null, 8, ["pdf"])
@@ -170,15 +205,15 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
170
205
  _: 1
171
206
  }, 8, ["restaurant-id", "document"])
172
207
  ]),
173
- m("div", de, [
174
- e[6] || (e[6] = m("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
175
- o(L, {
176
- "restaurant-id": ((a = (i = n.payoutAccount) == null ? void 0 : i.store) == null ? void 0 : a.event) === "ORDERING" ? n.payoutAccount.store.id : void 0,
177
- document: n.payoutAccount.store.bankStatement
208
+ i("div", pe, [
209
+ e[10] || (e[10] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
210
+ l(L, {
211
+ "restaurant-id": ((n = (c = a.payoutAccount) == null ? void 0 : c.store) == null ? void 0 : n.event) === "ORDERING" ? a.payoutAccount.store.id : void 0,
212
+ document: a.payoutAccount.store.bankStatement
178
213
  }, {
179
- default: x(({ src: l }) => [
180
- o(te, {
181
- pdf: l,
214
+ default: F(({ src: o }) => [
215
+ l(te, {
216
+ pdf: o,
182
217
  "disable-text-layer": !0,
183
218
  "disable-annotation-layer": !0
184
219
  }, null, 8, ["pdf"])
@@ -190,74 +225,74 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
190
225
  ], 64);
191
226
  };
192
227
  }
193
- }), ye = /* @__PURE__ */ _({
228
+ }), ve = /* @__PURE__ */ C({
194
229
  __name: "RateInput",
195
230
  props: {
196
231
  data: {},
197
232
  onChange: { type: Function }
198
233
  },
199
- setup(n) {
200
- const p = n, e = U(p.data.toString());
234
+ setup(a) {
235
+ const p = a, e = U(p.data.toString());
201
236
  return Z(e, (d) => {
202
237
  p.onChange(parseFloat(d));
203
238
  }), (d, s) => {
204
- const t = c("FmTextField");
205
- return f(), F(t, {
239
+ const t = m("FmTextField");
240
+ return g(), x(t, {
206
241
  inputmode: "decimal",
207
242
  modelValue: e.value,
208
243
  "onUpdate:modelValue": s[0] || (s[0] = (u) => e.value = u)
209
244
  }, {
210
- append: x(() => [...s[1] || (s[1] = [
211
- S("%", -1)
245
+ append: F(() => [...s[1] || (s[1] = [
246
+ T("%", -1)
212
247
  ])]),
213
248
  _: 1
214
249
  }, 8, ["modelValue"]);
215
250
  };
216
251
  }
217
- }), ve = /* @__PURE__ */ _({
252
+ }), fe = /* @__PURE__ */ C({
218
253
  __name: "TPlusInput",
219
254
  props: {
220
255
  data: {},
221
256
  onChange: { type: Function }
222
257
  },
223
- setup(n) {
224
- const p = n, e = U(p.data.toString());
258
+ setup(a) {
259
+ const p = a, e = U(p.data.toString());
225
260
  return Z(e, (d) => {
226
261
  p.onChange(parseInt(d));
227
262
  }), (d, s) => {
228
- const t = c("FmTextField");
229
- return f(), F(t, {
263
+ const t = m("FmTextField");
264
+ return g(), x(t, {
230
265
  inputmode: "numeric",
231
266
  modelValue: e.value,
232
267
  "onUpdate:modelValue": s[0] || (s[0] = (u) => e.value = u)
233
268
  }, null, 8, ["modelValue"]);
234
269
  };
235
270
  }
236
- }), fe = /* @__PURE__ */ _({
271
+ }), ge = /* @__PURE__ */ C({
237
272
  __name: "MinimumFeeInput",
238
273
  props: {
239
274
  data: {},
240
275
  onChange: { type: Function }
241
276
  },
242
- setup(n) {
243
- const p = n, e = U(p.data.toString());
277
+ setup(a) {
278
+ const p = a, e = U(p.data.toString());
244
279
  return Z(e, (d) => {
245
280
  p.onChange(parseFloat(d));
246
281
  }), (d, s) => {
247
- const t = c("FmTextField");
248
- return f(), F(t, {
282
+ const t = m("FmTextField");
283
+ return g(), x(t, {
249
284
  inputmode: "numeric",
250
285
  modelValue: e.value,
251
286
  "onUpdate:modelValue": s[0] || (s[0] = (u) => e.value = u)
252
287
  }, {
253
- prepend: x(() => [...s[1] || (s[1] = [
254
- S("$", -1)
288
+ prepend: F(() => [...s[1] || (s[1] = [
289
+ T("$", -1)
255
290
  ])]),
256
291
  _: 1
257
292
  }, 8, ["modelValue"]);
258
293
  };
259
294
  }
260
- }), ge = { class: "flex gap-16 mt-6" }, be = { class: "flex-1" }, Fe = { class: "flex-1" }, xe = { class: "my-6 w-full flex justify-end" }, Ve = { class: "w-[320px]" }, we = /* @__PURE__ */ _({
295
+ }), be = { class: "flex gap-16 mt-6" }, Fe = { class: "flex-1" }, xe = { class: "flex-1" }, Ve = { class: "my-6 w-full flex justify-end" }, we = { class: "w-[320px]" }, Ae = /* @__PURE__ */ C({
261
296
  __name: "PaymentStatus",
262
297
  props: {
263
298
  onUpdate: {
@@ -269,46 +304,46 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
269
304
  required: !0
270
305
  }
271
306
  },
272
- setup(n) {
273
- const p = n, e = U(!1), d = z(), s = async (a) => {
307
+ setup(a) {
308
+ const p = a, e = U(!1), d = z(), s = async (n) => {
274
309
  try {
275
- e.value = !0, await p.onUpdate(a), d.open({
310
+ e.value = !0, await p.onUpdate(n), d.open({
276
311
  type: "success",
277
312
  title: "Payout account update succesfully"
278
313
  });
279
- } catch (l) {
314
+ } catch (o) {
280
315
  d.open({
281
316
  type: "error",
282
317
  title: "Error occurs when updating payout account",
283
- message: E(l)
318
+ message: E(o)
284
319
  });
285
320
  } finally {
286
321
  e.value = !1;
287
322
  }
288
- }, { search: t } = j({
323
+ }, { search: t } = Y({
289
324
  search: ""
290
325
  }), u = K(() => {
291
- const { ssm: a, bank: l, bankStatement: g } = p.payoutAccount.store;
292
- return a && l && l.name && l.accountNumber && l.holderName && g;
293
- }), v = U(""), i = [
326
+ const { ssm: n, bank: o, bankStatement: v } = p.payoutAccount.store;
327
+ return n && o && o.name && o.accountNumber && o.holderName && v;
328
+ }), f = U(""), c = [
294
329
  {
295
330
  header: () => "Payment Method",
296
331
  accessorKey: "issuer",
297
- cell: (a) => `${a.row.original.issuer} (${a.row.original.variant})`
332
+ cell: (n) => `${n.row.original.issuer} (${n.row.original.variant})`
298
333
  },
299
334
  {
300
335
  header: () => "Rate",
301
336
  accessorKey: "rate",
302
- cell: ({ row: a }) => {
303
- let l = 0;
304
- return a.original.rate && (l = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), O(ye, {
305
- data: l,
306
- onChange: (g) => {
307
- const y = p.payoutAccount.methods.at(a.index);
337
+ cell: ({ row: n }) => {
338
+ let o = 0;
339
+ return n.original.rate && (o = n.original.rate.amount / Math.pow(10, n.original.rate.precision)), O(ve, {
340
+ data: o,
341
+ onChange: (v) => {
342
+ const y = p.payoutAccount.methods.at(n.index);
308
343
  y.rate || (y.rate = {
309
344
  amount: 0,
310
345
  precision: 4
311
- }), y.rate.amount = g * Math.pow(10, y.rate.precision);
346
+ }), y.rate.amount = v * Math.pow(10, y.rate.precision);
312
347
  }
313
348
  });
314
349
  }
@@ -316,16 +351,16 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
316
351
  {
317
352
  header: () => "Minimum Fee",
318
353
  accessorKey: "minimumFee",
319
- cell: ({ row: a }) => {
320
- let l = 0;
321
- return a.original.minimumFee && (l = a.original.minimumFee.amount / Math.pow(10, a.original.minimumFee.precision)), O(fe, {
322
- data: l,
323
- onChange: (g) => {
324
- const y = p.payoutAccount.methods.at(a.index);
354
+ cell: ({ row: n }) => {
355
+ let o = 0;
356
+ return n.original.minimumFee && (o = n.original.minimumFee.amount / Math.pow(10, n.original.minimumFee.precision)), O(ge, {
357
+ data: o,
358
+ onChange: (v) => {
359
+ const y = p.payoutAccount.methods.at(n.index);
325
360
  y.minimumFee || (y.minimumFee = {
326
361
  amount: 0,
327
362
  precision: 2
328
- }), y.minimumFee.amount = g * Math.pow(10, y.minimumFee.precision);
363
+ }), y.minimumFee.amount = v * Math.pow(10, y.minimumFee.precision);
329
364
  }
330
365
  });
331
366
  }
@@ -333,35 +368,35 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
333
368
  {
334
369
  header: () => "T plus",
335
370
  accessorKey: "tPlus",
336
- cell: ({ row: a }) => O(ve, {
337
- data: a.original.tPlus ?? 0,
338
- onChange: (l) => {
339
- const g = p.payoutAccount.methods.at(a.index);
340
- g.tPlus = l;
371
+ cell: ({ row: n }) => O(fe, {
372
+ data: n.original.tPlus ?? 0,
373
+ onChange: (o) => {
374
+ const v = p.payoutAccount.methods.at(n.index);
375
+ v.tPlus = o;
341
376
  }
342
377
  })
343
378
  }
344
379
  ];
345
- return (a, l) => {
346
- const g = c("FmRadio"), y = c("FmRadioGroup"), b = c("FmSwitch"), C = c("FmSearch"), A = c("FmTable"), h = c("FmButton");
347
- return f(), P($, null, [
348
- m("div", ge, [
349
- m("div", be, [
350
- o(y, {
351
- modelValue: n.payoutAccount.status,
352
- "onUpdate:modelValue": l[0] || (l[0] = (k) => n.payoutAccount.status = k),
380
+ return (n, o) => {
381
+ const v = m("FmRadio"), y = m("FmRadioGroup"), b = m("FmSwitch"), _ = m("FmSearch"), A = m("FmTable"), S = m("FmButton");
382
+ return g(), P($, null, [
383
+ i("div", be, [
384
+ i("div", Fe, [
385
+ l(y, {
386
+ modelValue: a.payoutAccount.status,
387
+ "onUpdate:modelValue": o[0] || (o[0] = (k) => a.payoutAccount.status = k),
353
388
  label: "Account Status"
354
389
  }, {
355
- default: x(() => [
356
- o(g, {
390
+ default: F(() => [
391
+ l(v, {
357
392
  value: "NEW",
358
393
  label: "New"
359
394
  }),
360
- o(g, {
395
+ l(v, {
361
396
  value: "PENDING",
362
397
  label: "Pending"
363
398
  }),
364
- o(g, {
399
+ l(v, {
365
400
  value: "APPROVED",
366
401
  label: "Approved"
367
402
  })
@@ -369,55 +404,55 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
369
404
  _: 1
370
405
  }, 8, ["modelValue"])
371
406
  ]),
372
- m("div", Fe, [
373
- o(b, {
374
- modelValue: n.payoutAccount.enable,
375
- "onUpdate:modelValue": l[1] || (l[1] = (k) => n.payoutAccount.enable = k),
407
+ i("div", xe, [
408
+ l(b, {
409
+ modelValue: a.payoutAccount.enable,
410
+ "onUpdate:modelValue": o[1] || (o[1] = (k) => a.payoutAccount.enable = k),
376
411
  disabled: !u.value,
377
412
  label: "Enabled",
378
413
  sublabel: "Merchant can use online features such as e-payment, settlement"
379
414
  }, null, 8, ["modelValue", "disabled"])
380
415
  ])
381
416
  ]),
382
- n.payoutAccount.enable ? (f(), P($, { key: 0 }, [
383
- m("div", xe, [
384
- m("div", Ve, [
385
- o(C, {
417
+ a.payoutAccount.enable ? (g(), P($, { key: 0 }, [
418
+ i("div", Ve, [
419
+ i("div", we, [
420
+ l(_, {
386
421
  modelValue: r(t),
387
- "onUpdate:modelValue": l[2] || (l[2] = (k) => q(t) ? t.value = k : null),
422
+ "onUpdate:modelValue": o[2] || (o[2] = (k) => q(t) ? t.value = k : null),
388
423
  placeholder: "Search Method ..."
389
424
  }, null, 8, ["modelValue"])
390
425
  ])
391
426
  ]),
392
- o(A, {
427
+ l(A, {
393
428
  class: "mt-6",
394
- modelValue: v.value,
395
- "onUpdate:modelValue": l[3] || (l[3] = (k) => v.value = k),
429
+ modelValue: f.value,
430
+ "onUpdate:modelValue": o[3] || (o[3] = (k) => f.value = k),
396
431
  "shrink-at": !1,
397
432
  "search-value": r(t),
398
- "row-data": n.payoutAccount.methods,
399
- "column-defs": i
433
+ "row-data": a.payoutAccount.methods,
434
+ "column-defs": c
400
435
  }, null, 8, ["modelValue", "search-value", "row-data"])
401
- ], 64)) : T("", !0),
402
- o(h, {
436
+ ], 64)) : I("", !0),
437
+ l(S, {
403
438
  class: "w-full mt-6",
404
439
  variant: "primary",
405
440
  label: "Save",
406
441
  loading: e.value,
407
- onclick: () => s(n.payoutAccount)
442
+ onclick: () => s(a.payoutAccount)
408
443
  }, null, 8, ["loading", "onclick"])
409
444
  ], 64);
410
445
  };
411
446
  }
412
- }), Ae = { class: "flex" }, ke = /* @__PURE__ */ _({
447
+ }), ke = { class: "flex" }, Ce = /* @__PURE__ */ C({
413
448
  __name: "Actions",
414
449
  emits: ["edit", "delete"],
415
- setup(n, { emit: p }) {
450
+ setup(a, { emit: p }) {
416
451
  const e = p;
417
452
  return (d, s) => {
418
- const t = c("FmButton");
419
- return f(), P("div", Ae, [
420
- o(t, {
453
+ const t = m("FmButton");
454
+ return g(), P("div", ke, [
455
+ l(t, {
421
456
  variant: "plain",
422
457
  "prepend-icon": "delete",
423
458
  onClick: s[0] || (s[0] = (u) => {
@@ -427,7 +462,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
427
462
  ]);
428
463
  };
429
464
  }
430
- }), _e = { class: "flex justify-end px-6 pb-6" }, Ce = /* @__PURE__ */ _({
465
+ }), _e = { class: "flex justify-end px-6 pb-6" }, Ue = /* @__PURE__ */ C({
431
466
  __name: "PaymentChannel",
432
467
  props: {
433
468
  payoutAccount: {
@@ -435,47 +470,47 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
435
470
  required: !0
436
471
  }
437
472
  },
438
- setup(n) {
439
- const p = z(), e = n, { isLoading: d, startAsyncCall: s } = Y(), t = U([]);
473
+ setup(a) {
474
+ const p = z(), e = a, { isLoading: d, startAsyncCall: s } = j(), t = U([]);
440
475
  function u() {
441
476
  s(async () => {
442
477
  t.value = await R.getChannels(e.payoutAccount._id);
443
478
  });
444
479
  }
445
480
  ae(u);
446
- function v() {
481
+ function f() {
447
482
  s(async () => {
448
483
  try {
449
484
  await R.updateChannels(e.payoutAccount._id, t.value), p.open({
450
485
  type: "success",
451
486
  title: "Payout account channels update succesfully"
452
487
  });
453
- } catch (l) {
488
+ } catch (o) {
454
489
  p.open({
455
490
  type: "error",
456
491
  title: "Error occurs when updating payout account channels",
457
- message: E(l)
492
+ message: E(o)
458
493
  });
459
494
  }
460
495
  });
461
496
  }
462
- function i() {
497
+ function c() {
463
498
  s(async () => {
464
499
  try {
465
500
  await R.resetChannels(e.payoutAccount._id), t.value = await R.getChannels(e.payoutAccount._id), p.open({
466
501
  type: "success",
467
502
  title: "Payout account channels reset succesfully"
468
503
  });
469
- } catch (l) {
504
+ } catch (o) {
470
505
  p.open({
471
506
  type: "error",
472
507
  title: "Error occurs when reset payout account channels",
473
- message: E(l)
508
+ message: E(o)
474
509
  });
475
510
  }
476
511
  });
477
512
  }
478
- const a = [
513
+ const n = [
479
514
  {
480
515
  header: () => "Gateway",
481
516
  accessorKey: "gateway"
@@ -487,54 +522,54 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
487
522
  {
488
523
  header: () => "Display",
489
524
  accessorKey: "icon",
490
- cell: ({ row: l }) => O("img", { src: l.original.icon, width: 32, height: 32 })
525
+ cell: ({ row: o }) => O("img", { src: o.original.icon, width: 32, height: 32 })
491
526
  },
492
527
  {
493
528
  header: () => "Label",
494
529
  accessorKey: "label",
495
- cell: ({ row: l }) => O(re.FmTextField, {
496
- modelValue: l.original.label,
497
- "onUpdate:modelValue": (g) => l.original.label = g
530
+ cell: ({ row: o }) => O(re.FmTextField, {
531
+ modelValue: o.original.label,
532
+ "onUpdate:modelValue": (v) => o.original.label = v
498
533
  })
499
534
  },
500
535
  {
501
536
  id: "actions",
502
537
  header: () => "Actions",
503
- cell: ({ row: l }) => O(ke, {
504
- onDelete: () => t.value.splice(l.index, 1)
538
+ cell: ({ row: o }) => O(Ce, {
539
+ onDelete: () => t.value.splice(o.index, 1)
505
540
  })
506
541
  }
507
542
  ];
508
- return (l, g) => {
509
- const y = c("FmButton"), b = c("FmTable");
510
- return f(), P($, null, [
511
- m("div", _e, [
512
- o(y, {
543
+ return (o, v) => {
544
+ const y = m("FmButton"), b = m("FmTable");
545
+ return g(), P($, null, [
546
+ i("div", _e, [
547
+ l(y, {
513
548
  class: "mx-4",
514
549
  variant: "destructive",
515
550
  size: "md",
516
551
  icon: "history",
517
552
  label: "Reset",
518
- onClick: i
553
+ onClick: c
519
554
  }),
520
- o(y, {
555
+ l(y, {
521
556
  variant: "primary",
522
557
  size: "md",
523
558
  icon: "save",
524
559
  label: "Save",
525
- onClick: v
560
+ onClick: f
526
561
  })
527
562
  ]),
528
- o(b, {
563
+ l(b, {
529
564
  loading: r(d),
530
565
  "row-data": t.value,
531
- "column-defs": a,
566
+ "column-defs": n,
532
567
  "shrink-at": !1
533
568
  }, null, 8, ["loading", "row-data"])
534
569
  ], 64);
535
570
  };
536
571
  }
537
- }), Ue = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ _({
572
+ }), Te = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ C({
538
573
  __name: "FiuuGateway",
539
574
  props: {
540
575
  gateway: {
@@ -550,48 +585,48 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
550
585
  required: !0
551
586
  }
552
587
  },
553
- setup(n) {
588
+ setup(a) {
554
589
  var d;
555
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
590
+ const e = U(((d = a.gateway) == null ? void 0 : d.config) || {
556
591
  merchantId: "",
557
592
  verifyKey: "",
558
593
  secretKey: ""
559
594
  });
560
595
  return (s, t) => {
561
- const u = c("FmTextField"), v = c("FmButton"), i = c("FmForm");
562
- return f(), F(i, {
596
+ const u = m("FmTextField"), f = m("FmButton"), c = m("FmForm");
597
+ return g(), x(c, {
563
598
  ref: "form",
564
599
  class: "flex flex-col gap-16",
565
- onValidationSuccess: t[3] || (t[3] = () => n.onUpdate(e.value))
600
+ onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
566
601
  }, {
567
- default: x(() => [
568
- o(u, {
602
+ default: F(() => [
603
+ l(u, {
569
604
  modelValue: e.value.merchantId,
570
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
605
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
571
606
  label: "Merchant ID",
572
607
  rules: r(V)(r(w).string())
573
608
  }, null, 8, ["modelValue", "rules"]),
574
- o(u, {
609
+ l(u, {
575
610
  modelValue: e.value.verifyKey,
576
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.verifyKey = a),
611
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.verifyKey = n),
577
612
  label: "Verify Key",
578
613
  rules: r(V)(r(w).string())
579
614
  }, null, 8, ["modelValue", "rules"]),
580
- o(u, {
615
+ l(u, {
581
616
  modelValue: e.value.secretKey,
582
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.secretKey = a),
617
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.secretKey = n),
583
618
  label: "Secret Key",
584
619
  rules: r(V)(r(w).string())
585
620
  }, null, 8, ["modelValue", "rules"]),
586
- m("div", Ue, [
587
- n.gateway ? (f(), F(v, {
621
+ i("div", Te, [
622
+ a.gateway ? (g(), x(f, {
588
623
  key: 0,
589
624
  class: "flex-1",
590
625
  variant: "secondary",
591
626
  label: "Delete",
592
- onclick: () => n.onDelete()
593
- }, null, 8, ["onclick"])) : T("", !0),
594
- o(v, {
627
+ onclick: () => a.onDelete()
628
+ }, null, 8, ["onclick"])) : I("", !0),
629
+ l(f, {
595
630
  type: "submit",
596
631
  class: "flex-1",
597
632
  variant: "primary",
@@ -603,7 +638,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
603
638
  }, 512);
604
639
  };
605
640
  }
606
- }), he = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ _({
641
+ }), Se = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ C({
607
642
  __name: "MacauPassGateway",
608
643
  props: {
609
644
  gateway: {
@@ -619,9 +654,9 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
619
654
  required: !0
620
655
  }
621
656
  },
622
- setup(n) {
657
+ setup(a) {
623
658
  var d;
624
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
659
+ const e = U(((d = a.gateway) == null ? void 0 : d.config) || {
625
660
  merchantId: "",
626
661
  merchantName: "",
627
662
  merchantCategoryCode: "",
@@ -629,52 +664,52 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
629
664
  storeName: ""
630
665
  });
631
666
  return (s, t) => {
632
- const u = c("FmTextField"), v = c("FmButton"), i = c("FmForm");
633
- return f(), F(i, {
667
+ const u = m("FmTextField"), f = m("FmButton"), c = m("FmForm");
668
+ return g(), x(c, {
634
669
  ref: "form",
635
670
  class: "flex flex-col gap-16",
636
- onValidationSuccess: t[5] || (t[5] = () => n.onUpdate(e.value))
671
+ onValidationSuccess: t[5] || (t[5] = () => a.onUpdate(e.value))
637
672
  }, {
638
- default: x(() => [
639
- o(u, {
673
+ default: F(() => [
674
+ l(u, {
640
675
  modelValue: e.value.merchantId,
641
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
676
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
642
677
  label: "Merchant ID",
643
678
  rules: r(V)(r(w).string())
644
679
  }, null, 8, ["modelValue", "rules"]),
645
- o(u, {
680
+ l(u, {
646
681
  modelValue: e.value.merchantName,
647
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantName = a),
682
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.merchantName = n),
648
683
  label: "Merchant Name",
649
684
  rules: r(V)(r(w).string())
650
685
  }, null, 8, ["modelValue", "rules"]),
651
- o(u, {
686
+ l(u, {
652
687
  modelValue: e.value.merchantCategoryCode,
653
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.merchantCategoryCode = a),
688
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.merchantCategoryCode = n),
654
689
  label: "Merchant MCC",
655
690
  rules: r(V)(r(w).string())
656
691
  }, null, 8, ["modelValue", "rules"]),
657
- o(u, {
692
+ l(u, {
658
693
  modelValue: e.value.storeID,
659
- "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.storeID = a),
694
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => e.value.storeID = n),
660
695
  label: "Store ID",
661
696
  rules: r(V)(r(w).string())
662
697
  }, null, 8, ["modelValue", "rules"]),
663
- o(u, {
698
+ l(u, {
664
699
  modelValue: e.value.storeName,
665
- "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.storeName = a),
700
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => e.value.storeName = n),
666
701
  label: "Store Name",
667
702
  rules: r(V)(r(w).string())
668
703
  }, null, 8, ["modelValue", "rules"]),
669
- m("div", he, [
670
- n.gateway ? (f(), F(v, {
704
+ i("div", Se, [
705
+ a.gateway ? (g(), x(f, {
671
706
  key: 0,
672
707
  class: "flex-1",
673
708
  variant: "secondary",
674
709
  label: "Delete",
675
- onclick: () => n.onDelete()
676
- }, null, 8, ["onclick"])) : T("", !0),
677
- o(v, {
710
+ onclick: () => a.onDelete()
711
+ }, null, 8, ["onclick"])) : I("", !0),
712
+ l(f, {
678
713
  type: "submit",
679
714
  class: "flex-1",
680
715
  variant: "primary",
@@ -686,7 +721,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
686
721
  }, 512);
687
722
  };
688
723
  }
689
- }), Se = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ _({
724
+ }), Pe = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ C({
690
725
  __name: "DigioGateway",
691
726
  props: {
692
727
  gateway: {
@@ -702,41 +737,41 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
702
737
  required: !0
703
738
  }
704
739
  },
705
- setup(n) {
740
+ setup(a) {
706
741
  var d;
707
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
742
+ const e = U(((d = a.gateway) == null ? void 0 : d.config) || {
708
743
  merchantId: "",
709
744
  cardMerchantId: ""
710
745
  });
711
746
  return (s, t) => {
712
- const u = c("FmTextField"), v = c("FmButton"), i = c("FmForm");
713
- return f(), F(i, {
747
+ const u = m("FmTextField"), f = m("FmButton"), c = m("FmForm");
748
+ return g(), x(c, {
714
749
  ref: "form",
715
750
  class: "flex flex-col gap-16",
716
- onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
751
+ onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
717
752
  }, {
718
- default: x(() => [
719
- o(u, {
753
+ default: F(() => [
754
+ l(u, {
720
755
  modelValue: e.value.merchantId,
721
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.merchantId = a),
756
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
722
757
  label: "Merchant ID",
723
758
  rules: r(V)(r(w).string())
724
759
  }, null, 8, ["modelValue", "rules"]),
725
- o(u, {
760
+ l(u, {
726
761
  modelValue: e.value.cardMerchantId,
727
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.cardMerchantId = a),
762
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.cardMerchantId = n),
728
763
  label: "Card Merchant ID",
729
764
  rules: r(V)(r(w).string())
730
765
  }, null, 8, ["modelValue", "rules"]),
731
- m("div", Se, [
732
- n.gateway ? (f(), F(v, {
766
+ i("div", Pe, [
767
+ a.gateway ? (g(), x(f, {
733
768
  key: 0,
734
769
  class: "flex-1",
735
770
  variant: "secondary",
736
771
  label: "Delete",
737
- onclick: () => n.onDelete()
738
- }, null, 8, ["onclick"])) : T("", !0),
739
- o(v, {
772
+ onclick: () => a.onDelete()
773
+ }, null, 8, ["onclick"])) : I("", !0),
774
+ l(f, {
740
775
  type: "submit",
741
776
  class: "flex-1",
742
777
  variant: "primary",
@@ -748,7 +783,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
748
783
  }, 512);
749
784
  };
750
785
  }
751
- }), De = { class: "flex mt-6 space-x-6" }, Ne = /* @__PURE__ */ _({
786
+ }), Ne = { class: "flex mt-6 space-x-6" }, Me = /* @__PURE__ */ C({
752
787
  __name: "AdyenGateway",
753
788
  props: {
754
789
  gateway: {
@@ -764,9 +799,9 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
764
799
  required: !0
765
800
  }
766
801
  },
767
- setup(n) {
802
+ setup(a) {
768
803
  var d;
769
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
804
+ const e = U(((d = a.gateway) == null ? void 0 : d.config) || {
770
805
  merchantAccount: "",
771
806
  username: "",
772
807
  apiKey: "",
@@ -775,57 +810,57 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
775
810
  hmacKey: ""
776
811
  });
777
812
  return (s, t) => {
778
- const u = c("FmTextField"), v = c("FmButton"), i = c("FmForm");
779
- return f(), F(i, {
813
+ const u = m("FmTextField"), f = m("FmButton"), c = m("FmForm");
814
+ return g(), x(c, {
780
815
  ref: "form",
781
816
  class: "flex flex-col gap-16",
782
- onValidationSuccess: t[6] || (t[6] = () => n.onUpdate(e.value))
817
+ onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
783
818
  }, {
784
- default: x(() => [
785
- o(u, {
819
+ default: F(() => [
820
+ l(u, {
786
821
  modelValue: e.value.endpoint,
787
- "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value.endpoint = a),
822
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.endpoint = n),
788
823
  label: "Endpoint",
789
824
  rules: r(V)(r(w).string())
790
825
  }, null, 8, ["modelValue", "rules"]),
791
- o(u, {
826
+ l(u, {
792
827
  modelValue: e.value.merchantAccount,
793
- "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value.merchantAccount = a),
828
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.merchantAccount = n),
794
829
  label: "Merchant Account",
795
830
  rules: r(V)(r(w).string())
796
831
  }, null, 8, ["modelValue", "rules"]),
797
- o(u, {
832
+ l(u, {
798
833
  modelValue: e.value.username,
799
- "onUpdate:modelValue": t[2] || (t[2] = (a) => e.value.username = a),
834
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.username = n),
800
835
  label: "Username",
801
836
  rules: r(V)(r(w).string())
802
837
  }, null, 8, ["modelValue", "rules"]),
803
- o(u, {
838
+ l(u, {
804
839
  modelValue: e.value.apiKey,
805
- "onUpdate:modelValue": t[3] || (t[3] = (a) => e.value.apiKey = a),
840
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => e.value.apiKey = n),
806
841
  label: "API Key",
807
842
  rules: r(V)(r(w).string())
808
843
  }, null, 8, ["modelValue", "rules"]),
809
- o(u, {
844
+ l(u, {
810
845
  modelValue: e.value.clientKey,
811
- "onUpdate:modelValue": t[4] || (t[4] = (a) => e.value.clientKey = a),
846
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => e.value.clientKey = n),
812
847
  label: "Client Key",
813
848
  rules: r(V)(r(w).string())
814
849
  }, null, 8, ["modelValue", "rules"]),
815
- o(u, {
850
+ l(u, {
816
851
  modelValue: e.value.hmacKey,
817
- "onUpdate:modelValue": t[5] || (t[5] = (a) => e.value.hmacKey = a),
852
+ "onUpdate:modelValue": t[5] || (t[5] = (n) => e.value.hmacKey = n),
818
853
  label: "HMac Key"
819
854
  }, null, 8, ["modelValue"]),
820
- m("div", De, [
821
- n.gateway ? (f(), F(v, {
855
+ i("div", Ne, [
856
+ a.gateway ? (g(), x(f, {
822
857
  key: 0,
823
858
  class: "flex-1",
824
859
  variant: "secondary",
825
860
  label: "Delete",
826
- onclick: () => n.onDelete()
827
- }, null, 8, ["onclick"])) : T("", !0),
828
- o(v, {
861
+ onclick: () => a.onDelete()
862
+ }, null, 8, ["onclick"])) : I("", !0),
863
+ l(f, {
829
864
  type: "submit",
830
865
  class: "flex-1",
831
866
  variant: "primary",
@@ -837,7 +872,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
837
872
  }, 512);
838
873
  };
839
874
  }
840
- }), Me = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ _({
875
+ }), Re = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */ C({
841
876
  __name: "KsherGateway",
842
877
  props: {
843
878
  gateway: {
@@ -853,42 +888,42 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
853
888
  required: !0
854
889
  }
855
890
  },
856
- setup(n) {
891
+ setup(a) {
857
892
  var d;
858
- const e = U(((d = n.gateway) == null ? void 0 : d.config) || {
893
+ const e = U(((d = a.gateway) == null ? void 0 : d.config) || {
859
894
  appId: "",
860
895
  privateKey: ""
861
896
  });
862
897
  return (s, t) => {
863
- const u = c("FmTextField"), v = c("FmTextarea"), i = c("FmButton"), a = c("FmForm");
864
- return f(), F(a, {
898
+ const u = m("FmTextField"), f = m("FmTextarea"), c = m("FmButton"), n = m("FmForm");
899
+ return g(), x(n, {
865
900
  ref: "form",
866
901
  class: "flex flex-col gap-16",
867
- onValidationSuccess: t[2] || (t[2] = () => n.onUpdate(e.value))
902
+ onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(e.value))
868
903
  }, {
869
- default: x(() => [
870
- o(u, {
904
+ default: F(() => [
905
+ l(u, {
871
906
  modelValue: e.value.appId,
872
- "onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.appId = l),
907
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.appId = o),
873
908
  label: "App ID",
874
909
  rules: r(V)(r(w).string())
875
910
  }, null, 8, ["modelValue", "rules"]),
876
- o(v, {
911
+ l(f, {
877
912
  modelValue: e.value.privateKey,
878
- "onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.privateKey = l),
913
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.privateKey = o),
879
914
  label: "Private Key",
880
915
  placeholder: "Paste your private key including BEGIN and END markers",
881
916
  rules: r(V)(r(w).string())
882
917
  }, null, 8, ["modelValue", "rules"]),
883
- m("div", Me, [
884
- n.gateway ? (f(), F(i, {
918
+ i("div", Re, [
919
+ a.gateway ? (g(), x(c, {
885
920
  key: 0,
886
921
  class: "flex-1",
887
922
  variant: "secondary",
888
923
  label: "Delete",
889
- onclick: () => n.onDelete()
890
- }, null, 8, ["onclick"])) : T("", !0),
891
- o(i, {
924
+ onclick: () => a.onDelete()
925
+ }, null, 8, ["onclick"])) : I("", !0),
926
+ l(c, {
892
927
  type: "submit",
893
928
  class: "flex-1",
894
929
  variant: "primary",
@@ -900,13 +935,13 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
900
935
  }, 512);
901
936
  };
902
937
  }
903
- }), Ge = {
938
+ }), $e = {
904
939
  key: 0,
905
940
  className: "mt-1 my-6 text-gray-600"
906
- }, $e = {
941
+ }, Ke = {
907
942
  key: 1,
908
943
  class: "flex items-center justify-center min-h-[80vh]"
909
- }, Ke = /* @__PURE__ */ _({
944
+ }, Oe = /* @__PURE__ */ C({
910
945
  __name: "PaymentGateway",
911
946
  props: {
912
947
  payoutAccount: {
@@ -914,121 +949,121 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
914
949
  required: !0
915
950
  }
916
951
  },
917
- setup(n) {
918
- const p = ne().currentCountry, e = p.value, d = z(), { isLoading: s, startAsyncCall: t } = Y(), { gatewayTab: u } = j({
952
+ setup(a) {
953
+ const p = ne().currentCountry, e = p.value, d = z(), { isLoading: s, startAsyncCall: t } = j(), { gatewayTab: u } = Y({
919
954
  gatewayTab: ""
920
- }), v = n, i = [
955
+ }), f = a, c = [
921
956
  {
922
957
  label: "Fiuu",
923
958
  value: "RAZER_MERCHANT_SERVICE",
924
- render: Te,
925
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
959
+ render: Ie,
960
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
926
961
  },
927
962
  {
928
963
  label: "Macau Pass",
929
964
  value: "MACAU_PASS",
930
- render: Ie,
931
- region: [I.F_COUNTRY.enum.MO]
965
+ render: he,
966
+ region: [h.F_COUNTRY.enum.MO]
932
967
  },
933
968
  {
934
969
  label: "Digio",
935
970
  value: "DIGIO",
936
- render: Pe,
937
- region: [I.F_COUNTRY.enum.TH]
971
+ render: De,
972
+ region: [h.F_COUNTRY.enum.TH]
938
973
  },
939
974
  {
940
975
  label: "Ksher",
941
976
  value: "KSHER",
942
- render: Re,
943
- region: [I.F_COUNTRY.enum.TH]
977
+ render: Ge,
978
+ region: [h.F_COUNTRY.enum.TH]
944
979
  },
945
980
  {
946
981
  label: "Adyen",
947
982
  value: "ADYEN",
948
- render: Ne,
949
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
983
+ render: Me,
984
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
950
985
  }
951
- ], a = U(
952
- v.payoutAccount.gateways ?? []
953
- ), l = K(() => i.find((A) => A.value === u.value)), g = K(() => i.filter(
954
- (A) => A.region.includes(p.value ?? I.F_COUNTRY.enum.MY)
986
+ ], n = U(
987
+ f.payoutAccount.gateways ?? []
988
+ ), o = K(() => c.find((A) => A.value === u.value)), v = K(() => c.filter(
989
+ (A) => A.region.includes(p.value ?? h.F_COUNTRY.enum.MY)
955
990
  ));
956
991
  async function y(A) {
957
992
  await t(async () => {
958
993
  try {
959
- await R.updateGateway(v.payoutAccount._id, A), d.open({
994
+ await R.updateGateway(f.payoutAccount._id, A), d.open({
960
995
  type: "success",
961
996
  title: "Payout account gateways update succesfully"
962
997
  }), b.value = A.length === 0;
963
- } catch (h) {
998
+ } catch (S) {
964
999
  d.open({
965
1000
  type: "error",
966
1001
  title: "Error occurs when updating payout account gateways",
967
- message: E(h)
1002
+ message: E(S)
968
1003
  });
969
1004
  }
970
1005
  });
971
1006
  }
972
- const b = U((v.payoutAccount.gateways ?? []).length === 0), C = K(() => e !== "MY" || !b.value);
973
- return (A, h) => {
1007
+ const b = U((f.payoutAccount.gateways ?? []).length === 0), _ = K(() => e !== "MY" || !b.value);
1008
+ return (A, S) => {
974
1009
  var B;
975
- const k = c("FmCircularProgress"), D = c("FmSwitch"), H = c("FmTabs");
976
- return f(), P($, null, [
977
- r(e) ? (f(), P("p", Ge, [...h[2] || (h[2] = [
978
- m("b", null, "Note: ", -1),
979
- S(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
980
- ])])) : T("", !0),
981
- r(s) ? (f(), P("div", $e, [
982
- o(k, { size: "xxl" })
983
- ])) : (f(), P($, { key: 2 }, [
984
- r(e) === "MY" ? (f(), F(D, {
1010
+ const k = m("FmCircularProgress"), N = m("FmSwitch"), H = m("FmTabs");
1011
+ return g(), P($, null, [
1012
+ r(e) ? (g(), P("p", $e, [...S[2] || (S[2] = [
1013
+ i("b", null, "Note: ", -1),
1014
+ T(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ", -1)
1015
+ ])])) : I("", !0),
1016
+ r(s) ? (g(), P("div", Ke, [
1017
+ l(k, { size: "xxl" })
1018
+ ])) : (g(), P($, { key: 2 }, [
1019
+ r(e) === "MY" ? (g(), x(N, {
985
1020
  key: 0,
986
1021
  modelValue: b.value,
987
- "onUpdate:modelValue": h[0] || (h[0] = (N) => b.value = N),
1022
+ "onUpdate:modelValue": S[0] || (S[0] = (M) => b.value = M),
988
1023
  style: { "padding-bottom": "12px" },
989
1024
  label: "Use FeedMe's Fiuu Account?"
990
- }, null, 8, ["modelValue"])) : T("", !0),
991
- C.value ? (f(), F(H, {
1025
+ }, null, 8, ["modelValue"])) : I("", !0),
1026
+ _.value ? (g(), x(H, {
992
1027
  key: 1,
993
1028
  "model-value": r(u),
994
- "onUpdate:modelValue": h[1] || (h[1] = (N) => q(u) ? u.value = N : null),
1029
+ "onUpdate:modelValue": S[1] || (S[1] = (M) => q(u) ? u.value = M : null),
995
1030
  class: "mb-6",
996
- items: g.value
997
- }, null, 8, ["model-value", "items"])) : T("", !0),
998
- C.value && r(u) ? (f(), F(Q((B = l.value) == null ? void 0 : B.render), W(J({ key: 2 }, {
999
- gateway: a.value.find(
1000
- (N) => {
1031
+ items: v.value
1032
+ }, null, 8, ["model-value", "items"])) : I("", !0),
1033
+ _.value && r(u) ? (g(), x(Q((B = o.value) == null ? void 0 : B.render), W(J({ key: 2 }, {
1034
+ gateway: n.value.find(
1035
+ (M) => {
1001
1036
  var G;
1002
- return N.paymentGateway === ((G = l.value) == null ? void 0 : G.value);
1037
+ return M.paymentGateway === ((G = o.value) == null ? void 0 : G.value);
1003
1038
  }
1004
1039
  ),
1005
1040
  onDelete: async () => {
1006
- a.value = a.value.filter(
1007
- (N) => {
1041
+ n.value = n.value.filter(
1042
+ (M) => {
1008
1043
  var G;
1009
- return N.paymentGateway !== ((G = l.value) == null ? void 0 : G.value);
1044
+ return M.paymentGateway !== ((G = o.value) == null ? void 0 : G.value);
1010
1045
  }
1011
- ), y(a.value);
1046
+ ), y(n.value);
1012
1047
  },
1013
- onUpdate: (N) => {
1048
+ onUpdate: (M) => {
1014
1049
  var X;
1015
- let G = a.value.find(
1050
+ let G = n.value.find(
1016
1051
  (le) => {
1017
1052
  var ee;
1018
- return le.paymentGateway === ((ee = l.value) == null ? void 0 : ee.value);
1053
+ return le.paymentGateway === ((ee = o.value) == null ? void 0 : ee.value);
1019
1054
  }
1020
1055
  );
1021
- G ? G.config = N : a.value.push({
1022
- paymentGateway: (X = l.value) == null ? void 0 : X.value,
1023
- config: N
1024
- }), y(a.value);
1056
+ G ? G.config = M : n.value.push({
1057
+ paymentGateway: (X = o.value) == null ? void 0 : X.value,
1058
+ config: M
1059
+ }), y(n.value);
1025
1060
  }
1026
- })), null, 16)) : T("", !0)
1061
+ })), null, 16)) : I("", !0)
1027
1062
  ], 64))
1028
1063
  ], 64);
1029
1064
  };
1030
1065
  }
1031
- }), Oe = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ _({
1066
+ }), Be = { class: "flex mt-6 space-x-6" }, Ee = /* @__PURE__ */ C({
1032
1067
  __name: "GooglePayToken",
1033
1068
  props: {
1034
1069
  gateway: {
@@ -1044,9 +1079,9 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1044
1079
  required: !0
1045
1080
  }
1046
1081
  },
1047
- setup(n) {
1082
+ setup(a) {
1048
1083
  const e = U(
1049
- n.gateway || {
1084
+ a.gateway || {
1050
1085
  type: "googlePay",
1051
1086
  gateway: "RAZER_MERCHANT_SERVICE",
1052
1087
  config: {
@@ -1056,43 +1091,43 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1056
1091
  }
1057
1092
  );
1058
1093
  return (d, s) => {
1059
- const t = c("FmTextField"), u = c("FmButton"), v = c("FmForm");
1060
- return f(), F(v, {
1094
+ const t = m("FmTextField"), u = m("FmButton"), f = m("FmForm");
1095
+ return g(), x(f, {
1061
1096
  ref: "form",
1062
1097
  class: "flex flex-col gap-16",
1063
- onValidationSuccess: s[3] || (s[3] = () => n.onUpdate(e.value))
1098
+ onValidationSuccess: s[3] || (s[3] = () => a.onUpdate(e.value))
1064
1099
  }, {
1065
- default: x(() => [
1066
- o(t, {
1100
+ default: F(() => [
1101
+ l(t, {
1067
1102
  modelValue: e.value.gateway,
1068
- "onUpdate:modelValue": s[0] || (s[0] = (i) => e.value.gateway = i),
1103
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
1069
1104
  label: "Gateway",
1070
1105
  disabled: !0,
1071
1106
  rules: r(V)(r(w).string())
1072
1107
  }, null, 8, ["modelValue", "rules"]),
1073
- o(t, {
1108
+ l(t, {
1074
1109
  modelValue: e.value.config.gateway,
1075
- "onUpdate:modelValue": s[1] || (s[1] = (i) => e.value.config.gateway = i),
1110
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.gateway = c),
1076
1111
  label: "Gateway ID",
1077
1112
  disabled: !0,
1078
1113
  rules: r(V)(r(w).string())
1079
1114
  }, null, 8, ["modelValue", "rules"]),
1080
- o(t, {
1115
+ l(t, {
1081
1116
  modelValue: e.value.config.gatewayMerchantId,
1082
- "onUpdate:modelValue": s[2] || (s[2] = (i) => e.value.config.gatewayMerchantId = i),
1117
+ "onUpdate:modelValue": s[2] || (s[2] = (c) => e.value.config.gatewayMerchantId = c),
1083
1118
  label: "Gateway Merchant ID",
1084
1119
  disabled: !0,
1085
1120
  rules: r(V)(r(w).string())
1086
1121
  }, null, 8, ["modelValue", "rules"]),
1087
- m("div", Oe, [
1088
- n.gateway ? (f(), F(u, {
1122
+ i("div", Be, [
1123
+ a.gateway ? (g(), x(u, {
1089
1124
  key: 0,
1090
1125
  class: "flex-1",
1091
1126
  variant: "secondary",
1092
1127
  label: "Delete",
1093
- onclick: () => n.onDelete()
1094
- }, null, 8, ["onclick"])) : T("", !0),
1095
- o(u, {
1128
+ onclick: () => a.onDelete()
1129
+ }, null, 8, ["onclick"])) : I("", !0),
1130
+ l(u, {
1096
1131
  type: "submit",
1097
1132
  class: "flex-1",
1098
1133
  variant: "primary",
@@ -1104,7 +1139,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1104
1139
  }, 512);
1105
1140
  };
1106
1141
  }
1107
- }), Ee = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ _({
1142
+ }), qe = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ C({
1108
1143
  __name: "ApplePayToken",
1109
1144
  props: {
1110
1145
  gateway: {
@@ -1120,9 +1155,9 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1120
1155
  required: !0
1121
1156
  }
1122
1157
  },
1123
- setup(n) {
1158
+ setup(a) {
1124
1159
  const e = U(
1125
- n.gateway || {
1160
+ a.gateway || {
1126
1161
  type: "applePay",
1127
1162
  gateway: "RAZER_MERCHANT_SERVICE",
1128
1163
  config: {
@@ -1131,36 +1166,36 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1131
1166
  }
1132
1167
  );
1133
1168
  return (d, s) => {
1134
- const t = c("FmTextField"), u = c("FmButton"), v = c("FmForm");
1135
- return f(), F(v, {
1169
+ const t = m("FmTextField"), u = m("FmButton"), f = m("FmForm");
1170
+ return g(), x(f, {
1136
1171
  ref: "form",
1137
1172
  class: "flex flex-col gap-16",
1138
- onValidationSuccess: s[2] || (s[2] = () => n.onUpdate(e.value))
1173
+ onValidationSuccess: s[2] || (s[2] = () => a.onUpdate(e.value))
1139
1174
  }, {
1140
- default: x(() => [
1141
- o(t, {
1175
+ default: F(() => [
1176
+ l(t, {
1142
1177
  modelValue: e.value.gateway,
1143
- "onUpdate:modelValue": s[0] || (s[0] = (i) => e.value.gateway = i),
1178
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => e.value.gateway = c),
1144
1179
  label: "Gateway",
1145
1180
  disabled: !0,
1146
1181
  rules: r(V)(r(w).string())
1147
1182
  }, null, 8, ["modelValue", "rules"]),
1148
- o(t, {
1183
+ l(t, {
1149
1184
  modelValue: e.value.config.merchantId,
1150
- "onUpdate:modelValue": s[1] || (s[1] = (i) => e.value.config.merchantId = i),
1185
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => e.value.config.merchantId = c),
1151
1186
  label: "Merchant ID",
1152
1187
  disabled: !0,
1153
1188
  rules: r(V)(r(w).string())
1154
1189
  }, null, 8, ["modelValue", "rules"]),
1155
- m("div", Ee, [
1156
- n.gateway ? (f(), F(u, {
1190
+ i("div", qe, [
1191
+ a.gateway ? (g(), x(u, {
1157
1192
  key: 0,
1158
1193
  class: "flex-1",
1159
1194
  variant: "secondary",
1160
1195
  label: "Delete",
1161
- onclick: () => n.onDelete()
1162
- }, null, 8, ["onclick"])) : T("", !0),
1163
- o(u, {
1196
+ onclick: () => a.onDelete()
1197
+ }, null, 8, ["onclick"])) : I("", !0),
1198
+ l(u, {
1164
1199
  type: "submit",
1165
1200
  class: "flex-1",
1166
1201
  variant: "primary",
@@ -1175,7 +1210,7 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1175
1210
  }), Ye = {
1176
1211
  key: 0,
1177
1212
  class: "flex items-center justify-center min-h-[80vh]"
1178
- }, je = /* @__PURE__ */ _({
1213
+ }, ze = /* @__PURE__ */ C({
1179
1214
  __name: "TokenGateway",
1180
1215
  props: {
1181
1216
  payoutAccount: {
@@ -1183,28 +1218,28 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1183
1218
  required: !0
1184
1219
  }
1185
1220
  },
1186
- setup(n) {
1187
- const p = ne().currentCountry, e = z(), { isLoading: d, startAsyncCall: s } = Y(), { tokenTab: t } = j({
1221
+ setup(a) {
1222
+ const p = ne().currentCountry, e = z(), { isLoading: d, startAsyncCall: s } = j(), { tokenTab: t } = Y({
1188
1223
  tokenTab: ""
1189
- }), u = n, v = [
1224
+ }), u = a, f = [
1190
1225
  {
1191
1226
  label: "Google Pay",
1192
1227
  value: "googlePay",
1193
1228
  icon: "android",
1194
- render: Be,
1195
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
1229
+ render: Ee,
1230
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1196
1231
  },
1197
1232
  {
1198
1233
  label: "Apple Pay",
1199
1234
  value: "applePay",
1200
1235
  icon: "iOS",
1201
- render: qe,
1202
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
1236
+ render: je,
1237
+ region: [h.F_COUNTRY.enum.MY, h.F_COUNTRY.enum.SG]
1203
1238
  }
1204
- ], i = U(u.payoutAccount.tokens ?? []), a = K(() => v.find((y) => y.value === t.value)), l = K(() => v.filter(
1205
- (y) => y.region.includes(p.value ?? I.F_COUNTRY.enum.MY)
1239
+ ], c = U(u.payoutAccount.tokens ?? []), n = K(() => f.find((y) => y.value === t.value)), o = K(() => f.filter(
1240
+ (y) => y.region.includes(p.value ?? h.F_COUNTRY.enum.MY)
1206
1241
  ));
1207
- async function g(y) {
1242
+ async function v(y) {
1208
1243
  await s(async () => {
1209
1244
  try {
1210
1245
  await R.updateTokens(u.payoutAccount._id, y), e.open({
@@ -1221,49 +1256,49 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1221
1256
  });
1222
1257
  }
1223
1258
  return (y, b) => {
1224
- var h;
1225
- const C = c("FmCircularProgress"), A = c("FmTabs");
1226
- return f(), P($, null, [
1227
- b[1] || (b[1] = m("p", { className: "mt-1 my-6 text-gray-600" }, [
1228
- m("b", null, "Note: "),
1229
- S(" 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. "),
1230
- m("br"),
1231
- m("br"),
1232
- m("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. `),
1233
- m("br")
1259
+ var S;
1260
+ const _ = m("FmCircularProgress"), A = m("FmTabs");
1261
+ return g(), P($, null, [
1262
+ b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
1263
+ i("b", null, "Note: "),
1264
+ T(" 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. "),
1265
+ i("br"),
1266
+ i("br"),
1267
+ 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. `),
1268
+ i("br")
1234
1269
  ], -1)),
1235
- r(d) ? (f(), P("div", Ye, [
1236
- o(C, { size: "xxl" })
1237
- ])) : (f(), F(A, {
1270
+ r(d) ? (g(), P("div", Ye, [
1271
+ l(_, { size: "xxl" })
1272
+ ])) : (g(), x(A, {
1238
1273
  key: 1,
1239
1274
  "model-value": r(t),
1240
1275
  "onUpdate:modelValue": b[0] || (b[0] = (k) => q(t) ? t.value = k : null),
1241
1276
  class: "mb-6 mt-6",
1242
- items: l.value
1277
+ items: o.value
1243
1278
  }, null, 8, ["model-value", "items"])),
1244
- r(t) ? (f(), F(Q((h = a.value) == null ? void 0 : h.render), W(J({ key: 2 }, {
1245
- gateway: i.value.find((k) => {
1246
- var D;
1247
- return k.type === ((D = a.value) == null ? void 0 : D.value);
1279
+ r(t) ? (g(), x(Q((S = n.value) == null ? void 0 : S.render), W(J({ key: 2 }, {
1280
+ gateway: c.value.find((k) => {
1281
+ var N;
1282
+ return k.type === ((N = n.value) == null ? void 0 : N.value);
1248
1283
  }),
1249
1284
  onDelete: async () => {
1250
- i.value = i.value.filter((k) => {
1251
- var D;
1252
- return k.type !== ((D = a.value) == null ? void 0 : D.value);
1253
- }), g(i.value);
1285
+ c.value = c.value.filter((k) => {
1286
+ var N;
1287
+ return k.type !== ((N = n.value) == null ? void 0 : N.value);
1288
+ }), v(c.value);
1254
1289
  },
1255
1290
  onUpdate: (k) => {
1256
- let D = i.value.find((H) => {
1291
+ let N = c.value.find((H) => {
1257
1292
  var B;
1258
- return H.type === ((B = a.value) == null ? void 0 : B.value);
1293
+ return H.type === ((B = n.value) == null ? void 0 : B.value);
1259
1294
  });
1260
- D ? D.config = k : i.value.push(k), g(i.value);
1295
+ N ? N.config = k : c.value.push(k), v(c.value);
1261
1296
  }
1262
- })), null, 16)) : T("", !0)
1297
+ })), null, 16)) : I("", !0)
1263
1298
  ], 64);
1264
1299
  };
1265
1300
  }
1266
- }), lt = /* @__PURE__ */ _({
1301
+ }), ot = /* @__PURE__ */ C({
1267
1302
  __name: "PayoutAccountSetting",
1268
1303
  props: {
1269
1304
  accountId: {
@@ -1271,17 +1306,17 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1271
1306
  required: !0
1272
1307
  }
1273
1308
  },
1274
- setup(n) {
1275
- const p = n, { tab: e } = j({
1309
+ setup(a) {
1310
+ const p = a, { tab: e } = Y({
1276
1311
  tab: "information"
1277
- }), { isLoading: d, startAsyncCall: s } = Y(!0), t = ue(), u = U();
1278
- async function v(g) {
1312
+ }), { isLoading: d, startAsyncCall: s } = j(!0), t = ue(), u = U();
1313
+ async function f(v) {
1279
1314
  await R.updateById(
1280
1315
  p.accountId,
1281
- g
1316
+ v
1282
1317
  ), u.value = await R.readById(p.accountId);
1283
1318
  }
1284
- const i = [
1319
+ const c = [
1285
1320
  {
1286
1321
  label: "Information",
1287
1322
  value: "information",
@@ -1292,62 +1327,62 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1292
1327
  label: "Settlement",
1293
1328
  value: "settlement",
1294
1329
  icon: "payments",
1295
- render: pe
1330
+ render: ye
1296
1331
  },
1297
1332
  {
1298
1333
  label: "MDR Status",
1299
1334
  value: "payment",
1300
1335
  icon: "account_box",
1301
- render: we
1336
+ render: Ae
1302
1337
  },
1303
1338
  {
1304
1339
  label: "Online Gateways",
1305
1340
  icon: "assured_workload",
1306
1341
  value: "gateways",
1307
- render: Ke
1342
+ render: Oe
1308
1343
  },
1309
1344
  {
1310
1345
  label: "Token Gateways",
1311
1346
  value: "tokens",
1312
1347
  icon: "wallet",
1313
- render: je
1348
+ render: ze
1314
1349
  },
1315
1350
  {
1316
1351
  label: "Online Channels",
1317
1352
  icon: "shopping_cart",
1318
1353
  value: "channels",
1319
- render: Ce
1354
+ render: Ue
1320
1355
  }
1321
1356
  ];
1322
- function a() {
1357
+ function n() {
1323
1358
  s(async () => {
1324
1359
  u.value = await R.readById(p.accountId);
1325
1360
  });
1326
1361
  }
1327
- ae(a);
1328
- const l = K(() => {
1329
- const g = i.reduce((y, b) => y || (b.children ? b.children.find((C) => C.value === e.value) || null : b.value === e.value ? b : null), null);
1330
- return g == null ? void 0 : g.render;
1362
+ ae(n);
1363
+ const o = K(() => {
1364
+ const v = c.reduce((y, b) => y || (b.children ? b.children.find((_) => _.value === e.value) || null : b.value === e.value ? b : null), null);
1365
+ return v == null ? void 0 : v.render;
1331
1366
  });
1332
- return (g, y) => {
1333
- var C;
1334
- const b = c("FmTabs");
1335
- return f(), F(oe, {
1336
- title: `Payout Account (${(C = u.value) == null ? void 0 : C._id})`,
1367
+ return (v, y) => {
1368
+ var _;
1369
+ const b = m("FmTabs");
1370
+ return g(), x(oe, {
1371
+ title: `Payout Account (${(_ = u.value) == null ? void 0 : _._id})`,
1337
1372
  loading: r(d),
1338
1373
  onBack: r(t).back
1339
1374
  }, {
1340
- default: x(() => [
1341
- o(b, {
1375
+ default: F(() => [
1376
+ l(b, {
1342
1377
  "model-value": r(e),
1343
1378
  "onUpdate:modelValue": y[0] || (y[0] = (A) => q(e) ? e.value = A : null),
1344
1379
  class: "mb-6",
1345
- items: i
1380
+ items: c
1346
1381
  }, null, 8, ["model-value"]),
1347
- r(e) ? (f(), F(Q(l.value), W(J({ key: 0 }, {
1382
+ r(e) ? (g(), x(Q(o.value), W(J({ key: 0 }, {
1348
1383
  payoutAccount: u.value,
1349
- onUpdate: v
1350
- })), null, 16)) : T("", !0)
1384
+ onUpdate: f
1385
+ })), null, 16)) : I("", !0)
1351
1386
  ]),
1352
1387
  _: 1
1353
1388
  }, 8, ["title", "loading", "onBack"]);
@@ -1355,5 +1390,5 @@ const se = { class: "flex gap-16 mb-6" }, ie = /* @__PURE__ */ _({
1355
1390
  }
1356
1391
  });
1357
1392
  export {
1358
- lt as default
1393
+ ot as default
1359
1394
  };