@sanctum-key/react-native-sdk 1.0.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 (708) hide show
  1. package/README.md +278 -0
  2. package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/results.bin +1 -0
  3. package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
  5. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +69 -0
  6. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  7. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  8. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  9. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  10. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  11. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
  12. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
  13. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  14. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  15. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  16. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  17. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  18. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
  19. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
  20. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
  21. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +110 -0
  22. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +69 -0
  23. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  24. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  25. package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
  26. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  27. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
  28. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  109. package/android/build/outputs/logs/manifest-merger-debug-report.txt +101 -0
  110. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  111. package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
  112. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  113. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  114. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  115. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  116. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  117. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  118. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  119. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  120. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  121. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  122. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  123. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  129. package/android/build.gradle +43 -0
  130. package/android/src/main/AndroidManifest.xml +49 -0
  131. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
  132. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
  133. package/android/src/main/res/xml/file_paths.xml +15 -0
  134. package/build/App.d.ts +3 -0
  135. package/build/App.d.ts.map +1 -0
  136. package/build/App.js +9 -0
  137. package/build/App.js.map +1 -0
  138. package/build/TransfergratisSdk.types.d.ts +32 -0
  139. package/build/TransfergratisSdk.types.d.ts.map +1 -0
  140. package/build/TransfergratisSdk.types.js +2 -0
  141. package/build/TransfergratisSdk.types.js.map +1 -0
  142. package/build/TransfergratisSdkModule.d.ts +21 -0
  143. package/build/TransfergratisSdkModule.d.ts.map +1 -0
  144. package/build/TransfergratisSdkModule.js +4 -0
  145. package/build/TransfergratisSdkModule.js.map +1 -0
  146. package/build/TransfergratisSdkModule.web.d.ts +20 -0
  147. package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
  148. package/build/TransfergratisSdkModule.web.js +25 -0
  149. package/build/TransfergratisSdkModule.web.js.map +1 -0
  150. package/build/TransfergratisSdkView.d.ts +4 -0
  151. package/build/TransfergratisSdkView.d.ts.map +1 -0
  152. package/build/TransfergratisSdkView.js +7 -0
  153. package/build/TransfergratisSdkView.js.map +1 -0
  154. package/build/TransfergratisSdkView.web.d.ts +4 -0
  155. package/build/TransfergratisSdkView.web.d.ts.map +1 -0
  156. package/build/TransfergratisSdkView.web.js +11 -0
  157. package/build/TransfergratisSdkView.web.js.map +1 -0
  158. package/build/api/axios.d.ts +30 -0
  159. package/build/api/axios.d.ts.map +1 -0
  160. package/build/api/axios.js +92 -0
  161. package/build/api/axios.js.map +1 -0
  162. package/build/components/Camera/index.d.ts +2 -0
  163. package/build/components/Camera/index.d.ts.map +1 -0
  164. package/build/components/Camera/index.js +2 -0
  165. package/build/components/Camera/index.js.map +1 -0
  166. package/build/components/Camera/index.web.d.ts +2 -0
  167. package/build/components/Camera/index.web.d.ts.map +1 -0
  168. package/build/components/Camera/index.web.js +2 -0
  169. package/build/components/Camera/index.web.js.map +1 -0
  170. package/build/components/Camera/types.d.ts +2 -0
  171. package/build/components/Camera/types.d.ts.map +1 -0
  172. package/build/components/Camera/types.js +2 -0
  173. package/build/components/Camera/types.js.map +1 -0
  174. package/build/components/ConfigurableKYCFlow.d.ts +11 -0
  175. package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
  176. package/build/components/ConfigurableKYCFlow.js +257 -0
  177. package/build/components/ConfigurableKYCFlow.js.map +1 -0
  178. package/build/components/CustomCameraExample.d.ts +10 -0
  179. package/build/components/CustomCameraExample.d.ts.map +1 -0
  180. package/build/components/CustomCameraExample.js +232 -0
  181. package/build/components/CustomCameraExample.js.map +1 -0
  182. package/build/components/EnhancedCameraView.d.ts +4 -0
  183. package/build/components/EnhancedCameraView.d.ts.map +1 -0
  184. package/build/components/EnhancedCameraView.js +393 -0
  185. package/build/components/EnhancedCameraView.js.map +1 -0
  186. package/build/components/EnhancedCameraView.web.d.ts +4 -0
  187. package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
  188. package/build/components/EnhancedCameraView.web.js +499 -0
  189. package/build/components/EnhancedCameraView.web.js.map +1 -0
  190. package/build/components/FileUpload.d.ts +13 -0
  191. package/build/components/FileUpload.d.ts.map +1 -0
  192. package/build/components/FileUpload.js +216 -0
  193. package/build/components/FileUpload.js.map +1 -0
  194. package/build/components/KYCElementRenderer.d.ts +14 -0
  195. package/build/components/KYCElementRenderer.d.ts.map +1 -0
  196. package/build/components/KYCElementRenderer.js +31 -0
  197. package/build/components/KYCElementRenderer.js.map +1 -0
  198. package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts +12 -0
  199. package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +1 -0
  200. package/build/components/KYCElements/AdditionalDocumentsTemplate.js +283 -0
  201. package/build/components/KYCElements/AdditionalDocumentsTemplate.js.map +1 -0
  202. package/build/components/KYCElements/CameraCapture.d.ts +11 -0
  203. package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
  204. package/build/components/KYCElements/CameraCapture.js +219 -0
  205. package/build/components/KYCElements/CameraCapture.js.map +1 -0
  206. package/build/components/KYCElements/CompletionStep.d.ts +10 -0
  207. package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
  208. package/build/components/KYCElements/CompletionStep.js +147 -0
  209. package/build/components/KYCElements/CompletionStep.js.map +1 -0
  210. package/build/components/KYCElements/CountrySelection.d.ts +11 -0
  211. package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
  212. package/build/components/KYCElements/CountrySelection.js +147 -0
  213. package/build/components/KYCElements/CountrySelection.js.map +1 -0
  214. package/build/components/KYCElements/CountrySelectionTemplate.d.ts +15 -0
  215. package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
  216. package/build/components/KYCElements/CountrySelectionTemplate.js +438 -0
  217. package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
  218. package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
  219. package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
  220. package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
  221. package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
  222. package/build/components/KYCElements/EmailVerificationTemplate.d.ts +12 -0
  223. package/build/components/KYCElements/EmailVerificationTemplate.d.ts.map +1 -0
  224. package/build/components/KYCElements/EmailVerificationTemplate.js +212 -0
  225. package/build/components/KYCElements/EmailVerificationTemplate.js.map +1 -0
  226. package/build/components/KYCElements/FileUpload.d.ts +11 -0
  227. package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
  228. package/build/components/KYCElements/FileUpload.js +268 -0
  229. package/build/components/KYCElements/FileUpload.js.map +1 -0
  230. package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
  231. package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
  232. package/build/components/KYCElements/FileUploadTemplate.js +331 -0
  233. package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
  234. package/build/components/KYCElements/IDCardCapture.d.ts +19 -0
  235. package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
  236. package/build/components/KYCElements/IDCardCapture.js +877 -0
  237. package/build/components/KYCElements/IDCardCapture.js.map +1 -0
  238. package/build/components/KYCElements/InitializationStep.d.ts +5 -0
  239. package/build/components/KYCElements/InitializationStep.d.ts.map +1 -0
  240. package/build/components/KYCElements/InitializationStep.js +41 -0
  241. package/build/components/KYCElements/InitializationStep.js.map +1 -0
  242. package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
  243. package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
  244. package/build/components/KYCElements/LocationCaptureTemplate.js +318 -0
  245. package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
  246. package/build/components/KYCElements/OrientationVideoCapture.d.ts +14 -0
  247. package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
  248. package/build/components/KYCElements/OrientationVideoCapture.js +534 -0
  249. package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
  250. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +14 -0
  251. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
  252. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +504 -0
  253. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
  254. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +14 -0
  255. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
  256. package/build/components/KYCElements/OrientationVideoCaptureFinal.js +430 -0
  257. package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
  258. package/build/components/KYCElements/PersonalInformationTemplate.d.ts +12 -0
  259. package/build/components/KYCElements/PersonalInformationTemplate.d.ts.map +1 -0
  260. package/build/components/KYCElements/PersonalInformationTemplate.js +120 -0
  261. package/build/components/KYCElements/PersonalInformationTemplate.js.map +1 -0
  262. package/build/components/KYCElements/PhoneVerificationTemplate.d.ts +12 -0
  263. package/build/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -0
  264. package/build/components/KYCElements/PhoneVerificationTemplate.js +185 -0
  265. package/build/components/KYCElements/PhoneVerificationTemplate.js.map +1 -0
  266. package/build/components/KYCElements/ReviewSubmitTemplate.d.ts +12 -0
  267. package/build/components/KYCElements/ReviewSubmitTemplate.d.ts.map +1 -0
  268. package/build/components/KYCElements/ReviewSubmitTemplate.js +171 -0
  269. package/build/components/KYCElements/ReviewSubmitTemplate.js.map +1 -0
  270. package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
  271. package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
  272. package/build/components/KYCElements/SelfieCapture.js +236 -0
  273. package/build/components/KYCElements/SelfieCapture.js.map +1 -0
  274. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +16 -0
  275. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
  276. package/build/components/KYCElements/SelfieCaptureTemplate.js +568 -0
  277. package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
  278. package/build/components/KYCElements/VerificationProgressTemplate.d.ts +12 -0
  279. package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -0
  280. package/build/components/KYCElements/VerificationProgressTemplate.js +195 -0
  281. package/build/components/KYCElements/VerificationProgressTemplate.js.map +1 -0
  282. package/build/components/KYCElements/VerificationStep.d.ts +10 -0
  283. package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
  284. package/build/components/KYCElements/VerificationStep.js +199 -0
  285. package/build/components/KYCElements/VerificationStep.js.map +1 -0
  286. package/build/components/KYCElements/WelcomeTemplate.d.ts +12 -0
  287. package/build/components/KYCElements/WelcomeTemplate.d.ts.map +1 -0
  288. package/build/components/KYCElements/WelcomeTemplate.js +244 -0
  289. package/build/components/KYCElements/WelcomeTemplate.js.map +1 -0
  290. package/build/components/KYCExample.d.ts +3 -0
  291. package/build/components/KYCExample.d.ts.map +1 -0
  292. package/build/components/KYCExample.js +247 -0
  293. package/build/components/KYCExample.js.map +1 -0
  294. package/build/components/KYCFlow.d.ts +3 -0
  295. package/build/components/KYCFlow.d.ts.map +1 -0
  296. package/build/components/KYCFlow.js +308 -0
  297. package/build/components/KYCFlow.js.map +1 -0
  298. package/build/components/NativeCameraView.d.ts +11 -0
  299. package/build/components/NativeCameraView.d.ts.map +1 -0
  300. package/build/components/NativeCameraView.js +27 -0
  301. package/build/components/NativeCameraView.js.map +1 -0
  302. package/build/components/OverLay/IdCard.d.ts +4 -0
  303. package/build/components/OverLay/IdCard.d.ts.map +1 -0
  304. package/build/components/OverLay/IdCard.js +185 -0
  305. package/build/components/OverLay/IdCard.js.map +1 -0
  306. package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
  307. package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
  308. package/build/components/OverLay/SelfieOverlay.js +169 -0
  309. package/build/components/OverLay/SelfieOverlay.js.map +1 -0
  310. package/build/components/OverLay/StepOverlay.d.ts +9 -0
  311. package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
  312. package/build/components/OverLay/StepOverlay.js +53 -0
  313. package/build/components/OverLay/StepOverlay.js.map +1 -0
  314. package/build/components/OverLay/type.d.ts +98 -0
  315. package/build/components/OverLay/type.d.ts.map +1 -0
  316. package/build/components/OverLay/type.js +2 -0
  317. package/build/components/OverLay/type.js.map +1 -0
  318. package/build/components/ProgressIndicator.d.ts +8 -0
  319. package/build/components/ProgressIndicator.d.ts.map +1 -0
  320. package/build/components/ProgressIndicator.js +48 -0
  321. package/build/components/ProgressIndicator.js.map +1 -0
  322. package/build/components/SelfieCapture.d.ts +3 -0
  323. package/build/components/SelfieCapture.d.ts.map +1 -0
  324. package/build/components/SelfieCapture.js +197 -0
  325. package/build/components/SelfieCapture.js.map +1 -0
  326. package/build/components/SimpleExample.d.ts +3 -0
  327. package/build/components/SimpleExample.d.ts.map +1 -0
  328. package/build/components/SimpleExample.js +89 -0
  329. package/build/components/SimpleExample.js.map +1 -0
  330. package/build/components/Svgs/GpsIcon.d.ts +3 -0
  331. package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
  332. package/build/components/Svgs/GpsIcon.js +9 -0
  333. package/build/components/Svgs/GpsIcon.js.map +1 -0
  334. package/build/components/Svgs/Schield.d.ts +3 -0
  335. package/build/components/Svgs/Schield.d.ts.map +1 -0
  336. package/build/components/Svgs/Schield.js +22 -0
  337. package/build/components/Svgs/Schield.js.map +1 -0
  338. package/build/components/Svgs/directionArrow.gif +0 -0
  339. package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
  340. package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
  341. package/build/components/Svgs/frontSelfieIcon.js +11 -0
  342. package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
  343. package/build/components/Svgs/scanningLine.d.ts +9 -0
  344. package/build/components/Svgs/scanningLine.d.ts.map +1 -0
  345. package/build/components/Svgs/scanningLine.js +61 -0
  346. package/build/components/Svgs/scanningLine.js.map +1 -0
  347. package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
  348. package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
  349. package/build/components/Svgs/sideSelfieIcon.js +9 -0
  350. package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
  351. package/build/components/TemplateKYCExample.d.ts +22 -0
  352. package/build/components/TemplateKYCExample.d.ts.map +1 -0
  353. package/build/components/TemplateKYCExample.js +155 -0
  354. package/build/components/TemplateKYCExample.js.map +1 -0
  355. package/build/components/TemplateKYCFlowRefactored.d.ts +26 -0
  356. package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
  357. package/build/components/TemplateKYCFlowRefactored.js +359 -0
  358. package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
  359. package/build/components/VisionCameraView.d.ts +22 -0
  360. package/build/components/VisionCameraView.d.ts.map +1 -0
  361. package/build/components/VisionCameraView.js +142 -0
  362. package/build/components/VisionCameraView.js.map +1 -0
  363. package/build/components/example/CameraCaptureEx.d.ts +4 -0
  364. package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
  365. package/build/components/example/CameraCaptureEx.js +219 -0
  366. package/build/components/example/CameraCaptureEx.js.map +1 -0
  367. package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
  368. package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
  369. package/build/components/example/CameraCaptureExAdvanced.js +229 -0
  370. package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
  371. package/build/components/example/CameraCaptureExScan.d.ts +3 -0
  372. package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
  373. package/build/components/example/CameraCaptureExScan.js +213 -0
  374. package/build/components/example/CameraCaptureExScan.js.map +1 -0
  375. package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
  376. package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
  377. package/build/components/example/CameraCaptureExSimple.js +138 -0
  378. package/build/components/example/CameraCaptureExSimple.js.map +1 -0
  379. package/build/components/example/DynamicTemplateExample.d.ts +10 -0
  380. package/build/components/example/DynamicTemplateExample.d.ts.map +1 -0
  381. package/build/components/example/DynamicTemplateExample.js +241 -0
  382. package/build/components/example/DynamicTemplateExample.js.map +1 -0
  383. package/build/components/example/OrientationVideoExample.d.ts +4 -0
  384. package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
  385. package/build/components/example/OrientationVideoExample.js +325 -0
  386. package/build/components/example/OrientationVideoExample.js.map +1 -0
  387. package/build/components/example/SelfieCaptureEx.d.ts +4 -0
  388. package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
  389. package/build/components/example/SelfieCaptureEx.js +238 -0
  390. package/build/components/example/SelfieCaptureEx.js.map +1 -0
  391. package/build/components/ui/Button.d.ts +37 -0
  392. package/build/components/ui/Button.d.ts.map +1 -0
  393. package/build/components/ui/Button.js +194 -0
  394. package/build/components/ui/Button.js.map +1 -0
  395. package/build/components/ui/ButtonExample.d.ts +4 -0
  396. package/build/components/ui/ButtonExample.d.ts.map +1 -0
  397. package/build/components/ui/ButtonExample.js +209 -0
  398. package/build/components/ui/ButtonExample.js.map +1 -0
  399. package/build/components/ui/ButtonStyles.d.ts +521 -0
  400. package/build/components/ui/ButtonStyles.d.ts.map +1 -0
  401. package/build/components/ui/ButtonStyles.js +429 -0
  402. package/build/components/ui/ButtonStyles.js.map +1 -0
  403. package/build/config/KYCConfig.d.ts +14 -0
  404. package/build/config/KYCConfig.d.ts.map +1 -0
  405. package/build/config/KYCConfig.js +26 -0
  406. package/build/config/KYCConfig.js.map +1 -0
  407. package/build/config/KYCConfigs.d.ts +7 -0
  408. package/build/config/KYCConfigs.d.ts.map +1 -0
  409. package/build/config/KYCConfigs.js +516 -0
  410. package/build/config/KYCConfigs.js.map +1 -0
  411. package/build/config/allowedDomains.d.ts +30 -0
  412. package/build/config/allowedDomains.d.ts.map +1 -0
  413. package/build/config/allowedDomains.js +112 -0
  414. package/build/config/allowedDomains.js.map +1 -0
  415. package/build/config/countriesData.d.ts +3 -0
  416. package/build/config/countriesData.d.ts.map +1 -0
  417. package/build/config/countriesData.js +80 -0
  418. package/build/config/countriesData.js.map +1 -0
  419. package/build/config/region_mapping.d.ts +3 -0
  420. package/build/config/region_mapping.d.ts.map +1 -0
  421. package/build/config/region_mapping.js +736 -0
  422. package/build/config/region_mapping.js.map +1 -0
  423. package/build/hooks/useI18n.d.ts +11 -0
  424. package/build/hooks/useI18n.d.ts.map +1 -0
  425. package/build/hooks/useI18n.js +37 -0
  426. package/build/hooks/useI18n.js.map +1 -0
  427. package/build/hooks/useKYC.d.ts +15 -0
  428. package/build/hooks/useKYC.d.ts.map +1 -0
  429. package/build/hooks/useKYC.js +103 -0
  430. package/build/hooks/useKYC.js.map +1 -0
  431. package/build/hooks/useKYCFlow.d.ts +3 -0
  432. package/build/hooks/useKYCFlow.d.ts.map +1 -0
  433. package/build/hooks/useKYCFlow.js +221 -0
  434. package/build/hooks/useKYCFlow.js.map +1 -0
  435. package/build/hooks/useLocation.d.ts +32 -0
  436. package/build/hooks/useLocation.d.ts.map +1 -0
  437. package/build/hooks/useLocation.js +165 -0
  438. package/build/hooks/useLocation.js.map +1 -0
  439. package/build/hooks/useOrientationVideo.d.ts +10 -0
  440. package/build/hooks/useOrientationVideo.d.ts.map +1 -0
  441. package/build/hooks/useOrientationVideo.js +118 -0
  442. package/build/hooks/useOrientationVideo.js.map +1 -0
  443. package/build/hooks/useRealtimeVerifier.d.ts +28 -0
  444. package/build/hooks/useRealtimeVerifier.d.ts.map +1 -0
  445. package/build/hooks/useRealtimeVerifier.js +91 -0
  446. package/build/hooks/useRealtimeVerifier.js.map +1 -0
  447. package/build/hooks/useTemplateKYCFlow.d.ts +48 -0
  448. package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
  449. package/build/hooks/useTemplateKYCFlow.js +910 -0
  450. package/build/hooks/useTemplateKYCFlow.js.map +1 -0
  451. package/build/hooks/useTemplateLoader.d.ts +14 -0
  452. package/build/hooks/useTemplateLoader.d.ts.map +1 -0
  453. package/build/hooks/useTemplateLoader.js +85 -0
  454. package/build/hooks/useTemplateLoader.js.map +1 -0
  455. package/build/i18n/en/index.d.ts +233 -0
  456. package/build/i18n/en/index.d.ts.map +1 -0
  457. package/build/i18n/en/index.js +261 -0
  458. package/build/i18n/en/index.js.map +1 -0
  459. package/build/i18n/fr/index.d.ts +219 -0
  460. package/build/i18n/fr/index.d.ts.map +1 -0
  461. package/build/i18n/fr/index.js +246 -0
  462. package/build/i18n/fr/index.js.map +1 -0
  463. package/build/i18n/index.d.ts +10 -0
  464. package/build/i18n/index.d.ts.map +1 -0
  465. package/build/i18n/index.js +56 -0
  466. package/build/i18n/index.js.map +1 -0
  467. package/build/i18n/types.d.ts +162 -0
  468. package/build/i18n/types.d.ts.map +1 -0
  469. package/build/i18n/types.js +3 -0
  470. package/build/i18n/types.js.map +1 -0
  471. package/build/i18n/usage-example.d.ts +4 -0
  472. package/build/i18n/usage-example.d.ts.map +1 -0
  473. package/build/i18n/usage-example.js +189 -0
  474. package/build/i18n/usage-example.js.map +1 -0
  475. package/build/index.d.ts +11 -0
  476. package/build/index.d.ts.map +1 -0
  477. package/build/index.js +17 -0
  478. package/build/index.js.map +1 -0
  479. package/build/modules/api/CardAuthentification.d.ts +72 -0
  480. package/build/modules/api/CardAuthentification.d.ts.map +1 -0
  481. package/build/modules/api/CardAuthentification.js +487 -0
  482. package/build/modules/api/CardAuthentification.js.map +1 -0
  483. package/build/modules/api/KYCService.d.ts +116 -0
  484. package/build/modules/api/KYCService.d.ts.map +1 -0
  485. package/build/modules/api/KYCService.js +526 -0
  486. package/build/modules/api/KYCService.js.map +1 -0
  487. package/build/modules/api/SelfieVerification.d.ts +5 -0
  488. package/build/modules/api/SelfieVerification.d.ts.map +1 -0
  489. package/build/modules/api/SelfieVerification.js +25 -0
  490. package/build/modules/api/SelfieVerification.js.map +1 -0
  491. package/build/modules/api/TemplateService.d.ts +44 -0
  492. package/build/modules/api/TemplateService.d.ts.map +1 -0
  493. package/build/modules/api/TemplateService.js +146 -0
  494. package/build/modules/api/TemplateService.js.map +1 -0
  495. package/build/modules/api/backendApi.d.ts +2 -0
  496. package/build/modules/api/backendApi.d.ts.map +1 -0
  497. package/build/modules/api/backendApi.js +6 -0
  498. package/build/modules/api/backendApi.js.map +1 -0
  499. package/build/modules/api/types.d.ts +53 -0
  500. package/build/modules/api/types.d.ts.map +1 -0
  501. package/build/modules/api/types.js +2 -0
  502. package/build/modules/api/types.js.map +1 -0
  503. package/build/modules/camera/NativeCameraModule.d.ts +52 -0
  504. package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
  505. package/build/modules/camera/NativeCameraModule.js +149 -0
  506. package/build/modules/camera/NativeCameraModule.js.map +1 -0
  507. package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
  508. package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
  509. package/build/modules/camera/UnifiedCameraModule.js +125 -0
  510. package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
  511. package/build/modules/camera/VisionCameraModule.d.ts +62 -0
  512. package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
  513. package/build/modules/camera/VisionCameraModule.js +313 -0
  514. package/build/modules/camera/VisionCameraModule.js.map +1 -0
  515. package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
  516. package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
  517. package/build/modules/camera/VisionCameraModule.web.js +589 -0
  518. package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
  519. package/build/modules/camera/index.d.ts +5 -0
  520. package/build/modules/camera/index.d.ts.map +1 -0
  521. package/build/modules/camera/index.js +4 -0
  522. package/build/modules/camera/index.js.map +1 -0
  523. package/build/stores/kycStore.d.ts +55 -0
  524. package/build/stores/kycStore.d.ts.map +1 -0
  525. package/build/stores/kycStore.js +98 -0
  526. package/build/stores/kycStore.js.map +1 -0
  527. package/build/types/KYC.types.d.ts +643 -0
  528. package/build/types/KYC.types.d.ts.map +1 -0
  529. package/build/types/KYC.types.js +25 -0
  530. package/build/types/KYC.types.js.map +1 -0
  531. package/build/types/env.types.d.ts +13 -0
  532. package/build/types/env.types.d.ts.map +1 -0
  533. package/build/types/env.types.js +2 -0
  534. package/build/types/env.types.js.map +1 -0
  535. package/build/utils/cropByObb.d.ts +37 -0
  536. package/build/utils/cropByObb.d.ts.map +1 -0
  537. package/build/utils/cropByObb.js +215 -0
  538. package/build/utils/cropByObb.js.map +1 -0
  539. package/build/utils/deviceDetection.d.ts +6 -0
  540. package/build/utils/deviceDetection.d.ts.map +1 -0
  541. package/build/utils/deviceDetection.js +12 -0
  542. package/build/utils/deviceDetection.js.map +1 -0
  543. package/build/utils/get-document-type-info.d.ts +13 -0
  544. package/build/utils/get-document-type-info.d.ts.map +1 -0
  545. package/build/utils/get-document-type-info.js +59 -0
  546. package/build/utils/get-document-type-info.js.map +1 -0
  547. package/build/utils/logger.d.ts +12 -0
  548. package/build/utils/logger.d.ts.map +1 -0
  549. package/build/utils/logger.js +45 -0
  550. package/build/utils/logger.js.map +1 -0
  551. package/build/utils/pathToBase64.d.ts +3 -0
  552. package/build/utils/pathToBase64.d.ts.map +1 -0
  553. package/build/utils/pathToBase64.js +65 -0
  554. package/build/utils/pathToBase64.js.map +1 -0
  555. package/build/utils/platformAlert.d.ts +20 -0
  556. package/build/utils/platformAlert.d.ts.map +1 -0
  557. package/build/utils/platformAlert.js +67 -0
  558. package/build/utils/platformAlert.js.map +1 -0
  559. package/build/utils/remove-duplicate.d.ts +2 -0
  560. package/build/utils/remove-duplicate.d.ts.map +1 -0
  561. package/build/utils/remove-duplicate.js +4 -0
  562. package/build/utils/remove-duplicate.js.map +1 -0
  563. package/build/utils/template-transformer.d.ts +10 -0
  564. package/build/utils/template-transformer.d.ts.map +1 -0
  565. package/build/utils/template-transformer.js +365 -0
  566. package/build/utils/template-transformer.js.map +1 -0
  567. package/build/web/WebKYCEntry.d.ts +9 -0
  568. package/build/web/WebKYCEntry.d.ts.map +1 -0
  569. package/build/web/WebKYCEntry.js +288 -0
  570. package/build/web/WebKYCEntry.js.map +1 -0
  571. package/build/web/index.d.ts +2 -0
  572. package/build/web/index.d.ts.map +1 -0
  573. package/build/web/index.js +2 -0
  574. package/build/web/index.js.map +1 -0
  575. package/expo-module.config.json +9 -0
  576. package/ios/TransfergratisSdk.podspec +31 -0
  577. package/ios/TransfergratisSdkModule.swift +409 -0
  578. package/package.json +71 -0
  579. package/plugin/build/index.d.ts +5 -0
  580. package/plugin/build/index.js +12 -0
  581. package/plugin/build/withLocation.d.ts +9 -0
  582. package/plugin/build/withLocation.js +77 -0
  583. package/plugin/build/withRemovePermissions.d.ts +3 -0
  584. package/plugin/build/withRemovePermissions.js +67 -0
  585. package/plugin/build/withVisionCamera.d.ts +8 -0
  586. package/plugin/build/withVisionCamera.js +68 -0
  587. package/plugin/src/index.ts +5 -0
  588. package/plugin/src/withLocation.ts +109 -0
  589. package/plugin/src/withRemovePermissions.js +85 -0
  590. package/plugin/src/withRemovePermissions.ts +83 -0
  591. package/plugin/src/withVisionCamera.js +88 -0
  592. package/plugin/src/withVisionCamera.ts +97 -0
  593. package/plugin/tsconfig.json +17 -0
  594. package/plugin/tsconfig.tsbuildinfo +1 -0
  595. package/plugin.js +19 -0
  596. package/src/App.tsx +9 -0
  597. package/src/TransfergratisSdk.types.ts +30 -0
  598. package/src/TransfergratisSdkModule.ts +16 -0
  599. package/src/TransfergratisSdkModule.web.ts +31 -0
  600. package/src/TransfergratisSdkView.tsx +11 -0
  601. package/src/TransfergratisSdkView.web.tsx +15 -0
  602. package/src/api/axios.ts +144 -0
  603. package/src/components/Camera/index.tsx +0 -0
  604. package/src/components/Camera/index.web.tsx +0 -0
  605. package/src/components/Camera/types.ts +0 -0
  606. package/src/components/ConfigurableKYCFlow.tsx +334 -0
  607. package/src/components/CustomCameraExample.tsx +274 -0
  608. package/src/components/EnhancedCameraView.tsx +482 -0
  609. package/src/components/EnhancedCameraView.web.tsx +597 -0
  610. package/src/components/FileUpload.tsx +249 -0
  611. package/src/components/KYCElementRenderer.tsx +106 -0
  612. package/src/components/KYCElements/AdditionalDocumentsTemplate.tsx +346 -0
  613. package/src/components/KYCElements/CameraCapture.tsx +268 -0
  614. package/src/components/KYCElements/CompletionStep.tsx +161 -0
  615. package/src/components/KYCElements/CountrySelection.tsx +177 -0
  616. package/src/components/KYCElements/CountrySelectionTemplate.tsx +526 -0
  617. package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
  618. package/src/components/KYCElements/EmailVerificationTemplate.tsx +278 -0
  619. package/src/components/KYCElements/FileUpload.tsx +318 -0
  620. package/src/components/KYCElements/FileUploadTemplate.tsx +395 -0
  621. package/src/components/KYCElements/IDCardCapture.tsx +1053 -0
  622. package/src/components/KYCElements/InitializationStep.tsx +53 -0
  623. package/src/components/KYCElements/LocationCaptureTemplate.tsx +378 -0
  624. package/src/components/KYCElements/OrientationVideoCapture.tsx +649 -0
  625. package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +616 -0
  626. package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +534 -0
  627. package/src/components/KYCElements/PersonalInformationTemplate.tsx +158 -0
  628. package/src/components/KYCElements/PhoneVerificationTemplate.tsx +253 -0
  629. package/src/components/KYCElements/ReviewSubmitTemplate.tsx +201 -0
  630. package/src/components/KYCElements/SelfieCapture.tsx +284 -0
  631. package/src/components/KYCElements/SelfieCaptureTemplate.tsx +662 -0
  632. package/src/components/KYCElements/VerificationProgressTemplate.tsx +247 -0
  633. package/src/components/KYCElements/VerificationStep.tsx +234 -0
  634. package/src/components/KYCElements/WelcomeTemplate.tsx +290 -0
  635. package/src/components/KYCExample.tsx +297 -0
  636. package/src/components/KYCFlow.tsx +377 -0
  637. package/src/components/NativeCameraView.tsx +47 -0
  638. package/src/components/OverLay/IdCard.tsx +277 -0
  639. package/src/components/OverLay/SelfieOverlay.tsx +211 -0
  640. package/src/components/OverLay/StepOverlay.tsx +64 -0
  641. package/src/components/OverLay/type.ts +91 -0
  642. package/src/components/ProgressIndicator.tsx +62 -0
  643. package/src/components/SelfieCapture.tsx +244 -0
  644. package/src/components/SimpleExample.tsx +92 -0
  645. package/src/components/Svgs/GpsIcon.tsx +12 -0
  646. package/src/components/Svgs/Schield.tsx +26 -0
  647. package/src/components/Svgs/directionArrow.gif +0 -0
  648. package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
  649. package/src/components/Svgs/scanningLine.tsx +88 -0
  650. package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
  651. package/src/components/TemplateKYCExample.tsx +194 -0
  652. package/src/components/TemplateKYCFlowRefactored.tsx +473 -0
  653. package/src/components/VisionCameraView.tsx +197 -0
  654. package/src/components/example/CameraCaptureEx.tsx +335 -0
  655. package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
  656. package/src/components/example/CameraCaptureExScan.tsx +336 -0
  657. package/src/components/example/CameraCaptureExSimple.tsx +215 -0
  658. package/src/components/example/DynamicTemplateExample.tsx +289 -0
  659. package/src/components/example/OrientationVideoExample.tsx +380 -0
  660. package/src/components/example/SelfieCaptureEx.tsx +358 -0
  661. package/src/components/ui/Button.tsx +328 -0
  662. package/src/components/ui/ButtonExample.tsx +318 -0
  663. package/src/components/ui/ButtonStyles.ts +465 -0
  664. package/src/config/KYCConfig.ts +34 -0
  665. package/src/config/KYCConfigs.ts +528 -0
  666. package/src/config/allowedDomains.ts +133 -0
  667. package/src/config/countriesData.ts +85 -0
  668. package/src/config/region_mapping.json +735 -0
  669. package/src/config/region_mapping.ts +737 -0
  670. package/src/hooks/useI18n.ts +53 -0
  671. package/src/hooks/useKYC.ts +131 -0
  672. package/src/hooks/useKYCFlow.ts +248 -0
  673. package/src/hooks/useLocation.ts +221 -0
  674. package/src/hooks/useOrientationVideo.ts +149 -0
  675. package/src/hooks/useRealtimeVerifier.ts +128 -0
  676. package/src/hooks/useTemplateKYCFlow.tsx +1051 -0
  677. package/src/hooks/useTemplateLoader.ts +102 -0
  678. package/src/i18n/README.md +288 -0
  679. package/src/i18n/en/index.ts +275 -0
  680. package/src/i18n/fr/index.ts +260 -0
  681. package/src/i18n/index.ts +65 -0
  682. package/src/i18n/types.ts +182 -0
  683. package/src/i18n/usage-example.tsx +202 -0
  684. package/src/index.ts +25 -0
  685. package/src/modules/api/CardAuthentification.ts +589 -0
  686. package/src/modules/api/KYCService.ts +666 -0
  687. package/src/modules/api/SelfieVerification.ts +33 -0
  688. package/src/modules/api/TemplateService.ts +168 -0
  689. package/src/modules/api/backendApi.ts +8 -0
  690. package/src/modules/api/types.ts +59 -0
  691. package/src/modules/camera/NativeCameraModule.ts +170 -0
  692. package/src/modules/camera/UnifiedCameraModule.ts +160 -0
  693. package/src/modules/camera/VisionCameraModule.ts +334 -0
  694. package/src/modules/camera/VisionCameraModule.web.ts +679 -0
  695. package/src/modules/camera/index.ts +6 -0
  696. package/src/stores/kycStore.ts +161 -0
  697. package/src/types/KYC.types.ts +837 -0
  698. package/src/types/env.types.ts +13 -0
  699. package/src/utils/cropByObb.ts +254 -0
  700. package/src/utils/deviceDetection.ts +11 -0
  701. package/src/utils/get-document-type-info.ts +62 -0
  702. package/src/utils/logger.ts +48 -0
  703. package/src/utils/pathToBase64.ts +63 -0
  704. package/src/utils/platformAlert.ts +86 -0
  705. package/src/utils/remove-duplicate.ts +3 -0
  706. package/src/utils/template-transformer.ts +445 -0
  707. package/src/web/WebKYCEntry.tsx +375 -0
  708. package/src/web/index.ts +1 -0
@@ -0,0 +1,197 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import { View, Text, TouchableOpacity, Image, Alert, StyleSheet } from 'react-native';
3
+ import { useKYCStore } from '../stores/kycStore';
4
+ import VisionCameraModule from '../modules/camera/VisionCameraModule';
5
+ import { EnhancedCameraView } from './EnhancedCameraView';
6
+ export const SelfieCapture = () => {
7
+ const [capturedSelfie, setCapturedSelfie] = useState(null);
8
+ const [isCapturing, setIsCapturing] = useState(false);
9
+ const [showCamera, setShowCamera] = useState(false);
10
+ const { setSelfie, setProcessing } = useKYCStore();
11
+ const instructions = "Placez votre visage dans le cadre et souriez naturellement. Assurez-vous que votre visage est bien éclairé et centré.";
12
+ useEffect(() => {
13
+ // Check camera availability on component mount
14
+ const checkCameraAvailability = async () => {
15
+ const isAvailable = await VisionCameraModule.isCameraAvailable();
16
+ if (!isAvailable) {
17
+ Alert.alert('Erreur', 'Caméra non disponible sur cette plateforme');
18
+ }
19
+ };
20
+ checkCameraAvailability();
21
+ }, []);
22
+ const handleCapture = async () => {
23
+ try {
24
+ setIsCapturing(true);
25
+ setProcessing(true);
26
+ const hasPermissions = await VisionCameraModule.requestAllPermissions();
27
+ if (!hasPermissions) {
28
+ Alert.alert('Permission refusée', 'Nous avons besoin de l\'accès à la caméra et au microphone');
29
+ setIsCapturing(false);
30
+ setProcessing(false);
31
+ return;
32
+ }
33
+ setShowCamera(true);
34
+ }
35
+ catch (error) {
36
+ Alert.alert('Erreur', 'Impossible d\'ouvrir la caméra');
37
+ setIsCapturing(false);
38
+ setProcessing(false);
39
+ }
40
+ };
41
+ const handleCaptureSuccess = (imagePath) => {
42
+ setCapturedSelfie(imagePath);
43
+ setSelfie(imagePath);
44
+ setShowCamera(false);
45
+ setIsCapturing(false);
46
+ setProcessing(false);
47
+ };
48
+ const handleRetake = () => {
49
+ setCapturedSelfie(null);
50
+ setShowCamera(false);
51
+ };
52
+ const handleCameraCapture = (result) => {
53
+ if (result.success && result.path) {
54
+ handleCaptureSuccess(result.path);
55
+ }
56
+ else {
57
+ Alert.alert('Erreur', result.error || 'Échec de la capture');
58
+ setIsCapturing(false);
59
+ setProcessing(false);
60
+ }
61
+ };
62
+ const handleCameraError = (event) => {
63
+ Alert.alert('Erreur', event.message || 'Une erreur est survenue');
64
+ setShowCamera(false);
65
+ setIsCapturing(false);
66
+ setProcessing(false);
67
+ };
68
+ const handleCloseCamera = () => {
69
+ setShowCamera(false);
70
+ setIsCapturing(false);
71
+ setProcessing(false);
72
+ };
73
+ if (showCamera) {
74
+ return (<View style={styles.container}>
75
+ <EnhancedCameraView instructions={instructions} showCamera={true} cameraType="front" onCapture={handleCameraCapture} onError={handleCameraError} onClose={handleCloseCamera} quality="high" showCaptureButton={true} showSwitchCamera={false} overlayComponent={<View style={styles.selfieOverlay}>
76
+ <View style={styles.faceFrame}/>
77
+ </View>}/>
78
+ </View>);
79
+ }
80
+ return (<View style={styles.container}>
81
+ {capturedSelfie ? (<View style={styles.previewContainer}>
82
+ <View style={styles.imageContainer}>
83
+ <Image source={{ uri: `file://${capturedSelfie}` }} style={styles.previewImage} resizeMode="cover"/>
84
+ </View>
85
+
86
+ <View style={styles.buttonContainer}>
87
+ <TouchableOpacity style={[styles.button, styles.retakeButton]} onPress={handleRetake}>
88
+ <Text style={styles.buttonText}>Reprendre</Text>
89
+ </TouchableOpacity>
90
+
91
+ <TouchableOpacity style={[styles.button, styles.validateButton]} onPress={() => { }}>
92
+ <Text style={styles.buttonText}>Valider</Text>
93
+ </TouchableOpacity>
94
+ </View>
95
+ </View>) : (<View style={styles.captureContainer}>
96
+ <Text style={styles.title}>Capture de selfie</Text>
97
+ <Text style={styles.instructions}>
98
+ {instructions}
99
+ </Text>
100
+
101
+ <TouchableOpacity style={[styles.button, styles.captureButton]} onPress={handleCapture} disabled={isCapturing}>
102
+ <Text style={styles.buttonText}>
103
+ {isCapturing ? 'Ouverture...' : '📸 Prendre une photo'}
104
+ </Text>
105
+ </TouchableOpacity>
106
+ </View>)}
107
+ </View>);
108
+ };
109
+ const styles = StyleSheet.create({
110
+ container: {
111
+ flex: 1,
112
+ backgroundColor: '#f5f5f5',
113
+ },
114
+ captureContainer: {
115
+ flex: 1,
116
+ justifyContent: 'center',
117
+ alignItems: 'center',
118
+ padding: 20,
119
+ },
120
+ title: {
121
+ fontSize: 24,
122
+ fontWeight: 'bold',
123
+ color: '#333',
124
+ marginBottom: 20,
125
+ textAlign: 'center',
126
+ },
127
+ instructions: {
128
+ fontSize: 16,
129
+ color: '#666',
130
+ textAlign: 'center',
131
+ marginBottom: 40,
132
+ lineHeight: 24,
133
+ },
134
+ previewContainer: {
135
+ flex: 1,
136
+ padding: 20,
137
+ },
138
+ imageContainer: {
139
+ flex: 1,
140
+ justifyContent: 'center',
141
+ alignItems: 'center',
142
+ marginBottom: 20,
143
+ },
144
+ previewImage: {
145
+ width: 250,
146
+ height: 250,
147
+ borderRadius: 125,
148
+ borderWidth: 3,
149
+ borderColor: '#4CAF50',
150
+ },
151
+ buttonContainer: {
152
+ flexDirection: 'row',
153
+ justifyContent: 'space-between',
154
+ gap: 15,
155
+ },
156
+ button: {
157
+ flex: 1,
158
+ paddingVertical: 15,
159
+ paddingHorizontal: 20,
160
+ borderRadius: 10,
161
+ alignItems: 'center',
162
+ justifyContent: 'center',
163
+ },
164
+ captureButton: {
165
+ backgroundColor: '#4CAF50',
166
+ },
167
+ retakeButton: {
168
+ backgroundColor: '#FF9800',
169
+ },
170
+ validateButton: {
171
+ backgroundColor: '#2196F3',
172
+ },
173
+ buttonText: {
174
+ color: 'white',
175
+ fontSize: 16,
176
+ fontWeight: '600',
177
+ },
178
+ selfieOverlay: {
179
+ position: 'absolute',
180
+ top: 0,
181
+ left: 0,
182
+ right: 0,
183
+ bottom: 0,
184
+ justifyContent: 'center',
185
+ alignItems: 'center',
186
+ pointerEvents: 'none',
187
+ },
188
+ faceFrame: {
189
+ width: 250,
190
+ height: 300,
191
+ borderWidth: 3,
192
+ borderColor: '#4CAF50',
193
+ borderRadius: 125,
194
+ backgroundColor: 'transparent',
195
+ },
196
+ });
197
+ //# sourceMappingURL=SelfieCapture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfieCapture.js","sourceRoot":"","sources":["../../src/components/SelfieCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC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pB,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,YAAY,EAAE,GAAG;QACjB,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS;KACvB;IACD,eAAe,EAAE;QACf,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,GAAG,EAAE,EAAE;KACR;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,aAAa,EAAE;QACb,eAAe,EAAE,SAAS;KAC3B;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,SAAS;KAC3B;IACD,cAAc,EAAE;QACd,eAAe,EAAE,SAAS;KAC3B;IACD,UAAU,EAAE;QACV,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,aAAa,EAAE;QACb,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,GAAG;QACjB,eAAe,EAAE,aAAa;KAC/B;CACF,CAAC,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { View, Text, TouchableOpacity, Image, Alert, StyleSheet } from 'react-native';\nimport { useKYCStore } from '../stores/kycStore';\nimport VisionCameraModule from '../modules/camera/VisionCameraModule';\nimport { EnhancedCameraView } from './EnhancedCameraView';\n\nexport const SelfieCapture: React.FC = () => {\n const [capturedSelfie, setCapturedSelfie] = useState<string | null>(null);\n const [isCapturing, setIsCapturing] = useState(false);\n const [showCamera, setShowCamera] = useState(false);\n const { setSelfie, setProcessing } = useKYCStore();\n\n const instructions = \"Placez votre visage dans le cadre et souriez naturellement. Assurez-vous que votre visage est bien éclairé et centré.\";\n\n useEffect(() => {\n // Check camera availability on component mount\n const checkCameraAvailability = async () => {\n const isAvailable = await VisionCameraModule.isCameraAvailable();\n if (!isAvailable) {\n Alert.alert('Erreur', 'Caméra non disponible sur cette plateforme');\n }\n };\n \n checkCameraAvailability();\n }, []);\n\n const handleCapture = async () => {\n try {\n setIsCapturing(true);\n setProcessing(true);\n\n const hasPermissions = await VisionCameraModule.requestAllPermissions();\n if (!hasPermissions) {\n Alert.alert('Permission refusée', 'Nous avons besoin de l\\'accès à la caméra et au microphone');\n setIsCapturing(false);\n setProcessing(false);\n return;\n }\n\n setShowCamera(true);\n } catch (error) {\n Alert.alert('Erreur', 'Impossible d\\'ouvrir la caméra');\n setIsCapturing(false);\n setProcessing(false);\n }\n };\n\n const handleCaptureSuccess = (imagePath: string) => {\n setCapturedSelfie(imagePath);\n setSelfie(imagePath);\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n const handleRetake = () => {\n setCapturedSelfie(null);\n setShowCamera(false);\n };\n\n const handleCameraCapture = (result: { success: boolean; path?: string; error?: string }) => {\n if (result.success && result.path) {\n handleCaptureSuccess(result.path);\n } else {\n Alert.alert('Erreur', result.error || 'Échec de la capture');\n setIsCapturing(false);\n setProcessing(false);\n }\n };\n\n const handleCameraError = (event: { message: string }) => {\n Alert.alert('Erreur', event.message || 'Une erreur est survenue');\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n const handleCloseCamera = () => {\n setShowCamera(false);\n setIsCapturing(false);\n setProcessing(false);\n };\n\n if (showCamera) {\n return (\n <View style={styles.container}>\n <EnhancedCameraView\n instructions={instructions}\n showCamera={true}\n cameraType=\"front\"\n onCapture={handleCameraCapture}\n onError={handleCameraError}\n onClose={handleCloseCamera}\n quality=\"high\"\n showCaptureButton={true}\n showSwitchCamera={false}\n overlayComponent={\n <View style={styles.selfieOverlay}>\n <View style={styles.faceFrame} />\n </View>\n }\n />\n </View>\n );\n }\n\n return (\n <View style={styles.container}>\n {capturedSelfie ? (\n <View style={styles.previewContainer}>\n <View style={styles.imageContainer}>\n <Image\n source={{ uri: `file://${capturedSelfie}` }}\n style={styles.previewImage}\n resizeMode=\"cover\"\n />\n </View>\n\n <View style={styles.buttonContainer}>\n <TouchableOpacity\n style={[styles.button, styles.retakeButton]}\n onPress={handleRetake}\n >\n <Text style={styles.buttonText}>Reprendre</Text>\n </TouchableOpacity>\n\n <TouchableOpacity\n style={[styles.button, styles.validateButton]}\n onPress={() => {/* Navigation vers l'étape suivante */}}\n >\n <Text style={styles.buttonText}>Valider</Text>\n </TouchableOpacity>\n </View>\n </View>\n ) : (\n <View style={styles.captureContainer}>\n <Text style={styles.title}>Capture de selfie</Text>\n <Text style={styles.instructions}>\n {instructions}\n </Text>\n \n <TouchableOpacity\n style={[styles.button, styles.captureButton]}\n onPress={handleCapture}\n disabled={isCapturing}\n >\n <Text style={styles.buttonText}>\n {isCapturing ? 'Ouverture...' : '📸 Prendre une photo'}\n </Text>\n </TouchableOpacity>\n </View>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f5f5f5',\n },\n captureContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n padding: 20,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 20,\n textAlign: 'center',\n },\n instructions: {\n fontSize: 16,\n color: '#666',\n textAlign: 'center',\n marginBottom: 40,\n lineHeight: 24,\n },\n previewContainer: {\n flex: 1,\n padding: 20,\n },\n imageContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n marginBottom: 20,\n },\n previewImage: {\n width: 250,\n height: 250,\n borderRadius: 125,\n borderWidth: 3,\n borderColor: '#4CAF50',\n },\n buttonContainer: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n gap: 15,\n },\n button: {\n flex: 1,\n paddingVertical: 15,\n paddingHorizontal: 20,\n borderRadius: 10,\n alignItems: 'center',\n justifyContent: 'center',\n },\n captureButton: {\n backgroundColor: '#4CAF50',\n },\n retakeButton: {\n backgroundColor: '#FF9800',\n },\n validateButton: {\n backgroundColor: '#2196F3',\n },\n buttonText: {\n color: 'white',\n fontSize: 16,\n fontWeight: '600',\n },\n selfieOverlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center',\n pointerEvents: 'none',\n },\n faceFrame: {\n width: 250,\n height: 300,\n borderWidth: 3,\n borderColor: '#4CAF50',\n borderRadius: 125,\n backgroundColor: 'transparent',\n },\n}); "]}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const SimpleExample: React.FC;
3
+ //# sourceMappingURL=SimpleExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleExample.d.ts","sourceRoot":"","sources":["../../src/components/SimpleExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkCjC,CAAC"}
@@ -0,0 +1,89 @@
1
+ import React from 'react';
2
+ import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
3
+ export const SimpleExample = () => {
4
+ return (<View style={styles.container}>
5
+ <View style={styles.card}>
6
+ <Text style={styles.title}>
7
+ Test React Native StyleSheet
8
+ </Text>
9
+
10
+ <Text style={styles.subtitle}>
11
+ Ce composant utilise StyleSheet de React Native
12
+ </Text>
13
+
14
+ <View style={styles.buttonContainer}>
15
+ <TouchableOpacity style={[styles.button, styles.primaryButton]}>
16
+ <Text style={styles.buttonText}>
17
+ Bouton Principal
18
+ </Text>
19
+ </TouchableOpacity>
20
+
21
+ <TouchableOpacity style={[styles.button, styles.successButton]}>
22
+ <Text style={styles.buttonText}>
23
+ Bouton Succès
24
+ </Text>
25
+ </TouchableOpacity>
26
+
27
+ <TouchableOpacity style={[styles.button, styles.errorButton]}>
28
+ <Text style={styles.buttonText}>
29
+ Bouton Erreur
30
+ </Text>
31
+ </TouchableOpacity>
32
+ </View>
33
+ </View>
34
+ </View>);
35
+ };
36
+ const styles = StyleSheet.create({
37
+ container: {
38
+ flex: 1,
39
+ backgroundColor: '#f5f5f5',
40
+ padding: 16,
41
+ },
42
+ card: {
43
+ backgroundColor: 'white',
44
+ borderRadius: 12,
45
+ padding: 24,
46
+ shadowColor: '#000',
47
+ shadowOffset: {
48
+ width: 0,
49
+ height: 2,
50
+ },
51
+ shadowOpacity: 0.1,
52
+ shadowRadius: 3.84,
53
+ elevation: 5,
54
+ },
55
+ title: {
56
+ fontSize: 24,
57
+ fontWeight: 'bold',
58
+ color: '#333',
59
+ marginBottom: 16,
60
+ },
61
+ subtitle: {
62
+ fontSize: 16,
63
+ color: '#666',
64
+ marginBottom: 24,
65
+ },
66
+ buttonContainer: {
67
+ gap: 16,
68
+ },
69
+ button: {
70
+ paddingHorizontal: 16,
71
+ paddingVertical: 12,
72
+ borderRadius: 8,
73
+ },
74
+ primaryButton: {
75
+ backgroundColor: '#4CAF50',
76
+ },
77
+ successButton: {
78
+ backgroundColor: '#2196F3',
79
+ },
80
+ errorButton: {
81
+ backgroundColor: '#F44336',
82
+ },
83
+ buttonText: {
84
+ color: 'white',
85
+ fontWeight: '500',
86
+ textAlign: 'center',
87
+ },
88
+ });
89
+ //# sourceMappingURL=SimpleExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleExample.js","sourceRoot":"","sources":["../../src/components/SimpleExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAg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IAAI,CACR;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,SAAS;QAC1B,OAAO,EAAE,EAAE;KACZ;IACD,IAAI,EAAE;QACJ,eAAe,EAAE,OAAO;QACxB,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE;YACZ,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;QACD,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,CAAC;KACb;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,EAAE;KACjB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,MAAM;QACb,YAAY,EAAE,EAAE;KACjB;IACD,eAAe,EAAE;QACf,GAAG,EAAE,EAAE;KACR;IACD,MAAM,EAAE;QACN,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,CAAC;KAChB;IACD,aAAa,EAAE;QACb,eAAe,EAAE,SAAS;KAC3B;IACD,aAAa,EAAE;QACb,eAAe,EAAE,SAAS;KAC3B;IACD,WAAW,EAAE;QACX,eAAe,EAAE,SAAS;KAC3B;IACD,UAAU,EAAE;QACV,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet } from 'react-native';\n\nexport const SimpleExample: React.FC = () => {\n return (\n <View style={styles.container}>\n <View style={styles.card}>\n <Text style={styles.title}>\n Test React Native StyleSheet\n </Text>\n \n <Text style={styles.subtitle}>\n Ce composant utilise StyleSheet de React Native\n </Text>\n \n <View style={styles.buttonContainer}>\n <TouchableOpacity style={[styles.button, styles.primaryButton]}>\n <Text style={styles.buttonText}>\n Bouton Principal\n </Text>\n </TouchableOpacity>\n \n <TouchableOpacity style={[styles.button, styles.successButton]}>\n <Text style={styles.buttonText}>\n Bouton Succès\n </Text>\n </TouchableOpacity>\n \n <TouchableOpacity style={[styles.button, styles.errorButton]}>\n <Text style={styles.buttonText}>\n Bouton Erreur\n </Text>\n </TouchableOpacity>\n </View>\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#f5f5f5',\n padding: 16,\n },\n card: {\n backgroundColor: 'white',\n borderRadius: 12,\n padding: 24,\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: 2,\n },\n shadowOpacity: 0.1,\n shadowRadius: 3.84,\n elevation: 5,\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 16,\n },\n subtitle: {\n fontSize: 16,\n color: '#666',\n marginBottom: 24,\n },\n buttonContainer: {\n gap: 16,\n },\n button: {\n paddingHorizontal: 16,\n paddingVertical: 12,\n borderRadius: 8,\n },\n primaryButton: {\n backgroundColor: '#4CAF50',\n },\n successButton: {\n backgroundColor: '#2196F3',\n },\n errorButton: {\n backgroundColor: '#F44336',\n },\n buttonText: {\n color: 'white',\n fontWeight: '500',\n textAlign: 'center',\n },\n}); "]}
@@ -0,0 +1,3 @@
1
+ declare const GpsIcon: () => import("react").JSX.Element;
2
+ export default GpsIcon;
3
+ //# sourceMappingURL=GpsIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GpsIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/GpsIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,mCAOZ,CAAA;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Svg, Path } from "react-native-svg";
2
+ const GpsIcon = () => {
3
+ return (<Svg width="19" height="19" viewBox="0 0 19 19" fill="none">
4
+ <Path d="M16.25 8.25C16.25 13.5 9.5 18 9.5 18C9.5 18 2.75 13.5 2.75 8.25C2.75 6.45979 3.46116 4.7429 4.72703 3.47703C5.9929 2.21116 7.70979 1.5 9.5 1.5C11.2902 1.5 13.0071 2.21116 14.273 3.47703C15.5388 4.7429 16.25 6.45979 16.25 8.25Z" stroke="#22C55E" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
5
+ <Path d="M9.5 10.5C10.7426 10.5 11.75 9.49264 11.75 8.25C11.75 7.00736 10.7426 6 9.5 6C8.25736 6 7.25 7.00736 7.25 8.25C7.25 9.49264 8.25736 10.5 9.5 10.5Z" stroke="#22C55E" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
6
+ </Svg>);
7
+ };
8
+ export default GpsIcon;
9
+ //# sourceMappingURL=GpsIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GpsIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/GpsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,GAAG,GAAG,EAAE;IACjB,OAAO,CACH,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CACvD;YAAA,CAAC,IAAI,CAAC,CAAC,CAAC,oOAAoO,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAC5T;YAAA,CAAC,IAAI,CAAC,CAAC,CAAC,oJAAoJ,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAChP;QAAA,EAAE,GAAG,CAAC,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,OAAO,CAAC","sourcesContent":["import { Svg, Path } from \"react-native-svg\";\n\nconst GpsIcon = () => {\n return (\n <Svg width=\"19\" height=\"19\" viewBox=\"0 0 19 19\" fill=\"none\">\n <Path d=\"M16.25 8.25C16.25 13.5 9.5 18 9.5 18C9.5 18 2.75 13.5 2.75 8.25C2.75 6.45979 3.46116 4.7429 4.72703 3.47703C5.9929 2.21116 7.70979 1.5 9.5 1.5C11.2902 1.5 13.0071 2.21116 14.273 3.47703C15.5388 4.7429 16.25 6.45979 16.25 8.25Z\" stroke=\"#22C55E\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <Path d=\"M9.5 10.5C10.7426 10.5 11.75 9.49264 11.75 8.25C11.75 7.00736 10.7426 6 9.5 6C8.25736 6 7.25 7.00736 7.25 8.25C7.25 9.49264 8.25736 10.5 9.5 10.5Z\" stroke=\"#22C55E\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </Svg>\n )\n}\n\nexport default GpsIcon;"]}
@@ -0,0 +1,3 @@
1
+ declare const ShieldIcon: () => import("react").JSX.Element;
2
+ export default ShieldIcon;
3
+ //# sourceMappingURL=Schield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schield.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/Schield.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,mCAqBf,CAAA;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Svg, Path, G, Filter, Defs, FeColorMatrix, FeOffset, FeGaussianBlur, FeComposite, FeBlend } from "react-native-svg";
2
+ const ShieldIcon = () => {
3
+ return (<Svg width="36" height="36" viewBox="0 0 29 36" fill="none">
4
+ <G filter="url(#filter0_d_4964_44)">
5
+ <Path d="M24.0375 2.86663C23.8923 2.74133 23.7226 2.65233 23.5409 2.60618C23.3592 2.56003 23.1701 2.55791 22.9875 2.59996C21.6518 2.89856 20.2729 2.90236 18.9358 2.61114C17.5987 2.31992 16.3316 1.73985 15.2125 0.906631C15.0033 0.751794 14.7547 0.668823 14.5 0.668823C14.2453 0.668823 13.9968 0.751794 13.7875 0.906631C12.6685 1.73985 11.4014 2.31992 10.0642 2.61114C8.72708 2.90236 7.34821 2.89856 6.01251 2.59996C5.82993 2.55791 5.64084 2.56003 5.45913 2.60618C5.27743 2.65233 5.10773 2.74133 4.96251 2.86663C4.81748 2.99212 4.70066 3.15068 4.62062 3.33065C4.54059 3.51062 4.49937 3.70744 4.50001 3.90663V13.84C4.4989 15.7516 4.92597 17.6359 5.74568 19.3359C6.56538 21.0359 7.75398 22.5024 9.21251 23.6133L13.775 27.08C13.9867 27.2407 14.2401 27.3271 14.5 27.3271C14.7599 27.3271 15.0133 27.2407 15.225 27.08L19.7875 23.6133C21.246 22.5024 22.4346 21.0359 23.2543 19.3359C24.074 17.6359 24.5011 15.7516 24.5 13.84V3.90663C24.5006 3.70744 24.4594 3.51062 24.3794 3.33065C24.2994 3.15068 24.1825 2.99212 24.0375 2.86663ZM22 13.84C22.001 15.3263 21.6691 16.7914 21.0321 18.1133C20.395 19.4352 19.4712 20.5758 18.3375 21.44L14.5 24.36L10.6625 21.44C9.5288 20.5758 8.60499 19.4352 7.96794 18.1133C7.3309 16.7914 6.99905 15.3263 7.00001 13.84V5.43996C9.62054 5.67921 12.2451 5.03066 14.5 3.58663C16.755 5.03066 19.3795 5.67921 22 5.43996V13.84Z" fill="white"/>
6
+ </G>
7
+ <Defs>
8
+ <Filter id="filter0_d_4964_44" x="0.5" y="0.668823" width="28" height="34.6583" filterUnits="userSpaceOnUse">
9
+ {/* <FeFlood flood-opacity="0" result="BackgroundImageFix" /> */}
10
+ <FeColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
11
+ <FeOffset dy="4"/>
12
+ <FeGaussianBlur stdDeviation="2"/>
13
+ <FeComposite in2="hardAlpha" operator="out"/>
14
+ <FeColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"/>
15
+ <FeBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4964_44"/>
16
+ <FeBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4964_44" result="shape"/>
17
+ </Filter>
18
+ </Defs>
19
+ </Svg>);
20
+ };
21
+ export default ShieldIcon;
22
+ //# sourceMappingURL=Schield.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schield.js","sourceRoot":"","sources":["../../../src/components/Svgs/Schield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE7H,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CACvD;YAAA,CAAC,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAC/B;gBAAA,CAAC,IAAI,CAAC,CAAC,CAAC,ozCAAozC,CAAC,IAAI,CAAC,OAAO,EAC70C;YAAA,EAAE,CAAC,CACH;YAAA,CAAC,IAAI,CACD;gBAAA,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,gBAAgB,CACxG;oBAAA,CAAC,+DAA+D,CAChE;oBAAA,CAAC,aAAa,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,2CAA2C,CAAC,MAAM,CAAC,WAAW,EACnH;oBAAA,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAChB;oBAAA,CAAC,cAAc,CAAC,YAAY,CAAC,GAAG,EAChC;oBAAA,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,EAC3C;oBAAA,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,4CAA4C,EAChF;oBAAA,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,CAAC,MAAM,CAAC,4BAA4B,EACnF;oBAAA,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,4BAA4B,CAAC,MAAM,CAAC,OAAO,EAC7F;gBAAA,EAAE,MAAM,CACZ;YAAA,EAAE,IAAI,CACV;QAAA,EAAE,GAAG,CAAC,CAET,CAAA;AACL,CAAC,CAAA;AAED,eAAe,UAAU,CAAC","sourcesContent":["import { Svg, Path, G, Filter, Defs, FeColorMatrix, FeOffset, FeGaussianBlur, FeComposite, FeBlend } from \"react-native-svg\";\n\nconst ShieldIcon = () => {\n return (\n <Svg width=\"36\" height=\"36\" viewBox=\"0 0 29 36\" fill=\"none\">\n <G filter=\"url(#filter0_d_4964_44)\">\n <Path d=\"M24.0375 2.86663C23.8923 2.74133 23.7226 2.65233 23.5409 2.60618C23.3592 2.56003 23.1701 2.55791 22.9875 2.59996C21.6518 2.89856 20.2729 2.90236 18.9358 2.61114C17.5987 2.31992 16.3316 1.73985 15.2125 0.906631C15.0033 0.751794 14.7547 0.668823 14.5 0.668823C14.2453 0.668823 13.9968 0.751794 13.7875 0.906631C12.6685 1.73985 11.4014 2.31992 10.0642 2.61114C8.72708 2.90236 7.34821 2.89856 6.01251 2.59996C5.82993 2.55791 5.64084 2.56003 5.45913 2.60618C5.27743 2.65233 5.10773 2.74133 4.96251 2.86663C4.81748 2.99212 4.70066 3.15068 4.62062 3.33065C4.54059 3.51062 4.49937 3.70744 4.50001 3.90663V13.84C4.4989 15.7516 4.92597 17.6359 5.74568 19.3359C6.56538 21.0359 7.75398 22.5024 9.21251 23.6133L13.775 27.08C13.9867 27.2407 14.2401 27.3271 14.5 27.3271C14.7599 27.3271 15.0133 27.2407 15.225 27.08L19.7875 23.6133C21.246 22.5024 22.4346 21.0359 23.2543 19.3359C24.074 17.6359 24.5011 15.7516 24.5 13.84V3.90663C24.5006 3.70744 24.4594 3.51062 24.3794 3.33065C24.2994 3.15068 24.1825 2.99212 24.0375 2.86663ZM22 13.84C22.001 15.3263 21.6691 16.7914 21.0321 18.1133C20.395 19.4352 19.4712 20.5758 18.3375 21.44L14.5 24.36L10.6625 21.44C9.5288 20.5758 8.60499 19.4352 7.96794 18.1133C7.3309 16.7914 6.99905 15.3263 7.00001 13.84V5.43996C9.62054 5.67921 12.2451 5.03066 14.5 3.58663C16.755 5.03066 19.3795 5.67921 22 5.43996V13.84Z\" fill=\"white\" />\n </G>\n <Defs>\n <Filter id=\"filter0_d_4964_44\" x=\"0.5\" y=\"0.668823\" width=\"28\" height=\"34.6583\" filterUnits=\"userSpaceOnUse\">\n {/* <FeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" /> */}\n <FeColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\n <FeOffset dy=\"4\" />\n <FeGaussianBlur stdDeviation=\"2\" />\n <FeComposite in2=\"hardAlpha\" operator=\"out\" />\n <FeColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0\" />\n <FeBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_4964_44\" />\n <FeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_4964_44\" result=\"shape\" />\n </Filter>\n </Defs>\n </Svg>\n\n )\n}\n\nexport default ShieldIcon;"]}
@@ -0,0 +1,3 @@
1
+ declare const FrontSelfieIcon: () => import("react").JSX.Element;
2
+ export default FrontSelfieIcon;
3
+ //# sourceMappingURL=frontSelfieIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontSelfieIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/frontSelfieIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,mCAQpB,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,11 @@
1
+ import Svg, { Path } from "react-native-svg";
2
+ const FrontSelfieIcon = () => {
3
+ return <Svg width="240" height="285" viewBox="0 0 240 285" fill="none">
4
+ <Path fill-rule="evenodd" clip-rule="evenodd" d="M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z" stroke="#2DBE60" strokeWidth="2"/>
5
+ <Path fill-rule="evenodd" clip-rule="evenodd" d="M230.689 128.956C235.531 138.98 234.491 163.862 226.181 178.777C223.182 184.16 218.047 188.814 210.775 192.738L210.514 192.743C216.838 170.205 220 148.457 220 127.5L219.995 125.802V125.802L220 125.795L220.249 125.664V125.664L220.518 125.535C220.612 125.493 220.708 125.451 220.808 125.41L221.116 125.291C221.169 125.272 221.223 125.253 221.277 125.234L221.61 125.127C224.335 124.301 228.483 124.388 230.689 128.956Z" stroke="#2DBE60" strokeWidth="2"/>
6
+ <Path fill-rule="evenodd" clip-rule="evenodd" d="M9.3184 128.956C4.47645 138.98 5.51723 163.862 13.8267 178.777C16.8259 184.16 21.9613 188.814 29.2329 192.738L29.4941 192.743C23.1697 170.205 20.0075 148.457 20.0075 127.5L20.0133 125.802V125.802L20.0075 125.795L19.7591 125.664V125.664L19.4893 125.535C19.396 125.493 19.2994 125.451 19.1997 125.41L18.8916 125.291C18.8387 125.272 18.7852 125.253 18.731 125.234L18.398 125.127C15.6723 124.301 11.5253 124.388 9.3184 128.956Z" stroke="#2DBE60" strokeWidth="2"/>
7
+ <Path d="M120 33.5V251.5" stroke="#F6F7F8" strokeWidth="2" stroke-dasharray="3 2"/>
8
+ </Svg>;
9
+ };
10
+ export default FrontSelfieIcon;
11
+ //# sourceMappingURL=frontSelfieIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontSelfieIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/frontSelfieIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAClE;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,shBAAshB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACvmB;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,iaAAia,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAClf;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,yaAAya,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAC1f;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,EACrF;IAAA,EAAE,GAAG,CAAC,CAAA;AAEV,CAAC,CAAA;AAED,eAAe,eAAe,CAAA","sourcesContent":["import Svg, { Path } from \"react-native-svg\"\n\nconst FrontSelfieIcon = () => {\n return <Svg width=\"240\" height=\"285\" viewBox=\"0 0 240 285\" fill=\"none\">\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M230.689 128.956C235.531 138.98 234.491 163.862 226.181 178.777C223.182 184.16 218.047 188.814 210.775 192.738L210.514 192.743C216.838 170.205 220 148.457 220 127.5L219.995 125.802V125.802L220 125.795L220.249 125.664V125.664L220.518 125.535C220.612 125.493 220.708 125.451 220.808 125.41L221.116 125.291C221.169 125.272 221.223 125.253 221.277 125.234L221.61 125.127C224.335 124.301 228.483 124.388 230.689 128.956Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.3184 128.956C4.47645 138.98 5.51723 163.862 13.8267 178.777C16.8259 184.16 21.9613 188.814 29.2329 192.738L29.4941 192.743C23.1697 170.205 20.0075 148.457 20.0075 127.5L20.0133 125.802V125.802L20.0075 125.795L19.7591 125.664V125.664L19.4893 125.535C19.396 125.493 19.2994 125.451 19.1997 125.41L18.8916 125.291C18.8387 125.272 18.7852 125.253 18.731 125.234L18.398 125.127C15.6723 124.301 11.5253 124.388 9.3184 128.956Z\" stroke=\"#2DBE60\" strokeWidth=\"2\" />\n <Path d=\"M120 33.5V251.5\" stroke=\"#F6F7F8\" strokeWidth=\"2\" stroke-dasharray=\"3 2\" />\n </Svg>\n\n}\n\nexport default FrontSelfieIcon"]}
@@ -0,0 +1,9 @@
1
+ interface ScanningLineProps {
2
+ yMin: number;
3
+ yMax: number;
4
+ screenWidth: number;
5
+ height: number;
6
+ }
7
+ declare const ScanningLine: ({ yMin, screenWidth, height, yMax }: ScanningLineProps) => import("react").JSX.Element;
8
+ export default ScanningLine;
9
+ //# sourceMappingURL=scanningLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scanningLine.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/scanningLine.tsx"],"names":[],"mappings":"AAIA,UAAU,iBAAiB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAA;CACjB;AACD,QAAA,MAAM,YAAY,GAAI,qCAAqC,iBAAiB,gCAiE3E,CAAA;AAYD,eAAe,YAAY,CAAA"}
@@ -0,0 +1,61 @@
1
+ import { useEffect, useState } from "react";
2
+ import { StyleSheet } from "react-native";
3
+ import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
4
+ const ScanningLine = ({ yMin, screenWidth, height, yMax }) => {
5
+ const [scanLineX, setScanLineX] = useState({
6
+ val: yMin - (40 + 280),
7
+ direction: 'down'
8
+ });
9
+ useEffect(() => {
10
+ const interval = setInterval(() => {
11
+ setScanLineX(prev => {
12
+ const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal
13
+ if (prev.direction === "down") {
14
+ if (newX > yMax - (280 - 40)) {
15
+ return { val: yMax + (40), direction: 'up' };
16
+ }
17
+ else {
18
+ return { val: newX, direction: 'down' };
19
+ }
20
+ }
21
+ else {
22
+ if (newX < yMin - (40)) {
23
+ return { val: yMin - (40 + 280), direction: 'down' };
24
+ }
25
+ else {
26
+ return { val: newX, direction: 'up' };
27
+ }
28
+ }
29
+ });
30
+ }, 2);
31
+ return () => clearInterval(interval);
32
+ }, []);
33
+ return <Svg width={screenWidth} height={height} style={styles.svg}>
34
+ <Defs>
35
+ <LinearGradient id="grad-rect" x1="0%" y1={scanLineX.direction === 'up' ? "100%" : "0%"} x2="0%" y2={scanLineX.direction === 'up' ? "0%" : "100%"}>
36
+ <Stop offset="30%" stopColor="#2DBD60" stopOpacity="0"/>
37
+ <Stop offset="40%" stopColor="#2DBD60" stopOpacity="0"/>
38
+ <Stop offset="50%" stopColor="#2DBD60" stopOpacity="0"/>
39
+ <Stop offset="60%" stopColor="#2DBD60" stopOpacity="0"/>
40
+ <Stop offset="70%" stopColor="#2DBD60" stopOpacity="0.02"/>
41
+ <Stop offset="88%" stopColor="#2DBD60" stopOpacity="0.09"/>
42
+ <Stop offset="90%" stopColor="#2DBD60" stopOpacity="0.42"/>
43
+ <Stop offset="100%" stopColor="#2DBD60" stopOpacity="1"/>
44
+ </LinearGradient>
45
+ </Defs>
46
+
47
+
48
+ <Rect x="0" y={scanLineX.val} width={screenWidth} height="280" rx="0" ry="0" fill="url(#grad-rect)"/>
49
+ </Svg>;
50
+ };
51
+ const styles = StyleSheet.create({
52
+ svg: {
53
+ position: 'absolute',
54
+ top: 0,
55
+ left: 0,
56
+ width: '100%',
57
+ height: '100%',
58
+ },
59
+ });
60
+ export default ScanningLine;
61
+ //# sourceMappingURL=scanningLine.js.map
@@ -0,0 +1 @@
1
+ {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CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACtD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACtD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EACzD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EACzD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EACzD;gBAAA,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EAC3D;YAAA,EAAE,cAAc,CACpB;QAAA,EAAE,IAAI,CAGN;;;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CACP,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CACjB,KAAK,CAAC,CAAC,WAAW,CAAC,CACnB,MAAM,CAAC,KAAK,CACZ,EAAE,CAAC,GAAG,CACN,EAAE,CAAC,GAAG,CACN,IAAI,CAAC,iBAAiB,EAG9B;IAAA,EAAE,GAAG,CAAC,CAAA;AAEV,CAAC,CAAA;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE;QACD,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACjB;CACJ,CAAC,CAAA;AAEF,eAAe,YAAY,CAAA","sourcesContent":["import { useEffect, useState } from \"react\";\nimport { StyleSheet } from \"react-native\";\nimport Svg, { Defs, LinearGradient, Rect, Stop } from \"react-native-svg\"\n\ninterface ScanningLineProps {\n yMin: number,\n yMax: number\n screenWidth: number,\n height: number\n}\nconst ScanningLine = ({ yMin, screenWidth, height, yMax }: ScanningLineProps) => {\n\n const [scanLineX, setScanLineX] = useState<{\n val: number,\n direction: 'up' | 'down'\n }>({\n val: yMin - (40 + 280),\n direction: 'down'\n });\n\n useEffect(() => {\n const interval = setInterval(() => {\n setScanLineX(prev => {\n\n const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal \n if (prev.direction === \"down\") {\n if (newX > yMax - (280 - 40)) {\n return { val: yMax + (40), direction: 'up' }\n } else {\n return { val: newX, direction: 'down' }\n }\n } else {\n if (newX < yMin - (40)) {\n return { val: yMin - (40 + 280), direction: 'down' }\n } else {\n return { val: newX, direction: 'up' }\n }\n }\n\n });\n }, 2);\n\n return () => clearInterval(interval);\n }, []);\n\n \n\n return <Svg width={screenWidth} height={height} style={styles.svg}>\n <Defs>\n <LinearGradient id=\"grad-rect\" x1=\"0%\"\n y1={scanLineX.direction === 'up' ? \"100%\" : \"0%\"} x2=\"0%\"\n y2={scanLineX.direction === 'up' ? \"0%\" : \"100%\"}>\n <Stop offset=\"30%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"40%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"50%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"60%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"70%\" stopColor=\"#2DBD60\" stopOpacity=\"0.02\" />\n <Stop offset=\"88%\" stopColor=\"#2DBD60\" stopOpacity=\"0.09\" />\n <Stop offset=\"90%\" stopColor=\"#2DBD60\" stopOpacity=\"0.42\" />\n <Stop offset=\"100%\" stopColor=\"#2DBD60\" stopOpacity=\"1\" />\n </LinearGradient>\n </Defs>\n\n\n <Rect x=\"0\"\n y={scanLineX.val}\n width={screenWidth}\n height=\"280\"\n rx=\"0\"\n ry=\"0\"\n fill=\"url(#grad-rect)\"\n\n />\n </Svg>\n\n}\n\nconst styles = StyleSheet.create({\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n})\n\nexport default ScanningLine"]}
@@ -0,0 +1,3 @@
1
+ declare const SideSelfieIcon: () => import("react").JSX.Element;
2
+ export default SideSelfieIcon;
3
+ //# sourceMappingURL=sideSelfieIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sideSelfieIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Svgs/sideSelfieIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc,mCAKnB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import Svg, { Path } from "react-native-svg";
2
+ const SideSelfieIcon = () => {
3
+ return <Svg width="240" height="285" viewBox="0 0 240 285" fill="none">
4
+ <Path fill-rule="evenodd" clip-rule="evenodd" d="M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z" stroke="#4CAF50" strokeWidth="4"/>
5
+ <Path d="M120 33.5V251.5" stroke="#4CAF50" strokeWidth="4" stroke-dasharray="3 2"/>
6
+ </Svg>;
7
+ };
8
+ export default SideSelfieIcon;
9
+ //# sourceMappingURL=sideSelfieIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sideSelfieIcon.js","sourceRoot":"","sources":["../../../src/components/Svgs/sideSelfieIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,MAAM,cAAc,GAAG,GAAG,EAAE;IACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAClE;QAAA,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,shBAAshB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,EACvmB;QAAA,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,EACrF;IAAA,EAAE,GAAG,CAAC,CAAA;AACV,CAAC,CAAA;AAED,eAAe,cAAc,CAAA","sourcesContent":["import Svg, { Path } from \"react-native-svg\"\n\nconst SideSelfieIcon = () => {\n return <Svg width=\"240\" height=\"285\" viewBox=\"0 0 240 285\" fill=\"none\">\n <Path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.4198 48.9242C38.2153 41.9014 42.5851 35.6693 48.3859 30.8232C61.3601 19.9842 88.1543 1.5 120 1.5C151.846 1.5 178.64 19.9842 191.614 30.8232C197.415 35.6693 201.785 41.9014 204.58 48.9242C210.484 63.7564 220 93.0114 220 127.5C220 168.082 204.19 212.617 198.234 227.954C196.792 231.667 194.971 235.196 192.628 238.417C183.46 251.021 156.313 283.5 120 283.5C83.6867 283.5 56.5401 251.021 47.3723 238.417C45.0294 235.196 43.2081 231.667 41.7663 227.954C35.8102 212.617 20 168.082 20 127.5C20 93.0114 29.5157 63.7564 35.4198 48.9242Z\" stroke=\"#4CAF50\" strokeWidth=\"4\" />\n <Path d=\"M120 33.5V251.5\" stroke=\"#4CAF50\" strokeWidth=\"4\" stroke-dasharray=\"3 2\" />\n </Svg>\n}\n\nexport default SideSelfieIcon"]}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { KYCTemplate, VerificationState } from '../types/KYC.types';
3
+ import { KycEnvironment, BackendEnvironment } from '../types/env.types';
4
+ export declare const TemplateKYCExample: React.FC<{
5
+ onComplete: (data: VerificationState) => void;
6
+ onCancel: () => void;
7
+ onError: (error: string) => void;
8
+ language: string;
9
+ API_KEY?: string;
10
+ templateId?: string;
11
+ template?: KYCTemplate;
12
+ env?: KycEnvironment;
13
+ serverEnv?: BackendEnvironment;
14
+ existingSessionId?: string;
15
+ initialComponentIndex?: number;
16
+ initialCountryResume?: {
17
+ code: string;
18
+ documentType: string;
19
+ region?: string;
20
+ };
21
+ }>;
22
+ //# sourceMappingURL=TemplateKYCExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateKYCExample.d.ts","sourceRoot":"","sources":["../../src/components/TemplateKYCExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsIxE,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChF,CAyCA,CAAC"}