@feedmepos/mf-payment 1.10.8-dev → 1.10.10-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-DRF8W4tg.js → Actions.vue_vue_type_script_setup_true_lang-9WuuFDjT.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-4ApEVDHf.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-ldlWrW9Q.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C4xRm0d0.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-akhgShmK.js} +3 -3
- package/dist/{Chargeback-pnoHxJba.js → Chargeback-CtMcT0UY.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-B4nIdf5-.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DcTe9_Kw.js} +1 -1
- package/dist/{ExternalTerminal-CqrRcbsp.js → ExternalTerminal-lOIxzrYN.js} +6 -6
- package/dist/{OnboardForm-CYO3vK_8.js → OnboardForm-C1YdmeW-.js} +6 -6
- package/dist/{OnboardForm-BDv2pxL9.js → OnboardForm-CIDn7WlN.js} +6 -6
- package/dist/{OnboardSubmission-BUJZydpX.js → OnboardSubmission-B3duCbsE.js} +6 -6
- package/dist/{OnboardSubmission-Cx_sPOVH.js → OnboardSubmission-CmVQtQJG.js} +3 -3
- package/dist/{PaymentCheckout-DQM_kppH.js → PaymentCheckout-7U8JxO5z.js} +2 -2
- package/dist/{PayoutAccount-dwMtm1PL.js → PayoutAccount-BkxTsLX6.js} +5 -5
- package/dist/{PayoutAccount-DKWtIoTX.js → PayoutAccount-TAivPO00.js} +7 -7
- package/dist/{PayoutAccountSetting-CWZD3Kwa.js → PayoutAccountSetting-CDaWFEPa.js} +6 -6
- package/dist/{Restaurant-CV5n8389.js → Restaurant-D6w0vJTh.js} +4 -4
- package/dist/{RestaurantSetting-DsP4kGjM.js → RestaurantSetting-B-jZzQw2.js} +3 -3
- package/dist/{Settlement-Bt18kRNt.js → Settlement-87K0HOpH.js} +4 -4
- package/dist/{Settlement-58-ie3T1.js → Settlement-CSbH4KiM.js} +3 -3
- package/dist/{SettlementTransactions-C7GhMTLQ.js → SettlementTransactions-CXxia4xu.js} +5 -5
- package/dist/{SettlementTransactions-Db1f9lYu.js → SettlementTransactions-s2E_-8CH.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B9j6CfzS.js → Status.vue_vue_type_script_setup_true_lang-BNHfv19U.js} +1 -1
- package/dist/{Terminal-BuMIcbhv.js → Terminal-DVnNwm5e.js} +6 -6
- package/dist/{TerminalSetting-2kwSwfKt.js → TerminalSetting-Dq4ABFSO.js} +320 -311
- package/dist/{TerminalTemplate-aBZAYAKp.js → TerminalTemplate-BJNexUYY.js} +5 -5
- package/dist/{TerminalTemplateSetting-BZlX7Xll.js → TerminalTemplateSetting-bN8ClI5N.js} +5 -5
- package/dist/{Transaction-lRZITPtN.js → Transaction-BGx9Ipte.js} +12 -12
- package/dist/{Transaction-Cy03QV60.js → Transaction-C4hbtZ91.js} +10 -10
- package/dist/{TransactionOld-CmLbZyaP.js → TransactionOld-DGq4_O6h.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DSzil-ib.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Bl8qusoC.js} +1 -1
- package/dist/{app-DKD_4d44.js → app-0Fho9eki.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/{assets-VX0DqpvG.js → assets-CQo4lzcb.js} +1 -1
- package/dist/{grafana-B_uCjmFj.js → grafana-BqdRvJYT.js} +1 -1
- package/dist/{index-DZJaOOKJ.js → index--59tM3Ls.js} +1 -1
- package/dist/{index-BpAx8sXI.js → index-B5qSd5kn.js} +1 -1
- package/dist/{index-DO72hNKP.js → index-BF1GN-0Q.js} +1 -1
- package/dist/{index-DFZ1vkMO.js → index-BU7MW9VF.js} +1 -1
- package/dist/{index-CGmA3Z9Z.js → index-BdafJZPj.js} +1 -1
- package/dist/{index-Cf9xnlvp.js → index-Bz9YYVw5.js} +1 -1
- package/dist/{index-DbJwyim8.js → index-CelDa-QS.js} +1 -1
- package/dist/{index-CnTRiFh5.js → index-ClDlsfj-.js} +1 -1
- package/dist/{index-DFNUFV3R.js → index-DyIn6r7H.js} +1 -1
- package/dist/{index-C3AnskZH.js → index-I2OCChpQ.js} +2 -2
- package/dist/{index-FScngz5X.js → index-_bVFsKJt.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CH17wzq0.js → index.vue_vue_type_script_setup_true_lang-Cj4WYjoE.js} +1 -1
- package/dist/{onboard-submission-Cjp6Mugk.js → onboard-submission-cOodl8vE.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CzCmFwEa.js → payout-account-DqxT4m5x.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-Cn_nXHMC.js → useQuery-2ksfJQXW.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { t as j } from "./index-
|
|
5
|
-
import { t as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as re } from "./index-
|
|
8
|
-
import { useDialogChild as
|
|
9
|
-
import { w as
|
|
10
|
-
import { u as
|
|
1
|
+
import { defineComponent as R, openBlock as g, createElementBlock as S, 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 N, computed as V, createCommentVNode as h, isRef as te, resolveDynamicComponent as le, normalizeProps as ne, mergeProps as oe, 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-B5qSd5kn.js";
|
|
3
|
+
import { useRouter as Ie } from "vue-router";
|
|
4
|
+
import { t as j } from "./index-BdafJZPj.js";
|
|
5
|
+
import { t as pe } from "./index-BU7MW9VF.js";
|
|
6
|
+
import { _ as Fe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
7
|
+
import { u as re } from "./index-Bz9YYVw5.js";
|
|
8
|
+
import { useDialogChild as ye, useSnackbar as me, useDialog as we } from "@feedmepos/ui-library";
|
|
9
|
+
import { w as xe } from "./Modal-DB8M9o1T.js";
|
|
10
|
+
import { u as W } from "./error-K1CakhA9.js";
|
|
11
11
|
import { useI18n as ie, useCoreStore as se } from "@feedmepos/mf-common";
|
|
12
|
-
import { z as
|
|
13
|
-
import { o as
|
|
14
|
-
import { c as
|
|
15
|
-
import { e as
|
|
16
|
-
import { P as
|
|
17
|
-
const
|
|
12
|
+
import { z as ee, a as ae } from "./validator-CTlVogBQ.js";
|
|
13
|
+
import { o as Ce } from "./index-I2OCChpQ.js";
|
|
14
|
+
import { c as ke } from "./index-MdV54cWO.js";
|
|
15
|
+
import { e as fe } from "./index--59tM3Ls.js";
|
|
16
|
+
import { P as Ne } from "./PaymentCheckout-7U8JxO5z.js";
|
|
17
|
+
const Ve = /* @__PURE__ */ R({
|
|
18
18
|
__name: "Information",
|
|
19
19
|
props: {
|
|
20
20
|
terminal: {
|
|
@@ -23,25 +23,25 @@ const Ne = /* @__PURE__ */ h({
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(T) {
|
|
26
|
-
return (p, a) => (g(), S(
|
|
26
|
+
return (p, a) => (g(), S($, 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
|
-
}),
|
|
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 =
|
|
44
|
+
const p = ye(), { t: a } = ie(), 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 Ne = /* @__PURE__ */ h({
|
|
|
56
56
|
class: "flex flex-col gap-16 min-h-[240px]",
|
|
57
57
|
onValidationSuccess: d
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
I("div",
|
|
59
|
+
default: M(() => [
|
|
60
|
+
I("div", Se, [
|
|
61
61
|
y(m, {
|
|
62
62
|
name: "info",
|
|
63
63
|
class: "shrink-0"
|
|
64
64
|
}),
|
|
65
|
-
I("span",
|
|
65
|
+
I("span", Ue, J(N(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: N(
|
|
72
|
+
rules: N(ee)(N(ae).string().min(1, "Template name is required"))
|
|
73
73
|
}, null, 8, ["modelValue", "rules"]),
|
|
74
74
|
y(s, {
|
|
75
75
|
modelValue: r.value,
|
|
@@ -83,7 +83,7 @@ const Ne = /* @__PURE__ */ h({
|
|
|
83
83
|
label: "Set as default",
|
|
84
84
|
"label-info": "Applied automatically when a new device of this type binds for this business."
|
|
85
85
|
}, null, 8, ["modelValue"]),
|
|
86
|
-
I("div",
|
|
86
|
+
I("div", he, [
|
|
87
87
|
y(o, {
|
|
88
88
|
class: "w-full",
|
|
89
89
|
type: "submit",
|
|
@@ -95,19 +95,19 @@ const Ne = /* @__PURE__ */ h({
|
|
|
95
95
|
}, 512);
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
98
|
+
}), Pe = { class: "flex flex-col gap-16 min-h-[240px]" }, Be = { class: "flex items-start gap-8 rounded-md bg-fm-color-neutral-gray-100 px-16 py-12" }, Oe = { class: "fm-typo-en-body-md-400" }, Me = {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-500"
|
|
101
|
-
},
|
|
101
|
+
}, Ae = {
|
|
102
102
|
key: 2,
|
|
103
103
|
class: "mt-auto pt-24 pb-24"
|
|
104
|
-
},
|
|
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 =
|
|
110
|
+
const p = T, a = ye(), { t: b } = ie(), l = _(""), r = V(
|
|
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 Ne = /* @__PURE__ */ h({
|
|
|
117
117
|
};
|
|
118
118
|
return (d, c) => {
|
|
119
119
|
const v = f("FmIcon"), m = f("FmSelect"), s = f("FmButton");
|
|
120
|
-
return g(), S("div",
|
|
121
|
-
I("div",
|
|
120
|
+
return g(), S("div", Pe, [
|
|
121
|
+
I("div", Be, [
|
|
122
122
|
y(v, {
|
|
123
123
|
name: "info",
|
|
124
124
|
class: "mt-4 shrink-0"
|
|
125
125
|
}),
|
|
126
|
-
I("div",
|
|
126
|
+
I("div", Oe, J(N(b)("payment.terminal_template.scope_info")), 1)
|
|
127
127
|
]),
|
|
128
|
-
r.value.length === 0 ? (g(), S("div",
|
|
128
|
+
r.value.length === 0 ? (g(), S("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(), S("div",
|
|
135
|
+
r.value.length > 0 ? (g(), S("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
|
-
}),
|
|
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 Ne = /* @__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,20 +177,20 @@ const Ne = /* @__PURE__ */ h({
|
|
|
177
177
|
}
|
|
178
178
|
return (d, c) => {
|
|
179
179
|
const v = f("FmSwitch"), m = f("FmPinField"), s = f("FmButton");
|
|
180
|
-
return g(), S(
|
|
180
|
+
return g(), S($, 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(), S("div",
|
|
186
|
+
l.value.enable ? (g(), S("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
|
-
])) :
|
|
193
|
-
I("div",
|
|
192
|
+
])) : h("", !0),
|
|
193
|
+
I("div", De, [
|
|
194
194
|
y(s, {
|
|
195
195
|
variant: "primary",
|
|
196
196
|
label: "Send",
|
|
@@ -202,7 +202,7 @@ const Ne = /* @__PURE__ */ h({
|
|
|
202
202
|
], 64);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), Ee = /* @__PURE__ */ R({
|
|
206
206
|
__name: "SettingRequest",
|
|
207
207
|
props: {
|
|
208
208
|
terminal: {
|
|
@@ -217,16 +217,16 @@ const Ne = /* @__PURE__ */ h({
|
|
|
217
217
|
{
|
|
218
218
|
label: "Kiosk Mode",
|
|
219
219
|
value: "kiosk_mode",
|
|
220
|
-
render:
|
|
220
|
+
render: $e
|
|
221
221
|
}
|
|
222
222
|
], b = T, l = V(() => 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(), S(
|
|
226
|
+
return g(), S($, 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
232
|
"model-value": N(p),
|
|
@@ -234,18 +234,18 @@ const Ne = /* @__PURE__ */ h({
|
|
|
234
234
|
class: "mb-6",
|
|
235
235
|
items: a
|
|
236
236
|
}, null, 8, ["model-value"]),
|
|
237
|
-
N(p) ? (g(), F(le((c = l.value) == null ? void 0 : c.render), ne(oe({ key: 0 }, { terminal: b.terminal })), null, 16)) :
|
|
237
|
+
N(p) ? (g(), F(le((c = l.value) == null ? void 0 : c.render), ne(oe({ key: 0 }, { terminal: b.terminal })), null, 16)) : h("", !0)
|
|
238
238
|
], 64);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
}),
|
|
242
|
-
function
|
|
243
|
-
const { isLoading: p, startLoading: a, stopLoading: b } =
|
|
244
|
-
var k,
|
|
241
|
+
}), Le = 2e3, Ye = 12e4, je = "Timed out waiting for the Tyro reader to sync. Please try again.";
|
|
242
|
+
function Ke(T) {
|
|
243
|
+
const { isLoading: p, startLoading: a, stopLoading: b } = X(!1), { t: l } = ie(), r = me(), e = _(null), d = V(() => {
|
|
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 ((
|
|
248
|
+
return ((O = w == null ? void 0 : w.config) == null ? void 0 : O.uniqueId) || "";
|
|
249
249
|
}), c = V(() => !!d.value), v = V(() => {
|
|
250
250
|
var w;
|
|
251
251
|
return ((w = e.value) == null ? void 0 : w.status) === "ready";
|
|
@@ -261,29 +261,29 @@ function je(T) {
|
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
263
|
try {
|
|
264
|
-
const w = await
|
|
264
|
+
const w = await Ce.getByRestaurant(
|
|
265
265
|
T.value.referenceId
|
|
266
266
|
);
|
|
267
267
|
e.value = w.find(
|
|
268
|
-
(k) => k.type ===
|
|
268
|
+
(k) => k.type === ve.FdoOnboardType.enum.tyro
|
|
269
269
|
) ?? null;
|
|
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
|
}
|
|
277
|
-
const u =
|
|
278
|
-
intervalMs:
|
|
279
|
-
timeoutMs:
|
|
277
|
+
const u = ke({
|
|
278
|
+
intervalMs: Le,
|
|
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
|
}));
|
|
@@ -291,13 +291,13 @@ function je(T) {
|
|
|
291
291
|
onTimeout: () => {
|
|
292
292
|
b(), r.open({
|
|
293
293
|
type: "error",
|
|
294
|
-
message:
|
|
294
|
+
message: je
|
|
295
295
|
});
|
|
296
296
|
},
|
|
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 je(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
|
}
|
|
@@ -330,7 +330,7 @@ function je(T) {
|
|
|
330
330
|
await i();
|
|
331
331
|
},
|
|
332
332
|
{ immediate: !0 }
|
|
333
|
-
),
|
|
333
|
+
), Te(() => {
|
|
334
334
|
n();
|
|
335
335
|
}), {
|
|
336
336
|
isLoading: p,
|
|
@@ -343,10 +343,10 @@ function je(T) {
|
|
|
343
343
|
syncTyroReader: E
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const He = {
|
|
347
347
|
key: 0,
|
|
348
348
|
class: "text-sm text-gray-500"
|
|
349
|
-
},
|
|
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: {
|
|
@@ -407,12 +407,12 @@ const Ke = {
|
|
|
407
407
|
isUat: !1
|
|
408
408
|
}), d = () => {
|
|
409
409
|
e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
410
|
-
}, c = V(() => b.filter((
|
|
411
|
-
(
|
|
410
|
+
}, c = V(() => b.filter((U) => U.region === a.value)), v = V(() => c.value.find(
|
|
411
|
+
(U) => U.value === e.value.packageId
|
|
412
412
|
)), m = V(
|
|
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,139 +423,148 @@ const Ke = {
|
|
|
423
423
|
tyroSyncPopoverMessage: C,
|
|
424
424
|
tyroSyncButtonLabel: n,
|
|
425
425
|
syncTyroReader: x
|
|
426
|
-
} =
|
|
426
|
+
} = Ke(l), E = V(() => m.value ? "button" : "submit"), w = V(() => m.value ? n.value : "Save"), k = V(() => m.value ? s.value : !1), O = V(() => 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
|
-
|
|
464
|
-
|
|
465
|
-
if (
|
|
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();
|
|
467
|
+
e.value.uniqueId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
468
|
+
};
|
|
469
|
+
async function z() {
|
|
470
|
+
const U = v.value;
|
|
471
|
+
if (!U)
|
|
466
472
|
return;
|
|
467
|
-
let
|
|
468
|
-
|
|
473
|
+
let B = e.value.uniqueId;
|
|
474
|
+
U.isLegacy || (B = JSON.stringify({
|
|
469
475
|
uniqueId: e.value.uniqueId,
|
|
470
476
|
developerId: e.value.developerId,
|
|
471
477
|
isUat: e.value.isUat
|
|
472
478
|
}));
|
|
473
|
-
const
|
|
474
|
-
gateway:
|
|
479
|
+
const Q = {
|
|
480
|
+
gateway: U.gateway,
|
|
475
481
|
config: {
|
|
476
|
-
packageId:
|
|
477
|
-
uniqueId:
|
|
482
|
+
packageId: U.value,
|
|
483
|
+
uniqueId: B
|
|
478
484
|
}
|
|
479
485
|
};
|
|
480
|
-
(!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);
|
|
481
487
|
}
|
|
482
|
-
async function
|
|
483
|
-
var
|
|
484
|
-
(
|
|
488
|
+
async function ue(U) {
|
|
489
|
+
var B;
|
|
490
|
+
(B = l.value.gateways) == null || B.splice(U, 1), p.onUpdate(l.value);
|
|
485
491
|
}
|
|
486
|
-
function
|
|
492
|
+
function de() {
|
|
487
493
|
m.value && x();
|
|
488
494
|
}
|
|
489
|
-
return (
|
|
490
|
-
const
|
|
491
|
-
return g(), F(
|
|
495
|
+
return (U, B) => {
|
|
496
|
+
const Q = f("FmSelect"), H = f("FmTextField"), ge = f("FmCheckbox"), ce = f("FmButton"), be = f("FmTooltip"), _e = f("FmForm");
|
|
497
|
+
return g(), F(_e, {
|
|
492
498
|
ref: r.value,
|
|
493
499
|
class: "flex flex-col gap-16 w-[500px]",
|
|
494
|
-
onValidationSuccess:
|
|
500
|
+
onValidationSuccess: z
|
|
495
501
|
}, {
|
|
496
|
-
default:
|
|
497
|
-
y(
|
|
502
|
+
default: M(() => [
|
|
503
|
+
y(Q, {
|
|
498
504
|
modelValue: e.value.packageId,
|
|
499
|
-
"onUpdate:modelValue":
|
|
505
|
+
"onUpdate:modelValue": [
|
|
506
|
+
B[0] || (B[0] = (Y) => e.value.packageId = Y),
|
|
507
|
+
K
|
|
508
|
+
],
|
|
500
509
|
label: "Package ID",
|
|
501
510
|
items: c.value
|
|
502
511
|
}, null, 8, ["modelValue", "items"]),
|
|
503
|
-
v.value ? (g(), S(
|
|
504
|
-
m.value ? (g(), F(
|
|
512
|
+
v.value ? (g(), S($, { key: 0 }, [
|
|
513
|
+
m.value ? (g(), F(H, {
|
|
505
514
|
key: 0,
|
|
506
515
|
"model-value": N(o),
|
|
507
516
|
label: "Unique ID (Reader ID)",
|
|
508
517
|
disabled: ""
|
|
509
|
-
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S(
|
|
510
|
-
y(
|
|
518
|
+
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S($, { key: 1 }, [
|
|
519
|
+
y(H, {
|
|
511
520
|
modelValue: e.value.uniqueId,
|
|
512
|
-
"onUpdate:modelValue":
|
|
521
|
+
"onUpdate:modelValue": B[1] || (B[1] = (Y) => e.value.uniqueId = Y),
|
|
513
522
|
label: "Unique ID (TID)"
|
|
514
523
|
}, null, 8, ["modelValue"]),
|
|
515
|
-
v.value.isOutdated ? (g(), S("span",
|
|
516
|
-
], 64)) : (g(), S(
|
|
517
|
-
y(
|
|
524
|
+
v.value.isOutdated ? (g(), S("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : h("", !0)
|
|
525
|
+
], 64)) : (g(), S($, { key: 2 }, [
|
|
526
|
+
y(H, {
|
|
518
527
|
modelValue: e.value.developerId,
|
|
519
|
-
"onUpdate:modelValue":
|
|
528
|
+
"onUpdate:modelValue": B[2] || (B[2] = (Y) => e.value.developerId = Y),
|
|
520
529
|
label: "Developer ID (MID)"
|
|
521
530
|
}, null, 8, ["modelValue"]),
|
|
522
|
-
y(
|
|
531
|
+
y(H, {
|
|
523
532
|
modelValue: e.value.uniqueId,
|
|
524
|
-
"onUpdate:modelValue":
|
|
533
|
+
"onUpdate:modelValue": B[3] || (B[3] = (Y) => e.value.uniqueId = Y),
|
|
525
534
|
label: "Unique ID (TID)"
|
|
526
535
|
}, null, 8, ["modelValue"]),
|
|
527
|
-
y(
|
|
536
|
+
y(ge, {
|
|
528
537
|
modelValue: e.value.isUat,
|
|
529
|
-
"onUpdate:modelValue":
|
|
538
|
+
"onUpdate:modelValue": B[4] || (B[4] = (Y) => e.value.isUat = Y),
|
|
530
539
|
label: "Is UAT (Test)",
|
|
531
540
|
value: "1"
|
|
532
541
|
}, null, 8, ["modelValue"])
|
|
533
542
|
], 64)),
|
|
534
|
-
I("div",
|
|
543
|
+
I("div", ze, [
|
|
535
544
|
l.value.gateways && l.value.gateways.length > 0 ? (g(), F(ce, {
|
|
536
545
|
key: 0,
|
|
537
546
|
class: "flex-1",
|
|
538
547
|
variant: "secondary",
|
|
539
548
|
label: "Delete",
|
|
540
|
-
onclick: () =>
|
|
541
|
-
}, null, 8, ["onclick"])) :
|
|
542
|
-
m.value && N(u) &&
|
|
549
|
+
onclick: () => ue(0)
|
|
550
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
551
|
+
m.value && N(u) && O.value ? (g(), F(be, {
|
|
543
552
|
key: 1,
|
|
544
553
|
class: "flex-1",
|
|
545
554
|
variant: "plain",
|
|
546
555
|
placement: "top",
|
|
547
556
|
content: N(C)
|
|
548
557
|
}, {
|
|
549
|
-
default:
|
|
550
|
-
I("div",
|
|
558
|
+
default: M(() => [
|
|
559
|
+
I("div", Qe, [
|
|
551
560
|
y(ce, {
|
|
552
561
|
type: E.value,
|
|
553
562
|
class: "w-full",
|
|
554
563
|
variant: "primary",
|
|
555
564
|
loading: k.value,
|
|
556
|
-
disabled:
|
|
565
|
+
disabled: O.value,
|
|
557
566
|
label: w.value,
|
|
558
|
-
onClick:
|
|
567
|
+
onClick: de
|
|
559
568
|
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
560
569
|
])
|
|
561
570
|
]),
|
|
@@ -566,21 +575,21 @@ const Ke = {
|
|
|
566
575
|
class: "flex-1",
|
|
567
576
|
variant: "primary",
|
|
568
577
|
loading: k.value,
|
|
569
|
-
disabled:
|
|
578
|
+
disabled: O.value,
|
|
570
579
|
label: w.value,
|
|
571
|
-
onClick:
|
|
580
|
+
onClick: de
|
|
572
581
|
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
573
582
|
])
|
|
574
|
-
], 64)) :
|
|
583
|
+
], 64)) : h("", !0)
|
|
575
584
|
]),
|
|
576
585
|
_: 1
|
|
577
586
|
}, 512);
|
|
578
587
|
};
|
|
579
588
|
}
|
|
580
|
-
}),
|
|
589
|
+
}), We = {
|
|
581
590
|
key: 0,
|
|
582
591
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
583
|
-
},
|
|
592
|
+
}, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ R({
|
|
584
593
|
__name: "TerminalGateway",
|
|
585
594
|
props: {
|
|
586
595
|
terminal: {
|
|
@@ -593,7 +602,7 @@ const Ke = {
|
|
|
593
602
|
}
|
|
594
603
|
},
|
|
595
604
|
setup(T) {
|
|
596
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
605
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
597
606
|
terminalId: ""
|
|
598
607
|
}), v = () => {
|
|
599
608
|
c.value.terminalId = "", d.value = -1;
|
|
@@ -622,7 +631,7 @@ const Ke = {
|
|
|
622
631
|
}
|
|
623
632
|
return (o, i) => {
|
|
624
633
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
625
|
-
return N(p) ? (g(), S("div",
|
|
634
|
+
return N(p) ? (g(), S("div", We, [
|
|
626
635
|
y(u, { size: "xxl" })
|
|
627
636
|
])) : (g(), F(x, {
|
|
628
637
|
key: 1,
|
|
@@ -632,22 +641,22 @@ const Ke = {
|
|
|
632
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);
|
|
633
642
|
})
|
|
634
643
|
}, {
|
|
635
|
-
default:
|
|
644
|
+
default: M(() => [
|
|
636
645
|
y(C, {
|
|
637
646
|
modelValue: c.value.terminalId,
|
|
638
647
|
"onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.terminalId = E),
|
|
639
648
|
label: "Terminal ID",
|
|
640
649
|
items: s.value,
|
|
641
|
-
rules: N(
|
|
650
|
+
rules: N(ee)(N(ae).string())
|
|
642
651
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
643
|
-
I("div",
|
|
652
|
+
I("div", Xe, [
|
|
644
653
|
d.value > -1 ? (g(), F(n, {
|
|
645
654
|
key: 0,
|
|
646
655
|
class: "flex-1",
|
|
647
656
|
variant: "secondary",
|
|
648
657
|
label: "Delete",
|
|
649
658
|
onclick: () => t(d.value)
|
|
650
|
-
}, null, 8, ["onclick"])) :
|
|
659
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
651
660
|
y(n, {
|
|
652
661
|
type: "submit",
|
|
653
662
|
class: "flex-1",
|
|
@@ -660,7 +669,7 @@ const Ke = {
|
|
|
660
669
|
}, 512));
|
|
661
670
|
};
|
|
662
671
|
}
|
|
663
|
-
}),
|
|
672
|
+
}), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */ R({
|
|
664
673
|
__name: "GhlGateway",
|
|
665
674
|
props: {
|
|
666
675
|
terminal: {
|
|
@@ -707,7 +716,7 @@ const Ke = {
|
|
|
707
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);
|
|
708
717
|
})
|
|
709
718
|
}, {
|
|
710
|
-
default:
|
|
719
|
+
default: M(() => [
|
|
711
720
|
y(s, {
|
|
712
721
|
modelValue: r.value.merchantId,
|
|
713
722
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => r.value.merchantId = u),
|
|
@@ -725,14 +734,14 @@ const Ke = {
|
|
|
725
734
|
"label-mark": "optional",
|
|
726
735
|
"label-info": "Default will use FeedMe Private Key"
|
|
727
736
|
}, null, 8, ["modelValue"]),
|
|
728
|
-
I("div",
|
|
737
|
+
I("div", ea, [
|
|
729
738
|
l.value > -1 ? (g(), F(o, {
|
|
730
739
|
key: 0,
|
|
731
740
|
class: "flex-1",
|
|
732
741
|
variant: "secondary",
|
|
733
742
|
label: "Delete",
|
|
734
743
|
onclick: () => c(l.value)
|
|
735
|
-
}, null, 8, ["onclick"])) :
|
|
744
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
736
745
|
y(o, {
|
|
737
746
|
type: "submit",
|
|
738
747
|
class: "flex-1",
|
|
@@ -745,7 +754,7 @@ const Ke = {
|
|
|
745
754
|
}, 512);
|
|
746
755
|
};
|
|
747
756
|
}
|
|
748
|
-
}),
|
|
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({
|
|
749
758
|
__name: "MaybankGateway",
|
|
750
759
|
props: {
|
|
751
760
|
terminal: {
|
|
@@ -812,7 +821,7 @@ const Ke = {
|
|
|
812
821
|
})), p.onUpdate(a.value);
|
|
813
822
|
})
|
|
814
823
|
}, {
|
|
815
|
-
default:
|
|
824
|
+
default: M(() => [
|
|
816
825
|
y(o, {
|
|
817
826
|
modelValue: e.value.ip,
|
|
818
827
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -824,7 +833,7 @@ const Ke = {
|
|
|
824
833
|
label: "Receipt Payment Name",
|
|
825
834
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
826
835
|
}, null, 8, ["modelValue"]),
|
|
827
|
-
I("div",
|
|
836
|
+
I("div", ta, [
|
|
828
837
|
y(o, {
|
|
829
838
|
modelValue: r.value,
|
|
830
839
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -837,22 +846,22 @@ const Ke = {
|
|
|
837
846
|
onClick: m
|
|
838
847
|
})
|
|
839
848
|
]),
|
|
840
|
-
I("div",
|
|
841
|
-
(g(!0), S(
|
|
849
|
+
I("div", la, [
|
|
850
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
842
851
|
key: n,
|
|
843
852
|
label: n,
|
|
844
853
|
removable: !0,
|
|
845
854
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
846
855
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
847
856
|
]),
|
|
848
|
-
I("div",
|
|
857
|
+
I("div", na, [
|
|
849
858
|
l.value > -1 ? (g(), F(i, {
|
|
850
859
|
key: 0,
|
|
851
860
|
class: "flex-1",
|
|
852
861
|
variant: "secondary",
|
|
853
862
|
label: "Delete",
|
|
854
863
|
onclick: () => v(l.value)
|
|
855
|
-
}, null, 8, ["onclick"])) :
|
|
864
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
856
865
|
y(i, {
|
|
857
866
|
type: "submit",
|
|
858
867
|
class: "flex-1",
|
|
@@ -865,7 +874,7 @@ const Ke = {
|
|
|
865
874
|
}, 512);
|
|
866
875
|
};
|
|
867
876
|
}
|
|
868
|
-
}),
|
|
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({
|
|
869
878
|
__name: "Maybank2Gateway",
|
|
870
879
|
props: {
|
|
871
880
|
terminal: {
|
|
@@ -932,7 +941,7 @@ const Ke = {
|
|
|
932
941
|
})), p.onUpdate(a.value);
|
|
933
942
|
})
|
|
934
943
|
}, {
|
|
935
|
-
default:
|
|
944
|
+
default: M(() => [
|
|
936
945
|
y(o, {
|
|
937
946
|
modelValue: e.value.ip,
|
|
938
947
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -944,7 +953,7 @@ const Ke = {
|
|
|
944
953
|
label: "Receipt Payment Name",
|
|
945
954
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
946
955
|
}, null, 8, ["modelValue"]),
|
|
947
|
-
I("div",
|
|
956
|
+
I("div", ra, [
|
|
948
957
|
y(o, {
|
|
949
958
|
modelValue: r.value,
|
|
950
959
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -957,22 +966,22 @@ const Ke = {
|
|
|
957
966
|
onClick: m
|
|
958
967
|
})
|
|
959
968
|
]),
|
|
960
|
-
I("div",
|
|
961
|
-
(g(!0), S(
|
|
969
|
+
I("div", ia, [
|
|
970
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
962
971
|
key: n,
|
|
963
972
|
label: n,
|
|
964
973
|
removable: !0,
|
|
965
974
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
966
975
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
967
976
|
]),
|
|
968
|
-
I("div",
|
|
977
|
+
I("div", sa, [
|
|
969
978
|
l.value > -1 ? (g(), F(i, {
|
|
970
979
|
key: 0,
|
|
971
980
|
class: "flex-1",
|
|
972
981
|
variant: "secondary",
|
|
973
982
|
label: "Delete",
|
|
974
983
|
onclick: () => v(l.value)
|
|
975
|
-
}, null, 8, ["onclick"])) :
|
|
984
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
976
985
|
y(i, {
|
|
977
986
|
type: "submit",
|
|
978
987
|
class: "flex-1",
|
|
@@ -985,7 +994,7 @@ const Ke = {
|
|
|
985
994
|
}, 512);
|
|
986
995
|
};
|
|
987
996
|
}
|
|
988
|
-
}),
|
|
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({
|
|
989
998
|
__name: "Maybank3Gateway",
|
|
990
999
|
props: {
|
|
991
1000
|
terminal: {
|
|
@@ -1052,14 +1061,14 @@ const Ke = {
|
|
|
1052
1061
|
})), p.onUpdate(a.value);
|
|
1053
1062
|
})
|
|
1054
1063
|
}, {
|
|
1055
|
-
default:
|
|
1064
|
+
default: M(() => [
|
|
1056
1065
|
y(o, {
|
|
1057
1066
|
modelValue: e.value.receiptName,
|
|
1058
1067
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1059
1068
|
label: "Receipt Payment Name",
|
|
1060
1069
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1061
1070
|
}, null, 8, ["modelValue"]),
|
|
1062
|
-
I("div",
|
|
1071
|
+
I("div", ca, [
|
|
1063
1072
|
y(o, {
|
|
1064
1073
|
modelValue: r.value,
|
|
1065
1074
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1072,22 +1081,22 @@ const Ke = {
|
|
|
1072
1081
|
onClick: m
|
|
1073
1082
|
})
|
|
1074
1083
|
]),
|
|
1075
|
-
I("div",
|
|
1076
|
-
(g(!0), S(
|
|
1084
|
+
I("div", ma, [
|
|
1085
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1077
1086
|
key: n,
|
|
1078
1087
|
label: n,
|
|
1079
1088
|
removable: !0,
|
|
1080
1089
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1081
1090
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1082
1091
|
]),
|
|
1083
|
-
I("div",
|
|
1092
|
+
I("div", da, [
|
|
1084
1093
|
l.value > -1 ? (g(), F(i, {
|
|
1085
1094
|
key: 0,
|
|
1086
1095
|
class: "flex-1",
|
|
1087
1096
|
variant: "secondary",
|
|
1088
1097
|
label: "Delete",
|
|
1089
1098
|
onclick: () => v(l.value)
|
|
1090
|
-
}, null, 8, ["onclick"])) :
|
|
1099
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1091
1100
|
y(i, {
|
|
1092
1101
|
type: "submit",
|
|
1093
1102
|
class: "flex-1",
|
|
@@ -1100,7 +1109,7 @@ const Ke = {
|
|
|
1100
1109
|
}, 512);
|
|
1101
1110
|
};
|
|
1102
1111
|
}
|
|
1103
|
-
}),
|
|
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({
|
|
1104
1113
|
__name: "NetsGateway",
|
|
1105
1114
|
props: {
|
|
1106
1115
|
terminal: {
|
|
@@ -1167,7 +1176,7 @@ const Ke = {
|
|
|
1167
1176
|
})), p.onUpdate(a.value);
|
|
1168
1177
|
})
|
|
1169
1178
|
}, {
|
|
1170
|
-
default:
|
|
1179
|
+
default: M(() => [
|
|
1171
1180
|
y(o, {
|
|
1172
1181
|
modelValue: e.value.ip,
|
|
1173
1182
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -1179,7 +1188,7 @@ const Ke = {
|
|
|
1179
1188
|
label: "Receipt Payment Name",
|
|
1180
1189
|
"label-info": "Default receipt display will be 'TERMINAL_NETS'"
|
|
1181
1190
|
}, null, 8, ["modelValue"]),
|
|
1182
|
-
I("div",
|
|
1191
|
+
I("div", va, [
|
|
1183
1192
|
y(o, {
|
|
1184
1193
|
modelValue: r.value,
|
|
1185
1194
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1192,22 +1201,22 @@ const Ke = {
|
|
|
1192
1201
|
onClick: m
|
|
1193
1202
|
})
|
|
1194
1203
|
]),
|
|
1195
|
-
I("div",
|
|
1196
|
-
(g(!0), S(
|
|
1204
|
+
I("div", ya, [
|
|
1205
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1197
1206
|
key: n,
|
|
1198
1207
|
label: n,
|
|
1199
1208
|
removable: !0,
|
|
1200
1209
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1201
1210
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1202
1211
|
]),
|
|
1203
|
-
I("div",
|
|
1212
|
+
I("div", fa, [
|
|
1204
1213
|
l.value > -1 ? (g(), F(i, {
|
|
1205
1214
|
key: 0,
|
|
1206
1215
|
class: "flex-1",
|
|
1207
1216
|
variant: "secondary",
|
|
1208
1217
|
label: "Delete",
|
|
1209
1218
|
onclick: () => v(l.value)
|
|
1210
|
-
}, null, 8, ["onclick"])) :
|
|
1219
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1211
1220
|
y(i, {
|
|
1212
1221
|
type: "submit",
|
|
1213
1222
|
class: "flex-1",
|
|
@@ -1220,7 +1229,7 @@ const Ke = {
|
|
|
1220
1229
|
}, 512);
|
|
1221
1230
|
};
|
|
1222
1231
|
}
|
|
1223
|
-
}),
|
|
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({
|
|
1224
1233
|
__name: "KBankGateway",
|
|
1225
1234
|
props: {
|
|
1226
1235
|
terminal: {
|
|
@@ -1285,14 +1294,14 @@ const Ke = {
|
|
|
1285
1294
|
})), p.onUpdate(a.value);
|
|
1286
1295
|
})
|
|
1287
1296
|
}, {
|
|
1288
|
-
default:
|
|
1297
|
+
default: M(() => [
|
|
1289
1298
|
y(o, {
|
|
1290
1299
|
modelValue: e.value.receiptName,
|
|
1291
1300
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1292
1301
|
label: "Receipt Payment Name",
|
|
1293
1302
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
|
1294
1303
|
}, null, 8, ["modelValue"]),
|
|
1295
|
-
I("div",
|
|
1304
|
+
I("div", ba, [
|
|
1296
1305
|
y(o, {
|
|
1297
1306
|
modelValue: r.value,
|
|
1298
1307
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1305,22 +1314,22 @@ const Ke = {
|
|
|
1305
1314
|
onClick: m
|
|
1306
1315
|
})
|
|
1307
1316
|
]),
|
|
1308
|
-
I("div",
|
|
1309
|
-
(g(!0), S(
|
|
1317
|
+
I("div", _a, [
|
|
1318
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1310
1319
|
key: n,
|
|
1311
1320
|
label: n,
|
|
1312
1321
|
removable: !0,
|
|
1313
1322
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1314
1323
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1315
1324
|
]),
|
|
1316
|
-
I("div",
|
|
1325
|
+
I("div", Ta, [
|
|
1317
1326
|
l.value > -1 ? (g(), F(i, {
|
|
1318
1327
|
key: 0,
|
|
1319
1328
|
class: "flex-1",
|
|
1320
1329
|
variant: "secondary",
|
|
1321
1330
|
label: "Delete",
|
|
1322
1331
|
onclick: () => v(l.value)
|
|
1323
|
-
}, null, 8, ["onclick"])) :
|
|
1332
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1324
1333
|
y(i, {
|
|
1325
1334
|
type: "submit",
|
|
1326
1335
|
class: "flex-1",
|
|
@@ -1333,7 +1342,7 @@ const Ke = {
|
|
|
1333
1342
|
}, 512);
|
|
1334
1343
|
};
|
|
1335
1344
|
}
|
|
1336
|
-
}),
|
|
1345
|
+
}), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */ R({
|
|
1337
1346
|
__name: "Ghl2Gateway",
|
|
1338
1347
|
props: {
|
|
1339
1348
|
terminal: {
|
|
@@ -1386,7 +1395,7 @@ const Ke = {
|
|
|
1386
1395
|
}), p.onUpdate(a.value);
|
|
1387
1396
|
})
|
|
1388
1397
|
}, {
|
|
1389
|
-
default:
|
|
1398
|
+
default: M(() => [
|
|
1390
1399
|
y(s, {
|
|
1391
1400
|
modelValue: r.value.ip,
|
|
1392
1401
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.ip = i),
|
|
@@ -1398,14 +1407,14 @@ const Ke = {
|
|
|
1398
1407
|
label: "Receipt Payment Name",
|
|
1399
1408
|
"label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
|
|
1400
1409
|
}, null, 8, ["modelValue"]),
|
|
1401
|
-
I("div",
|
|
1410
|
+
I("div", Fa, [
|
|
1402
1411
|
l.value > -1 ? (g(), F(t, {
|
|
1403
1412
|
key: 0,
|
|
1404
1413
|
class: "flex-1",
|
|
1405
1414
|
variant: "secondary",
|
|
1406
1415
|
label: "Delete",
|
|
1407
1416
|
onclick: () => c(l.value)
|
|
1408
|
-
}, null, 8, ["onclick"])) :
|
|
1417
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1409
1418
|
y(t, {
|
|
1410
1419
|
type: "submit",
|
|
1411
1420
|
class: "flex-1",
|
|
@@ -1418,7 +1427,7 @@ const Ke = {
|
|
|
1418
1427
|
}, 512);
|
|
1419
1428
|
};
|
|
1420
1429
|
}
|
|
1421
|
-
}),
|
|
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({
|
|
1422
1431
|
__name: "Ghl3Gateway",
|
|
1423
1432
|
props: {
|
|
1424
1433
|
terminal: {
|
|
@@ -1487,14 +1496,14 @@ const Ke = {
|
|
|
1487
1496
|
})), p.onUpdate(a.value);
|
|
1488
1497
|
})
|
|
1489
1498
|
}, {
|
|
1490
|
-
default:
|
|
1499
|
+
default: M(() => [
|
|
1491
1500
|
y(o, {
|
|
1492
1501
|
modelValue: e.value.receiptName,
|
|
1493
1502
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1494
1503
|
label: "Receipt Payment Name",
|
|
1495
1504
|
"label-info": "Default receipt display will be 'TERMINAL_GHL'"
|
|
1496
1505
|
}, null, 8, ["modelValue"]),
|
|
1497
|
-
I("div",
|
|
1506
|
+
I("div", xa, [
|
|
1498
1507
|
y(o, {
|
|
1499
1508
|
modelValue: r.value,
|
|
1500
1509
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1507,22 +1516,22 @@ const Ke = {
|
|
|
1507
1516
|
onClick: m
|
|
1508
1517
|
})
|
|
1509
1518
|
]),
|
|
1510
|
-
I("div",
|
|
1511
|
-
(g(!0), S(
|
|
1519
|
+
I("div", Ca, [
|
|
1520
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1512
1521
|
key: n,
|
|
1513
1522
|
label: n,
|
|
1514
1523
|
removable: !0,
|
|
1515
1524
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1516
1525
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1517
1526
|
]),
|
|
1518
|
-
I("div",
|
|
1527
|
+
I("div", ka, [
|
|
1519
1528
|
l.value > -1 ? (g(), F(i, {
|
|
1520
1529
|
key: 0,
|
|
1521
1530
|
class: "flex-1",
|
|
1522
1531
|
variant: "secondary",
|
|
1523
1532
|
label: "Delete",
|
|
1524
1533
|
onclick: () => v(l.value)
|
|
1525
|
-
}, null, 8, ["onclick"])) :
|
|
1534
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1526
1535
|
y(i, {
|
|
1527
1536
|
type: "submit",
|
|
1528
1537
|
class: "flex-1",
|
|
@@ -1535,7 +1544,7 @@ const Ke = {
|
|
|
1535
1544
|
}, 512);
|
|
1536
1545
|
};
|
|
1537
1546
|
}
|
|
1538
|
-
}),
|
|
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({
|
|
1539
1548
|
__name: "HlbbGateway",
|
|
1540
1549
|
props: {
|
|
1541
1550
|
terminal: {
|
|
@@ -1604,14 +1613,14 @@ const Ke = {
|
|
|
1604
1613
|
})), p.onUpdate(a.value);
|
|
1605
1614
|
})
|
|
1606
1615
|
}, {
|
|
1607
|
-
default:
|
|
1616
|
+
default: M(() => [
|
|
1608
1617
|
y(o, {
|
|
1609
1618
|
modelValue: e.value.receiptName,
|
|
1610
1619
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1611
1620
|
label: "Receipt Payment Name",
|
|
1612
1621
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1613
1622
|
}, null, 8, ["modelValue"]),
|
|
1614
|
-
I("div",
|
|
1623
|
+
I("div", Va, [
|
|
1615
1624
|
y(o, {
|
|
1616
1625
|
modelValue: r.value,
|
|
1617
1626
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1624,22 +1633,22 @@ const Ke = {
|
|
|
1624
1633
|
onClick: m
|
|
1625
1634
|
})
|
|
1626
1635
|
]),
|
|
1627
|
-
I("div",
|
|
1628
|
-
(g(!0), S(
|
|
1636
|
+
I("div", Sa, [
|
|
1637
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1629
1638
|
key: n,
|
|
1630
1639
|
label: n,
|
|
1631
1640
|
removable: !0,
|
|
1632
1641
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1633
1642
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1634
1643
|
]),
|
|
1635
|
-
I("div",
|
|
1644
|
+
I("div", Ua, [
|
|
1636
1645
|
l.value > -1 ? (g(), F(i, {
|
|
1637
1646
|
key: 0,
|
|
1638
1647
|
class: "flex-1",
|
|
1639
1648
|
variant: "secondary",
|
|
1640
1649
|
label: "Delete",
|
|
1641
1650
|
onclick: () => v(l.value)
|
|
1642
|
-
}, null, 8, ["onclick"])) :
|
|
1651
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1643
1652
|
y(i, {
|
|
1644
1653
|
type: "submit",
|
|
1645
1654
|
class: "flex-1",
|
|
@@ -1652,7 +1661,7 @@ const Ke = {
|
|
|
1652
1661
|
}, 512);
|
|
1653
1662
|
};
|
|
1654
1663
|
}
|
|
1655
|
-
}),
|
|
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({
|
|
1656
1665
|
__name: "GlobalPaymentsGateway",
|
|
1657
1666
|
props: {
|
|
1658
1667
|
terminal: {
|
|
@@ -1721,7 +1730,7 @@ const Ke = {
|
|
|
1721
1730
|
})), p.onUpdate(a.value);
|
|
1722
1731
|
})
|
|
1723
1732
|
}, {
|
|
1724
|
-
default:
|
|
1733
|
+
default: M(() => [
|
|
1725
1734
|
y(o, {
|
|
1726
1735
|
modelValue: e.value.ip,
|
|
1727
1736
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -1733,7 +1742,7 @@ const Ke = {
|
|
|
1733
1742
|
label: "Receipt Payment Name",
|
|
1734
1743
|
"label-info": "Default receipt display will be 'TERMINAL_GP'"
|
|
1735
1744
|
}, null, 8, ["modelValue"]),
|
|
1736
|
-
I("div",
|
|
1745
|
+
I("div", Ra, [
|
|
1737
1746
|
y(o, {
|
|
1738
1747
|
modelValue: r.value,
|
|
1739
1748
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1746,22 +1755,22 @@ const Ke = {
|
|
|
1746
1755
|
onClick: m
|
|
1747
1756
|
})
|
|
1748
1757
|
]),
|
|
1749
|
-
I("div",
|
|
1750
|
-
(g(!0), S(
|
|
1758
|
+
I("div", Pa, [
|
|
1759
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1751
1760
|
key: n,
|
|
1752
1761
|
label: n,
|
|
1753
1762
|
removable: !0,
|
|
1754
1763
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1755
1764
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1756
1765
|
]),
|
|
1757
|
-
I("div",
|
|
1766
|
+
I("div", Ba, [
|
|
1758
1767
|
l.value > -1 ? (g(), F(i, {
|
|
1759
1768
|
key: 0,
|
|
1760
1769
|
class: "flex-1",
|
|
1761
1770
|
variant: "secondary",
|
|
1762
1771
|
label: "Delete",
|
|
1763
1772
|
onclick: () => v(l.value)
|
|
1764
|
-
}, null, 8, ["onclick"])) :
|
|
1773
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1765
1774
|
y(i, {
|
|
1766
1775
|
type: "submit",
|
|
1767
1776
|
class: "flex-1",
|
|
@@ -1774,7 +1783,7 @@ const Ke = {
|
|
|
1774
1783
|
}, 512);
|
|
1775
1784
|
};
|
|
1776
1785
|
}
|
|
1777
|
-
}),
|
|
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({
|
|
1778
1787
|
__name: "OmaGateway",
|
|
1779
1788
|
props: {
|
|
1780
1789
|
terminal: {
|
|
@@ -1841,14 +1850,14 @@ const Ke = {
|
|
|
1841
1850
|
})), p.onUpdate(a.value);
|
|
1842
1851
|
})
|
|
1843
1852
|
}, {
|
|
1844
|
-
default:
|
|
1853
|
+
default: M(() => [
|
|
1845
1854
|
y(o, {
|
|
1846
1855
|
modelValue: e.value.receiptName,
|
|
1847
1856
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
|
|
1848
1857
|
label: "Receipt Payment Name",
|
|
1849
1858
|
"label-info": "Default receipt display will be 'TERMINAL_OMA'"
|
|
1850
1859
|
}, null, 8, ["modelValue"]),
|
|
1851
|
-
I("div",
|
|
1860
|
+
I("div", Ma, [
|
|
1852
1861
|
y(o, {
|
|
1853
1862
|
modelValue: r.value,
|
|
1854
1863
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1861,22 +1870,22 @@ const Ke = {
|
|
|
1861
1870
|
onClick: m
|
|
1862
1871
|
})
|
|
1863
1872
|
]),
|
|
1864
|
-
I("div",
|
|
1865
|
-
(g(!0), S(
|
|
1873
|
+
I("div", Aa, [
|
|
1874
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1866
1875
|
key: n,
|
|
1867
1876
|
label: n,
|
|
1868
1877
|
removable: !0,
|
|
1869
1878
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1870
1879
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1871
1880
|
]),
|
|
1872
|
-
I("div",
|
|
1881
|
+
I("div", qa, [
|
|
1873
1882
|
l.value > -1 ? (g(), F(i, {
|
|
1874
1883
|
key: 0,
|
|
1875
1884
|
class: "flex-1",
|
|
1876
1885
|
variant: "secondary",
|
|
1877
1886
|
label: "Delete",
|
|
1878
1887
|
onclick: () => v(l.value)
|
|
1879
|
-
}, null, 8, ["onclick"])) :
|
|
1888
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
1880
1889
|
y(i, {
|
|
1881
1890
|
type: "submit",
|
|
1882
1891
|
class: "flex-1",
|
|
@@ -1889,7 +1898,7 @@ const Ke = {
|
|
|
1889
1898
|
}, 512);
|
|
1890
1899
|
};
|
|
1891
1900
|
}
|
|
1892
|
-
}),
|
|
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({
|
|
1893
1902
|
__name: "RevenueGateway",
|
|
1894
1903
|
props: {
|
|
1895
1904
|
terminal: {
|
|
@@ -1962,13 +1971,13 @@ const Ke = {
|
|
|
1962
1971
|
})), p.onUpdate(a.value);
|
|
1963
1972
|
})
|
|
1964
1973
|
}, {
|
|
1965
|
-
default:
|
|
1974
|
+
default: M(() => [
|
|
1966
1975
|
y(o, {
|
|
1967
1976
|
modelValue: e.value.ip,
|
|
1968
1977
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
1969
1978
|
label: "Terminal IP Address",
|
|
1970
1979
|
"label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)",
|
|
1971
|
-
rules: N(
|
|
1980
|
+
rules: N(ee)(N(ae).string().min(1))
|
|
1972
1981
|
}, null, 8, ["modelValue", "rules"]),
|
|
1973
1982
|
y(o, {
|
|
1974
1983
|
modelValue: e.value.receiptName,
|
|
@@ -1976,7 +1985,7 @@ const Ke = {
|
|
|
1976
1985
|
label: "Receipt Payment Name",
|
|
1977
1986
|
"label-info": "Default receipt display will be 'TERMINAL_REVENUE'"
|
|
1978
1987
|
}, null, 8, ["modelValue"]),
|
|
1979
|
-
I("div",
|
|
1988
|
+
I("div", Da, [
|
|
1980
1989
|
y(o, {
|
|
1981
1990
|
modelValue: r.value,
|
|
1982
1991
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1989,22 +1998,22 @@ const Ke = {
|
|
|
1989
1998
|
onClick: m
|
|
1990
1999
|
})
|
|
1991
2000
|
]),
|
|
1992
|
-
I("div",
|
|
1993
|
-
(g(!0), S(
|
|
2001
|
+
I("div", $a, [
|
|
2002
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1994
2003
|
key: n,
|
|
1995
2004
|
label: n,
|
|
1996
2005
|
removable: !0,
|
|
1997
2006
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1998
2007
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1999
2008
|
]),
|
|
2000
|
-
I("div",
|
|
2009
|
+
I("div", Ea, [
|
|
2001
2010
|
l.value > -1 ? (g(), F(i, {
|
|
2002
2011
|
key: 0,
|
|
2003
2012
|
class: "flex-1",
|
|
2004
2013
|
variant: "secondary",
|
|
2005
2014
|
label: "Delete",
|
|
2006
2015
|
onclick: () => v(l.value)
|
|
2007
|
-
}, null, 8, ["onclick"])) :
|
|
2016
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2008
2017
|
y(i, {
|
|
2009
2018
|
type: "submit",
|
|
2010
2019
|
class: "flex-1",
|
|
@@ -2017,10 +2026,10 @@ const Ke = {
|
|
|
2017
2026
|
}, 512);
|
|
2018
2027
|
};
|
|
2019
2028
|
}
|
|
2020
|
-
}),
|
|
2029
|
+
}), Ya = {
|
|
2021
2030
|
key: 0,
|
|
2022
2031
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2023
|
-
},
|
|
2032
|
+
}, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */ R({
|
|
2024
2033
|
__name: "BeamGateway",
|
|
2025
2034
|
props: {
|
|
2026
2035
|
terminal: {
|
|
@@ -2033,13 +2042,13 @@ const Ke = {
|
|
|
2033
2042
|
}
|
|
2034
2043
|
},
|
|
2035
2044
|
setup(T) {
|
|
2036
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
2045
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
2037
2046
|
externalTerminalId: ""
|
|
2038
2047
|
}), v = () => {
|
|
2039
2048
|
c.value.externalTerminalId = "", d.value = -1;
|
|
2040
2049
|
}, m = () => {
|
|
2041
2050
|
if (a(async () => {
|
|
2042
|
-
r.value = await
|
|
2051
|
+
r.value = await fe.getRestaurantExternalTerminals(
|
|
2043
2052
|
b.terminal.referenceId,
|
|
2044
2053
|
"BEAM"
|
|
2045
2054
|
);
|
|
@@ -2065,7 +2074,7 @@ const Ke = {
|
|
|
2065
2074
|
}
|
|
2066
2075
|
return (o, i) => {
|
|
2067
2076
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
2068
|
-
return N(p) ? (g(), S("div",
|
|
2077
|
+
return N(p) ? (g(), S("div", Ya, [
|
|
2069
2078
|
y(u, { size: "xxl" })
|
|
2070
2079
|
])) : (g(), F(x, {
|
|
2071
2080
|
key: 1,
|
|
@@ -2075,22 +2084,22 @@ const Ke = {
|
|
|
2075
2084
|
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);
|
|
2076
2085
|
})
|
|
2077
2086
|
}, {
|
|
2078
|
-
default:
|
|
2087
|
+
default: M(() => [
|
|
2079
2088
|
y(C, {
|
|
2080
2089
|
modelValue: c.value.externalTerminalId,
|
|
2081
2090
|
"onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.externalTerminalId = E),
|
|
2082
2091
|
label: "External Terminal",
|
|
2083
2092
|
items: s.value,
|
|
2084
|
-
rules: N(
|
|
2093
|
+
rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
|
|
2085
2094
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
2086
|
-
I("div",
|
|
2095
|
+
I("div", ja, [
|
|
2087
2096
|
d.value > -1 ? (g(), F(n, {
|
|
2088
2097
|
key: 0,
|
|
2089
2098
|
class: "flex-1",
|
|
2090
2099
|
variant: "secondary",
|
|
2091
2100
|
label: "Delete",
|
|
2092
2101
|
onclick: () => t(d.value)
|
|
2093
|
-
}, null, 8, ["onclick"])) :
|
|
2102
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2094
2103
|
y(n, {
|
|
2095
2104
|
type: "submit",
|
|
2096
2105
|
class: "flex-1",
|
|
@@ -2103,10 +2112,10 @@ const Ke = {
|
|
|
2103
2112
|
}, 512));
|
|
2104
2113
|
};
|
|
2105
2114
|
}
|
|
2106
|
-
}),
|
|
2115
|
+
}), Ha = {
|
|
2107
2116
|
key: 0,
|
|
2108
2117
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2109
|
-
},
|
|
2118
|
+
}, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */ R({
|
|
2110
2119
|
__name: "BriGateway",
|
|
2111
2120
|
props: {
|
|
2112
2121
|
terminal: {
|
|
@@ -2119,13 +2128,13 @@ const Ke = {
|
|
|
2119
2128
|
}
|
|
2120
2129
|
},
|
|
2121
2130
|
setup(T) {
|
|
2122
|
-
const { isLoading: p, startAsyncCall: a } =
|
|
2131
|
+
const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
|
|
2123
2132
|
externalTerminalId: ""
|
|
2124
2133
|
}), v = () => {
|
|
2125
2134
|
c.value.externalTerminalId = "", d.value = -1;
|
|
2126
2135
|
}, m = () => {
|
|
2127
2136
|
if (a(async () => {
|
|
2128
|
-
r.value = await
|
|
2137
|
+
r.value = await fe.getRestaurantExternalTerminals(
|
|
2129
2138
|
b.terminal.referenceId,
|
|
2130
2139
|
"BRI"
|
|
2131
2140
|
);
|
|
@@ -2151,7 +2160,7 @@ const Ke = {
|
|
|
2151
2160
|
}
|
|
2152
2161
|
return (i, u) => {
|
|
2153
2162
|
const C = f("FmCircularProgress"), n = f("FmSelect"), x = f("FmButton"), E = f("FmForm");
|
|
2154
|
-
return N(p) ? (g(), S("div",
|
|
2163
|
+
return N(p) ? (g(), S("div", Ha, [
|
|
2155
2164
|
y(C, { size: "xxl" })
|
|
2156
2165
|
])) : (g(), F(E, {
|
|
2157
2166
|
key: 1,
|
|
@@ -2161,23 +2170,23 @@ const Ke = {
|
|
|
2161
2170
|
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);
|
|
2162
2171
|
})
|
|
2163
2172
|
}, {
|
|
2164
|
-
default:
|
|
2173
|
+
default: M(() => [
|
|
2165
2174
|
y(n, {
|
|
2166
2175
|
modelValue: c.value.externalTerminalId,
|
|
2167
2176
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => c.value.externalTerminalId = w),
|
|
2168
2177
|
label: "External Terminal",
|
|
2169
2178
|
items: s.value,
|
|
2170
2179
|
"helper-text": t.value,
|
|
2171
|
-
rules: N(
|
|
2180
|
+
rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
|
|
2172
2181
|
}, null, 8, ["modelValue", "items", "helper-text", "rules"]),
|
|
2173
|
-
I("div",
|
|
2182
|
+
I("div", za, [
|
|
2174
2183
|
d.value > -1 ? (g(), F(x, {
|
|
2175
2184
|
key: 0,
|
|
2176
2185
|
class: "flex-1",
|
|
2177
2186
|
variant: "secondary",
|
|
2178
2187
|
label: "Delete",
|
|
2179
2188
|
onclick: () => o(d.value)
|
|
2180
|
-
}, null, 8, ["onclick"])) :
|
|
2189
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2181
2190
|
y(x, {
|
|
2182
2191
|
type: "submit",
|
|
2183
2192
|
class: "flex-1",
|
|
@@ -2190,7 +2199,7 @@ const Ke = {
|
|
|
2190
2199
|
}, 512));
|
|
2191
2200
|
};
|
|
2192
2201
|
}
|
|
2193
|
-
}),
|
|
2202
|
+
}), 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({
|
|
2194
2203
|
__name: "PbbGateway",
|
|
2195
2204
|
props: {
|
|
2196
2205
|
terminal: {
|
|
@@ -2257,7 +2266,7 @@ const Ke = {
|
|
|
2257
2266
|
})), p.onUpdate(a.value);
|
|
2258
2267
|
})
|
|
2259
2268
|
}, {
|
|
2260
|
-
default:
|
|
2269
|
+
default: M(() => [
|
|
2261
2270
|
y(o, {
|
|
2262
2271
|
modelValue: e.value.ip,
|
|
2263
2272
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
|
|
@@ -2269,7 +2278,7 @@ const Ke = {
|
|
|
2269
2278
|
label: "Receipt Payment Name",
|
|
2270
2279
|
"label-info": "Default receipt display will be 'TERMINAL_PBB'"
|
|
2271
2280
|
}, null, 8, ["modelValue"]),
|
|
2272
|
-
I("div",
|
|
2281
|
+
I("div", Ja, [
|
|
2273
2282
|
y(o, {
|
|
2274
2283
|
modelValue: r.value,
|
|
2275
2284
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -2282,22 +2291,22 @@ const Ke = {
|
|
|
2282
2291
|
onClick: m
|
|
2283
2292
|
})
|
|
2284
2293
|
]),
|
|
2285
|
-
I("div",
|
|
2286
|
-
(g(!0), S(
|
|
2294
|
+
I("div", Wa, [
|
|
2295
|
+
(g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
2287
2296
|
key: n,
|
|
2288
2297
|
label: n,
|
|
2289
2298
|
removable: !0,
|
|
2290
2299
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
2291
2300
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
2292
2301
|
]),
|
|
2293
|
-
I("div",
|
|
2302
|
+
I("div", Xa, [
|
|
2294
2303
|
l.value > -1 ? (g(), F(i, {
|
|
2295
2304
|
key: 0,
|
|
2296
2305
|
class: "flex-1",
|
|
2297
2306
|
variant: "secondary",
|
|
2298
2307
|
label: "Delete",
|
|
2299
2308
|
onclick: () => v(l.value)
|
|
2300
|
-
}, null, 8, ["onclick"])) :
|
|
2309
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2301
2310
|
y(i, {
|
|
2302
2311
|
type: "submit",
|
|
2303
2312
|
class: "flex-1",
|
|
@@ -2310,7 +2319,7 @@ const Ke = {
|
|
|
2310
2319
|
}, 512);
|
|
2311
2320
|
};
|
|
2312
2321
|
}
|
|
2313
|
-
}),
|
|
2322
|
+
}), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */ R({
|
|
2314
2323
|
__name: "EcrGateway",
|
|
2315
2324
|
props: {
|
|
2316
2325
|
terminal: {
|
|
@@ -2328,96 +2337,96 @@ const Ke = {
|
|
|
2328
2337
|
{
|
|
2329
2338
|
label: "FeedMe Terminal",
|
|
2330
2339
|
value: "terminal",
|
|
2331
|
-
render:
|
|
2340
|
+
render: Ze
|
|
2332
2341
|
},
|
|
2333
2342
|
{
|
|
2334
2343
|
label: "GHL Terminal",
|
|
2335
2344
|
value: "ghl",
|
|
2336
|
-
render:
|
|
2345
|
+
render: aa,
|
|
2337
2346
|
region: [P.F_COUNTRY.enum.MY]
|
|
2338
2347
|
},
|
|
2339
2348
|
{
|
|
2340
2349
|
label: "GHL2 Terminal",
|
|
2341
2350
|
value: "ghl2",
|
|
2342
|
-
render:
|
|
2351
|
+
render: wa,
|
|
2343
2352
|
region: [P.F_COUNTRY.enum.MY]
|
|
2344
2353
|
},
|
|
2345
2354
|
{
|
|
2346
2355
|
label: "ITB Maybank Terminal",
|
|
2347
2356
|
value: "mb-itb",
|
|
2348
|
-
render:
|
|
2357
|
+
render: oa,
|
|
2349
2358
|
region: [P.F_COUNTRY.enum.MY]
|
|
2350
2359
|
},
|
|
2351
2360
|
{
|
|
2352
2361
|
label: "PMA Maybank Terminal",
|
|
2353
2362
|
value: "mb-pma",
|
|
2354
|
-
render:
|
|
2363
|
+
render: ua,
|
|
2355
2364
|
region: [P.F_COUNTRY.enum.MY]
|
|
2356
2365
|
},
|
|
2357
2366
|
{
|
|
2358
2367
|
label: "Paysys Maybank Terminal",
|
|
2359
2368
|
value: "mb-paysys",
|
|
2360
|
-
render:
|
|
2369
|
+
render: pa,
|
|
2361
2370
|
region: [P.F_COUNTRY.enum.MY]
|
|
2362
2371
|
},
|
|
2363
2372
|
{
|
|
2364
2373
|
label: "Nets Terminal",
|
|
2365
2374
|
value: "nets",
|
|
2366
|
-
render:
|
|
2375
|
+
render: ga,
|
|
2367
2376
|
region: [P.F_COUNTRY.enum.SG]
|
|
2368
2377
|
},
|
|
2369
2378
|
{
|
|
2370
2379
|
label: "KBank Terminal",
|
|
2371
2380
|
value: "kbank",
|
|
2372
|
-
render:
|
|
2381
|
+
render: Ia,
|
|
2373
2382
|
region: [P.F_COUNTRY.enum.TH]
|
|
2374
2383
|
},
|
|
2375
2384
|
{
|
|
2376
2385
|
label: "GHL Terminal",
|
|
2377
2386
|
value: "ghl3",
|
|
2378
|
-
render:
|
|
2387
|
+
render: Na,
|
|
2379
2388
|
region: [P.F_COUNTRY.enum.TH]
|
|
2380
2389
|
},
|
|
2381
2390
|
{
|
|
2382
2391
|
label: "Paysys HLBB Terminal",
|
|
2383
2392
|
value: "hlbb",
|
|
2384
|
-
render:
|
|
2393
|
+
render: ha,
|
|
2385
2394
|
region: [P.F_COUNTRY.enum.MY]
|
|
2386
2395
|
},
|
|
2387
2396
|
{
|
|
2388
2397
|
label: "GPAP Terminal",
|
|
2389
2398
|
value: "globalpayments",
|
|
2390
|
-
render:
|
|
2399
|
+
render: Oa,
|
|
2391
2400
|
region: [P.F_COUNTRY.enum.SG]
|
|
2392
2401
|
},
|
|
2393
2402
|
{
|
|
2394
2403
|
label: "OMA Terminal",
|
|
2395
2404
|
value: "oma",
|
|
2396
|
-
render:
|
|
2405
|
+
render: Ga,
|
|
2397
2406
|
region: [P.F_COUNTRY.enum.PK]
|
|
2398
2407
|
},
|
|
2399
2408
|
{
|
|
2400
2409
|
label: "Revenue PBB Terminal",
|
|
2401
2410
|
value: "revenue",
|
|
2402
|
-
render:
|
|
2411
|
+
render: La,
|
|
2403
2412
|
region: [P.F_COUNTRY.enum.MY]
|
|
2404
2413
|
},
|
|
2405
2414
|
{
|
|
2406
2415
|
label: "PBB Terminal",
|
|
2407
2416
|
value: "pbb",
|
|
2408
|
-
render:
|
|
2417
|
+
render: Za,
|
|
2409
2418
|
region: [P.F_COUNTRY.enum.MY]
|
|
2410
2419
|
},
|
|
2411
2420
|
{
|
|
2412
2421
|
label: "Beam Terminal",
|
|
2413
2422
|
value: "beam",
|
|
2414
|
-
render:
|
|
2423
|
+
render: Ka,
|
|
2415
2424
|
region: [P.F_COUNTRY.enum.TH]
|
|
2416
2425
|
},
|
|
2417
2426
|
{
|
|
2418
2427
|
label: "BRI Terminal",
|
|
2419
2428
|
value: "bri",
|
|
2420
|
-
render:
|
|
2429
|
+
render: Qa,
|
|
2421
2430
|
region: [P.F_COUNTRY.enum.ID]
|
|
2422
2431
|
}
|
|
2423
2432
|
], b = V(() => a.find((c) => c.value === e.value)), l = se().currentCountry, r = V(() => a.filter(
|
|
@@ -2428,8 +2437,8 @@ const Ke = {
|
|
|
2428
2437
|
return (c, v) => {
|
|
2429
2438
|
var s;
|
|
2430
2439
|
const m = f("FmTabs");
|
|
2431
|
-
return g(), S("div",
|
|
2432
|
-
I("div",
|
|
2440
|
+
return g(), S("div", et, [
|
|
2441
|
+
I("div", at, [
|
|
2433
2442
|
y(m, {
|
|
2434
2443
|
"model-value": N(e),
|
|
2435
2444
|
"onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
|
|
@@ -2439,16 +2448,16 @@ const Ke = {
|
|
|
2439
2448
|
"show-more-at": Number.POSITIVE_INFINITY
|
|
2440
2449
|
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
2441
2450
|
]),
|
|
2442
|
-
I("div",
|
|
2451
|
+
I("div", tt, [
|
|
2443
2452
|
N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
|
|
2444
2453
|
terminal: p.terminal,
|
|
2445
2454
|
onUpdate: p.onUpdate
|
|
2446
|
-
})), null, 16)) :
|
|
2455
|
+
})), null, 16)) : h("", !0)
|
|
2447
2456
|
])
|
|
2448
2457
|
]);
|
|
2449
2458
|
};
|
|
2450
2459
|
}
|
|
2451
|
-
}),
|
|
2460
|
+
}), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */ R({
|
|
2452
2461
|
__name: "PromptPayGateway",
|
|
2453
2462
|
props: {
|
|
2454
2463
|
terminal: {
|
|
@@ -2493,7 +2502,7 @@ const Ke = {
|
|
|
2493
2502
|
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);
|
|
2494
2503
|
})
|
|
2495
2504
|
}, {
|
|
2496
|
-
default:
|
|
2505
|
+
default: M(() => [
|
|
2497
2506
|
y(s, {
|
|
2498
2507
|
modelValue: r.value.account,
|
|
2499
2508
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.account = i),
|
|
@@ -2506,14 +2515,14 @@ const Ke = {
|
|
|
2506
2515
|
label: "Receipt Payment Name",
|
|
2507
2516
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
2508
2517
|
}, null, 8, ["modelValue"]),
|
|
2509
|
-
I("div",
|
|
2518
|
+
I("div", nt, [
|
|
2510
2519
|
l.value > -1 ? (g(), F(t, {
|
|
2511
2520
|
key: 0,
|
|
2512
2521
|
class: "flex-1",
|
|
2513
2522
|
variant: "secondary",
|
|
2514
2523
|
label: "Delete",
|
|
2515
2524
|
onclick: () => c(l.value)
|
|
2516
|
-
}, null, 8, ["onclick"])) :
|
|
2525
|
+
}, null, 8, ["onclick"])) : h("", !0),
|
|
2517
2526
|
y(t, {
|
|
2518
2527
|
type: "submit",
|
|
2519
2528
|
class: "flex-1",
|
|
@@ -2526,7 +2535,7 @@ const Ke = {
|
|
|
2526
2535
|
}, 512);
|
|
2527
2536
|
};
|
|
2528
2537
|
}
|
|
2529
|
-
}),
|
|
2538
|
+
}), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */ R({
|
|
2530
2539
|
__name: "QrGateway",
|
|
2531
2540
|
props: {
|
|
2532
2541
|
terminal: {
|
|
@@ -2544,7 +2553,7 @@ const Ke = {
|
|
|
2544
2553
|
{
|
|
2545
2554
|
label: "PromptPay",
|
|
2546
2555
|
value: "promptpay",
|
|
2547
|
-
render:
|
|
2556
|
+
render: ot,
|
|
2548
2557
|
region: [P.F_COUNTRY.enum.TH]
|
|
2549
2558
|
}
|
|
2550
2559
|
], b = V(() => a.find((c) => c.value === e.value)), l = se().currentCountry, r = V(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = re({
|
|
@@ -2553,8 +2562,8 @@ const Ke = {
|
|
|
2553
2562
|
return (c, v) => {
|
|
2554
2563
|
var s;
|
|
2555
2564
|
const m = f("FmTabs");
|
|
2556
|
-
return g(), S("div",
|
|
2557
|
-
I("div",
|
|
2565
|
+
return g(), S("div", rt, [
|
|
2566
|
+
I("div", it, [
|
|
2558
2567
|
y(m, {
|
|
2559
2568
|
"model-value": N(e),
|
|
2560
2569
|
"onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
|
|
@@ -2563,16 +2572,16 @@ const Ke = {
|
|
|
2563
2572
|
items: r.value
|
|
2564
2573
|
}, null, 8, ["model-value", "items"])
|
|
2565
2574
|
]),
|
|
2566
|
-
I("div",
|
|
2575
|
+
I("div", st, [
|
|
2567
2576
|
N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
|
|
2568
2577
|
terminal: p.terminal,
|
|
2569
2578
|
onUpdate: p.onUpdate
|
|
2570
|
-
})), null, 16)) :
|
|
2579
|
+
})), null, 16)) : h("", !0)
|
|
2571
2580
|
])
|
|
2572
2581
|
]);
|
|
2573
2582
|
};
|
|
2574
2583
|
}
|
|
2575
|
-
}),
|
|
2584
|
+
}), kt = /* @__PURE__ */ R({
|
|
2576
2585
|
__name: "TerminalSetting",
|
|
2577
2586
|
props: {
|
|
2578
2587
|
terminalId: {
|
|
@@ -2583,7 +2592,7 @@ const Ke = {
|
|
|
2583
2592
|
setup(T) {
|
|
2584
2593
|
const p = T, { tab: a } = re({
|
|
2585
2594
|
tab: "information"
|
|
2586
|
-
}), { isLoading: b, startAsyncCall: l } =
|
|
2595
|
+
}), { isLoading: b, startAsyncCall: l } = X(!0), r = Ie(), e = me(), d = we(), { t: c } = ie(), v = _();
|
|
2587
2596
|
async function m(w, k) {
|
|
2588
2597
|
l(async () => {
|
|
2589
2598
|
try {
|
|
@@ -2599,11 +2608,11 @@ const Ke = {
|
|
|
2599
2608
|
type: "success",
|
|
2600
2609
|
message: "Terminal updated successfully"
|
|
2601
2610
|
});
|
|
2602
|
-
} catch (
|
|
2611
|
+
} catch (O) {
|
|
2603
2612
|
e.open({
|
|
2604
2613
|
type: "error",
|
|
2605
2614
|
title: "Error occurs when update terminal",
|
|
2606
|
-
message:
|
|
2615
|
+
message: W(O)
|
|
2607
2616
|
});
|
|
2608
2617
|
}
|
|
2609
2618
|
});
|
|
@@ -2613,43 +2622,43 @@ const Ke = {
|
|
|
2613
2622
|
label: "Information",
|
|
2614
2623
|
value: "information",
|
|
2615
2624
|
icon: "overview",
|
|
2616
|
-
render:
|
|
2625
|
+
render: Ve
|
|
2617
2626
|
},
|
|
2618
2627
|
{
|
|
2619
2628
|
label: "Setting Request",
|
|
2620
2629
|
value: "settings",
|
|
2621
2630
|
icon: "settings",
|
|
2622
|
-
render:
|
|
2631
|
+
render: Ee,
|
|
2623
2632
|
onlyFor: ["TERMINAL"]
|
|
2624
2633
|
},
|
|
2625
2634
|
{
|
|
2626
2635
|
label: "SoftPos Gateway",
|
|
2627
2636
|
value: "softpos",
|
|
2628
2637
|
icon: "payment",
|
|
2629
|
-
render:
|
|
2638
|
+
render: Je
|
|
2630
2639
|
},
|
|
2631
2640
|
{
|
|
2632
2641
|
label: "ECR Gateway",
|
|
2633
2642
|
value: "ecr",
|
|
2634
2643
|
icon: "point_of_sale",
|
|
2635
|
-
render:
|
|
2644
|
+
render: lt,
|
|
2636
2645
|
onlyFor: ["POS", "KIOSK"]
|
|
2637
2646
|
},
|
|
2638
2647
|
{
|
|
2639
2648
|
label: "QR Gateway",
|
|
2640
2649
|
value: "qr",
|
|
2641
2650
|
icon: "qr_code",
|
|
2642
|
-
render:
|
|
2651
|
+
render: ut,
|
|
2643
2652
|
onlyFor: ["POS", "KIOSK"]
|
|
2644
2653
|
},
|
|
2645
2654
|
{
|
|
2646
2655
|
label: "Payment Checkout",
|
|
2647
2656
|
value: "payment-checkout",
|
|
2648
2657
|
icon: "tune",
|
|
2649
|
-
render:
|
|
2658
|
+
render: Ne,
|
|
2650
2659
|
onlyFor: ["KIOSK", "POS"]
|
|
2651
2660
|
}
|
|
2652
|
-
], t =
|
|
2661
|
+
], t = ve.FdoTerminalTemplateDeviceType.options, o = V(
|
|
2653
2662
|
() => {
|
|
2654
2663
|
var w;
|
|
2655
2664
|
return t.includes(((w = v.value) == null ? void 0 : w.deviceType) ?? "");
|
|
@@ -2661,20 +2670,20 @@ const Ke = {
|
|
|
2661
2670
|
title: "Save as Template",
|
|
2662
2671
|
closeButton: !0,
|
|
2663
2672
|
overlay: !0,
|
|
2664
|
-
contentComponent:
|
|
2673
|
+
contentComponent: Re
|
|
2665
2674
|
}).onPrimary(async (k) => {
|
|
2666
2675
|
d.close();
|
|
2667
2676
|
try {
|
|
2668
|
-
await
|
|
2677
|
+
await pe.create({
|
|
2669
2678
|
name: k.name,
|
|
2670
2679
|
description: k.description,
|
|
2671
2680
|
businessId: w.restaurant.businessId,
|
|
2672
2681
|
deviceType: w.deviceType,
|
|
2673
2682
|
isDefault: k.isDefault,
|
|
2674
2683
|
settings: {
|
|
2675
|
-
ecrs: (w.ecrs ?? []).map(({ gateway:
|
|
2684
|
+
ecrs: (w.ecrs ?? []).map(({ gateway: O }) => ({ gateway: O })),
|
|
2676
2685
|
ecrIntegrations: (w.ecrIntegrations ?? []).map(
|
|
2677
|
-
({ gateway:
|
|
2686
|
+
({ gateway: O }) => ({ gateway: O })
|
|
2678
2687
|
),
|
|
2679
2688
|
paymentCheckouts: w.paymentCheckouts ?? []
|
|
2680
2689
|
}
|
|
@@ -2682,17 +2691,17 @@ const Ke = {
|
|
|
2682
2691
|
type: "success",
|
|
2683
2692
|
message: "Setting template created successfully."
|
|
2684
2693
|
});
|
|
2685
|
-
} catch (
|
|
2694
|
+
} catch (O) {
|
|
2686
2695
|
e.open({
|
|
2687
2696
|
type: "error",
|
|
2688
2697
|
title: "Error occurs when create setting template",
|
|
2689
|
-
message:
|
|
2698
|
+
message: W(O)
|
|
2690
2699
|
});
|
|
2691
2700
|
}
|
|
2692
2701
|
});
|
|
2693
2702
|
}
|
|
2694
2703
|
async function u() {
|
|
2695
|
-
const w = v.value, k = await
|
|
2704
|
+
const w = v.value, k = await pe.readByBusiness(
|
|
2696
2705
|
w.restaurant.businessId,
|
|
2697
2706
|
w.deviceType
|
|
2698
2707
|
);
|
|
@@ -2700,25 +2709,25 @@ const Ke = {
|
|
|
2700
2709
|
title: "Apply Template",
|
|
2701
2710
|
closeButton: !0,
|
|
2702
2711
|
overlay: !0,
|
|
2703
|
-
contentComponent:
|
|
2712
|
+
contentComponent: qe,
|
|
2704
2713
|
contentComponentProps: { templates: k }
|
|
2705
|
-
}).onPrimary(async (
|
|
2706
|
-
d.close(),
|
|
2714
|
+
}).onPrimary(async (O) => {
|
|
2715
|
+
d.close(), xe(
|
|
2707
2716
|
d,
|
|
2708
2717
|
"Apply Template",
|
|
2709
2718
|
c("payment.terminal_template.scope_info"),
|
|
2710
2719
|
async () => {
|
|
2711
2720
|
l(async () => {
|
|
2712
2721
|
try {
|
|
2713
|
-
await j.applyTemplate(p.terminalId,
|
|
2722
|
+
await j.applyTemplate(p.terminalId, O.templateId), v.value = await j.readById(p.terminalId), e.open({
|
|
2714
2723
|
type: "success",
|
|
2715
2724
|
message: "Setting template applied successfully."
|
|
2716
2725
|
});
|
|
2717
|
-
} catch (
|
|
2726
|
+
} catch (D) {
|
|
2718
2727
|
e.open({
|
|
2719
2728
|
type: "error",
|
|
2720
2729
|
title: "Error occurs when apply setting template",
|
|
2721
|
-
message:
|
|
2730
|
+
message: W(D)
|
|
2722
2731
|
});
|
|
2723
2732
|
}
|
|
2724
2733
|
});
|
|
@@ -2749,25 +2758,25 @@ const Ke = {
|
|
|
2749
2758
|
}
|
|
2750
2759
|
));
|
|
2751
2760
|
return q(x), (w, k) => {
|
|
2752
|
-
var
|
|
2753
|
-
const
|
|
2754
|
-
return g(), F(
|
|
2755
|
-
title: `${(
|
|
2761
|
+
var D, K;
|
|
2762
|
+
const O = f("FmTabs");
|
|
2763
|
+
return g(), F(Fe, {
|
|
2764
|
+
title: `${(D = v.value) == null ? void 0 : D.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
|
|
2756
2765
|
loading: N(b),
|
|
2757
2766
|
actions: C.value,
|
|
2758
2767
|
onBack: N(r).back
|
|
2759
2768
|
}, {
|
|
2760
|
-
default:
|
|
2761
|
-
y(
|
|
2769
|
+
default: M(() => [
|
|
2770
|
+
y(O, {
|
|
2762
2771
|
"model-value": N(a),
|
|
2763
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
2772
|
+
"onUpdate:modelValue": k[0] || (k[0] = (z) => te(a) ? a.value = z : null),
|
|
2764
2773
|
class: "mb-6",
|
|
2765
2774
|
items: E.value
|
|
2766
2775
|
}, null, 8, ["model-value", "items"]),
|
|
2767
2776
|
N(a) ? (g(), F(le(n.value), ne(oe({ key: 0 }, {
|
|
2768
2777
|
terminal: v.value,
|
|
2769
2778
|
onUpdate: m
|
|
2770
|
-
})), null, 16)) :
|
|
2779
|
+
})), null, 16)) : h("", !0)
|
|
2771
2780
|
]),
|
|
2772
2781
|
_: 1
|
|
2773
2782
|
}, 8, ["title", "loading", "actions", "onBack"]);
|
|
@@ -2775,5 +2784,5 @@ const Ke = {
|
|
|
2775
2784
|
}
|
|
2776
2785
|
});
|
|
2777
2786
|
export {
|
|
2778
|
-
|
|
2787
|
+
kt as default
|
|
2779
2788
|
};
|