@feedmepos/mf-payment 1.7.1 → 1.7.4-dev
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-CRNNEhdb.js → Actions.vue_vue_type_script_setup_true_lang-B5sqVL7d.js} +1 -1
- package/dist/AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B2sVLkI5.js +140 -0
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DjiSltH9.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D_hGHpb0.js} +2 -2
- package/dist/{Chargeback-CLmIb_z0.js → Chargeback-CtYYjuEB.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Cy-vikjQ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BW-Gu-nZ.js} +1 -1
- package/dist/{OnboardForm-DJcR03we.js → OnboardForm-CIFQEBec.js} +5 -5
- package/dist/{OnboardForm--egFxuAd.js → OnboardForm-IRLkWmoI.js} +5 -5
- package/dist/{OnboardSubmission-D5uJWKHh.js → OnboardSubmission-C9M8t5vU.js} +5 -5
- package/dist/{OnboardSubmission-BaM01HIV.js → OnboardSubmission-CndjRMqy.js} +2 -2
- package/dist/{PayoutAccount-DYZ2gQGD.js → PayoutAccount-BSXnemjX.js} +5 -5
- package/dist/PayoutAccount-CpuAa-qa.js +399 -0
- package/dist/{PayoutAccountSetting-DlF_FPHr.js → PayoutAccountSetting-CMkQNnDb.js} +6 -6
- package/dist/{Restaurant-KGa0xV0K.js → Restaurant-bpdNibYe.js} +4 -4
- package/dist/{RestaurantSetting-Bg5M-n6p.js → RestaurantSetting-NbagQfTz.js} +3 -3
- package/dist/{Settlement-C4q03i6e.js → Settlement-D_yGtVZV.js} +4 -4
- package/dist/{Settlement-DAkVWztP.js → Settlement-TAZg6fCx.js} +3 -3
- package/dist/{SettlementTransactions-XjsIKvXQ.js → SettlementTransactions-DHxHNPdw.js} +4 -4
- package/dist/{SettlementTransactions-CsvfmLM_.js → SettlementTransactions-ENvQRM79.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-ExFNksup.js → Status.vue_vue_type_script_setup_true_lang-B0FnrTJk.js} +1 -1
- package/dist/{Terminal-DkeT7bTc.js → Terminal-z_7q3GBS.js} +5 -5
- package/dist/{TerminalSetting-AnoIOO73.js → TerminalSetting-C5UmznfX.js} +655 -521
- package/dist/Transaction-DNkc6es6.js +1005 -0
- package/dist/{Transaction-mo1v6xz1.js → Transaction-zDTbTtVx.js} +10 -10
- package/dist/{TransactionOld-nzUGTELC.js → TransactionOld-Dm5PvUqF.js} +7 -7
- package/dist/api/payout/index.d.ts +4 -0
- package/dist/{app-1rw4JLKr.js → app-ByzqMQl4.js} +452 -442
- package/dist/app.js +1 -1
- package/dist/{assets-CPEv5xmO.js → assets-DXXXC51N.js} +1 -1
- package/dist/{grafana-fcTmH2tm.js → grafana-U9VBVEEb.js} +1 -1
- package/dist/{index-Ch9pmMdq.js → index-BMLgxxih.js} +1 -1
- package/dist/{index-B0rOAUW-.js → index-BZ6UOzJf.js} +34 -29
- package/dist/{index-DTBJopG8.js → index-C6uyHnHe.js} +1 -1
- package/dist/{index-CIbvJ5oc.js → index-COd-DEdZ.js} +1 -1
- package/dist/{index-gbUzsHq5.js → index-CbRKtmjR.js} +1 -1
- package/dist/{index-CVs0aN89.js → index-D5SllCXu.js} +26 -31
- package/dist/{index-BiKaun0K.js → index-DR01zn4-.js} +1 -1
- package/dist/{index-DYl43WIP.js → index-DmTVLzm7.js} +5544 -5474
- package/dist/{index-Qmbuelbf.js → index-udIS6_YQ.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js → index.vue_vue_type_script_setup_true_lang-QSCHnqzi.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +2 -2
- package/dist/{payout-account-B4W2N8Xm.js → payout-account-DlZkCb88.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +20 -16
- package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +2 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +16 -16
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +140 -0
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -44
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +16 -16
- package/package.json +2 -2
- package/dist/PayoutAccount-CEr0rx4J.js +0 -273
- package/dist/Transaction-BEkrFPHL.js +0 -1135
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as le, p as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { t as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as ne } from "./index-
|
|
1
|
+
import { defineComponent as R, openBlock as y, createElementBlock as S, Fragment as P, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as v, createCommentVNode as V, unref as M, computed as k, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as q, onBeforeUnmount as ve, toRef as A, onMounted as G, withCtx as O, renderList as B } from "vue";
|
|
2
|
+
import { u as le, p as ye, e as U } from "./index-DmTVLzm7.js";
|
|
3
|
+
import { useRouter as fe } from "vue-router";
|
|
4
|
+
import { t as K } from "./index-BMLgxxih.js";
|
|
5
|
+
import { _ as ge } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
+
import { u as ne } from "./index-DR01zn4-.js";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as X } from "./error-K1CakhA9.js";
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { o as
|
|
11
|
-
import { c as
|
|
12
|
-
import { z as
|
|
13
|
-
const Ie = /* @__PURE__ */
|
|
9
|
+
import { useI18n as be, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
+
import { o as Te } from "./index-udIS6_YQ.js";
|
|
11
|
+
import { c as _e } from "./index-MdV54cWO.js";
|
|
12
|
+
import { z as ue, a as ce } from "./validator-CTlVogBQ.js";
|
|
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 (
|
|
22
|
+
return (p, a) => (y(), S(P, 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: {
|
|
@@ -43,7 +43,7 @@ const Ie = /* @__PURE__ */ M({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(_) {
|
|
46
|
-
const { isLoading:
|
|
46
|
+
const { isLoading: p, startAsyncCall: a } = le(!1), T = se(), l = b({
|
|
47
47
|
enable: !1,
|
|
48
48
|
password: []
|
|
49
49
|
}), r = _;
|
|
@@ -56,44 +56,44 @@ const Ie = /* @__PURE__ */ M({
|
|
|
56
56
|
m.enable && Object.assign(m, {
|
|
57
57
|
password: l.value.password.join("")
|
|
58
58
|
});
|
|
59
|
-
const c = await
|
|
59
|
+
const c = await K.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 f = c;
|
|
63
|
+
return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = c.replaceAll("terminal: ", "")), T.open({
|
|
64
64
|
type: "error",
|
|
65
|
-
message:
|
|
65
|
+
message: f
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return (m, c) => {
|
|
70
|
-
const
|
|
71
|
-
return
|
|
72
|
-
|
|
70
|
+
const f = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
|
|
71
|
+
return y(), S(P, null, [
|
|
72
|
+
v(f, {
|
|
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 ? (
|
|
77
|
+
l.value.enable ? (y(), S("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",
|
|
89
|
-
loading:
|
|
89
|
+
loading: M(p),
|
|
90
90
|
onclick: e
|
|
91
91
|
}, null, 8, ["loading"])
|
|
92
92
|
])
|
|
93
93
|
], 64);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), Ne = /* @__PURE__ */
|
|
96
|
+
}), Ne = /* @__PURE__ */ R({
|
|
97
97
|
__name: "SettingRequest",
|
|
98
98
|
props: {
|
|
99
99
|
terminal: {
|
|
@@ -102,7 +102,7 @@ const Ie = /* @__PURE__ */ M({
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
setup(_) {
|
|
105
|
-
const { settingTab:
|
|
105
|
+
const { settingTab: p } = ne({
|
|
106
106
|
settingTab: "kiosk_mode"
|
|
107
107
|
}), a = [
|
|
108
108
|
{
|
|
@@ -110,71 +110,71 @@ const Ie = /* @__PURE__ */ M({
|
|
|
110
110
|
value: "kiosk_mode",
|
|
111
111
|
render: xe
|
|
112
112
|
}
|
|
113
|
-
], T = _, l =
|
|
113
|
+
], T = _, l = k(() => a.find((r) => r.value === p.value));
|
|
114
114
|
return (r, e) => {
|
|
115
115
|
var c;
|
|
116
116
|
const m = g("FmTabs");
|
|
117
|
-
return
|
|
117
|
+
return y(), S(P, 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
|
-
|
|
123
|
-
"model-value":
|
|
124
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
122
|
+
v(m, {
|
|
123
|
+
"model-value": M(p),
|
|
124
|
+
"onUpdate:modelValue": e[0] || (e[0] = (f) => Z(p) ? p.value = f : null),
|
|
125
125
|
class: "mb-6",
|
|
126
126
|
items: a
|
|
127
127
|
}, null, 8, ["model-value"]),
|
|
128
|
-
|
|
128
|
+
M(p) ? (y(), F(ee((c = l.value) == null ? void 0 : c.render), ae(te({ key: 0 }, { terminal: T.terminal })), null, 16)) : V("", !0)
|
|
129
129
|
], 64);
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
133
|
-
function
|
|
134
|
-
const { isLoading:
|
|
135
|
-
var
|
|
136
|
-
const
|
|
137
|
-
(
|
|
132
|
+
}), Ce = 2e3, ke = 12e4, Ve = "Timed out waiting for the Tyro reader to sync. Please try again.";
|
|
133
|
+
function Ue(_) {
|
|
134
|
+
const { isLoading: p, startLoading: a, stopLoading: T } = le(!1), { t: l } = be(), r = se(), e = b(null), m = k(() => {
|
|
135
|
+
var $, E;
|
|
136
|
+
const C = ($ = _.value.gateways) == null ? void 0 : $.find(
|
|
137
|
+
(D) => D.gateway === "Tyro"
|
|
138
138
|
);
|
|
139
|
-
return ((
|
|
140
|
-
}), c =
|
|
141
|
-
var
|
|
142
|
-
return ((
|
|
143
|
-
}), u =
|
|
144
|
-
var
|
|
145
|
-
return
|
|
146
|
-
}), s =
|
|
139
|
+
return ((E = C == null ? void 0 : C.config) == null ? void 0 : E.uniqueId) || "";
|
|
140
|
+
}), c = k(() => !!m.value), f = k(() => {
|
|
141
|
+
var C;
|
|
142
|
+
return ((C = e.value) == null ? void 0 : C.status) === "ready";
|
|
143
|
+
}), u = k(() => {
|
|
144
|
+
var C, $;
|
|
145
|
+
return f.value && !!(($ = (C = e.value) == null ? void 0 : C.fields) != null && $.tyroLocationId) && !!_.value.deviceId && !c.value;
|
|
146
|
+
}), s = k(() => !f.value && !c.value), t = k(
|
|
147
147
|
() => l("payment.onboard-submission.tyro.syncDisabledHint")
|
|
148
|
-
),
|
|
148
|
+
), o = k(() => c.value ? "Synced" : "Sync");
|
|
149
149
|
async function i() {
|
|
150
150
|
if (!_.value.referenceId) {
|
|
151
151
|
e.value = null;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
try {
|
|
155
|
-
const
|
|
155
|
+
const C = await Te.getByRestaurant(
|
|
156
156
|
_.value.referenceId
|
|
157
157
|
);
|
|
158
|
-
e.value =
|
|
159
|
-
(
|
|
158
|
+
e.value = C.find(
|
|
159
|
+
($) => $.type === ye.FdoOnboardType.enum.tyro
|
|
160
160
|
) ?? null;
|
|
161
|
-
} catch (
|
|
161
|
+
} catch (C) {
|
|
162
162
|
e.value = null, r.open({
|
|
163
163
|
type: "error",
|
|
164
|
-
message: X(
|
|
164
|
+
message: X(C)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
intervalMs:
|
|
170
|
-
timeoutMs:
|
|
171
|
-
onTick: async ({ isCurrentRun:
|
|
168
|
+
const d = _e({
|
|
169
|
+
intervalMs: Ce,
|
|
170
|
+
timeoutMs: ke,
|
|
171
|
+
onTick: async ({ isCurrentRun: C, stop: $ }) => {
|
|
172
172
|
var H, z;
|
|
173
|
-
const
|
|
174
|
-
if (!
|
|
173
|
+
const E = await K.readById(_.value._id);
|
|
174
|
+
if (!C())
|
|
175
175
|
return;
|
|
176
|
-
const
|
|
177
|
-
(
|
|
176
|
+
const D = (H = E.gateways) == null ? void 0 : H.find((Q) => Q.gateway === "Tyro");
|
|
177
|
+
(D == null ? void 0 : D.gateway) === "Tyro" && ((z = D == null ? void 0 : D.config) != null && z.uniqueId) && ($({ invalidate: !1 }), T(), Object.assign(_.value, E), r.open({
|
|
178
178
|
type: "success",
|
|
179
179
|
message: "Tyro reader created successfully"
|
|
180
180
|
}));
|
|
@@ -185,20 +185,20 @@ function Se(_) {
|
|
|
185
185
|
message: Ve
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
|
-
onError: (
|
|
188
|
+
onError: (C) => {
|
|
189
189
|
T(), r.open({
|
|
190
190
|
type: "error",
|
|
191
|
-
message: X(
|
|
191
|
+
message: X(C)
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
}), x =
|
|
195
|
-
function
|
|
196
|
-
|
|
194
|
+
}), x = d.isPolling;
|
|
195
|
+
function n() {
|
|
196
|
+
d.stop(), T();
|
|
197
197
|
}
|
|
198
198
|
function w() {
|
|
199
|
-
|
|
199
|
+
n(), a(), d.start();
|
|
200
200
|
}
|
|
201
|
-
async function
|
|
201
|
+
async function L() {
|
|
202
202
|
if (!u.value) {
|
|
203
203
|
r.open({
|
|
204
204
|
type: "error",
|
|
@@ -207,11 +207,11 @@ function Se(_) {
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
try {
|
|
210
|
-
a(), await
|
|
211
|
-
} catch (
|
|
212
|
-
|
|
210
|
+
a(), await K.syncTyroReader(_.value._id), w();
|
|
211
|
+
} catch (C) {
|
|
212
|
+
n(), r.open({
|
|
213
213
|
type: "error",
|
|
214
|
-
message: X(
|
|
214
|
+
message: X(C)
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -221,23 +221,23 @@ function Se(_) {
|
|
|
221
221
|
await i();
|
|
222
222
|
},
|
|
223
223
|
{ immediate: !0 }
|
|
224
|
-
),
|
|
225
|
-
|
|
224
|
+
), ve(() => {
|
|
225
|
+
n();
|
|
226
226
|
}), {
|
|
227
|
-
isLoading:
|
|
227
|
+
isLoading: p,
|
|
228
228
|
isPollingTyroReader: x,
|
|
229
229
|
uniqueId: m,
|
|
230
230
|
canSyncTyroReader: u,
|
|
231
231
|
showTyroSyncPopover: s,
|
|
232
232
|
tyroSyncPopoverMessage: t,
|
|
233
|
-
tyroSyncButtonLabel:
|
|
234
|
-
syncTyroReader:
|
|
233
|
+
tyroSyncButtonLabel: o,
|
|
234
|
+
syncTyroReader: L
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const Se = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "text-sm text-gray-500"
|
|
240
|
-
}, Re = { class: "flex mt-6 space-x-6" },
|
|
240
|
+
}, Re = { class: "flex mt-6 space-x-6" }, he = { class: "flex-1" }, Me = /* @__PURE__ */ R({
|
|
241
241
|
__name: "SoftposGateway",
|
|
242
242
|
props: {
|
|
243
243
|
terminal: {
|
|
@@ -250,7 +250,7 @@ const Ue = {
|
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
setup(_) {
|
|
253
|
-
const
|
|
253
|
+
const p = _, a = oe().currentCountry, T = [
|
|
254
254
|
{
|
|
255
255
|
label: "Fiuu Malaysia",
|
|
256
256
|
value: "cc.feedme.payment.rms",
|
|
@@ -291,30 +291,30 @@ const Ue = {
|
|
|
291
291
|
gateway: "Tyro",
|
|
292
292
|
region: U.F_COUNTRY.enum.AU
|
|
293
293
|
}
|
|
294
|
-
], l = A(() =>
|
|
294
|
+
], l = A(() => p.terminal), r = b(), e = b({
|
|
295
295
|
packageId: "",
|
|
296
296
|
uniqueId: "",
|
|
297
297
|
developerId: "",
|
|
298
298
|
isUat: !1
|
|
299
299
|
}), m = () => {
|
|
300
300
|
e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
301
|
-
}, c =
|
|
301
|
+
}, c = k(() => T.filter((N) => N.region === a.value)), f = k(() => c.value.find(
|
|
302
302
|
(N) => N.value === e.value.packageId
|
|
303
|
-
)), u =
|
|
303
|
+
)), u = k(
|
|
304
304
|
() => {
|
|
305
305
|
var N;
|
|
306
|
-
return ((N =
|
|
306
|
+
return ((N = f.value) == null ? void 0 : N.gateway) === "Tyro";
|
|
307
307
|
}
|
|
308
308
|
), {
|
|
309
309
|
isLoading: s,
|
|
310
310
|
isPollingTyroReader: t,
|
|
311
|
-
uniqueId:
|
|
311
|
+
uniqueId: o,
|
|
312
312
|
canSyncTyroReader: i,
|
|
313
|
-
showTyroSyncPopover:
|
|
313
|
+
showTyroSyncPopover: d,
|
|
314
314
|
tyroSyncPopoverMessage: x,
|
|
315
|
-
tyroSyncButtonLabel:
|
|
315
|
+
tyroSyncButtonLabel: n,
|
|
316
316
|
syncTyroReader: w
|
|
317
|
-
} =
|
|
317
|
+
} = Ue(l), L = k(() => u.value ? "button" : "submit"), C = k(() => u.value ? n.value : "Save"), $ = k(() => u.value ? s.value : !1), E = k(() => u.value ? !i.value || t.value : !1), D = () => {
|
|
318
318
|
if (!l.value.gateways || l.value.gateways.length === 0)
|
|
319
319
|
return m();
|
|
320
320
|
const N = l.value.gateways[0];
|
|
@@ -340,23 +340,23 @@ const Ue = {
|
|
|
340
340
|
break;
|
|
341
341
|
case "Softspace":
|
|
342
342
|
case "Digio":
|
|
343
|
-
const
|
|
343
|
+
const h = JSON.parse(N.config.uniqueId);
|
|
344
344
|
e.value = {
|
|
345
345
|
packageId: N.config.packageId,
|
|
346
|
-
uniqueId:
|
|
347
|
-
developerId:
|
|
348
|
-
isUat:
|
|
346
|
+
uniqueId: h.uniqueId,
|
|
347
|
+
developerId: h.developerId,
|
|
348
|
+
isUat: h.isUat
|
|
349
349
|
};
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
q(l,
|
|
353
|
+
q(l, D), G(D);
|
|
354
354
|
async function H() {
|
|
355
|
-
const N =
|
|
355
|
+
const N = f.value;
|
|
356
356
|
if (!N)
|
|
357
357
|
return;
|
|
358
|
-
let
|
|
359
|
-
N.isLegacy || (
|
|
358
|
+
let h = e.value.uniqueId;
|
|
359
|
+
N.isLegacy || (h = JSON.stringify({
|
|
360
360
|
uniqueId: e.value.uniqueId,
|
|
361
361
|
developerId: e.value.developerId,
|
|
362
362
|
isUat: e.value.isUat
|
|
@@ -365,100 +365,100 @@ const Ue = {
|
|
|
365
365
|
gateway: N.gateway,
|
|
366
366
|
config: {
|
|
367
367
|
packageId: N.value,
|
|
368
|
-
uniqueId:
|
|
368
|
+
uniqueId: h
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = re, await
|
|
371
|
+
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = re, await p.onUpdate(l.value);
|
|
372
372
|
}
|
|
373
373
|
async function z(N) {
|
|
374
|
-
var
|
|
375
|
-
(
|
|
374
|
+
var h;
|
|
375
|
+
(h = l.value.gateways) == null || h.splice(N, 1), p.onUpdate(l.value);
|
|
376
376
|
}
|
|
377
377
|
function Q() {
|
|
378
378
|
u.value && w();
|
|
379
379
|
}
|
|
380
|
-
return (N,
|
|
381
|
-
const re = g("FmSelect"), J = g("FmTextField"),
|
|
382
|
-
return
|
|
380
|
+
return (N, h) => {
|
|
381
|
+
const re = g("FmSelect"), J = g("FmTextField"), de = g("FmCheckbox"), ie = g("FmButton"), pe = g("FmTooltip"), me = g("FmForm");
|
|
382
|
+
return y(), F(me, {
|
|
383
383
|
ref: r.value,
|
|
384
384
|
class: "flex flex-col gap-16 w-[500px]",
|
|
385
385
|
onValidationSuccess: H
|
|
386
386
|
}, {
|
|
387
387
|
default: O(() => [
|
|
388
|
-
|
|
388
|
+
v(re, {
|
|
389
389
|
modelValue: e.value.packageId,
|
|
390
|
-
"onUpdate:modelValue":
|
|
390
|
+
"onUpdate:modelValue": h[0] || (h[0] = (Y) => e.value.packageId = Y),
|
|
391
391
|
label: "Package ID",
|
|
392
392
|
items: c.value
|
|
393
393
|
}, null, 8, ["modelValue", "items"]),
|
|
394
|
-
|
|
395
|
-
u.value ? (
|
|
394
|
+
f.value ? (y(), S(P, { key: 0 }, [
|
|
395
|
+
u.value ? (y(), F(J, {
|
|
396
396
|
key: 0,
|
|
397
|
-
"model-value":
|
|
397
|
+
"model-value": M(o),
|
|
398
398
|
label: "Unique ID (Reader ID)",
|
|
399
399
|
disabled: ""
|
|
400
|
-
}, null, 8, ["model-value"])) :
|
|
401
|
-
|
|
400
|
+
}, null, 8, ["model-value"])) : f.value && f.value.isLegacy ? (y(), S(P, { key: 1 }, [
|
|
401
|
+
v(J, {
|
|
402
402
|
modelValue: e.value.uniqueId,
|
|
403
|
-
"onUpdate:modelValue":
|
|
403
|
+
"onUpdate:modelValue": h[1] || (h[1] = (Y) => e.value.uniqueId = Y),
|
|
404
404
|
label: "Unique ID (TID)"
|
|
405
405
|
}, null, 8, ["modelValue"]),
|
|
406
|
-
|
|
407
|
-
], 64)) : (
|
|
408
|
-
|
|
406
|
+
f.value.isOutdated ? (y(), S("span", Se, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
|
|
407
|
+
], 64)) : (y(), S(P, { key: 2 }, [
|
|
408
|
+
v(J, {
|
|
409
409
|
modelValue: e.value.developerId,
|
|
410
|
-
"onUpdate:modelValue":
|
|
410
|
+
"onUpdate:modelValue": h[2] || (h[2] = (Y) => e.value.developerId = Y),
|
|
411
411
|
label: "Developer ID (MID)"
|
|
412
412
|
}, null, 8, ["modelValue"]),
|
|
413
|
-
|
|
413
|
+
v(J, {
|
|
414
414
|
modelValue: e.value.uniqueId,
|
|
415
|
-
"onUpdate:modelValue":
|
|
415
|
+
"onUpdate:modelValue": h[3] || (h[3] = (Y) => e.value.uniqueId = Y),
|
|
416
416
|
label: "Unique ID (TID)"
|
|
417
417
|
}, null, 8, ["modelValue"]),
|
|
418
|
-
|
|
418
|
+
v(de, {
|
|
419
419
|
modelValue: e.value.isUat,
|
|
420
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": h[4] || (h[4] = (Y) => e.value.isUat = Y),
|
|
421
421
|
label: "Is UAT (Test)",
|
|
422
422
|
value: "1"
|
|
423
423
|
}, null, 8, ["modelValue"])
|
|
424
424
|
], 64)),
|
|
425
425
|
I("div", Re, [
|
|
426
|
-
l.value.gateways && l.value.gateways.length > 0 ? (
|
|
426
|
+
l.value.gateways && l.value.gateways.length > 0 ? (y(), F(ie, {
|
|
427
427
|
key: 0,
|
|
428
428
|
class: "flex-1",
|
|
429
429
|
variant: "secondary",
|
|
430
430
|
label: "Delete",
|
|
431
431
|
onclick: () => z(0)
|
|
432
432
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
433
|
-
u.value &&
|
|
433
|
+
u.value && M(d) && E.value ? (y(), F(pe, {
|
|
434
434
|
key: 1,
|
|
435
435
|
class: "flex-1",
|
|
436
436
|
variant: "plain",
|
|
437
437
|
placement: "top",
|
|
438
|
-
content:
|
|
438
|
+
content: M(x)
|
|
439
439
|
}, {
|
|
440
440
|
default: O(() => [
|
|
441
|
-
I("div",
|
|
442
|
-
|
|
443
|
-
type:
|
|
441
|
+
I("div", he, [
|
|
442
|
+
v(ie, {
|
|
443
|
+
type: L.value,
|
|
444
444
|
class: "w-full",
|
|
445
445
|
variant: "primary",
|
|
446
|
-
loading:
|
|
447
|
-
disabled:
|
|
448
|
-
label:
|
|
446
|
+
loading: $.value,
|
|
447
|
+
disabled: E.value,
|
|
448
|
+
label: C.value,
|
|
449
449
|
onClick: Q
|
|
450
450
|
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
451
451
|
])
|
|
452
452
|
]),
|
|
453
453
|
_: 1
|
|
454
|
-
}, 8, ["content"])) : (
|
|
454
|
+
}, 8, ["content"])) : (y(), F(ie, {
|
|
455
455
|
key: 2,
|
|
456
|
-
type:
|
|
456
|
+
type: L.value,
|
|
457
457
|
class: "flex-1",
|
|
458
458
|
variant: "primary",
|
|
459
|
-
loading:
|
|
460
|
-
disabled:
|
|
461
|
-
label:
|
|
459
|
+
loading: $.value,
|
|
460
|
+
disabled: E.value,
|
|
461
|
+
label: C.value,
|
|
462
462
|
onClick: Q
|
|
463
463
|
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
464
464
|
])
|
|
@@ -471,7 +471,7 @@ const Ue = {
|
|
|
471
471
|
}), Oe = {
|
|
472
472
|
key: 0,
|
|
473
473
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
474
|
-
}, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */
|
|
474
|
+
}, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ R({
|
|
475
475
|
__name: "TerminalGateway",
|
|
476
476
|
props: {
|
|
477
477
|
terminal: {
|
|
@@ -484,38 +484,38 @@ const Ue = {
|
|
|
484
484
|
}
|
|
485
485
|
},
|
|
486
486
|
setup(_) {
|
|
487
|
-
const { isLoading:
|
|
487
|
+
const { isLoading: p, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
|
|
488
488
|
terminalId: ""
|
|
489
|
-
}),
|
|
489
|
+
}), f = () => {
|
|
490
490
|
c.value.terminalId = "", m.value = -1;
|
|
491
491
|
}, u = () => {
|
|
492
492
|
if (a(async () => {
|
|
493
|
-
r.value = await
|
|
493
|
+
r.value = await K.getRestaurantTerminals(T.terminal.referenceId);
|
|
494
494
|
}), !T.terminal.ecrs)
|
|
495
|
-
return
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
return
|
|
499
|
-
m.value =
|
|
500
|
-
const i = T.terminal.ecrs.at(
|
|
495
|
+
return f();
|
|
496
|
+
const o = T.terminal.ecrs.findIndex((d) => d && d.gateway && d.gateway === "FeedMe");
|
|
497
|
+
if (o === -1)
|
|
498
|
+
return f();
|
|
499
|
+
m.value = o;
|
|
500
|
+
const i = T.terminal.ecrs.at(o);
|
|
501
501
|
i.gateway === "FeedMe" && i.config && (c.value = {
|
|
502
502
|
terminalId: i.config.terminalId
|
|
503
503
|
});
|
|
504
504
|
};
|
|
505
505
|
q(l, u), G(u);
|
|
506
|
-
const s =
|
|
507
|
-
label:
|
|
508
|
-
value:
|
|
506
|
+
const s = k(() => (r.value ?? []).map((o) => ({
|
|
507
|
+
label: o.name ?? o._id,
|
|
508
|
+
value: o._id
|
|
509
509
|
})));
|
|
510
|
-
async function t(
|
|
510
|
+
async function t(o) {
|
|
511
511
|
var i;
|
|
512
|
-
(i = T.terminal.ecrs) == null || i.splice(
|
|
512
|
+
(i = T.terminal.ecrs) == null || i.splice(o, 1), T.onUpdate(T.terminal);
|
|
513
513
|
}
|
|
514
|
-
return (
|
|
515
|
-
const
|
|
516
|
-
return
|
|
517
|
-
|
|
518
|
-
])) : (
|
|
514
|
+
return (o, i) => {
|
|
515
|
+
const d = g("FmCircularProgress"), x = g("FmSelect"), n = g("FmButton"), w = g("FmForm");
|
|
516
|
+
return M(p) ? (y(), S("div", Oe, [
|
|
517
|
+
v(d, { size: "xxl" })
|
|
518
|
+
])) : (y(), F(w, {
|
|
519
519
|
key: 1,
|
|
520
520
|
ref: e.value,
|
|
521
521
|
class: "flex flex-col gap-16 w-[500px]",
|
|
@@ -524,22 +524,22 @@ const Ue = {
|
|
|
524
524
|
})
|
|
525
525
|
}, {
|
|
526
526
|
default: O(() => [
|
|
527
|
-
|
|
527
|
+
v(x, {
|
|
528
528
|
modelValue: c.value.terminalId,
|
|
529
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
529
|
+
"onUpdate:modelValue": i[0] || (i[0] = (L) => c.value.terminalId = L),
|
|
530
530
|
label: "Terminal ID",
|
|
531
531
|
items: s.value,
|
|
532
|
-
rules:
|
|
532
|
+
rules: M(ue)(M(ce).string())
|
|
533
533
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
534
534
|
I("div", Pe, [
|
|
535
|
-
m.value > -1 ? (
|
|
535
|
+
m.value > -1 ? (y(), F(n, {
|
|
536
536
|
key: 0,
|
|
537
537
|
class: "flex-1",
|
|
538
538
|
variant: "secondary",
|
|
539
539
|
label: "Delete",
|
|
540
540
|
onclick: () => t(m.value)
|
|
541
541
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
542
|
-
|
|
542
|
+
v(n, {
|
|
543
543
|
type: "submit",
|
|
544
544
|
class: "flex-1",
|
|
545
545
|
variant: "primary",
|
|
@@ -551,7 +551,7 @@ const Ue = {
|
|
|
551
551
|
}, 512));
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */
|
|
554
|
+
}), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ R({
|
|
555
555
|
__name: "GhlGateway",
|
|
556
556
|
props: {
|
|
557
557
|
terminal: {
|
|
@@ -564,7 +564,7 @@ const Ue = {
|
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
setup(_) {
|
|
567
|
-
const
|
|
567
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
|
|
568
568
|
merchantId: "",
|
|
569
569
|
terminalId: "",
|
|
570
570
|
privateKey: ""
|
|
@@ -573,11 +573,11 @@ const Ue = {
|
|
|
573
573
|
}, m = () => {
|
|
574
574
|
if (!a.value.ecrs)
|
|
575
575
|
return e();
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
576
|
+
const f = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
|
|
577
|
+
if (f === -1)
|
|
578
578
|
return e();
|
|
579
|
-
l.value =
|
|
580
|
-
const u = a.value.ecrs.at(
|
|
579
|
+
l.value = f;
|
|
580
|
+
const u = a.value.ecrs.at(f);
|
|
581
581
|
u.gateway === "Ghl" && u.config && (r.value = {
|
|
582
582
|
merchantId: u.config.merchantId,
|
|
583
583
|
terminalId: u.config.terminalId,
|
|
@@ -585,46 +585,46 @@ const Ue = {
|
|
|
585
585
|
});
|
|
586
586
|
};
|
|
587
587
|
q(a, m), G(m);
|
|
588
|
-
async function c(
|
|
588
|
+
async function c(f) {
|
|
589
589
|
var u;
|
|
590
|
-
(u = a.value.ecrs) == null || u.splice(
|
|
590
|
+
(u = a.value.ecrs) == null || u.splice(f, 1), p.onUpdate(a.value);
|
|
591
591
|
}
|
|
592
|
-
return (
|
|
593
|
-
const s = g("FmTextField"), t = g("FmTextarea"),
|
|
594
|
-
return
|
|
592
|
+
return (f, u) => {
|
|
593
|
+
const s = g("FmTextField"), t = g("FmTextarea"), o = g("FmButton"), i = g("FmForm");
|
|
594
|
+
return y(), F(i, {
|
|
595
595
|
ref: T.value,
|
|
596
596
|
class: "flex flex-col gap-16 w-[500px]",
|
|
597
597
|
onValidationSuccess: u[3] || (u[3] = () => {
|
|
598
|
-
l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })),
|
|
598
|
+
l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), p.onUpdate(a.value);
|
|
599
599
|
})
|
|
600
600
|
}, {
|
|
601
601
|
default: O(() => [
|
|
602
|
-
|
|
602
|
+
v(s, {
|
|
603
603
|
modelValue: r.value.merchantId,
|
|
604
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
604
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => r.value.merchantId = d),
|
|
605
605
|
label: "Merchant ID"
|
|
606
606
|
}, null, 8, ["modelValue"]),
|
|
607
|
-
|
|
607
|
+
v(s, {
|
|
608
608
|
modelValue: r.value.terminalId,
|
|
609
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
609
|
+
"onUpdate:modelValue": u[1] || (u[1] = (d) => r.value.terminalId = d),
|
|
610
610
|
label: "Terminal ID"
|
|
611
611
|
}, null, 8, ["modelValue"]),
|
|
612
|
-
|
|
612
|
+
v(t, {
|
|
613
613
|
modelValue: r.value.privateKey,
|
|
614
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
614
|
+
"onUpdate:modelValue": u[2] || (u[2] = (d) => r.value.privateKey = d),
|
|
615
615
|
label: "Private Key",
|
|
616
616
|
"label-mark": "optional",
|
|
617
617
|
"label-info": "Default will use FeedMe Private Key"
|
|
618
618
|
}, null, 8, ["modelValue"]),
|
|
619
619
|
I("div", Ge, [
|
|
620
|
-
l.value > -1 ? (
|
|
620
|
+
l.value > -1 ? (y(), F(o, {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "flex-1",
|
|
623
623
|
variant: "secondary",
|
|
624
624
|
label: "Delete",
|
|
625
625
|
onclick: () => c(l.value)
|
|
626
626
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
627
|
-
|
|
627
|
+
v(o, {
|
|
628
628
|
type: "submit",
|
|
629
629
|
class: "flex-1",
|
|
630
630
|
variant: "primary",
|
|
@@ -636,7 +636,7 @@ const Ue = {
|
|
|
636
636
|
}, 512);
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), $e = { class: "flex items-end" }, De = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ R({
|
|
640
640
|
__name: "MaybankGateway",
|
|
641
641
|
props: {
|
|
642
642
|
terminal: {
|
|
@@ -649,7 +649,7 @@ const Ue = {
|
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
setup(_) {
|
|
652
|
-
const
|
|
652
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
653
653
|
ip: "",
|
|
654
654
|
receiptName: "",
|
|
655
655
|
cardTypes: []
|
|
@@ -659,38 +659,38 @@ const Ue = {
|
|
|
659
659
|
var i;
|
|
660
660
|
if (!a.value.ecrIntegrations)
|
|
661
661
|
return m();
|
|
662
|
-
const s = a.value.ecrIntegrations, t = s.findIndex((
|
|
662
|
+
const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank");
|
|
663
663
|
if (t === -1)
|
|
664
664
|
return m();
|
|
665
665
|
l.value = t;
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
ip:
|
|
669
|
-
receiptName:
|
|
670
|
-
cardTypes: ((i =
|
|
666
|
+
const o = s.at(t);
|
|
667
|
+
o.gateway === "Maybank" && o.config && (e.value = {
|
|
668
|
+
ip: o.config.ip ?? "",
|
|
669
|
+
receiptName: o.receiptName ?? "",
|
|
670
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
671
671
|
});
|
|
672
672
|
};
|
|
673
673
|
q(a, c), G(c);
|
|
674
|
-
async function
|
|
674
|
+
async function f(s) {
|
|
675
675
|
var t;
|
|
676
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
676
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
677
677
|
}
|
|
678
678
|
async function u() {
|
|
679
679
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
680
680
|
}
|
|
681
681
|
return (s, t) => {
|
|
682
|
-
const
|
|
683
|
-
return
|
|
682
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
683
|
+
return y(), F(x, {
|
|
684
684
|
ref: T.value,
|
|
685
685
|
class: "flex flex-col gap-16 w-[500px]",
|
|
686
686
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
687
|
-
var
|
|
687
|
+
var n, w;
|
|
688
688
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
689
689
|
gateway: "Maybank",
|
|
690
690
|
config: { ip: e.value.ip },
|
|
691
691
|
receiptName: e.value.receiptName,
|
|
692
692
|
dialogConfig: {
|
|
693
|
-
...(w = (
|
|
693
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
694
694
|
cardTypes: e.value.cardTypes
|
|
695
695
|
}
|
|
696
696
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -700,51 +700,51 @@ const Ue = {
|
|
|
700
700
|
dialogConfig: {
|
|
701
701
|
cardTypes: e.value.cardTypes
|
|
702
702
|
}
|
|
703
|
-
})),
|
|
703
|
+
})), p.onUpdate(a.value);
|
|
704
704
|
})
|
|
705
705
|
}, {
|
|
706
706
|
default: O(() => [
|
|
707
|
-
|
|
707
|
+
v(o, {
|
|
708
708
|
modelValue: e.value.ip,
|
|
709
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
709
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
710
710
|
label: "IP Address"
|
|
711
711
|
}, null, 8, ["modelValue"]),
|
|
712
|
-
|
|
712
|
+
v(o, {
|
|
713
713
|
modelValue: e.value.receiptName,
|
|
714
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
714
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
715
715
|
label: "Receipt Payment Name",
|
|
716
716
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
717
717
|
}, null, 8, ["modelValue"]),
|
|
718
|
-
I("div",
|
|
719
|
-
|
|
718
|
+
I("div", $e, [
|
|
719
|
+
v(o, {
|
|
720
720
|
modelValue: r.value,
|
|
721
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
721
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
722
722
|
label: "Fallback Card Types",
|
|
723
723
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
724
724
|
}, null, 8, ["modelValue"]),
|
|
725
|
-
|
|
725
|
+
v(i, {
|
|
726
726
|
class: "ml-4",
|
|
727
727
|
icon: "add",
|
|
728
728
|
onClick: u
|
|
729
729
|
})
|
|
730
730
|
]),
|
|
731
|
-
I("div",
|
|
732
|
-
(
|
|
733
|
-
key:
|
|
734
|
-
label:
|
|
731
|
+
I("div", De, [
|
|
732
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
733
|
+
key: n,
|
|
734
|
+
label: n,
|
|
735
735
|
removable: !0,
|
|
736
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
736
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
737
737
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
738
738
|
]),
|
|
739
739
|
I("div", Be, [
|
|
740
|
-
l.value > -1 ? (
|
|
740
|
+
l.value > -1 ? (y(), F(i, {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "flex-1",
|
|
743
743
|
variant: "secondary",
|
|
744
744
|
label: "Delete",
|
|
745
|
-
onclick: () =>
|
|
745
|
+
onclick: () => f(l.value)
|
|
746
746
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
747
|
-
|
|
747
|
+
v(i, {
|
|
748
748
|
type: "submit",
|
|
749
749
|
class: "flex-1",
|
|
750
750
|
variant: "primary",
|
|
@@ -756,7 +756,7 @@ const Ue = {
|
|
|
756
756
|
}, 512);
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), Ee = { class: "flex items-end" }, Ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ R({
|
|
760
760
|
__name: "Maybank2Gateway",
|
|
761
761
|
props: {
|
|
762
762
|
terminal: {
|
|
@@ -769,7 +769,7 @@ const Ue = {
|
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
setup(_) {
|
|
772
|
-
const
|
|
772
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
773
773
|
ip: "",
|
|
774
774
|
receiptName: "",
|
|
775
775
|
cardTypes: []
|
|
@@ -779,38 +779,38 @@ const Ue = {
|
|
|
779
779
|
var i;
|
|
780
780
|
if (!a.value.ecrIntegrations)
|
|
781
781
|
return m();
|
|
782
|
-
const s = a.value.ecrIntegrations, t = s.findIndex((
|
|
782
|
+
const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank2");
|
|
783
783
|
if (t === -1)
|
|
784
784
|
return m();
|
|
785
785
|
l.value = t;
|
|
786
|
-
const
|
|
787
|
-
|
|
788
|
-
ip:
|
|
789
|
-
receiptName:
|
|
790
|
-
cardTypes: ((i =
|
|
786
|
+
const o = s.at(t);
|
|
787
|
+
o.gateway === "Maybank2" && o.config && (e.value = {
|
|
788
|
+
ip: o.config.ip ?? "",
|
|
789
|
+
receiptName: o.receiptName ?? "",
|
|
790
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
791
791
|
});
|
|
792
792
|
};
|
|
793
793
|
q(a, c), G(c);
|
|
794
|
-
async function
|
|
794
|
+
async function f(s) {
|
|
795
795
|
var t;
|
|
796
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
796
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
797
797
|
}
|
|
798
798
|
async function u() {
|
|
799
799
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
800
800
|
}
|
|
801
801
|
return (s, t) => {
|
|
802
|
-
const
|
|
803
|
-
return
|
|
802
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
803
|
+
return y(), F(x, {
|
|
804
804
|
ref: T.value,
|
|
805
805
|
class: "flex flex-col gap-16 w-[500px]",
|
|
806
806
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
807
|
-
var
|
|
807
|
+
var n, w;
|
|
808
808
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
809
809
|
gateway: "Maybank2",
|
|
810
810
|
config: { ip: e.value.ip },
|
|
811
811
|
receiptName: e.value.receiptName,
|
|
812
812
|
dialogConfig: {
|
|
813
|
-
...(w = (
|
|
813
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
814
814
|
cardTypes: e.value.cardTypes
|
|
815
815
|
}
|
|
816
816
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -820,51 +820,51 @@ const Ue = {
|
|
|
820
820
|
dialogConfig: {
|
|
821
821
|
cardTypes: e.value.cardTypes
|
|
822
822
|
}
|
|
823
|
-
})),
|
|
823
|
+
})), p.onUpdate(a.value);
|
|
824
824
|
})
|
|
825
825
|
}, {
|
|
826
826
|
default: O(() => [
|
|
827
|
-
|
|
827
|
+
v(o, {
|
|
828
828
|
modelValue: e.value.ip,
|
|
829
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
829
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
830
830
|
label: "IP Address"
|
|
831
831
|
}, null, 8, ["modelValue"]),
|
|
832
|
-
|
|
832
|
+
v(o, {
|
|
833
833
|
modelValue: e.value.receiptName,
|
|
834
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
834
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
835
835
|
label: "Receipt Payment Name",
|
|
836
836
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
837
837
|
}, null, 8, ["modelValue"]),
|
|
838
|
-
I("div",
|
|
839
|
-
|
|
838
|
+
I("div", Ee, [
|
|
839
|
+
v(o, {
|
|
840
840
|
modelValue: r.value,
|
|
841
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
841
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
842
842
|
label: "Fallback Card Types",
|
|
843
843
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
844
844
|
}, null, 8, ["modelValue"]),
|
|
845
|
-
|
|
845
|
+
v(i, {
|
|
846
846
|
class: "ml-4",
|
|
847
847
|
icon: "add",
|
|
848
848
|
onClick: u
|
|
849
849
|
})
|
|
850
850
|
]),
|
|
851
|
-
I("div",
|
|
852
|
-
(
|
|
853
|
-
key:
|
|
854
|
-
label:
|
|
851
|
+
I("div", Ye, [
|
|
852
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
853
|
+
key: n,
|
|
854
|
+
label: n,
|
|
855
855
|
removable: !0,
|
|
856
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
856
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
857
857
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
858
858
|
]),
|
|
859
859
|
I("div", Ke, [
|
|
860
|
-
l.value > -1 ? (
|
|
860
|
+
l.value > -1 ? (y(), F(i, {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "flex-1",
|
|
863
863
|
variant: "secondary",
|
|
864
864
|
label: "Delete",
|
|
865
|
-
onclick: () =>
|
|
865
|
+
onclick: () => f(l.value)
|
|
866
866
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
867
|
-
|
|
867
|
+
v(i, {
|
|
868
868
|
type: "submit",
|
|
869
869
|
class: "flex-1",
|
|
870
870
|
variant: "primary",
|
|
@@ -876,7 +876,7 @@ const Ue = {
|
|
|
876
876
|
}, 512);
|
|
877
877
|
};
|
|
878
878
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
880
880
|
__name: "Maybank3Gateway",
|
|
881
881
|
props: {
|
|
882
882
|
terminal: {
|
|
@@ -889,7 +889,7 @@ const Ue = {
|
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
891
|
setup(_) {
|
|
892
|
-
const
|
|
892
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
893
893
|
receiptName: "",
|
|
894
894
|
config: {},
|
|
895
895
|
cardTypes: []
|
|
@@ -899,38 +899,38 @@ const Ue = {
|
|
|
899
899
|
var i;
|
|
900
900
|
if (!a.value.ecrIntegrations)
|
|
901
901
|
return m();
|
|
902
|
-
const s = a.value.ecrIntegrations, t = s.findIndex((
|
|
902
|
+
const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank3");
|
|
903
903
|
if (t === -1)
|
|
904
904
|
return m();
|
|
905
905
|
l.value = t;
|
|
906
|
-
const
|
|
907
|
-
|
|
908
|
-
config:
|
|
909
|
-
receiptName:
|
|
910
|
-
cardTypes: ((i =
|
|
906
|
+
const o = s.at(t);
|
|
907
|
+
o.gateway === "Maybank3" && o.config && (e.value = {
|
|
908
|
+
config: o.config,
|
|
909
|
+
receiptName: o.receiptName ?? "",
|
|
910
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
911
911
|
});
|
|
912
912
|
};
|
|
913
913
|
q(a, c), G(c);
|
|
914
|
-
async function
|
|
914
|
+
async function f(s) {
|
|
915
915
|
var t;
|
|
916
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
916
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
917
917
|
}
|
|
918
918
|
async function u() {
|
|
919
919
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
920
920
|
}
|
|
921
921
|
return (s, t) => {
|
|
922
|
-
const
|
|
923
|
-
return
|
|
922
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
923
|
+
return y(), F(x, {
|
|
924
924
|
ref: T.value,
|
|
925
925
|
class: "flex flex-col gap-16 w-[500px]",
|
|
926
926
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
927
|
-
var
|
|
927
|
+
var n, w;
|
|
928
928
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
929
929
|
gateway: "Maybank3",
|
|
930
930
|
config: e.value.config,
|
|
931
931
|
receiptName: e.value.receiptName,
|
|
932
932
|
dialogConfig: {
|
|
933
|
-
...(w = (
|
|
933
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
934
934
|
cardTypes: e.value.cardTypes
|
|
935
935
|
}
|
|
936
936
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -940,46 +940,46 @@ const Ue = {
|
|
|
940
940
|
dialogConfig: {
|
|
941
941
|
cardTypes: e.value.cardTypes
|
|
942
942
|
}
|
|
943
|
-
})),
|
|
943
|
+
})), p.onUpdate(a.value);
|
|
944
944
|
})
|
|
945
945
|
}, {
|
|
946
946
|
default: O(() => [
|
|
947
|
-
|
|
947
|
+
v(o, {
|
|
948
948
|
modelValue: e.value.receiptName,
|
|
949
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
949
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
950
950
|
label: "Receipt Payment Name",
|
|
951
951
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
952
952
|
}, null, 8, ["modelValue"]),
|
|
953
953
|
I("div", He, [
|
|
954
|
-
|
|
954
|
+
v(o, {
|
|
955
955
|
modelValue: r.value,
|
|
956
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
956
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
957
957
|
label: "Fallback Card Types",
|
|
958
958
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
959
959
|
}, null, 8, ["modelValue"]),
|
|
960
|
-
|
|
960
|
+
v(i, {
|
|
961
961
|
class: "ml-4",
|
|
962
962
|
icon: "add",
|
|
963
963
|
onClick: u
|
|
964
964
|
})
|
|
965
965
|
]),
|
|
966
966
|
I("div", ze, [
|
|
967
|
-
(
|
|
968
|
-
key:
|
|
969
|
-
label:
|
|
967
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
968
|
+
key: n,
|
|
969
|
+
label: n,
|
|
970
970
|
removable: !0,
|
|
971
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
971
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
972
972
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
973
973
|
]),
|
|
974
974
|
I("div", Qe, [
|
|
975
|
-
l.value > -1 ? (
|
|
975
|
+
l.value > -1 ? (y(), F(i, {
|
|
976
976
|
key: 0,
|
|
977
977
|
class: "flex-1",
|
|
978
978
|
variant: "secondary",
|
|
979
979
|
label: "Delete",
|
|
980
|
-
onclick: () =>
|
|
980
|
+
onclick: () => f(l.value)
|
|
981
981
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
982
|
-
|
|
982
|
+
v(i, {
|
|
983
983
|
type: "submit",
|
|
984
984
|
class: "flex-1",
|
|
985
985
|
variant: "primary",
|
|
@@ -991,7 +991,7 @@ const Ue = {
|
|
|
991
991
|
}, 512);
|
|
992
992
|
};
|
|
993
993
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
995
995
|
__name: "NetsGateway",
|
|
996
996
|
props: {
|
|
997
997
|
terminal: {
|
|
@@ -1004,7 +1004,7 @@ const Ue = {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
},
|
|
1006
1006
|
setup(_) {
|
|
1007
|
-
const
|
|
1007
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1008
1008
|
ip: "",
|
|
1009
1009
|
receiptName: "",
|
|
1010
1010
|
cardTypes: []
|
|
@@ -1014,38 +1014,38 @@ const Ue = {
|
|
|
1014
1014
|
var i;
|
|
1015
1015
|
if (!a.value.ecrIntegrations)
|
|
1016
1016
|
return m();
|
|
1017
|
-
const s = a.value.ecrIntegrations, t = s.findIndex((
|
|
1017
|
+
const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Nets");
|
|
1018
1018
|
if (t === -1)
|
|
1019
1019
|
return m();
|
|
1020
1020
|
l.value = t;
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
ip:
|
|
1024
|
-
receiptName:
|
|
1025
|
-
cardTypes: ((i =
|
|
1021
|
+
const o = s.at(t);
|
|
1022
|
+
o.gateway === "Nets" && o.config && (e.value = {
|
|
1023
|
+
ip: o.config.ip ?? "",
|
|
1024
|
+
receiptName: o.receiptName ?? "",
|
|
1025
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
1028
1028
|
q(a, c), G(c);
|
|
1029
|
-
async function
|
|
1029
|
+
async function f(s) {
|
|
1030
1030
|
var t;
|
|
1031
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1031
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1032
1032
|
}
|
|
1033
1033
|
async function u() {
|
|
1034
1034
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1035
1035
|
}
|
|
1036
1036
|
return (s, t) => {
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
1037
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1038
|
+
return y(), F(x, {
|
|
1039
1039
|
ref: T.value,
|
|
1040
1040
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1041
1041
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
1042
|
-
var
|
|
1042
|
+
var n, w;
|
|
1043
1043
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1044
1044
|
gateway: "Nets",
|
|
1045
1045
|
config: { ip: e.value.ip },
|
|
1046
1046
|
receiptName: e.value.receiptName,
|
|
1047
1047
|
dialogConfig: {
|
|
1048
|
-
...(w = (
|
|
1048
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1049
1049
|
cardTypes: e.value.cardTypes
|
|
1050
1050
|
}
|
|
1051
1051
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1055,51 +1055,51 @@ const Ue = {
|
|
|
1055
1055
|
dialogConfig: {
|
|
1056
1056
|
cardTypes: e.value.cardTypes
|
|
1057
1057
|
}
|
|
1058
|
-
})),
|
|
1058
|
+
})), p.onUpdate(a.value);
|
|
1059
1059
|
})
|
|
1060
1060
|
}, {
|
|
1061
1061
|
default: O(() => [
|
|
1062
|
-
|
|
1062
|
+
v(o, {
|
|
1063
1063
|
modelValue: e.value.ip,
|
|
1064
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1064
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
1065
1065
|
label: "IP Address"
|
|
1066
1066
|
}, null, 8, ["modelValue"]),
|
|
1067
|
-
|
|
1067
|
+
v(o, {
|
|
1068
1068
|
modelValue: e.value.receiptName,
|
|
1069
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1069
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
1070
1070
|
label: "Receipt Payment Name",
|
|
1071
1071
|
"label-info": "Default receipt display will be 'TERMINAL_NETS'"
|
|
1072
1072
|
}, null, 8, ["modelValue"]),
|
|
1073
1073
|
I("div", We, [
|
|
1074
|
-
|
|
1074
|
+
v(o, {
|
|
1075
1075
|
modelValue: r.value,
|
|
1076
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1076
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
1077
1077
|
label: "Fallback Card Types",
|
|
1078
1078
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1079
1079
|
}, null, 8, ["modelValue"]),
|
|
1080
|
-
|
|
1080
|
+
v(i, {
|
|
1081
1081
|
class: "ml-4",
|
|
1082
1082
|
icon: "add",
|
|
1083
1083
|
onClick: u
|
|
1084
1084
|
})
|
|
1085
1085
|
]),
|
|
1086
1086
|
I("div", Xe, [
|
|
1087
|
-
(
|
|
1088
|
-
key:
|
|
1089
|
-
label:
|
|
1087
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1088
|
+
key: n,
|
|
1089
|
+
label: n,
|
|
1090
1090
|
removable: !0,
|
|
1091
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1091
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1092
1092
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1093
1093
|
]),
|
|
1094
1094
|
I("div", Ze, [
|
|
1095
|
-
l.value > -1 ? (
|
|
1095
|
+
l.value > -1 ? (y(), F(i, {
|
|
1096
1096
|
key: 0,
|
|
1097
1097
|
class: "flex-1",
|
|
1098
1098
|
variant: "secondary",
|
|
1099
1099
|
label: "Delete",
|
|
1100
|
-
onclick: () =>
|
|
1100
|
+
onclick: () => f(l.value)
|
|
1101
1101
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1102
|
-
|
|
1102
|
+
v(i, {
|
|
1103
1103
|
type: "submit",
|
|
1104
1104
|
class: "flex-1",
|
|
1105
1105
|
variant: "primary",
|
|
@@ -1111,7 +1111,7 @@ const Ue = {
|
|
|
1111
1111
|
}, 512);
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
1115
1115
|
__name: "KBankGateway",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
terminal: {
|
|
@@ -1124,7 +1124,7 @@ const Ue = {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
setup(_) {
|
|
1127
|
-
const
|
|
1127
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1128
1128
|
receiptName: "",
|
|
1129
1129
|
cardTypes: []
|
|
1130
1130
|
}), m = () => {
|
|
@@ -1133,37 +1133,37 @@ const Ue = {
|
|
|
1133
1133
|
var i;
|
|
1134
1134
|
if (!a.value.ecrIntegrations)
|
|
1135
1135
|
return m();
|
|
1136
|
-
const s = a.value.ecrIntegrations, t = s.findIndex((
|
|
1136
|
+
const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Kbank");
|
|
1137
1137
|
if (t === -1)
|
|
1138
1138
|
return m();
|
|
1139
1139
|
l.value = t;
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
receiptName:
|
|
1143
|
-
cardTypes: ((i =
|
|
1140
|
+
const o = s.at(t);
|
|
1141
|
+
o.gateway === "Kbank" && o.config && (e.value = {
|
|
1142
|
+
receiptName: o.receiptName ?? "",
|
|
1143
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1144
1144
|
});
|
|
1145
1145
|
};
|
|
1146
1146
|
q(a, c), G(c);
|
|
1147
|
-
async function
|
|
1147
|
+
async function f(s) {
|
|
1148
1148
|
var t;
|
|
1149
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1149
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1150
1150
|
}
|
|
1151
1151
|
async function u() {
|
|
1152
1152
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1153
1153
|
}
|
|
1154
1154
|
return (s, t) => {
|
|
1155
|
-
const
|
|
1156
|
-
return
|
|
1155
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1156
|
+
return y(), F(x, {
|
|
1157
1157
|
ref: T.value,
|
|
1158
1158
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1159
1159
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1160
|
-
var
|
|
1160
|
+
var n, w;
|
|
1161
1161
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1162
1162
|
gateway: "Kbank",
|
|
1163
1163
|
config: {},
|
|
1164
1164
|
receiptName: e.value.receiptName,
|
|
1165
1165
|
dialogConfig: {
|
|
1166
|
-
...(w = (
|
|
1166
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1167
1167
|
cardTypes: e.value.cardTypes
|
|
1168
1168
|
}
|
|
1169
1169
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1173,46 +1173,46 @@ const Ue = {
|
|
|
1173
1173
|
dialogConfig: {
|
|
1174
1174
|
cardTypes: e.value.cardTypes
|
|
1175
1175
|
}
|
|
1176
|
-
})),
|
|
1176
|
+
})), p.onUpdate(a.value);
|
|
1177
1177
|
})
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: O(() => [
|
|
1180
|
-
|
|
1180
|
+
v(o, {
|
|
1181
1181
|
modelValue: e.value.receiptName,
|
|
1182
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1182
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1183
1183
|
label: "Receipt Payment Name",
|
|
1184
1184
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
|
1185
1185
|
}, null, 8, ["modelValue"]),
|
|
1186
1186
|
I("div", aa, [
|
|
1187
|
-
|
|
1187
|
+
v(o, {
|
|
1188
1188
|
modelValue: r.value,
|
|
1189
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1189
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
1190
1190
|
label: "Fallback Card Types",
|
|
1191
1191
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1192
1192
|
}, null, 8, ["modelValue"]),
|
|
1193
|
-
|
|
1193
|
+
v(i, {
|
|
1194
1194
|
class: "ml-4",
|
|
1195
1195
|
icon: "add",
|
|
1196
1196
|
onClick: u
|
|
1197
1197
|
})
|
|
1198
1198
|
]),
|
|
1199
1199
|
I("div", ta, [
|
|
1200
|
-
(
|
|
1201
|
-
key:
|
|
1202
|
-
label:
|
|
1200
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1201
|
+
key: n,
|
|
1202
|
+
label: n,
|
|
1203
1203
|
removable: !0,
|
|
1204
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1204
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1205
1205
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1206
1206
|
]),
|
|
1207
1207
|
I("div", la, [
|
|
1208
|
-
l.value > -1 ? (
|
|
1208
|
+
l.value > -1 ? (y(), F(i, {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
class: "flex-1",
|
|
1211
1211
|
variant: "secondary",
|
|
1212
1212
|
label: "Delete",
|
|
1213
|
-
onclick: () =>
|
|
1213
|
+
onclick: () => f(l.value)
|
|
1214
1214
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1215
|
-
|
|
1215
|
+
v(i, {
|
|
1216
1216
|
type: "submit",
|
|
1217
1217
|
class: "flex-1",
|
|
1218
1218
|
variant: "primary",
|
|
@@ -1224,7 +1224,7 @@ const Ue = {
|
|
|
1224
1224
|
}, 512);
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
}), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */
|
|
1227
|
+
}), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ R({
|
|
1228
1228
|
__name: "Ghl2Gateway",
|
|
1229
1229
|
props: {
|
|
1230
1230
|
terminal: {
|
|
@@ -1237,7 +1237,7 @@ const Ue = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
setup(_) {
|
|
1240
|
-
const
|
|
1240
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
|
|
1241
1241
|
ip: "",
|
|
1242
1242
|
receiptName: ""
|
|
1243
1243
|
}), e = () => {
|
|
@@ -1245,24 +1245,24 @@ const Ue = {
|
|
|
1245
1245
|
}, m = () => {
|
|
1246
1246
|
if (!a.value.ecrIntegrations)
|
|
1247
1247
|
return e();
|
|
1248
|
-
const
|
|
1248
|
+
const f = a.value.ecrIntegrations, u = f.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
|
|
1249
1249
|
if (u === -1)
|
|
1250
1250
|
return e();
|
|
1251
1251
|
l.value = u;
|
|
1252
|
-
const s =
|
|
1252
|
+
const s = f.at(u);
|
|
1253
1253
|
s.gateway === "Ghl2" && s.config && (r.value = {
|
|
1254
1254
|
ip: s.config.ip ?? "",
|
|
1255
1255
|
receiptName: s.receiptName ?? ""
|
|
1256
1256
|
});
|
|
1257
1257
|
};
|
|
1258
1258
|
q(a, m), G(m);
|
|
1259
|
-
async function c(
|
|
1259
|
+
async function c(f) {
|
|
1260
1260
|
var u;
|
|
1261
|
-
(u = a.value.ecrIntegrations) == null || u.splice(
|
|
1261
|
+
(u = a.value.ecrIntegrations) == null || u.splice(f, 1), p.onUpdate(a.value);
|
|
1262
1262
|
}
|
|
1263
|
-
return (
|
|
1264
|
-
const s = g("FmTextField"), t = g("FmButton"),
|
|
1265
|
-
return
|
|
1263
|
+
return (f, u) => {
|
|
1264
|
+
const s = g("FmTextField"), t = g("FmButton"), o = g("FmForm");
|
|
1265
|
+
return y(), F(o, {
|
|
1266
1266
|
ref: T.value,
|
|
1267
1267
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1268
1268
|
onValidationSuccess: u[2] || (u[2] = () => {
|
|
@@ -1274,30 +1274,30 @@ const Ue = {
|
|
|
1274
1274
|
gateway: "Ghl2",
|
|
1275
1275
|
config: { ip: r.value.ip },
|
|
1276
1276
|
receiptName: r.value.receiptName
|
|
1277
|
-
}),
|
|
1277
|
+
}), p.onUpdate(a.value);
|
|
1278
1278
|
})
|
|
1279
1279
|
}, {
|
|
1280
1280
|
default: O(() => [
|
|
1281
|
-
|
|
1281
|
+
v(s, {
|
|
1282
1282
|
modelValue: r.value.ip,
|
|
1283
1283
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.ip = i),
|
|
1284
1284
|
label: "IP Address"
|
|
1285
1285
|
}, null, 8, ["modelValue"]),
|
|
1286
|
-
|
|
1286
|
+
v(s, {
|
|
1287
1287
|
modelValue: r.value.receiptName,
|
|
1288
1288
|
"onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
|
|
1289
1289
|
label: "Receipt Payment Name",
|
|
1290
1290
|
"label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
|
|
1291
1291
|
}, null, 8, ["modelValue"]),
|
|
1292
1292
|
I("div", oa, [
|
|
1293
|
-
l.value > -1 ? (
|
|
1293
|
+
l.value > -1 ? (y(), F(t, {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
class: "flex-1",
|
|
1296
1296
|
variant: "secondary",
|
|
1297
1297
|
label: "Delete",
|
|
1298
1298
|
onclick: () => c(l.value)
|
|
1299
1299
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1300
|
-
|
|
1300
|
+
v(t, {
|
|
1301
1301
|
type: "submit",
|
|
1302
1302
|
class: "flex-1",
|
|
1303
1303
|
variant: "primary",
|
|
@@ -1309,7 +1309,7 @@ const Ue = {
|
|
|
1309
1309
|
}, 512);
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
1313
1313
|
__name: "Ghl3Gateway",
|
|
1314
1314
|
props: {
|
|
1315
1315
|
terminal: {
|
|
@@ -1322,7 +1322,7 @@ const Ue = {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
},
|
|
1324
1324
|
setup(_) {
|
|
1325
|
-
const
|
|
1325
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1326
1326
|
receiptName: "",
|
|
1327
1327
|
config: {},
|
|
1328
1328
|
cardTypes: []
|
|
@@ -1333,39 +1333,39 @@ const Ue = {
|
|
|
1333
1333
|
if (!a.value.ecrIntegrations)
|
|
1334
1334
|
return m();
|
|
1335
1335
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1336
|
-
(
|
|
1336
|
+
(d) => d && d.gateway && d.gateway === "Ghl3"
|
|
1337
1337
|
);
|
|
1338
1338
|
if (t === -1)
|
|
1339
1339
|
return m();
|
|
1340
1340
|
l.value = t;
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
config:
|
|
1344
|
-
receiptName:
|
|
1345
|
-
cardTypes: ((i =
|
|
1341
|
+
const o = s.at(t);
|
|
1342
|
+
o.gateway === "Ghl3" && o.config && (e.value = {
|
|
1343
|
+
config: o.config,
|
|
1344
|
+
receiptName: o.receiptName ?? "",
|
|
1345
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1346
1346
|
});
|
|
1347
1347
|
};
|
|
1348
1348
|
q(a, c), G(c);
|
|
1349
|
-
async function
|
|
1349
|
+
async function f(s) {
|
|
1350
1350
|
var t;
|
|
1351
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1351
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1352
1352
|
}
|
|
1353
1353
|
async function u() {
|
|
1354
1354
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1355
1355
|
}
|
|
1356
1356
|
return (s, t) => {
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1357
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1358
|
+
return y(), F(x, {
|
|
1359
1359
|
ref: T.value,
|
|
1360
1360
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1361
1361
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1362
|
-
var
|
|
1362
|
+
var n, w;
|
|
1363
1363
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1364
1364
|
gateway: "Ghl3",
|
|
1365
1365
|
config: e.value.config,
|
|
1366
1366
|
receiptName: e.value.receiptName,
|
|
1367
1367
|
dialogConfig: {
|
|
1368
|
-
...(w = (
|
|
1368
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1369
1369
|
cardTypes: e.value.cardTypes
|
|
1370
1370
|
}
|
|
1371
1371
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1375,46 +1375,46 @@ const Ue = {
|
|
|
1375
1375
|
dialogConfig: {
|
|
1376
1376
|
cardTypes: e.value.cardTypes
|
|
1377
1377
|
}
|
|
1378
|
-
})),
|
|
1378
|
+
})), p.onUpdate(a.value);
|
|
1379
1379
|
})
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: O(() => [
|
|
1382
|
-
|
|
1382
|
+
v(o, {
|
|
1383
1383
|
modelValue: e.value.receiptName,
|
|
1384
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1384
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1385
1385
|
label: "Receipt Payment Name",
|
|
1386
1386
|
"label-info": "Default receipt display will be 'TERMINAL_GHL'"
|
|
1387
1387
|
}, null, 8, ["modelValue"]),
|
|
1388
1388
|
I("div", ia, [
|
|
1389
|
-
|
|
1389
|
+
v(o, {
|
|
1390
1390
|
modelValue: r.value,
|
|
1391
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1391
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
1392
1392
|
label: "Fallback Card Types",
|
|
1393
1393
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1394
1394
|
}, null, 8, ["modelValue"]),
|
|
1395
|
-
|
|
1395
|
+
v(i, {
|
|
1396
1396
|
class: "ml-4",
|
|
1397
1397
|
icon: "add",
|
|
1398
1398
|
onClick: u
|
|
1399
1399
|
})
|
|
1400
1400
|
]),
|
|
1401
1401
|
I("div", sa, [
|
|
1402
|
-
(
|
|
1403
|
-
key:
|
|
1404
|
-
label:
|
|
1402
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1403
|
+
key: n,
|
|
1404
|
+
label: n,
|
|
1405
1405
|
removable: !0,
|
|
1406
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1406
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1407
1407
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1408
1408
|
]),
|
|
1409
1409
|
I("div", ua, [
|
|
1410
|
-
l.value > -1 ? (
|
|
1410
|
+
l.value > -1 ? (y(), F(i, {
|
|
1411
1411
|
key: 0,
|
|
1412
1412
|
class: "flex-1",
|
|
1413
1413
|
variant: "secondary",
|
|
1414
1414
|
label: "Delete",
|
|
1415
|
-
onclick: () =>
|
|
1415
|
+
onclick: () => f(l.value)
|
|
1416
1416
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1417
|
-
|
|
1417
|
+
v(i, {
|
|
1418
1418
|
type: "submit",
|
|
1419
1419
|
class: "flex-1",
|
|
1420
1420
|
variant: "primary",
|
|
@@ -1426,7 +1426,7 @@ const Ue = {
|
|
|
1426
1426
|
}, 512);
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
1430
1430
|
__name: "HlbbGateway",
|
|
1431
1431
|
props: {
|
|
1432
1432
|
terminal: {
|
|
@@ -1439,7 +1439,7 @@ const Ue = {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
},
|
|
1441
1441
|
setup(_) {
|
|
1442
|
-
const
|
|
1442
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1443
1443
|
receiptName: "",
|
|
1444
1444
|
config: {},
|
|
1445
1445
|
cardTypes: []
|
|
@@ -1450,39 +1450,39 @@ const Ue = {
|
|
|
1450
1450
|
if (!a.value.ecrIntegrations)
|
|
1451
1451
|
return m();
|
|
1452
1452
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1453
|
-
(
|
|
1453
|
+
(d) => d && d.gateway && d.gateway === "Hlbb"
|
|
1454
1454
|
);
|
|
1455
1455
|
if (t === -1)
|
|
1456
1456
|
return m();
|
|
1457
1457
|
l.value = t;
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
config:
|
|
1461
|
-
receiptName:
|
|
1462
|
-
cardTypes: ((i =
|
|
1458
|
+
const o = s.at(t);
|
|
1459
|
+
o.gateway === "Hlbb" && o.config && (e.value = {
|
|
1460
|
+
config: o.config,
|
|
1461
|
+
receiptName: o.receiptName ?? "",
|
|
1462
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1463
1463
|
});
|
|
1464
1464
|
};
|
|
1465
1465
|
q(a, c), G(c);
|
|
1466
|
-
async function
|
|
1466
|
+
async function f(s) {
|
|
1467
1467
|
var t;
|
|
1468
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1468
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1469
1469
|
}
|
|
1470
1470
|
async function u() {
|
|
1471
1471
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1472
1472
|
}
|
|
1473
1473
|
return (s, t) => {
|
|
1474
|
-
const
|
|
1475
|
-
return
|
|
1474
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1475
|
+
return y(), F(x, {
|
|
1476
1476
|
ref: T.value,
|
|
1477
1477
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1478
1478
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1479
|
-
var
|
|
1479
|
+
var n, w;
|
|
1480
1480
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1481
1481
|
gateway: "Hlbb",
|
|
1482
1482
|
config: e.value.config,
|
|
1483
1483
|
receiptName: e.value.receiptName,
|
|
1484
1484
|
dialogConfig: {
|
|
1485
|
-
...(w = (
|
|
1485
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1486
1486
|
cardTypes: e.value.cardTypes
|
|
1487
1487
|
}
|
|
1488
1488
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1492,46 +1492,46 @@ const Ue = {
|
|
|
1492
1492
|
dialogConfig: {
|
|
1493
1493
|
cardTypes: e.value.cardTypes
|
|
1494
1494
|
}
|
|
1495
|
-
})),
|
|
1495
|
+
})), p.onUpdate(a.value);
|
|
1496
1496
|
})
|
|
1497
1497
|
}, {
|
|
1498
1498
|
default: O(() => [
|
|
1499
|
-
|
|
1499
|
+
v(o, {
|
|
1500
1500
|
modelValue: e.value.receiptName,
|
|
1501
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1501
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1502
1502
|
label: "Receipt Payment Name",
|
|
1503
1503
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1504
1504
|
}, null, 8, ["modelValue"]),
|
|
1505
1505
|
I("div", da, [
|
|
1506
|
-
|
|
1506
|
+
v(o, {
|
|
1507
1507
|
modelValue: r.value,
|
|
1508
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1508
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
1509
1509
|
label: "Fallback Card Types",
|
|
1510
1510
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1511
1511
|
}, null, 8, ["modelValue"]),
|
|
1512
|
-
|
|
1512
|
+
v(i, {
|
|
1513
1513
|
class: "ml-4",
|
|
1514
1514
|
icon: "add",
|
|
1515
1515
|
onClick: u
|
|
1516
1516
|
})
|
|
1517
1517
|
]),
|
|
1518
1518
|
I("div", pa, [
|
|
1519
|
-
(
|
|
1520
|
-
key:
|
|
1521
|
-
label:
|
|
1519
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1520
|
+
key: n,
|
|
1521
|
+
label: n,
|
|
1522
1522
|
removable: !0,
|
|
1523
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1523
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1524
1524
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1525
1525
|
]),
|
|
1526
1526
|
I("div", ma, [
|
|
1527
|
-
l.value > -1 ? (
|
|
1527
|
+
l.value > -1 ? (y(), F(i, {
|
|
1528
1528
|
key: 0,
|
|
1529
1529
|
class: "flex-1",
|
|
1530
1530
|
variant: "secondary",
|
|
1531
1531
|
label: "Delete",
|
|
1532
|
-
onclick: () =>
|
|
1532
|
+
onclick: () => f(l.value)
|
|
1533
1533
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1534
|
-
|
|
1534
|
+
v(i, {
|
|
1535
1535
|
type: "submit",
|
|
1536
1536
|
class: "flex-1",
|
|
1537
1537
|
variant: "primary",
|
|
@@ -1543,7 +1543,7 @@ const Ue = {
|
|
|
1543
1543
|
}, 512);
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
1547
1547
|
__name: "GlobalPaymentsGateway",
|
|
1548
1548
|
props: {
|
|
1549
1549
|
terminal: {
|
|
@@ -1556,7 +1556,7 @@ const Ue = {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
},
|
|
1558
1558
|
setup(_) {
|
|
1559
|
-
const
|
|
1559
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1560
1560
|
ip: "",
|
|
1561
1561
|
receiptName: "",
|
|
1562
1562
|
cardTypes: []
|
|
@@ -1567,39 +1567,39 @@ const Ue = {
|
|
|
1567
1567
|
if (!a.value.ecrIntegrations)
|
|
1568
1568
|
return m();
|
|
1569
1569
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1570
|
-
(
|
|
1570
|
+
(d) => d && d.gateway && d.gateway === "GlobalPayments"
|
|
1571
1571
|
);
|
|
1572
1572
|
if (t === -1)
|
|
1573
1573
|
return m();
|
|
1574
1574
|
l.value = t;
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
ip:
|
|
1578
|
-
receiptName:
|
|
1579
|
-
cardTypes: ((i =
|
|
1575
|
+
const o = s.at(t);
|
|
1576
|
+
o.gateway === "GlobalPayments" && o.config && (e.value = {
|
|
1577
|
+
ip: o.config.ip ?? "",
|
|
1578
|
+
receiptName: o.receiptName ?? "",
|
|
1579
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1580
1580
|
});
|
|
1581
1581
|
};
|
|
1582
1582
|
q(a, c), G(c);
|
|
1583
|
-
async function
|
|
1583
|
+
async function f(s) {
|
|
1584
1584
|
var t;
|
|
1585
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1585
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1586
1586
|
}
|
|
1587
1587
|
async function u() {
|
|
1588
1588
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1589
1589
|
}
|
|
1590
1590
|
return (s, t) => {
|
|
1591
|
-
const
|
|
1592
|
-
return
|
|
1591
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1592
|
+
return y(), F(x, {
|
|
1593
1593
|
ref: T.value,
|
|
1594
1594
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1595
1595
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
1596
|
-
var
|
|
1596
|
+
var n, w;
|
|
1597
1597
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1598
1598
|
gateway: "GlobalPayments",
|
|
1599
1599
|
config: { ip: e.value.ip },
|
|
1600
1600
|
receiptName: e.value.receiptName,
|
|
1601
1601
|
dialogConfig: {
|
|
1602
|
-
...(w = (
|
|
1602
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1603
1603
|
cardTypes: e.value.cardTypes
|
|
1604
1604
|
}
|
|
1605
1605
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1609,51 +1609,51 @@ const Ue = {
|
|
|
1609
1609
|
dialogConfig: {
|
|
1610
1610
|
cardTypes: e.value.cardTypes
|
|
1611
1611
|
}
|
|
1612
|
-
})),
|
|
1612
|
+
})), p.onUpdate(a.value);
|
|
1613
1613
|
})
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: O(() => [
|
|
1616
|
-
|
|
1616
|
+
v(o, {
|
|
1617
1617
|
modelValue: e.value.ip,
|
|
1618
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1618
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
1619
1619
|
label: "IP Address"
|
|
1620
1620
|
}, null, 8, ["modelValue"]),
|
|
1621
|
-
|
|
1621
|
+
v(o, {
|
|
1622
1622
|
modelValue: e.value.receiptName,
|
|
1623
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1623
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
1624
1624
|
label: "Receipt Payment Name",
|
|
1625
1625
|
"label-info": "Default receipt display will be 'TERMINAL_GP'"
|
|
1626
1626
|
}, null, 8, ["modelValue"]),
|
|
1627
1627
|
I("div", ya, [
|
|
1628
|
-
|
|
1628
|
+
v(o, {
|
|
1629
1629
|
modelValue: r.value,
|
|
1630
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1630
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
1631
1631
|
label: "Fallback Card Types",
|
|
1632
1632
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1633
1633
|
}, null, 8, ["modelValue"]),
|
|
1634
|
-
|
|
1634
|
+
v(i, {
|
|
1635
1635
|
class: "ml-4",
|
|
1636
1636
|
icon: "add",
|
|
1637
1637
|
onClick: u
|
|
1638
1638
|
})
|
|
1639
1639
|
]),
|
|
1640
1640
|
I("div", fa, [
|
|
1641
|
-
(
|
|
1642
|
-
key:
|
|
1643
|
-
label:
|
|
1641
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1642
|
+
key: n,
|
|
1643
|
+
label: n,
|
|
1644
1644
|
removable: !0,
|
|
1645
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1645
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1646
1646
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1647
1647
|
]),
|
|
1648
1648
|
I("div", ga, [
|
|
1649
|
-
l.value > -1 ? (
|
|
1649
|
+
l.value > -1 ? (y(), F(i, {
|
|
1650
1650
|
key: 0,
|
|
1651
1651
|
class: "flex-1",
|
|
1652
1652
|
variant: "secondary",
|
|
1653
1653
|
label: "Delete",
|
|
1654
|
-
onclick: () =>
|
|
1654
|
+
onclick: () => f(l.value)
|
|
1655
1655
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1656
|
-
|
|
1656
|
+
v(i, {
|
|
1657
1657
|
type: "submit",
|
|
1658
1658
|
class: "flex-1",
|
|
1659
1659
|
variant: "primary",
|
|
@@ -1665,7 +1665,7 @@ const Ue = {
|
|
|
1665
1665
|
}, 512);
|
|
1666
1666
|
};
|
|
1667
1667
|
}
|
|
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__ */
|
|
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__ */ R({
|
|
1669
1669
|
__name: "OmaGateway",
|
|
1670
1670
|
props: {
|
|
1671
1671
|
terminal: {
|
|
@@ -1678,7 +1678,7 @@ const Ue = {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
},
|
|
1680
1680
|
setup(_) {
|
|
1681
|
-
const
|
|
1681
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1682
1682
|
receiptName: "",
|
|
1683
1683
|
cardTypes: []
|
|
1684
1684
|
}), m = () => {
|
|
@@ -1688,38 +1688,38 @@ const Ue = {
|
|
|
1688
1688
|
if (!a.value.ecrIntegrations)
|
|
1689
1689
|
return m();
|
|
1690
1690
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1691
|
-
(
|
|
1691
|
+
(d) => d && d.gateway && d.gateway === "Oma"
|
|
1692
1692
|
);
|
|
1693
1693
|
if (t === -1)
|
|
1694
1694
|
return m();
|
|
1695
1695
|
l.value = t;
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
receiptName:
|
|
1699
|
-
cardTypes: ((i =
|
|
1696
|
+
const o = s.at(t);
|
|
1697
|
+
o.gateway === "Oma" && o.config && (e.value = {
|
|
1698
|
+
receiptName: o.receiptName ?? "",
|
|
1699
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1700
1700
|
});
|
|
1701
1701
|
};
|
|
1702
1702
|
q(a, c), G(c);
|
|
1703
|
-
async function
|
|
1703
|
+
async function f(s) {
|
|
1704
1704
|
var t;
|
|
1705
|
-
(t = a.value.ecrIntegrations) == null || t.splice(s, 1),
|
|
1705
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1706
1706
|
}
|
|
1707
1707
|
async function u() {
|
|
1708
1708
|
e.value.cardTypes.push(r.value), r.value = "";
|
|
1709
1709
|
}
|
|
1710
1710
|
return (s, t) => {
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1711
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1712
|
+
return y(), F(x, {
|
|
1713
1713
|
ref: T.value,
|
|
1714
1714
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1715
1715
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1716
|
-
var
|
|
1716
|
+
var n, w;
|
|
1717
1717
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1718
1718
|
gateway: "Oma",
|
|
1719
1719
|
config: {},
|
|
1720
1720
|
receiptName: e.value.receiptName,
|
|
1721
1721
|
dialogConfig: {
|
|
1722
|
-
...(w = (
|
|
1722
|
+
...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1723
1723
|
cardTypes: e.value.cardTypes
|
|
1724
1724
|
}
|
|
1725
1725
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1729,46 +1729,46 @@ const Ue = {
|
|
|
1729
1729
|
dialogConfig: {
|
|
1730
1730
|
cardTypes: e.value.cardTypes
|
|
1731
1731
|
}
|
|
1732
|
-
})),
|
|
1732
|
+
})), p.onUpdate(a.value);
|
|
1733
1733
|
})
|
|
1734
1734
|
}, {
|
|
1735
1735
|
default: O(() => [
|
|
1736
|
-
|
|
1736
|
+
v(o, {
|
|
1737
1737
|
modelValue: e.value.receiptName,
|
|
1738
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1738
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1739
1739
|
label: "Receipt Payment Name",
|
|
1740
1740
|
"label-info": "Default receipt display will be 'TERMINAL_OMA'"
|
|
1741
1741
|
}, null, 8, ["modelValue"]),
|
|
1742
1742
|
I("div", Ta, [
|
|
1743
|
-
|
|
1743
|
+
v(o, {
|
|
1744
1744
|
modelValue: r.value,
|
|
1745
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1745
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
1746
1746
|
label: "Fallback Card Types",
|
|
1747
1747
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1748
1748
|
}, null, 8, ["modelValue"]),
|
|
1749
|
-
|
|
1749
|
+
v(i, {
|
|
1750
1750
|
class: "ml-4",
|
|
1751
1751
|
icon: "add",
|
|
1752
1752
|
onClick: u
|
|
1753
1753
|
})
|
|
1754
1754
|
]),
|
|
1755
1755
|
I("div", _a, [
|
|
1756
|
-
(
|
|
1757
|
-
key:
|
|
1758
|
-
label:
|
|
1756
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1757
|
+
key: n,
|
|
1758
|
+
label: n,
|
|
1759
1759
|
removable: !0,
|
|
1760
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1760
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1761
1761
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1762
1762
|
]),
|
|
1763
1763
|
I("div", Ia, [
|
|
1764
|
-
l.value > -1 ? (
|
|
1764
|
+
l.value > -1 ? (y(), F(i, {
|
|
1765
1765
|
key: 0,
|
|
1766
1766
|
class: "flex-1",
|
|
1767
1767
|
variant: "secondary",
|
|
1768
1768
|
label: "Delete",
|
|
1769
|
-
onclick: () =>
|
|
1769
|
+
onclick: () => f(l.value)
|
|
1770
1770
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1771
|
-
|
|
1771
|
+
v(i, {
|
|
1772
1772
|
type: "submit",
|
|
1773
1773
|
class: "flex-1",
|
|
1774
1774
|
variant: "primary",
|
|
@@ -1780,7 +1780,135 @@ const Ue = {
|
|
|
1780
1780
|
}, 512);
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
|
-
}), wa = { class: "flex items-
|
|
1783
|
+
}), wa = { class: "flex items-end" }, xa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Na = { class: "flex mt-6 space-x-6" }, Ca = /* @__PURE__ */ R({
|
|
1784
|
+
__name: "RevenueGateway",
|
|
1785
|
+
props: {
|
|
1786
|
+
terminal: {
|
|
1787
|
+
type: Object,
|
|
1788
|
+
required: !0
|
|
1789
|
+
},
|
|
1790
|
+
onUpdate: {
|
|
1791
|
+
type: Function,
|
|
1792
|
+
required: !0
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
setup(_) {
|
|
1796
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1797
|
+
receiptName: "",
|
|
1798
|
+
ip: "",
|
|
1799
|
+
cardTypes: []
|
|
1800
|
+
}), m = () => {
|
|
1801
|
+
e.value.receiptName = "", e.value.ip = "", e.value.cardTypes = [], l.value = -1;
|
|
1802
|
+
}, c = () => {
|
|
1803
|
+
var i;
|
|
1804
|
+
if (!a.value.ecrIntegrations)
|
|
1805
|
+
return m();
|
|
1806
|
+
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1807
|
+
(d) => d && d.gateway && d.gateway === "Revenue"
|
|
1808
|
+
);
|
|
1809
|
+
if (t === -1)
|
|
1810
|
+
return m();
|
|
1811
|
+
l.value = t;
|
|
1812
|
+
const o = s.at(t);
|
|
1813
|
+
o.gateway === "Revenue" && o.config && (e.value = {
|
|
1814
|
+
receiptName: o.receiptName ?? "",
|
|
1815
|
+
ip: o.config.ip ?? "",
|
|
1816
|
+
cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1817
|
+
});
|
|
1818
|
+
};
|
|
1819
|
+
q(a, c), G(c);
|
|
1820
|
+
async function f(s) {
|
|
1821
|
+
var t;
|
|
1822
|
+
(t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
|
|
1823
|
+
}
|
|
1824
|
+
async function u() {
|
|
1825
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
1826
|
+
}
|
|
1827
|
+
return (s, t) => {
|
|
1828
|
+
const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
|
|
1829
|
+
return y(), F(x, {
|
|
1830
|
+
ref: T.value,
|
|
1831
|
+
class: "flex flex-col gap-16 w-[500px]",
|
|
1832
|
+
onValidationSuccess: t[3] || (t[3] = () => {
|
|
1833
|
+
var w, L;
|
|
1834
|
+
const n = {
|
|
1835
|
+
type: "tcp",
|
|
1836
|
+
ip: e.value.ip
|
|
1837
|
+
};
|
|
1838
|
+
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1839
|
+
gateway: "Revenue",
|
|
1840
|
+
config: n,
|
|
1841
|
+
receiptName: e.value.receiptName,
|
|
1842
|
+
dialogConfig: {
|
|
1843
|
+
...(L = (w = a.value.ecrIntegrations) == null ? void 0 : w[l.value]) == null ? void 0 : L.dialogConfig,
|
|
1844
|
+
cardTypes: e.value.cardTypes
|
|
1845
|
+
}
|
|
1846
|
+
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
1847
|
+
gateway: "Revenue",
|
|
1848
|
+
config: n,
|
|
1849
|
+
receiptName: e.value.receiptName,
|
|
1850
|
+
dialogConfig: {
|
|
1851
|
+
cardTypes: e.value.cardTypes
|
|
1852
|
+
}
|
|
1853
|
+
})), p.onUpdate(a.value);
|
|
1854
|
+
})
|
|
1855
|
+
}, {
|
|
1856
|
+
default: O(() => [
|
|
1857
|
+
v(o, {
|
|
1858
|
+
modelValue: e.value.ip,
|
|
1859
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
1860
|
+
label: "Terminal IP Address",
|
|
1861
|
+
"label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)",
|
|
1862
|
+
rules: M(ue)(M(ce).string().min(1))
|
|
1863
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
1864
|
+
v(o, {
|
|
1865
|
+
modelValue: e.value.receiptName,
|
|
1866
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
1867
|
+
label: "Receipt Payment Name",
|
|
1868
|
+
"label-info": "Default receipt display will be 'TERMINAL_REVENUE'"
|
|
1869
|
+
}, null, 8, ["modelValue"]),
|
|
1870
|
+
I("div", wa, [
|
|
1871
|
+
v(o, {
|
|
1872
|
+
modelValue: r.value,
|
|
1873
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
1874
|
+
label: "Fallback Card Types",
|
|
1875
|
+
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1876
|
+
}, null, 8, ["modelValue"]),
|
|
1877
|
+
v(i, {
|
|
1878
|
+
class: "ml-4",
|
|
1879
|
+
icon: "add",
|
|
1880
|
+
onClick: u
|
|
1881
|
+
})
|
|
1882
|
+
]),
|
|
1883
|
+
I("div", xa, [
|
|
1884
|
+
(y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
|
|
1885
|
+
key: n,
|
|
1886
|
+
label: n,
|
|
1887
|
+
removable: !0,
|
|
1888
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1889
|
+
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1890
|
+
]),
|
|
1891
|
+
I("div", Na, [
|
|
1892
|
+
l.value > -1 ? (y(), F(i, {
|
|
1893
|
+
key: 0,
|
|
1894
|
+
class: "flex-1",
|
|
1895
|
+
variant: "secondary",
|
|
1896
|
+
label: "Delete",
|
|
1897
|
+
onclick: () => f(l.value)
|
|
1898
|
+
}, null, 8, ["onclick"])) : V("", !0),
|
|
1899
|
+
v(i, {
|
|
1900
|
+
type: "submit",
|
|
1901
|
+
class: "flex-1",
|
|
1902
|
+
variant: "primary",
|
|
1903
|
+
label: "Save"
|
|
1904
|
+
})
|
|
1905
|
+
])
|
|
1906
|
+
]),
|
|
1907
|
+
_: 1
|
|
1908
|
+
}, 512);
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
}), ka = { class: "flex items-center" }, Va = { class: "w-[260px] self-start" }, Ua = { class: "flex-1" }, Sa = /* @__PURE__ */ R({
|
|
1784
1912
|
__name: "EcrGateway",
|
|
1785
1913
|
props: {
|
|
1786
1914
|
terminal: {
|
|
@@ -1794,7 +1922,7 @@ const Ue = {
|
|
|
1794
1922
|
},
|
|
1795
1923
|
setup(_) {
|
|
1796
1924
|
var m;
|
|
1797
|
-
const
|
|
1925
|
+
const p = _, a = [
|
|
1798
1926
|
{
|
|
1799
1927
|
label: "FeedMe Terminal",
|
|
1800
1928
|
value: "terminal",
|
|
@@ -1865,36 +1993,42 @@ const Ue = {
|
|
|
1865
1993
|
value: "oma",
|
|
1866
1994
|
render: Fa,
|
|
1867
1995
|
region: [U.F_COUNTRY.enum.PK]
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
label: "Revenue PBB Terminal",
|
|
1999
|
+
value: "revenue",
|
|
2000
|
+
render: Ca,
|
|
2001
|
+
region: [U.F_COUNTRY.enum.MY]
|
|
1868
2002
|
}
|
|
1869
|
-
], T =
|
|
2003
|
+
], T = k(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = k(() => a.filter(
|
|
1870
2004
|
(c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY)
|
|
1871
2005
|
)), { gatewayTab: e } = ne({
|
|
1872
2006
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1873
2007
|
});
|
|
1874
|
-
return (c,
|
|
2008
|
+
return (c, f) => {
|
|
1875
2009
|
var s;
|
|
1876
2010
|
const u = g("FmTabs");
|
|
1877
|
-
return
|
|
1878
|
-
I("div",
|
|
1879
|
-
|
|
1880
|
-
"model-value":
|
|
1881
|
-
"onUpdate:modelValue":
|
|
2011
|
+
return y(), S("div", ka, [
|
|
2012
|
+
I("div", Va, [
|
|
2013
|
+
v(u, {
|
|
2014
|
+
"model-value": M(e),
|
|
2015
|
+
"onUpdate:modelValue": f[0] || (f[0] = (t) => Z(e) ? e.value = t : null),
|
|
1882
2016
|
class: "mb-6",
|
|
1883
2017
|
vertical: !0,
|
|
1884
2018
|
items: r.value,
|
|
1885
2019
|
"show-more-at": Number.POSITIVE_INFINITY
|
|
1886
2020
|
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
1887
2021
|
]),
|
|
1888
|
-
I("div",
|
|
1889
|
-
|
|
1890
|
-
terminal:
|
|
1891
|
-
onUpdate:
|
|
2022
|
+
I("div", Ua, [
|
|
2023
|
+
M(e) ? (y(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
|
|
2024
|
+
terminal: p.terminal,
|
|
2025
|
+
onUpdate: p.onUpdate
|
|
1892
2026
|
})), null, 16)) : V("", !0)
|
|
1893
2027
|
])
|
|
1894
2028
|
]);
|
|
1895
2029
|
};
|
|
1896
2030
|
}
|
|
1897
|
-
}),
|
|
2031
|
+
}), Ra = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */ R({
|
|
1898
2032
|
__name: "PromptPayGateway",
|
|
1899
2033
|
props: {
|
|
1900
2034
|
terminal: {
|
|
@@ -1907,7 +2041,7 @@ const Ue = {
|
|
|
1907
2041
|
}
|
|
1908
2042
|
},
|
|
1909
2043
|
setup(_) {
|
|
1910
|
-
const
|
|
2044
|
+
const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
|
|
1911
2045
|
account: "",
|
|
1912
2046
|
receiptName: ""
|
|
1913
2047
|
}), e = () => {
|
|
@@ -1915,52 +2049,52 @@ const Ue = {
|
|
|
1915
2049
|
}, m = () => {
|
|
1916
2050
|
if (!a.value.qrIntegrations)
|
|
1917
2051
|
return e();
|
|
1918
|
-
const
|
|
2052
|
+
const f = a.value.qrIntegrations, u = f.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
|
|
1919
2053
|
if (u === -1)
|
|
1920
2054
|
return e();
|
|
1921
2055
|
l.value = u;
|
|
1922
|
-
const s =
|
|
2056
|
+
const s = f.at(u);
|
|
1923
2057
|
s.gateway === "PROMPTPAY" && s.config && (r.value = {
|
|
1924
2058
|
account: s.config.account ?? "",
|
|
1925
2059
|
receiptName: s.receiptName ?? ""
|
|
1926
2060
|
});
|
|
1927
2061
|
};
|
|
1928
2062
|
q(a, m), G(m);
|
|
1929
|
-
async function c(
|
|
2063
|
+
async function c(f) {
|
|
1930
2064
|
var u;
|
|
1931
|
-
(u = a.value.qrIntegrations) == null || u.splice(
|
|
2065
|
+
(u = a.value.qrIntegrations) == null || u.splice(f, 1), p.onUpdate(a.value);
|
|
1932
2066
|
}
|
|
1933
|
-
return (
|
|
1934
|
-
const s = g("FmTextField"), t = g("FmButton"),
|
|
1935
|
-
return
|
|
2067
|
+
return (f, u) => {
|
|
2068
|
+
const s = g("FmTextField"), t = g("FmButton"), o = g("FmForm");
|
|
2069
|
+
return y(), F(o, {
|
|
1936
2070
|
ref: T.value,
|
|
1937
2071
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1938
2072
|
onValidationSuccess: u[2] || (u[2] = () => {
|
|
1939
|
-
l.value > -1 ? a.value.qrIntegrations[l.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 })),
|
|
2073
|
+
l.value > -1 ? a.value.qrIntegrations[l.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 })), p.onUpdate(a.value);
|
|
1940
2074
|
})
|
|
1941
2075
|
}, {
|
|
1942
2076
|
default: O(() => [
|
|
1943
|
-
|
|
2077
|
+
v(s, {
|
|
1944
2078
|
modelValue: r.value.account,
|
|
1945
2079
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
|
|
1946
2080
|
label: "Thai Phone Number / Thai Naitonal ID",
|
|
1947
2081
|
"label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
|
|
1948
2082
|
}, null, 8, ["modelValue"]),
|
|
1949
|
-
|
|
2083
|
+
v(s, {
|
|
1950
2084
|
modelValue: r.value.receiptName,
|
|
1951
2085
|
"onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
|
|
1952
2086
|
label: "Receipt Payment Name",
|
|
1953
2087
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1954
2088
|
}, null, 8, ["modelValue"]),
|
|
1955
|
-
I("div",
|
|
1956
|
-
l.value > -1 ? (
|
|
2089
|
+
I("div", Ra, [
|
|
2090
|
+
l.value > -1 ? (y(), F(t, {
|
|
1957
2091
|
key: 0,
|
|
1958
2092
|
class: "flex-1",
|
|
1959
2093
|
variant: "secondary",
|
|
1960
2094
|
label: "Delete",
|
|
1961
2095
|
onclick: () => c(l.value)
|
|
1962
2096
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1963
|
-
|
|
2097
|
+
v(t, {
|
|
1964
2098
|
type: "submit",
|
|
1965
2099
|
class: "flex-1",
|
|
1966
2100
|
variant: "primary",
|
|
@@ -1972,7 +2106,7 @@ const Ue = {
|
|
|
1972
2106
|
}, 512);
|
|
1973
2107
|
};
|
|
1974
2108
|
}
|
|
1975
|
-
}),
|
|
2109
|
+
}), Ma = { class: "flex items-center" }, Oa = { class: "w-[260px] self-start" }, Pa = { class: "flex-1" }, qa = /* @__PURE__ */ R({
|
|
1976
2110
|
__name: "QrGateway",
|
|
1977
2111
|
props: {
|
|
1978
2112
|
terminal: {
|
|
@@ -1986,39 +2120,39 @@ const Ue = {
|
|
|
1986
2120
|
},
|
|
1987
2121
|
setup(_) {
|
|
1988
2122
|
var m;
|
|
1989
|
-
const
|
|
2123
|
+
const p = _, a = [
|
|
1990
2124
|
{
|
|
1991
2125
|
label: "PromptPay",
|
|
1992
2126
|
value: "promptpay",
|
|
1993
|
-
render:
|
|
2127
|
+
render: ha,
|
|
1994
2128
|
region: [U.F_COUNTRY.enum.TH]
|
|
1995
2129
|
}
|
|
1996
|
-
], T =
|
|
2130
|
+
], T = k(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = k(() => a.filter((c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
|
|
1997
2131
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1998
2132
|
});
|
|
1999
|
-
return (c,
|
|
2133
|
+
return (c, f) => {
|
|
2000
2134
|
var s;
|
|
2001
2135
|
const u = g("FmTabs");
|
|
2002
|
-
return
|
|
2003
|
-
I("div",
|
|
2004
|
-
|
|
2005
|
-
"model-value":
|
|
2006
|
-
"onUpdate:modelValue":
|
|
2136
|
+
return y(), S("div", Ma, [
|
|
2137
|
+
I("div", Oa, [
|
|
2138
|
+
v(u, {
|
|
2139
|
+
"model-value": M(e),
|
|
2140
|
+
"onUpdate:modelValue": f[0] || (f[0] = (t) => Z(e) ? e.value = t : null),
|
|
2007
2141
|
class: "mb-6",
|
|
2008
2142
|
vertical: !0,
|
|
2009
2143
|
items: r.value
|
|
2010
2144
|
}, null, 8, ["model-value", "items"])
|
|
2011
2145
|
]),
|
|
2012
|
-
I("div",
|
|
2013
|
-
|
|
2014
|
-
terminal:
|
|
2015
|
-
onUpdate:
|
|
2146
|
+
I("div", Pa, [
|
|
2147
|
+
M(e) ? (y(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
|
|
2148
|
+
terminal: p.terminal,
|
|
2149
|
+
onUpdate: p.onUpdate
|
|
2016
2150
|
})), null, 16)) : V("", !0)
|
|
2017
2151
|
])
|
|
2018
2152
|
]);
|
|
2019
2153
|
};
|
|
2020
2154
|
}
|
|
2021
|
-
}),
|
|
2155
|
+
}), Qa = /* @__PURE__ */ R({
|
|
2022
2156
|
__name: "TerminalSetting",
|
|
2023
2157
|
props: {
|
|
2024
2158
|
terminalId: {
|
|
@@ -2027,23 +2161,23 @@ const Ue = {
|
|
|
2027
2161
|
}
|
|
2028
2162
|
},
|
|
2029
2163
|
setup(_) {
|
|
2030
|
-
const
|
|
2164
|
+
const p = _, { tab: a } = ne({
|
|
2031
2165
|
tab: "information"
|
|
2032
|
-
}), { isLoading: T, startAsyncCall: l } = le(!0), r =
|
|
2033
|
-
async function c(
|
|
2166
|
+
}), { isLoading: T, startAsyncCall: l } = le(!0), r = fe(), e = se(), m = b();
|
|
2167
|
+
async function c(o) {
|
|
2034
2168
|
l(async () => {
|
|
2035
2169
|
try {
|
|
2036
|
-
await
|
|
2037
|
-
|
|
2170
|
+
await K.updateById(
|
|
2171
|
+
p.terminalId,
|
|
2038
2172
|
{
|
|
2039
|
-
name:
|
|
2040
|
-
status:
|
|
2041
|
-
ecrs:
|
|
2042
|
-
gateways:
|
|
2043
|
-
ecrIntegrations:
|
|
2044
|
-
qrIntegrations:
|
|
2173
|
+
name: o.name,
|
|
2174
|
+
status: o.status,
|
|
2175
|
+
ecrs: o.ecrs ?? [],
|
|
2176
|
+
gateways: o.gateways ?? [],
|
|
2177
|
+
ecrIntegrations: o.ecrIntegrations ?? [],
|
|
2178
|
+
qrIntegrations: o.qrIntegrations ?? []
|
|
2045
2179
|
}
|
|
2046
|
-
), m.value = await
|
|
2180
|
+
), m.value = await K.readById(p.terminalId), e.open({
|
|
2047
2181
|
type: "success",
|
|
2048
2182
|
message: "Terminal updated successfully"
|
|
2049
2183
|
});
|
|
@@ -2056,7 +2190,7 @@ const Ue = {
|
|
|
2056
2190
|
}
|
|
2057
2191
|
});
|
|
2058
2192
|
}
|
|
2059
|
-
const
|
|
2193
|
+
const f = [
|
|
2060
2194
|
{
|
|
2061
2195
|
label: "Information",
|
|
2062
2196
|
value: "information",
|
|
@@ -2074,53 +2208,53 @@ const Ue = {
|
|
|
2074
2208
|
label: "SoftPos Gateway",
|
|
2075
2209
|
value: "softpos",
|
|
2076
2210
|
icon: "payment",
|
|
2077
|
-
render:
|
|
2211
|
+
render: Me
|
|
2078
2212
|
},
|
|
2079
2213
|
{
|
|
2080
2214
|
label: "ECR Gateway",
|
|
2081
2215
|
value: "ecr",
|
|
2082
2216
|
icon: "point_of_sale",
|
|
2083
|
-
render:
|
|
2217
|
+
render: Sa,
|
|
2084
2218
|
onlyFor: ["POS", "KIOSK"]
|
|
2085
2219
|
},
|
|
2086
2220
|
{
|
|
2087
2221
|
label: "QR Gateway",
|
|
2088
2222
|
value: "qr",
|
|
2089
2223
|
icon: "qr_code",
|
|
2090
|
-
render:
|
|
2224
|
+
render: qa,
|
|
2091
2225
|
onlyFor: ["POS", "KIOSK"]
|
|
2092
2226
|
}
|
|
2093
2227
|
];
|
|
2094
2228
|
oe().currentCountry;
|
|
2095
|
-
const u =
|
|
2096
|
-
var
|
|
2097
|
-
return (
|
|
2229
|
+
const u = k(() => {
|
|
2230
|
+
var o;
|
|
2231
|
+
return (o = f.find((i) => i.value === a.value)) == null ? void 0 : o.render;
|
|
2098
2232
|
});
|
|
2099
2233
|
async function s() {
|
|
2100
2234
|
l(async () => {
|
|
2101
|
-
m.value = await
|
|
2235
|
+
m.value = await K.readById(p.terminalId);
|
|
2102
2236
|
});
|
|
2103
2237
|
}
|
|
2104
|
-
const t =
|
|
2238
|
+
const t = k(() => f.filter((o) => {
|
|
2105
2239
|
var i;
|
|
2106
|
-
return !
|
|
2240
|
+
return !o.onlyFor || o.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
|
|
2107
2241
|
}));
|
|
2108
|
-
return G(s), (
|
|
2109
|
-
var x,
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2112
|
-
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(
|
|
2113
|
-
loading:
|
|
2114
|
-
onBack:
|
|
2242
|
+
return G(s), (o, i) => {
|
|
2243
|
+
var x, n;
|
|
2244
|
+
const d = g("FmTabs");
|
|
2245
|
+
return y(), F(ge, {
|
|
2246
|
+
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(n = m.value) == null ? void 0 : n._id})`,
|
|
2247
|
+
loading: M(T),
|
|
2248
|
+
onBack: M(r).back
|
|
2115
2249
|
}, {
|
|
2116
2250
|
default: O(() => [
|
|
2117
|
-
|
|
2118
|
-
"model-value":
|
|
2251
|
+
v(d, {
|
|
2252
|
+
"model-value": M(a),
|
|
2119
2253
|
"onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
|
|
2120
2254
|
class: "mb-6",
|
|
2121
2255
|
items: t.value
|
|
2122
2256
|
}, null, 8, ["model-value", "items"]),
|
|
2123
|
-
|
|
2257
|
+
M(a) ? (y(), F(ee(u.value), ae(te({ key: 0 }, {
|
|
2124
2258
|
terminal: m.value,
|
|
2125
2259
|
onUpdate: c
|
|
2126
2260
|
})), null, 16)) : V("", !0)
|
|
@@ -2131,5 +2265,5 @@ const Ue = {
|
|
|
2131
2265
|
}
|
|
2132
2266
|
});
|
|
2133
2267
|
export {
|
|
2134
|
-
|
|
2268
|
+
Qa as default
|
|
2135
2269
|
};
|