@ha_tecno/live-id-sdk 1.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (429) hide show
  1. package/android/build.gradle +4 -0
  2. package/lib/commonjs/components/{WaitingForResult → CameraConfigInfo}/index.js +9 -11
  3. package/lib/commonjs/components/CameraConfigInfo/index.js.map +1 -0
  4. package/lib/commonjs/components/CameraConfigInfo/styles.js +20 -0
  5. package/lib/commonjs/components/CameraConfigInfo/styles.js.map +1 -0
  6. package/lib/commonjs/components/CaptureButton/index.js +88 -0
  7. package/lib/commonjs/components/CaptureButton/index.js.map +1 -0
  8. package/lib/commonjs/components/CaptureButton/styles.js +22 -0
  9. package/lib/commonjs/components/CaptureButton/styles.js.map +1 -0
  10. package/lib/commonjs/components/Gabarito/index.js +2 -2
  11. package/lib/commonjs/components/Gabarito/index.js.map +1 -1
  12. package/lib/commonjs/components/Gabarito/styles.js +10 -11
  13. package/lib/commonjs/components/Gabarito/styles.js.map +1 -1
  14. package/lib/commonjs/components/HelpRegister/index.js +51 -0
  15. package/lib/commonjs/components/HelpRegister/index.js.map +1 -0
  16. package/lib/commonjs/{screens/CadastroFinger/components/AjudaCadastro → components/HelpRegister}/styles.js +17 -20
  17. package/lib/commonjs/components/HelpRegister/styles.js.map +1 -0
  18. package/lib/commonjs/components/Toast/Toast.js +12 -12
  19. package/lib/commonjs/components/Toast/Toast.js.map +1 -1
  20. package/lib/commonjs/components/deviceNotFound/deviceNotFound.js +27 -0
  21. package/lib/commonjs/components/deviceNotFound/deviceNotFound.js.map +1 -0
  22. package/lib/commonjs/components/deviceNotFound/styles.js +36 -0
  23. package/lib/commonjs/components/deviceNotFound/styles.js.map +1 -0
  24. package/lib/commonjs/components/icon/icon.js +22 -0
  25. package/lib/commonjs/components/icon/icon.js.map +1 -0
  26. package/lib/commonjs/components/index.js +56 -0
  27. package/lib/commonjs/components/index.js.map +1 -0
  28. package/lib/commonjs/components/modalMessage/modalMessage.js +63 -0
  29. package/lib/commonjs/components/modalMessage/modalMessage.js.map +1 -0
  30. package/lib/commonjs/components/modalMessage/styles.js +51 -0
  31. package/lib/commonjs/components/modalMessage/styles.js.map +1 -0
  32. package/lib/commonjs/components/recordButton/recordButton.js +83 -0
  33. package/lib/commonjs/components/recordButton/recordButton.js.map +1 -0
  34. package/lib/commonjs/components/recordButton/styles.js +21 -0
  35. package/lib/commonjs/components/recordButton/styles.js.map +1 -0
  36. package/lib/commonjs/index.js +9 -11
  37. package/lib/commonjs/index.js.map +1 -1
  38. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js +29 -29
  39. package/lib/commonjs/screens/CadastroScreen/CadastroScreen.js.map +1 -1
  40. package/lib/commonjs/screens/FingerAuth/FingerAuth.js +128 -0
  41. package/lib/commonjs/screens/FingerAuth/FingerAuth.js.map +1 -0
  42. package/lib/commonjs/screens/FingerAuth/styles.js +35 -0
  43. package/lib/commonjs/screens/FingerAuth/styles.js.map +1 -0
  44. package/lib/commonjs/screens/FingerRegister/index.js +136 -0
  45. package/lib/commonjs/screens/FingerRegister/index.js.map +1 -0
  46. package/lib/commonjs/screens/FingerRegister/styles.js +35 -0
  47. package/lib/commonjs/screens/FingerRegister/styles.js.map +1 -0
  48. package/lib/commonjs/screens/LifeCertificate/index.js +145 -0
  49. package/lib/commonjs/screens/LifeCertificate/index.js.map +1 -0
  50. package/lib/commonjs/screens/LifeCertificate/styles.js +27 -0
  51. package/lib/commonjs/screens/LifeCertificate/styles.js.map +1 -0
  52. package/lib/commonjs/screens/index.js +28 -0
  53. package/lib/commonjs/screens/index.js.map +1 -0
  54. package/lib/commonjs/services/index.js +35 -101
  55. package/lib/commonjs/services/index.js.map +1 -1
  56. package/lib/commonjs/services/services.js +134 -0
  57. package/lib/commonjs/services/services.js.map +1 -0
  58. package/lib/commonjs/services/types.js +2 -0
  59. package/lib/commonjs/{types/screen.js.map → services/types.js.map} +1 -1
  60. package/lib/commonjs/store/createSelectors.js +16 -0
  61. package/lib/commonjs/store/createSelectors.js.map +1 -0
  62. package/lib/commonjs/store/modules/fingerAuth/index.js +19 -0
  63. package/lib/commonjs/store/modules/fingerAuth/index.js.map +1 -0
  64. package/lib/commonjs/store/modules/fingerAuth/selectors.js +13 -0
  65. package/lib/commonjs/store/modules/fingerAuth/selectors.js.map +1 -0
  66. package/lib/commonjs/store/modules/fingerAuth/slice.js +92 -0
  67. package/lib/commonjs/store/modules/fingerAuth/slice.js.map +1 -0
  68. package/lib/commonjs/store/modules/fingerAuth/type.js +2 -0
  69. package/lib/commonjs/store/modules/fingerAuth/type.js.map +1 -0
  70. package/lib/commonjs/store/modules/fingerRegister/index.js +19 -0
  71. package/lib/commonjs/store/modules/fingerRegister/index.js.map +1 -0
  72. package/lib/commonjs/store/modules/fingerRegister/selectors.js +13 -0
  73. package/lib/commonjs/store/modules/fingerRegister/selectors.js.map +1 -0
  74. package/lib/commonjs/store/modules/fingerRegister/slice.js +101 -0
  75. package/lib/commonjs/store/modules/fingerRegister/slice.js.map +1 -0
  76. package/lib/commonjs/store/modules/fingerRegister/types.js +2 -0
  77. package/lib/commonjs/store/modules/fingerRegister/types.js.map +1 -0
  78. package/lib/commonjs/store/modules/lifeCertificate/index.js +19 -0
  79. package/lib/commonjs/store/modules/lifeCertificate/index.js.map +1 -0
  80. package/lib/commonjs/store/modules/lifeCertificate/selectors.js +13 -0
  81. package/lib/commonjs/store/modules/lifeCertificate/selectors.js.map +1 -0
  82. package/lib/commonjs/store/modules/lifeCertificate/slice.js +101 -0
  83. package/lib/commonjs/store/modules/lifeCertificate/slice.js.map +1 -0
  84. package/lib/commonjs/store/modules/lifeCertificate/types.js +6 -0
  85. package/lib/commonjs/store/modules/lifeCertificate/types.js.map +1 -0
  86. package/lib/commonjs/utils/file.js +2 -2
  87. package/lib/commonjs/utils/getConfigCamera.js +1 -1
  88. package/lib/commonjs/utils/getConfigCamera.js.map +1 -1
  89. package/lib/module/components/CameraConfigInfo/index.js +15 -0
  90. package/lib/module/components/CameraConfigInfo/index.js.map +1 -0
  91. package/lib/module/components/CameraConfigInfo/styles.js +14 -0
  92. package/lib/module/components/CameraConfigInfo/styles.js.map +1 -0
  93. package/lib/module/components/CaptureButton/index.js +79 -0
  94. package/lib/module/components/CaptureButton/index.js.map +1 -0
  95. package/lib/module/components/CaptureButton/styles.js +16 -0
  96. package/lib/module/components/CaptureButton/styles.js.map +1 -0
  97. package/lib/module/components/Gabarito/index.js +5 -4
  98. package/lib/module/components/Gabarito/index.js.map +1 -1
  99. package/lib/module/components/Gabarito/styles.js +11 -12
  100. package/lib/module/components/Gabarito/styles.js.map +1 -1
  101. package/lib/module/{screens/CadastroFinger/components/AjudaCadastro → components/HelpRegister}/index.js +17 -15
  102. package/lib/module/components/HelpRegister/index.js.map +1 -0
  103. package/lib/module/components/HelpRegister/styles.js +53 -0
  104. package/lib/module/components/HelpRegister/styles.js.map +1 -0
  105. package/lib/module/components/Toast/Toast.js +14 -14
  106. package/lib/module/components/Toast/Toast.js.map +1 -1
  107. package/lib/module/components/deviceNotFound/deviceNotFound.js +20 -0
  108. package/lib/module/components/deviceNotFound/deviceNotFound.js.map +1 -0
  109. package/lib/module/components/deviceNotFound/styles.js +30 -0
  110. package/lib/module/components/deviceNotFound/styles.js.map +1 -0
  111. package/lib/module/components/icon/icon.js +15 -0
  112. package/lib/module/components/icon/icon.js.map +1 -0
  113. package/lib/module/components/index.js +9 -0
  114. package/lib/module/components/index.js.map +1 -0
  115. package/lib/module/components/modalMessage/modalMessage.js +54 -0
  116. package/lib/module/components/modalMessage/modalMessage.js.map +1 -0
  117. package/lib/module/components/modalMessage/styles.js +45 -0
  118. package/lib/module/components/modalMessage/styles.js.map +1 -0
  119. package/lib/module/components/recordButton/recordButton.js +74 -0
  120. package/lib/module/components/recordButton/recordButton.js.map +1 -0
  121. package/lib/module/components/recordButton/styles.js +15 -0
  122. package/lib/module/components/recordButton/styles.js.map +1 -0
  123. package/lib/module/index.js +4 -4
  124. package/lib/module/index.js.map +1 -1
  125. package/lib/module/screens/CadastroScreen/CadastroScreen.js +33 -33
  126. package/lib/module/screens/CadastroScreen/CadastroScreen.js.map +1 -1
  127. package/lib/module/screens/FingerAuth/FingerAuth.js +119 -0
  128. package/lib/module/screens/FingerAuth/FingerAuth.js.map +1 -0
  129. package/lib/module/screens/FingerAuth/styles.js +29 -0
  130. package/lib/module/screens/FingerAuth/styles.js.map +1 -0
  131. package/lib/module/screens/FingerRegister/index.js +127 -0
  132. package/lib/module/screens/FingerRegister/index.js.map +1 -0
  133. package/lib/module/screens/FingerRegister/styles.js +29 -0
  134. package/lib/module/screens/FingerRegister/styles.js.map +1 -0
  135. package/lib/module/screens/LifeCertificate/index.js +136 -0
  136. package/lib/module/screens/LifeCertificate/index.js.map +1 -0
  137. package/lib/module/screens/LifeCertificate/styles.js +21 -0
  138. package/lib/module/screens/LifeCertificate/styles.js.map +1 -0
  139. package/lib/module/screens/index.js +5 -0
  140. package/lib/module/screens/index.js.map +1 -0
  141. package/lib/module/services/index.js +9 -95
  142. package/lib/module/services/index.js.map +1 -1
  143. package/lib/module/services/services.js +123 -0
  144. package/lib/module/services/services.js.map +1 -0
  145. package/lib/module/services/types.js +2 -0
  146. package/lib/module/{types/screen.js.map → services/types.js.map} +1 -1
  147. package/lib/module/store/createSelectors.js +10 -0
  148. package/lib/module/store/createSelectors.js.map +1 -0
  149. package/lib/module/store/modules/fingerAuth/index.js +3 -0
  150. package/lib/module/store/modules/fingerAuth/index.js.map +1 -0
  151. package/lib/module/store/modules/fingerAuth/selectors.js +6 -0
  152. package/lib/module/store/modules/fingerAuth/selectors.js.map +1 -0
  153. package/lib/module/store/modules/fingerAuth/slice.js +86 -0
  154. package/lib/module/store/modules/fingerAuth/slice.js.map +1 -0
  155. package/lib/module/store/modules/fingerAuth/type.js +2 -0
  156. package/lib/module/store/modules/fingerAuth/type.js.map +1 -0
  157. package/lib/module/store/modules/fingerRegister/index.js +3 -0
  158. package/lib/module/store/modules/fingerRegister/index.js.map +1 -0
  159. package/lib/module/store/modules/fingerRegister/selectors.js +6 -0
  160. package/lib/module/store/modules/fingerRegister/selectors.js.map +1 -0
  161. package/lib/module/store/modules/fingerRegister/slice.js +95 -0
  162. package/lib/module/store/modules/fingerRegister/slice.js.map +1 -0
  163. package/lib/module/store/modules/fingerRegister/types.js +2 -0
  164. package/lib/module/store/modules/fingerRegister/types.js.map +1 -0
  165. package/lib/module/store/modules/lifeCertificate/index.js +3 -0
  166. package/lib/module/store/modules/lifeCertificate/index.js.map +1 -0
  167. package/lib/module/store/modules/lifeCertificate/selectors.js +6 -0
  168. package/lib/module/store/modules/lifeCertificate/selectors.js.map +1 -0
  169. package/lib/module/store/modules/lifeCertificate/slice.js +95 -0
  170. package/lib/module/store/modules/lifeCertificate/slice.js.map +1 -0
  171. package/lib/module/store/modules/lifeCertificate/types.js +2 -0
  172. package/lib/module/store/modules/lifeCertificate/types.js.map +1 -0
  173. package/lib/module/utils/file.js +3 -3
  174. package/lib/module/utils/getConfigCamera.js +4 -4
  175. package/lib/module/utils/getConfigCamera.js.map +1 -1
  176. package/lib/module/utils/index.js +1 -1
  177. package/lib/typescript/src/components/CameraConfigInfo/index.d.ts +8 -0
  178. package/lib/typescript/src/components/CameraConfigInfo/index.d.ts.map +1 -0
  179. package/lib/typescript/src/components/CameraConfigInfo/styles.d.ts +13 -0
  180. package/lib/typescript/src/components/CameraConfigInfo/styles.d.ts.map +1 -0
  181. package/lib/typescript/src/components/CaptureButton/index.d.ts +10 -0
  182. package/lib/typescript/src/components/CaptureButton/index.d.ts.map +1 -0
  183. package/lib/typescript/src/components/CaptureButton/styles.d.ts +15 -0
  184. package/lib/typescript/src/components/CaptureButton/styles.d.ts.map +1 -0
  185. package/lib/typescript/src/components/Gabarito/index.d.ts +2 -1
  186. package/lib/typescript/src/components/Gabarito/index.d.ts.map +1 -1
  187. package/lib/typescript/src/components/Gabarito/styles.d.ts +1 -2
  188. package/lib/typescript/src/components/Gabarito/styles.d.ts.map +1 -1
  189. package/lib/typescript/src/components/HelpRegister/index.d.ts +4 -0
  190. package/lib/typescript/src/components/HelpRegister/index.d.ts.map +1 -0
  191. package/lib/typescript/src/{screens/CadastroFinger/components/AjudaCadastro → components/HelpRegister}/styles.d.ts +2 -5
  192. package/lib/typescript/src/components/HelpRegister/styles.d.ts.map +1 -0
  193. package/lib/typescript/src/components/Toast/Toast.d.ts +1 -1
  194. package/lib/typescript/src/components/Toast/Toast.d.ts.map +1 -1
  195. package/lib/typescript/src/components/deviceNotFound/deviceNotFound.d.ts +8 -0
  196. package/lib/typescript/src/components/deviceNotFound/deviceNotFound.d.ts.map +1 -0
  197. package/lib/typescript/src/components/deviceNotFound/styles.d.ts +29 -0
  198. package/lib/typescript/src/components/deviceNotFound/styles.d.ts.map +1 -0
  199. package/lib/typescript/src/components/icon/icon.d.ts +9 -0
  200. package/lib/typescript/src/components/icon/icon.d.ts.map +1 -0
  201. package/lib/typescript/src/components/index.d.ts +9 -0
  202. package/lib/typescript/src/components/index.d.ts.map +1 -0
  203. package/lib/typescript/src/components/modalMessage/modalMessage.d.ts +11 -0
  204. package/lib/typescript/src/components/modalMessage/modalMessage.d.ts.map +1 -0
  205. package/lib/typescript/src/components/modalMessage/styles.d.ts +44 -0
  206. package/lib/typescript/src/components/modalMessage/styles.d.ts.map +1 -0
  207. package/lib/typescript/src/components/recordButton/recordButton.d.ts +10 -0
  208. package/lib/typescript/src/components/recordButton/recordButton.d.ts.map +1 -0
  209. package/lib/typescript/src/components/recordButton/styles.d.ts +14 -0
  210. package/lib/typescript/src/components/recordButton/styles.d.ts.map +1 -0
  211. package/lib/typescript/src/index.d.ts +3 -4
  212. package/lib/typescript/src/index.d.ts.map +1 -1
  213. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts +2 -4
  214. package/lib/typescript/src/screens/CadastroScreen/CadastroScreen.d.ts.map +1 -1
  215. package/lib/typescript/src/screens/FingerAuth/FingerAuth.d.ts +9 -0
  216. package/lib/typescript/src/screens/FingerAuth/FingerAuth.d.ts.map +1 -0
  217. package/lib/typescript/src/screens/FingerAuth/styles.d.ts +25 -0
  218. package/lib/typescript/src/screens/FingerAuth/styles.d.ts.map +1 -0
  219. package/lib/typescript/src/screens/FingerRegister/index.d.ts +8 -0
  220. package/lib/typescript/src/screens/FingerRegister/index.d.ts.map +1 -0
  221. package/lib/typescript/src/screens/FingerRegister/styles.d.ts +25 -0
  222. package/lib/typescript/src/screens/FingerRegister/styles.d.ts.map +1 -0
  223. package/lib/typescript/src/screens/LifeCertificate/index.d.ts +7 -0
  224. package/lib/typescript/src/screens/LifeCertificate/index.d.ts.map +1 -0
  225. package/lib/typescript/src/{components/WaitingForResult → screens/LifeCertificate}/styles.d.ts +7 -11
  226. package/lib/typescript/src/screens/LifeCertificate/styles.d.ts.map +1 -0
  227. package/lib/typescript/src/screens/index.d.ts +5 -0
  228. package/lib/typescript/src/screens/index.d.ts.map +1 -0
  229. package/lib/typescript/src/services/index.d.ts +2 -17
  230. package/lib/typescript/src/services/index.d.ts.map +1 -1
  231. package/lib/typescript/src/services/services.d.ts +6 -0
  232. package/lib/typescript/src/services/services.d.ts.map +1 -0
  233. package/lib/typescript/src/services/types.d.ts +37 -0
  234. package/lib/typescript/src/services/types.d.ts.map +1 -0
  235. package/lib/typescript/src/store/createSelectors.d.ts +11 -0
  236. package/lib/typescript/src/store/createSelectors.d.ts.map +1 -0
  237. package/lib/typescript/src/store/modules/fingerAuth/index.d.ts +3 -0
  238. package/lib/typescript/src/store/modules/fingerAuth/index.d.ts.map +1 -0
  239. package/lib/typescript/src/store/modules/fingerAuth/selectors.d.ts +20 -0
  240. package/lib/typescript/src/store/modules/fingerAuth/selectors.d.ts.map +1 -0
  241. package/lib/typescript/src/store/modules/fingerAuth/slice.d.ts +4 -0
  242. package/lib/typescript/src/store/modules/fingerAuth/slice.d.ts.map +1 -0
  243. package/lib/typescript/src/store/modules/fingerAuth/type.d.ts +28 -0
  244. package/lib/typescript/src/store/modules/fingerAuth/type.d.ts.map +1 -0
  245. package/lib/typescript/src/store/modules/fingerRegister/index.d.ts +3 -0
  246. package/lib/typescript/src/store/modules/fingerRegister/index.d.ts.map +1 -0
  247. package/lib/typescript/src/store/modules/fingerRegister/selectors.d.ts +22 -0
  248. package/lib/typescript/src/store/modules/fingerRegister/selectors.d.ts.map +1 -0
  249. package/lib/typescript/src/store/modules/fingerRegister/slice.d.ts +4 -0
  250. package/lib/typescript/src/store/modules/fingerRegister/slice.d.ts.map +1 -0
  251. package/lib/typescript/src/store/modules/fingerRegister/types.d.ts +30 -0
  252. package/lib/typescript/src/store/modules/fingerRegister/types.d.ts.map +1 -0
  253. package/lib/typescript/src/store/modules/lifeCertificate/index.d.ts +3 -0
  254. package/lib/typescript/src/store/modules/lifeCertificate/index.d.ts.map +1 -0
  255. package/lib/typescript/src/store/modules/lifeCertificate/selectors.d.ts +23 -0
  256. package/lib/typescript/src/store/modules/lifeCertificate/selectors.d.ts.map +1 -0
  257. package/lib/typescript/src/store/modules/lifeCertificate/slice.d.ts +4 -0
  258. package/lib/typescript/src/store/modules/lifeCertificate/slice.d.ts.map +1 -0
  259. package/lib/typescript/src/store/modules/lifeCertificate/types.d.ts +37 -0
  260. package/lib/typescript/src/store/modules/lifeCertificate/types.d.ts.map +1 -0
  261. package/lib/typescript/src/utils/getConfigCamera.d.ts +1 -1
  262. package/lib/typescript/src/utils/getConfigCamera.d.ts.map +1 -1
  263. package/lib/typescript/src/utils/index.d.ts +1 -1
  264. package/package.json +24 -42
  265. package/src/components/CameraConfigInfo/index.tsx +20 -0
  266. package/src/components/CameraConfigInfo/styles.ts +14 -0
  267. package/src/components/CaptureButton/index.tsx +74 -0
  268. package/src/components/CaptureButton/styles.ts +16 -0
  269. package/src/components/Gabarito/index.tsx +6 -4
  270. package/src/components/Gabarito/styles.ts +13 -14
  271. package/src/components/HelpRegister/index.tsx +40 -0
  272. package/src/components/HelpRegister/styles.ts +54 -0
  273. package/src/components/Toast/Toast.tsx +18 -22
  274. package/src/components/deviceNotFound/deviceNotFound.tsx +23 -0
  275. package/src/components/deviceNotFound/styles.ts +30 -0
  276. package/src/components/icon/icon.tsx +14 -0
  277. package/src/components/index.ts +9 -0
  278. package/src/components/modalMessage/modalMessage.tsx +73 -0
  279. package/src/components/modalMessage/styles.ts +45 -0
  280. package/src/components/recordButton/recordButton.tsx +75 -0
  281. package/src/components/recordButton/styles.ts +15 -0
  282. package/src/index.tsx +5 -4
  283. package/src/screens/CadastroScreen/CadastroScreen.tsx +35 -52
  284. package/src/screens/FingerAuth/FingerAuth.tsx +121 -0
  285. package/src/screens/FingerAuth/styles.ts +28 -0
  286. package/src/screens/FingerRegister/index.tsx +139 -0
  287. package/src/screens/FingerRegister/styles.ts +28 -0
  288. package/src/screens/LifeCertificate/index.tsx +152 -0
  289. package/src/screens/LifeCertificate/styles.ts +21 -0
  290. package/src/screens/index.ts +5 -0
  291. package/src/services/index.ts +12 -113
  292. package/src/services/services.ts +129 -0
  293. package/src/services/types.ts +42 -0
  294. package/src/store/createSelectors.ts +15 -0
  295. package/src/store/modules/fingerAuth/index.ts +3 -0
  296. package/src/store/modules/fingerAuth/selectors.ts +7 -0
  297. package/src/store/modules/fingerAuth/slice.ts +91 -0
  298. package/src/store/modules/fingerAuth/type.ts +29 -0
  299. package/src/store/modules/fingerRegister/index.ts +3 -0
  300. package/src/store/modules/fingerRegister/selectors.ts +7 -0
  301. package/src/store/modules/fingerRegister/slice.ts +101 -0
  302. package/src/store/modules/fingerRegister/types.ts +30 -0
  303. package/src/store/modules/lifeCertificate/index.ts +3 -0
  304. package/src/store/modules/lifeCertificate/selectors.ts +7 -0
  305. package/src/store/modules/lifeCertificate/slice.ts +100 -0
  306. package/src/store/modules/lifeCertificate/types.ts +40 -0
  307. package/src/utils/file.ts +3 -3
  308. package/src/utils/getConfigCamera.ts +7 -12
  309. package/src/utils/index.ts +1 -1
  310. package/lib/commonjs/components/CameraConfigInfos/index.js +0 -21
  311. package/lib/commonjs/components/CameraConfigInfos/index.js.map +0 -1
  312. package/lib/commonjs/components/CameraConfigInfos/styles.js +0 -19
  313. package/lib/commonjs/components/CameraConfigInfos/styles.js.map +0 -1
  314. package/lib/commonjs/components/DeviceNullDisplay/index.js +0 -59
  315. package/lib/commonjs/components/DeviceNullDisplay/index.js.map +0 -1
  316. package/lib/commonjs/components/ErrorDisplay/index.js +0 -59
  317. package/lib/commonjs/components/ErrorDisplay/index.js.map +0 -1
  318. package/lib/commonjs/components/WaitingForResult/index.js.map +0 -1
  319. package/lib/commonjs/components/WaitingForResult/styles.js +0 -32
  320. package/lib/commonjs/components/WaitingForResult/styles.js.map +0 -1
  321. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js +0 -49
  322. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/index.js.map +0 -1
  323. package/lib/commonjs/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +0 -1
  324. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js +0 -298
  325. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/index.js.map +0 -1
  326. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js +0 -54
  327. package/lib/commonjs/screens/CadastroFinger/components/CameraCadastro/styles.js.map +0 -1
  328. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js +0 -44
  329. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +0 -1
  330. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +0 -65
  331. package/lib/commonjs/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +0 -1
  332. package/lib/commonjs/screens/CadastroFinger/index.js +0 -50
  333. package/lib/commonjs/screens/CadastroFinger/index.js.map +0 -1
  334. package/lib/commonjs/screens/ProvaVidas/index.js +0 -246
  335. package/lib/commonjs/screens/ProvaVidas/index.js.map +0 -1
  336. package/lib/commonjs/screens/ProvaVidas/styles.js +0 -93
  337. package/lib/commonjs/screens/ProvaVidas/styles.js.map +0 -1
  338. package/lib/commonjs/screens/ValidadeFinger/index.js +0 -216
  339. package/lib/commonjs/screens/ValidadeFinger/index.js.map +0 -1
  340. package/lib/commonjs/screens/ValidadeFinger/styles.js +0 -54
  341. package/lib/commonjs/screens/ValidadeFinger/styles.js.map +0 -1
  342. package/lib/commonjs/types/screen.js +0 -2
  343. package/lib/module/components/CameraConfigInfos/index.js +0 -13
  344. package/lib/module/components/CameraConfigInfos/index.js.map +0 -1
  345. package/lib/module/components/CameraConfigInfos/styles.js +0 -13
  346. package/lib/module/components/CameraConfigInfos/styles.js.map +0 -1
  347. package/lib/module/components/DeviceNullDisplay/index.js +0 -51
  348. package/lib/module/components/DeviceNullDisplay/index.js.map +0 -1
  349. package/lib/module/components/ErrorDisplay/index.js +0 -51
  350. package/lib/module/components/ErrorDisplay/index.js.map +0 -1
  351. package/lib/module/components/WaitingForResult/index.js +0 -17
  352. package/lib/module/components/WaitingForResult/index.js.map +0 -1
  353. package/lib/module/components/WaitingForResult/styles.js +0 -26
  354. package/lib/module/components/WaitingForResult/styles.js.map +0 -1
  355. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/index.js.map +0 -1
  356. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js +0 -56
  357. package/lib/module/screens/CadastroFinger/components/AjudaCadastro/styles.js.map +0 -1
  358. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js +0 -288
  359. package/lib/module/screens/CadastroFinger/components/CameraCadastro/index.js.map +0 -1
  360. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js +0 -48
  361. package/lib/module/screens/CadastroFinger/components/CameraCadastro/styles.js.map +0 -1
  362. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js +0 -36
  363. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/index.js.map +0 -1
  364. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js +0 -59
  365. package/lib/module/screens/CadastroFinger/components/ImageDisplayScreen/styles.js.map +0 -1
  366. package/lib/module/screens/CadastroFinger/index.js +0 -42
  367. package/lib/module/screens/CadastroFinger/index.js.map +0 -1
  368. package/lib/module/screens/ProvaVidas/index.js +0 -239
  369. package/lib/module/screens/ProvaVidas/index.js.map +0 -1
  370. package/lib/module/screens/ProvaVidas/styles.js +0 -87
  371. package/lib/module/screens/ProvaVidas/styles.js.map +0 -1
  372. package/lib/module/screens/ValidadeFinger/index.js +0 -206
  373. package/lib/module/screens/ValidadeFinger/index.js.map +0 -1
  374. package/lib/module/screens/ValidadeFinger/styles.js +0 -48
  375. package/lib/module/screens/ValidadeFinger/styles.js.map +0 -1
  376. package/lib/module/types/screen.js +0 -2
  377. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts +0 -9
  378. package/lib/typescript/src/components/CameraConfigInfos/index.d.ts.map +0 -1
  379. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts +0 -11
  380. package/lib/typescript/src/components/CameraConfigInfos/styles.d.ts.map +0 -1
  381. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts +0 -11
  382. package/lib/typescript/src/components/DeviceNullDisplay/index.d.ts.map +0 -1
  383. package/lib/typescript/src/components/ErrorDisplay/index.d.ts +0 -11
  384. package/lib/typescript/src/components/ErrorDisplay/index.d.ts.map +0 -1
  385. package/lib/typescript/src/components/WaitingForResult/index.d.ts +0 -7
  386. package/lib/typescript/src/components/WaitingForResult/index.d.ts.map +0 -1
  387. package/lib/typescript/src/components/WaitingForResult/styles.d.ts.map +0 -1
  388. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts +0 -7
  389. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/index.d.ts.map +0 -1
  390. package/lib/typescript/src/screens/CadastroFinger/components/AjudaCadastro/styles.d.ts.map +0 -1
  391. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts +0 -16
  392. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/index.d.ts.map +0 -1
  393. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts +0 -44
  394. package/lib/typescript/src/screens/CadastroFinger/components/CameraCadastro/styles.d.ts.map +0 -1
  395. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts +0 -12
  396. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/index.d.ts.map +0 -1
  397. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts +0 -54
  398. package/lib/typescript/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.d.ts.map +0 -1
  399. package/lib/typescript/src/screens/CadastroFinger/index.d.ts +0 -16
  400. package/lib/typescript/src/screens/CadastroFinger/index.d.ts.map +0 -1
  401. package/lib/typescript/src/screens/ProvaVidas/index.d.ts +0 -14
  402. package/lib/typescript/src/screens/ProvaVidas/index.d.ts.map +0 -1
  403. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts +0 -85
  404. package/lib/typescript/src/screens/ProvaVidas/styles.d.ts.map +0 -1
  405. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts +0 -14
  406. package/lib/typescript/src/screens/ValidadeFinger/index.d.ts.map +0 -1
  407. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts +0 -44
  408. package/lib/typescript/src/screens/ValidadeFinger/styles.d.ts.map +0 -1
  409. package/lib/typescript/src/types/screen.d.ts +0 -6
  410. package/lib/typescript/src/types/screen.d.ts.map +0 -1
  411. package/live-id-sdk.podspec +0 -41
  412. package/src/components/CameraConfigInfos/index.tsx +0 -25
  413. package/src/components/CameraConfigInfos/styles.ts +0 -13
  414. package/src/components/DeviceNullDisplay/index.tsx +0 -59
  415. package/src/components/ErrorDisplay/index.tsx +0 -60
  416. package/src/components/WaitingForResult/index.tsx +0 -22
  417. package/src/components/WaitingForResult/styles.ts +0 -27
  418. package/src/screens/CadastroFinger/components/AjudaCadastro/index.tsx +0 -49
  419. package/src/screens/CadastroFinger/components/AjudaCadastro/styles.ts +0 -56
  420. package/src/screens/CadastroFinger/components/CameraCadastro/index.tsx +0 -356
  421. package/src/screens/CadastroFinger/components/CameraCadastro/styles.ts +0 -47
  422. package/src/screens/CadastroFinger/components/ImageDisplayScreen/index.tsx +0 -45
  423. package/src/screens/CadastroFinger/components/ImageDisplayScreen/styles.ts +0 -55
  424. package/src/screens/CadastroFinger/index.tsx +0 -56
  425. package/src/screens/ProvaVidas/index.tsx +0 -308
  426. package/src/screens/ProvaVidas/styles.ts +0 -99
  427. package/src/screens/ValidadeFinger/index.tsx +0 -263
  428. package/src/screens/ValidadeFinger/styles.ts +0 -47
  429. package/src/types/screen.ts +0 -5
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { View, Image, Text, Button, ScrollView } from 'react-native';
3
- import { styles } from './styles';
4
- export const ImageDisplayScreen = ({
5
- onCloseModal,
6
- screenProps
7
- }) => {
8
- const base64Image = screenProps === null || screenProps === void 0 ? void 0 : screenProps.base64Image;
9
- const onCloseModalHandler = () => {
10
- onCloseModal && onCloseModal();
11
- };
12
- return /*#__PURE__*/React.createElement(ScrollView, {
13
- contentContainerStyle: styles.container
14
- }, /*#__PURE__*/React.createElement(View, {
15
- style: styles.imageContainer
16
- }, /*#__PURE__*/React.createElement(Image, {
17
- source: {
18
- uri: `data:image/jpeg;base64,${base64Image}`
19
- },
20
- style: styles.image
21
- }), /*#__PURE__*/React.createElement(Text, {
22
- style: styles.imageText
23
- }, "Para cadastro, qualidade ruim !"), /*#__PURE__*/React.createElement(View, {
24
- style: styles.additionalGraphics
25
- }, /*#__PURE__*/React.createElement(View, {
26
- style: styles.graphicElement1
27
- }), /*#__PURE__*/React.createElement(View, {
28
- style: styles.graphicElement2
29
- }))), /*#__PURE__*/React.createElement(View, {
30
- style: styles.buttonContainer
31
- }, /*#__PURE__*/React.createElement(Button, {
32
- title: "Tentar Novamente",
33
- onPress: onCloseModalHandler
34
- })));
35
- };
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Image","Text","Button","ScrollView","styles","ImageDisplayScreen","onCloseModal","screenProps","base64Image","onCloseModalHandler","createElement","contentContainerStyle","container","style","imageContainer","source","uri","image","imageText","additionalGraphics","graphicElement1","graphicElement2","buttonContainer","title","onPress"],"sourceRoot":"../../../../../../src","sources":["screens/CadastroFinger/components/ImageDisplayScreen/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,MAAM,EAAEC,UAAU,QAAQ,cAAc;AACpE,SAASC,MAAM,QAAQ,UAAU;AAWjC,OAAO,MAAMC,kBAAqD,GAAGA,CAAC;EACpEC,YAAY;EACZC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGD,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEC,WAAW;EAE5C,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;IAChCH,YAAY,IAAIA,YAAY,CAAC,CAAC;EAChC,CAAC;EAED,oBACER,KAAA,CAAAY,aAAA,CAACP,UAAU;IAACQ,qBAAqB,EAAEP,MAAM,CAACQ;EAAU,gBAClDd,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACc,KAAK,EAAET,MAAM,CAACU;EAAe,gBAEjChB,KAAA,CAAAY,aAAA,CAACV,KAAK;IACJe,MAAM,EAAE;MAAEC,GAAG,EAAG,0BAAyBR,WAAY;IAAE,CAAE;IACzDK,KAAK,EAAET,MAAM,CAACa;EAAM,CACrB,CAAC,eACFnB,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACY,KAAK,EAAET,MAAM,CAACc;EAAU,GAAC,iCAAqC,CAAC,eAGrEpB,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACc,KAAK,EAAET,MAAM,CAACe;EAAmB,gBACrCrB,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACc,KAAK,EAAET,MAAM,CAACgB;EAAgB,CAAE,CAAC,eACvCtB,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACc,KAAK,EAAET,MAAM,CAACiB;EAAgB,CAAE,CAClC,CACF,CAAC,eACPvB,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACc,KAAK,EAAET,MAAM,CAACkB;EAAgB,gBAClCxB,KAAA,CAAAY,aAAA,CAACR,MAAM;IAACqB,KAAK,EAAC,kBAAkB;IAACC,OAAO,EAAEf;EAAoB,CAAE,CAC5D,CACI,CAAC;AAEjB,CAAC"}
@@ -1,59 +0,0 @@
1
- import { Dimensions, StyleSheet } from 'react-native';
2
- export const styles = StyleSheet.create({
3
- container: {
4
- paddingBottom: 30,
5
- flex: 1,
6
- backgroundColor: '#ffffff'
7
- },
8
- imageContainer: {
9
- marginBottom: 5,
10
- alignItems: 'center',
11
- justifyContent: 'center'
12
- },
13
- image: {
14
- width: '100%',
15
- height: '90%',
16
- aspectRatio: 1,
17
- resizeMode: 'contain'
18
- },
19
- imageText: {
20
- marginTop: 15,
21
- fontSize: 16,
22
- fontWeight: 'bold'
23
- },
24
- buttonContainer: {
25
- marginBottom: 150,
26
- alignItems: 'center'
27
- },
28
- additionalGraphics: {
29
- width: '100%',
30
- height: Dimensions.get('window').height * 0.4,
31
- backgroundColor: 'transparent',
32
- // Ajuste a cor de fundo desejada
33
- position: 'absolute',
34
- alignSelf: 'center',
35
- marginTop: '35%',
36
- alignItems: 'center',
37
- justifyContent: 'center'
38
- },
39
- graphicElement1: {
40
- width: Dimensions.get('window').width * 0.5,
41
- height: Dimensions.get('window').height * 0.3,
42
- backgroundColor: 'transparent',
43
- // Ajuste o estilo desejado
44
- borderWidth: 3,
45
- borderColor: 'yellow',
46
- marginLeft: 40,
47
- borderTopLeftRadius: 60,
48
- borderBottomLeftRadius: 60,
49
- borderTopRightRadius: 0,
50
- borderBottomRightRadius: 0,
51
- transform: [{
52
- scaleX: 2
53
- }]
54
- },
55
- graphicElement2: {
56
- // Defina o estilo para o segundo elemento gráfico
57
- }
58
- });
59
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Dimensions","StyleSheet","styles","create","container","paddingBottom","flex","backgroundColor","imageContainer","marginBottom","alignItems","justifyContent","image","width","height","aspectRatio","resizeMode","imageText","marginTop","fontSize","fontWeight","buttonContainer","additionalGraphics","get","position","alignSelf","graphicElement1","borderWidth","borderColor","marginLeft","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","transform","scaleX","graphicElement2"],"sourceRoot":"../../../../../../src","sources":["screens/CadastroFinger/components/ImageDisplayScreen/styles.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAErD,OAAO,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EACtCC,SAAS,EAAE;IACTC,aAAa,EAAE,EAAE;IACjBC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACnB,CAAC;EACDC,cAAc,EAAE;IACdC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,KAAK,EAAE;IACLC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,KAAK;IACbC,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE;EACd,CAAC;EACDC,SAAS,EAAE;IACTC,SAAS,EAAE,EAAE;IACbC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDC,eAAe,EAAE;IACfZ,YAAY,EAAE,GAAG;IACjBC,UAAU,EAAE;EACd,CAAC;EACDY,kBAAkB,EAAE;IAClBT,KAAK,EAAE,MAAM;IACbC,MAAM,EAAEd,UAAU,CAACuB,GAAG,CAAC,QAAQ,CAAC,CAACT,MAAM,GAAG,GAAG;IAC7CP,eAAe,EAAE,aAAa;IAAE;IAChCiB,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAE,QAAQ;IACnBP,SAAS,EAAE,KAAK;IAChBR,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDe,eAAe,EAAE;IACfb,KAAK,EAAEb,UAAU,CAACuB,GAAG,CAAC,QAAQ,CAAC,CAACV,KAAK,GAAG,GAAG;IAC3CC,MAAM,EAAEd,UAAU,CAACuB,GAAG,CAAC,QAAQ,CAAC,CAACT,MAAM,GAAG,GAAG;IAC7CP,eAAe,EAAE,aAAa;IAAE;IAChCoB,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,QAAQ;IACrBC,UAAU,EAAE,EAAE;IACdC,mBAAmB,EAAE,EAAE;IACvBC,sBAAsB,EAAE,EAAE;IAC1BC,oBAAoB,EAAE,CAAC;IACvBC,uBAAuB,EAAE,CAAC;IAC1BC,SAAS,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;EAC3B,CAAC;EACDC,eAAe,EAAE;IACf;EAAA;AAEJ,CAAC,CAAC"}
@@ -1,42 +0,0 @@
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 from 'react';
3
- import { CameraCadastro } from './components/CameraCadastro';
4
- import Modal from 'react-native-modal';
5
- export const CadastroFinger = ({
6
- isVisible = false,
7
- onCloseModal,
8
- onError,
9
- onSuccess,
10
- ModalParams,
11
- screenProps,
12
- onMaxAttempts,
13
- maxAttempts
14
- }) => {
15
- const onCloseModalHandler = () => {
16
- onCloseModal && onCloseModal();
17
- };
18
- return /*#__PURE__*/React.createElement(Modal
19
- // eslint-disable-next-line react-native/no-inline-styles
20
- , _extends({
21
- style: {
22
- margin: 0
23
- },
24
- isVisible: isVisible,
25
- swipeDirection: "down",
26
- propagateSwipe: true,
27
- onSwipeComplete: onCloseModalHandler
28
- }, ModalParams), /*#__PURE__*/React.createElement(CameraCadastro, {
29
- maxAttempts: maxAttempts,
30
- onMaxAttempts: onMaxAttempts,
31
- isVisible: isVisible,
32
- onCloseModal: onCloseModalHandler,
33
- screenProps: screenProps,
34
- onError: () => {
35
- onError && onError();
36
- },
37
- onSuccess: () => {
38
- onSuccess && onSuccess();
39
- }
40
- }));
41
- };
42
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","CameraCadastro","Modal","CadastroFinger","isVisible","onCloseModal","onError","onSuccess","ModalParams","screenProps","onMaxAttempts","maxAttempts","onCloseModalHandler","createElement","_extends","style","margin","swipeDirection","propagateSwipe","onSwipeComplete"],"sourceRoot":"../../../../src","sources":["screens/CadastroFinger/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,KAAK,MAA2B,oBAAoB;AAc3D,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,SAAS,GAAG,KAAK;EACjBC,YAAY;EACZC,OAAO;EACPC,SAAS;EACTC,WAAW;EACXC,WAAW;EACXC,aAAa;EACbC;AACF,CAAC,KAAK;EACJ,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;IAChCP,YAAY,IAAIA,YAAY,CAAC,CAAC;EAChC,CAAC;EAED,oBACEL,KAAA,CAAAa,aAAA,CAACX;EACC;EAAA,EAAAY,QAAA;IACAC,KAAK,EAAE;MAAEC,MAAM,EAAE;IAAE,CAAE;IACrBZ,SAAS,EAAEA,SAAU;IACrBa,cAAc,EAAC,MAAM;IACrBC,cAAc,EAAE,IAAK;IACrBC,eAAe,EAAEP;EAAoB,GACjCJ,WAAW,gBAEfR,KAAA,CAAAa,aAAA,CAACZ,cAAc;IACbU,WAAW,EAAEA,WAAY;IACzBD,aAAa,EAAEA,aAAc;IAC7BN,SAAS,EAAEA,SAAU;IACrBC,YAAY,EAAEO,mBAAoB;IAClCH,WAAW,EAAEA,WAAY;IACzBH,OAAO,EAAEA,CAAA,KAAM;MACbA,OAAO,IAAIA,OAAO,CAAC,CAAC;IACtB,CAAE;IACFC,SAAS,EAAEA,CAAA,KAAM;MACfA,SAAS,IAAIA,SAAS,CAAC,CAAC;IAC1B;EAAE,CACH,CACI,CAAC;AAEZ,CAAC"}
@@ -1,239 +0,0 @@
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
- /* eslint-disable react-native/no-inline-styles */
3
- import React, { useCallback, useEffect, useRef, useState } from 'react';
4
- import { Text, View, TouchableOpacity, Button } from 'react-native';
5
- import { Camera, useCameraDevice, useCameraFormat } from 'react-native-vision-camera';
6
- import Modal from 'react-native-modal';
7
- import { Toast } from '../../components/Toast/Toast';
8
- import { provaVida } from '../../services';
9
- import { getConfigCamera } from '../../utils';
10
- import { Alert } from 'react-native';
11
- import { Platform } from 'react-native';
12
- import Orientation from 'react-native-orientation-locker';
13
- import { WaitingForResult } from '../../components/WaitingForResult';
14
- import { ErrorDisplay } from '../../components/ErrorDisplay';
15
- import { DeviceNullDisplay } from '../../components/DeviceNullDisplay';
16
- import { styles } from './styles';
17
- import { CameraConfigInfos } from '../../components/CameraConfigInfos';
18
- const IS_IOS = Platform.OS === 'ios';
19
- export const CameraProvaVidas = ({
20
- isVisible = false,
21
- onCloseModal,
22
- onError,
23
- onSuccess,
24
- ModalParams,
25
- screenProps
26
- }) => {
27
- const id = screenProps === null || screenProps === void 0 ? void 0 : screenProps.id;
28
- const camera = useRef(null);
29
- const [showOverlay, setShowOverlay] = useState(false);
30
- const [intervalState, setIntervalState] = useState(null);
31
- const [timer, setTimer] = useState(0);
32
- const [load, setLoad] = useState(false);
33
- const [stateToastBpm, setStateToastBpm] = useState({
34
- message: '',
35
- visible: false
36
- });
37
- const [isRecording, setIsRecording] = useState(false);
38
- const [cameraConfigs, setCameraConfigs] = useState();
39
-
40
- // mantem a tela em modo portrait
41
- useEffect(() => {
42
- Orientation.lockToPortrait();
43
- return () => {
44
- Orientation.unlockAllOrientations();
45
- };
46
- }, []);
47
-
48
- // Pega a permissão da camera do dispositivo
49
- const requestCameraPermission = useCallback(async () => {
50
- try {
51
- await Camera.requestCameraPermission();
52
- } catch (error) {}
53
- }, []);
54
-
55
- // pra garantir que a permissão da camera seja solicitada
56
- useEffect(() => {
57
- requestCameraPermission();
58
- }, [requestCameraPermission]);
59
- useEffect(() => {
60
- getConfigCamera('liveness').then(config => {
61
- setCameraConfigs(config);
62
- }).catch(error => {
63
- console.error(error);
64
- });
65
- }, []);
66
- const device = useCameraDevice('back', {
67
- physicalDevices: ['wide-angle-camera']
68
- });
69
- const cameraFormat = useCameraFormat(device, [{
70
- videoResolution: {
71
- height: 1280,
72
- width: 720
73
- }
74
- }]);
75
-
76
- // Envia o arquivo para a api
77
- const sendFile = useCallback(async file => {
78
- setLoad(true);
79
- if (!id) return Alert.alert('Erro ao enviar o arquivo ( id error ), tente novamente mais tarde');
80
- let req = await provaVida(file, id, cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure);
81
- if (req.code === 0 && req.bpm >= 0) {
82
- setShowOverlay(false);
83
- const optionsToast = {
84
- message: `Seu batimento esta em: ${req.bpm}.\n Prova de vida concluida !`,
85
- visible: true
86
- };
87
- setStateToastBpm(optionsToast);
88
- onSuccess && onSuccess(req);
89
- } else {
90
- Alert.alert(req.message);
91
- onError && onError(req);
92
- }
93
- setLoad(false);
94
- setShowOverlay(false);
95
- return;
96
- }, [cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure, id, onError, onSuccess]);
97
-
98
- // Limpa tudo
99
- useEffect(() => {
100
- return () => {
101
- // limpa tudo
102
- setTimer(0);
103
- setIsRecording(false);
104
- setLoad(false);
105
- setStateToastBpm({
106
- message: '',
107
- visible: false
108
- });
109
- };
110
- }, []);
111
-
112
- // Limpa o intervalo do timer
113
- useEffect(() => {
114
- if (timer < 0) {
115
- if (!intervalState) return;
116
- clearInterval(intervalState);
117
- stopRecodingVideo();
118
- }
119
- }, [timer, intervalState]);
120
-
121
- // Função para iniciar a gravação do video na referencia da camera
122
- const startVideoRecording = useCallback(() => {
123
- var _camera$current;
124
- setIsRecording(true);
125
- (_camera$current = camera.current) === null || _camera$current === void 0 || _camera$current.startRecording({
126
- fileType: 'mp4',
127
- onRecordingFinished: video => sendFile(video),
128
- onRecordingError: error => console.error(error)
129
- });
130
- }, [sendFile]);
131
-
132
- // Inicia a gravação do video
133
- const recordingVideo = useCallback(async () => {
134
- startVideoRecording();
135
- setTimer(10);
136
- setLoad(true);
137
- setIntervalState(setInterval(() => {
138
- setTimer(prevTimer => prevTimer - 1); // Update the timer state
139
- }, 1000));
140
- }, [startVideoRecording]);
141
-
142
- // Para a gravação do video
143
- const stopRecodingVideo = async () => {
144
- var _camera$current2;
145
- setIsRecording(false);
146
- await ((_camera$current2 = camera.current) === null || _camera$current2 === void 0 ? void 0 : _camera$current2.stopRecording());
147
- setShowOverlay(true);
148
- return;
149
- };
150
-
151
- // Fecha o modal
152
- const onCloseModalHandler = () => {
153
- resetScreenStatesAndCamera();
154
- onCloseModal && onCloseModal();
155
- };
156
-
157
- // Limpa os estados da tela e a camera
158
- const resetScreenStatesAndCamera = () => {
159
- setTimer(0);
160
- setIsRecording(false);
161
- setShowOverlay(false);
162
- setLoad(false);
163
- setStateToastBpm({
164
- message: '',
165
- visible: false
166
- });
167
- };
168
- if (!screenProps && isVisible) {
169
- return /*#__PURE__*/React.createElement(ErrorDisplay, {
170
- isVisible: isVisible,
171
- modalParams: ModalParams,
172
- onCloseModalHandler: onCloseModalHandler,
173
- requestCameraPermission: requestCameraPermission
174
- });
175
- }
176
- if (device == null) {
177
- return /*#__PURE__*/React.createElement(DeviceNullDisplay, {
178
- isVisible: isVisible,
179
- modalParams: ModalParams,
180
- onCloseModalHandler: onCloseModalHandler,
181
- requestCameraPermission: requestCameraPermission
182
- });
183
- }
184
- return /*#__PURE__*/React.createElement(Modal, _extends({
185
- style: {
186
- margin: 0
187
- },
188
- isVisible: isVisible,
189
- swipeDirection: "down",
190
- propagateSwipe: true,
191
- onSwipeComplete: onCloseModalHandler
192
- }, ModalParams), /*#__PURE__*/React.createElement(View, {
193
- style: styles.container
194
- }, showOverlay && /*#__PURE__*/React.createElement(WaitingForResult, {
195
- onPress: () => {
196
- setShowOverlay(false);
197
- }
198
- }), /*#__PURE__*/React.createElement(Toast, {
199
- message: stateToastBpm.message,
200
- isVisible: stateToastBpm.visible,
201
- onClose: onCloseModalHandler
202
- }), /*#__PURE__*/React.createElement(View, {
203
- style: styles.containerCamera
204
- }, /*#__PURE__*/React.createElement(Camera, {
205
- ref: camera,
206
- style: styles.subContainer,
207
- isActive: true,
208
- device: device,
209
- video: true,
210
- torch: 'on',
211
- format: cameraFormat,
212
- exposure: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure,
213
- zoom: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.zoom
214
- }), /*#__PURE__*/React.createElement(View, {
215
- style: styles.cameraView
216
- }), /*#__PURE__*/React.createElement(View, {
217
- style: styles.containerTouch
218
- }, /*#__PURE__*/React.createElement(TouchableOpacity, {
219
- onPress: () => recordingVideo(),
220
- disabled: isRecording || load
221
- }, /*#__PURE__*/React.createElement(View, {
222
- style: styles.containerText
223
- }, /*#__PURE__*/React.createElement(Text, {
224
- style: styles.textRecording
225
- }, isRecording ? `Aguarde ${timer} segundos` : load ? 'Processando...' : 'Medir Batimentos')))), /*#__PURE__*/React.createElement(View, {
226
- style: {
227
- marginBottom: IS_IOS ? 48 : 0
228
- }
229
- }, /*#__PURE__*/React.createElement(CameraConfigInfos, {
230
- exposure: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.exposure,
231
- zoom: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.zoom,
232
- showButtonInfo: cameraConfigs === null || cameraConfigs === void 0 ? void 0 : cameraConfigs.showButtonInfo
233
- }), /*#__PURE__*/React.createElement(Button, {
234
- disabled: load,
235
- title: "Fechar Camera",
236
- onPress: onCloseModalHandler
237
- })))));
238
- };
239
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCallback","useEffect","useRef","useState","Text","View","TouchableOpacity","Button","Camera","useCameraDevice","useCameraFormat","Modal","Toast","provaVida","getConfigCamera","Alert","Platform","Orientation","WaitingForResult","ErrorDisplay","DeviceNullDisplay","styles","CameraConfigInfos","IS_IOS","OS","CameraProvaVidas","isVisible","onCloseModal","onError","onSuccess","ModalParams","screenProps","id","camera","showOverlay","setShowOverlay","intervalState","setIntervalState","timer","setTimer","load","setLoad","stateToastBpm","setStateToastBpm","message","visible","isRecording","setIsRecording","cameraConfigs","setCameraConfigs","lockToPortrait","unlockAllOrientations","requestCameraPermission","error","then","config","catch","console","device","physicalDevices","cameraFormat","videoResolution","height","width","sendFile","file","alert","req","exposure","code","bpm","optionsToast","clearInterval","stopRecodingVideo","startVideoRecording","_camera$current","current","startRecording","fileType","onRecordingFinished","video","onRecordingError","recordingVideo","setInterval","prevTimer","_camera$current2","stopRecording","onCloseModalHandler","resetScreenStatesAndCamera","createElement","modalParams","_extends","style","margin","swipeDirection","propagateSwipe","onSwipeComplete","container","onPress","onClose","containerCamera","ref","subContainer","isActive","torch","format","zoom","cameraView","containerTouch","disabled","containerText","textRecording","marginBottom","showButtonInfo","title"],"sourceRoot":"../../../../src","sources":["screens/ProvaVidas/index.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACvE,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,MAAM,QAAQ,cAAc;AACnE,SACEC,MAAM,EACNC,eAAe,EACfC,eAAe,QAEV,4BAA4B;AACnC,OAAOC,KAAK,MAA2B,oBAAoB;AAC3D,SAASC,KAAK,QAAQ,8BAA8B;AACpD,SAASC,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,KAAK,QAAQ,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Aa,uBAAbA,aAAa,CAAEoB,QAAS;IAClCsC,IAAI,EAAE1D,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAE0D,IAAK;IAC1BO,cAAc,EAAEjE,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAEiE;EAAe,CAC/C,CAAC,eACFlH,KAAA,CAAA0F,aAAA,CAAClF,MAAM;IACLsG,QAAQ,EAAErE,IAAK;IACf0E,KAAK,EAAC,eAAe;IACrBhB,OAAO,EAAEX;EAAoB,CAC9B,CACG,CACF,CACF,CACD,CAAC;AAEZ,CAAC"}
@@ -1,87 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { RFValue } from 'react-native-responsive-fontsize';
3
- export const styles = StyleSheet.create({
4
- container: {
5
- flex: 1
6
- },
7
- subContainer: {
8
- flex: 1
9
- },
10
- image: {
11
- width: RFValue(200),
12
- height: RFValue(200)
13
- },
14
- modalImage: {
15
- width: '100%',
16
- height: '100%',
17
- resizeMode: 'contain'
18
- },
19
- overlay: {
20
- zIndex: 2,
21
- flex: 1,
22
- height: '100%',
23
- width: '100%',
24
- backgroundColor: `rgba(44, 45, 46, 0.5)`,
25
- alignItems: `center`,
26
- justifyContent: `center`,
27
- position: `absolute`
28
- },
29
- textOverlay: {
30
- fontSize: RFValue(18),
31
- fontWeight: `500`,
32
- color: `#fff`,
33
- textAlign: `center`,
34
- width: RFValue(300),
35
- marginBottom: RFValue(20)
36
- },
37
- closeButton: {
38
- position: 'absolute',
39
- top: 20,
40
- right: 20
41
- },
42
- closeIcon: {
43
- width: 20,
44
- height: 20
45
- },
46
- containerCamera: {
47
- flex: 1
48
- },
49
- cameraView: {
50
- width: '100%',
51
- height: RFValue(250),
52
- backgroundColor: `rgba(173, 216, 230, 0)`,
53
- position: `absolute`,
54
- alignSelf: 'center',
55
- marginTop: RFValue(50),
56
- alignItems: `center`,
57
- justifyContent: `center`
58
- },
59
- containerTouch: {
60
- height: RFValue(180),
61
- alignItems: 'center'
62
- },
63
- containerText: {
64
- width: RFValue(280),
65
- height: RFValue(120),
66
- borderRadius: 150,
67
- backgroundColor: `blue`,
68
- alignItems: `center`,
69
- justifyContent: `center`,
70
- marginTop: 10
71
- },
72
- textRecording: {
73
- fontSize: RFValue(18),
74
- fontWeight: `500`,
75
- color: `#fff`
76
- },
77
- containerTextExposureAndZoom: {},
78
- textExposureAndZoom: {
79
- fontSize: 18,
80
- fontWeight: `500`,
81
- color: `#fff`,
82
- textAlign: `center`,
83
- width: RFValue(300),
84
- marginBottom: RFValue(20)
85
- }
86
- });
87
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["StyleSheet","RFValue","styles","create","container","flex","subContainer","image","width","height","modalImage","resizeMode","overlay","zIndex","backgroundColor","alignItems","justifyContent","position","textOverlay","fontSize","fontWeight","color","textAlign","marginBottom","closeButton","top","right","closeIcon","containerCamera","cameraView","alignSelf","marginTop","containerTouch","containerText","borderRadius","textRecording","containerTextExposureAndZoom","textExposureAndZoom"],"sourceRoot":"../../../../src","sources":["screens/ProvaVidas/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,OAAO,QAAQ,kCAAkC;AAE1D,OAAO,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EACtCC,SAAS,EAAE;IACTC,IAAI,EAAE;EACR,CAAC;EAEDC,YAAY,EAAE;IACZD,IAAI,EAAE;EACR,CAAC;EAEDE,KAAK,EAAE;IACLC,KAAK,EAAEP,OAAO,CAAC,GAAG,CAAC;IACnBQ,MAAM,EAAER,OAAO,CAAC,GAAG;EACrB,CAAC;EAEDS,UAAU,EAAE;IACVF,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdE,UAAU,EAAE;EACd,CAAC;EAEDC,OAAO,EAAE;IACPC,MAAM,EAAE,CAAC;IACTR,IAAI,EAAE,CAAC;IACPI,MAAM,EAAE,MAAM;IACdD,KAAK,EAAE,MAAM;IACbM,eAAe,EAAG,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