@feedmepos/mf-payment 1.10.9-dev → 1.10.11-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-BlRSHTGm.js → Actions.vue_vue_type_script_setup_true_lang-Ba62JNtX.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-e6WXRYGH.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CiC7BFU6.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-qbJr0Fpx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-ZMDAWdlD.js} +3 -3
- package/dist/{Chargeback-Bf8X5DpJ.js → Chargeback-hL9l4t6X.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-tvzC2-AN.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DaV-qIsZ.js} +1 -1
- package/dist/{ExternalTerminal-CJKc9YQu.js → ExternalTerminal-Dhc1VJjE.js} +6 -6
- package/dist/{OnboardForm-Cs2frDsX.js → OnboardForm-B33onChm.js} +6 -6
- package/dist/{OnboardForm-Bc7PyOQu.js → OnboardForm-Cup1eGMr.js} +6 -6
- package/dist/{OnboardSubmission-AzEqvWcF.js → OnboardSubmission-CjJwfCnB.js} +3 -3
- package/dist/{OnboardSubmission-DLlDZDTp.js → OnboardSubmission-D8pTRJIH.js} +6 -6
- package/dist/{PaymentCheckout-DmAAyMaB.js → PaymentCheckout-DeByKvzM.js} +2 -2
- package/dist/{PayoutAccount-h9At-pUs.js → PayoutAccount-Bep0AWo0.js} +7 -7
- package/dist/{PayoutAccount-CUNtHkkq.js → PayoutAccount-DPAlxhYF.js} +5 -5
- package/dist/{PayoutAccountSetting-DoxzEZrk.js → PayoutAccountSetting-CIhJDWMZ.js} +6 -6
- package/dist/{Restaurant-BQSBQlXV.js → Restaurant-DuoRyfRM.js} +4 -4
- package/dist/{RestaurantSetting-BWd81Nvi.js → RestaurantSetting-CKWhOYD_.js} +3 -3
- package/dist/{Settlement-DI1v2Lpr.js → Settlement-BYlJL-Qf.js} +4 -4
- package/dist/{Settlement-BgDLErY_.js → Settlement-D4mk_Dh_.js} +3 -3
- package/dist/{SettlementTransactions-sK3LTE7Z.js → SettlementTransactions-BDp7Mvyl.js} +5 -5
- package/dist/{SettlementTransactions-Btfe8TCX.js → SettlementTransactions-BtoqmKaF.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CovSVk33.js → Status.vue_vue_type_script_setup_true_lang-CFZkTn0t.js} +1 -1
- package/dist/{Terminal-DoTN1jZW.js → Terminal-DNjey0vJ.js} +6 -6
- package/dist/{TerminalSetting-Bl0bfFAS.js → TerminalSetting-D97s6Z9H.js} +244 -242
- package/dist/{TerminalTemplate-BNHEOCY_.js → TerminalTemplate-BRMTKxoI.js} +5 -5
- package/dist/{TerminalTemplateSetting-BZ7K254Z.js → TerminalTemplateSetting-BlgjPfgJ.js} +5 -5
- package/dist/{Transaction-Ecs5btUl.js → Transaction-ColgVz3T.js} +12 -12
- package/dist/{Transaction-4uK6M4p6.js → Transaction-O6y_17OB.js} +10 -10
- package/dist/{TransactionOld-B3X3h7jS.js → TransactionOld-CzSIxUvp.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DA1zB5A4.js → TransactionStatus.vue_vue_type_script_setup_true_lang-ShIUJR66.js} +1 -1
- package/dist/{app-dDZS3WjU.js → app-BAWMgPng.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/{assets-qEh2VGg_.js → assets-DpRHIHUV.js} +1 -1
- package/dist/{grafana-DiwfCX5L.js → grafana-i9TOnOp3.js} +1 -1
- package/dist/{index-DoobQn7j.js → index-37hg7W-U.js} +1 -1
- package/dist/{index-DGAk2CT0.js → index-3_rp9LTo.js} +1 -1
- package/dist/{index-Cajpi2wX.js → index-B3xfWJMG.js} +1 -1
- package/dist/{index-CFJQ_HmA.js → index-BkEELUbU.js} +2 -2
- package/dist/{index-D8zuI51D.js → index-Clo2fGK8.js} +1 -1
- package/dist/{index-abg_ZrfF.js → index-D5iciXir.js} +1 -1
- package/dist/{index-CHinJgjY.js → index-DAwCO9gU.js} +1 -1
- package/dist/{index-BpmTCNi5.js → index-DJuBCXeS.js} +1 -1
- package/dist/{index-BMpISrhv.js → index-DklMuxhc.js} +1 -1
- package/dist/{index-DErywACZ.js → index-USsjFRRS.js} +1 -1
- package/dist/{index-BICW93bZ.js → index-pGidyjmA.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Gth5Pyzm.js → index.vue_vue_type_script_setup_true_lang-C4eHeaUk.js} +1 -1
- package/dist/{onboard-submission-BC1A-2DE.js → onboard-submission-VFceX0ZD.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CR-f3mDu.js → payout-account-BvZ0kIU7.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-B-FVTG9E.js → useQuery-CLUas412.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineComponent as R, openBlock as g, createElementBlock as V, Fragment as $, createElementVNode as I, createTextVNode as Z, toDisplayString as J, ref as _, resolveComponent as f, createBlock as F, withCtx as M, createVNode as y, unref as S, computed as N, createCommentVNode as h, isRef as ee, resolveDynamicComponent as ae, normalizeProps as te, mergeProps as le, watch as A, onBeforeUnmount as Te, toRef as G, onMounted as q, renderList as L } from "vue";
|
|
2
|
+
import { u as X, p as ve, e as P } from "./index-DAwCO9gU.js";
|
|
3
3
|
import { useRouter as Ie } from "vue-router";
|
|
4
|
-
import { t as j } from "./index-
|
|
5
|
-
import { t as pe } from "./index-
|
|
4
|
+
import { t as j } from "./index-D5iciXir.js";
|
|
5
|
+
import { t as pe } from "./index-pGidyjmA.js";
|
|
6
6
|
import { _ as Fe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as ne } from "./index-Clo2fGK8.js";
|
|
8
8
|
import { useDialogChild as ye, useSnackbar as me, useDialog as we } from "@feedmepos/ui-library";
|
|
9
9
|
import { w as xe } from "./Modal-DB8M9o1T.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { z as
|
|
13
|
-
import { o as Ce } from "./index-
|
|
10
|
+
import { u as W } from "./error-K1CakhA9.js";
|
|
11
|
+
import { useI18n as oe, useCoreStore as re } from "@feedmepos/mf-common";
|
|
12
|
+
import { z as ie, a as se } from "./validator-CTlVogBQ.js";
|
|
13
|
+
import { o as Ce } from "./index-BkEELUbU.js";
|
|
14
14
|
import { c as ke } from "./index-MdV54cWO.js";
|
|
15
|
-
import { e as fe } from "./index-
|
|
16
|
-
import { P as Ne } from "./PaymentCheckout-
|
|
17
|
-
const Ve = /* @__PURE__ */
|
|
15
|
+
import { e as fe } from "./index-USsjFRRS.js";
|
|
16
|
+
import { P as Ne } from "./PaymentCheckout-DeByKvzM.js";
|
|
17
|
+
const Ve = /* @__PURE__ */ R({
|
|
18
18
|
__name: "Information",
|
|
19
19
|
props: {
|
|
20
20
|
terminal: {
|
|
@@ -23,25 +23,25 @@ const Ve = /* @__PURE__ */ h({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(T) {
|
|
26
|
-
return (p, a) => (g(),
|
|
26
|
+
return (p, a) => (g(), V($, null, [
|
|
27
27
|
a[0] || (a[0] = I("b", null, "Name", -1)),
|
|
28
|
-
|
|
28
|
+
Z(": " + J(T.terminal.name), 1),
|
|
29
29
|
a[1] || (a[1] = I("br", null, null, -1)),
|
|
30
30
|
a[2] || (a[2] = I("b", null, "Status", -1)),
|
|
31
|
-
|
|
31
|
+
Z(": " + J(T.terminal.status), 1),
|
|
32
32
|
a[3] || (a[3] = I("br", null, null, -1)),
|
|
33
33
|
a[4] || (a[4] = I("b", null, "Device ID", -1)),
|
|
34
|
-
|
|
34
|
+
Z(": " + J(T.terminal.deviceId ?? "-"), 1),
|
|
35
35
|
a[5] || (a[5] = I("br", null, null, -1)),
|
|
36
36
|
a[6] || (a[6] = I("b", null, "Device Type", -1)),
|
|
37
|
-
|
|
37
|
+
Z(": " + J(T.terminal.deviceType ?? "-"), 1),
|
|
38
38
|
a[7] || (a[7] = I("br", null, null, -1))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
}), Se = { class: "flex items-center gap-8 rounded-md bg-fm-color-neutral-gray-100 px-16 py-12" }, Ue = { class: "fm-typo-en-body-md-400" }, he = { class: "mt-auto pt-24 pb-24" }, Re = /* @__PURE__ */
|
|
41
|
+
}), Se = { class: "flex items-center gap-8 rounded-md bg-fm-color-neutral-gray-100 px-16 py-12" }, Ue = { class: "fm-typo-en-body-md-400" }, he = { class: "mt-auto pt-24 pb-24" }, Re = /* @__PURE__ */ R({
|
|
42
42
|
__name: "TerminalSaveTemplateDialog",
|
|
43
43
|
setup(T) {
|
|
44
|
-
const p = ye(), { t: a } =
|
|
44
|
+
const p = ye(), { t: a } = oe(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
|
|
45
45
|
p.emitData({
|
|
46
46
|
name: l.value,
|
|
47
47
|
description: r.value,
|
|
@@ -56,20 +56,20 @@ const Ve = /* @__PURE__ */ h({
|
|
|
56
56
|
class: "flex flex-col gap-16 min-h-[240px]",
|
|
57
57
|
onValidationSuccess: d
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
59
|
+
default: M(() => [
|
|
60
60
|
I("div", Se, [
|
|
61
61
|
y(m, {
|
|
62
62
|
name: "info",
|
|
63
63
|
class: "shrink-0"
|
|
64
64
|
}),
|
|
65
|
-
I("span", Ue,
|
|
65
|
+
I("span", Ue, J(S(a)("payment.terminal_template.scope_info")), 1)
|
|
66
66
|
]),
|
|
67
67
|
y(s, {
|
|
68
68
|
modelValue: l.value,
|
|
69
69
|
"onUpdate:modelValue": v[0] || (v[0] = (u) => l.value = u),
|
|
70
70
|
label: "Template Name",
|
|
71
71
|
"label-mark": "required",
|
|
72
|
-
rules:
|
|
72
|
+
rules: S(ie)(S(se).string().min(1, "Template name is required"))
|
|
73
73
|
}, null, 8, ["modelValue", "rules"]),
|
|
74
74
|
y(s, {
|
|
75
75
|
modelValue: r.value,
|
|
@@ -101,13 +101,13 @@ const Ve = /* @__PURE__ */ h({
|
|
|
101
101
|
}, Ae = {
|
|
102
102
|
key: 2,
|
|
103
103
|
class: "mt-auto pt-24 pb-24"
|
|
104
|
-
}, qe = /* @__PURE__ */
|
|
104
|
+
}, qe = /* @__PURE__ */ R({
|
|
105
105
|
__name: "TerminalApplyTemplateDialog",
|
|
106
106
|
props: {
|
|
107
107
|
templates: {}
|
|
108
108
|
},
|
|
109
109
|
setup(T) {
|
|
110
|
-
const p = T, a = ye(), { t: b } =
|
|
110
|
+
const p = T, a = ye(), { t: b } = oe(), l = _(""), r = N(
|
|
111
111
|
() => p.templates.map((d) => ({
|
|
112
112
|
label: d.isDefault ? `${d.name} (default)` : d.name,
|
|
113
113
|
value: d._id
|
|
@@ -117,33 +117,33 @@ const Ve = /* @__PURE__ */ h({
|
|
|
117
117
|
};
|
|
118
118
|
return (d, c) => {
|
|
119
119
|
const v = f("FmIcon"), m = f("FmSelect"), s = f("FmButton");
|
|
120
|
-
return g(),
|
|
120
|
+
return g(), V("div", Pe, [
|
|
121
121
|
I("div", Be, [
|
|
122
122
|
y(v, {
|
|
123
123
|
name: "info",
|
|
124
124
|
class: "mt-4 shrink-0"
|
|
125
125
|
}),
|
|
126
|
-
I("div", Oe,
|
|
126
|
+
I("div", Oe, J(S(b)("payment.terminal_template.scope_info")), 1)
|
|
127
127
|
]),
|
|
128
|
-
r.value.length === 0 ? (g(),
|
|
128
|
+
r.value.length === 0 ? (g(), V("div", Me, " No setting template exists for this business and device type yet. ")) : (g(), F(m, {
|
|
129
129
|
key: 1,
|
|
130
130
|
modelValue: l.value,
|
|
131
131
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => l.value = t),
|
|
132
132
|
label: "Template",
|
|
133
133
|
items: r.value
|
|
134
134
|
}, null, 8, ["modelValue", "items"])),
|
|
135
|
-
r.value.length > 0 ? (g(),
|
|
135
|
+
r.value.length > 0 ? (g(), V("div", Ae, [
|
|
136
136
|
y(s, {
|
|
137
137
|
class: "w-full",
|
|
138
138
|
label: "Apply",
|
|
139
139
|
disabled: !l.value,
|
|
140
140
|
onClick: e
|
|
141
141
|
}, null, 8, ["disabled"])
|
|
142
|
-
])) :
|
|
142
|
+
])) : h("", !0)
|
|
143
143
|
]);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
}), Ge = { key: 0 }, De = { class: "mt-6 space-x-6" }, $e = /* @__PURE__ */
|
|
146
|
+
}), Ge = { key: 0 }, De = { class: "mt-6 space-x-6" }, $e = /* @__PURE__ */ R({
|
|
147
147
|
__name: "KioskMode",
|
|
148
148
|
props: {
|
|
149
149
|
terminal: {
|
|
@@ -152,7 +152,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
setup(T) {
|
|
155
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
155
|
+
const { isLoading: p, startAsyncCall: a } = X(!1), b = me(), l = _({
|
|
156
156
|
enable: !1,
|
|
157
157
|
password: []
|
|
158
158
|
}), r = T;
|
|
@@ -177,32 +177,32 @@ const Ve = /* @__PURE__ */ h({
|
|
|
177
177
|
}
|
|
178
178
|
return (d, c) => {
|
|
179
179
|
const v = f("FmSwitch"), m = f("FmPinField"), s = f("FmButton");
|
|
180
|
-
return g(),
|
|
180
|
+
return g(), V($, null, [
|
|
181
181
|
y(v, {
|
|
182
182
|
modelValue: l.value.enable,
|
|
183
183
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
|
|
184
184
|
label: "Enable Kiosk Mode?"
|
|
185
185
|
}, null, 8, ["modelValue"]),
|
|
186
|
-
l.value.enable ? (g(),
|
|
186
|
+
l.value.enable ? (g(), V("div", Ge, [
|
|
187
187
|
c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
|
|
188
188
|
y(m, {
|
|
189
189
|
modelValue: l.value.password,
|
|
190
190
|
"onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
|
|
191
191
|
}, null, 8, ["modelValue"])
|
|
192
|
-
])) :
|
|
192
|
+
])) : h("", !0),
|
|
193
193
|
I("div", De, [
|
|
194
194
|
y(s, {
|
|
195
195
|
variant: "primary",
|
|
196
196
|
label: "Send",
|
|
197
197
|
icon: "send",
|
|
198
|
-
loading:
|
|
198
|
+
loading: S(p),
|
|
199
199
|
onclick: e
|
|
200
200
|
}, null, 8, ["loading"])
|
|
201
201
|
])
|
|
202
202
|
], 64);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
}), Ee = /* @__PURE__ */
|
|
205
|
+
}), Ee = /* @__PURE__ */ R({
|
|
206
206
|
__name: "SettingRequest",
|
|
207
207
|
props: {
|
|
208
208
|
terminal: {
|
|
@@ -211,7 +211,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
setup(T) {
|
|
214
|
-
const { settingTab: p } =
|
|
214
|
+
const { settingTab: p } = ne({
|
|
215
215
|
settingTab: "kiosk_mode"
|
|
216
216
|
}), a = [
|
|
217
217
|
{
|
|
@@ -219,42 +219,42 @@ const Ve = /* @__PURE__ */ h({
|
|
|
219
219
|
value: "kiosk_mode",
|
|
220
220
|
render: $e
|
|
221
221
|
}
|
|
222
|
-
], b = T, l =
|
|
222
|
+
], b = T, l = N(() => a.find((r) => r.value === p.value));
|
|
223
223
|
return (r, e) => {
|
|
224
224
|
var c;
|
|
225
225
|
const d = f("FmTabs");
|
|
226
|
-
return g(),
|
|
226
|
+
return g(), V($, null, [
|
|
227
227
|
e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
228
228
|
I("b", null, "Note: "),
|
|
229
|
-
|
|
229
|
+
Z(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
|
|
230
230
|
], -1)),
|
|
231
231
|
y(d, {
|
|
232
|
-
"model-value":
|
|
233
|
-
"onUpdate:modelValue": e[0] || (e[0] = (v) =>
|
|
232
|
+
"model-value": S(p),
|
|
233
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => ee(p) ? p.value = v : null),
|
|
234
234
|
class: "mb-6",
|
|
235
235
|
items: a
|
|
236
236
|
}, null, 8, ["model-value"]),
|
|
237
|
-
|
|
237
|
+
S(p) ? (g(), F(ae((c = l.value) == null ? void 0 : c.render), te(le({ key: 0 }, { terminal: b.terminal })), null, 16)) : h("", !0)
|
|
238
238
|
], 64);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
}), Le = 2e3, Ye = 12e4, je = "Timed out waiting for the Tyro reader to sync. Please try again.";
|
|
242
242
|
function Ke(T) {
|
|
243
|
-
const { isLoading: p, startLoading: a, stopLoading: b } =
|
|
244
|
-
var k,
|
|
243
|
+
const { isLoading: p, startLoading: a, stopLoading: b } = X(!1), { t: l } = oe(), r = me(), e = _(null), d = N(() => {
|
|
244
|
+
var k, O;
|
|
245
245
|
const w = (k = T.value.gateways) == null ? void 0 : k.find(
|
|
246
|
-
(
|
|
246
|
+
(D) => D.gateway === "Tyro"
|
|
247
247
|
);
|
|
248
|
-
return ((
|
|
249
|
-
}), c =
|
|
248
|
+
return ((O = w == null ? void 0 : w.config) == null ? void 0 : O.uniqueId) || "";
|
|
249
|
+
}), c = N(() => !!d.value), v = N(() => {
|
|
250
250
|
var w;
|
|
251
251
|
return ((w = e.value) == null ? void 0 : w.status) === "ready";
|
|
252
|
-
}), m =
|
|
252
|
+
}), m = N(() => {
|
|
253
253
|
var w, k;
|
|
254
254
|
return v.value && !!((k = (w = e.value) == null ? void 0 : w.fields) != null && k.tyroLocationId) && !!T.value.deviceId && !c.value;
|
|
255
|
-
}), s =
|
|
255
|
+
}), s = N(() => !v.value && !c.value), t = N(
|
|
256
256
|
() => l("payment.onboard-submission.tyro.syncDisabledHint")
|
|
257
|
-
), o =
|
|
257
|
+
), o = N(() => c.value ? "Synced" : "Sync");
|
|
258
258
|
async function i() {
|
|
259
259
|
if (!T.value.referenceId) {
|
|
260
260
|
e.value = null;
|
|
@@ -270,7 +270,7 @@ function Ke(T) {
|
|
|
270
270
|
} catch (w) {
|
|
271
271
|
e.value = null, r.open({
|
|
272
272
|
type: "error",
|
|
273
|
-
message:
|
|
273
|
+
message: W(w)
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -278,12 +278,12 @@ function Ke(T) {
|
|
|
278
278
|
intervalMs: Le,
|
|
279
279
|
timeoutMs: Ye,
|
|
280
280
|
onTick: async ({ isCurrentRun: w, stop: k }) => {
|
|
281
|
-
var K,
|
|
282
|
-
const
|
|
281
|
+
var K, z;
|
|
282
|
+
const O = await j.readById(T.value._id);
|
|
283
283
|
if (!w())
|
|
284
284
|
return;
|
|
285
|
-
const
|
|
286
|
-
(
|
|
285
|
+
const D = (K = O.gateways) == null ? void 0 : K.find((ue) => ue.gateway === "Tyro");
|
|
286
|
+
(D == null ? void 0 : D.gateway) === "Tyro" && ((z = D == null ? void 0 : D.config) != null && z.uniqueId) && (k({ invalidate: !1 }), b(), Object.assign(T.value, O), r.open({
|
|
287
287
|
type: "success",
|
|
288
288
|
message: "Tyro reader created successfully"
|
|
289
289
|
}));
|
|
@@ -297,7 +297,7 @@ function Ke(T) {
|
|
|
297
297
|
onError: (w) => {
|
|
298
298
|
b(), r.open({
|
|
299
299
|
type: "error",
|
|
300
|
-
message:
|
|
300
|
+
message: W(w)
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
}), C = u.isPolling;
|
|
@@ -320,7 +320,7 @@ function Ke(T) {
|
|
|
320
320
|
} catch (w) {
|
|
321
321
|
n(), r.open({
|
|
322
322
|
type: "error",
|
|
323
|
-
message:
|
|
323
|
+
message: W(w)
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -346,7 +346,7 @@ function Ke(T) {
|
|
|
346
346
|
const He = {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "text-sm text-gray-500"
|
|
349
|
-
}, ze = { class: "flex mt-6 space-x-6" }, Qe = { class: "flex-1" }, Je = /* @__PURE__ */
|
|
349
|
+
}, ze = { class: "flex mt-6 space-x-6" }, Qe = { class: "flex-1" }, Je = /* @__PURE__ */ R({
|
|
350
350
|
__name: "SoftposGateway",
|
|
351
351
|
props: {
|
|
352
352
|
terminal: {
|
|
@@ -359,7 +359,7 @@ const He = {
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
setup(T) {
|
|
362
|
-
const p = T, a =
|
|
362
|
+
const p = T, a = re().currentCountry, b = [
|
|
363
363
|
{
|
|
364
364
|
label: "Fiuu Malaysia",
|
|
365
365
|
value: "cc.feedme.payment.rms",
|
|
@@ -407,12 +407,12 @@ const He = {
|
|
|
407
407
|
isUat: !1
|
|
408
408
|
}), d = () => {
|
|
409
409
|
e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
410
|
-
}, c =
|
|
411
|
-
(
|
|
412
|
-
)), m =
|
|
410
|
+
}, c = N(() => b.filter((U) => U.region === a.value)), v = N(() => c.value.find(
|
|
411
|
+
(U) => U.value === e.value.packageId
|
|
412
|
+
)), m = N(
|
|
413
413
|
() => {
|
|
414
|
-
var
|
|
415
|
-
return ((
|
|
414
|
+
var U;
|
|
415
|
+
return ((U = v.value) == null ? void 0 : U.gateway) === "Tyro";
|
|
416
416
|
}
|
|
417
417
|
), {
|
|
418
418
|
isLoading: s,
|
|
@@ -423,116 +423,119 @@ const He = {
|
|
|
423
423
|
tyroSyncPopoverMessage: C,
|
|
424
424
|
tyroSyncButtonLabel: n,
|
|
425
425
|
syncTyroReader: x
|
|
426
|
-
} = Ke(l), E =
|
|
426
|
+
} = Ke(l), E = N(() => m.value ? "button" : "submit"), w = N(() => m.value ? n.value : "Save"), k = N(() => m.value ? s.value : !1), O = N(() => m.value ? !i.value || t.value : !1), D = () => {
|
|
427
427
|
if (!l.value.gateways || l.value.gateways.length === 0)
|
|
428
428
|
return d();
|
|
429
|
-
const
|
|
430
|
-
if (!
|
|
429
|
+
const U = l.value.gateways[0];
|
|
430
|
+
if (!U.config)
|
|
431
431
|
return d();
|
|
432
|
-
if (
|
|
432
|
+
if (U.gateway === "Tyro") {
|
|
433
433
|
e.value = {
|
|
434
|
-
packageId:
|
|
435
|
-
uniqueId:
|
|
434
|
+
packageId: U.config.packageId,
|
|
435
|
+
uniqueId: U.config.uniqueId,
|
|
436
436
|
developerId: "",
|
|
437
437
|
isUat: !1
|
|
438
438
|
};
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
switch (
|
|
441
|
+
switch (U.gateway) {
|
|
442
442
|
case "Fiuu":
|
|
443
443
|
e.value = {
|
|
444
|
-
packageId:
|
|
445
|
-
uniqueId:
|
|
444
|
+
packageId: U.config.packageId,
|
|
445
|
+
uniqueId: U.config.uniqueId,
|
|
446
446
|
developerId: "",
|
|
447
447
|
isUat: !1
|
|
448
448
|
};
|
|
449
449
|
break;
|
|
450
450
|
case "Softspace":
|
|
451
451
|
case "Digio":
|
|
452
|
-
const
|
|
452
|
+
const B = JSON.parse(U.config.uniqueId);
|
|
453
453
|
e.value = {
|
|
454
|
-
packageId:
|
|
455
|
-
uniqueId:
|
|
456
|
-
developerId:
|
|
457
|
-
isUat:
|
|
454
|
+
packageId: U.config.packageId,
|
|
455
|
+
uniqueId: B.uniqueId,
|
|
456
|
+
developerId: B.developerId,
|
|
457
|
+
isUat: B.isUat
|
|
458
458
|
};
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
A(l,
|
|
463
|
-
const K = () => {
|
|
462
|
+
A(l, D), q(D);
|
|
463
|
+
const K = (U) => {
|
|
464
|
+
var B, Q, H;
|
|
465
|
+
if (((H = (Q = (B = l.value.gateways) == null ? void 0 : B[0]) == null ? void 0 : Q.config) == null ? void 0 : H.packageId) === U)
|
|
466
|
+
return D();
|
|
464
467
|
e.value.uniqueId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
465
468
|
};
|
|
466
|
-
async function
|
|
467
|
-
const
|
|
468
|
-
if (!
|
|
469
|
+
async function z() {
|
|
470
|
+
const U = v.value;
|
|
471
|
+
if (!U)
|
|
469
472
|
return;
|
|
470
|
-
let
|
|
471
|
-
|
|
473
|
+
let B = e.value.uniqueId;
|
|
474
|
+
U.isLegacy || (B = JSON.stringify({
|
|
472
475
|
uniqueId: e.value.uniqueId,
|
|
473
476
|
developerId: e.value.developerId,
|
|
474
477
|
isUat: e.value.isUat
|
|
475
478
|
}));
|
|
476
|
-
const
|
|
477
|
-
gateway:
|
|
479
|
+
const Q = {
|
|
480
|
+
gateway: U.gateway,
|
|
478
481
|
config: {
|
|
479
|
-
packageId:
|
|
480
|
-
uniqueId:
|
|
482
|
+
packageId: U.value,
|
|
483
|
+
uniqueId: B
|
|
481
484
|
}
|
|
482
485
|
};
|
|
483
|
-
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] =
|
|
486
|
+
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = Q, await p.onUpdate(l.value);
|
|
484
487
|
}
|
|
485
|
-
async function
|
|
486
|
-
var
|
|
487
|
-
(
|
|
488
|
+
async function ue(U) {
|
|
489
|
+
var B;
|
|
490
|
+
(B = l.value.gateways) == null || B.splice(U, 1), p.onUpdate(l.value);
|
|
488
491
|
}
|
|
489
492
|
function de() {
|
|
490
493
|
m.value && x();
|
|
491
494
|
}
|
|
492
|
-
return (
|
|
493
|
-
const
|
|
495
|
+
return (U, B) => {
|
|
496
|
+
const Q = f("FmSelect"), H = f("FmTextField"), ge = f("FmCheckbox"), ce = f("FmButton"), be = f("FmTooltip"), _e = f("FmForm");
|
|
494
497
|
return g(), F(_e, {
|
|
495
498
|
ref: r.value,
|
|
496
499
|
class: "flex flex-col gap-16 w-[500px]",
|
|
497
|
-
onValidationSuccess:
|
|
500
|
+
onValidationSuccess: z
|
|
498
501
|
}, {
|
|
499
|
-
default:
|
|
500
|
-
y(
|
|
502
|
+
default: M(() => [
|
|
503
|
+
y(Q, {
|
|
501
504
|
modelValue: e.value.packageId,
|
|
502
505
|
"onUpdate:modelValue": [
|
|
503
|
-
|
|
506
|
+
B[0] || (B[0] = (Y) => e.value.packageId = Y),
|
|
504
507
|
K
|
|
505
508
|
],
|
|
506
509
|
label: "Package ID",
|
|
507
510
|
items: c.value
|
|
508
511
|
}, null, 8, ["modelValue", "items"]),
|
|
509
|
-
v.value ? (g(),
|
|
510
|
-
m.value ? (g(), F(
|
|
512
|
+
v.value ? (g(), V($, { key: 0 }, [
|
|
513
|
+
m.value ? (g(), F(H, {
|
|
511
514
|
key: 0,
|
|
512
|
-
"model-value":
|
|
515
|
+
"model-value": S(o),
|
|
513
516
|
label: "Unique ID (Reader ID)",
|
|
514
517
|
disabled: ""
|
|
515
|
-
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(),
|
|
516
|
-
y(
|
|
518
|
+
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), V($, { key: 1 }, [
|
|
519
|
+
y(H, {
|
|
517
520
|
modelValue: e.value.uniqueId,
|
|
518
|
-
"onUpdate:modelValue":
|
|
521
|
+
"onUpdate:modelValue": B[1] || (B[1] = (Y) => e.value.uniqueId = Y),
|
|
519
522
|
label: "Unique ID (TID)"
|
|
520
523
|
}, null, 8, ["modelValue"]),
|
|
521
|
-
v.value.isOutdated ? (g(),
|
|
522
|
-
], 64)) : (g(),
|
|
523
|
-
y(
|
|
524
|
+
v.value.isOutdated ? (g(), V("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : h("", !0)
|
|
525
|
+
], 64)) : (g(), V($, { key: 2 }, [
|
|
526
|
+
y(H, {
|
|
524
527
|
modelValue: e.value.developerId,
|
|
525
|
-
"onUpdate:modelValue":
|
|
528
|
+
"onUpdate:modelValue": B[2] || (B[2] = (Y) => e.value.developerId = Y),
|
|
526
529
|
label: "Developer ID (MID)"
|
|
527
530
|
}, null, 8, ["modelValue"]),
|
|
528
|
-
y(
|
|
531
|
+
y(H, {
|
|
529
532
|
modelValue: e.value.uniqueId,
|
|
530
|
-
"onUpdate:modelValue":
|
|
533
|
+
"onUpdate:modelValue": B[3] || (B[3] = (Y) => e.value.uniqueId = Y),
|
|
531
534
|
label: "Unique ID (TID)"
|
|
532
535
|
}, null, 8, ["modelValue"]),
|
|
533
536
|
y(ge, {
|
|
534
537
|
modelValue: e.value.isUat,
|
|
535
|
-
"onUpdate:modelValue":
|
|
538
|
+
"onUpdate:modelValue": B[4] || (B[4] = (Y) => e.value.isUat = Y),
|
|
536
539
|
label: "Is UAT (Test)",
|
|
537
540
|
value: "1"
|
|
538
541
|
}, null, 8, ["modelValue"])
|
|
@@ -543,23 +546,23 @@ const He = {
|
|
|
543
546
|
class: "flex-1",
|
|
544
547
|
variant: "secondary",
|
|
545
548
|
label: "Delete",
|
|
546
|
-
onclick: () =>
|
|
547
|
-
}, null, 8, ["onclick"])) :
|
|
548
|
-
m.value &&
|
|
549
|
+
onclick: () => ue(0)
|
|
550
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
551
|
+
m.value && S(u) && O.value ? (g(), F(be, {
|
|
549
552
|
key: 1,
|
|
550
553
|
class: "flex-1",
|
|
551
554
|
variant: "plain",
|
|
552
555
|
placement: "top",
|
|
553
|
-
content:
|
|
556
|
+
content: S(C)
|
|
554
557
|
}, {
|
|
555
|
-
default:
|
|
558
|
+
default: M(() => [
|
|
556
559
|
I("div", Qe, [
|
|
557
560
|
y(ce, {
|
|
558
561
|
type: E.value,
|
|
559
562
|
class: "w-full",
|
|
560
563
|
variant: "primary",
|
|
561
564
|
loading: k.value,
|
|
562
|
-
disabled:
|
|
565
|
+
disabled: O.value,
|
|
563
566
|
label: w.value,
|
|
564
567
|
onClick: de
|
|
565
568
|
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
@@ -572,12 +575,12 @@ const He = {
|
|
|
572
575
|
class: "flex-1",
|
|
573
576
|
variant: "primary",
|
|
574
577
|
loading: k.value,
|
|
575
|
-
disabled:
|
|
578
|
+
disabled: O.value,
|
|
576
579
|
label: w.value,
|
|
577
580
|
onClick: de
|
|
578
581
|
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
579
582
|
])
|
|
580
|
-
], 64)) :
|
|
583
|
+
], 64)) : h("", !0)
|
|
581
584
|
]),
|
|
582
585
|
_: 1
|
|
583
586
|
}, 512);
|
|
@@ -586,7 +589,7 @@ const He = {
|
|
|
586
589
|
}), We = {
|
|
587
590
|
key: 0,
|
|
588
591
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
589
|
-
}, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */
|
|
592
|
+
}, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ R({
|
|
590
593
|
__name: "TerminalGateway",
|
|
591
594
|
props: {
|
|
592
595
|
terminal: {
|
|
@@ -599,7 +602,7 @@ const He = {
|
|
|
599
602
|
}
|
|
600
603
|
},
|
|
601
604
|
setup(T) {
|
|
602
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
605
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
603
606
|
terminalId: ""
|
|
604
607
|
}), v = () => {
|
|
605
608
|
c.value.terminalId = "", d.value = -1;
|
|
@@ -618,7 +621,7 @@ const He = {
|
|
|
618
621
|
});
|
|
619
622
|
};
|
|
620
623
|
A(l, m), q(m);
|
|
621
|
-
const s =
|
|
624
|
+
const s = N(() => (r.value ?? []).map((o) => ({
|
|
622
625
|
label: o.name ?? o._id,
|
|
623
626
|
value: o._id
|
|
624
627
|
})));
|
|
@@ -628,7 +631,7 @@ const He = {
|
|
|
628
631
|
}
|
|
629
632
|
return (o, i) => {
|
|
630
633
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
631
|
-
return
|
|
634
|
+
return S(p) ? (g(), V("div", We, [
|
|
632
635
|
y(u, { size: "xxl" })
|
|
633
636
|
])) : (g(), F(x, {
|
|
634
637
|
key: 1,
|
|
@@ -638,13 +641,13 @@ const He = {
|
|
|
638
641
|
d.value > -1 ? l.value.ecrs[d.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), b.onUpdate(l.value);
|
|
639
642
|
})
|
|
640
643
|
}, {
|
|
641
|
-
default:
|
|
644
|
+
default: M(() => [
|
|
642
645
|
y(C, {
|
|
643
646
|
modelValue: c.value.terminalId,
|
|
644
647
|
"onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.terminalId = E),
|
|
645
648
|
label: "Terminal ID",
|
|
646
649
|
items: s.value,
|
|
647
|
-
rules:
|
|
650
|
+
rules: S(ie)(S(se).string())
|
|
648
651
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
649
652
|
I("div", Xe, [
|
|
650
653
|
d.value > -1 ? (g(), F(n, {
|
|
@@ -653,7 +656,7 @@ const He = {
|
|
|
653
656
|
variant: "secondary",
|
|
654
657
|
label: "Delete",
|
|
655
658
|
onclick: () => t(d.value)
|
|
656
|
-
}, null, 8, ["onclick"])) :
|
|
659
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
657
660
|
y(n, {
|
|
658
661
|
type: "submit",
|
|
659
662
|
class: "flex-1",
|
|
@@ -666,7 +669,7 @@ const He = {
|
|
|
666
669
|
}, 512));
|
|
667
670
|
};
|
|
668
671
|
}
|
|
669
|
-
}), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */
|
|
672
|
+
}), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */ R({
|
|
670
673
|
__name: "GhlGateway",
|
|
671
674
|
props: {
|
|
672
675
|
terminal: {
|
|
@@ -713,7 +716,7 @@ const He = {
|
|
|
713
716
|
l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), p.onUpdate(a.value);
|
|
714
717
|
})
|
|
715
718
|
}, {
|
|
716
|
-
default:
|
|
719
|
+
default: M(() => [
|
|
717
720
|
y(s, {
|
|
718
721
|
modelValue: r.value.merchantId,
|
|
719
722
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => r.value.merchantId = u),
|
|
@@ -738,7 +741,7 @@ const He = {
|
|
|
738
741
|
variant: "secondary",
|
|
739
742
|
label: "Delete",
|
|
740
743
|
onclick: () => c(l.value)
|
|
741
|
-
}, null, 8, ["onclick"])) :
|
|
744
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
742
745
|
y(o, {
|
|
743
746
|
type: "submit",
|
|
744
747
|
class: "flex-1",
|
|
@@ -751,7 +754,7 @@ const He = {
|
|
|
751
754
|
}, 512);
|
|
752
755
|
};
|
|
753
756
|
}
|
|
754
|
-
}), ta = { class: "flex items-end" }, la = { class: "flex flex-wrap gap-8 items-center mt-4" }, na = { class: "flex mt-6 space-x-6" }, oa = /* @__PURE__ */
|
|
757
|
+
}), ta = { class: "flex items-end" }, la = { class: "flex flex-wrap gap-8 items-center mt-4" }, na = { class: "flex mt-6 space-x-6" }, oa = /* @__PURE__ */ R({
|
|
755
758
|
__name: "MaybankGateway",
|
|
756
759
|
props: {
|
|
757
760
|
terminal: {
|
|
@@ -818,7 +821,7 @@ const He = {
|
|
|
818
821
|
})), p.onUpdate(a.value);
|
|
819
822
|
})
|
|
820
823
|
}, {
|
|
821
|
-
default:
|
|
824
|
+
default: M(() => [
|
|
822
825
|
y(o, {
|
|
823
826
|
modelValue: e.value.ip,
|
|
824
827
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -844,7 +847,7 @@ const He = {
|
|
|
844
847
|
})
|
|
845
848
|
]),
|
|
846
849
|
I("div", la, [
|
|
847
|
-
(g(!0),
|
|
850
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
848
851
|
key: n,
|
|
849
852
|
label: n,
|
|
850
853
|
removable: !0,
|
|
@@ -858,7 +861,7 @@ const He = {
|
|
|
858
861
|
variant: "secondary",
|
|
859
862
|
label: "Delete",
|
|
860
863
|
onclick: () => v(l.value)
|
|
861
|
-
}, null, 8, ["onclick"])) :
|
|
864
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
862
865
|
y(i, {
|
|
863
866
|
type: "submit",
|
|
864
867
|
class: "flex-1",
|
|
@@ -871,7 +874,7 @@ const He = {
|
|
|
871
874
|
}, 512);
|
|
872
875
|
};
|
|
873
876
|
}
|
|
874
|
-
}), ra = { class: "flex items-end" }, ia = { class: "flex flex-wrap gap-8 items-center mt-4" }, sa = { class: "flex mt-6 space-x-6" }, ua = /* @__PURE__ */
|
|
877
|
+
}), ra = { class: "flex items-end" }, ia = { class: "flex flex-wrap gap-8 items-center mt-4" }, sa = { class: "flex mt-6 space-x-6" }, ua = /* @__PURE__ */ R({
|
|
875
878
|
__name: "Maybank2Gateway",
|
|
876
879
|
props: {
|
|
877
880
|
terminal: {
|
|
@@ -938,7 +941,7 @@ const He = {
|
|
|
938
941
|
})), p.onUpdate(a.value);
|
|
939
942
|
})
|
|
940
943
|
}, {
|
|
941
|
-
default:
|
|
944
|
+
default: M(() => [
|
|
942
945
|
y(o, {
|
|
943
946
|
modelValue: e.value.ip,
|
|
944
947
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -964,7 +967,7 @@ const He = {
|
|
|
964
967
|
})
|
|
965
968
|
]),
|
|
966
969
|
I("div", ia, [
|
|
967
|
-
(g(!0),
|
|
970
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
968
971
|
key: n,
|
|
969
972
|
label: n,
|
|
970
973
|
removable: !0,
|
|
@@ -978,7 +981,7 @@ const He = {
|
|
|
978
981
|
variant: "secondary",
|
|
979
982
|
label: "Delete",
|
|
980
983
|
onclick: () => v(l.value)
|
|
981
|
-
}, null, 8, ["onclick"])) :
|
|
984
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
982
985
|
y(i, {
|
|
983
986
|
type: "submit",
|
|
984
987
|
class: "flex-1",
|
|
@@ -991,7 +994,7 @@ const He = {
|
|
|
991
994
|
}, 512);
|
|
992
995
|
};
|
|
993
996
|
}
|
|
994
|
-
}), ca = { class: "flex items-end" }, ma = { class: "flex flex-wrap gap-8 items-center mt-4" }, da = { class: "flex mt-6 space-x-6" }, pa = /* @__PURE__ */
|
|
997
|
+
}), ca = { class: "flex items-end" }, ma = { class: "flex flex-wrap gap-8 items-center mt-4" }, da = { class: "flex mt-6 space-x-6" }, pa = /* @__PURE__ */ R({
|
|
995
998
|
__name: "Maybank3Gateway",
|
|
996
999
|
props: {
|
|
997
1000
|
terminal: {
|
|
@@ -1058,7 +1061,7 @@ const He = {
|
|
|
1058
1061
|
})), p.onUpdate(a.value);
|
|
1059
1062
|
})
|
|
1060
1063
|
}, {
|
|
1061
|
-
default:
|
|
1064
|
+
default: M(() => [
|
|
1062
1065
|
y(o, {
|
|
1063
1066
|
modelValue: e.value.receiptName,
|
|
1064
1067
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
@@ -1079,7 +1082,7 @@ const He = {
|
|
|
1079
1082
|
})
|
|
1080
1083
|
]),
|
|
1081
1084
|
I("div", ma, [
|
|
1082
|
-
(g(!0),
|
|
1085
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1083
1086
|
key: n,
|
|
1084
1087
|
label: n,
|
|
1085
1088
|
removable: !0,
|
|
@@ -1093,7 +1096,7 @@ const He = {
|
|
|
1093
1096
|
variant: "secondary",
|
|
1094
1097
|
label: "Delete",
|
|
1095
1098
|
onclick: () => v(l.value)
|
|
1096
|
-
}, null, 8, ["onclick"])) :
|
|
1099
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1097
1100
|
y(i, {
|
|
1098
1101
|
type: "submit",
|
|
1099
1102
|
class: "flex-1",
|
|
@@ -1106,7 +1109,7 @@ const He = {
|
|
|
1106
1109
|
}, 512);
|
|
1107
1110
|
};
|
|
1108
1111
|
}
|
|
1109
|
-
}), va = { class: "flex items-end" }, ya = { class: "flex flex-wrap gap-8 items-center mt-4" }, fa = { class: "flex mt-6 space-x-6" }, ga = /* @__PURE__ */
|
|
1112
|
+
}), va = { class: "flex items-end" }, ya = { class: "flex flex-wrap gap-8 items-center mt-4" }, fa = { class: "flex mt-6 space-x-6" }, ga = /* @__PURE__ */ R({
|
|
1110
1113
|
__name: "NetsGateway",
|
|
1111
1114
|
props: {
|
|
1112
1115
|
terminal: {
|
|
@@ -1173,7 +1176,7 @@ const He = {
|
|
|
1173
1176
|
})), p.onUpdate(a.value);
|
|
1174
1177
|
})
|
|
1175
1178
|
}, {
|
|
1176
|
-
default:
|
|
1179
|
+
default: M(() => [
|
|
1177
1180
|
y(o, {
|
|
1178
1181
|
modelValue: e.value.ip,
|
|
1179
1182
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -1199,7 +1202,7 @@ const He = {
|
|
|
1199
1202
|
})
|
|
1200
1203
|
]),
|
|
1201
1204
|
I("div", ya, [
|
|
1202
|
-
(g(!0),
|
|
1205
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1203
1206
|
key: n,
|
|
1204
1207
|
label: n,
|
|
1205
1208
|
removable: !0,
|
|
@@ -1213,7 +1216,7 @@ const He = {
|
|
|
1213
1216
|
variant: "secondary",
|
|
1214
1217
|
label: "Delete",
|
|
1215
1218
|
onclick: () => v(l.value)
|
|
1216
|
-
}, null, 8, ["onclick"])) :
|
|
1219
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1217
1220
|
y(i, {
|
|
1218
1221
|
type: "submit",
|
|
1219
1222
|
class: "flex-1",
|
|
@@ -1226,7 +1229,7 @@ const He = {
|
|
|
1226
1229
|
}, 512);
|
|
1227
1230
|
};
|
|
1228
1231
|
}
|
|
1229
|
-
}), ba = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ta = { class: "flex mt-6 space-x-6" }, Ia = /* @__PURE__ */
|
|
1232
|
+
}), ba = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ta = { class: "flex mt-6 space-x-6" }, Ia = /* @__PURE__ */ R({
|
|
1230
1233
|
__name: "KBankGateway",
|
|
1231
1234
|
props: {
|
|
1232
1235
|
terminal: {
|
|
@@ -1291,7 +1294,7 @@ const He = {
|
|
|
1291
1294
|
})), p.onUpdate(a.value);
|
|
1292
1295
|
})
|
|
1293
1296
|
}, {
|
|
1294
|
-
default:
|
|
1297
|
+
default: M(() => [
|
|
1295
1298
|
y(o, {
|
|
1296
1299
|
modelValue: e.value.receiptName,
|
|
1297
1300
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
@@ -1312,7 +1315,7 @@ const He = {
|
|
|
1312
1315
|
})
|
|
1313
1316
|
]),
|
|
1314
1317
|
I("div", _a, [
|
|
1315
|
-
(g(!0),
|
|
1318
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1316
1319
|
key: n,
|
|
1317
1320
|
label: n,
|
|
1318
1321
|
removable: !0,
|
|
@@ -1326,7 +1329,7 @@ const He = {
|
|
|
1326
1329
|
variant: "secondary",
|
|
1327
1330
|
label: "Delete",
|
|
1328
1331
|
onclick: () => v(l.value)
|
|
1329
|
-
}, null, 8, ["onclick"])) :
|
|
1332
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1330
1333
|
y(i, {
|
|
1331
1334
|
type: "submit",
|
|
1332
1335
|
class: "flex-1",
|
|
@@ -1339,7 +1342,7 @@ const He = {
|
|
|
1339
1342
|
}, 512);
|
|
1340
1343
|
};
|
|
1341
1344
|
}
|
|
1342
|
-
}), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */
|
|
1345
|
+
}), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */ R({
|
|
1343
1346
|
__name: "Ghl2Gateway",
|
|
1344
1347
|
props: {
|
|
1345
1348
|
terminal: {
|
|
@@ -1392,7 +1395,7 @@ const He = {
|
|
|
1392
1395
|
}), p.onUpdate(a.value);
|
|
1393
1396
|
})
|
|
1394
1397
|
}, {
|
|
1395
|
-
default:
|
|
1398
|
+
default: M(() => [
|
|
1396
1399
|
y(s, {
|
|
1397
1400
|
modelValue: r.value.ip,
|
|
1398
1401
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.ip = i),
|
|
@@ -1411,7 +1414,7 @@ const He = {
|
|
|
1411
1414
|
variant: "secondary",
|
|
1412
1415
|
label: "Delete",
|
|
1413
1416
|
onclick: () => c(l.value)
|
|
1414
|
-
}, null, 8, ["onclick"])) :
|
|
1417
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1415
1418
|
y(t, {
|
|
1416
1419
|
type: "submit",
|
|
1417
1420
|
class: "flex-1",
|
|
@@ -1424,7 +1427,7 @@ const He = {
|
|
|
1424
1427
|
}, 512);
|
|
1425
1428
|
};
|
|
1426
1429
|
}
|
|
1427
|
-
}), xa = { class: "flex items-end" }, Ca = { class: "flex flex-wrap gap-8 items-center mt-4" }, ka = { class: "flex mt-6 space-x-6" }, Na = /* @__PURE__ */
|
|
1430
|
+
}), xa = { class: "flex items-end" }, Ca = { class: "flex flex-wrap gap-8 items-center mt-4" }, ka = { class: "flex mt-6 space-x-6" }, Na = /* @__PURE__ */ R({
|
|
1428
1431
|
__name: "Ghl3Gateway",
|
|
1429
1432
|
props: {
|
|
1430
1433
|
terminal: {
|
|
@@ -1493,7 +1496,7 @@ const He = {
|
|
|
1493
1496
|
})), p.onUpdate(a.value);
|
|
1494
1497
|
})
|
|
1495
1498
|
}, {
|
|
1496
|
-
default:
|
|
1499
|
+
default: M(() => [
|
|
1497
1500
|
y(o, {
|
|
1498
1501
|
modelValue: e.value.receiptName,
|
|
1499
1502
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
@@ -1514,7 +1517,7 @@ const He = {
|
|
|
1514
1517
|
})
|
|
1515
1518
|
]),
|
|
1516
1519
|
I("div", Ca, [
|
|
1517
|
-
(g(!0),
|
|
1520
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1518
1521
|
key: n,
|
|
1519
1522
|
label: n,
|
|
1520
1523
|
removable: !0,
|
|
@@ -1528,7 +1531,7 @@ const He = {
|
|
|
1528
1531
|
variant: "secondary",
|
|
1529
1532
|
label: "Delete",
|
|
1530
1533
|
onclick: () => v(l.value)
|
|
1531
|
-
}, null, 8, ["onclick"])) :
|
|
1534
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1532
1535
|
y(i, {
|
|
1533
1536
|
type: "submit",
|
|
1534
1537
|
class: "flex-1",
|
|
@@ -1541,7 +1544,7 @@ const He = {
|
|
|
1541
1544
|
}, 512);
|
|
1542
1545
|
};
|
|
1543
1546
|
}
|
|
1544
|
-
}), Va = { class: "flex items-end" }, Sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ua = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */
|
|
1547
|
+
}), Va = { class: "flex items-end" }, Sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ua = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */ R({
|
|
1545
1548
|
__name: "HlbbGateway",
|
|
1546
1549
|
props: {
|
|
1547
1550
|
terminal: {
|
|
@@ -1610,7 +1613,7 @@ const He = {
|
|
|
1610
1613
|
})), p.onUpdate(a.value);
|
|
1611
1614
|
})
|
|
1612
1615
|
}, {
|
|
1613
|
-
default:
|
|
1616
|
+
default: M(() => [
|
|
1614
1617
|
y(o, {
|
|
1615
1618
|
modelValue: e.value.receiptName,
|
|
1616
1619
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
@@ -1631,7 +1634,7 @@ const He = {
|
|
|
1631
1634
|
})
|
|
1632
1635
|
]),
|
|
1633
1636
|
I("div", Sa, [
|
|
1634
|
-
(g(!0),
|
|
1637
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1635
1638
|
key: n,
|
|
1636
1639
|
label: n,
|
|
1637
1640
|
removable: !0,
|
|
@@ -1645,7 +1648,7 @@ const He = {
|
|
|
1645
1648
|
variant: "secondary",
|
|
1646
1649
|
label: "Delete",
|
|
1647
1650
|
onclick: () => v(l.value)
|
|
1648
|
-
}, null, 8, ["onclick"])) :
|
|
1651
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1649
1652
|
y(i, {
|
|
1650
1653
|
type: "submit",
|
|
1651
1654
|
class: "flex-1",
|
|
@@ -1658,7 +1661,7 @@ const He = {
|
|
|
1658
1661
|
}, 512);
|
|
1659
1662
|
};
|
|
1660
1663
|
}
|
|
1661
|
-
}), Ra = { class: "flex items-end" }, Pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ba = { class: "flex mt-6 space-x-6" }, Oa = /* @__PURE__ */
|
|
1664
|
+
}), Ra = { class: "flex items-end" }, Pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ba = { class: "flex mt-6 space-x-6" }, Oa = /* @__PURE__ */ R({
|
|
1662
1665
|
__name: "GlobalPaymentsGateway",
|
|
1663
1666
|
props: {
|
|
1664
1667
|
terminal: {
|
|
@@ -1727,7 +1730,7 @@ const He = {
|
|
|
1727
1730
|
})), p.onUpdate(a.value);
|
|
1728
1731
|
})
|
|
1729
1732
|
}, {
|
|
1730
|
-
default:
|
|
1733
|
+
default: M(() => [
|
|
1731
1734
|
y(o, {
|
|
1732
1735
|
modelValue: e.value.ip,
|
|
1733
1736
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -1753,7 +1756,7 @@ const He = {
|
|
|
1753
1756
|
})
|
|
1754
1757
|
]),
|
|
1755
1758
|
I("div", Pa, [
|
|
1756
|
-
(g(!0),
|
|
1759
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1757
1760
|
key: n,
|
|
1758
1761
|
label: n,
|
|
1759
1762
|
removable: !0,
|
|
@@ -1767,7 +1770,7 @@ const He = {
|
|
|
1767
1770
|
variant: "secondary",
|
|
1768
1771
|
label: "Delete",
|
|
1769
1772
|
onclick: () => v(l.value)
|
|
1770
|
-
}, null, 8, ["onclick"])) :
|
|
1773
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1771
1774
|
y(i, {
|
|
1772
1775
|
type: "submit",
|
|
1773
1776
|
class: "flex-1",
|
|
@@ -1780,7 +1783,7 @@ const He = {
|
|
|
1780
1783
|
}, 512);
|
|
1781
1784
|
};
|
|
1782
1785
|
}
|
|
1783
|
-
}), Ma = { class: "flex items-end" }, Aa = { class: "flex flex-wrap gap-8 items-center mt-4" }, qa = { class: "flex mt-6 space-x-6" }, Ga = /* @__PURE__ */
|
|
1786
|
+
}), Ma = { class: "flex items-end" }, Aa = { class: "flex flex-wrap gap-8 items-center mt-4" }, qa = { class: "flex mt-6 space-x-6" }, Ga = /* @__PURE__ */ R({
|
|
1784
1787
|
__name: "OmaGateway",
|
|
1785
1788
|
props: {
|
|
1786
1789
|
terminal: {
|
|
@@ -1847,7 +1850,7 @@ const He = {
|
|
|
1847
1850
|
})), p.onUpdate(a.value);
|
|
1848
1851
|
})
|
|
1849
1852
|
}, {
|
|
1850
|
-
default:
|
|
1853
|
+
default: M(() => [
|
|
1851
1854
|
y(o, {
|
|
1852
1855
|
modelValue: e.value.receiptName,
|
|
1853
1856
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
@@ -1868,7 +1871,7 @@ const He = {
|
|
|
1868
1871
|
})
|
|
1869
1872
|
]),
|
|
1870
1873
|
I("div", Aa, [
|
|
1871
|
-
(g(!0),
|
|
1874
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1872
1875
|
key: n,
|
|
1873
1876
|
label: n,
|
|
1874
1877
|
removable: !0,
|
|
@@ -1882,7 +1885,7 @@ const He = {
|
|
|
1882
1885
|
variant: "secondary",
|
|
1883
1886
|
label: "Delete",
|
|
1884
1887
|
onclick: () => v(l.value)
|
|
1885
|
-
}, null, 8, ["onclick"])) :
|
|
1888
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1886
1889
|
y(i, {
|
|
1887
1890
|
type: "submit",
|
|
1888
1891
|
class: "flex-1",
|
|
@@ -1895,7 +1898,7 @@ const He = {
|
|
|
1895
1898
|
}, 512);
|
|
1896
1899
|
};
|
|
1897
1900
|
}
|
|
1898
|
-
}), Da = { class: "flex items-end" }, $a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ea = { class: "flex mt-6 space-x-6" }, La = /* @__PURE__ */
|
|
1901
|
+
}), Da = { class: "flex items-end" }, $a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ea = { class: "flex mt-6 space-x-6" }, La = /* @__PURE__ */ R({
|
|
1899
1902
|
__name: "RevenueGateway",
|
|
1900
1903
|
props: {
|
|
1901
1904
|
terminal: {
|
|
@@ -1968,14 +1971,13 @@ const He = {
|
|
|
1968
1971
|
})), p.onUpdate(a.value);
|
|
1969
1972
|
})
|
|
1970
1973
|
}, {
|
|
1971
|
-
default:
|
|
1974
|
+
default: M(() => [
|
|
1972
1975
|
y(o, {
|
|
1973
1976
|
modelValue: e.value.ip,
|
|
1974
1977
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
1975
1978
|
label: "Terminal IP Address",
|
|
1976
|
-
"label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)"
|
|
1977
|
-
|
|
1978
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
1979
|
+
"label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)"
|
|
1980
|
+
}, null, 8, ["modelValue"]),
|
|
1979
1981
|
y(o, {
|
|
1980
1982
|
modelValue: e.value.receiptName,
|
|
1981
1983
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
|
|
@@ -1996,7 +1998,7 @@ const He = {
|
|
|
1996
1998
|
})
|
|
1997
1999
|
]),
|
|
1998
2000
|
I("div", $a, [
|
|
1999
|
-
(g(!0),
|
|
2001
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
2000
2002
|
key: n,
|
|
2001
2003
|
label: n,
|
|
2002
2004
|
removable: !0,
|
|
@@ -2010,7 +2012,7 @@ const He = {
|
|
|
2010
2012
|
variant: "secondary",
|
|
2011
2013
|
label: "Delete",
|
|
2012
2014
|
onclick: () => v(l.value)
|
|
2013
|
-
}, null, 8, ["onclick"])) :
|
|
2015
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2014
2016
|
y(i, {
|
|
2015
2017
|
type: "submit",
|
|
2016
2018
|
class: "flex-1",
|
|
@@ -2026,7 +2028,7 @@ const He = {
|
|
|
2026
2028
|
}), Ya = {
|
|
2027
2029
|
key: 0,
|
|
2028
2030
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2029
|
-
}, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */
|
|
2031
|
+
}, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */ R({
|
|
2030
2032
|
__name: "BeamGateway",
|
|
2031
2033
|
props: {
|
|
2032
2034
|
terminal: {
|
|
@@ -2039,7 +2041,7 @@ const He = {
|
|
|
2039
2041
|
}
|
|
2040
2042
|
},
|
|
2041
2043
|
setup(T) {
|
|
2042
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
2044
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
2043
2045
|
externalTerminalId: ""
|
|
2044
2046
|
}), v = () => {
|
|
2045
2047
|
c.value.externalTerminalId = "", d.value = -1;
|
|
@@ -2061,7 +2063,7 @@ const He = {
|
|
|
2061
2063
|
});
|
|
2062
2064
|
};
|
|
2063
2065
|
A(l, m), q(m);
|
|
2064
|
-
const s =
|
|
2066
|
+
const s = N(() => (r.value ?? []).map((o) => ({
|
|
2065
2067
|
label: o.status === "READY" ? o.name : `${o.name} (unpaired)`,
|
|
2066
2068
|
value: o._id
|
|
2067
2069
|
})));
|
|
@@ -2071,7 +2073,7 @@ const He = {
|
|
|
2071
2073
|
}
|
|
2072
2074
|
return (o, i) => {
|
|
2073
2075
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
2074
|
-
return
|
|
2076
|
+
return S(p) ? (g(), V("div", Ya, [
|
|
2075
2077
|
y(u, { size: "xxl" })
|
|
2076
2078
|
])) : (g(), F(x, {
|
|
2077
2079
|
key: 1,
|
|
@@ -2081,13 +2083,13 @@ const He = {
|
|
|
2081
2083
|
d.value > -1 ? l.value.ecrs[d.value] = { gateway: "Beam", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "Beam", config: c.value })), b.onUpdate(l.value);
|
|
2082
2084
|
})
|
|
2083
2085
|
}, {
|
|
2084
|
-
default:
|
|
2086
|
+
default: M(() => [
|
|
2085
2087
|
y(C, {
|
|
2086
2088
|
modelValue: c.value.externalTerminalId,
|
|
2087
2089
|
"onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.externalTerminalId = E),
|
|
2088
2090
|
label: "External Terminal",
|
|
2089
2091
|
items: s.value,
|
|
2090
|
-
rules:
|
|
2092
|
+
rules: S(ie)(S(se).string().min(1, "External terminal is required"))
|
|
2091
2093
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
2092
2094
|
I("div", ja, [
|
|
2093
2095
|
d.value > -1 ? (g(), F(n, {
|
|
@@ -2096,7 +2098,7 @@ const He = {
|
|
|
2096
2098
|
variant: "secondary",
|
|
2097
2099
|
label: "Delete",
|
|
2098
2100
|
onclick: () => t(d.value)
|
|
2099
|
-
}, null, 8, ["onclick"])) :
|
|
2101
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2100
2102
|
y(n, {
|
|
2101
2103
|
type: "submit",
|
|
2102
2104
|
class: "flex-1",
|
|
@@ -2112,7 +2114,7 @@ const He = {
|
|
|
2112
2114
|
}), Ha = {
|
|
2113
2115
|
key: 0,
|
|
2114
2116
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2115
|
-
}, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */
|
|
2117
|
+
}, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */ R({
|
|
2116
2118
|
__name: "BriGateway",
|
|
2117
2119
|
props: {
|
|
2118
2120
|
terminal: {
|
|
@@ -2125,7 +2127,7 @@ const He = {
|
|
|
2125
2127
|
}
|
|
2126
2128
|
},
|
|
2127
2129
|
setup(T) {
|
|
2128
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
2130
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
2129
2131
|
externalTerminalId: ""
|
|
2130
2132
|
}), v = () => {
|
|
2131
2133
|
c.value.externalTerminalId = "", d.value = -1;
|
|
@@ -2147,7 +2149,7 @@ const He = {
|
|
|
2147
2149
|
});
|
|
2148
2150
|
};
|
|
2149
2151
|
A(l, m), q(m);
|
|
2150
|
-
const s =
|
|
2152
|
+
const s = N(() => (r.value ?? []).filter((i) => i.status === "READY").map((i) => ({ label: i.name, value: i._id }))), t = N(() => {
|
|
2151
2153
|
if (s.value.length === 0)
|
|
2152
2154
|
return "Please pair one BRI terminal under External Terminals before applying here.";
|
|
2153
2155
|
});
|
|
@@ -2157,7 +2159,7 @@ const He = {
|
|
|
2157
2159
|
}
|
|
2158
2160
|
return (i, u) => {
|
|
2159
2161
|
const C = f("FmCircularProgress"), n = f("FmSelect"), x = f("FmButton"), E = f("FmForm");
|
|
2160
|
-
return
|
|
2162
|
+
return S(p) ? (g(), V("div", Ha, [
|
|
2161
2163
|
y(C, { size: "xxl" })
|
|
2162
2164
|
])) : (g(), F(E, {
|
|
2163
2165
|
key: 1,
|
|
@@ -2167,14 +2169,14 @@ const He = {
|
|
|
2167
2169
|
d.value > -1 ? l.value.ecrs[d.value] = { gateway: "Bri", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "Bri", config: c.value })), b.onUpdate(l.value);
|
|
2168
2170
|
})
|
|
2169
2171
|
}, {
|
|
2170
|
-
default:
|
|
2172
|
+
default: M(() => [
|
|
2171
2173
|
y(n, {
|
|
2172
2174
|
modelValue: c.value.externalTerminalId,
|
|
2173
2175
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => c.value.externalTerminalId = w),
|
|
2174
2176
|
label: "External Terminal",
|
|
2175
2177
|
items: s.value,
|
|
2176
2178
|
"helper-text": t.value,
|
|
2177
|
-
rules:
|
|
2179
|
+
rules: S(ie)(S(se).string().min(1, "External terminal is required"))
|
|
2178
2180
|
}, null, 8, ["modelValue", "items", "helper-text", "rules"]),
|
|
2179
2181
|
I("div", za, [
|
|
2180
2182
|
d.value > -1 ? (g(), F(x, {
|
|
@@ -2183,7 +2185,7 @@ const He = {
|
|
|
2183
2185
|
variant: "secondary",
|
|
2184
2186
|
label: "Delete",
|
|
2185
2187
|
onclick: () => o(d.value)
|
|
2186
|
-
}, null, 8, ["onclick"])) :
|
|
2188
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2187
2189
|
y(x, {
|
|
2188
2190
|
type: "submit",
|
|
2189
2191
|
class: "flex-1",
|
|
@@ -2196,7 +2198,7 @@ const He = {
|
|
|
2196
2198
|
}, 512));
|
|
2197
2199
|
};
|
|
2198
2200
|
}
|
|
2199
|
-
}), Ja = { class: "flex items-end" }, Wa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Xa = { class: "flex mt-6 space-x-6" }, Za = /* @__PURE__ */
|
|
2201
|
+
}), Ja = { class: "flex items-end" }, Wa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Xa = { class: "flex mt-6 space-x-6" }, Za = /* @__PURE__ */ R({
|
|
2200
2202
|
__name: "PbbGateway",
|
|
2201
2203
|
props: {
|
|
2202
2204
|
terminal: {
|
|
@@ -2263,7 +2265,7 @@ const He = {
|
|
|
2263
2265
|
})), p.onUpdate(a.value);
|
|
2264
2266
|
})
|
|
2265
2267
|
}, {
|
|
2266
|
-
default:
|
|
2268
|
+
default: M(() => [
|
|
2267
2269
|
y(o, {
|
|
2268
2270
|
modelValue: e.value.ip,
|
|
2269
2271
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -2289,7 +2291,7 @@ const He = {
|
|
|
2289
2291
|
})
|
|
2290
2292
|
]),
|
|
2291
2293
|
I("div", Wa, [
|
|
2292
|
-
(g(!0),
|
|
2294
|
+
(g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
2293
2295
|
key: n,
|
|
2294
2296
|
label: n,
|
|
2295
2297
|
removable: !0,
|
|
@@ -2303,7 +2305,7 @@ const He = {
|
|
|
2303
2305
|
variant: "secondary",
|
|
2304
2306
|
label: "Delete",
|
|
2305
2307
|
onclick: () => v(l.value)
|
|
2306
|
-
}, null, 8, ["onclick"])) :
|
|
2308
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2307
2309
|
y(i, {
|
|
2308
2310
|
type: "submit",
|
|
2309
2311
|
class: "flex-1",
|
|
@@ -2316,7 +2318,7 @@ const He = {
|
|
|
2316
2318
|
}, 512);
|
|
2317
2319
|
};
|
|
2318
2320
|
}
|
|
2319
|
-
}), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */
|
|
2321
|
+
}), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */ R({
|
|
2320
2322
|
__name: "EcrGateway",
|
|
2321
2323
|
props: {
|
|
2322
2324
|
terminal: {
|
|
@@ -2426,19 +2428,19 @@ const He = {
|
|
|
2426
2428
|
render: Qa,
|
|
2427
2429
|
region: [P.F_COUNTRY.enum.ID]
|
|
2428
2430
|
}
|
|
2429
|
-
], b =
|
|
2431
|
+
], b = N(() => a.find((c) => c.value === e.value)), l = re().currentCountry, r = N(() => a.filter(
|
|
2430
2432
|
(c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY)
|
|
2431
|
-
)), { gatewayTab: e } =
|
|
2433
|
+
)), { gatewayTab: e } = ne({
|
|
2432
2434
|
gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
|
|
2433
2435
|
});
|
|
2434
2436
|
return (c, v) => {
|
|
2435
2437
|
var s;
|
|
2436
2438
|
const m = f("FmTabs");
|
|
2437
|
-
return g(),
|
|
2439
|
+
return g(), V("div", et, [
|
|
2438
2440
|
I("div", at, [
|
|
2439
2441
|
y(m, {
|
|
2440
|
-
"model-value":
|
|
2441
|
-
"onUpdate:modelValue": v[0] || (v[0] = (t) =>
|
|
2442
|
+
"model-value": S(e),
|
|
2443
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => ee(e) ? e.value = t : null),
|
|
2442
2444
|
class: "mb-6",
|
|
2443
2445
|
vertical: !0,
|
|
2444
2446
|
items: r.value,
|
|
@@ -2446,15 +2448,15 @@ const He = {
|
|
|
2446
2448
|
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
2447
2449
|
]),
|
|
2448
2450
|
I("div", tt, [
|
|
2449
|
-
|
|
2451
|
+
S(e) ? (g(), F(ae((s = b.value) == null ? void 0 : s.render), te(le({ key: 0 }, {
|
|
2450
2452
|
terminal: p.terminal,
|
|
2451
2453
|
onUpdate: p.onUpdate
|
|
2452
|
-
})), null, 16)) :
|
|
2454
|
+
})), null, 16)) : h("", !0)
|
|
2453
2455
|
])
|
|
2454
2456
|
]);
|
|
2455
2457
|
};
|
|
2456
2458
|
}
|
|
2457
|
-
}), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */
|
|
2459
|
+
}), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */ R({
|
|
2458
2460
|
__name: "PromptPayGateway",
|
|
2459
2461
|
props: {
|
|
2460
2462
|
terminal: {
|
|
@@ -2499,7 +2501,7 @@ const He = {
|
|
|
2499
2501
|
l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName })), p.onUpdate(a.value);
|
|
2500
2502
|
})
|
|
2501
2503
|
}, {
|
|
2502
|
-
default:
|
|
2504
|
+
default: M(() => [
|
|
2503
2505
|
y(s, {
|
|
2504
2506
|
modelValue: r.value.account,
|
|
2505
2507
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.account = i),
|
|
@@ -2519,7 +2521,7 @@ const He = {
|
|
|
2519
2521
|
variant: "secondary",
|
|
2520
2522
|
label: "Delete",
|
|
2521
2523
|
onclick: () => c(l.value)
|
|
2522
|
-
}, null, 8, ["onclick"])) :
|
|
2524
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2523
2525
|
y(t, {
|
|
2524
2526
|
type: "submit",
|
|
2525
2527
|
class: "flex-1",
|
|
@@ -2532,7 +2534,7 @@ const He = {
|
|
|
2532
2534
|
}, 512);
|
|
2533
2535
|
};
|
|
2534
2536
|
}
|
|
2535
|
-
}), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */
|
|
2537
|
+
}), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */ R({
|
|
2536
2538
|
__name: "QrGateway",
|
|
2537
2539
|
props: {
|
|
2538
2540
|
terminal: {
|
|
@@ -2553,32 +2555,32 @@ const He = {
|
|
|
2553
2555
|
render: ot,
|
|
2554
2556
|
region: [P.F_COUNTRY.enum.TH]
|
|
2555
2557
|
}
|
|
2556
|
-
], b =
|
|
2558
|
+
], b = N(() => a.find((c) => c.value === e.value)), l = re().currentCountry, r = N(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
|
|
2557
2559
|
gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
|
|
2558
2560
|
});
|
|
2559
2561
|
return (c, v) => {
|
|
2560
2562
|
var s;
|
|
2561
2563
|
const m = f("FmTabs");
|
|
2562
|
-
return g(),
|
|
2564
|
+
return g(), V("div", rt, [
|
|
2563
2565
|
I("div", it, [
|
|
2564
2566
|
y(m, {
|
|
2565
|
-
"model-value":
|
|
2566
|
-
"onUpdate:modelValue": v[0] || (v[0] = (t) =>
|
|
2567
|
+
"model-value": S(e),
|
|
2568
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => ee(e) ? e.value = t : null),
|
|
2567
2569
|
class: "mb-6",
|
|
2568
2570
|
vertical: !0,
|
|
2569
2571
|
items: r.value
|
|
2570
2572
|
}, null, 8, ["model-value", "items"])
|
|
2571
2573
|
]),
|
|
2572
2574
|
I("div", st, [
|
|
2573
|
-
|
|
2575
|
+
S(e) ? (g(), F(ae((s = b.value) == null ? void 0 : s.render), te(le({ key: 0 }, {
|
|
2574
2576
|
terminal: p.terminal,
|
|
2575
2577
|
onUpdate: p.onUpdate
|
|
2576
|
-
})), null, 16)) :
|
|
2578
|
+
})), null, 16)) : h("", !0)
|
|
2577
2579
|
])
|
|
2578
2580
|
]);
|
|
2579
2581
|
};
|
|
2580
2582
|
}
|
|
2581
|
-
}), kt = /* @__PURE__ */
|
|
2583
|
+
}), kt = /* @__PURE__ */ R({
|
|
2582
2584
|
__name: "TerminalSetting",
|
|
2583
2585
|
props: {
|
|
2584
2586
|
terminalId: {
|
|
@@ -2587,9 +2589,9 @@ const He = {
|
|
|
2587
2589
|
}
|
|
2588
2590
|
},
|
|
2589
2591
|
setup(T) {
|
|
2590
|
-
const p = T, { tab: a } =
|
|
2592
|
+
const p = T, { tab: a } = ne({
|
|
2591
2593
|
tab: "information"
|
|
2592
|
-
}), { isLoading: b, startAsyncCall: l } =
|
|
2594
|
+
}), { isLoading: b, startAsyncCall: l } = X(!0), r = Ie(), e = me(), d = we(), { t: c } = oe(), v = _();
|
|
2593
2595
|
async function m(w, k) {
|
|
2594
2596
|
l(async () => {
|
|
2595
2597
|
try {
|
|
@@ -2605,11 +2607,11 @@ const He = {
|
|
|
2605
2607
|
type: "success",
|
|
2606
2608
|
message: "Terminal updated successfully"
|
|
2607
2609
|
});
|
|
2608
|
-
} catch (
|
|
2610
|
+
} catch (O) {
|
|
2609
2611
|
e.open({
|
|
2610
2612
|
type: "error",
|
|
2611
2613
|
title: "Error occurs when update terminal",
|
|
2612
|
-
message:
|
|
2614
|
+
message: W(O)
|
|
2613
2615
|
});
|
|
2614
2616
|
}
|
|
2615
2617
|
});
|
|
@@ -2655,7 +2657,7 @@ const He = {
|
|
|
2655
2657
|
render: Ne,
|
|
2656
2658
|
onlyFor: ["KIOSK", "POS"]
|
|
2657
2659
|
}
|
|
2658
|
-
], t = ve.FdoTerminalTemplateDeviceType.options, o =
|
|
2660
|
+
], t = ve.FdoTerminalTemplateDeviceType.options, o = N(
|
|
2659
2661
|
() => {
|
|
2660
2662
|
var w;
|
|
2661
2663
|
return t.includes(((w = v.value) == null ? void 0 : w.deviceType) ?? "");
|
|
@@ -2678,9 +2680,9 @@ const He = {
|
|
|
2678
2680
|
deviceType: w.deviceType,
|
|
2679
2681
|
isDefault: k.isDefault,
|
|
2680
2682
|
settings: {
|
|
2681
|
-
ecrs: (w.ecrs ?? []).map(({ gateway:
|
|
2683
|
+
ecrs: (w.ecrs ?? []).map(({ gateway: O }) => ({ gateway: O })),
|
|
2682
2684
|
ecrIntegrations: (w.ecrIntegrations ?? []).map(
|
|
2683
|
-
({ gateway:
|
|
2685
|
+
({ gateway: O }) => ({ gateway: O })
|
|
2684
2686
|
),
|
|
2685
2687
|
paymentCheckouts: w.paymentCheckouts ?? []
|
|
2686
2688
|
}
|
|
@@ -2688,11 +2690,11 @@ const He = {
|
|
|
2688
2690
|
type: "success",
|
|
2689
2691
|
message: "Setting template created successfully."
|
|
2690
2692
|
});
|
|
2691
|
-
} catch (
|
|
2693
|
+
} catch (O) {
|
|
2692
2694
|
e.open({
|
|
2693
2695
|
type: "error",
|
|
2694
2696
|
title: "Error occurs when create setting template",
|
|
2695
|
-
message:
|
|
2697
|
+
message: W(O)
|
|
2696
2698
|
});
|
|
2697
2699
|
}
|
|
2698
2700
|
});
|
|
@@ -2708,7 +2710,7 @@ const He = {
|
|
|
2708
2710
|
overlay: !0,
|
|
2709
2711
|
contentComponent: qe,
|
|
2710
2712
|
contentComponentProps: { templates: k }
|
|
2711
|
-
}).onPrimary(async (
|
|
2713
|
+
}).onPrimary(async (O) => {
|
|
2712
2714
|
d.close(), xe(
|
|
2713
2715
|
d,
|
|
2714
2716
|
"Apply Template",
|
|
@@ -2716,15 +2718,15 @@ const He = {
|
|
|
2716
2718
|
async () => {
|
|
2717
2719
|
l(async () => {
|
|
2718
2720
|
try {
|
|
2719
|
-
await j.applyTemplate(p.terminalId,
|
|
2721
|
+
await j.applyTemplate(p.terminalId, O.templateId), v.value = await j.readById(p.terminalId), e.open({
|
|
2720
2722
|
type: "success",
|
|
2721
2723
|
message: "Setting template applied successfully."
|
|
2722
2724
|
});
|
|
2723
|
-
} catch (
|
|
2725
|
+
} catch (D) {
|
|
2724
2726
|
e.open({
|
|
2725
2727
|
type: "error",
|
|
2726
2728
|
title: "Error occurs when apply setting template",
|
|
2727
|
-
message:
|
|
2729
|
+
message: W(D)
|
|
2728
2730
|
});
|
|
2729
2731
|
}
|
|
2730
2732
|
});
|
|
@@ -2732,14 +2734,14 @@ const He = {
|
|
|
2732
2734
|
);
|
|
2733
2735
|
});
|
|
2734
2736
|
}
|
|
2735
|
-
const C =
|
|
2737
|
+
const C = N(
|
|
2736
2738
|
() => o.value ? [
|
|
2737
2739
|
{ label: "Save as Template", fn: i },
|
|
2738
2740
|
{ label: "Apply Template", fn: u }
|
|
2739
2741
|
] : []
|
|
2740
2742
|
);
|
|
2741
|
-
|
|
2742
|
-
const n =
|
|
2743
|
+
re().currentCountry;
|
|
2744
|
+
const n = N(() => {
|
|
2743
2745
|
var w;
|
|
2744
2746
|
return (w = s.find((k) => k.value === a.value)) == null ? void 0 : w.render;
|
|
2745
2747
|
});
|
|
@@ -2748,32 +2750,32 @@ const He = {
|
|
|
2748
2750
|
v.value = await j.readById(p.terminalId);
|
|
2749
2751
|
});
|
|
2750
2752
|
}
|
|
2751
|
-
const E =
|
|
2753
|
+
const E = N(() => s.filter(
|
|
2752
2754
|
(w) => {
|
|
2753
2755
|
var k;
|
|
2754
2756
|
return !w.onlyFor || w.onlyFor.includes(((k = v.value) == null ? void 0 : k.deviceType) ?? "");
|
|
2755
2757
|
}
|
|
2756
2758
|
));
|
|
2757
2759
|
return q(x), (w, k) => {
|
|
2758
|
-
var
|
|
2759
|
-
const
|
|
2760
|
+
var D, K;
|
|
2761
|
+
const O = f("FmTabs");
|
|
2760
2762
|
return g(), F(Fe, {
|
|
2761
|
-
title: `${(
|
|
2762
|
-
loading:
|
|
2763
|
+
title: `${(D = v.value) == null ? void 0 : D.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
|
|
2764
|
+
loading: S(b),
|
|
2763
2765
|
actions: C.value,
|
|
2764
|
-
onBack:
|
|
2766
|
+
onBack: S(r).back
|
|
2765
2767
|
}, {
|
|
2766
|
-
default:
|
|
2767
|
-
y(
|
|
2768
|
-
"model-value":
|
|
2769
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
2768
|
+
default: M(() => [
|
|
2769
|
+
y(O, {
|
|
2770
|
+
"model-value": S(a),
|
|
2771
|
+
"onUpdate:modelValue": k[0] || (k[0] = (z) => ee(a) ? a.value = z : null),
|
|
2770
2772
|
class: "mb-6",
|
|
2771
2773
|
items: E.value
|
|
2772
2774
|
}, null, 8, ["model-value", "items"]),
|
|
2773
|
-
|
|
2775
|
+
S(a) ? (g(), F(ae(n.value), te(le({ key: 0 }, {
|
|
2774
2776
|
terminal: v.value,
|
|
2775
2777
|
onUpdate: m
|
|
2776
|
-
})), null, 16)) :
|
|
2778
|
+
})), null, 16)) : h("", !0)
|
|
2777
2779
|
]),
|
|
2778
2780
|
_: 1
|
|
2779
2781
|
}, 8, ["title", "loading", "actions", "onBack"]);
|