@tap-payments/auth-jsconnect 2.10.20-development → 2.11.1-beta
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/build/@types/app.d.ts +1 -2
- package/build/@types/app.js +0 -1
- package/build/@types/form.d.ts +0 -2
- package/build/@types/index.d.ts +0 -1
- package/build/@types/index.js +0 -1
- package/build/api/auth.d.ts +1 -9
- package/build/api/entity.d.ts +0 -3
- package/build/api/index.d.ts +1 -7
- package/build/api/index.js +1 -3
- package/build/api/lead.d.ts +0 -1
- package/build/app/rootReducer.d.ts +0 -1
- package/build/app/rootReducer.js +1 -3
- package/build/app/store.d.ts +0 -2
- package/build/assets/locales/ar.json +16 -48
- package/build/assets/locales/en.json +45 -51
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -2
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +2 -0
- package/build/constants/app.d.ts +3 -21
- package/build/constants/app.js +5 -122
- package/build/constants/flows.d.ts +0 -15
- package/build/constants/flows.js +0 -15
- package/build/constants/validation.d.ts +0 -2
- package/build/constants/validation.js +0 -2
- package/build/features/app/business/businessStore.js +10 -15
- package/build/features/app/connectExpress/connectExpressStore.js +3 -17
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -13
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +5 -11
- package/build/features/business/screens/BusinessType/LicenseList.js +7 -15
- package/build/features/business/screens/BusinessType/validation.d.ts +3 -6
- package/build/features/business/screens/BusinessType/validation.js +10 -31
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +0 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +7 -23
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +3 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +21 -57
- package/build/features/entity/screens/EntityName/EntityName.js +1 -2
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
- package/build/features/entity/screens/EntityName/validation.js +3 -14
- package/build/features/featuresScreens.d.ts +0 -1
- package/build/features/featuresScreens.js +0 -67
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +0 -1
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +4 -5
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -3
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- package/build/hooks/useAppDispatch.d.ts +0 -1
- package/build/index.d.ts +2 -3
- package/build/index.js +2 -4
- package/build/theme/palette.js +0 -12
- package/build/theme/typography.js +0 -4
- package/build/utils/common.js +4 -4
- package/build/utils/string.d.ts +1 -2
- package/build/utils/string.js +2 -11
- package/package.json +2 -2
- package/build/@types/terminal.d.ts +0 -116
- package/build/@types/terminal.js +0 -1
- package/build/api/terminal.d.ts +0 -28
- package/build/api/terminal.js +0 -45
- package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
- package/build/components/DeviceCard/DeviceCard.js +0 -103
- package/build/components/DeviceCard/index.d.ts +0 -3
- package/build/components/DeviceCard/index.js +0 -2
- package/build/features/app/terminal/terminalStore.d.ts +0 -110
- package/build/features/app/terminal/terminalStore.js +0 -676
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +0 -35
- package/build/features/business/screens/BusinessType/UnifiedNumber.js +0 -84
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +0 -36
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +0 -81
- package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
- package/build/features/shared/PushNotification/PushNotification.js +0 -34
- package/build/features/shared/PushNotification/index.d.ts +0 -2
- package/build/features/shared/PushNotification/index.js +0 -2
- package/build/features/terminal/Terminal.d.ts +0 -14
- package/build/features/terminal/Terminal.js +0 -95
- package/build/features/terminal/index.d.ts +0 -1
- package/build/features/terminal/index.js +0 -1
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -69
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -51
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -55
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
- package/build/features/terminal/screens/Loading/Loading.js +0 -10
- package/build/features/terminal/screens/Loading/index.d.ts +0 -2
- package/build/features/terminal/screens/Loading/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +0 -3
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +0 -58
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +0 -36
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +0 -34
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
- package/build/features/terminal/screens/OperatorError/index.js +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -32
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -153
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -13
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +0 -3
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +0 -47
- package/build/features/terminal/screens/TerminalListPage/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalListPage/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -53
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -98
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -26
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -30
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
- package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
- package/build/features/terminal/screens/Verify/Verify.js +0 -85
- package/build/features/terminal/screens/Verify/index.d.ts +0 -2
- package/build/features/terminal/screens/Verify/index.js +0 -2
- package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
- package/build/features/terminal/screens/Verify/validation.js +0 -4
- package/build/features/terminal/screens/shared/Header.d.ts +0 -10
- package/build/features/terminal/screens/shared/Header.js +0 -30
- package/build/features/terminal/screens/shared/TerminalList.d.ts +0 -11
- package/build/features/terminal/screens/shared/TerminalList.js +0 -25
- package/build/features/terminal/screens/shared/index.d.ts +0 -5
- package/build/features/terminal/screens/shared/index.js +0 -5
- package/build/features/terminal/screens/shared/styles.d.ts +0 -196
- package/build/features/terminal/screens/shared/styles.js +0 -155
- package/build/features/terminal/screens/shared/utils.d.ts +0 -7
- package/build/features/terminal/screens/shared/utils.js +0 -24
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import Box from '@mui/material/Box';
|
|
13
|
-
import Button from '@mui/material/Button';
|
|
14
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
15
|
-
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
|
|
16
|
-
import Typography from '@mui/material/Typography';
|
|
17
|
-
import Radio from '@mui/material/Radio';
|
|
18
|
-
import Icon from '../../../../components/Icon';
|
|
19
|
-
import DeviceCard from '../../../../components/DeviceCard';
|
|
20
|
-
export var Container = styled(Box)(function () { return ({
|
|
21
|
-
display: 'flex',
|
|
22
|
-
flexDirection: 'column',
|
|
23
|
-
width: '100%'
|
|
24
|
-
}); });
|
|
25
|
-
export var LinkNewTerminalContainer = styled(Container)(function (_a) {
|
|
26
|
-
var spacing = _a.theme.spacing;
|
|
27
|
-
return ({
|
|
28
|
-
gap: spacing(1)
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
export var TextTypography = styled(Typography)(function (_a) {
|
|
32
|
-
var _b = _a.theme, palette = _b.palette, typography = _b.typography;
|
|
33
|
-
return (__assign(__assign({}, typography.caption), { color: alpha(palette.text.primary, 0.6) }));
|
|
34
|
-
});
|
|
35
|
-
export var LinkWithText = styled(TextTypography)(function (_a) {
|
|
36
|
-
var spacing = _a.theme.spacing;
|
|
37
|
-
return ({
|
|
38
|
-
paddingBlock: spacing(1)
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
export var LinkTerminalText = styled(TextTypography)(function (_a) {
|
|
42
|
-
var spacing = _a.theme.spacing;
|
|
43
|
-
return ({
|
|
44
|
-
paddingInline: spacing(2.625)
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
export var QRCodeDescription = styled(Box)(function (_a) {
|
|
48
|
-
var _b = _a.theme, palette = _b.palette, spacing = _b.spacing, typography = _b.typography;
|
|
49
|
-
return (__assign(__assign({ backgroundColor: palette.common.white, borderWidth: spacing(0.125, 0, 0.125, 0), borderStyle: 'solid', borderColor: palette.divider, padding: spacing(1.5, 2.5, 1.5, 2.5), marginTop: spacing(1), color: palette.text.primary }, typography.body1), { fontWeight: typography.fontWeightLight }));
|
|
50
|
-
});
|
|
51
|
-
export var SuccessContainerStyled = styled(Container)(function () { return ({
|
|
52
|
-
justifyContent: 'space-between',
|
|
53
|
-
alignItems: 'center',
|
|
54
|
-
pointerEvents: 'auto'
|
|
55
|
-
}); });
|
|
56
|
-
export var ScrollContainer = styled(Box)(function (_a) {
|
|
57
|
-
var spacing = _a.theme.spacing;
|
|
58
|
-
return ({
|
|
59
|
-
maxHeight: spacing(20.625),
|
|
60
|
-
overflow: 'scroll'
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
export var TerminalListContainer = styled(Box)(function (_a) {
|
|
64
|
-
var spacing = _a.theme.spacing;
|
|
65
|
-
return ({
|
|
66
|
-
display: 'flex',
|
|
67
|
-
justifyContent: 'space-between',
|
|
68
|
-
flexDirection: 'column',
|
|
69
|
-
alignItems: 'center',
|
|
70
|
-
width: '100%',
|
|
71
|
-
gap: spacing(0.75)
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
export var ListContainer = styled(Box)(function (_a) {
|
|
75
|
-
var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, common = _c.common, toastDeviceSelectorDropdown = _c.components.toastDeviceSelectorDropdown;
|
|
76
|
-
return ({
|
|
77
|
-
marginTop: spacing(1),
|
|
78
|
-
border: "1px solid ".concat(toastDeviceSelectorDropdown.border),
|
|
79
|
-
backgroundColor: common.white,
|
|
80
|
-
borderRadius: spacing(1)
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
export var TitleContainer = styled(Box)(function (_a) {
|
|
84
|
-
var _b = _a.theme, spacing = _b.spacing, toastDeviceSelectorDropdown = _b.palette.components.toastDeviceSelectorDropdown;
|
|
85
|
-
return ({
|
|
86
|
-
padding: spacing(1.5, 2, 1.5, 2),
|
|
87
|
-
display: 'flex',
|
|
88
|
-
flexDirection: 'row',
|
|
89
|
-
gap: spacing(0.75),
|
|
90
|
-
alignItems: 'center',
|
|
91
|
-
borderBottom: "1px solid ".concat(toastDeviceSelectorDropdown.border)
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
export var Image = styled(Icon)(function (_a) {
|
|
95
|
-
var spacing = _a.theme.spacing;
|
|
96
|
-
return ({
|
|
97
|
-
width: spacing(3),
|
|
98
|
-
height: spacing(3)
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
export var Title = styled(Typography)(function (_a) {
|
|
102
|
-
var _b = _a.theme, typography = _b.typography, palette = _b.palette;
|
|
103
|
-
return (__assign(__assign({}, typography.body2), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
|
|
104
|
-
});
|
|
105
|
-
export var ListItem = styled(DeviceCard)(function (_a) {
|
|
106
|
-
var spacing = _a.theme.spacing;
|
|
107
|
-
return ({
|
|
108
|
-
paddingTop: spacing(1),
|
|
109
|
-
paddingBottom: spacing(1)
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
export var StyledRadio = styled(Radio)(function (_a) {
|
|
113
|
-
var theme = _a.theme;
|
|
114
|
-
return ({
|
|
115
|
-
'&.Mui-checked': {
|
|
116
|
-
color: theme.palette.primary.main
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
export var ArrowIcon = styled(ArrowForwardIosIcon)(function (_a) {
|
|
121
|
-
var _b = _a.theme, palette = _b.palette, direction = _b.direction;
|
|
122
|
-
return (__assign({ color: palette.components.deviceCard.title, fontSize: '16px' }, (direction === 'rtl' && {
|
|
123
|
-
transform: 'rotate(180deg)'
|
|
124
|
-
})));
|
|
125
|
-
});
|
|
126
|
-
export var HeadContainer = styled(Box)(function (_a) {
|
|
127
|
-
var spacing = _a.theme.spacing;
|
|
128
|
-
return ({
|
|
129
|
-
display: 'flex',
|
|
130
|
-
justifyContent: 'space-between',
|
|
131
|
-
alignItems: 'center',
|
|
132
|
-
width: '100%',
|
|
133
|
-
paddingBottom: spacing(2)
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
export var LinkButton = styled(Button)(function (_a) {
|
|
137
|
-
var _b = _a.theme, spacing = _b.spacing, palette = _b.palette, typography = _b.typography;
|
|
138
|
-
return (__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, textTransform: 'none', color: palette.primary.main, display: 'flex', alignItems: 'center', gap: spacing(0.5) }));
|
|
139
|
-
});
|
|
140
|
-
export var AddIconContainer = styled(Box)(function (_a) {
|
|
141
|
-
var _b = _a.theme, spacing = _b.spacing, palette = _b.palette;
|
|
142
|
-
return ({
|
|
143
|
-
background: alpha(palette.primary.main, 0.1),
|
|
144
|
-
height: spacing(2.25),
|
|
145
|
-
width: spacing(2.25),
|
|
146
|
-
display: 'flex',
|
|
147
|
-
justifyContent: 'center',
|
|
148
|
-
borderRadius: spacing(11.25),
|
|
149
|
-
alignItems: 'center'
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
export var LinkText = styled(Typography)(function (_a) {
|
|
153
|
-
var typography = _a.theme.typography;
|
|
154
|
-
return (__assign({}, typography.button_small));
|
|
155
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TerminalDeviceInfo, TerminalInfo } from '../../../../@types';
|
|
2
|
-
export declare const getPairedWith: (device: TerminalDeviceInfo) => string | undefined;
|
|
3
|
-
export declare const getId: (device: TerminalDeviceInfo) => string;
|
|
4
|
-
export declare const getIdLabel: (device: TerminalDeviceInfo) => "terminal_device_id" | "terminal_serial_number";
|
|
5
|
-
export declare const getTerminalId: (terminal: TerminalInfo) => string;
|
|
6
|
-
export declare const getTerminalName: (terminal: TerminalInfo) => string;
|
|
7
|
-
export declare const getTerminalIdLabel: (terminal: TerminalInfo) => "terminal_device_id" | "terminal_id";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export var getPairedWith = function (device) {
|
|
2
|
-
var _a, _b, _c, _d;
|
|
3
|
-
return (_c = (_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.display_name) !== null && _c !== void 0 ? _c : (_d = device === null || device === void 0 ? void 0 : device.terminal) === null || _d === void 0 ? void 0 : _d.name.en;
|
|
4
|
-
};
|
|
5
|
-
export var getId = function (device) {
|
|
6
|
-
var _a, _b, _c;
|
|
7
|
-
return (_c = (_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : device.serial_number;
|
|
8
|
-
};
|
|
9
|
-
export var getIdLabel = function (device) {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
return ((_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.id) ? 'terminal_device_id' : 'terminal_serial_number';
|
|
12
|
-
};
|
|
13
|
-
export var getTerminalId = function (terminal) {
|
|
14
|
-
var _a, _b;
|
|
15
|
-
return (_b = (_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : terminal.legacy_id;
|
|
16
|
-
};
|
|
17
|
-
export var getTerminalName = function (terminal) {
|
|
18
|
-
var _a, _b, _c;
|
|
19
|
-
return (_b = (_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.display_name) !== null && _b !== void 0 ? _b : (_c = terminal === null || terminal === void 0 ? void 0 : terminal.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
20
|
-
};
|
|
21
|
-
export var getTerminalIdLabel = function (terminal) {
|
|
22
|
-
var _a;
|
|
23
|
-
return ((_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.id) ? 'terminal_device_id' : 'terminal_id';
|
|
24
|
-
};
|