@feedmepos/mf-payment 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CZYcJMXD.js → Actions.vue_vue_type_script_setup_true_lang-NVVDBgu2.js} +2 -2
  2. package/dist/{OnboardForm-BcrtWsWm.js → OnboardForm-BH9XTVUZ.js} +4 -4
  3. package/dist/{OnboardForm-CIbaEMwf.js → OnboardForm-CT-opxu1.js} +4 -4
  4. package/dist/{OnboardSubmission-BfK8L_eM.js → OnboardSubmission-DPHuFmk1.js} +2 -2
  5. package/dist/{OnboardSubmission-Cm3WR3pw.js → OnboardSubmission-gSaD4UHW.js} +5 -5
  6. package/dist/{PayoutAccount-DKAlk7t4.js → PayoutAccount-BmgQF2rJ.js} +5 -5
  7. package/dist/{PayoutAccount-B8pDGkjJ.js → PayoutAccount-Xo8Kr6Bi.js} +5 -5
  8. package/dist/{PayoutAccountSetting-yH2ZRT-A.js → PayoutAccountSetting-CasobYXH.js} +139 -132
  9. package/dist/{Restaurant-CeH2FJRT.js → Restaurant-Cxsbp2jQ.js} +4 -4
  10. package/dist/{RestaurantSetting-BV1XLh-9.js → RestaurantSetting-BykOuVYY.js} +112 -105
  11. package/dist/{Settlement-DW_ElmEK.js → Settlement-DfKj96mQ.js} +3 -3
  12. package/dist/{Settlement-DzYUTaVE.js → Settlement-m45suXxV.js} +3 -3
  13. package/dist/{SettlementTransactions-BdDILkFA.js → SettlementTransactions-DGgUpZgA.js} +3 -3
  14. package/dist/{SettlementTransactions-CnRbyrp1.js → SettlementTransactions-Dkc5Wogr.js} +3 -3
  15. package/dist/{Status.vue_vue_type_script_setup_true_lang-B7a304Y6.js → Status.vue_vue_type_script_setup_true_lang-BP-wktEP.js} +1 -1
  16. package/dist/{Terminal-DA_mJQMD.js → Terminal-C7AdBY9Y.js} +5 -5
  17. package/dist/{TerminalSetting-GFMILaSV.js → TerminalSetting-DJYGoWdb.js} +3 -3
  18. package/dist/{Transaction-BIPXYUK1.js → Transaction-CcUFfb3m.js} +8 -8
  19. package/dist/{Transaction-LkD5KPuT.js → Transaction-OthZffw8.js} +5 -5
  20. package/dist/{TransactionOld-O97RNWZC.js → TransactionOld-BLYgVqKA.js} +5 -5
  21. package/dist/{app-QW40QJu9.js → app-BuHakkF8.js} +23 -23
  22. package/dist/app.js +1 -1
  23. package/dist/{assets-BuMkWZHi.js → assets-G_4EYkBh.js} +1 -1
  24. package/dist/{grafana-BrdrOUM4.js → grafana-Cqdyar0p.js} +1 -1
  25. package/dist/{index-C4FfKmPS.js → index-B1nXFe1-.js} +4589 -4580
  26. package/dist/{index-B3JbsRRU.js → index-CHLLd9i9.js} +2 -2
  27. package/dist/{index-ILoz50zh.js → index-CNGLJkBO.js} +1 -1
  28. package/dist/{index-BWjmOoX3.js → index-CVpKc-VE.js} +1 -1
  29. package/dist/{index-DJrcobek.js → index-Db-jphAQ.js} +1 -1
  30. package/dist/{index-j0nww2Hf.js → index-DvoVfG2y.js} +1 -1
  31. package/dist/{index-C8G7ruiF.js → index-Gr7lw7we.js} +1 -1
  32. package/dist/{index.vue_vue_type_script_setup_true_lang-v7o6C5Pg.js → index.vue_vue_type_script_setup_true_lang-D62UrwAv.js} +1 -1
  33. package/dist/package.json +2 -2
  34. package/dist/{payout-account-DFer8uW8.js → payout-account-Bz_MKMbw.js} +3 -3
  35. package/dist/{plugins-DOZFFqtK.js → plugins-BKFKEIAX.js} +1 -1
  36. package/dist/stores/payoutAccount.d.ts +8 -6
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +8 -6
  39. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +10 -8
  40. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +10 -8
  41. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +8 -6
  42. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +8 -6
  43. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +10 -8
  44. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -0
  45. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +2 -0
  46. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -6
  47. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -6
  48. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -6
  49. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -6
  50. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -6
  51. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -6
  52. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -6
  53. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -6
  54. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -6
  55. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -6
  56. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -6
  57. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -6
  58. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -6
  59. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -6
  60. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -6
  61. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +16 -12
  62. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +40 -40
  63. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +20 -20
  64. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, 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-ILoz50zh.js";
2
+ import { u as O } from "./index-CNGLJkBO.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-C4FfKmPS.js";
5
+ import { u as G } from "./index-B1nXFe1-.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
7
- import { r as H } from "./index-DJrcobek.js";
7
+ import { r as H } from "./index-Db-jphAQ.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-BrdrOUM4.js";
9
+ import { g as X } from "./grafana-Cqdyar0p.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,13 +1,13 @@
1
- import { defineComponent as _, ref as b, resolveComponent as r, openBlock as F, createBlock as w, withCtx as I, createVNode as o, unref as n, createElementVNode as D, createCommentVNode as U, computed as O, onMounted as $, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as K, normalizeProps as P, mergeProps as Y } from "vue";
2
- import { g as G, b as q, u as R, e as S } from "./index-C4FfKmPS.js";
1
+ import { defineComponent as D, ref as b, resolveComponent as r, openBlock as F, createBlock as w, withCtx as I, createVNode as o, unref as n, createElementVNode as _, createCommentVNode as U, computed as O, onMounted as $, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as K, normalizeProps as P, mergeProps as Y } from "vue";
2
+ import { g as G, b as q, u as R, e as S } from "./index-B1nXFe1-.js";
3
3
  import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as H } from "vue-router";
5
- import { u as E } from "./index-ILoz50zh.js";
5
+ import { u as E } from "./index-CNGLJkBO.js";
6
6
  import { z as f, a as g } from "./validator-D5jtpt9A.js";
7
7
  import { useCoreStore as j } from "@feedmepos/mf-common";
8
8
  import { u as Q } from "./error-K1CakhA9.js";
9
9
  import { useSnackbar as Z } from "@feedmepos/ui-library";
10
- import { r as J } from "./index-DJrcobek.js";
10
+ import { r as J } from "./index-Db-jphAQ.js";
11
11
  const A = {
12
12
  async get(a) {
13
13
  return G(
@@ -38,7 +38,7 @@ const A = {
38
38
  )
39
39
  );
40
40
  }
41
- }, W = { class: "flex mt-6 space-x-6" }, X = /* @__PURE__ */ _({
41
+ }, W = { class: "flex mt-6 space-x-6" }, X = /* @__PURE__ */ D({
42
42
  __name: "FiuuGateway",
43
43
  props: {
44
44
  onUpdate: {
@@ -55,8 +55,8 @@ const A = {
55
55
  }
56
56
  },
57
57
  setup(a) {
58
- var y, c;
59
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
58
+ var v, d;
59
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
60
60
  merchantId: "",
61
61
  uniqueId: "",
62
62
  verifyKey: "",
@@ -64,8 +64,8 @@ const A = {
64
64
  applicationCode: "",
65
65
  offlineSecret: ""
66
66
  });
67
- return (v, e) => {
68
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
67
+ return (y, e) => {
68
+ const s = r("FmTextField"), V = r("FmSwitch"), c = r("FmButton"), p = r("FmForm");
69
69
  return F(), w(p, {
70
70
  ref: "form",
71
71
  class: "flex flex-col gap-16",
@@ -113,15 +113,15 @@ const A = {
113
113
  "onUpdate:modelValue": e[6] || (e[6] = (l) => u.value = l),
114
114
  label: "Is Active"
115
115
  }, null, 8, ["modelValue"]),
116
- D("div", W, [
117
- a.gateway ? (F(), w(d, {
116
+ _("div", W, [
117
+ a.gateway ? (F(), w(c, {
118
118
  key: 0,
119
119
  class: "flex-1",
120
120
  variant: "secondary",
121
121
  label: "Delete",
122
122
  onclick: () => a.onDelete(a.gateway)
123
123
  }, null, 8, ["onclick"])) : U("", !0),
124
- o(d, {
124
+ o(c, {
125
125
  type: "submit",
126
126
  class: "flex-1",
127
127
  variant: "primary",
@@ -133,7 +133,7 @@ const A = {
133
133
  }, 512);
134
134
  };
135
135
  }
136
- }), h = { class: "flex mt-6 space-x-6" }, ee = /* @__PURE__ */ _({
136
+ }), h = { class: "flex mt-6 space-x-6" }, ee = /* @__PURE__ */ D({
137
137
  __name: "RevenueMonsterGateway",
138
138
  props: {
139
139
  onUpdate: {
@@ -150,15 +150,15 @@ const A = {
150
150
  }
151
151
  },
152
152
  setup(a) {
153
- var y, c;
154
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
153
+ var v, d;
154
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
155
155
  storeId: "",
156
156
  clientId: "",
157
157
  clientSecret: "",
158
158
  clientPrivateKey: ""
159
159
  });
160
- return (v, e) => {
161
- const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), p = r("FmButton"), l = r("FmForm");
160
+ return (y, e) => {
161
+ const s = r("FmTextField"), V = r("FmTextarea"), c = r("FmSwitch"), p = r("FmButton"), l = r("FmForm");
162
162
  return F(), w(l, {
163
163
  ref: "form",
164
164
  class: "flex flex-col gap-16",
@@ -188,12 +188,12 @@ const A = {
188
188
  "onUpdate:modelValue": e[3] || (e[3] = (m) => t.value.clientPrivateKey = m),
189
189
  label: "Client Private Key"
190
190
  }, null, 8, ["modelValue"]),
191
- o(d, {
191
+ o(c, {
192
192
  modelValue: u.value,
193
193
  "onUpdate:modelValue": e[4] || (e[4] = (m) => u.value = m),
194
194
  label: "Is Active"
195
195
  }, null, 8, ["modelValue"]),
196
- D("div", h, [
196
+ _("div", h, [
197
197
  a.gateway ? (F(), w(p, {
198
198
  key: 0,
199
199
  class: "flex-1",
@@ -213,7 +213,7 @@ const A = {
213
213
  }, 512);
214
214
  };
215
215
  }
216
- }), te = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ _({
216
+ }), te = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ D({
217
217
  __name: "GhlGateway",
218
218
  props: {
219
219
  onUpdate: {
@@ -230,14 +230,14 @@ const A = {
230
230
  }
231
231
  },
232
232
  setup(a) {
233
- var y, c;
234
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
233
+ var v, d;
234
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
235
235
  merchantId: "",
236
236
  terminalId: "",
237
237
  privateKey: ""
238
238
  });
239
- return (v, e) => {
240
- const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), p = r("FmButton"), l = r("FmForm");
239
+ return (y, e) => {
240
+ const s = r("FmTextField"), V = r("FmTextarea"), c = r("FmSwitch"), p = r("FmButton"), l = r("FmForm");
241
241
  return F(), w(l, {
242
242
  ref: "form",
243
243
  class: "flex flex-col gap-16",
@@ -263,12 +263,12 @@ const A = {
263
263
  "label-mark": "optional",
264
264
  "label-info": "Default will use FeedMe Private Key"
265
265
  }, null, 8, ["modelValue"]),
266
- o(d, {
266
+ o(c, {
267
267
  modelValue: u.value,
268
268
  "onUpdate:modelValue": e[3] || (e[3] = (m) => u.value = m),
269
269
  label: "Is Active"
270
270
  }, null, 8, ["modelValue"]),
271
- D("div", te, [
271
+ _("div", te, [
272
272
  a.gateway ? (F(), w(p, {
273
273
  key: 0,
274
274
  class: "flex-1",
@@ -288,7 +288,7 @@ const A = {
288
288
  }, 512);
289
289
  };
290
290
  }
291
- }), ae = { class: "flex mt-6 space-x-6" }, ne = /* @__PURE__ */ _({
291
+ }), ae = { class: "flex mt-6 space-x-6" }, ne = /* @__PURE__ */ D({
292
292
  __name: "MacauPassGateway",
293
293
  props: {
294
294
  onUpdate: {
@@ -305,16 +305,16 @@ const A = {
305
305
  }
306
306
  },
307
307
  setup(a) {
308
- var y, c;
309
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
308
+ var v, d;
309
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
310
310
  merchantId: "",
311
311
  merchantName: "",
312
312
  merchantCategoryCode: "",
313
313
  storeID: "",
314
314
  storeName: ""
315
315
  });
316
- return (v, e) => {
317
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
316
+ return (y, e) => {
317
+ const s = r("FmTextField"), V = r("FmSwitch"), c = r("FmButton"), p = r("FmForm");
318
318
  return F(), w(p, {
319
319
  ref: "form",
320
320
  class: "flex flex-col gap-16",
@@ -356,15 +356,15 @@ const A = {
356
356
  "onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l),
357
357
  label: "Is Active"
358
358
  }, null, 8, ["modelValue"]),
359
- D("div", ae, [
360
- a.gateway ? (F(), w(d, {
359
+ _("div", ae, [
360
+ a.gateway ? (F(), w(c, {
361
361
  key: 0,
362
362
  class: "flex-1",
363
363
  variant: "secondary",
364
364
  label: "Delete",
365
365
  onclick: () => a.onDelete(a.gateway)
366
366
  }, null, 8, ["onclick"])) : U("", !0),
367
- o(d, {
367
+ o(c, {
368
368
  type: "submit",
369
369
  class: "flex-1",
370
370
  variant: "primary",
@@ -376,7 +376,7 @@ const A = {
376
376
  }, 512);
377
377
  };
378
378
  }
379
- }), oe = { class: "flex items-end" }, ue = { class: "flex mt-6 space-x-6" }, re = /* @__PURE__ */ _({
379
+ }), oe = { class: "flex items-end" }, ue = { class: "flex mt-6 space-x-6" }, re = /* @__PURE__ */ D({
380
380
  __name: "GrabGateway",
381
381
  props: {
382
382
  onUpdate: {
@@ -393,16 +393,16 @@ const A = {
393
393
  }
394
394
  },
395
395
  setup(a) {
396
- var V, d;
397
- const i = Z(), { isLoading: u, startAsyncCall: t } = R(), y = j(), c = a, v = b(((V = c.gateway) == null ? void 0 : V.active) ?? !1), e = b(((d = c.gateway) == null ? void 0 : d.config) || {
396
+ var V, c;
397
+ const i = Z(), { isLoading: u, startAsyncCall: t } = R(), v = j(), d = a, y = b(((V = d.gateway) == null ? void 0 : V.active) ?? !1), e = b(((c = d.gateway) == null ? void 0 : c.config) || {
398
398
  merchantId: ""
399
399
  });
400
400
  async function s() {
401
401
  t(async () => {
402
402
  var p;
403
403
  try {
404
- const { merchantID: l } = await A.grabSync(((p = y.currentRestaurant.value) == null ? void 0 : p._id) ?? "");
405
- e.value.merchantId = l, v.value = !0, i.open({
404
+ const { merchantID: l } = await A.grabSync(((p = v.currentRestaurant.value) == null ? void 0 : p._id) ?? "");
405
+ e.value.merchantId = l, y.value = !0, i.open({
406
406
  type: "success",
407
407
  title: "Grab Setting sync succesfully, you will still need to save the changes."
408
408
  });
@@ -420,10 +420,10 @@ const A = {
420
420
  return F(), w(k, {
421
421
  ref: "form",
422
422
  class: "flex flex-col gap-16",
423
- onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(v.value, e.value))
423
+ onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(y.value, e.value))
424
424
  }, {
425
425
  default: I(() => [
426
- D("div", oe, [
426
+ _("div", oe, [
427
427
  o(m, {
428
428
  modelValue: e.value.merchantId,
429
429
  "onUpdate:modelValue": l[0] || (l[0] = (M) => e.value.merchantId = M),
@@ -449,11 +449,11 @@ const A = {
449
449
  })
450
450
  ]),
451
451
  o(C, {
452
- modelValue: v.value,
453
- "onUpdate:modelValue": l[1] || (l[1] = (M) => v.value = M),
452
+ modelValue: y.value,
453
+ "onUpdate:modelValue": l[1] || (l[1] = (M) => y.value = M),
454
454
  label: "Is Active"
455
455
  }, null, 8, ["modelValue"]),
456
- D("div", ue, [
456
+ _("div", ue, [
457
457
  a.gateway ? (F(), w(x, {
458
458
  key: 0,
459
459
  class: "flex-1",
@@ -473,7 +473,7 @@ const A = {
473
473
  }, 512);
474
474
  };
475
475
  }
476
- }), se = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ _({
476
+ }), se = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ D({
477
477
  __name: "SoftSpaceGateway",
478
478
  props: {
479
479
  onUpdate: {
@@ -490,13 +490,13 @@ const A = {
490
490
  }
491
491
  },
492
492
  setup(a) {
493
- var y, c;
494
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
493
+ var v, d;
494
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
495
495
  mid: "",
496
496
  tid: ""
497
497
  });
498
- return (v, e) => {
499
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
498
+ return (y, e) => {
499
+ const s = r("FmTextField"), V = r("FmSwitch"), c = r("FmButton"), p = r("FmForm");
500
500
  return F(), w(p, {
501
501
  ref: "form",
502
502
  class: "flex flex-col gap-16",
@@ -520,15 +520,15 @@ const A = {
520
520
  "onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
521
521
  label: "Is Active"
522
522
  }, null, 8, ["modelValue"]),
523
- D("div", se, [
524
- a.gateway ? (F(), w(d, {
523
+ _("div", se, [
524
+ a.gateway ? (F(), w(c, {
525
525
  key: 0,
526
526
  class: "flex-1",
527
527
  variant: "secondary",
528
528
  label: "Delete",
529
529
  onclick: () => a.onDelete(a.gateway)
530
530
  }, null, 8, ["onclick"])) : U("", !0),
531
- o(d, {
531
+ o(c, {
532
532
  type: "submit",
533
533
  class: "flex-1",
534
534
  variant: "primary",
@@ -540,7 +540,7 @@ const A = {
540
540
  }, 512);
541
541
  };
542
542
  }
543
- }), me = { class: "flex mt-6 space-x-6" }, ce = /* @__PURE__ */ _({
543
+ }), me = { class: "flex mt-6 space-x-6" }, de = /* @__PURE__ */ D({
544
544
  __name: "DigioGateway",
545
545
  props: {
546
546
  gateway: {
@@ -557,12 +557,12 @@ const A = {
557
557
  }
558
558
  },
559
559
  setup(a) {
560
- var y, c;
561
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
560
+ var v, d;
561
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
562
562
  merchantId: ""
563
563
  });
564
- return (v, e) => {
565
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
564
+ return (y, e) => {
565
+ const s = r("FmTextField"), V = r("FmSwitch"), c = r("FmButton"), p = r("FmForm");
566
566
  return F(), w(p, {
567
567
  ref: "form",
568
568
  class: "flex flex-col gap-16",
@@ -580,15 +580,15 @@ const A = {
580
580
  "onUpdate:modelValue": e[1] || (e[1] = (l) => u.value = l),
581
581
  label: "Is Active"
582
582
  }, null, 8, ["modelValue"]),
583
- D("div", me, [
584
- a.gateway ? (F(), w(d, {
583
+ _("div", me, [
584
+ a.gateway ? (F(), w(c, {
585
585
  key: 0,
586
586
  class: "flex-1",
587
587
  variant: "secondary",
588
588
  label: "Delete",
589
589
  onclick: () => a.onDelete(a.gateway)
590
590
  }, null, 8, ["onclick"])) : U("", !0),
591
- o(d, {
591
+ o(c, {
592
592
  type: "submit",
593
593
  class: "flex-1",
594
594
  variant: "primary",
@@ -600,7 +600,7 @@ const A = {
600
600
  }, 512);
601
601
  };
602
602
  }
603
- }), de = { class: "flex mt-6 space-x-6" }, ye = /* @__PURE__ */ _({
603
+ }), ce = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ D({
604
604
  __name: "AdyenGateway",
605
605
  props: {
606
606
  onUpdate: {
@@ -617,52 +617,59 @@ const A = {
617
617
  }
618
618
  },
619
619
  setup(a) {
620
- var y, c;
621
- const i = a, u = b(((y = i.gateway) == null ? void 0 : y.active) ?? !1), t = b(((c = i.gateway) == null ? void 0 : c.config) || {
620
+ var v, d;
621
+ const i = a, u = b(((v = i.gateway) == null ? void 0 : v.active) ?? !1), t = b(((d = i.gateway) == null ? void 0 : d.config) || {
622
622
  merchantAccount: "",
623
623
  username: "",
624
- apiKey: ""
624
+ apiKey: "",
625
+ endpoint: ""
625
626
  });
626
- return (v, e) => {
627
- const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), p = r("FmForm");
627
+ return (y, e) => {
628
+ const s = r("FmTextField"), V = r("FmSwitch"), c = r("FmButton"), p = r("FmForm");
628
629
  return F(), w(p, {
629
630
  ref: "form",
630
631
  class: "flex flex-col gap-16",
631
- onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, t.value))
632
+ onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, t.value))
632
633
  }, {
633
634
  default: I(() => [
635
+ o(s, {
636
+ modelValue: t.value.endpoint,
637
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.endpoint = l),
638
+ label: "Endpoint",
639
+ rules: n(f)(n(g).string())
640
+ }, null, 8, ["modelValue", "rules"]),
634
641
  o(s, {
635
642
  modelValue: t.value.merchantAccount,
636
- "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantAccount = l),
643
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.merchantAccount = l),
637
644
  label: "Merchant Account",
638
645
  rules: n(f)(n(g).string())
639
646
  }, null, 8, ["modelValue", "rules"]),
640
647
  o(s, {
641
648
  modelValue: t.value.username,
642
- "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.username = l),
649
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.username = l),
643
650
  label: "Username",
644
651
  rules: n(f)(n(g).string())
645
652
  }, null, 8, ["modelValue", "rules"]),
646
653
  o(s, {
647
654
  modelValue: t.value.apiKey,
648
- "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.apiKey = l),
655
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.apiKey = l),
649
656
  label: "API Key",
650
657
  rules: n(f)(n(g).string())
651
658
  }, null, 8, ["modelValue", "rules"]),
652
659
  o(V, {
653
660
  modelValue: u.value,
654
- "onUpdate:modelValue": e[3] || (e[3] = (l) => u.value = l),
661
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => u.value = l),
655
662
  label: "Is Active"
656
663
  }, null, 8, ["modelValue"]),
657
- D("div", de, [
658
- a.gateway ? (F(), w(d, {
664
+ _("div", ce, [
665
+ a.gateway ? (F(), w(c, {
659
666
  key: 0,
660
667
  class: "flex-1",
661
668
  variant: "secondary",
662
669
  label: "Delete",
663
670
  onclick: () => a.onDelete(a.gateway)
664
671
  }, null, 8, ["onclick"])) : U("", !0),
665
- o(d, {
672
+ o(c, {
666
673
  type: "submit",
667
674
  class: "flex-1",
668
675
  variant: "primary",
@@ -674,10 +681,10 @@ const A = {
674
681
  }, 512);
675
682
  };
676
683
  }
677
- }), ve = {
684
+ }), ye = {
678
685
  key: 0,
679
686
  class: "flex items-center justify-center min-h-[80vh]"
680
- }, pe = /* @__PURE__ */ _({
687
+ }, pe = /* @__PURE__ */ D({
681
688
  __name: "PaymentGateway",
682
689
  props: {
683
690
  restaurant: {
@@ -726,67 +733,67 @@ const A = {
726
733
  {
727
734
  label: "Digio",
728
735
  value: "DIGIO",
729
- form: ce,
736
+ form: de,
730
737
  region: [S.F_COUNTRY.enum.TH]
731
738
  },
732
739
  {
733
740
  label: "Adyen",
734
741
  value: "ADYEN",
735
- form: ye,
742
+ form: ve,
736
743
  region: [S.F_COUNTRY.enum.MY, S.F_COUNTRY.enum.SG]
737
744
  }
738
- ], u = a, t = j(), { isLoading: y, startAsyncCall: c } = R(), { activeGateway: v } = E({
745
+ ], u = a, t = j(), { isLoading: v, startAsyncCall: d } = R(), { activeGateway: y } = E({
739
746
  activeGateway: ""
740
747
  }), e = b([]);
741
748
  async function s(m, x) {
742
- await c(async () => {
749
+ await d(async () => {
743
750
  const T = {
744
751
  _id: "",
745
752
  _rev: "",
746
- paymentGateway: v.value,
753
+ paymentGateway: y.value,
747
754
  config: x,
748
755
  active: m
749
- }, C = e.value.find((k) => k.paymentGateway === v.value);
756
+ }, C = e.value.find((k) => k.paymentGateway === y.value);
750
757
  C && (T._id = C._id, T._rev = C._rev), await A.upsert(u.restaurant._id, T), e.value = await A.get(u.restaurant._id);
751
758
  });
752
759
  }
753
760
  async function V(m) {
754
- c(async () => {
761
+ d(async () => {
755
762
  await A.delete(u.restaurant._id, m._id), e.value = await A.get(u.restaurant._id);
756
763
  });
757
764
  }
758
- const d = O(() => i.filter((m) => m.region.includes(t.currentCountry.value ?? S.F_COUNTRY.enum.MY)));
765
+ const c = O(() => i.filter((m) => m.region.includes(t.currentCountry.value ?? S.F_COUNTRY.enum.MY)));
759
766
  function p() {
760
- c(async () => {
761
- e.value = await A.get(u.restaurant._id), d.value.length > 0 && (v.value = d.value[0].value);
767
+ d(async () => {
768
+ e.value = await A.get(u.restaurant._id), c.value.length > 0 && (y.value = c.value[0].value);
762
769
  });
763
770
  }
764
771
  $(p);
765
772
  const l = O(() => {
766
773
  var m;
767
- return (m = i.find((x) => x.value === v.value)) == null ? void 0 : m.form;
774
+ return (m = i.find((x) => x.value === y.value)) == null ? void 0 : m.form;
768
775
  });
769
776
  return (m, x) => {
770
777
  const T = r("FmCircularProgress"), C = r("FmTabs");
771
778
  return F(), N(L, null, [
772
- n(y) ? (F(), N("div", ve, [
779
+ n(v) ? (F(), N("div", ye, [
773
780
  o(T, { size: "xxl" })
774
781
  ])) : U("", !0),
775
782
  o(C, {
776
783
  class: "mb-6",
777
- "model-value": n(v),
778
- "onUpdate:modelValue": x[0] || (x[0] = (k) => B(v) ? v.value = k : null),
779
- items: d.value
784
+ "model-value": n(y),
785
+ "onUpdate:modelValue": x[0] || (x[0] = (k) => B(y) ? y.value = k : null),
786
+ items: c.value
780
787
  }, null, 8, ["model-value", "items"]),
781
- n(v) ? (F(), w(K(l.value), P(Y({ key: 1 }, {
782
- gateway: e.value.find((k) => k.paymentGateway === n(v)),
788
+ n(y) ? (F(), w(K(l.value), P(Y({ key: 1 }, {
789
+ gateway: e.value.find((k) => k.paymentGateway === n(y)),
783
790
  onDelete: V,
784
791
  onUpdate: s
785
792
  })), null, 16)) : U("", !0)
786
793
  ], 64);
787
794
  };
788
795
  }
789
- }), _e = /* @__PURE__ */ _({
796
+ }), De = /* @__PURE__ */ D({
790
797
  __name: "RestaurantSetting",
791
798
  props: {
792
799
  restaurantId: {
@@ -797,7 +804,7 @@ const A = {
797
804
  setup(a) {
798
805
  const i = a, { tab: u } = E({
799
806
  tab: "payment-gateway"
800
- }), { isLoading: t, startAsyncCall: y } = R(!0), c = H(), v = b(), e = [
807
+ }), { isLoading: t, startAsyncCall: v } = R(!0), d = H(), y = b(), e = [
801
808
  {
802
809
  label: "Payment Gateway",
803
810
  value: "payment-gateway",
@@ -806,22 +813,22 @@ const A = {
806
813
  }
807
814
  ];
808
815
  function s() {
809
- y(async () => {
810
- v.value = await J.readRestaurantById(i.restaurantId);
816
+ v(async () => {
817
+ y.value = await J.readRestaurantById(i.restaurantId);
811
818
  });
812
819
  }
813
820
  $(s);
814
821
  const V = O(() => {
815
- var d;
816
- return (d = e.find((p) => p.value === u.value)) == null ? void 0 : d.render;
822
+ var c;
823
+ return (c = e.find((p) => p.value === u.value)) == null ? void 0 : c.render;
817
824
  });
818
- return (d, p) => {
825
+ return (c, p) => {
819
826
  var m;
820
827
  const l = r("FmTabs");
821
828
  return F(), w(z, {
822
- title: `Restaurant (${(m = v.value) == null ? void 0 : m._id})`,
829
+ title: `Restaurant (${(m = y.value) == null ? void 0 : m._id})`,
823
830
  loading: n(t),
824
- onBack: n(c).back
831
+ onBack: n(d).back
825
832
  }, {
826
833
  default: I(() => [
827
834
  o(l, {
@@ -830,8 +837,8 @@ const A = {
830
837
  class: "mb-6",
831
838
  items: e
832
839
  }, null, 8, ["model-value"]),
833
- n(u) && v.value ? (F(), w(K(V.value), P(Y({ key: 0 }, {
834
- restaurant: v.value
840
+ n(u) && y.value ? (F(), w(K(V.value), P(Y({ key: 0 }, {
841
+ restaurant: y.value
835
842
  })), null, 16)) : U("", !0)
836
843
  ]),
837
844
  _: 1
@@ -840,5 +847,5 @@ const A = {
840
847
  }
841
848
  });
842
849
  export {
843
- _e as default
850
+ De as default
844
851
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as m, createVNode as u, withCtx as _, unref as t, toDisplayString as r, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
2
- import { u as z } from "./index-C4FfKmPS.js";
2
+ import { u as z } from "./index-B1nXFe1-.js";
3
3
  import { h as $ } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as K, useCoreStore as E } from "@feedmepos/mf-common";
5
5
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as A } from "./index-j0nww2Hf.js";
6
+ import { s as A } from "./index-DvoVfG2y.js";
7
7
  import { useDialog as I } from "@feedmepos/ui-library";
8
8
  import { d } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
10
10
  import { useRouter as L } from "vue-router";
11
- import { u as J } from "./index-ILoz50zh.js";
11
+ import { u as J } from "./index-CNGLJkBO.js";
12
12
  import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
14
14
  import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
2
- import { u as A } from "./index-C4FfKmPS.js";
2
+ import { u as A } from "./index-B1nXFe1-.js";
3
3
  import { h as S } from "./moment-h96o7c8I.js";
4
- import { s as _ } from "./index-j0nww2Hf.js";
4
+ import { s as _ } from "./index-DvoVfG2y.js";
5
5
  import { useSnackbar as U } from "@feedmepos/ui-library";
6
6
  import { d as w } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
8
8
  import { useRouter as J } from "vue-router";
9
9
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as z } from "./index-ILoz50zh.js";
10
+ import { u as z } from "./index-CNGLJkBO.js";
11
11
  import { u as G } from "./error-K1CakhA9.js";
12
12
  import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  import "@feedmepos/mf-common";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as x, resolveComponent as f, openBlock as F, createBlock as T, normalizeClass as z, withCtx as r, createElementVNode as n, toDisplayString as l, unref as a, ref as b, onMounted as j, watch as M, createVNode as o, createTextVNode as u, h as C } from "vue";
2
- import { e as E, u as G } from "./index-C4FfKmPS.js";
2
+ import { e as E, u as G } from "./index-B1nXFe1-.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as H, a as q, t as J, b as Q } from "./assets-BuMkWZHi.js";
5
+ import { g as H, a as q, t as J, b as Q } from "./assets-G_4EYkBh.js";
6
6
  import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as X } from "vue-router";
8
- import { s as Z } from "./index-j0nww2Hf.js";
8
+ import { s as Z } from "./index-DvoVfG2y.js";
9
9
  import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
10
10
  import { h as ae } from "./moment-h96o7c8I.js";
11
11
  const ne = /* @__PURE__ */ x({