@feedmepos/mf-payment 1.5.68-dev → 1.5.70-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 (95) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CSOopYCT.js → Actions.vue_vue_type_script_setup_true_lang-CL4sf6Ci.js} +1 -1
  2. package/dist/{Chargeback-id7B_0Mo.js → Chargeback-D99Rk7ns.js} +5 -5
  3. package/dist/{no-data-BRmo6XOO.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DwTcZC8y.js} +92 -2
  4. package/dist/{OnboardForm-D-aXzztS.js → OnboardForm-B6631kJ8.js} +5 -5
  5. package/dist/{OnboardForm-HBMaRw1e.js → OnboardForm-DFc9kzTX.js} +5 -5
  6. package/dist/{OnboardSubmission-B3mQbpKg.js → OnboardSubmission-DEvsCVwA.js} +5 -5
  7. package/dist/{OnboardSubmission-udG2ocVW.js → OnboardSubmission-DJSgHzBF.js} +2 -2
  8. package/dist/{PayoutAccount-dpr6UgEW.js → PayoutAccount-PPzE4LWE.js} +5 -5
  9. package/dist/{PayoutAccount-HjxoJlBH.js → PayoutAccount-wZZTknUD.js} +42 -43
  10. package/dist/{PayoutAccountSetting-DErGNyWW.js → PayoutAccountSetting-BGa1y1er.js} +4 -4
  11. package/dist/{Restaurant-DMpLQ-m5.js → Restaurant-C3P4YdWX.js} +4 -4
  12. package/dist/{RestaurantSetting-C9ecFKSv.js → RestaurantSetting-Cs4I1PzX.js} +200 -125
  13. package/dist/{Settlement-DFakfE9e.js → Settlement-DGPcNS_k.js} +4 -4
  14. package/dist/{Settlement-CM19oWo1.js → Settlement-DabgWRUJ.js} +3 -3
  15. package/dist/{SettlementTransactions-Blijz_Gp.js → SettlementTransactions-2PbUuCSU.js} +4 -4
  16. package/dist/{SettlementTransactions-DLuErd-f.js → SettlementTransactions-BZ7kZw36.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BWsw0-qx.js → Status.vue_vue_type_script_setup_true_lang-DCSe_kJG.js} +1 -1
  18. package/dist/{Terminal-VBg-Tncj.js → Terminal-jW0WzfpL.js} +5 -5
  19. package/dist/{TerminalSetting-cHe1EAz-.js → TerminalSetting-Dyi_Cdyw.js} +4 -4
  20. package/dist/{Transaction-GPSPpTqz.js → Transaction-DLQppLc4.js} +9 -9
  21. package/dist/{Transaction-CN3CDKsq.js → Transaction-vOnhssXV.js} +5 -5
  22. package/dist/{TransactionOld-CsvoWSRR.js → TransactionOld-oHIBE2c0.js} +6 -6
  23. package/dist/{app-BjI5oUMX.js → app-C1cYEYMp.js} +2822 -1779
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-D1S1_plg.js → assets-Bkv1IHBB.js} +1 -1
  26. package/dist/{grafana-D1M_gN2d.js → grafana-DcXGdkXI.js} +1 -1
  27. package/dist/{index-D1IYVrYU.js → index-BIw0Q1_k.js} +9625 -9526
  28. package/dist/{index-CM5NtnYZ.js → index-BTgjEMwB.js} +2 -2
  29. package/dist/{index-TDpPEzSH.js → index-Bh3eWzGK.js} +1 -1
  30. package/dist/{index-CKD8vczB.js → index-BiugCWFI.js} +1 -1
  31. package/dist/{index-CPj477gk.js → index-CN_LyS6t.js} +1 -1
  32. package/dist/{index-Ct__yPEf.js → index-Cfwjz1b8.js} +1 -1
  33. package/dist/{index-BCQStiw6.js → index-DpTjoakF.js} +1 -1
  34. package/dist/{index-Dnl1u77G.js → index-Dsilh7zk.js} +3 -3
  35. package/dist/{index-BgJzLLIW.js → index-LWSxo2CQ.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-dN0Twm5r.js → index.vue_vue_type_script_setup_true_lang-DALQYYmF.js} +1 -1
  37. package/dist/main.d.ts +1 -0
  38. package/dist/model/payout-account.d.ts +2 -2
  39. package/dist/package.json +4 -3
  40. package/dist/{payout-account-CLjnN1G2.js → payout-account-DmloejU6.js} +37 -37
  41. package/dist/stores/payoutAccount.d.ts +18 -18
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +18 -18
  44. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +40 -40
  45. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +40 -40
  46. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +18 -18
  47. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +18 -18
  48. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +40 -40
  49. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  50. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  51. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  52. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  53. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  54. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  55. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  56. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  57. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  58. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  59. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  60. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  61. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  62. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  63. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
  64. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  65. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +48 -0
  66. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  67. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  68. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  69. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  70. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +8 -8
  71. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  72. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +8 -8
  73. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +8 -8
  74. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +8 -8
  75. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +8 -8
  76. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +8 -8
  77. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +8 -8
  78. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +8 -8
  79. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +8 -8
  80. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +8 -8
  81. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +8 -8
  82. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +8 -8
  83. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +8 -8
  84. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +8 -8
  85. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +8 -8
  86. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +8 -8
  87. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +8 -8
  88. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +8 -8
  89. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +36 -36
  90. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +64 -64
  91. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +32 -32
  92. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  93. package/package.json +4 -3
  94. package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-CcLRVQsm.js +0 -94
  95. package/dist/Forbidden-1aaq-Ilm.js +0 -38
@@ -1,14 +1,14 @@
1
- import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as S, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as U, computed as G, onMounted as N, createElementBlock as R, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as H } from "vue";
2
- import { g as q, b as M, u as O, e as I } from "./index-D1IYVrYU.js";
1
+ import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as S, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as U, computed as O, onMounted as R, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as H } from "vue";
2
+ import { g as q, b as M, u as K, e as I } from "./index-BIw0Q1_k.js";
3
3
  import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
4
4
  import { useRouter as Q } from "vue-router";
5
- import { u as P } from "./index-CKD8vczB.js";
5
+ import { u as P } from "./index-BiugCWFI.js";
6
6
  import { z as y, a as f } from "./validator-DzjyJnvv.js";
7
7
  import { useCoreStore as E } from "@feedmepos/mf-common";
8
8
  import { u as Z } from "./error-K1CakhA9.js";
9
9
  import { useSnackbar as J } from "@feedmepos/ui-library";
10
- import { r as W } from "./index-BCQStiw6.js";
11
- const A = {
10
+ import { r as W } from "./index-DpTjoakF.js";
11
+ const C = {
12
12
  async get(a) {
13
13
  return q(
14
14
  await M().get(
@@ -16,18 +16,18 @@ const A = {
16
16
  )
17
17
  );
18
18
  },
19
- async upsert(a, i) {
19
+ async upsert(a, m) {
20
20
  return q(
21
21
  await M().post(
22
22
  `restaurants/${a}/payment-gateway`,
23
- { data: i }
23
+ { data: m }
24
24
  )
25
25
  );
26
26
  },
27
- async delete(a, i) {
27
+ async delete(a, m) {
28
28
  return q(
29
29
  await M().delete(
30
- `restaurants/${a}/payment-gateway/${i}`
30
+ `restaurants/${a}/payment-gateway/${m}`
31
31
  )
32
32
  );
33
33
  },
@@ -55,9 +55,9 @@ const A = {
55
55
  }
56
56
  },
57
57
  setup(a) {
58
- var c, m;
59
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
60
- ((m = i.gateway) == null ? void 0 : m.config) || {
58
+ var c, i;
59
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
60
+ ((i = m.gateway) == null ? void 0 : i.config) || {
61
61
  merchantId: "",
62
62
  uniqueId: "",
63
63
  verifyKey: "",
@@ -67,8 +67,8 @@ const A = {
67
67
  }
68
68
  );
69
69
  return (F, e) => {
70
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
71
- return g(), b(v, {
70
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
71
+ return g(), b(p, {
72
72
  ref: "form",
73
73
  class: "flex flex-col gap-16",
74
74
  onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, l.value))
@@ -152,9 +152,9 @@ const A = {
152
152
  }
153
153
  },
154
154
  setup(a) {
155
- var c, m;
156
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
157
- ((m = i.gateway) == null ? void 0 : m.config) || {
155
+ var c, i;
156
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
157
+ ((i = m.gateway) == null ? void 0 : i.config) || {
158
158
  storeId: "",
159
159
  clientId: "",
160
160
  clientSecret: "",
@@ -162,7 +162,7 @@ const A = {
162
162
  }
163
163
  );
164
164
  return (F, e) => {
165
- const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
165
+ const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), p = r("FmButton"), t = r("FmForm");
166
166
  return g(), b(t, {
167
167
  ref: "form",
168
168
  class: "flex flex-col gap-16",
@@ -171,41 +171,41 @@ const A = {
171
171
  default: S(() => [
172
172
  o(s, {
173
173
  modelValue: l.value.storeId,
174
- "onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.storeId = p),
174
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.storeId = v),
175
175
  label: "Store ID",
176
176
  rules: n(y)(n(f).string())
177
177
  }, null, 8, ["modelValue", "rules"]),
178
178
  o(s, {
179
179
  modelValue: l.value.clientId,
180
- "onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.clientId = p),
180
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.clientId = v),
181
181
  label: "Client ID",
182
182
  rules: n(y)(n(f).string())
183
183
  }, null, 8, ["modelValue", "rules"]),
184
184
  o(s, {
185
185
  modelValue: l.value.clientSecret,
186
- "onUpdate:modelValue": e[2] || (e[2] = (p) => l.value.clientSecret = p),
186
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => l.value.clientSecret = v),
187
187
  label: "Client Secret",
188
188
  rules: n(y)(n(f).string())
189
189
  }, null, 8, ["modelValue", "rules"]),
190
190
  o(V, {
191
191
  modelValue: l.value.clientPrivateKey,
192
- "onUpdate:modelValue": e[3] || (e[3] = (p) => l.value.clientPrivateKey = p),
192
+ "onUpdate:modelValue": e[3] || (e[3] = (v) => l.value.clientPrivateKey = v),
193
193
  label: "Client Private Key"
194
194
  }, null, 8, ["modelValue"]),
195
195
  o(d, {
196
196
  modelValue: u.value,
197
- "onUpdate:modelValue": e[4] || (e[4] = (p) => u.value = p),
197
+ "onUpdate:modelValue": e[4] || (e[4] = (v) => u.value = v),
198
198
  label: "Is Active"
199
199
  }, null, 8, ["modelValue"]),
200
200
  T("div", ee, [
201
- a.gateway ? (g(), b(v, {
201
+ a.gateway ? (g(), b(p, {
202
202
  key: 0,
203
203
  class: "flex-1",
204
204
  variant: "secondary",
205
205
  label: "Delete",
206
206
  onclick: () => a.onDelete(a.gateway)
207
207
  }, null, 8, ["onclick"])) : U("", !0),
208
- o(v, {
208
+ o(p, {
209
209
  type: "submit",
210
210
  class: "flex-1",
211
211
  variant: "primary",
@@ -234,16 +234,16 @@ const A = {
234
234
  }
235
235
  },
236
236
  setup(a) {
237
- var c, m;
238
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
239
- ((m = i.gateway) == null ? void 0 : m.config) || {
237
+ var c, i;
238
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
239
+ ((i = m.gateway) == null ? void 0 : i.config) || {
240
240
  merchantId: "",
241
241
  terminalId: "",
242
242
  privateKey: ""
243
243
  }
244
244
  );
245
245
  return (F, e) => {
246
- const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
246
+ const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), p = r("FmButton"), t = r("FmForm");
247
247
  return g(), b(t, {
248
248
  ref: "form",
249
249
  class: "flex flex-col gap-16",
@@ -252,37 +252,37 @@ const A = {
252
252
  default: S(() => [
253
253
  o(s, {
254
254
  modelValue: l.value.merchantId,
255
- "onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.merchantId = p),
255
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.merchantId = v),
256
256
  label: "Merchant ID",
257
257
  rules: n(y)(n(f).string())
258
258
  }, null, 8, ["modelValue", "rules"]),
259
259
  o(s, {
260
260
  modelValue: l.value.terminalId,
261
- "onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.terminalId = p),
261
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.terminalId = v),
262
262
  label: "Terminal ID",
263
263
  rules: n(y)(n(f).string())
264
264
  }, null, 8, ["modelValue", "rules"]),
265
265
  o(V, {
266
266
  modelValue: l.value.privateKey,
267
- "onUpdate:modelValue": e[2] || (e[2] = (p) => l.value.privateKey = p),
267
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => l.value.privateKey = v),
268
268
  label: "Private Key",
269
269
  "label-mark": "optional",
270
270
  "label-info": "Default will use FeedMe Private Key"
271
271
  }, null, 8, ["modelValue"]),
272
272
  o(d, {
273
273
  modelValue: u.value,
274
- "onUpdate:modelValue": e[3] || (e[3] = (p) => u.value = p),
274
+ "onUpdate:modelValue": e[3] || (e[3] = (v) => u.value = v),
275
275
  label: "Is Active"
276
276
  }, null, 8, ["modelValue"]),
277
277
  T("div", te, [
278
- a.gateway ? (g(), b(v, {
278
+ a.gateway ? (g(), b(p, {
279
279
  key: 0,
280
280
  class: "flex-1",
281
281
  variant: "secondary",
282
282
  label: "Delete",
283
283
  onclick: () => a.onDelete(a.gateway)
284
284
  }, null, 8, ["onclick"])) : U("", !0),
285
- o(v, {
285
+ o(p, {
286
286
  type: "submit",
287
287
  class: "flex-1",
288
288
  variant: "primary",
@@ -311,9 +311,9 @@ const A = {
311
311
  }
312
312
  },
313
313
  setup(a) {
314
- var c, m;
315
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
316
- ((m = i.gateway) == null ? void 0 : m.config) || {
314
+ var c, i;
315
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
316
+ ((i = m.gateway) == null ? void 0 : i.config) || {
317
317
  merchantId: "",
318
318
  merchantName: "",
319
319
  merchantCategoryCode: "",
@@ -322,8 +322,8 @@ const A = {
322
322
  }
323
323
  );
324
324
  return (F, e) => {
325
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
326
- return g(), b(v, {
325
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
326
+ return g(), b(p, {
327
327
  ref: "form",
328
328
  class: "flex flex-col gap-16",
329
329
  onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, l.value))
@@ -402,24 +402,24 @@ const A = {
402
402
  },
403
403
  setup(a) {
404
404
  var V, d;
405
- const i = J(), { isLoading: u, startAsyncCall: l } = O(), c = E(), m = a, F = w(((V = m.gateway) == null ? void 0 : V.active) ?? !1), e = w(
406
- ((d = m.gateway) == null ? void 0 : d.config) || {
405
+ const m = J(), { isLoading: u, startAsyncCall: l } = K(), c = E(), i = a, F = w(((V = i.gateway) == null ? void 0 : V.active) ?? !1), e = w(
406
+ ((d = i.gateway) == null ? void 0 : d.config) || {
407
407
  merchantId: ""
408
408
  }
409
409
  );
410
410
  async function s() {
411
411
  l(async () => {
412
- var v;
412
+ var p;
413
413
  try {
414
- const { merchantID: t } = await A.grabSync(
415
- ((v = c.currentRestaurant.value) == null ? void 0 : v._id) ?? ""
414
+ const { merchantID: t } = await C.grabSync(
415
+ ((p = c.currentRestaurant.value) == null ? void 0 : p._id) ?? ""
416
416
  );
417
- e.value.merchantId = t, F.value = !0, i.open({
417
+ e.value.merchantId = t, F.value = !0, m.open({
418
418
  type: "success",
419
419
  title: "Grab Setting sync successfully, you will still need to save the changes."
420
420
  });
421
421
  } catch (t) {
422
- i.open({
422
+ m.open({
423
423
  type: "error",
424
424
  title: "Error occurs when sync ordering settings",
425
425
  message: Z(t)
@@ -427,18 +427,18 @@ const A = {
427
427
  }
428
428
  });
429
429
  }
430
- return (v, t) => {
431
- const p = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), _ = r("FmSwitch"), K = r("FmForm");
432
- return g(), b(K, {
430
+ return (p, t) => {
431
+ const v = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), _ = r("FmSwitch"), G = r("FmForm");
432
+ return g(), b(G, {
433
433
  ref: "form",
434
434
  class: "flex flex-col gap-16",
435
435
  onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(F.value, e.value))
436
436
  }, {
437
437
  default: S(() => [
438
438
  T("div", ue, [
439
- o(p, {
439
+ o(v, {
440
440
  modelValue: e.value.merchantId,
441
- "onUpdate:modelValue": t[0] || (t[0] = (C) => e.value.merchantId = C),
441
+ "onUpdate:modelValue": t[0] || (t[0] = (A) => e.value.merchantId = A),
442
442
  label: "Merchant ID",
443
443
  rules: n(y)(n(f).string())
444
444
  }, null, 8, ["modelValue", "rules"]),
@@ -462,7 +462,7 @@ const A = {
462
462
  ]),
463
463
  o(_, {
464
464
  modelValue: F.value,
465
- "onUpdate:modelValue": t[1] || (t[1] = (C) => F.value = C),
465
+ "onUpdate:modelValue": t[1] || (t[1] = (A) => F.value = A),
466
466
  label: "Is Active"
467
467
  }, null, 8, ["modelValue"]),
468
468
  T("div", re, [
@@ -485,7 +485,7 @@ const A = {
485
485
  }, 512);
486
486
  };
487
487
  }
488
- }), ie = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */ D({
488
+ }), me = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ D({
489
489
  __name: "SoftSpaceGateway",
490
490
  props: {
491
491
  onUpdate: {
@@ -502,17 +502,17 @@ const A = {
502
502
  }
503
503
  },
504
504
  setup(a) {
505
- var c, m;
506
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
507
- ((m = i.gateway) == null ? void 0 : m.config) || {
505
+ var c, i;
506
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
507
+ ((i = m.gateway) == null ? void 0 : i.config) || {
508
508
  mid: "",
509
509
  tid: "",
510
510
  profileId: ""
511
511
  }
512
512
  );
513
513
  return (F, e) => {
514
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
515
- return g(), b(v, {
514
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
515
+ return g(), b(p, {
516
516
  ref: "form",
517
517
  class: "flex flex-col gap-16",
518
518
  onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, l.value))
@@ -541,7 +541,7 @@ const A = {
541
541
  "onUpdate:modelValue": e[3] || (e[3] = (t) => u.value = t),
542
542
  label: "Is Active"
543
543
  }, null, 8, ["modelValue"]),
544
- T("div", ie, [
544
+ T("div", me, [
545
545
  a.gateway ? (g(), b(d, {
546
546
  key: 0,
547
547
  class: "flex-1",
@@ -578,15 +578,15 @@ const A = {
578
578
  }
579
579
  },
580
580
  setup(a) {
581
- var c, m;
582
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
583
- ((m = i.gateway) == null ? void 0 : m.config) || {
581
+ var c, i;
582
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
583
+ ((i = m.gateway) == null ? void 0 : i.config) || {
584
584
  merchantId: ""
585
585
  }
586
586
  );
587
587
  return (F, e) => {
588
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
589
- return g(), b(v, {
588
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
589
+ return g(), b(p, {
590
590
  ref: "form",
591
591
  class: "flex flex-col gap-16",
592
592
  onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value, l.value))
@@ -623,7 +623,7 @@ const A = {
623
623
  }, 512);
624
624
  };
625
625
  }
626
- }), ve = { class: "flex mt-6 space-x-6" }, pe = /* @__PURE__ */ D({
626
+ }), pe = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ D({
627
627
  __name: "AdyenGateway",
628
628
  props: {
629
629
  onUpdate: {
@@ -640,9 +640,9 @@ const A = {
640
640
  }
641
641
  },
642
642
  setup(a) {
643
- var c, m;
644
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
645
- ((m = i.gateway) == null ? void 0 : m.config) || {
643
+ var c, i;
644
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
645
+ ((i = m.gateway) == null ? void 0 : i.config) || {
646
646
  merchantAccount: "",
647
647
  username: "",
648
648
  apiKey: "",
@@ -651,8 +651,8 @@ const A = {
651
651
  }
652
652
  );
653
653
  return (F, e) => {
654
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
655
- return g(), b(v, {
654
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
655
+ return g(), b(p, {
656
656
  ref: "form",
657
657
  class: "flex flex-col gap-16",
658
658
  onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, l.value))
@@ -692,7 +692,7 @@ const A = {
692
692
  "onUpdate:modelValue": e[5] || (e[5] = (t) => u.value = t),
693
693
  label: "Is Active"
694
694
  }, null, 8, ["modelValue"]),
695
- T("div", ve, [
695
+ T("div", pe, [
696
696
  a.gateway ? (g(), b(d, {
697
697
  key: 0,
698
698
  class: "flex-1",
@@ -729,15 +729,15 @@ const A = {
729
729
  }
730
730
  },
731
731
  setup(a) {
732
- var c, m;
733
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
734
- ((m = i.gateway) == null ? void 0 : m.config) || {
732
+ var c, i;
733
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
734
+ ((i = m.gateway) == null ? void 0 : i.config) || {
735
735
  appId: "",
736
736
  privateKey: ""
737
737
  }
738
738
  );
739
739
  return (F, e) => {
740
- const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
740
+ const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), p = r("FmButton"), t = r("FmForm");
741
741
  return g(), b(t, {
742
742
  ref: "form",
743
743
  class: "flex flex-col gap-16",
@@ -746,30 +746,30 @@ const A = {
746
746
  default: S(() => [
747
747
  o(s, {
748
748
  modelValue: l.value.appId,
749
- "onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.appId = p),
749
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.appId = v),
750
750
  label: "App ID",
751
751
  rules: n(y)(n(f).string())
752
752
  }, null, 8, ["modelValue", "rules"]),
753
753
  o(V, {
754
754
  modelValue: l.value.privateKey,
755
- "onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.privateKey = p),
755
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.privateKey = v),
756
756
  label: "Private Key",
757
757
  placeholder: "Paste your private key including BEGIN and END markers"
758
758
  }, null, 8, ["modelValue"]),
759
759
  o(d, {
760
760
  modelValue: u.value,
761
- "onUpdate:modelValue": e[2] || (e[2] = (p) => u.value = p),
761
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => u.value = v),
762
762
  label: "Is Active"
763
763
  }, null, 8, ["modelValue"]),
764
764
  T("div", ye, [
765
- a.gateway ? (g(), b(v, {
765
+ a.gateway ? (g(), b(p, {
766
766
  key: 0,
767
767
  class: "flex-1",
768
768
  variant: "secondary",
769
769
  label: "Delete",
770
770
  onclick: () => a.onDelete(a.gateway)
771
771
  }, null, 8, ["onclick"])) : U("", !0),
772
- o(v, {
772
+ o(p, {
773
773
  type: "submit",
774
774
  class: "flex-1",
775
775
  variant: "primary",
@@ -798,9 +798,9 @@ const A = {
798
798
  }
799
799
  },
800
800
  setup(a) {
801
- var c, m;
802
- const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
803
- ((m = i.gateway) == null ? void 0 : m.config) || {
801
+ var c, i;
802
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
803
+ ((i = m.gateway) == null ? void 0 : i.config) || {
804
804
  clientId: "",
805
805
  clientSecret: "",
806
806
  merchantId: "",
@@ -808,8 +808,8 @@ const A = {
808
808
  }
809
809
  );
810
810
  return (F, e) => {
811
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
812
- return g(), b(v, {
811
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
812
+ return g(), b(p, {
813
813
  ref: "form",
814
814
  class: "flex flex-col gap-16",
815
815
  onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, l.value))
@@ -864,10 +864,79 @@ const A = {
864
864
  }, 512);
865
865
  };
866
866
  }
867
- }), Ve = {
867
+ }), Ve = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ D({
868
+ __name: "MonetapayGateway",
869
+ props: {
870
+ gateway: {
871
+ type: Object,
872
+ required: !0
873
+ },
874
+ onUpdate: {
875
+ type: Function,
876
+ required: !0
877
+ },
878
+ onDelete: {
879
+ type: Function,
880
+ required: !0
881
+ }
882
+ },
883
+ setup(a) {
884
+ var c, i;
885
+ const m = a, u = w(((c = m.gateway) == null ? void 0 : c.active) ?? !1), l = w(
886
+ ((i = m.gateway) == null ? void 0 : i.config) || {
887
+ appId: "",
888
+ merchantId: ""
889
+ }
890
+ );
891
+ return (F, e) => {
892
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
893
+ return g(), b(p, {
894
+ ref: "form",
895
+ class: "flex flex-col gap-16",
896
+ onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, l.value))
897
+ }, {
898
+ default: S(() => [
899
+ o(s, {
900
+ modelValue: l.value.appId,
901
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.appId = t),
902
+ label: "App ID",
903
+ rules: n(y)(n(f).string())
904
+ }, null, 8, ["modelValue", "rules"]),
905
+ o(s, {
906
+ modelValue: l.value.merchantId,
907
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantId = t),
908
+ label: "Merchant ID",
909
+ rules: n(y)(n(f).string())
910
+ }, null, 8, ["modelValue", "rules"]),
911
+ o(V, {
912
+ modelValue: u.value,
913
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => u.value = t),
914
+ label: "Is Active"
915
+ }, null, 8, ["modelValue"]),
916
+ T("div", Ve, [
917
+ a.gateway ? (g(), b(d, {
918
+ key: 0,
919
+ class: "flex-1",
920
+ variant: "secondary",
921
+ label: "Delete",
922
+ onclick: () => a.onDelete(a.gateway)
923
+ }, null, 8, ["onclick"])) : U("", !0),
924
+ o(d, {
925
+ type: "submit",
926
+ class: "flex-1",
927
+ variant: "primary",
928
+ label: "Save"
929
+ })
930
+ ])
931
+ ]),
932
+ _: 1
933
+ }, 512);
934
+ };
935
+ }
936
+ }), we = {
868
937
  key: 0,
869
938
  class: "flex items-center justify-center min-h-[80vh]"
870
- }, be = /* @__PURE__ */ D({
939
+ }, xe = /* @__PURE__ */ D({
871
940
  __name: "PaymentGateway",
872
941
  props: {
873
942
  restaurant: {
@@ -876,7 +945,7 @@ const A = {
876
945
  }
877
946
  },
878
947
  setup(a) {
879
- const i = [
948
+ const m = [
880
949
  {
881
950
  label: "Fiuu",
882
951
  value: "RAZER_MERCHANT_SERVICE",
@@ -910,7 +979,7 @@ const A = {
910
979
  {
911
980
  label: "SoftSpace",
912
981
  value: "SOFTSPACE",
913
- form: me,
982
+ form: ie,
914
983
  region: [I.F_COUNTRY.enum.MY]
915
984
  },
916
985
  {
@@ -928,7 +997,7 @@ const A = {
928
997
  {
929
998
  label: "Adyen",
930
999
  value: "ADYEN",
931
- form: pe,
1000
+ form: ve,
932
1001
  region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
933
1002
  },
934
1003
  {
@@ -936,46 +1005,52 @@ const A = {
936
1005
  value: "MAYBANK_QR",
937
1006
  form: ge,
938
1007
  region: [I.F_COUNTRY.enum.MY]
1008
+ },
1009
+ {
1010
+ label: "Monetapay",
1011
+ value: "MONETAPAY",
1012
+ form: be,
1013
+ region: [I.F_COUNTRY.enum.ID]
939
1014
  }
940
- ], u = a, l = E(), { isLoading: c, startAsyncCall: m } = O(), { activeGateway: F } = P({
1015
+ ], u = a, l = E(), { isLoading: c, startAsyncCall: i } = K(), { activeGateway: F } = P({
941
1016
  activeGateway: ""
942
1017
  }), e = w([]);
943
1018
  async function s(x, k) {
944
- await m(async () => {
1019
+ await i(async () => {
945
1020
  const _ = {
946
1021
  paymentGateway: F.value,
947
1022
  config: k,
948
1023
  active: x
949
1024
  };
950
- await A.upsert(u.restaurant._id, _), e.value = [...await A.get(u.restaurant._id)];
1025
+ await C.upsert(u.restaurant._id, _), e.value = [...await C.get(u.restaurant._id)];
951
1026
  });
952
1027
  }
953
1028
  async function V(x) {
954
- await m(async () => {
955
- await A.delete(u.restaurant._id, x._id), e.value = [...await A.get(u.restaurant._id)];
1029
+ await i(async () => {
1030
+ await C.delete(u.restaurant._id, x._id), e.value = [...await C.get(u.restaurant._id)];
956
1031
  });
957
1032
  }
958
- const d = G(() => i.filter(
1033
+ const d = O(() => m.filter(
959
1034
  (x) => x.region.includes(l.currentCountry.value ?? I.F_COUNTRY.enum.MY)
960
1035
  ));
961
- function v() {
962
- m(async () => {
963
- e.value = await A.get(u.restaurant._id), d.value.length > 0 && (F.value = d.value[0].value);
1036
+ function p() {
1037
+ i(async () => {
1038
+ e.value = await C.get(u.restaurant._id), d.value.length > 0 && (F.value = d.value[0].value);
964
1039
  });
965
1040
  }
966
- N(v);
967
- const t = G(() => {
1041
+ R(p);
1042
+ const t = O(() => {
968
1043
  var x;
969
- return (x = i.find((k) => k.value === F.value)) == null ? void 0 : x.form;
970
- }), p = G(() => e.value.find((x) => x.paymentGateway === F.value));
1044
+ return (x = m.find((k) => k.value === F.value)) == null ? void 0 : x.form;
1045
+ }), v = O(() => e.value.find((x) => x.paymentGateway === F.value));
971
1046
  return (x, k) => {
972
- var C;
973
- const _ = r("FmCircularProgress"), K = r("FmTabs");
974
- return g(), R(L, null, [
975
- n(c) ? (g(), R("div", Ve, [
1047
+ var A;
1048
+ const _ = r("FmCircularProgress"), G = r("FmTabs");
1049
+ return g(), N(L, null, [
1050
+ n(c) ? (g(), N("div", we, [
976
1051
  o(_, { size: "xxl" })
977
1052
  ])) : U("", !0),
978
- o(K, {
1053
+ o(G, {
979
1054
  class: "mb-6",
980
1055
  "model-value": n(F),
981
1056
  "onUpdate:modelValue": k[0] || (k[0] = (j) => B(F) ? F.value = j : null),
@@ -983,16 +1058,16 @@ const A = {
983
1058
  showMoreAt: 8
984
1059
  }, null, 8, ["model-value", "items"]),
985
1060
  n(F) ? (g(), b($(t.value), Y({
986
- key: (C = p.value) == null ? void 0 : C._id
1061
+ key: (A = v.value) == null ? void 0 : A._id
987
1062
  }, {
988
- gateway: p.value,
1063
+ gateway: v.value,
989
1064
  onDelete: V,
990
1065
  onUpdate: s
991
1066
  }), null, 16)) : U("", !0)
992
1067
  ], 64);
993
1068
  };
994
1069
  }
995
- }), _e = /* @__PURE__ */ D({
1070
+ }), Me = /* @__PURE__ */ D({
996
1071
  __name: "RestaurantSetting",
997
1072
  props: {
998
1073
  restaurantId: {
@@ -1001,38 +1076,38 @@ const A = {
1001
1076
  }
1002
1077
  },
1003
1078
  setup(a) {
1004
- const i = a, { tab: u } = P({
1079
+ const m = a, { tab: u } = P({
1005
1080
  tab: "payment-gateway"
1006
- }), { isLoading: l, startAsyncCall: c } = O(!0), m = Q(), F = w(), e = [
1081
+ }), { isLoading: l, startAsyncCall: c } = K(!0), i = Q(), F = w(), e = [
1007
1082
  {
1008
1083
  label: "Payment Gateway",
1009
1084
  value: "payment-gateway",
1010
1085
  icon: "assured_workload",
1011
- render: be
1086
+ render: xe
1012
1087
  }
1013
1088
  ];
1014
1089
  function s() {
1015
1090
  c(async () => {
1016
- F.value = await W.readRestaurantById(i.restaurantId);
1091
+ F.value = await W.readRestaurantById(m.restaurantId);
1017
1092
  });
1018
1093
  }
1019
- N(s);
1020
- const V = G(() => {
1094
+ R(s);
1095
+ const V = O(() => {
1021
1096
  var d;
1022
- return (d = e.find((v) => v.value === u.value)) == null ? void 0 : d.render;
1097
+ return (d = e.find((p) => p.value === u.value)) == null ? void 0 : d.render;
1023
1098
  });
1024
- return (d, v) => {
1025
- var p;
1099
+ return (d, p) => {
1100
+ var v;
1026
1101
  const t = r("FmTabs");
1027
1102
  return g(), b(z, {
1028
- title: `Restaurant (${(p = F.value) == null ? void 0 : p._id})`,
1103
+ title: `Restaurant (${(v = F.value) == null ? void 0 : v._id})`,
1029
1104
  loading: n(l),
1030
- onBack: n(m).back
1105
+ onBack: n(i).back
1031
1106
  }, {
1032
1107
  default: S(() => [
1033
1108
  o(t, {
1034
1109
  "model-value": n(u),
1035
- "onUpdate:modelValue": v[0] || (v[0] = (x) => B(u) ? u.value = x : null),
1110
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => B(u) ? u.value = x : null),
1036
1111
  class: "mb-6",
1037
1112
  items: e
1038
1113
  }, null, 8, ["model-value"]),
@@ -1046,5 +1121,5 @@ const A = {
1046
1121
  }
1047
1122
  });
1048
1123
  export {
1049
- _e as default
1124
+ Me as default
1050
1125
  };