@feedmepos/mf-payment 1.2.10 → 1.2.12

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 (47) hide show
  1. package/dist/{PayoutAccount-18wkypci.js → PayoutAccount-D-NM-_2s.js} +6 -6
  2. package/dist/{PayoutAccount-vby8rjMc.js → PayoutAccount-j4yHJfSr.js} +5 -5
  3. package/dist/{PayoutAccountSetting-CRkam66i.js → PayoutAccountSetting-vzdkhXb8.js} +114 -111
  4. package/dist/{Restaurant-VF5wPY0d.js → Restaurant-CPIy0SZJ.js} +4 -4
  5. package/dist/{RestaurantSetting-7E7MJ-KZ.js → RestaurantSetting-DK4GOY2d.js} +3 -3
  6. package/dist/{Settlement-DjOW7-7G.js → Settlement-B5kQfJuQ.js} +3 -3
  7. package/dist/{Settlement-DElZTYyN.js → Settlement-BeI2ksZ3.js} +3 -3
  8. package/dist/{SettlementTransactions-Bibk-MNf.js → SettlementTransactions-CHjwajgr.js} +3 -3
  9. package/dist/{SettlementTransactions-B2k3cOjB.js → SettlementTransactions-D7z5DaxO.js} +3 -3
  10. package/dist/{Terminal-DnAMMIYh.js → Terminal-Bf7VZ5Yo.js} +5 -5
  11. package/dist/{TerminalSetting-jDF2Evb1.js → TerminalSetting-pnwFHRR8.js} +3 -3
  12. package/dist/{Transaction-BTOPUhAQ.js → Transaction-Cbiu540w.js} +5 -5
  13. package/dist/{Transaction-DDl-8RTe.js → Transaction-Cpbte6yS.js} +7 -7
  14. package/dist/{TransactionOld-C_Xaj-8M.js → TransactionOld-Dnnz541Y.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BFArqWok.js → TransactionTable.vue_vue_type_script_setup_true_lang-tMjd6_k7.js} +3 -3
  16. package/dist/{app-BTNlNJft.js → app-C_At3NFn.js} +246 -246
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-DGInSeWS.js → assets-DjGZEHos.js} +2 -2
  19. package/dist/{grafana-9bBV0RKB.js → grafana-D99I428B.js} +1 -1
  20. package/dist/{index-MF2p-2Xo.js → index-B3IOW-oD.js} +1 -1
  21. package/dist/{index-CY545XH3.js → index-BI63pT6J.js} +5143 -5251
  22. package/dist/{index-RsQaPtd8.js → index-CW2tMCo9.js} +2 -2
  23. package/dist/{index-BjV0tG5W.js → index-CvPpUZR3.js} +1 -1
  24. package/dist/{index-DAVQvskm.js → index-DXLkzCkb.js} +1 -1
  25. package/dist/{index-dUIntalX.js → index-DdE42RgX.js} +1 -1
  26. package/dist/{index-eO8NObIH.js → index-DigkUnks.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-Dnz6-yxO.js → index.vue_vue_type_script_setup_true_lang-Dx-Mg_Zx.js} +1 -1
  28. package/dist/package.json +2 -2
  29. package/dist/{payout-account-B28LkgUk.js → payout-account-D7Wzxyao.js} +3 -3
  30. package/dist/stores/payoutAccount.d.ts +10 -10
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +10 -10
  33. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +34 -28
  34. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +34 -28
  35. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +10 -10
  36. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +10 -10
  37. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +34 -28
  38. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +12 -6
  39. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  40. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +14 -14
  41. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  42. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  43. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  44. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +14 -14
  45. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  46. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +20 -20
  47. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
2
- import { u as O } from "./index-BjV0tG5W.js";
3
- import { _ as K } from "./index-MF2p-2Xo.js";
2
+ import { u as O } from "./index-CvPpUZR3.js";
3
+ import { _ as K } from "./index-B3IOW-oD.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-B28LkgUk.js";
6
- import { p as D } from "./index-RsQaPtd8.js";
5
+ import { P as V } from "./payout-account-D7Wzxyao.js";
6
+ import { p as D } from "./index-CW2tMCo9.js";
7
7
  import "@feedmepos/ui-library";
8
- import "./index-CY545XH3.js";
9
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Dnz6-yxO.js";
8
+ import "./index-BI63pT6J.js";
9
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Dx-Mg_Zx.js";
10
10
  import { useRouter as U } from "vue-router";
11
11
  import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
12
12
  const G = /* @__PURE__ */ y({
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as P, ref as W, reactive as sA, computed as I, watch as AA, resolveComponent as V, openBlock as c, createElementBlock as x, Fragment as tA, unref as a, createVNode as m, createBlock as i, createCommentVNode as j, withCtx as q, createElementVNode as n, toDisplayString as z, normalizeClass as k, h as N, onMounted as oA } from "vue";
2
- import { p as K } from "./index-RsQaPtd8.js";
3
- import { u as gA, e as lA } from "./index-CY545XH3.js";
2
+ import { p as K } from "./index-CW2tMCo9.js";
3
+ import { u as gA, e as lA } from "./index-BI63pT6J.js";
4
4
  import { defineStore as rA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
6
- import { c as cA, a as _, P as J } from "./payout-account-B28LkgUk.js";
6
+ import { c as cA, a as _, P as J } from "./payout-account-D7Wzxyao.js";
7
7
  import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
- import { _ as U } from "./index-MF2p-2Xo.js";
9
+ import { _ as U } from "./index-B3IOW-oD.js";
10
10
  import { P as $ } from "./PDFViewer-xrBtzrlR.js";
11
- import "./app-BTNlNJft.js";
11
+ import "./app-C_At3NFn.js";
12
12
  import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
13
  function wA() {
14
14
  return {
@@ -1,9 +1,9 @@
1
- import { defineComponent as V, resolveComponent as y, openBlock as g, createElementBlock as _, Fragment as D, createElementVNode as i, createVNode as r, withCtx as k, createTextVNode as C, toDisplayString as U, createCommentVNode as P, createBlock as x, ref as T, watch as W, computed as G, unref as c, isRef as q, h as M, onMounted as J, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as H } from "vue";
2
- import { p as N } from "./index-RsQaPtd8.js";
3
- import { u as j, e as $ } from "./index-CY545XH3.js";
1
+ import { defineComponent as V, resolveComponent as p, openBlock as g, createElementBlock as _, Fragment as $, createElementVNode as i, createVNode as r, withCtx as k, createTextVNode as C, toDisplayString as U, createCommentVNode as P, createBlock as x, ref as T, watch as W, computed as D, unref as c, isRef as q, h as G, onMounted as J, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as H } from "vue";
2
+ import { p as N } from "./index-CW2tMCo9.js";
3
+ import { u as j, e as R } from "./index-BI63pT6J.js";
4
4
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as te } from "vue-router";
6
- import { u as K } from "./index-BjV0tG5W.js";
6
+ import { u as K } from "./index-CvPpUZR3.js";
7
7
  import { P as Q } from "./PDFViewer-xrBtzrlR.js";
8
8
  import { useSnackbar as z, components as ae } from "@feedmepos/ui-library";
9
9
  import { u as B } from "./error-K1CakhA9.js";
@@ -18,9 +18,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
18
18
  }
19
19
  },
20
20
  setup(n) {
21
- return (d, e) => {
22
- const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
23
- return g(), _(D, null, [
21
+ return (m, e) => {
22
+ const v = p("FmCardHeader"), u = p("FmCardSection"), t = p("FmCard");
23
+ return g(), _($, null, [
24
24
  i("div", ne, [
25
25
  r(t, {
26
26
  horizontal: "",
@@ -73,16 +73,16 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
73
73
  }),
74
74
  r(u, { class: "p-0" }, {
75
75
  default: k(() => {
76
- var l, f, s, a, o, p, m, b;
76
+ var l, f, s, a, o, y, d, b;
77
77
  return [
78
78
  e[6] || (e[6] = i("b", null, "Email", -1)),
79
79
  C(": " + U((s = (f = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : f.keyPerson) == null ? void 0 : s.email) + " ", 1),
80
80
  e[7] || (e[7] = i("br", null, null, -1)),
81
81
  e[8] || (e[8] = i("b", null, "Name", -1)),
82
- C(": " + U((p = (o = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : o.keyPerson) == null ? void 0 : p.name), 1),
82
+ C(": " + U((y = (o = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : o.keyPerson) == null ? void 0 : y.name), 1),
83
83
  e[9] || (e[9] = i("br", null, null, -1)),
84
84
  e[10] || (e[10] = i("b", null, "Phone", -1)),
85
- C(": " + U((b = (m = n.payoutAccount) == null ? void 0 : m.store.keyPerson) == null ? void 0 : b.phone), 1),
85
+ C(": " + U((b = (d = n.payoutAccount) == null ? void 0 : d.store.keyPerson) == null ? void 0 : b.phone), 1),
86
86
  e[11] || (e[11] = i("br", null, null, -1))
87
87
  ];
88
88
  }),
@@ -112,9 +112,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
112
112
  }
113
113
  },
114
114
  setup(n) {
115
- return (d, e) => {
116
- const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
117
- return g(), _(D, null, [
115
+ return (m, e) => {
116
+ const v = p("FmCardHeader"), u = p("FmCardSection"), t = p("FmCard");
117
+ return g(), _($, null, [
118
118
  r(t, {
119
119
  horizontal: "",
120
120
  class: "flex-1 p-6 mx-6 mb-6",
@@ -130,7 +130,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
130
130
  }),
131
131
  r(u, { class: "p-0" }, {
132
132
  default: k(() => {
133
- var l, f, s, a, o, p;
133
+ var l, f, s, a, o, y;
134
134
  return [
135
135
  e[0] || (e[0] = i("b", null, "Bank", -1)),
136
136
  C(": " + U((f = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : f.name), 1),
@@ -139,7 +139,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
139
139
  C(": " + U((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
140
140
  e[3] || (e[3] = i("br", null, null, -1)),
141
141
  e[4] || (e[4] = i("b", null, "Number", -1)),
142
- C(": " + U((p = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : p.accountNumber), 1)
142
+ C(": " + U((y = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : y.accountNumber), 1)
143
143
  ];
144
144
  }),
145
145
  _: 1
@@ -180,11 +180,11 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
180
180
  onChange: { type: Function }
181
181
  },
182
182
  setup(n) {
183
- const d = n, e = T(d.data.toString());
183
+ const m = n, e = T(m.data.toString());
184
184
  return W(e, (v) => {
185
- d.onChange(parseFloat(v));
185
+ m.onChange(parseFloat(v));
186
186
  }), (v, u) => {
187
- const t = y("FmTextField");
187
+ const t = p("FmTextField");
188
188
  return g(), x(t, {
189
189
  inputmode: "decimal",
190
190
  modelValue: e.value,
@@ -197,18 +197,18 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), me = /* @__PURE__ */ V({
200
+ }), de = /* @__PURE__ */ V({
201
201
  __name: "TPlusInput",
202
202
  props: {
203
203
  data: {},
204
204
  onChange: { type: Function }
205
205
  },
206
206
  setup(n) {
207
- const d = n, e = T(d.data.toString());
207
+ const m = n, e = T(m.data.toString());
208
208
  return W(e, (v) => {
209
- d.onChange(parseInt(v));
209
+ m.onChange(parseInt(v));
210
210
  }), (v, u) => {
211
- const t = y("FmTextField");
211
+ const t = p("FmTextField");
212
212
  return g(), x(t, {
213
213
  inputmode: "numeric",
214
214
  modelValue: e.value,
@@ -216,7 +216,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ V({
219
+ }), me = { class: "flex gap-16 mt-6" }, ye = { class: "flex-1" }, pe = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ V({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -229,9 +229,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
229
229
  }
230
230
  },
231
231
  setup(n) {
232
- const d = n, e = T(!1), v = z(), u = async (a) => {
232
+ const m = n, e = T(!1), v = z(), u = async (a) => {
233
233
  try {
234
- e.value = !0, await d.onUpdate(a), v.open({
234
+ e.value = !0, await m.onUpdate(a), v.open({
235
235
  type: "success",
236
236
  title: "Payout account update succesfully"
237
237
  });
@@ -246,9 +246,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
246
246
  }
247
247
  }, { search: t } = K({
248
248
  search: ""
249
- }), l = G(() => {
250
- const { ssm: a, bank: o, bankStatement: p } = d.payoutAccount.store;
251
- return a && o && o.name && o.accountNumber && o.holderName && p;
249
+ }), l = D(() => {
250
+ const { ssm: a, bank: o, bankStatement: y } = m.payoutAccount.store;
251
+ return a && o && o.name && o.accountNumber && o.holderName && y;
252
252
  }), f = T(""), s = [
253
253
  {
254
254
  header: () => "Payment Method",
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
260
260
  accessorKey: "rate",
261
261
  cell: ({ row: a }) => {
262
262
  let o = 0;
263
- return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), M(ie, {
263
+ return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), G(ie, {
264
264
  data: o,
265
- onChange: (p) => {
266
- const m = d.payoutAccount.methods.at(a.index);
267
- m.rate || (m.rate = {
265
+ onChange: (y) => {
266
+ const d = m.payoutAccount.methods.at(a.index);
267
+ d.rate || (d.rate = {
268
268
  amount: 0,
269
269
  precision: 4
270
- }), m.rate.amount = p * Math.pow(10, m.rate.precision);
270
+ }), d.rate.amount = y * Math.pow(10, d.rate.precision);
271
271
  }
272
272
  });
273
273
  }
@@ -275,35 +275,35 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => M(me, {
278
+ cell: ({ row: a }) => G(de, {
279
279
  data: a.original.tPlus ?? 0,
280
280
  onChange: (o) => {
281
- const p = d.payoutAccount.methods.at(a.index);
282
- p.tPlus = o;
281
+ const y = m.payoutAccount.methods.at(a.index);
282
+ y.tPlus = o;
283
283
  }
284
284
  })
285
285
  }
286
286
  ];
287
287
  return (a, o) => {
288
- const p = y("FmRadio"), m = y("FmRadioGroup"), b = y("FmSwitch"), S = y("FmSearch"), I = y("FmTable"), R = y("FmButton");
289
- return g(), _(D, null, [
290
- i("div", de, [
291
- i("div", pe, [
292
- r(m, {
288
+ const y = p("FmRadio"), d = p("FmRadioGroup"), b = p("FmSwitch"), S = p("FmSearch"), I = p("FmTable"), M = p("FmButton");
289
+ return g(), _($, null, [
290
+ i("div", me, [
291
+ i("div", ye, [
292
+ r(d, {
293
293
  modelValue: n.payoutAccount.status,
294
294
  "onUpdate:modelValue": o[0] || (o[0] = (F) => n.payoutAccount.status = F),
295
295
  label: "Account Status"
296
296
  }, {
297
297
  default: k(() => [
298
- r(p, {
298
+ r(y, {
299
299
  value: "NEW",
300
300
  label: "New"
301
301
  }),
302
- r(p, {
302
+ r(y, {
303
303
  value: "PENDING",
304
304
  label: "Pending"
305
305
  }),
306
- r(p, {
306
+ r(y, {
307
307
  value: "APPROVED",
308
308
  label: "Approved"
309
309
  })
@@ -311,7 +311,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
311
311
  _: 1
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
- i("div", ye, [
314
+ i("div", pe, [
315
315
  r(b, {
316
316
  modelValue: n.payoutAccount.enable,
317
317
  "onUpdate:modelValue": o[1] || (o[1] = (F) => n.payoutAccount.enable = F),
@@ -321,7 +321,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
321
321
  }, null, 8, ["modelValue", "disabled"])
322
322
  ])
323
323
  ]),
324
- n.payoutAccount.enable ? (g(), _(D, { key: 0 }, [
324
+ n.payoutAccount.enable ? (g(), _($, { key: 0 }, [
325
325
  i("div", ve, [
326
326
  i("div", fe, [
327
327
  r(S, {
@@ -341,7 +341,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
341
341
  "column-defs": s
342
342
  }, null, 8, ["modelValue", "search-value", "row-data"])
343
343
  ], 64)) : P("", !0),
344
- r(R, {
344
+ r(M, {
345
345
  class: "w-full mt-6",
346
346
  variant: "primary",
347
347
  label: "Save",
@@ -354,10 +354,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
354
354
  }), be = { class: "flex" }, Fe = /* @__PURE__ */ V({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
- setup(n, { emit: d }) {
358
- const e = d;
357
+ setup(n, { emit: m }) {
358
+ const e = m;
359
359
  return (v, u) => {
360
- const t = y("FmButton");
360
+ const t = p("FmButton");
361
361
  return g(), _("div", be, [
362
362
  r(t, {
363
363
  variant: "plain",
@@ -378,7 +378,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
378
378
  }
379
379
  },
380
380
  setup(n) {
381
- const d = z(), e = n, { isLoading: v, startAsyncCall: u } = j(), t = T([]);
381
+ const m = z(), e = n, { isLoading: v, startAsyncCall: u } = j(), t = T([]);
382
382
  function l() {
383
383
  u(async () => {
384
384
  t.value = await N.getChannels(e.payoutAccount._id);
@@ -388,12 +388,12 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
388
388
  function f() {
389
389
  u(async () => {
390
390
  try {
391
- await N.updateChannels(e.payoutAccount._id, t.value), d.open({
391
+ await N.updateChannels(e.payoutAccount._id, t.value), m.open({
392
392
  type: "success",
393
393
  title: "Payout account channels update succesfully"
394
394
  });
395
395
  } catch (o) {
396
- d.open({
396
+ m.open({
397
397
  type: "error",
398
398
  title: "Error occurs when updating payout account channels",
399
399
  message: B(o)
@@ -404,12 +404,12 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
404
404
  function s() {
405
405
  u(async () => {
406
406
  try {
407
- await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), d.open({
407
+ await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), m.open({
408
408
  type: "success",
409
409
  title: "Payout account channels reset succesfully"
410
410
  });
411
411
  } catch (o) {
412
- d.open({
412
+ m.open({
413
413
  type: "error",
414
414
  title: "Error occurs when reset payout account channels",
415
415
  message: B(o)
@@ -429,29 +429,29 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
429
429
  {
430
430
  header: () => "Display",
431
431
  accessorKey: "icon",
432
- cell: ({ row: o }) => M("img", { src: o.original.icon, width: 32, height: 32 })
432
+ cell: ({ row: o }) => G("img", { src: o.original.icon, width: 32, height: 32 })
433
433
  },
434
434
  {
435
435
  header: () => "Label",
436
436
  accessorKey: "label",
437
- cell: ({ row: o }) => M(ae.FmTextField, {
437
+ cell: ({ row: o }) => G(ae.FmTextField, {
438
438
  modelValue: o.original.label,
439
- "onUpdate:modelValue": (p) => o.original.label = p
439
+ "onUpdate:modelValue": (y) => o.original.label = y
440
440
  })
441
441
  },
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: o }) => M(Fe, {
445
+ cell: ({ row: o }) => G(Fe, {
446
446
  onDelete: () => t.value.splice(o.index, 1)
447
447
  })
448
448
  }
449
449
  ];
450
- return (o, p) => {
451
- const m = y("FmButton"), b = y("FmTable");
452
- return g(), _(D, null, [
450
+ return (o, y) => {
451
+ const d = p("FmButton"), b = p("FmTable");
452
+ return g(), _($, null, [
453
453
  i("div", we, [
454
- r(m, {
454
+ r(d, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
457
457
  size: "md",
@@ -459,7 +459,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
459
459
  label: "Reset",
460
460
  onClick: s
461
461
  }),
462
- r(m, {
462
+ r(d, {
463
463
  variant: "primary",
464
464
  size: "md",
465
465
  icon: "save",
@@ -500,7 +500,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
500
500
  secretKey: ""
501
501
  });
502
502
  return (u, t) => {
503
- const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
503
+ const l = p("FmTextField"), f = p("FmButton"), s = p("FmForm");
504
504
  return g(), x(s, {
505
505
  ref: "form",
506
506
  class: "flex flex-col gap-16",
@@ -571,7 +571,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
571
571
  storeName: ""
572
572
  });
573
573
  return (u, t) => {
574
- const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
574
+ const l = p("FmTextField"), f = p("FmButton"), s = p("FmForm");
575
575
  return g(), x(s, {
576
576
  ref: "form",
577
577
  class: "flex flex-col gap-16",
@@ -643,26 +643,26 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
643
643
  }
644
644
  },
645
645
  setup(n) {
646
- const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { gatewayTab: t } = K({
646
+ const m = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { gatewayTab: t } = K({
647
647
  gatewayTab: ""
648
648
  }), l = n, f = [
649
649
  {
650
650
  label: "Fiuu",
651
651
  value: "RAZER_MERCHANT_SERVICE",
652
652
  render: Ve,
653
- region: [$.F_COUNTRY.enum.SG]
653
+ region: [R.F_COUNTRY.enum.SG]
654
654
  },
655
655
  {
656
656
  label: "Macau Pass",
657
657
  value: "MACAU_PASS",
658
658
  render: _e,
659
- region: [$.F_COUNTRY.enum.MO]
659
+ region: [R.F_COUNTRY.enum.MO]
660
660
  }
661
- ], s = T(l.payoutAccount.gateways ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
662
- async function p(m) {
661
+ ], s = T(l.payoutAccount.gateways ?? []), a = D(() => f.find((d) => d.value === t.value)), o = D(() => f.filter((d) => d.region.includes(m.value ?? R.F_COUNTRY.enum.MY)));
662
+ async function y(d) {
663
663
  await u(async () => {
664
664
  try {
665
- await N.updateGateway(l.payoutAccount._id, m), e.open({
665
+ await N.updateGateway(l.payoutAccount._id, d), e.open({
666
666
  type: "success",
667
667
  title: "Payout account gateways update succesfully"
668
668
  });
@@ -675,11 +675,11 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
675
675
  }
676
676
  });
677
677
  }
678
- return (m, b) => {
679
- var R;
680
- const S = y("FmCircularProgress"), I = y("FmTabs");
681
- return g(), _(D, null, [
682
- c(d).value === c($.F_COUNTRY).enum.MY ? (g(), _("p", Ae, b[1] || (b[1] = [
678
+ return (d, b) => {
679
+ var M;
680
+ const S = p("FmCircularProgress"), I = p("FmTabs");
681
+ return g(), _($, null, [
682
+ c(m).value === c(R.F_COUNTRY).enum.MY ? (g(), _("p", Ae, b[1] || (b[1] = [
683
683
  i("b", null, "Note: ", -1),
684
684
  C(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
685
685
  ]))) : P("", !0),
@@ -692,7 +692,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
692
692
  class: "mb-6",
693
693
  items: o.value
694
694
  }, null, 8, ["model-value", "items"])),
695
- c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 3 }, {
695
+ c(t) ? (g(), x(Y((M = a.value) == null ? void 0 : M.render), L(H({ key: 3 }, {
696
696
  gateway: s.value.find((F) => {
697
697
  var w;
698
698
  return F.paymentGateway === ((w = a.value) == null ? void 0 : w.value);
@@ -701,7 +701,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
701
701
  s.value = s.value.filter((F) => {
702
702
  var w;
703
703
  return F.paymentGateway !== ((w = a.value) == null ? void 0 : w.value);
704
- }), p(s.value);
704
+ }), y(s.value);
705
705
  },
706
706
  onUpdate: (F) => {
707
707
  var E;
@@ -712,7 +712,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
712
712
  w ? w.config = F : s.value.push({
713
713
  paymentGateway: (E = a.value) == null ? void 0 : E.value,
714
714
  config: F
715
- }), p(s.value);
715
+ }), y(s.value);
716
716
  }
717
717
  })), null, 16)) : P("", !0)
718
718
  ], 64);
@@ -740,12 +740,15 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
740
740
  type: "googlePay",
741
741
  gateway: "RAZER_MERCHANT_SERVICE",
742
742
  config: {
743
- gateway: "molpay",
744
- gatewayMerchantId: "molpay"
743
+ paymentType: "googlePay",
744
+ gateway: {
745
+ gateway: "molpay",
746
+ gatewayMerchantId: "molpay"
747
+ }
745
748
  }
746
749
  });
747
750
  return (v, u) => {
748
- const t = y("FmTextField"), l = y("FmButton"), f = y("FmForm");
751
+ const t = p("FmTextField"), l = p("FmButton"), f = p("FmForm");
749
752
  return g(), x(f, {
750
753
  ref: "form",
751
754
  class: "flex flex-col gap-16",
@@ -760,15 +763,15 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
760
763
  rules: c(A)(c(h).string())
761
764
  }, null, 8, ["modelValue", "rules"]),
762
765
  r(t, {
763
- modelValue: e.value.config.gateway,
764
- "onUpdate:modelValue": u[1] || (u[1] = (s) => e.value.config.gateway = s),
766
+ modelValue: e.value.config.gateway.gateway,
767
+ "onUpdate:modelValue": u[1] || (u[1] = (s) => e.value.config.gateway.gateway = s),
765
768
  label: "Gateway ID",
766
769
  disabled: !0,
767
770
  rules: c(A)(c(h).string())
768
771
  }, null, 8, ["modelValue", "rules"]),
769
772
  r(t, {
770
- modelValue: e.value.config.gateway,
771
- "onUpdate:modelValue": u[2] || (u[2] = (s) => e.value.config.gateway = s),
773
+ modelValue: e.value.config.gateway.gatewayMerchantId,
774
+ "onUpdate:modelValue": u[2] || (u[2] = (s) => e.value.config.gateway.gatewayMerchantId = s),
772
775
  label: "Gateway Merchant ID",
773
776
  disabled: !0,
774
777
  rules: c(A)(c(h).string())
@@ -805,7 +808,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
805
808
  }
806
809
  },
807
810
  setup(n) {
808
- const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { tokenTab: t } = K({
811
+ const m = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { tokenTab: t } = K({
809
812
  tokenTab: ""
810
813
  }), l = n, f = [
811
814
  {
@@ -813,13 +816,13 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
813
816
  value: "googlePay",
814
817
  icon: "android",
815
818
  render: Se,
816
- region: [$.F_COUNTRY.enum.MY, $.F_COUNTRY.enum.SG]
819
+ region: [R.F_COUNTRY.enum.MY, R.F_COUNTRY.enum.SG]
817
820
  }
818
- ], s = T(l.payoutAccount.tokens ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
819
- async function p(m) {
821
+ ], s = T(l.payoutAccount.tokens ?? []), a = D(() => f.find((d) => d.value === t.value)), o = D(() => f.filter((d) => d.region.includes(m.value ?? R.F_COUNTRY.enum.MY)));
822
+ async function y(d) {
820
823
  await u(async () => {
821
824
  try {
822
- await N.updateTokens(l.payoutAccount._id, m), e.open({
825
+ await N.updateTokens(l.payoutAccount._id, d), e.open({
823
826
  type: "success",
824
827
  title: "Payout account tokens gateway update succesfully"
825
828
  });
@@ -832,10 +835,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
832
835
  }
833
836
  });
834
837
  }
835
- return (m, b) => {
836
- var R;
837
- const S = y("FmCircularProgress"), I = y("FmTabs");
838
- return g(), _(D, null, [
838
+ return (d, b) => {
839
+ var M;
840
+ const S = p("FmCircularProgress"), I = p("FmTabs");
841
+ return g(), _($, null, [
839
842
  b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
840
843
  i("b", null, "Note: "),
841
844
  C(" Token gateway always on the top of every other methods ( online channels ), and it's was branding requirements from each of the payment token gateway provider. For setting most of the time are the same and only need to select for which provider. ")
@@ -849,7 +852,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
849
852
  class: "mb-6",
850
853
  items: o.value
851
854
  }, null, 8, ["model-value", "items"])),
852
- c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 2 }, {
855
+ c(t) ? (g(), x(Y((M = a.value) == null ? void 0 : M.render), L(H({ key: 2 }, {
853
856
  gateway: s.value.find((F) => {
854
857
  var w;
855
858
  return F.type === ((w = a.value) == null ? void 0 : w.value);
@@ -858,14 +861,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
858
861
  s.value = s.value.filter((F) => {
859
862
  var w;
860
863
  return F.type !== ((w = a.value) == null ? void 0 : w.value);
861
- }), p(s.value);
864
+ }), y(s.value);
862
865
  },
863
866
  onUpdate: (F) => {
864
867
  let w = s.value.find((E) => {
865
868
  var O;
866
869
  return E.type === ((O = a.value) == null ? void 0 : O.value);
867
870
  });
868
- w ? w.config = F : s.value.push(F), p(s.value);
871
+ w ? w.config = F : s.value.push(F), y(s.value);
869
872
  }
870
873
  })), null, 16)) : P("", !0)
871
874
  ], 64);
@@ -880,14 +883,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
880
883
  }
881
884
  },
882
885
  setup(n) {
883
- const d = n, { tab: e } = K({
886
+ const m = n, { tab: e } = K({
884
887
  tab: "information"
885
888
  }), { isLoading: v, startAsyncCall: u } = j(!0), t = te(), l = T();
886
- async function f(p) {
889
+ async function f(y) {
887
890
  await N.updateById(
888
- d.accountId,
889
- p
890
- ), l.value = await N.readById(d.accountId);
891
+ m.accountId,
892
+ y
893
+ ), l.value = await N.readById(m.accountId);
891
894
  }
892
895
  const s = [
893
896
  {
@@ -929,17 +932,17 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
929
932
  ];
930
933
  function a() {
931
934
  u(async () => {
932
- l.value = await N.readById(d.accountId);
935
+ l.value = await N.readById(m.accountId);
933
936
  });
934
937
  }
935
938
  J(a);
936
- const o = G(() => {
937
- const p = s.reduce((m, b) => m || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
938
- return p == null ? void 0 : p.render;
939
+ const o = D(() => {
940
+ const y = s.reduce((d, b) => d || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
941
+ return y == null ? void 0 : y.render;
939
942
  });
940
- return (p, m) => {
943
+ return (y, d) => {
941
944
  var S;
942
- const b = y("FmTabs");
945
+ const b = p("FmTabs");
943
946
  return g(), x(ee, {
944
947
  title: `Payout Account (${(S = l.value) == null ? void 0 : S._id})`,
945
948
  loading: c(v),
@@ -948,7 +951,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
948
951
  default: k(() => [
949
952
  r(b, {
950
953
  "model-value": c(e),
951
- "onUpdate:modelValue": m[0] || (m[0] = (I) => q(e) ? e.value = I : null),
954
+ "onUpdate:modelValue": d[0] || (d[0] = (I) => q(e) ? e.value = I : null),
952
955
  class: "mb-6",
953
956
  items: s
954
957
  }, null, 8, ["model-value"]),
@@ -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-BjV0tG5W.js";
2
+ import { u as O } from "./index-CvPpUZR3.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-CY545XH3.js";
5
+ import { u as G } from "./index-BI63pT6J.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-DAVQvskm.js";
7
+ import { r as H } from "./index-DXLkzCkb.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-9bBV0RKB.js";
9
+ import { g as X } from "./grafana-D99I428B.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {