@feedmepos/mf-payment 1.4.47 → 1.5.0-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-sYaYPQ_s.js → Actions.vue_vue_type_script_setup_true_lang-DGbH2LsQ.js} +43 -43
- package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js → AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js} +13 -13
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-I9eO197f.js +47 -0
- package/dist/{Chargeback-BftBez0p.js → Chargeback-19afdT_4.js} +83 -83
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js → DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js} +1 -1
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-CzwG5dCO.js +77 -0
- package/dist/Forbidden-CSTZjebc.js +38 -0
- package/dist/Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js +45 -0
- package/dist/{OnboardForm-Bk5eHmN0.js → OnboardForm-Cc6JOr09.js} +596 -528
- package/dist/{OnboardForm-DURv3s6I.js → OnboardForm-Do6ar3sx.js} +363 -347
- package/dist/{OnboardSubmission-BOiXSkVB.js → OnboardSubmission-B-leoVPo.js} +4 -4
- package/dist/{OnboardSubmission-Bjf_EOKq.js → OnboardSubmission-Dj8AGb69.js} +8 -8
- package/dist/PDFViewer-DgyyGDHl.js +23209 -0
- package/dist/{PayoutAccount-Ban4QG9e.js → PayoutAccount--1J5ubvX.js} +341 -312
- package/dist/{PayoutAccount-D-oQ4vID.js → PayoutAccount-ChGlsZ-O.js} +75 -75
- package/dist/{PayoutAccountSetting-YYswVooL.js → PayoutAccountSetting-BC0ANAqY.js} +281 -266
- package/dist/{Restaurant-26r7Q01z.js → Restaurant-ZiTHtFZJ.js} +79 -79
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-Bzj_sdSY.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js} +3 -3
- package/dist/{RestaurantSetting-D1APrvzM.js → RestaurantSetting-M1jYaGwx.js} +5 -5
- package/dist/{SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js → SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js} +5 -5
- package/dist/{Settlement-CWX5RKwL.js → Settlement-Cj2W8VfH.js} +7 -7
- package/dist/{Settlement-Ix55QLVB.js → Settlement-D_nmqYEC.js} +12 -15
- package/dist/{SettlementTransactions-DYAlKO__.js → SettlementTransactions-Ch9jeQU6.js} +99 -99
- package/dist/{SettlementTransactions-BIodJ6DN.js → SettlementTransactions-DK1ONvn6.js} +55 -55
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +9 -9
- package/dist/Terminal-CoPPPePw.js +1135 -0
- package/dist/{TerminalSetting-BiaGvysm.js → TerminalSetting-PWs1fyFe.js} +549 -425
- package/dist/{Transaction-D51QiCaP.js → Transaction-BirTp8t6.js} +82 -82
- package/dist/{Transaction-ouagKBic.js → Transaction-CegzBK7m.js} +65 -65
- package/dist/{TransactionOld-CCzonxUD.js → TransactionOld-DqGMuWvL.js} +9 -9
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/document/index.d.ts +4 -0
- package/dist/{app-COvZzQVV.js → app-D6U0uODp.js} +426 -490
- package/dist/app.js +1 -1
- package/dist/{assets--JQWdCl5.js → assets-DtwUojcS.js} +1 -1
- package/dist/components/AdminLayout.vue.d.ts +3 -3
- package/dist/components/AutoCopyCell.vue.d.ts +1 -1
- package/dist/components/DocumentViewer.vue.d.ts +16 -0
- package/dist/components/ImagePreview.vue.d.ts +3 -3
- package/dist/components/Layout.vue.d.ts +3 -3
- package/dist/components/PDFViewer.vue.d.ts +4 -4
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +1 -1
- package/dist/{grafana-22PXAn1O.js → grafana-fZyobMgN.js} +1 -1
- package/dist/{index-B0uA-O38.js → index--K2ipr4H.js} +7 -7
- package/dist/{index-cCTvH31Z.js → index-BJNCcdvT.js} +22132 -24859
- package/dist/{index-Blb5YaYR.js → index-C-YBwRQp.js} +3 -3
- package/dist/{index-Ctn4LFui.js → index-CMN40t8e.js} +1 -1
- package/dist/{index-DR0voetw.js → index-CbONxZz2.js} +17 -13
- package/dist/{index-BLyx8ZQr.js → index-CtkwL_6R.js} +1 -1
- package/dist/{index-B9kHmV6p.js → index-D69RnDa7.js} +19 -19
- package/dist/index-_u7l8cO3.js +27 -0
- package/dist/{index-B0-Kn6Mw.js → index-eLZ3BErV.js} +12 -12
- package/dist/{index.vue_vue_type_script_setup_true_lang-NUicoOT2.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +50 -50
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{Forbidden-Dqw0MqyC.js → no-data-BRmo6XOO.js} +2 -35
- package/dist/package.json +13 -7
- package/dist/{payout-account-DQZ0J8Ds.js → payout-account-CVYMFqu9.js} +78 -77
- package/dist/plugins.d.ts +1 -5
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{validator-D5jtpt9A.js → validator-DzjyJnvv.js} +842 -763
- package/dist/views/Forbidden.vue.d.ts +1 -1
- package/dist/views/admin/chargeback/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
- package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +3 -2
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +1 -1
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +118 -244
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +28 -8
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +1 -1
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +29 -9
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +29 -9
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +250 -0
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +28 -8
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
- package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
- package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +6 -5
- package/dist/views/payout-account/PayoutAccountDialog.vue.d.ts +2 -2
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +68 -68
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +34 -34
- package/dist/views/transaction/cell/Actions.vue.d.ts +1 -1
- package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
- package/package.json +26 -20
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js +0 -47
- package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +0 -45
- package/dist/PDFViewer-DHKBD99J.js +0 -22433
- package/dist/Terminal-CrM7EzkM.js +0 -1095
- package/dist/plugins-DuKITasE.js +0 -1366
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as H, e as
|
|
1
|
+
import { defineComponent as k, openBlock as g, createElementBlock as V, Fragment as q, createElementVNode as I, createTextVNode as $, toDisplayString as D, ref as b, resolveComponent as y, createVNode as v, createCommentVNode as N, unref as S, computed as R, isRef as B, createBlock as T, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as K, toRef as G, watch as O, onMounted as M, withCtx as h, renderList as P } from "vue";
|
|
2
|
+
import { u as H, e as C } from "./index-BJNCcdvT.js";
|
|
3
3
|
import { useRouter as W } from "vue-router";
|
|
4
|
-
import { t as
|
|
5
|
-
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as E } from "./index-
|
|
4
|
+
import { t as A } from "./index-C-YBwRQp.js";
|
|
5
|
+
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
+
import { u as E } from "./index-CtkwL_6R.js";
|
|
7
7
|
import { useSnackbar as Q } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as Z } from "./error-K1CakhA9.js";
|
|
9
9
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
|
10
|
-
import { z as ee, a as ae } from "./validator-
|
|
11
|
-
const te = /* @__PURE__ */
|
|
10
|
+
import { z as ee, a as ae } from "./validator-DzjyJnvv.js";
|
|
11
|
+
const te = /* @__PURE__ */ k({
|
|
12
12
|
__name: "Information",
|
|
13
13
|
props: {
|
|
14
14
|
terminal: {
|
|
@@ -16,23 +16,23 @@ const te = /* @__PURE__ */ N({
|
|
|
16
16
|
required: !0
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (d, a) => (g(),
|
|
21
|
-
a[0] || (a[0] =
|
|
22
|
-
$(": " +
|
|
23
|
-
a[1] || (a[1] =
|
|
24
|
-
a[2] || (a[2] =
|
|
25
|
-
$(": " +
|
|
26
|
-
a[3] || (a[3] =
|
|
27
|
-
a[4] || (a[4] =
|
|
28
|
-
$(": " +
|
|
29
|
-
a[5] || (a[5] =
|
|
30
|
-
a[6] || (a[6] =
|
|
31
|
-
$(": " +
|
|
32
|
-
a[7] || (a[7] =
|
|
19
|
+
setup(F) {
|
|
20
|
+
return (d, a) => (g(), V(q, null, [
|
|
21
|
+
a[0] || (a[0] = I("b", null, "Name", -1)),
|
|
22
|
+
$(": " + D(F.terminal.name), 1),
|
|
23
|
+
a[1] || (a[1] = I("br", null, null, -1)),
|
|
24
|
+
a[2] || (a[2] = I("b", null, "Status", -1)),
|
|
25
|
+
$(": " + D(F.terminal.status), 1),
|
|
26
|
+
a[3] || (a[3] = I("br", null, null, -1)),
|
|
27
|
+
a[4] || (a[4] = I("b", null, "Device ID", -1)),
|
|
28
|
+
$(": " + D(F.terminal.deviceId ?? "-"), 1),
|
|
29
|
+
a[5] || (a[5] = I("br", null, null, -1)),
|
|
30
|
+
a[6] || (a[6] = I("b", null, "Device Type", -1)),
|
|
31
|
+
$(": " + D(F.terminal.deviceType ?? "-"), 1),
|
|
32
|
+
a[7] || (a[7] = I("br", null, null, -1))
|
|
33
33
|
], 64));
|
|
34
34
|
}
|
|
35
|
-
}), le = { key: 0 }, ne = { class: "mt-6 space-x-6" }, oe = /* @__PURE__ */
|
|
35
|
+
}), le = { key: 0 }, ne = { class: "mt-6 space-x-6" }, oe = /* @__PURE__ */ k({
|
|
36
36
|
__name: "KioskMode",
|
|
37
37
|
props: {
|
|
38
38
|
terminal: {
|
|
@@ -40,13 +40,13 @@ const te = /* @__PURE__ */ N({
|
|
|
40
40
|
required: !0
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const { isLoading: d, startAsyncCall: a } = H(!1),
|
|
43
|
+
setup(F) {
|
|
44
|
+
const { isLoading: d, startAsyncCall: a } = H(!1), _ = Q(), l = b({
|
|
45
45
|
enable: !1,
|
|
46
46
|
password: []
|
|
47
|
-
}),
|
|
47
|
+
}), r = F;
|
|
48
48
|
function e() {
|
|
49
|
-
return l.value.enable && l.value.password.filter((m) => !!m).length !== 6 ?
|
|
49
|
+
return l.value.enable && l.value.password.filter((m) => !!m).length !== 6 ? _.open({
|
|
50
50
|
type: "error",
|
|
51
51
|
message: "Unlock PIN is required when setting up kiosk mode for terminal."
|
|
52
52
|
}) : a(async () => {
|
|
@@ -54,33 +54,33 @@ const te = /* @__PURE__ */ N({
|
|
|
54
54
|
m.enable && Object.assign(m, {
|
|
55
55
|
password: l.value.password.join("")
|
|
56
56
|
});
|
|
57
|
-
const c = await
|
|
57
|
+
const c = await A.kioskModeRequest(r.terminal._id, m);
|
|
58
58
|
if (c === "OK")
|
|
59
|
-
return
|
|
59
|
+
return _.open({ type: "info", message: "Kiosk mode applied successfully." });
|
|
60
60
|
let f = c;
|
|
61
|
-
return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = c.replaceAll("terminal: ", "")),
|
|
61
|
+
return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = c.replaceAll("terminal: ", "")), _.open({
|
|
62
62
|
type: "error",
|
|
63
63
|
message: f
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
return (m, c) => {
|
|
68
|
-
const f = y("FmSwitch"), s = y("FmPinField"),
|
|
69
|
-
return g(),
|
|
68
|
+
const f = y("FmSwitch"), s = y("FmPinField"), u = y("FmButton");
|
|
69
|
+
return g(), V(q, null, [
|
|
70
70
|
v(f, {
|
|
71
71
|
modelValue: l.value.enable,
|
|
72
72
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
|
|
73
73
|
label: "Enable Kiosk Mode?"
|
|
74
74
|
}, null, 8, ["modelValue"]),
|
|
75
|
-
l.value.enable ? (g(),
|
|
76
|
-
c[2] || (c[2] =
|
|
75
|
+
l.value.enable ? (g(), V("div", le, [
|
|
76
|
+
c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
|
|
77
77
|
v(s, {
|
|
78
78
|
modelValue: l.value.password,
|
|
79
79
|
"onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
|
|
80
80
|
}, null, 8, ["modelValue"])
|
|
81
|
-
])) :
|
|
82
|
-
|
|
83
|
-
v(
|
|
81
|
+
])) : N("", !0),
|
|
82
|
+
I("div", ne, [
|
|
83
|
+
v(u, {
|
|
84
84
|
variant: "primary",
|
|
85
85
|
label: "Send",
|
|
86
86
|
icon: "send",
|
|
@@ -91,7 +91,7 @@ const te = /* @__PURE__ */ N({
|
|
|
91
91
|
], 64);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
}), re = /* @__PURE__ */
|
|
94
|
+
}), re = /* @__PURE__ */ k({
|
|
95
95
|
__name: "SettingRequest",
|
|
96
96
|
props: {
|
|
97
97
|
terminal: {
|
|
@@ -99,7 +99,7 @@ const te = /* @__PURE__ */ N({
|
|
|
99
99
|
required: !0
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
setup(
|
|
102
|
+
setup(F) {
|
|
103
103
|
const { settingTab: d } = E({
|
|
104
104
|
settingTab: "kiosk_mode"
|
|
105
105
|
}), a = [
|
|
@@ -108,13 +108,13 @@ const te = /* @__PURE__ */ N({
|
|
|
108
108
|
value: "kiosk_mode",
|
|
109
109
|
render: oe
|
|
110
110
|
}
|
|
111
|
-
],
|
|
112
|
-
return (
|
|
111
|
+
], _ = F, l = R(() => a.find((r) => r.value === d.value));
|
|
112
|
+
return (r, e) => {
|
|
113
113
|
var c;
|
|
114
114
|
const m = y("FmTabs");
|
|
115
|
-
return g(),
|
|
116
|
-
e[1] || (e[1] =
|
|
117
|
-
|
|
115
|
+
return g(), V(q, null, [
|
|
116
|
+
e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
|
|
117
|
+
I("b", null, "Note: "),
|
|
118
118
|
$(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
|
|
119
119
|
], -1)),
|
|
120
120
|
v(m, {
|
|
@@ -123,14 +123,14 @@ const te = /* @__PURE__ */ N({
|
|
|
123
123
|
class: "mb-6",
|
|
124
124
|
items: a
|
|
125
125
|
}, null, 8, ["model-value"]),
|
|
126
|
-
S(d) ? (g(),
|
|
126
|
+
S(d) ? (g(), T(Y((c = l.value) == null ? void 0 : c.render), L(K({ key: 0 }, { terminal: _.terminal })), null, 16)) : N("", !0)
|
|
127
127
|
], 64);
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
}), ie = {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: "text-sm text-gray-500"
|
|
133
|
-
}, ue = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */
|
|
133
|
+
}, ue = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */ k({
|
|
134
134
|
__name: "SoftposGateway",
|
|
135
135
|
props: {
|
|
136
136
|
terminal: {
|
|
@@ -142,12 +142,12 @@ const te = /* @__PURE__ */ N({
|
|
|
142
142
|
required: !0
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
setup(
|
|
146
|
-
const d =
|
|
145
|
+
setup(F) {
|
|
146
|
+
const d = F, a = j().currentCountry, _ = [
|
|
147
147
|
{
|
|
148
148
|
label: "Fiuu Malaysia",
|
|
149
149
|
value: "cc.feedme.payment.rms",
|
|
150
|
-
region:
|
|
150
|
+
region: C.F_COUNTRY.enum.MY,
|
|
151
151
|
gateway: "Fiuu",
|
|
152
152
|
isLegacy: !0,
|
|
153
153
|
isOutdated: !0
|
|
@@ -155,14 +155,14 @@ const te = /* @__PURE__ */ N({
|
|
|
155
155
|
{
|
|
156
156
|
label: "Fiuu Malaysia V2",
|
|
157
157
|
value: "cc.feedme.payment.fiuu_my",
|
|
158
|
-
region:
|
|
158
|
+
region: C.F_COUNTRY.enum.MY,
|
|
159
159
|
gateway: "Fiuu",
|
|
160
160
|
isLegacy: !0
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
label: "Fiuu Singapore",
|
|
164
164
|
value: "cc.feedme.payment.fiuu_sg",
|
|
165
|
-
region:
|
|
165
|
+
region: C.F_COUNTRY.enum.SG,
|
|
166
166
|
gateway: "Fiuu",
|
|
167
167
|
isLegacy: !0
|
|
168
168
|
},
|
|
@@ -170,15 +170,15 @@ const te = /* @__PURE__ */ N({
|
|
|
170
170
|
label: "Softspace Malaysia",
|
|
171
171
|
value: "cc.feedme.payment.softspace_my",
|
|
172
172
|
gateway: "Softspace",
|
|
173
|
-
region:
|
|
173
|
+
region: C.F_COUNTRY.enum.MY
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
label: "Digio Thailand",
|
|
177
177
|
value: "cc.feedme.payment.digio_th",
|
|
178
178
|
gateway: "Digio",
|
|
179
|
-
region:
|
|
179
|
+
region: C.F_COUNTRY.enum.TH
|
|
180
180
|
}
|
|
181
|
-
], l =
|
|
181
|
+
], l = G(() => d.terminal), r = b(), e = b({
|
|
182
182
|
packageId: "",
|
|
183
183
|
uniqueId: "",
|
|
184
184
|
developerId: "",
|
|
@@ -217,69 +217,69 @@ const te = /* @__PURE__ */ N({
|
|
|
217
217
|
var n;
|
|
218
218
|
(n = l.value.gateways) == null || n.splice(t, 1), d.onUpdate(l.value);
|
|
219
219
|
}
|
|
220
|
-
const s = R(() =>
|
|
220
|
+
const s = R(() => _.filter((t) => t.region === a.value)), u = R(() => s.value.find((t) => t.value === e.value.packageId));
|
|
221
221
|
return (t, n) => {
|
|
222
|
-
const
|
|
223
|
-
return g(), w
|
|
224
|
-
ref:
|
|
222
|
+
const i = y("FmSelect"), p = y("FmTextField"), x = y("FmCheckbox"), o = y("FmButton"), w = y("FmForm");
|
|
223
|
+
return g(), T(w, {
|
|
224
|
+
ref: r.value,
|
|
225
225
|
class: "flex flex-col gap-16 w-[500px]",
|
|
226
226
|
onValidationSuccess: n[5] || (n[5] = () => {
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
227
|
+
const U = u.value;
|
|
228
|
+
if (!U)
|
|
229
229
|
return;
|
|
230
230
|
let z = e.value.uniqueId;
|
|
231
|
-
|
|
231
|
+
U.isLegacy || (z = JSON.stringify({ uniqueId: e.value.uniqueId, developerId: e.value.developerId, isUat: e.value.isUat }));
|
|
232
232
|
const J = {
|
|
233
|
-
gateway:
|
|
233
|
+
gateway: U.gateway,
|
|
234
234
|
config: {
|
|
235
|
-
packageId:
|
|
235
|
+
packageId: U.value,
|
|
236
236
|
uniqueId: z
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
(!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = J, d.onUpdate(l.value);
|
|
240
240
|
})
|
|
241
241
|
}, {
|
|
242
|
-
default:
|
|
243
|
-
v(
|
|
242
|
+
default: h(() => [
|
|
243
|
+
v(i, {
|
|
244
244
|
modelValue: e.value.packageId,
|
|
245
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
245
|
+
"onUpdate:modelValue": n[0] || (n[0] = (U) => e.value.packageId = U),
|
|
246
246
|
label: "Package ID",
|
|
247
247
|
items: s.value
|
|
248
248
|
}, null, 8, ["modelValue", "items"]),
|
|
249
|
-
|
|
249
|
+
u.value && u.value.isLegacy ? (g(), V(q, { key: 0 }, [
|
|
250
250
|
v(p, {
|
|
251
251
|
modelValue: e.value.uniqueId,
|
|
252
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
252
|
+
"onUpdate:modelValue": n[1] || (n[1] = (U) => e.value.uniqueId = U),
|
|
253
253
|
label: "Unique ID (TID)"
|
|
254
254
|
}, null, 8, ["modelValue"]),
|
|
255
|
-
|
|
256
|
-
], 64)) : (g(),
|
|
255
|
+
u.value.isOutdated ? (g(), V("span", ie, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : N("", !0)
|
|
256
|
+
], 64)) : (g(), V(q, { key: 1 }, [
|
|
257
257
|
v(p, {
|
|
258
258
|
modelValue: e.value.developerId,
|
|
259
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
259
|
+
"onUpdate:modelValue": n[2] || (n[2] = (U) => e.value.developerId = U),
|
|
260
260
|
label: "Developer ID (MID)"
|
|
261
261
|
}, null, 8, ["modelValue"]),
|
|
262
262
|
v(p, {
|
|
263
263
|
modelValue: e.value.uniqueId,
|
|
264
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
264
|
+
"onUpdate:modelValue": n[3] || (n[3] = (U) => e.value.uniqueId = U),
|
|
265
265
|
label: "Unique ID (TID)"
|
|
266
266
|
}, null, 8, ["modelValue"]),
|
|
267
267
|
v(x, {
|
|
268
268
|
modelValue: e.value.isUat,
|
|
269
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
269
|
+
"onUpdate:modelValue": n[4] || (n[4] = (U) => e.value.isUat = U),
|
|
270
270
|
label: "Is UAT (Test)",
|
|
271
271
|
value: "1"
|
|
272
272
|
}, null, 8, ["modelValue"])
|
|
273
273
|
], 64)),
|
|
274
|
-
|
|
275
|
-
l.value.gateways && l.value.gateways.length > 0 ? (g(),
|
|
274
|
+
I("div", ue, [
|
|
275
|
+
l.value.gateways && l.value.gateways.length > 0 ? (g(), T(o, {
|
|
276
276
|
key: 0,
|
|
277
277
|
class: "flex-1",
|
|
278
278
|
variant: "secondary",
|
|
279
279
|
label: "Delete",
|
|
280
280
|
onclick: () => f(0)
|
|
281
|
-
}, null, 8, ["onclick"])) :
|
|
282
|
-
v(
|
|
281
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
282
|
+
v(o, {
|
|
283
283
|
type: "submit",
|
|
284
284
|
class: "flex-1",
|
|
285
285
|
variant: "primary",
|
|
@@ -294,7 +294,7 @@ const te = /* @__PURE__ */ N({
|
|
|
294
294
|
}), ce = {
|
|
295
295
|
key: 0,
|
|
296
296
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
297
|
-
}, de = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */
|
|
297
|
+
}, de = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */ k({
|
|
298
298
|
__name: "TerminalGateway",
|
|
299
299
|
props: {
|
|
300
300
|
terminal: {
|
|
@@ -306,63 +306,63 @@ const te = /* @__PURE__ */ N({
|
|
|
306
306
|
required: !0
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
|
-
setup(
|
|
310
|
-
const { isLoading: d, startAsyncCall: a } = H(),
|
|
309
|
+
setup(F) {
|
|
310
|
+
const { isLoading: d, startAsyncCall: a } = H(), _ = F, l = G(() => _.terminal), r = b(), e = b(), m = b(-1), c = b({
|
|
311
311
|
terminalId: ""
|
|
312
312
|
}), f = () => {
|
|
313
313
|
c.value.terminalId = "", m.value = -1;
|
|
314
314
|
}, s = () => {
|
|
315
315
|
if (a(async () => {
|
|
316
|
-
|
|
317
|
-
}), !
|
|
316
|
+
r.value = await A.getRestaurantTerminals(_.terminal.referenceId);
|
|
317
|
+
}), !_.terminal.ecrs)
|
|
318
318
|
return f();
|
|
319
|
-
const n =
|
|
319
|
+
const n = _.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
|
|
320
320
|
if (n === -1)
|
|
321
321
|
return f();
|
|
322
322
|
m.value = n;
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
terminalId:
|
|
323
|
+
const i = _.terminal.ecrs.at(n);
|
|
324
|
+
i.gateway === "FeedMe" && i.config && (c.value = {
|
|
325
|
+
terminalId: i.config.terminalId
|
|
326
326
|
});
|
|
327
327
|
};
|
|
328
328
|
O(l, s), M(s);
|
|
329
|
-
const
|
|
329
|
+
const u = R(() => (r.value ?? []).map((n) => ({
|
|
330
330
|
label: n.name ?? n._id,
|
|
331
331
|
value: n._id
|
|
332
332
|
})));
|
|
333
333
|
async function t(n) {
|
|
334
|
-
var
|
|
335
|
-
(
|
|
334
|
+
var i;
|
|
335
|
+
(i = _.terminal.ecrs) == null || i.splice(n, 1), _.onUpdate(_.terminal);
|
|
336
336
|
}
|
|
337
|
-
return (n,
|
|
338
|
-
const p = y("FmCircularProgress"), x = y("FmSelect"),
|
|
339
|
-
return S(d) ? (g(),
|
|
337
|
+
return (n, i) => {
|
|
338
|
+
const p = y("FmCircularProgress"), x = y("FmSelect"), o = y("FmButton"), w = y("FmForm");
|
|
339
|
+
return S(d) ? (g(), V("div", ce, [
|
|
340
340
|
v(p, { size: "xxl" })
|
|
341
|
-
])) : (g(), w
|
|
341
|
+
])) : (g(), T(w, {
|
|
342
342
|
key: 1,
|
|
343
343
|
ref: e.value,
|
|
344
344
|
class: "flex flex-col gap-16 w-[500px]",
|
|
345
|
-
onValidationSuccess:
|
|
346
|
-
m.value > -1 ? l.value.ecrs[m.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })),
|
|
345
|
+
onValidationSuccess: i[1] || (i[1] = () => {
|
|
346
|
+
m.value > -1 ? l.value.ecrs[m.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), _.onUpdate(l.value);
|
|
347
347
|
})
|
|
348
348
|
}, {
|
|
349
|
-
default:
|
|
349
|
+
default: h(() => [
|
|
350
350
|
v(x, {
|
|
351
351
|
modelValue: c.value.terminalId,
|
|
352
|
-
"onUpdate:modelValue":
|
|
352
|
+
"onUpdate:modelValue": i[0] || (i[0] = (U) => c.value.terminalId = U),
|
|
353
353
|
label: "Terminal ID",
|
|
354
|
-
items:
|
|
354
|
+
items: u.value,
|
|
355
355
|
rules: S(ee)(S(ae).string())
|
|
356
356
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
357
|
-
|
|
358
|
-
m.value > -1 ? (g(),
|
|
357
|
+
I("div", de, [
|
|
358
|
+
m.value > -1 ? (g(), T(o, {
|
|
359
359
|
key: 0,
|
|
360
360
|
class: "flex-1",
|
|
361
361
|
variant: "secondary",
|
|
362
362
|
label: "Delete",
|
|
363
363
|
onclick: () => t(m.value)
|
|
364
|
-
}, null, 8, ["onclick"])) :
|
|
365
|
-
v(
|
|
364
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
365
|
+
v(o, {
|
|
366
366
|
type: "submit",
|
|
367
367
|
class: "flex-1",
|
|
368
368
|
variant: "primary",
|
|
@@ -374,7 +374,7 @@ const te = /* @__PURE__ */ N({
|
|
|
374
374
|
}, 512));
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
}), pe = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */
|
|
377
|
+
}), pe = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ k({
|
|
378
378
|
__name: "GhlGateway",
|
|
379
379
|
props: {
|
|
380
380
|
terminal: {
|
|
@@ -386,22 +386,22 @@ const te = /* @__PURE__ */ N({
|
|
|
386
386
|
required: !0
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
|
-
setup(
|
|
390
|
-
const d =
|
|
389
|
+
setup(F) {
|
|
390
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
|
|
391
391
|
merchantId: "",
|
|
392
392
|
terminalId: "",
|
|
393
393
|
privateKey: ""
|
|
394
394
|
}), e = () => {
|
|
395
|
-
|
|
395
|
+
r.value.merchantId = "", r.value.terminalId = "", r.value.privateKey = "", l.value = -1;
|
|
396
396
|
}, m = () => {
|
|
397
397
|
if (!a.value.ecrs)
|
|
398
398
|
return e();
|
|
399
|
-
const f = a.value.ecrs.findIndex((
|
|
399
|
+
const f = a.value.ecrs.findIndex((u) => u && u.gateway && u.gateway === "Ghl");
|
|
400
400
|
if (f === -1)
|
|
401
401
|
return e();
|
|
402
402
|
l.value = f;
|
|
403
403
|
const s = a.value.ecrs.at(f);
|
|
404
|
-
s.gateway === "Ghl" && s.config && (
|
|
404
|
+
s.gateway === "Ghl" && s.config && (r.value = {
|
|
405
405
|
merchantId: s.config.merchantId,
|
|
406
406
|
terminalId: s.config.terminalId,
|
|
407
407
|
privateKey: s.config.privateKey || ""
|
|
@@ -413,40 +413,40 @@ const te = /* @__PURE__ */ N({
|
|
|
413
413
|
(s = a.value.ecrs) == null || s.splice(f, 1), d.onUpdate(a.value);
|
|
414
414
|
}
|
|
415
415
|
return (f, s) => {
|
|
416
|
-
const
|
|
417
|
-
return g(),
|
|
418
|
-
ref:
|
|
416
|
+
const u = y("FmTextField"), t = y("FmTextarea"), n = y("FmButton"), i = y("FmForm");
|
|
417
|
+
return g(), T(i, {
|
|
418
|
+
ref: _.value,
|
|
419
419
|
class: "flex flex-col gap-16 w-[500px]",
|
|
420
420
|
onValidationSuccess: s[3] || (s[3] = () => {
|
|
421
|
-
l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config:
|
|
421
|
+
l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), d.onUpdate(a.value);
|
|
422
422
|
})
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
v(
|
|
426
|
-
modelValue:
|
|
427
|
-
"onUpdate:modelValue": s[0] || (s[0] = (p) =>
|
|
424
|
+
default: h(() => [
|
|
425
|
+
v(u, {
|
|
426
|
+
modelValue: r.value.merchantId,
|
|
427
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => r.value.merchantId = p),
|
|
428
428
|
label: "Merchant ID"
|
|
429
429
|
}, null, 8, ["modelValue"]),
|
|
430
|
-
v(
|
|
431
|
-
modelValue:
|
|
432
|
-
"onUpdate:modelValue": s[1] || (s[1] = (p) =>
|
|
430
|
+
v(u, {
|
|
431
|
+
modelValue: r.value.terminalId,
|
|
432
|
+
"onUpdate:modelValue": s[1] || (s[1] = (p) => r.value.terminalId = p),
|
|
433
433
|
label: "Terminal ID"
|
|
434
434
|
}, null, 8, ["modelValue"]),
|
|
435
435
|
v(t, {
|
|
436
|
-
modelValue:
|
|
437
|
-
"onUpdate:modelValue": s[2] || (s[2] = (p) =>
|
|
436
|
+
modelValue: r.value.privateKey,
|
|
437
|
+
"onUpdate:modelValue": s[2] || (s[2] = (p) => r.value.privateKey = p),
|
|
438
438
|
label: "Private Key",
|
|
439
439
|
"label-mark": "optional",
|
|
440
440
|
"label-info": "Default will use FeedMe Private Key"
|
|
441
441
|
}, null, 8, ["modelValue"]),
|
|
442
|
-
|
|
443
|
-
l.value > -1 ? (g(),
|
|
442
|
+
I("div", pe, [
|
|
443
|
+
l.value > -1 ? (g(), T(n, {
|
|
444
444
|
key: 0,
|
|
445
445
|
class: "flex-1",
|
|
446
446
|
variant: "secondary",
|
|
447
447
|
label: "Delete",
|
|
448
448
|
onclick: () => c(l.value)
|
|
449
|
-
}, null, 8, ["onclick"])) :
|
|
449
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
450
450
|
v(n, {
|
|
451
451
|
type: "submit",
|
|
452
452
|
class: "flex-1",
|
|
@@ -459,7 +459,7 @@ const te = /* @__PURE__ */ N({
|
|
|
459
459
|
}, 512);
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
|
-
}), fe = { class: "flex items-end" }, ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, ge = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */
|
|
462
|
+
}), fe = { class: "flex items-end" }, ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, ge = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ k({
|
|
463
463
|
__name: "MaybankGateway",
|
|
464
464
|
props: {
|
|
465
465
|
terminal: {
|
|
@@ -471,49 +471,49 @@ const te = /* @__PURE__ */ N({
|
|
|
471
471
|
required: !0
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
|
-
setup(
|
|
475
|
-
const d =
|
|
474
|
+
setup(F) {
|
|
475
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
476
476
|
ip: "",
|
|
477
477
|
receiptName: "",
|
|
478
478
|
cardTypes: []
|
|
479
479
|
}), m = () => {
|
|
480
480
|
e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
481
481
|
}, c = () => {
|
|
482
|
-
var
|
|
482
|
+
var i;
|
|
483
483
|
if (!a.value.ecrIntegrations)
|
|
484
484
|
return m();
|
|
485
|
-
const
|
|
485
|
+
const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
|
|
486
486
|
if (t === -1)
|
|
487
487
|
return m();
|
|
488
488
|
l.value = t;
|
|
489
|
-
const n =
|
|
489
|
+
const n = u.at(t);
|
|
490
490
|
n.gateway === "Maybank" && n.config && (e.value = {
|
|
491
491
|
ip: n.config.ip ?? "",
|
|
492
492
|
receiptName: n.receiptName ?? "",
|
|
493
|
-
cardTypes: ((
|
|
493
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
496
|
O(a, c), M(c);
|
|
497
|
-
async function f(
|
|
497
|
+
async function f(u) {
|
|
498
498
|
var t;
|
|
499
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
499
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
500
500
|
}
|
|
501
501
|
async function s() {
|
|
502
|
-
e.value.cardTypes.push(
|
|
502
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
503
503
|
}
|
|
504
|
-
return (
|
|
505
|
-
const n = y("FmTextField"),
|
|
506
|
-
return g(),
|
|
507
|
-
ref:
|
|
504
|
+
return (u, t) => {
|
|
505
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
506
|
+
return g(), T(x, {
|
|
507
|
+
ref: _.value,
|
|
508
508
|
class: "flex flex-col gap-16 w-[500px]",
|
|
509
509
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
510
|
-
var
|
|
510
|
+
var o, w;
|
|
511
511
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
512
512
|
gateway: "Maybank",
|
|
513
513
|
config: { ip: e.value.ip },
|
|
514
514
|
receiptName: e.value.receiptName,
|
|
515
515
|
dialogConfig: {
|
|
516
|
-
...(
|
|
516
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
517
517
|
cardTypes: e.value.cardTypes
|
|
518
518
|
}
|
|
519
519
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -526,48 +526,48 @@ const te = /* @__PURE__ */ N({
|
|
|
526
526
|
})), d.onUpdate(a.value);
|
|
527
527
|
})
|
|
528
528
|
}, {
|
|
529
|
-
default:
|
|
529
|
+
default: h(() => [
|
|
530
530
|
v(n, {
|
|
531
531
|
modelValue: e.value.ip,
|
|
532
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
532
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
533
533
|
label: "IP Address"
|
|
534
534
|
}, null, 8, ["modelValue"]),
|
|
535
535
|
v(n, {
|
|
536
536
|
modelValue: e.value.receiptName,
|
|
537
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
537
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
538
538
|
label: "Receipt Payment Name",
|
|
539
539
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
540
540
|
}, null, 8, ["modelValue"]),
|
|
541
|
-
|
|
541
|
+
I("div", fe, [
|
|
542
542
|
v(n, {
|
|
543
|
-
modelValue:
|
|
544
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
543
|
+
modelValue: r.value,
|
|
544
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
545
545
|
label: "Fallback Card Types",
|
|
546
546
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
547
547
|
}, null, 8, ["modelValue"]),
|
|
548
|
-
v(
|
|
548
|
+
v(i, {
|
|
549
549
|
class: "ml-4",
|
|
550
550
|
icon: "add",
|
|
551
551
|
onClick: s
|
|
552
552
|
})
|
|
553
553
|
]),
|
|
554
|
-
|
|
555
|
-
(g(!0),
|
|
556
|
-
key:
|
|
557
|
-
label:
|
|
554
|
+
I("div", ye, [
|
|
555
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
556
|
+
key: o,
|
|
557
|
+
label: o,
|
|
558
558
|
removable: !0,
|
|
559
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
559
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
560
560
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
561
561
|
]),
|
|
562
|
-
|
|
563
|
-
l.value > -1 ? (g(),
|
|
562
|
+
I("div", ge, [
|
|
563
|
+
l.value > -1 ? (g(), T(i, {
|
|
564
564
|
key: 0,
|
|
565
565
|
class: "flex-1",
|
|
566
566
|
variant: "secondary",
|
|
567
567
|
label: "Delete",
|
|
568
568
|
onclick: () => f(l.value)
|
|
569
|
-
}, null, 8, ["onclick"])) :
|
|
570
|
-
v(
|
|
569
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
570
|
+
v(i, {
|
|
571
571
|
type: "submit",
|
|
572
572
|
class: "flex-1",
|
|
573
573
|
variant: "primary",
|
|
@@ -579,7 +579,7 @@ const te = /* @__PURE__ */ N({
|
|
|
579
579
|
}, 512);
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
}), _e = { class: "flex items-end" },
|
|
582
|
+
}), _e = { class: "flex items-end" }, Ie = { class: "flex flex-wrap gap-8 items-center mt-4" }, Fe = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ k({
|
|
583
583
|
__name: "Maybank2Gateway",
|
|
584
584
|
props: {
|
|
585
585
|
terminal: {
|
|
@@ -591,49 +591,49 @@ const te = /* @__PURE__ */ N({
|
|
|
591
591
|
required: !0
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
|
-
setup(
|
|
595
|
-
const d =
|
|
594
|
+
setup(F) {
|
|
595
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
596
596
|
ip: "",
|
|
597
597
|
receiptName: "",
|
|
598
598
|
cardTypes: []
|
|
599
599
|
}), m = () => {
|
|
600
600
|
e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
601
601
|
}, c = () => {
|
|
602
|
-
var
|
|
602
|
+
var i;
|
|
603
603
|
if (!a.value.ecrIntegrations)
|
|
604
604
|
return m();
|
|
605
|
-
const
|
|
605
|
+
const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
|
|
606
606
|
if (t === -1)
|
|
607
607
|
return m();
|
|
608
608
|
l.value = t;
|
|
609
|
-
const n =
|
|
609
|
+
const n = u.at(t);
|
|
610
610
|
n.gateway === "Maybank2" && n.config && (e.value = {
|
|
611
611
|
ip: n.config.ip ?? "",
|
|
612
612
|
receiptName: n.receiptName ?? "",
|
|
613
|
-
cardTypes: ((
|
|
613
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
616
|
O(a, c), M(c);
|
|
617
|
-
async function f(
|
|
617
|
+
async function f(u) {
|
|
618
618
|
var t;
|
|
619
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
619
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
620
620
|
}
|
|
621
621
|
async function s() {
|
|
622
|
-
e.value.cardTypes.push(
|
|
622
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
623
623
|
}
|
|
624
|
-
return (
|
|
625
|
-
const n = y("FmTextField"),
|
|
626
|
-
return g(),
|
|
627
|
-
ref:
|
|
624
|
+
return (u, t) => {
|
|
625
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
626
|
+
return g(), T(x, {
|
|
627
|
+
ref: _.value,
|
|
628
628
|
class: "flex flex-col gap-16 w-[500px]",
|
|
629
629
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
630
|
-
var
|
|
630
|
+
var o, w;
|
|
631
631
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
632
632
|
gateway: "Maybank2",
|
|
633
633
|
config: { ip: e.value.ip },
|
|
634
634
|
receiptName: e.value.receiptName,
|
|
635
635
|
dialogConfig: {
|
|
636
|
-
...(
|
|
636
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
637
637
|
cardTypes: e.value.cardTypes
|
|
638
638
|
}
|
|
639
639
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -646,48 +646,48 @@ const te = /* @__PURE__ */ N({
|
|
|
646
646
|
})), d.onUpdate(a.value);
|
|
647
647
|
})
|
|
648
648
|
}, {
|
|
649
|
-
default:
|
|
649
|
+
default: h(() => [
|
|
650
650
|
v(n, {
|
|
651
651
|
modelValue: e.value.ip,
|
|
652
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
652
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
653
653
|
label: "IP Address"
|
|
654
654
|
}, null, 8, ["modelValue"]),
|
|
655
655
|
v(n, {
|
|
656
656
|
modelValue: e.value.receiptName,
|
|
657
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
657
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
658
658
|
label: "Receipt Payment Name",
|
|
659
659
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
660
660
|
}, null, 8, ["modelValue"]),
|
|
661
|
-
|
|
661
|
+
I("div", _e, [
|
|
662
662
|
v(n, {
|
|
663
|
-
modelValue:
|
|
664
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
663
|
+
modelValue: r.value,
|
|
664
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
665
665
|
label: "Fallback Card Types",
|
|
666
666
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
667
667
|
}, null, 8, ["modelValue"]),
|
|
668
|
-
v(
|
|
668
|
+
v(i, {
|
|
669
669
|
class: "ml-4",
|
|
670
670
|
icon: "add",
|
|
671
671
|
onClick: s
|
|
672
672
|
})
|
|
673
673
|
]),
|
|
674
|
-
|
|
675
|
-
(g(!0),
|
|
676
|
-
key:
|
|
677
|
-
label:
|
|
674
|
+
I("div", Ie, [
|
|
675
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
676
|
+
key: o,
|
|
677
|
+
label: o,
|
|
678
678
|
removable: !0,
|
|
679
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
679
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
680
680
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
681
681
|
]),
|
|
682
|
-
|
|
683
|
-
l.value > -1 ? (g(),
|
|
682
|
+
I("div", Fe, [
|
|
683
|
+
l.value > -1 ? (g(), T(i, {
|
|
684
684
|
key: 0,
|
|
685
685
|
class: "flex-1",
|
|
686
686
|
variant: "secondary",
|
|
687
687
|
label: "Delete",
|
|
688
688
|
onclick: () => f(l.value)
|
|
689
|
-
}, null, 8, ["onclick"])) :
|
|
690
|
-
v(
|
|
689
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
690
|
+
v(i, {
|
|
691
691
|
type: "submit",
|
|
692
692
|
class: "flex-1",
|
|
693
693
|
variant: "primary",
|
|
@@ -699,7 +699,7 @@ const te = /* @__PURE__ */ N({
|
|
|
699
699
|
}, 512);
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
}),
|
|
702
|
+
}), we = { class: "flex items-end" }, xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ne = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ k({
|
|
703
703
|
__name: "Maybank3Gateway",
|
|
704
704
|
props: {
|
|
705
705
|
terminal: {
|
|
@@ -711,49 +711,49 @@ const te = /* @__PURE__ */ N({
|
|
|
711
711
|
required: !0
|
|
712
712
|
}
|
|
713
713
|
},
|
|
714
|
-
setup(
|
|
715
|
-
const d =
|
|
714
|
+
setup(F) {
|
|
715
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
716
716
|
receiptName: "",
|
|
717
717
|
config: {},
|
|
718
718
|
cardTypes: []
|
|
719
719
|
}), m = () => {
|
|
720
720
|
e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
721
721
|
}, c = () => {
|
|
722
|
-
var
|
|
722
|
+
var i;
|
|
723
723
|
if (!a.value.ecrIntegrations)
|
|
724
724
|
return m();
|
|
725
|
-
const
|
|
725
|
+
const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
|
|
726
726
|
if (t === -1)
|
|
727
727
|
return m();
|
|
728
728
|
l.value = t;
|
|
729
|
-
const n =
|
|
729
|
+
const n = u.at(t);
|
|
730
730
|
n.gateway === "Maybank3" && n.config && (e.value = {
|
|
731
731
|
config: n.config,
|
|
732
732
|
receiptName: n.receiptName ?? "",
|
|
733
|
-
cardTypes: ((
|
|
733
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
O(a, c), M(c);
|
|
737
|
-
async function f(
|
|
737
|
+
async function f(u) {
|
|
738
738
|
var t;
|
|
739
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
739
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
740
740
|
}
|
|
741
741
|
async function s() {
|
|
742
|
-
e.value.cardTypes.push(
|
|
742
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
743
743
|
}
|
|
744
|
-
return (
|
|
745
|
-
const n = y("FmTextField"),
|
|
746
|
-
return g(),
|
|
747
|
-
ref:
|
|
744
|
+
return (u, t) => {
|
|
745
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
746
|
+
return g(), T(x, {
|
|
747
|
+
ref: _.value,
|
|
748
748
|
class: "flex flex-col gap-16 w-[500px]",
|
|
749
749
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
750
|
-
var
|
|
750
|
+
var o, w;
|
|
751
751
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
752
752
|
gateway: "Maybank3",
|
|
753
753
|
config: e.value.config,
|
|
754
754
|
receiptName: e.value.receiptName,
|
|
755
755
|
dialogConfig: {
|
|
756
|
-
...(
|
|
756
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
757
757
|
cardTypes: e.value.cardTypes
|
|
758
758
|
}
|
|
759
759
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -766,43 +766,43 @@ const te = /* @__PURE__ */ N({
|
|
|
766
766
|
})), d.onUpdate(a.value);
|
|
767
767
|
})
|
|
768
768
|
}, {
|
|
769
|
-
default:
|
|
769
|
+
default: h(() => [
|
|
770
770
|
v(n, {
|
|
771
771
|
modelValue: e.value.receiptName,
|
|
772
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
772
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
773
773
|
label: "Receipt Payment Name",
|
|
774
774
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
775
775
|
}, null, 8, ["modelValue"]),
|
|
776
|
-
|
|
776
|
+
I("div", we, [
|
|
777
777
|
v(n, {
|
|
778
|
-
modelValue:
|
|
779
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
778
|
+
modelValue: r.value,
|
|
779
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
780
780
|
label: "Fallback Card Types",
|
|
781
781
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
782
782
|
}, null, 8, ["modelValue"]),
|
|
783
|
-
v(
|
|
783
|
+
v(i, {
|
|
784
784
|
class: "ml-4",
|
|
785
785
|
icon: "add",
|
|
786
786
|
onClick: s
|
|
787
787
|
})
|
|
788
788
|
]),
|
|
789
|
-
|
|
790
|
-
(g(!0),
|
|
791
|
-
key:
|
|
792
|
-
label:
|
|
789
|
+
I("div", xe, [
|
|
790
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
791
|
+
key: o,
|
|
792
|
+
label: o,
|
|
793
793
|
removable: !0,
|
|
794
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
794
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
795
795
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
796
796
|
]),
|
|
797
|
-
|
|
798
|
-
l.value > -1 ? (g(),
|
|
797
|
+
I("div", Ne, [
|
|
798
|
+
l.value > -1 ? (g(), T(i, {
|
|
799
799
|
key: 0,
|
|
800
800
|
class: "flex-1",
|
|
801
801
|
variant: "secondary",
|
|
802
802
|
label: "Delete",
|
|
803
803
|
onclick: () => f(l.value)
|
|
804
|
-
}, null, 8, ["onclick"])) :
|
|
805
|
-
v(
|
|
804
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
805
|
+
v(i, {
|
|
806
806
|
type: "submit",
|
|
807
807
|
class: "flex-1",
|
|
808
808
|
variant: "primary",
|
|
@@ -814,7 +814,7 @@ const te = /* @__PURE__ */ N({
|
|
|
814
814
|
}, 512);
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
}), Ce = { class: "flex items-end" }, Ve = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ue = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */
|
|
817
|
+
}), Ce = { class: "flex items-end" }, Ve = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ue = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ k({
|
|
818
818
|
__name: "NetsGateway",
|
|
819
819
|
props: {
|
|
820
820
|
terminal: {
|
|
@@ -826,49 +826,49 @@ const te = /* @__PURE__ */ N({
|
|
|
826
826
|
required: !0
|
|
827
827
|
}
|
|
828
828
|
},
|
|
829
|
-
setup(
|
|
830
|
-
const d =
|
|
829
|
+
setup(F) {
|
|
830
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
831
831
|
ip: "",
|
|
832
832
|
receiptName: "",
|
|
833
833
|
cardTypes: []
|
|
834
834
|
}), m = () => {
|
|
835
835
|
e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
836
836
|
}, c = () => {
|
|
837
|
-
var
|
|
837
|
+
var i;
|
|
838
838
|
if (!a.value.ecrIntegrations)
|
|
839
839
|
return m();
|
|
840
|
-
const
|
|
840
|
+
const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Nets");
|
|
841
841
|
if (t === -1)
|
|
842
842
|
return m();
|
|
843
843
|
l.value = t;
|
|
844
|
-
const n =
|
|
844
|
+
const n = u.at(t);
|
|
845
845
|
n.gateway === "Nets" && n.config && (e.value = {
|
|
846
846
|
ip: n.config.ip ?? "",
|
|
847
847
|
receiptName: n.receiptName ?? "",
|
|
848
|
-
cardTypes: ((
|
|
848
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
849
849
|
});
|
|
850
850
|
};
|
|
851
851
|
O(a, c), M(c);
|
|
852
|
-
async function f(
|
|
852
|
+
async function f(u) {
|
|
853
853
|
var t;
|
|
854
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
854
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
855
855
|
}
|
|
856
856
|
async function s() {
|
|
857
|
-
e.value.cardTypes.push(
|
|
857
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
858
858
|
}
|
|
859
|
-
return (
|
|
860
|
-
const n = y("FmTextField"),
|
|
861
|
-
return g(),
|
|
862
|
-
ref:
|
|
859
|
+
return (u, t) => {
|
|
860
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
861
|
+
return g(), T(x, {
|
|
862
|
+
ref: _.value,
|
|
863
863
|
class: "flex flex-col gap-16 w-[500px]",
|
|
864
864
|
onValidationSuccess: t[3] || (t[3] = () => {
|
|
865
|
-
var
|
|
865
|
+
var o, w;
|
|
866
866
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
867
867
|
gateway: "Nets",
|
|
868
868
|
config: { ip: e.value.ip },
|
|
869
869
|
receiptName: e.value.receiptName,
|
|
870
870
|
dialogConfig: {
|
|
871
|
-
...(
|
|
871
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
872
872
|
cardTypes: e.value.cardTypes
|
|
873
873
|
}
|
|
874
874
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -881,48 +881,48 @@ const te = /* @__PURE__ */ N({
|
|
|
881
881
|
})), d.onUpdate(a.value);
|
|
882
882
|
})
|
|
883
883
|
}, {
|
|
884
|
-
default:
|
|
884
|
+
default: h(() => [
|
|
885
885
|
v(n, {
|
|
886
886
|
modelValue: e.value.ip,
|
|
887
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
887
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
|
|
888
888
|
label: "IP Address"
|
|
889
889
|
}, null, 8, ["modelValue"]),
|
|
890
890
|
v(n, {
|
|
891
891
|
modelValue: e.value.receiptName,
|
|
892
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
892
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
|
|
893
893
|
label: "Receipt Payment Name",
|
|
894
894
|
"label-info": "Default receipt display will be 'TERMINAL_NETS'"
|
|
895
895
|
}, null, 8, ["modelValue"]),
|
|
896
|
-
|
|
896
|
+
I("div", Ce, [
|
|
897
897
|
v(n, {
|
|
898
|
-
modelValue:
|
|
899
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
898
|
+
modelValue: r.value,
|
|
899
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
|
|
900
900
|
label: "Fallback Card Types",
|
|
901
901
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
902
902
|
}, null, 8, ["modelValue"]),
|
|
903
|
-
v(
|
|
903
|
+
v(i, {
|
|
904
904
|
class: "ml-4",
|
|
905
905
|
icon: "add",
|
|
906
906
|
onClick: s
|
|
907
907
|
})
|
|
908
908
|
]),
|
|
909
|
-
|
|
910
|
-
(g(!0),
|
|
911
|
-
key:
|
|
912
|
-
label:
|
|
909
|
+
I("div", Ve, [
|
|
910
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
911
|
+
key: o,
|
|
912
|
+
label: o,
|
|
913
913
|
removable: !0,
|
|
914
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
914
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
915
915
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
916
916
|
]),
|
|
917
|
-
|
|
918
|
-
l.value > -1 ? (g(),
|
|
917
|
+
I("div", Ue, [
|
|
918
|
+
l.value > -1 ? (g(), T(i, {
|
|
919
919
|
key: 0,
|
|
920
920
|
class: "flex-1",
|
|
921
921
|
variant: "secondary",
|
|
922
922
|
label: "Delete",
|
|
923
923
|
onclick: () => f(l.value)
|
|
924
|
-
}, null, 8, ["onclick"])) :
|
|
925
|
-
v(
|
|
924
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
925
|
+
v(i, {
|
|
926
926
|
type: "submit",
|
|
927
927
|
class: "flex-1",
|
|
928
928
|
variant: "primary",
|
|
@@ -934,7 +934,7 @@ const te = /* @__PURE__ */ N({
|
|
|
934
934
|
}, 512);
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
}), Me = { class: "flex items-end" },
|
|
937
|
+
}), Me = { class: "flex items-end" }, he = { class: "flex flex-wrap gap-8 items-center mt-4" }, qe = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */ k({
|
|
938
938
|
__name: "KBankGateway",
|
|
939
939
|
props: {
|
|
940
940
|
terminal: {
|
|
@@ -946,47 +946,47 @@ const te = /* @__PURE__ */ N({
|
|
|
946
946
|
required: !0
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
|
-
setup(
|
|
950
|
-
const d =
|
|
949
|
+
setup(F) {
|
|
950
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
951
951
|
receiptName: "",
|
|
952
952
|
cardTypes: []
|
|
953
953
|
}), m = () => {
|
|
954
954
|
e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
955
955
|
}, c = () => {
|
|
956
|
-
var
|
|
956
|
+
var i;
|
|
957
957
|
if (!a.value.ecrIntegrations)
|
|
958
958
|
return m();
|
|
959
|
-
const
|
|
959
|
+
const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
|
|
960
960
|
if (t === -1)
|
|
961
961
|
return m();
|
|
962
962
|
l.value = t;
|
|
963
|
-
const n =
|
|
963
|
+
const n = u.at(t);
|
|
964
964
|
n.gateway === "Kbank" && n.config && (e.value = {
|
|
965
965
|
receiptName: n.receiptName ?? "",
|
|
966
|
-
cardTypes: ((
|
|
966
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
967
967
|
});
|
|
968
968
|
};
|
|
969
969
|
O(a, c), M(c);
|
|
970
|
-
async function f(
|
|
970
|
+
async function f(u) {
|
|
971
971
|
var t;
|
|
972
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
972
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
973
973
|
}
|
|
974
974
|
async function s() {
|
|
975
|
-
e.value.cardTypes.push(
|
|
975
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
976
976
|
}
|
|
977
|
-
return (
|
|
978
|
-
const n = y("FmTextField"),
|
|
979
|
-
return g(),
|
|
980
|
-
ref:
|
|
977
|
+
return (u, t) => {
|
|
978
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
979
|
+
return g(), T(x, {
|
|
980
|
+
ref: _.value,
|
|
981
981
|
class: "flex flex-col gap-16 w-[500px]",
|
|
982
982
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
983
|
-
var
|
|
983
|
+
var o, w;
|
|
984
984
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
985
985
|
gateway: "Kbank",
|
|
986
986
|
config: {},
|
|
987
987
|
receiptName: e.value.receiptName,
|
|
988
988
|
dialogConfig: {
|
|
989
|
-
...(
|
|
989
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
990
990
|
cardTypes: e.value.cardTypes
|
|
991
991
|
}
|
|
992
992
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -999,43 +999,43 @@ const te = /* @__PURE__ */ N({
|
|
|
999
999
|
})), d.onUpdate(a.value);
|
|
1000
1000
|
})
|
|
1001
1001
|
}, {
|
|
1002
|
-
default:
|
|
1002
|
+
default: h(() => [
|
|
1003
1003
|
v(n, {
|
|
1004
1004
|
modelValue: e.value.receiptName,
|
|
1005
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1005
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1006
1006
|
label: "Receipt Payment Name",
|
|
1007
1007
|
"label-info": "Default receipt display will be 'TERMINAL_KBANK'"
|
|
1008
1008
|
}, null, 8, ["modelValue"]),
|
|
1009
|
-
|
|
1009
|
+
I("div", Me, [
|
|
1010
1010
|
v(n, {
|
|
1011
|
-
modelValue:
|
|
1012
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1011
|
+
modelValue: r.value,
|
|
1012
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1013
1013
|
label: "Fallback Card Types",
|
|
1014
1014
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1015
1015
|
}, null, 8, ["modelValue"]),
|
|
1016
|
-
v(
|
|
1016
|
+
v(i, {
|
|
1017
1017
|
class: "ml-4",
|
|
1018
1018
|
icon: "add",
|
|
1019
1019
|
onClick: s
|
|
1020
1020
|
})
|
|
1021
1021
|
]),
|
|
1022
|
-
|
|
1023
|
-
(g(!0),
|
|
1024
|
-
key:
|
|
1025
|
-
label:
|
|
1022
|
+
I("div", he, [
|
|
1023
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
1024
|
+
key: o,
|
|
1025
|
+
label: o,
|
|
1026
1026
|
removable: !0,
|
|
1027
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1027
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1028
1028
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1029
1029
|
]),
|
|
1030
|
-
|
|
1031
|
-
l.value > -1 ? (g(),
|
|
1030
|
+
I("div", qe, [
|
|
1031
|
+
l.value > -1 ? (g(), T(i, {
|
|
1032
1032
|
key: 0,
|
|
1033
1033
|
class: "flex-1",
|
|
1034
1034
|
variant: "secondary",
|
|
1035
1035
|
label: "Delete",
|
|
1036
1036
|
onclick: () => f(l.value)
|
|
1037
|
-
}, null, 8, ["onclick"])) :
|
|
1038
|
-
v(
|
|
1037
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
1038
|
+
v(i, {
|
|
1039
1039
|
type: "submit",
|
|
1040
1040
|
class: "flex-1",
|
|
1041
1041
|
variant: "primary",
|
|
@@ -1047,7 +1047,7 @@ const te = /* @__PURE__ */ N({
|
|
|
1047
1047
|
}, 512);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
}), Oe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */
|
|
1050
|
+
}), Oe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ k({
|
|
1051
1051
|
__name: "Ghl2Gateway",
|
|
1052
1052
|
props: {
|
|
1053
1053
|
terminal: {
|
|
@@ -1059,12 +1059,12 @@ const te = /* @__PURE__ */ N({
|
|
|
1059
1059
|
required: !0
|
|
1060
1060
|
}
|
|
1061
1061
|
},
|
|
1062
|
-
setup(
|
|
1063
|
-
const d =
|
|
1062
|
+
setup(F) {
|
|
1063
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
|
|
1064
1064
|
ip: "",
|
|
1065
1065
|
receiptName: ""
|
|
1066
1066
|
}), e = () => {
|
|
1067
|
-
|
|
1067
|
+
r.value.ip = "", r.value.receiptName = "", l.value = -1;
|
|
1068
1068
|
}, m = () => {
|
|
1069
1069
|
if (!a.value.ecrIntegrations)
|
|
1070
1070
|
return e();
|
|
@@ -1072,10 +1072,10 @@ const te = /* @__PURE__ */ N({
|
|
|
1072
1072
|
if (s === -1)
|
|
1073
1073
|
return e();
|
|
1074
1074
|
l.value = s;
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1077
|
-
ip:
|
|
1078
|
-
receiptName:
|
|
1075
|
+
const u = f.at(s);
|
|
1076
|
+
u.gateway === "Ghl2" && u.config && (r.value = {
|
|
1077
|
+
ip: u.config.ip ?? "",
|
|
1078
|
+
receiptName: u.receiptName ?? ""
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
O(a, m), M(m);
|
|
@@ -1084,42 +1084,42 @@ const te = /* @__PURE__ */ N({
|
|
|
1084
1084
|
(s = a.value.ecrIntegrations) == null || s.splice(f, 1), d.onUpdate(a.value);
|
|
1085
1085
|
}
|
|
1086
1086
|
return (f, s) => {
|
|
1087
|
-
const
|
|
1088
|
-
return g(),
|
|
1089
|
-
ref:
|
|
1087
|
+
const u = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
|
|
1088
|
+
return g(), T(n, {
|
|
1089
|
+
ref: _.value,
|
|
1090
1090
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1091
1091
|
onValidationSuccess: s[2] || (s[2] = () => {
|
|
1092
1092
|
a.value.ecrIntegrations || (a.value.ecrIntegrations = []), l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1093
1093
|
gateway: "Ghl2",
|
|
1094
|
-
config: { ip:
|
|
1095
|
-
receiptName:
|
|
1094
|
+
config: { ip: r.value.ip },
|
|
1095
|
+
receiptName: r.value.receiptName
|
|
1096
1096
|
} : a.value.ecrIntegrations.push({
|
|
1097
1097
|
gateway: "Ghl2",
|
|
1098
|
-
config: { ip:
|
|
1099
|
-
receiptName:
|
|
1098
|
+
config: { ip: r.value.ip },
|
|
1099
|
+
receiptName: r.value.receiptName
|
|
1100
1100
|
}), d.onUpdate(a.value);
|
|
1101
1101
|
})
|
|
1102
1102
|
}, {
|
|
1103
|
-
default:
|
|
1104
|
-
v(
|
|
1105
|
-
modelValue:
|
|
1106
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1103
|
+
default: h(() => [
|
|
1104
|
+
v(u, {
|
|
1105
|
+
modelValue: r.value.ip,
|
|
1106
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.ip = i),
|
|
1107
1107
|
label: "IP Address"
|
|
1108
1108
|
}, null, 8, ["modelValue"]),
|
|
1109
|
-
v(
|
|
1110
|
-
modelValue:
|
|
1111
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1109
|
+
v(u, {
|
|
1110
|
+
modelValue: r.value.receiptName,
|
|
1111
|
+
"onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
|
|
1112
1112
|
label: "Receipt Payment Name",
|
|
1113
1113
|
"label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
|
|
1114
1114
|
}, null, 8, ["modelValue"]),
|
|
1115
|
-
|
|
1116
|
-
l.value > -1 ? (g(),
|
|
1115
|
+
I("div", Oe, [
|
|
1116
|
+
l.value > -1 ? (g(), T(t, {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
class: "flex-1",
|
|
1119
1119
|
variant: "secondary",
|
|
1120
1120
|
label: "Delete",
|
|
1121
1121
|
onclick: () => c(l.value)
|
|
1122
|
-
}, null, 8, ["onclick"])) :
|
|
1122
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
1123
1123
|
v(t, {
|
|
1124
1124
|
type: "submit",
|
|
1125
1125
|
class: "flex-1",
|
|
@@ -1132,7 +1132,7 @@ const te = /* @__PURE__ */ N({
|
|
|
1132
1132
|
}, 512);
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
1135
|
-
}), Pe = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" },
|
|
1135
|
+
}), Pe = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ae = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ k({
|
|
1136
1136
|
__name: "Ghl3Gateway",
|
|
1137
1137
|
props: {
|
|
1138
1138
|
terminal: {
|
|
@@ -1144,51 +1144,51 @@ const te = /* @__PURE__ */ N({
|
|
|
1144
1144
|
required: !0
|
|
1145
1145
|
}
|
|
1146
1146
|
},
|
|
1147
|
-
setup(
|
|
1148
|
-
const d =
|
|
1147
|
+
setup(F) {
|
|
1148
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
1149
1149
|
receiptName: "",
|
|
1150
1150
|
config: {},
|
|
1151
1151
|
cardTypes: []
|
|
1152
1152
|
}), m = () => {
|
|
1153
1153
|
e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
1154
1154
|
}, c = () => {
|
|
1155
|
-
var
|
|
1155
|
+
var i;
|
|
1156
1156
|
if (!a.value.ecrIntegrations)
|
|
1157
1157
|
return m();
|
|
1158
|
-
const
|
|
1158
|
+
const u = a.value.ecrIntegrations, t = u.findIndex(
|
|
1159
1159
|
(p) => p && p.gateway && p.gateway === "Ghl3"
|
|
1160
1160
|
);
|
|
1161
1161
|
if (t === -1)
|
|
1162
1162
|
return m();
|
|
1163
1163
|
l.value = t;
|
|
1164
|
-
const n =
|
|
1164
|
+
const n = u.at(t);
|
|
1165
1165
|
n.gateway === "Ghl3" && n.config && (e.value = {
|
|
1166
1166
|
config: n.config,
|
|
1167
1167
|
receiptName: n.receiptName ?? "",
|
|
1168
|
-
cardTypes: ((
|
|
1168
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1169
1169
|
});
|
|
1170
1170
|
};
|
|
1171
1171
|
O(a, c), M(c);
|
|
1172
|
-
async function f(
|
|
1172
|
+
async function f(u) {
|
|
1173
1173
|
var t;
|
|
1174
|
-
(t = a.value.ecrIntegrations) == null || t.splice(
|
|
1174
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
1175
1175
|
}
|
|
1176
1176
|
async function s() {
|
|
1177
|
-
e.value.cardTypes.push(
|
|
1177
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
1178
1178
|
}
|
|
1179
|
-
return (
|
|
1180
|
-
const n = y("FmTextField"),
|
|
1181
|
-
return g(),
|
|
1182
|
-
ref:
|
|
1179
|
+
return (u, t) => {
|
|
1180
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
1181
|
+
return g(), T(x, {
|
|
1182
|
+
ref: _.value,
|
|
1183
1183
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1184
1184
|
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1185
|
-
var
|
|
1185
|
+
var o, w;
|
|
1186
1186
|
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1187
1187
|
gateway: "Ghl3",
|
|
1188
1188
|
config: e.value.config,
|
|
1189
1189
|
receiptName: e.value.receiptName,
|
|
1190
1190
|
dialogConfig: {
|
|
1191
|
-
...(
|
|
1191
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1192
1192
|
cardTypes: e.value.cardTypes
|
|
1193
1193
|
}
|
|
1194
1194
|
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
@@ -1201,43 +1201,43 @@ const te = /* @__PURE__ */ N({
|
|
|
1201
1201
|
})), d.onUpdate(a.value);
|
|
1202
1202
|
})
|
|
1203
1203
|
}, {
|
|
1204
|
-
default:
|
|
1204
|
+
default: h(() => [
|
|
1205
1205
|
v(n, {
|
|
1206
1206
|
modelValue: e.value.receiptName,
|
|
1207
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1207
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1208
1208
|
label: "Receipt Payment Name",
|
|
1209
1209
|
"label-info": "Default receipt display will be 'TERMINAL_GHL'"
|
|
1210
1210
|
}, null, 8, ["modelValue"]),
|
|
1211
|
-
|
|
1211
|
+
I("div", Pe, [
|
|
1212
1212
|
v(n, {
|
|
1213
|
-
modelValue:
|
|
1214
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
1213
|
+
modelValue: r.value,
|
|
1214
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1215
1215
|
label: "Fallback Card Types",
|
|
1216
1216
|
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1217
1217
|
}, null, 8, ["modelValue"]),
|
|
1218
|
-
v(
|
|
1218
|
+
v(i, {
|
|
1219
1219
|
class: "ml-4",
|
|
1220
1220
|
icon: "add",
|
|
1221
1221
|
onClick: s
|
|
1222
1222
|
})
|
|
1223
1223
|
]),
|
|
1224
|
-
|
|
1225
|
-
(g(!0),
|
|
1226
|
-
key:
|
|
1227
|
-
label:
|
|
1224
|
+
I("div", $e, [
|
|
1225
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
1226
|
+
key: o,
|
|
1227
|
+
label: o,
|
|
1228
1228
|
removable: !0,
|
|
1229
|
-
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(
|
|
1229
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1230
1230
|
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1231
1231
|
]),
|
|
1232
|
-
|
|
1233
|
-
l.value > -1 ? (g(),
|
|
1232
|
+
I("div", Ae, [
|
|
1233
|
+
l.value > -1 ? (g(), T(i, {
|
|
1234
1234
|
key: 0,
|
|
1235
1235
|
class: "flex-1",
|
|
1236
1236
|
variant: "secondary",
|
|
1237
1237
|
label: "Delete",
|
|
1238
1238
|
onclick: () => f(l.value)
|
|
1239
|
-
}, null, 8, ["onclick"])) :
|
|
1240
|
-
v(
|
|
1239
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
1240
|
+
v(i, {
|
|
1241
1241
|
type: "submit",
|
|
1242
1242
|
class: "flex-1",
|
|
1243
1243
|
variant: "primary",
|
|
@@ -1249,7 +1249,124 @@ const te = /* @__PURE__ */ N({
|
|
|
1249
1249
|
}, 512);
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
|
-
}), Be = { class: "flex items-
|
|
1252
|
+
}), Be = { class: "flex items-end" }, Ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, Le = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ k({
|
|
1253
|
+
__name: "HlbbGateway",
|
|
1254
|
+
props: {
|
|
1255
|
+
terminal: {
|
|
1256
|
+
type: Object,
|
|
1257
|
+
required: !0
|
|
1258
|
+
},
|
|
1259
|
+
onUpdate: {
|
|
1260
|
+
type: Function,
|
|
1261
|
+
required: !0
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
setup(F) {
|
|
1265
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
|
|
1266
|
+
receiptName: "",
|
|
1267
|
+
config: {},
|
|
1268
|
+
cardTypes: []
|
|
1269
|
+
}), m = () => {
|
|
1270
|
+
e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
|
|
1271
|
+
}, c = () => {
|
|
1272
|
+
var i;
|
|
1273
|
+
if (!a.value.ecrIntegrations)
|
|
1274
|
+
return m();
|
|
1275
|
+
const u = a.value.ecrIntegrations, t = u.findIndex(
|
|
1276
|
+
(p) => p && p.gateway && p.gateway === "Hlbb"
|
|
1277
|
+
);
|
|
1278
|
+
if (t === -1)
|
|
1279
|
+
return m();
|
|
1280
|
+
l.value = t;
|
|
1281
|
+
const n = u.at(t);
|
|
1282
|
+
n.gateway === "Hlbb" && n.config && (e.value = {
|
|
1283
|
+
config: n.config,
|
|
1284
|
+
receiptName: n.receiptName ?? "",
|
|
1285
|
+
cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
O(a, c), M(c);
|
|
1289
|
+
async function f(u) {
|
|
1290
|
+
var t;
|
|
1291
|
+
(t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
|
|
1292
|
+
}
|
|
1293
|
+
async function s() {
|
|
1294
|
+
e.value.cardTypes.push(r.value), r.value = "";
|
|
1295
|
+
}
|
|
1296
|
+
return (u, t) => {
|
|
1297
|
+
const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
|
|
1298
|
+
return g(), T(x, {
|
|
1299
|
+
ref: _.value,
|
|
1300
|
+
class: "flex flex-col gap-16 w-[500px]",
|
|
1301
|
+
onValidationSuccess: t[2] || (t[2] = () => {
|
|
1302
|
+
var o, w;
|
|
1303
|
+
l.value > -1 ? a.value.ecrIntegrations[l.value] = {
|
|
1304
|
+
gateway: "Hlbb",
|
|
1305
|
+
config: e.value.config,
|
|
1306
|
+
receiptName: e.value.receiptName,
|
|
1307
|
+
dialogConfig: {
|
|
1308
|
+
...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
|
|
1309
|
+
cardTypes: e.value.cardTypes
|
|
1310
|
+
}
|
|
1311
|
+
} : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
|
|
1312
|
+
gateway: "Hlbb",
|
|
1313
|
+
config: e.value.config,
|
|
1314
|
+
receiptName: e.value.receiptName,
|
|
1315
|
+
dialogConfig: {
|
|
1316
|
+
cardTypes: e.value.cardTypes
|
|
1317
|
+
}
|
|
1318
|
+
})), d.onUpdate(a.value);
|
|
1319
|
+
})
|
|
1320
|
+
}, {
|
|
1321
|
+
default: h(() => [
|
|
1322
|
+
v(n, {
|
|
1323
|
+
modelValue: e.value.receiptName,
|
|
1324
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
|
|
1325
|
+
label: "Receipt Payment Name",
|
|
1326
|
+
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1327
|
+
}, null, 8, ["modelValue"]),
|
|
1328
|
+
I("div", Be, [
|
|
1329
|
+
v(n, {
|
|
1330
|
+
modelValue: r.value,
|
|
1331
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
|
|
1332
|
+
label: "Fallback Card Types",
|
|
1333
|
+
"label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
|
|
1334
|
+
}, null, 8, ["modelValue"]),
|
|
1335
|
+
v(i, {
|
|
1336
|
+
class: "ml-4",
|
|
1337
|
+
icon: "add",
|
|
1338
|
+
onClick: s
|
|
1339
|
+
})
|
|
1340
|
+
]),
|
|
1341
|
+
I("div", Ye, [
|
|
1342
|
+
(g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
|
|
1343
|
+
key: o,
|
|
1344
|
+
label: o,
|
|
1345
|
+
removable: !0,
|
|
1346
|
+
onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
|
|
1347
|
+
}, null, 8, ["label", "onChipClosed"]))), 128))
|
|
1348
|
+
]),
|
|
1349
|
+
I("div", Le, [
|
|
1350
|
+
l.value > -1 ? (g(), T(i, {
|
|
1351
|
+
key: 0,
|
|
1352
|
+
class: "flex-1",
|
|
1353
|
+
variant: "secondary",
|
|
1354
|
+
label: "Delete",
|
|
1355
|
+
onclick: () => f(l.value)
|
|
1356
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
1357
|
+
v(i, {
|
|
1358
|
+
type: "submit",
|
|
1359
|
+
class: "flex-1",
|
|
1360
|
+
variant: "primary",
|
|
1361
|
+
label: "Save"
|
|
1362
|
+
})
|
|
1363
|
+
])
|
|
1364
|
+
]),
|
|
1365
|
+
_: 1
|
|
1366
|
+
}, 512);
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
}), Ee = { class: "flex items-center" }, je = { class: "w-[260px] self-start" }, He = { class: "flex-1" }, ze = /* @__PURE__ */ k({
|
|
1253
1370
|
__name: "EcrGateway",
|
|
1254
1371
|
props: {
|
|
1255
1372
|
terminal: {
|
|
@@ -1261,9 +1378,9 @@ const te = /* @__PURE__ */ N({
|
|
|
1261
1378
|
required: !0
|
|
1262
1379
|
}
|
|
1263
1380
|
},
|
|
1264
|
-
setup(
|
|
1381
|
+
setup(F) {
|
|
1265
1382
|
var m;
|
|
1266
|
-
const d =
|
|
1383
|
+
const d = F, a = [
|
|
1267
1384
|
{
|
|
1268
1385
|
label: "FeedMe Terminal",
|
|
1269
1386
|
value: "terminal",
|
|
@@ -1273,78 +1390,85 @@ const te = /* @__PURE__ */ N({
|
|
|
1273
1390
|
label: "GHL Terminal (V2)",
|
|
1274
1391
|
value: "ghl",
|
|
1275
1392
|
render: ve,
|
|
1276
|
-
region: [
|
|
1393
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1277
1394
|
},
|
|
1278
1395
|
{
|
|
1279
1396
|
label: "GHL 2 Terminal",
|
|
1280
1397
|
value: "ghl2",
|
|
1281
1398
|
render: Re,
|
|
1282
|
-
region: [
|
|
1399
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1283
1400
|
},
|
|
1284
1401
|
{
|
|
1285
1402
|
label: "Maybank Terminal (ITB)",
|
|
1286
1403
|
value: "mb-itb",
|
|
1287
1404
|
render: be,
|
|
1288
|
-
region: [
|
|
1405
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1289
1406
|
},
|
|
1290
1407
|
{
|
|
1291
1408
|
label: "Maybank Terminal (PMA)",
|
|
1292
1409
|
value: "mb-pma",
|
|
1293
|
-
render:
|
|
1294
|
-
region: [
|
|
1410
|
+
render: Te,
|
|
1411
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1295
1412
|
},
|
|
1296
1413
|
{
|
|
1297
1414
|
label: "Maybank Terminal (Paysys)",
|
|
1298
1415
|
value: "mb-paysys",
|
|
1299
|
-
render:
|
|
1300
|
-
region: [
|
|
1416
|
+
render: ke,
|
|
1417
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1301
1418
|
},
|
|
1302
1419
|
{
|
|
1303
1420
|
label: "Nets Terminal",
|
|
1304
1421
|
value: "nets",
|
|
1305
1422
|
render: Se,
|
|
1306
|
-
region: [
|
|
1423
|
+
region: [C.F_COUNTRY.enum.SG]
|
|
1307
1424
|
},
|
|
1308
1425
|
{
|
|
1309
1426
|
label: "KBank Terminal",
|
|
1310
1427
|
value: "kbank",
|
|
1311
|
-
render:
|
|
1312
|
-
region: [
|
|
1428
|
+
render: Ge,
|
|
1429
|
+
region: [C.F_COUNTRY.enum.TH]
|
|
1313
1430
|
},
|
|
1314
1431
|
{
|
|
1315
1432
|
label: "GHL Terminal",
|
|
1316
1433
|
value: "ghl3",
|
|
1317
|
-
render:
|
|
1318
|
-
region: [
|
|
1434
|
+
render: De,
|
|
1435
|
+
region: [C.F_COUNTRY.enum.TH]
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
label: "HLBB Terminal (Paysys)",
|
|
1439
|
+
value: "hlbb",
|
|
1440
|
+
render: Ke,
|
|
1441
|
+
region: [C.F_COUNTRY.enum.MY]
|
|
1319
1442
|
}
|
|
1320
|
-
],
|
|
1321
|
-
(c) => !c.region || c.region.includes(l.value ??
|
|
1443
|
+
], _ = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, r = R(() => a.filter(
|
|
1444
|
+
(c) => !c.region || c.region.includes(l.value ?? C.F_COUNTRY.enum.MY)
|
|
1322
1445
|
)), { gatewayTab: e } = E({
|
|
1323
|
-
gatewayTab: (m =
|
|
1446
|
+
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1324
1447
|
});
|
|
1325
1448
|
return (c, f) => {
|
|
1326
|
-
var
|
|
1449
|
+
var u;
|
|
1327
1450
|
const s = y("FmTabs");
|
|
1328
|
-
return g(),
|
|
1329
|
-
|
|
1451
|
+
return g(), V("div", Ee, [
|
|
1452
|
+
I("div", je, [
|
|
1330
1453
|
v(s, {
|
|
1331
1454
|
"model-value": S(e),
|
|
1332
1455
|
"onUpdate:modelValue": f[0] || (f[0] = (t) => B(e) ? e.value = t : null),
|
|
1333
1456
|
class: "mb-6",
|
|
1334
1457
|
vertical: !0,
|
|
1335
|
-
items:
|
|
1336
|
-
|
|
1458
|
+
items: r.value,
|
|
1459
|
+
"show-more-at": Number.POSITIVE_INFINITY
|
|
1460
|
+
}, null, 8, ["model-value", "items", "show-more-at"])
|
|
1337
1461
|
]),
|
|
1338
|
-
|
|
1339
|
-
S(e) ? (g(),
|
|
1462
|
+
I("div", He, [
|
|
1463
|
+
S(e) ? (g(), T(Y((u = _.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
|
|
1340
1464
|
terminal: d.terminal,
|
|
1341
1465
|
onUpdate: d.onUpdate
|
|
1342
|
-
})), null, 16)) :
|
|
1466
|
+
})), null, 16)) : N("", !0)
|
|
1343
1467
|
])
|
|
1344
1468
|
]);
|
|
1345
1469
|
};
|
|
1346
1470
|
}
|
|
1347
|
-
}),
|
|
1471
|
+
}), Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ k({
|
|
1348
1472
|
__name: "PromptPayGateway",
|
|
1349
1473
|
props: {
|
|
1350
1474
|
terminal: {
|
|
@@ -1356,12 +1480,12 @@ const te = /* @__PURE__ */ N({
|
|
|
1356
1480
|
required: !0
|
|
1357
1481
|
}
|
|
1358
1482
|
},
|
|
1359
|
-
setup(
|
|
1360
|
-
const d =
|
|
1483
|
+
setup(F) {
|
|
1484
|
+
const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
|
|
1361
1485
|
account: "",
|
|
1362
1486
|
receiptName: ""
|
|
1363
1487
|
}), e = () => {
|
|
1364
|
-
|
|
1488
|
+
r.value.account = "", r.value.receiptName = "", l.value = -1;
|
|
1365
1489
|
}, m = () => {
|
|
1366
1490
|
if (!a.value.qrIntegrations)
|
|
1367
1491
|
return e();
|
|
@@ -1369,10 +1493,10 @@ const te = /* @__PURE__ */ N({
|
|
|
1369
1493
|
if (s === -1)
|
|
1370
1494
|
return e();
|
|
1371
1495
|
l.value = s;
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1374
|
-
account:
|
|
1375
|
-
receiptName:
|
|
1496
|
+
const u = f.at(s);
|
|
1497
|
+
u.gateway === "PROMPTPAY" && u.config && (r.value = {
|
|
1498
|
+
account: u.config.account ?? "",
|
|
1499
|
+
receiptName: u.receiptName ?? ""
|
|
1376
1500
|
});
|
|
1377
1501
|
};
|
|
1378
1502
|
O(a, m), M(m);
|
|
@@ -1381,35 +1505,35 @@ const te = /* @__PURE__ */ N({
|
|
|
1381
1505
|
(s = a.value.qrIntegrations) == null || s.splice(f, 1), d.onUpdate(a.value);
|
|
1382
1506
|
}
|
|
1383
1507
|
return (f, s) => {
|
|
1384
|
-
const
|
|
1385
|
-
return g(),
|
|
1386
|
-
ref:
|
|
1508
|
+
const u = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
|
|
1509
|
+
return g(), T(n, {
|
|
1510
|
+
ref: _.value,
|
|
1387
1511
|
class: "flex flex-col gap-16 w-[500px]",
|
|
1388
1512
|
onValidationSuccess: s[2] || (s[2] = () => {
|
|
1389
|
-
l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account:
|
|
1513
|
+
l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName })), d.onUpdate(a.value);
|
|
1390
1514
|
})
|
|
1391
1515
|
}, {
|
|
1392
|
-
default:
|
|
1393
|
-
v(
|
|
1394
|
-
modelValue:
|
|
1395
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1516
|
+
default: h(() => [
|
|
1517
|
+
v(u, {
|
|
1518
|
+
modelValue: r.value.account,
|
|
1519
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.account = i),
|
|
1396
1520
|
label: "Thai Phone Number / Thai Naitonal ID",
|
|
1397
1521
|
"label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
|
|
1398
1522
|
}, null, 8, ["modelValue"]),
|
|
1399
|
-
v(
|
|
1400
|
-
modelValue:
|
|
1401
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1523
|
+
v(u, {
|
|
1524
|
+
modelValue: r.value.receiptName,
|
|
1525
|
+
"onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
|
|
1402
1526
|
label: "Receipt Payment Name",
|
|
1403
1527
|
"label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
|
|
1404
1528
|
}, null, 8, ["modelValue"]),
|
|
1405
|
-
|
|
1406
|
-
l.value > -1 ? (g(),
|
|
1529
|
+
I("div", Qe, [
|
|
1530
|
+
l.value > -1 ? (g(), T(t, {
|
|
1407
1531
|
key: 0,
|
|
1408
1532
|
class: "flex-1",
|
|
1409
1533
|
variant: "secondary",
|
|
1410
1534
|
label: "Delete",
|
|
1411
1535
|
onclick: () => c(l.value)
|
|
1412
|
-
}, null, 8, ["onclick"])) :
|
|
1536
|
+
}, null, 8, ["onclick"])) : N("", !0),
|
|
1413
1537
|
v(t, {
|
|
1414
1538
|
type: "submit",
|
|
1415
1539
|
class: "flex-1",
|
|
@@ -1422,7 +1546,7 @@ const te = /* @__PURE__ */ N({
|
|
|
1422
1546
|
}, 512);
|
|
1423
1547
|
};
|
|
1424
1548
|
}
|
|
1425
|
-
}),
|
|
1549
|
+
}), We = { class: "flex items-center" }, Xe = { class: "w-[260px] self-start" }, Ze = { class: "flex-1" }, ea = /* @__PURE__ */ k({
|
|
1426
1550
|
__name: "QrGateway",
|
|
1427
1551
|
props: {
|
|
1428
1552
|
terminal: {
|
|
@@ -1434,41 +1558,41 @@ const te = /* @__PURE__ */ N({
|
|
|
1434
1558
|
required: !0
|
|
1435
1559
|
}
|
|
1436
1560
|
},
|
|
1437
|
-
setup(
|
|
1561
|
+
setup(F) {
|
|
1438
1562
|
var m;
|
|
1439
|
-
const d =
|
|
1563
|
+
const d = F, a = [
|
|
1440
1564
|
{
|
|
1441
1565
|
label: "PromptPay",
|
|
1442
1566
|
value: "promptpay",
|
|
1443
|
-
render:
|
|
1444
|
-
region: [
|
|
1567
|
+
render: Je,
|
|
1568
|
+
region: [C.F_COUNTRY.enum.TH]
|
|
1445
1569
|
}
|
|
1446
|
-
],
|
|
1447
|
-
gatewayTab: (m =
|
|
1570
|
+
], _ = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, r = R(() => a.filter((c) => !c.region || c.region.includes(l.value ?? C.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
|
|
1571
|
+
gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
|
|
1448
1572
|
});
|
|
1449
1573
|
return (c, f) => {
|
|
1450
|
-
var
|
|
1574
|
+
var u;
|
|
1451
1575
|
const s = y("FmTabs");
|
|
1452
|
-
return g(),
|
|
1453
|
-
|
|
1576
|
+
return g(), V("div", We, [
|
|
1577
|
+
I("div", Xe, [
|
|
1454
1578
|
v(s, {
|
|
1455
1579
|
"model-value": S(e),
|
|
1456
1580
|
"onUpdate:modelValue": f[0] || (f[0] = (t) => B(e) ? e.value = t : null),
|
|
1457
1581
|
class: "mb-6",
|
|
1458
1582
|
vertical: !0,
|
|
1459
|
-
items:
|
|
1583
|
+
items: r.value
|
|
1460
1584
|
}, null, 8, ["model-value", "items"])
|
|
1461
1585
|
]),
|
|
1462
|
-
|
|
1463
|
-
S(e) ? (g(),
|
|
1586
|
+
I("div", Ze, [
|
|
1587
|
+
S(e) ? (g(), T(Y((u = _.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
|
|
1464
1588
|
terminal: d.terminal,
|
|
1465
1589
|
onUpdate: d.onUpdate
|
|
1466
|
-
})), null, 16)) :
|
|
1590
|
+
})), null, 16)) : N("", !0)
|
|
1467
1591
|
])
|
|
1468
1592
|
]);
|
|
1469
1593
|
};
|
|
1470
1594
|
}
|
|
1471
|
-
}),
|
|
1595
|
+
}), da = /* @__PURE__ */ k({
|
|
1472
1596
|
__name: "TerminalSetting",
|
|
1473
1597
|
props: {
|
|
1474
1598
|
terminalId: {
|
|
@@ -1476,14 +1600,14 @@ const te = /* @__PURE__ */ N({
|
|
|
1476
1600
|
required: !0
|
|
1477
1601
|
}
|
|
1478
1602
|
},
|
|
1479
|
-
setup(
|
|
1480
|
-
const d =
|
|
1603
|
+
setup(F) {
|
|
1604
|
+
const d = F, { tab: a } = E({
|
|
1481
1605
|
tab: "information"
|
|
1482
|
-
}), { isLoading:
|
|
1606
|
+
}), { isLoading: _, startAsyncCall: l } = H(!0), r = W(), e = Q(), m = b();
|
|
1483
1607
|
async function c(n) {
|
|
1484
1608
|
l(async () => {
|
|
1485
1609
|
try {
|
|
1486
|
-
await
|
|
1610
|
+
await A.updateById(
|
|
1487
1611
|
d.terminalId,
|
|
1488
1612
|
{
|
|
1489
1613
|
name: n.name,
|
|
@@ -1493,15 +1617,15 @@ const te = /* @__PURE__ */ N({
|
|
|
1493
1617
|
ecrIntegrations: n.ecrIntegrations ?? [],
|
|
1494
1618
|
qrIntegrations: n.qrIntegrations ?? []
|
|
1495
1619
|
}
|
|
1496
|
-
), m.value = await
|
|
1620
|
+
), m.value = await A.readById(d.terminalId), e.open({
|
|
1497
1621
|
type: "success",
|
|
1498
1622
|
message: "Terminal updated successfully"
|
|
1499
1623
|
});
|
|
1500
|
-
} catch (
|
|
1624
|
+
} catch (i) {
|
|
1501
1625
|
e.open({
|
|
1502
1626
|
type: "error",
|
|
1503
1627
|
title: "Error occurs when update terminal",
|
|
1504
|
-
message: Z(
|
|
1628
|
+
message: Z(i)
|
|
1505
1629
|
});
|
|
1506
1630
|
}
|
|
1507
1631
|
});
|
|
@@ -1530,50 +1654,50 @@ const te = /* @__PURE__ */ N({
|
|
|
1530
1654
|
label: "ECR Gateway",
|
|
1531
1655
|
value: "ecr",
|
|
1532
1656
|
icon: "point_of_sale",
|
|
1533
|
-
render:
|
|
1657
|
+
render: ze,
|
|
1534
1658
|
onlyFor: ["POS", "KIOSK"]
|
|
1535
1659
|
},
|
|
1536
1660
|
{
|
|
1537
1661
|
label: "QR Gateway",
|
|
1538
1662
|
value: "qr",
|
|
1539
1663
|
icon: "qr_code",
|
|
1540
|
-
render:
|
|
1664
|
+
render: ea,
|
|
1541
1665
|
onlyFor: ["POS", "KIOSK"]
|
|
1542
1666
|
}
|
|
1543
1667
|
];
|
|
1544
1668
|
j().currentCountry;
|
|
1545
1669
|
const s = R(() => {
|
|
1546
1670
|
var n;
|
|
1547
|
-
return (n = f.find((
|
|
1671
|
+
return (n = f.find((i) => i.value === a.value)) == null ? void 0 : n.render;
|
|
1548
1672
|
});
|
|
1549
|
-
async function
|
|
1673
|
+
async function u() {
|
|
1550
1674
|
l(async () => {
|
|
1551
|
-
m.value = await
|
|
1675
|
+
m.value = await A.readById(d.terminalId);
|
|
1552
1676
|
});
|
|
1553
1677
|
}
|
|
1554
1678
|
const t = R(() => f.filter((n) => {
|
|
1555
|
-
var
|
|
1556
|
-
return !n.onlyFor || n.onlyFor.includes(((
|
|
1679
|
+
var i;
|
|
1680
|
+
return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
|
|
1557
1681
|
}));
|
|
1558
|
-
return M(
|
|
1559
|
-
var x,
|
|
1682
|
+
return M(u), (n, i) => {
|
|
1683
|
+
var x, o;
|
|
1560
1684
|
const p = y("FmTabs");
|
|
1561
|
-
return g(),
|
|
1562
|
-
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(
|
|
1563
|
-
loading: S(
|
|
1564
|
-
onBack: S(
|
|
1685
|
+
return g(), T(X, {
|
|
1686
|
+
title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(o = m.value) == null ? void 0 : o._id})`,
|
|
1687
|
+
loading: S(_),
|
|
1688
|
+
onBack: S(r).back
|
|
1565
1689
|
}, {
|
|
1566
|
-
default:
|
|
1690
|
+
default: h(() => [
|
|
1567
1691
|
v(p, {
|
|
1568
1692
|
"model-value": S(a),
|
|
1569
|
-
"onUpdate:modelValue":
|
|
1693
|
+
"onUpdate:modelValue": i[0] || (i[0] = (w) => B(a) ? a.value = w : null),
|
|
1570
1694
|
class: "mb-6",
|
|
1571
1695
|
items: t.value
|
|
1572
1696
|
}, null, 8, ["model-value", "items"]),
|
|
1573
|
-
S(a) ? (g(),
|
|
1697
|
+
S(a) ? (g(), T(Y(s.value), L(K({ key: 0 }, {
|
|
1574
1698
|
terminal: m.value,
|
|
1575
1699
|
onUpdate: c
|
|
1576
|
-
})), null, 16)) :
|
|
1700
|
+
})), null, 16)) : N("", !0)
|
|
1577
1701
|
]),
|
|
1578
1702
|
_: 1
|
|
1579
1703
|
}, 8, ["title", "loading", "onBack"]);
|
|
@@ -1581,5 +1705,5 @@ const te = /* @__PURE__ */ N({
|
|
|
1581
1705
|
}
|
|
1582
1706
|
});
|
|
1583
1707
|
export {
|
|
1584
|
-
|
|
1708
|
+
da as default
|
|
1585
1709
|
};
|