@feedmepos/mf-payment 1.7.4-dev → 1.7.4
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-B5sqVL7d.js → Actions.vue_vue_type_script_setup_true_lang-BkGPt33y.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B2sVLkI5.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpcPn8f2.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D_hGHpb0.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CiPlezXr.js} +2 -2
- package/dist/{Chargeback-CtYYjuEB.js → Chargeback-BFUlbL_7.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BW-Gu-nZ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BRY4cO_d.js} +1 -1
- package/dist/{OnboardForm-CIFQEBec.js → OnboardForm-DnwPql96.js} +5 -5
- package/dist/{OnboardForm-IRLkWmoI.js → OnboardForm-DyOPX1_d.js} +5 -5
- package/dist/{OnboardSubmission-C9M8t5vU.js → OnboardSubmission-DipKw5HF.js} +5 -5
- package/dist/{OnboardSubmission-CndjRMqy.js → OnboardSubmission-OZ0G4P_v.js} +2 -2
- package/dist/{PayoutAccount-BSXnemjX.js → PayoutAccount-BCb5cslo.js} +5 -5
- package/dist/PayoutAccount-CO2FdnnA.js +379 -0
- package/dist/{PayoutAccountSetting-CMkQNnDb.js → PayoutAccountSetting-Bb1CsUCE.js} +6 -6
- package/dist/{Restaurant-bpdNibYe.js → Restaurant-D1wUiImO.js} +4 -4
- package/dist/{RestaurantSetting-NbagQfTz.js → RestaurantSetting-BBO7DzsZ.js} +3 -3
- package/dist/{Settlement-D_yGtVZV.js → Settlement-DgRZ_Nto.js} +4 -4
- package/dist/{Settlement-TAZg6fCx.js → Settlement-t5A8S8TD.js} +3 -3
- package/dist/{SettlementTransactions-DHxHNPdw.js → SettlementTransactions-DdGLhtnr.js} +4 -4
- package/dist/{SettlementTransactions-ENvQRM79.js → SettlementTransactions-jfKNoOD9.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B0FnrTJk.js → Status.vue_vue_type_script_setup_true_lang-JsBLH3uy.js} +1 -1
- package/dist/{Terminal-z_7q3GBS.js → Terminal-DaIv5qfl.js} +5 -5
- package/dist/{TerminalSetting-C5UmznfX.js → TerminalSetting-Dj2hBkl6.js} +521 -655
- package/dist/{Transaction-DNkc6es6.js → Transaction-B72LKIca.js} +10 -10
- package/dist/{Transaction-zDTbTtVx.js → Transaction-D0jWWDq5.js} +10 -10
- package/dist/{TransactionOld-Dm5PvUqF.js → TransactionOld-C64NrPVP.js} +7 -7
- package/dist/{app-ByzqMQl4.js → app-BgZUPWnM.js} +442 -451
- package/dist/app.js +1 -1
- package/dist/{assets-DXXXC51N.js → assets-9wAOs8uk.js} +1 -1
- package/dist/{grafana-U9VBVEEb.js → grafana-ezJaAbyu.js} +1 -1
- package/dist/{index-DmTVLzm7.js → index-0BEudnSQ.js} +5474 -5544
- package/dist/{index-D5SllCXu.js → index-BNO9fBiK.js} +1 -1
- package/dist/{index-COd-DEdZ.js → index-Bcy_Z6EV.js} +1 -1
- package/dist/{index-C6uyHnHe.js → index-CDuF6_qe.js} +1 -1
- package/dist/{index-DR01zn4-.js → index-Ctq35IJ6.js} +1 -1
- package/dist/{index-BZ6UOzJf.js → index-DK1fYXrj.js} +2 -2
- package/dist/{index-CbRKtmjR.js → index-DdxCxptg.js} +1 -1
- package/dist/{index-udIS6_YQ.js → index-RFJR12WX.js} +2 -2
- package/dist/{index-BMLgxxih.js → index-iLiwfepp.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-QSCHnqzi.js → index.vue_vue_type_script_setup_true_lang-DXlHx1NG.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +2 -2
- package/dist/{payout-account-DlZkCb88.js → payout-account-RIgHcQp1.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 +16 -20
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -20
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +16 -20
- 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/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-CpuAa-qa.js +0 -399
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +0 -140
|
@@ -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 M, openBlock as f, createElementBlock as R, Fragment as P, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as y, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as q, onBeforeUnmount as pe, toRef as A, onMounted as G, withCtx as O, renderList as Y } from "vue";
|
|
2
|
+
import { u as le, p as me, e as U } from "./index-0BEudnSQ.js";
|
|
3
|
+
import { useRouter as ve } from "vue-router";
|
|
4
|
+
import { t as E } from "./index-iLiwfepp.js";
|
|
5
|
+
import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
+
import { u as ne } from "./index-Ctq35IJ6.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 fe, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
+
import { o as ge } from "./index-RFJR12WX.js";
|
|
11
|
+
import { c as be } from "./index-MdV54cWO.js";
|
|
12
|
+
import { z as Te, a as _e } from "./validator-CTlVogBQ.js";
|
|
13
|
+
const Ie = /* @__PURE__ */ M({
|
|
14
14
|
__name: "Information",
|
|
15
15
|
props: {
|
|
16
16
|
terminal: {
|
|
@@ -19,7 +19,7 @@ const Ie = /* @__PURE__ */ R({
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
setup(_) {
|
|
22
|
-
return (
|
|
22
|
+
return (d, a) => (f(), R(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__ */ R({
|
|
|
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__ */ M({
|
|
38
38
|
__name: "KioskMode",
|
|
39
39
|
props: {
|
|
40
40
|
terminal: {
|
|
@@ -43,7 +43,7 @@ const Ie = /* @__PURE__ */ R({
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(_) {
|
|
46
|
-
const { isLoading:
|
|
46
|
+
const { isLoading: d, 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__ */ R({
|
|
|
56
56
|
m.enable && Object.assign(m, {
|
|
57
57
|
password: l.value.password.join("")
|
|
58
58
|
});
|
|
59
|
-
const c = await
|
|
59
|
+
const c = await E.kioskModeRequest(r.terminal._id, m);
|
|
60
60
|
if (c === "OK")
|
|
61
61
|
return T.open({ type: "info", message: "Kiosk mode applied successfully." });
|
|
62
|
-
let
|
|
63
|
-
return c === "client_not_connected" && (
|
|
62
|
+
let v = c;
|
|
63
|
+
return c === "client_not_connected" && (v = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (v = c.replaceAll("terminal: ", "")), T.open({
|
|
64
64
|
type: "error",
|
|
65
|
-
message:
|
|
65
|
+
message: v
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return (m, c) => {
|
|
70
|
-
const
|
|
71
|
-
return
|
|
72
|
-
v
|
|
70
|
+
const v = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
|
|
71
|
+
return f(), R(P, null, [
|
|
72
|
+
y(v, {
|
|
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 ? (f(), R("div", Fe, [
|
|
78
78
|
c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
|
|
79
|
-
|
|
79
|
+
y(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
|
+
y(s, {
|
|
86
86
|
variant: "primary",
|
|
87
87
|
label: "Send",
|
|
88
88
|
icon: "send",
|
|
89
|
-
loading:
|
|
89
|
+
loading: h(d),
|
|
90
90
|
onclick: e
|
|
91
91
|
}, null, 8, ["loading"])
|
|
92
92
|
])
|
|
93
93
|
], 64);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), Ne = /* @__PURE__ */
|
|
96
|
+
}), Ne = /* @__PURE__ */ M({
|
|
97
97
|
__name: "SettingRequest",
|
|
98
98
|
props: {
|
|
99
99
|
terminal: {
|
|
@@ -102,7 +102,7 @@ const Ie = /* @__PURE__ */ R({
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
setup(_) {
|
|
105
|
-
const { settingTab:
|
|
105
|
+
const { settingTab: d } = ne({
|
|
106
106
|
settingTab: "kiosk_mode"
|
|
107
107
|
}), a = [
|
|
108
108
|
{
|
|
@@ -110,71 +110,71 @@ const Ie = /* @__PURE__ */ R({
|
|
|
110
110
|
value: "kiosk_mode",
|
|
111
111
|
render: xe
|
|
112
112
|
}
|
|
113
|
-
], T = _, l =
|
|
113
|
+
], T = _, l = C(() => a.find((r) => r.value === d.value));
|
|
114
114
|
return (r, e) => {
|
|
115
115
|
var c;
|
|
116
116
|
const m = g("FmTabs");
|
|
117
|
-
return
|
|
117
|
+
return f(), R(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
|
+
y(m, {
|
|
123
|
+
"model-value": h(d),
|
|
124
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => Z(d) ? d.value = v : null),
|
|
125
125
|
class: "mb-6",
|
|
126
126
|
items: a
|
|
127
127
|
}, null, 8, ["model-value"]),
|
|
128
|
-
|
|
128
|
+
h(d) ? (f(), 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
|
+
}), ke = 2e3, Ce = 12e4, Ve = "Timed out waiting for the Tyro reader to sync. Please try again.";
|
|
133
|
+
function Se(_) {
|
|
134
|
+
const { isLoading: d, startLoading: a, stopLoading: T } = le(!1), { t: l } = fe(), r = se(), e = b(null), m = C(() => {
|
|
135
|
+
var D, B;
|
|
136
|
+
const k = (D = _.value.gateways) == null ? void 0 : D.find(
|
|
137
|
+
($) => $.gateway === "Tyro"
|
|
138
138
|
);
|
|
139
|
-
return ((
|
|
140
|
-
}), c =
|
|
141
|
-
var
|
|
142
|
-
return ((
|
|
143
|
-
}), u =
|
|
144
|
-
var
|
|
145
|
-
return
|
|
146
|
-
}), s =
|
|
139
|
+
return ((B = k == null ? void 0 : k.config) == null ? void 0 : B.uniqueId) || "";
|
|
140
|
+
}), c = C(() => !!m.value), v = C(() => {
|
|
141
|
+
var k;
|
|
142
|
+
return ((k = e.value) == null ? void 0 : k.status) === "ready";
|
|
143
|
+
}), u = C(() => {
|
|
144
|
+
var k, D;
|
|
145
|
+
return v.value && !!((D = (k = e.value) == null ? void 0 : k.fields) != null && D.tyroLocationId) && !!_.value.deviceId && !c.value;
|
|
146
|
+
}), s = C(() => !v.value && !c.value), t = C(
|
|
147
147
|
() => l("payment.onboard-submission.tyro.syncDisabledHint")
|
|
148
|
-
),
|
|
148
|
+
), n = C(() => c.value ? "Synced" : "Sync");
|
|
149
149
|
async function i() {
|
|
150
150
|
if (!_.value.referenceId) {
|
|
151
151
|
e.value = null;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
try {
|
|
155
|
-
const
|
|
155
|
+
const k = await ge.getByRestaurant(
|
|
156
156
|
_.value.referenceId
|
|
157
157
|
);
|
|
158
|
-
e.value =
|
|
159
|
-
(
|
|
158
|
+
e.value = k.find(
|
|
159
|
+
(D) => D.type === me.FdoOnboardType.enum.tyro
|
|
160
160
|
) ?? null;
|
|
161
|
-
} catch (
|
|
161
|
+
} catch (k) {
|
|
162
162
|
e.value = null, r.open({
|
|
163
163
|
type: "error",
|
|
164
|
-
message: X(
|
|
164
|
+
message: X(k)
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
intervalMs:
|
|
170
|
-
timeoutMs:
|
|
171
|
-
onTick: async ({ isCurrentRun:
|
|
168
|
+
const p = be({
|
|
169
|
+
intervalMs: ke,
|
|
170
|
+
timeoutMs: Ce,
|
|
171
|
+
onTick: async ({ isCurrentRun: k, stop: D }) => {
|
|
172
172
|
var H, z;
|
|
173
|
-
const
|
|
174
|
-
if (!
|
|
173
|
+
const B = await E.readById(_.value._id);
|
|
174
|
+
if (!k())
|
|
175
175
|
return;
|
|
176
|
-
const
|
|
177
|
-
(
|
|
176
|
+
const $ = (H = B.gateways) == null ? void 0 : H.find((Q) => Q.gateway === "Tyro");
|
|
177
|
+
($ == null ? void 0 : $.gateway) === "Tyro" && ((z = $ == null ? void 0 : $.config) != null && z.uniqueId) && (D({ invalidate: !1 }), T(), Object.assign(_.value, B), r.open({
|
|
178
178
|
type: "success",
|
|
179
179
|
message: "Tyro reader created successfully"
|
|
180
180
|
}));
|
|
@@ -185,20 +185,20 @@ function Ue(_) {
|
|
|
185
185
|
message: Ve
|
|
186
186
|
});
|
|
187
187
|
},
|
|
188
|
-
onError: (
|
|
188
|
+
onError: (k) => {
|
|
189
189
|
T(), r.open({
|
|
190
190
|
type: "error",
|
|
191
|
-
message: X(
|
|
191
|
+
message: X(k)
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
}), x =
|
|
195
|
-
function
|
|
196
|
-
|
|
194
|
+
}), x = p.isPolling;
|
|
195
|
+
function o() {
|
|
196
|
+
p.stop(), T();
|
|
197
197
|
}
|
|
198
198
|
function w() {
|
|
199
|
-
|
|
199
|
+
o(), a(), p.start();
|
|
200
200
|
}
|
|
201
|
-
async function
|
|
201
|
+
async function K() {
|
|
202
202
|
if (!u.value) {
|
|
203
203
|
r.open({
|
|
204
204
|
type: "error",
|
|
@@ -207,11 +207,11 @@ function Ue(_) {
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
try {
|
|
210
|
-
a(), await
|
|
211
|
-
} catch (
|
|
212
|
-
|
|
210
|
+
a(), await E.syncTyroReader(_.value._id), w();
|
|
211
|
+
} catch (k) {
|
|
212
|
+
o(), r.open({
|
|
213
213
|
type: "error",
|
|
214
|
-
message: X(
|
|
214
|
+
message: X(k)
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -221,23 +221,23 @@ function Ue(_) {
|
|
|
221
221
|
await i();
|
|
222
222
|
},
|
|
223
223
|
{ immediate: !0 }
|
|
224
|
-
),
|
|
225
|
-
|
|
224
|
+
), pe(() => {
|
|
225
|
+
o();
|
|
226
226
|
}), {
|
|
227
|
-
isLoading:
|
|
227
|
+
isLoading: d,
|
|
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: n,
|
|
234
|
+
syncTyroReader: K
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const Ue = {
|
|
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" }, Me = { class: "flex-1" }, he = /* @__PURE__ */ M({
|
|
241
241
|
__name: "SoftposGateway",
|
|
242
242
|
props: {
|
|
243
243
|
terminal: {
|
|
@@ -250,7 +250,7 @@ const Se = {
|
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
setup(_) {
|
|
253
|
-
const
|
|
253
|
+
const d = _, a = oe().currentCountry, T = [
|
|
254
254
|
{
|
|
255
255
|
label: "Fiuu Malaysia",
|
|
256
256
|
value: "cc.feedme.payment.rms",
|
|
@@ -291,30 +291,30 @@ const Se = {
|
|
|
291
291
|
gateway: "Tyro",
|
|
292
292
|
region: U.F_COUNTRY.enum.AU
|
|
293
293
|
}
|
|
294
|
-
], l = A(() =>
|
|
294
|
+
], l = A(() => d.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 = C(() => T.filter((N) => N.region === a.value)), v = C(() => c.value.find(
|
|
302
302
|
(N) => N.value === e.value.packageId
|
|
303
|
-
)), u =
|
|
303
|
+
)), u = C(
|
|
304
304
|
() => {
|
|
305
305
|
var N;
|
|
306
|
-
return ((N =
|
|
306
|
+
return ((N = v.value) == null ? void 0 : N.gateway) === "Tyro";
|
|
307
307
|
}
|
|
308
308
|
), {
|
|
309
309
|
isLoading: s,
|
|
310
310
|
isPollingTyroReader: t,
|
|
311
|
-
uniqueId:
|
|
311
|
+
uniqueId: n,
|
|
312
312
|
canSyncTyroReader: i,
|
|
313
|
-
showTyroSyncPopover:
|
|
313
|
+
showTyroSyncPopover: p,
|
|
314
314
|
tyroSyncPopoverMessage: x,
|
|
315
|
-
tyroSyncButtonLabel:
|
|
315
|
+
tyroSyncButtonLabel: o,
|
|
316
316
|
syncTyroReader: w
|
|
317
|
-
} =
|
|
317
|
+
} = Se(l), K = C(() => u.value ? "button" : "submit"), k = C(() => u.value ? o.value : "Save"), D = C(() => u.value ? s.value : !1), B = C(() => u.value ? !i.value || t.value : !1), $ = () => {
|
|
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 Se = {
|
|
|
340
340
|
break;
|
|
341
341
|
case "Softspace":
|
|
342
342
|
case "Digio":
|
|
343
|
-
const
|
|
343
|
+
const S = JSON.parse(N.config.uniqueId);
|
|
344
344
|
e.value = {
|
|
345
345
|
packageId: N.config.packageId,
|
|
346
|
-
uniqueId:
|
|
347
|
-
developerId:
|
|
348
|
-
isUat:
|
|
346
|
+
uniqueId: S.uniqueId,
|
|
347
|
+
developerId: S.developerId,
|
|
348
|
+
isUat: S.isUat
|
|
349
349
|
};
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
q(l,
|
|
353
|
+
q(l, $), G($);
|
|
354
354
|
async function H() {
|
|
355
|
-
const N =
|
|
355
|
+
const N = v.value;
|
|
356
356
|
if (!N)
|
|
357
357
|
return;
|
|
358
|
-
let
|
|
359
|
-
N.isLegacy || (
|
|
358
|
+
let S = e.value.uniqueId;
|
|
359
|
+
N.isLegacy || (S = 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 Se = {
|
|
|
365
365
|
gateway: N.gateway,
|
|
366
366
|
config: {
|
|
367
367
|
packageId: N.value,
|
|
368
|
-
uniqueId:
|
|
368
|
+
uniqueId: S
|
|
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 d.onUpdate(l.value);
|
|
372
372
|
}
|
|
373
373
|
async function z(N) {
|
|
374
|
-
var
|
|
375
|
-
(
|
|
374
|
+
var S;
|
|
375
|
+
(S = l.value.gateways) == null || S.splice(N, 1), d.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, S) => {
|
|
381
|
+
const re = g("FmSelect"), J = g("FmTextField"), ue = g("FmCheckbox"), ie = g("FmButton"), ce = g("FmTooltip"), de = g("FmForm");
|
|
382
|
+
return f(), F(de, {
|
|
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
|
+
y(re, {
|
|
389
389
|
modelValue: e.value.packageId,
|
|
390
|
-
"onUpdate:modelValue":
|
|
390
|
+
"onUpdate:modelValue": S[0] || (S[0] = (L) => e.value.packageId = L),
|
|
391
391
|
label: "Package ID",
|
|
392
392
|
items: c.value
|
|
393
393
|
}, null, 8, ["modelValue", "items"]),
|
|
394
|
-
|
|
395
|
-
u.value ? (
|
|
394
|
+
v.value ? (f(), R(P, { key: 0 }, [
|
|
395
|
+
u.value ? (f(), F(J, {
|
|
396
396
|
key: 0,
|
|
397
|
-
"model-value":
|
|
397
|
+
"model-value": h(n),
|
|
398
398
|
label: "Unique ID (Reader ID)",
|
|
399
399
|
disabled: ""
|
|
400
|
-
}, null, 8, ["model-value"])) :
|
|
401
|
-
|
|
400
|
+
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (f(), R(P, { key: 1 }, [
|
|
401
|
+
y(J, {
|
|
402
402
|
modelValue: e.value.uniqueId,
|
|
403
|
-
"onUpdate:modelValue":
|
|
403
|
+
"onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
|
|
404
404
|
label: "Unique ID (TID)"
|
|
405
405
|
}, null, 8, ["modelValue"]),
|
|
406
|
-
|
|
407
|
-
], 64)) : (
|
|
408
|
-
|
|
406
|
+
v.value.isOutdated ? (f(), R("span", Ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
|
|
407
|
+
], 64)) : (f(), R(P, { key: 2 }, [
|
|
408
|
+
y(J, {
|
|
409
409
|
modelValue: e.value.developerId,
|
|
410
|
-
"onUpdate:modelValue":
|
|
410
|
+
"onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
|
|
411
411
|
label: "Developer ID (MID)"
|
|
412
412
|
}, null, 8, ["modelValue"]),
|
|
413
|
-
|
|
413
|
+
y(J, {
|
|
414
414
|
modelValue: e.value.uniqueId,
|
|
415
|
-
"onUpdate:modelValue":
|
|
415
|
+
"onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
|
|
416
416
|
label: "Unique ID (TID)"
|
|
417
417
|
}, null, 8, ["modelValue"]),
|
|
418
|
-
|
|
418
|
+
y(ue, {
|
|
419
419
|
modelValue: e.value.isUat,
|
|
420
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
|
|
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 ? (f(), 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 && h(p) && B.value ? (f(), F(ce, {
|
|
434
434
|
key: 1,
|
|
435
435
|
class: "flex-1",
|
|
436
436
|
variant: "plain",
|
|
437
437
|
placement: "top",
|
|
438
|
-
content:
|
|
438
|
+
content: h(x)
|
|
439
439
|
}, {
|
|
440
440
|
default: O(() => [
|
|
441
|
-
I("div",
|
|
442
|
-
|
|
443
|
-
type:
|
|
441
|
+
I("div", Me, [
|
|
442
|
+
y(ie, {
|
|
443
|
+
type: K.value,
|
|
444
444
|
class: "w-full",
|
|
445
445
|
variant: "primary",
|
|
446
|
-
loading:
|
|
447
|
-
disabled:
|
|
448
|
-
label:
|
|
446
|
+
loading: D.value,
|
|
447
|
+
disabled: B.value,
|
|
448
|
+
label: k.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"])) : (f(), F(ie, {
|
|
455
455
|
key: 2,
|
|
456
|
-
type:
|
|
456
|
+
type: K.value,
|
|
457
457
|
class: "flex-1",
|
|
458
458
|
variant: "primary",
|
|
459
|
-
loading:
|
|
460
|
-
disabled:
|
|
461
|
-
label:
|
|
459
|
+
loading: D.value,
|
|
460
|
+
disabled: B.value,
|
|
461
|
+
label: k.value,
|
|
462
462
|
onClick: Q
|
|
463
463
|
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
464
464
|
])
|
|
@@ -471,7 +471,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
475
475
|
__name: "TerminalGateway",
|
|
476
476
|
props: {
|
|
477
477
|
terminal: {
|
|
@@ -484,38 +484,38 @@ const Se = {
|
|
|
484
484
|
}
|
|
485
485
|
},
|
|
486
486
|
setup(_) {
|
|
487
|
-
const { isLoading:
|
|
487
|
+
const { isLoading: d, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
|
|
488
488
|
terminalId: ""
|
|
489
|
-
}),
|
|
489
|
+
}), v = () => {
|
|
490
490
|
c.value.terminalId = "", m.value = -1;
|
|
491
491
|
}, u = () => {
|
|
492
492
|
if (a(async () => {
|
|
493
|
-
r.value = await
|
|
493
|
+
r.value = await E.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 v();
|
|
496
|
+
const n = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
|
|
497
|
+
if (n === -1)
|
|
498
|
+
return v();
|
|
499
|
+
m.value = n;
|
|
500
|
+
const i = T.terminal.ecrs.at(n);
|
|
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 = C(() => (r.value ?? []).map((n) => ({
|
|
507
|
+
label: n.name ?? n._id,
|
|
508
|
+
value: n._id
|
|
509
509
|
})));
|
|
510
|
-
async function t(
|
|
510
|
+
async function t(n) {
|
|
511
511
|
var i;
|
|
512
|
-
(i = T.terminal.ecrs) == null || i.splice(
|
|
512
|
+
(i = T.terminal.ecrs) == null || i.splice(n, 1), T.onUpdate(T.terminal);
|
|
513
513
|
}
|
|
514
|
-
return (
|
|
515
|
-
const
|
|
516
|
-
return
|
|
517
|
-
|
|
518
|
-
])) : (
|
|
514
|
+
return (n, i) => {
|
|
515
|
+
const p = g("FmCircularProgress"), x = g("FmSelect"), o = g("FmButton"), w = g("FmForm");
|
|
516
|
+
return h(d) ? (f(), R("div", Oe, [
|
|
517
|
+
y(p, { size: "xxl" })
|
|
518
|
+
])) : (f(), 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 Se = {
|
|
|
524
524
|
})
|
|
525
525
|
}, {
|
|
526
526
|
default: O(() => [
|
|
527
|
-
|
|
527
|
+
y(x, {
|
|
528
528
|
modelValue: c.value.terminalId,
|
|
529
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
529
|
+
"onUpdate:modelValue": i[0] || (i[0] = (K) => c.value.terminalId = K),
|
|
530
530
|
label: "Terminal ID",
|
|
531
531
|
items: s.value,
|
|
532
|
-
rules:
|
|
532
|
+
rules: h(Te)(h(_e).string())
|
|
533
533
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
534
534
|
I("div", Pe, [
|
|
535
|
-
m.value > -1 ? (
|
|
535
|
+
m.value > -1 ? (f(), F(o, {
|
|
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
|
+
y(o, {
|
|
543
543
|
type: "submit",
|
|
544
544
|
class: "flex-1",
|
|
545
545
|
variant: "primary",
|
|
@@ -551,7 +551,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
555
555
|
__name: "GhlGateway",
|
|
556
556
|
props: {
|
|
557
557
|
terminal: {
|
|
@@ -564,7 +564,7 @@ const Se = {
|
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
setup(_) {
|
|
567
|
-
const
|
|
567
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
|
|
568
568
|
merchantId: "",
|
|
569
569
|
terminalId: "",
|
|
570
570
|
privateKey: ""
|
|
@@ -573,11 +573,11 @@ const Se = {
|
|
|
573
573
|
}, m = () => {
|
|
574
574
|
if (!a.value.ecrs)
|
|
575
575
|
return e();
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
576
|
+
const v = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
|
|
577
|
+
if (v === -1)
|
|
578
578
|
return e();
|
|
579
|
-
l.value =
|
|
580
|
-
const u = a.value.ecrs.at(
|
|
579
|
+
l.value = v;
|
|
580
|
+
const u = a.value.ecrs.at(v);
|
|
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 Se = {
|
|
|
585
585
|
});
|
|
586
586
|
};
|
|
587
587
|
q(a, m), G(m);
|
|
588
|
-
async function c(
|
|
588
|
+
async function c(v) {
|
|
589
589
|
var u;
|
|
590
|
-
(u = a.value.ecrs) == null || u.splice(
|
|
590
|
+
(u = a.value.ecrs) == null || u.splice(v, 1), d.onUpdate(a.value);
|
|
591
591
|
}
|
|
592
|
-
return (
|
|
593
|
-
const s = g("FmTextField"), t = g("FmTextarea"),
|
|
594
|
-
return
|
|
592
|
+
return (v, u) => {
|
|
593
|
+
const s = g("FmTextField"), t = g("FmTextarea"), n = g("FmButton"), i = g("FmForm");
|
|
594
|
+
return f(), 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 })), d.onUpdate(a.value);
|
|
599
599
|
})
|
|
600
600
|
}, {
|
|
601
601
|
default: O(() => [
|
|
602
|
-
|
|
602
|
+
y(s, {
|
|
603
603
|
modelValue: r.value.merchantId,
|
|
604
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
604
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => r.value.merchantId = p),
|
|
605
605
|
label: "Merchant ID"
|
|
606
606
|
}, null, 8, ["modelValue"]),
|
|
607
|
-
|
|
607
|
+
y(s, {
|
|
608
608
|
modelValue: r.value.terminalId,
|
|
609
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
609
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => r.value.terminalId = p),
|
|
610
610
|
label: "Terminal ID"
|
|
611
611
|
}, null, 8, ["modelValue"]),
|
|
612
|
-
|
|
612
|
+
y(t, {
|
|
613
613
|
modelValue: r.value.privateKey,
|
|
614
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
614
|
+
"onUpdate:modelValue": u[2] || (u[2] = (p) => r.value.privateKey = p),
|
|
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 ? (f(), F(n, {
|
|
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
|
+
y(n, {
|
|
628
628
|
type: "submit",
|
|
629
629
|
class: "flex-1",
|
|
630
630
|
variant: "primary",
|
|
@@ -636,7 +636,7 @@ const Se = {
|
|
|
636
636
|
}, 512);
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ M({
|
|
640
640
|
__name: "MaybankGateway",
|
|
641
641
|
props: {
|
|
642
642
|
terminal: {
|
|
@@ -649,7 +649,7 @@ const Se = {
|
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
setup(_) {
|
|
652
|
-
const
|
|
652
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
653
653
|
ip: "",
|
|
654
654
|
receiptName: "",
|
|
655
655
|
cardTypes: []
|
|
@@ -659,38 +659,38 @@ const Se = {
|
|
|
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((p) => p && p.gateway && p.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 n = s.at(t);
|
|
667
|
+
n.gateway === "Maybank" && n.config && (e.value = {
|
|
668
|
+
ip: n.config.ip ?? "",
|
|
669
|
+
receiptName: n.receiptName ?? "",
|
|
670
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
671
671
|
});
|
|
672
672
|
};
|
|
673
673
|
q(a, c), G(c);
|
|
674
|
-
async function
|
|
674
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
683
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
700
700
|
dialogConfig: {
|
|
701
701
|
cardTypes: e.value.cardTypes
|
|
702
702
|
}
|
|
703
|
-
})),
|
|
703
|
+
})), d.onUpdate(a.value);
|
|
704
704
|
})
|
|
705
705
|
}, {
|
|
706
706
|
default: O(() => [
|
|
707
|
-
|
|
707
|
+
y(n, {
|
|
708
708
|
modelValue: e.value.ip,
|
|
709
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
709
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
710
710
|
label: "IP Address"
|
|
711
711
|
}, null, 8, ["modelValue"]),
|
|
712
|
-
|
|
712
|
+
y(n, {
|
|
713
713
|
modelValue: e.value.receiptName,
|
|
714
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
714
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
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", De, [
|
|
719
|
+
y(n, {
|
|
720
720
|
modelValue: r.value,
|
|
721
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
721
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
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
|
+
y(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", $e, [
|
|
732
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
733
|
+
key: o,
|
|
734
|
+
label: o,
|
|
735
735
|
removable: !0,
|
|
736
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
736
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
737
737
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
738
738
|
]),
|
|
739
739
|
I("div", Be, [
|
|
740
|
-
l.value > -1 ? (
|
|
740
|
+
l.value > -1 ? (f(), F(i, {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "flex-1",
|
|
743
743
|
variant: "secondary",
|
|
744
744
|
label: "Delete",
|
|
745
|
-
onclick: () =>
|
|
745
|
+
onclick: () => v(l.value)
|
|
746
746
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
747
|
-
|
|
747
|
+
y(i, {
|
|
748
748
|
type: "submit",
|
|
749
749
|
class: "flex-1",
|
|
750
750
|
variant: "primary",
|
|
@@ -756,7 +756,7 @@ const Se = {
|
|
|
756
756
|
}, 512);
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ M({
|
|
760
760
|
__name: "Maybank2Gateway",
|
|
761
761
|
props: {
|
|
762
762
|
terminal: {
|
|
@@ -769,7 +769,7 @@ const Se = {
|
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
setup(_) {
|
|
772
|
-
const
|
|
772
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
773
773
|
ip: "",
|
|
774
774
|
receiptName: "",
|
|
775
775
|
cardTypes: []
|
|
@@ -779,38 +779,38 @@ const Se = {
|
|
|
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((p) => p && p.gateway && p.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 n = s.at(t);
|
|
787
|
+
n.gateway === "Maybank2" && n.config && (e.value = {
|
|
788
|
+
ip: n.config.ip ?? "",
|
|
789
|
+
receiptName: n.receiptName ?? "",
|
|
790
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
791
791
|
});
|
|
792
792
|
};
|
|
793
793
|
q(a, c), G(c);
|
|
794
|
-
async function
|
|
794
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
803
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
820
820
|
dialogConfig: {
|
|
821
821
|
cardTypes: e.value.cardTypes
|
|
822
822
|
}
|
|
823
|
-
})),
|
|
823
|
+
})), d.onUpdate(a.value);
|
|
824
824
|
})
|
|
825
825
|
}, {
|
|
826
826
|
default: O(() => [
|
|
827
|
-
|
|
827
|
+
y(n, {
|
|
828
828
|
modelValue: e.value.ip,
|
|
829
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
829
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
830
830
|
label: "IP Address"
|
|
831
831
|
}, null, 8, ["modelValue"]),
|
|
832
|
-
|
|
832
|
+
y(n, {
|
|
833
833
|
modelValue: e.value.receiptName,
|
|
834
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
834
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
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", Ye, [
|
|
839
|
+
y(n, {
|
|
840
840
|
modelValue: r.value,
|
|
841
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
841
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
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
|
+
y(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", Ee, [
|
|
852
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
853
|
+
key: o,
|
|
854
|
+
label: o,
|
|
855
855
|
removable: !0,
|
|
856
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
856
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
857
857
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
858
858
|
]),
|
|
859
859
|
I("div", Ke, [
|
|
860
|
-
l.value > -1 ? (
|
|
860
|
+
l.value > -1 ? (f(), F(i, {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "flex-1",
|
|
863
863
|
variant: "secondary",
|
|
864
864
|
label: "Delete",
|
|
865
|
-
onclick: () =>
|
|
865
|
+
onclick: () => v(l.value)
|
|
866
866
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
867
|
-
|
|
867
|
+
y(i, {
|
|
868
868
|
type: "submit",
|
|
869
869
|
class: "flex-1",
|
|
870
870
|
variant: "primary",
|
|
@@ -876,7 +876,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
880
880
|
__name: "Maybank3Gateway",
|
|
881
881
|
props: {
|
|
882
882
|
terminal: {
|
|
@@ -889,7 +889,7 @@ const Se = {
|
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
891
|
setup(_) {
|
|
892
|
-
const
|
|
892
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
893
893
|
receiptName: "",
|
|
894
894
|
config: {},
|
|
895
895
|
cardTypes: []
|
|
@@ -899,38 +899,38 @@ const Se = {
|
|
|
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((p) => p && p.gateway && p.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 n = s.at(t);
|
|
907
|
+
n.gateway === "Maybank3" && n.config && (e.value = {
|
|
908
|
+
config: n.config,
|
|
909
|
+
receiptName: n.receiptName ?? "",
|
|
910
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
911
911
|
});
|
|
912
912
|
};
|
|
913
913
|
q(a, c), G(c);
|
|
914
|
-
async function
|
|
914
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
923
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
940
940
|
dialogConfig: {
|
|
941
941
|
cardTypes: e.value.cardTypes
|
|
942
942
|
}
|
|
943
|
-
})),
|
|
943
|
+
})), d.onUpdate(a.value);
|
|
944
944
|
})
|
|
945
945
|
}, {
|
|
946
946
|
default: O(() => [
|
|
947
|
-
|
|
947
|
+
y(n, {
|
|
948
948
|
modelValue: e.value.receiptName,
|
|
949
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
949
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
955
955
|
modelValue: r.value,
|
|
956
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
956
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
968
|
+
key: o,
|
|
969
|
+
label: o,
|
|
970
970
|
removable: !0,
|
|
971
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
971
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
972
972
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
973
973
|
]),
|
|
974
974
|
I("div", Qe, [
|
|
975
|
-
l.value > -1 ? (
|
|
975
|
+
l.value > -1 ? (f(), F(i, {
|
|
976
976
|
key: 0,
|
|
977
977
|
class: "flex-1",
|
|
978
978
|
variant: "secondary",
|
|
979
979
|
label: "Delete",
|
|
980
|
-
onclick: () =>
|
|
980
|
+
onclick: () => v(l.value)
|
|
981
981
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
982
|
-
|
|
982
|
+
y(i, {
|
|
983
983
|
type: "submit",
|
|
984
984
|
class: "flex-1",
|
|
985
985
|
variant: "primary",
|
|
@@ -991,7 +991,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
995
995
|
__name: "NetsGateway",
|
|
996
996
|
props: {
|
|
997
997
|
terminal: {
|
|
@@ -1004,7 +1004,7 @@ const Se = {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
},
|
|
1006
1006
|
setup(_) {
|
|
1007
|
-
const
|
|
1007
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1008
1008
|
ip: "",
|
|
1009
1009
|
receiptName: "",
|
|
1010
1010
|
cardTypes: []
|
|
@@ -1014,38 +1014,38 @@ const Se = {
|
|
|
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((p) => p && p.gateway && p.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 n = s.at(t);
|
|
1022
|
+
n.gateway === "Nets" && n.config && (e.value = {
|
|
1023
|
+
ip: n.config.ip ?? "",
|
|
1024
|
+
receiptName: n.receiptName ?? "",
|
|
1025
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
1028
1028
|
q(a, c), G(c);
|
|
1029
|
-
async function
|
|
1029
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1038
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1055
1055
|
dialogConfig: {
|
|
1056
1056
|
cardTypes: e.value.cardTypes
|
|
1057
1057
|
}
|
|
1058
|
-
})),
|
|
1058
|
+
})), d.onUpdate(a.value);
|
|
1059
1059
|
})
|
|
1060
1060
|
}, {
|
|
1061
1061
|
default: O(() => [
|
|
1062
|
-
|
|
1062
|
+
y(n, {
|
|
1063
1063
|
modelValue: e.value.ip,
|
|
1064
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1064
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
1065
1065
|
label: "IP Address"
|
|
1066
1066
|
}, null, 8, ["modelValue"]),
|
|
1067
|
-
|
|
1067
|
+
y(n, {
|
|
1068
1068
|
modelValue: e.value.receiptName,
|
|
1069
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1069
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1075
1075
|
modelValue: r.value,
|
|
1076
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1076
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1088
|
+
key: o,
|
|
1089
|
+
label: o,
|
|
1090
1090
|
removable: !0,
|
|
1091
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1091
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1092
1092
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1093
1093
|
]),
|
|
1094
1094
|
I("div", Ze, [
|
|
1095
|
-
l.value > -1 ? (
|
|
1095
|
+
l.value > -1 ? (f(), F(i, {
|
|
1096
1096
|
key: 0,
|
|
1097
1097
|
class: "flex-1",
|
|
1098
1098
|
variant: "secondary",
|
|
1099
1099
|
label: "Delete",
|
|
1100
|
-
onclick: () =>
|
|
1100
|
+
onclick: () => v(l.value)
|
|
1101
1101
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1102
|
-
|
|
1102
|
+
y(i, {
|
|
1103
1103
|
type: "submit",
|
|
1104
1104
|
class: "flex-1",
|
|
1105
1105
|
variant: "primary",
|
|
@@ -1111,7 +1111,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1115
1115
|
__name: "KBankGateway",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
terminal: {
|
|
@@ -1124,7 +1124,7 @@ const Se = {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
setup(_) {
|
|
1127
|
-
const
|
|
1127
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1128
1128
|
receiptName: "",
|
|
1129
1129
|
cardTypes: []
|
|
1130
1130
|
}), m = () => {
|
|
@@ -1133,37 +1133,37 @@ const Se = {
|
|
|
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((p) => p && p.gateway && p.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 n = s.at(t);
|
|
1141
|
+
n.gateway === "Kbank" && n.config && (e.value = {
|
|
1142
|
+
receiptName: n.receiptName ?? "",
|
|
1143
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1144
1144
|
});
|
|
1145
1145
|
};
|
|
1146
1146
|
q(a, c), G(c);
|
|
1147
|
-
async function
|
|
1147
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1156
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1173
1173
|
dialogConfig: {
|
|
1174
1174
|
cardTypes: e.value.cardTypes
|
|
1175
1175
|
}
|
|
1176
|
-
})),
|
|
1176
|
+
})), d.onUpdate(a.value);
|
|
1177
1177
|
})
|
|
1178
1178
|
}, {
|
|
1179
1179
|
default: O(() => [
|
|
1180
|
-
|
|
1180
|
+
y(n, {
|
|
1181
1181
|
modelValue: e.value.receiptName,
|
|
1182
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1182
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1188
1188
|
modelValue: r.value,
|
|
1189
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1189
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1201
|
+
key: o,
|
|
1202
|
+
label: o,
|
|
1203
1203
|
removable: !0,
|
|
1204
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1204
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1205
1205
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1206
1206
|
]),
|
|
1207
1207
|
I("div", la, [
|
|
1208
|
-
l.value > -1 ? (
|
|
1208
|
+
l.value > -1 ? (f(), F(i, {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
class: "flex-1",
|
|
1211
1211
|
variant: "secondary",
|
|
1212
1212
|
label: "Delete",
|
|
1213
|
-
onclick: () =>
|
|
1213
|
+
onclick: () => v(l.value)
|
|
1214
1214
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1215
|
-
|
|
1215
|
+
y(i, {
|
|
1216
1216
|
type: "submit",
|
|
1217
1217
|
class: "flex-1",
|
|
1218
1218
|
variant: "primary",
|
|
@@ -1224,7 +1224,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1228
1228
|
__name: "Ghl2Gateway",
|
|
1229
1229
|
props: {
|
|
1230
1230
|
terminal: {
|
|
@@ -1237,7 +1237,7 @@ const Se = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
setup(_) {
|
|
1240
|
-
const
|
|
1240
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
|
|
1241
1241
|
ip: "",
|
|
1242
1242
|
receiptName: ""
|
|
1243
1243
|
}), e = () => {
|
|
@@ -1245,24 +1245,24 @@ const Se = {
|
|
|
1245
1245
|
}, m = () => {
|
|
1246
1246
|
if (!a.value.ecrIntegrations)
|
|
1247
1247
|
return e();
|
|
1248
|
-
const
|
|
1248
|
+
const v = a.value.ecrIntegrations, u = v.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 = v.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(v) {
|
|
1260
1260
|
var u;
|
|
1261
|
-
(u = a.value.ecrIntegrations) == null || u.splice(
|
|
1261
|
+
(u = a.value.ecrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
|
|
1262
1262
|
}
|
|
1263
|
-
return (
|
|
1264
|
-
const s = g("FmTextField"), t = g("FmButton"),
|
|
1265
|
-
return
|
|
1263
|
+
return (v, u) => {
|
|
1264
|
+
const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
|
|
1265
|
+
return f(), F(n, {
|
|
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 Se = {
|
|
|
1274
1274
|
gateway: "Ghl2",
|
|
1275
1275
|
config: { ip: r.value.ip },
|
|
1276
1276
|
receiptName: r.value.receiptName
|
|
1277
|
-
}),
|
|
1277
|
+
}), d.onUpdate(a.value);
|
|
1278
1278
|
})
|
|
1279
1279
|
}, {
|
|
1280
1280
|
default: O(() => [
|
|
1281
|
-
|
|
1281
|
+
y(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
|
+
y(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 ? (f(), 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
|
+
y(t, {
|
|
1301
1301
|
type: "submit",
|
|
1302
1302
|
class: "flex-1",
|
|
1303
1303
|
variant: "primary",
|
|
@@ -1309,7 +1309,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1313
1313
|
__name: "Ghl3Gateway",
|
|
1314
1314
|
props: {
|
|
1315
1315
|
terminal: {
|
|
@@ -1322,7 +1322,7 @@ const Se = {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
},
|
|
1324
1324
|
setup(_) {
|
|
1325
|
-
const
|
|
1325
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1326
1326
|
receiptName: "",
|
|
1327
1327
|
config: {},
|
|
1328
1328
|
cardTypes: []
|
|
@@ -1333,39 +1333,39 @@ const Se = {
|
|
|
1333
1333
|
if (!a.value.ecrIntegrations)
|
|
1334
1334
|
return m();
|
|
1335
1335
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1336
|
-
(
|
|
1336
|
+
(p) => p && p.gateway && p.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 n = s.at(t);
|
|
1342
|
+
n.gateway === "Ghl3" && n.config && (e.value = {
|
|
1343
|
+
config: n.config,
|
|
1344
|
+
receiptName: n.receiptName ?? "",
|
|
1345
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1346
1346
|
});
|
|
1347
1347
|
};
|
|
1348
1348
|
q(a, c), G(c);
|
|
1349
|
-
async function
|
|
1349
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1358
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1375
1375
|
dialogConfig: {
|
|
1376
1376
|
cardTypes: e.value.cardTypes
|
|
1377
1377
|
}
|
|
1378
|
-
})),
|
|
1378
|
+
})), d.onUpdate(a.value);
|
|
1379
1379
|
})
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: O(() => [
|
|
1382
|
-
|
|
1382
|
+
y(n, {
|
|
1383
1383
|
modelValue: e.value.receiptName,
|
|
1384
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1384
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1390
1390
|
modelValue: r.value,
|
|
1391
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1391
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1403
|
+
key: o,
|
|
1404
|
+
label: o,
|
|
1405
1405
|
removable: !0,
|
|
1406
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1406
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1407
1407
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1408
1408
|
]),
|
|
1409
1409
|
I("div", ua, [
|
|
1410
|
-
l.value > -1 ? (
|
|
1410
|
+
l.value > -1 ? (f(), F(i, {
|
|
1411
1411
|
key: 0,
|
|
1412
1412
|
class: "flex-1",
|
|
1413
1413
|
variant: "secondary",
|
|
1414
1414
|
label: "Delete",
|
|
1415
|
-
onclick: () =>
|
|
1415
|
+
onclick: () => v(l.value)
|
|
1416
1416
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1417
|
-
|
|
1417
|
+
y(i, {
|
|
1418
1418
|
type: "submit",
|
|
1419
1419
|
class: "flex-1",
|
|
1420
1420
|
variant: "primary",
|
|
@@ -1426,7 +1426,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1430
1430
|
__name: "HlbbGateway",
|
|
1431
1431
|
props: {
|
|
1432
1432
|
terminal: {
|
|
@@ -1439,7 +1439,7 @@ const Se = {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
},
|
|
1441
1441
|
setup(_) {
|
|
1442
|
-
const
|
|
1442
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1443
1443
|
receiptName: "",
|
|
1444
1444
|
config: {},
|
|
1445
1445
|
cardTypes: []
|
|
@@ -1450,39 +1450,39 @@ const Se = {
|
|
|
1450
1450
|
if (!a.value.ecrIntegrations)
|
|
1451
1451
|
return m();
|
|
1452
1452
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1453
|
-
(
|
|
1453
|
+
(p) => p && p.gateway && p.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 n = s.at(t);
|
|
1459
|
+
n.gateway === "Hlbb" && n.config && (e.value = {
|
|
1460
|
+
config: n.config,
|
|
1461
|
+
receiptName: n.receiptName ?? "",
|
|
1462
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1463
1463
|
});
|
|
1464
1464
|
};
|
|
1465
1465
|
q(a, c), G(c);
|
|
1466
|
-
async function
|
|
1466
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1475
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1492
1492
|
dialogConfig: {
|
|
1493
1493
|
cardTypes: e.value.cardTypes
|
|
1494
1494
|
}
|
|
1495
|
-
})),
|
|
1495
|
+
})), d.onUpdate(a.value);
|
|
1496
1496
|
})
|
|
1497
1497
|
}, {
|
|
1498
1498
|
default: O(() => [
|
|
1499
|
-
|
|
1499
|
+
y(n, {
|
|
1500
1500
|
modelValue: e.value.receiptName,
|
|
1501
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1501
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1507
1507
|
modelValue: r.value,
|
|
1508
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1508
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1520
|
+
key: o,
|
|
1521
|
+
label: o,
|
|
1522
1522
|
removable: !0,
|
|
1523
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1523
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1524
1524
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1525
1525
|
]),
|
|
1526
1526
|
I("div", ma, [
|
|
1527
|
-
l.value > -1 ? (
|
|
1527
|
+
l.value > -1 ? (f(), F(i, {
|
|
1528
1528
|
key: 0,
|
|
1529
1529
|
class: "flex-1",
|
|
1530
1530
|
variant: "secondary",
|
|
1531
1531
|
label: "Delete",
|
|
1532
|
-
onclick: () =>
|
|
1532
|
+
onclick: () => v(l.value)
|
|
1533
1533
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1534
|
-
|
|
1534
|
+
y(i, {
|
|
1535
1535
|
type: "submit",
|
|
1536
1536
|
class: "flex-1",
|
|
1537
1537
|
variant: "primary",
|
|
@@ -1543,7 +1543,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1547
1547
|
__name: "GlobalPaymentsGateway",
|
|
1548
1548
|
props: {
|
|
1549
1549
|
terminal: {
|
|
@@ -1556,7 +1556,7 @@ const Se = {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
},
|
|
1558
1558
|
setup(_) {
|
|
1559
|
-
const
|
|
1559
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1560
1560
|
ip: "",
|
|
1561
1561
|
receiptName: "",
|
|
1562
1562
|
cardTypes: []
|
|
@@ -1567,39 +1567,39 @@ const Se = {
|
|
|
1567
1567
|
if (!a.value.ecrIntegrations)
|
|
1568
1568
|
return m();
|
|
1569
1569
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1570
|
-
(
|
|
1570
|
+
(p) => p && p.gateway && p.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 n = s.at(t);
|
|
1576
|
+
n.gateway === "GlobalPayments" && n.config && (e.value = {
|
|
1577
|
+
ip: n.config.ip ?? "",
|
|
1578
|
+
receiptName: n.receiptName ?? "",
|
|
1579
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1580
1580
|
});
|
|
1581
1581
|
};
|
|
1582
1582
|
q(a, c), G(c);
|
|
1583
|
-
async function
|
|
1583
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1592
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1609
1609
|
dialogConfig: {
|
|
1610
1610
|
cardTypes: e.value.cardTypes
|
|
1611
1611
|
}
|
|
1612
|
-
})),
|
|
1612
|
+
})), d.onUpdate(a.value);
|
|
1613
1613
|
})
|
|
1614
1614
|
}, {
|
|
1615
1615
|
default: O(() => [
|
|
1616
|
-
|
|
1616
|
+
y(n, {
|
|
1617
1617
|
modelValue: e.value.ip,
|
|
1618
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1618
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
1619
1619
|
label: "IP Address"
|
|
1620
1620
|
}, null, 8, ["modelValue"]),
|
|
1621
|
-
|
|
1621
|
+
y(n, {
|
|
1622
1622
|
modelValue: e.value.receiptName,
|
|
1623
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1623
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1629
1629
|
modelValue: r.value,
|
|
1630
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1630
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1642
|
+
key: o,
|
|
1643
|
+
label: o,
|
|
1644
1644
|
removable: !0,
|
|
1645
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1645
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1646
1646
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1647
1647
|
]),
|
|
1648
1648
|
I("div", ga, [
|
|
1649
|
-
l.value > -1 ? (
|
|
1649
|
+
l.value > -1 ? (f(), F(i, {
|
|
1650
1650
|
key: 0,
|
|
1651
1651
|
class: "flex-1",
|
|
1652
1652
|
variant: "secondary",
|
|
1653
1653
|
label: "Delete",
|
|
1654
|
-
onclick: () =>
|
|
1654
|
+
onclick: () => v(l.value)
|
|
1655
1655
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1656
|
-
|
|
1656
|
+
y(i, {
|
|
1657
1657
|
type: "submit",
|
|
1658
1658
|
class: "flex-1",
|
|
1659
1659
|
variant: "primary",
|
|
@@ -1665,7 +1665,7 @@ const Se = {
|
|
|
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__ */ M({
|
|
1669
1669
|
__name: "OmaGateway",
|
|
1670
1670
|
props: {
|
|
1671
1671
|
terminal: {
|
|
@@ -1678,7 +1678,7 @@ const Se = {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
},
|
|
1680
1680
|
setup(_) {
|
|
1681
|
-
const
|
|
1681
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
|
|
1682
1682
|
receiptName: "",
|
|
1683
1683
|
cardTypes: []
|
|
1684
1684
|
}), m = () => {
|
|
@@ -1688,38 +1688,38 @@ const Se = {
|
|
|
1688
1688
|
if (!a.value.ecrIntegrations)
|
|
1689
1689
|
return m();
|
|
1690
1690
|
const s = a.value.ecrIntegrations, t = s.findIndex(
|
|
1691
|
-
(
|
|
1691
|
+
(p) => p && p.gateway && p.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 n = s.at(t);
|
|
1697
|
+
n.gateway === "Oma" && n.config && (e.value = {
|
|
1698
|
+
receiptName: n.receiptName ?? "",
|
|
1699
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1700
1700
|
});
|
|
1701
1701
|
};
|
|
1702
1702
|
q(a, c), G(c);
|
|
1703
|
-
async function
|
|
1703
|
+
async function v(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), d.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 n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
|
|
1712
|
+
return f(), 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 o, 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 = (o = a.value.ecrIntegrations) == null ? void 0 : o[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 Se = {
|
|
|
1729
1729
|
dialogConfig: {
|
|
1730
1730
|
cardTypes: e.value.cardTypes
|
|
1731
1731
|
}
|
|
1732
|
-
})),
|
|
1732
|
+
})), d.onUpdate(a.value);
|
|
1733
1733
|
})
|
|
1734
1734
|
}, {
|
|
1735
1735
|
default: O(() => [
|
|
1736
|
-
|
|
1736
|
+
y(n, {
|
|
1737
1737
|
modelValue: e.value.receiptName,
|
|
1738
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1738
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
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
|
+
y(n, {
|
|
1744
1744
|
modelValue: r.value,
|
|
1745
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1745
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
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
|
+
y(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
|
+
(f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
|
|
1757
|
+
key: o,
|
|
1758
|
+
label: o,
|
|
1759
1759
|
removable: !0,
|
|
1760
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1760
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1761
1761
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1762
1762
|
]),
|
|
1763
1763
|
I("div", Ia, [
|
|
1764
|
-
l.value > -1 ? (
|
|
1764
|
+
l.value > -1 ? (f(), F(i, {
|
|
1765
1765
|
key: 0,
|
|
1766
1766
|
class: "flex-1",
|
|
1767
1767
|
variant: "secondary",
|
|
1768
1768
|
label: "Delete",
|
|
1769
|
-
onclick: () =>
|
|
1769
|
+
onclick: () => v(l.value)
|
|
1770
1770
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
1771
|
-
|
|
1771
|
+
y(i, {
|
|
1772
1772
|
type: "submit",
|
|
1773
1773
|
class: "flex-1",
|
|
1774
1774
|
variant: "primary",
|
|
@@ -1780,135 +1780,7 @@ const Se = {
|
|
|
1780
1780
|
}, 512);
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
|
-
}), wa = { class: "flex items-
|
|
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({
|
|
1783
|
+
}), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ M({
|
|
1912
1784
|
__name: "EcrGateway",
|
|
1913
1785
|
props: {
|
|
1914
1786
|
terminal: {
|
|
@@ -1922,7 +1794,7 @@ const Se = {
|
|
|
1922
1794
|
},
|
|
1923
1795
|
setup(_) {
|
|
1924
1796
|
var m;
|
|
1925
|
-
const
|
|
1797
|
+
const d = _, a = [
|
|
1926
1798
|
{
|
|
1927
1799
|
label: "FeedMe Terminal",
|
|
1928
1800
|
value: "terminal",
|
|
@@ -1993,42 +1865,36 @@ const Se = {
|
|
|
1993
1865
|
value: "oma",
|
|
1994
1866
|
render: Fa,
|
|
1995
1867
|
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]
|
|
2002
1868
|
}
|
|
2003
|
-
], T =
|
|
1869
|
+
], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter(
|
|
2004
1870
|
(c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY)
|
|
2005
1871
|
)), { gatewayTab: e } = ne({
|
|
2006
1872
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
2007
1873
|
});
|
|
2008
|
-
return (c,
|
|
1874
|
+
return (c, v) => {
|
|
2009
1875
|
var s;
|
|
2010
1876
|
const u = g("FmTabs");
|
|
2011
|
-
return
|
|
2012
|
-
I("div",
|
|
2013
|
-
|
|
2014
|
-
"model-value":
|
|
2015
|
-
"onUpdate:modelValue":
|
|
1877
|
+
return f(), R("div", wa, [
|
|
1878
|
+
I("div", xa, [
|
|
1879
|
+
y(u, {
|
|
1880
|
+
"model-value": h(e),
|
|
1881
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
|
|
2016
1882
|
class: "mb-6",
|
|
2017
1883
|
vertical: !0,
|
|
2018
1884
|
items: r.value,
|
|
2019
1885
|
"show-more-at": Number.POSITIVE_INFINITY
|
|
2020
1886
|
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
2021
1887
|
]),
|
|
2022
|
-
I("div",
|
|
2023
|
-
|
|
2024
|
-
terminal:
|
|
2025
|
-
onUpdate:
|
|
1888
|
+
I("div", Na, [
|
|
1889
|
+
h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
|
|
1890
|
+
terminal: d.terminal,
|
|
1891
|
+
onUpdate: d.onUpdate
|
|
2026
1892
|
})), null, 16)) : V("", !0)
|
|
2027
1893
|
])
|
|
2028
1894
|
]);
|
|
2029
1895
|
};
|
|
2030
1896
|
}
|
|
2031
|
-
}),
|
|
1897
|
+
}), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ M({
|
|
2032
1898
|
__name: "PromptPayGateway",
|
|
2033
1899
|
props: {
|
|
2034
1900
|
terminal: {
|
|
@@ -2041,7 +1907,7 @@ const Se = {
|
|
|
2041
1907
|
}
|
|
2042
1908
|
},
|
|
2043
1909
|
setup(_) {
|
|
2044
|
-
const
|
|
1910
|
+
const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
|
|
2045
1911
|
account: "",
|
|
2046
1912
|
receiptName: ""
|
|
2047
1913
|
}), e = () => {
|
|
@@ -2049,52 +1915,52 @@ const Se = {
|
|
|
2049
1915
|
}, m = () => {
|
|
2050
1916
|
if (!a.value.qrIntegrations)
|
|
2051
1917
|
return e();
|
|
2052
|
-
const
|
|
1918
|
+
const v = a.value.qrIntegrations, u = v.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
|
|
2053
1919
|
if (u === -1)
|
|
2054
1920
|
return e();
|
|
2055
1921
|
l.value = u;
|
|
2056
|
-
const s =
|
|
1922
|
+
const s = v.at(u);
|
|
2057
1923
|
s.gateway === "PROMPTPAY" && s.config && (r.value = {
|
|
2058
1924
|
account: s.config.account ?? "",
|
|
2059
1925
|
receiptName: s.receiptName ?? ""
|
|
2060
1926
|
});
|
|
2061
1927
|
};
|
|
2062
1928
|
q(a, m), G(m);
|
|
2063
|
-
async function c(
|
|
1929
|
+
async function c(v) {
|
|
2064
1930
|
var u;
|
|
2065
|
-
(u = a.value.qrIntegrations) == null || u.splice(
|
|
1931
|
+
(u = a.value.qrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
|
|
2066
1932
|
}
|
|
2067
|
-
return (
|
|
2068
|
-
const s = g("FmTextField"), t = g("FmButton"),
|
|
2069
|
-
return
|
|
1933
|
+
return (v, u) => {
|
|
1934
|
+
const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
|
|
1935
|
+
return f(), F(n, {
|
|
2070
1936
|
ref: T.value,
|
|
2071
1937
|
class: "flex flex-col gap-16 w-[500px]",
|
|
2072
1938
|
onValidationSuccess: u[2] || (u[2] = () => {
|
|
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 })),
|
|
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 })), d.onUpdate(a.value);
|
|
2074
1940
|
})
|
|
2075
1941
|
}, {
|
|
2076
1942
|
default: O(() => [
|
|
2077
|
-
|
|
1943
|
+
y(s, {
|
|
2078
1944
|
modelValue: r.value.account,
|
|
2079
1945
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
|
|
2080
1946
|
label: "Thai Phone Number / Thai Naitonal ID",
|
|
2081
1947
|
"label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
|
|
2082
1948
|
}, null, 8, ["modelValue"]),
|
|
2083
|
-
|
|
1949
|
+
y(s, {
|
|
2084
1950
|
modelValue: r.value.receiptName,
|
|
2085
1951
|
"onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
|
|
2086
1952
|
label: "Receipt Payment Name",
|
|
2087
1953
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
2088
1954
|
}, null, 8, ["modelValue"]),
|
|
2089
|
-
I("div",
|
|
2090
|
-
l.value > -1 ? (
|
|
1955
|
+
I("div", Ca, [
|
|
1956
|
+
l.value > -1 ? (f(), F(t, {
|
|
2091
1957
|
key: 0,
|
|
2092
1958
|
class: "flex-1",
|
|
2093
1959
|
variant: "secondary",
|
|
2094
1960
|
label: "Delete",
|
|
2095
1961
|
onclick: () => c(l.value)
|
|
2096
1962
|
}, null, 8, ["onclick"])) : V("", !0),
|
|
2097
|
-
|
|
1963
|
+
y(t, {
|
|
2098
1964
|
type: "submit",
|
|
2099
1965
|
class: "flex-1",
|
|
2100
1966
|
variant: "primary",
|
|
@@ -2106,7 +1972,7 @@ const Se = {
|
|
|
2106
1972
|
}, 512);
|
|
2107
1973
|
};
|
|
2108
1974
|
}
|
|
2109
|
-
}),
|
|
1975
|
+
}), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ M({
|
|
2110
1976
|
__name: "QrGateway",
|
|
2111
1977
|
props: {
|
|
2112
1978
|
terminal: {
|
|
@@ -2120,39 +1986,39 @@ const Se = {
|
|
|
2120
1986
|
},
|
|
2121
1987
|
setup(_) {
|
|
2122
1988
|
var m;
|
|
2123
|
-
const
|
|
1989
|
+
const d = _, a = [
|
|
2124
1990
|
{
|
|
2125
1991
|
label: "PromptPay",
|
|
2126
1992
|
value: "promptpay",
|
|
2127
|
-
render:
|
|
1993
|
+
render: Va,
|
|
2128
1994
|
region: [U.F_COUNTRY.enum.TH]
|
|
2129
1995
|
}
|
|
2130
|
-
], T =
|
|
1996
|
+
], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter((c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
|
|
2131
1997
|
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
2132
1998
|
});
|
|
2133
|
-
return (c,
|
|
1999
|
+
return (c, v) => {
|
|
2134
2000
|
var s;
|
|
2135
2001
|
const u = g("FmTabs");
|
|
2136
|
-
return
|
|
2137
|
-
I("div",
|
|
2138
|
-
|
|
2139
|
-
"model-value":
|
|
2140
|
-
"onUpdate:modelValue":
|
|
2002
|
+
return f(), R("div", Sa, [
|
|
2003
|
+
I("div", Ua, [
|
|
2004
|
+
y(u, {
|
|
2005
|
+
"model-value": h(e),
|
|
2006
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
|
|
2141
2007
|
class: "mb-6",
|
|
2142
2008
|
vertical: !0,
|
|
2143
2009
|
items: r.value
|
|
2144
2010
|
}, null, 8, ["model-value", "items"])
|
|
2145
2011
|
]),
|
|
2146
|
-
I("div",
|
|
2147
|
-
|
|
2148
|
-
terminal:
|
|
2149
|
-
onUpdate:
|
|
2012
|
+
I("div", Ra, [
|
|
2013
|
+
h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
|
|
2014
|
+
terminal: d.terminal,
|
|
2015
|
+
onUpdate: d.onUpdate
|
|
2150
2016
|
})), null, 16)) : V("", !0)
|
|
2151
2017
|
])
|
|
2152
2018
|
]);
|
|
2153
2019
|
};
|
|
2154
2020
|
}
|
|
2155
|
-
}),
|
|
2021
|
+
}), Ka = /* @__PURE__ */ M({
|
|
2156
2022
|
__name: "TerminalSetting",
|
|
2157
2023
|
props: {
|
|
2158
2024
|
terminalId: {
|
|
@@ -2161,23 +2027,23 @@ const Se = {
|
|
|
2161
2027
|
}
|
|
2162
2028
|
},
|
|
2163
2029
|
setup(_) {
|
|
2164
|
-
const
|
|
2030
|
+
const d = _, { tab: a } = ne({
|
|
2165
2031
|
tab: "information"
|
|
2166
|
-
}), { isLoading: T, startAsyncCall: l } = le(!0), r =
|
|
2167
|
-
async function c(
|
|
2032
|
+
}), { isLoading: T, startAsyncCall: l } = le(!0), r = ve(), e = se(), m = b();
|
|
2033
|
+
async function c(n) {
|
|
2168
2034
|
l(async () => {
|
|
2169
2035
|
try {
|
|
2170
|
-
await
|
|
2171
|
-
|
|
2036
|
+
await E.updateById(
|
|
2037
|
+
d.terminalId,
|
|
2172
2038
|
{
|
|
2173
|
-
name:
|
|
2174
|
-
status:
|
|
2175
|
-
ecrs:
|
|
2176
|
-
gateways:
|
|
2177
|
-
ecrIntegrations:
|
|
2178
|
-
qrIntegrations:
|
|
2039
|
+
name: n.name,
|
|
2040
|
+
status: n.status,
|
|
2041
|
+
ecrs: n.ecrs ?? [],
|
|
2042
|
+
gateways: n.gateways ?? [],
|
|
2043
|
+
ecrIntegrations: n.ecrIntegrations ?? [],
|
|
2044
|
+
qrIntegrations: n.qrIntegrations ?? []
|
|
2179
2045
|
}
|
|
2180
|
-
), m.value = await
|
|
2046
|
+
), m.value = await E.readById(d.terminalId), e.open({
|
|
2181
2047
|
type: "success",
|
|
2182
2048
|
message: "Terminal updated successfully"
|
|
2183
2049
|
});
|
|
@@ -2190,7 +2056,7 @@ const Se = {
|
|
|
2190
2056
|
}
|
|
2191
2057
|
});
|
|
2192
2058
|
}
|
|
2193
|
-
const
|
|
2059
|
+
const v = [
|
|
2194
2060
|
{
|
|
2195
2061
|
label: "Information",
|
|
2196
2062
|
value: "information",
|
|
@@ -2208,53 +2074,53 @@ const Se = {
|
|
|
2208
2074
|
label: "SoftPos Gateway",
|
|
2209
2075
|
value: "softpos",
|
|
2210
2076
|
icon: "payment",
|
|
2211
|
-
render:
|
|
2077
|
+
render: he
|
|
2212
2078
|
},
|
|
2213
2079
|
{
|
|
2214
2080
|
label: "ECR Gateway",
|
|
2215
2081
|
value: "ecr",
|
|
2216
2082
|
icon: "point_of_sale",
|
|
2217
|
-
render:
|
|
2083
|
+
render: ka,
|
|
2218
2084
|
onlyFor: ["POS", "KIOSK"]
|
|
2219
2085
|
},
|
|
2220
2086
|
{
|
|
2221
2087
|
label: "QR Gateway",
|
|
2222
2088
|
value: "qr",
|
|
2223
2089
|
icon: "qr_code",
|
|
2224
|
-
render:
|
|
2090
|
+
render: Ma,
|
|
2225
2091
|
onlyFor: ["POS", "KIOSK"]
|
|
2226
2092
|
}
|
|
2227
2093
|
];
|
|
2228
2094
|
oe().currentCountry;
|
|
2229
|
-
const u =
|
|
2230
|
-
var
|
|
2231
|
-
return (
|
|
2095
|
+
const u = C(() => {
|
|
2096
|
+
var n;
|
|
2097
|
+
return (n = v.find((i) => i.value === a.value)) == null ? void 0 : n.render;
|
|
2232
2098
|
});
|
|
2233
2099
|
async function s() {
|
|
2234
2100
|
l(async () => {
|
|
2235
|
-
m.value = await
|
|
2101
|
+
m.value = await E.readById(d.terminalId);
|
|
2236
2102
|
});
|
|
2237
2103
|
}
|
|
2238
|
-
const t =
|
|
2104
|
+
const t = C(() => v.filter((n) => {
|
|
2239
2105
|
var i;
|
|
2240
|
-
return !
|
|
2106
|
+
return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
|
|
2241
2107
|
}));
|
|
2242
|
-
return G(s), (
|
|
2243
|
-
var x,
|
|
2244
|
-
const
|
|
2245
|
-
return
|
|
2246
|
-
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(
|
|
2247
|
-
loading:
|
|
2248
|
-
onBack:
|
|
2108
|
+
return G(s), (n, i) => {
|
|
2109
|
+
var x, o;
|
|
2110
|
+
const p = g("FmTabs");
|
|
2111
|
+
return f(), F(ye, {
|
|
2112
|
+
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(o = m.value) == null ? void 0 : o._id})`,
|
|
2113
|
+
loading: h(T),
|
|
2114
|
+
onBack: h(r).back
|
|
2249
2115
|
}, {
|
|
2250
2116
|
default: O(() => [
|
|
2251
|
-
|
|
2252
|
-
"model-value":
|
|
2117
|
+
y(p, {
|
|
2118
|
+
"model-value": h(a),
|
|
2253
2119
|
"onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
|
|
2254
2120
|
class: "mb-6",
|
|
2255
2121
|
items: t.value
|
|
2256
2122
|
}, null, 8, ["model-value", "items"]),
|
|
2257
|
-
|
|
2123
|
+
h(a) ? (f(), F(ee(u.value), ae(te({ key: 0 }, {
|
|
2258
2124
|
terminal: m.value,
|
|
2259
2125
|
onUpdate: c
|
|
2260
2126
|
})), null, 16)) : V("", !0)
|
|
@@ -2265,5 +2131,5 @@ const Se = {
|
|
|
2265
2131
|
}
|
|
2266
2132
|
});
|
|
2267
2133
|
export {
|
|
2268
|
-
|
|
2134
|
+
Ka as default
|
|
2269
2135
|
};
|