@feedmepos/mf-payment 1.8.2-dev → 1.8.3

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 (103) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DTEtNSn0.js → Actions.vue_vue_type_script_setup_true_lang-BSGz-vYS.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Cd6D7JxK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-QhHy3t8E.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzZePzBx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-fTGrC0GL.js} +2 -2
  4. package/dist/{Chargeback--k3Sc269.js → Chargeback-_yYgraXd.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-qt0R7G3l.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C71wuVoe.js} +1 -1
  6. package/dist/{OnboardForm-BQf8mMqv.js → OnboardForm-CcuNtcGY.js} +6 -6
  7. package/dist/{OnboardForm-me9MIQPW.js → OnboardForm-DwtSLZZ6.js} +6 -6
  8. package/dist/{OnboardSubmission-D-q3ryM1.js → OnboardSubmission-B13TG3VY.js} +3 -3
  9. package/dist/{OnboardSubmission-CRy_a6MZ.js → OnboardSubmission-B7WfxwtM.js} +6 -6
  10. package/dist/{PayoutAccount-BBZIFYHv.js → PayoutAccount-BH1AZPsn.js} +7 -7
  11. package/dist/{PayoutAccount-CA0-FenU.js → PayoutAccount-DKoSN0Oj.js} +5 -5
  12. package/dist/{PayoutAccountSetting-E8c0t725.js → PayoutAccountSetting-ChgN1fKw.js} +609 -679
  13. package/dist/{Restaurant-CJZVhzJB.js → Restaurant-DGF0JBQS.js} +4 -4
  14. package/dist/{RestaurantSetting-C39PQEKt.js → RestaurantSetting-CsXBf_vm.js} +81 -156
  15. package/dist/{Settlement-DssD_F2s.js → Settlement-Q5vvGkPy.js} +105 -103
  16. package/dist/{Settlement-DzzY0DMx.js → Settlement-yWwPTpRg.js} +3 -3
  17. package/dist/{SettlementTransactions-D2Xioa5P.js → SettlementTransactions-CoZ_d8v7.js} +5 -5
  18. package/dist/{SettlementTransactions-DBn9ZZrx.js → SettlementTransactions-D3Zl668N.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-BvC2RAT0.js → Status.vue_vue_type_script_setup_true_lang-gOHlrQzZ.js} +1 -1
  20. package/dist/{Terminal-BqXWec-h.js → Terminal-CwG-DaEc.js} +5 -5
  21. package/dist/{TerminalSetting-D1j2HcJX.js → TerminalSetting-zm7YMozj.js} +5 -5
  22. package/dist/{Transaction-D09SeHHy.js → Transaction-CUChE6GZ.js} +10 -10
  23. package/dist/{Transaction-GM0aWwMD.js → Transaction-CXsRdbmU.js} +11 -11
  24. package/dist/{TransactionOld-B7C7w_nF.js → TransactionOld-BNjs4dYq.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-gwTbVHHZ.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C3AneKTm.js} +1 -1
  26. package/dist/api/index.d.ts +1 -0
  27. package/dist/{app-IMZnVpiW.js → app-BaVLWYef.js} +355 -361
  28. package/dist/app.js +1 -1
  29. package/dist/{assets-CdIR0Fo6.js → assets-CIBOgszq.js} +1 -1
  30. package/dist/{grafana-BUVwK44E.js → grafana-CFBCBQ8m.js} +1 -1
  31. package/dist/{index-Cq0_oRPO.js → index-7w_c2P-2.js} +3874 -3918
  32. package/dist/{index-CQkc3pUj.js → index-BFUTi1W-.js} +1 -1
  33. package/dist/{index-CtTi9CvW.js → index-CBTRIvWq.js} +2 -2
  34. package/dist/{index-BDYQ2vRc.js → index-CC8i1RP4.js} +1 -1
  35. package/dist/{index-aeXyggRd.js → index-Cg1xw1iV.js} +1 -1
  36. package/dist/{index-DyEjrl8n.js → index-D1CnAe4w.js} +1 -1
  37. package/dist/{index-DzqFl5Rn.js → index-D79i4yHd.js} +53 -48
  38. package/dist/{index-COCd1-Jr.js → index-pd_Yn_Nn.js} +1 -1
  39. package/dist/{index-D3XosMuu.js → index-xHYVdwJd.js} +1 -1
  40. package/dist/{index.vue_vue_type_script_setup_true_lang-Dv8NeEwd.js → index.vue_vue_type_script_setup_true_lang-C1azAm9j.js} +1 -1
  41. package/dist/{onboard-submission-D_xLxM1D.js → onboard-submission-BDvoGLwP.js} +1 -1
  42. package/dist/package.json +2 -2
  43. package/dist/{payout-account-C8GNZ2kc.js → payout-account-B0sMz1pz.js} +3 -3
  44. package/dist/stores/payoutAccount.d.ts +32 -44
  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 +32 -44
  50. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +36 -48
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +36 -48
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +32 -44
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +32 -44
  54. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +36 -48
  55. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  56. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  57. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  58. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  59. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  60. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  61. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  63. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  64. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  65. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  66. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  67. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  68. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  69. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
  70. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  71. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
  72. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  73. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  74. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  75. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
  76. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
  77. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
  78. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
  79. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
  80. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
  81. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
  82. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
  83. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
  84. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
  85. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
  86. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
  87. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
  88. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
  89. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
  90. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
  91. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
  92. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
  93. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
  94. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
  95. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
  96. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
  97. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +64 -88
  98. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
  99. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +25 -25
  100. package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
  101. package/package.json +2 -2
  102. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +0 -41
  103. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +0 -48
@@ -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-BDYQ2vRc.js";
2
+ import { u as O } from "./index-CC8i1RP4.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-Cq0_oRPO.js";
5
+ import { u as G } from "./index-7w_c2P-2.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
7
- import { r as H } from "./index-aeXyggRd.js";
7
+ import { r as H } from "./index-Cg1xw1iV.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-BUVwK44E.js";
9
+ import { g as X } from "./grafana-CFBCBQ8m.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 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-Cq0_oRPO.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-7w_c2P-2.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-BDYQ2vRc.js";
6
- import { z as v, a as y } from "./validator-CTlVogBQ.js";
5
+ import { u as P } from "./index-CC8i1RP4.js";
6
+ import { z as y, a as f } 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-aeXyggRd.js";
10
+ import { r as W } from "./index-Cg1xw1iV.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(v)(n(y).string())
81
+ rules: n(y)(n(f).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(v)(n(y).string())
87
+ rules: n(y)(n(f).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(v)(n(y).string())
93
+ rules: n(y)(n(f).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(v)(n(y).string())
99
+ rules: n(y)(n(f).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(v)(n(y).string())
105
+ rules: n(y)(n(f).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(v)(n(y).string())
111
+ rules: n(y)(n(f).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] = (f) => l.value.storeId = f),
174
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.storeId = v),
175
175
  label: "Store ID",
176
- rules: n(v)(n(y).string())
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] = (f) => l.value.clientId = f),
180
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.clientId = v),
181
181
  label: "Client ID",
182
- rules: n(v)(n(y).string())
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] = (f) => l.value.clientSecret = f),
186
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => l.value.clientSecret = v),
187
187
  label: "Client Secret",
188
- rules: n(v)(n(y).string())
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] = (f) => l.value.clientPrivateKey = f),
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] = (f) => u.value = f),
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, [
@@ -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] = (f) => l.value.merchantId = f),
255
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.merchantId = v),
256
256
  label: "Merchant ID",
257
- rules: n(v)(n(y).string())
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] = (f) => l.value.terminalId = f),
261
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => l.value.terminalId = v),
262
262
  label: "Terminal ID",
263
- rules: n(v)(n(y).string())
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] = (f) => l.value.privateKey = f),
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] = (f) => u.value = f),
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, [
@@ -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(v)(n(y).string())
336
+ rules: n(y)(n(f).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(v)(n(y).string())
342
+ rules: n(y)(n(f).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(v)(n(y).string())
348
+ rules: n(y)(n(f).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(v)(n(y).string())
354
+ rules: n(y)(n(f).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(v)(n(y).string())
360
+ rules: n(y)(n(f).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 } = B(), 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 } = K(), 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 f = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), _ = r("FmSwitch"), O = r("FmForm");
432
- return g(), b(O, {
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(f, {
439
+ o(v, {
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(v)(n(y).string())
443
+ rules: n(y)(n(f).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(v)(n(y).string())
525
+ rules: n(y)(n(f).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(v)(n(y).string())
531
+ rules: n(y)(n(f).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(v)(n(y).string())
537
+ rules: n(y)(n(f).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(v)(n(y).string())
599
+ rules: n(y)(n(f).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(v)(n(y).string())
665
+ rules: n(y)(n(f).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(v)(n(y).string())
671
+ rules: n(y)(n(f).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(v)(n(y).string())
677
+ rules: n(y)(n(f).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(v)(n(y).string())
683
+ rules: n(y)(n(f).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] = (f) => l.value.appId = f),
749
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => l.value.appId = v),
750
750
  label: "App ID",
751
- rules: n(v)(n(y).string())
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] = (f) => l.value.privateKey = f),
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] = (f) => u.value = f),
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, [
@@ -782,75 +782,6 @@ 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({
854
785
  __name: "MaybankGateway",
855
786
  props: {
856
787
  onUpdate: {
@@ -888,19 +819,19 @@ const C = {
888
819
  modelValue: l.value.clientId,
889
820
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.clientId = t),
890
821
  label: "Client ID",
891
- rules: n(v)(n(y).string())
822
+ rules: n(y)(n(f).string())
892
823
  }, null, 8, ["modelValue", "rules"]),
893
824
  o(s, {
894
825
  modelValue: l.value.clientSecret,
895
826
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.clientSecret = t),
896
827
  label: "Client Secret",
897
- rules: n(v)(n(y).string())
828
+ rules: n(y)(n(f).string())
898
829
  }, null, 8, ["modelValue", "rules"]),
899
830
  o(s, {
900
831
  modelValue: l.value.merchantId,
901
832
  "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.merchantId = t),
902
833
  label: "Merchant ID (Client Ref ID)",
903
- rules: n(v)(n(y).string())
834
+ rules: n(y)(n(f).string())
904
835
  }, null, 8, ["modelValue", "rules"]),
905
836
  o(s, {
906
837
  modelValue: l.value.terminalId,
@@ -913,7 +844,7 @@ const C = {
913
844
  "onUpdate:modelValue": e[4] || (e[4] = (t) => u.value = t),
914
845
  label: "Is Active"
915
846
  }, null, 8, ["modelValue"]),
916
- T("div", Ve, [
847
+ T("div", Fe, [
917
848
  a.gateway ? (g(), b(d, {
918
849
  key: 0,
919
850
  class: "flex-1",
@@ -933,7 +864,7 @@ const C = {
933
864
  }, 512);
934
865
  };
935
866
  }
936
- }), we = { class: "flex mt-6 space-x-6" }, xe = /* @__PURE__ */ D({
867
+ }), Ve = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ D({
937
868
  __name: "MonetapayGateway",
938
869
  props: {
939
870
  gateway: {
@@ -969,20 +900,20 @@ const C = {
969
900
  modelValue: l.value.appId,
970
901
  "onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.appId = t),
971
902
  label: "App ID",
972
- rules: n(v)(n(y).string())
903
+ rules: n(y)(n(f).string())
973
904
  }, null, 8, ["modelValue", "rules"]),
974
905
  o(s, {
975
906
  modelValue: l.value.merchantId,
976
907
  "onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantId = t),
977
908
  label: "Merchant ID",
978
- rules: n(v)(n(y).string())
909
+ rules: n(y)(n(f).string())
979
910
  }, null, 8, ["modelValue", "rules"]),
980
911
  o(V, {
981
912
  modelValue: u.value,
982
913
  "onUpdate:modelValue": e[2] || (e[2] = (t) => u.value = t),
983
914
  label: "Is Active"
984
915
  }, null, 8, ["modelValue"]),
985
- T("div", we, [
916
+ T("div", Ve, [
986
917
  a.gateway ? (g(), b(d, {
987
918
  key: 0,
988
919
  class: "flex-1",
@@ -1002,10 +933,10 @@ const C = {
1002
933
  }, 512);
1003
934
  };
1004
935
  }
1005
- }), Ie = {
936
+ }), we = {
1006
937
  key: 0,
1007
938
  class: "flex items-center justify-center min-h-[80vh]"
1008
- }, Ue = /* @__PURE__ */ D({
939
+ }, xe = /* @__PURE__ */ D({
1009
940
  __name: "PaymentGateway",
1010
941
  props: {
1011
942
  restaurant: {
@@ -1072,22 +1003,16 @@ const C = {
1072
1003
  {
1073
1004
  label: "Maybank",
1074
1005
  value: "MAYBANK_QR",
1075
- form: be,
1006
+ form: ge,
1076
1007
  region: [I.F_COUNTRY.enum.MY]
1077
1008
  },
1078
1009
  {
1079
1010
  label: "Monetapay",
1080
1011
  value: "MONETAPAY",
1081
- form: xe,
1012
+ form: be,
1082
1013
  region: [I.F_COUNTRY.enum.ID]
1083
- },
1084
- {
1085
- label: "Beam",
1086
- value: "BEAM",
1087
- form: ge,
1088
- region: [I.F_COUNTRY.enum.TH]
1089
1014
  }
1090
- ], u = a, l = E(), { isLoading: c, startAsyncCall: i } = B(), { activeGateway: F } = P({
1015
+ ], u = a, l = E(), { isLoading: c, startAsyncCall: i } = K(), { activeGateway: F } = P({
1091
1016
  activeGateway: ""
1092
1017
  }), e = w([]);
1093
1018
  async function s(x, k) {
@@ -1105,7 +1030,7 @@ const C = {
1105
1030
  await C.delete(u.restaurant._id, x._id), e.value = [...await C.get(u.restaurant._id)];
1106
1031
  });
1107
1032
  }
1108
- const d = K(() => m.filter(
1033
+ const d = O(() => m.filter(
1109
1034
  (x) => x.region.includes(l.currentCountry.value ?? I.F_COUNTRY.enum.MY)
1110
1035
  ));
1111
1036
  function p() {
@@ -1113,36 +1038,36 @@ const C = {
1113
1038
  e.value = await C.get(u.restaurant._id), d.value.length > 0 && (F.value = d.value[0].value);
1114
1039
  });
1115
1040
  }
1116
- N(p);
1117
- const t = K(() => {
1041
+ R(p);
1042
+ const t = O(() => {
1118
1043
  var x;
1119
1044
  return (x = m.find((k) => k.value === F.value)) == null ? void 0 : x.form;
1120
- }), f = K(() => e.value.find((x) => x.paymentGateway === F.value));
1045
+ }), v = O(() => e.value.find((x) => x.paymentGateway === F.value));
1121
1046
  return (x, k) => {
1122
1047
  var A;
1123
- const _ = r("FmCircularProgress"), O = r("FmTabs");
1124
- return g(), G(H, null, [
1125
- n(c) ? (g(), G("div", Ie, [
1048
+ const _ = r("FmCircularProgress"), G = r("FmTabs");
1049
+ return g(), N(L, null, [
1050
+ n(c) ? (g(), N("div", we, [
1126
1051
  o(_, { size: "xxl" })
1127
1052
  ])) : U("", !0),
1128
- o(O, {
1053
+ o(G, {
1129
1054
  class: "mb-6",
1130
1055
  "model-value": n(F),
1131
- "onUpdate:modelValue": k[0] || (k[0] = (j) => R(F) ? F.value = j : null),
1056
+ "onUpdate:modelValue": k[0] || (k[0] = (j) => B(F) ? F.value = j : null),
1132
1057
  items: d.value,
1133
1058
  showMoreAt: 8
1134
1059
  }, null, 8, ["model-value", "items"]),
1135
1060
  n(F) ? (g(), b($(t.value), Y({
1136
- key: (A = f.value) == null ? void 0 : A._id
1061
+ key: (A = v.value) == null ? void 0 : A._id
1137
1062
  }, {
1138
- gateway: f.value,
1063
+ gateway: v.value,
1139
1064
  onDelete: V,
1140
1065
  onUpdate: s
1141
1066
  }), null, 16)) : U("", !0)
1142
1067
  ], 64);
1143
1068
  };
1144
1069
  }
1145
- }), Oe = /* @__PURE__ */ D({
1070
+ }), Me = /* @__PURE__ */ D({
1146
1071
  __name: "RestaurantSetting",
1147
1072
  props: {
1148
1073
  restaurantId: {
@@ -1153,12 +1078,12 @@ const C = {
1153
1078
  setup(a) {
1154
1079
  const m = a, { tab: u } = P({
1155
1080
  tab: "payment-gateway"
1156
- }), { isLoading: l, startAsyncCall: c } = B(!0), i = Q(), F = w(), e = [
1081
+ }), { isLoading: l, startAsyncCall: c } = K(!0), i = Q(), F = w(), e = [
1157
1082
  {
1158
1083
  label: "Payment Gateway",
1159
1084
  value: "payment-gateway",
1160
1085
  icon: "assured_workload",
1161
- render: Ue
1086
+ render: xe
1162
1087
  }
1163
1088
  ];
1164
1089
  function s() {
@@ -1166,27 +1091,27 @@ const C = {
1166
1091
  F.value = await W.readRestaurantById(m.restaurantId);
1167
1092
  });
1168
1093
  }
1169
- N(s);
1170
- const V = K(() => {
1094
+ R(s);
1095
+ const V = O(() => {
1171
1096
  var d;
1172
1097
  return (d = e.find((p) => p.value === u.value)) == null ? void 0 : d.render;
1173
1098
  });
1174
1099
  return (d, p) => {
1175
- var f;
1100
+ var v;
1176
1101
  const t = r("FmTabs");
1177
1102
  return g(), b(z, {
1178
- title: `Restaurant (${(f = F.value) == null ? void 0 : f._id})`,
1103
+ title: `Restaurant (${(v = F.value) == null ? void 0 : v._id})`,
1179
1104
  loading: n(l),
1180
1105
  onBack: n(i).back
1181
1106
  }, {
1182
1107
  default: S(() => [
1183
1108
  o(t, {
1184
1109
  "model-value": n(u),
1185
- "onUpdate:modelValue": p[0] || (p[0] = (x) => R(u) ? u.value = x : null),
1110
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => B(u) ? u.value = x : null),
1186
1111
  class: "mb-6",
1187
1112
  items: e
1188
1113
  }, null, 8, ["model-value"]),
1189
- n(u) && F.value ? (g(), b($(V.value), L(Y({ key: 0 }, {
1114
+ n(u) && F.value ? (g(), b($(V.value), H(Y({ key: 0 }, {
1190
1115
  restaurant: F.value
1191
1116
  })), null, 16)) : U("", !0)
1192
1117
  ]),
@@ -1196,5 +1121,5 @@ const C = {
1196
1121
  }
1197
1122
  });
1198
1123
  export {
1199
- Oe as default
1124
+ Me as default
1200
1125
  };