@feedmepos/mf-payment 1.10.8-dev → 1.10.9-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-BlRSHTGm.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-4ApEVDHf.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-e6WXRYGH.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C4xRm0d0.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-qbJr0Fpx.js} +3 -3
- package/dist/{Chargeback-pnoHxJba.js → Chargeback-Bf8X5DpJ.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-B4nIdf5-.js → DocumentViewer.vue_vue_type_script_setup_true_lang-tvzC2-AN.js} +1 -1
- package/dist/{ExternalTerminal-CqrRcbsp.js → ExternalTerminal-CJKc9YQu.js} +6 -6
- package/dist/{OnboardForm-CYO3vK_8.js → OnboardForm-Bc7PyOQu.js} +6 -6
- package/dist/{OnboardForm-BDv2pxL9.js → OnboardForm-Cs2frDsX.js} +6 -6
- package/dist/{OnboardSubmission-Cx_sPOVH.js → OnboardSubmission-AzEqvWcF.js} +3 -3
- package/dist/{OnboardSubmission-BUJZydpX.js → OnboardSubmission-DLlDZDTp.js} +6 -6
- package/dist/{PaymentCheckout-DQM_kppH.js → PaymentCheckout-DmAAyMaB.js} +2 -2
- package/dist/{PayoutAccount-dwMtm1PL.js → PayoutAccount-CUNtHkkq.js} +5 -5
- package/dist/{PayoutAccount-DKWtIoTX.js → PayoutAccount-h9At-pUs.js} +7 -7
- package/dist/{PayoutAccountSetting-CWZD3Kwa.js → PayoutAccountSetting-DoxzEZrk.js} +6 -6
- package/dist/{Restaurant-CV5n8389.js → Restaurant-BQSBQlXV.js} +4 -4
- package/dist/{RestaurantSetting-DsP4kGjM.js → RestaurantSetting-BWd81Nvi.js} +3 -3
- package/dist/{Settlement-58-ie3T1.js → Settlement-BgDLErY_.js} +3 -3
- package/dist/{Settlement-Bt18kRNt.js → Settlement-DI1v2Lpr.js} +4 -4
- package/dist/{SettlementTransactions-Db1f9lYu.js → SettlementTransactions-Btfe8TCX.js} +5 -5
- package/dist/{SettlementTransactions-C7GhMTLQ.js → SettlementTransactions-sK3LTE7Z.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B9j6CfzS.js → Status.vue_vue_type_script_setup_true_lang-CovSVk33.js} +1 -1
- package/dist/{Terminal-BuMIcbhv.js → Terminal-DoTN1jZW.js} +6 -6
- package/dist/{TerminalSetting-2kwSwfKt.js → TerminalSetting-Bl0bfFAS.js} +193 -187
- package/dist/{TerminalTemplate-aBZAYAKp.js → TerminalTemplate-BNHEOCY_.js} +5 -5
- package/dist/{TerminalTemplateSetting-BZlX7Xll.js → TerminalTemplateSetting-BZ7K254Z.js} +5 -5
- package/dist/{Transaction-Cy03QV60.js → Transaction-4uK6M4p6.js} +10 -10
- package/dist/{Transaction-lRZITPtN.js → Transaction-Ecs5btUl.js} +12 -12
- package/dist/{TransactionOld-CmLbZyaP.js → TransactionOld-B3X3h7jS.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DSzil-ib.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DA1zB5A4.js} +1 -1
- package/dist/{app-DKD_4d44.js → app-dDZS3WjU.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/{assets-VX0DqpvG.js → assets-qEh2VGg_.js} +1 -1
- package/dist/{grafana-B_uCjmFj.js → grafana-DiwfCX5L.js} +1 -1
- package/dist/{index-DFZ1vkMO.js → index-BICW93bZ.js} +1 -1
- package/dist/{index-CnTRiFh5.js → index-BMpISrhv.js} +1 -1
- package/dist/{index-DbJwyim8.js → index-BpmTCNi5.js} +1 -1
- package/dist/{index-C3AnskZH.js → index-CFJQ_HmA.js} +2 -2
- package/dist/{index-BpAx8sXI.js → index-CHinJgjY.js} +1 -1
- package/dist/{index-FScngz5X.js → index-Cajpi2wX.js} +1 -1
- package/dist/{index-Cf9xnlvp.js → index-D8zuI51D.js} +1 -1
- package/dist/{index-DZJaOOKJ.js → index-DErywACZ.js} +1 -1
- package/dist/{index-DFNUFV3R.js → index-DGAk2CT0.js} +1 -1
- package/dist/{index-DO72hNKP.js → index-DoobQn7j.js} +1 -1
- package/dist/{index-CGmA3Z9Z.js → index-abg_ZrfF.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CH17wzq0.js → index.vue_vue_type_script_setup_true_lang-Gth5Pyzm.js} +1 -1
- package/dist/{onboard-submission-Cjp6Mugk.js → onboard-submission-BC1A-2DE.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CzCmFwEa.js → payout-account-CR-f3mDu.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-Cn_nXHMC.js → useQuery-B-FVTG9E.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as h, openBlock as g, createElementBlock as S, Fragment as D, createElementVNode as I, createTextVNode as W, toDisplayString as z, ref as _, resolveComponent as f, createBlock as F, withCtx as O, createVNode as y, unref as N, computed as V, createCommentVNode as U, isRef as
|
|
2
|
-
import { u as J, p as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { t as j } from "./index-
|
|
5
|
-
import { t as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { useDialogChild as
|
|
9
|
-
import { w as
|
|
1
|
+
import { defineComponent as h, openBlock as g, createElementBlock as S, Fragment as D, createElementVNode as I, createTextVNode as W, toDisplayString as z, ref as _, resolveComponent as f, createBlock as F, withCtx as O, createVNode as y, unref as N, computed as V, createCommentVNode as U, isRef as ae, resolveDynamicComponent as te, normalizeProps as le, mergeProps as ne, watch as A, onBeforeUnmount as Te, toRef as G, onMounted as q, renderList as L } from "vue";
|
|
2
|
+
import { u as J, p as ve, e as P } from "./index-CHinJgjY.js";
|
|
3
|
+
import { useRouter as Ie } from "vue-router";
|
|
4
|
+
import { t as j } from "./index-abg_ZrfF.js";
|
|
5
|
+
import { t as pe } from "./index-BICW93bZ.js";
|
|
6
|
+
import { _ as Fe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
7
|
+
import { u as oe } from "./index-D8zuI51D.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
10
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
11
|
-
import { useI18n as
|
|
11
|
+
import { useI18n as re, useCoreStore as ie } from "@feedmepos/mf-common";
|
|
12
12
|
import { z as X, a as Z } from "./validator-CTlVogBQ.js";
|
|
13
|
-
import { o as
|
|
14
|
-
import { c as
|
|
15
|
-
import { e as
|
|
16
|
-
import { P as
|
|
17
|
-
const
|
|
13
|
+
import { o as Ce } from "./index-CFJQ_HmA.js";
|
|
14
|
+
import { c as ke } from "./index-MdV54cWO.js";
|
|
15
|
+
import { e as fe } from "./index-DErywACZ.js";
|
|
16
|
+
import { P as Ne } from "./PaymentCheckout-DmAAyMaB.js";
|
|
17
|
+
const Ve = /* @__PURE__ */ h({
|
|
18
18
|
__name: "Information",
|
|
19
19
|
props: {
|
|
20
20
|
terminal: {
|
|
@@ -38,10 +38,10 @@ const Ne = /* @__PURE__ */ h({
|
|
|
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__ */ h({
|
|
42
42
|
__name: "TerminalSaveTemplateDialog",
|
|
43
43
|
setup(T) {
|
|
44
|
-
const p =
|
|
44
|
+
const p = ye(), { t: a } = re(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
|
|
45
45
|
p.emitData({
|
|
46
46
|
name: l.value,
|
|
47
47
|
description: r.value,
|
|
@@ -57,12 +57,12 @@ const Ne = /* @__PURE__ */ h({
|
|
|
57
57
|
onValidationSuccess: d
|
|
58
58
|
}, {
|
|
59
59
|
default: O(() => [
|
|
60
|
-
I("div",
|
|
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, z(N(a)("payment.terminal_template.scope_info")), 1)
|
|
66
66
|
]),
|
|
67
67
|
y(s, {
|
|
68
68
|
modelValue: l.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__ */ h({
|
|
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 } = re(), 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,22 +117,22 @@ 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, z(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",
|
|
@@ -143,7 +143,7 @@ const Ne = /* @__PURE__ */ h({
|
|
|
143
143
|
]);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
}),
|
|
146
|
+
}), Ge = { key: 0 }, De = { class: "mt-6 space-x-6" }, $e = /* @__PURE__ */ h({
|
|
147
147
|
__name: "KioskMode",
|
|
148
148
|
props: {
|
|
149
149
|
terminal: {
|
|
@@ -183,14 +183,14 @@ const Ne = /* @__PURE__ */ h({
|
|
|
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
192
|
])) : U("", !0),
|
|
193
|
-
I("div",
|
|
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__ */ h({
|
|
206
206
|
__name: "SettingRequest",
|
|
207
207
|
props: {
|
|
208
208
|
terminal: {
|
|
@@ -211,13 +211,13 @@ const Ne = /* @__PURE__ */ h({
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
setup(T) {
|
|
214
|
-
const { settingTab: p } =
|
|
214
|
+
const { settingTab: p } = oe({
|
|
215
215
|
settingTab: "kiosk_mode"
|
|
216
216
|
}), a = [
|
|
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) => {
|
|
@@ -230,17 +230,17 @@ const Ne = /* @__PURE__ */ h({
|
|
|
230
230
|
], -1)),
|
|
231
231
|
y(d, {
|
|
232
232
|
"model-value": N(p),
|
|
233
|
-
"onUpdate:modelValue": e[0] || (e[0] = (v) =>
|
|
233
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => ae(p) ? p.value = v : null),
|
|
234
234
|
class: "mb-6",
|
|
235
235
|
items: a
|
|
236
236
|
}, null, 8, ["model-value"]),
|
|
237
|
-
N(p) ? (g(), F(
|
|
237
|
+
N(p) ? (g(), F(te((c = l.value) == null ? void 0 : c.render), le(ne({ key: 0 }, { terminal: b.terminal })), null, 16)) : U("", !0)
|
|
238
238
|
], 64);
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
}),
|
|
242
|
-
function
|
|
243
|
-
const { isLoading: p, startLoading: a, stopLoading: b } = J(!1), { t: l } =
|
|
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 } = J(!1), { t: l } = re(), r = me(), e = _(null), d = V(() => {
|
|
244
244
|
var k, B;
|
|
245
245
|
const w = (k = T.value.gateways) == null ? void 0 : k.find(
|
|
246
246
|
($) => $.gateway === "Tyro"
|
|
@@ -261,11 +261,11 @@ 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({
|
|
@@ -274,15 +274,15 @@ function je(T) {
|
|
|
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
281
|
var K, H;
|
|
282
282
|
const B = await j.readById(T.value._id);
|
|
283
283
|
if (!w())
|
|
284
284
|
return;
|
|
285
|
-
const $ = (K = B.gateways) == null ? void 0 : K.find((
|
|
285
|
+
const $ = (K = B.gateways) == null ? void 0 : K.find((se) => se.gateway === "Tyro");
|
|
286
286
|
($ == null ? void 0 : $.gateway) === "Tyro" && ((H = $ == null ? void 0 : $.config) != null && H.uniqueId) && (k({ invalidate: !1 }), b(), Object.assign(T.value, B), r.open({
|
|
287
287
|
type: "success",
|
|
288
288
|
message: "Tyro reader created successfully"
|
|
@@ -291,7 +291,7 @@ 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) => {
|
|
@@ -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__ */ h({
|
|
350
350
|
__name: "SoftposGateway",
|
|
351
351
|
props: {
|
|
352
352
|
terminal: {
|
|
@@ -359,7 +359,7 @@ const Ke = {
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
setup(T) {
|
|
362
|
-
const p = T, a =
|
|
362
|
+
const p = T, a = ie().currentCountry, b = [
|
|
363
363
|
{
|
|
364
364
|
label: "Fiuu Malaysia",
|
|
365
365
|
value: "cc.feedme.payment.rms",
|
|
@@ -423,7 +423,7 @@ 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), B = V(() => m.value ? !i.value || t.value : !1), $ = () => {
|
|
427
427
|
if (!l.value.gateways || l.value.gateways.length === 0)
|
|
428
428
|
return d();
|
|
429
429
|
const R = l.value.gateways[0];
|
|
@@ -460,7 +460,10 @@ const Ke = {
|
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
A(l, $), q($);
|
|
463
|
-
|
|
463
|
+
const K = () => {
|
|
464
|
+
e.value.uniqueId = "", e.value.developerId = "", e.value.isUat = !1;
|
|
465
|
+
};
|
|
466
|
+
async function H() {
|
|
464
467
|
const R = v.value;
|
|
465
468
|
if (!R)
|
|
466
469
|
return;
|
|
@@ -479,67 +482,70 @@ const Ke = {
|
|
|
479
482
|
};
|
|
480
483
|
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = ue, await p.onUpdate(l.value);
|
|
481
484
|
}
|
|
482
|
-
async function
|
|
485
|
+
async function se(R) {
|
|
483
486
|
var M;
|
|
484
487
|
(M = l.value.gateways) == null || M.splice(R, 1), p.onUpdate(l.value);
|
|
485
488
|
}
|
|
486
|
-
function
|
|
489
|
+
function de() {
|
|
487
490
|
m.value && x();
|
|
488
491
|
}
|
|
489
492
|
return (R, M) => {
|
|
490
|
-
const ue = f("FmSelect"),
|
|
491
|
-
return g(), F(
|
|
493
|
+
const ue = f("FmSelect"), ee = f("FmTextField"), ge = f("FmCheckbox"), ce = f("FmButton"), be = f("FmTooltip"), _e = f("FmForm");
|
|
494
|
+
return g(), F(_e, {
|
|
492
495
|
ref: r.value,
|
|
493
496
|
class: "flex flex-col gap-16 w-[500px]",
|
|
494
|
-
onValidationSuccess:
|
|
497
|
+
onValidationSuccess: H
|
|
495
498
|
}, {
|
|
496
499
|
default: O(() => [
|
|
497
500
|
y(ue, {
|
|
498
501
|
modelValue: e.value.packageId,
|
|
499
|
-
"onUpdate:modelValue":
|
|
502
|
+
"onUpdate:modelValue": [
|
|
503
|
+
M[0] || (M[0] = (Y) => e.value.packageId = Y),
|
|
504
|
+
K
|
|
505
|
+
],
|
|
500
506
|
label: "Package ID",
|
|
501
507
|
items: c.value
|
|
502
508
|
}, null, 8, ["modelValue", "items"]),
|
|
503
509
|
v.value ? (g(), S(D, { key: 0 }, [
|
|
504
|
-
m.value ? (g(), F(
|
|
510
|
+
m.value ? (g(), F(ee, {
|
|
505
511
|
key: 0,
|
|
506
512
|
"model-value": N(o),
|
|
507
513
|
label: "Unique ID (Reader ID)",
|
|
508
514
|
disabled: ""
|
|
509
515
|
}, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S(D, { key: 1 }, [
|
|
510
|
-
y(
|
|
516
|
+
y(ee, {
|
|
511
517
|
modelValue: e.value.uniqueId,
|
|
512
518
|
"onUpdate:modelValue": M[1] || (M[1] = (Y) => e.value.uniqueId = Y),
|
|
513
519
|
label: "Unique ID (TID)"
|
|
514
520
|
}, null, 8, ["modelValue"]),
|
|
515
|
-
v.value.isOutdated ? (g(), S("span",
|
|
521
|
+
v.value.isOutdated ? (g(), S("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : U("", !0)
|
|
516
522
|
], 64)) : (g(), S(D, { key: 2 }, [
|
|
517
|
-
y(
|
|
523
|
+
y(ee, {
|
|
518
524
|
modelValue: e.value.developerId,
|
|
519
525
|
"onUpdate:modelValue": M[2] || (M[2] = (Y) => e.value.developerId = Y),
|
|
520
526
|
label: "Developer ID (MID)"
|
|
521
527
|
}, null, 8, ["modelValue"]),
|
|
522
|
-
y(
|
|
528
|
+
y(ee, {
|
|
523
529
|
modelValue: e.value.uniqueId,
|
|
524
530
|
"onUpdate:modelValue": M[3] || (M[3] = (Y) => e.value.uniqueId = Y),
|
|
525
531
|
label: "Unique ID (TID)"
|
|
526
532
|
}, null, 8, ["modelValue"]),
|
|
527
|
-
y(
|
|
533
|
+
y(ge, {
|
|
528
534
|
modelValue: e.value.isUat,
|
|
529
535
|
"onUpdate:modelValue": M[4] || (M[4] = (Y) => e.value.isUat = Y),
|
|
530
536
|
label: "Is UAT (Test)",
|
|
531
537
|
value: "1"
|
|
532
538
|
}, null, 8, ["modelValue"])
|
|
533
539
|
], 64)),
|
|
534
|
-
I("div",
|
|
540
|
+
I("div", ze, [
|
|
535
541
|
l.value.gateways && l.value.gateways.length > 0 ? (g(), F(ce, {
|
|
536
542
|
key: 0,
|
|
537
543
|
class: "flex-1",
|
|
538
544
|
variant: "secondary",
|
|
539
545
|
label: "Delete",
|
|
540
|
-
onclick: () =>
|
|
546
|
+
onclick: () => se(0)
|
|
541
547
|
}, null, 8, ["onclick"])) : U("", !0),
|
|
542
|
-
m.value && N(u) && B.value ? (g(), F(
|
|
548
|
+
m.value && N(u) && B.value ? (g(), F(be, {
|
|
543
549
|
key: 1,
|
|
544
550
|
class: "flex-1",
|
|
545
551
|
variant: "plain",
|
|
@@ -547,7 +553,7 @@ const Ke = {
|
|
|
547
553
|
content: N(C)
|
|
548
554
|
}, {
|
|
549
555
|
default: O(() => [
|
|
550
|
-
I("div",
|
|
556
|
+
I("div", Qe, [
|
|
551
557
|
y(ce, {
|
|
552
558
|
type: E.value,
|
|
553
559
|
class: "w-full",
|
|
@@ -555,7 +561,7 @@ const Ke = {
|
|
|
555
561
|
loading: k.value,
|
|
556
562
|
disabled: B.value,
|
|
557
563
|
label: w.value,
|
|
558
|
-
onClick:
|
|
564
|
+
onClick: de
|
|
559
565
|
}, null, 8, ["type", "loading", "disabled", "label"])
|
|
560
566
|
])
|
|
561
567
|
]),
|
|
@@ -568,7 +574,7 @@ const Ke = {
|
|
|
568
574
|
loading: k.value,
|
|
569
575
|
disabled: B.value,
|
|
570
576
|
label: w.value,
|
|
571
|
-
onClick:
|
|
577
|
+
onClick: de
|
|
572
578
|
}, null, 8, ["type", "loading", "disabled", "label"]))
|
|
573
579
|
])
|
|
574
580
|
], 64)) : U("", !0)
|
|
@@ -577,10 +583,10 @@ const Ke = {
|
|
|
577
583
|
}, 512);
|
|
578
584
|
};
|
|
579
585
|
}
|
|
580
|
-
}),
|
|
586
|
+
}), We = {
|
|
581
587
|
key: 0,
|
|
582
588
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
583
|
-
},
|
|
589
|
+
}, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ h({
|
|
584
590
|
__name: "TerminalGateway",
|
|
585
591
|
props: {
|
|
586
592
|
terminal: {
|
|
@@ -622,7 +628,7 @@ const Ke = {
|
|
|
622
628
|
}
|
|
623
629
|
return (o, i) => {
|
|
624
630
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
625
|
-
return N(p) ? (g(), S("div",
|
|
631
|
+
return N(p) ? (g(), S("div", We, [
|
|
626
632
|
y(u, { size: "xxl" })
|
|
627
633
|
])) : (g(), F(x, {
|
|
628
634
|
key: 1,
|
|
@@ -640,7 +646,7 @@ const Ke = {
|
|
|
640
646
|
items: s.value,
|
|
641
647
|
rules: N(X)(N(Z).string())
|
|
642
648
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
643
|
-
I("div",
|
|
649
|
+
I("div", Xe, [
|
|
644
650
|
d.value > -1 ? (g(), F(n, {
|
|
645
651
|
key: 0,
|
|
646
652
|
class: "flex-1",
|
|
@@ -660,7 +666,7 @@ const Ke = {
|
|
|
660
666
|
}, 512));
|
|
661
667
|
};
|
|
662
668
|
}
|
|
663
|
-
}),
|
|
669
|
+
}), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */ h({
|
|
664
670
|
__name: "GhlGateway",
|
|
665
671
|
props: {
|
|
666
672
|
terminal: {
|
|
@@ -725,7 +731,7 @@ const Ke = {
|
|
|
725
731
|
"label-mark": "optional",
|
|
726
732
|
"label-info": "Default will use FeedMe Private Key"
|
|
727
733
|
}, null, 8, ["modelValue"]),
|
|
728
|
-
I("div",
|
|
734
|
+
I("div", ea, [
|
|
729
735
|
l.value > -1 ? (g(), F(o, {
|
|
730
736
|
key: 0,
|
|
731
737
|
class: "flex-1",
|
|
@@ -745,7 +751,7 @@ const Ke = {
|
|
|
745
751
|
}, 512);
|
|
746
752
|
};
|
|
747
753
|
}
|
|
748
|
-
}),
|
|
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__ */ h({
|
|
749
755
|
__name: "MaybankGateway",
|
|
750
756
|
props: {
|
|
751
757
|
terminal: {
|
|
@@ -824,7 +830,7 @@ const Ke = {
|
|
|
824
830
|
label: "Receipt Payment Name",
|
|
825
831
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
826
832
|
}, null, 8, ["modelValue"]),
|
|
827
|
-
I("div",
|
|
833
|
+
I("div", ta, [
|
|
828
834
|
y(o, {
|
|
829
835
|
modelValue: r.value,
|
|
830
836
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -837,7 +843,7 @@ const Ke = {
|
|
|
837
843
|
onClick: m
|
|
838
844
|
})
|
|
839
845
|
]),
|
|
840
|
-
I("div",
|
|
846
|
+
I("div", la, [
|
|
841
847
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
842
848
|
key: n,
|
|
843
849
|
label: n,
|
|
@@ -845,7 +851,7 @@ const Ke = {
|
|
|
845
851
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
846
852
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
847
853
|
]),
|
|
848
|
-
I("div",
|
|
854
|
+
I("div", na, [
|
|
849
855
|
l.value > -1 ? (g(), F(i, {
|
|
850
856
|
key: 0,
|
|
851
857
|
class: "flex-1",
|
|
@@ -865,7 +871,7 @@ const Ke = {
|
|
|
865
871
|
}, 512);
|
|
866
872
|
};
|
|
867
873
|
}
|
|
868
|
-
}),
|
|
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__ */ h({
|
|
869
875
|
__name: "Maybank2Gateway",
|
|
870
876
|
props: {
|
|
871
877
|
terminal: {
|
|
@@ -944,7 +950,7 @@ const Ke = {
|
|
|
944
950
|
label: "Receipt Payment Name",
|
|
945
951
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
946
952
|
}, null, 8, ["modelValue"]),
|
|
947
|
-
I("div",
|
|
953
|
+
I("div", ra, [
|
|
948
954
|
y(o, {
|
|
949
955
|
modelValue: r.value,
|
|
950
956
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -957,7 +963,7 @@ const Ke = {
|
|
|
957
963
|
onClick: m
|
|
958
964
|
})
|
|
959
965
|
]),
|
|
960
|
-
I("div",
|
|
966
|
+
I("div", ia, [
|
|
961
967
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
962
968
|
key: n,
|
|
963
969
|
label: n,
|
|
@@ -965,7 +971,7 @@ const Ke = {
|
|
|
965
971
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
966
972
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
967
973
|
]),
|
|
968
|
-
I("div",
|
|
974
|
+
I("div", sa, [
|
|
969
975
|
l.value > -1 ? (g(), F(i, {
|
|
970
976
|
key: 0,
|
|
971
977
|
class: "flex-1",
|
|
@@ -985,7 +991,7 @@ const Ke = {
|
|
|
985
991
|
}, 512);
|
|
986
992
|
};
|
|
987
993
|
}
|
|
988
|
-
}),
|
|
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__ */ h({
|
|
989
995
|
__name: "Maybank3Gateway",
|
|
990
996
|
props: {
|
|
991
997
|
terminal: {
|
|
@@ -1059,7 +1065,7 @@ const Ke = {
|
|
|
1059
1065
|
label: "Receipt Payment Name",
|
|
1060
1066
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1061
1067
|
}, null, 8, ["modelValue"]),
|
|
1062
|
-
I("div",
|
|
1068
|
+
I("div", ca, [
|
|
1063
1069
|
y(o, {
|
|
1064
1070
|
modelValue: r.value,
|
|
1065
1071
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1072,7 +1078,7 @@ const Ke = {
|
|
|
1072
1078
|
onClick: m
|
|
1073
1079
|
})
|
|
1074
1080
|
]),
|
|
1075
|
-
I("div",
|
|
1081
|
+
I("div", ma, [
|
|
1076
1082
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1077
1083
|
key: n,
|
|
1078
1084
|
label: n,
|
|
@@ -1080,7 +1086,7 @@ const Ke = {
|
|
|
1080
1086
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1081
1087
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1082
1088
|
]),
|
|
1083
|
-
I("div",
|
|
1089
|
+
I("div", da, [
|
|
1084
1090
|
l.value > -1 ? (g(), F(i, {
|
|
1085
1091
|
key: 0,
|
|
1086
1092
|
class: "flex-1",
|
|
@@ -1100,7 +1106,7 @@ const Ke = {
|
|
|
1100
1106
|
}, 512);
|
|
1101
1107
|
};
|
|
1102
1108
|
}
|
|
1103
|
-
}),
|
|
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__ */ h({
|
|
1104
1110
|
__name: "NetsGateway",
|
|
1105
1111
|
props: {
|
|
1106
1112
|
terminal: {
|
|
@@ -1179,7 +1185,7 @@ const Ke = {
|
|
|
1179
1185
|
label: "Receipt Payment Name",
|
|
1180
1186
|
"label-info": "Default receipt display will be 'TERMINAL_NETS'"
|
|
1181
1187
|
}, null, 8, ["modelValue"]),
|
|
1182
|
-
I("div",
|
|
1188
|
+
I("div", va, [
|
|
1183
1189
|
y(o, {
|
|
1184
1190
|
modelValue: r.value,
|
|
1185
1191
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1192,7 +1198,7 @@ const Ke = {
|
|
|
1192
1198
|
onClick: m
|
|
1193
1199
|
})
|
|
1194
1200
|
]),
|
|
1195
|
-
I("div",
|
|
1201
|
+
I("div", ya, [
|
|
1196
1202
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1197
1203
|
key: n,
|
|
1198
1204
|
label: n,
|
|
@@ -1200,7 +1206,7 @@ const Ke = {
|
|
|
1200
1206
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1201
1207
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1202
1208
|
]),
|
|
1203
|
-
I("div",
|
|
1209
|
+
I("div", fa, [
|
|
1204
1210
|
l.value > -1 ? (g(), F(i, {
|
|
1205
1211
|
key: 0,
|
|
1206
1212
|
class: "flex-1",
|
|
@@ -1220,7 +1226,7 @@ const Ke = {
|
|
|
1220
1226
|
}, 512);
|
|
1221
1227
|
};
|
|
1222
1228
|
}
|
|
1223
|
-
}),
|
|
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__ */ h({
|
|
1224
1230
|
__name: "KBankGateway",
|
|
1225
1231
|
props: {
|
|
1226
1232
|
terminal: {
|
|
@@ -1292,7 +1298,7 @@ const Ke = {
|
|
|
1292
1298
|
label: "Receipt Payment Name",
|
|
1293
1299
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
|
1294
1300
|
}, null, 8, ["modelValue"]),
|
|
1295
|
-
I("div",
|
|
1301
|
+
I("div", ba, [
|
|
1296
1302
|
y(o, {
|
|
1297
1303
|
modelValue: r.value,
|
|
1298
1304
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1305,7 +1311,7 @@ const Ke = {
|
|
|
1305
1311
|
onClick: m
|
|
1306
1312
|
})
|
|
1307
1313
|
]),
|
|
1308
|
-
I("div",
|
|
1314
|
+
I("div", _a, [
|
|
1309
1315
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1310
1316
|
key: n,
|
|
1311
1317
|
label: n,
|
|
@@ -1313,7 +1319,7 @@ const Ke = {
|
|
|
1313
1319
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1314
1320
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1315
1321
|
]),
|
|
1316
|
-
I("div",
|
|
1322
|
+
I("div", Ta, [
|
|
1317
1323
|
l.value > -1 ? (g(), F(i, {
|
|
1318
1324
|
key: 0,
|
|
1319
1325
|
class: "flex-1",
|
|
@@ -1333,7 +1339,7 @@ const Ke = {
|
|
|
1333
1339
|
}, 512);
|
|
1334
1340
|
};
|
|
1335
1341
|
}
|
|
1336
|
-
}),
|
|
1342
|
+
}), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */ h({
|
|
1337
1343
|
__name: "Ghl2Gateway",
|
|
1338
1344
|
props: {
|
|
1339
1345
|
terminal: {
|
|
@@ -1398,7 +1404,7 @@ const Ke = {
|
|
|
1398
1404
|
label: "Receipt Payment Name",
|
|
1399
1405
|
"label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
|
|
1400
1406
|
}, null, 8, ["modelValue"]),
|
|
1401
|
-
I("div",
|
|
1407
|
+
I("div", Fa, [
|
|
1402
1408
|
l.value > -1 ? (g(), F(t, {
|
|
1403
1409
|
key: 0,
|
|
1404
1410
|
class: "flex-1",
|
|
@@ -1418,7 +1424,7 @@ const Ke = {
|
|
|
1418
1424
|
}, 512);
|
|
1419
1425
|
};
|
|
1420
1426
|
}
|
|
1421
|
-
}),
|
|
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__ */ h({
|
|
1422
1428
|
__name: "Ghl3Gateway",
|
|
1423
1429
|
props: {
|
|
1424
1430
|
terminal: {
|
|
@@ -1494,7 +1500,7 @@ const Ke = {
|
|
|
1494
1500
|
label: "Receipt Payment Name",
|
|
1495
1501
|
"label-info": "Default receipt display will be 'TERMINAL_GHL'"
|
|
1496
1502
|
}, null, 8, ["modelValue"]),
|
|
1497
|
-
I("div",
|
|
1503
|
+
I("div", xa, [
|
|
1498
1504
|
y(o, {
|
|
1499
1505
|
modelValue: r.value,
|
|
1500
1506
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1507,7 +1513,7 @@ const Ke = {
|
|
|
1507
1513
|
onClick: m
|
|
1508
1514
|
})
|
|
1509
1515
|
]),
|
|
1510
|
-
I("div",
|
|
1516
|
+
I("div", Ca, [
|
|
1511
1517
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1512
1518
|
key: n,
|
|
1513
1519
|
label: n,
|
|
@@ -1515,7 +1521,7 @@ const Ke = {
|
|
|
1515
1521
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1516
1522
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1517
1523
|
]),
|
|
1518
|
-
I("div",
|
|
1524
|
+
I("div", ka, [
|
|
1519
1525
|
l.value > -1 ? (g(), F(i, {
|
|
1520
1526
|
key: 0,
|
|
1521
1527
|
class: "flex-1",
|
|
@@ -1535,7 +1541,7 @@ const Ke = {
|
|
|
1535
1541
|
}, 512);
|
|
1536
1542
|
};
|
|
1537
1543
|
}
|
|
1538
|
-
}),
|
|
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__ */ h({
|
|
1539
1545
|
__name: "HlbbGateway",
|
|
1540
1546
|
props: {
|
|
1541
1547
|
terminal: {
|
|
@@ -1611,7 +1617,7 @@ const Ke = {
|
|
|
1611
1617
|
label: "Receipt Payment Name",
|
|
1612
1618
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1613
1619
|
}, null, 8, ["modelValue"]),
|
|
1614
|
-
I("div",
|
|
1620
|
+
I("div", Va, [
|
|
1615
1621
|
y(o, {
|
|
1616
1622
|
modelValue: r.value,
|
|
1617
1623
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1624,7 +1630,7 @@ const Ke = {
|
|
|
1624
1630
|
onClick: m
|
|
1625
1631
|
})
|
|
1626
1632
|
]),
|
|
1627
|
-
I("div",
|
|
1633
|
+
I("div", Sa, [
|
|
1628
1634
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1629
1635
|
key: n,
|
|
1630
1636
|
label: n,
|
|
@@ -1632,7 +1638,7 @@ const Ke = {
|
|
|
1632
1638
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1633
1639
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1634
1640
|
]),
|
|
1635
|
-
I("div",
|
|
1641
|
+
I("div", Ua, [
|
|
1636
1642
|
l.value > -1 ? (g(), F(i, {
|
|
1637
1643
|
key: 0,
|
|
1638
1644
|
class: "flex-1",
|
|
@@ -1652,7 +1658,7 @@ const Ke = {
|
|
|
1652
1658
|
}, 512);
|
|
1653
1659
|
};
|
|
1654
1660
|
}
|
|
1655
|
-
}),
|
|
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__ */ h({
|
|
1656
1662
|
__name: "GlobalPaymentsGateway",
|
|
1657
1663
|
props: {
|
|
1658
1664
|
terminal: {
|
|
@@ -1733,7 +1739,7 @@ const Ke = {
|
|
|
1733
1739
|
label: "Receipt Payment Name",
|
|
1734
1740
|
"label-info": "Default receipt display will be 'TERMINAL_GP'"
|
|
1735
1741
|
}, null, 8, ["modelValue"]),
|
|
1736
|
-
I("div",
|
|
1742
|
+
I("div", Ra, [
|
|
1737
1743
|
y(o, {
|
|
1738
1744
|
modelValue: r.value,
|
|
1739
1745
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1746,7 +1752,7 @@ const Ke = {
|
|
|
1746
1752
|
onClick: m
|
|
1747
1753
|
})
|
|
1748
1754
|
]),
|
|
1749
|
-
I("div",
|
|
1755
|
+
I("div", Pa, [
|
|
1750
1756
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1751
1757
|
key: n,
|
|
1752
1758
|
label: n,
|
|
@@ -1754,7 +1760,7 @@ const Ke = {
|
|
|
1754
1760
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1755
1761
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1756
1762
|
]),
|
|
1757
|
-
I("div",
|
|
1763
|
+
I("div", Ba, [
|
|
1758
1764
|
l.value > -1 ? (g(), F(i, {
|
|
1759
1765
|
key: 0,
|
|
1760
1766
|
class: "flex-1",
|
|
@@ -1774,7 +1780,7 @@ const Ke = {
|
|
|
1774
1780
|
}, 512);
|
|
1775
1781
|
};
|
|
1776
1782
|
}
|
|
1777
|
-
}),
|
|
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__ */ h({
|
|
1778
1784
|
__name: "OmaGateway",
|
|
1779
1785
|
props: {
|
|
1780
1786
|
terminal: {
|
|
@@ -1848,7 +1854,7 @@ const Ke = {
|
|
|
1848
1854
|
label: "Receipt Payment Name",
|
|
1849
1855
|
"label-info": "Default receipt display will be 'TERMINAL_OMA'"
|
|
1850
1856
|
}, null, 8, ["modelValue"]),
|
|
1851
|
-
I("div",
|
|
1857
|
+
I("div", Ma, [
|
|
1852
1858
|
y(o, {
|
|
1853
1859
|
modelValue: r.value,
|
|
1854
1860
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
|
|
@@ -1861,7 +1867,7 @@ const Ke = {
|
|
|
1861
1867
|
onClick: m
|
|
1862
1868
|
})
|
|
1863
1869
|
]),
|
|
1864
|
-
I("div",
|
|
1870
|
+
I("div", Aa, [
|
|
1865
1871
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1866
1872
|
key: n,
|
|
1867
1873
|
label: n,
|
|
@@ -1869,7 +1875,7 @@ const Ke = {
|
|
|
1869
1875
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1870
1876
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1871
1877
|
]),
|
|
1872
|
-
I("div",
|
|
1878
|
+
I("div", qa, [
|
|
1873
1879
|
l.value > -1 ? (g(), F(i, {
|
|
1874
1880
|
key: 0,
|
|
1875
1881
|
class: "flex-1",
|
|
@@ -1889,7 +1895,7 @@ const Ke = {
|
|
|
1889
1895
|
}, 512);
|
|
1890
1896
|
};
|
|
1891
1897
|
}
|
|
1892
|
-
}),
|
|
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__ */ h({
|
|
1893
1899
|
__name: "RevenueGateway",
|
|
1894
1900
|
props: {
|
|
1895
1901
|
terminal: {
|
|
@@ -1976,7 +1982,7 @@ const Ke = {
|
|
|
1976
1982
|
label: "Receipt Payment Name",
|
|
1977
1983
|
"label-info": "Default receipt display will be 'TERMINAL_REVENUE'"
|
|
1978
1984
|
}, null, 8, ["modelValue"]),
|
|
1979
|
-
I("div",
|
|
1985
|
+
I("div", Da, [
|
|
1980
1986
|
y(o, {
|
|
1981
1987
|
modelValue: r.value,
|
|
1982
1988
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -1989,7 +1995,7 @@ const Ke = {
|
|
|
1989
1995
|
onClick: m
|
|
1990
1996
|
})
|
|
1991
1997
|
]),
|
|
1992
|
-
I("div",
|
|
1998
|
+
I("div", $a, [
|
|
1993
1999
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
1994
2000
|
key: n,
|
|
1995
2001
|
label: n,
|
|
@@ -1997,7 +2003,7 @@ const Ke = {
|
|
|
1997
2003
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
1998
2004
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1999
2005
|
]),
|
|
2000
|
-
I("div",
|
|
2006
|
+
I("div", Ea, [
|
|
2001
2007
|
l.value > -1 ? (g(), F(i, {
|
|
2002
2008
|
key: 0,
|
|
2003
2009
|
class: "flex-1",
|
|
@@ -2017,10 +2023,10 @@ const Ke = {
|
|
|
2017
2023
|
}, 512);
|
|
2018
2024
|
};
|
|
2019
2025
|
}
|
|
2020
|
-
}),
|
|
2026
|
+
}), Ya = {
|
|
2021
2027
|
key: 0,
|
|
2022
2028
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2023
|
-
},
|
|
2029
|
+
}, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */ h({
|
|
2024
2030
|
__name: "BeamGateway",
|
|
2025
2031
|
props: {
|
|
2026
2032
|
terminal: {
|
|
@@ -2039,7 +2045,7 @@ const Ke = {
|
|
|
2039
2045
|
c.value.externalTerminalId = "", d.value = -1;
|
|
2040
2046
|
}, m = () => {
|
|
2041
2047
|
if (a(async () => {
|
|
2042
|
-
r.value = await
|
|
2048
|
+
r.value = await fe.getRestaurantExternalTerminals(
|
|
2043
2049
|
b.terminal.referenceId,
|
|
2044
2050
|
"BEAM"
|
|
2045
2051
|
);
|
|
@@ -2065,7 +2071,7 @@ const Ke = {
|
|
|
2065
2071
|
}
|
|
2066
2072
|
return (o, i) => {
|
|
2067
2073
|
const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
|
|
2068
|
-
return N(p) ? (g(), S("div",
|
|
2074
|
+
return N(p) ? (g(), S("div", Ya, [
|
|
2069
2075
|
y(u, { size: "xxl" })
|
|
2070
2076
|
])) : (g(), F(x, {
|
|
2071
2077
|
key: 1,
|
|
@@ -2083,7 +2089,7 @@ const Ke = {
|
|
|
2083
2089
|
items: s.value,
|
|
2084
2090
|
rules: N(X)(N(Z).string().min(1, "External terminal is required"))
|
|
2085
2091
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
2086
|
-
I("div",
|
|
2092
|
+
I("div", ja, [
|
|
2087
2093
|
d.value > -1 ? (g(), F(n, {
|
|
2088
2094
|
key: 0,
|
|
2089
2095
|
class: "flex-1",
|
|
@@ -2103,10 +2109,10 @@ const Ke = {
|
|
|
2103
2109
|
}, 512));
|
|
2104
2110
|
};
|
|
2105
2111
|
}
|
|
2106
|
-
}),
|
|
2112
|
+
}), Ha = {
|
|
2107
2113
|
key: 0,
|
|
2108
2114
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
2109
|
-
},
|
|
2115
|
+
}, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */ h({
|
|
2110
2116
|
__name: "BriGateway",
|
|
2111
2117
|
props: {
|
|
2112
2118
|
terminal: {
|
|
@@ -2125,7 +2131,7 @@ const Ke = {
|
|
|
2125
2131
|
c.value.externalTerminalId = "", d.value = -1;
|
|
2126
2132
|
}, m = () => {
|
|
2127
2133
|
if (a(async () => {
|
|
2128
|
-
r.value = await
|
|
2134
|
+
r.value = await fe.getRestaurantExternalTerminals(
|
|
2129
2135
|
b.terminal.referenceId,
|
|
2130
2136
|
"BRI"
|
|
2131
2137
|
);
|
|
@@ -2151,7 +2157,7 @@ const Ke = {
|
|
|
2151
2157
|
}
|
|
2152
2158
|
return (i, u) => {
|
|
2153
2159
|
const C = f("FmCircularProgress"), n = f("FmSelect"), x = f("FmButton"), E = f("FmForm");
|
|
2154
|
-
return N(p) ? (g(), S("div",
|
|
2160
|
+
return N(p) ? (g(), S("div", Ha, [
|
|
2155
2161
|
y(C, { size: "xxl" })
|
|
2156
2162
|
])) : (g(), F(E, {
|
|
2157
2163
|
key: 1,
|
|
@@ -2170,7 +2176,7 @@ const Ke = {
|
|
|
2170
2176
|
"helper-text": t.value,
|
|
2171
2177
|
rules: N(X)(N(Z).string().min(1, "External terminal is required"))
|
|
2172
2178
|
}, null, 8, ["modelValue", "items", "helper-text", "rules"]),
|
|
2173
|
-
I("div",
|
|
2179
|
+
I("div", za, [
|
|
2174
2180
|
d.value > -1 ? (g(), F(x, {
|
|
2175
2181
|
key: 0,
|
|
2176
2182
|
class: "flex-1",
|
|
@@ -2190,7 +2196,7 @@ const Ke = {
|
|
|
2190
2196
|
}, 512));
|
|
2191
2197
|
};
|
|
2192
2198
|
}
|
|
2193
|
-
}),
|
|
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__ */ h({
|
|
2194
2200
|
__name: "PbbGateway",
|
|
2195
2201
|
props: {
|
|
2196
2202
|
terminal: {
|
|
@@ -2269,7 +2275,7 @@ const Ke = {
|
|
|
2269
2275
|
label: "Receipt Payment Name",
|
|
2270
2276
|
"label-info": "Default receipt display will be 'TERMINAL_PBB'"
|
|
2271
2277
|
}, null, 8, ["modelValue"]),
|
|
2272
|
-
I("div",
|
|
2278
|
+
I("div", Ja, [
|
|
2273
2279
|
y(o, {
|
|
2274
2280
|
modelValue: r.value,
|
|
2275
2281
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
|
|
@@ -2282,7 +2288,7 @@ const Ke = {
|
|
|
2282
2288
|
onClick: m
|
|
2283
2289
|
})
|
|
2284
2290
|
]),
|
|
2285
|
-
I("div",
|
|
2291
|
+
I("div", Wa, [
|
|
2286
2292
|
(g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
|
|
2287
2293
|
key: n,
|
|
2288
2294
|
label: n,
|
|
@@ -2290,7 +2296,7 @@ const Ke = {
|
|
|
2290
2296
|
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
|
|
2291
2297
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
2292
2298
|
]),
|
|
2293
|
-
I("div",
|
|
2299
|
+
I("div", Xa, [
|
|
2294
2300
|
l.value > -1 ? (g(), F(i, {
|
|
2295
2301
|
key: 0,
|
|
2296
2302
|
class: "flex-1",
|
|
@@ -2310,7 +2316,7 @@ const Ke = {
|
|
|
2310
2316
|
}, 512);
|
|
2311
2317
|
};
|
|
2312
2318
|
}
|
|
2313
|
-
}),
|
|
2319
|
+
}), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */ h({
|
|
2314
2320
|
__name: "EcrGateway",
|
|
2315
2321
|
props: {
|
|
2316
2322
|
terminal: {
|
|
@@ -2328,119 +2334,119 @@ const Ke = {
|
|
|
2328
2334
|
{
|
|
2329
2335
|
label: "FeedMe Terminal",
|
|
2330
2336
|
value: "terminal",
|
|
2331
|
-
render:
|
|
2337
|
+
render: Ze
|
|
2332
2338
|
},
|
|
2333
2339
|
{
|
|
2334
2340
|
label: "GHL Terminal",
|
|
2335
2341
|
value: "ghl",
|
|
2336
|
-
render:
|
|
2342
|
+
render: aa,
|
|
2337
2343
|
region: [P.F_COUNTRY.enum.MY]
|
|
2338
2344
|
},
|
|
2339
2345
|
{
|
|
2340
2346
|
label: "GHL2 Terminal",
|
|
2341
2347
|
value: "ghl2",
|
|
2342
|
-
render:
|
|
2348
|
+
render: wa,
|
|
2343
2349
|
region: [P.F_COUNTRY.enum.MY]
|
|
2344
2350
|
},
|
|
2345
2351
|
{
|
|
2346
2352
|
label: "ITB Maybank Terminal",
|
|
2347
2353
|
value: "mb-itb",
|
|
2348
|
-
render:
|
|
2354
|
+
render: oa,
|
|
2349
2355
|
region: [P.F_COUNTRY.enum.MY]
|
|
2350
2356
|
},
|
|
2351
2357
|
{
|
|
2352
2358
|
label: "PMA Maybank Terminal",
|
|
2353
2359
|
value: "mb-pma",
|
|
2354
|
-
render:
|
|
2360
|
+
render: ua,
|
|
2355
2361
|
region: [P.F_COUNTRY.enum.MY]
|
|
2356
2362
|
},
|
|
2357
2363
|
{
|
|
2358
2364
|
label: "Paysys Maybank Terminal",
|
|
2359
2365
|
value: "mb-paysys",
|
|
2360
|
-
render:
|
|
2366
|
+
render: pa,
|
|
2361
2367
|
region: [P.F_COUNTRY.enum.MY]
|
|
2362
2368
|
},
|
|
2363
2369
|
{
|
|
2364
2370
|
label: "Nets Terminal",
|
|
2365
2371
|
value: "nets",
|
|
2366
|
-
render:
|
|
2372
|
+
render: ga,
|
|
2367
2373
|
region: [P.F_COUNTRY.enum.SG]
|
|
2368
2374
|
},
|
|
2369
2375
|
{
|
|
2370
2376
|
label: "KBank Terminal",
|
|
2371
2377
|
value: "kbank",
|
|
2372
|
-
render:
|
|
2378
|
+
render: Ia,
|
|
2373
2379
|
region: [P.F_COUNTRY.enum.TH]
|
|
2374
2380
|
},
|
|
2375
2381
|
{
|
|
2376
2382
|
label: "GHL Terminal",
|
|
2377
2383
|
value: "ghl3",
|
|
2378
|
-
render:
|
|
2384
|
+
render: Na,
|
|
2379
2385
|
region: [P.F_COUNTRY.enum.TH]
|
|
2380
2386
|
},
|
|
2381
2387
|
{
|
|
2382
2388
|
label: "Paysys HLBB Terminal",
|
|
2383
2389
|
value: "hlbb",
|
|
2384
|
-
render:
|
|
2390
|
+
render: ha,
|
|
2385
2391
|
region: [P.F_COUNTRY.enum.MY]
|
|
2386
2392
|
},
|
|
2387
2393
|
{
|
|
2388
2394
|
label: "GPAP Terminal",
|
|
2389
2395
|
value: "globalpayments",
|
|
2390
|
-
render:
|
|
2396
|
+
render: Oa,
|
|
2391
2397
|
region: [P.F_COUNTRY.enum.SG]
|
|
2392
2398
|
},
|
|
2393
2399
|
{
|
|
2394
2400
|
label: "OMA Terminal",
|
|
2395
2401
|
value: "oma",
|
|
2396
|
-
render:
|
|
2402
|
+
render: Ga,
|
|
2397
2403
|
region: [P.F_COUNTRY.enum.PK]
|
|
2398
2404
|
},
|
|
2399
2405
|
{
|
|
2400
2406
|
label: "Revenue PBB Terminal",
|
|
2401
2407
|
value: "revenue",
|
|
2402
|
-
render:
|
|
2408
|
+
render: La,
|
|
2403
2409
|
region: [P.F_COUNTRY.enum.MY]
|
|
2404
2410
|
},
|
|
2405
2411
|
{
|
|
2406
2412
|
label: "PBB Terminal",
|
|
2407
2413
|
value: "pbb",
|
|
2408
|
-
render:
|
|
2414
|
+
render: Za,
|
|
2409
2415
|
region: [P.F_COUNTRY.enum.MY]
|
|
2410
2416
|
},
|
|
2411
2417
|
{
|
|
2412
2418
|
label: "Beam Terminal",
|
|
2413
2419
|
value: "beam",
|
|
2414
|
-
render:
|
|
2420
|
+
render: Ka,
|
|
2415
2421
|
region: [P.F_COUNTRY.enum.TH]
|
|
2416
2422
|
},
|
|
2417
2423
|
{
|
|
2418
2424
|
label: "BRI Terminal",
|
|
2419
2425
|
value: "bri",
|
|
2420
|
-
render:
|
|
2426
|
+
render: Qa,
|
|
2421
2427
|
region: [P.F_COUNTRY.enum.ID]
|
|
2422
2428
|
}
|
|
2423
|
-
], b = V(() => a.find((c) => c.value === e.value)), l =
|
|
2429
|
+
], b = V(() => a.find((c) => c.value === e.value)), l = ie().currentCountry, r = V(() => a.filter(
|
|
2424
2430
|
(c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY)
|
|
2425
|
-
)), { gatewayTab: e } =
|
|
2431
|
+
)), { gatewayTab: e } = oe({
|
|
2426
2432
|
gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
|
|
2427
2433
|
});
|
|
2428
2434
|
return (c, v) => {
|
|
2429
2435
|
var s;
|
|
2430
2436
|
const m = f("FmTabs");
|
|
2431
|
-
return g(), S("div",
|
|
2432
|
-
I("div",
|
|
2437
|
+
return g(), S("div", et, [
|
|
2438
|
+
I("div", at, [
|
|
2433
2439
|
y(m, {
|
|
2434
2440
|
"model-value": N(e),
|
|
2435
|
-
"onUpdate:modelValue": v[0] || (v[0] = (t) =>
|
|
2441
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => ae(e) ? e.value = t : null),
|
|
2436
2442
|
class: "mb-6",
|
|
2437
2443
|
vertical: !0,
|
|
2438
2444
|
items: r.value,
|
|
2439
2445
|
"show-more-at": Number.POSITIVE_INFINITY
|
|
2440
2446
|
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
2441
2447
|
]),
|
|
2442
|
-
I("div",
|
|
2443
|
-
N(e) ? (g(), F(
|
|
2448
|
+
I("div", tt, [
|
|
2449
|
+
N(e) ? (g(), F(te((s = b.value) == null ? void 0 : s.render), le(ne({ key: 0 }, {
|
|
2444
2450
|
terminal: p.terminal,
|
|
2445
2451
|
onUpdate: p.onUpdate
|
|
2446
2452
|
})), null, 16)) : U("", !0)
|
|
@@ -2448,7 +2454,7 @@ const Ke = {
|
|
|
2448
2454
|
]);
|
|
2449
2455
|
};
|
|
2450
2456
|
}
|
|
2451
|
-
}),
|
|
2457
|
+
}), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */ h({
|
|
2452
2458
|
__name: "PromptPayGateway",
|
|
2453
2459
|
props: {
|
|
2454
2460
|
terminal: {
|
|
@@ -2506,7 +2512,7 @@ const Ke = {
|
|
|
2506
2512
|
label: "Receipt Payment Name",
|
|
2507
2513
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
2508
2514
|
}, null, 8, ["modelValue"]),
|
|
2509
|
-
I("div",
|
|
2515
|
+
I("div", nt, [
|
|
2510
2516
|
l.value > -1 ? (g(), F(t, {
|
|
2511
2517
|
key: 0,
|
|
2512
2518
|
class: "flex-1",
|
|
@@ -2526,7 +2532,7 @@ const Ke = {
|
|
|
2526
2532
|
}, 512);
|
|
2527
2533
|
};
|
|
2528
2534
|
}
|
|
2529
|
-
}),
|
|
2535
|
+
}), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */ h({
|
|
2530
2536
|
__name: "QrGateway",
|
|
2531
2537
|
props: {
|
|
2532
2538
|
terminal: {
|
|
@@ -2544,27 +2550,27 @@ const Ke = {
|
|
|
2544
2550
|
{
|
|
2545
2551
|
label: "PromptPay",
|
|
2546
2552
|
value: "promptpay",
|
|
2547
|
-
render:
|
|
2553
|
+
render: ot,
|
|
2548
2554
|
region: [P.F_COUNTRY.enum.TH]
|
|
2549
2555
|
}
|
|
2550
|
-
], b = V(() => a.find((c) => c.value === e.value)), l =
|
|
2556
|
+
], b = V(() => a.find((c) => c.value === e.value)), l = ie().currentCountry, r = V(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = oe({
|
|
2551
2557
|
gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
|
|
2552
2558
|
});
|
|
2553
2559
|
return (c, v) => {
|
|
2554
2560
|
var s;
|
|
2555
2561
|
const m = f("FmTabs");
|
|
2556
|
-
return g(), S("div",
|
|
2557
|
-
I("div",
|
|
2562
|
+
return g(), S("div", rt, [
|
|
2563
|
+
I("div", it, [
|
|
2558
2564
|
y(m, {
|
|
2559
2565
|
"model-value": N(e),
|
|
2560
|
-
"onUpdate:modelValue": v[0] || (v[0] = (t) =>
|
|
2566
|
+
"onUpdate:modelValue": v[0] || (v[0] = (t) => ae(e) ? e.value = t : null),
|
|
2561
2567
|
class: "mb-6",
|
|
2562
2568
|
vertical: !0,
|
|
2563
2569
|
items: r.value
|
|
2564
2570
|
}, null, 8, ["model-value", "items"])
|
|
2565
2571
|
]),
|
|
2566
|
-
I("div",
|
|
2567
|
-
N(e) ? (g(), F(
|
|
2572
|
+
I("div", st, [
|
|
2573
|
+
N(e) ? (g(), F(te((s = b.value) == null ? void 0 : s.render), le(ne({ key: 0 }, {
|
|
2568
2574
|
terminal: p.terminal,
|
|
2569
2575
|
onUpdate: p.onUpdate
|
|
2570
2576
|
})), null, 16)) : U("", !0)
|
|
@@ -2572,7 +2578,7 @@ const Ke = {
|
|
|
2572
2578
|
]);
|
|
2573
2579
|
};
|
|
2574
2580
|
}
|
|
2575
|
-
}),
|
|
2581
|
+
}), kt = /* @__PURE__ */ h({
|
|
2576
2582
|
__name: "TerminalSetting",
|
|
2577
2583
|
props: {
|
|
2578
2584
|
terminalId: {
|
|
@@ -2581,9 +2587,9 @@ const Ke = {
|
|
|
2581
2587
|
}
|
|
2582
2588
|
},
|
|
2583
2589
|
setup(T) {
|
|
2584
|
-
const p = T, { tab: a } =
|
|
2590
|
+
const p = T, { tab: a } = oe({
|
|
2585
2591
|
tab: "information"
|
|
2586
|
-
}), { isLoading: b, startAsyncCall: l } = J(!0), r =
|
|
2592
|
+
}), { isLoading: b, startAsyncCall: l } = J(!0), r = Ie(), e = me(), d = we(), { t: c } = re(), v = _();
|
|
2587
2593
|
async function m(w, k) {
|
|
2588
2594
|
l(async () => {
|
|
2589
2595
|
try {
|
|
@@ -2613,43 +2619,43 @@ const Ke = {
|
|
|
2613
2619
|
label: "Information",
|
|
2614
2620
|
value: "information",
|
|
2615
2621
|
icon: "overview",
|
|
2616
|
-
render:
|
|
2622
|
+
render: Ve
|
|
2617
2623
|
},
|
|
2618
2624
|
{
|
|
2619
2625
|
label: "Setting Request",
|
|
2620
2626
|
value: "settings",
|
|
2621
2627
|
icon: "settings",
|
|
2622
|
-
render:
|
|
2628
|
+
render: Ee,
|
|
2623
2629
|
onlyFor: ["TERMINAL"]
|
|
2624
2630
|
},
|
|
2625
2631
|
{
|
|
2626
2632
|
label: "SoftPos Gateway",
|
|
2627
2633
|
value: "softpos",
|
|
2628
2634
|
icon: "payment",
|
|
2629
|
-
render:
|
|
2635
|
+
render: Je
|
|
2630
2636
|
},
|
|
2631
2637
|
{
|
|
2632
2638
|
label: "ECR Gateway",
|
|
2633
2639
|
value: "ecr",
|
|
2634
2640
|
icon: "point_of_sale",
|
|
2635
|
-
render:
|
|
2641
|
+
render: lt,
|
|
2636
2642
|
onlyFor: ["POS", "KIOSK"]
|
|
2637
2643
|
},
|
|
2638
2644
|
{
|
|
2639
2645
|
label: "QR Gateway",
|
|
2640
2646
|
value: "qr",
|
|
2641
2647
|
icon: "qr_code",
|
|
2642
|
-
render:
|
|
2648
|
+
render: ut,
|
|
2643
2649
|
onlyFor: ["POS", "KIOSK"]
|
|
2644
2650
|
},
|
|
2645
2651
|
{
|
|
2646
2652
|
label: "Payment Checkout",
|
|
2647
2653
|
value: "payment-checkout",
|
|
2648
2654
|
icon: "tune",
|
|
2649
|
-
render:
|
|
2655
|
+
render: Ne,
|
|
2650
2656
|
onlyFor: ["KIOSK", "POS"]
|
|
2651
2657
|
}
|
|
2652
|
-
], t =
|
|
2658
|
+
], t = ve.FdoTerminalTemplateDeviceType.options, o = V(
|
|
2653
2659
|
() => {
|
|
2654
2660
|
var w;
|
|
2655
2661
|
return t.includes(((w = v.value) == null ? void 0 : w.deviceType) ?? "");
|
|
@@ -2661,11 +2667,11 @@ const Ke = {
|
|
|
2661
2667
|
title: "Save as Template",
|
|
2662
2668
|
closeButton: !0,
|
|
2663
2669
|
overlay: !0,
|
|
2664
|
-
contentComponent:
|
|
2670
|
+
contentComponent: Re
|
|
2665
2671
|
}).onPrimary(async (k) => {
|
|
2666
2672
|
d.close();
|
|
2667
2673
|
try {
|
|
2668
|
-
await
|
|
2674
|
+
await pe.create({
|
|
2669
2675
|
name: k.name,
|
|
2670
2676
|
description: k.description,
|
|
2671
2677
|
businessId: w.restaurant.businessId,
|
|
@@ -2692,7 +2698,7 @@ const Ke = {
|
|
|
2692
2698
|
});
|
|
2693
2699
|
}
|
|
2694
2700
|
async function u() {
|
|
2695
|
-
const w = v.value, k = await
|
|
2701
|
+
const w = v.value, k = await pe.readByBusiness(
|
|
2696
2702
|
w.restaurant.businessId,
|
|
2697
2703
|
w.deviceType
|
|
2698
2704
|
);
|
|
@@ -2700,10 +2706,10 @@ const Ke = {
|
|
|
2700
2706
|
title: "Apply Template",
|
|
2701
2707
|
closeButton: !0,
|
|
2702
2708
|
overlay: !0,
|
|
2703
|
-
contentComponent:
|
|
2709
|
+
contentComponent: qe,
|
|
2704
2710
|
contentComponentProps: { templates: k }
|
|
2705
2711
|
}).onPrimary(async (B) => {
|
|
2706
|
-
d.close(),
|
|
2712
|
+
d.close(), xe(
|
|
2707
2713
|
d,
|
|
2708
2714
|
"Apply Template",
|
|
2709
2715
|
c("payment.terminal_template.scope_info"),
|
|
@@ -2732,7 +2738,7 @@ const Ke = {
|
|
|
2732
2738
|
{ label: "Apply Template", fn: u }
|
|
2733
2739
|
] : []
|
|
2734
2740
|
);
|
|
2735
|
-
|
|
2741
|
+
ie().currentCountry;
|
|
2736
2742
|
const n = V(() => {
|
|
2737
2743
|
var w;
|
|
2738
2744
|
return (w = s.find((k) => k.value === a.value)) == null ? void 0 : w.render;
|
|
@@ -2751,7 +2757,7 @@ const Ke = {
|
|
|
2751
2757
|
return q(x), (w, k) => {
|
|
2752
2758
|
var $, K;
|
|
2753
2759
|
const B = f("FmTabs");
|
|
2754
|
-
return g(), F(
|
|
2760
|
+
return g(), F(Fe, {
|
|
2755
2761
|
title: `${($ = v.value) == null ? void 0 : $.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
|
|
2756
2762
|
loading: N(b),
|
|
2757
2763
|
actions: C.value,
|
|
@@ -2760,11 +2766,11 @@ const Ke = {
|
|
|
2760
2766
|
default: O(() => [
|
|
2761
2767
|
y(B, {
|
|
2762
2768
|
"model-value": N(a),
|
|
2763
|
-
"onUpdate:modelValue": k[0] || (k[0] = (H) =>
|
|
2769
|
+
"onUpdate:modelValue": k[0] || (k[0] = (H) => ae(a) ? a.value = H : null),
|
|
2764
2770
|
class: "mb-6",
|
|
2765
2771
|
items: E.value
|
|
2766
2772
|
}, null, 8, ["model-value", "items"]),
|
|
2767
|
-
N(a) ? (g(), F(
|
|
2773
|
+
N(a) ? (g(), F(te(n.value), le(ne({ key: 0 }, {
|
|
2768
2774
|
terminal: v.value,
|
|
2769
2775
|
onUpdate: m
|
|
2770
2776
|
})), null, 16)) : U("", !0)
|
|
@@ -2775,5 +2781,5 @@ const Ke = {
|
|
|
2775
2781
|
}
|
|
2776
2782
|
});
|
|
2777
2783
|
export {
|
|
2778
|
-
|
|
2784
|
+
kt as default
|
|
2779
2785
|
};
|