@proteoapp/react-native-onboarding 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (667) hide show
  1. package/LICENSE +16 -0
  2. package/README.md +294 -0
  3. package/assets/svgs/arrow-right.tsx +13 -0
  4. package/assets/svgs/back-document-circle.tsx +14 -0
  5. package/assets/svgs/camera-error-circle.tsx +47 -0
  6. package/assets/svgs/camera-plus.tsx +13 -0
  7. package/assets/svgs/checklist-circle.tsx +93 -0
  8. package/assets/svgs/clock-circle.tsx +40 -0
  9. package/assets/svgs/document-2.tsx +31 -0
  10. package/assets/svgs/document-avatar.tsx +148 -0
  11. package/assets/svgs/document-camera-overlay.tsx +52 -0
  12. package/assets/svgs/document-circle.tsx +14 -0
  13. package/assets/svgs/document.tsx +13 -0
  14. package/assets/svgs/face-auth-avatar.tsx +135 -0
  15. package/assets/svgs/face-auth-camera-overlay.tsx +51 -0
  16. package/assets/svgs/face-id-circle.tsx +16 -0
  17. package/assets/svgs/face-id-error.tsx +40 -0
  18. package/assets/svgs/face-id.tsx +13 -0
  19. package/assets/svgs/index.ts +24 -0
  20. package/assets/svgs/location-error-circle.tsx +61 -0
  21. package/assets/svgs/process-finished.tsx +40 -0
  22. package/assets/svgs/refresh.tsx +13 -0
  23. package/assets/svgs/shield-check-circle.tsx +13 -0
  24. package/assets/svgs/thumb-up.tsx +37 -0
  25. package/assets/svgs/upload.tsx +13 -0
  26. package/assets/svgs/x-error-circle.tsx +40 -0
  27. package/assets/svgs/x.tsx +13 -0
  28. package/lib/module/app.js +12 -0
  29. package/lib/module/app.js.map +1 -0
  30. package/lib/module/components/button.js +43 -0
  31. package/lib/module/components/button.js.map +1 -0
  32. package/lib/module/components/centered-loading.js +17 -0
  33. package/lib/module/components/centered-loading.js.map +1 -0
  34. package/lib/module/components/default-error-fallback.js +28 -0
  35. package/lib/module/components/default-error-fallback.js.map +1 -0
  36. package/lib/module/components/default-loading.js +32 -0
  37. package/lib/module/components/default-loading.js.map +1 -0
  38. package/lib/module/components/description-loading.js +42 -0
  39. package/lib/module/components/description-loading.js.map +1 -0
  40. package/lib/module/components/error-fallback.js +57 -0
  41. package/lib/module/components/error-fallback.js.map +1 -0
  42. package/lib/module/components/identification-error.js +41 -0
  43. package/lib/module/components/identification-error.js.map +1 -0
  44. package/lib/module/components/index.js +13 -0
  45. package/lib/module/components/index.js.map +1 -0
  46. package/lib/module/components/loading.js +43 -0
  47. package/lib/module/components/loading.js.map +1 -0
  48. package/lib/module/components/progress-indicator.js +45 -0
  49. package/lib/module/components/progress-indicator.js.map +1 -0
  50. package/lib/module/components/recommended-validations.js +82 -0
  51. package/lib/module/components/recommended-validations.js.map +1 -0
  52. package/lib/module/constants/camera-error-messages.js +11 -0
  53. package/lib/module/constants/camera-error-messages.js.map +1 -0
  54. package/lib/module/constants/environments.js +35 -0
  55. package/lib/module/constants/environments.js.map +1 -0
  56. package/lib/module/constants/error-header-fields.js +31 -0
  57. package/lib/module/constants/error-header-fields.js.map +1 -0
  58. package/lib/module/constants/image-type-references.js +10 -0
  59. package/lib/module/constants/image-type-references.js.map +1 -0
  60. package/lib/module/constants/index.js +11 -0
  61. package/lib/module/constants/index.js.map +1 -0
  62. package/lib/module/constants/progress-steps.js +11 -0
  63. package/lib/module/constants/progress-steps.js.map +1 -0
  64. package/lib/module/constants/route-step-index-descriptions.js +15 -0
  65. package/lib/module/constants/route-step-index-descriptions.js.map +1 -0
  66. package/lib/module/constants/route-step-indexes.js +13 -0
  67. package/lib/module/constants/route-step-indexes.js.map +1 -0
  68. package/lib/module/constants/routes-need-alter-status.js +8 -0
  69. package/lib/module/constants/routes-need-alter-status.js.map +1 -0
  70. package/lib/module/enums/document-type.js +9 -0
  71. package/lib/module/enums/document-type.js.map +1 -0
  72. package/lib/module/enums/image-type.js +10 -0
  73. package/lib/module/enums/image-type.js.map +1 -0
  74. package/lib/module/enums/index.js +10 -0
  75. package/lib/module/enums/index.js.map +1 -0
  76. package/lib/module/enums/objective.js +8 -0
  77. package/lib/module/enums/objective.js.map +1 -0
  78. package/lib/module/enums/process-status.js +10 -0
  79. package/lib/module/enums/process-status.js.map +1 -0
  80. package/lib/module/enums/request-status.js +12 -0
  81. package/lib/module/enums/request-status.js.map +1 -0
  82. package/lib/module/enums/timeline-status.js +10 -0
  83. package/lib/module/enums/timeline-status.js.map +1 -0
  84. package/lib/module/enums/validation-status.js +9 -0
  85. package/lib/module/enums/validation-status.js.map +1 -0
  86. package/lib/module/errors/camera-permission-denied.js +9 -0
  87. package/lib/module/errors/camera-permission-denied.js.map +1 -0
  88. package/lib/module/errors/camera-problem.js +9 -0
  89. package/lib/module/errors/camera-problem.js.map +1 -0
  90. package/lib/module/errors/contact-support.js +10 -0
  91. package/lib/module/errors/contact-support.js.map +1 -0
  92. package/lib/module/errors/geolocation-permission-denied.js +9 -0
  93. package/lib/module/errors/geolocation-permission-denied.js.map +1 -0
  94. package/lib/module/errors/index.js +9 -0
  95. package/lib/module/errors/index.js.map +1 -0
  96. package/lib/module/errors/non-standard-hours.js +10 -0
  97. package/lib/module/errors/non-standard-hours.js.map +1 -0
  98. package/lib/module/errors/process-already-completed.js +10 -0
  99. package/lib/module/errors/process-already-completed.js.map +1 -0
  100. package/lib/module/hooks/index.js +16 -0
  101. package/lib/module/hooks/index.js.map +1 -0
  102. package/lib/module/hooks/use-button.js +18 -0
  103. package/lib/module/hooks/use-button.js.map +1 -0
  104. package/lib/module/hooks/use-camera.js +97 -0
  105. package/lib/module/hooks/use-camera.js.map +1 -0
  106. package/lib/module/hooks/use-description-loading.js +19 -0
  107. package/lib/module/hooks/use-description-loading.js.map +1 -0
  108. package/lib/module/hooks/use-error-fallback.js +37 -0
  109. package/lib/module/hooks/use-error-fallback.js.map +1 -0
  110. package/lib/module/hooks/use-identification-error.js +15 -0
  111. package/lib/module/hooks/use-identification-error.js.map +1 -0
  112. package/lib/module/hooks/use-loading.js +39 -0
  113. package/lib/module/hooks/use-loading.js.map +1 -0
  114. package/lib/module/hooks/use-onboarding-channel.js +78 -0
  115. package/lib/module/hooks/use-onboarding-channel.js.map +1 -0
  116. package/lib/module/hooks/use-process-status.js +69 -0
  117. package/lib/module/hooks/use-process-status.js.map +1 -0
  118. package/lib/module/hooks/use-process-timeline.js +103 -0
  119. package/lib/module/hooks/use-process-timeline.js.map +1 -0
  120. package/lib/module/hooks/use-progress-indicator.js +47 -0
  121. package/lib/module/hooks/use-progress-indicator.js.map +1 -0
  122. package/lib/module/hooks/use-recommended-validations.js +37 -0
  123. package/lib/module/hooks/use-recommended-validations.js.map +1 -0
  124. package/lib/module/hooks/use-rekognition.js +35 -0
  125. package/lib/module/hooks/use-rekognition.js.map +1 -0
  126. package/lib/module/hooks/use-s3.js +94 -0
  127. package/lib/module/hooks/use-s3.js.map +1 -0
  128. package/lib/module/index.js +25 -0
  129. package/lib/module/index.js.map +1 -0
  130. package/lib/module/layouts/index.js +4 -0
  131. package/lib/module/layouts/index.js.map +1 -0
  132. package/lib/module/layouts/root/index.js +15 -0
  133. package/lib/module/layouts/root/index.js.map +1 -0
  134. package/lib/module/layouts/root/view-model.js +14 -0
  135. package/lib/module/layouts/root/view-model.js.map +1 -0
  136. package/lib/module/layouts/root/view.js +30 -0
  137. package/lib/module/layouts/root/view.js.map +1 -0
  138. package/lib/module/navigation/index.js +50 -0
  139. package/lib/module/navigation/index.js.map +1 -0
  140. package/lib/module/package.json +1 -0
  141. package/lib/module/screens/document/analysis/index.js +12 -0
  142. package/lib/module/screens/document/analysis/index.js.map +1 -0
  143. package/lib/module/screens/document/analysis/view-model.js +81 -0
  144. package/lib/module/screens/document/analysis/view-model.js.map +1 -0
  145. package/lib/module/screens/document/analysis/view.js +18 -0
  146. package/lib/module/screens/document/analysis/view.js.map +1 -0
  147. package/lib/module/screens/document/camera/index.js +12 -0
  148. package/lib/module/screens/document/camera/index.js.map +1 -0
  149. package/lib/module/screens/document/camera/view-model.js +377 -0
  150. package/lib/module/screens/document/camera/view-model.js.map +1 -0
  151. package/lib/module/screens/document/camera/view.js +191 -0
  152. package/lib/module/screens/document/camera/view.js.map +1 -0
  153. package/lib/module/screens/document/index.js +12 -0
  154. package/lib/module/screens/document/index.js.map +1 -0
  155. package/lib/module/screens/document/review/index.js +12 -0
  156. package/lib/module/screens/document/review/index.js.map +1 -0
  157. package/lib/module/screens/document/review/view-model.js +68 -0
  158. package/lib/module/screens/document/review/view-model.js.map +1 -0
  159. package/lib/module/screens/document/review/view.js +69 -0
  160. package/lib/module/screens/document/review/view.js.map +1 -0
  161. package/lib/module/screens/document/view-model.js +27 -0
  162. package/lib/module/screens/document/view-model.js.map +1 -0
  163. package/lib/module/screens/document/view.js +69 -0
  164. package/lib/module/screens/document/view.js.map +1 -0
  165. package/lib/module/screens/face-auth/analysis/index.js +12 -0
  166. package/lib/module/screens/face-auth/analysis/index.js.map +1 -0
  167. package/lib/module/screens/face-auth/analysis/view-model.js +147 -0
  168. package/lib/module/screens/face-auth/analysis/view-model.js.map +1 -0
  169. package/lib/module/screens/face-auth/analysis/view.js +25 -0
  170. package/lib/module/screens/face-auth/analysis/view.js.map +1 -0
  171. package/lib/module/screens/face-auth/camera/index.js +12 -0
  172. package/lib/module/screens/face-auth/camera/index.js.map +1 -0
  173. package/lib/module/screens/face-auth/camera/overlay.js +26 -0
  174. package/lib/module/screens/face-auth/camera/overlay.js.map +1 -0
  175. package/lib/module/screens/face-auth/camera/view-model.js +324 -0
  176. package/lib/module/screens/face-auth/camera/view-model.js.map +1 -0
  177. package/lib/module/screens/face-auth/camera/view.js +119 -0
  178. package/lib/module/screens/face-auth/camera/view.js.map +1 -0
  179. package/lib/module/screens/face-auth/index.js +12 -0
  180. package/lib/module/screens/face-auth/index.js.map +1 -0
  181. package/lib/module/screens/face-auth/view-model.js +23 -0
  182. package/lib/module/screens/face-auth/view-model.js.map +1 -0
  183. package/lib/module/screens/face-auth/view.js +50 -0
  184. package/lib/module/screens/face-auth/view.js.map +1 -0
  185. package/lib/module/screens/index.js +11 -0
  186. package/lib/module/screens/index.js.map +1 -0
  187. package/lib/module/screens/process-finished/index.js +12 -0
  188. package/lib/module/screens/process-finished/index.js.map +1 -0
  189. package/lib/module/screens/process-finished/view-model.js +18 -0
  190. package/lib/module/screens/process-finished/view-model.js.map +1 -0
  191. package/lib/module/screens/process-finished/view.js +32 -0
  192. package/lib/module/screens/process-finished/view.js.map +1 -0
  193. package/lib/module/services/api.js +31 -0
  194. package/lib/module/services/api.js.map +1 -0
  195. package/lib/module/services/credentials/generate.js +25 -0
  196. package/lib/module/services/credentials/generate.js.map +1 -0
  197. package/lib/module/services/credentials/index.js +4 -0
  198. package/lib/module/services/credentials/index.js.map +1 -0
  199. package/lib/module/services/documents/index.js +5 -0
  200. package/lib/module/services/documents/index.js.map +1 -0
  201. package/lib/module/services/documents/validate-pdf.js +33 -0
  202. package/lib/module/services/documents/validate-pdf.js.map +1 -0
  203. package/lib/module/services/documents/validate-picture.js +31 -0
  204. package/lib/module/services/documents/validate-picture.js.map +1 -0
  205. package/lib/module/services/index.js +8 -0
  206. package/lib/module/services/index.js.map +1 -0
  207. package/lib/module/services/location/get-from-user-ip.js +19 -0
  208. package/lib/module/services/location/get-from-user-ip.js.map +1 -0
  209. package/lib/module/services/location/index.js +4 -0
  210. package/lib/module/services/location/index.js.map +1 -0
  211. package/lib/module/services/onboarding/create-channel.js +24 -0
  212. package/lib/module/services/onboarding/create-channel.js.map +1 -0
  213. package/lib/module/services/onboarding/index.js +4 -0
  214. package/lib/module/services/onboarding/index.js.map +1 -0
  215. package/lib/module/services/process/alter-status.js +30 -0
  216. package/lib/module/services/process/alter-status.js.map +1 -0
  217. package/lib/module/services/process/create-error-log.js +21 -0
  218. package/lib/module/services/process/create-error-log.js.map +1 -0
  219. package/lib/module/services/process/create-timeline.js +41 -0
  220. package/lib/module/services/process/create-timeline.js.map +1 -0
  221. package/lib/module/services/process/done.js +54 -0
  222. package/lib/module/services/process/done.js.map +1 -0
  223. package/lib/module/services/process/generate-data.js +25 -0
  224. package/lib/module/services/process/generate-data.js.map +1 -0
  225. package/lib/module/services/process/index.js +9 -0
  226. package/lib/module/services/process/index.js.map +1 -0
  227. package/lib/module/services/process/start.js +40 -0
  228. package/lib/module/services/process/start.js.map +1 -0
  229. package/lib/module/store/env-variables.js +20 -0
  230. package/lib/module/store/env-variables.js.map +1 -0
  231. package/lib/module/store/flow.js +35 -0
  232. package/lib/module/store/flow.js.map +1 -0
  233. package/lib/module/store/index.js +7 -0
  234. package/lib/module/store/index.js.map +1 -0
  235. package/lib/module/store/process-timeline-queue.js +14 -0
  236. package/lib/module/store/process-timeline-queue.js.map +1 -0
  237. package/lib/module/store/process.js +31 -0
  238. package/lib/module/store/process.js.map +1 -0
  239. package/lib/module/theme/border-radius.js +9 -0
  240. package/lib/module/theme/border-radius.js.map +1 -0
  241. package/lib/module/theme/button-variants.js +19 -0
  242. package/lib/module/theme/button-variants.js.map +1 -0
  243. package/lib/module/theme/common-colors.js +15 -0
  244. package/lib/module/theme/common-colors.js.map +1 -0
  245. package/lib/module/theme/default-colors.js +7 -0
  246. package/lib/module/theme/default-colors.js.map +1 -0
  247. package/lib/module/theme/index.js +21 -0
  248. package/lib/module/theme/index.js.map +1 -0
  249. package/lib/module/theme/spacing.js +14 -0
  250. package/lib/module/theme/spacing.js.map +1 -0
  251. package/lib/module/theme/text-variants.js +17 -0
  252. package/lib/module/theme/text-variants.js.map +1 -0
  253. package/lib/module/utils/get-error-metadata.js +26 -0
  254. package/lib/module/utils/get-error-metadata.js.map +1 -0
  255. package/lib/module/utils/get-route-step.js +12 -0
  256. package/lib/module/utils/get-route-step.js.map +1 -0
  257. package/lib/module/utils/index.js +5 -0
  258. package/lib/module/utils/index.js.map +1 -0
  259. package/lib/module/view-model.js +167 -0
  260. package/lib/module/view-model.js.map +1 -0
  261. package/lib/module/view.js +45 -0
  262. package/lib/module/view.js.map +1 -0
  263. package/lib/typescript/assets/svgs/arrow-right.d.ts +3 -0
  264. package/lib/typescript/assets/svgs/arrow-right.d.ts.map +1 -0
  265. package/lib/typescript/assets/svgs/back-document-circle.d.ts +3 -0
  266. package/lib/typescript/assets/svgs/back-document-circle.d.ts.map +1 -0
  267. package/lib/typescript/assets/svgs/camera-error-circle.d.ts +7 -0
  268. package/lib/typescript/assets/svgs/camera-error-circle.d.ts.map +1 -0
  269. package/lib/typescript/assets/svgs/camera-plus.d.ts +3 -0
  270. package/lib/typescript/assets/svgs/camera-plus.d.ts.map +1 -0
  271. package/lib/typescript/assets/svgs/checklist-circle.d.ts +3 -0
  272. package/lib/typescript/assets/svgs/checklist-circle.d.ts.map +1 -0
  273. package/lib/typescript/assets/svgs/clock-circle.d.ts +7 -0
  274. package/lib/typescript/assets/svgs/clock-circle.d.ts.map +1 -0
  275. package/lib/typescript/assets/svgs/document-2.d.ts +3 -0
  276. package/lib/typescript/assets/svgs/document-2.d.ts.map +1 -0
  277. package/lib/typescript/assets/svgs/document-avatar.d.ts +3 -0
  278. package/lib/typescript/assets/svgs/document-avatar.d.ts.map +1 -0
  279. package/lib/typescript/assets/svgs/document-camera-overlay.d.ts +11 -0
  280. package/lib/typescript/assets/svgs/document-camera-overlay.d.ts.map +1 -0
  281. package/lib/typescript/assets/svgs/document-circle.d.ts +3 -0
  282. package/lib/typescript/assets/svgs/document-circle.d.ts.map +1 -0
  283. package/lib/typescript/assets/svgs/document.d.ts +3 -0
  284. package/lib/typescript/assets/svgs/document.d.ts.map +1 -0
  285. package/lib/typescript/assets/svgs/face-auth-avatar.d.ts +3 -0
  286. package/lib/typescript/assets/svgs/face-auth-avatar.d.ts.map +1 -0
  287. package/lib/typescript/assets/svgs/face-auth-camera-overlay.d.ts +11 -0
  288. package/lib/typescript/assets/svgs/face-auth-camera-overlay.d.ts.map +1 -0
  289. package/lib/typescript/assets/svgs/face-id-circle.d.ts +3 -0
  290. package/lib/typescript/assets/svgs/face-id-circle.d.ts.map +1 -0
  291. package/lib/typescript/assets/svgs/face-id-error.d.ts +7 -0
  292. package/lib/typescript/assets/svgs/face-id-error.d.ts.map +1 -0
  293. package/lib/typescript/assets/svgs/face-id.d.ts +3 -0
  294. package/lib/typescript/assets/svgs/face-id.d.ts.map +1 -0
  295. package/lib/typescript/assets/svgs/index.d.ts +25 -0
  296. package/lib/typescript/assets/svgs/index.d.ts.map +1 -0
  297. package/lib/typescript/assets/svgs/location-error-circle.d.ts +7 -0
  298. package/lib/typescript/assets/svgs/location-error-circle.d.ts.map +1 -0
  299. package/lib/typescript/assets/svgs/process-finished.d.ts +7 -0
  300. package/lib/typescript/assets/svgs/process-finished.d.ts.map +1 -0
  301. package/lib/typescript/assets/svgs/refresh.d.ts +3 -0
  302. package/lib/typescript/assets/svgs/refresh.d.ts.map +1 -0
  303. package/lib/typescript/assets/svgs/shield-check-circle.d.ts +3 -0
  304. package/lib/typescript/assets/svgs/shield-check-circle.d.ts.map +1 -0
  305. package/lib/typescript/assets/svgs/thumb-up.d.ts +7 -0
  306. package/lib/typescript/assets/svgs/thumb-up.d.ts.map +1 -0
  307. package/lib/typescript/assets/svgs/upload.d.ts +3 -0
  308. package/lib/typescript/assets/svgs/upload.d.ts.map +1 -0
  309. package/lib/typescript/assets/svgs/x-error-circle.d.ts +7 -0
  310. package/lib/typescript/assets/svgs/x-error-circle.d.ts.map +1 -0
  311. package/lib/typescript/assets/svgs/x.d.ts +3 -0
  312. package/lib/typescript/assets/svgs/x.d.ts.map +1 -0
  313. package/lib/typescript/eslint.config.d.mts +3 -0
  314. package/lib/typescript/eslint.config.d.mts.map +1 -0
  315. package/lib/typescript/package.json +1 -0
  316. package/lib/typescript/src/app.d.ts +3 -0
  317. package/lib/typescript/src/app.d.ts.map +1 -0
  318. package/lib/typescript/src/components/button.d.ts +15 -0
  319. package/lib/typescript/src/components/button.d.ts.map +1 -0
  320. package/lib/typescript/src/components/centered-loading.d.ts +3 -0
  321. package/lib/typescript/src/components/centered-loading.d.ts.map +1 -0
  322. package/lib/typescript/src/components/default-error-fallback.d.ts +6 -0
  323. package/lib/typescript/src/components/default-error-fallback.d.ts.map +1 -0
  324. package/lib/typescript/src/components/default-loading.d.ts +7 -0
  325. package/lib/typescript/src/components/default-loading.d.ts.map +1 -0
  326. package/lib/typescript/src/components/description-loading.d.ts +10 -0
  327. package/lib/typescript/src/components/description-loading.d.ts.map +1 -0
  328. package/lib/typescript/src/components/error-fallback.d.ts +5 -0
  329. package/lib/typescript/src/components/error-fallback.d.ts.map +1 -0
  330. package/lib/typescript/src/components/identification-error.d.ts +11 -0
  331. package/lib/typescript/src/components/identification-error.d.ts.map +1 -0
  332. package/lib/typescript/src/components/index.d.ts +11 -0
  333. package/lib/typescript/src/components/index.d.ts.map +1 -0
  334. package/lib/typescript/src/components/loading.d.ts +7 -0
  335. package/lib/typescript/src/components/loading.d.ts.map +1 -0
  336. package/lib/typescript/src/components/progress-indicator.d.ts +8 -0
  337. package/lib/typescript/src/components/progress-indicator.d.ts.map +1 -0
  338. package/lib/typescript/src/components/recommended-validations.d.ts +18 -0
  339. package/lib/typescript/src/components/recommended-validations.d.ts.map +1 -0
  340. package/lib/typescript/src/constants/camera-error-messages.d.ts +4 -0
  341. package/lib/typescript/src/constants/camera-error-messages.d.ts.map +1 -0
  342. package/lib/typescript/src/constants/environments.d.ts +33 -0
  343. package/lib/typescript/src/constants/environments.d.ts.map +1 -0
  344. package/lib/typescript/src/constants/error-header-fields.d.ts +40 -0
  345. package/lib/typescript/src/constants/error-header-fields.d.ts.map +1 -0
  346. package/lib/typescript/src/constants/image-type-references.d.ts +3 -0
  347. package/lib/typescript/src/constants/image-type-references.d.ts.map +1 -0
  348. package/lib/typescript/src/constants/index.d.ts +9 -0
  349. package/lib/typescript/src/constants/index.d.ts.map +1 -0
  350. package/lib/typescript/src/constants/progress-steps.d.ts +8 -0
  351. package/lib/typescript/src/constants/progress-steps.d.ts.map +1 -0
  352. package/lib/typescript/src/constants/route-step-index-descriptions.d.ts +3 -0
  353. package/lib/typescript/src/constants/route-step-index-descriptions.d.ts.map +1 -0
  354. package/lib/typescript/src/constants/route-step-indexes.d.ts +8 -0
  355. package/lib/typescript/src/constants/route-step-indexes.d.ts.map +1 -0
  356. package/lib/typescript/src/constants/routes-need-alter-status.d.ts +4 -0
  357. package/lib/typescript/src/constants/routes-need-alter-status.d.ts.map +1 -0
  358. package/lib/typescript/src/enums/document-type.d.ts +6 -0
  359. package/lib/typescript/src/enums/document-type.d.ts.map +1 -0
  360. package/lib/typescript/src/enums/image-type.d.ts +7 -0
  361. package/lib/typescript/src/enums/image-type.d.ts.map +1 -0
  362. package/lib/typescript/src/enums/index.d.ts +8 -0
  363. package/lib/typescript/src/enums/index.d.ts.map +1 -0
  364. package/lib/typescript/src/enums/objective.d.ts +5 -0
  365. package/lib/typescript/src/enums/objective.d.ts.map +1 -0
  366. package/lib/typescript/src/enums/process-status.d.ts +7 -0
  367. package/lib/typescript/src/enums/process-status.d.ts.map +1 -0
  368. package/lib/typescript/src/enums/request-status.d.ts +9 -0
  369. package/lib/typescript/src/enums/request-status.d.ts.map +1 -0
  370. package/lib/typescript/src/enums/timeline-status.d.ts +7 -0
  371. package/lib/typescript/src/enums/timeline-status.d.ts.map +1 -0
  372. package/lib/typescript/src/enums/validation-status.d.ts +6 -0
  373. package/lib/typescript/src/enums/validation-status.d.ts.map +1 -0
  374. package/lib/typescript/src/errors/camera-permission-denied.d.ts +4 -0
  375. package/lib/typescript/src/errors/camera-permission-denied.d.ts.map +1 -0
  376. package/lib/typescript/src/errors/camera-problem.d.ts +4 -0
  377. package/lib/typescript/src/errors/camera-problem.d.ts.map +1 -0
  378. package/lib/typescript/src/errors/contact-support.d.ts +5 -0
  379. package/lib/typescript/src/errors/contact-support.d.ts.map +1 -0
  380. package/lib/typescript/src/errors/geolocation-permission-denied.d.ts +4 -0
  381. package/lib/typescript/src/errors/geolocation-permission-denied.d.ts.map +1 -0
  382. package/lib/typescript/src/errors/index.d.ts +7 -0
  383. package/lib/typescript/src/errors/index.d.ts.map +1 -0
  384. package/lib/typescript/src/errors/non-standard-hours.d.ts +5 -0
  385. package/lib/typescript/src/errors/non-standard-hours.d.ts.map +1 -0
  386. package/lib/typescript/src/errors/process-already-completed.d.ts +5 -0
  387. package/lib/typescript/src/errors/process-already-completed.d.ts.map +1 -0
  388. package/lib/typescript/src/hooks/index.d.ts +14 -0
  389. package/lib/typescript/src/hooks/index.d.ts.map +1 -0
  390. package/lib/typescript/src/hooks/use-button.d.ts +12 -0
  391. package/lib/typescript/src/hooks/use-button.d.ts.map +1 -0
  392. package/lib/typescript/src/hooks/use-camera.d.ts +13 -0
  393. package/lib/typescript/src/hooks/use-camera.d.ts.map +1 -0
  394. package/lib/typescript/src/hooks/use-description-loading.d.ts +17 -0
  395. package/lib/typescript/src/hooks/use-description-loading.d.ts.map +1 -0
  396. package/lib/typescript/src/hooks/use-error-fallback.d.ts +35 -0
  397. package/lib/typescript/src/hooks/use-error-fallback.d.ts.map +1 -0
  398. package/lib/typescript/src/hooks/use-identification-error.d.ts +9 -0
  399. package/lib/typescript/src/hooks/use-identification-error.d.ts.map +1 -0
  400. package/lib/typescript/src/hooks/use-loading.d.ts +14 -0
  401. package/lib/typescript/src/hooks/use-loading.d.ts.map +1 -0
  402. package/lib/typescript/src/hooks/use-onboarding-channel.d.ts +9 -0
  403. package/lib/typescript/src/hooks/use-onboarding-channel.d.ts.map +1 -0
  404. package/lib/typescript/src/hooks/use-process-status.d.ts +7 -0
  405. package/lib/typescript/src/hooks/use-process-status.d.ts.map +1 -0
  406. package/lib/typescript/src/hooks/use-process-timeline.d.ts +14 -0
  407. package/lib/typescript/src/hooks/use-process-timeline.d.ts.map +1 -0
  408. package/lib/typescript/src/hooks/use-progress-indicator.d.ts +12 -0
  409. package/lib/typescript/src/hooks/use-progress-indicator.d.ts.map +1 -0
  410. package/lib/typescript/src/hooks/use-recommended-validations.d.ts +9 -0
  411. package/lib/typescript/src/hooks/use-recommended-validations.d.ts.map +1 -0
  412. package/lib/typescript/src/hooks/use-rekognition.d.ts +4 -0
  413. package/lib/typescript/src/hooks/use-rekognition.d.ts.map +1 -0
  414. package/lib/typescript/src/hooks/use-s3.d.ts +6 -0
  415. package/lib/typescript/src/hooks/use-s3.d.ts.map +1 -0
  416. package/lib/typescript/src/index.d.ts +12 -0
  417. package/lib/typescript/src/index.d.ts.map +1 -0
  418. package/lib/typescript/src/layouts/index.d.ts +2 -0
  419. package/lib/typescript/src/layouts/index.d.ts.map +1 -0
  420. package/lib/typescript/src/layouts/root/index.d.ts +6 -0
  421. package/lib/typescript/src/layouts/root/index.d.ts.map +1 -0
  422. package/lib/typescript/src/layouts/root/view-model.d.ts +16 -0
  423. package/lib/typescript/src/layouts/root/view-model.d.ts.map +1 -0
  424. package/lib/typescript/src/layouts/root/view.d.ts +7 -0
  425. package/lib/typescript/src/layouts/root/view.d.ts.map +1 -0
  426. package/lib/typescript/src/navigation/index.d.ts +29 -0
  427. package/lib/typescript/src/navigation/index.d.ts.map +1 -0
  428. package/lib/typescript/src/screens/document/analysis/index.d.ts +2 -0
  429. package/lib/typescript/src/screens/document/analysis/index.d.ts.map +1 -0
  430. package/lib/typescript/src/screens/document/analysis/view-model.d.ts +16 -0
  431. package/lib/typescript/src/screens/document/analysis/view-model.d.ts.map +1 -0
  432. package/lib/typescript/src/screens/document/analysis/view.d.ts +5 -0
  433. package/lib/typescript/src/screens/document/analysis/view.d.ts.map +1 -0
  434. package/lib/typescript/src/screens/document/camera/index.d.ts +2 -0
  435. package/lib/typescript/src/screens/document/camera/index.d.ts.map +1 -0
  436. package/lib/typescript/src/screens/document/camera/view-model.d.ts +63 -0
  437. package/lib/typescript/src/screens/document/camera/view-model.d.ts.map +1 -0
  438. package/lib/typescript/src/screens/document/camera/view.d.ts +5 -0
  439. package/lib/typescript/src/screens/document/camera/view.d.ts.map +1 -0
  440. package/lib/typescript/src/screens/document/index.d.ts +2 -0
  441. package/lib/typescript/src/screens/document/index.d.ts.map +1 -0
  442. package/lib/typescript/src/screens/document/review/index.d.ts +2 -0
  443. package/lib/typescript/src/screens/document/review/index.d.ts.map +1 -0
  444. package/lib/typescript/src/screens/document/review/view-model.d.ts +31 -0
  445. package/lib/typescript/src/screens/document/review/view-model.d.ts.map +1 -0
  446. package/lib/typescript/src/screens/document/review/view.d.ts +5 -0
  447. package/lib/typescript/src/screens/document/review/view.d.ts.map +1 -0
  448. package/lib/typescript/src/screens/document/view-model.d.ts +12 -0
  449. package/lib/typescript/src/screens/document/view-model.d.ts.map +1 -0
  450. package/lib/typescript/src/screens/document/view.d.ts +5 -0
  451. package/lib/typescript/src/screens/document/view.d.ts.map +1 -0
  452. package/lib/typescript/src/screens/face-auth/analysis/index.d.ts +2 -0
  453. package/lib/typescript/src/screens/face-auth/analysis/index.d.ts.map +1 -0
  454. package/lib/typescript/src/screens/face-auth/analysis/view-model.d.ts +26 -0
  455. package/lib/typescript/src/screens/face-auth/analysis/view-model.d.ts.map +1 -0
  456. package/lib/typescript/src/screens/face-auth/analysis/view.d.ts +5 -0
  457. package/lib/typescript/src/screens/face-auth/analysis/view.d.ts.map +1 -0
  458. package/lib/typescript/src/screens/face-auth/camera/index.d.ts +2 -0
  459. package/lib/typescript/src/screens/face-auth/camera/index.d.ts.map +1 -0
  460. package/lib/typescript/src/screens/face-auth/camera/overlay.d.ts +11 -0
  461. package/lib/typescript/src/screens/face-auth/camera/overlay.d.ts.map +1 -0
  462. package/lib/typescript/src/screens/face-auth/camera/view-model.d.ts +56 -0
  463. package/lib/typescript/src/screens/face-auth/camera/view-model.d.ts.map +1 -0
  464. package/lib/typescript/src/screens/face-auth/camera/view.d.ts +5 -0
  465. package/lib/typescript/src/screens/face-auth/camera/view.d.ts.map +1 -0
  466. package/lib/typescript/src/screens/face-auth/index.d.ts +2 -0
  467. package/lib/typescript/src/screens/face-auth/index.d.ts.map +1 -0
  468. package/lib/typescript/src/screens/face-auth/view-model.d.ts +17 -0
  469. package/lib/typescript/src/screens/face-auth/view-model.d.ts.map +1 -0
  470. package/lib/typescript/src/screens/face-auth/view.d.ts +5 -0
  471. package/lib/typescript/src/screens/face-auth/view.d.ts.map +1 -0
  472. package/lib/typescript/src/screens/index.d.ts +9 -0
  473. package/lib/typescript/src/screens/index.d.ts.map +1 -0
  474. package/lib/typescript/src/screens/process-finished/index.d.ts +2 -0
  475. package/lib/typescript/src/screens/process-finished/index.d.ts.map +1 -0
  476. package/lib/typescript/src/screens/process-finished/view-model.d.ts +4 -0
  477. package/lib/typescript/src/screens/process-finished/view-model.d.ts.map +1 -0
  478. package/lib/typescript/src/screens/process-finished/view.d.ts +5 -0
  479. package/lib/typescript/src/screens/process-finished/view.d.ts.map +1 -0
  480. package/lib/typescript/src/services/api.d.ts +5 -0
  481. package/lib/typescript/src/services/api.d.ts.map +1 -0
  482. package/lib/typescript/src/services/credentials/generate.d.ts +16 -0
  483. package/lib/typescript/src/services/credentials/generate.d.ts.map +1 -0
  484. package/lib/typescript/src/services/credentials/index.d.ts +2 -0
  485. package/lib/typescript/src/services/credentials/index.d.ts.map +1 -0
  486. package/lib/typescript/src/services/documents/index.d.ts +3 -0
  487. package/lib/typescript/src/services/documents/index.d.ts.map +1 -0
  488. package/lib/typescript/src/services/documents/validate-pdf.d.ts +10 -0
  489. package/lib/typescript/src/services/documents/validate-pdf.d.ts.map +1 -0
  490. package/lib/typescript/src/services/documents/validate-picture.d.ts +13 -0
  491. package/lib/typescript/src/services/documents/validate-picture.d.ts.map +1 -0
  492. package/lib/typescript/src/services/index.d.ts +6 -0
  493. package/lib/typescript/src/services/index.d.ts.map +1 -0
  494. package/lib/typescript/src/services/location/get-from-user-ip.d.ts +14 -0
  495. package/lib/typescript/src/services/location/get-from-user-ip.d.ts.map +1 -0
  496. package/lib/typescript/src/services/location/index.d.ts +2 -0
  497. package/lib/typescript/src/services/location/index.d.ts.map +1 -0
  498. package/lib/typescript/src/services/onboarding/create-channel.d.ts +16 -0
  499. package/lib/typescript/src/services/onboarding/create-channel.d.ts.map +1 -0
  500. package/lib/typescript/src/services/onboarding/index.d.ts +2 -0
  501. package/lib/typescript/src/services/onboarding/index.d.ts.map +1 -0
  502. package/lib/typescript/src/services/process/alter-status.d.ts +11 -0
  503. package/lib/typescript/src/services/process/alter-status.d.ts.map +1 -0
  504. package/lib/typescript/src/services/process/create-error-log.d.ts +7 -0
  505. package/lib/typescript/src/services/process/create-error-log.d.ts.map +1 -0
  506. package/lib/typescript/src/services/process/create-timeline.d.ts +23 -0
  507. package/lib/typescript/src/services/process/create-timeline.d.ts.map +1 -0
  508. package/lib/typescript/src/services/process/done.d.ts +35 -0
  509. package/lib/typescript/src/services/process/done.d.ts.map +1 -0
  510. package/lib/typescript/src/services/process/generate-data.d.ts +27 -0
  511. package/lib/typescript/src/services/process/generate-data.d.ts.map +1 -0
  512. package/lib/typescript/src/services/process/index.d.ts +7 -0
  513. package/lib/typescript/src/services/process/index.d.ts.map +1 -0
  514. package/lib/typescript/src/services/process/start.d.ts +33 -0
  515. package/lib/typescript/src/services/process/start.d.ts.map +1 -0
  516. package/lib/typescript/src/store/env-variables.d.ts +15 -0
  517. package/lib/typescript/src/store/env-variables.d.ts.map +1 -0
  518. package/lib/typescript/src/store/flow.d.ts +25 -0
  519. package/lib/typescript/src/store/flow.d.ts.map +1 -0
  520. package/lib/typescript/src/store/index.d.ts +5 -0
  521. package/lib/typescript/src/store/index.d.ts.map +1 -0
  522. package/lib/typescript/src/store/process-timeline-queue.d.ts +10 -0
  523. package/lib/typescript/src/store/process-timeline-queue.d.ts.map +1 -0
  524. package/lib/typescript/src/store/process.d.ts +26 -0
  525. package/lib/typescript/src/store/process.d.ts.map +1 -0
  526. package/lib/typescript/src/theme/border-radius.d.ts +7 -0
  527. package/lib/typescript/src/theme/border-radius.d.ts.map +1 -0
  528. package/lib/typescript/src/theme/button-variants.d.ts +17 -0
  529. package/lib/typescript/src/theme/button-variants.d.ts.map +1 -0
  530. package/lib/typescript/src/theme/common-colors.d.ts +13 -0
  531. package/lib/typescript/src/theme/common-colors.d.ts.map +1 -0
  532. package/lib/typescript/src/theme/default-colors.d.ts +5 -0
  533. package/lib/typescript/src/theme/default-colors.d.ts.map +1 -0
  534. package/lib/typescript/src/theme/index.d.ts +77 -0
  535. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  536. package/lib/typescript/src/theme/spacing.d.ts +12 -0
  537. package/lib/typescript/src/theme/spacing.d.ts.map +1 -0
  538. package/lib/typescript/src/theme/text-variants.d.ts +15 -0
  539. package/lib/typescript/src/theme/text-variants.d.ts.map +1 -0
  540. package/lib/typescript/src/utils/get-error-metadata.d.ts +18 -0
  541. package/lib/typescript/src/utils/get-error-metadata.d.ts.map +1 -0
  542. package/lib/typescript/src/utils/get-route-step.d.ts +9 -0
  543. package/lib/typescript/src/utils/get-route-step.d.ts.map +1 -0
  544. package/lib/typescript/src/utils/index.d.ts +3 -0
  545. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  546. package/lib/typescript/src/view-model.d.ts +84 -0
  547. package/lib/typescript/src/view-model.d.ts.map +1 -0
  548. package/lib/typescript/src/view.d.ts +5 -0
  549. package/lib/typescript/src/view.d.ts.map +1 -0
  550. package/package.json +200 -0
  551. package/src/app.tsx +9 -0
  552. package/src/components/button.tsx +70 -0
  553. package/src/components/centered-loading.tsx +11 -0
  554. package/src/components/default-error-fallback.tsx +26 -0
  555. package/src/components/default-loading.tsx +29 -0
  556. package/src/components/description-loading.tsx +32 -0
  557. package/src/components/error-fallback.tsx +55 -0
  558. package/src/components/identification-error.tsx +37 -0
  559. package/src/components/index.ts +10 -0
  560. package/src/components/loading.tsx +50 -0
  561. package/src/components/progress-indicator.tsx +46 -0
  562. package/src/components/recommended-validations.tsx +98 -0
  563. package/src/constants/camera-error-messages.ts +24 -0
  564. package/src/constants/environments.ts +35 -0
  565. package/src/constants/error-header-fields.ts +41 -0
  566. package/src/constants/image-type-references.ts +8 -0
  567. package/src/constants/index.ts +8 -0
  568. package/src/constants/progress-steps.ts +23 -0
  569. package/src/constants/route-step-index-descriptions.ts +14 -0
  570. package/src/constants/route-step-indexes.ts +20 -0
  571. package/src/constants/routes-need-alter-status.ts +8 -0
  572. package/src/enums/document-type.ts +5 -0
  573. package/src/enums/image-type.ts +6 -0
  574. package/src/enums/index.ts +7 -0
  575. package/src/enums/objective.ts +4 -0
  576. package/src/enums/process-status.ts +6 -0
  577. package/src/enums/request-status.ts +8 -0
  578. package/src/enums/timeline-status.ts +6 -0
  579. package/src/enums/validation-status.ts +5 -0
  580. package/src/errors/camera-permission-denied.ts +9 -0
  581. package/src/errors/camera-problem.ts +7 -0
  582. package/src/errors/contact-support.ts +10 -0
  583. package/src/errors/geolocation-permission-denied.ts +9 -0
  584. package/src/errors/index.ts +6 -0
  585. package/src/errors/non-standard-hours.ts +11 -0
  586. package/src/errors/process-already-completed.ts +10 -0
  587. package/src/hooks/index.ts +13 -0
  588. package/src/hooks/use-button.ts +22 -0
  589. package/src/hooks/use-camera.ts +131 -0
  590. package/src/hooks/use-description-loading.ts +19 -0
  591. package/src/hooks/use-error-fallback.ts +33 -0
  592. package/src/hooks/use-identification-error.ts +13 -0
  593. package/src/hooks/use-loading.ts +52 -0
  594. package/src/hooks/use-onboarding-channel.ts +115 -0
  595. package/src/hooks/use-process-status.ts +82 -0
  596. package/src/hooks/use-process-timeline.ts +155 -0
  597. package/src/hooks/use-progress-indicator.ts +51 -0
  598. package/src/hooks/use-recommended-validations.ts +52 -0
  599. package/src/hooks/use-rekognition.ts +41 -0
  600. package/src/hooks/use-s3.ts +113 -0
  601. package/src/index.tsx +31 -0
  602. package/src/layouts/index.ts +1 -0
  603. package/src/layouts/root/index.tsx +12 -0
  604. package/src/layouts/root/view-model.ts +13 -0
  605. package/src/layouts/root/view.tsx +24 -0
  606. package/src/navigation/index.tsx +92 -0
  607. package/src/screens/document/analysis/index.tsx +8 -0
  608. package/src/screens/document/analysis/view-model.ts +95 -0
  609. package/src/screens/document/analysis/view.tsx +20 -0
  610. package/src/screens/document/camera/index.tsx +8 -0
  611. package/src/screens/document/camera/view-model.ts +570 -0
  612. package/src/screens/document/camera/view.tsx +196 -0
  613. package/src/screens/document/index.tsx +8 -0
  614. package/src/screens/document/review/index.tsx +8 -0
  615. package/src/screens/document/review/view-model.ts +77 -0
  616. package/src/screens/document/review/view.tsx +69 -0
  617. package/src/screens/document/view-model.ts +29 -0
  618. package/src/screens/document/view.tsx +80 -0
  619. package/src/screens/face-auth/analysis/index.tsx +8 -0
  620. package/src/screens/face-auth/analysis/view-model.ts +200 -0
  621. package/src/screens/face-auth/analysis/view.tsx +31 -0
  622. package/src/screens/face-auth/camera/index.tsx +8 -0
  623. package/src/screens/face-auth/camera/overlay.tsx +31 -0
  624. package/src/screens/face-auth/camera/view-model.ts +462 -0
  625. package/src/screens/face-auth/camera/view.tsx +128 -0
  626. package/src/screens/face-auth/index.tsx +8 -0
  627. package/src/screens/face-auth/view-model.ts +25 -0
  628. package/src/screens/face-auth/view.tsx +51 -0
  629. package/src/screens/index.ts +8 -0
  630. package/src/screens/process-finished/index.tsx +8 -0
  631. package/src/screens/process-finished/view-model.ts +15 -0
  632. package/src/screens/process-finished/view.tsx +24 -0
  633. package/src/services/api.ts +39 -0
  634. package/src/services/credentials/generate.ts +37 -0
  635. package/src/services/credentials/index.ts +1 -0
  636. package/src/services/documents/index.ts +2 -0
  637. package/src/services/documents/validate-pdf.ts +46 -0
  638. package/src/services/documents/validate-picture.ts +50 -0
  639. package/src/services/index.ts +5 -0
  640. package/src/services/location/get-from-user-ip.ts +31 -0
  641. package/src/services/location/index.ts +1 -0
  642. package/src/services/onboarding/create-channel.ts +45 -0
  643. package/src/services/onboarding/index.ts +1 -0
  644. package/src/services/process/alter-status.ts +38 -0
  645. package/src/services/process/create-error-log.ts +28 -0
  646. package/src/services/process/create-timeline.ts +75 -0
  647. package/src/services/process/done.ts +114 -0
  648. package/src/services/process/generate-data.ts +54 -0
  649. package/src/services/process/index.ts +6 -0
  650. package/src/services/process/start.ts +86 -0
  651. package/src/store/env-variables.ts +37 -0
  652. package/src/store/flow.ts +54 -0
  653. package/src/store/index.ts +4 -0
  654. package/src/store/process-timeline-queue.ts +25 -0
  655. package/src/store/process.ts +64 -0
  656. package/src/theme/border-radius.ts +6 -0
  657. package/src/theme/button-variants.ts +16 -0
  658. package/src/theme/common-colors.ts +12 -0
  659. package/src/theme/default-colors.ts +4 -0
  660. package/src/theme/index.ts +31 -0
  661. package/src/theme/spacing.ts +11 -0
  662. package/src/theme/text-variants.ts +14 -0
  663. package/src/utils/get-error-metadata.ts +46 -0
  664. package/src/utils/get-route-step.ts +24 -0
  665. package/src/utils/index.ts +2 -0
  666. package/src/view-model.ts +222 -0
  667. package/src/view.tsx +52 -0
@@ -0,0 +1,377 @@
1
+ "use strict";
2
+
3
+ import { useCallback, useRef, useState } from 'react';
4
+ import { Image, Platform } from 'react-native';
5
+ import { Worklets } from 'react-native-worklets-core';
6
+ import { useNavigation, useRoute } from '@react-navigation/native';
7
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
8
+ import { useTheme } from '@shopify/restyle';
9
+ import { runAtTargetFps, useFrameProcessor } from 'react-native-vision-camera';
10
+ import { useResizePlugin } from 'vision-camera-resize-plugin';
11
+ import { ColorConversionCodes, ContourApproximationModes, MorphShapes, MorphTypes, ObjectType, OpenCV, RetrievalModes } from 'react-native-fast-opencv';
12
+ import ImageEditor from '@react-native-community/image-editor';
13
+ import { useDebounce } from 'use-debounce';
14
+ import { BackDocumentCircleSvg, DocumentCircleSvg } from "../../../../assets/svgs/index.js";
15
+ import { useFlowStore, useProcessStore } from "../../../store/index.js";
16
+ import { validateDocumentPicture } from "../../../services/index.js";
17
+ import { useButton, useCamera, useLoading, useProcessTimeline, useS3 } from "../../../hooks/index.js";
18
+ import { ImageType, TimelineStatus, ValidationStatus } from "../../../enums/index.js";
19
+ import { ContactSupportError } from "../../../errors/index.js";
20
+ export const useDocumentCameraViewModel = () => {
21
+ const route = useRoute();
22
+ const navigation = useNavigation();
23
+ const insets = useSafeAreaInsets();
24
+ const containerRef = useRef(null);
25
+ const [containerLayout, setContainerLayout] = useState({
26
+ x: 0,
27
+ y: 0,
28
+ width: 0,
29
+ height: 0
30
+ });
31
+ const [originalPictureUri, setOriginalPictureUri] = useState(null);
32
+ const [pictureValidation, setPictureValidation] = useState(null);
33
+ const [pictureValidationError, setPictureValidationError] = useState(null);
34
+ const [documentIsAligned, setDocumentIsAligned] = useState(false);
35
+ const [documentIsAlignedDebounced] = useDebounce(documentIsAligned, 300);
36
+ const {
37
+ colors,
38
+ spacing
39
+ } = useTheme();
40
+ const {
41
+ tenant,
42
+ isSimplifiedMode,
43
+ hasDigitalFile
44
+ } = useProcessStore(state => ({
45
+ tenant: state.tenant,
46
+ isSimplifiedMode: state.isSimplifiedMode,
47
+ hasDigitalFile: state.hasDigitalFile
48
+ }));
49
+ const {
50
+ backgroundCheckExecutionId,
51
+ setFrontDocumentPictureUrl,
52
+ setBackDocumentPictureUrl
53
+ } = useFlowStore(state => ({
54
+ backgroundCheckExecutionId: state.backgroundCheckExecutionId,
55
+ facePictureUrl: state.facePictureUrl,
56
+ faceConfidence: state.faceConfidence,
57
+ frontDocumentPictureUrl: state.frontDocumentPictureUrl,
58
+ setFrontDocumentPictureUrl: state.setFrontDocumentPictureUrl,
59
+ setBackDocumentPictureUrl: state.setBackDocumentPictureUrl
60
+ }));
61
+ const {
62
+ ref,
63
+ device,
64
+ hasPermission,
65
+ isReady,
66
+ isTakingPicture,
67
+ enablePhoto,
68
+ onInitialized,
69
+ onError,
70
+ takePicture
71
+ } = useCamera('back');
72
+ const s3 = useS3(route.params.side === 'front' ? ImageType.FRONT_DOCUMENT : ImageType.BACK_DOCUMENT);
73
+ const {
74
+ resize
75
+ } = useResizePlugin();
76
+ const {
77
+ create: createProcessTimeline
78
+ } = useProcessTimeline();
79
+ const mainImage = route.params.side === 'front' ? DocumentCircleSvg : BackDocumentCircleSvg;
80
+ const title = route.params.side === 'front' ? 'Foque na frente do documento' : 'Foque no verso do documento';
81
+ const bottomSafeArea = insets.bottom + spacing.xs;
82
+ const pictureTaken = Boolean(originalPictureUri);
83
+ const pictureValidationColor = pictureValidation?.status === ValidationStatus.VALIDATING ? colors.loading : pictureValidation?.status === ValidationStatus.VALID ? colors.success : colors.failure;
84
+ const isActive = isReady && !pictureTaken;
85
+ const rectBorderColor = !isActive && !pictureValidation ? colors.gray : pictureValidation ? pictureValidationColor : documentIsAlignedDebounced ? colors.green : colors.red;
86
+ const rectWidth = containerLayout.width * 0.9;
87
+ const rectHeight = containerLayout.height * 0.28;
88
+ const rectX = (containerLayout.width - rectWidth) / 2;
89
+ const rectY = (containerLayout.height - rectHeight) / 2;
90
+ const rectToleranceX = rectWidth * 0.05;
91
+ const rectToleranceY = rectHeight * 0.05;
92
+ const rectCenterX = rectX + rectWidth / 2;
93
+ const rectCenterY = rectY + rectHeight / 2;
94
+ const isLoadingLayout = !rectWidth || !rectHeight;
95
+ const captureButtonProps = useButton();
96
+ const sendButtonProps = useButton({
97
+ variant: 'outline',
98
+ mainColor: 'white'
99
+ });
100
+ const tryAgainButtonProps = useButton();
101
+ const loadingLayoutProps = useLoading({
102
+ isActive: isLoadingLayout
103
+ });
104
+ if (!backgroundCheckExecutionId) throw new ContactSupportError('0416');
105
+ const onContainerLayout = useCallback(() => {
106
+ containerRef.current?.measureInWindow((x, y, width, height) => {
107
+ setContainerLayout({
108
+ x,
109
+ y,
110
+ width,
111
+ height
112
+ });
113
+ });
114
+ }, []);
115
+ const onStopped = useCallback(() => {
116
+ setDocumentIsAligned(false);
117
+ }, []);
118
+ const handlePictureValidation = useCallback(async pictureUri => {
119
+ try {
120
+ const pictureBytes = await s3.prepare(pictureUri);
121
+ setPictureValidation({
122
+ status: ValidationStatus.VALIDATING,
123
+ statusMessage: 'Foto processada',
124
+ actionMessage: 'Enviando para validação'
125
+ });
126
+ const pictureUrl = await s3.upload(pictureBytes);
127
+ setPictureValidation({
128
+ status: ValidationStatus.VALIDATING,
129
+ statusMessage: 'Estamos validando o seu documento',
130
+ actionMessage: 'Aguarde um momento'
131
+ });
132
+ const data = await validateDocumentPicture({
133
+ tenant,
134
+ backgroundCheckExecutionId,
135
+ url: pictureUrl
136
+ });
137
+ const isFailed = data.ValidationFeedback.length > 0;
138
+ const isError = data.status === 'error';
139
+ const isDifferentSide = data.class.toLowerCase() !== route.params.side;
140
+ const isSuccess = !isFailed && !isError && !isDifferentSide;
141
+ const validationStatus = isSuccess ? ValidationStatus.VALID : ValidationStatus.INVALID;
142
+ const validationStatusMessage = isSuccess ? 'Foto validada com sucesso' : isFailed ? data.ValidationFeedback[0].replace(/\.$/, '') : isDifferentSide ? `A foto enviada não corresponde ${route.params.side === 'front' ? 'a frente' : 'ao verso'} do documento` : 'Foto fora do padrão';
143
+ const validationActionMessage = isSuccess ? 'Você será redirecionado em instantes' : isDifferentSide ? 'Tire a foto novamente' : 'Por favor, tente novamente';
144
+ const timelineStatus = isSuccess ? TimelineStatus.SUCCESS : TimelineStatus.FAILURE;
145
+ const timelineMessage = isSuccess ? validationStatusMessage : `${validationStatusMessage}. Usuário direcionado para tentar novamente`;
146
+ setPictureValidation({
147
+ status: validationStatus,
148
+ statusMessage: validationStatusMessage,
149
+ actionMessage: validationActionMessage
150
+ });
151
+ createProcessTimeline({
152
+ status: timelineStatus,
153
+ message: timelineMessage,
154
+ image: {
155
+ type: route.params.side === 'front' ? ImageType.FRONT_DOCUMENT : ImageType.BACK_DOCUMENT,
156
+ url: pictureUrl
157
+ }
158
+ });
159
+ if (isSuccess) {
160
+ route.params.side === 'front' ? setFrontDocumentPictureUrl(pictureUrl) : setBackDocumentPictureUrl(pictureUrl);
161
+ setTimeout(async () => {
162
+ if (isSimplifiedMode) {
163
+ if (route.params.side === 'front') {
164
+ return navigation.replace('DocumentCamera', {
165
+ side: 'back'
166
+ });
167
+ }
168
+ return navigation.replace('DocumentAnalysis');
169
+ }
170
+ return navigation.replace('DocumentReview', {
171
+ pictureUri,
172
+ side: route.params.side
173
+ });
174
+ }, 1500);
175
+ }
176
+ } catch (err) {
177
+ if (err instanceof Error) {
178
+ setPictureValidationError(err);
179
+ }
180
+ }
181
+ }, [backgroundCheckExecutionId, createProcessTimeline, isSimplifiedMode, navigation, route.params.side, s3, setBackDocumentPictureUrl, setFrontDocumentPictureUrl, tenant]);
182
+ const onCapturePress = useCallback(async () => {
183
+ const picture = await takePicture();
184
+ if (!picture) return;
185
+ const originalUri = `file://${picture.path}`;
186
+ setOriginalPictureUri(originalUri);
187
+ setPictureValidation({
188
+ status: ValidationStatus.VALIDATING,
189
+ statusMessage: 'A foto está sendo enviada',
190
+ actionMessage: 'Aguarde um momento'
191
+ });
192
+ createProcessTimeline({
193
+ status: TimelineStatus.SUCCESS,
194
+ message: 'Usuário posicionou o documento e realizou a captura'
195
+ });
196
+ const {
197
+ width,
198
+ height
199
+ } = await new Promise((resolve, reject) => {
200
+ if (Platform.OS === 'android') {
201
+ return resolve({
202
+ width: picture.width,
203
+ height: picture.height
204
+ });
205
+ }
206
+ Image.getSize(originalUri, (w, h) => resolve({
207
+ width: w,
208
+ height: h
209
+ }), reject);
210
+ });
211
+ const scaleX = width / containerLayout.width;
212
+ const scaleY = height / containerLayout.height;
213
+ const centerXImage = rectCenterX * scaleX;
214
+ const centerYImage = rectCenterY * scaleY;
215
+ const rectHeightImage = rectHeight * scaleY;
216
+ const squareSize = rectHeightImage * 1.5;
217
+ const halfSquare = squareSize / 2;
218
+ const rawCropX = centerXImage - halfSquare;
219
+ const rawCropY = centerYImage - halfSquare;
220
+ const cropX = Math.max(0, Math.min(rawCropX, width - squareSize));
221
+ const cropY = Math.max(0, Math.min(rawCropY, height - squareSize));
222
+ const croppedPicture = await ImageEditor.cropImage(originalUri, {
223
+ offset: {
224
+ x: Math.round(cropX),
225
+ y: Math.round(cropY)
226
+ },
227
+ size: {
228
+ width: Math.round(squareSize),
229
+ height: Math.round(squareSize)
230
+ }
231
+ });
232
+ await handlePictureValidation(croppedPicture.uri);
233
+ }, [containerLayout, createProcessTimeline, handlePictureValidation, rectCenterX, rectCenterY, rectHeight, takePicture]);
234
+ const onTryAgainPress = () => {
235
+ setOriginalPictureUri(null);
236
+ createProcessTimeline({
237
+ status: TimelineStatus.INFO,
238
+ message: 'Usuário optou por tentar tirar a foto novamente'
239
+ });
240
+ setTimeout(() => {
241
+ setPictureValidation(null);
242
+ route.params.side === 'front' ? setFrontDocumentPictureUrl(null) : setBackDocumentPictureUrl(null);
243
+ }, 500);
244
+ };
245
+ const onAlignmentChange = Worklets.createRunOnJS(value => {
246
+ setDocumentIsAligned(value);
247
+ });
248
+ const frameProcessor = useFrameProcessor(frame => {
249
+ 'worklet';
250
+
251
+ runAtTargetFps(5, () => {
252
+ if (!frame || containerLayout.width === 0 || containerLayout.height === 0) {
253
+ onAlignmentChange(false);
254
+ OpenCV.clearBuffers();
255
+ return;
256
+ }
257
+ const ratio = 500 / frame.width;
258
+ const resizedWidth = frame.width * ratio;
259
+ const resizedHeight = frame.height * ratio;
260
+ const resized = resize(frame, {
261
+ dataType: 'uint8',
262
+ pixelFormat: 'bgr',
263
+ scale: {
264
+ width: resizedWidth,
265
+ height: resizedHeight
266
+ }
267
+ });
268
+ const source = OpenCV.bufferToMat('uint8', resizedHeight, resizedWidth, 3, resized);
269
+ const kernel = OpenCV.createObject(ObjectType.Size, 4, 4);
270
+ const blurKernel = OpenCV.createObject(ObjectType.Size, 7, 7);
271
+ const structuringElement = OpenCV.invoke('getStructuringElement', MorphShapes.MORPH_RECT, kernel);
272
+ const contours = OpenCV.createObject(ObjectType.PointVectorOfVectors);
273
+ OpenCV.invoke('cvtColor', source, source, ColorConversionCodes.COLOR_BGR2GRAY);
274
+ OpenCV.invoke('GaussianBlur', source, source, blurKernel, 0);
275
+ OpenCV.invoke('morphologyEx', source, source, MorphTypes.MORPH_OPEN, structuringElement);
276
+ OpenCV.invoke('morphologyEx', source, source, MorphTypes.MORPH_CLOSE, structuringElement);
277
+ OpenCV.invoke('threshold', source, source, 0, 255, 8);
278
+ OpenCV.invoke('findContours', source, contours, RetrievalModes.RETR_EXTERNAL, ContourApproximationModes.CHAIN_APPROX_SIMPLE);
279
+ const totalArea = resizedWidth * resizedHeight;
280
+ const minArea = Platform.OS === 'android' ? totalArea * 0.12 : totalArea * 0.14;
281
+ const maxArea = Platform.OS === 'android' ? totalArea * 0.18 : totalArea * 0.2;
282
+ const contoursMats = OpenCV.toJSValue(contours);
283
+ const contoursWithArea = contoursMats.array.map((_, index) => {
284
+ const contour = OpenCV.copyObjectFromVector(contours, index);
285
+ const peri = OpenCV.invoke('arcLength', contour, true);
286
+ const approx = OpenCV.createObject(ObjectType.PointVector);
287
+ OpenCV.invoke('approxPolyDP', contour, approx, peri.value * 0.1, true);
288
+ const points = OpenCV.toJSValue(approx);
289
+ if (points.array.length < 4 || points.array.length > 6) return;
290
+ const contourArea = OpenCV.invoke('contourArea', contour);
291
+ if (contourArea.value < minArea || contourArea.value > maxArea) return;
292
+ const boundingRect = OpenCV.invoke('boundingRect', contour);
293
+ const rect = OpenCV.toJSValue(boundingRect);
294
+ const aspectRatio = rect.width > rect.height ? rect.width / rect.height : rect.height / rect.width;
295
+ if (aspectRatio < 1.3 || aspectRatio > 1.7) return;
296
+ return {
297
+ points: points.array,
298
+ area: contourArea.value
299
+ };
300
+ }).filter(item => !!item);
301
+ if (contoursWithArea.length === 0) {
302
+ onAlignmentChange(false);
303
+ OpenCV.clearBuffers();
304
+ return;
305
+ }
306
+ const largestContour = contoursWithArea.reduce((prev, current) => current.area > prev.area ? current : prev);
307
+ const transformedPoints = largestContour.points.map(point => ({
308
+ x: (resizedHeight - point.y) * (containerLayout.width / resizedHeight),
309
+ y: (resizedWidth - point.x) * (containerLayout.height / resizedWidth)
310
+ }));
311
+ const allPointsInside = transformedPoints.every(point => {
312
+ const normalizedX = (point.x - rectX) / rectWidth;
313
+ const normalizedY = (point.y - rectY) / rectHeight;
314
+ return normalizedX >= 0 && normalizedX <= 1 && normalizedY >= 0 && normalizedY <= 1;
315
+ });
316
+ const centroid = transformedPoints.reduce((acc, point, index, array) => {
317
+ const isLast = index === array.length - 1;
318
+ const sumX = acc.x + point.x;
319
+ const sumY = acc.y + point.y;
320
+ if (isLast) {
321
+ return {
322
+ x: sumX / array.length,
323
+ y: sumY / array.length
324
+ };
325
+ }
326
+ return {
327
+ x: sumX,
328
+ y: sumY
329
+ };
330
+ }, {
331
+ x: 0,
332
+ y: 0
333
+ });
334
+ const isCentered = Math.abs(centroid.x - rectCenterX) <= rectToleranceX && Math.abs(centroid.y - rectCenterY) <= rectToleranceY;
335
+ const isAligned = allPointsInside && isCentered;
336
+ onAlignmentChange(isAligned);
337
+ OpenCV.clearBuffers();
338
+ });
339
+ }, [containerLayout, onAlignmentChange]);
340
+ if (pictureValidationError) throw pictureValidationError;
341
+ return {
342
+ containerRef,
343
+ ref,
344
+ device,
345
+ bottomSafeArea,
346
+ loadingLayoutProps,
347
+ mainImage,
348
+ mainImageColor: colors.white,
349
+ title,
350
+ rectBorderColor,
351
+ pictureValidationColor,
352
+ rectWidth,
353
+ rectHeight,
354
+ rectX,
355
+ rectY,
356
+ originalPictureUri,
357
+ pictureValidation,
358
+ captureButtonProps,
359
+ sendButtonProps,
360
+ tryAgainButtonProps,
361
+ isLoadingLayout,
362
+ isActive,
363
+ hasPermission,
364
+ enablePhoto,
365
+ showFooterButtonContainer: !pictureTaken || pictureTaken && pictureValidation?.status === ValidationStatus.INVALID,
366
+ captureButtonDisabled: !documentIsAlignedDebounced || isTakingPicture,
367
+ hasDigitalFile,
368
+ onContainerLayout,
369
+ onInitialized,
370
+ onStopped,
371
+ onError,
372
+ onCapturePress,
373
+ onTryAgainPress,
374
+ frameProcessor
375
+ };
376
+ };
377
+ //# sourceMappingURL=view-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","useRef","useState","Image","Platform","Worklets","useNavigation","useRoute","useSafeAreaInsets","useTheme","runAtTargetFps","useFrameProcessor","useResizePlugin","ColorConversionCodes","ContourApproximationModes","MorphShapes","MorphTypes","ObjectType","OpenCV","RetrievalModes","ImageEditor","useDebounce","BackDocumentCircleSvg","DocumentCircleSvg","useFlowStore","useProcessStore","validateDocumentPicture","useButton","useCamera","useLoading","useProcessTimeline","useS3","ImageType","TimelineStatus","ValidationStatus","ContactSupportError","useDocumentCameraViewModel","route","navigation","insets","containerRef","containerLayout","setContainerLayout","x","y","width","height","originalPictureUri","setOriginalPictureUri","pictureValidation","setPictureValidation","pictureValidationError","setPictureValidationError","documentIsAligned","setDocumentIsAligned","documentIsAlignedDebounced","colors","spacing","tenant","isSimplifiedMode","hasDigitalFile","state","backgroundCheckExecutionId","setFrontDocumentPictureUrl","setBackDocumentPictureUrl","facePictureUrl","faceConfidence","frontDocumentPictureUrl","ref","device","hasPermission","isReady","isTakingPicture","enablePhoto","onInitialized","onError","takePicture","s3","params","side","FRONT_DOCUMENT","BACK_DOCUMENT","resize","create","createProcessTimeline","mainImage","title","bottomSafeArea","bottom","xs","pictureTaken","Boolean","pictureValidationColor","status","VALIDATING","loading","VALID","success","failure","isActive","rectBorderColor","gray","green","red","rectWidth","rectHeight","rectX","rectY","rectToleranceX","rectToleranceY","rectCenterX","rectCenterY","isLoadingLayout","captureButtonProps","sendButtonProps","variant","mainColor","tryAgainButtonProps","loadingLayoutProps","onContainerLayout","current","measureInWindow","onStopped","handlePictureValidation","pictureUri","pictureBytes","prepare","statusMessage","actionMessage","pictureUrl","upload","data","url","isFailed","ValidationFeedback","length","isError","isDifferentSide","class","toLowerCase","isSuccess","validationStatus","INVALID","validationStatusMessage","replace","validationActionMessage","timelineStatus","SUCCESS","FAILURE","timelineMessage","message","image","type","setTimeout","err","Error","onCapturePress","picture","originalUri","path","Promise","resolve","reject","OS","getSize","w","h","scaleX","scaleY","centerXImage","centerYImage","rectHeightImage","squareSize","halfSquare","rawCropX","rawCropY","cropX","Math","max","min","cropY","croppedPicture","cropImage","offset","round","size","uri","onTryAgainPress","INFO","onAlignmentChange","createRunOnJS","value","frameProcessor","frame","clearBuffers","ratio","resizedWidth","resizedHeight","resized","dataType","pixelFormat","scale","source","bufferToMat","kernel","createObject","Size","blurKernel","structuringElement","invoke","MORPH_RECT","contours","PointVectorOfVectors","COLOR_BGR2GRAY","MORPH_OPEN","MORPH_CLOSE","RETR_EXTERNAL","CHAIN_APPROX_SIMPLE","totalArea","minArea","maxArea","contoursMats","toJSValue","contoursWithArea","array","map","_","index","contour","copyObjectFromVector","peri","approx","PointVector","points","contourArea","boundingRect","rect","aspectRatio","area","filter","item","largestContour","reduce","prev","transformedPoints","point","allPointsInside","every","normalizedX","normalizedY","centroid","acc","isLast","sumX","sumY","isCentered","abs","isAligned","mainImageColor","white","showFooterButtonContainer","captureButtonDisabled"],"sourceRoot":"../../../../../src","sources":["screens/document/camera/view-model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAErD,SAASC,KAAK,EAAEC,QAAQ,QAA8B,cAAc;AACpE,SAASC,QAAQ,QAAQ,4BAA4B;AACrD,SACEC,aAAa,EACbC,QAAQ,QAEH,0BAA0B;AAEjC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,cAAc,EAAEC,iBAAiB,QAAQ,4BAA4B;AAC9E,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,SACEC,oBAAoB,EACpBC,yBAAyB,EACzBC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,MAAM,EACNC,cAAc,QACT,0BAA0B;AACjC,OAAOC,WAAW,MAAM,sCAAsC;AAC9D,SAASC,WAAW,QAAQ,cAAc;AAC1C,SACEC,qBAAqB,EACrBC,iBAAiB,QACZ,kCAAyB;AAEhC,SAASC,YAAY,EAAEC,eAAe,QAAQ,yBAAgB;AAC9D,SAASC,uBAAuB,QAAQ,4BAAmB;AAC3D,SACEC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,kBAAkB,EAClBC,KAAK,QACA,yBAAgB;AACvB,SAASC,SAAS,EAAEC,cAAc,EAAEC,gBAAgB,QAAQ,yBAAgB;AAE5E,SAASC,mBAAmB,QAAQ,0BAAiB;AAQrD,OAAO,MAAM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","ignoreList":[]}
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+
3
+ import { Fragment } from 'react';
4
+ import { Image, StyleSheet } from 'react-native';
5
+ import { Camera } from 'react-native-vision-camera';
6
+ import { createBox, createText } from '@shopify/restyle';
7
+ import { CameraPlusSvg, Document2Svg, DocumentCameraOverlaySvg, RefreshSvg, UploadSvg } from "../../../../assets/svgs/index.js";
8
+ import { ValidationStatus } from "../../../enums/index.js";
9
+ import { Button, CenteredLoading } from "../../../components/index.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const Box = createBox();
12
+ const Text = createText();
13
+ export const DocumentCameraView = ({
14
+ containerRef,
15
+ ref,
16
+ device,
17
+ bottomSafeArea,
18
+ loadingLayoutProps,
19
+ mainImage: MainImage,
20
+ mainImageColor,
21
+ title,
22
+ rectBorderColor,
23
+ pictureValidationColor,
24
+ rectWidth,
25
+ rectHeight,
26
+ rectX,
27
+ rectY,
28
+ originalPictureUri,
29
+ pictureValidation,
30
+ captureButtonProps,
31
+ sendButtonProps,
32
+ tryAgainButtonProps,
33
+ isLoadingLayout,
34
+ isActive,
35
+ hasPermission,
36
+ enablePhoto,
37
+ showFooterButtonContainer,
38
+ captureButtonDisabled,
39
+ hasDigitalFile,
40
+ onContainerLayout,
41
+ onInitialized,
42
+ onStopped,
43
+ onError,
44
+ onCapturePress,
45
+ onTryAgainPress,
46
+ frameProcessor
47
+ }) => /*#__PURE__*/_jsx(Box, {
48
+ ref: containerRef,
49
+ flex: 1,
50
+ onLayout: onContainerLayout,
51
+ children: isLoadingLayout ? /*#__PURE__*/_jsx(CenteredLoading, {
52
+ ...loadingLayoutProps
53
+ }) : /*#__PURE__*/_jsxs(Fragment, {
54
+ children: [!!device && hasPermission && /*#__PURE__*/_jsx(Box, {
55
+ bg: "black",
56
+ style: StyleSheet.absoluteFillObject,
57
+ children: /*#__PURE__*/_jsx(Camera, {
58
+ ref: ref,
59
+ isActive: isActive,
60
+ photo: enablePhoto,
61
+ device: device,
62
+ frameProcessor: frameProcessor,
63
+ photoQualityBalance: "balanced",
64
+ style: StyleSheet.absoluteFillObject,
65
+ onInitialized: onInitialized,
66
+ onStopped: onStopped,
67
+ onError: onError
68
+ })
69
+ }), !isActive && originalPictureUri && /*#__PURE__*/_jsx(Image, {
70
+ source: {
71
+ uri: originalPictureUri
72
+ },
73
+ style: StyleSheet.absoluteFill
74
+ }), /*#__PURE__*/_jsxs(Box, {
75
+ position: "absolute",
76
+ top: rectY,
77
+ left: "50%",
78
+ alignItems: "center",
79
+ rowGap: "s",
80
+ pb: "s",
81
+ zIndex: 10,
82
+ style: {
83
+ transform: [{
84
+ translateX: '-50%'
85
+ }, {
86
+ translateY: '-100%'
87
+ }]
88
+ },
89
+ children: [/*#__PURE__*/_jsx(MainImage, {
90
+ width: 50,
91
+ height: 50,
92
+ color: mainImageColor
93
+ }), /*#__PURE__*/_jsx(Text, {
94
+ color: "white",
95
+ mt: "s",
96
+ children: title
97
+ }), /*#__PURE__*/_jsx(Text, {
98
+ color: "white",
99
+ children: "Garanta que o texto e a imagem estejam vis\xEDveis"
100
+ })]
101
+ }), /*#__PURE__*/_jsx(DocumentCameraOverlaySvg, {
102
+ rectWidth: rectWidth,
103
+ rectHeight: rectHeight,
104
+ rectX: rectX,
105
+ rectY: rectY,
106
+ rectBorderColor: rectBorderColor
107
+ }), !isActive && /*#__PURE__*/_jsx(Box, {
108
+ position: "absolute",
109
+ top: rectY + rectHeight / 2,
110
+ left: "50%",
111
+ width: "70%",
112
+ alignItems: "center",
113
+ justifyContent: "center",
114
+ zIndex: 10,
115
+ style: {
116
+ transform: [{
117
+ translateX: '-50%'
118
+ }, {
119
+ translateY: '-50%'
120
+ }]
121
+ },
122
+ children: pictureValidation ? /*#__PURE__*/_jsxs(Box, {
123
+ bg: "dark",
124
+ py: "xs",
125
+ px: "s",
126
+ borderRadius: "md",
127
+ children: [/*#__PURE__*/_jsxs(Text, {
128
+ textAlign: "center",
129
+ style: {
130
+ color: pictureValidationColor
131
+ },
132
+ children: [pictureValidation.statusMessage, "."]
133
+ }), /*#__PURE__*/_jsxs(Text, {
134
+ textAlign: "center",
135
+ style: {
136
+ color: pictureValidationColor
137
+ },
138
+ children: [pictureValidation.actionMessage, "..."]
139
+ })]
140
+ }) : /*#__PURE__*/_jsx(Document2Svg, {})
141
+ }), /*#__PURE__*/_jsx(Box, {
142
+ position: "absolute",
143
+ top: rectY + rectHeight,
144
+ left: "50%",
145
+ pt: "s",
146
+ zIndex: 10,
147
+ style: {
148
+ transform: [{
149
+ translateX: '-50%'
150
+ }]
151
+ },
152
+ children: /*#__PURE__*/_jsx(Text, {
153
+ color: "white",
154
+ children: "Documentos aceitos: RG, CNH ou CIN"
155
+ })
156
+ }), showFooterButtonContainer && /*#__PURE__*/_jsx(Box, {
157
+ position: "absolute",
158
+ left: "50%",
159
+ bottom: bottomSafeArea,
160
+ width: "100%",
161
+ px: "m",
162
+ rowGap: "xl",
163
+ zIndex: 10,
164
+ style: {
165
+ transform: [{
166
+ translateX: '-50%'
167
+ }]
168
+ },
169
+ children: pictureValidation?.status === ValidationStatus.INVALID ? /*#__PURE__*/_jsx(Button, {
170
+ ...tryAgainButtonProps,
171
+ title: "Tentar Novamente",
172
+ iconLeft: RefreshSvg,
173
+ onPress: onTryAgainPress
174
+ }) : /*#__PURE__*/_jsxs(Fragment, {
175
+ children: [/*#__PURE__*/_jsx(Button, {
176
+ ...captureButtonProps,
177
+ title: "Capturar",
178
+ disabled: captureButtonDisabled,
179
+ iconLeft: CameraPlusSvg,
180
+ onPress: onCapturePress
181
+ }), hasDigitalFile && /*#__PURE__*/_jsx(Button, {
182
+ ...sendButtonProps,
183
+ title: "Enviar Documento",
184
+ iconLeft: UploadSvg,
185
+ onPress: () => ({})
186
+ })]
187
+ })
188
+ })]
189
+ })
190
+ });
191
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Fragment","Image","StyleSheet","Camera","createBox","createText","CameraPlusSvg","Document2Svg","DocumentCameraOverlaySvg","RefreshSvg","UploadSvg","ValidationStatus","Button","CenteredLoading","jsx","_jsx","jsxs","_jsxs","Box","Text","DocumentCameraView","containerRef","ref","device","bottomSafeArea","loadingLayoutProps","mainImage","MainImage","mainImageColor","title","rectBorderColor","pictureValidationColor","rectWidth","rectHeight","rectX","rectY","originalPictureUri","pictureValidation","captureButtonProps","sendButtonProps","tryAgainButtonProps","isLoadingLayout","isActive","hasPermission","enablePhoto","showFooterButtonContainer","captureButtonDisabled","hasDigitalFile","onContainerLayout","onInitialized","onStopped","onError","onCapturePress","onTryAgainPress","frameProcessor","flex","onLayout","children","bg","style","absoluteFillObject","photo","photoQualityBalance","source","uri","absoluteFill","position","top","left","alignItems","rowGap","pb","zIndex","transform","translateX","translateY","width","height","color","mt","justifyContent","py","px","borderRadius","textAlign","statusMessage","actionMessage","pt","bottom","status","INVALID","iconLeft","onPress","disabled"],"sourceRoot":"../../../../../src","sources":["screens/document/camera/view.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAChD,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,SAAS,EAAEC,UAAU,QAAQ,kBAAkB;AACxD,SACEC,aAAa,EACbC,YAAY,EACZC,wBAAwB,EACxBC,UAAU,EACVC,SAAS,QACJ,kCAAyB;AAChC,SAASC,gBAAgB,QAAQ,yBAAgB;AAEjD,SAASC,MAAM,EAAEC,eAAe,QAAQ,8BAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG7D,MAAMC,GAAG,GAAGd,SAAS,CAAmB,CAAC;AACzC,MAAMe,IAAI,GAAGd,UAAU,CAAmB,CAAC;AAI3C,OAAO,MAAMe,kBAAkB,GAAGA,CAAC;EACjCC,YAAY;EACZC,GAAG;EACHC,MAAM;EACNC,cAAc;EACdC,kBAAkB;EAClBC,SAAS,EAAEC,SAAS;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G;MACXb,KAAK,EAAE;QAAEc,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAO,CAAC;MAAE,CAAE;MAAAjB,QAAA,EAE9CpB,iBAAiB,EAAEoD,MAAM,KAAK9E,gBAAgB,CAAC+E,OAAO,gBACrD3E,IAAA,CAACH,MAAM;QAAA,GACD4B,mBAAmB;QACvBX,KAAK,EAAC,kBAAkB;QACxB8D,QAAQ,EAAElF,UAAW;QACrBmF,OAAO,EAAEvC;MAAgB,CAC1B,CAAC,gBAEFpC,KAAA,CAACjB,QAAQ;QAAAyD,QAAA,gBACP1C,IAAA,CAACH,MAAM;UAAA,GACD0B,kBAAkB;UACtBT,KAAK,EAAC,UAAU;UAChBgE,QAAQ,EAAE/C,qBAAsB;UAChC6C,QAAQ,EAAErF,aAAc;UACxBsF,OAAO,EAAExC;QAAe,CACzB,CAAC,EACDL,cAAc,iBACbhC,IAAA,CAACH,MAAM;UAAA,GACD2B,eAAe;UACnBV,KAAK,EAAC,kBAAkB;UACxB8D,QAAQ,EAAEjF,SAAU;UACpBkF,OAAO,EAAEA,CAAA,MAAO,CAAC,CAAC;QAAE,CACrB,CACF;MAAA,CACO;IACX,CACE,CACN;EAAA,CACO;AACX,CACE,CACN","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import { DocumentView } from "./view.js";
4
+ import { useDocumentViewModel } from "./view-model.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const DocumentScreen = () => {
7
+ const props = useDocumentViewModel();
8
+ return /*#__PURE__*/_jsx(DocumentView, {
9
+ ...props
10
+ });
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DocumentView","useDocumentViewModel","jsx","_jsx","DocumentScreen","props"],"sourceRoot":"../../../../src","sources":["screens/document/index.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,WAAQ;AACrC,SAASC,oBAAoB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEnD,OAAO,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,KAAK,GAAGJ,oBAAoB,CAAC,CAAC;EAEpC,oBAAOE,IAAA,CAACH,YAAY;IAAA,GAAKK;EAAK,CAAG,CAAC;AACpC,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import { DocumentReviewView } from "./view.js";
4
+ import { useDocumentReviewViewModel } from "./view-model.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const DocumentReviewScreen = () => {
7
+ const props = useDocumentReviewViewModel();
8
+ return /*#__PURE__*/_jsx(DocumentReviewView, {
9
+ ...props
10
+ });
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DocumentReviewView","useDocumentReviewViewModel","jsx","_jsx","DocumentReviewScreen","props"],"sourceRoot":"../../../../../src","sources":["screens/document/review/index.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,WAAQ;AAC3C,SAASC,0BAA0B,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEzD,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,KAAK,GAAGJ,0BAA0B,CAAC,CAAC;EAE1C,oBAAOE,IAAA,CAACH,kBAAkB;IAAA,GAAKK;EAAK,CAAG,CAAC;AAC1C,CAAC","ignoreList":[]}