@feedmepos/mf-payment 1.8.5 → 1.8.6-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 (104) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-tNiSAnf0.js → Actions.vue_vue_type_script_setup_true_lang-bFCBTzI5.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DyXptTeq.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DJhZ930J.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DXAjIajl.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-B9_rq-fq.js} +2 -2
  4. package/dist/{Chargeback-DG4z2wC-.js → Chargeback-eF_MfNB7.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DkwSKD27.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DByI68Y0.js} +1 -1
  6. package/dist/{OnboardForm-DpQ5_nlk.js → OnboardForm-CgVlJEWP.js} +6 -6
  7. package/dist/{OnboardForm-Bqli8KS7.js → OnboardForm-OqVz2dnj.js} +6 -6
  8. package/dist/{OnboardSubmission-Bz2THtgX.js → OnboardSubmission-BeWkvADJ.js} +6 -6
  9. package/dist/{OnboardSubmission-DC84yJmk.js → OnboardSubmission-CmcuvrEy.js} +3 -3
  10. package/dist/{PayoutAccount-Ds9tmcJg.js → PayoutAccount-BU-bT1wE.js} +5 -5
  11. package/dist/{PayoutAccount-y2djXF7T.js → PayoutAccount-Q0bzSdXR.js} +7 -7
  12. package/dist/{PayoutAccountSetting-DjfRoyGo.js → PayoutAccountSetting-CZqZdZyS.js} +679 -609
  13. package/dist/{Restaurant-kUZfATOY.js → Restaurant-BLLbK64j.js} +4 -4
  14. package/dist/{RestaurantSetting-WNjCLcaa.js → RestaurantSetting-BC_sm9bJ.js} +156 -81
  15. package/dist/{Settlement-DC9Lxb4-.js → Settlement-B7dzQTAr.js} +190 -195
  16. package/dist/{Settlement-C5MdLF4k.js → Settlement-CphuhaDs.js} +3 -3
  17. package/dist/{SettlementTransactions-C5_IwQfi.js → SettlementTransactions-CTFl-1pu.js} +5 -5
  18. package/dist/{SettlementTransactions-PEpdoraT.js → SettlementTransactions-oCyokbLZ.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-Cn2OwgiM.js → Status.vue_vue_type_script_setup_true_lang-DZH1tqmy.js} +1 -1
  20. package/dist/{Terminal-DRfZw5Zt.js → Terminal-ubk78mmt.js} +5 -5
  21. package/dist/{TerminalSetting-BGkWJope.js → TerminalSetting-CqS9pECq.js} +472 -461
  22. package/dist/{Transaction-WVhPvdla.js → Transaction-BgLMHX2L.js} +11 -11
  23. package/dist/{Transaction-CaTl2yLu.js → Transaction-BxNWr_TR.js} +10 -10
  24. package/dist/{TransactionOld-DMLFJZrU.js → TransactionOld-jrctGUYY.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-ByQ8iLwt.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Hribmsrm.js} +1 -1
  26. package/dist/{app-Qtgy6J8e.js → app-GiML6ZLl.js} +576 -567
  27. package/dist/app.js +1 -1
  28. package/dist/assets-8qJRwo68.js +93 -0
  29. package/dist/{grafana-B_DxY7DM.js → grafana-B9Tf8La5.js} +1 -1
  30. package/dist/{index-CXO0GUl7.js → index-B5NyE5Fd.js} +1 -1
  31. package/dist/{index-Dkvcuh0X.js → index-BAva71bK.js} +1 -1
  32. package/dist/{index-CEX7iZPm.js → index-BfYobGKt.js} +2820 -2771
  33. package/dist/{index-BuROkOo1.js → index-CVTjXEZI.js} +1 -1
  34. package/dist/{index-D1wFMKEa.js → index-CxK7NPc7.js} +1 -1
  35. package/dist/{index-vmXm915k.js → index-D1EHLc-D.js} +1 -1
  36. package/dist/{index-DMoE-9mm.js → index-DNBtefZH.js} +1 -1
  37. package/dist/{index-Cdi1x__7.js → index-PCquuCgs.js} +1 -1
  38. package/dist/{index-BOWopllj.js → index-XzGHDL9B.js} +2 -2
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-CeS70ZWR.js → index.vue_vue_type_script_setup_true_lang-3kFL7AhX.js} +1 -1
  40. package/dist/{onboard-submission-BKfvP6NO.js → onboard-submission-y3QA70dW.js} +1 -1
  41. package/dist/package.json +2 -2
  42. package/dist/{payout-account-OCxMbNx5.js → payout-account-BtaeptEJ.js} +3 -3
  43. package/dist/stores/payoutAccount.d.ts +44 -32
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
  47. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
  48. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
  49. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -32
  50. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -36
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -36
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -32
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -32
  54. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -36
  55. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  56. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +41 -0
  57. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  58. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  59. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  60. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  61. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  63. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  64. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  65. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +48 -0
  66. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  67. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  68. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  69. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  70. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  71. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
  72. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  73. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
  74. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  75. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  76. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  77. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
  78. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
  79. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
  80. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
  81. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
  82. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
  83. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
  84. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
  85. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
  86. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
  87. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
  88. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
  89. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
  90. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
  91. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
  92. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
  93. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
  94. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
  95. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
  96. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
  97. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
  98. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
  99. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -64
  100. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
  101. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
  102. package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
  103. package/package.json +2 -2
  104. package/dist/assets-D7KZ17hn.js +0 -92
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as _, openBlock as x, createBlock as A, withCtx as $, createElementVNode as p, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, createVNode as v, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-Dkvcuh0X.js";
2
+ import { u as O } from "./index-BAva71bK.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-CEX7iZPm.js";
5
+ import { u as G } from "./index-BfYobGKt.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
7
- import { r as H } from "./index-D1wFMKEa.js";
7
+ import { r as H } from "./index-CxK7NPc7.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-B_DxY7DM.js";
9
+ import { g as X } from "./grafana-B9Tf8La5.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,13 +1,13 @@
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-CEX7iZPm.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 K, onMounted as N, createElementBlock as G, Fragment as H, isRef as R, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as L } from "vue";
2
+ import { g as q, b as M, u as B, e as I } from "./index-BfYobGKt.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-Dkvcuh0X.js";
6
- import { z as y, a as f } from "./validator-CTlVogBQ.js";
5
+ import { u as P } from "./index-BAva71bK.js";
6
+ import { z as v, a as y } from "./validator-CTlVogBQ.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-D1wFMKEa.js";
10
+ import { r as W } from "./index-CxK7NPc7.js";
11
11
  const C = {
12
12
  async get(a) {
13
13
  return q(
@@ -78,37 +78,37 @@ const C = {
78
78
  modelValue: l.value.merchantId,
79
79
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
80
80
  label: "Merchant ID",
81
- rules: n(y)(n(f).string())
81
+ rules: n(v)(n(y).string())
82
82
  }, null, 8, ["modelValue", "rules"]),
83
83
  o(s, {
84
84
  modelValue: l.value.uniqueId,
85
85
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.uniqueId = t),
86
86
  label: "Unique ID",
87
- rules: n(y)(n(f).string())
87
+ rules: n(v)(n(y).string())
88
88
  }, null, 8, ["modelValue", "rules"]),
89
89
  o(s, {
90
90
  modelValue: l.value.verifyKey,
91
91
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.verifyKey = t),
92
92
  label: "Verify Key",
93
- rules: n(y)(n(f).string())
93
+ rules: n(v)(n(y).string())
94
94
  }, null, 8, ["modelValue", "rules"]),
95
95
  o(s, {
96
96
  modelValue: l.value.secretKey,
97
97
  "onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.secretKey = t),
98
98
  label: "Secret Key",
99
- rules: n(y)(n(f).string())
99
+ rules: n(v)(n(y).string())
100
100
  }, null, 8, ["modelValue", "rules"]),
101
101
  o(s, {
102
102
  modelValue: l.value.applicationCode,
103
103
  "onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.applicationCode = t),
104
104
  label: "Application Code ( Offline )",
105
- rules: n(y)(n(f).string())
105
+ rules: n(v)(n(y).string())
106
106
  }, null, 8, ["modelValue", "rules"]),
107
107
  o(s, {
108
108
  modelValue: l.value.offlineSecret,
109
109
  "onUpdate:modelValue": e[5] || (e[5] = (t) => l.value.offlineSecret = t),
110
110
  label: "Offline Secret ( Offline )",
111
- rules: n(y)(n(f).string())
111
+ rules: n(v)(n(y).string())
112
112
  }, null, 8, ["modelValue", "rules"]),
113
113
  o(V, {
114
114
  modelValue: u.value,
@@ -171,30 +171,30 @@ const C = {
171
171
  default: S(() => [
172
172
  o(s, {
173
173
  modelValue: l.value.storeId,
174
- "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.storeId = v),
174
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => l.value.storeId = f),
175
175
  label: "Store ID",
176
- rules: n(y)(n(f).string())
176
+ rules: n(v)(n(y).string())
177
177
  }, null, 8, ["modelValue", "rules"]),
178
178
  o(s, {
179
179
  modelValue: l.value.clientId,
180
- "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.clientId = v),
180
+ "onUpdate:modelValue": e[1] || (e[1] = (f) => l.value.clientId = f),
181
181
  label: "Client ID",
182
- rules: n(y)(n(f).string())
182
+ rules: n(v)(n(y).string())
183
183
  }, null, 8, ["modelValue", "rules"]),
184
184
  o(s, {
185
185
  modelValue: l.value.clientSecret,
186
- "onUpdate:modelValue": e[2] || (e[2] = (v) => l.value.clientSecret = v),
186
+ "onUpdate:modelValue": e[2] || (e[2] = (f) => l.value.clientSecret = f),
187
187
  label: "Client Secret",
188
- rules: n(y)(n(f).string())
188
+ rules: n(v)(n(y).string())
189
189
  }, null, 8, ["modelValue", "rules"]),
190
190
  o(V, {
191
191
  modelValue: l.value.clientPrivateKey,
192
- "onUpdate:modelValue": e[3] || (e[3] = (v) => l.value.clientPrivateKey = v),
192
+ "onUpdate:modelValue": e[3] || (e[3] = (f) => l.value.clientPrivateKey = f),
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] = (v) => u.value = v),
197
+ "onUpdate:modelValue": e[4] || (e[4] = (f) => u.value = f),
198
198
  label: "Is Active"
199
199
  }, null, 8, ["modelValue"]),
200
200
  T("div", ee, [
@@ -252,26 +252,26 @@ const C = {
252
252
  default: S(() => [
253
253
  o(s, {
254
254
  modelValue: l.value.merchantId,
255
- "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.merchantId = v),
255
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => l.value.merchantId = f),
256
256
  label: "Merchant ID",
257
- rules: n(y)(n(f).string())
257
+ rules: n(v)(n(y).string())
258
258
  }, null, 8, ["modelValue", "rules"]),
259
259
  o(s, {
260
260
  modelValue: l.value.terminalId,
261
- "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.terminalId = v),
261
+ "onUpdate:modelValue": e[1] || (e[1] = (f) => l.value.terminalId = f),
262
262
  label: "Terminal ID",
263
- rules: n(y)(n(f).string())
263
+ rules: n(v)(n(y).string())
264
264
  }, null, 8, ["modelValue", "rules"]),
265
265
  o(V, {
266
266
  modelValue: l.value.privateKey,
267
- "onUpdate:modelValue": e[2] || (e[2] = (v) => l.value.privateKey = v),
267
+ "onUpdate:modelValue": e[2] || (e[2] = (f) => l.value.privateKey = f),
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] = (v) => u.value = v),
274
+ "onUpdate:modelValue": e[3] || (e[3] = (f) => u.value = f),
275
275
  label: "Is Active"
276
276
  }, null, 8, ["modelValue"]),
277
277
  T("div", te, [
@@ -333,31 +333,31 @@ const C = {
333
333
  modelValue: l.value.merchantId,
334
334
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
335
335
  label: "Merchant ID",
336
- rules: n(y)(n(f).string())
336
+ rules: n(v)(n(y).string())
337
337
  }, null, 8, ["modelValue", "rules"]),
338
338
  o(s, {
339
339
  modelValue: l.value.merchantName,
340
340
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantName = t),
341
341
  label: "Merchant Name",
342
- rules: n(y)(n(f).string())
342
+ rules: n(v)(n(y).string())
343
343
  }, null, 8, ["modelValue", "rules"]),
344
344
  o(s, {
345
345
  modelValue: l.value.merchantCategoryCode,
346
346
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.merchantCategoryCode = t),
347
347
  label: "Merchant MCC",
348
- rules: n(y)(n(f).string())
348
+ rules: n(v)(n(y).string())
349
349
  }, null, 8, ["modelValue", "rules"]),
350
350
  o(s, {
351
351
  modelValue: l.value.storeID,
352
352
  "onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.storeID = t),
353
353
  label: "Store ID",
354
- rules: n(y)(n(f).string())
354
+ rules: n(v)(n(y).string())
355
355
  }, null, 8, ["modelValue", "rules"]),
356
356
  o(s, {
357
357
  modelValue: l.value.storeName,
358
358
  "onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.storeName = t),
359
359
  label: "Store Name",
360
- rules: n(y)(n(f).string())
360
+ rules: n(v)(n(y).string())
361
361
  }, null, 8, ["modelValue", "rules"]),
362
362
  o(V, {
363
363
  modelValue: u.value,
@@ -402,7 +402,7 @@ const C = {
402
402
  },
403
403
  setup(a) {
404
404
  var V, d;
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(
405
+ const m = J(), { isLoading: u, startAsyncCall: l } = B(), c = E(), i = a, F = w(((V = i.gateway) == null ? void 0 : V.active) ?? !1), e = w(
406
406
  ((d = i.gateway) == null ? void 0 : d.config) || {
407
407
  merchantId: ""
408
408
  }
@@ -428,19 +428,19 @@ const C = {
428
428
  });
429
429
  }
430
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, {
431
+ const f = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), _ = r("FmSwitch"), O = r("FmForm");
432
+ return g(), b(O, {
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(v, {
439
+ o(f, {
440
440
  modelValue: e.value.merchantId,
441
441
  "onUpdate:modelValue": t[0] || (t[0] = (A) => e.value.merchantId = A),
442
442
  label: "Merchant ID",
443
- rules: n(y)(n(f).string())
443
+ rules: n(v)(n(y).string())
444
444
  }, null, 8, ["modelValue", "rules"]),
445
445
  o(k, {
446
446
  variant: "plain",
@@ -522,19 +522,19 @@ const C = {
522
522
  modelValue: l.value.mid,
523
523
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.mid = t),
524
524
  label: "MID",
525
- rules: n(y)(n(f).string())
525
+ rules: n(v)(n(y).string())
526
526
  }, null, 8, ["modelValue", "rules"]),
527
527
  o(s, {
528
528
  modelValue: l.value.tid,
529
529
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.tid = t),
530
530
  label: "TID",
531
- rules: n(y)(n(f).string())
531
+ rules: n(v)(n(y).string())
532
532
  }, null, 8, ["modelValue", "rules"]),
533
533
  o(s, {
534
534
  modelValue: l.value.profileId,
535
535
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.profileId = t),
536
536
  label: "Profile ID",
537
- rules: n(y)(n(f).string())
537
+ rules: n(v)(n(y).string())
538
538
  }, null, 8, ["modelValue", "rules"]),
539
539
  o(V, {
540
540
  modelValue: u.value,
@@ -596,7 +596,7 @@ const C = {
596
596
  modelValue: l.value.merchantId,
597
597
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
598
598
  label: "Merchant ID",
599
- rules: n(y)(n(f).string())
599
+ rules: n(v)(n(y).string())
600
600
  }, null, 8, ["modelValue", "rules"]),
601
601
  o(V, {
602
602
  modelValue: u.value,
@@ -662,25 +662,25 @@ const C = {
662
662
  modelValue: l.value.endpoint,
663
663
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.endpoint = t),
664
664
  label: "Endpoint",
665
- rules: n(y)(n(f).string())
665
+ rules: n(v)(n(y).string())
666
666
  }, null, 8, ["modelValue", "rules"]),
667
667
  o(s, {
668
668
  modelValue: l.value.merchantAccount,
669
669
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantAccount = t),
670
670
  label: "Merchant Account",
671
- rules: n(y)(n(f).string())
671
+ rules: n(v)(n(y).string())
672
672
  }, null, 8, ["modelValue", "rules"]),
673
673
  o(s, {
674
674
  modelValue: l.value.username,
675
675
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.username = t),
676
676
  label: "Username",
677
- rules: n(y)(n(f).string())
677
+ rules: n(v)(n(y).string())
678
678
  }, null, 8, ["modelValue", "rules"]),
679
679
  o(s, {
680
680
  modelValue: l.value.apiKey,
681
681
  "onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.apiKey = t),
682
682
  label: "API Key",
683
- rules: n(y)(n(f).string())
683
+ rules: n(v)(n(y).string())
684
684
  }, null, 8, ["modelValue", "rules"]),
685
685
  o(s, {
686
686
  modelValue: l.value.hmacKey,
@@ -746,19 +746,19 @@ const C = {
746
746
  default: S(() => [
747
747
  o(s, {
748
748
  modelValue: l.value.appId,
749
- "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.appId = v),
749
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => l.value.appId = f),
750
750
  label: "App ID",
751
- rules: n(y)(n(f).string())
751
+ rules: n(v)(n(y).string())
752
752
  }, null, 8, ["modelValue", "rules"]),
753
753
  o(V, {
754
754
  modelValue: l.value.privateKey,
755
- "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.privateKey = v),
755
+ "onUpdate:modelValue": e[1] || (e[1] = (f) => l.value.privateKey = f),
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] = (v) => u.value = v),
761
+ "onUpdate:modelValue": e[2] || (e[2] = (f) => u.value = f),
762
762
  label: "Is Active"
763
763
  }, null, 8, ["modelValue"]),
764
764
  T("div", ye, [
@@ -782,6 +782,75 @@ const C = {
782
782
  };
783
783
  }
784
784
  }), Fe = { class: "flex mt-6 space-x-6" }, ge = /* @__PURE__ */ D({
785
+ __name: "BeamGateway",
786
+ props: {
787
+ onUpdate: {
788
+ type: Function,
789
+ required: !0
790
+ },
791
+ onDelete: {
792
+ type: Function,
793
+ required: !0
794
+ },
795
+ gateway: {
796
+ type: Object,
797
+ required: !0
798
+ }
799
+ },
800
+ setup(a) {
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
+ merchantId: "",
805
+ apiKey: ""
806
+ }
807
+ );
808
+ return (F, e) => {
809
+ const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
810
+ return g(), b(p, {
811
+ ref: "form",
812
+ class: "flex flex-col gap-16",
813
+ onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, l.value))
814
+ }, {
815
+ default: S(() => [
816
+ o(s, {
817
+ modelValue: l.value.merchantId,
818
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
819
+ label: "Merchant ID",
820
+ rules: n(v)(n(y).string())
821
+ }, null, 8, ["modelValue", "rules"]),
822
+ o(s, {
823
+ modelValue: l.value.apiKey,
824
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.apiKey = t),
825
+ label: "Api Key",
826
+ rules: n(v)(n(y).string())
827
+ }, null, 8, ["modelValue", "rules"]),
828
+ o(V, {
829
+ modelValue: u.value,
830
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => u.value = t),
831
+ label: "Is Active"
832
+ }, null, 8, ["modelValue"]),
833
+ T("div", Fe, [
834
+ a.gateway ? (g(), b(d, {
835
+ key: 0,
836
+ class: "flex-1",
837
+ variant: "secondary",
838
+ label: "Delete",
839
+ onclick: () => a.onDelete(a.gateway)
840
+ }, null, 8, ["onclick"])) : U("", !0),
841
+ o(d, {
842
+ type: "submit",
843
+ class: "flex-1",
844
+ variant: "primary",
845
+ label: "Save"
846
+ })
847
+ ])
848
+ ]),
849
+ _: 1
850
+ }, 512);
851
+ };
852
+ }
853
+ }), Ve = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ D({
785
854
  __name: "MaybankGateway",
786
855
  props: {
787
856
  onUpdate: {
@@ -819,19 +888,19 @@ const C = {
819
888
  modelValue: l.value.clientId,
820
889
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.clientId = t),
821
890
  label: "Client ID",
822
- rules: n(y)(n(f).string())
891
+ rules: n(v)(n(y).string())
823
892
  }, null, 8, ["modelValue", "rules"]),
824
893
  o(s, {
825
894
  modelValue: l.value.clientSecret,
826
895
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.clientSecret = t),
827
896
  label: "Client Secret",
828
- rules: n(y)(n(f).string())
897
+ rules: n(v)(n(y).string())
829
898
  }, null, 8, ["modelValue", "rules"]),
830
899
  o(s, {
831
900
  modelValue: l.value.merchantId,
832
901
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.merchantId = t),
833
902
  label: "Merchant ID (Client Ref ID)",
834
- rules: n(y)(n(f).string())
903
+ rules: n(v)(n(y).string())
835
904
  }, null, 8, ["modelValue", "rules"]),
836
905
  o(s, {
837
906
  modelValue: l.value.terminalId,
@@ -844,7 +913,7 @@ const C = {
844
913
  "onUpdate:modelValue": e[4] || (e[4] = (t) => u.value = t),
845
914
  label: "Is Active"
846
915
  }, null, 8, ["modelValue"]),
847
- T("div", Fe, [
916
+ T("div", Ve, [
848
917
  a.gateway ? (g(), b(d, {
849
918
  key: 0,
850
919
  class: "flex-1",
@@ -864,7 +933,7 @@ const C = {
864
933
  }, 512);
865
934
  };
866
935
  }
867
- }), Ve = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ D({
936
+ }), we = { class: "flex mt-6 space-x-6" }, xe = /* @__PURE__ */ D({
868
937
  __name: "MonetapayGateway",
869
938
  props: {
870
939
  gateway: {
@@ -900,20 +969,20 @@ const C = {
900
969
  modelValue: l.value.appId,
901
970
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.appId = t),
902
971
  label: "App ID",
903
- rules: n(y)(n(f).string())
972
+ rules: n(v)(n(y).string())
904
973
  }, null, 8, ["modelValue", "rules"]),
905
974
  o(s, {
906
975
  modelValue: l.value.merchantId,
907
976
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantId = t),
908
977
  label: "Merchant ID",
909
- rules: n(y)(n(f).string())
978
+ rules: n(v)(n(y).string())
910
979
  }, null, 8, ["modelValue", "rules"]),
911
980
  o(V, {
912
981
  modelValue: u.value,
913
982
  "onUpdate:modelValue": e[2] || (e[2] = (t) => u.value = t),
914
983
  label: "Is Active"
915
984
  }, null, 8, ["modelValue"]),
916
- T("div", Ve, [
985
+ T("div", we, [
917
986
  a.gateway ? (g(), b(d, {
918
987
  key: 0,
919
988
  class: "flex-1",
@@ -933,10 +1002,10 @@ const C = {
933
1002
  }, 512);
934
1003
  };
935
1004
  }
936
- }), we = {
1005
+ }), Ie = {
937
1006
  key: 0,
938
1007
  class: "flex items-center justify-center min-h-[80vh]"
939
- }, xe = /* @__PURE__ */ D({
1008
+ }, Ue = /* @__PURE__ */ D({
940
1009
  __name: "PaymentGateway",
941
1010
  props: {
942
1011
  restaurant: {
@@ -1003,16 +1072,22 @@ const C = {
1003
1072
  {
1004
1073
  label: "Maybank",
1005
1074
  value: "MAYBANK_QR",
1006
- form: ge,
1075
+ form: be,
1007
1076
  region: [I.F_COUNTRY.enum.MY]
1008
1077
  },
1009
1078
  {
1010
1079
  label: "Monetapay",
1011
1080
  value: "MONETAPAY",
1012
- form: be,
1081
+ form: xe,
1013
1082
  region: [I.F_COUNTRY.enum.ID]
1083
+ },
1084
+ {
1085
+ label: "Beam",
1086
+ value: "BEAM",
1087
+ form: ge,
1088
+ region: [I.F_COUNTRY.enum.TH]
1014
1089
  }
1015
- ], u = a, l = E(), { isLoading: c, startAsyncCall: i } = K(), { activeGateway: F } = P({
1090
+ ], u = a, l = E(), { isLoading: c, startAsyncCall: i } = B(), { activeGateway: F } = P({
1016
1091
  activeGateway: ""
1017
1092
  }), e = w([]);
1018
1093
  async function s(x, k) {
@@ -1030,7 +1105,7 @@ const C = {
1030
1105
  await C.delete(u.restaurant._id, x._id), e.value = [...await C.get(u.restaurant._id)];
1031
1106
  });
1032
1107
  }
1033
- const d = O(() => m.filter(
1108
+ const d = K(() => m.filter(
1034
1109
  (x) => x.region.includes(l.currentCountry.value ?? I.F_COUNTRY.enum.MY)
1035
1110
  ));
1036
1111
  function p() {
@@ -1038,36 +1113,36 @@ const C = {
1038
1113
  e.value = await C.get(u.restaurant._id), d.value.length > 0 && (F.value = d.value[0].value);
1039
1114
  });
1040
1115
  }
1041
- R(p);
1042
- const t = O(() => {
1116
+ N(p);
1117
+ const t = K(() => {
1043
1118
  var x;
1044
1119
  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));
1120
+ }), f = K(() => e.value.find((x) => x.paymentGateway === F.value));
1046
1121
  return (x, k) => {
1047
1122
  var A;
1048
- const _ = r("FmCircularProgress"), G = r("FmTabs");
1049
- return g(), N(L, null, [
1050
- n(c) ? (g(), N("div", we, [
1123
+ const _ = r("FmCircularProgress"), O = r("FmTabs");
1124
+ return g(), G(H, null, [
1125
+ n(c) ? (g(), G("div", Ie, [
1051
1126
  o(_, { size: "xxl" })
1052
1127
  ])) : U("", !0),
1053
- o(G, {
1128
+ o(O, {
1054
1129
  class: "mb-6",
1055
1130
  "model-value": n(F),
1056
- "onUpdate:modelValue": k[0] || (k[0] = (j) => B(F) ? F.value = j : null),
1131
+ "onUpdate:modelValue": k[0] || (k[0] = (j) => R(F) ? F.value = j : null),
1057
1132
  items: d.value,
1058
1133
  showMoreAt: 8
1059
1134
  }, null, 8, ["model-value", "items"]),
1060
1135
  n(F) ? (g(), b($(t.value), Y({
1061
- key: (A = v.value) == null ? void 0 : A._id
1136
+ key: (A = f.value) == null ? void 0 : A._id
1062
1137
  }, {
1063
- gateway: v.value,
1138
+ gateway: f.value,
1064
1139
  onDelete: V,
1065
1140
  onUpdate: s
1066
1141
  }), null, 16)) : U("", !0)
1067
1142
  ], 64);
1068
1143
  };
1069
1144
  }
1070
- }), Me = /* @__PURE__ */ D({
1145
+ }), Oe = /* @__PURE__ */ D({
1071
1146
  __name: "RestaurantSetting",
1072
1147
  props: {
1073
1148
  restaurantId: {
@@ -1078,12 +1153,12 @@ const C = {
1078
1153
  setup(a) {
1079
1154
  const m = a, { tab: u } = P({
1080
1155
  tab: "payment-gateway"
1081
- }), { isLoading: l, startAsyncCall: c } = K(!0), i = Q(), F = w(), e = [
1156
+ }), { isLoading: l, startAsyncCall: c } = B(!0), i = Q(), F = w(), e = [
1082
1157
  {
1083
1158
  label: "Payment Gateway",
1084
1159
  value: "payment-gateway",
1085
1160
  icon: "assured_workload",
1086
- render: xe
1161
+ render: Ue
1087
1162
  }
1088
1163
  ];
1089
1164
  function s() {
@@ -1091,27 +1166,27 @@ const C = {
1091
1166
  F.value = await W.readRestaurantById(m.restaurantId);
1092
1167
  });
1093
1168
  }
1094
- R(s);
1095
- const V = O(() => {
1169
+ N(s);
1170
+ const V = K(() => {
1096
1171
  var d;
1097
1172
  return (d = e.find((p) => p.value === u.value)) == null ? void 0 : d.render;
1098
1173
  });
1099
1174
  return (d, p) => {
1100
- var v;
1175
+ var f;
1101
1176
  const t = r("FmTabs");
1102
1177
  return g(), b(z, {
1103
- title: `Restaurant (${(v = F.value) == null ? void 0 : v._id})`,
1178
+ title: `Restaurant (${(f = F.value) == null ? void 0 : f._id})`,
1104
1179
  loading: n(l),
1105
1180
  onBack: n(i).back
1106
1181
  }, {
1107
1182
  default: S(() => [
1108
1183
  o(t, {
1109
1184
  "model-value": n(u),
1110
- "onUpdate:modelValue": p[0] || (p[0] = (x) => B(u) ? u.value = x : null),
1185
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => R(u) ? u.value = x : null),
1111
1186
  class: "mb-6",
1112
1187
  items: e
1113
1188
  }, null, 8, ["model-value"]),
1114
- n(u) && F.value ? (g(), b($(V.value), H(Y({ key: 0 }, {
1189
+ n(u) && F.value ? (g(), b($(V.value), L(Y({ key: 0 }, {
1115
1190
  restaurant: F.value
1116
1191
  })), null, 16)) : U("", !0)
1117
1192
  ]),
@@ -1121,5 +1196,5 @@ const C = {
1121
1196
  }
1122
1197
  });
1123
1198
  export {
1124
- Me as default
1199
+ Oe as default
1125
1200
  };