@feedmepos/mf-payment 1.1.16 → 1.1.17
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.
- package/dist/{PayoutAccount-uCgOv-C2.js → PayoutAccount-D39_jyCP.js} +5 -5
- package/dist/{PayoutAccount-BwhhHyk0.js → PayoutAccount-h_Audqbn.js} +6 -6
- package/dist/{PayoutAccountSetting-DrgoYi10.js → PayoutAccountSetting-BFp0oAbr.js} +3 -3
- package/dist/{Restaurant-BMxfnL42.js → Restaurant-C6VdT-VQ.js} +4 -4
- package/dist/{RestaurantSetting-D0L2llJi.js → RestaurantSetting-CTRogrQu.js} +3 -3
- package/dist/{Settlement-CiK9GGpf.js → Settlement-BDepS3Tl.js} +3 -3
- package/dist/{Settlement-C8I6P7da.js → Settlement-CK7qaaal.js} +3 -3
- package/dist/{SettlementTransactions-De1rkkml.js → SettlementTransactions-BNMRO541.js} +3 -3
- package/dist/{SettlementTransactions-BIbtfCK3.js → SettlementTransactions-DiZk1sIL.js} +3 -3
- package/dist/{Terminal-CckLRjSd.js → Terminal-z6NYaI1y.js} +5 -5
- package/dist/{TerminalSetting-BCJvBD-X.js → TerminalSetting-DQ1C23dz.js} +86 -86
- package/dist/{Transaction-B8-b54yS.js → Transaction-DRGoe4GM.js} +5 -5
- package/dist/{Transaction-AQpb7piu.js → Transaction-DSNlgG0P.js} +7 -7
- package/dist/{TransactionOld-DMoKPlnI.js → TransactionOld-DoodPQxq.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CGqkicKX.js → TransactionTable.vue_vue_type_script_setup_true_lang-Bku0UP2O.js} +3 -3
- package/dist/{app-CLUCi0WU.js → app-BJuu8nDL.js} +171 -171
- package/dist/app.js +1 -1
- package/dist/{assets-Dd9LE4oF.js → assets-B4VvWLa_.js} +2 -2
- package/dist/{grafana-B60ooFW-.js → grafana-By4LitsV.js} +1 -1
- package/dist/{index-Bx8UIw8Z.js → index-13t5duiG.js} +1 -1
- package/dist/{index-C0dQg29_.js → index-AuTCjO-K.js} +1 -1
- package/dist/{index-BiYmAqRO.js → index-BmTIzRQK.js} +2 -2
- package/dist/{index-BZWYrMcd.js → index-D4L6fCYa.js} +1 -1
- package/dist/{index-BFT3LjfW.js → index-DFk-uoLY.js} +1 -1
- package/dist/{index-ZHTRfFqF.js → index-Da_gFUAw.js} +1 -1
- package/dist/{index-cdgGCMdI.js → index-N-0pmUqi.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-0J3a24fn.js → index.vue_vue_type_script_setup_true_lang-CmJzuVvj.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CPBlSoPB.js → payout-account-T8MdKLEm.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/tabs/SoftspaceGateway.vue.d.ts +2 -2
- package/package.json +1 -1
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as P, ref as W, reactive as aA, computed as I, watch as $, resolveComponent as C, openBlock as c, createElementBlock as x, Fragment as AA, unref as a, createVNode as Y, createBlock as i, createCommentVNode as j, withCtx as q, createElementVNode as n, toDisplayString as z, normalizeClass as k, h as N, onMounted as sA } from "vue";
|
2
|
-
import { p as K } from "./index-
|
3
|
-
import { u as oA, e as gA } from "./index-
|
2
|
+
import { p as K } from "./index-BmTIzRQK.js";
|
3
|
+
import { u as oA, e as gA } from "./index-13t5duiG.js";
|
4
4
|
import { defineStore as lA } from "pinia";
|
5
5
|
import { useI18n as R, useCoreStore as tA } from "@feedmepos/mf-common";
|
6
|
-
import { c as rA, a as S, P as J } from "./payout-account-
|
6
|
+
import { c as rA, a as S, P as J } from "./payout-account-T8MdKLEm.js";
|
7
7
|
import { useDialogChild as cA, useDialog as nA } from "@feedmepos/ui-library";
|
8
8
|
import { z as F, a as H } from "./validator-D5jtpt9A.js";
|
9
|
-
import { _ as U } from "./index-
|
9
|
+
import { _ as U } from "./index-N-0pmUqi.js";
|
10
10
|
import { P as _ } from "./PDFViewer-BQfgFexr.js";
|
11
|
-
import "./app-
|
11
|
+
import "./app-BJuu8nDL.js";
|
12
12
|
import { _ as BA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
13
13
|
function uA() {
|
14
14
|
return {
|
@@ -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-
|
3
|
-
import { _ as K } from "./index-
|
2
|
+
import { u as O } from "./index-Da_gFUAw.js";
|
3
|
+
import { _ as K } from "./index-N-0pmUqi.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-
|
6
|
-
import { p as D } from "./index-
|
5
|
+
import { P as V } from "./payout-account-T8MdKLEm.js";
|
6
|
+
import { p as D } from "./index-BmTIzRQK.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import "./index-
|
9
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import "./index-13t5duiG.js";
|
9
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CmJzuVvj.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,9 +1,9 @@
|
|
1
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-
|
3
|
-
import { u as K, e as N } from "./index-
|
2
|
+
import { p as P } from "./index-BmTIzRQK.js";
|
3
|
+
import { u as K, e as N } from "./index-13t5duiG.js";
|
4
4
|
import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as X } from "vue-router";
|
6
|
-
import { u as D } from "./index-
|
6
|
+
import { u as D } from "./index-Da_gFUAw.js";
|
7
7
|
import { P as z, _ as ee } from "./PDFViewer-BQfgFexr.js";
|
8
8
|
import { useSnackbar as j, components as te } from "@feedmepos/ui-library";
|
9
9
|
import { u as I } from "./error-K1CakhA9.js";
|
@@ -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-
|
2
|
+
import { u as O } from "./index-Da_gFUAw.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-
|
5
|
+
import { u as G } from "./index-13t5duiG.js";
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
7
|
-
import { r as H } from "./index-
|
7
|
+
import { r as H } from "./index-AuTCjO-K.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-By4LitsV.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-
|
2
|
+
import { g as T, b as R, u as E, e as U } from "./index-13t5duiG.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-
|
5
|
+
import { u as L } from "./index-Da_gFUAw.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-
|
8
|
+
import { r as z } from "./index-AuTCjO-K.js";
|
9
9
|
const _ = {
|
10
10
|
async get(n) {
|
11
11
|
return T(
|
@@ -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-
|
2
|
+
import { u as A } from "./index-13t5duiG.js";
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as _ } from "./index-
|
4
|
+
import { s as _ } from "./index-D4L6fCYa.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-CdmfrBoW.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-
|
10
|
+
import { u as z } from "./index-Da_gFUAw.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,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-
|
2
|
+
import { u as z } from "./index-13t5duiG.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-
|
6
|
+
import { s as A } from "./index-D4L6fCYa.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-CdmfrBoW.js";
|
10
10
|
import { useRouter as L } from "vue-router";
|
11
|
-
import { u as J } from "./index-
|
11
|
+
import { u as J } from "./index-Da_gFUAw.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,11 +1,11 @@
|
|
1
1
|
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as s, createElementVNode as t, toDisplayString as i, createElementBlock as L, unref as m, ref as x, onMounted as H, watch as q, createVNode as n, createTextVNode as u, h as N } from "vue";
|
2
|
-
import { e as E, u as J } from "./index-
|
2
|
+
import { e as E, u as J } from "./index-13t5duiG.js";
|
3
3
|
import { useDialog as Q, useSnackbar as W } from "@feedmepos/ui-library";
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as X, a as Z, t as P, b as ee } from "./assets-
|
5
|
+
import { g as X, a as Z, t as P, b as ee } from "./assets-B4VvWLa_.js";
|
6
6
|
import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
7
|
import { useRouter as ae } from "vue-router";
|
8
|
-
import { s as ne } from "./index-
|
8
|
+
import { s as ne } from "./index-D4L6fCYa.js";
|
9
9
|
import { u as oe } from "./error-K1CakhA9.js";
|
10
10
|
import { w as re } from "./Modal-DB8M9o1T.js";
|
11
11
|
import { h as le } from "./moment-h96o7c8I.js";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as w, resolveComponent as y, openBlock as F, createBlock as M, normalizeClass as z, withCtx as m, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as L, createVNode as o, createTextVNode as u, h as I } from "vue";
|
2
|
-
import { e as C, u as H } from "./index-
|
2
|
+
import { e as C, u as H } from "./index-13t5duiG.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as E } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as q, a as J, t as Q, b as W } from "./assets-
|
5
|
+
import { g as q, a as J, t as Q, b as W } from "./assets-B4VvWLa_.js";
|
6
6
|
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
7
|
import { useRouter as Z } from "vue-router";
|
8
|
-
import { s as ee } from "./index-
|
8
|
+
import { s as ee } from "./index-D4L6fCYa.js";
|
9
9
|
import { useI18n as te, useCoreStore as ae } from "@feedmepos/mf-common";
|
10
10
|
import { h as ne } from "./moment-h96o7c8I.js";
|
11
11
|
const le = /* @__PURE__ */ w({
|
@@ -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-
|
2
|
+
import { e as Ce } from "./index-13t5duiG.js";
|
3
3
|
import { h as ye } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as we } from "./index-
|
5
|
-
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as we } from "./index-Da_gFUAw.js";
|
5
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-CmJzuVvj.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-
|
8
|
+
import { t as Q } from "./index-DFk-uoLY.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-
|
11
|
+
import { g as Se } from "./grafana-By4LitsV.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 V, openBlock as w, createElementBlock as C, Fragment as R, createElementVNode as F, createTextVNode as U, toDisplayString as N, toRef as D, ref as b, watch as G, onMounted as O, computed as B, resolveComponent as f, unref as _, createVNode as g, createBlock as k, withCtx as M, createCommentVNode as T, isRef as P, resolveDynamicComponent as $, normalizeProps as j, mergeProps as L } from "vue";
|
2
|
-
import { u as Y, e as x } from "./index-
|
2
|
+
import { u as Y, e as x } from "./index-13t5duiG.js";
|
3
3
|
import { useRouter as J } from "vue-router";
|
4
|
-
import { t as q } from "./index-
|
4
|
+
import { t as q } from "./index-DFk-uoLY.js";
|
5
5
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as A } from "./index-
|
6
|
+
import { u as A } from "./index-Da_gFUAw.js";
|
7
7
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
8
8
|
import { u as Q } from "./error-K1CakhA9.js";
|
9
9
|
import { z as W, a as X } from "./validator-D5jtpt9A.js";
|
@@ -17,7 +17,7 @@ const Z = /* @__PURE__ */ V({
|
|
17
17
|
}
|
18
18
|
},
|
19
19
|
setup(I) {
|
20
|
-
return (
|
20
|
+
return (m, t) => (w(), C(R, null, [
|
21
21
|
t[0] || (t[0] = F("b", null, "Name", -1)),
|
22
22
|
U(": " + N(I.terminal.name), 1),
|
23
23
|
t[1] || (t[1] = F("br", null, null, -1)),
|
@@ -48,18 +48,18 @@ const Z = /* @__PURE__ */ V({
|
|
48
48
|
}
|
49
49
|
},
|
50
50
|
setup(I) {
|
51
|
-
const { isLoading:
|
51
|
+
const { isLoading: m, startAsyncCall: t } = Y(), v = I, e = D(() => v.terminal), c = b(), u = b(), a = b(-1), o = b({
|
52
52
|
terminalId: ""
|
53
|
-
}),
|
53
|
+
}), d = () => {
|
54
54
|
o.value.terminalId = "", a.value = -1;
|
55
55
|
}, s = () => {
|
56
56
|
if (t(async () => {
|
57
|
-
|
57
|
+
c.value = await q.getRestaurantTerminals(v.terminal.referenceId);
|
58
58
|
}), !v.terminal.ecrs)
|
59
|
-
return
|
59
|
+
return d();
|
60
60
|
const l = v.terminal.ecrs.findIndex((y) => y && y.gateway && y.gateway === "FeedMe");
|
61
61
|
if (l === -1)
|
62
|
-
return
|
62
|
+
return d();
|
63
63
|
a.value = l;
|
64
64
|
const r = v.terminal.ecrs.at(l);
|
65
65
|
r.gateway === "FeedMe" && r.config && (o.value = {
|
@@ -67,7 +67,7 @@ const Z = /* @__PURE__ */ V({
|
|
67
67
|
});
|
68
68
|
};
|
69
69
|
G(e, s), O(s);
|
70
|
-
const
|
70
|
+
const p = B(() => (c.value ?? []).map((l) => ({
|
71
71
|
label: l.name ?? l._id,
|
72
72
|
value: l._id
|
73
73
|
})));
|
@@ -77,7 +77,7 @@ const Z = /* @__PURE__ */ V({
|
|
77
77
|
}
|
78
78
|
return (l, r) => {
|
79
79
|
const y = f("FmCircularProgress"), S = f("FmSelect"), i = f("FmButton"), z = f("FmForm");
|
80
|
-
return _(
|
80
|
+
return _(m) ? (w(), C("div", ee, [
|
81
81
|
g(y, { size: "xxl" })
|
82
82
|
])) : (w(), k(z, {
|
83
83
|
key: 1,
|
@@ -92,7 +92,7 @@ const Z = /* @__PURE__ */ V({
|
|
92
92
|
modelValue: o.value.terminalId,
|
93
93
|
"onUpdate:modelValue": r[0] || (r[0] = (h) => o.value.terminalId = h),
|
94
94
|
label: "Terminal ID",
|
95
|
-
items:
|
95
|
+
items: p.value,
|
96
96
|
rules: _(W)(_(X).string())
|
97
97
|
}, null, 8, ["modelValue", "items", "rules"]),
|
98
98
|
F("div", ae, [
|
@@ -128,7 +128,7 @@ const Z = /* @__PURE__ */ V({
|
|
128
128
|
}
|
129
129
|
},
|
130
130
|
setup(I) {
|
131
|
-
const
|
131
|
+
const m = I, t = K().currentCountry, v = [
|
132
132
|
{
|
133
133
|
label: "Fiuu Malaysia",
|
134
134
|
value: "cc.feedme.payment.rms",
|
@@ -144,36 +144,36 @@ const Z = /* @__PURE__ */ V({
|
|
144
144
|
value: "cc.feedme.payment.fiuu_sg",
|
145
145
|
region: x.F_COUNTRY.enum.SG
|
146
146
|
}
|
147
|
-
], e = D(() =>
|
147
|
+
], e = D(() => m.terminal), c = b(), u = b(-1), a = b({
|
148
148
|
packageId: "",
|
149
149
|
uniqueId: ""
|
150
150
|
}), o = () => {
|
151
151
|
a.value.uniqueId = "", a.value.packageId = "", u.value = -1;
|
152
|
-
},
|
152
|
+
}, d = () => {
|
153
153
|
if (!e.value.gateways)
|
154
154
|
return o();
|
155
|
-
const
|
156
|
-
if (
|
155
|
+
const p = e.value.gateways.findIndex((l) => l && l.gateway && l.gateway === "Fiuu");
|
156
|
+
if (p === -1)
|
157
157
|
return o();
|
158
|
-
u.value =
|
159
|
-
const n = e.value.gateways.at(
|
158
|
+
u.value = p;
|
159
|
+
const n = e.value.gateways.at(p);
|
160
160
|
n.gateway === "Fiuu" && n.config && (a.value = {
|
161
161
|
packageId: n.config.packageId,
|
162
162
|
uniqueId: n.config.uniqueId
|
163
163
|
});
|
164
164
|
};
|
165
|
-
G(e,
|
166
|
-
async function s(
|
165
|
+
G(e, d), O(d);
|
166
|
+
async function s(p) {
|
167
167
|
var n;
|
168
|
-
(n = e.value.gateways) == null || n.splice(
|
168
|
+
(n = e.value.gateways) == null || n.splice(p, 1), m.onUpdate(e.value);
|
169
169
|
}
|
170
|
-
return (
|
170
|
+
return (p, n) => {
|
171
171
|
const l = f("FmSelect"), r = f("FmTextField"), y = f("FmButton"), S = f("FmForm");
|
172
172
|
return w(), k(S, {
|
173
|
-
ref:
|
173
|
+
ref: c.value,
|
174
174
|
class: "flex flex-col gap-16 w-[500px]",
|
175
175
|
onValidationSuccess: n[2] || (n[2] = () => {
|
176
|
-
u.value > -1 ? e.value.gateways[u.value] = { gateway: "Fiuu", config: a.value } : (e.value.gateways || (e.value.gateways = []), e.value.gateways.push({ gateway: "Fiuu", config: a.value })),
|
176
|
+
u.value > -1 ? e.value.gateways[u.value] = { gateway: "Fiuu", config: a.value } : (e.value.gateways || (e.value.gateways = []), e.value.gateways.push({ gateway: "Fiuu", config: a.value })), m.onUpdate(e.value);
|
177
177
|
})
|
178
178
|
}, {
|
179
179
|
default: M(() => [
|
@@ -221,54 +221,54 @@ const Z = /* @__PURE__ */ V({
|
|
221
221
|
}
|
222
222
|
},
|
223
223
|
setup(I) {
|
224
|
-
const
|
224
|
+
const m = I, t = D(() => m.terminal), v = b(), e = b(-1), c = b({
|
225
225
|
merchantId: "",
|
226
226
|
terminalId: "",
|
227
227
|
privateKey: ""
|
228
228
|
}), u = () => {
|
229
|
-
|
229
|
+
c.value.merchantId = "", c.value.terminalId = "", c.value.privateKey = "", e.value = -1;
|
230
230
|
}, a = () => {
|
231
231
|
if (!t.value.ecrs)
|
232
232
|
return u();
|
233
|
-
const
|
234
|
-
if (
|
233
|
+
const d = t.value.ecrs.findIndex((p) => p && p.gateway && p.gateway === "Ghl");
|
234
|
+
if (d === -1)
|
235
235
|
return u();
|
236
|
-
e.value =
|
237
|
-
const s = t.value.ecrs.at(
|
238
|
-
s.gateway === "Ghl" && s.config && (
|
236
|
+
e.value = d;
|
237
|
+
const s = t.value.ecrs.at(d);
|
238
|
+
s.gateway === "Ghl" && s.config && (c.value = {
|
239
239
|
merchantId: s.config.merchantId,
|
240
240
|
terminalId: s.config.terminalId,
|
241
241
|
privateKey: s.config.privateKey
|
242
242
|
});
|
243
243
|
};
|
244
244
|
G(t, a), O(a);
|
245
|
-
async function o(
|
245
|
+
async function o(d) {
|
246
246
|
var s;
|
247
|
-
(s = t.value.ecrs) == null || s.splice(
|
247
|
+
(s = t.value.ecrs) == null || s.splice(d, 1), m.onUpdate(t.value);
|
248
248
|
}
|
249
|
-
return (
|
250
|
-
const
|
249
|
+
return (d, s) => {
|
250
|
+
const p = f("FmTextField"), n = f("FmTextarea"), l = f("FmButton"), r = f("FmForm");
|
251
251
|
return w(), k(r, {
|
252
252
|
ref: v.value,
|
253
253
|
class: "flex flex-col gap-16 w-[500px]",
|
254
254
|
onValidationSuccess: s[3] || (s[3] = () => {
|
255
|
-
e.value > -1 ? t.value.ecrs[e.value] = { gateway: "Ghl", config:
|
255
|
+
e.value > -1 ? t.value.ecrs[e.value] = { gateway: "Ghl", config: c.value } : (t.value.ecrs || (t.value.ecrs = []), t.value.ecrs.push({ gateway: "Ghl", config: c.value })), m.onUpdate(t.value);
|
256
256
|
})
|
257
257
|
}, {
|
258
258
|
default: M(() => [
|
259
|
-
g(
|
260
|
-
modelValue:
|
261
|
-
"onUpdate:modelValue": s[0] || (s[0] = (y) =>
|
259
|
+
g(p, {
|
260
|
+
modelValue: c.value.merchantId,
|
261
|
+
"onUpdate:modelValue": s[0] || (s[0] = (y) => c.value.merchantId = y),
|
262
262
|
label: "Merchant ID"
|
263
263
|
}, null, 8, ["modelValue"]),
|
264
|
-
g(
|
265
|
-
modelValue:
|
266
|
-
"onUpdate:modelValue": s[1] || (s[1] = (y) =>
|
264
|
+
g(p, {
|
265
|
+
modelValue: c.value.terminalId,
|
266
|
+
"onUpdate:modelValue": s[1] || (s[1] = (y) => c.value.terminalId = y),
|
267
267
|
label: "Terminal ID"
|
268
268
|
}, null, 8, ["modelValue"]),
|
269
269
|
g(n, {
|
270
|
-
modelValue:
|
271
|
-
"onUpdate:modelValue": s[2] || (s[2] = (y) =>
|
270
|
+
modelValue: c.value.privateKey,
|
271
|
+
"onUpdate:modelValue": s[2] || (s[2] = (y) => c.value.privateKey = y),
|
272
272
|
label: "Private Key"
|
273
273
|
}, null, 8, ["modelValue"]),
|
274
274
|
F("div", oe, [
|
@@ -300,10 +300,10 @@ const Z = /* @__PURE__ */ V({
|
|
300
300
|
}
|
301
301
|
},
|
302
302
|
setup(I) {
|
303
|
-
const { isLoading:
|
303
|
+
const { isLoading: m, startAsyncCall: t } = Y(!1), v = E(), e = b({
|
304
304
|
enable: !1,
|
305
305
|
password: []
|
306
|
-
}),
|
306
|
+
}), c = I;
|
307
307
|
function u() {
|
308
308
|
return e.value.enable && e.value.password.filter((a) => !!a).length !== 6 ? v.open({
|
309
309
|
type: "error",
|
@@ -313,20 +313,20 @@ const Z = /* @__PURE__ */ V({
|
|
313
313
|
a.enable && Object.assign(a, {
|
314
314
|
password: e.value.password.join("")
|
315
315
|
});
|
316
|
-
const o = await q.kioskModeRequest(
|
316
|
+
const o = await q.kioskModeRequest(c.terminal._id, a);
|
317
317
|
if (o === "OK")
|
318
318
|
return v.open({ type: "info", message: "Kiosk mode applied successfully." });
|
319
|
-
let
|
320
|
-
return o === "client_not_connected" && (
|
319
|
+
let d = o;
|
320
|
+
return o === "client_not_connected" && (d = "Terminal not connected to the websocket server."), o.startsWith("terminal: ") && (d = o.replaceAll("terminal: ", "")), v.open({
|
321
321
|
type: "error",
|
322
|
-
message:
|
322
|
+
message: d
|
323
323
|
});
|
324
324
|
});
|
325
325
|
}
|
326
326
|
return (a, o) => {
|
327
|
-
const
|
327
|
+
const d = f("FmSwitch"), s = f("FmPinField"), p = f("FmButton");
|
328
328
|
return w(), C(R, null, [
|
329
|
-
g(
|
329
|
+
g(d, {
|
330
330
|
modelValue: e.value.enable,
|
331
331
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => e.value.enable = n),
|
332
332
|
label: "Enable Kiosk Mode?"
|
@@ -339,11 +339,11 @@ const Z = /* @__PURE__ */ V({
|
|
339
339
|
}, null, 8, ["modelValue"])
|
340
340
|
])) : T("", !0),
|
341
341
|
F("div", se, [
|
342
|
-
g(
|
342
|
+
g(p, {
|
343
343
|
variant: "primary",
|
344
344
|
label: "Send",
|
345
345
|
icon: "send",
|
346
|
-
loading: _(
|
346
|
+
loading: _(m),
|
347
347
|
onclick: u
|
348
348
|
}, null, 8, ["loading"])
|
349
349
|
])
|
@@ -359,7 +359,7 @@ const Z = /* @__PURE__ */ V({
|
|
359
359
|
}
|
360
360
|
},
|
361
361
|
setup(I) {
|
362
|
-
const { settingTab:
|
362
|
+
const { settingTab: m } = A({
|
363
363
|
settingTab: "kiosk_mode"
|
364
364
|
}), t = [
|
365
365
|
{
|
@@ -367,8 +367,8 @@ const Z = /* @__PURE__ */ V({
|
|
367
367
|
value: "kiosk_mode",
|
368
368
|
render: ie
|
369
369
|
}
|
370
|
-
], v = I, e = B(() => t.find((
|
371
|
-
return (
|
370
|
+
], v = I, e = B(() => t.find((c) => c.value === m.value));
|
371
|
+
return (c, u) => {
|
372
372
|
var o;
|
373
373
|
const a = f("FmTabs");
|
374
374
|
return w(), C(R, null, [
|
@@ -377,12 +377,12 @@ const Z = /* @__PURE__ */ V({
|
|
377
377
|
U(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
|
378
378
|
], -1)),
|
379
379
|
g(a, {
|
380
|
-
"model-value": _(
|
381
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
380
|
+
"model-value": _(m),
|
381
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => P(m) ? m.value = d : null),
|
382
382
|
class: "mb-6",
|
383
383
|
items: t
|
384
384
|
}, null, 8, ["model-value"]),
|
385
|
-
_(
|
385
|
+
_(m) ? (w(), k($((o = e.value) == null ? void 0 : o.render), j(L({ key: 0 }, { terminal: v.terminal })), null, 16)) : T("", !0)
|
386
386
|
], 64);
|
387
387
|
};
|
388
388
|
}
|
@@ -399,26 +399,26 @@ const Z = /* @__PURE__ */ V({
|
|
399
399
|
}
|
400
400
|
},
|
401
401
|
setup(I) {
|
402
|
-
const
|
402
|
+
const m = I, t = K().currentCountry, v = [
|
403
403
|
{
|
404
404
|
label: "Softspace Malaysia",
|
405
405
|
value: "cc.feedme.payment.softspace_my",
|
406
406
|
region: x.F_COUNTRY.enum.MY
|
407
407
|
}
|
408
|
-
], e = D(() =>
|
408
|
+
], e = D(() => m.terminal), c = b(), u = b(-1), a = b({
|
409
409
|
packageId: "",
|
410
410
|
uniqueId: "",
|
411
411
|
developerId: ""
|
412
412
|
}), o = () => {
|
413
|
-
a.value.uniqueId = "", a.value.packageId = "", u.value = -1;
|
414
|
-
},
|
413
|
+
a.value.uniqueId = "", a.value.packageId = "", a.value.developerId = "", u.value = -1;
|
414
|
+
}, d = () => {
|
415
415
|
if (!e.value.gateways)
|
416
416
|
return o();
|
417
|
-
const
|
418
|
-
if (
|
417
|
+
const p = e.value.gateways.findIndex((r) => r && r.gateway && r.gateway === "Softspace");
|
418
|
+
if (p === -1)
|
419
419
|
return o();
|
420
|
-
u.value =
|
421
|
-
const n = e.value.gateways.at(
|
420
|
+
u.value = p;
|
421
|
+
const n = e.value.gateways.at(p);
|
422
422
|
if (n.gateway !== "Softspace" || !n.config)
|
423
423
|
return;
|
424
424
|
const l = JSON.parse(n.config.uniqueId);
|
@@ -428,19 +428,19 @@ const Z = /* @__PURE__ */ V({
|
|
428
428
|
developerId: l.developerId
|
429
429
|
};
|
430
430
|
};
|
431
|
-
G(e,
|
432
|
-
async function s(
|
431
|
+
G(e, d), O(d);
|
432
|
+
async function s(p) {
|
433
433
|
var n;
|
434
|
-
(n = e.value.gateways) == null || n.splice(
|
434
|
+
(n = e.value.gateways) == null || n.splice(p, 1), m.onUpdate(e.value);
|
435
435
|
}
|
436
|
-
return (
|
436
|
+
return (p, n) => {
|
437
437
|
const l = f("FmSelect"), r = f("FmTextField"), y = f("FmButton"), S = f("FmForm");
|
438
438
|
return w(), k(S, {
|
439
|
-
ref:
|
439
|
+
ref: c.value,
|
440
440
|
class: "flex flex-col gap-16 w-[500px]",
|
441
441
|
onValidationSuccess: n[3] || (n[3] = () => {
|
442
442
|
const i = { gateway: "Softspace", config: { packageId: a.value.packageId, uniqueId: JSON.stringify({ uniqueId: a.value.uniqueId, developerId: a.value.developerId }) } };
|
443
|
-
u.value > -1 ? e.value.gateways[u.value] = i : (e.value.gateways || (e.value.gateways = []), e.value.gateways.push(i)),
|
443
|
+
u.value > -1 ? e.value.gateways[u.value] = i : (e.value.gateways || (e.value.gateways = []), e.value.gateways.push(i)), m.onUpdate(e.value);
|
444
444
|
})
|
445
445
|
}, {
|
446
446
|
default: M(() => [
|
@@ -489,21 +489,21 @@ const Z = /* @__PURE__ */ V({
|
|
489
489
|
}
|
490
490
|
},
|
491
491
|
setup(I) {
|
492
|
-
const
|
492
|
+
const m = I, { tab: t } = A({
|
493
493
|
tab: "information"
|
494
|
-
}), { isLoading: v, startAsyncCall: e } = Y(!0),
|
494
|
+
}), { isLoading: v, startAsyncCall: e } = Y(!0), c = J(), u = E(), a = b();
|
495
495
|
async function o(l) {
|
496
496
|
e(async () => {
|
497
497
|
try {
|
498
498
|
await q.updateById(
|
499
|
-
|
499
|
+
m.terminalId,
|
500
500
|
{
|
501
501
|
name: l.name,
|
502
502
|
status: l.status,
|
503
503
|
ecrs: l.ecrs ?? [],
|
504
504
|
gateways: l.gateways ?? []
|
505
505
|
}
|
506
|
-
), a.value = await q.readById(
|
506
|
+
), a.value = await q.readById(m.terminalId), u.open({
|
507
507
|
type: "success",
|
508
508
|
message: "Terminal updated successfully"
|
509
509
|
});
|
@@ -516,7 +516,7 @@ const Z = /* @__PURE__ */ V({
|
|
516
516
|
}
|
517
517
|
});
|
518
518
|
}
|
519
|
-
const
|
519
|
+
const d = [
|
520
520
|
{
|
521
521
|
label: "Information",
|
522
522
|
value: "information",
|
@@ -559,13 +559,13 @@ const Z = /* @__PURE__ */ V({
|
|
559
559
|
onlyFor: ["POS", "KIOSK"],
|
560
560
|
region: [x.F_COUNTRY.enum.MY]
|
561
561
|
}
|
562
|
-
], s = K().currentCountry,
|
562
|
+
], s = K().currentCountry, p = B(() => {
|
563
563
|
var l;
|
564
|
-
return (l =
|
564
|
+
return (l = d.find((r) => r.value === t.value)) == null ? void 0 : l.render;
|
565
565
|
});
|
566
566
|
async function n() {
|
567
567
|
e(async () => {
|
568
|
-
a.value = await q.readById(
|
568
|
+
a.value = await q.readById(m.terminalId);
|
569
569
|
});
|
570
570
|
}
|
571
571
|
return O(n), (l, r) => {
|
@@ -574,16 +574,16 @@ const Z = /* @__PURE__ */ V({
|
|
574
574
|
return w(), k(H, {
|
575
575
|
title: `Terminal (${(S = a.value) == null ? void 0 : S._id})`,
|
576
576
|
loading: _(v),
|
577
|
-
onBack: _(
|
577
|
+
onBack: _(c).back
|
578
578
|
}, {
|
579
579
|
default: M(() => [
|
580
580
|
g(y, {
|
581
581
|
"model-value": _(t),
|
582
582
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => P(t) ? t.value = i : null),
|
583
583
|
class: "mb-6",
|
584
|
-
items:
|
584
|
+
items: d.filter((i) => !i.onlyFor || i.onlyFor.includes(a.value.deviceType)).filter((i) => !i.region || i.region.includes(_(s) ?? _(x.F_COUNTRY).enum.MY))
|
585
585
|
}, null, 8, ["model-value", "items"]),
|
586
|
-
_(t) ? (w(), k($(
|
586
|
+
_(t) ? (w(), k($(p.value), j(L({ key: 0 }, {
|
587
587
|
terminal: a.value,
|
588
588
|
onUpdate: o
|
589
589
|
})), null, 16)) : T("", !0)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as R, withCtx as w, createElementVNode as _, toDisplayString as V, createElementBlock as S, unref as d, createVNode as f, Fragment as Y, 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-
|
2
|
+
import { g as P, a as U, t as g, b as B, c as N } from "./assets-B4VvWLa_.js";
|
3
3
|
import { h as T } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as G } from "./index-
|
4
|
+
import { u as G } from "./index-Da_gFUAw.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 x } 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-
|
12
|
-
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-
|
13
|
-
import { e as D } from "./index-
|
11
|
+
import { g as J } from "./grafana-By4LitsV.js";
|
12
|
+
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-CmJzuVvj.js";
|
13
|
+
import { e as D } from "./index-13t5duiG.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",
|