@ha_tecno/live-id-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +323 -0
  3. package/android/build.gradle +94 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +4 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/liveidsdk/LiveIdSdkModule.kt +25 -0
  8. package/android/src/main/java/com/liveidsdk/LiveIdSdkPackage.kt +17 -0
  9. package/ios/LiveIdSdk-Bridging-Header.h +2 -0
  10. package/ios/LiveIdSdk.mm +14 -0
  11. package/ios/LiveIdSdk.swift +8 -0
  12. package/lib/commonjs/assets/arrow.png +0 -0
  13. package/lib/commonjs/assets/exampleInstructionWithBorder.jpeg +0 -0
  14. package/lib/commonjs/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  15. package/lib/commonjs/assets/ic_redness_capture_tip.png +0 -0
  16. package/lib/commonjs/assets/logo.png +0 -0
  17. package/lib/commonjs/components/CameraConfigInfos/index.js +21 -0
  18. package/lib/commonjs/components/CameraConfigInfos/index.js.map +1 -0
  19. package/lib/commonjs/components/CameraConfigInfos/styles.js +19 -0
  20. package/lib/commonjs/components/CameraConfigInfos/styles.js.map +1 -0
  21. package/lib/commonjs/components/DeviceNullDisplay/index.js +59 -0
  22. package/lib/commonjs/components/DeviceNullDisplay/index.js.map +1 -0
  23. package/lib/commonjs/components/ErrorDisplay/index.js +59 -0
  24. package/lib/commonjs/components/ErrorDisplay/index.js.map +1 -0
  25. package/lib/commonjs/components/Gabarito/index.js +19 -0
  26. package/lib/commonjs/components/Gabarito/index.js.map +1 -0
  27. package/lib/commonjs/components/Gabarito/styles.js +30 -0
  28. package/lib/commonjs/components/Gabarito/styles.js.map +1 -0
  29. package/lib/commonjs/components/Toast/Toast.js +66 -0
  30. package/lib/commonjs/components/Toast/Toast.js.map +1 -0
  31. package/lib/commonjs/components/WaitingForResult/index.js +24 -0
  32. package/lib/commonjs/components/WaitingForResult/index.js.map +1 -0
  33. package/lib/commonjs/components/WaitingForResult/styles.js +32 -0
  34. package/lib/commonjs/components/WaitingForResult/styles.js.map +1 -0
  35. package/lib/commonjs/index.js +34 -0
  36. package/lib/commonjs/index.js.map +1 -0
  37. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js +49 -0
  38. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js.map +1 -0
  39. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/styles.js +62 -0
  40. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +1 -0
  41. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js +298 -0
  42. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js.map +1 -0
  43. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js +54 -0
  44. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js.map +1 -0
  45. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js +44 -0
  46. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +1 -0
  47. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +65 -0
  48. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +1 -0
  49. package/lib/commonjs/screens/CadastroFinger/index.js +50 -0
  50. package/lib/commonjs/screens/CadastroFinger/index.js.map +1 -0
  51. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js +186 -0
  52. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js.map +1 -0
  53. package/lib/commonjs/screens/ProvaVidas/index.js +246 -0
  54. package/lib/commonjs/screens/ProvaVidas/index.js.map +1 -0
  55. package/lib/commonjs/screens/ProvaVidas/styles.js +93 -0
  56. package/lib/commonjs/screens/ProvaVidas/styles.js.map +1 -0
  57. package/lib/commonjs/screens/ValidadeFinger/index.js +216 -0
  58. package/lib/commonjs/screens/ValidadeFinger/index.js.map +1 -0
  59. package/lib/commonjs/screens/ValidadeFinger/styles.js +54 -0
  60. package/lib/commonjs/screens/ValidadeFinger/styles.js.map +1 -0
  61. package/lib/commonjs/services/index.js +145 -0
  62. package/lib/commonjs/services/index.js.map +1 -0
  63. package/lib/commonjs/types/screen.js +2 -0
  64. package/lib/commonjs/types/screen.js.map +1 -0
  65. package/lib/commonjs/utils/file.js +38 -0
  66. package/lib/commonjs/utils/file.js.map +1 -0
  67. package/lib/commonjs/utils/getConfigCamera.js +25 -0
  68. package/lib/commonjs/utils/getConfigCamera.js.map +1 -0
  69. package/lib/commonjs/utils/index.js +14 -0
  70. package/lib/commonjs/utils/index.js.map +1 -0
  71. package/lib/module/assets/arrow.png +0 -0
  72. package/lib/module/assets/exampleInstructionWithBorder.jpeg +0 -0
  73. package/lib/module/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  74. package/lib/module/assets/ic_redness_capture_tip.png +0 -0
  75. package/lib/module/assets/logo.png +0 -0
  76. package/lib/module/components/CameraConfigInfos/index.js +13 -0
  77. package/lib/module/components/CameraConfigInfos/index.js.map +1 -0
  78. package/lib/module/components/CameraConfigInfos/styles.js +13 -0
  79. package/lib/module/components/CameraConfigInfos/styles.js.map +1 -0
  80. package/lib/module/components/DeviceNullDisplay/index.js +51 -0
  81. package/lib/module/components/DeviceNullDisplay/index.js.map +1 -0
  82. package/lib/module/components/ErrorDisplay/index.js +51 -0
  83. package/lib/module/components/ErrorDisplay/index.js.map +1 -0
  84. package/lib/module/components/Gabarito/index.js +11 -0
  85. package/lib/module/components/Gabarito/index.js.map +1 -0
  86. package/lib/module/components/Gabarito/styles.js +24 -0
  87. package/lib/module/components/Gabarito/styles.js.map +1 -0
  88. package/lib/module/components/Toast/Toast.js +58 -0
  89. package/lib/module/components/Toast/Toast.js.map +1 -0
  90. package/lib/module/components/WaitingForResult/index.js +17 -0
  91. package/lib/module/components/WaitingForResult/index.js.map +1 -0
  92. package/lib/module/components/WaitingForResult/styles.js +26 -0
  93. package/lib/module/components/WaitingForResult/styles.js.map +1 -0
  94. package/lib/module/index.js +7 -0
  95. package/lib/module/index.js.map +1 -0
  96. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/index.js +41 -0
  97. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/index.js.map +1 -0
  98. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js +56 -0
  99. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +1 -0
  100. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js +288 -0
  101. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js.map +1 -0
  102. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js +48 -0
  103. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js.map +1 -0
  104. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js +36 -0
  105. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +1 -0
  106. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +59 -0
  107. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +1 -0
  108. package/lib/module/screens/CadastroFinger/index.js +42 -0
  109. package/lib/module/screens/CadastroFinger/index.js.map +1 -0
  110. package/lib/module/screens/CadastroScreen/CadastroScreen.js +177 -0
  111. package/lib/module/screens/CadastroScreen/CadastroScreen.js.map +1 -0
  112. package/lib/module/screens/ProvaVidas/index.js +239 -0
  113. package/lib/module/screens/ProvaVidas/index.js.map +1 -0
  114. package/lib/module/screens/ProvaVidas/styles.js +87 -0
  115. package/lib/module/screens/ProvaVidas/styles.js.map +1 -0
  116. package/lib/module/screens/ValidadeFinger/index.js +206 -0
  117. package/lib/module/screens/ValidadeFinger/index.js.map +1 -0
  118. package/lib/module/screens/ValidadeFinger/styles.js +48 -0
  119. package/lib/module/screens/ValidadeFinger/styles.js.map +1 -0
  120. package/lib/module/services/index.js +131 -0
  121. package/lib/module/services/index.js.map +1 -0
  122. package/lib/module/types/screen.js +2 -0
  123. package/lib/module/types/screen.js.map +1 -0
  124. package/lib/module/utils/file.js +29 -0
  125. package/lib/module/utils/file.js.map +1 -0
  126. package/lib/module/utils/getConfigCamera.js +19 -0
  127. package/lib/module/utils/getConfigCamera.js.map +1 -0
  128. package/lib/module/utils/index.js +3 -0
  129. package/lib/module/utils/index.js.map +1 -0
  130. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts +9 -0
  131. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts.map +1 -0
  132. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts +11 -0
  133. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts.map +1 -0
  134. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts +11 -0
  135. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts.map +1 -0
  136. package/lib/typescript/src/components/ErrorDisplay/index.d.ts +11 -0
  137. package/lib/typescript/src/components/ErrorDisplay/index.d.ts.map +1 -0
  138. package/lib/typescript/src/components/Gabarito/index.d.ts +3 -0
  139. package/lib/typescript/src/components/Gabarito/index.d.ts.map +1 -0
  140. package/lib/typescript/src/components/Gabarito/styles.d.ts +21 -0
  141. package/lib/typescript/src/components/Gabarito/styles.d.ts.map +1 -0
  142. package/lib/typescript/src/components/Toast/Toast.d.ts +42 -0
  143. package/lib/typescript/src/components/Toast/Toast.d.ts.map +1 -0
  144. package/lib/typescript/src/components/WaitingForResult/index.d.ts +7 -0
  145. package/lib/typescript/src/components/WaitingForResult/index.d.ts.map +1 -0
  146. package/lib/typescript/src/components/WaitingForResult/styles.d.ts +24 -0
  147. package/lib/typescript/src/components/WaitingForResult/styles.d.ts.map +1 -0
  148. package/lib/typescript/src/index.d.ts +5 -0
  149. package/lib/typescript/src/index.d.ts.map +1 -0
  150. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts +7 -0
  151. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts.map +1 -0
  152. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/styles.d.ts +55 -0
  153. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/styles.d.ts.map +1 -0
  154. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts +16 -0
  155. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts.map +1 -0
  156. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts +44 -0
  157. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts.map +1 -0
  158. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts +12 -0
  159. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts.map +1 -0
  160. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts +54 -0
  161. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts.map +1 -0
  162. package/lib/typescript/src/screens/CadastroFinger/index.d.ts +16 -0
  163. package/lib/typescript/src/screens/CadastroFinger/index.d.ts.map +1 -0
  164. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts +14 -0
  165. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts.map +1 -0
  166. package/lib/typescript/src/screens/ProvaVidas/index.d.ts +14 -0
  167. package/lib/typescript/src/screens/ProvaVidas/index.d.ts.map +1 -0
  168. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts +85 -0
  169. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts.map +1 -0
  170. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts +14 -0
  171. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts.map +1 -0
  172. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts +44 -0
  173. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts.map +1 -0
  174. package/lib/typescript/src/services/index.d.ts +21 -0
  175. package/lib/typescript/src/services/index.d.ts.map +1 -0
  176. package/lib/typescript/src/types/screen.d.ts +6 -0
  177. package/lib/typescript/src/types/screen.d.ts.map +1 -0
  178. package/lib/typescript/src/utils/file.d.ts +3 -0
  179. package/lib/typescript/src/utils/file.d.ts.map +1 -0
  180. package/lib/typescript/src/utils/getConfigCamera.d.ts +14 -0
  181. package/lib/typescript/src/utils/getConfigCamera.d.ts.map +1 -0
  182. package/lib/typescript/src/utils/index.d.ts +3 -0
  183. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  184. package/live-id-sdk.podspec +41 -0
  185. package/package.json +184 -0
  186. package/src/assets/arrow.png +0 -0
  187. package/src/assets/exampleInstructionWithBorder.jpeg +0 -0
  188. package/src/assets/exampleInstructionWithoutFinger.jpeg +0 -0
  189. package/src/assets/ic_redness_capture_tip.png +0 -0
  190. package/src/assets/logo.png +0 -0
  191. package/src/components/CameraConfigInfos/index.tsx +25 -0
  192. package/src/components/CameraConfigInfos/styles.ts +13 -0
  193. package/src/components/DeviceNullDisplay/index.tsx +59 -0
  194. package/src/components/ErrorDisplay/index.tsx +60 -0
  195. package/src/components/Gabarito/index.tsx +11 -0
  196. package/src/components/Gabarito/styles.ts +23 -0
  197. package/src/components/Toast/Toast.tsx +61 -0
  198. package/src/components/WaitingForResult/index.tsx +22 -0
  199. package/src/components/WaitingForResult/styles.ts +27 -0
  200. package/src/index.tsx +6 -0
  201. package/src/screens/CadastroFinger/components/AjudaCadastro/index.tsx +49 -0
  202. package/src/screens/CadastroFinger/components/AjudaCadastro/styles.ts +56 -0
  203. package/src/screens/CadastroFinger/components/CameraCadastro/index.tsx +356 -0
  204. package/src/screens/CadastroFinger/components/CameraCadastro/styles.ts +47 -0
  205. package/src/screens/CadastroFinger/components/ImageDisplayScreen/index.tsx +45 -0
  206. package/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.ts +55 -0
  207. package/src/screens/CadastroFinger/index.tsx +56 -0
  208. package/src/screens/CadastroScreen/CadastroScreen.tsx +212 -0
  209. package/src/screens/ProvaVidas/index.tsx +308 -0
  210. package/src/screens/ProvaVidas/styles.ts +99 -0
  211. package/src/screens/ValidadeFinger/index.tsx +263 -0
  212. package/src/screens/ValidadeFinger/styles.ts +47 -0
  213. package/src/services/index.ts +143 -0
  214. package/src/types/screen.ts +5 -0
  215. package/src/utils/file.ts +30 -0
  216. package/src/utils/getConfigCamera.ts +45 -0
  217. package/src/utils/index.ts +3 -0
@@ -0,0 +1,206 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useCallback, useEffect, useRef, useState } from 'react';
3
+ import { Button, Text, View, Alert, TouchableOpacity } from 'react-native';
4
+ import { Camera, useCameraFormat, useCameraDevice } from 'react-native-vision-camera';
5
+ import Modal from 'react-native-modal';
6
+ import Orientation from 'react-native-orientation-locker';
7
+ import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
8
+ import { runOnJS } from 'react-native-reanimated';
9
+ import { verifyDigital } from '../../services';
10
+ import { encodeImageToBase64 } from '../../utils/file';
11
+ import { DeviceNullDisplay } from '../../components/DeviceNullDisplay';
12
+ import { ErrorDisplay } from '../../components/ErrorDisplay';
13
+ import { Gabarito } from '../../components/Gabarito';
14
+ import { WaitingForResult } from '../../components/WaitingForResult';
15
+ import { styles } from './styles';
16
+ import { CameraConfigInfos } from '../../components/CameraConfigInfos';
17
+ import { getConfigCamera } from '../../utils';
18
+ export const ValidaFinger = ({
19
+ isVisible = false,
20
+ onCloseModal,
21
+ onError,
22
+ onSuccess,
23
+ ModalParams,
24
+ screenProps
25
+ }) => {
26
+ const id = screenProps === null || screenProps === void 0 ? void 0 : screenProps.id;
27
+ const camera = useRef(null);
28
+ const [showOverlay, setShowOverlay] = useState(false);
29
+ const [load, setLoad] = useState(false);
30
+ const [cameraConfigs, setCameraConfigs] = useState();
31
+
32
+ // mantem a tela em modo portrait
33
+ useEffect(() => {
34
+ Orientation.lockToPortrait();
35
+ return () => {
36
+ Orientation.unlockAllOrientations();
37
+ };
38
+ }, []);
39
+
40
+ // Pega a permissão da camera do dispositivo
41
+ const requestCameraPermission = useCallback(async () => {
42
+ try {
43
+ await Camera.requestCameraPermission();
44
+ } catch (error) {}
45
+ }, []);
46
+
47
+ // pra garantir que a permissão da camera seja solicitada
48
+ useEffect(() => {
49
+ requestCameraPermission();
50
+ }, [requestCameraPermission]);
51
+ useEffect(() => {
52
+ getConfigCamera('finger').then(config => {
53
+ setCameraConfigs(config);
54
+ }).catch(error => {
55
+ console.error(error);
56
+ });
57
+ }, []);
58
+ const device = useCameraDevice('back', {
59
+ physicalDevices: ['wide-angle-camera']
60
+ });
61
+ const cameraFormat = useCameraFormat(device, [{
62
+ photoResolution: {
63
+ height: 1280,
64
+ width: 720
65
+ }
66
+ }]);
67
+ const capturedPhoto = async () => {
68
+ var _camera$current;
69
+ const snapshot = await ((_camera$current = camera.current) === null || _camera$current === void 0 ? void 0 : _camera$current.takePhoto({
70
+ qualityPrioritization: 'speed',
71
+ flash: 'on'
72
+ }));
73
+ if (snapshot == null) {
74
+ Alert.alert('Erro ao capturar imagem');
75
+ return false;
76
+ }
77
+ let base64 = await encodeImageToBase64(snapshot.path);
78
+ setLoad(true);
79
+ setShowOverlay(true);
80
+ sendFile(base64);
81
+ return true;
82
+ };
83
+
84
+ // Fecha o modal
85
+ const onCloseModalHandler = useCallback(() => {
86
+ onCloseModal && onCloseModal();
87
+ }, [onCloseModal]);
88
+
89
+ // Envia a imagem para a validação da digital
90
+ const sendFile = useCallback(async image => {
91
+ try {
92
+ let UID = id;
93
+ let finger = 'DI';
94
+ let req = await verifyDigital(UID, finger, image);
95
+ if (req.code === 0) {
96
+ Alert.alert('Sucesso identificado !');
97
+ onSuccess && onSuccess(req);
98
+ } else if (req.code === 1) {
99
+ Alert.alert('Não Identificado !');
100
+ onError && onError(req);
101
+ setLoad(false);
102
+ } else {
103
+ Alert.alert('Erro ao tentar validar');
104
+ onError && onError(req);
105
+ setLoad(false);
106
+ }
107
+ setLoad(false);
108
+ onCloseModalHandler();
109
+ setShowOverlay(false);
110
+ } catch (error) {
111
+ onError && onError(error);
112
+ setShowOverlay(false);
113
+ }
114
+ }, [id, onError, onSuccess, onCloseModalHandler]);
115
+
116
+ // Foca a camera na posição do toque
117
+ const focus = useCallback(point => {
118
+ const c = camera.current;
119
+ if (c == null) return;
120
+ c.focus(point);
121
+ }, []);
122
+
123
+ // Gestos para focar a camera
124
+ const gesture = Gesture.Tap().onBegin(({
125
+ x,
126
+ y
127
+ }) => {
128
+ runOnJS(focus)({
129
+ x,
130
+ y
131
+ });
132
+ });
133
+ if (!screenProps && isVisible) {
134
+ return /*#__PURE__*/React.createElement(ErrorDisplay, {
135
+ isVisible: isVisible,
136
+ modalParams: ModalParams,
137
+ onCloseModalHandler: onCloseModalHandler,
138
+ requestCameraPermission: requestCameraPermission
139
+ });
140
+ }
141
+ if (device == null) {
142
+ return /*#__PURE__*/React.createElement(DeviceNullDisplay, {
143
+ isVisible: isVisible,
144
+ modalParams: ModalParams,
145
+ onCloseModalHandler: onCloseModalHandler,
146
+ requestCameraPermission: requestCameraPermission
147
+ });
148
+ }
149
+ if (screenProps) {
150
+ return /*#__PURE__*/React.createElement(Modal, _extends({
151
+ style: styles.modal,
152
+ isVisible: isVisible,
153
+ swipeDirection: "down",
154
+ propagateSwipe: true,
155
+ onSwipeComplete: onCloseModalHandler
156
+ }, ModalParams), /*#__PURE__*/React.createElement(GestureHandlerRootView, {
157
+ style: styles.root
158
+ }, /*#__PURE__*/React.createElement(View, {
159
+ style: styles.container
160
+ }, showOverlay && /*#__PURE__*/React.createElement(WaitingForResult, {
161
+ onPress: () => {
162
+ setShowOverlay(false);
163
+ }
164
+ }), /*#__PURE__*/React.createElement(GestureDetector, {
165
+ gesture: gesture
166
+ }, /*#__PURE__*/React.createElement(View, {
167
+ style: styles.cameraContainer
168
+ }, /*#__PURE__*/React.createElement(Camera, {
169
+ ref: camera,
170
+ format: cameraFormat,
171
+ isActive: true,
172
+ device: device,
173
+ torch: 'on',
174
+ exposure: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure,
175
+ zoom: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.zoom,
176
+ photo: true,
177
+ enableHighQualityPhotos: true,
178
+ style: styles.camera
179
+ }), !showOverlay && /*#__PURE__*/React.createElement(Gabarito, null))), /*#__PURE__*/React.createElement(View, {
180
+ style: styles.containerCapture
181
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
182
+ disabled: load,
183
+ onPress: () => capturedPhoto()
184
+ }, /*#__PURE__*/React.createElement(View, {
185
+ style: styles.containerButton
186
+ }, load ? /*#__PURE__*/React.createElement(Text, {
187
+ style: styles.textButton
188
+ }, "Verificando Digital...") : /*#__PURE__*/React.createElement(Text, {
189
+ style: styles.textButton
190
+ }, "Tirar Foto")))), /*#__PURE__*/React.createElement(View, {
191
+ style: styles.containerButtonClose
192
+ }, /*#__PURE__*/React.createElement(Button, {
193
+ disabled: load,
194
+ title: "Fechar Camera",
195
+ onPress: onCloseModalHandler
196
+ }), /*#__PURE__*/React.createElement(View, {
197
+ style: styles.cameraConfigs
198
+ }, /*#__PURE__*/React.createElement(CameraConfigInfos, {
199
+ exposure: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure,
200
+ zoom: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.zoom,
201
+ showButtonInfo: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.showButtonInfo
202
+ }))))));
203
+ }
204
+ return null;
205
+ };
206
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useEffect","useRef","useState","Button","Text","View","Alert","TouchableOpacity","Camera","useCameraFormat","useCameraDevice","Modal","Orientation","Gesture","GestureDetector","GestureHandlerRootView","runOnJS","verifyDigital","encodeImageToBase64","DeviceNullDisplay","ErrorDisplay","Gabarito","WaitingForResult","styles","CameraConfigInfos","getConfigCamera","ValidaFinger","isVisible","onCloseModal","onError","onSuccess","ModalParams","screenProps","id","camera","showOverlay","setShowOverlay","load","setLoad","cameraConfigs","setCameraConfigs","lockToPortrait","unlockAllOrientations","requestCameraPermission","error","then","config","catch","console","device","physicalDevices","cameraFormat","photoResolution","height","width","capturedPhoto","_camera$current","snapshot","current","takePhoto","qualityPrioritization","flash","alert","base64","path","sendFile","onCloseModalHandler","image","UID","finger","req","code","focus","point","c","gesture","Tap","onBegin","x","y","createElement","modalParams","_extends","style","modal","swipeDirection","propagateSwipe","onSwipeComplete","root","container","onPress","cameraContainer","ref","format","isActive","torch","exposure","zoom","photo","enableHighQualityPhotos","containerCapture","disabled","containerButton","textButton","containerButtonClose","title","showButtonInfo"],"sourceRoot":"../../../../src","sources":["screens/ValidadeFinger/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACvE,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;AAC1E,SACEC,MAAM,EACNC,eAAe,EAEfC,eAAe,QACV,4BAA4B;AACnC,OAAOC,KAAK,MAA2B,oBAAoB;AAC3D,OAAOC,WAAW,MAAM,iCAAiC;AACzD,SACEC,OAAO,EACPC,eAAe,EACfC,sBAAsB,QACjB,8BAA8B;AACrC,SAASC,OAAO,QAAQ,yBAAyB;AAEjD,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,mBAAmB,QAAQ,kBAAkB;AAEtD,SAASC,iBAAiB,QAAQ,oCAAoC;AACtE,SAASC,YAAY,QAAQ,+BAA+B;AAC5D,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,gBAAgB,QAAQ,mCAAmC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AO,EAAExB;IAAoB,CAC9B,CAAC,eACFpE,KAAA,CAAAkF,aAAA,CAAC3E,IAAI;MAAC8E,KAAK,EAAE5D,MAAM,CAACgB;IAAc,gBAChCzC,KAAA,CAAAkF,aAAA,CAACxD,iBAAiB;MAChBwE,QAAQ,EAAEzD,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAEyD,QAAS;MAClCC,IAAI,EAAE1D,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAE0D,IAAK;MAC1BS,cAAc,EAAEnE,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAEmE;IAAe,CAC/C,CACG,CACF,CACF,CACgB,CACnB,CAAC;EAEZ;EAEA,OAAO,IAAI;AACb,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { StyleSheet, Dimensions, Platform } from 'react-native';
2
+ const {
3
+ height
4
+ } = Dimensions.get('window');
5
+ export const styles = StyleSheet.create({
6
+ container: {
7
+ flex: 1
8
+ },
9
+ root: {
10
+ flex: 1
11
+ },
12
+ cameraContainer: {
13
+ flex: 1
14
+ },
15
+ camera: {
16
+ flex: 1,
17
+ justifyContent: 'flex-end',
18
+ paddingBottom: height * 0.2
19
+ },
20
+ containerCapture: {
21
+ height: height * 0.2,
22
+ alignItems: 'center',
23
+ justifyContent: 'center'
24
+ },
25
+ containerButton: {
26
+ width: 350,
27
+ height: 100,
28
+ borderRadius: 80,
29
+ backgroundColor: 'blue',
30
+ alignItems: 'center',
31
+ justifyContent: 'center'
32
+ },
33
+ textButton: {
34
+ fontSize: 18,
35
+ fontWeight: '500',
36
+ color: '#fff'
37
+ },
38
+ modal: {
39
+ margin: 0
40
+ },
41
+ containerButtonClose: {
42
+ marginBottom: Platform.OS === 'ios' ? 48 : 0
43
+ },
44
+ cameraConfigs: {
45
+ alignItems: 'center'
46
+ }
47
+ });
48
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Dimensions","Platform","height","get","styles","create","container","flex","root","cameraContainer","camera","justifyContent","paddingBottom","containerCapture","alignItems","containerButton","width","borderRadius","backgroundColor","textButton","fontSize","fontWeight","color","modal","margin","containerButtonClose","marginBottom","OS","cameraConfigs"],"sourceRoot":"../../../../src","sources":["screens/ValidadeFinger/styles.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAE/D,MAAM;EAAEC;AAAO,CAAC,GAAGF,UAAU,CAACG,GAAG,CAAC,QAAQ,CAAC;AAE3C,OAAO,MAAMC,MAAM,GAAGL,UAAU,CAACM,MAAM,CAAC;EACtCC,SAAS,EAAE;IACTC,IAAI,EAAE;EACR,CAAC;EACDC,IAAI,EAAE;IACJD,IAAI,EAAE;EACR,CAAC;EACDE,eAAe,EAAE;IACfF,IAAI,EAAE;EACR,CAAC;EACDG,MAAM,EAAE;IACNH,IAAI,EAAE,CAAC;IACPI,cAAc,EAAE,UAAU;IAC1BC,aAAa,EAAEV,MAAM,GAAG;EAC1B,CAAC;EACDW,gBAAgB,EAAE;IAChBX,MAAM,EAAEA,MAAM,GAAG,GAAG;IACpBY,UAAU,EAAE,QAAQ;IACpBH,cAAc,EAAE;EAClB,CAAC;EACDI,eAAe,EAAE;IACfC,KAAK,EAAE,GAAG;IACVd,MAAM,EAAE,GAAG;IACXe,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,MAAM;IACvBJ,UAAU,EAAE,QAAQ;IACpBH,cAAc,EAAE;EAClB,CAAC;EACDQ,UAAU,EAAE;IACVC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDC,KAAK,EAAE;IACLC,MAAM,EAAE;EACV,CAAC;EACDC,oBAAoB,EAAE;IACpBC,YAAY,EAAEzB,QAAQ,CAAC0B,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG;EAC7C,CAAC;EACDC,aAAa,EAAE;IACbd,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
@@ -0,0 +1,131 @@
1
+ import { Platform } from 'react-native';
2
+ import axios from 'axios';
3
+ const BASE_URL = 'https://api.liveid.app.br';
4
+ const TOKEN = 'eyJhbGciOiJIUzI1NiJ9.NmU5ZmQ0MzEtOTE0Yy00Njc1LWFkYjAtZjVjNjRlZDUxNDg0.9J8eydQk5fbkH5GKdXkmXpt6wdQWyw8bsbaP5POU6YA';
5
+ const BASE_HEADER = {
6
+ 'Content-Type': 'application/json',
7
+ 'Authorization': `Bearer ${TOKEN}`
8
+ };
9
+ const axiosInstance = axios.create({
10
+ baseURL: BASE_URL
11
+ });
12
+ export const login = async (cpf, senha) => {
13
+ const response = await fetch(`${BASE_URL}/login`, {
14
+ method: 'POST',
15
+ headers: BASE_HEADER,
16
+ body: JSON.stringify({
17
+ cpf,
18
+ senha
19
+ })
20
+ });
21
+ const data = await response.json();
22
+ return data;
23
+ };
24
+ export const cadastro = async (cpf, name, senha) => {
25
+ const response = await fetch(`${BASE_URL}/signup`, {
26
+ method: 'POST',
27
+ headers: BASE_HEADER,
28
+ body: JSON.stringify({
29
+ cpf,
30
+ name,
31
+ senha
32
+ })
33
+ });
34
+ const data = await response.json();
35
+ return data;
36
+ };
37
+ export const sendImages = async (UID, finger, images) => {
38
+ const response = await fetch(`${BASE_URL}/enroll-images`, {
39
+ method: 'POST',
40
+ headers: BASE_HEADER,
41
+ body: JSON.stringify({
42
+ UID,
43
+ finger,
44
+ images
45
+ })
46
+ });
47
+ const data = await response.json();
48
+ return data;
49
+ };
50
+ export const verifyDigital = async (UID, finger, image) => {
51
+ const response = await fetch(`${BASE_URL}/verify`, {
52
+ method: 'POST',
53
+ headers: BASE_HEADER,
54
+ body: JSON.stringify({
55
+ UID,
56
+ finger,
57
+ image
58
+ })
59
+ });
60
+ const data = await response.json();
61
+ return data;
62
+ };
63
+ export const getConfigsApi = async () => {
64
+ const {
65
+ data
66
+ } = await axiosInstance.get('/configs', {
67
+ headers: {
68
+ 'Content-Type': 'application/json',
69
+ 'Authorization': `Bearer ${TOKEN}`
70
+ }
71
+ });
72
+ return data.deviceParamsConfig;
73
+ };
74
+ export const verificaCPF = async cpf => {
75
+ const response = await fetch(`${BASE_URL}/validcpf`, {
76
+ method: 'POST',
77
+ headers: BASE_HEADER,
78
+ body: JSON.stringify({
79
+ cpf
80
+ })
81
+ });
82
+ const data = await response.json();
83
+ return data;
84
+ };
85
+ export const provaVida = async (video, UID, vlexposure) => {
86
+ const numeroAleatorio = gerarNumeroAleatorio();
87
+ const formData = new FormData();
88
+ formData.append('video', {
89
+ uri: Platform.select({
90
+ ios: video.path,
91
+ android: `file://${video.path}`
92
+ }),
93
+ type: 'video/mp4',
94
+ name: `${UID}_${numeroAleatorio}.mp4`
95
+ });
96
+ formData.append('video_key', numeroAleatorio);
97
+ formData.append('person_id', UID);
98
+ formData.append('exposure', vlexposure);
99
+ const response = await fetch(`${BASE_URL}/liveness`, {
100
+ method: 'POST',
101
+ headers: {
102
+ 'Content-Type': 'multipart/form-data',
103
+ 'Authorization': `Bearer ${TOKEN}`
104
+ },
105
+ body: formData
106
+ });
107
+ if (response.status === 200) {
108
+ const json = await response.json();
109
+ return json;
110
+ } else {
111
+ const errorJson = {
112
+ code: -1,
113
+ message: 'Erro, por favor, verifique e tente novamente!'
114
+ };
115
+ return errorJson;
116
+ }
117
+ };
118
+ const gerarNumeroAleatorio = () => {
119
+ const min = 10000000; // Menor número de 8 dígitos (10 milhões)
120
+ const max = 99999999; // Maior número de 8 dígitos (99 milhões 999 mil 999)
121
+
122
+ // Gera um número aleatório entre min e max
123
+ const numeroAleatorio = Math.floor(Math.random() * (max - min + 1)) + min;
124
+
125
+ // Converte o número para string
126
+ const numeroString = numeroAleatorio.toString();
127
+ return numeroString;
128
+ };
129
+
130
+ //https://api.liveid.app.br/change_configs
131
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","axios","BASE_URL","TOKEN","BASE_HEADER","axiosInstance","create","baseURL","login","cpf","senha","response","fetch","method","headers","body","JSON","stringify","data","json","cadastro","name","sendImages","UID","finger","images","verifyDigital","image","getConfigsApi","get","deviceParamsConfig","verificaCPF","provaVida","video","vlexposure","numeroAleatorio","gerarNumeroAleatorio","formData","FormData","append","uri","select","ios","path","android","type","status","errorJson","code","message","min","max","Math","floor","random","numeroString","toString"],"sourceRoot":"../../../src","sources":["services/index.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAG,2BAA2B;AAC5C,MAAMC,KAAK,GACT,mHAAmH;AAErH,MAAMC,WAAW,GAAG;EAClB,cAAc,EAAE,kBAAkB;EAClC,eAAe,EAAG,UAASD,KAAM;AACnC,CAAC;AAED,MAAME,aAAa,GAAGJ,KAAK,CAACK,MAAM,CAAC;EACjCC,OAAO,EAAEL;AACX,CAAC,CAAC;AAEF,OAAO,MAAMM,KAAK,GAAG,MAAAA,CAAOC,GAAQ,EAAEC,KAAU,KAAK;EACnD,MAAMC,QAAQ,GAAG,MAAMC,KAAK,CAAE,GAAEV,QAAS,QAAO,EAAE;IAChDW,MAAM,EAAE,MAAM;IACdC,OAAO,EAAEV,WAAW;IACpBW,IAAI,EAAEC,IAAI,CAACC,SAAS,CAAC;MAAER,GAAG;MAAEC;IAAM,CAAC;EACrC,CAAC,CAAC;EACF,MAAMQ,IAAI,GAAG,MAAMP,QAAQ,CAACQ,IAAI,CAAC,CAAC;EAClC,OAAOD,IAAI;AACb,CAAC;AAED,OAAO,MAAME,QAAQ,GAAG,MAAAA,CAAOX,GAAW,EAAEY,IAAY,EAAEX,KAAa,KAAK;EAC1E,MAAMC,QAAQ,GAAG,MAAMC,KAAK,CAAE,GAAEV,QAAS,SAAQ,EAAE;IACjDW,MAAM,EAAE,MAAM;IACdC,OAAO,EAAEV,WAAW;IACpBW,IAAI,EAAEC,IAAI,CAACC,SAAS,CAAC;MAAER,GAAG;MAAEY,IAAI;MAAEX;IAAM,CAAC;EAC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AG,EAAE;IAC3B,MAAM3B,IAAI,GAAG,MAAMR,QAAQ,CAACQ,IAAI,CAAC,CAAC;IAClC,OAAOA,IAAI;EACb,CAAC,MAAM;IACL,MAAM4B,SAAS,GAAG;MAChBC,IAAI,EAAE,CAAC,CAAC;MACRC,OAAO,EAAE;IACX,CAAC;IACD,OAAOF,SAAS;EAClB;AACF,CAAC;AAED,MAAMX,oBAAoB,GAAGA,CAAA,KAAM;EACjC,MAAMc,GAAG,GAAG,QAAQ,CAAC,CAAC;EACtB,MAAMC,GAAG,GAAG,QAAQ,CAAC,CAAC;;EAEtB;EACA,MAAMhB,eAAe,GAAGiB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,IAAIH,GAAG,GAAGD,GAAG,GAAG,CAAC,CAAC,CAAC,GAAGA,GAAG;;EAEzE;EACA,MAAMK,YAAY,GAAGpB,eAAe,CAACqB,QAAQ,CAAC,CAAC;EAE/C,OAAOD,YAAY;AACrB,CAAC;;AAED"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/screen.ts"],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import RNFS from 'react-native-fs';
2
+ export const encodeImageToBase64 = async imagePath => {
3
+ try {
4
+ const imageData = await RNFS.readFile(imagePath, 'base64');
5
+ return imageData;
6
+ } catch (error) {
7
+ return null;
8
+ }
9
+ };
10
+ export const validarBase64 = array => {
11
+ // Verifica se o argumento é um array e tem exatamente 3 elementos
12
+ if (!Array.isArray(array) || array.length !== 3) {
13
+ return false;
14
+ }
15
+
16
+ // Regex para validar base64
17
+ const base64Regex = /^[a-zA-Z0-9+/]*={0,2}$/;
18
+
19
+ // Verifica se cada elemento do array é uma string válida em base64
20
+ for (let i = 0; i < array.length; i++) {
21
+ if (typeof array[i] !== 'string' || !base64Regex.test(array[i])) {
22
+ return false;
23
+ }
24
+ }
25
+
26
+ // Se chegou até aqui, o array é válido
27
+ return true;
28
+ };
29
+ //# sourceMappingURL=file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNFS","encodeImageToBase64","imagePath","imageData","readFile","error","validarBase64","array","Array","isArray","length","base64Regex","i","test"],"sourceRoot":"../../../src","sources":["utils/file.ts"],"mappings":"AAAA,OAAOA,IAAI,MAAM,iBAAiB;AAElC,OAAO,MAAMC,mBAAmB,GAAG,MAAOC,SAAiB,IAAK;EAC9D,IAAI;IACF,MAAMC,SAAS,GAAG,MAAMH,IAAI,CAACI,QAAQ,CAACF,SAAS,EAAE,QAAQ,CAAC;IAC1D,OAAOC,SAAS;EAClB,CAAC,CAAC,OAAOE,KAAK,EAAE;IACd,OAAO,IAAI;EACb;AACF,CAAC;AAED,OAAO,MAAMC,aAAa,GAAIC,KAAqB,IAAK;EACtD;EACA,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,IAAIA,KAAK,CAACG,MAAM,KAAK,CAAC,EAAE;IAC/C,OAAO,KAAK;EACd;;EAEA;EACA,MAAMC,WAAW,GAAG,wBAAwB;;EAE5C;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,KAAK,CAACG,MAAM,EAAEE,CAAC,EAAE,EAAE;IACrC,IAAI,OAAOL,KAAK,CAACK,CAAC,CAAC,KAAK,QAAQ,IAAI,CAACD,WAAW,CAACE,IAAI,CAACN,KAAK,CAACK,CAAC,CAAC,CAAC,EAAE;MAC/D,OAAO,KAAK;IACd;EACF;;EAEA;EACA,OAAO,IAAI;AACb,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Platform } from 'react-native';
2
+ import { getModel } from 'react-native-device-info';
3
+ import { getConfigsApi } from '../services';
4
+ const getConfigCamera = async serviceType => {
5
+ const deviceModel = getModel();
6
+ const deviceType = Platform.OS;
7
+ try {
8
+ const configs = await getConfigsApi();
9
+ const configsDeviceType = configs.filter(config => config.deviceType === deviceType && config.serviceType === serviceType);
10
+ const configDeviceModel = configsDeviceType.find(config => config.deviceModels.includes(deviceModel) || config.deviceModels.includes('default'));
11
+ return configDeviceModel;
12
+ } catch (error) {
13
+ console.error(error);
14
+ // Estudar futuramente a possibilidade de incluir um wrapper para personalização de erro
15
+ return;
16
+ }
17
+ };
18
+ export default getConfigCamera;
19
+ //# sourceMappingURL=getConfigCamera.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","getModel","getConfigsApi","getConfigCamera","serviceType","deviceModel","deviceType","OS","configs","configsDeviceType","filter","config","configDeviceModel","find","deviceModels","includes","error","console"],"sourceRoot":"../../../src","sources":["utils/getConfigCamera.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,QAAQ,QAAQ,0BAA0B;AACnD,SAASC,aAAa,QAAQ,aAAa;AAiB3C,MAAMC,eAAe,GAAG,MACtBC,WAAwB,IACW;EACnC,MAAMC,WAAW,GAAGJ,QAAQ,CAAC,CAAC;EAC9B,MAAMK,UAAU,GAAGN,QAAQ,CAACO,EAAE;EAC9B,IAAI;IACF,MAAMC,OAAO,GAAG,MAAMN,aAAa,CAAC,CAAC;IACrC,MAAMO,iBAAiB,GAAGD,OAAO,CAACE,MAAM,CACrCC,MAAM,IACLA,MAAM,CAACL,UAAU,KAAKA,UAAU,IAAIK,MAAM,CAACP,WAAW,KAAKA,WAC/D,CAAC;IACD,MAAMQ,iBAAiB,GAAGH,iBAAiB,CAACI,IAAI,CAC7CF,MAAM,IACLA,MAAM,CAACG,YAAY,CAACC,QAAQ,CAACV,WAAW,CAAC,IACzCM,MAAM,CAACG,YAAY,CAACC,QAAQ,CAAC,SAAS,CAC1C,CAAC;IAED,OAAOH,iBAAiB;EAC1B,CAAC,CAAC,OAAOI,KAAK,EAAE;IACdC,OAAO,CAACD,KAAK,CAACA,KAAK,CAAC;IACpB;IACA;EACF;AACF,CAAC;AAED,eAAeb,eAAe"}
@@ -0,0 +1,3 @@
1
+ import getConfigCamera from './getConfigCamera';
2
+ export { getConfigCamera };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getConfigCamera"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,OAAOA,eAAe,MAAM,mBAAmB;AAE/C,SAASA,eAAe"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ exposure?: number;
4
+ zoom?: number;
5
+ showButtonInfo?: boolean;
6
+ };
7
+ export declare const CameraConfigInfos: ({ exposure, zoom, showButtonInfo, }: Props) => JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CameraConfigInfos/index.tsx"],"names":[],"mappings":";AAIA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,wCAI3B,KAAK,gBAUP,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const styles: {
2
+ text: {
3
+ fontSize: number;
4
+ fontWeight: "500";
5
+ color: string;
6
+ textAlign: "center";
7
+ width: number;
8
+ marginBottom: number;
9
+ };
10
+ };
11
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/CameraConfigInfos/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;CASjB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ interface DeviceNullDisplayProps {
4
+ isVisible: boolean;
5
+ modalParams?: ModalProps;
6
+ onCloseModalHandler: () => void;
7
+ requestCameraPermission: () => void;
8
+ }
9
+ export declare const DeviceNullDisplay: React.FC<DeviceNullDisplayProps>;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeviceNullDisplay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,UAAU,sBAAsB;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0B9D,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type ModalProps } from 'react-native-modal';
3
+ interface ErrorDisplayProps {
4
+ isVisible: boolean;
5
+ modalParams?: ModalProps;
6
+ onCloseModalHandler: () => void;
7
+ requestCameraPermission: () => void;
8
+ }
9
+ export declare const ErrorDisplay: React.FC<ErrorDisplayProps>;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorDisplay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,UAAU,iBAAiB;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2BpD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Gabarito: () => JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gabarito/index.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,QAAQ,mBAMpB,CAAC"}
@@ -0,0 +1,21 @@
1
+ export declare const styles: {
2
+ container: {
3
+ justifyContent: "center";
4
+ alignSelf: "center";
5
+ position: "absolute";
6
+ marginTop: "50%";
7
+ };
8
+ gabarito: {
9
+ width: number;
10
+ height: number;
11
+ borderWidth: number;
12
+ borderColor: string;
13
+ marginLeft: "15%";
14
+ borderTopLeftRadius: number;
15
+ borderBottomLeftRadius: number;
16
+ transform: {
17
+ scaleX: number;
18
+ }[];
19
+ };
20
+ };
21
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Gabarito/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CAiBjB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ interface ToastProps {
3
+ isVisible: boolean;
4
+ message: string;
5
+ onClose: () => void;
6
+ }
7
+ export declare const Toast: React.FC<ToastProps>;
8
+ export declare const styles: {
9
+ modalContainer: {
10
+ flex: number;
11
+ backgroundColor: string;
12
+ justifyContent: "center";
13
+ alignItems: "center";
14
+ zIndex: number;
15
+ };
16
+ modalCard: {
17
+ backgroundColor: string;
18
+ padding: number;
19
+ borderRadius: number;
20
+ width: "80%";
21
+ alignItems: "center";
22
+ };
23
+ messageText: {
24
+ fontSize: number;
25
+ marginBottom: number;
26
+ textAlign: "center";
27
+ color: string;
28
+ };
29
+ closeButton: {
30
+ marginTop: number;
31
+ backgroundColor: string;
32
+ padding: number;
33
+ borderRadius: number;
34
+ };
35
+ closeButtonText: {
36
+ color: string;
37
+ fontWeight: "bold";
38
+ textAlign: "center";
39
+ };
40
+ };
41
+ export {};
42
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,UAAU;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAiBtC,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCjB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface WaitingForResultProps {
3
+ onPress?: () => void;
4
+ }
5
+ export declare const WaitingForResult: React.FC<WaitingForResultProps>;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/WaitingForResult/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAY5D,CAAC"}