@feedmepos/mf-payment 0.0.0-beta.25 → 0.0.0-beta.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-DzDH-rd3.js → PayoutAccount-DLx1vtHX.js} +3 -3
- package/dist/{PayoutAccount-CKuBCVJ6.js → PayoutAccount-ka6Aj3dZ.js} +5 -5
- package/dist/{PayoutAccountSetting-BJCAWFF-.js → PayoutAccountSetting-BMK0lEkA.js} +3 -3
- package/dist/{Settlement-CVNM8xH5.js → Settlement-BbcLipkK.js} +3 -3
- package/dist/{Settlement-DftIb8e-.js → Settlement-DJ5zBwg1.js} +3 -3
- package/dist/{SettlementTransactions-CvrLIufc.js → SettlementTransactions-DiJ0UH3a.js} +4 -4
- package/dist/{SettlementTransactions-BuTUEwmz.js → SettlementTransactions-Dj-9ol4g.js} +4 -4
- package/dist/{Terminal-CvlrGww3.js → Terminal-BhpnHoj_.js} +4 -4
- package/dist/TerminalSetting-DOA2yti9.js +240 -0
- package/dist/{TerminalTransaction-Bo03hqWL.js → TerminalTransaction-BGVuNPnK.js} +5 -5
- package/dist/{TerminalTransaction-BF7-4t_i.js → TerminalTransaction-vQZGUaOJ.js} +5 -5
- package/dist/{Transaction-DoHY9CsI.js → Transaction-BTW34WyR.js} +4 -4
- package/dist/{Transaction-mXvzcE0S.js → Transaction-qdl0CHSg.js} +4 -4
- package/dist/app.js +13 -13
- package/dist/{assets-BTfeymI6.js → assets-DKVuXT4S.js} +1 -1
- package/dist/{index-D1eDPMI5.js → index-1GmRoAc1.js} +1 -1
- package/dist/{index-BF1LGMW9.js → index-BI8e-rBi.js} +1 -1
- package/dist/{index-Bnxf-Ewh.js → index-CR0eMJfk.js} +1 -1
- package/dist/{index-l4or-k_f.js → index-CdC19Yvv.js} +1 -1
- package/dist/{index-DgQ79Owz.js → index-D8P4a4hn.js} +1 -1
- package/dist/{index-AaEoCouS.js → index-Dse1Vzxp.js} +3793 -3819
- package/dist/{index.vue_vue_type_script_setup_true_lang-ByHFK12s.js → index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BIRwEZLJ.js → payout-account-BHfPuvHs.js} +242 -242
- package/dist/{transaction-hIlfGn-e.js → transaction-tPLgGZ6z.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -8
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +14 -8
- package/dist/views/admin/terminal/tabs/{Fiuu.vue.d.ts → FiuuGateway.vue.d.ts} +14 -8
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -8
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +72 -0
- package/package.json +2 -2
- package/dist/TerminalSetting-DUGN_vKj.js +0 -181
@@ -3,25 +3,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3
3
|
terminal: {
|
4
4
|
type: PropType<{
|
5
5
|
name?: string | null | undefined;
|
6
|
-
secretKey?: string | null | undefined;
|
7
6
|
deviceId?: string | null | undefined;
|
8
7
|
bindCode?: string | null | undefined;
|
8
|
+
secretKey?: string | null | undefined;
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
uniqueId: string;
|
13
12
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
13
|
+
uniqueId: string;
|
14
14
|
} | null | undefined;
|
15
15
|
gateway: "Fiuu";
|
16
16
|
} | {
|
17
|
-
|
17
|
+
config?: {
|
18
|
+
terminalId: string;
|
19
|
+
} | null | undefined;
|
20
|
+
gateway: "Terminal";
|
18
21
|
})[] | null | undefined;
|
19
22
|
status: "Active" | "Inactive";
|
20
23
|
_id: string;
|
21
|
-
createdAt: string;
|
22
24
|
referenceId: string;
|
23
25
|
securityCode: string;
|
24
26
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
27
|
+
createdAt: string;
|
25
28
|
updatedAt: string;
|
26
29
|
}>;
|
27
30
|
};
|
@@ -29,25 +32,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
29
32
|
terminal: {
|
30
33
|
type: PropType<{
|
31
34
|
name?: string | null | undefined;
|
32
|
-
secretKey?: string | null | undefined;
|
33
35
|
deviceId?: string | null | undefined;
|
34
36
|
bindCode?: string | null | undefined;
|
37
|
+
secretKey?: string | null | undefined;
|
35
38
|
token?: string | null | undefined;
|
36
39
|
gateways?: ({
|
37
40
|
config?: {
|
38
|
-
uniqueId: string;
|
39
41
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
42
|
+
uniqueId: string;
|
40
43
|
} | null | undefined;
|
41
44
|
gateway: "Fiuu";
|
42
45
|
} | {
|
43
|
-
|
46
|
+
config?: {
|
47
|
+
terminalId: string;
|
48
|
+
} | null | undefined;
|
49
|
+
gateway: "Terminal";
|
44
50
|
})[] | null | undefined;
|
45
51
|
status: "Active" | "Inactive";
|
46
52
|
_id: string;
|
47
|
-
createdAt: string;
|
48
53
|
referenceId: string;
|
49
54
|
securityCode: string;
|
50
55
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
56
|
+
createdAt: string;
|
51
57
|
updatedAt: string;
|
52
58
|
}>;
|
53
59
|
};
|
@@ -1,25 +1,28 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
2
|
data: {
|
3
3
|
name?: string | null | undefined;
|
4
|
-
secretKey?: string | null | undefined;
|
5
4
|
deviceId?: string | null | undefined;
|
6
5
|
bindCode?: string | null | undefined;
|
6
|
+
secretKey?: string | null | undefined;
|
7
7
|
token?: string | null | undefined;
|
8
8
|
gateways?: ({
|
9
9
|
config?: {
|
10
|
-
uniqueId: string;
|
11
10
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
11
|
+
uniqueId: string;
|
12
12
|
} | null | undefined;
|
13
13
|
gateway: "Fiuu";
|
14
14
|
} | {
|
15
|
-
|
15
|
+
config?: {
|
16
|
+
terminalId: string;
|
17
|
+
} | null | undefined;
|
18
|
+
gateway: "Terminal";
|
16
19
|
})[] | null | undefined;
|
17
20
|
status: "Active" | "Inactive";
|
18
21
|
_id: string;
|
19
|
-
createdAt: string;
|
20
22
|
referenceId: string;
|
21
23
|
securityCode: string;
|
22
24
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
25
|
+
createdAt: string;
|
23
26
|
updatedAt: string;
|
24
27
|
};
|
25
28
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
@@ -29,25 +32,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
32
|
}, string, import("vue").PublicProps, Readonly<{
|
30
33
|
data: {
|
31
34
|
name?: string | null | undefined;
|
32
|
-
secretKey?: string | null | undefined;
|
33
35
|
deviceId?: string | null | undefined;
|
34
36
|
bindCode?: string | null | undefined;
|
37
|
+
secretKey?: string | null | undefined;
|
35
38
|
token?: string | null | undefined;
|
36
39
|
gateways?: ({
|
37
40
|
config?: {
|
38
|
-
uniqueId: string;
|
39
41
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
42
|
+
uniqueId: string;
|
40
43
|
} | null | undefined;
|
41
44
|
gateway: "Fiuu";
|
42
45
|
} | {
|
43
|
-
|
46
|
+
config?: {
|
47
|
+
terminalId: string;
|
48
|
+
} | null | undefined;
|
49
|
+
gateway: "Terminal";
|
44
50
|
})[] | null | undefined;
|
45
51
|
status: "Active" | "Inactive";
|
46
52
|
_id: string;
|
47
|
-
createdAt: string;
|
48
53
|
referenceId: string;
|
49
54
|
securityCode: string;
|
50
55
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
56
|
+
createdAt: string;
|
51
57
|
updatedAt: string;
|
52
58
|
};
|
53
59
|
}> & Readonly<{
|
@@ -4,25 +4,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
4
4
|
terminal: {
|
5
5
|
type: PropType<{
|
6
6
|
name?: string | null | undefined;
|
7
|
-
secretKey?: string | null | undefined;
|
8
7
|
deviceId?: string | null | undefined;
|
9
8
|
bindCode?: string | null | undefined;
|
9
|
+
secretKey?: string | null | undefined;
|
10
10
|
token?: string | null | undefined;
|
11
11
|
gateways?: ({
|
12
12
|
config?: {
|
13
|
-
uniqueId: string;
|
14
13
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
14
|
+
uniqueId: string;
|
15
15
|
} | null | undefined;
|
16
16
|
gateway: "Fiuu";
|
17
17
|
} | {
|
18
|
-
|
18
|
+
config?: {
|
19
|
+
terminalId: string;
|
20
|
+
} | null | undefined;
|
21
|
+
gateway: "Terminal";
|
19
22
|
})[] | null | undefined;
|
20
23
|
status: "Active" | "Inactive";
|
21
24
|
_id: string;
|
22
|
-
createdAt: string;
|
23
25
|
referenceId: string;
|
24
26
|
securityCode: string;
|
25
27
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
28
|
+
createdAt: string;
|
26
29
|
updatedAt: string;
|
27
30
|
}>;
|
28
31
|
required: true;
|
@@ -35,25 +38,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
35
38
|
terminal: {
|
36
39
|
type: PropType<{
|
37
40
|
name?: string | null | undefined;
|
38
|
-
secretKey?: string | null | undefined;
|
39
41
|
deviceId?: string | null | undefined;
|
40
42
|
bindCode?: string | null | undefined;
|
43
|
+
secretKey?: string | null | undefined;
|
41
44
|
token?: string | null | undefined;
|
42
45
|
gateways?: ({
|
43
46
|
config?: {
|
44
|
-
uniqueId: string;
|
45
47
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
48
|
+
uniqueId: string;
|
46
49
|
} | null | undefined;
|
47
50
|
gateway: "Fiuu";
|
48
51
|
} | {
|
49
|
-
|
52
|
+
config?: {
|
53
|
+
terminalId: string;
|
54
|
+
} | null | undefined;
|
55
|
+
gateway: "Terminal";
|
50
56
|
})[] | null | undefined;
|
51
57
|
status: "Active" | "Inactive";
|
52
58
|
_id: string;
|
53
|
-
createdAt: string;
|
54
59
|
referenceId: string;
|
55
60
|
securityCode: string;
|
56
61
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
62
|
+
createdAt: string;
|
57
63
|
updatedAt: string;
|
58
64
|
}>;
|
59
65
|
required: true;
|
@@ -3,25 +3,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3
3
|
terminal: {
|
4
4
|
type: PropType<{
|
5
5
|
name?: string | null | undefined;
|
6
|
-
secretKey?: string | null | undefined;
|
7
6
|
deviceId?: string | null | undefined;
|
8
7
|
bindCode?: string | null | undefined;
|
8
|
+
secretKey?: string | null | undefined;
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
uniqueId: string;
|
13
12
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
13
|
+
uniqueId: string;
|
14
14
|
} | null | undefined;
|
15
15
|
gateway: "Fiuu";
|
16
16
|
} | {
|
17
|
-
|
17
|
+
config?: {
|
18
|
+
terminalId: string;
|
19
|
+
} | null | undefined;
|
20
|
+
gateway: "Terminal";
|
18
21
|
})[] | null | undefined;
|
19
22
|
status: "Active" | "Inactive";
|
20
23
|
_id: string;
|
21
|
-
createdAt: string;
|
22
24
|
referenceId: string;
|
23
25
|
securityCode: string;
|
24
26
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
27
|
+
createdAt: string;
|
25
28
|
updatedAt: string;
|
26
29
|
}>;
|
27
30
|
required: true;
|
@@ -30,25 +33,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
30
33
|
terminal: {
|
31
34
|
type: PropType<{
|
32
35
|
name?: string | null | undefined;
|
33
|
-
secretKey?: string | null | undefined;
|
34
36
|
deviceId?: string | null | undefined;
|
35
37
|
bindCode?: string | null | undefined;
|
38
|
+
secretKey?: string | null | undefined;
|
36
39
|
token?: string | null | undefined;
|
37
40
|
gateways?: ({
|
38
41
|
config?: {
|
39
|
-
uniqueId: string;
|
40
42
|
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
43
|
+
uniqueId: string;
|
41
44
|
} | null | undefined;
|
42
45
|
gateway: "Fiuu";
|
43
46
|
} | {
|
44
|
-
|
47
|
+
config?: {
|
48
|
+
terminalId: string;
|
49
|
+
} | null | undefined;
|
50
|
+
gateway: "Terminal";
|
45
51
|
})[] | null | undefined;
|
46
52
|
status: "Active" | "Inactive";
|
47
53
|
_id: string;
|
48
|
-
createdAt: string;
|
49
54
|
referenceId: string;
|
50
55
|
securityCode: string;
|
51
56
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
57
|
+
createdAt: string;
|
52
58
|
updatedAt: string;
|
53
59
|
}>;
|
54
60
|
required: true;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { type FdoTerminal } from '@feedmepos/payment-entity';
|
2
|
+
import { type PropType } from 'vue';
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
4
|
+
terminal: {
|
5
|
+
type: PropType<{
|
6
|
+
name?: string | null | undefined;
|
7
|
+
deviceId?: string | null | undefined;
|
8
|
+
bindCode?: string | null | undefined;
|
9
|
+
secretKey?: string | null | undefined;
|
10
|
+
token?: string | null | undefined;
|
11
|
+
gateways?: ({
|
12
|
+
config?: {
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
14
|
+
uniqueId: string;
|
15
|
+
} | null | undefined;
|
16
|
+
gateway: "Fiuu";
|
17
|
+
} | {
|
18
|
+
config?: {
|
19
|
+
terminalId: string;
|
20
|
+
} | null | undefined;
|
21
|
+
gateway: "Terminal";
|
22
|
+
})[] | null | undefined;
|
23
|
+
status: "Active" | "Inactive";
|
24
|
+
_id: string;
|
25
|
+
referenceId: string;
|
26
|
+
securityCode: string;
|
27
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
28
|
+
createdAt: string;
|
29
|
+
updatedAt: string;
|
30
|
+
}>;
|
31
|
+
required: true;
|
32
|
+
};
|
33
|
+
onUpdate: {
|
34
|
+
type: PropType<(account: FdoTerminal) => Promise<void>>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
+
terminal: {
|
39
|
+
type: PropType<{
|
40
|
+
name?: string | null | undefined;
|
41
|
+
deviceId?: string | null | undefined;
|
42
|
+
bindCode?: string | null | undefined;
|
43
|
+
secretKey?: string | null | undefined;
|
44
|
+
token?: string | null | undefined;
|
45
|
+
gateways?: ({
|
46
|
+
config?: {
|
47
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
48
|
+
uniqueId: string;
|
49
|
+
} | null | undefined;
|
50
|
+
gateway: "Fiuu";
|
51
|
+
} | {
|
52
|
+
config?: {
|
53
|
+
terminalId: string;
|
54
|
+
} | null | undefined;
|
55
|
+
gateway: "Terminal";
|
56
|
+
})[] | null | undefined;
|
57
|
+
status: "Active" | "Inactive";
|
58
|
+
_id: string;
|
59
|
+
referenceId: string;
|
60
|
+
securityCode: string;
|
61
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
62
|
+
createdAt: string;
|
63
|
+
updatedAt: string;
|
64
|
+
}>;
|
65
|
+
required: true;
|
66
|
+
};
|
67
|
+
onUpdate: {
|
68
|
+
type: PropType<(account: FdoTerminal) => Promise<void>>;
|
69
|
+
required: true;
|
70
|
+
};
|
71
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
72
|
+
export default _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@feedmepos/mf-payment",
|
3
|
-
"version": "0.0.0-beta.
|
3
|
+
"version": "0.0.0-beta.26",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"@casl/ability": "^3.2.0",
|
34
34
|
"@feedmepos/core": "^2.6.0",
|
35
35
|
"@feedmepos/mf-common": "^1.8.21",
|
36
|
-
"@feedmepos/payment-entity": "^0.0.5-
|
36
|
+
"@feedmepos/payment-entity": "^0.0.5-demo6",
|
37
37
|
"@feedmepos/ui-library": "^1.2.44",
|
38
38
|
"axios": "^0.27.2",
|
39
39
|
"buffer": "^6.0.3",
|
@@ -1,181 +0,0 @@
|
|
1
|
-
import { defineComponent as q, openBlock as f, createElementBlock as C, Fragment as D, createElementVNode as i, createTextVNode as I, toDisplayString as w, ref as c, onMounted as S, resolveComponent as m, createBlock as V, withCtx as T, createVNode as p, computed as N, unref as d, isRef as _, resolveDynamicComponent as E, normalizeProps as M, mergeProps as P, createCommentVNode as $ } from "vue";
|
2
|
-
import { u as L } from "./index-AaEoCouS.js";
|
3
|
-
import { useRouter as O } from "vue-router";
|
4
|
-
import { t as k } from "./index-DgQ79Owz.js";
|
5
|
-
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
6
|
-
import { u as A } from "./index-Bnxf-Ewh.js";
|
7
|
-
import { useSnackbar as R } from "@feedmepos/ui-library";
|
8
|
-
import { u as z } from "./error-K1CakhA9.js";
|
9
|
-
const G = /* @__PURE__ */ q({
|
10
|
-
__name: "Information",
|
11
|
-
props: {
|
12
|
-
terminal: {
|
13
|
-
type: Object,
|
14
|
-
required: !0
|
15
|
-
}
|
16
|
-
},
|
17
|
-
setup(a) {
|
18
|
-
return (u, e) => (f(), C(D, null, [
|
19
|
-
e[0] || (e[0] = i("b", null, "Name", -1)),
|
20
|
-
I(": " + w(a.terminal.name), 1),
|
21
|
-
e[1] || (e[1] = i("br", null, null, -1)),
|
22
|
-
e[2] || (e[2] = i("b", null, "Status", -1)),
|
23
|
-
I(": " + w(a.terminal.status), 1),
|
24
|
-
e[3] || (e[3] = i("br", null, null, -1)),
|
25
|
-
e[4] || (e[4] = i("b", null, "Device ID", -1)),
|
26
|
-
I(": " + w(a.terminal.deviceId ?? "-"), 1),
|
27
|
-
e[5] || (e[5] = i("br", null, null, -1))
|
28
|
-
], 64));
|
29
|
-
}
|
30
|
-
}), Q = /* @__PURE__ */ q({
|
31
|
-
__name: "Fiuu",
|
32
|
-
props: {
|
33
|
-
terminal: {
|
34
|
-
type: Object,
|
35
|
-
required: !0
|
36
|
-
},
|
37
|
-
onUpdate: {
|
38
|
-
type: Function,
|
39
|
-
required: !0
|
40
|
-
}
|
41
|
-
},
|
42
|
-
setup(a) {
|
43
|
-
const u = a, e = [
|
44
|
-
{
|
45
|
-
label: "Fiuu Malaysia",
|
46
|
-
value: "cc.feedme.payment.rms"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
label: "Fiuu Malaysia V2",
|
50
|
-
value: "cc.feedme.payment.fiuu"
|
51
|
-
},
|
52
|
-
{
|
53
|
-
label: "Fiuu Singapore",
|
54
|
-
value: "cc.feedme.payment.sg.fiuu"
|
55
|
-
}
|
56
|
-
], g = c(), y = c(!0), o = c({
|
57
|
-
packageId: "",
|
58
|
-
uniqueId: ""
|
59
|
-
});
|
60
|
-
return S(() => {
|
61
|
-
if (!u.terminal.gateways)
|
62
|
-
return;
|
63
|
-
const l = u.terminal.gateways.find((t) => t && t.gateway && t.gateway === "Fiuu");
|
64
|
-
l && l.gateway === "Fiuu" && l.config && (y.value = !1, o.value = {
|
65
|
-
packageId: l.config.packageId,
|
66
|
-
uniqueId: l.config.uniqueId
|
67
|
-
});
|
68
|
-
}), (l, t) => {
|
69
|
-
const v = m("FmSelect"), b = m("FmTextField"), s = m("FmButton"), F = m("FmForm");
|
70
|
-
return f(), V(F, {
|
71
|
-
ref: g.value,
|
72
|
-
class: "flex flex-col gap-16 w-[500px]",
|
73
|
-
onValidationSuccess: t[2] || (t[2] = () => {
|
74
|
-
a.terminal.gateways[0] = { gateway: "Fiuu", config: o.value }, u.onUpdate(a.terminal);
|
75
|
-
})
|
76
|
-
}, {
|
77
|
-
default: T(() => [
|
78
|
-
p(v, {
|
79
|
-
modelValue: o.value.packageId,
|
80
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => o.value.packageId = n),
|
81
|
-
label: "Package ID",
|
82
|
-
items: e
|
83
|
-
}, null, 8, ["modelValue"]),
|
84
|
-
p(b, {
|
85
|
-
modelValue: o.value.uniqueId,
|
86
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) => o.value.uniqueId = n),
|
87
|
-
label: "Unique ID"
|
88
|
-
}, null, 8, ["modelValue"]),
|
89
|
-
p(s, {
|
90
|
-
type: "submit",
|
91
|
-
label: "Save"
|
92
|
-
})
|
93
|
-
]),
|
94
|
-
_: 1
|
95
|
-
}, 512);
|
96
|
-
};
|
97
|
-
}
|
98
|
-
}), ee = /* @__PURE__ */ q({
|
99
|
-
__name: "TerminalSetting",
|
100
|
-
props: {
|
101
|
-
terminalId: {
|
102
|
-
type: String,
|
103
|
-
required: !0
|
104
|
-
}
|
105
|
-
},
|
106
|
-
setup(a) {
|
107
|
-
const u = a, { tab: e } = A({
|
108
|
-
tab: "information"
|
109
|
-
}), { isLoading: g, startAsyncCall: y } = L(!0), o = O(), l = R(), t = c();
|
110
|
-
async function v(n) {
|
111
|
-
try {
|
112
|
-
await k.updateById(
|
113
|
-
u.terminalId,
|
114
|
-
{
|
115
|
-
name: n.name,
|
116
|
-
status: n.status,
|
117
|
-
gateway: n.gateways[0]
|
118
|
-
}
|
119
|
-
), t.value = await k.readById(u.terminalId), l.open({
|
120
|
-
type: "success",
|
121
|
-
message: "Terminal updated successfully"
|
122
|
-
});
|
123
|
-
} catch (r) {
|
124
|
-
l.open({
|
125
|
-
type: "error",
|
126
|
-
title: "Error occurs when update terminal",
|
127
|
-
message: z(r)
|
128
|
-
});
|
129
|
-
}
|
130
|
-
}
|
131
|
-
async function b() {
|
132
|
-
y(async () => {
|
133
|
-
t.value = await k.readById(u.terminalId);
|
134
|
-
});
|
135
|
-
}
|
136
|
-
S(b);
|
137
|
-
const s = [
|
138
|
-
{
|
139
|
-
label: "Information",
|
140
|
-
value: "information",
|
141
|
-
icon: "overview",
|
142
|
-
render: G
|
143
|
-
},
|
144
|
-
{
|
145
|
-
label: "Fiuu",
|
146
|
-
value: "fiuu",
|
147
|
-
icon: "payment",
|
148
|
-
render: Q
|
149
|
-
}
|
150
|
-
], F = N(() => {
|
151
|
-
var n;
|
152
|
-
return (n = s.find((r) => r.value === e.value)) == null ? void 0 : n.render;
|
153
|
-
});
|
154
|
-
return (n, r) => {
|
155
|
-
var B;
|
156
|
-
const x = m("FmTabs");
|
157
|
-
return f(), V(j, {
|
158
|
-
title: `Terminal (${(B = t.value) == null ? void 0 : B._id})`,
|
159
|
-
loading: d(g),
|
160
|
-
onBack: d(o).back
|
161
|
-
}, {
|
162
|
-
default: T(() => [
|
163
|
-
p(x, {
|
164
|
-
"model-value": d(e),
|
165
|
-
"onUpdate:modelValue": r[0] || (r[0] = (U) => _(e) ? e.value = U : null),
|
166
|
-
class: "mb-6",
|
167
|
-
items: s
|
168
|
-
}, null, 8, ["model-value"]),
|
169
|
-
d(e) ? (f(), V(E(F.value), M(P({ key: 0 }, {
|
170
|
-
terminal: t.value,
|
171
|
-
onUpdate: v
|
172
|
-
})), null, 16)) : $("", !0)
|
173
|
-
]),
|
174
|
-
_: 1
|
175
|
-
}, 8, ["title", "loading", "onBack"]);
|
176
|
-
};
|
177
|
-
}
|
178
|
-
});
|
179
|
-
export {
|
180
|
-
ee as default
|
181
|
-
};
|