@feedmepos/mf-payment 1.6.5-dev → 1.6.5
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/{Actions.vue_vue_type_script_setup_true_lang-YYDPaS_E.js → Actions.vue_vue_type_script_setup_true_lang-DAxaoH2_.js} +1 -1
- package/dist/{Chargeback-BUu9f1RK.js → Chargeback-mmahMkU2.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DzJh-Vaf.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CdICJijx.js} +1 -1
- package/dist/{OnboardForm-C2IBqB-n.js → OnboardForm-0wfXiZNq.js} +5 -5
- package/dist/{OnboardForm-vsYIDpeX.js → OnboardForm-DcHQqYYX.js} +5 -5
- package/dist/{OnboardSubmission-B-aQpnpa.js → OnboardSubmission-CRIsACkI.js} +5 -5
- package/dist/{OnboardSubmission-Cd1RB0Jg.js → OnboardSubmission-Dp4QmPAZ.js} +2 -2
- package/dist/{PayoutAccount-C0f7Xt95.js → PayoutAccount-B0fiUu5k.js} +5 -5
- package/dist/{PayoutAccount-RUxuoh4c.js → PayoutAccount-CVP7XAWH.js} +5 -5
- package/dist/{PayoutAccountSetting-OwViZYiH.js → PayoutAccountSetting-AfiXAw4i.js} +6 -6
- package/dist/{Restaurant-WoIPOuVK.js → Restaurant-DjVmC321.js} +4 -4
- package/dist/{RestaurantSetting-CSp5KYPV.js → RestaurantSetting-otcaVBEY.js} +3 -3
- package/dist/{Settlement-BzEWt-Sp.js → Settlement-BR0eiOvD.js} +4 -4
- package/dist/{Settlement-s7Sg5yMu.js → Settlement-EvbyEhZy.js} +3 -3
- package/dist/{SettlementTransactions-BSWyhuT9.js → SettlementTransactions-Cl5MpLRe.js} +4 -4
- package/dist/{SettlementTransactions-TCIV9KXu.js → SettlementTransactions-CzXpI06o.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CUb440nP.js → Status.vue_vue_type_script_setup_true_lang-1c-L6wBM.js} +1 -1
- package/dist/{Terminal-Dewmg13M.js → Terminal-CFw1icwx.js} +5 -5
- package/dist/{TerminalSetting-QK1F8399.js → TerminalSetting-BnHK2VcU.js} +243 -245
- package/dist/{Transaction-DvgbScu9.js → Transaction-D2LeKB1L.js} +13 -13
- package/dist/{Transaction-Edd4br9p.js → Transaction-Hh9DsZti.js} +9 -9
- package/dist/{TransactionOld-DKrLquBs.js → TransactionOld-CZzDvZ4V.js} +7 -7
- package/dist/{app-DRhh29hN.js → app-CnRmLdS_.js} +546 -563
- package/dist/app.js +1 -1
- package/dist/{assets-CbdfLdMj.js → assets-8u-qS55J.js} +1 -1
- package/dist/{grafana-DQRXJ2-g.js → grafana-DVHjaRm4.js} +1 -1
- package/dist/{index-DJnq80r2.js → index-BnFjLAZ9.js} +1 -1
- package/dist/index-BwdnN4a2.js +58 -0
- package/dist/{index-DRSGui6T.js → index-CWbl1nrA.js} +1 -1
- package/dist/{index-CpNhb1dz.js → index-D6wYQSLs.js} +1 -1
- package/dist/{index-Kv65DwXY.js → index-DP823O2i.js} +1 -1
- package/dist/{index-DTkPWXFi.js → index-DTY9OeUA.js} +1 -1
- package/dist/{index-Db6LPSD_.js → index-DjPlzbUi.js} +1 -1
- package/dist/{index-S6NOUgPl.js → index-DyVl5OC4.js} +1 -1
- package/dist/{index-BJNPknyd.js → index-fKbtEyKA.js} +1 -1
- package/dist/{index-BZnFjrTl.js → index-iujpUb8Z.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-CJ5N_POT.js → index.vue_vue_type_script_setup_true_lang-D-7OGj8L.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DDuxDcff.js → payout-account-CpX1Qppg.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index-FbkInaFL.js +0 -62
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as le, p as me, e as U } from "./index-
|
|
1
|
+
import { defineComponent as R, openBlock as f, createElementBlock as M, Fragment as G, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as v, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as P, onBeforeUnmount as pe, toRef as A, onMounted as q, withCtx as O, renderList as Y } from "vue";
|
|
2
|
+
import { u as le, p as me, e as U } from "./index-DjPlzbUi.js";
|
|
3
3
|
import { useRouter as ve } from "vue-router";
|
|
4
|
-
import { t as E } from "./index-
|
|
4
|
+
import { t as E } from "./index-DP823O2i.js";
|
|
5
5
|
import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { u as ne } from "./index-
|
|
6
|
+
import { u as ne } from "./index-fKbtEyKA.js";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as X } from "./error-K1CakhA9.js";
|
|
9
9
|
import { useI18n as fe, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
-
import { o as ge } from "./index-
|
|
10
|
+
import { o as ge } from "./index-iujpUb8Z.js";
|
|
11
11
|
import { c as be } from "./index-MdV54cWO.js";
|
|
12
12
|
import { z as Te, a as _e } from "./validator-CTlVogBQ.js";
|
|
13
|
-
const Ie = /* @__PURE__ */
|
|
13
|
+
const Ie = /* @__PURE__ */ R({
|
|
14
14
|
__name: "Information",
|
|
15
15
|
props: {
|
|
16
16
|
terminal: {
|
|
@@ -19,7 +19,7 @@ const Ie = /* @__PURE__ */ M({
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
setup(_) {
|
|
22
|
-
return (d, a) => (f(),
|
|
22
|
+
return (d, a) => (f(), M(G, null, [
|
|
23
23
|
a[0] || (a[0] = I("b", null, "Name", -1)),
|
|
24
24
|
j(": " + W(_.terminal.name), 1),
|
|
25
25
|
a[1] || (a[1] = I("br", null, null, -1)),
|
|
@@ -34,7 +34,7 @@ const Ie = /* @__PURE__ */ M({
|
|
|
34
34
|
a[7] || (a[7] = I("br", null, null, -1))
|
|
35
35
|
], 64));
|
|
36
36
|
}
|
|
37
|
-
}), Fe = { key: 0 }, we = { class: "mt-6 space-x-6" }, xe = /* @__PURE__ */
|
|
37
|
+
}), Fe = { key: 0 }, we = { class: "mt-6 space-x-6" }, xe = /* @__PURE__ */ R({
|
|
38
38
|
__name: "KioskMode",
|
|
39
39
|
props: {
|
|
40
40
|
terminal: {
|
|
@@ -59,30 +59,30 @@ const Ie = /* @__PURE__ */ M({
|
|
|
59
59
|
const c = await E.kioskModeRequest(r.terminal._id, m);
|
|
60
60
|
if (c === "OK")
|
|
61
61
|
return T.open({ type: "info", message: "Kiosk mode applied successfully." });
|
|
62
|
-
let
|
|
63
|
-
return c === "client_not_connected" && (
|
|
62
|
+
let y = c;
|
|
63
|
+
return c === "client_not_connected" && (y = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (y = c.replaceAll("terminal: ", "")), T.open({
|
|
64
64
|
type: "error",
|
|
65
|
-
message:
|
|
65
|
+
message: y
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return (m, c) => {
|
|
70
|
-
const
|
|
71
|
-
return f(),
|
|
72
|
-
y
|
|
70
|
+
const y = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
|
|
71
|
+
return f(), M(G, null, [
|
|
72
|
+
v(y, {
|
|
73
73
|
modelValue: l.value.enable,
|
|
74
74
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
|
|
75
75
|
label: "Enable Kiosk Mode?"
|
|
76
76
|
}, null, 8, ["modelValue"]),
|
|
77
|
-
l.value.enable ? (f(),
|
|
77
|
+
l.value.enable ? (f(), M("div", Fe, [
|
|
78
78
|
c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
|
|
79
|
-
|
|
79
|
+
v(u, {
|
|
80
80
|
modelValue: l.value.password,
|
|
81
81
|
"onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
|
|
82
82
|
}, null, 8, ["modelValue"])
|
|
83
83
|
])) : V("", !0),
|
|
84
84
|
I("div", we, [
|
|
85
|
-
|
|
85
|
+
v(s, {
|
|
86
86
|
variant: "primary",
|
|
87
87
|
label: "Send",
|
|
88
88
|
icon: "send",
|
|
@@ -93,7 +93,7 @@ const Ie = /* @__PURE__ */ M({
|
|
|
93
93
|
], 64);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), Ne = /* @__PURE__ */
|
|
96
|
+
}), Ne = /* @__PURE__ */ R({
|
|
97
97
|
__name: "SettingRequest",
|
|
98
98
|
props: {
|
|
99
99
|
terminal: {
|
|
@@ -114,14 +114,14 @@ const Ie = /* @__PURE__ */ M({
|
|
|
114
114
|
return (r, e) => {
|
|
115
115
|
var c;
|
|
116
116
|
const m = g("FmTabs");
|
|
117
|
-
return f(),
|
|
117
|
+
return f(), M(G, null, [
|
|
118
118
|
e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
119
119
|
I("b", null, "Note: "),
|
|
120
120
|
j(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
|
|
121
121
|
], -1)),
|
|
122
|
-
|
|
122
|
+
v(m, {
|
|
123
123
|
"model-value": h(d),
|
|
124
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
124
|
+
"onUpdate:modelValue": e[0] || (e[0] = (y) => Z(d) ? d.value = y : null),
|
|
125
125
|
class: "mb-6",
|
|
126
126
|
items: a
|
|
127
127
|
}, null, 8, ["model-value"]),
|
|
@@ -137,13 +137,13 @@ function Se(_) {
|
|
|
137
137
|
($) => $.gateway === "Tyro"
|
|
138
138
|
);
|
|
139
139
|
return ((B = k == null ? void 0 : k.config) == null ? void 0 : B.uniqueId) || "";
|
|
140
|
-
}), c = C(() => !!m.value),
|
|
140
|
+
}), c = C(() => !!m.value), y = C(() => {
|
|
141
141
|
var k;
|
|
142
142
|
return ((k = e.value) == null ? void 0 : k.status) === "ready";
|
|
143
143
|
}), u = C(() => {
|
|
144
144
|
var k, D;
|
|
145
|
-
return
|
|
146
|
-
}), s = C(() => !
|
|
145
|
+
return y.value && !!((D = (k = e.value) == null ? void 0 : k.fields) != null && D.tyroLocationId) && !!_.value.deviceId && !c.value;
|
|
146
|
+
}), s = C(() => !y.value && !c.value), t = C(
|
|
147
147
|
() => l("payment.onboard-submission.tyro.syncDisabledHint")
|
|
148
148
|
), n = C(() => c.value ? "Synced" : "Sync");
|
|
149
149
|
async function i() {
|
|
@@ -215,7 +215,7 @@ function Se(_) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
return
|
|
218
|
+
return P(
|
|
219
219
|
() => _.value.referenceId,
|
|
220
220
|
async () => {
|
|
221
221
|
await i();
|
|
@@ -237,7 +237,7 @@ function Se(_) {
|
|
|
237
237
|
const Ue = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "text-sm text-gray-500"
|
|
240
|
-
}, Re = { class: "flex mt-6 space-x-6" }, Me = { class: "flex-1" }, he = /* @__PURE__ */
|
|
240
|
+
}, Re = { class: "flex mt-6 space-x-6" }, Me = { class: "flex-1" }, he = /* @__PURE__ */ R({
|
|
241
241
|
__name: "SoftposGateway",
|
|
242
242
|
props: {
|
|
243
243
|
terminal: {
|
|
@@ -298,12 +298,12 @@ const Ue = {
|
|
|
298
298
|
isUat: !1
|
|
299
299
|
}), m = () => {
|
|
300
300
|
e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
301
|
-
}, c = C(() => T.filter((N) => N.region === a.value)),
|
|
301
|
+
}, c = C(() => T.filter((N) => N.region === a.value)), y = C(() => c.value.find(
|
|
302
302
|
(N) => N.value === e.value.packageId
|
|
303
303
|
)), u = C(
|
|
304
304
|
() => {
|
|
305
305
|
var N;
|
|
306
|
-
return ((N =
|
|
306
|
+
return ((N = y.value) == null ? void 0 : N.gateway) === "Tyro";
|
|
307
307
|
}
|
|
308
308
|
), {
|
|
309
309
|
isLoading: s,
|
|
@@ -350,9 +350,9 @@ const Ue = {
|
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
P(l, $), q($);
|
|
354
354
|
async function H() {
|
|
355
|
-
const N =
|
|
355
|
+
const N = y.value;
|
|
356
356
|
if (!N)
|
|
357
357
|
return;
|
|
358
358
|
let S = e.value.uniqueId;
|
|
@@ -385,84 +385,82 @@ const Ue = {
|
|
|
385
385
|
onValidationSuccess: H
|
|
386
386
|
}, {
|
|
387
387
|
default: O(() => [
|
|
388
|
-
|
|
388
|
+
v(re, {
|
|
389
389
|
modelValue: e.value.packageId,
|
|
390
390
|
"onUpdate:modelValue": S[0] || (S[0] = (L) => e.value.packageId = L),
|
|
391
391
|
label: "Package ID",
|
|
392
392
|
items: c.value
|
|
393
393
|
}, null, 8, ["modelValue", "items"]),
|
|
394
|
-
|
|
395
|
-
|
|
394
|
+
u.value ? (f(), F(J, {
|
|
395
|
+
key: 0,
|
|
396
|
+
"model-value": h(n),
|
|
397
|
+
label: "Unique ID (Reader ID)",
|
|
398
|
+
disabled: ""
|
|
399
|
+
}, null, 8, ["model-value"])) : y.value && y.value.isLegacy ? (f(), M(G, { key: 1 }, [
|
|
400
|
+
v(J, {
|
|
401
|
+
modelValue: e.value.uniqueId,
|
|
402
|
+
"onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
|
|
403
|
+
label: "Unique ID (TID)"
|
|
404
|
+
}, null, 8, ["modelValue"]),
|
|
405
|
+
y.value.isOutdated ? (f(), M("span", Ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
|
|
406
|
+
], 64)) : u.value ? V("", !0) : (f(), M(G, { key: 2 }, [
|
|
407
|
+
v(J, {
|
|
408
|
+
modelValue: e.value.developerId,
|
|
409
|
+
"onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
|
|
410
|
+
label: "Developer ID (MID)"
|
|
411
|
+
}, null, 8, ["modelValue"]),
|
|
412
|
+
v(J, {
|
|
413
|
+
modelValue: e.value.uniqueId,
|
|
414
|
+
"onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
|
|
415
|
+
label: "Unique ID (TID)"
|
|
416
|
+
}, null, 8, ["modelValue"]),
|
|
417
|
+
v(ue, {
|
|
418
|
+
modelValue: e.value.isUat,
|
|
419
|
+
"onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
|
|
420
|
+
label: "Is UAT (Test)",
|
|
421
|
+
value: "1"
|
|
422
|
+
}, null, 8, ["modelValue"])
|
|
423
|
+
], 64)),
|
|
424
|
+
I("div", Re, [
|
|
425
|
+
l.value.gateways && l.value.gateways.length > 0 ? (f(), F(ie, {
|
|
396
426
|
key: 0,
|
|
397
|
-
"
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
"
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
key: 1,
|
|
435
|
-
class: "flex-1",
|
|
436
|
-
variant: "plain",
|
|
437
|
-
placement: "top",
|
|
438
|
-
content: h(x)
|
|
439
|
-
}, {
|
|
440
|
-
default: O(() => [
|
|
441
|
-
I("div", Me, [
|
|
442
|
-
y(ie, {
|
|
443
|
-
type: K.value,
|
|
444
|
-
class: "w-full",
|
|
445
|
-
variant: "primary",
|
|
446
|
-
loading: D.value,
|
|
447
|
-
disabled: B.value,
|
|
448
|
-
label: k.value,
|
|
449
|
-
onClick: Q
|
|
450
|
-
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
451
|
-
])
|
|
452
|
-
]),
|
|
453
|
-
_: 1
|
|
454
|
-
}, 8, ["content"])) : (f(), F(ie, {
|
|
455
|
-
key: 2,
|
|
456
|
-
type: K.value,
|
|
457
|
-
class: "flex-1",
|
|
458
|
-
variant: "primary",
|
|
459
|
-
loading: D.value,
|
|
460
|
-
disabled: B.value,
|
|
461
|
-
label: k.value,
|
|
462
|
-
onClick: Q
|
|
463
|
-
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
464
|
-
])
|
|
465
|
-
], 64)) : V("", !0)
|
|
427
|
+
class: "flex-1",
|
|
428
|
+
variant: "secondary",
|
|
429
|
+
label: "Delete",
|
|
430
|
+
onclick: () => z(0)
|
|
431
|
+
}, null, 8, ["onclick"])) : V("", !0),
|
|
432
|
+
u.value && h(p) && B.value ? (f(), F(ce, {
|
|
433
|
+
key: 1,
|
|
434
|
+
class: "flex-1",
|
|
435
|
+
variant: "plain",
|
|
436
|
+
placement: "top",
|
|
437
|
+
content: h(x)
|
|
438
|
+
}, {
|
|
439
|
+
default: O(() => [
|
|
440
|
+
I("div", Me, [
|
|
441
|
+
v(ie, {
|
|
442
|
+
type: K.value,
|
|
443
|
+
class: "w-full",
|
|
444
|
+
variant: "primary",
|
|
445
|
+
loading: D.value,
|
|
446
|
+
disabled: B.value,
|
|
447
|
+
label: k.value,
|
|
448
|
+
onClick: Q
|
|
449
|
+
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
450
|
+
])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
}, 8, ["content"])) : (f(), F(ie, {
|
|
454
|
+
key: 2,
|
|
455
|
+
type: K.value,
|
|
456
|
+
class: "flex-1",
|
|
457
|
+
variant: "primary",
|
|
458
|
+
loading: D.value,
|
|
459
|
+
disabled: B.value,
|
|
460
|
+
label: k.value,
|
|
461
|
+
onClick: Q
|
|
462
|
+
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
463
|
+
])
|
|
466
464
|
]),
|
|
467
465
|
_: 1
|
|
468
466
|
}, 512);
|
|
@@ -471,7 +469,7 @@ const Ue = {
|
|
|
471
469
|
}), Oe = {
|
|
472
470
|
key: 0,
|
|
473
471
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
474
|
-
}, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */
|
|
472
|
+
}, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ R({
|
|
475
473
|
__name: "TerminalGateway",
|
|
476
474
|
props: {
|
|
477
475
|
terminal: {
|
|
@@ -486,23 +484,23 @@ const Ue = {
|
|
|
486
484
|
setup(_) {
|
|
487
485
|
const { isLoading: d, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
|
|
488
486
|
terminalId: ""
|
|
489
|
-
}),
|
|
487
|
+
}), y = () => {
|
|
490
488
|
c.value.terminalId = "", m.value = -1;
|
|
491
489
|
}, u = () => {
|
|
492
490
|
if (a(async () => {
|
|
493
491
|
r.value = await E.getRestaurantTerminals(T.terminal.referenceId);
|
|
494
492
|
}), !T.terminal.ecrs)
|
|
495
|
-
return
|
|
493
|
+
return y();
|
|
496
494
|
const n = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
|
|
497
495
|
if (n === -1)
|
|
498
|
-
return
|
|
496
|
+
return y();
|
|
499
497
|
m.value = n;
|
|
500
498
|
const i = T.terminal.ecrs.at(n);
|
|
501
499
|
i.gateway === "FeedMe" && i.config && (c.value = {
|
|
502
500
|
terminalId: i.config.terminalId
|
|
503
501
|
});
|
|
504
502
|
};
|
|
505
|
-
|
|
503
|
+
P(l, u), q(u);
|
|
506
504
|
const s = C(() => (r.value ?? []).map((n) => ({
|
|
507
505
|
label: n.name ?? n._id,
|
|
508
506
|
value: n._id
|
|
@@ -513,8 +511,8 @@ const Ue = {
|
|
|
513
511
|
}
|
|
514
512
|
return (n, i) => {
|
|
515
513
|
const p = g("FmCircularProgress"), x = g("FmSelect"), o = g("FmButton"), w = g("FmForm");
|
|
516
|
-
return h(d) ? (f(),
|
|
517
|
-
|
|
514
|
+
return h(d) ? (f(), M("div", Oe, [
|
|
515
|
+
v(p, { size: "xxl" })
|
|
518
516
|
])) : (f(), F(w, {
|
|
519
517
|
key: 1,
|
|
520
518
|
ref: e.value,
|
|
@@ -524,7 +522,7 @@ const Ue = {
|
|
|
524
522
|
})
|
|
525
523
|
}, {
|
|
526
524
|
default: O(() => [
|
|
527
|
-
|
|
525
|
+
v(x, {
|
|
528
526
|
modelValue: c.value.terminalId,
|
|
529
527
|
"onUpdate:modelValue": i[0] || (i[0] = (K) => c.value.terminalId = K),
|
|
530
528
|
label: "Terminal ID",
|
|
@@ -539,7 +537,7 @@ const Ue = {
|
|
|
539
537
|
label: "Delete",
|
|
540
538
|
onclick: () => t(m.value)
|
|
541
539
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
542
|
-
|
|
540
|
+
v(o, {
|
|
543
541
|
type: "submit",
|
|
544
542
|
class: "flex-1",
|
|
545
543
|
variant: "primary",
|
|
@@ -551,7 +549,7 @@ const Ue = {
|
|
|
551
549
|
}, 512));
|
|
552
550
|
};
|
|
553
551
|
}
|
|
554
|
-
}), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */
|
|
552
|
+
}), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ R({
|
|
555
553
|
__name: "GhlGateway",
|
|
556
554
|
props: {
|
|
557
555
|
terminal: {
|
|
@@ -573,23 +571,23 @@ const Ue = {
|
|
|
573
571
|
}, m = () => {
|
|
574
572
|
if (!a.value.ecrs)
|
|
575
573
|
return e();
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
574
|
+
const y = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
|
|
575
|
+
if (y === -1)
|
|
578
576
|
return e();
|
|
579
|
-
l.value =
|
|
580
|
-
const u = a.value.ecrs.at(
|
|
577
|
+
l.value = y;
|
|
578
|
+
const u = a.value.ecrs.at(y);
|
|
581
579
|
u.gateway === "Ghl" && u.config && (r.value = {
|
|
582
580
|
merchantId: u.config.merchantId,
|
|
583
581
|
terminalId: u.config.terminalId,
|
|
584
582
|
privateKey: u.config.privateKey || ""
|
|
585
583
|
});
|
|
586
584
|
};
|
|
587
|
-
|
|
588
|
-
async function c(
|
|
585
|
+
P(a, m), q(m);
|
|
586
|
+
async function c(y) {
|
|
589
587
|
var u;
|
|
590
|
-
(u = a.value.ecrs) == null || u.splice(
|
|
588
|
+
(u = a.value.ecrs) == null || u.splice(y, 1), d.onUpdate(a.value);
|
|
591
589
|
}
|
|
592
|
-
return (
|
|
590
|
+
return (y, u) => {
|
|
593
591
|
const s = g("FmTextField"), t = g("FmTextarea"), n = g("FmButton"), i = g("FmForm");
|
|
594
592
|
return f(), F(i, {
|
|
595
593
|
ref: T.value,
|
|
@@ -599,17 +597,17 @@ const Ue = {
|
|
|
599
597
|
})
|
|
600
598
|
}, {
|
|
601
599
|
default: O(() => [
|
|
602
|
-
|
|
600
|
+
v(s, {
|
|
603
601
|
modelValue: r.value.merchantId,
|
|
604
602
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => r.value.merchantId = p),
|
|
605
603
|
label: "Merchant ID"
|
|
606
604
|
}, null, 8, ["modelValue"]),
|
|
607
|
-
|
|
605
|
+
v(s, {
|
|
608
606
|
modelValue: r.value.terminalId,
|
|
609
607
|
"onUpdate:modelValue": u[1] || (u[1] = (p) => r.value.terminalId = p),
|
|
610
608
|
label: "Terminal ID"
|
|
611
609
|
}, null, 8, ["modelValue"]),
|
|
612
|
-
|
|
610
|
+
v(t, {
|
|
613
611
|
modelValue: r.value.privateKey,
|
|
614
612
|
"onUpdate:modelValue": u[2] || (u[2] = (p) => r.value.privateKey = p),
|
|
615
613
|
label: "Private Key",
|
|
@@ -624,7 +622,7 @@ const Ue = {
|
|
|
624
622
|
label: "Delete",
|
|
625
623
|
onclick: () => c(l.value)
|
|
626
624
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
627
|
-
|
|
625
|
+
v(n, {
|
|
628
626
|
type: "submit",
|
|
629
627
|
class: "flex-1",
|
|
630
628
|
variant: "primary",
|
|
@@ -636,7 +634,7 @@ const Ue = {
|
|
|
636
634
|
}, 512);
|
|
637
635
|
};
|
|
638
636
|
}
|
|
639
|
-
}), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */
|
|
637
|
+
}), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ R({
|
|
640
638
|
__name: "MaybankGateway",
|
|
641
639
|
props: {
|
|
642
640
|
terminal: {
|
|
@@ -670,8 +668,8 @@ const Ue = {
|
|
|
670
668
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
671
669
|
});
|
|
672
670
|
};
|
|
673
|
-
|
|
674
|
-
async function
|
|
671
|
+
P(a, c), q(c);
|
|
672
|
+
async function y(s) {
|
|
675
673
|
var t;
|
|
676
674
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
677
675
|
}
|
|
@@ -704,32 +702,32 @@ const Ue = {
|
|
|
704
702
|
})
|
|
705
703
|
}, {
|
|
706
704
|
default: O(() => [
|
|
707
|
-
|
|
705
|
+
v(n, {
|
|
708
706
|
modelValue: e.value.ip,
|
|
709
707
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
710
708
|
label: "IP Address"
|
|
711
709
|
}, null, 8, ["modelValue"]),
|
|
712
|
-
|
|
710
|
+
v(n, {
|
|
713
711
|
modelValue: e.value.receiptName,
|
|
714
712
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
715
713
|
label: "Receipt Payment Name",
|
|
716
714
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
717
715
|
}, null, 8, ["modelValue"]),
|
|
718
716
|
I("div", De, [
|
|
719
|
-
|
|
717
|
+
v(n, {
|
|
720
718
|
modelValue: r.value,
|
|
721
719
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
722
720
|
label: "Fallback Card Types",
|
|
723
721
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
724
722
|
}, null, 8, ["modelValue"]),
|
|
725
|
-
|
|
723
|
+
v(i, {
|
|
726
724
|
class: "ml-4",
|
|
727
725
|
icon: "add",
|
|
728
726
|
onClick: u
|
|
729
727
|
})
|
|
730
728
|
]),
|
|
731
729
|
I("div", $e, [
|
|
732
|
-
(f(!0),
|
|
730
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
733
731
|
key: o,
|
|
734
732
|
label: o,
|
|
735
733
|
removable: !0,
|
|
@@ -742,9 +740,9 @@ const Ue = {
|
|
|
742
740
|
class: "flex-1",
|
|
743
741
|
variant: "secondary",
|
|
744
742
|
label: "Delete",
|
|
745
|
-
onclick: () =>
|
|
743
|
+
onclick: () => y(l.value)
|
|
746
744
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
747
|
-
|
|
745
|
+
v(i, {
|
|
748
746
|
type: "submit",
|
|
749
747
|
class: "flex-1",
|
|
750
748
|
variant: "primary",
|
|
@@ -756,7 +754,7 @@ const Ue = {
|
|
|
756
754
|
}, 512);
|
|
757
755
|
};
|
|
758
756
|
}
|
|
759
|
-
}), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */
|
|
757
|
+
}), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ R({
|
|
760
758
|
__name: "Maybank2Gateway",
|
|
761
759
|
props: {
|
|
762
760
|
terminal: {
|
|
@@ -790,8 +788,8 @@ const Ue = {
|
|
|
790
788
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
791
789
|
});
|
|
792
790
|
};
|
|
793
|
-
|
|
794
|
-
async function
|
|
791
|
+
P(a, c), q(c);
|
|
792
|
+
async function y(s) {
|
|
795
793
|
var t;
|
|
796
794
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
797
795
|
}
|
|
@@ -824,32 +822,32 @@ const Ue = {
|
|
|
824
822
|
})
|
|
825
823
|
}, {
|
|
826
824
|
default: O(() => [
|
|
827
|
-
|
|
825
|
+
v(n, {
|
|
828
826
|
modelValue: e.value.ip,
|
|
829
827
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
830
828
|
label: "IP Address"
|
|
831
829
|
}, null, 8, ["modelValue"]),
|
|
832
|
-
|
|
830
|
+
v(n, {
|
|
833
831
|
modelValue: e.value.receiptName,
|
|
834
832
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
835
833
|
label: "Receipt Payment Name",
|
|
836
834
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
837
835
|
}, null, 8, ["modelValue"]),
|
|
838
836
|
I("div", Ye, [
|
|
839
|
-
|
|
837
|
+
v(n, {
|
|
840
838
|
modelValue: r.value,
|
|
841
839
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
842
840
|
label: "Fallback Card Types",
|
|
843
841
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
844
842
|
}, null, 8, ["modelValue"]),
|
|
845
|
-
|
|
843
|
+
v(i, {
|
|
846
844
|
class: "ml-4",
|
|
847
845
|
icon: "add",
|
|
848
846
|
onClick: u
|
|
849
847
|
})
|
|
850
848
|
]),
|
|
851
849
|
I("div", Ee, [
|
|
852
|
-
(f(!0),
|
|
850
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
853
851
|
key: o,
|
|
854
852
|
label: o,
|
|
855
853
|
removable: !0,
|
|
@@ -862,9 +860,9 @@ const Ue = {
|
|
|
862
860
|
class: "flex-1",
|
|
863
861
|
variant: "secondary",
|
|
864
862
|
label: "Delete",
|
|
865
|
-
onclick: () =>
|
|
863
|
+
onclick: () => y(l.value)
|
|
866
864
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
867
|
-
|
|
865
|
+
v(i, {
|
|
868
866
|
type: "submit",
|
|
869
867
|
class: "flex-1",
|
|
870
868
|
variant: "primary",
|
|
@@ -876,7 +874,7 @@ const Ue = {
|
|
|
876
874
|
}, 512);
|
|
877
875
|
};
|
|
878
876
|
}
|
|
879
|
-
}), He = { class: "flex items-end" }, ze = { class: "flex flex-wrap gap-8 items-center mt-4" }, Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */
|
|
877
|
+
}), He = { class: "flex items-end" }, ze = { class: "flex flex-wrap gap-8 items-center mt-4" }, Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ R({
|
|
880
878
|
__name: "Maybank3Gateway",
|
|
881
879
|
props: {
|
|
882
880
|
terminal: {
|
|
@@ -910,8 +908,8 @@ const Ue = {
|
|
|
910
908
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
911
909
|
});
|
|
912
910
|
};
|
|
913
|
-
|
|
914
|
-
async function
|
|
911
|
+
P(a, c), q(c);
|
|
912
|
+
async function y(s) {
|
|
915
913
|
var t;
|
|
916
914
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
917
915
|
}
|
|
@@ -944,27 +942,27 @@ const Ue = {
|
|
|
944
942
|
})
|
|
945
943
|
}, {
|
|
946
944
|
default: O(() => [
|
|
947
|
-
|
|
945
|
+
v(n, {
|
|
948
946
|
modelValue: e.value.receiptName,
|
|
949
947
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
950
948
|
label: "Receipt Payment Name",
|
|
951
949
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
952
950
|
}, null, 8, ["modelValue"]),
|
|
953
951
|
I("div", He, [
|
|
954
|
-
|
|
952
|
+
v(n, {
|
|
955
953
|
modelValue: r.value,
|
|
956
954
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
957
955
|
label: "Fallback Card Types",
|
|
958
956
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
959
957
|
}, null, 8, ["modelValue"]),
|
|
960
|
-
|
|
958
|
+
v(i, {
|
|
961
959
|
class: "ml-4",
|
|
962
960
|
icon: "add",
|
|
963
961
|
onClick: u
|
|
964
962
|
})
|
|
965
963
|
]),
|
|
966
964
|
I("div", ze, [
|
|
967
|
-
(f(!0),
|
|
965
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
968
966
|
key: o,
|
|
969
967
|
label: o,
|
|
970
968
|
removable: !0,
|
|
@@ -977,9 +975,9 @@ const Ue = {
|
|
|
977
975
|
class: "flex-1",
|
|
978
976
|
variant: "secondary",
|
|
979
977
|
label: "Delete",
|
|
980
|
-
onclick: () =>
|
|
978
|
+
onclick: () => y(l.value)
|
|
981
979
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
982
|
-
|
|
980
|
+
v(i, {
|
|
983
981
|
type: "submit",
|
|
984
982
|
class: "flex-1",
|
|
985
983
|
variant: "primary",
|
|
@@ -991,7 +989,7 @@ const Ue = {
|
|
|
991
989
|
}, 512);
|
|
992
990
|
};
|
|
993
991
|
}
|
|
994
|
-
}), We = { class: "flex items-end" }, Xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ze = { class: "flex mt-6 space-x-6" }, ea = /* @__PURE__ */
|
|
992
|
+
}), We = { class: "flex items-end" }, Xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ze = { class: "flex mt-6 space-x-6" }, ea = /* @__PURE__ */ R({
|
|
995
993
|
__name: "NetsGateway",
|
|
996
994
|
props: {
|
|
997
995
|
terminal: {
|
|
@@ -1025,8 +1023,8 @@ const Ue = {
|
|
|
1025
1023
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1026
1024
|
});
|
|
1027
1025
|
};
|
|
1028
|
-
|
|
1029
|
-
async function
|
|
1026
|
+
P(a, c), q(c);
|
|
1027
|
+
async function y(s) {
|
|
1030
1028
|
var t;
|
|
1031
1029
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1032
1030
|
}
|
|
@@ -1059,32 +1057,32 @@ const Ue = {
|
|
|
1059
1057
|
})
|
|
1060
1058
|
}, {
|
|
1061
1059
|
default: O(() => [
|
|
1062
|
-
|
|
1060
|
+
v(n, {
|
|
1063
1061
|
modelValue: e.value.ip,
|
|
1064
1062
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
1065
1063
|
label: "IP Address"
|
|
1066
1064
|
}, null, 8, ["modelValue"]),
|
|
1067
|
-
|
|
1065
|
+
v(n, {
|
|
1068
1066
|
modelValue: e.value.receiptName,
|
|
1069
1067
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
1070
1068
|
label: "Receipt Payment Name",
|
|
1071
1069
|
"label-info": "Default receipt display will be 'TERMINAL_NETS'"
|
|
1072
1070
|
}, null, 8, ["modelValue"]),
|
|
1073
1071
|
I("div", We, [
|
|
1074
|
-
|
|
1072
|
+
v(n, {
|
|
1075
1073
|
modelValue: r.value,
|
|
1076
1074
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
1077
1075
|
label: "Fallback Card Types",
|
|
1078
1076
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1079
1077
|
}, null, 8, ["modelValue"]),
|
|
1080
|
-
|
|
1078
|
+
v(i, {
|
|
1081
1079
|
class: "ml-4",
|
|
1082
1080
|
icon: "add",
|
|
1083
1081
|
onClick: u
|
|
1084
1082
|
})
|
|
1085
1083
|
]),
|
|
1086
1084
|
I("div", Xe, [
|
|
1087
|
-
(f(!0),
|
|
1085
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1088
1086
|
key: o,
|
|
1089
1087
|
label: o,
|
|
1090
1088
|
removable: !0,
|
|
@@ -1097,9 +1095,9 @@ const Ue = {
|
|
|
1097
1095
|
class: "flex-1",
|
|
1098
1096
|
variant: "secondary",
|
|
1099
1097
|
label: "Delete",
|
|
1100
|
-
onclick: () =>
|
|
1098
|
+
onclick: () => y(l.value)
|
|
1101
1099
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1102
|
-
|
|
1100
|
+
v(i, {
|
|
1103
1101
|
type: "submit",
|
|
1104
1102
|
class: "flex-1",
|
|
1105
1103
|
variant: "primary",
|
|
@@ -1111,7 +1109,7 @@ const Ue = {
|
|
|
1111
1109
|
}, 512);
|
|
1112
1110
|
};
|
|
1113
1111
|
}
|
|
1114
|
-
}), aa = { class: "flex items-end" }, ta = { class: "flex flex-wrap gap-8 items-center mt-4" }, la = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */
|
|
1112
|
+
}), aa = { class: "flex items-end" }, ta = { class: "flex flex-wrap gap-8 items-center mt-4" }, la = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */ R({
|
|
1115
1113
|
__name: "KBankGateway",
|
|
1116
1114
|
props: {
|
|
1117
1115
|
terminal: {
|
|
@@ -1143,8 +1141,8 @@ const Ue = {
|
|
|
1143
1141
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1144
1142
|
});
|
|
1145
1143
|
};
|
|
1146
|
-
|
|
1147
|
-
async function
|
|
1144
|
+
P(a, c), q(c);
|
|
1145
|
+
async function y(s) {
|
|
1148
1146
|
var t;
|
|
1149
1147
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1150
1148
|
}
|
|
@@ -1177,27 +1175,27 @@ const Ue = {
|
|
|
1177
1175
|
})
|
|
1178
1176
|
}, {
|
|
1179
1177
|
default: O(() => [
|
|
1180
|
-
|
|
1178
|
+
v(n, {
|
|
1181
1179
|
modelValue: e.value.receiptName,
|
|
1182
1180
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1183
1181
|
label: "Receipt Payment Name",
|
|
1184
1182
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
|
1185
1183
|
}, null, 8, ["modelValue"]),
|
|
1186
1184
|
I("div", aa, [
|
|
1187
|
-
|
|
1185
|
+
v(n, {
|
|
1188
1186
|
modelValue: r.value,
|
|
1189
1187
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1190
1188
|
label: "Fallback Card Types",
|
|
1191
1189
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1192
1190
|
}, null, 8, ["modelValue"]),
|
|
1193
|
-
|
|
1191
|
+
v(i, {
|
|
1194
1192
|
class: "ml-4",
|
|
1195
1193
|
icon: "add",
|
|
1196
1194
|
onClick: u
|
|
1197
1195
|
})
|
|
1198
1196
|
]),
|
|
1199
1197
|
I("div", ta, [
|
|
1200
|
-
(f(!0),
|
|
1198
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1201
1199
|
key: o,
|
|
1202
1200
|
label: o,
|
|
1203
1201
|
removable: !0,
|
|
@@ -1210,9 +1208,9 @@ const Ue = {
|
|
|
1210
1208
|
class: "flex-1",
|
|
1211
1209
|
variant: "secondary",
|
|
1212
1210
|
label: "Delete",
|
|
1213
|
-
onclick: () =>
|
|
1211
|
+
onclick: () => y(l.value)
|
|
1214
1212
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1215
|
-
|
|
1213
|
+
v(i, {
|
|
1216
1214
|
type: "submit",
|
|
1217
1215
|
class: "flex-1",
|
|
1218
1216
|
variant: "primary",
|
|
@@ -1224,7 +1222,7 @@ const Ue = {
|
|
|
1224
1222
|
}, 512);
|
|
1225
1223
|
};
|
|
1226
1224
|
}
|
|
1227
|
-
}), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */
|
|
1225
|
+
}), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ R({
|
|
1228
1226
|
__name: "Ghl2Gateway",
|
|
1229
1227
|
props: {
|
|
1230
1228
|
terminal: {
|
|
@@ -1245,22 +1243,22 @@ const Ue = {
|
|
|
1245
1243
|
}, m = () => {
|
|
1246
1244
|
if (!a.value.ecrIntegrations)
|
|
1247
1245
|
return e();
|
|
1248
|
-
const
|
|
1246
|
+
const y = a.value.ecrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
|
|
1249
1247
|
if (u === -1)
|
|
1250
1248
|
return e();
|
|
1251
1249
|
l.value = u;
|
|
1252
|
-
const s =
|
|
1250
|
+
const s = y.at(u);
|
|
1253
1251
|
s.gateway === "Ghl2" && s.config && (r.value = {
|
|
1254
1252
|
ip: s.config.ip ?? "",
|
|
1255
1253
|
receiptName: s.receiptName ?? ""
|
|
1256
1254
|
});
|
|
1257
1255
|
};
|
|
1258
|
-
|
|
1259
|
-
async function c(
|
|
1256
|
+
P(a, m), q(m);
|
|
1257
|
+
async function c(y) {
|
|
1260
1258
|
var u;
|
|
1261
|
-
(u = a.value.ecrIntegrations) == null || u.splice(
|
|
1259
|
+
(u = a.value.ecrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
|
|
1262
1260
|
}
|
|
1263
|
-
return (
|
|
1261
|
+
return (y, u) => {
|
|
1264
1262
|
const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
|
|
1265
1263
|
return f(), F(n, {
|
|
1266
1264
|
ref: T.value,
|
|
@@ -1278,12 +1276,12 @@ const Ue = {
|
|
|
1278
1276
|
})
|
|
1279
1277
|
}, {
|
|
1280
1278
|
default: O(() => [
|
|
1281
|
-
|
|
1279
|
+
v(s, {
|
|
1282
1280
|
modelValue: r.value.ip,
|
|
1283
1281
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.ip = i),
|
|
1284
1282
|
label: "IP Address"
|
|
1285
1283
|
}, null, 8, ["modelValue"]),
|
|
1286
|
-
|
|
1284
|
+
v(s, {
|
|
1287
1285
|
modelValue: r.value.receiptName,
|
|
1288
1286
|
"onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
|
|
1289
1287
|
label: "Receipt Payment Name",
|
|
@@ -1297,7 +1295,7 @@ const Ue = {
|
|
|
1297
1295
|
label: "Delete",
|
|
1298
1296
|
onclick: () => c(l.value)
|
|
1299
1297
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1300
|
-
|
|
1298
|
+
v(t, {
|
|
1301
1299
|
type: "submit",
|
|
1302
1300
|
class: "flex-1",
|
|
1303
1301
|
variant: "primary",
|
|
@@ -1309,7 +1307,7 @@ const Ue = {
|
|
|
1309
1307
|
}, 512);
|
|
1310
1308
|
};
|
|
1311
1309
|
}
|
|
1312
|
-
}), ia = { class: "flex items-end" }, sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ua = { class: "flex mt-6 space-x-6" }, ca = /* @__PURE__ */
|
|
1310
|
+
}), ia = { class: "flex items-end" }, sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ua = { class: "flex mt-6 space-x-6" }, ca = /* @__PURE__ */ R({
|
|
1313
1311
|
__name: "Ghl3Gateway",
|
|
1314
1312
|
props: {
|
|
1315
1313
|
terminal: {
|
|
@@ -1345,8 +1343,8 @@ const Ue = {
|
|
|
1345
1343
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1346
1344
|
});
|
|
1347
1345
|
};
|
|
1348
|
-
|
|
1349
|
-
async function
|
|
1346
|
+
P(a, c), q(c);
|
|
1347
|
+
async function y(s) {
|
|
1350
1348
|
var t;
|
|
1351
1349
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1352
1350
|
}
|
|
@@ -1379,27 +1377,27 @@ const Ue = {
|
|
|
1379
1377
|
})
|
|
1380
1378
|
}, {
|
|
1381
1379
|
default: O(() => [
|
|
1382
|
-
|
|
1380
|
+
v(n, {
|
|
1383
1381
|
modelValue: e.value.receiptName,
|
|
1384
1382
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1385
1383
|
label: "Receipt Payment Name",
|
|
1386
1384
|
"label-info": "Default receipt display will be 'TERMINAL_GHL'"
|
|
1387
1385
|
}, null, 8, ["modelValue"]),
|
|
1388
1386
|
I("div", ia, [
|
|
1389
|
-
|
|
1387
|
+
v(n, {
|
|
1390
1388
|
modelValue: r.value,
|
|
1391
1389
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1392
1390
|
label: "Fallback Card Types",
|
|
1393
1391
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1394
1392
|
}, null, 8, ["modelValue"]),
|
|
1395
|
-
|
|
1393
|
+
v(i, {
|
|
1396
1394
|
class: "ml-4",
|
|
1397
1395
|
icon: "add",
|
|
1398
1396
|
onClick: u
|
|
1399
1397
|
})
|
|
1400
1398
|
]),
|
|
1401
1399
|
I("div", sa, [
|
|
1402
|
-
(f(!0),
|
|
1400
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1403
1401
|
key: o,
|
|
1404
1402
|
label: o,
|
|
1405
1403
|
removable: !0,
|
|
@@ -1412,9 +1410,9 @@ const Ue = {
|
|
|
1412
1410
|
class: "flex-1",
|
|
1413
1411
|
variant: "secondary",
|
|
1414
1412
|
label: "Delete",
|
|
1415
|
-
onclick: () =>
|
|
1413
|
+
onclick: () => y(l.value)
|
|
1416
1414
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1417
|
-
|
|
1415
|
+
v(i, {
|
|
1418
1416
|
type: "submit",
|
|
1419
1417
|
class: "flex-1",
|
|
1420
1418
|
variant: "primary",
|
|
@@ -1426,7 +1424,7 @@ const Ue = {
|
|
|
1426
1424
|
}, 512);
|
|
1427
1425
|
};
|
|
1428
1426
|
}
|
|
1429
|
-
}), da = { class: "flex items-end" }, pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ma = { class: "flex mt-6 space-x-6" }, va = /* @__PURE__ */
|
|
1427
|
+
}), da = { class: "flex items-end" }, pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ma = { class: "flex mt-6 space-x-6" }, va = /* @__PURE__ */ R({
|
|
1430
1428
|
__name: "HlbbGateway",
|
|
1431
1429
|
props: {
|
|
1432
1430
|
terminal: {
|
|
@@ -1462,8 +1460,8 @@ const Ue = {
|
|
|
1462
1460
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1463
1461
|
});
|
|
1464
1462
|
};
|
|
1465
|
-
|
|
1466
|
-
async function
|
|
1463
|
+
P(a, c), q(c);
|
|
1464
|
+
async function y(s) {
|
|
1467
1465
|
var t;
|
|
1468
1466
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1469
1467
|
}
|
|
@@ -1496,27 +1494,27 @@ const Ue = {
|
|
|
1496
1494
|
})
|
|
1497
1495
|
}, {
|
|
1498
1496
|
default: O(() => [
|
|
1499
|
-
|
|
1497
|
+
v(n, {
|
|
1500
1498
|
modelValue: e.value.receiptName,
|
|
1501
1499
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1502
1500
|
label: "Receipt Payment Name",
|
|
1503
1501
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1504
1502
|
}, null, 8, ["modelValue"]),
|
|
1505
1503
|
I("div", da, [
|
|
1506
|
-
|
|
1504
|
+
v(n, {
|
|
1507
1505
|
modelValue: r.value,
|
|
1508
1506
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1509
1507
|
label: "Fallback Card Types",
|
|
1510
1508
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1511
1509
|
}, null, 8, ["modelValue"]),
|
|
1512
|
-
|
|
1510
|
+
v(i, {
|
|
1513
1511
|
class: "ml-4",
|
|
1514
1512
|
icon: "add",
|
|
1515
1513
|
onClick: u
|
|
1516
1514
|
})
|
|
1517
1515
|
]),
|
|
1518
1516
|
I("div", pa, [
|
|
1519
|
-
(f(!0),
|
|
1517
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1520
1518
|
key: o,
|
|
1521
1519
|
label: o,
|
|
1522
1520
|
removable: !0,
|
|
@@ -1529,9 +1527,9 @@ const Ue = {
|
|
|
1529
1527
|
class: "flex-1",
|
|
1530
1528
|
variant: "secondary",
|
|
1531
1529
|
label: "Delete",
|
|
1532
|
-
onclick: () =>
|
|
1530
|
+
onclick: () => y(l.value)
|
|
1533
1531
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1534
|
-
|
|
1532
|
+
v(i, {
|
|
1535
1533
|
type: "submit",
|
|
1536
1534
|
class: "flex-1",
|
|
1537
1535
|
variant: "primary",
|
|
@@ -1543,7 +1541,7 @@ const Ue = {
|
|
|
1543
1541
|
}, 512);
|
|
1544
1542
|
};
|
|
1545
1543
|
}
|
|
1546
|
-
}), ya = { class: "flex items-end" }, fa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ga = { class: "flex mt-6 space-x-6" }, ba = /* @__PURE__ */
|
|
1544
|
+
}), ya = { class: "flex items-end" }, fa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ga = { class: "flex mt-6 space-x-6" }, ba = /* @__PURE__ */ R({
|
|
1547
1545
|
__name: "GlobalPaymentsGateway",
|
|
1548
1546
|
props: {
|
|
1549
1547
|
terminal: {
|
|
@@ -1579,8 +1577,8 @@ const Ue = {
|
|
|
1579
1577
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1580
1578
|
});
|
|
1581
1579
|
};
|
|
1582
|
-
|
|
1583
|
-
async function
|
|
1580
|
+
P(a, c), q(c);
|
|
1581
|
+
async function y(s) {
|
|
1584
1582
|
var t;
|
|
1585
1583
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1586
1584
|
}
|
|
@@ -1613,32 +1611,32 @@ const Ue = {
|
|
|
1613
1611
|
})
|
|
1614
1612
|
}, {
|
|
1615
1613
|
default: O(() => [
|
|
1616
|
-
|
|
1614
|
+
v(n, {
|
|
1617
1615
|
modelValue: e.value.ip,
|
|
1618
1616
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
1619
1617
|
label: "IP Address"
|
|
1620
1618
|
}, null, 8, ["modelValue"]),
|
|
1621
|
-
|
|
1619
|
+
v(n, {
|
|
1622
1620
|
modelValue: e.value.receiptName,
|
|
1623
1621
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
1624
1622
|
label: "Receipt Payment Name",
|
|
1625
1623
|
"label-info": "Default receipt display will be 'TERMINAL_GP'"
|
|
1626
1624
|
}, null, 8, ["modelValue"]),
|
|
1627
1625
|
I("div", ya, [
|
|
1628
|
-
|
|
1626
|
+
v(n, {
|
|
1629
1627
|
modelValue: r.value,
|
|
1630
1628
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
1631
1629
|
label: "Fallback Card Types",
|
|
1632
1630
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1633
1631
|
}, null, 8, ["modelValue"]),
|
|
1634
|
-
|
|
1632
|
+
v(i, {
|
|
1635
1633
|
class: "ml-4",
|
|
1636
1634
|
icon: "add",
|
|
1637
1635
|
onClick: u
|
|
1638
1636
|
})
|
|
1639
1637
|
]),
|
|
1640
1638
|
I("div", fa, [
|
|
1641
|
-
(f(!0),
|
|
1639
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1642
1640
|
key: o,
|
|
1643
1641
|
label: o,
|
|
1644
1642
|
removable: !0,
|
|
@@ -1651,9 +1649,9 @@ const Ue = {
|
|
|
1651
1649
|
class: "flex-1",
|
|
1652
1650
|
variant: "secondary",
|
|
1653
1651
|
label: "Delete",
|
|
1654
|
-
onclick: () =>
|
|
1652
|
+
onclick: () => y(l.value)
|
|
1655
1653
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1656
|
-
|
|
1654
|
+
v(i, {
|
|
1657
1655
|
type: "submit",
|
|
1658
1656
|
class: "flex-1",
|
|
1659
1657
|
variant: "primary",
|
|
@@ -1665,7 +1663,7 @@ const Ue = {
|
|
|
1665
1663
|
}, 512);
|
|
1666
1664
|
};
|
|
1667
1665
|
}
|
|
1668
|
-
}), Ta = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ia = { class: "flex mt-6 space-x-6" }, Fa = /* @__PURE__ */
|
|
1666
|
+
}), Ta = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ia = { class: "flex mt-6 space-x-6" }, Fa = /* @__PURE__ */ R({
|
|
1669
1667
|
__name: "OmaGateway",
|
|
1670
1668
|
props: {
|
|
1671
1669
|
terminal: {
|
|
@@ -1699,8 +1697,8 @@ const Ue = {
|
|
|
1699
1697
|
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1700
1698
|
});
|
|
1701
1699
|
};
|
|
1702
|
-
|
|
1703
|
-
async function
|
|
1700
|
+
P(a, c), q(c);
|
|
1701
|
+
async function y(s) {
|
|
1704
1702
|
var t;
|
|
1705
1703
|
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
|
|
1706
1704
|
}
|
|
@@ -1733,27 +1731,27 @@ const Ue = {
|
|
|
1733
1731
|
})
|
|
1734
1732
|
}, {
|
|
1735
1733
|
default: O(() => [
|
|
1736
|
-
|
|
1734
|
+
v(n, {
|
|
1737
1735
|
modelValue: e.value.receiptName,
|
|
1738
1736
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1739
1737
|
label: "Receipt Payment Name",
|
|
1740
1738
|
"label-info": "Default receipt display will be 'TERMINAL_OMA'"
|
|
1741
1739
|
}, null, 8, ["modelValue"]),
|
|
1742
1740
|
I("div", Ta, [
|
|
1743
|
-
|
|
1741
|
+
v(n, {
|
|
1744
1742
|
modelValue: r.value,
|
|
1745
1743
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1746
1744
|
label: "Fallback Card Types",
|
|
1747
1745
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1748
1746
|
}, null, 8, ["modelValue"]),
|
|
1749
|
-
|
|
1747
|
+
v(i, {
|
|
1750
1748
|
class: "ml-4",
|
|
1751
1749
|
icon: "add",
|
|
1752
1750
|
onClick: u
|
|
1753
1751
|
})
|
|
1754
1752
|
]),
|
|
1755
1753
|
I("div", _a, [
|
|
1756
|
-
(f(!0),
|
|
1754
|
+
(f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1757
1755
|
key: o,
|
|
1758
1756
|
label: o,
|
|
1759
1757
|
removable: !0,
|
|
@@ -1766,9 +1764,9 @@ const Ue = {
|
|
|
1766
1764
|
class: "flex-1",
|
|
1767
1765
|
variant: "secondary",
|
|
1768
1766
|
label: "Delete",
|
|
1769
|
-
onclick: () =>
|
|
1767
|
+
onclick: () => y(l.value)
|
|
1770
1768
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1771
|
-
|
|
1769
|
+
v(i, {
|
|
1772
1770
|
type: "submit",
|
|
1773
1771
|
class: "flex-1",
|
|
1774
1772
|
variant: "primary",
|
|
@@ -1780,7 +1778,7 @@ const Ue = {
|
|
|
1780
1778
|
}, 512);
|
|
1781
1779
|
};
|
|
1782
1780
|
}
|
|
1783
|
-
}), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */
|
|
1781
|
+
}), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ R({
|
|
1784
1782
|
__name: "EcrGateway",
|
|
1785
1783
|
props: {
|
|
1786
1784
|
terminal: {
|
|
@@ -1871,14 +1869,14 @@ const Ue = {
|
|
|
1871
1869
|
)), { gatewayTab: e } = ne({
|
|
1872
1870
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1873
1871
|
});
|
|
1874
|
-
return (c,
|
|
1872
|
+
return (c, y) => {
|
|
1875
1873
|
var s;
|
|
1876
1874
|
const u = g("FmTabs");
|
|
1877
|
-
return f(),
|
|
1875
|
+
return f(), M("div", wa, [
|
|
1878
1876
|
I("div", xa, [
|
|
1879
|
-
|
|
1877
|
+
v(u, {
|
|
1880
1878
|
"model-value": h(e),
|
|
1881
|
-
"onUpdate:modelValue":
|
|
1879
|
+
"onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
|
|
1882
1880
|
class: "mb-6",
|
|
1883
1881
|
vertical: !0,
|
|
1884
1882
|
items: r.value,
|
|
@@ -1894,7 +1892,7 @@ const Ue = {
|
|
|
1894
1892
|
]);
|
|
1895
1893
|
};
|
|
1896
1894
|
}
|
|
1897
|
-
}), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */
|
|
1895
|
+
}), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ R({
|
|
1898
1896
|
__name: "PromptPayGateway",
|
|
1899
1897
|
props: {
|
|
1900
1898
|
terminal: {
|
|
@@ -1915,22 +1913,22 @@ const Ue = {
|
|
|
1915
1913
|
}, m = () => {
|
|
1916
1914
|
if (!a.value.qrIntegrations)
|
|
1917
1915
|
return e();
|
|
1918
|
-
const
|
|
1916
|
+
const y = a.value.qrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
|
|
1919
1917
|
if (u === -1)
|
|
1920
1918
|
return e();
|
|
1921
1919
|
l.value = u;
|
|
1922
|
-
const s =
|
|
1920
|
+
const s = y.at(u);
|
|
1923
1921
|
s.gateway === "PROMPTPAY" && s.config && (r.value = {
|
|
1924
1922
|
account: s.config.account ?? "",
|
|
1925
1923
|
receiptName: s.receiptName ?? ""
|
|
1926
1924
|
});
|
|
1927
1925
|
};
|
|
1928
|
-
|
|
1929
|
-
async function c(
|
|
1926
|
+
P(a, m), q(m);
|
|
1927
|
+
async function c(y) {
|
|
1930
1928
|
var u;
|
|
1931
|
-
(u = a.value.qrIntegrations) == null || u.splice(
|
|
1929
|
+
(u = a.value.qrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
|
|
1932
1930
|
}
|
|
1933
|
-
return (
|
|
1931
|
+
return (y, u) => {
|
|
1934
1932
|
const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
|
|
1935
1933
|
return f(), F(n, {
|
|
1936
1934
|
ref: T.value,
|
|
@@ -1940,13 +1938,13 @@ const Ue = {
|
|
|
1940
1938
|
})
|
|
1941
1939
|
}, {
|
|
1942
1940
|
default: O(() => [
|
|
1943
|
-
|
|
1941
|
+
v(s, {
|
|
1944
1942
|
modelValue: r.value.account,
|
|
1945
1943
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
|
|
1946
1944
|
label: "Thai Phone Number / Thai Naitonal ID",
|
|
1947
1945
|
"label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
|
|
1948
1946
|
}, null, 8, ["modelValue"]),
|
|
1949
|
-
|
|
1947
|
+
v(s, {
|
|
1950
1948
|
modelValue: r.value.receiptName,
|
|
1951
1949
|
"onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
|
|
1952
1950
|
label: "Receipt Payment Name",
|
|
@@ -1960,7 +1958,7 @@ const Ue = {
|
|
|
1960
1958
|
label: "Delete",
|
|
1961
1959
|
onclick: () => c(l.value)
|
|
1962
1960
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1963
|
-
|
|
1961
|
+
v(t, {
|
|
1964
1962
|
type: "submit",
|
|
1965
1963
|
class: "flex-1",
|
|
1966
1964
|
variant: "primary",
|
|
@@ -1972,7 +1970,7 @@ const Ue = {
|
|
|
1972
1970
|
}, 512);
|
|
1973
1971
|
};
|
|
1974
1972
|
}
|
|
1975
|
-
}), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */
|
|
1973
|
+
}), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ R({
|
|
1976
1974
|
__name: "QrGateway",
|
|
1977
1975
|
props: {
|
|
1978
1976
|
terminal: {
|
|
@@ -1996,14 +1994,14 @@ const Ue = {
|
|
|
1996
1994
|
], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter((c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
|
|
1997
1995
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1998
1996
|
});
|
|
1999
|
-
return (c,
|
|
1997
|
+
return (c, y) => {
|
|
2000
1998
|
var s;
|
|
2001
1999
|
const u = g("FmTabs");
|
|
2002
|
-
return f(),
|
|
2000
|
+
return f(), M("div", Sa, [
|
|
2003
2001
|
I("div", Ua, [
|
|
2004
|
-
|
|
2002
|
+
v(u, {
|
|
2005
2003
|
"model-value": h(e),
|
|
2006
|
-
"onUpdate:modelValue":
|
|
2004
|
+
"onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
|
|
2007
2005
|
class: "mb-6",
|
|
2008
2006
|
vertical: !0,
|
|
2009
2007
|
items: r.value
|
|
@@ -2018,7 +2016,7 @@ const Ue = {
|
|
|
2018
2016
|
]);
|
|
2019
2017
|
};
|
|
2020
2018
|
}
|
|
2021
|
-
}), Ka = /* @__PURE__ */
|
|
2019
|
+
}), Ka = /* @__PURE__ */ R({
|
|
2022
2020
|
__name: "TerminalSetting",
|
|
2023
2021
|
props: {
|
|
2024
2022
|
terminalId: {
|
|
@@ -2056,7 +2054,7 @@ const Ue = {
|
|
|
2056
2054
|
}
|
|
2057
2055
|
});
|
|
2058
2056
|
}
|
|
2059
|
-
const
|
|
2057
|
+
const y = [
|
|
2060
2058
|
{
|
|
2061
2059
|
label: "Information",
|
|
2062
2060
|
value: "information",
|
|
@@ -2094,18 +2092,18 @@ const Ue = {
|
|
|
2094
2092
|
oe().currentCountry;
|
|
2095
2093
|
const u = C(() => {
|
|
2096
2094
|
var n;
|
|
2097
|
-
return (n =
|
|
2095
|
+
return (n = y.find((i) => i.value === a.value)) == null ? void 0 : n.render;
|
|
2098
2096
|
});
|
|
2099
2097
|
async function s() {
|
|
2100
2098
|
l(async () => {
|
|
2101
2099
|
m.value = await E.readById(d.terminalId);
|
|
2102
2100
|
});
|
|
2103
2101
|
}
|
|
2104
|
-
const t = C(() =>
|
|
2102
|
+
const t = C(() => y.filter((n) => {
|
|
2105
2103
|
var i;
|
|
2106
2104
|
return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
|
|
2107
2105
|
}));
|
|
2108
|
-
return
|
|
2106
|
+
return q(s), (n, i) => {
|
|
2109
2107
|
var x, o;
|
|
2110
2108
|
const p = g("FmTabs");
|
|
2111
2109
|
return f(), F(ye, {
|
|
@@ -2114,7 +2112,7 @@ const Ue = {
|
|
|
2114
2112
|
onBack: h(r).back
|
|
2115
2113
|
}, {
|
|
2116
2114
|
default: O(() => [
|
|
2117
|
-
|
|
2115
|
+
v(p, {
|
|
2118
2116
|
"model-value": h(a),
|
|
2119
2117
|
"onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
|
|
2120
2118
|
class: "mb-6",
|