@feedmepos/mf-payment 1.3.12 → 1.3.14
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/{OnboardForm-cIQFP7qq.js → OnboardForm-DIkc0eX_.js} +4 -4
- package/dist/{OnboardForm-B7eW8jKT.js → OnboardForm-DrjOiLDz.js} +4 -4
- package/dist/{OnboardSubmission-YAZAgP1W.js → OnboardSubmission-BNU8JEjd.js} +5 -5
- package/dist/OnboardSubmission-C-bNluyh.js +173 -0
- package/dist/{PayoutAccount-351bOKrS.js → PayoutAccount-BoEhEonY.js} +5 -5
- package/dist/{PayoutAccount-BTUMCZSC.js → PayoutAccount-M0uzba0w.js} +5 -5
- package/dist/{PayoutAccountSetting-C2VV_P8I.js → PayoutAccountSetting-BbMJO09b.js} +3 -3
- package/dist/{Restaurant-C2RxiiMA.js → Restaurant-CwdFy65Q.js} +4 -4
- package/dist/{RestaurantSetting-i6ZrbICS.js → RestaurantSetting-DcHUxBYh.js} +3 -3
- package/dist/{Settlement-OhzSzIAC.js → Settlement-ByfwQDjy.js} +3 -3
- package/dist/{Settlement-CiYbiWnh.js → Settlement-PxISyjHU.js} +3 -3
- package/dist/{SettlementTransactions-DDZGwNyT.js → SettlementTransactions-D5yeeyDP.js} +3 -3
- package/dist/{SettlementTransactions-BUxBMEhZ.js → SettlementTransactions-DidiqbXG.js} +3 -3
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CBRF0-0x.js → Status.vue_vue_type_script_setup_true_lang-kehDoQ6j.js} +1 -1
- package/dist/{Terminal-DaZQ2HlT.js → Terminal-C--amJVv.js} +5 -5
- package/dist/{TerminalSetting-DT4ZicMV.js → TerminalSetting-Bgn-I2bk.js} +69 -69
- package/dist/{Transaction-b4hfH_Gr.js → Transaction-BMc3gQy1.js} +6 -6
- package/dist/{Transaction-CBXatTdT.js → Transaction-Bd_4iMOT.js} +5 -5
- package/dist/{TransactionOld-vUHA-HK7.js → TransactionOld-8-sEspIt.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-DSC0IYab.js → TransactionTable.vue_vue_type_script_setup_true_lang-BayIh55f.js} +3 -3
- package/dist/{app-C_eXBmWD.js → app-Cn0RrIWF.js} +90 -80
- package/dist/app.d.ts +11 -1
- package/dist/app.js +1 -1
- package/dist/{assets-DQsR-1TB.js → assets-CTH4trdc.js} +1 -1
- package/dist/{grafana-CK4g6ZoJ.js → grafana-bPLmWYzm.js} +1 -1
- package/dist/{index-BngXbjSX.js → index-98tll3Hu.js} +1 -1
- package/dist/{index-xwX5AZeh.js → index-B5zEwG__.js} +1 -1
- package/dist/{index-DAUG5toW.js → index-CJPiBIRm.js} +446 -444
- package/dist/{index-BhvhNgSj.js → index-CeL25Pov.js} +2 -2
- package/dist/{index-Cd7W0vb7.js → index-DPY6iypt.js} +1 -1
- package/dist/{index-DSEt22V0.js → index-DZYRliw9.js} +1 -1
- package/dist/{index-CZBPN8fF.js → index-cU53UWIn.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BIc1-DIt.js → index.vue_vue_type_script_setup_true_lang-CaVufHjO.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BxDix6Cp.js → payout-account-BaACtyWO.js} +3 -3
- package/dist/{plugins-BQd6KOEt.js → plugins-BjAF-CDe.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +32 -32
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +32 -32
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +32 -32
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +6 -6
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +64 -64
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +32 -32
- package/package.json +2 -2
- package/dist/OnboardSubmission-C9MPsDJL.js +0 -153
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as V, openBlock as f, createElementBlock as N, Fragment as
|
2
|
-
import { u as z, e as U } from "./index-
|
1
|
+
import { defineComponent as V, openBlock as f, createElementBlock as N, Fragment as M, createElementVNode as _, createTextVNode as $, toDisplayString as B, ref as I, resolveComponent as g, createVNode as v, createCommentVNode as C, unref as S, computed as q, isRef as h, createBlock as w, resolveDynamicComponent as Y, normalizeProps as K, mergeProps as L, toRef as P, watch as A, onMounted as O, withCtx as R, renderList as G } from "vue";
|
2
|
+
import { u as z, e as U } from "./index-CJPiBIRm.js";
|
3
3
|
import { useRouter as W } from "vue-router";
|
4
|
-
import { t as
|
4
|
+
import { t as D } from "./index-B5zEwG__.js";
|
5
5
|
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as E } from "./index-
|
6
|
+
import { u as E } from "./index-98tll3Hu.js";
|
7
7
|
import { useSnackbar as Q } from "@feedmepos/ui-library";
|
8
8
|
import { u as Z } from "./error-K1CakhA9.js";
|
9
9
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
@@ -17,18 +17,18 @@ const te = /* @__PURE__ */ V({
|
|
17
17
|
}
|
18
18
|
},
|
19
19
|
setup(F) {
|
20
|
-
return (d, a) => (f(), N(
|
20
|
+
return (d, a) => (f(), N(M, null, [
|
21
21
|
a[0] || (a[0] = _("b", null, "Name", -1)),
|
22
|
-
|
22
|
+
$(": " + B(F.terminal.name), 1),
|
23
23
|
a[1] || (a[1] = _("br", null, null, -1)),
|
24
24
|
a[2] || (a[2] = _("b", null, "Status", -1)),
|
25
|
-
|
25
|
+
$(": " + B(F.terminal.status), 1),
|
26
26
|
a[3] || (a[3] = _("br", null, null, -1)),
|
27
27
|
a[4] || (a[4] = _("b", null, "Device ID", -1)),
|
28
|
-
|
28
|
+
$(": " + B(F.terminal.deviceId ?? "-"), 1),
|
29
29
|
a[5] || (a[5] = _("br", null, null, -1)),
|
30
30
|
a[6] || (a[6] = _("b", null, "Device Type", -1)),
|
31
|
-
|
31
|
+
$(": " + B(F.terminal.deviceType ?? "-"), 1),
|
32
32
|
a[7] || (a[7] = _("br", null, null, -1))
|
33
33
|
], 64));
|
34
34
|
}
|
@@ -54,7 +54,7 @@ const te = /* @__PURE__ */ V({
|
|
54
54
|
m.enable && Object.assign(m, {
|
55
55
|
password: n.value.password.join("")
|
56
56
|
});
|
57
|
-
const s = await
|
57
|
+
const s = await D.kioskModeRequest(r.terminal._id, m);
|
58
58
|
if (s === "OK")
|
59
59
|
return b.open({ type: "info", message: "Kiosk mode applied successfully." });
|
60
60
|
let y = s;
|
@@ -66,7 +66,7 @@ const te = /* @__PURE__ */ V({
|
|
66
66
|
}
|
67
67
|
return (m, s) => {
|
68
68
|
const y = g("FmSwitch"), c = g("FmPinField"), i = g("FmButton");
|
69
|
-
return f(), N(
|
69
|
+
return f(), N(M, null, [
|
70
70
|
v(y, {
|
71
71
|
modelValue: n.value.enable,
|
72
72
|
"onUpdate:modelValue": s[0] || (s[0] = (t) => n.value.enable = t),
|
@@ -108,14 +108,14 @@ const te = /* @__PURE__ */ V({
|
|
108
108
|
value: "kiosk_mode",
|
109
109
|
render: oe
|
110
110
|
}
|
111
|
-
], b = F, n =
|
111
|
+
], b = F, n = q(() => a.find((r) => r.value === d.value));
|
112
112
|
return (r, e) => {
|
113
113
|
var s;
|
114
114
|
const m = g("FmTabs");
|
115
|
-
return f(), N(
|
115
|
+
return f(), N(M, null, [
|
116
116
|
e[1] || (e[1] = _("p", { className: "mt-1 my-6 text-gray-600" }, [
|
117
117
|
_("b", null, "Note: "),
|
118
|
-
|
118
|
+
$(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
|
119
119
|
], -1)),
|
120
120
|
v(m, {
|
121
121
|
"model-value": S(d),
|
@@ -123,7 +123,7 @@ const te = /* @__PURE__ */ V({
|
|
123
123
|
class: "mb-6",
|
124
124
|
items: a
|
125
125
|
}, null, 8, ["model-value"]),
|
126
|
-
S(d) ? (f(), w(
|
126
|
+
S(d) ? (f(), w(Y((s = n.value) == null ? void 0 : s.render), K(L({ key: 0 }, { terminal: b.terminal })), null, 16)) : C("", !0)
|
127
127
|
], 64);
|
128
128
|
};
|
129
129
|
}
|
@@ -178,7 +178,7 @@ const te = /* @__PURE__ */ V({
|
|
178
178
|
gateway: "Digio",
|
179
179
|
region: U.F_COUNTRY.enum.TH
|
180
180
|
}
|
181
|
-
], n =
|
181
|
+
], n = P(() => d.terminal), r = I(), e = I({
|
182
182
|
packageId: "",
|
183
183
|
uniqueId: "",
|
184
184
|
developerId: "",
|
@@ -212,12 +212,12 @@ const te = /* @__PURE__ */ V({
|
|
212
212
|
return;
|
213
213
|
}
|
214
214
|
};
|
215
|
-
|
215
|
+
A(n, s), O(s);
|
216
216
|
async function y(t) {
|
217
217
|
var l;
|
218
218
|
(l = n.value.gateways) == null || l.splice(t, 1), d.onUpdate(n.value);
|
219
219
|
}
|
220
|
-
const c =
|
220
|
+
const c = q(() => b.filter((t) => t.region === a.value)), i = q(() => c.value.find((t) => t.value === e.value.packageId));
|
221
221
|
return (t, l) => {
|
222
222
|
const u = g("FmSelect"), p = g("FmTextField"), x = g("FmCheckbox"), o = g("FmButton"), T = g("FmForm");
|
223
223
|
return f(), w(T, {
|
@@ -246,14 +246,14 @@ const te = /* @__PURE__ */ V({
|
|
246
246
|
label: "Package ID",
|
247
247
|
items: c.value
|
248
248
|
}, null, 8, ["modelValue", "items"]),
|
249
|
-
i.value && i.value.isLegacy ? (f(), N(
|
249
|
+
i.value && i.value.isLegacy ? (f(), N(M, { key: 0 }, [
|
250
250
|
v(p, {
|
251
251
|
modelValue: e.value.uniqueId,
|
252
252
|
"onUpdate:modelValue": l[1] || (l[1] = (k) => e.value.uniqueId = k),
|
253
253
|
label: "Unique ID (TID)"
|
254
254
|
}, null, 8, ["modelValue"]),
|
255
255
|
i.value.isOutdated ? (f(), N("span", ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : C("", !0)
|
256
|
-
], 64)) : (f(), N(
|
256
|
+
], 64)) : (f(), N(M, { key: 1 }, [
|
257
257
|
v(p, {
|
258
258
|
modelValue: e.value.developerId,
|
259
259
|
"onUpdate:modelValue": l[2] || (l[2] = (k) => e.value.developerId = k),
|
@@ -307,13 +307,13 @@ const te = /* @__PURE__ */ V({
|
|
307
307
|
}
|
308
308
|
},
|
309
309
|
setup(F) {
|
310
|
-
const { isLoading: d, startAsyncCall: a } = z(), b = F, n =
|
310
|
+
const { isLoading: d, startAsyncCall: a } = z(), b = F, n = P(() => b.terminal), r = I(), e = I(), m = I(-1), s = I({
|
311
311
|
terminalId: ""
|
312
312
|
}), y = () => {
|
313
313
|
s.value.terminalId = "", m.value = -1;
|
314
314
|
}, c = () => {
|
315
315
|
if (a(async () => {
|
316
|
-
r.value = await
|
316
|
+
r.value = await D.getRestaurantTerminals(b.terminal.referenceId);
|
317
317
|
}), !b.terminal.ecrs)
|
318
318
|
return y();
|
319
319
|
const l = b.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
|
@@ -325,8 +325,8 @@ const te = /* @__PURE__ */ V({
|
|
325
325
|
terminalId: u.config.terminalId
|
326
326
|
});
|
327
327
|
};
|
328
|
-
|
329
|
-
const i =
|
328
|
+
A(n, c), O(c);
|
329
|
+
const i = q(() => (r.value ?? []).map((l) => ({
|
330
330
|
label: l.name ?? l._id,
|
331
331
|
value: l._id
|
332
332
|
})));
|
@@ -387,7 +387,7 @@ const te = /* @__PURE__ */ V({
|
|
387
387
|
}
|
388
388
|
},
|
389
389
|
setup(F) {
|
390
|
-
const d = F, a =
|
390
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I({
|
391
391
|
merchantId: "",
|
392
392
|
terminalId: "",
|
393
393
|
privateKey: ""
|
@@ -407,7 +407,7 @@ const te = /* @__PURE__ */ V({
|
|
407
407
|
privateKey: c.config.privateKey
|
408
408
|
});
|
409
409
|
};
|
410
|
-
|
410
|
+
A(a, m), O(m);
|
411
411
|
async function s(y) {
|
412
412
|
var c;
|
413
413
|
(c = a.value.ecrs) == null || c.splice(y, 1), d.onUpdate(a.value);
|
@@ -470,7 +470,7 @@ const te = /* @__PURE__ */ V({
|
|
470
470
|
}
|
471
471
|
},
|
472
472
|
setup(F) {
|
473
|
-
const d = F, a =
|
473
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I(), e = I({
|
474
474
|
ip: "",
|
475
475
|
receiptName: "",
|
476
476
|
cardTypes: []
|
@@ -491,7 +491,7 @@ const te = /* @__PURE__ */ V({
|
|
491
491
|
cardTypes: ((u = l.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
|
492
492
|
});
|
493
493
|
};
|
494
|
-
|
494
|
+
A(a, s), O(s);
|
495
495
|
async function y(i) {
|
496
496
|
var t;
|
497
497
|
(t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
|
@@ -550,7 +550,7 @@ const te = /* @__PURE__ */ V({
|
|
550
550
|
})
|
551
551
|
]),
|
552
552
|
_("div", fe, [
|
553
|
-
(f(!0), N(
|
553
|
+
(f(!0), N(M, null, G(e.value.cardTypes, (o) => (f(), w(p, {
|
554
554
|
key: o,
|
555
555
|
label: o,
|
556
556
|
removable: !0,
|
@@ -590,7 +590,7 @@ const te = /* @__PURE__ */ V({
|
|
590
590
|
}
|
591
591
|
},
|
592
592
|
setup(F) {
|
593
|
-
const d = F, a =
|
593
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I(), e = I({
|
594
594
|
ip: "",
|
595
595
|
receiptName: "",
|
596
596
|
cardTypes: []
|
@@ -611,7 +611,7 @@ const te = /* @__PURE__ */ V({
|
|
611
611
|
cardTypes: ((u = l.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
|
612
612
|
});
|
613
613
|
};
|
614
|
-
|
614
|
+
A(a, s), O(s);
|
615
615
|
async function y(i) {
|
616
616
|
var t;
|
617
617
|
(t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
|
@@ -670,7 +670,7 @@ const te = /* @__PURE__ */ V({
|
|
670
670
|
})
|
671
671
|
]),
|
672
672
|
_("div", Ie, [
|
673
|
-
(f(!0), N(
|
673
|
+
(f(!0), N(M, null, G(e.value.cardTypes, (o) => (f(), w(p, {
|
674
674
|
key: o,
|
675
675
|
label: o,
|
676
676
|
removable: !0,
|
@@ -710,7 +710,7 @@ const te = /* @__PURE__ */ V({
|
|
710
710
|
}
|
711
711
|
},
|
712
712
|
setup(F) {
|
713
|
-
const d = F, a =
|
713
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I(), e = I({
|
714
714
|
ip: "",
|
715
715
|
receiptName: "",
|
716
716
|
cardTypes: []
|
@@ -731,7 +731,7 @@ const te = /* @__PURE__ */ V({
|
|
731
731
|
cardTypes: ((u = l.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
|
732
732
|
});
|
733
733
|
};
|
734
|
-
|
734
|
+
A(a, s), O(s);
|
735
735
|
async function y(i) {
|
736
736
|
var t;
|
737
737
|
(t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
|
@@ -790,7 +790,7 @@ const te = /* @__PURE__ */ V({
|
|
790
790
|
})
|
791
791
|
]),
|
792
792
|
_("div", xe, [
|
793
|
-
(f(!0), N(
|
793
|
+
(f(!0), N(M, null, G(e.value.cardTypes, (o) => (f(), w(p, {
|
794
794
|
key: o,
|
795
795
|
label: o,
|
796
796
|
removable: !0,
|
@@ -830,7 +830,7 @@ const te = /* @__PURE__ */ V({
|
|
830
830
|
}
|
831
831
|
},
|
832
832
|
setup(F) {
|
833
|
-
const d = F, a =
|
833
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I(), e = I({
|
834
834
|
ip: "",
|
835
835
|
receiptName: "",
|
836
836
|
cardTypes: []
|
@@ -851,7 +851,7 @@ const te = /* @__PURE__ */ V({
|
|
851
851
|
cardTypes: ((u = l.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
|
852
852
|
});
|
853
853
|
};
|
854
|
-
|
854
|
+
A(a, s), O(s);
|
855
855
|
async function y(i) {
|
856
856
|
var t;
|
857
857
|
(t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
|
@@ -910,7 +910,7 @@ const te = /* @__PURE__ */ V({
|
|
910
910
|
})
|
911
911
|
]),
|
912
912
|
_("div", Ve, [
|
913
|
-
(f(!0), N(
|
913
|
+
(f(!0), N(M, null, G(e.value.cardTypes, (o) => (f(), w(p, {
|
914
914
|
key: o,
|
915
915
|
label: o,
|
916
916
|
removable: !0,
|
@@ -937,7 +937,7 @@ const te = /* @__PURE__ */ V({
|
|
937
937
|
}, 512);
|
938
938
|
};
|
939
939
|
}
|
940
|
-
}),
|
940
|
+
}), Me = { class: "flex items-end" }, qe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Oe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ V({
|
941
941
|
__name: "KBankGateway",
|
942
942
|
props: {
|
943
943
|
terminal: {
|
@@ -950,7 +950,7 @@ const te = /* @__PURE__ */ V({
|
|
950
950
|
}
|
951
951
|
},
|
952
952
|
setup(F) {
|
953
|
-
const d = F, a =
|
953
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I(), e = I({
|
954
954
|
receiptName: "",
|
955
955
|
cardTypes: []
|
956
956
|
}), m = () => {
|
@@ -969,7 +969,7 @@ const te = /* @__PURE__ */ V({
|
|
969
969
|
cardTypes: ((u = l.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
|
970
970
|
});
|
971
971
|
};
|
972
|
-
|
972
|
+
A(a, s), O(s);
|
973
973
|
async function y(i) {
|
974
974
|
var t;
|
975
975
|
(t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
|
@@ -1009,7 +1009,7 @@ const te = /* @__PURE__ */ V({
|
|
1009
1009
|
label: "Receipt Payment Name",
|
1010
1010
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
1011
1011
|
}, null, 8, ["modelValue"]),
|
1012
|
-
_("div",
|
1012
|
+
_("div", Me, [
|
1013
1013
|
v(l, {
|
1014
1014
|
modelValue: r.value,
|
1015
1015
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
@@ -1022,8 +1022,8 @@ const te = /* @__PURE__ */ V({
|
|
1022
1022
|
onClick: c
|
1023
1023
|
})
|
1024
1024
|
]),
|
1025
|
-
_("div",
|
1026
|
-
(f(!0), N(
|
1025
|
+
_("div", qe, [
|
1026
|
+
(f(!0), N(M, null, G(e.value.cardTypes, (o) => (f(), w(p, {
|
1027
1027
|
key: o,
|
1028
1028
|
label: o,
|
1029
1029
|
removable: !0,
|
@@ -1050,7 +1050,7 @@ const te = /* @__PURE__ */ V({
|
|
1050
1050
|
}, 512);
|
1051
1051
|
};
|
1052
1052
|
}
|
1053
|
-
}),
|
1053
|
+
}), Pe = { class: "flex items-center" }, Ae = { class: "w-[260px] self-start" }, $e = { class: "flex-1" }, De = /* @__PURE__ */ V({
|
1054
1054
|
__name: "EcrGateway",
|
1055
1055
|
props: {
|
1056
1056
|
terminal: {
|
@@ -1106,14 +1106,14 @@ const te = /* @__PURE__ */ V({
|
|
1106
1106
|
render: Re,
|
1107
1107
|
region: [U.F_COUNTRY.enum.TH]
|
1108
1108
|
}
|
1109
|
-
], b =
|
1109
|
+
], b = q(() => a.find((s) => s.value === e.value)), n = j().currentCountry, r = q(() => a.filter((s) => !s.region || s.region.includes(n.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
|
1110
1110
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
1111
1111
|
});
|
1112
1112
|
return (s, y) => {
|
1113
1113
|
var i;
|
1114
1114
|
const c = g("FmTabs");
|
1115
|
-
return f(), N("div",
|
1116
|
-
_("div",
|
1115
|
+
return f(), N("div", Pe, [
|
1116
|
+
_("div", Ae, [
|
1117
1117
|
v(c, {
|
1118
1118
|
"model-value": S(e),
|
1119
1119
|
"onUpdate:modelValue": y[0] || (y[0] = (t) => h(e) ? e.value = t : null),
|
@@ -1122,8 +1122,8 @@ const te = /* @__PURE__ */ V({
|
|
1122
1122
|
items: r.value
|
1123
1123
|
}, null, 8, ["model-value", "items"])
|
1124
1124
|
]),
|
1125
|
-
_("div",
|
1126
|
-
S(e) ? (f(), w(
|
1125
|
+
_("div", $e, [
|
1126
|
+
S(e) ? (f(), w(Y((i = b.value) == null ? void 0 : i.render), K(L({ key: 0 }, {
|
1127
1127
|
terminal: d.terminal,
|
1128
1128
|
onUpdate: d.onUpdate
|
1129
1129
|
})), null, 16)) : C("", !0)
|
@@ -1131,7 +1131,7 @@ const te = /* @__PURE__ */ V({
|
|
1131
1131
|
]);
|
1132
1132
|
};
|
1133
1133
|
}
|
1134
|
-
}),
|
1134
|
+
}), Ge = { class: "flex mt-6 space-x-6" }, Be = /* @__PURE__ */ V({
|
1135
1135
|
__name: "PromptPayGateway",
|
1136
1136
|
props: {
|
1137
1137
|
terminal: {
|
@@ -1144,7 +1144,7 @@ const te = /* @__PURE__ */ V({
|
|
1144
1144
|
}
|
1145
1145
|
},
|
1146
1146
|
setup(F) {
|
1147
|
-
const d = F, a =
|
1147
|
+
const d = F, a = P(() => d.terminal), b = I(), n = I(-1), r = I({
|
1148
1148
|
account: "",
|
1149
1149
|
receiptName: ""
|
1150
1150
|
}), e = () => {
|
@@ -1152,17 +1152,17 @@ const te = /* @__PURE__ */ V({
|
|
1152
1152
|
}, m = () => {
|
1153
1153
|
if (!a.value.qrIntegrations)
|
1154
1154
|
return e();
|
1155
|
-
const y = a.value.qrIntegrations, c = y.findIndex((t) => t && t.gateway && t.gateway === "
|
1155
|
+
const y = a.value.qrIntegrations, c = y.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
|
1156
1156
|
if (c === -1)
|
1157
1157
|
return e();
|
1158
1158
|
n.value = c;
|
1159
1159
|
const i = y.at(c);
|
1160
|
-
i.gateway === "
|
1160
|
+
i.gateway === "PROMPTPAY" && i.config && (r.value = {
|
1161
1161
|
account: i.config.account ?? "",
|
1162
1162
|
receiptName: i.receiptName ?? ""
|
1163
1163
|
});
|
1164
1164
|
};
|
1165
|
-
|
1165
|
+
A(a, m), O(m);
|
1166
1166
|
async function s(y) {
|
1167
1167
|
var c;
|
1168
1168
|
(c = a.value.qrIntegrations) == null || c.splice(y, 1), d.onUpdate(a.value);
|
@@ -1173,7 +1173,7 @@ const te = /* @__PURE__ */ V({
|
|
1173
1173
|
ref: b.value,
|
1174
1174
|
class: "flex flex-col gap-16 w-[500px]",
|
1175
1175
|
onValidationSuccess: c[2] || (c[2] = () => {
|
1176
|
-
n.value > -1 ? a.value.qrIntegrations[n.value] = { gateway: "
|
1176
|
+
n.value > -1 ? a.value.qrIntegrations[n.value] = { gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName })), d.onUpdate(a.value);
|
1177
1177
|
})
|
1178
1178
|
}, {
|
1179
1179
|
default: R(() => [
|
@@ -1188,7 +1188,7 @@ const te = /* @__PURE__ */ V({
|
|
1188
1188
|
label: "Receipt Payment Name",
|
1189
1189
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
1190
1190
|
}, null, 8, ["modelValue"]),
|
1191
|
-
_("div",
|
1191
|
+
_("div", Ge, [
|
1192
1192
|
n.value > -1 ? (f(), w(t, {
|
1193
1193
|
key: 0,
|
1194
1194
|
class: "flex-1",
|
@@ -1208,7 +1208,7 @@ const te = /* @__PURE__ */ V({
|
|
1208
1208
|
}, 512);
|
1209
1209
|
};
|
1210
1210
|
}
|
1211
|
-
}), he = { class: "flex items-center" },
|
1211
|
+
}), he = { class: "flex items-center" }, Ye = { class: "w-[260px] self-start" }, Ke = { class: "flex-1" }, Le = /* @__PURE__ */ V({
|
1212
1212
|
__name: "QrGateway",
|
1213
1213
|
props: {
|
1214
1214
|
terminal: {
|
@@ -1229,14 +1229,14 @@ const te = /* @__PURE__ */ V({
|
|
1229
1229
|
render: Be,
|
1230
1230
|
region: [U.F_COUNTRY.enum.TH]
|
1231
1231
|
}
|
1232
|
-
], b =
|
1232
|
+
], b = q(() => a.find((s) => s.value === e.value)), n = j().currentCountry, r = q(() => a.filter((s) => !s.region || s.region.includes(n.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
|
1233
1233
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
1234
1234
|
});
|
1235
1235
|
return (s, y) => {
|
1236
1236
|
var i;
|
1237
1237
|
const c = g("FmTabs");
|
1238
1238
|
return f(), N("div", he, [
|
1239
|
-
_("div",
|
1239
|
+
_("div", Ye, [
|
1240
1240
|
v(c, {
|
1241
1241
|
"model-value": S(e),
|
1242
1242
|
"onUpdate:modelValue": y[0] || (y[0] = (t) => h(e) ? e.value = t : null),
|
@@ -1245,8 +1245,8 @@ const te = /* @__PURE__ */ V({
|
|
1245
1245
|
items: r.value
|
1246
1246
|
}, null, 8, ["model-value", "items"])
|
1247
1247
|
]),
|
1248
|
-
_("div",
|
1249
|
-
S(e) ? (f(), w(
|
1248
|
+
_("div", Ke, [
|
1249
|
+
S(e) ? (f(), w(Y((i = b.value) == null ? void 0 : i.render), K(L({ key: 0 }, {
|
1250
1250
|
terminal: d.terminal,
|
1251
1251
|
onUpdate: d.onUpdate
|
1252
1252
|
})), null, 16)) : C("", !0)
|
@@ -1269,7 +1269,7 @@ const te = /* @__PURE__ */ V({
|
|
1269
1269
|
async function s(l) {
|
1270
1270
|
n(async () => {
|
1271
1271
|
try {
|
1272
|
-
await
|
1272
|
+
await D.updateById(
|
1273
1273
|
d.terminalId,
|
1274
1274
|
{
|
1275
1275
|
name: l.name,
|
@@ -1279,7 +1279,7 @@ const te = /* @__PURE__ */ V({
|
|
1279
1279
|
ecrIntegrations: l.ecrIntegrations ?? [],
|
1280
1280
|
qrIntegrations: l.qrIntegrations ?? []
|
1281
1281
|
}
|
1282
|
-
), m.value = await
|
1282
|
+
), m.value = await D.readById(d.terminalId), e.open({
|
1283
1283
|
type: "success",
|
1284
1284
|
message: "Terminal updated successfully"
|
1285
1285
|
});
|
@@ -1316,7 +1316,7 @@ const te = /* @__PURE__ */ V({
|
|
1316
1316
|
label: "ECR Gateway",
|
1317
1317
|
value: "ecr",
|
1318
1318
|
icon: "point_of_sale",
|
1319
|
-
render:
|
1319
|
+
render: De,
|
1320
1320
|
onlyFor: ["POS", "KIOSK"]
|
1321
1321
|
},
|
1322
1322
|
{
|
@@ -1328,16 +1328,16 @@ const te = /* @__PURE__ */ V({
|
|
1328
1328
|
}
|
1329
1329
|
];
|
1330
1330
|
j().currentCountry;
|
1331
|
-
const c =
|
1331
|
+
const c = q(() => {
|
1332
1332
|
var l;
|
1333
1333
|
return (l = y.find((u) => u.value === a.value)) == null ? void 0 : l.render;
|
1334
1334
|
});
|
1335
1335
|
async function i() {
|
1336
1336
|
n(async () => {
|
1337
|
-
m.value = await
|
1337
|
+
m.value = await D.readById(d.terminalId);
|
1338
1338
|
});
|
1339
1339
|
}
|
1340
|
-
const t =
|
1340
|
+
const t = q(() => y.filter((l) => {
|
1341
1341
|
var u;
|
1342
1342
|
return !l.onlyFor || l.onlyFor.includes(((u = m.value) == null ? void 0 : u.deviceType) ?? "");
|
1343
1343
|
}));
|
@@ -1356,7 +1356,7 @@ const te = /* @__PURE__ */ V({
|
|
1356
1356
|
class: "mb-6",
|
1357
1357
|
items: t.value
|
1358
1358
|
}, null, 8, ["model-value", "items"]),
|
1359
|
-
S(a) ? (f(), w(
|
1359
|
+
S(a) ? (f(), w(Y(c.value), K(L({ key: 0 }, {
|
1360
1360
|
terminal: m.value,
|
1361
1361
|
onUpdate: s
|
1362
1362
|
})), null, 16)) : C("", !0)
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as B, ref as E, watch as g, computed as I, onMounted as J, resolveComponent as b, openBlock as v, createElementBlock as P, Fragment as Y, unref as t, createBlock as N, createCommentVNode as O, withCtx as T, createVNode as i, renderList as k, createElementVNode as V, isRef as _ } from "vue";
|
2
|
-
import { t as L, b as G } from "./assets-
|
3
|
-
import { u as K, p as C } from "./index-
|
4
|
-
import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { t as L, b as G } from "./assets-CTH4trdc.js";
|
3
|
+
import { u as K, p as C } from "./index-CJPiBIRm.js";
|
4
|
+
import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BayIh55f.js";
|
5
5
|
import { h as $ } from "./moment-h96o7c8I.js";
|
6
6
|
import { useI18n as j, useCoreStore as q } from "@feedmepos/mf-common";
|
7
7
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as W } from "./index-
|
8
|
+
import { u as W } from "./index-98tll3Hu.js";
|
9
9
|
import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
10
|
import { _ as Z } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
import { _ as ee } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
12
|
-
import { p as te } from "./index-
|
13
|
-
import { t as ae } from "./index-
|
12
|
+
import { p as te } from "./index-DZYRliw9.js";
|
13
|
+
import { t as ae } from "./index-B5zEwG__.js";
|
14
14
|
const ne = /* @__PURE__ */ B({
|
15
15
|
__name: "SourceSelector",
|
16
16
|
props: {
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as T, resolveComponent as f, openBlock as y, createBlock as b, normalizeClass as C, withCtx as _, createElementVNode as p, toDisplayString as V, unref as m, createElementBlock as I, createVNode as g, Fragment as Y, renderList as O, ref as P, watch as x, isRef as N, h } from "vue";
|
2
|
-
import { g as U, a as B, t as w, b as G, c as k } from "./assets-
|
2
|
+
import { g as U, a as B, t as w, b as G, c as k } from "./assets-CTH4trdc.js";
|
3
3
|
import { h as A } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as L } from "./index-
|
4
|
+
import { u as L } from "./index-98tll3Hu.js";
|
5
5
|
import { _ as Q } 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 z, useDialog as H } from "@feedmepos/ui-library";
|
8
8
|
import { w as q } from "./Modal-DB8M9o1T.js";
|
9
9
|
import { u as F } from "./error-K1CakhA9.js";
|
10
10
|
import { _ as J } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
11
|
-
import { g as W } from "./grafana-
|
12
|
-
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-
|
13
|
-
import { e as D } from "./index-
|
11
|
+
import { g as W } from "./grafana-bPLmWYzm.js";
|
12
|
+
import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-CaVufHjO.js";
|
13
|
+
import { e as D } from "./index-CJPiBIRm.js";
|
14
14
|
import { _ as Z } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
15
15
|
import { useCoreStore as ee } from "@feedmepos/mf-common";
|
16
16
|
const te = /* @__PURE__ */ T({
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as T, ref as y, onMounted as Y, watch as f, resolveComponent as V, openBlock as C, createBlock as M, unref as t, withCtx as O, createElementVNode as u, createVNode as i, isRef as h } from "vue";
|
2
|
-
import { t as g, b as S } from "./assets-
|
3
|
-
import { u as $ } from "./index-
|
4
|
-
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { t as g, b as S } from "./assets-CTH4trdc.js";
|
3
|
+
import { u as $ } from "./index-CJPiBIRm.js";
|
4
|
+
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BayIh55f.js";
|
5
5
|
import { h as x } from "./moment-h96o7c8I.js";
|
6
6
|
import { useCoreStore as k, useI18n as E } from "@feedmepos/mf-common";
|
7
7
|
import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as P } from "./index-
|
8
|
+
import { u as P } from "./index-98tll3Hu.js";
|
9
9
|
import { _ as A } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
10
|
import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
11
11
|
import { _ as F } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as y, resolveComponent as d, openBlock as m, createBlock as f, normalizeClass as R, withCtx as p, createElementVNode as A, toDisplayString as V, unref as K, createElementBlock as N, createVNode as k, Fragment as U, renderList as B, ref as S, watch as $, h as b } from "vue";
|
2
2
|
import { useSnackbar as L, useDialog as G } from "@feedmepos/ui-library";
|
3
|
-
import { g as O, a as Y, t as h, c as x } from "./assets-
|
4
|
-
import { e as T } from "./index-
|
5
|
-
import { g as z } from "./grafana-
|
3
|
+
import { g as O, a as Y, t as h, c as x } from "./assets-CTH4trdc.js";
|
4
|
+
import { e as T } from "./index-CJPiBIRm.js";
|
5
|
+
import { g as z } from "./grafana-bPLmWYzm.js";
|
6
6
|
import { w as E } from "./Modal-DB8M9o1T.js";
|
7
7
|
import { u as w } from "./error-K1CakhA9.js";
|
8
8
|
import { useCoreStore as Q, useI18n as j } from "@feedmepos/mf-common";
|