@oiti/rn-liveness3d 1.1.2 → 2.1.0
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/README.md +33 -237
- package/android/build.gradle +4 -18
- package/android/settings.gradle +2 -2
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dModule.kt +198 -132
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DFonts.kt +44 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DText.kt +68 -0
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DTheme.kt +147 -0
- package/ios/Podfile +2 -1
- package/ios/Pods/Manifest.lock +23 -19
- package/ios/RnLiveness3d.m +8 -3
- package/ios/RnLiveness3d.swift +198 -114
- package/lib/commonjs/@types/ArgsType.js +4 -0
- package/lib/commonjs/@types/FontsType.js +2 -0
- package/lib/commonjs/@types/FontsType.js.map +1 -0
- package/lib/commonjs/@types/ResultType.js +2 -0
- package/lib/commonjs/@types/ResultType.js.map +1 -0
- package/lib/commonjs/@types/ResultTypes.js +6 -0
- package/lib/commonjs/@types/ResultTypes.js.map +1 -0
- package/lib/commonjs/@types/TextsType.js +2 -0
- package/lib/commonjs/@types/TextsType.js.map +1 -0
- package/lib/commonjs/@types/ThemeType.js +2 -0
- package/lib/commonjs/@types/ThemeType.js.map +1 -0
- package/lib/commonjs/actions/BackButton.js +35 -0
- package/lib/commonjs/actions/BackButton.js.map +1 -0
- package/lib/commonjs/actions/ContinueButton.js +43 -0
- package/lib/commonjs/actions/ContinueButton.js.map +1 -0
- package/lib/commonjs/actions/PermissionButton.js +35 -0
- package/lib/commonjs/actions/PermissionButton.js.map +1 -0
- package/lib/commonjs/context/Liveness3DContext.js +104 -0
- package/lib/commonjs/context/Liveness3DContext.js.map +1 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js +34 -0
- package/lib/commonjs/helpers/Liveness3DHelper.js.map +1 -0
- package/lib/commonjs/index.js +121 -78
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/Liveness3DHelper.js +6 -0
- package/lib/commonjs/interfaces/Liveness3DHelper.js.map +1 -0
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js +6 -0
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js.map +1 -0
- package/lib/commonjs/interfaces/OitiContinueButton.js +6 -0
- package/lib/commonjs/interfaces/OitiContinueButton.js.map +1 -0
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js +6 -0
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js.map +1 -0
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js +4 -4
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +1 -1
- package/lib/commonjs/utils/continueButton.js +17 -0
- package/lib/commonjs/utils/continueButton.js.map +1 -0
- package/lib/commonjs/utils/permissions.js +30 -0
- package/lib/commonjs/utils/permissions.js.map +1 -0
- package/lib/commonjs/utils/screenStore.js +12 -0
- package/lib/commonjs/utils/screenStore.js.map +1 -0
- package/lib/module/@types/ArgsType.js +1 -1
- package/lib/module/@types/FontsType.js +2 -0
- package/lib/module/@types/FontsType.js.map +1 -0
- package/lib/module/@types/ResultType.js +2 -0
- package/lib/module/@types/ResultType.js.map +1 -0
- package/lib/module/@types/ResultTypes.js +2 -0
- package/lib/module/@types/ResultTypes.js.map +1 -0
- package/lib/module/@types/TextsType.js +2 -0
- package/lib/module/@types/TextsType.js.map +1 -0
- package/lib/module/@types/ThemeType.js +2 -0
- package/lib/module/@types/ThemeType.js.map +1 -0
- package/lib/module/actions/BackButton.js +26 -0
- package/lib/module/actions/BackButton.js.map +1 -0
- package/lib/module/actions/ContinueButton.js +34 -0
- package/lib/module/actions/ContinueButton.js.map +1 -0
- package/lib/module/actions/PermissionButton.js +26 -0
- package/lib/module/actions/PermissionButton.js.map +1 -0
- package/lib/module/context/Liveness3DContext.js +92 -0
- package/lib/module/context/Liveness3DContext.js.map +1 -0
- package/lib/module/helpers/Liveness3DHelper.js +25 -0
- package/lib/module/helpers/Liveness3DHelper.js.map +1 -0
- package/lib/module/index.js +97 -75
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/Liveness3DHelper.js +2 -0
- package/lib/module/interfaces/Liveness3DHelper.js.map +1 -0
- package/lib/module/interfaces/OitiBackButtonInterface.js +2 -0
- package/lib/module/interfaces/OitiBackButtonInterface.js.map +1 -0
- package/lib/module/interfaces/OitiContinueButton.js +2 -0
- package/lib/module/interfaces/OitiContinueButton.js.map +1 -0
- package/lib/module/interfaces/OitiPermissionButtonInterface.js +2 -0
- package/lib/module/interfaces/OitiPermissionButtonInterface.js.map +1 -0
- package/lib/module/screens/Liveness3D/InstructionsView.js +4 -4
- package/lib/module/screens/Liveness3D/InstructionsView.js.map +1 -1
- package/lib/module/utils/continueButton.js +10 -0
- package/lib/module/utils/continueButton.js.map +1 -0
- package/lib/module/utils/permissions.js +21 -0
- package/lib/module/utils/permissions.js.map +1 -0
- package/lib/module/utils/screenStore.js +5 -0
- package/lib/module/utils/screenStore.js.map +1 -0
- package/lib/typescript/@types/ArgsType.d.ts +9 -9
- package/lib/typescript/@types/ArgsType.d.ts.map +1 -1
- package/lib/typescript/@types/FontsType.d.ts +12 -0
- package/lib/typescript/@types/FontsType.d.ts.map +1 -0
- package/lib/typescript/@types/ResultType.d.ts +13 -0
- package/lib/typescript/@types/ResultType.d.ts.map +1 -0
- package/lib/typescript/@types/ResultTypes.d.ts +6 -0
- package/lib/typescript/@types/ResultTypes.d.ts.map +1 -0
- package/lib/typescript/@types/TextsType.d.ts +36 -0
- package/lib/typescript/@types/TextsType.d.ts.map +1 -0
- package/lib/typescript/@types/ThemeType.d.ts +48 -0
- package/lib/typescript/@types/ThemeType.d.ts.map +1 -0
- package/lib/typescript/actions/BackButton.d.ts +4 -0
- package/lib/typescript/actions/BackButton.d.ts.map +1 -0
- package/lib/typescript/actions/ContinueButton.d.ts +4 -0
- package/lib/typescript/actions/ContinueButton.d.ts.map +1 -0
- package/lib/typescript/actions/PermissionButton.d.ts +4 -0
- package/lib/typescript/actions/PermissionButton.d.ts.map +1 -0
- package/lib/typescript/context/Liveness3DContext.d.ts +28 -0
- package/lib/typescript/context/Liveness3DContext.d.ts.map +1 -0
- package/lib/typescript/helpers/Liveness3DHelper.d.ts +4 -0
- package/lib/typescript/helpers/Liveness3DHelper.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +21 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts +7 -0
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts +6 -0
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiContinueButton.d.ts +6 -0
- package/lib/typescript/interfaces/OitiContinueButton.d.ts.map +1 -0
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts +6 -0
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts.map +1 -0
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts +1 -0
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts.map +1 -1
- package/lib/typescript/screens/PermissionView.d.ts +1 -0
- package/lib/typescript/screens/PermissionView.d.ts.map +1 -1
- package/lib/typescript/utils/continueButton.d.ts +2 -0
- package/lib/typescript/utils/continueButton.d.ts.map +1 -0
- package/lib/typescript/utils/permissions.d.ts +4 -0
- package/lib/typescript/utils/permissions.d.ts.map +1 -0
- package/lib/typescript/utils/screenStore.d.ts +5 -0
- package/lib/typescript/utils/screenStore.d.ts.map +1 -0
- package/oiti-rn-liveness3d.podspec +2 -1
- package/package.json +3 -6
- package/src/@types/ArgsType.ts +10 -10
- package/src/@types/FontsType.ts +22 -0
- package/src/@types/ResultType.ts +13 -0
- package/src/@types/ResultTypes.ts +6 -0
- package/src/@types/TextsType.ts +41 -0
- package/src/@types/ThemeType.ts +64 -0
- package/src/actions/BackButton.tsx +27 -0
- package/src/actions/ContinueButton.tsx +35 -0
- package/src/actions/PermissionButton.tsx +27 -0
- package/src/context/Liveness3DContext.tsx +122 -0
- package/src/helpers/Liveness3DHelper.tsx +24 -0
- package/src/index.tsx +120 -87
- package/src/interfaces/Liveness3DHelper.tsx +7 -0
- package/src/interfaces/OitiBackButtonInterface.tsx +6 -0
- package/src/interfaces/OitiContinueButton.tsx +6 -0
- package/src/interfaces/OitiPermissionButtonInterface.tsx +6 -0
- package/src/screens/Liveness3D/InstructionsView.tsx +8 -8
- package/src/utils/continueButton.tsx +12 -0
- package/src/utils/permissions.tsx +30 -0
- package/src/utils/screenStore.tsx +4 -0
package/lib/module/index.js
CHANGED
|
@@ -1,49 +1,33 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { NativeModules, Platform
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NativeModules, Platform } from 'react-native';
|
|
3
3
|
import InstructionsView from './screens/Liveness3D/InstructionsView';
|
|
4
4
|
import PermissionView from './screens/PermissionView';
|
|
5
|
+
import { Liveness3DProvider, SCREEN, useLiveness3DContext } from './context/Liveness3DContext';
|
|
6
|
+
import { Liveness3DHelper } from './helpers/Liveness3DHelper';
|
|
5
7
|
const LINKING_ERROR = `The package '@oiti/rn-liveness3d' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
6
8
|
ios: "- You have run 'pod install'\n",
|
|
7
9
|
default: ''
|
|
8
10
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
9
|
-
const
|
|
10
|
-
INSTRUCTION_VIEW: 1,
|
|
11
|
-
PERMISSION_VIEW: 2
|
|
12
|
-
});
|
|
13
|
-
const RnLiveness3d = NativeModules.RnLiveness3d ? NativeModules.RnLiveness3d : new Proxy({}, {
|
|
11
|
+
export const RnLiveness3d = NativeModules.RnLiveness3d ? NativeModules.RnLiveness3d : new Proxy({}, {
|
|
14
12
|
get() {
|
|
15
13
|
throw new Error(LINKING_ERROR);
|
|
16
14
|
}
|
|
17
15
|
});
|
|
18
16
|
export function startLiveness3d(options, loading) {
|
|
19
|
-
var _options$apparence, _options$apparence2, _options$apparence3, _options$apparence4;
|
|
20
17
|
let args = {
|
|
21
18
|
appkey: (options === null || options === void 0 ? void 0 : options.appkey) === undefined ? '' : options === null || options === void 0 ? void 0 : options.appkey,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
liveness3Dtext: options.liveness3Dtext || [],
|
|
19
|
+
ticket: options === null || options === void 0 ? void 0 : options.ticket,
|
|
20
|
+
environment: (options === null || options === void 0 ? void 0 : options.environment) === undefined ? 'HML' : options === null || options === void 0 ? void 0 : options.environment,
|
|
21
|
+
liveness3Dtext: (options === null || options === void 0 ? void 0 : options.liveness3Dtext) || {},
|
|
22
|
+
theme: (options === null || options === void 0 ? void 0 : options.theme) || {},
|
|
23
|
+
fonts: (options === null || options === void 0 ? void 0 : options.fonts) || {},
|
|
29
24
|
loading: loading
|
|
30
25
|
};
|
|
31
26
|
if (Platform.OS === 'android') {
|
|
32
|
-
return RnLiveness3d.startliveness3d(args.appkey, loading === null || loading === void 0 ? void 0 : loading.type, (loading === null || loading === void 0 ? void 0 : loading.size) * 200, loading === null || loading === void 0 ? void 0 : loading.backgroundColor, loading === null || loading === void 0 ? void 0 : loading.loadingColor);
|
|
27
|
+
return RnLiveness3d.startliveness3d(args.appkey, args.ticket, loading !== null && loading !== void 0 && loading.type ? loading === null || loading === void 0 ? void 0 : loading.type : 'default', loading !== null && loading !== void 0 && loading.size ? (loading === null || loading === void 0 ? void 0 : loading.size) * 200 : 1 * 200, loading !== null && loading !== void 0 && loading.backgroundColor ? loading === null || loading === void 0 ? void 0 : loading.backgroundColor : '#333333', loading !== null && loading !== void 0 && loading.loadingColor ? loading === null || loading === void 0 ? void 0 : loading.loadingColor : '#05D758', args === null || args === void 0 ? void 0 : args.theme, args === null || args === void 0 ? void 0 : args.fonts, args === null || args === void 0 ? void 0 : args.liveness3Dtext);
|
|
33
28
|
}
|
|
34
29
|
return RnLiveness3d.startliveness3d(args);
|
|
35
30
|
}
|
|
36
|
-
export function logEvent3D(name, appkey) {
|
|
37
|
-
if (Platform.OS === 'ios') {
|
|
38
|
-
return RnLiveness3d.logevent({
|
|
39
|
-
event: name,
|
|
40
|
-
appkey: appkey
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
console.log(name, appkey);
|
|
44
|
-
return RnLiveness3d.logevent(name, appkey);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
31
|
export function checkIosPermission() {
|
|
48
32
|
return RnLiveness3d.checkiospermission({
|
|
49
33
|
p: 'granted'
|
|
@@ -54,46 +38,62 @@ export function checkIosPermissionGranted() {
|
|
|
54
38
|
p: 'granted'
|
|
55
39
|
});
|
|
56
40
|
}
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
export function checkcamerapermissionAndroid() {
|
|
42
|
+
return RnLiveness3d.checkcamerapermission();
|
|
43
|
+
}
|
|
44
|
+
export function askcamerapermissionAndroid() {
|
|
45
|
+
return RnLiveness3d.askcamerapermission();
|
|
46
|
+
}
|
|
47
|
+
export const requestCameraPermission = async (options, onSuccess, onError, loading) => {
|
|
59
48
|
if (Platform.OS === 'ios') {
|
|
60
|
-
checkIosPermission().then(result => {
|
|
61
|
-
if (result ===
|
|
62
|
-
|
|
49
|
+
checkIosPermission().then(async result => {
|
|
50
|
+
if (result === true) {
|
|
51
|
+
await startLiveness3d(options, loading).then(result => {
|
|
52
|
+
if (Platform.OS == 'android') {
|
|
53
|
+
//@ts-ignore
|
|
54
|
+
onSuccess(JSON.parse(result));
|
|
55
|
+
} else {
|
|
56
|
+
onSuccess(result);
|
|
57
|
+
}
|
|
58
|
+
}).catch(error => onError(error));
|
|
63
59
|
}
|
|
64
|
-
if (result ===
|
|
60
|
+
if (result === false) {
|
|
65
61
|
return;
|
|
66
62
|
}
|
|
67
63
|
});
|
|
68
64
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
65
|
+
if (Platform.OS === 'android') {
|
|
66
|
+
try {
|
|
67
|
+
await askcamerapermissionAndroid().then(async res => {
|
|
68
|
+
if (res === true) {
|
|
69
|
+
await startLiveness3d(options, loading).then(result => {
|
|
70
|
+
if (Platform.OS == 'android') {
|
|
71
|
+
//@ts-ignore
|
|
72
|
+
onSuccess(JSON.parse(result));
|
|
73
|
+
} else {
|
|
74
|
+
onSuccess(result);
|
|
75
|
+
}
|
|
76
|
+
}).catch(error => onError(error));
|
|
77
|
+
} else {
|
|
78
|
+
console.log('Camera permission denied');
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
} catch (err) {
|
|
82
|
+
console.warn(err);
|
|
81
83
|
}
|
|
82
|
-
} catch (err) {
|
|
83
|
-
console.warn(err);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
async function checkPermission() {
|
|
87
87
|
if (Platform.OS === 'ios') {
|
|
88
88
|
const grantediso = await checkIosPermissionGranted();
|
|
89
|
-
if (grantediso ===
|
|
89
|
+
if (grantediso === true) {
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
|
-
if (grantediso ===
|
|
92
|
+
if (grantediso === false) {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const granted = await
|
|
96
|
+
const granted = await checkcamerapermissionAndroid();
|
|
97
97
|
if (granted) {
|
|
98
98
|
return true;
|
|
99
99
|
} else {
|
|
@@ -105,27 +105,49 @@ export function Liveness3dView(_ref) {
|
|
|
105
105
|
CustomInstructionView,
|
|
106
106
|
CustomPermissionView,
|
|
107
107
|
options,
|
|
108
|
-
loading
|
|
108
|
+
loading,
|
|
109
|
+
onSuccess,
|
|
110
|
+
onError,
|
|
111
|
+
onBack
|
|
109
112
|
} = _ref;
|
|
110
|
-
return
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
return (
|
|
114
|
+
/*#__PURE__*/
|
|
115
|
+
//@ts-ignore
|
|
116
|
+
React.createElement(Liveness3DProvider, {
|
|
117
|
+
onError: onError,
|
|
118
|
+
onSuccess: onSuccess
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Liveness3DHelper, {
|
|
120
|
+
options: options,
|
|
121
|
+
onError: onError
|
|
122
|
+
}, /*#__PURE__*/React.createElement(GetIntructionView, {
|
|
123
|
+
CustomInstructionView: CustomInstructionView,
|
|
124
|
+
CustomPermissionView: CustomPermissionView,
|
|
125
|
+
options: options,
|
|
126
|
+
loading: loading,
|
|
127
|
+
onSuccess: onSuccess,
|
|
128
|
+
onError: onError,
|
|
129
|
+
onBack: onBack
|
|
130
|
+
})))
|
|
131
|
+
);
|
|
116
132
|
}
|
|
117
133
|
export function GetIntructionView(_ref2) {
|
|
118
134
|
let {
|
|
119
135
|
CustomInstructionView,
|
|
120
136
|
CustomPermissionView,
|
|
121
137
|
options,
|
|
122
|
-
loading
|
|
138
|
+
loading,
|
|
139
|
+
onSuccess,
|
|
140
|
+
onError,
|
|
141
|
+
onBack
|
|
123
142
|
} = _ref2;
|
|
124
|
-
const
|
|
125
|
-
|
|
143
|
+
const {
|
|
144
|
+
setScreen,
|
|
145
|
+
screen
|
|
146
|
+
} = useLiveness3DContext();
|
|
147
|
+
function onBackScreen() {
|
|
126
148
|
switch (screen) {
|
|
127
149
|
case SCREEN.INSTRUCTION_VIEW:
|
|
128
|
-
|
|
150
|
+
onBack();
|
|
129
151
|
break;
|
|
130
152
|
case SCREEN.PERMISSION_VIEW:
|
|
131
153
|
setScreen(1);
|
|
@@ -134,33 +156,33 @@ export function GetIntructionView(_ref2) {
|
|
|
134
156
|
}
|
|
135
157
|
async function verifyPermission() {
|
|
136
158
|
if (screen === 1) {
|
|
137
|
-
logEvent3D('ACTION_L3FT_instructionContinue', options.appkey);
|
|
138
159
|
if ((await checkPermission()) === true) {
|
|
139
|
-
startLiveness3d(options, loading).then(result =>
|
|
160
|
+
startLiveness3d(options, loading).then(result => {
|
|
161
|
+
if (Platform.OS == 'android') {
|
|
162
|
+
//@ts-ignore
|
|
163
|
+
onSuccess(JSON.parse(result));
|
|
164
|
+
} else {
|
|
165
|
+
onSuccess(result);
|
|
166
|
+
}
|
|
167
|
+
}).catch(error => onError(error));
|
|
140
168
|
} else {
|
|
141
169
|
setScreen(2);
|
|
142
170
|
}
|
|
143
171
|
}
|
|
144
172
|
if (screen === 2) {
|
|
145
|
-
|
|
146
|
-
await requestCameraPermission(options);
|
|
173
|
+
await requestCameraPermission(options, onSuccess, onError);
|
|
147
174
|
setScreen(1);
|
|
148
175
|
}
|
|
149
176
|
}
|
|
150
|
-
useEffect(() => {
|
|
151
|
-
if (screen === 1) {
|
|
152
|
-
logEvent3D('STATE_L3FT_instructionView', options.appkey);
|
|
153
|
-
}
|
|
154
|
-
if (screen === 2) {
|
|
155
|
-
logEvent3D('STATE_L3FT_permissionView', options.appkey);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
177
|
return /*#__PURE__*/React.createElement(React.Fragment, null, screen === 1 && (!CustomInstructionView ? /*#__PURE__*/React.createElement(InstructionsView, {
|
|
159
178
|
onVerify: verifyPermission,
|
|
160
|
-
onBack:
|
|
179
|
+
onBack: onBackScreen
|
|
161
180
|
}) : CustomInstructionView), screen === 2 && (!CustomPermissionView ? /*#__PURE__*/React.createElement(PermissionView, {
|
|
162
181
|
onVerify: verifyPermission,
|
|
163
|
-
onBack:
|
|
182
|
+
onBack: onBackScreen
|
|
164
183
|
}) : CustomPermissionView));
|
|
165
184
|
}
|
|
185
|
+
export { ContinueButton } from './actions/ContinueButton';
|
|
186
|
+
export { PermissionButton } from './actions/PermissionButton';
|
|
187
|
+
export { BackButton } from './actions/BackButton';
|
|
166
188
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","NativeModules","Platform","InstructionsView","PermissionView","Liveness3DProvider","SCREEN","useLiveness3DContext","Liveness3DHelper","LINKING_ERROR","select","ios","default","RnLiveness3d","Proxy","get","Error","startLiveness3d","options","loading","args","appkey","undefined","ticket","environment","liveness3Dtext","theme","fonts","OS","startliveness3d","type","size","backgroundColor","loadingColor","checkIosPermission","checkiospermission","p","checkIosPermissionGranted","checkpermissiongranted","checkcamerapermissionAndroid","checkcamerapermission","askcamerapermissionAndroid","askcamerapermission","requestCameraPermission","onSuccess","onError","then","result","JSON","parse","catch","error","res","console","log","err","warn","checkPermission","grantediso","granted","Liveness3dView","_ref","CustomInstructionView","CustomPermissionView","onBack","createElement","GetIntructionView","_ref2","setScreen","screen","onBackScreen","INSTRUCTION_VIEW","PERMISSION_VIEW","verifyPermission","Fragment","onVerify","ContinueButton","PermissionButton","BackButton"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAOC,gBAAgB,MAAM,uCAAuC;AACpE,OAAOC,cAAc,MAAM,0BAA0B;AAErD,SACEC,kBAAkB,EAClBC,MAAM,EACNC,oBAAoB,QACf,6BAA6B;AACpC,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,MAAMC,aAAa,GAChB,8EAA6E,GAC9EP,QAAQ,CAACQ,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,OAAO,MAAMC,YAAY,GAAGZ,aAAa,CAACY,YAAY,GAClDZ,aAAa,CAACY,YAAY,GAC1B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,G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c,QAAQ,0BAA0B;AACzD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,UAAU,QAAQ,sBAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/Liveness3DHelper.tsx"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiBackButtonInterface.tsx"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiContinueButton.tsx"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["interfaces/OitiPermissionButtonInterface.tsx"],"mappings":""}
|
|
@@ -14,8 +14,6 @@ export default function InstructionsView(_ref) {
|
|
|
14
14
|
} = _ref;
|
|
15
15
|
return /*#__PURE__*/React.createElement(View, {
|
|
16
16
|
style: styles.container
|
|
17
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
18
|
-
style: styles.boxImg
|
|
19
17
|
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
20
18
|
onPress: () => onBack(),
|
|
21
19
|
style: styles.navigationBar
|
|
@@ -23,6 +21,8 @@ export default function InstructionsView(_ref) {
|
|
|
23
21
|
source: require('../../assets/images/left-arrow.png'),
|
|
24
22
|
style: styles.leftArrow
|
|
25
23
|
})), /*#__PURE__*/React.createElement(View, {
|
|
24
|
+
style: styles.boxImg
|
|
25
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
26
26
|
style: styles.imgContainer
|
|
27
27
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
28
28
|
source: require('../../assets/images/img_face.png'),
|
|
@@ -179,8 +179,8 @@ const styles = StyleSheet.create({
|
|
|
179
179
|
leftArrow: {
|
|
180
180
|
marginTop: normalize(70, scaleH),
|
|
181
181
|
marginLeft: 20,
|
|
182
|
-
width: 25,
|
|
183
|
-
height:
|
|
182
|
+
width: normalize(25, scaleW),
|
|
183
|
+
height: normalize(35, scaleH)
|
|
184
184
|
},
|
|
185
185
|
imgFace: {
|
|
186
186
|
height: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Text","Image","TouchableOpacity","Dimensions","Platform","normalize","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","get","scaleW","scaleH","InstructionsView","_ref","onVerify","onBack","createElement","style","styles","container","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Text","Image","TouchableOpacity","Dimensions","Platform","normalize","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","get","scaleW","scaleH","InstructionsView","_ref","onVerify","onBack","createElement","style","styles","container","onPress","navigationBar","source","require","leftArrow","boxImg","imgContainer","imgFace","boxBtn","title","subtitle","intructions","rowInstructions","boxIcon","boxText","viewBtn","nextBtn","nextText","create","flex","alignItems","backgroundColor","justifyContent","flexDirection","borderColor","borderWidth","borderRadius","paddingLeft","color","fontSize","marginTop","marginLeft","fontWeight","margin","description_one","textAlign","marginRight","boxInfo","paddingTop","OS","borderTopLeftRadius","borderTopRightRadius","paddingBottom","iconTop","aspectRatio","waveTop","box","marginVertical"],"sourceRoot":"../../../../src","sources":["screens/Liveness3D/InstructionsView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SACEC,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,QACH,cAAc;AACrB,SAASC,SAAS,QAAQ,uBAAuB;AAEjD,MAAM;EAAEC,KAAK,EAAEC,YAAY;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGN,UAAU,CAACO,GAAG,CAAC,QAAQ,CAAC;AAE/E,MAAMC,MAAM,GAAGJ,YAAY,GAAG,GAAG;AACjC,MAAMK,MAAM,GAAGH,aAAa,GAAG,GAAG;A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EO,MAAM,CAAC;IAChCwC,UAAU,EAAE,EAAE;IACd9C,KAAK,EAAED,SAAS,CAAC,EAAE,EAAEM,MAAM,CAAC;IAC5BH,MAAM,EAAEH,SAAS,CAAC,EAAE,EAAEO,MAAM;EAC9B,CAAC;EACDgB,OAAO,EAAE;IACPpB,MAAM,EAAE,MAAM;IACdgC,IAAI,EAAE,CAAC;IACPyB,WAAW,EAAE,CAAC,GAAG;EACnB,CAAC;EACDC,OAAO,EAAE;IACP1B,IAAI,EAAE,CAAC;IACPlC,KAAK,EAAE,MAAM;IACbE,MAAM,EAAE;EACV,CAAC;EACD2D,GAAG,EAAE;IACH7D,KAAK,EAAE,EAAE;IACTE,MAAM,EAAE,EAAE;IACV4D,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { verifyPermission } from './permissions';
|
|
2
|
+
export const continueButton = async () => {
|
|
3
|
+
return verifyPermission().then(result => {
|
|
4
|
+
return result;
|
|
5
|
+
}).catch(error => {
|
|
6
|
+
console.error(error);
|
|
7
|
+
return false;
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=continueButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["verifyPermission","continueButton","then","result","catch","error","console"],"sourceRoot":"../../../src","sources":["utils/continueButton.tsx"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,eAAe;AAEhD,OAAO,MAAMC,cAAc,GAAG,MAAAA,CAAA,KAA8B;EAC1D,OAAOD,gBAAgB,EAAE,CACtBE,IAAI,CAAEC,MAAM,IAAK;IAChB,OAAOA,MAAM;EACf,CAAC,CAAC,CACDC,KAAK,CAAEC,KAAK,IAAK;IAChBC,OAAO,CAACD,KAAK,CAACA,KAAK,CAAC;IACpB,OAAO,KAAK;EACd,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
export const RnLiveness3d = NativeModules.RnLiveness3d ? NativeModules.RnLiveness3d : new Proxy({}, {
|
|
3
|
+
get() {
|
|
4
|
+
throw new Error(LINKING_ERROR);
|
|
5
|
+
}
|
|
6
|
+
});
|
|
7
|
+
const LINKING_ERROR = `The package '@oiti/rn-liveness3d' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
8
|
+
ios: "- You have run 'pod install'\n",
|
|
9
|
+
default: ''
|
|
10
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
11
|
+
export function verifyPermission() {
|
|
12
|
+
return Platform.OS === 'android' ? RnLiveness3d.checkcamerapermission() : RnLiveness3d.checkiospermission({
|
|
13
|
+
p: 'granted'
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export function askPermission() {
|
|
17
|
+
return Platform.OS === 'android' ? RnLiveness3d.askcamerapermission() : RnLiveness3d.checkpermissiongranted({
|
|
18
|
+
p: 'granted'
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","RnLiveness3d","Proxy","get","Error","LINKING_ERROR","select","ios","default","verifyPermission","OS","checkcamerapermission","checkiospermission","p","askPermission","askcamerapermission","checkpermissiongranted"],"sourceRoot":"../../../src","sources":["utils/permissions.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,MAAMC,YAAY,GAAGF,aAAa,CAACE,YAAY,GAClDF,aAAa,CAACE,YAAY,GAC1B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACC,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAEL,MAAMA,aAAa,GAChB,8EAA6E,GAC9EL,QAAQ,CAACM,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,OAAO,SAASC,gBAAgBA,CAAA,EAAqB;EACnD,OAAOT,QAAQ,CAACU,EAAE,KAAK,SAAS,GAC5BT,YAAY,CAACU,qBAAqB,EAAE,GACpCV,YAAY,CAACW,kBAAkB,CAAC;IAAEC,CAAC,EAAE;EAAU,CAAC,CAAC;AACvD;AAEA,OAAO,SAASC,aAAaA,CAAA,EAAqB;EAChD,OAAOd,QAAQ,CAACU,EAAE,KAAK,SAAS,GAC5BT,YAAY,CAACc,mBAAmB,EAAE,GAClCd,YAAY,CAACe,sBAAsB,CAAC;IAAEH,CAAC,EAAE;EAAU,CAAC,CAAC;AAC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SCREEN","Object","freeze","INSTRUCTION_VIEW","PERMISSION_VIEW"],"sourceRoot":"../../../src","sources":["utils/screenStore.tsx"],"mappings":"AAAA,OAAO,MAAMA,MAAM,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClCC,gBAAgB,EAAE,CAAC;EACnBC,eAAe,EAAE;AACnB,CAAC,CAAU"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { FontsType } from './FontsType';
|
|
2
|
+
import { TextsType } from './TextsType';
|
|
3
|
+
import { ThemeType } from './ThemeType';
|
|
1
4
|
export type ArgsType = {
|
|
2
5
|
appkey: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export type ApparenceType = {
|
|
10
|
-
backgroundColor: string | undefined;
|
|
11
|
-
loadingColor: string | undefined;
|
|
6
|
+
ticket?: string | null;
|
|
7
|
+
environment: 'HML' | 'PRD';
|
|
8
|
+
liveness3Dtext?: TextsType;
|
|
9
|
+
theme?: ThemeType;
|
|
10
|
+
fonts?: FontsType;
|
|
11
|
+
loading?: LoadingType;
|
|
12
12
|
};
|
|
13
13
|
export type LoadingType = {
|
|
14
14
|
type: 'default' | 'spinner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgsType.d.ts","sourceRoot":"","sources":["../../../src/@types/ArgsType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ArgsType.d.ts","sourceRoot":"","sources":["../../../src/@types/ArgsType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,KAAK,GAAG,KAAK,CAAC;IAC3B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACjD,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FontsType = {
|
|
2
|
+
guidanceCustomizationHeaderFont?: string;
|
|
3
|
+
guidanceCustomizationSubtextFont?: string;
|
|
4
|
+
guidanceCustomizationButtonFont?: string;
|
|
5
|
+
readyScreenCustomizationHeaderFont?: string;
|
|
6
|
+
readyScreenCustomizationSubtextFont?: string;
|
|
7
|
+
retryScreenCustomizationHeaderFont?: string;
|
|
8
|
+
retryScreenCustomizationSubtextFont?: string;
|
|
9
|
+
resultScreenCustomizationMessageFont?: string;
|
|
10
|
+
feedbackCustomizationTextFont?: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=FontsType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontsType.d.ts","sourceRoot":"","sources":["../../../src/@types/FontsType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IAEtB,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAG1C,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAGzC,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAG7C,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAG7C,oCAAoC,CAAC,EAAE,MAAM,CAAC;IAG9C,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type onSuccessType = {
|
|
2
|
+
valid: boolean;
|
|
3
|
+
cause: string;
|
|
4
|
+
codId: string;
|
|
5
|
+
protocol: string;
|
|
6
|
+
blob: string;
|
|
7
|
+
};
|
|
8
|
+
export type onErrorType = {
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
error?: Error;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ResultType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultType.d.ts","sourceRoot":"","sources":["../../../src/@types/ResultType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultTypes.d.ts","sourceRoot":"","sources":["../../../src/@types/ResultTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type TextsType = {
|
|
2
|
+
READY_HEADER_1?: string;
|
|
3
|
+
READY_HEADER_2?: string;
|
|
4
|
+
READY_MESSAGE_1?: string;
|
|
5
|
+
READY_MESSAGE_2?: string;
|
|
6
|
+
READY_BUTTON?: string;
|
|
7
|
+
RETRY_HEADER?: string;
|
|
8
|
+
RETRY_SUBHEADER?: string;
|
|
9
|
+
RETRY_YOUR_PICTURE?: string;
|
|
10
|
+
RETRY_IDEAL_PICTURE?: string;
|
|
11
|
+
RETRY_MESSAGE_SMILE?: string;
|
|
12
|
+
RETRY_MESSAGE_LIGHTING?: string;
|
|
13
|
+
RETRY_MESSAGE_CONTRAST?: string;
|
|
14
|
+
RETRY_BUTTON?: string;
|
|
15
|
+
RESULT_UPLOAD_MESSAGE?: string;
|
|
16
|
+
RESULT_SUCCESS_MESSAGE?: string;
|
|
17
|
+
FEEDBACK_CENTER_FACE?: string;
|
|
18
|
+
FEEDBACK_FACE_NOT_FOUND?: string;
|
|
19
|
+
FEEDBACK_FACE_NOT_LOOKING_STRAIGHT_AHEAD?: string;
|
|
20
|
+
FEEDBACK_POSITION_FACE_STRAIGHT_IN_OVAL?: string;
|
|
21
|
+
FEEDBACK_FACE_NOT_UPRIGHT?: string;
|
|
22
|
+
FEEDBACK_HOLD_STEADY?: string;
|
|
23
|
+
FEEDBACK_MOVE_PHONE_AWAY?: string;
|
|
24
|
+
FEEDBACK_MOVE_PHONE_CLOSER?: string;
|
|
25
|
+
FEEDBACK_MOVE_PHONE_TO_EYE_LEVEL?: string;
|
|
26
|
+
FEEDBACK_USE_EVEN_LIGHTING?: string;
|
|
27
|
+
FEEDBACK_FRAME_YOUR_FACE?: string;
|
|
28
|
+
FEEDBACK_HOLD_STEADY_1?: string;
|
|
29
|
+
FEEDBACK_HOLD_STEADY_2?: string;
|
|
30
|
+
FEEDBACK_HOLD_STEADY_3?: string;
|
|
31
|
+
FEEDBACK_REMOVE_DARK_GLASSES?: string;
|
|
32
|
+
FEEDBACK_NEUTRAL_EXPRESSION?: string;
|
|
33
|
+
FEEDBACK_CONDITIONS_TOO_BRIGHT?: string;
|
|
34
|
+
FEEDBACK_BRIGHTEN_YOUR_ENVIRONMENT?: string;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=TextsType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextsType.d.ts","sourceRoot":"","sources":["../../../src/@types/TextsType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5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