@feedmepos/mf-payment 1.1.2 → 1.1.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 (30) hide show
  1. package/dist/{PayoutAccount-HGC_AiSq.js → PayoutAccount-QN56UYcn.js} +5 -5
  2. package/dist/{PayoutAccount-BmDvfPwA.js → PayoutAccount-R63Nclyl.js} +3 -3
  3. package/dist/{PayoutAccountSetting-BmjdyfAe.js → PayoutAccountSetting-BZLLqj9W.js} +75 -70
  4. package/dist/{Restaurant-DmgPFx2j.js → Restaurant-DPtLZz_t.js} +4 -4
  5. package/dist/{RestaurantSetting-BLWqrj2m.js → RestaurantSetting-BKEXfi-2.js} +3 -3
  6. package/dist/{Settlement-CuJgDf9B.js → Settlement-C9XlPvOC.js} +3 -3
  7. package/dist/{Settlement-DT0d7fFE.js → Settlement-FrNSATfN.js} +3 -3
  8. package/dist/{SettlementTransactions-CIbq6e-d.js → SettlementTransactions-B97pfd3e.js} +3 -3
  9. package/dist/{SettlementTransactions-EsXVoNit.js → SettlementTransactions-vIaQzZLb.js} +3 -3
  10. package/dist/{Terminal-CYNUjIiD.js → Terminal-CJNtq_6a.js} +5 -5
  11. package/dist/{TerminalSetting-B-sJbZ0m.js → TerminalSetting-CZz6PeyG.js} +3 -3
  12. package/dist/{Transaction-DbFL2fS3.js → Transaction-C0sBCFLp.js} +5 -5
  13. package/dist/{Transaction-D4KpcoUF.js → Transaction-DYXeI4Ja.js} +6 -6
  14. package/dist/{TransactionOld-Bcs7OZsY.js → TransactionOld-BbmFHV9b.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-5MTiaMAq.js → TransactionTable.vue_vue_type_script_setup_true_lang-B2WaeKlW.js} +3 -3
  16. package/dist/{app-QKWhpgn2.js → app-BZBrPMGI.js} +204 -204
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-Bo15bZch.js → assets-DK8qcvvE.js} +1 -1
  19. package/dist/{grafana-D2tjthr7.js → grafana-D9CUCenW.js} +1 -1
  20. package/dist/{index-DQQr8pc4.js → index-1ek_J3MH.js} +1 -1
  21. package/dist/{index-Dxf4aNNa.js → index-BJG6JQZI.js} +1 -1
  22. package/dist/{index-CbIjujCk.js → index-Ba92Mso-.js} +1 -1
  23. package/dist/{index-Con7stPB.js → index-CsecEOgx.js} +1 -1
  24. package/dist/{index-DzT_YAZv.js → index-DzKrZEv8.js} +1 -1
  25. package/dist/{index-DShyWspu.js → index-c7WpvZdX.js} +1 -1
  26. package/dist/{index.vue_vue_type_script_setup_true_lang-CRoyN19T.js → index.vue_vue_type_script_setup_true_lang-CrVUe88c.js} +1 -1
  27. package/dist/package.json +1 -1
  28. package/dist/{payout-account-DNCmsHx6.js → payout-account-DJwjD_DL.js} +2 -2
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/package.json +1 -1
@@ -1,11 +1,11 @@
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-CbIjujCk.js";
3
- import { _ as K } from "./index-Dxf4aNNa.js";
2
+ import { u as O } from "./index-Ba92Mso-.js";
3
+ import { _ as K } from "./index-BJG6JQZI.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-DNCmsHx6.js";
6
- import { p as D } from "./index-DQQr8pc4.js";
5
+ import { P as V } from "./payout-account-DJwjD_DL.js";
6
+ import { p as D } from "./index-1ek_J3MH.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CRoyN19T.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CrVUe88c.js";
9
9
  import { useRouter as U } from "vue-router";
10
10
  import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
11
  const G = /* @__PURE__ */ y({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as P, ref as W, reactive as eA, computed as I, watch as _, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as $, unref as s, createVNode as Y, createBlock as i, createCommentVNode as j, withCtx as q, createElementVNode as B, toDisplayString as N, normalizeClass as k, h as U, onMounted as sA } from "vue";
2
- import { p as J } from "./index-DQQr8pc4.js";
3
- import { _ as h, u as aA, e as oA } from "./index-Dxf4aNNa.js";
2
+ import { p as J } from "./index-1ek_J3MH.js";
3
+ import { _ as h, u as aA, e as oA } from "./index-BJG6JQZI.js";
4
4
  import { defineStore as gA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as AA } from "@feedmepos/mf-common";
6
- import { c as lA, P as z } from "./payout-account-DNCmsHx6.js";
6
+ import { c as lA, P as z } from "./payout-account-DJwjD_DL.js";
7
7
  import { useDialogChild as rA, useDialog as cA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
9
  import { P as S } from "./PDFViewer-BQfgFexr.js";
@@ -1,15 +1,15 @@
1
- import { defineComponent as k, resolveComponent as y, openBlock as b, createElementBlock as A, Fragment as $, createElementVNode as l, createVNode as s, withCtx as F, createTextVNode as _, toDisplayString as h, createCommentVNode as S, createBlock as C, ref as V, watch as z, computed as M, unref as v, isRef as G, h as B, onMounted as L, resolveDynamicComponent as H, normalizeProps as Y, mergeProps as Q } from "vue";
2
- import { p as P } from "./index-DQQr8pc4.js";
3
- import { u as K, e as N } from "./index-Dxf4aNNa.js";
4
- import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
- import { useRouter as Z } from "vue-router";
6
- import { u as D } from "./index-CbIjujCk.js";
7
- import { P as q, _ as J } from "./PDFViewer-BQfgFexr.js";
8
- import { useSnackbar as j, components as X } from "@feedmepos/ui-library";
1
+ import { defineComponent as k, resolveComponent as y, openBlock as b, createElementBlock as A, Fragment as $, createElementVNode as l, createVNode as s, withCtx as F, createTextVNode as _, toDisplayString as h, createCommentVNode as S, createBlock as C, ref as V, watch as L, computed as G, unref as v, isRef as M, h as B, onMounted as H, resolveDynamicComponent as Y, normalizeProps as Q, mergeProps as W } from "vue";
2
+ import { p as P } from "./index-1ek_J3MH.js";
3
+ import { u as K, e as N } from "./index-BJG6JQZI.js";
4
+ import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
+ import { useRouter as X } from "vue-router";
6
+ import { u as D } from "./index-Ba92Mso-.js";
7
+ import { P as z, _ as ee } from "./PDFViewer-BQfgFexr.js";
8
+ import { useSnackbar as j, components as te } from "@feedmepos/ui-library";
9
9
  import { u as I } from "./error-K1CakhA9.js";
10
10
  import { z as R, a as E } from "./validator-D5jtpt9A.js";
11
- import { useCoreStore as ee } from "@feedmepos/mf-common";
12
- const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
11
+ import { useCoreStore as ne } from "@feedmepos/mf-common";
12
+ const ae = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ k({
13
13
  __name: "Information",
14
14
  props: {
15
15
  payoutAccount: {
@@ -21,7 +21,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
21
21
  return (r, e) => {
22
22
  const p = y("FmCardHeader"), c = y("FmCardSection"), o = y("FmCard");
23
23
  return b(), A($, null, [
24
- l("div", te, [
24
+ l("div", ae, [
25
25
  s(o, {
26
26
  horizontal: "",
27
27
  class: "flex-1 p-6",
@@ -99,11 +99,11 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
99
99
  n.payoutAccount.store.exteriorPhoto ? (b(), A("img", {
100
100
  key: 0,
101
101
  src: n.payoutAccount.store.exteriorPhoto
102
- }, null, 8, ne)) : S("", !0)
102
+ }, null, 8, oe)) : S("", !0)
103
103
  ], 64);
104
104
  };
105
105
  }
106
- }), oe = { class: "flex gap-16" }, le = { class: "flex-1" }, ue = { class: "flex-1" }, se = /* @__PURE__ */ k({
106
+ }), ue = { class: "flex gap-16" }, se = { class: "flex-1" }, re = { class: "flex-1" }, ce = /* @__PURE__ */ k({
107
107
  __name: "Settlement",
108
108
  props: {
109
109
  payoutAccount: {
@@ -150,19 +150,19 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
150
150
  ]),
151
151
  _: 1
152
152
  }),
153
- l("div", oe, [
154
- l("div", le, [
153
+ l("div", ue, [
154
+ l("div", se, [
155
155
  e[5] || (e[5] = l("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
156
- n.payoutAccount.store.ssm ? (b(), C(q, {
156
+ n.payoutAccount.store.ssm ? (b(), C(z, {
157
157
  key: 0,
158
158
  pdf: n.payoutAccount.store.ssm,
159
159
  "disable-text-layer": !0,
160
160
  "disable-annotation-layer": !0
161
161
  }, null, 8, ["pdf"])) : S("", !0)
162
162
  ]),
163
- l("div", ue, [
163
+ l("div", re, [
164
164
  e[6] || (e[6] = l("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
165
- n.payoutAccount.store.bankStatement ? (b(), C(q, {
165
+ n.payoutAccount.store.bankStatement ? (b(), C(z, {
166
166
  key: 0,
167
167
  pdf: n.payoutAccount.store.bankStatement,
168
168
  "disable-text-layer": !0,
@@ -173,7 +173,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
173
173
  ], 64);
174
174
  };
175
175
  }
176
- }), re = /* @__PURE__ */ k({
176
+ }), ie = /* @__PURE__ */ k({
177
177
  __name: "RateInput",
178
178
  props: {
179
179
  data: {},
@@ -181,7 +181,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
181
181
  },
182
182
  setup(n) {
183
183
  const r = n, e = V(r.data.toString());
184
- return z(e, (p) => {
184
+ return L(e, (p) => {
185
185
  r.onChange(parseFloat(p));
186
186
  }), (p, c) => {
187
187
  const o = y("FmTextField");
@@ -197,7 +197,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
197
197
  }, 8, ["modelValue"]);
198
198
  };
199
199
  }
200
- }), ce = /* @__PURE__ */ k({
200
+ }), de = /* @__PURE__ */ k({
201
201
  __name: "TPlusInput",
202
202
  props: {
203
203
  data: {},
@@ -205,7 +205,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
205
205
  },
206
206
  setup(n) {
207
207
  const r = n, e = V(r.data.toString());
208
- return z(e, (p) => {
208
+ return L(e, (p) => {
209
209
  r.onChange(parseInt(p));
210
210
  }), (p, c) => {
211
211
  const o = y("FmTextField");
@@ -216,7 +216,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
216
216
  }, null, 8, ["modelValue"]);
217
217
  };
218
218
  }
219
- }), ie = { class: "flex gap-16 mt-6" }, de = { class: "flex-1" }, me = { class: "flex-1" }, pe = { class: "my-6 w-full flex justify-end" }, ye = { class: "w-[320px]" }, fe = /* @__PURE__ */ k({
219
+ }), me = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, fe = { class: "my-6 w-full flex justify-end" }, be = { class: "w-[320px]" }, ve = /* @__PURE__ */ k({
220
220
  __name: "PaymentStatus",
221
221
  props: {
222
222
  onUpdate: {
@@ -246,7 +246,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
246
246
  }
247
247
  }, { search: o } = D({
248
248
  search: ""
249
- }), u = M(() => {
249
+ }), u = G(() => {
250
250
  const { ssm: a, bank: t, bankStatement: i } = r.payoutAccount.store;
251
251
  return a && t && t.name && t.accountNumber && t.holderName && i;
252
252
  }), f = V(""), d = [
@@ -260,7 +260,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
260
260
  accessorKey: "rate",
261
261
  cell: ({ row: a }) => {
262
262
  let t = 0;
263
- return a.original.rate && (t = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(re, {
263
+ return a.original.rate && (t = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), B(ie, {
264
264
  data: t,
265
265
  onChange: (i) => {
266
266
  const m = r.payoutAccount.methods.at(a.index);
@@ -275,7 +275,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
275
275
  {
276
276
  header: () => "T plus",
277
277
  accessorKey: "tPlus",
278
- cell: ({ row: a }) => B(ce, {
278
+ cell: ({ row: a }) => B(de, {
279
279
  data: a.original.tPlus ?? 0,
280
280
  onChange: (t) => {
281
281
  const i = r.payoutAccount.methods.at(a.index);
@@ -287,8 +287,8 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
287
287
  return (a, t) => {
288
288
  const i = y("FmRadio"), m = y("FmRadioGroup"), w = y("FmSwitch"), T = y("FmSearch"), U = y("FmTable"), x = y("FmButton");
289
289
  return b(), A($, null, [
290
- l("div", ie, [
291
- l("div", de, [
290
+ l("div", me, [
291
+ l("div", pe, [
292
292
  s(m, {
293
293
  modelValue: n.payoutAccount.status,
294
294
  "onUpdate:modelValue": t[0] || (t[0] = (g) => n.payoutAccount.status = g),
@@ -311,7 +311,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
311
311
  _: 1
312
312
  }, 8, ["modelValue"])
313
313
  ]),
314
- l("div", me, [
314
+ l("div", ye, [
315
315
  s(w, {
316
316
  modelValue: n.payoutAccount.enable,
317
317
  "onUpdate:modelValue": t[1] || (t[1] = (g) => n.payoutAccount.enable = g),
@@ -322,11 +322,11 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
322
322
  ])
323
323
  ]),
324
324
  n.payoutAccount.enable ? (b(), A($, { key: 0 }, [
325
- l("div", pe, [
326
- l("div", ye, [
325
+ l("div", fe, [
326
+ l("div", be, [
327
327
  s(T, {
328
328
  modelValue: v(o),
329
- "onUpdate:modelValue": t[2] || (t[2] = (g) => G(o) ? o.value = g : null),
329
+ "onUpdate:modelValue": t[2] || (t[2] = (g) => M(o) ? o.value = g : null),
330
330
  placeholder: "Search Method ..."
331
331
  }, null, 8, ["modelValue"])
332
332
  ])
@@ -351,14 +351,14 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
351
351
  ], 64);
352
352
  };
353
353
  }
354
- }), be = { class: "flex" }, ve = /* @__PURE__ */ k({
354
+ }), ge = { class: "flex" }, Fe = /* @__PURE__ */ k({
355
355
  __name: "Actions",
356
356
  emits: ["edit", "delete"],
357
357
  setup(n, { emit: r }) {
358
358
  const e = r;
359
359
  return (p, c) => {
360
360
  const o = y("FmButton");
361
- return b(), A("div", be, [
361
+ return b(), A("div", ge, [
362
362
  s(o, {
363
363
  variant: "plain",
364
364
  "prepend-icon": "delete",
@@ -369,7 +369,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
369
369
  ]);
370
370
  };
371
371
  }
372
- }), ge = { class: "flex justify-end px-6 pb-6" }, Fe = /* @__PURE__ */ k({
372
+ }), xe = { class: "flex justify-end px-6 pb-6" }, _e = /* @__PURE__ */ k({
373
373
  __name: "PaymentChannel",
374
374
  props: {
375
375
  payoutAccount: {
@@ -384,7 +384,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
384
384
  o.value = await P.getChannels(e.payoutAccount._id);
385
385
  });
386
386
  }
387
- L(u);
387
+ H(u);
388
388
  function f() {
389
389
  c(async () => {
390
390
  try {
@@ -434,7 +434,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
434
434
  {
435
435
  header: () => "Label",
436
436
  accessorKey: "label",
437
- cell: ({ row: t }) => B(X.FmTextField, {
437
+ cell: ({ row: t }) => B(te.FmTextField, {
438
438
  modelValue: t.original.label,
439
439
  "onUpdate:modelValue": (i) => t.original.label = i
440
440
  })
@@ -442,7 +442,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
442
442
  {
443
443
  id: "actions",
444
444
  header: () => "Actions",
445
- cell: ({ row: t }) => B(ve, {
445
+ cell: ({ row: t }) => B(Fe, {
446
446
  onDelete: () => o.value.splice(t.index, 1)
447
447
  })
448
448
  }
@@ -450,7 +450,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
450
450
  return (t, i) => {
451
451
  const m = y("FmButton"), w = y("FmTable");
452
452
  return b(), A($, null, [
453
- l("div", ge, [
453
+ l("div", xe, [
454
454
  s(m, {
455
455
  class: "mx-4",
456
456
  variant: "destructive",
@@ -476,7 +476,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
476
476
  ], 64);
477
477
  };
478
478
  }
479
- }), xe = { class: "flex mt-6 space-x-6" }, _e = /* @__PURE__ */ k({
479
+ }), we = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ k({
480
480
  __name: "FiuuGateway",
481
481
  props: {
482
482
  gateway: {
@@ -525,7 +525,7 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
525
525
  label: "Secret Key",
526
526
  rules: v(R)(v(E).string())
527
527
  }, null, 8, ["modelValue", "rules"]),
528
- l("div", xe, [
528
+ l("div", we, [
529
529
  n.gateway ? (b(), C(f, {
530
530
  key: 0,
531
531
  class: "flex-1",
@@ -545,16 +545,16 @@ const te = { class: "flex gap-16 mb-6" }, ne = ["src"], ae = /* @__PURE__ */ k({
545
545
  }, 512);
546
546
  };
547
547
  }
548
- }), we = {}, Ae = { class: "flex items-center justify-center h-screen" };
549
- function Ce(n, r) {
550
- return b(), A("div", Ae, r[0] || (r[0] = [
548
+ }), Ce = {}, ke = { class: "flex items-center justify-center h-screen" };
549
+ function he(n, r) {
550
+ return b(), A("div", ke, r[0] || (r[0] = [
551
551
  l("h1", { class: "text-4xl font-bold text-gray-800" }, "Coming Soon", -1)
552
552
  ]));
553
553
  }
554
- const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
554
+ const Pe = /* @__PURE__ */ ee(Ce, [["render", he]]), Ve = {
555
555
  key: 0,
556
556
  class: "flex items-center justify-center min-h-[80vh]"
557
- }, Pe = /* @__PURE__ */ k({
557
+ }, Se = /* @__PURE__ */ k({
558
558
  __name: "PaymentGateway",
559
559
  props: {
560
560
  payoutAccount: {
@@ -563,22 +563,22 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
563
563
  }
564
564
  },
565
565
  setup(n) {
566
- const r = ee().currentCountry, e = j(), { isLoading: p, startAsyncCall: c } = K(), { gatewayTab: o } = D({
566
+ const r = ne().currentCountry, e = j(), { isLoading: p, startAsyncCall: c } = K(), { gatewayTab: o } = D({
567
567
  gatewayTab: ""
568
568
  }), u = n, f = [
569
569
  {
570
570
  label: "Fiuu",
571
571
  value: "RAZER_MERCHANT_SERVICE",
572
- render: _e,
572
+ render: Ae,
573
573
  region: [N.F_COUNTRY.enum.SG]
574
574
  },
575
575
  {
576
576
  label: "Macau Pass",
577
577
  value: "MACAU_PASS",
578
- render: ke,
578
+ render: Pe,
579
579
  region: [N.F_COUNTRY.enum.MO]
580
580
  }
581
- ], d = V(u.payoutAccount.gateways ?? []), a = M(() => f.find((i) => i.value === o.value));
581
+ ], d = V(u.payoutAccount.gateways ?? []), a = G(() => f.find((i) => i.value === o.value));
582
582
  async function t(i) {
583
583
  await c(async () => {
584
584
  try {
@@ -603,16 +603,16 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
603
603
  l("b", null, "Note: "),
604
604
  _(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
605
605
  ], -1)),
606
- v(p) ? (b(), A("div", he, [
606
+ v(p) ? (b(), A("div", Ve, [
607
607
  s(w, { size: "xxl" })
608
608
  ])) : (b(), C(T, {
609
609
  key: 1,
610
610
  "model-value": v(o),
611
- "onUpdate:modelValue": m[0] || (m[0] = (x) => G(o) ? o.value = x : null),
611
+ "onUpdate:modelValue": m[0] || (m[0] = (x) => M(o) ? o.value = x : null),
612
612
  class: "mb-6",
613
613
  items: f.filter((x) => x.region.includes(v(r) ?? v(N.F_COUNTRY).enum.MY))
614
614
  }, null, 8, ["model-value", "items"])),
615
- v(o) ? (b(), C(H((U = a.value) == null ? void 0 : U.render), Y(Q({ key: 2 }, {
615
+ v(o) ? (b(), C(Y((U = a.value) == null ? void 0 : U.render), Q(W({ key: 2 }, {
616
616
  gateway: d.value.find((x) => {
617
617
  var g;
618
618
  return x.paymentGateway === ((g = a.value) == null ? void 0 : g.value);
@@ -624,16 +624,21 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
624
624
  }), t(d.value);
625
625
  },
626
626
  onUpdate: (x) => {
627
- d.value.find((g) => {
628
- var O;
629
- return g.paymentGateway === ((O = a.value) == null ? void 0 : O.value);
630
- }).config = x, t(d.value);
627
+ var O;
628
+ let g = d.value.find((Z) => {
629
+ var q;
630
+ return Z.paymentGateway === ((q = a.value) == null ? void 0 : q.value);
631
+ });
632
+ g ? g.config = x : d.value.push({
633
+ paymentGateway: (O = a.value) == null ? void 0 : O.value,
634
+ config: x
635
+ }), t(d.value);
631
636
  }
632
637
  })), null, 16)) : S("", !0)
633
638
  ], 64);
634
639
  };
635
640
  }
636
- }), Ge = /* @__PURE__ */ k({
641
+ }), De = /* @__PURE__ */ k({
637
642
  __name: "PayoutAccountSetting",
638
643
  props: {
639
644
  accountId: {
@@ -644,7 +649,7 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
644
649
  setup(n) {
645
650
  const r = n, { tab: e } = D({
646
651
  tab: "information"
647
- }), { isLoading: p, startAsyncCall: c } = K(!0), o = Z(), u = V();
652
+ }), { isLoading: p, startAsyncCall: c } = K(!0), o = X(), u = V();
648
653
  async function f(i) {
649
654
  await P.updateById(
650
655
  r.accountId,
@@ -656,31 +661,31 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
656
661
  label: "Information",
657
662
  value: "information",
658
663
  icon: "overview",
659
- render: ae
664
+ render: le
660
665
  },
661
666
  {
662
667
  label: "Settlement",
663
668
  value: "settlement",
664
669
  icon: "payments",
665
- render: se
670
+ render: ce
666
671
  },
667
672
  {
668
673
  label: "MDR Status",
669
674
  value: "payment",
670
675
  icon: "account_box",
671
- render: fe
676
+ render: ve
672
677
  },
673
678
  {
674
679
  label: "Online Gateways",
675
680
  value: "gateways",
676
681
  icon: "account_balance",
677
- render: Pe
682
+ render: Se
678
683
  },
679
684
  {
680
685
  label: "Online Channels",
681
686
  value: "channels",
682
687
  icon: "assured_workload",
683
- render: Fe
688
+ render: _e
684
689
  }
685
690
  ];
686
691
  function a() {
@@ -688,15 +693,15 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
688
693
  u.value = await P.readById(r.accountId);
689
694
  });
690
695
  }
691
- L(a);
692
- const t = M(() => {
696
+ H(a);
697
+ const t = G(() => {
693
698
  var i;
694
699
  return (i = d.find((m) => m.value === e.value)) == null ? void 0 : i.render;
695
700
  });
696
701
  return (i, m) => {
697
702
  var T;
698
703
  const w = y("FmTabs");
699
- return b(), C(W, {
704
+ return b(), C(J, {
700
705
  title: `Payout Account (${(T = u.value) == null ? void 0 : T._id})`,
701
706
  loading: v(p),
702
707
  onBack: v(o).back
@@ -704,11 +709,11 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
704
709
  default: F(() => [
705
710
  s(w, {
706
711
  "model-value": v(e),
707
- "onUpdate:modelValue": m[0] || (m[0] = (U) => G(e) ? e.value = U : null),
712
+ "onUpdate:modelValue": m[0] || (m[0] = (U) => M(e) ? e.value = U : null),
708
713
  class: "mb-6",
709
714
  items: d
710
715
  }, null, 8, ["model-value"]),
711
- v(e) ? (b(), C(H(t.value), Y(Q({ key: 0 }, {
716
+ v(e) ? (b(), C(Y(t.value), Q(W({ key: 0 }, {
712
717
  payoutAccount: u.value,
713
718
  onUpdate: f
714
719
  })), null, 16)) : S("", !0)
@@ -719,5 +724,5 @@ const ke = /* @__PURE__ */ J(we, [["render", Ce]]), he = {
719
724
  }
720
725
  });
721
726
  export {
722
- Ge as default
727
+ De as default
723
728
  };
@@ -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-CbIjujCk.js";
2
+ import { u as O } from "./index-Ba92Mso-.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-Dxf4aNNa.js";
5
+ import { u as G } from "./index-BJG6JQZI.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-DShyWspu.js";
7
+ import { r as H } from "./index-c7WpvZdX.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-D2tjthr7.js";
9
+ import { g as X } from "./grafana-D9CUCenW.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
2
- import { g as T, b as R, u as E, e as U } from "./index-Dxf4aNNa.js";
2
+ import { g as T, b as R, u as E, e as U } from "./index-BJG6JQZI.js";
3
3
  import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as A } from "vue-router";
5
- import { u as L } from "./index-CbIjujCk.js";
5
+ import { u as L } from "./index-Ba92Mso-.js";
6
6
  import { z as p, a as v } from "./validator-D5jtpt9A.js";
7
7
  import { useCoreStore as j } from "@feedmepos/mf-common";
8
- import { r as z } from "./index-DShyWspu.js";
8
+ import { r as z } from "./index-c7WpvZdX.js";
9
9
  const _ = {
10
10
  async get(n) {
11
11
  return T(
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as C, ref as F, computed as A, resolveComponent as k, openBlock as V, createBlock as S, h as M, watch as B, createElementBlock as j, Fragment as q, createElementVNode as l, createVNode as u, withCtx as b, unref as e, toDisplayString as m, createTextVNode as _, onMounted as z, isRef as T, createCommentVNode as Y } from "vue";
2
- import { u as E } from "./index-Dxf4aNNa.js";
2
+ import { u as E } from "./index-BJG6JQZI.js";
3
3
  import { h as K } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as D, useCoreStore as O } from "@feedmepos/mf-common";
5
5
  import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as N } from "./index-Con7stPB.js";
6
+ import { s as N } from "./index-CsecEOgx.js";
7
7
  import { useDialog as L } from "@feedmepos/ui-library";
8
8
  import { d as c } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
10
  import { useRouter as H } from "vue-router";
11
- import { u as J } from "./index-CbIjujCk.js";
11
+ import { u as J } from "./index-Ba92Mso-.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-hJAJYKmE.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 h, ref as C, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
2
- import { u as D } from "./index-Dxf4aNNa.js";
2
+ import { u as D } from "./index-BJG6JQZI.js";
3
3
  import { h as g } from "./moment-h96o7c8I.js";
4
- import { s as c } from "./index-Con7stPB.js";
4
+ import { s as c } from "./index-CsecEOgx.js";
5
5
  import { useSnackbar as T } from "@feedmepos/ui-library";
6
6
  import { d as v } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as q } from "vue-router";
9
9
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as O } from "./index-CbIjujCk.js";
10
+ import { u as O } from "./index-Ba92Mso-.js";
11
11
  import { u as U } from "./error-K1CakhA9.js";
12
12
  import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  const z = /* @__PURE__ */ h({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as x, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-Dxf4aNNa.js";
2
+ import { e as E, u as q } from "./index-BJG6JQZI.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X, t as P, b as Z } from "./assets-Bo15bZch.js";
5
+ import { g as W, a as X, t as P, b as Z } from "./assets-DK8qcvvE.js";
6
6
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as te } from "vue-router";
8
- import { s as ae } from "./index-Con7stPB.js";
8
+ import { s as ae } from "./index-CsecEOgx.js";
9
9
  import { u as ne } from "./error-K1CakhA9.js";
10
10
  import { w as oe } from "./Modal-DB8M9o1T.js";
11
11
  const re = /* @__PURE__ */ w({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as T, createBlock as L, normalizeClass as z, withCtx as i, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as R, createVNode as o, createTextVNode as d, h as I } from "vue";
2
- import { e as C, u as Y } from "./index-Dxf4aNNa.js";
2
+ import { e as C, u as Y } from "./index-BJG6JQZI.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as H, a as q, t as J, b as Q } from "./assets-Bo15bZch.js";
5
+ import { g as H, a as q, t as J, b as Q } from "./assets-DK8qcvvE.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-Con7stPB.js";
8
+ import { s as Z } from "./index-CsecEOgx.js";
9
9
  import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
10
10
  const ae = /* @__PURE__ */ w({
11
11
  __name: "Status",
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
2
- import { e as Ce } from "./index-Dxf4aNNa.js";
2
+ import { e as Ce } from "./index-BJG6JQZI.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
- import { u as we } from "./index-CbIjujCk.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-CRoyN19T.js";
4
+ import { u as we } from "./index-Ba92Mso-.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-CrVUe88c.js";
6
6
  import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
8
- import { t as Q } from "./index-DzT_YAZv.js";
8
+ import { t as Q } from "./index-DzKrZEv8.js";
9
9
  import { c as le } from "./clipboard-4jh1WteU.js";
10
10
  import { useCoreStore as ue } from "@feedmepos/mf-common";
11
- import { g as Se } from "./grafana-D2tjthr7.js";
11
+ import { g as Se } from "./grafana-D9CUCenW.js";
12
12
  import { u as Y } from "./error-K1CakhA9.js";
13
13
  import { z as re, a as ne } from "./validator-D5jtpt9A.js";
14
14
  import { w as ae } from "./Modal-DB8M9o1T.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
2
- import { u as R, e as U } from "./index-Dxf4aNNa.js";
2
+ import { u as R, e as U } from "./index-BJG6JQZI.js";
3
3
  import { useRouter as E } from "vue-router";
4
- import { t as C } from "./index-DzT_YAZv.js";
4
+ import { t as C } from "./index-DzKrZEv8.js";
5
5
  import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as H } from "./index-CbIjujCk.js";
6
+ import { u as H } from "./index-Ba92Mso-.js";
7
7
  import { useSnackbar as Q } from "@feedmepos/ui-library";
8
8
  import { u as J } from "./error-K1CakhA9.js";
9
9
  import { z as W, a as X } from "./validator-D5jtpt9A.js";
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as V, withCtx as T, createElementVNode as _, toDisplayString as Y, createElementBlock as A, unref as d, createVNode as f, Fragment as $, renderList as C, ref as O, watch as v, isRef as I, h as y } from "vue";
2
- import { g as P, a as U, t as g, b as B, c as N } from "./assets-Bo15bZch.js";
2
+ import { g as P, a as U, t as g, b as B, c as N } from "./assets-DK8qcvvE.js";
3
3
  import { h as w } from "./moment-h96o7c8I.js";
4
- import { u as G } from "./index-CbIjujCk.js";
4
+ import { u as G } from "./index-Ba92Mso-.js";
5
5
  import { _ as L } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
6
6
  import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
7
7
  import { useSnackbar as Q, useDialog as z } from "@feedmepos/ui-library";
8
8
  import { w as k } from "./Modal-DB8M9o1T.js";
9
9
  import { u as D } from "./error-K1CakhA9.js";
10
10
  import { _ as H } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
11
- import { g as J } from "./grafana-D2tjthr7.js";
12
- import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-CRoyN19T.js";
13
- import { e as S } from "./index-Dxf4aNNa.js";
11
+ import { g as J } from "./grafana-D9CUCenW.js";
12
+ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-CrVUe88c.js";
13
+ import { e as S } from "./index-BJG6JQZI.js";
14
14
  import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
15
15
  const Z = /* @__PURE__ */ b({
16
16
  __name: "Status",