@onairos/react-native 3.7.2 → 3.7.3

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 (237) hide show
  1. package/lib/commonjs/api/index.js +219 -9
  2. package/lib/commonjs/components/BodyText.js +27 -9
  3. package/lib/commonjs/components/BrandMark.js +111 -10
  4. package/lib/commonjs/components/CodeInput.js +116 -9
  5. package/lib/commonjs/components/EmailInput.js +30 -8
  6. package/lib/commonjs/components/GoogleButton.js +56 -9
  7. package/lib/commonjs/components/HeadingGroup.js +43 -9
  8. package/lib/commonjs/components/LLMDataInputModal.js +664 -14
  9. package/lib/commonjs/components/ModalHeader.js +99 -9
  10. package/lib/commonjs/components/ModalSheet.js +47 -9
  11. package/lib/commonjs/components/Onairos.js +380 -14
  12. package/lib/commonjs/components/OnairosButton.js +313 -13
  13. package/lib/commonjs/components/OnairosSignInButton.js +130 -12
  14. package/lib/commonjs/components/Overlay.js +465 -13
  15. package/lib/commonjs/components/PersonaImage.js +137 -10
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +318 -12
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +467 -13
  18. package/lib/commonjs/components/PinCreationScreen.js +403 -12
  19. package/lib/commonjs/components/PinInput.js +464 -9
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1311 -23
  21. package/lib/commonjs/components/PlatformList.js +137 -10
  22. package/lib/commonjs/components/PlatformToggle.js +180 -9
  23. package/lib/commonjs/components/PrimaryButton.js +180 -10
  24. package/lib/commonjs/components/SignInMatchAnimation.js +197 -9
  25. package/lib/commonjs/components/SignInStep.js +345 -12
  26. package/lib/commonjs/components/UniversalOnboarding.js +2780 -30
  27. package/lib/commonjs/components/VerificationStep.js +176 -11
  28. package/lib/commonjs/components/WelcomeScreen.js +461 -22
  29. package/lib/commonjs/components/icons/Basicproficon.js +37 -8
  30. package/lib/commonjs/components/icons/Basicprofile.js +21 -8
  31. package/lib/commonjs/components/icons/Checkbox.js +21 -8
  32. package/lib/commonjs/components/icons/Checkmark.js +27 -8
  33. package/lib/commonjs/components/icons/Contentanalysis.js +21 -8
  34. package/lib/commonjs/components/icons/Contenticon.js +39 -8
  35. package/lib/commonjs/components/icons/EnochE.js +41 -8
  36. package/lib/commonjs/components/icons/Personalityicon.js +30 -8
  37. package/lib/commonjs/components/icons/Personalityprofile.js +21 -8
  38. package/lib/commonjs/components/icons/Personalitytraits.js +21 -8
  39. package/lib/commonjs/components/icons/Userpreferences.js +21 -8
  40. package/lib/commonjs/components/icons/index.js +84 -17
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1754 -18
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +74 -10
  43. package/lib/commonjs/components/onboarding/PinInput.js +283 -10
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +249 -11
  45. package/lib/commonjs/config/PLATFORM_APIS.md +849 -0
  46. package/lib/commonjs/config/api.js +56 -7
  47. package/lib/commonjs/constants/index.js +120 -7
  48. package/lib/commonjs/context/AuthContext.js +345 -10
  49. package/lib/commonjs/hooks/useConnectedAccounts.js +111 -9
  50. package/lib/commonjs/hooks/useConnections.js +102 -8
  51. package/lib/commonjs/hooks/useCredentials.js +178 -10
  52. package/lib/commonjs/hooks/useUserConnections.js +148 -10
  53. package/lib/commonjs/index.js +439 -34
  54. package/lib/commonjs/services/apiClient.js +298 -8
  55. package/lib/commonjs/services/biometricPinService.js +180 -8
  56. package/lib/commonjs/services/chatGPTConversationExtractor.js +155 -8
  57. package/lib/commonjs/services/chatGPTConversationService.js +275 -9
  58. package/lib/commonjs/services/claudeConversationExtractor.js +103 -8
  59. package/lib/commonjs/services/claudeConversationService.js +158 -9
  60. package/lib/commonjs/services/connectedAccountsService.js +310 -10
  61. package/lib/commonjs/services/googleAuthService.js +252 -11
  62. package/lib/commonjs/services/hingeDataExtractor.js +105 -8
  63. package/lib/commonjs/services/hingeDataService.js +150 -9
  64. package/lib/commonjs/services/imageCompressionService.js +260 -7
  65. package/lib/commonjs/services/instagramDataExtractor.js +126 -8
  66. package/lib/commonjs/services/instagramDataService.js +163 -9
  67. package/lib/commonjs/services/jwtStorageService.js +276 -7
  68. package/lib/commonjs/services/linkedinDOMExtractor.js +245 -7
  69. package/lib/commonjs/services/linkedinProfileService.js +222 -9
  70. package/lib/commonjs/services/linkedinScrapingService.js +230 -8
  71. package/lib/commonjs/services/llmDataStorage.js +294 -8
  72. package/lib/commonjs/services/mobileTrainingService.js +186 -8
  73. package/lib/commonjs/services/netflixDataExtractor.js +120 -8
  74. package/lib/commonjs/services/netflixDataService.js +198 -9
  75. package/lib/commonjs/services/pinEncryptionService.js +84 -8
  76. package/lib/commonjs/services/pinStorageUtils.js +105 -7
  77. package/lib/commonjs/services/platformAuthService.js +1484 -12
  78. package/lib/commonjs/services/sephoraDataExtractor.js +140 -8
  79. package/lib/commonjs/services/sephoraDataService.js +200 -9
  80. package/lib/commonjs/services/spotifyDataExtractor.js +148 -8
  81. package/lib/commonjs/services/spotifyDataService.js +241 -9
  82. package/lib/commonjs/services/storageService.js +404 -8
  83. package/lib/commonjs/services/telegramDataExtractor.js +115 -8
  84. package/lib/commonjs/services/telegramDataService.js +499 -9
  85. package/lib/commonjs/services/trainingApiHelpers.js +73 -7
  86. package/lib/commonjs/services/userConnectionsService.js +340 -10
  87. package/lib/commonjs/services/youtubeMigrationService.js +416 -10
  88. package/lib/commonjs/theme/index.js +250 -7
  89. package/lib/commonjs/types/ambient.d.js +2 -1
  90. package/lib/commonjs/types/declarations.d.js +2 -1
  91. package/lib/commonjs/types/index.js +6 -1
  92. package/lib/commonjs/types/node-fix.d.js +2 -1
  93. package/lib/commonjs/types/node-override.d.js +2 -1
  94. package/lib/commonjs/types/opacity.d.js +2 -1
  95. package/lib/commonjs/types.js +14 -1
  96. package/lib/commonjs/utils/Portal.js +98 -8
  97. package/lib/commonjs/utils/api.js +130 -9
  98. package/lib/commonjs/utils/assetRegistry.js +210 -35
  99. package/lib/commonjs/utils/auth.js +112 -9
  100. package/lib/commonjs/utils/connectorTests.js +613 -29
  101. package/lib/commonjs/utils/crypto.js +62 -8
  102. package/lib/commonjs/utils/debugHelper.js +64 -1
  103. package/lib/commonjs/utils/encryption.js +76 -7
  104. package/lib/commonjs/utils/eventUtils.js +288 -1
  105. package/lib/commonjs/utils/haptics.js +66 -9
  106. package/lib/commonjs/utils/imagePreloader.js +6 -1
  107. package/lib/commonjs/utils/networkDiagnostics.js +226 -8
  108. package/lib/commonjs/utils/onairosApi.js +350 -9
  109. package/lib/commonjs/utils/programmaticFlow.js +117 -9
  110. package/lib/commonjs/utils/retryHelper.js +220 -1
  111. package/lib/commonjs/utils/secureStorage.js +349 -10
  112. package/lib/commonjs/utils/webviewScripts/chatgpt.js +551 -1
  113. package/lib/commonjs/utils/webviewScripts/claude.js +376 -1
  114. package/lib/commonjs/utils/webviewScripts/hinge.js +411 -1
  115. package/lib/commonjs/utils/webviewScripts/index.js +698 -15
  116. package/lib/commonjs/utils/webviewScripts/instagram.js +454 -1
  117. package/lib/commonjs/utils/webviewScripts/linkedin.js +880 -1
  118. package/lib/commonjs/utils/webviewScripts/netflix.js +382 -1
  119. package/lib/commonjs/utils/webviewScripts/sephora.js +516 -1
  120. package/lib/commonjs/utils/webviewScripts/spotify.js +419 -1
  121. package/lib/commonjs/utils/webviewScripts/telegram.js +678 -1
  122. package/lib/module/api/index.js +211 -1
  123. package/lib/module/components/BodyText.js +20 -1
  124. package/lib/module/components/BrandMark.js +104 -1
  125. package/lib/module/components/CodeInput.js +109 -1
  126. package/lib/module/components/EmailInput.js +23 -1
  127. package/lib/module/components/GoogleButton.js +49 -1
  128. package/lib/module/components/HeadingGroup.js +36 -1
  129. package/lib/module/components/LLMDataInputModal.js +656 -7
  130. package/lib/module/components/ModalHeader.js +92 -1
  131. package/lib/module/components/ModalSheet.js +39 -1
  132. package/lib/module/components/Onairos.js +373 -1
  133. package/lib/module/components/OnairosButton.js +305 -1
  134. package/lib/module/components/OnairosSignInButton.js +121 -1
  135. package/lib/module/components/Overlay.js +456 -1
  136. package/lib/module/components/PersonaImage.js +129 -1
  137. package/lib/module/components/PersonaLoadingScreen.js +310 -1
  138. package/lib/module/components/PersonalizationConsentScreen.js +460 -1
  139. package/lib/module/components/PinCreationScreen.js +396 -1
  140. package/lib/module/components/PinInput.js +456 -1
  141. package/lib/module/components/PlatformConnectorsStep.js +1302 -6
  142. package/lib/module/components/PlatformList.js +129 -1
  143. package/lib/module/components/PlatformToggle.js +173 -1
  144. package/lib/module/components/PrimaryButton.js +172 -1
  145. package/lib/module/components/SignInMatchAnimation.js +189 -1
  146. package/lib/module/components/SignInStep.js +338 -1
  147. package/lib/module/components/UniversalOnboarding.js +2770 -1
  148. package/lib/module/components/VerificationStep.js +168 -1
  149. package/lib/module/components/WelcomeScreen.js +453 -1
  150. package/lib/module/components/icons/Basicproficon.js +30 -1
  151. package/lib/module/components/icons/Basicprofile.js +14 -1
  152. package/lib/module/components/icons/Checkbox.js +14 -1
  153. package/lib/module/components/icons/Checkmark.js +20 -1
  154. package/lib/module/components/icons/Contentanalysis.js +14 -1
  155. package/lib/module/components/icons/Contenticon.js +32 -1
  156. package/lib/module/components/icons/EnochE.js +34 -1
  157. package/lib/module/components/icons/Personalityicon.js +23 -1
  158. package/lib/module/components/icons/Personalityprofile.js +14 -1
  159. package/lib/module/components/icons/Personalitytraits.js +14 -1
  160. package/lib/module/components/icons/Userpreferences.js +14 -1
  161. package/lib/module/components/icons/index.js +13 -1
  162. package/lib/module/components/onboarding/OAuthWebView.js +1746 -1
  163. package/lib/module/components/onboarding/OnboardingHeader.js +66 -1
  164. package/lib/module/components/onboarding/PinInput.js +274 -1
  165. package/lib/module/components/onboarding/PlatformConnector.js +240 -1
  166. package/lib/module/config/PLATFORM_APIS.md +849 -0
  167. package/lib/module/config/api.js +47 -1
  168. package/lib/module/constants/index.js +114 -1
  169. package/lib/module/context/AuthContext.js +335 -1
  170. package/lib/module/hooks/useConnectedAccounts.js +106 -1
  171. package/lib/module/hooks/useConnections.js +95 -1
  172. package/lib/module/hooks/useCredentials.js +171 -6
  173. package/lib/module/hooks/useUserConnections.js +140 -1
  174. package/lib/module/index.js +172 -1
  175. package/lib/module/services/apiClient.js +295 -1
  176. package/lib/module/services/biometricPinService.js +169 -1
  177. package/lib/module/services/chatGPTConversationExtractor.js +149 -1
  178. package/lib/module/services/chatGPTConversationService.js +268 -1
  179. package/lib/module/services/claudeConversationExtractor.js +97 -1
  180. package/lib/module/services/claudeConversationService.js +151 -1
  181. package/lib/module/services/connectedAccountsService.js +293 -1
  182. package/lib/module/services/googleAuthService.js +241 -1
  183. package/lib/module/services/hingeDataExtractor.js +99 -1
  184. package/lib/module/services/hingeDataService.js +143 -1
  185. package/lib/module/services/imageCompressionService.js +250 -1
  186. package/lib/module/services/instagramDataExtractor.js +120 -1
  187. package/lib/module/services/instagramDataService.js +156 -1
  188. package/lib/module/services/jwtStorageService.js +257 -1
  189. package/lib/module/services/linkedinDOMExtractor.js +234 -1
  190. package/lib/module/services/linkedinProfileService.js +210 -1
  191. package/lib/module/services/linkedinScrapingService.js +219 -1
  192. package/lib/module/services/llmDataStorage.js +277 -1
  193. package/lib/module/services/mobileTrainingService.js +173 -1
  194. package/lib/module/services/netflixDataExtractor.js +114 -1
  195. package/lib/module/services/netflixDataService.js +191 -1
  196. package/lib/module/services/pinEncryptionService.js +74 -6
  197. package/lib/module/services/pinStorageUtils.js +93 -1
  198. package/lib/module/services/platformAuthService.js +1461 -1
  199. package/lib/module/services/sephoraDataExtractor.js +134 -1
  200. package/lib/module/services/sephoraDataService.js +193 -1
  201. package/lib/module/services/spotifyDataExtractor.js +142 -1
  202. package/lib/module/services/spotifyDataService.js +234 -1
  203. package/lib/module/services/storageService.js +383 -1
  204. package/lib/module/services/telegramDataExtractor.js +109 -1
  205. package/lib/module/services/telegramDataService.js +493 -1
  206. package/lib/module/services/trainingApiHelpers.js +67 -1
  207. package/lib/module/services/userConnectionsService.js +329 -1
  208. package/lib/module/services/youtubeMigrationService.js +405 -1
  209. package/lib/module/theme/index.js +245 -1
  210. package/lib/module/types.js +10 -1
  211. package/lib/module/utils/Portal.js +90 -1
  212. package/lib/module/utils/api.js +118 -1
  213. package/lib/module/utils/assetRegistry.js +200 -34
  214. package/lib/module/utils/auth.js +100 -1
  215. package/lib/module/utils/connectorTests.js +600 -27
  216. package/lib/module/utils/crypto.js +54 -1
  217. package/lib/module/utils/debugHelper.js +54 -1
  218. package/lib/module/utils/encryption.js +67 -1
  219. package/lib/module/utils/eventUtils.js +270 -1
  220. package/lib/module/utils/haptics.js +59 -8
  221. package/lib/module/utils/imagePreloader.js +3 -1
  222. package/lib/module/utils/networkDiagnostics.js +217 -1
  223. package/lib/module/utils/onairosApi.js +333 -1
  224. package/lib/module/utils/programmaticFlow.js +111 -1
  225. package/lib/module/utils/retryHelper.js +211 -1
  226. package/lib/module/utils/secureStorage.js +330 -6
  227. package/lib/module/utils/webviewScripts/chatgpt.js +545 -1
  228. package/lib/module/utils/webviewScripts/claude.js +370 -1
  229. package/lib/module/utils/webviewScripts/hinge.js +405 -1
  230. package/lib/module/utils/webviewScripts/index.js +434 -1
  231. package/lib/module/utils/webviewScripts/instagram.js +448 -1
  232. package/lib/module/utils/webviewScripts/linkedin.js +874 -1
  233. package/lib/module/utils/webviewScripts/netflix.js +376 -1
  234. package/lib/module/utils/webviewScripts/sephora.js +510 -1
  235. package/lib/module/utils/webviewScripts/spotify.js +413 -1
  236. package/lib/module/utils/webviewScripts/telegram.js +672 -1
  237. package/package.json +2 -2
@@ -1 +1,396 @@
1
- import React,{useState,useEffect}from'react';import{View,Text,StyleSheet,TouchableOpacity,TextInput,Alert,ActivityIndicator}from'react-native';import{COLORS}from'../theme';import{triggerHaptic,HapticType}from'../utils/haptics';import{biometricPinService}from'../services/biometricPinService';import{setTemporaryPin}from'../services/pinStorageUtils';function _0x466d(){const _0xdc1cdf=['error','❌\x20PIN\x20storage\x20verification\x20failed','PIN\x20Storage\x20Error','luduG','ILngn','Invalid\x20PIN','available','Face\x20ID\x20Setup','Face\x20ID\x20authentication\x20was\x20cancelled\x20or\x20failed.\x20Your\x20PIN\x20is\x20still\x20saved\x20securely.','Try\x20Again','📱\x20Biometric\x20not\x20available,\x20continuing\x20without\x20Face\x20ID','wCQcS','❌\x20Error\x20checking\x20biometric\x20availability:','🔐\x20Starting\x20PIN\x20creation\x20process...','📝\x20PIN\x20stored\x20temporarily\x20for\x20onboarding','storing','🔐\x20[PIN\x20CREATION]\x20Biometric\x20storage\x20enabled,\x20starting\x20biometric\x20flow...','📱\x20[PIN\x20CREATION]\x20Biometric\x20available\x20before\x20storage:','UZRGK','❌\x20[PIN\x20CREATION]\x20Face\x20ID\x20not\x20available\x20on\x20this\x20device','raNtg','✅\x20PIN\x20storage\x20verified\x20-\x20proceeding\x20with\x20onboarding','VUbvT','dectP','4|2|1|3|0','PIN\x20storage\x20verification\x20failed.\x20Please\x20try\x20again.','getXi','LdxIK','unavailable','❌\x20Error\x20in\x20PIN\x20creation\x20process:','PIN\x20Creation\x20Error','There\x20was\x20an\x20issue\x20creating\x20your\x20PIN.\x20Please\x20try\x20again.','Create\x20a\x20PIN','Contain\x20an\x20uppercase\x20letter.','Contain\x20a\x20number.','small','#D4A536','Checking\x20Face\x20ID...','Enhanced\x20Security','Securing\x20with\x20Face\x20ID...','PIN\x20Secured\x20with\x20Face\x20ID','Face\x20ID\x20Setup\x20Failed','Face\x20ID\x20is\x20not\x20available\x20on\x20this\x20device.\x20Your\x20PIN\x20will\x20be\x20stored\x20securely.','#FFFFFF','Continue','YspnJ','JOssr','EANwr','ZkHSv','KFjPw','EikBn','gtJib','2|1|0|4|3','split','DmKfE','VpyRD','EpGBI','Ubrrp','ERROR','qLenH','length','test','iqNGR','values','every','yWyOQ','lsOhp','UvfeC','zRaxi','TXGOm','KxeKz','MCYEn','OPKhU','PuhMw','QzYMF','JBqbt','uATbw','BeIyb','alert','rApUi','BUTTON_PRESS','EGESq','log','vICgp','MTjdf','SROif','MtWJr','isBiometricAvailable','imJun','lvbLD','Zxaqn','vbmnh','gdETS','gmWMY','ctaWl','storePinWithBiometric','ZEImR','isPinStored','ZQkfu','tAeYh','ETFlW','jcFea','gHuce','gXGSO','DeehP','eVeEh','NCMzu','ZCERJ','SUCCESS','poSks','dokUL','ZAmFZ','QxsKd','RTFaE','WOyTs','fgwSV','OSIML','dHkgF','hnyHA','XwQpd','lPerp','lRUwX','bhetk','PSitd','ljYKH','FzpHz','NyVsK','heEHW','Yadrb','mdtNt','mcwAQ','QZHrS','BpPNw','GuSNo','mmRcX','checking','MfmPS','📱\x20Biometric\x20availability\x20check:','vkoqz','jqKsc','fzyBB','PGmqg','createElement','titleContainer','Syjla','subtitle','nVmne','pinContainer','pinInput','requirementsContainer','requirementsTitle','ILalt','requirementItem','checkbox','checkboxChecked','checkmark','requirementText','requirementTextMet','Be\x20at\x20least\x208\x20characters\x20in\x20length.','uppercase','SrYdQ','number','VkLii','symbol','rHJhZ','securityCard','CsaLR','AqsHd','securityCardSuccess','MIzJi','securityCardError','securityIconContainer','fjoNl','hqcRx','tOpBJ','securityIcon','securityTextContainer','securityTitle','xcFKi','FQfyM','Face\x20ID\x20Unavailable','hzWyu','HKMst','UStwl','securityDescription','lhoJN','DmXjC','owXuG','OmnsV','uekUf','Your\x20PIN\x20is\x20now\x20protected\x20with\x20Face\x20ID\x20authentication.','HJHSL','buttonContainer','continueButtonActive','lQhER','SuMJH','continueButtonTextActive','NGXfq','create','surface','center','700','grey800','grey600','Inter','#F8F9FA','#E5E5E5','row','#4CD964','bold','#22C55E','#FEF2F2','#EF4444','600','auto','#2D3436','#999999'];_0x466d=function(){return _0xdc1cdf;};return _0x466d();}const PinCreationScreen=({visible:_0x197edc,onComplete:_0x53dd46,onBack:_0xbe28b9})=>{const _0xa5b856={'DmKfE':function(_0x37b838,_0x4a58b4){return _0x37b838(_0x4a58b4);},'VpyRD':function(_0x671b41,_0x3df7e3){return _0x671b41(_0x3df7e3);},'EpGBI':_0x4b18(0x0),'fgwSV':_0x4b18(0x1),'OoOUu':_0x4b18(0x2),'Ubrrp':function(_0x2b6f5d,_0xafcd3){return _0x2b6f5d(_0xafcd3);},'KFjPw':function(_0x5f5653,_0x3cc0bf){return _0x5f5653===_0x3cc0bf;},'EikBn':_0x4b18(0x3),'gtJib':_0x4b18(0x4),'qLenH':function(_0x251949,_0x236e79){return _0x251949>=_0x236e79;},'iqNGR':function(_0x47d54e,_0x5145c2){return _0x47d54e(_0x5145c2);},'yWyOQ':function(_0x2a5e06,_0x5ad941){return _0x2a5e06(_0x5ad941);},'JOssr':function(_0x4a4b41,_0x4a870c){return _0x4a4b41(_0x4a870c);},'lsOhp':function(_0x2daeef,_0x39fa73){return _0x2daeef(_0x39fa73);},'rApUi':_0x4b18(0x5),'UvfeC':'Please\x20ensure\x20your\x20PIN\x20meets\x20all\x20requirements.','zRaxi':_0x4b18(0x6),'TXGOm':'⚠️\x20Face\x20ID\x20authentication\x20was\x20cancelled\x20or\x20failed','KxeKz':_0x4b18(0x7),'MCYEn':_0x4b18(0x8),'OPKhU':_0x4b18(0x9),'HtLNz':function(_0x33fc16,_0x38bfef){return _0x33fc16(_0x38bfef);},'PuhMw':_0x4b18(0xa),'NCMzu':function(_0x1f1754,_0x569818){return _0x1f1754(_0x569818);},'QzYMF':_0x4b18(0xb),'dxoFi':_0x4b18(0xc),'uATbw':function(_0x1c39f9,_0x1ae49e){return _0x1c39f9(_0x1ae49e);},'BeIyb':function(_0xdcb1fa,_0xde9df6){return _0xdcb1fa(_0xde9df6);},'gzcfu':function(_0x54fa0a,_0x34bce3){return _0x54fa0a(_0x34bce3);},'EGESq':function(_0x782091,_0x2919f2){return _0x782091(_0x2919f2);},'ABwdZ':_0x4b18(0xd),'vICgp':function(_0x298533,_0x4d08b6){return _0x298533(_0x4d08b6);},'MTjdf':_0x4b18(0xe),'SROif':_0x4b18(0xf),'MtWJr':_0x4b18(0x10),'imJun':_0x4b18(0x11),'lvbLD':function(_0xd4820c,_0x470490){return _0xd4820c!==_0x470490;},'Zxaqn':_0x4b18(0x12),'gmWMY':_0x4b18(0x13),'ctaWl':function(_0x26e84e,_0x3251cd){return _0x26e84e(_0x3251cd);},'ZEImR':'✅\x20PIN\x20stored\x20successfully\x20with\x20Face\x20ID','FQfyM':function(_0xf663c4,_0x22f2c9){return _0xf663c4===_0x22f2c9;},'ZQkfu':_0x4b18(0x14),'eVeEh':_0x4b18(0x15),'AqsHd':'success','ZCERJ':function(_0x537bb2,_0x1159c4){return _0x537bb2(_0x1159c4);},'poSks':function(_0x9fcc9a,_0x1813f0,_0x4fdd07){return _0x9fcc9a(_0x1813f0,_0x4fdd07);},'dokUL':_0x4b18(0x16),'ZAmFZ':_0x4b18(0x17),'RTFaE':_0x4b18(0x18),'WOyTs':_0x4b18(0x19),'MkTnF':_0x4b18(0x1a),'OSIML':_0x4b18(0x1b),'dHkgF':function(_0x2c82b4,_0x28e8ac){return _0x2c82b4(_0x28e8ac);},'EANwr':function(_0x47198b,_0xe9e539){return _0x47198b(_0xe9e539);},'FzpHz':_0x4b18(0x1c),'NyVsK':function(_0xdc1586,_0x45f1d5){return _0xdc1586(_0x45f1d5);},'JkkDR':function(_0x2e038f,_0x2bf1e1){return _0x2e038f(_0x2bf1e1);},'heEHW':'njSJZ','aHsdr':_0x4b18(0x1d),'mdtNt':function(_0x4ecccc,_0x4fd771){return _0x4ecccc(_0x4fd771);},'mcwAQ':_0x4b18(0x1e),'lBwaG':_0x4b18(0x1f),'BpPNw':function(_0x5da079,_0x4dddd4){return _0x5da079(_0x4dddd4);},'PGmqg':function(_0x1df55a){return _0x1df55a();},'mmRcX':'aVWhB','MfmPS':function(_0x3132d3,_0x1c2dfc){return _0x3132d3(_0x1c2dfc);},'vkoqz':function(_0x268688,_0x20b69c){return _0x268688(_0x20b69c);},'elyhB':function(_0x6ba77e,_0x23ae3f){return _0x6ba77e(_0x23ae3f);},'YspnJ':function(_0x2499c7,_0x29b551){return _0x2499c7(_0x29b551);},'ZkHSv':'checking','GuSNo':function(_0x2dfb50,_0x46c286,_0x303ac1){return _0x2dfb50(_0x46c286,_0x303ac1);},'Syjla':_0x4b18(0x20),'nVmne':'A\x20PIN\x20so\x20only\x20you\x20have\x20access\x20to\x20your\x20data.','soyVd':'Enter\x20your\x20PIN','ILalt':'Your\x20PIN\x20must:','SrYdQ':_0x4b18(0x21),'VkLii':_0x4b18(0x22),'rHJhZ':'Contain\x20a\x20symbol\x20(e.g.\x20!@#$%^&*).','CsaLR':function(_0x10fd97,_0x119c17){return _0x10fd97===_0x119c17;},'MIzJi':function(_0x21633f,_0x5a16ac){return _0x21633f===_0x5a16ac;},'hqcRx':_0x4b18(0x23),'fjoNl':function(_0x12db2b,_0x532576){return _0x12db2b===_0x532576;},'tOpBJ':_0x4b18(0x24),'xcFKi':_0x4b18(0x25),'ybsQG':_0x4b18(0x26),'hzWyu':_0x4b18(0x27),'kbdkM':_0x4b18(0x28),'HKMst':function(_0x4f4928,_0x9e7167){return _0x4f4928===_0x9e7167;},'UStwl':_0x4b18(0x29),'YoHtz':function(_0x769d0b,_0x4252ca){return _0x769d0b===_0x4252ca;},'lhoJN':'Verifying\x20Face\x20ID\x20availability\x20on\x20your\x20device.','DmXjC':function(_0x311806,_0x1e57b7){return _0x311806===_0x1e57b7;},'owXuG':'We\x20use\x20Face\x20ID\x20to\x20ensure\x20only\x20you\x20can\x20access\x20your\x20data.','OmnsV':function(_0x11c3c4,_0x28e8fb){return _0x11c3c4===_0x28e8fb;},'uekUf':_0x4b18(0x2a),'HJHSL':'Face\x20ID\x20setup\x20failed,\x20but\x20your\x20PIN\x20is\x20stored\x20securely.','lQhER':function(_0x3dd808,_0x1b4311){return _0x3dd808||_0x1b4311;},'SuMJH':_0x4b18(0x2b),'NGXfq':_0x4b18(0x2c)},[_0x48ea57,_0x392bd1]=_0xa5b856['elyhB'](useState,''),[_0x42b025,_0x1460c8]=_0xa5b856[_0x4b18(0x2d)](useState,{'length':![],'uppercase':![],'number':![],'symbol':![]}),[_0x147296,_0x233a9d]=_0xa5b856[_0x4b18(0x2e)](useState,![]),[_0x1c0720,_0x4fc7a6]=_0xa5b856['iqNGR'](useState,![]),[_0x43ae9a,_0x4a5ace]=_0xa5b856[_0x4b18(0x2f)](useState,_0xa5b856[_0x4b18(0x30)]),_0x4be972=_0x26fc5b=>{if(_0xa5b856[_0x4b18(0x31)](_0xa5b856[_0x4b18(0x32)],_0xa5b856[_0x4b18(0x33)])){const _0x353b9f=_0x4b18(0x34)[_0x4b18(0x35)]('|');let _0x5f6c51=0x0;while(!![]){switch(_0x353b9f[_0x5f6c51++]){case'0':_0xa5b856[_0x4b18(0x36)](_0x4058a1,![]);continue;case'1':_0xa5b856[_0x4b18(0x37)](_0x252a01,_0xa5b856[_0x4b18(0x38)]);continue;case'2':_0x51b0de[_0x4b18(0x0)](_0xa5b856['fgwSV']);continue;case'3':Alert['alert'](_0xa5b856['OoOUu'],'PIN\x20storage\x20verification\x20failed.\x20Please\x20try\x20again.',[{'text':'OK'}]);continue;case'4':_0xa5b856[_0x4b18(0x39)](_0x581b48,_0x55f861[_0x4b18(0x3a)]);continue;}break;}}else{const _0x2310da={'length':_0xa5b856[_0x4b18(0x3b)](_0x26fc5b[_0x4b18(0x3c)],0x8),'uppercase':/[A-Z]/[_0x4b18(0x3d)](_0x26fc5b),'number':/[0-9]/[_0x4b18(0x3d)](_0x26fc5b),'symbol':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x26fc5b)};return _0xa5b856[_0x4b18(0x3e)](_0x1460c8,_0x2310da),Object[_0x4b18(0x3f)](_0x2310da)[_0x4b18(0x40)](_0x54edf3=>_0x54edf3);}},_0x74db85=_0x1b0581=>{_0xa5b856[_0x4b18(0x41)](_0x392bd1,_0x1b0581),_0x4be972(_0x1b0581);},_0x52efc9=async()=>{const _0x212131={'vbmnh':function(_0x4929ee,_0x134b62){return _0xa5b856[_0x4b18(0x42)](_0x4929ee,_0x134b62);},'gdETS':_0xa5b856['rApUi'],'JXXYU':_0xa5b856[_0x4b18(0x43)],'tAeYh':function(_0x78e35f,_0x214c85){return _0xa5b856['JOssr'](_0x78e35f,_0x214c85);},'QxsKd':_0xa5b856[_0x4b18(0x44)],'ETFlW':_0xa5b856[_0x4b18(0x45)],'jcFea':_0xa5b856['EpGBI'],'gHuce':_0xa5b856[_0x4b18(0x46)],'zkYat':_0xa5b856[_0x4b18(0x47)],'gXGSO':_0xa5b856[_0x4b18(0x48)],'hnyHA':function(_0x54cd6b,_0x4e917c){return _0xa5b856['HtLNz'](_0x54cd6b,_0x4e917c);},'XwQpd':_0xa5b856[_0x4b18(0x49)],'ljYKH':_0x4b18(0x1c),'Yadrb':function(_0x3ff45b,_0x53bdd6){return _0xa5b856['NCMzu'](_0x3ff45b,_0x53bdd6);},'lPerp':_0xa5b856[_0x4b18(0x4a)],'stXnf':_0xa5b856['dxoFi'],'PSitd':function(_0x3451f9,_0x47426d){return _0xa5b856['yWyOQ'](_0x3451f9,_0x47426d);},'QZHrS':function(_0x164772,_0x59d6a0){return _0x164772(_0x59d6a0);}};if('JBqbt'===_0x4b18(0x4b)){if(!_0xa5b856[_0x4b18(0x4c)](_0x4be972,_0x48ea57)){_0xa5b856[_0x4b18(0x4d)](triggerHaptic,HapticType[_0x4b18(0x3a)]),Alert[_0x4b18(0x4e)](_0xa5b856[_0x4b18(0x4f)],'Please\x20ensure\x20your\x20PIN\x20meets\x20all\x20requirements.');return;}_0xa5b856['gzcfu'](triggerHaptic,HapticType[_0x4b18(0x50)]),_0xa5b856[_0x4b18(0x51)](_0x233a9d,!![]);try{console[_0x4b18(0x52)](_0xa5b856['ABwdZ']),_0xa5b856[_0x4b18(0x53)](setTemporaryPin,_0x48ea57),console[_0x4b18(0x52)](_0xa5b856[_0x4b18(0x54)]);if(_0x1c0720){_0x4a5ace(_0xa5b856[_0x4b18(0x55)]),console['log'](_0xa5b856[_0x4b18(0x56)]);const _0x360664=await biometricPinService[_0x4b18(0x57)]();console[_0x4b18(0x52)](_0xa5b856[_0x4b18(0x58)],_0x360664);if(!_0x360664){if(_0xa5b856[_0x4b18(0x59)](_0xa5b856[_0x4b18(0x5a)],_0xa5b856['Zxaqn'])){_0x212131[_0x4b18(0x5b)](_0x4226e9,_0x53e611[_0x4b18(0x3a)]),Alert[_0x4b18(0x4e)](_0x212131[_0x4b18(0x5c)],_0x212131['JXXYU']);return;}else{console[_0x4b18(0x0)](_0xa5b856[_0x4b18(0x5d)]),_0xa5b856[_0x4b18(0x2e)](_0x4a5ace,_0x4b18(0x1c)),_0xa5b856[_0x4b18(0x5e)](_0x233a9d,![]);return;}}console[_0x4b18(0x52)]('🔐\x20[PIN\x20CREATION]\x20Triggering\x20biometric\x20authentication\x20for\x20PIN\x20storage...');const _0x3e9bca=await biometricPinService[_0x4b18(0x5f)](_0x48ea57);if(_0x3e9bca){console[_0x4b18(0x52)](_0xa5b856[_0x4b18(0x60)]);const _0x4ee6c4=await biometricPinService[_0x4b18(0x61)]();if(_0x4ee6c4){if(_0xa5b856['FQfyM'](_0xa5b856[_0x4b18(0x62)],'BOVdB')){const _0x1d4e1d={'VAhCL':function(_0x5cfe89,_0x54aca3){return _0x212131[_0x4b18(0x63)](_0x5cfe89,_0x54aca3);},'DtiSx':function(_0x1023a6,_0x279005){return _0x212131[_0x4b18(0x5b)](_0x1023a6,_0x279005);},'DeehP':_0x212131['QxsKd']};_0x1e09c4[_0x4b18(0x52)](_0x212131[_0x4b18(0x64)]),_0x212131[_0x4b18(0x63)](_0x1f6d62,_0x212131[_0x4b18(0x65)]),_0x212131[_0x4b18(0x63)](_0x4bb695,_0x44fb03['ERROR']),Alert[_0x4b18(0x4e)](_0x212131[_0x4b18(0x66)],_0x212131['zkYat'],[{'text':_0x212131[_0x4b18(0x67)],'onPress':()=>{_0x1d4e1d['VAhCL'](_0x2a4ecb,![]),_0x1d4e1d['DtiSx'](_0x9ad153,_0x1d4e1d[_0x4b18(0x68)]);}},{'text':'Continue\x20Without\x20Face\x20ID','onPress':()=>{_0x212131['vbmnh'](_0x24415c,![]),_0x212131[_0x4b18(0x5b)](_0x2025e1,_0x74f93d);}}]);}else console[_0x4b18(0x52)](_0xa5b856[_0x4b18(0x69)]),_0xa5b856[_0x4b18(0x6a)](_0x4a5ace,_0xa5b856['AqsHd']),_0xa5b856[_0x4b18(0x6b)](triggerHaptic,HapticType[_0x4b18(0x6c)]),_0xa5b856[_0x4b18(0x6d)](setTimeout,()=>{_0xa5b856[_0x4b18(0x39)](_0x233a9d,![]),_0xa5b856[_0x4b18(0x2e)](_0x53dd46,_0x48ea57);},0x320);}else{if(_0xa5b856[_0x4b18(0x6e)]===_0xa5b856[_0x4b18(0x6f)])_0x52566c(![]),_0x212131[_0x4b18(0x63)](_0x2a7e9f,_0x212131[_0x4b18(0x70)]);else{const _0xdfc074=_0xa5b856[_0x4b18(0x71)][_0x4b18(0x35)]('|');let _0x11f0c6=0x0;while(!![]){switch(_0xdfc074[_0x11f0c6++]){case'0':Alert[_0x4b18(0x4e)](_0xa5b856['OoOUu'],_0xa5b856[_0x4b18(0x72)],[{'text':'OK'}]);continue;case'1':_0xa5b856[_0x4b18(0x5e)](_0x233a9d,![]);continue;case'2':_0xa5b856['DmKfE'](_0x4a5ace,_0xa5b856[_0x4b18(0x38)]);continue;case'3':_0xa5b856[_0x4b18(0x39)](triggerHaptic,HapticType['ERROR']);continue;case'4':console[_0x4b18(0x0)](_0xa5b856[_0x4b18(0x73)]);continue;}break;}}}}else _0xa5b856['MkTnF']!==_0xa5b856[_0x4b18(0x74)]?(console[_0x4b18(0x52)](_0xa5b856[_0x4b18(0x45)]),_0xa5b856[_0x4b18(0x75)](_0x4a5ace,_0xa5b856[_0x4b18(0x38)]),triggerHaptic(HapticType[_0x4b18(0x3a)]),Alert[_0x4b18(0x4e)](_0xa5b856[_0x4b18(0x46)],_0xa5b856[_0x4b18(0x47)],[{'text':_0xa5b856['OPKhU'],'onPress':()=>{_0x212131[_0x4b18(0x76)](_0x233a9d,![]),_0x4a5ace(_0x212131[_0x4b18(0x70)]);}},{'text':'Continue\x20Without\x20Face\x20ID','onPress':()=>{const _0x5d5832={'wYHGV':_0x212131[_0x4b18(0x77)],'lRUwX':function(_0x2bccc6,_0x40ec35){return _0x212131[_0x4b18(0x5b)](_0x2bccc6,_0x40ec35);},'bhetk':_0x212131['ljYKH'],'BhNOs':function(_0x317afa,_0x1865c9){return _0x212131['Yadrb'](_0x317afa,_0x1865c9);}};_0x212131[_0x4b18(0x78)]!==_0x212131['lPerp']?(_0x3abbe6['log'](_0x5d5832['wYHGV']),_0x5d5832[_0x4b18(0x79)](_0x2dd430,_0x5d5832[_0x4b18(0x7a)]),_0x5d5832['BhNOs'](_0x9e4522,![]),_0x5d5832['BhNOs'](_0x18b370,_0xc86cdb)):(_0x233a9d(![]),_0x212131[_0x4b18(0x5b)](_0x53dd46,_0x48ea57));}}])):(_0x4202f4[_0x4b18(0x0)](_0x212131['stXnf'],_0x19cdca),_0x12d3a2(![]),_0x212131[_0x4b18(0x7b)](_0x368c98,_0x212131[_0x4b18(0x7c)]));}else console[_0x4b18(0x52)](_0x4b18(0xa)),_0xa5b856[_0x4b18(0x2f)](_0x4a5ace,_0xa5b856[_0x4b18(0x7d)]),_0xa5b856[_0x4b18(0x7e)](_0x233a9d,![]),_0xa5b856['JkkDR'](_0x53dd46,_0x48ea57);}catch(_0x21b7fa){'njSJZ'!==_0xa5b856[_0x4b18(0x7f)]?(_0x212131[_0x4b18(0x80)](_0x237df3,_0x20d4c5),_0x212131['Yadrb'](_0x193cf4,_0x11b4f5)):(console[_0x4b18(0x0)](_0xa5b856['aHsdr'],_0x21b7fa),_0x4a5ace('error'),_0x233a9d(![]),_0xa5b856[_0x4b18(0x81)](triggerHaptic,HapticType[_0x4b18(0x3a)]),Alert[_0x4b18(0x4e)](_0xa5b856[_0x4b18(0x82)],_0xa5b856['lBwaG'],[{'text':'OK'}]));}}else _0x9ce5cc(![]),_0x212131[_0x4b18(0x83)](_0x3c1271,_0x5b83c1);},_0x496bbd=()=>{_0xa5b856[_0x4b18(0x84)](triggerHaptic,HapticType['BUTTON_PRESS']),_0xa5b856['PGmqg'](_0xbe28b9);};_0xa5b856[_0x4b18(0x85)](useEffect,()=>{const _0x1ea601={'jqKsc':function(_0x5ceead,_0x28d2e8){return _0xa5b856[_0x4b18(0x3b)](_0x5ceead,_0x28d2e8);},'fzyBB':function(_0x957623,_0x53ab64){return _0x957623(_0x53ab64);}},_0x1388c2=async()=>{if(_0xa5b856['lvbLD']('gKqfm',_0xa5b856[_0x4b18(0x86)]))try{_0xa5b856[_0x4b18(0x5e)](_0x4a5ace,_0x4b18(0x87));const _0x2027aa=await biometricPinService['isBiometricAvailable']();_0xa5b856[_0x4b18(0x6a)](_0x4fc7a6,_0x2027aa),_0xa5b856[_0x4b18(0x88)](_0x4a5ace,_0x2027aa?_0xa5b856['zRaxi']:_0x4b18(0x1c)),console['log'](_0x4b18(0x89),_0x2027aa);}catch(_0xf153b3){console[_0x4b18(0x0)](_0x4b18(0xc),_0xf153b3),_0xa5b856[_0x4b18(0x8a)](_0x4fc7a6,![]),_0xa5b856[_0x4b18(0x4d)](_0x4a5ace,_0x4b18(0x1c));}else{const _0x1cd213={'length':_0x1ea601[_0x4b18(0x8b)](_0x52d897[_0x4b18(0x3c)],0x8),'uppercase':/[A-Z]/[_0x4b18(0x3d)](_0x187e12),'number':/[0-9]/[_0x4b18(0x3d)](_0x49b297),'symbol':/[!@#$%^&*(),.?":{}|<>]/[_0x4b18(0x3d)](_0x121e29)};return _0x1ea601[_0x4b18(0x8c)](_0x40a31d,_0x1cd213),_0x46ef01[_0x4b18(0x3f)](_0x1cd213)[_0x4b18(0x40)](_0x58f552=>_0x58f552);}};_0x197edc&&_0xa5b856[_0x4b18(0x8d)](_0x1388c2);},[_0x197edc]);const _0x46d722=Object['values'](_0x42b025)[_0x4b18(0x40)](_0x48a76e=>_0x48a76e);if(!_0x197edc)return null;return React[_0x4b18(0x8e)](View,{'style':styles['container']},React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x8f)]},React[_0x4b18(0x8e)](Text,{'style':styles['title']},_0xa5b856[_0x4b18(0x90)]),React['createElement'](Text,{'style':styles[_0x4b18(0x91)]},_0xa5b856[_0x4b18(0x92)])),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x93)]},React['createElement'](TextInput,{'style':styles[_0x4b18(0x94)],'value':_0x48ea57,'onChangeText':_0x74db85,'placeholder':_0xa5b856['soyVd'],'secureTextEntry':!![],'autoFocus':!![],'maxLength':0x14})),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x95)]},React['createElement'](Text,{'style':styles[_0x4b18(0x96)]},_0xa5b856[_0x4b18(0x97)]),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x98)]},React[_0x4b18(0x8e)](View,{'style':[styles[_0x4b18(0x99)],_0x42b025[_0x4b18(0x3c)]&&styles[_0x4b18(0x9a)]]},_0x42b025[_0x4b18(0x3c)]&&React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0x9b)]},'✓')),React[_0x4b18(0x8e)](Text,{'style':[styles[_0x4b18(0x9c)],_0x42b025[_0x4b18(0x3c)]&&styles[_0x4b18(0x9d)]]},_0x4b18(0x9e))),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x98)]},React[_0x4b18(0x8e)](View,{'style':[styles[_0x4b18(0x99)],_0x42b025[_0x4b18(0x9f)]&&styles[_0x4b18(0x9a)]]},_0x42b025[_0x4b18(0x9f)]&&React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0x9b)]},'✓')),React['createElement'](Text,{'style':[styles['requirementText'],_0x42b025[_0x4b18(0x9f)]&&styles[_0x4b18(0x9d)]]},_0xa5b856[_0x4b18(0xa0)])),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x98)]},React[_0x4b18(0x8e)](View,{'style':[styles[_0x4b18(0x99)],_0x42b025['number']&&styles[_0x4b18(0x9a)]]},_0x42b025[_0x4b18(0xa1)]&&React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0x9b)]},'✓')),React[_0x4b18(0x8e)](Text,{'style':[styles['requirementText'],_0x42b025[_0x4b18(0xa1)]&&styles[_0x4b18(0x9d)]]},_0xa5b856[_0x4b18(0xa2)])),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0x98)]},React[_0x4b18(0x8e)](View,{'style':[styles['checkbox'],_0x42b025['symbol']&&styles[_0x4b18(0x9a)]]},_0x42b025[_0x4b18(0xa3)]&&React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0x9b)]},'✓')),React[_0x4b18(0x8e)](Text,{'style':[styles[_0x4b18(0x9c)],_0x42b025['symbol']&&styles[_0x4b18(0x9d)]]},_0xa5b856[_0x4b18(0xa4)]))),React[_0x4b18(0x8e)](View,{'style':[styles[_0x4b18(0xa5)],_0xa5b856[_0x4b18(0xa6)](_0x43ae9a,_0xa5b856[_0x4b18(0xa7)])&&styles[_0x4b18(0xa8)],_0xa5b856[_0x4b18(0xa9)](_0x43ae9a,_0x4b18(0x0))&&styles[_0x4b18(0xaa)]]},React['createElement'](View,{'style':styles[_0x4b18(0xab)]},_0x43ae9a===_0xa5b856[_0x4b18(0x30)]&&React[_0x4b18(0x8e)](ActivityIndicator,{'size':_0xa5b856['hqcRx'],'color':COLORS['grey600']}),_0xa5b856[_0x4b18(0xac)](_0x43ae9a,_0xa5b856['SROif'])&&React[_0x4b18(0x8e)](ActivityIndicator,{'size':_0xa5b856[_0x4b18(0xad)],'color':_0xa5b856[_0x4b18(0xae)]}),_0xa5b856[_0x4b18(0xa6)](_0x43ae9a,_0xa5b856[_0x4b18(0x44)])&&React['createElement'](Text,{'style':styles['securityIcon']},'🔐'),_0xa5b856['KFjPw'](_0x43ae9a,_0xa5b856['FzpHz'])&&React[_0x4b18(0x8e)](Text,{'style':styles['securityIcon']},'⚠️'),_0xa5b856[_0x4b18(0x31)](_0x43ae9a,_0xa5b856[_0x4b18(0xa7)])&&React[_0x4b18(0x8e)](Text,{'style':styles['securityIcon']},'✅'),_0x43ae9a===_0x4b18(0x0)&&React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0xaf)]},'❌')),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0xb0)]},React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0xb1)]},_0x43ae9a===_0xa5b856['ZkHSv']&&_0xa5b856[_0x4b18(0xb2)],_0x43ae9a===_0xa5b856[_0x4b18(0x44)]&&_0xa5b856['ybsQG'],_0xa5b856[_0x4b18(0xb3)](_0x43ae9a,_0xa5b856[_0x4b18(0x7d)])&&_0x4b18(0xb4),_0x43ae9a===_0xa5b856[_0x4b18(0x55)]&&_0xa5b856[_0x4b18(0xb5)],_0xa5b856[_0x4b18(0x31)](_0x43ae9a,_0xa5b856[_0x4b18(0xa7)])&&_0xa5b856['kbdkM'],_0xa5b856[_0x4b18(0xb6)](_0x43ae9a,_0xa5b856[_0x4b18(0x38)])&&_0xa5b856[_0x4b18(0xb7)]),React[_0x4b18(0x8e)](Text,{'style':styles[_0x4b18(0xb8)]},_0xa5b856['YoHtz'](_0x43ae9a,_0xa5b856[_0x4b18(0x30)])&&_0xa5b856[_0x4b18(0xb9)],_0xa5b856[_0x4b18(0xba)](_0x43ae9a,_0xa5b856[_0x4b18(0x44)])&&_0xa5b856[_0x4b18(0xbb)],_0xa5b856[_0x4b18(0xbc)](_0x43ae9a,_0xa5b856['FzpHz'])&&_0xa5b856[_0x4b18(0xbd)],_0x43ae9a===_0xa5b856['SROif']&&'Please\x20authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN.',_0x43ae9a===_0xa5b856[_0x4b18(0xa7)]&&_0x4b18(0xbe),_0xa5b856['KFjPw'](_0x43ae9a,_0xa5b856[_0x4b18(0x38)])&&_0xa5b856[_0x4b18(0xbf)]))),React[_0x4b18(0x8e)](View,{'style':styles[_0x4b18(0xc0)]},React['createElement'](TouchableOpacity,{'style':[styles['continueButton'],_0x46d722&&styles[_0x4b18(0xc1)]],'onPress':_0x52efc9,'disabled':_0xa5b856[_0x4b18(0xc2)](!_0x46d722,_0x147296)},_0x147296?React[_0x4b18(0x8e)](ActivityIndicator,{'size':_0xa5b856['hqcRx'],'color':_0xa5b856[_0x4b18(0xc3)]}):React[_0x4b18(0x8e)](Text,{'style':[styles['continueButtonText'],_0x46d722&&styles[_0x4b18(0xc4)]]},_0xa5b856[_0x4b18(0xc5)]))));},styles=StyleSheet[_0x4b18(0xc6)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x4b18(0xc7)],'paddingHorizontal':0x18,'paddingTop':0x28},'titleContainer':{'alignItems':_0x4b18(0xc8),'marginBottom':0x18,'paddingTop':0x0,'marginTop':0x0},'title':{'fontSize':0x18,'fontWeight':_0x4b18(0xc9),'color':COLORS[_0x4b18(0xca)],'marginBottom':0x8,'fontFamily':'IBM\x20Plex\x20Sans'},'subtitle':{'fontSize':0x10,'color':COLORS[_0x4b18(0xcb)],'lineHeight':0x18,'fontFamily':_0x4b18(0xcc)},'pinContainer':{'marginBottom':0x20},'pinInput':{'backgroundColor':_0x4b18(0xcd),'borderRadius':0xc,'paddingVertical':0x10,'paddingHorizontal':0x10,'fontSize':0x10,'fontFamily':_0x4b18(0xcc),'borderWidth':0x1,'borderColor':_0x4b18(0xce)},'requirementsContainer':{'marginBottom':0x20},'requirementsTitle':{'fontSize':0x10,'fontWeight':'600','color':COLORS[_0x4b18(0xca)],'marginBottom':0x10,'fontFamily':_0x4b18(0xcc)},'requirementItem':{'flexDirection':_0x4b18(0xcf),'alignItems':_0x4b18(0xc8),'marginBottom':0xc},'checkbox':{'width':0x14,'height':0x14,'borderRadius':0xa,'borderWidth':0x2,'borderColor':'#E5E5E5','marginRight':0xc,'alignItems':'center','justifyContent':_0x4b18(0xc8)},'checkboxChecked':{'borderColor':'#4CD964','backgroundColor':_0x4b18(0xd0)},'checkmark':{'color':_0x4b18(0x2b),'fontSize':0xc,'fontWeight':_0x4b18(0xd1)},'requirementText':{'fontSize':0xe,'color':COLORS[_0x4b18(0xcb)],'fontFamily':_0x4b18(0xcc),'flex':0x1},'requirementTextMet':{'color':COLORS['grey800']},'securityCard':{'backgroundColor':'#F8F9FA','borderRadius':0xc,'padding':0x10,'flexDirection':'row','alignItems':_0x4b18(0xc8),'marginBottom':0x18,'borderWidth':0x1,'borderColor':_0x4b18(0xce)},'securityCardSuccess':{'backgroundColor':'#F0FDF4','borderColor':_0x4b18(0xd2)},'securityCardError':{'backgroundColor':_0x4b18(0xd3),'borderColor':_0x4b18(0xd4)},'securityIconContainer':{'marginRight':0xc},'securityIcon':{'fontSize':0x18},'securityTextContainer':{'flex':0x1},'securityTitle':{'fontSize':0xe,'fontWeight':_0x4b18(0xd5),'color':COLORS['grey800'],'marginBottom':0x4,'fontFamily':_0x4b18(0xcc)},'securityDescription':{'fontSize':0xd,'color':COLORS[_0x4b18(0xcb)],'lineHeight':0x12,'fontFamily':_0x4b18(0xcc)},'buttonContainer':{'marginTop':_0x4b18(0xd6),'paddingBottom':0x22},'continueButton':{'backgroundColor':'#E5E5E5','borderRadius':0x19,'paddingVertical':0x10,'alignItems':_0x4b18(0xc8),'justifyContent':'center'},'continueButtonActive':{'backgroundColor':_0x4b18(0xd7)},'continueButtonText':{'fontSize':0x10,'fontWeight':_0x4b18(0xd5),'color':_0x4b18(0xd8),'fontFamily':_0x4b18(0xcc)},'continueButtonTextActive':{'color':_0x4b18(0x2b)}});export{PinCreationScreen};function _0x4b18(_0x466d55,_0x4b188f){_0x466d55=_0x466d55-0x0;const _0x3137bb=_0x466d();let _0x563499=_0x3137bb[_0x466d55];return _0x563499;}export default PinCreationScreen;
1
+ import React, { useState, useEffect } from 'react';
2
+ import { View, Text, StyleSheet, TouchableOpacity, TextInput, Alert, ActivityIndicator } from 'react-native';
3
+ import { COLORS } from '../theme';
4
+ import { triggerHaptic, HapticType } from '../utils/haptics';
5
+ import { biometricPinService } from '../services/biometricPinService';
6
+ import { setTemporaryPin } from '../services/pinStorageUtils';
7
+ const PinCreationScreen = ({
8
+ visible,
9
+ onComplete,
10
+ onBack
11
+ }) => {
12
+ const [pin, setPin] = useState('');
13
+ const [requirements, setRequirements] = useState({
14
+ length: false,
15
+ uppercase: false,
16
+ number: false,
17
+ symbol: false
18
+ });
19
+ const [isLoading, setIsLoading] = useState(false);
20
+ const [biometricAvailable, setBiometricAvailable] = useState(false);
21
+ const [biometricStatus, setBiometricStatus] = useState('checking');
22
+ const validatePin = pinText => {
23
+ const newRequirements = {
24
+ length: pinText.length >= 8,
25
+ uppercase: /[A-Z]/.test(pinText),
26
+ number: /[0-9]/.test(pinText),
27
+ symbol: /[!@#$%^&*(),.?":{}|<>]/.test(pinText)
28
+ };
29
+ setRequirements(newRequirements);
30
+ return Object.values(newRequirements).every(req => req);
31
+ };
32
+ const handlePinChange = text => {
33
+ setPin(text);
34
+ validatePin(text);
35
+ };
36
+ const handleContinue = async () => {
37
+ if (!validatePin(pin)) {
38
+ triggerHaptic(HapticType.ERROR);
39
+ Alert.alert('Invalid PIN', 'Please ensure your PIN meets all requirements.');
40
+ return;
41
+ }
42
+ triggerHaptic(HapticType.BUTTON_PRESS);
43
+ setIsLoading(true);
44
+ try {
45
+ console.log('🔐 Starting PIN creation process...');
46
+
47
+ // Store PIN temporarily for the onboarding flow first
48
+ setTemporaryPin(pin);
49
+ console.log('📝 PIN stored temporarily for onboarding');
50
+
51
+ // If biometric is available, immediately trigger Face ID authentication
52
+ if (biometricAvailable) {
53
+ setBiometricStatus('storing');
54
+ console.log('🔐 [PIN CREATION] Biometric storage enabled, starting biometric flow...');
55
+
56
+ // Double-check biometric availability right before triggering
57
+ const biometricStillAvailable = await biometricPinService.isBiometricAvailable();
58
+ console.log('📱 [PIN CREATION] Biometric available before storage:', biometricStillAvailable);
59
+ if (!biometricStillAvailable) {
60
+ console.error('❌ [PIN CREATION] Face ID not available on this device');
61
+ setBiometricStatus('unavailable');
62
+ setIsLoading(false);
63
+ return;
64
+ }
65
+
66
+ // Immediately attempt to store PIN with biometric authentication
67
+ console.log('🔐 [PIN CREATION] Triggering biometric authentication for PIN storage...');
68
+
69
+ // This will immediately show the Face ID prompt
70
+ const stored = await biometricPinService.storePinWithBiometric(pin);
71
+ if (stored) {
72
+ console.log('✅ PIN stored successfully with Face ID');
73
+
74
+ // Verify the PIN was actually stored by checking if it can be retrieved
75
+ const isStored = await biometricPinService.isPinStored();
76
+ if (isStored) {
77
+ console.log('✅ PIN storage verified - proceeding with onboarding');
78
+ setBiometricStatus('success');
79
+ triggerHaptic(HapticType.SUCCESS);
80
+
81
+ // Brief success state, then continue
82
+ setTimeout(() => {
83
+ setIsLoading(false);
84
+ onComplete(pin);
85
+ }, 800);
86
+ } else {
87
+ console.error('❌ PIN storage verification failed');
88
+ setBiometricStatus('error');
89
+ setIsLoading(false);
90
+ triggerHaptic(HapticType.ERROR);
91
+ Alert.alert('PIN Storage Error', 'PIN storage verification failed. Please try again.', [{
92
+ text: 'OK'
93
+ }]);
94
+ }
95
+ } else {
96
+ console.log('⚠️ Face ID authentication was cancelled or failed');
97
+ setBiometricStatus('error');
98
+ triggerHaptic(HapticType.ERROR);
99
+
100
+ // Show error but still allow continuation
101
+ Alert.alert('Face ID Setup', 'Face ID authentication was cancelled or failed. Your PIN is still saved securely.', [{
102
+ text: 'Try Again',
103
+ onPress: () => {
104
+ setIsLoading(false);
105
+ setBiometricStatus('available');
106
+ }
107
+ }, {
108
+ text: 'Continue Without Face ID',
109
+ onPress: () => {
110
+ setIsLoading(false);
111
+ onComplete(pin);
112
+ }
113
+ }]);
114
+ }
115
+ } else {
116
+ console.log('📱 Biometric not available, continuing without Face ID');
117
+ setBiometricStatus('unavailable');
118
+ setIsLoading(false);
119
+ onComplete(pin);
120
+ }
121
+ } catch (error) {
122
+ console.error('❌ Error in PIN creation process:', error);
123
+ setBiometricStatus('error');
124
+ setIsLoading(false);
125
+ triggerHaptic(HapticType.ERROR);
126
+ Alert.alert('PIN Creation Error', 'There was an issue creating your PIN. Please try again.', [{
127
+ text: 'OK'
128
+ }]);
129
+ }
130
+ };
131
+ const handleBack = () => {
132
+ triggerHaptic(HapticType.BUTTON_PRESS);
133
+ onBack();
134
+ };
135
+
136
+ // Check biometric availability on component mount
137
+ useEffect(() => {
138
+ const checkBiometric = async () => {
139
+ try {
140
+ setBiometricStatus('checking');
141
+ const available = await biometricPinService.isBiometricAvailable();
142
+ setBiometricAvailable(available);
143
+ setBiometricStatus(available ? 'available' : 'unavailable');
144
+ console.log('📱 Biometric availability check:', available);
145
+ } catch (error) {
146
+ console.error('❌ Error checking biometric availability:', error);
147
+ setBiometricAvailable(false);
148
+ setBiometricStatus('unavailable');
149
+ }
150
+ };
151
+ if (visible) {
152
+ checkBiometric();
153
+ }
154
+ }, [visible]);
155
+ const allRequirementsMet = Object.values(requirements).every(req => req);
156
+ if (!visible) return null;
157
+ return /*#__PURE__*/React.createElement(View, {
158
+ style: styles.container
159
+ }, /*#__PURE__*/React.createElement(View, {
160
+ style: styles.titleContainer
161
+ }, /*#__PURE__*/React.createElement(Text, {
162
+ style: styles.title
163
+ }, "Create a PIN"), /*#__PURE__*/React.createElement(Text, {
164
+ style: styles.subtitle
165
+ }, "A PIN so only you have access to your data.")), /*#__PURE__*/React.createElement(View, {
166
+ style: styles.pinContainer
167
+ }, /*#__PURE__*/React.createElement(TextInput, {
168
+ style: styles.pinInput,
169
+ value: pin,
170
+ onChangeText: handlePinChange,
171
+ placeholder: "Enter your PIN",
172
+ secureTextEntry: true,
173
+ autoFocus: true,
174
+ maxLength: 20
175
+ })), /*#__PURE__*/React.createElement(View, {
176
+ style: styles.requirementsContainer
177
+ }, /*#__PURE__*/React.createElement(Text, {
178
+ style: styles.requirementsTitle
179
+ }, "Your PIN must:"), /*#__PURE__*/React.createElement(View, {
180
+ style: styles.requirementItem
181
+ }, /*#__PURE__*/React.createElement(View, {
182
+ style: [styles.checkbox, requirements.length && styles.checkboxChecked]
183
+ }, requirements.length && /*#__PURE__*/React.createElement(Text, {
184
+ style: styles.checkmark
185
+ }, "\u2713")), /*#__PURE__*/React.createElement(Text, {
186
+ style: [styles.requirementText, requirements.length && styles.requirementTextMet]
187
+ }, "Be at least 8 characters in length.")), /*#__PURE__*/React.createElement(View, {
188
+ style: styles.requirementItem
189
+ }, /*#__PURE__*/React.createElement(View, {
190
+ style: [styles.checkbox, requirements.uppercase && styles.checkboxChecked]
191
+ }, requirements.uppercase && /*#__PURE__*/React.createElement(Text, {
192
+ style: styles.checkmark
193
+ }, "\u2713")), /*#__PURE__*/React.createElement(Text, {
194
+ style: [styles.requirementText, requirements.uppercase && styles.requirementTextMet]
195
+ }, "Contain an uppercase letter.")), /*#__PURE__*/React.createElement(View, {
196
+ style: styles.requirementItem
197
+ }, /*#__PURE__*/React.createElement(View, {
198
+ style: [styles.checkbox, requirements.number && styles.checkboxChecked]
199
+ }, requirements.number && /*#__PURE__*/React.createElement(Text, {
200
+ style: styles.checkmark
201
+ }, "\u2713")), /*#__PURE__*/React.createElement(Text, {
202
+ style: [styles.requirementText, requirements.number && styles.requirementTextMet]
203
+ }, "Contain a number.")), /*#__PURE__*/React.createElement(View, {
204
+ style: styles.requirementItem
205
+ }, /*#__PURE__*/React.createElement(View, {
206
+ style: [styles.checkbox, requirements.symbol && styles.checkboxChecked]
207
+ }, requirements.symbol && /*#__PURE__*/React.createElement(Text, {
208
+ style: styles.checkmark
209
+ }, "\u2713")), /*#__PURE__*/React.createElement(Text, {
210
+ style: [styles.requirementText, requirements.symbol && styles.requirementTextMet]
211
+ }, "Contain a symbol (e.g. !@#$%^&*)."))), /*#__PURE__*/React.createElement(View, {
212
+ style: [styles.securityCard, biometricStatus === 'success' && styles.securityCardSuccess, biometricStatus === 'error' && styles.securityCardError]
213
+ }, /*#__PURE__*/React.createElement(View, {
214
+ style: styles.securityIconContainer
215
+ }, biometricStatus === 'checking' && /*#__PURE__*/React.createElement(ActivityIndicator, {
216
+ size: "small",
217
+ color: COLORS.grey600
218
+ }), biometricStatus === 'storing' && /*#__PURE__*/React.createElement(ActivityIndicator, {
219
+ size: "small",
220
+ color: "#D4A536"
221
+ }), biometricStatus === 'available' && /*#__PURE__*/React.createElement(Text, {
222
+ style: styles.securityIcon
223
+ }, "\uD83D\uDD10"), biometricStatus === 'unavailable' && /*#__PURE__*/React.createElement(Text, {
224
+ style: styles.securityIcon
225
+ }, "\u26A0\uFE0F"), biometricStatus === 'success' && /*#__PURE__*/React.createElement(Text, {
226
+ style: styles.securityIcon
227
+ }, "\u2705"), biometricStatus === 'error' && /*#__PURE__*/React.createElement(Text, {
228
+ style: styles.securityIcon
229
+ }, "\u274C")), /*#__PURE__*/React.createElement(View, {
230
+ style: styles.securityTextContainer
231
+ }, /*#__PURE__*/React.createElement(Text, {
232
+ style: styles.securityTitle
233
+ }, biometricStatus === 'checking' && 'Checking Face ID...', biometricStatus === 'available' && 'Enhanced Security', biometricStatus === 'unavailable' && 'Face ID Unavailable', biometricStatus === 'storing' && 'Securing with Face ID...', biometricStatus === 'success' && 'PIN Secured with Face ID', biometricStatus === 'error' && 'Face ID Setup Failed'), /*#__PURE__*/React.createElement(Text, {
234
+ style: styles.securityDescription
235
+ }, biometricStatus === 'checking' && 'Verifying Face ID availability on your device.', biometricStatus === 'available' && 'We use Face ID to ensure only you can access your data.', biometricStatus === 'unavailable' && 'Face ID is not available on this device. Your PIN will be stored securely.', biometricStatus === 'storing' && 'Please authenticate with Face ID to secure your PIN.', biometricStatus === 'success' && 'Your PIN is now protected with Face ID authentication.', biometricStatus === 'error' && 'Face ID setup failed, but your PIN is stored securely.'))), /*#__PURE__*/React.createElement(View, {
236
+ style: styles.buttonContainer
237
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
238
+ style: [styles.continueButton, allRequirementsMet && styles.continueButtonActive],
239
+ onPress: handleContinue,
240
+ disabled: !allRequirementsMet || isLoading
241
+ }, isLoading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
242
+ size: "small",
243
+ color: "#FFFFFF"
244
+ }) : /*#__PURE__*/React.createElement(Text, {
245
+ style: [styles.continueButtonText, allRequirementsMet && styles.continueButtonTextActive]
246
+ }, "Continue"))));
247
+ };
248
+ const styles = StyleSheet.create({
249
+ container: {
250
+ flex: 1,
251
+ backgroundColor: COLORS.surface,
252
+ paddingHorizontal: 24,
253
+ paddingTop: 40
254
+ },
255
+ titleContainer: {
256
+ alignItems: 'center',
257
+ marginBottom: 24,
258
+ paddingTop: 0,
259
+ marginTop: 0
260
+ },
261
+ title: {
262
+ fontSize: 24,
263
+ fontWeight: '700',
264
+ color: COLORS.grey800,
265
+ marginBottom: 8,
266
+ fontFamily: 'IBM Plex Sans'
267
+ },
268
+ subtitle: {
269
+ fontSize: 16,
270
+ color: COLORS.grey600,
271
+ lineHeight: 24,
272
+ fontFamily: 'Inter'
273
+ },
274
+ pinContainer: {
275
+ marginBottom: 32
276
+ },
277
+ pinInput: {
278
+ backgroundColor: '#F8F9FA',
279
+ borderRadius: 12,
280
+ paddingVertical: 16,
281
+ paddingHorizontal: 16,
282
+ fontSize: 16,
283
+ fontFamily: 'Inter',
284
+ borderWidth: 1,
285
+ borderColor: '#E5E5E5'
286
+ },
287
+ requirementsContainer: {
288
+ marginBottom: 32
289
+ },
290
+ requirementsTitle: {
291
+ fontSize: 16,
292
+ fontWeight: '600',
293
+ color: COLORS.grey800,
294
+ marginBottom: 16,
295
+ fontFamily: 'Inter'
296
+ },
297
+ requirementItem: {
298
+ flexDirection: 'row',
299
+ alignItems: 'center',
300
+ marginBottom: 12
301
+ },
302
+ checkbox: {
303
+ width: 20,
304
+ height: 20,
305
+ borderRadius: 10,
306
+ borderWidth: 2,
307
+ borderColor: '#E5E5E5',
308
+ marginRight: 12,
309
+ alignItems: 'center',
310
+ justifyContent: 'center'
311
+ },
312
+ checkboxChecked: {
313
+ borderColor: '#4CD964',
314
+ backgroundColor: '#4CD964'
315
+ },
316
+ checkmark: {
317
+ color: '#FFFFFF',
318
+ fontSize: 12,
319
+ fontWeight: 'bold'
320
+ },
321
+ requirementText: {
322
+ fontSize: 14,
323
+ color: COLORS.grey600,
324
+ fontFamily: 'Inter',
325
+ flex: 1
326
+ },
327
+ requirementTextMet: {
328
+ color: COLORS.grey800
329
+ },
330
+ securityCard: {
331
+ backgroundColor: '#F8F9FA',
332
+ borderRadius: 12,
333
+ padding: 16,
334
+ flexDirection: 'row',
335
+ alignItems: 'center',
336
+ marginBottom: 24,
337
+ borderWidth: 1,
338
+ borderColor: '#E5E5E5'
339
+ },
340
+ securityCardSuccess: {
341
+ backgroundColor: '#F0FDF4',
342
+ borderColor: '#22C55E'
343
+ },
344
+ securityCardError: {
345
+ backgroundColor: '#FEF2F2',
346
+ borderColor: '#EF4444'
347
+ },
348
+ securityIconContainer: {
349
+ marginRight: 12
350
+ },
351
+ securityIcon: {
352
+ fontSize: 24
353
+ },
354
+ securityTextContainer: {
355
+ flex: 1
356
+ },
357
+ securityTitle: {
358
+ fontSize: 14,
359
+ fontWeight: '600',
360
+ color: COLORS.grey800,
361
+ marginBottom: 4,
362
+ fontFamily: 'Inter'
363
+ },
364
+ securityDescription: {
365
+ fontSize: 13,
366
+ color: COLORS.grey600,
367
+ lineHeight: 18,
368
+ fontFamily: 'Inter'
369
+ },
370
+ buttonContainer: {
371
+ marginTop: 'auto',
372
+ paddingBottom: 34
373
+ },
374
+ continueButton: {
375
+ backgroundColor: '#E5E5E5',
376
+ borderRadius: 25,
377
+ paddingVertical: 16,
378
+ alignItems: 'center',
379
+ justifyContent: 'center'
380
+ },
381
+ continueButtonActive: {
382
+ backgroundColor: '#2D3436'
383
+ },
384
+ continueButtonText: {
385
+ fontSize: 16,
386
+ fontWeight: '600',
387
+ color: '#999999',
388
+ fontFamily: 'Inter'
389
+ },
390
+ continueButtonTextActive: {
391
+ color: '#FFFFFF'
392
+ }
393
+ });
394
+ export { PinCreationScreen };
395
+ export default PinCreationScreen;
396
+ //# sourceMappingURL=PinCreationScreen.js.map