@onairos/react-native 3.4.1 → 3.6.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 (574) hide show
  1. package/README.md +423 -374
  2. package/lib/commonjs/api/index.js +9 -145
  3. package/lib/commonjs/assets/animations/loaderani.json +1 -0
  4. package/lib/commonjs/assets/animations/persona-animation.json +1 -0
  5. package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  7. package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
  8. package/lib/commonjs/assets/icons/Gmail.png +0 -0
  9. package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
  10. package/lib/commonjs/assets/icons/Redditicon.png +0 -0
  11. package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
  12. package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
  13. package/lib/commonjs/assets/icons/chatgpt.png +0 -0
  14. package/lib/commonjs/assets/icons/claude.png +0 -0
  15. package/lib/commonjs/assets/icons/gemini.png +0 -0
  16. package/lib/commonjs/assets/icons/grok.png +0 -0
  17. package/lib/commonjs/assets/images/Checkbox.svg +3 -0
  18. package/lib/commonjs/assets/images/EnochE.svg +19 -0
  19. package/lib/commonjs/assets/images/Enochicon1.png +0 -0
  20. package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
  21. package/lib/commonjs/assets/images/Facebookicon.png +0 -0
  22. package/lib/commonjs/assets/images/Gmail.png +0 -0
  23. package/lib/commonjs/assets/images/Googlelogo.png +0 -0
  24. package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
  25. package/lib/commonjs/assets/images/OnairosNewLogo.png +0 -0
  26. package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
  27. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
  28. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
  29. package/lib/commonjs/assets/images/Redditicon.png +0 -0
  30. package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
  31. package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
  32. package/lib/commonjs/assets/images/arrow.svg +20 -0
  33. package/lib/commonjs/assets/images/basicproficon.svg +43 -0
  34. package/lib/commonjs/assets/images/basicprofile.svg +3 -0
  35. package/lib/commonjs/assets/images/chatgpt.png +0 -0
  36. package/lib/commonjs/assets/images/checkmark.svg +4 -0
  37. package/lib/commonjs/assets/images/claude.png +0 -0
  38. package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
  39. package/lib/commonjs/assets/images/contenticon.svg +23 -0
  40. package/lib/commonjs/assets/images/gemini.png +0 -0
  41. package/lib/commonjs/assets/images/grok.png +0 -0
  42. package/lib/commonjs/assets/images/persona1.png +0 -0
  43. package/lib/commonjs/assets/images/persona2.png +0 -0
  44. package/lib/commonjs/assets/images/persona3.png +0 -0
  45. package/lib/commonjs/assets/images/persona4.png +0 -0
  46. package/lib/commonjs/assets/images/persona5.png +0 -0
  47. package/lib/commonjs/assets/images/personalityicon.svg +18 -0
  48. package/lib/commonjs/assets/images/x-close.svg +3 -0
  49. package/lib/commonjs/components/BodyText.js +9 -0
  50. package/lib/commonjs/components/BrandMark.js +10 -0
  51. package/lib/commonjs/components/CodeInput.js +9 -0
  52. package/lib/commonjs/components/EmailInput.js +8 -0
  53. package/lib/commonjs/components/GoogleButton.js +9 -0
  54. package/lib/commonjs/components/HeadingGroup.js +9 -0
  55. package/lib/commonjs/components/LLMDataInputModal.js +14 -0
  56. package/lib/commonjs/components/ModalHeader.js +9 -0
  57. package/lib/commonjs/components/ModalSheet.js +9 -0
  58. package/lib/commonjs/components/Onairos.js +14 -374
  59. package/lib/commonjs/components/OnairosButton.js +13 -309
  60. package/lib/commonjs/components/OnairosSignInButton.js +12 -0
  61. package/lib/commonjs/components/Overlay.js +13 -483
  62. package/lib/commonjs/components/PersonaImage.js +10 -0
  63. package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
  64. package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
  65. package/lib/commonjs/components/PinCreationScreen.js +12 -0
  66. package/lib/commonjs/components/PinInput.js +9 -302
  67. package/lib/commonjs/components/PlatformConnectorsStep.js +23 -0
  68. package/lib/commonjs/components/PlatformList.js +10 -137
  69. package/lib/commonjs/components/PlatformToggle.js +9 -0
  70. package/lib/commonjs/components/PrimaryButton.js +10 -0
  71. package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
  72. package/lib/commonjs/components/SignInStep.js +12 -0
  73. package/lib/commonjs/components/UniversalOnboarding.js +30 -1702
  74. package/lib/commonjs/components/VerificationStep.js +11 -0
  75. package/lib/commonjs/components/WelcomeScreen.js +22 -0
  76. package/lib/commonjs/components/icons/Basicproficon.js +8 -0
  77. package/lib/commonjs/components/icons/Basicprofile.js +8 -0
  78. package/lib/commonjs/components/icons/Checkbox.js +8 -0
  79. package/lib/commonjs/components/icons/Checkmark.js +8 -0
  80. package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
  81. package/lib/commonjs/components/icons/Contenticon.js +8 -0
  82. package/lib/commonjs/components/icons/EnochE.js +8 -0
  83. package/lib/commonjs/components/icons/Personalityicon.js +8 -0
  84. package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
  85. package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
  86. package/lib/commonjs/components/icons/Userpreferences.js +8 -0
  87. package/lib/commonjs/components/icons/index.js +17 -0
  88. package/lib/commonjs/components/onboarding/OAuthWebView.js +18 -827
  89. package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
  90. package/lib/commonjs/components/onboarding/PinInput.js +10 -283
  91. package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
  92. package/lib/commonjs/config/api.js +7 -0
  93. package/lib/commonjs/constants/index.js +7 -83
  94. package/lib/commonjs/context/AuthContext.js +10 -0
  95. package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
  96. package/lib/commonjs/hooks/useConnections.js +8 -159
  97. package/lib/commonjs/hooks/useCredentials.js +10 -177
  98. package/lib/commonjs/hooks/useUserConnections.js +10 -0
  99. package/lib/commonjs/index.js +34 -106
  100. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  101. package/lib/commonjs/services/apiClient.js +8 -0
  102. package/lib/commonjs/services/apiKeyService.js +9 -952
  103. package/lib/commonjs/services/authService.js +10 -0
  104. package/lib/commonjs/services/biometricPinService.js +8 -0
  105. package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
  106. package/lib/commonjs/services/chatGPTConversationService.js +9 -0
  107. package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
  108. package/lib/commonjs/services/claudeConversationService.js +9 -0
  109. package/lib/commonjs/services/connectedAccountsService.js +10 -0
  110. package/lib/commonjs/services/googleAuthService.js +11 -0
  111. package/lib/commonjs/services/hingeDataExtractor.js +8 -0
  112. package/lib/commonjs/services/hingeDataService.js +9 -0
  113. package/lib/commonjs/services/imageCompressionService.js +7 -0
  114. package/lib/commonjs/services/instagramDataExtractor.js +8 -0
  115. package/lib/commonjs/services/instagramDataService.js +9 -0
  116. package/lib/commonjs/services/jwtStorageService.js +7 -0
  117. package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
  118. package/lib/commonjs/services/linkedinProfileService.js +9 -0
  119. package/lib/commonjs/services/linkedinScrapingService.js +8 -0
  120. package/lib/commonjs/services/llmDataStorage.js +8 -0
  121. package/lib/commonjs/services/mobileTrainingService.js +8 -0
  122. package/lib/commonjs/services/oauthService.js +11 -390
  123. package/lib/commonjs/services/pinEncryptionService.js +8 -0
  124. package/lib/commonjs/services/pinStorageUtils.js +7 -0
  125. package/lib/commonjs/services/platformAuthService.js +12 -1067
  126. package/lib/commonjs/services/sephoraDataExtractor.js +8 -0
  127. package/lib/commonjs/services/sephoraDataService.js +9 -0
  128. package/lib/commonjs/services/storageService.js +8 -0
  129. package/lib/commonjs/services/telegramDataExtractor.js +8 -0
  130. package/lib/commonjs/services/telegramDataService.js +11 -0
  131. package/lib/commonjs/services/trainingApiHelpers.js +7 -0
  132. package/lib/commonjs/services/userConnectionsService.js +10 -0
  133. package/lib/commonjs/services/youtubeMigrationService.js +10 -0
  134. package/lib/commonjs/theme/index.js +7 -0
  135. package/lib/commonjs/types/ambient.d.js +1 -2
  136. package/lib/commonjs/types/declarations.d.js +1 -2
  137. package/lib/commonjs/types/index.js +1 -6
  138. package/lib/commonjs/types/node-fix.d.js +1 -2
  139. package/lib/commonjs/types/node-override.d.js +1 -2
  140. package/lib/commonjs/types/opacity.d.js +1 -2
  141. package/lib/commonjs/types.js +1 -14
  142. package/lib/commonjs/utils/Portal.js +8 -98
  143. package/lib/commonjs/utils/api.js +9 -129
  144. package/lib/commonjs/utils/assetRegistry.js +33 -0
  145. package/lib/commonjs/utils/auth.js +9 -111
  146. package/lib/commonjs/utils/connectorTests.js +29 -0
  147. package/lib/commonjs/utils/crypto.js +8 -62
  148. package/lib/commonjs/utils/debugHelper.js +1 -64
  149. package/lib/commonjs/utils/encryption.js +7 -76
  150. package/lib/commonjs/utils/eventUtils.js +1 -0
  151. package/lib/commonjs/utils/haptics.js +9 -0
  152. package/lib/commonjs/utils/imagePreloader.js +1 -0
  153. package/lib/commonjs/utils/networkDiagnostics.js +8 -0
  154. package/lib/commonjs/utils/onairosApi.js +9 -350
  155. package/lib/commonjs/utils/programmaticFlow.js +9 -117
  156. package/lib/commonjs/utils/retryHelper.js +1 -220
  157. package/lib/commonjs/utils/secureStorage.js +10 -349
  158. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
  159. package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
  160. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -0
  161. package/lib/commonjs/utils/webviewScripts/index.js +13 -0
  162. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -0
  163. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
  164. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -0
  165. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -0
  166. package/lib/module/api/index.js +1 -139
  167. package/lib/module/assets/animations/loaderani.json +1 -0
  168. package/lib/module/assets/animations/persona-animation.json +1 -0
  169. package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  170. package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  171. package/lib/module/assets/icons/Facebookicon.png +0 -0
  172. package/lib/module/assets/icons/Gmail.png +0 -0
  173. package/lib/module/assets/icons/Linkedinicon.png +0 -0
  174. package/lib/module/assets/icons/Redditicon.png +0 -0
  175. package/lib/module/assets/icons/YouTubeicon2.png +0 -0
  176. package/lib/module/assets/icons/YouTubeicon3.png +0 -0
  177. package/lib/module/assets/icons/chatgpt.png +0 -0
  178. package/lib/module/assets/icons/claude.png +0 -0
  179. package/lib/module/assets/icons/farcaster.png +0 -0
  180. package/lib/module/assets/icons/gemini.png +0 -0
  181. package/lib/module/assets/icons/grok.png +0 -0
  182. package/lib/module/assets/icons/instagram.png +0 -0
  183. package/lib/module/assets/icons/pinterest.png +0 -0
  184. package/lib/module/assets/icons/swerv_logo.png +0 -0
  185. package/lib/module/assets/icons/twitter.jpg +0 -0
  186. package/lib/module/assets/images/Checkbox.svg +3 -0
  187. package/lib/module/assets/images/EnochE.svg +19 -0
  188. package/lib/module/assets/images/Enochicon1.png +0 -0
  189. package/lib/module/assets/images/Face_ID_logo.png +0 -0
  190. package/lib/module/assets/images/Facebookicon.png +0 -0
  191. package/lib/module/assets/images/Gmail.png +0 -0
  192. package/lib/module/assets/images/Googlelogo.png +0 -0
  193. package/lib/module/assets/images/Linkedinicon.png +0 -0
  194. package/lib/module/assets/images/OnairosNewLogo.png +0 -0
  195. package/lib/module/assets/images/Onairoslogo.png +0 -0
  196. package/lib/module/assets/images/Personalityprofile.svg +3 -0
  197. package/lib/module/assets/images/Personalitytraits.svg +3 -0
  198. package/lib/module/assets/images/Redditicon.png +0 -0
  199. package/lib/module/assets/images/Userpreferences.svg +3 -0
  200. package/lib/module/assets/images/YouTubeicon3.png +0 -0
  201. package/lib/module/assets/images/arrow.svg +20 -0
  202. package/lib/module/assets/images/basicproficon.svg +43 -0
  203. package/lib/module/assets/images/basicprofile.svg +3 -0
  204. package/lib/module/assets/images/chatgpt.png +0 -0
  205. package/lib/module/assets/images/checkmark.svg +4 -0
  206. package/lib/module/assets/images/claude.png +0 -0
  207. package/lib/module/assets/images/contentanalysis.svg +3 -0
  208. package/lib/module/assets/images/contenticon.svg +23 -0
  209. package/lib/module/assets/images/gemini.png +0 -0
  210. package/lib/module/assets/images/grok.png +0 -0
  211. package/lib/module/assets/images/persona1.png +0 -0
  212. package/lib/module/assets/images/persona2.png +0 -0
  213. package/lib/module/assets/images/persona3.png +0 -0
  214. package/lib/module/assets/images/persona4.png +0 -0
  215. package/lib/module/assets/images/persona5.png +0 -0
  216. package/lib/module/assets/images/personalityicon.svg +18 -0
  217. package/lib/module/assets/images/x-close.svg +3 -0
  218. package/lib/module/components/BodyText.js +1 -0
  219. package/lib/module/components/BrandMark.js +1 -0
  220. package/lib/module/components/CodeInput.js +1 -0
  221. package/lib/module/components/EmailInput.js +1 -0
  222. package/lib/module/components/GoogleButton.js +1 -0
  223. package/lib/module/components/HeadingGroup.js +1 -0
  224. package/lib/module/components/LLMDataInputModal.js +8 -0
  225. package/lib/module/components/ModalHeader.js +1 -0
  226. package/lib/module/components/ModalSheet.js +1 -0
  227. package/lib/module/components/Onairos.js +1 -367
  228. package/lib/module/components/OnairosButton.js +1 -302
  229. package/lib/module/components/OnairosSignInButton.js +1 -0
  230. package/lib/module/components/Overlay.js +1 -474
  231. package/lib/module/components/PersonaImage.js +1 -0
  232. package/lib/module/components/PersonaLoadingScreen.js +1 -0
  233. package/lib/module/components/PersonalizationConsentScreen.js +1 -0
  234. package/lib/module/components/PinCreationScreen.js +1 -0
  235. package/lib/module/components/PinInput.js +1 -293
  236. package/lib/module/components/PlatformConnectorsStep.js +7 -0
  237. package/lib/module/components/PlatformList.js +1 -129
  238. package/lib/module/components/PlatformToggle.js +1 -0
  239. package/lib/module/components/PrimaryButton.js +1 -0
  240. package/lib/module/components/SignInMatchAnimation.js +1 -0
  241. package/lib/module/components/SignInStep.js +1 -0
  242. package/lib/module/components/UniversalOnboarding.js +1 -1693
  243. package/lib/module/components/VerificationStep.js +1 -0
  244. package/lib/module/components/WelcomeScreen.js +1 -0
  245. package/lib/module/components/icons/Basicproficon.js +1 -0
  246. package/lib/module/components/icons/Basicprofile.js +1 -0
  247. package/lib/module/components/icons/Checkbox.js +1 -0
  248. package/lib/module/components/icons/Checkmark.js +1 -0
  249. package/lib/module/components/icons/Contentanalysis.js +1 -0
  250. package/lib/module/components/icons/Contenticon.js +1 -0
  251. package/lib/module/components/icons/EnochE.js +1 -0
  252. package/lib/module/components/icons/Personalityicon.js +1 -0
  253. package/lib/module/components/icons/Personalityprofile.js +1 -0
  254. package/lib/module/components/icons/Personalitytraits.js +1 -0
  255. package/lib/module/components/icons/Userpreferences.js +1 -0
  256. package/lib/module/components/icons/index.js +1 -0
  257. package/lib/module/components/onboarding/OAuthWebView.js +1 -818
  258. package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
  259. package/lib/module/components/onboarding/PinInput.js +1 -274
  260. package/lib/module/components/onboarding/PlatformConnector.js +1 -240
  261. package/lib/module/config/api.js +1 -0
  262. package/lib/module/constants/index.js +1 -77
  263. package/lib/module/context/AuthContext.js +1 -0
  264. package/lib/module/hooks/useConnectedAccounts.js +1 -0
  265. package/lib/module/hooks/useConnections.js +1 -152
  266. package/lib/module/hooks/useCredentials.js +6 -169
  267. package/lib/module/hooks/useUserConnections.js +1 -0
  268. package/lib/module/index.js +1 -32
  269. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  270. package/lib/module/services/apiClient.js +1 -0
  271. package/lib/module/services/apiKeyService.js +1 -925
  272. package/lib/module/services/authService.js +1 -0
  273. package/lib/module/services/biometricPinService.js +1 -0
  274. package/lib/module/services/chatGPTConversationExtractor.js +1 -0
  275. package/lib/module/services/chatGPTConversationService.js +1 -0
  276. package/lib/module/services/claudeConversationExtractor.js +1 -0
  277. package/lib/module/services/claudeConversationService.js +1 -0
  278. package/lib/module/services/connectedAccountsService.js +1 -0
  279. package/lib/module/services/googleAuthService.js +1 -0
  280. package/lib/module/services/hingeDataExtractor.js +1 -0
  281. package/lib/module/services/hingeDataService.js +1 -0
  282. package/lib/module/services/imageCompressionService.js +1 -0
  283. package/lib/module/services/instagramDataExtractor.js +1 -0
  284. package/lib/module/services/instagramDataService.js +1 -0
  285. package/lib/module/services/jwtStorageService.js +1 -0
  286. package/lib/module/services/linkedinDOMExtractor.js +1 -0
  287. package/lib/module/services/linkedinProfileService.js +1 -0
  288. package/lib/module/services/linkedinScrapingService.js +1 -0
  289. package/lib/module/services/llmDataStorage.js +1 -0
  290. package/lib/module/services/mobileTrainingService.js +1 -0
  291. package/lib/module/services/oauthService.js +1 -380
  292. package/lib/module/services/pinEncryptionService.js +7 -0
  293. package/lib/module/services/pinStorageUtils.js +1 -0
  294. package/lib/module/services/platformAuthService.js +1 -1041
  295. package/lib/module/services/sephoraDataExtractor.js +1 -0
  296. package/lib/module/services/sephoraDataService.js +1 -0
  297. package/lib/module/services/storageService.js +1 -0
  298. package/lib/module/services/telegramDataExtractor.js +1 -0
  299. package/lib/module/services/telegramDataService.js +8 -0
  300. package/lib/module/services/trainingApiHelpers.js +1 -0
  301. package/lib/module/services/userConnectionsService.js +1 -0
  302. package/lib/module/services/youtubeMigrationService.js +1 -0
  303. package/lib/module/theme/index.js +1 -0
  304. package/lib/module/types.js +1 -10
  305. package/lib/module/utils/Portal.js +1 -90
  306. package/lib/module/utils/api.js +1 -117
  307. package/lib/module/utils/assetRegistry.js +33 -0
  308. package/lib/module/utils/auth.js +1 -99
  309. package/lib/module/utils/connectorTests.js +28 -0
  310. package/lib/module/utils/crypto.js +1 -54
  311. package/lib/module/utils/debugHelper.js +1 -54
  312. package/lib/module/utils/encryption.js +1 -67
  313. package/lib/module/utils/eventUtils.js +1 -0
  314. package/lib/module/utils/haptics.js +8 -0
  315. package/lib/module/utils/imagePreloader.js +1 -0
  316. package/lib/module/utils/networkDiagnostics.js +1 -0
  317. package/lib/module/utils/onairosApi.js +1 -333
  318. package/lib/module/utils/programmaticFlow.js +1 -111
  319. package/lib/module/utils/retryHelper.js +1 -211
  320. package/lib/module/utils/secureStorage.js +6 -330
  321. package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
  322. package/lib/module/utils/webviewScripts/claude.js +1 -0
  323. package/lib/module/utils/webviewScripts/hinge.js +1 -0
  324. package/lib/module/utils/webviewScripts/index.js +1 -0
  325. package/lib/module/utils/webviewScripts/instagram.js +1 -0
  326. package/lib/module/utils/webviewScripts/linkedin.js +1 -0
  327. package/lib/module/utils/webviewScripts/sephora.js +1 -0
  328. package/lib/module/utils/webviewScripts/telegram.js +1 -0
  329. package/package.json +62 -39
  330. package/lib/commonjs/api/index.js.map +0 -1
  331. package/lib/commonjs/assets/images/email.png +0 -0
  332. package/lib/commonjs/assets/images/linkedin.png +0 -0
  333. package/lib/commonjs/assets/images/reddit.png +0 -0
  334. package/lib/commonjs/assets/images/youtube.png +0 -0
  335. package/lib/commonjs/components/DataRequestModal.js +0 -228
  336. package/lib/commonjs/components/DataRequestModal.js.map +0 -1
  337. package/lib/commonjs/components/DataRequestScreen.js +0 -329
  338. package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
  339. package/lib/commonjs/components/EmailVerificationModal.js +0 -320
  340. package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
  341. package/lib/commonjs/components/Onairos.js.map +0 -1
  342. package/lib/commonjs/components/OnairosButton.js.map +0 -1
  343. package/lib/commonjs/components/Overlay.js.map +0 -1
  344. package/lib/commonjs/components/PinInput.js.map +0 -1
  345. package/lib/commonjs/components/PlatformList.js.map +0 -1
  346. package/lib/commonjs/components/TrainingModal.js +0 -717
  347. package/lib/commonjs/components/TrainingModal.js.map +0 -1
  348. package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
  349. package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
  350. package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
  351. package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
  352. package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
  353. package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
  354. package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
  355. package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
  356. package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
  357. package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
  358. package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
  359. package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
  360. package/lib/commonjs/constants/index.js.map +0 -1
  361. package/lib/commonjs/hooks/useConnections.js.map +0 -1
  362. package/lib/commonjs/hooks/useCredentials.js.map +0 -1
  363. package/lib/commonjs/index.js.map +0 -1
  364. package/lib/commonjs/services/apiKeyService.js.map +0 -1
  365. package/lib/commonjs/services/oauthService.js.map +0 -1
  366. package/lib/commonjs/services/platformAuthService.js.map +0 -1
  367. package/lib/commonjs/types/ambient.d.js.map +0 -1
  368. package/lib/commonjs/types/declarations.d.js.map +0 -1
  369. package/lib/commonjs/types/index.d.js.map +0 -1
  370. package/lib/commonjs/types/index.js.map +0 -1
  371. package/lib/commonjs/types/node-fix.d.js.map +0 -1
  372. package/lib/commonjs/types/node-override.d.js.map +0 -1
  373. package/lib/commonjs/types/opacity.d.js.map +0 -1
  374. package/lib/commonjs/types/types.d.js.map +0 -1
  375. package/lib/commonjs/types.js.map +0 -1
  376. package/lib/commonjs/utils/Portal.js.map +0 -1
  377. package/lib/commonjs/utils/api.js.map +0 -1
  378. package/lib/commonjs/utils/auth.js.map +0 -1
  379. package/lib/commonjs/utils/crypto.js.map +0 -1
  380. package/lib/commonjs/utils/debugHelper.js.map +0 -1
  381. package/lib/commonjs/utils/encryption.js.map +0 -1
  382. package/lib/commonjs/utils/onairosApi.js.map +0 -1
  383. package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
  384. package/lib/commonjs/utils/retryHelper.js.map +0 -1
  385. package/lib/commonjs/utils/secureStorage.js.map +0 -1
  386. package/lib/module/api/index.js.map +0 -1
  387. package/lib/module/assets/images/email.png +0 -0
  388. package/lib/module/assets/images/linkedin.png +0 -0
  389. package/lib/module/assets/images/reddit.png +0 -0
  390. package/lib/module/assets/images/youtube.png +0 -0
  391. package/lib/module/components/DataRequestModal.js +0 -220
  392. package/lib/module/components/DataRequestModal.js.map +0 -1
  393. package/lib/module/components/DataRequestScreen.js +0 -321
  394. package/lib/module/components/DataRequestScreen.js.map +0 -1
  395. package/lib/module/components/EmailVerificationModal.js +0 -311
  396. package/lib/module/components/EmailVerificationModal.js.map +0 -1
  397. package/lib/module/components/Onairos.js.map +0 -1
  398. package/lib/module/components/OnairosButton.js.map +0 -1
  399. package/lib/module/components/Overlay.js.map +0 -1
  400. package/lib/module/components/PinInput.js.map +0 -1
  401. package/lib/module/components/PlatformList.js.map +0 -1
  402. package/lib/module/components/TrainingModal.js +0 -708
  403. package/lib/module/components/TrainingModal.js.map +0 -1
  404. package/lib/module/components/UniversalOnboarding.js.map +0 -1
  405. package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
  406. package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
  407. package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
  408. package/lib/module/components/onboarding/PinInput.js.map +0 -1
  409. package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
  410. package/lib/module/components/screens/ConnectorScreen.js +0 -138
  411. package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
  412. package/lib/module/components/screens/LoadingScreen.js +0 -83
  413. package/lib/module/components/screens/LoadingScreen.js.map +0 -1
  414. package/lib/module/components/screens/PinCreationScreen.js +0 -53
  415. package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
  416. package/lib/module/constants/index.js.map +0 -1
  417. package/lib/module/hooks/useConnections.js.map +0 -1
  418. package/lib/module/hooks/useCredentials.js.map +0 -1
  419. package/lib/module/index.js.map +0 -1
  420. package/lib/module/services/apiKeyService.js.map +0 -1
  421. package/lib/module/services/oauthService.js.map +0 -1
  422. package/lib/module/services/platformAuthService.js.map +0 -1
  423. package/lib/module/types/ambient.d.js.map +0 -1
  424. package/lib/module/types/declarations.d.js.map +0 -1
  425. package/lib/module/types/index.d.js.map +0 -1
  426. package/lib/module/types/index.js.map +0 -1
  427. package/lib/module/types/node-fix.d.js.map +0 -1
  428. package/lib/module/types/node-override.d.js.map +0 -1
  429. package/lib/module/types/opacity.d.js.map +0 -1
  430. package/lib/module/types/types.d.js.map +0 -1
  431. package/lib/module/types.js.map +0 -1
  432. package/lib/module/utils/Portal.js.map +0 -1
  433. package/lib/module/utils/api.js.map +0 -1
  434. package/lib/module/utils/auth.js.map +0 -1
  435. package/lib/module/utils/crypto.js.map +0 -1
  436. package/lib/module/utils/debugHelper.js.map +0 -1
  437. package/lib/module/utils/encryption.js.map +0 -1
  438. package/lib/module/utils/onairosApi.js.map +0 -1
  439. package/lib/module/utils/programmaticFlow.js.map +0 -1
  440. package/lib/module/utils/retryHelper.js.map +0 -1
  441. package/lib/module/utils/secureStorage.js.map +0 -1
  442. package/lib/typescript/api/index.d.ts +0 -8
  443. package/lib/typescript/api/index.d.ts.map +0 -1
  444. package/lib/typescript/components/DataRequestModal.d.ts +0 -11
  445. package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
  446. package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
  447. package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
  448. package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
  449. package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
  450. package/lib/typescript/components/Onairos.d.ts +0 -4
  451. package/lib/typescript/components/Onairos.d.ts.map +0 -1
  452. package/lib/typescript/components/OnairosButton.d.ts +0 -12
  453. package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
  454. package/lib/typescript/components/Overlay.d.ts +0 -4
  455. package/lib/typescript/components/Overlay.d.ts.map +0 -1
  456. package/lib/typescript/components/PinInput.d.ts +0 -4
  457. package/lib/typescript/components/PinInput.d.ts.map +0 -1
  458. package/lib/typescript/components/PlatformList.d.ts +0 -4
  459. package/lib/typescript/components/PlatformList.d.ts.map +0 -1
  460. package/lib/typescript/components/TrainingModal.d.ts +0 -4
  461. package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
  462. package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
  463. package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
  464. package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
  465. package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
  466. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
  467. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
  468. package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
  469. package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
  470. package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
  471. package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
  472. package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
  473. package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
  474. package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
  475. package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
  476. package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
  477. package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
  478. package/lib/typescript/constants/index.d.ts +0 -53
  479. package/lib/typescript/constants/index.d.ts.map +0 -1
  480. package/lib/typescript/hooks/useConnections.d.ts +0 -9
  481. package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
  482. package/lib/typescript/hooks/useCredentials.d.ts +0 -9
  483. package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
  484. package/lib/typescript/index.d.ts +0 -18
  485. package/lib/typescript/index.d.ts.map +0 -1
  486. package/lib/typescript/services/apiKeyService.d.ts +0 -132
  487. package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
  488. package/lib/typescript/services/oauthService.d.ts +0 -50
  489. package/lib/typescript/services/oauthService.d.ts.map +0 -1
  490. package/lib/typescript/services/platformAuthService.d.ts +0 -144
  491. package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
  492. package/lib/typescript/types/index.d.ts +0 -231
  493. package/lib/typescript/types/index.d.ts.map +0 -1
  494. package/lib/typescript/types.d.ts +0 -270
  495. package/lib/typescript/types.d.ts.map +0 -1
  496. package/lib/typescript/utils/Portal.d.ts +0 -14
  497. package/lib/typescript/utils/Portal.d.ts.map +0 -1
  498. package/lib/typescript/utils/api.d.ts +0 -6
  499. package/lib/typescript/utils/api.d.ts.map +0 -1
  500. package/lib/typescript/utils/auth.d.ts +0 -6
  501. package/lib/typescript/utils/auth.d.ts.map +0 -1
  502. package/lib/typescript/utils/crypto.d.ts +0 -4
  503. package/lib/typescript/utils/crypto.d.ts.map +0 -1
  504. package/lib/typescript/utils/debugHelper.d.ts +0 -29
  505. package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
  506. package/lib/typescript/utils/encryption.d.ts +0 -19
  507. package/lib/typescript/utils/encryption.d.ts.map +0 -1
  508. package/lib/typescript/utils/onairosApi.d.ts +0 -87
  509. package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
  510. package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
  511. package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
  512. package/lib/typescript/utils/retryHelper.d.ts +0 -69
  513. package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
  514. package/lib/typescript/utils/secureStorage.d.ts +0 -94
  515. package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
  516. package/src/api/index.ts +0 -111
  517. package/src/assets/images/email.png +0 -0
  518. package/src/assets/images/linkedin.png +0 -0
  519. package/src/assets/images/onairos_logo.png +0 -0
  520. package/src/assets/images/reddit.png +0 -0
  521. package/src/assets/images/youtube.png +0 -0
  522. package/src/components/DataRequestModal.tsx +0 -227
  523. package/src/components/DataRequestScreen.tsx +0 -356
  524. package/src/components/EmailVerificationModal.tsx +0 -364
  525. package/src/components/Onairos.tsx +0 -425
  526. package/src/components/OnairosButton.tsx +0 -359
  527. package/src/components/Overlay.tsx +0 -506
  528. package/src/components/PinInput.tsx +0 -343
  529. package/src/components/PlatformList.tsx +0 -145
  530. package/src/components/TrainingModal.tsx +0 -737
  531. package/src/components/UniversalOnboarding.tsx +0 -1839
  532. package/src/components/UniversalOnboarding.tsx.new +0 -455
  533. package/src/components/onboarding/OAuthWebView.tsx +0 -838
  534. package/src/components/onboarding/OnboardingHeader.tsx +0 -70
  535. package/src/components/onboarding/PinInput.tsx +0 -356
  536. package/src/components/onboarding/PlatformConnector.tsx +0 -302
  537. package/src/components/screens/ConnectorScreen.tsx +0 -153
  538. package/src/components/screens/LoadingScreen.tsx +0 -100
  539. package/src/components/screens/PinCreationScreen.tsx +0 -67
  540. package/src/constants/index.ts +0 -83
  541. package/src/hooks/useConnections.ts +0 -163
  542. package/src/hooks/useCredentials.ts +0 -175
  543. package/src/index.js +0 -14
  544. package/src/index.ts +0 -50
  545. package/src/services/SDK_API_KEY_VALIDATION.md +0 -421
  546. package/src/services/apiKeyService.ts +0 -984
  547. package/src/services/oauthService.ts +0 -412
  548. package/src/services/platformAuthService.ts +0 -1113
  549. package/src/types/ambient.d.ts +0 -29
  550. package/src/types/declarations.d.ts +0 -26
  551. package/src/types/index.d.ts +0 -274
  552. package/src/types/index.ts +0 -244
  553. package/src/types/node-fix.d.ts +0 -19
  554. package/src/types/node-override.d.ts +0 -24
  555. package/src/types/opacity.d.ts +0 -16
  556. package/src/types/types.d.ts +0 -18
  557. package/src/types.ts +0 -298
  558. package/src/utils/Portal.tsx +0 -83
  559. package/src/utils/api.js +0 -112
  560. package/src/utils/auth.js +0 -104
  561. package/src/utils/crypto.js +0 -60
  562. package/src/utils/debugHelper.ts +0 -53
  563. package/src/utils/encryption.ts +0 -69
  564. package/src/utils/onairosApi.ts +0 -391
  565. package/src/utils/programmaticFlow.ts +0 -113
  566. package/src/utils/retryHelper.ts +0 -275
  567. package/src/utils/secureStorage.ts +0 -361
  568. package/types/index.d.ts +0 -218
  569. package/types/node-env.d.ts +0 -15
  570. /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
  571. /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
  572. /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
  573. /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
  574. /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
@@ -1,74 +1,10 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.OnboardingHeader = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
10
- var _constants = require("../../constants");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const OnboardingHeader = ({
13
- title,
14
- subtitle,
15
- showBackButton = false,
16
- onBack,
17
- onClose
18
- }) => {
19
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
20
- style: styles.header
21
- }, showBackButton && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
22
- style: styles.backButton,
23
- onPress: onBack
24
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
25
- name: "arrow-back",
26
- size: 24,
27
- color: "#000"
28
- })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
29
- style: styles.titleContainer
30
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
31
- style: styles.title
32
- }, title), subtitle && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
33
- style: styles.subtitle
34
- }, subtitle)), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
35
- style: styles.closeButton,
36
- onPress: onClose
37
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
38
- name: "close",
39
- size: 24,
40
- color: "#000"
41
- })));
42
- };
43
- exports.OnboardingHeader = OnboardingHeader;
44
- const styles = _reactNative.StyleSheet.create({
45
- header: {
46
- flexDirection: 'row',
47
- alignItems: 'center',
48
- padding: 16,
49
- backgroundColor: _constants.COLORS.headerBg,
50
- borderTopLeftRadius: 16,
51
- borderTopRightRadius: 16
52
- },
53
- backButton: {
54
- padding: 8,
55
- marginRight: 8
56
- },
57
- titleContainer: {
58
- flex: 1
59
- },
60
- title: {
61
- fontSize: 18,
62
- fontWeight: '600',
63
- color: '#000'
64
- },
65
- subtitle: {
66
- fontSize: 14,
67
- color: '#666',
68
- marginTop: 4
69
- },
70
- closeButton: {
71
- padding: 8
72
- }
73
- });
74
- //# sourceMappingURL=OnboardingHeader.js.map
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("react"),
5
+ require("react-native"),
6
+ require("react-native-vector-icons/MaterialIcons"),
7
+ require("../../constants")
8
+ ];
9
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
10
+ Object[_0x1001(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x1001(0x1)]=void 0x0;var _react=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_MaterialIcons=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_constants=__ONAIROS_REQ_FUNC__(0x3);function _0x1001(_0x1bd8cf,_0x100195){_0x1bd8cf=_0x1bd8cf-0x0;var _0x2fd457=_0x1bd8();var _0x5a238b=_0x2fd457[_0x1bd8cf];return _0x5a238b;}function _interopRequireDefault(_0xff52f4){return _0xff52f4&&_0xff52f4['__esModule']?_0xff52f4:{'default':_0xff52f4};}const OnboardingHeader=({title:_0x477e7d,subtitle:_0x5d721a,showBackButton:showBackButton=![],onBack:_0xd3c965,onClose:_0x7a529f})=>{var _0x5cb83f={'vFbId':_0x1001(0x2),'YobtI':'#000','hYStM':_0x1001(0x3)};return _react[_0x1001(0x4)]['createElement'](_reactNative[_0x1001(0x5)],{'style':styles[_0x1001(0x6)]},showBackButton&&_react['default'][_0x1001(0x7)](_reactNative[_0x1001(0x8)],{'style':styles['backButton'],'onPress':_0xd3c965},_react['default'][_0x1001(0x7)](_MaterialIcons[_0x1001(0x4)],{'name':_0x5cb83f[_0x1001(0x9)],'size':0x18,'color':_0x5cb83f['YobtI']})),_react['default']['createElement'](_reactNative[_0x1001(0x5)],{'style':styles['titleContainer']},_react[_0x1001(0x4)][_0x1001(0x7)](_reactNative['Text'],{'style':styles['title']},_0x477e7d),_0x5d721a&&_react[_0x1001(0x4)][_0x1001(0x7)](_reactNative['Text'],{'style':styles[_0x1001(0xa)]},_0x5d721a)),_react['default']['createElement'](_reactNative[_0x1001(0x8)],{'style':styles[_0x1001(0xb)],'onPress':_0x7a529f},_react[_0x1001(0x4)][_0x1001(0x7)](_MaterialIcons['default'],{'name':_0x5cb83f[_0x1001(0xc)],'size':0x18,'color':_0x1001(0xd)})));};exports[_0x1001(0x1)]=OnboardingHeader;const styles=_reactNative[_0x1001(0xe)][_0x1001(0xf)]({'header':{'flexDirection':_0x1001(0x10),'alignItems':'center','padding':0x10,'backgroundColor':_constants['COLORS'][_0x1001(0x11)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x1001(0x12),'color':_0x1001(0xd)},'subtitle':{'fontSize':0xe,'color':_0x1001(0x13),'marginTop':0x4},'closeButton':{'padding':0x8}});function _0x1bd8(){var _0x252b44=['defineProperty','OnboardingHeader','arrow-back','close','default','View','header','createElement','TouchableOpacity','vFbId','subtitle','closeButton','hYStM','#000','StyleSheet','create','row','headerBg','600','#666'];_0x1bd8=function(){return _0x252b44;};return _0x1bd8();}
@@ -1,283 +1,10 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PinInput = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
10
- var _constants = require("../../constants");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
- const PinInput = ({
14
- onSubmit,
15
- minLength = 6,
16
- requireSpecialChar = true,
17
- requireNumber = true
18
- }) => {
19
- const [pin, setPin] = (0, _react.useState)('');
20
- const [confirmPin, setConfirmPin] = (0, _react.useState)('');
21
- const [showPin, setShowPin] = (0, _react.useState)(false);
22
- const [errors, setErrors] = (0, _react.useState)([]);
23
- const [step, setStep] = (0, _react.useState)('create');
24
-
25
- // Validate pin whenever it changes
26
- (0, _react.useEffect)(() => {
27
- if (step === 'create') {
28
- validatePin(pin);
29
- }
30
- }, [pin, step]);
31
-
32
- // Validate PIN strength and requirements
33
- const validatePin = (0, _react.useCallback)(value => {
34
- const newErrors = [];
35
- if (value.length < minLength) {
36
- newErrors.push(`PIN must be at least ${minLength} characters`);
37
- }
38
- if (requireNumber && !/\d/.test(value)) {
39
- newErrors.push('PIN must include at least one number');
40
- }
41
- if (requireSpecialChar && !/[!@#$%^&*(),.?":{}|<>]/.test(value)) {
42
- newErrors.push('PIN must include at least one special character');
43
- }
44
- setErrors(newErrors);
45
- return newErrors.length === 0;
46
- }, [minLength, requireNumber, requireSpecialChar]);
47
-
48
- // Handle PIN submission
49
- const handleSubmit = (0, _react.useCallback)(() => {
50
- if (step === 'create') {
51
- if (validatePin(pin)) {
52
- setStep('confirm');
53
- }
54
- } else {
55
- // Confirm PIN
56
- if (pin === confirmPin) {
57
- _reactNative.Keyboard.dismiss();
58
- onSubmit(pin);
59
- } else {
60
- setErrors(['PINs do not match']);
61
- setConfirmPin('');
62
- }
63
- }
64
- }, [pin, confirmPin, step, validatePin, onSubmit]);
65
-
66
- // Go back to PIN creation step
67
- const handleBack = (0, _react.useCallback)(() => {
68
- setStep('create');
69
- setConfirmPin('');
70
- setErrors([]);
71
- }, []);
72
-
73
- // Toggle PIN visibility
74
- const togglePinVisibility = (0, _react.useCallback)(() => {
75
- setShowPin(!showPin);
76
- }, [showPin]);
77
- return /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
78
- behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
79
- style: styles.container
80
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
81
- style: styles.content
82
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
83
- style: styles.title
84
- }, step === 'create' ? 'Create a PIN' : 'Confirm your PIN'), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
85
- style: styles.subtitle
86
- }, step === 'create' ? 'This PIN will protect your Onairos account' : 'Please re-enter your PIN to confirm'), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
87
- style: styles.inputContainer
88
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
89
- style: styles.input,
90
- value: step === 'create' ? pin : confirmPin,
91
- onChangeText: step === 'create' ? setPin : setConfirmPin,
92
- secureTextEntry: !showPin,
93
- keyboardType: "default",
94
- autoCapitalize: "none",
95
- autoCorrect: false,
96
- placeholder: step === 'create' ? 'Enter PIN' : 'Confirm PIN',
97
- placeholderTextColor: "#999",
98
- returnKeyType: "done",
99
- onSubmitEditing: handleSubmit
100
- }), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
101
- style: styles.visibilityToggle,
102
- onPress: togglePinVisibility
103
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
104
- name: showPin ? 'visibility-off' : 'visibility',
105
- size: 24,
106
- color: "#999"
107
- }))), errors.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
108
- style: styles.errorContainer
109
- }, errors.map((error, index) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
110
- key: index,
111
- style: styles.errorItem
112
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
113
- name: "error-outline",
114
- size: 16,
115
- color: "#f44336"
116
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
117
- style: styles.errorText
118
- }, error)))), step === 'create' && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
119
- style: styles.requirementsContainer
120
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
121
- style: styles.requirementsTitle
122
- }, "PIN Requirements:"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
123
- style: styles.requirement
124
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
125
- name: pin.length >= minLength ? 'check-circle' : 'radio-button-unchecked',
126
- size: 16,
127
- color: pin.length >= minLength ? '#4caf50' : '#999'
128
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
129
- style: [styles.requirementText, {
130
- color: pin.length >= minLength ? '#4caf50' : '#999'
131
- }]
132
- }, "At least ", minLength, " characters")), requireNumber && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
133
- style: styles.requirement
134
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
135
- name: /\d/.test(pin) ? 'check-circle' : 'radio-button-unchecked',
136
- size: 16,
137
- color: /\d/.test(pin) ? '#4caf50' : '#999'
138
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
139
- style: [styles.requirementText, {
140
- color: /\d/.test(pin) ? '#4caf50' : '#999'
141
- }]
142
- }, "Include at least one number")), requireSpecialChar && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
143
- style: styles.requirement
144
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
145
- name: /[!@#$%^&*(),.?":{}|<>]/.test(pin) ? 'check-circle' : 'radio-button-unchecked',
146
- size: 16,
147
- color: /[!@#$%^&*(),.?":{}|<>]/.test(pin) ? '#4caf50' : '#999'
148
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
149
- style: [styles.requirementText, {
150
- color: /[!@#$%^&*(),.?":{}|<>]/.test(pin) ? '#4caf50' : '#999'
151
- }]
152
- }, "Include at least one special character"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
153
- style: styles.buttonContainer
154
- }, step === 'confirm' && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
155
- style: [styles.button, styles.backButton],
156
- onPress: handleBack
157
- }, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
158
- name: "arrow-back",
159
- size: 20,
160
- color: _constants.COLORS.primary
161
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
162
- style: [styles.buttonText, styles.backButtonText]
163
- }, "Back")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
164
- style: [styles.button, styles.nextButton, step === 'create' && errors.length > 0 || step === 'confirm' && !confirmPin ? styles.disabledButton : null],
165
- onPress: handleSubmit,
166
- disabled: step === 'create' && errors.length > 0 || step === 'confirm' && !confirmPin
167
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
168
- style: [styles.buttonText, styles.nextButtonText]
169
- }, step === 'create' ? 'Next' : 'Submit'), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
170
- name: "arrow-forward",
171
- size: 20,
172
- color: "#fff"
173
- })))));
174
- };
175
- exports.PinInput = PinInput;
176
- const styles = _reactNative.StyleSheet.create({
177
- container: {
178
- flex: 1
179
- },
180
- content: {
181
- padding: 24
182
- },
183
- title: {
184
- fontSize: 24,
185
- fontWeight: 'bold',
186
- marginBottom: 8,
187
- color: '#000'
188
- },
189
- subtitle: {
190
- fontSize: 16,
191
- color: '#666',
192
- marginBottom: 24
193
- },
194
- inputContainer: {
195
- flexDirection: 'row',
196
- alignItems: 'center',
197
- borderWidth: 1,
198
- borderColor: '#ddd',
199
- borderRadius: 8,
200
- backgroundColor: '#f9f9f9',
201
- marginBottom: 16
202
- },
203
- input: {
204
- flex: 1,
205
- paddingHorizontal: 16,
206
- paddingVertical: 12,
207
- fontSize: 16,
208
- color: '#000'
209
- },
210
- visibilityToggle: {
211
- padding: 12
212
- },
213
- errorContainer: {
214
- marginBottom: 16
215
- },
216
- errorItem: {
217
- flexDirection: 'row',
218
- alignItems: 'center',
219
- marginBottom: 4
220
- },
221
- errorText: {
222
- color: '#f44336',
223
- marginLeft: 6
224
- },
225
- requirementsContainer: {
226
- backgroundColor: '#f5f5f5',
227
- padding: 16,
228
- borderRadius: 8,
229
- marginBottom: 24
230
- },
231
- requirementsTitle: {
232
- fontSize: 14,
233
- fontWeight: '600',
234
- marginBottom: 8,
235
- color: '#000'
236
- },
237
- requirement: {
238
- flexDirection: 'row',
239
- alignItems: 'center',
240
- marginBottom: 8
241
- },
242
- requirementText: {
243
- marginLeft: 8,
244
- fontSize: 14
245
- },
246
- buttonContainer: {
247
- flexDirection: 'row',
248
- justifyContent: 'space-between'
249
- },
250
- button: {
251
- flexDirection: 'row',
252
- alignItems: 'center',
253
- paddingVertical: 12,
254
- paddingHorizontal: 20,
255
- borderRadius: 25
256
- },
257
- backButton: {
258
- backgroundColor: 'transparent',
259
- borderWidth: 1,
260
- borderColor: _constants.COLORS.primary
261
- },
262
- nextButton: {
263
- backgroundColor: _constants.COLORS.primary,
264
- minWidth: 120,
265
- justifyContent: 'center'
266
- },
267
- disabledButton: {
268
- backgroundColor: '#ccc'
269
- },
270
- buttonText: {
271
- fontSize: 16,
272
- fontWeight: '600'
273
- },
274
- backButtonText: {
275
- color: _constants.COLORS.primary,
276
- marginLeft: 8
277
- },
278
- nextButtonText: {
279
- color: '#fff',
280
- marginRight: 8
281
- }
282
- });
283
- //# sourceMappingURL=PinInput.js.map
1
+ 'use strict';
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require("react"),
5
+ require("react-native"),
6
+ require("react-native-vector-icons/MaterialIcons"),
7
+ require("../../constants")
8
+ ];
9
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
10
+ function _0x32dc(_0x279da7,_0x32dcf8){_0x279da7=_0x279da7-0x0;const _0x388ff6=_0x279d();let _0x315df9=_0x388ff6[_0x279da7];return _0x315df9;}Object[_0x32dc(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x32dc(0x1)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_MaterialIcons=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_constants=__ONAIROS_REQ_FUNC__(0x3);function _interopRequireDefault(_0x295a94){return _0x295a94&&_0x295a94['__esModule']?_0x295a94:{'default':_0x295a94};}function _interopRequireWildcard(_0x19f3fc,_0x469d37){const _0x3ef023={'fjIOT':function(_0xf78c3f,_0x81a054){return _0xf78c3f(_0x81a054);},'yVRoE':function(_0x5421ba,_0x3ec918){return _0x5421ba&&_0x3ec918;},'qXUTB':function(_0x3ef9f0,_0x47c9c3){return _0x3ef9f0===_0x47c9c3;},'LOlWk':function(_0x229adf,_0x16e7a3){return _0x229adf!=_0x16e7a3;},'TsYEC':'object','IYgwX':function(_0x4717e4,_0x48d428){return _0x4717e4!=_0x48d428;},'TpQTd':'function','YLyLN':_0x32dc(0x2),'RHlQn':function(_0x11e054,_0x1516a1){return _0x11e054!==_0x1516a1;},'fjTlZ':_0x32dc(0x3),'segcc':function(_0x409759,_0x1ba4ce,_0x110c25,_0x3ee141){return _0x409759(_0x1ba4ce,_0x110c25,_0x3ee141);},'zcRMc':function(_0xdd8b04,_0x8068e5){return _0xdd8b04==_0x8068e5;}};if(_0x3ef023['zcRMc'](_0x32dc(0x4),typeof WeakMap))var _0x8d8877=new WeakMap(),_0x16e761=new WeakMap();return(_interopRequireWildcard=function(_0x3b3949,_0x3843cf){const _0x587274={'VMSeF':function(_0x326e62,_0x4b2ed7){return _0x3ef023[_0x32dc(0x5)](_0x326e62,_0x4b2ed7);}};if(_0x3ef023['yVRoE'](!_0x3843cf,_0x3b3949)&&_0x3b3949[_0x32dc(0x6)])return _0x3b3949;var _0x2b1db9,_0x3e3cb8,_0x2a0460={'__proto__':null,'default':_0x3b3949};if(_0x3ef023['qXUTB'](null,_0x3b3949)||_0x3ef023['LOlWk'](_0x3ef023[_0x32dc(0x7)],typeof _0x3b3949)&&_0x3ef023[_0x32dc(0x8)](_0x3ef023['TpQTd'],typeof _0x3b3949))return _0x2a0460;if(_0x2b1db9=_0x3843cf?_0x16e761:_0x8d8877){if(_0x3ef023[_0x32dc(0x9)]===_0x3ef023[_0x32dc(0x9)]){if(_0x2b1db9[_0x32dc(0xa)](_0x3b3949))return _0x2b1db9[_0x32dc(0xb)](_0x3b3949);_0x2b1db9[_0x32dc(0xc)](_0x3b3949,_0x2a0460);}else _0x430d96[_0x32dc(0xd)][_0x32dc(0xe)](),_0x587274[_0x32dc(0xf)](_0x558860,_0x57cf34);}for(const _0x320b7c in _0x3b3949)_0x3ef023['RHlQn'](_0x3ef023[_0x32dc(0x10)],_0x320b7c)&&{}['hasOwnProperty']['call'](_0x3b3949,_0x320b7c)&&((_0x3e3cb8=(_0x2b1db9=Object[_0x32dc(0x0)])&&Object['getOwnPropertyDescriptor'](_0x3b3949,_0x320b7c))&&(_0x3e3cb8[_0x32dc(0xb)]||_0x3e3cb8[_0x32dc(0xc)])?_0x3ef023[_0x32dc(0x11)](_0x2b1db9,_0x2a0460,_0x320b7c,_0x3e3cb8):_0x2a0460[_0x320b7c]=_0x3b3949[_0x320b7c]);return _0x2a0460;})(_0x19f3fc,_0x469d37);}const PinInput=({onSubmit:_0x42cff5,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x5e8018={'DdEYY':function(_0x43ed3f,_0x4c431c){return _0x43ed3f(_0x4c431c);},'NCjwY':function(_0x441130,_0x6c3030){return _0x441130&&_0x6c3030;},'aiBFv':function(_0x3bb865,_0xf28ed1){return _0x3bb865===_0xf28ed1;},'gpQml':function(_0x38c659,_0x3230f9){return _0x38c659!=_0x3230f9;},'STHzD':'object','oRxSj':_0x32dc(0x4),'iExos':function(_0x992a6a,_0x187f46){return _0x992a6a!==_0x187f46;},'aOllv':_0x32dc(0x3),'zArPo':function(_0xc80e76,_0x3d1b5c,_0x5768cc,_0x181f10){return _0xc80e76(_0x3d1b5c,_0x5768cc,_0x181f10);},'xeJqi':_0x32dc(0x12),'cygKg':_0x32dc(0x13),'RWVHf':_0x32dc(0x14),'QgVEF':function(_0x3361e1,_0x926fd4){return _0x3361e1===_0x926fd4;},'IaQGq':_0x32dc(0x15),'PNQQF':function(_0x54a87c,_0x151c89){return _0x54a87c(_0x151c89);},'CWqjj':function(_0x30284d,_0x20d65e){return _0x30284d<_0x20d65e;},'GGieM':_0x32dc(0x16),'NhQRj':_0x32dc(0x17),'kjMRg':function(_0x2ee378,_0x2b12ed){return _0x2ee378===_0x2b12ed;},'ahQZX':_0x32dc(0x18),'VSabM':_0x32dc(0x19),'PQgOC':_0x32dc(0x1a),'tZhfz':_0x32dc(0x1b),'RpKHN':_0x32dc(0x1c),'xJfCi':function(_0x36026b,_0x1e9d05){return _0x36026b(_0x1e9d05);},'LCnWV':function(_0xe3e3ca,_0x13a577){return _0xe3e3ca===_0x13a577;},'hGzhj':function(_0x31a7bc,_0x4a7887){return _0x31a7bc(_0x4a7887);},'pNVUK':function(_0x5b2ee6,_0x76fbdc){return _0x5b2ee6===_0x76fbdc;},'BUpuq':'rAvuM','ZYIts':_0x32dc(0x1d),'flbRC':function(_0x1da551,_0x274d8c){return _0x1da551===_0x274d8c;},'IMusS':function(_0x1554ca,_0x4729df){return _0x1554ca(_0x4729df);},'ycxxg':function(_0x371f37,_0x52ff36){return _0x371f37===_0x52ff36;},'jxOyZ':'lNbyl','PTQYz':function(_0x5052c3,_0x6ab634){return _0x5052c3(_0x6ab634);},'Apzlx':'PINs\x20do\x20not\x20match','JgWUm':function(_0x323ab1,_0x111e55){return _0x323ab1(_0x111e55);},'IPOek':function(_0x3be3c6,_0x234f46){return _0x3be3c6(_0x234f46);},'JFVWW':function(_0x546226,_0x24c654){return _0x546226(_0x24c654);},'poThh':_0x32dc(0x1e),'fMUJv':_0x32dc(0x1f),'rpYzO':_0x32dc(0x20),'yhHaf':_0x32dc(0x21),'kHwAf':_0x32dc(0x22),'PnTmZ':_0x32dc(0x23),'RbqLP':_0x32dc(0x24),'ZocDe':function(_0x1f86ad,_0x4d3002){return _0x1f86ad===_0x4d3002;},'ywByZ':function(_0x47c8b1,_0x2e2b9f){return _0x47c8b1===_0x2e2b9f;},'FBukU':'none','GFSwx':_0x32dc(0x25),'obLCM':_0x32dc(0x26),'iKpbM':'#999','EeSFb':'done','vsRmb':_0x32dc(0x27),'BDCft':function(_0x21adc3,_0x439eee){return _0x21adc3>_0x439eee;},'jbZlo':_0x32dc(0x28),'cntxS':function(_0x46ff2d,_0x31ff12){return _0x46ff2d>=_0x31ff12;},'uzadw':'check-circle','uIqdp':_0x32dc(0x29),'aJKzp':_0x32dc(0x2a),'NMpji':'\x20characters','LIOdZ':_0x32dc(0x2b),'gIyCD':_0x32dc(0x2c),'nELvl':_0x32dc(0x2d),'JoWAa':function(_0x29ca11,_0x4cff07){return _0x29ca11===_0x4cff07;},'EcsHJ':_0x32dc(0x2e),'xVCVG':'Back','tojEX':function(_0xd762c9,_0x43c48e){return _0xd762c9>_0x43c48e;},'jukoX':_0x32dc(0x2f),'skLHg':_0x32dc(0x30),'smdnb':_0x32dc(0x31)},[_0x5527a9,_0x4f0fdc]=(0x0,_react[_0x32dc(0x32)])(''),[_0x14b2f0,_0x439899]=(0x0,_react['useState'])(''),[_0x2c4064,_0x29a7bd]=(0x0,_react['useState'])(![]),[_0x4de1d1,_0x1c944d]=(0x0,_react[_0x32dc(0x32)])([]),[_0x4f284a,_0x135731]=(0x0,_react['useState'])(_0x5e8018[_0x32dc(0x33)]);(0x0,_react[_0x32dc(0x34)])(()=>{if(_0x5e8018[_0x32dc(0x35)](_0x5e8018['xeJqi'],_0x5e8018[_0x32dc(0x36)]))_0x5e8018[_0x32dc(0x37)](_0x4f284a,_0x5e8018[_0x32dc(0x33)])&&(_0x5e8018['QgVEF'](_0x5e8018[_0x32dc(0x38)],_0x5e8018[_0x32dc(0x38)])?_0x2d1977(_0x5527a9):_0x5e8018['DdEYY'](_0x2f2cd5,_0x5a4fcd));else{if(_0x5e8018[_0x32dc(0x39)](!_0x3bbd2d,_0x12785c)&&_0x46c55b[_0x32dc(0x6)])return _0x492c3c;var _0x42aa7a,_0x5900cd,_0x1b26d4={'__proto__':null,'default':_0x13b166};if(_0x5e8018[_0x32dc(0x37)](null,_0x116f42)||_0x5e8018[_0x32dc(0x3a)](_0x5e8018[_0x32dc(0x3b)],typeof _0x92f5c)&&_0x5e8018[_0x32dc(0x3a)](_0x5e8018[_0x32dc(0x3c)],typeof _0x4edcc4))return _0x1b26d4;if(_0x42aa7a=_0x51feb9?_0x1b95c4:_0x24908d){if(_0x42aa7a[_0x32dc(0xa)](_0x3e62e1))return _0x42aa7a[_0x32dc(0xb)](_0x270f9b);_0x42aa7a['set'](_0x5cf7b1,_0x1b26d4);}for(const _0x29e7b6 in _0x19528b)_0x5e8018[_0x32dc(0x35)](_0x5e8018['aOllv'],_0x29e7b6)&&{}[_0x32dc(0x3d)]['call'](_0x1db609,_0x29e7b6)&&((_0x5900cd=(_0x42aa7a=_0x2cdf04[_0x32dc(0x0)])&&_0x27cf32['getOwnPropertyDescriptor'](_0x50e0b0,_0x29e7b6))&&(_0x5900cd['get']||_0x5900cd[_0x32dc(0xc)])?_0x5e8018[_0x32dc(0x3e)](_0x42aa7a,_0x1b26d4,_0x29e7b6,_0x5900cd):_0x1b26d4[_0x29e7b6]=_0x3bc28b[_0x29e7b6]);return _0x1b26d4;}},[_0x5527a9,_0x4f284a]);const _0x2d1977=(0x0,_react['useCallback'])(_0x3baaf6=>{const _0x80663d=[];return _0x5e8018[_0x32dc(0x3f)](_0x3baaf6['length'],minLength)&&(_0x5e8018[_0x32dc(0x40)](_0x5e8018[_0x32dc(0x41)],_0x5e8018['NhQRj'])?_0x1529d6(!_0x428a04):_0x80663d[_0x32dc(0x42)](_0x32dc(0x43)+minLength+_0x32dc(0x44))),requireNumber&&!/\d/[_0x32dc(0x45)](_0x3baaf6)&&(_0x5e8018[_0x32dc(0x46)](_0x5e8018[_0x32dc(0x47)],_0x5e8018['VSabM'])?_0x137b18[_0x32dc(0x42)](_0x32dc(0x43)+_0x9feb2f+'\x20characters'):_0x80663d[_0x32dc(0x42)](_0x5e8018[_0x32dc(0x48)])),requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x32dc(0x45)](_0x3baaf6)&&(_0x5e8018[_0x32dc(0x40)](_0x5e8018[_0x32dc(0x49)],_0x5e8018[_0x32dc(0x49)])?_0x80663d[_0x32dc(0x42)](_0x5e8018[_0x32dc(0x4a)]):(_0x53c0bd([_0x32dc(0x4b)]),_0x5e8018[_0x32dc(0x4c)](_0x353ba5,''))),_0x5e8018[_0x32dc(0x4d)](_0x1c944d,_0x80663d),_0x5e8018[_0x32dc(0x4e)](_0x80663d[_0x32dc(0x4f)],0x0);},[minLength,requireNumber,requireSpecialChar]),_0x44152a=(0x0,_react[_0x32dc(0x50)])(()=>{const _0x5c1f55={'UsAiu':function(_0x3fc54b,_0xf02303){return _0x3fc54b<_0xf02303;},'BrZyH':_0x5e8018[_0x32dc(0x4a)],'oNGLt':function(_0x136f70,_0x2413d2){return _0x5e8018[_0x32dc(0x51)](_0x136f70,_0x2413d2);},'hqesW':function(_0x1480fc,_0x9b58ec){return _0x1480fc===_0x9b58ec;},'ZGhIl':_0x5e8018[_0x32dc(0x33)]};if(_0x5e8018['iExos'](_0x32dc(0x52),_0x32dc(0x53))){if(_0x5e8018[_0x32dc(0x54)](_0x4f284a,_0x5e8018[_0x32dc(0x33)])){if(_0x5e8018[_0x32dc(0x55)]!==_0x5e8018['BUpuq']){const _0x5def6d=[];return _0x5c1f55[_0x32dc(0x56)](_0x2af6f9[_0x32dc(0x4f)],_0x1e91e9)&&_0x5def6d[_0x32dc(0x42)](_0x32dc(0x43)+_0x58b69f+_0x32dc(0x44)),_0x277611&&!/\d/[_0x32dc(0x45)](_0x3c55bd)&&_0x5def6d[_0x32dc(0x42)](_0x32dc(0x1a)),_0x315ca6&&!/[!@#$%^&*(),.?":{}|<>]/['test'](_0x1ff965)&&_0x5def6d[_0x32dc(0x42)](_0x5c1f55['BrZyH']),_0x5c1f55['oNGLt'](_0x84e2d2,_0x5def6d),_0x5c1f55[_0x32dc(0x57)](_0x5def6d['length'],0x0);}else _0x5e8018[_0x32dc(0x4d)](_0x2d1977,_0x5527a9)&&_0x5e8018['hGzhj'](_0x135731,_0x5e8018[_0x32dc(0x58)]);}else _0x5e8018[_0x32dc(0x59)](_0x5527a9,_0x14b2f0)?(_reactNative['Keyboard'][_0x32dc(0xe)](),_0x5e8018[_0x32dc(0x5a)](_0x42cff5,_0x5527a9)):_0x5e8018[_0x32dc(0x5b)](_0x32dc(0x5c),_0x5e8018[_0x32dc(0x5d)])?(_0x5e8018['PTQYz'](_0x1c944d,[_0x5e8018[_0x32dc(0x5e)]]),_0x5e8018[_0x32dc(0x5f)](_0x439899,'')):_0x54bc33===_0x5c1f55['ZGhIl']&&_0x5c1f55['oNGLt'](_0x2e9feb,_0x5d410f);}else{if(_0x474864[_0x32dc(0xa)](_0x1e6d28))return _0x250005[_0x32dc(0xb)](_0x474ebe);_0x4b9d40[_0x32dc(0xc)](_0xd0822a,_0x4b3b40);}},[_0x5527a9,_0x14b2f0,_0x4f284a,_0x2d1977,_0x42cff5]),_0xc6da87=(0x0,_react[_0x32dc(0x50)])(()=>{_0x5e8018['PNQQF'](_0x135731,_0x5e8018[_0x32dc(0x33)]),_0x5e8018[_0x32dc(0x60)](_0x439899,''),_0x5e8018['hGzhj'](_0x1c944d,[]);},[]),_0x34b0c8=(0x0,_react[_0x32dc(0x50)])(()=>{_0x5e8018[_0x32dc(0x61)](_0x29a7bd,!_0x2c4064);},[_0x2c4064]);return _react['default'][_0x32dc(0x62)](_reactNative['KeyboardAvoidingView'],{'behavior':_0x5e8018[_0x32dc(0x54)](_reactNative['Platform']['OS'],_0x5e8018[_0x32dc(0x63)])?_0x5e8018[_0x32dc(0x64)]:_0x5e8018[_0x32dc(0x65)],'style':styles[_0x32dc(0x66)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x67)],{'style':styles[_0x32dc(0x68)]},_react['default']['createElement'](_reactNative['Text'],{'style':styles[_0x32dc(0x69)]},_0x4f284a===_0x5e8018[_0x32dc(0x33)]?_0x5e8018[_0x32dc(0x6a)]:_0x5e8018['kHwAf']),_react['default']['createElement'](_reactNative[_0x32dc(0x6b)],{'style':styles[_0x32dc(0x6c)]},_0x5e8018[_0x32dc(0x40)](_0x4f284a,'create')?_0x5e8018['PnTmZ']:_0x5e8018[_0x32dc(0x6d)]),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x67)],{'style':styles[_0x32dc(0x6e)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x6f)],{'style':styles[_0x32dc(0x70)],'value':_0x5e8018[_0x32dc(0x71)](_0x4f284a,_0x5e8018[_0x32dc(0x33)])?_0x5527a9:_0x14b2f0,'onChangeText':_0x5e8018[_0x32dc(0x72)](_0x4f284a,_0x5e8018['RWVHf'])?_0x4f0fdc:_0x439899,'secureTextEntry':!_0x2c4064,'keyboardType':_0x32dc(0x3),'autoCapitalize':_0x5e8018['FBukU'],'autoCorrect':![],'placeholder':_0x4f284a===_0x5e8018[_0x32dc(0x33)]?_0x5e8018['GFSwx']:_0x5e8018[_0x32dc(0x73)],'placeholderTextColor':_0x5e8018[_0x32dc(0x74)],'returnKeyType':_0x5e8018[_0x32dc(0x75)],'onSubmitEditing':_0x44152a}),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x76)],{'style':styles['visibilityToggle'],'onPress':_0x34b0c8},_react[_0x32dc(0x3)][_0x32dc(0x62)](_MaterialIcons[_0x32dc(0x3)],{'name':_0x2c4064?_0x32dc(0x77):_0x5e8018[_0x32dc(0x78)],'size':0x18,'color':_0x5e8018[_0x32dc(0x74)]}))),_0x5e8018[_0x32dc(0x79)](_0x4de1d1[_0x32dc(0x4f)],0x0)&&_react[_0x32dc(0x3)]['createElement'](_reactNative[_0x32dc(0x67)],{'style':styles['errorContainer']},_0x4de1d1[_0x32dc(0x7a)]((_0x52cce3,_0x3b863f)=>_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x67)],{'key':_0x3b863f,'style':styles[_0x32dc(0x7b)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_MaterialIcons[_0x32dc(0x3)],{'name':'error-outline','size':0x10,'color':_0x32dc(0x7c)}),_react['default'][_0x32dc(0x62)](_reactNative['Text'],{'style':styles['errorText']},_0x52cce3)))),_0x5e8018[_0x32dc(0x54)](_0x4f284a,_0x5e8018[_0x32dc(0x33)])&&_react[_0x32dc(0x3)]['createElement'](_reactNative['View'],{'style':styles['requirementsContainer']},_react[_0x32dc(0x3)]['createElement'](_reactNative[_0x32dc(0x6b)],{'style':styles[_0x32dc(0x7d)]},_0x5e8018[_0x32dc(0x7e)]),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x67)],{'style':styles[_0x32dc(0x7f)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_MaterialIcons[_0x32dc(0x3)],{'name':_0x5e8018[_0x32dc(0x80)](_0x5527a9[_0x32dc(0x4f)],minLength)?_0x5e8018[_0x32dc(0x81)]:_0x32dc(0x2c),'size':0x10,'color':_0x5e8018[_0x32dc(0x80)](_0x5527a9[_0x32dc(0x4f)],minLength)?_0x32dc(0x29):_0x5e8018[_0x32dc(0x74)]}),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x6b)],{'style':[styles[_0x32dc(0x82)],{'color':_0x5e8018['cntxS'](_0x5527a9[_0x32dc(0x4f)],minLength)?_0x5e8018[_0x32dc(0x83)]:_0x5e8018[_0x32dc(0x74)]}]},_0x5e8018[_0x32dc(0x84)],minLength,_0x5e8018[_0x32dc(0x85)])),requireNumber&&_react[_0x32dc(0x3)]['createElement'](_reactNative[_0x32dc(0x67)],{'style':styles[_0x32dc(0x7f)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_MaterialIcons[_0x32dc(0x3)],{'name':/\d/[_0x32dc(0x45)](_0x5527a9)?_0x5e8018['uzadw']:_0x32dc(0x2c),'size':0x10,'color':/\d/[_0x32dc(0x45)](_0x5527a9)?_0x5e8018['uIqdp']:_0x5e8018['iKpbM']}),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x6b)],{'style':[styles[_0x32dc(0x82)],{'color':/\d/[_0x32dc(0x45)](_0x5527a9)?_0x5e8018['uIqdp']:_0x5e8018[_0x32dc(0x74)]}]},_0x5e8018[_0x32dc(0x86)])),requireSpecialChar&&_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative['View'],{'style':styles[_0x32dc(0x7f)]},_react[_0x32dc(0x3)][_0x32dc(0x62)](_MaterialIcons[_0x32dc(0x3)],{'name':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x5527a9)?_0x5e8018[_0x32dc(0x81)]:_0x5e8018[_0x32dc(0x87)],'size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/[_0x32dc(0x45)](_0x5527a9)?_0x5e8018[_0x32dc(0x83)]:_0x5e8018['iKpbM']}),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x6b)],{'style':[styles[_0x32dc(0x82)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x32dc(0x45)](_0x5527a9)?_0x5e8018['uIqdp']:_0x32dc(0x88)}]},_0x5e8018[_0x32dc(0x89)]))),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x67)],{'style':styles[_0x32dc(0x8a)]},_0x5e8018[_0x32dc(0x8b)](_0x4f284a,_0x5e8018[_0x32dc(0x58)])&&_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x76)],{'style':[styles[_0x32dc(0x8c)],styles[_0x32dc(0x8d)]],'onPress':_0xc6da87},_react['default']['createElement'](_MaterialIcons[_0x32dc(0x3)],{'name':_0x5e8018[_0x32dc(0x8e)],'size':0x14,'color':_constants[_0x32dc(0x8f)][_0x32dc(0x90)]}),_react[_0x32dc(0x3)][_0x32dc(0x62)](_reactNative[_0x32dc(0x6b)],{'style':[styles[_0x32dc(0x91)],styles['backButtonText']]},_0x5e8018[_0x32dc(0x92)])),_react[_0x32dc(0x3)]['createElement'](_reactNative[_0x32dc(0x76)],{'style':[styles[_0x32dc(0x8c)],styles['nextButton'],_0x4f284a===_0x5e8018['RWVHf']&&_0x5e8018[_0x32dc(0x93)](_0x4de1d1[_0x32dc(0x4f)],0x0)||_0x4f284a===_0x32dc(0x1d)&&!_0x14b2f0?styles[_0x32dc(0x94)]:null],'onPress':_0x44152a,'disabled':_0x5e8018['aiBFv'](_0x4f284a,_0x32dc(0x14))&&_0x5e8018[_0x32dc(0x93)](_0x4de1d1[_0x32dc(0x4f)],0x0)||_0x4f284a===_0x5e8018[_0x32dc(0x58)]&&!_0x14b2f0},_react['default'][_0x32dc(0x62)](_reactNative[_0x32dc(0x6b)],{'style':[styles['buttonText'],styles[_0x32dc(0x95)]]},_0x4f284a===_0x32dc(0x14)?_0x5e8018['jukoX']:_0x32dc(0x96)),_react[_0x32dc(0x3)]['createElement'](_MaterialIcons['default'],{'name':_0x5e8018[_0x32dc(0x97)],'size':0x14,'color':_0x5e8018[_0x32dc(0x98)]})))));};exports['PinInput']=PinInput;const styles=_reactNative[_0x32dc(0x99)][_0x32dc(0x14)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x32dc(0x9a),'marginBottom':0x8,'color':_0x32dc(0x9b)},'subtitle':{'fontSize':0x10,'color':'#666','marginBottom':0x18},'inputContainer':{'flexDirection':_0x32dc(0x9c),'alignItems':_0x32dc(0x9d),'borderWidth':0x1,'borderColor':_0x32dc(0x9e),'borderRadius':0x8,'backgroundColor':_0x32dc(0x9f),'marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x32dc(0x9b)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x32dc(0x9c),'alignItems':_0x32dc(0x9d),'marginBottom':0x4},'errorText':{'color':_0x32dc(0x7c),'marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x32dc(0xa0),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':_0x32dc(0xa1),'marginBottom':0x8,'color':_0x32dc(0x9b)},'requirement':{'flexDirection':'row','alignItems':_0x32dc(0x9d),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':'row','justifyContent':'space-between'},'button':{'flexDirection':_0x32dc(0x9c),'alignItems':_0x32dc(0x9d),'paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':'transparent','borderWidth':0x1,'borderColor':_constants['COLORS'][_0x32dc(0x90)]},'nextButton':{'backgroundColor':_constants['COLORS'][_0x32dc(0x90)],'minWidth':0x78,'justifyContent':_0x32dc(0x9d)},'disabledButton':{'backgroundColor':_0x32dc(0xa2)},'buttonText':{'fontSize':0x10,'fontWeight':_0x32dc(0xa1)},'backButtonText':{'color':_constants[_0x32dc(0x8f)][_0x32dc(0x90)],'marginLeft':0x8},'nextButtonText':{'color':'#fff','marginRight':0x8}});function _0x279d(){const _0x4bcc8a=['defineProperty','PinInput','kswoN','default','function','fjIOT','__esModule','TsYEC','IYgwX','YLyLN','has','get','set','Keyboard','dismiss','VMSeF','fjTlZ','segcc','Okumw','aZJof','create','QhVWh','ZhWlM','JmTmC','SxuRD','cHeUJ','PIN\x20must\x20include\x20at\x20least\x20one\x20number','OaNKN','PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','confirm','ios','padding','height','Create\x20a\x20PIN','Confirm\x20your\x20PIN','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','Enter\x20PIN','Confirm\x20PIN','visibility','PIN\x20Requirements:','#4caf50','At\x20least\x20','Include\x20at\x20least\x20one\x20number','radio-button-unchecked','Include\x20at\x20least\x20one\x20special\x20character','arrow-back','Next','arrow-forward','#fff','useState','RWVHf','useEffect','iExos','cygKg','aiBFv','IaQGq','NCjwY','gpQml','STHzD','oRxSj','hasOwnProperty','zArPo','CWqjj','QgVEF','GGieM','push','PIN\x20must\x20be\x20at\x20least\x20','\x20characters','test','kjMRg','ahQZX','PQgOC','tZhfz','RpKHN','PINs\x20do\x20not\x20match','PNQQF','xJfCi','LCnWV','length','useCallback','hGzhj','XkwNe','cUtiW','pNVUK','BUpuq','UsAiu','hqesW','ZYIts','flbRC','IMusS','ycxxg','lNbyl','jxOyZ','Apzlx','JgWUm','IPOek','JFVWW','createElement','poThh','fMUJv','rpYzO','container','View','content','title','yhHaf','Text','subtitle','RbqLP','inputContainer','TextInput','input','ZocDe','ywByZ','obLCM','iKpbM','EeSFb','TouchableOpacity','visibility-off','vsRmb','BDCft','map','errorItem','#f44336','requirementsTitle','jbZlo','requirement','cntxS','uzadw','requirementText','uIqdp','aJKzp','NMpji','LIOdZ','gIyCD','#999','nELvl','buttonContainer','JoWAa','button','backButton','EcsHJ','COLORS','primary','buttonText','xVCVG','tojEX','disabledButton','nextButtonText','Submit','skLHg','smdnb','StyleSheet','bold','#000','row','center','#ddd','#f9f9f9','#f5f5f5','600','#ccc'];_0x279d=function(){return _0x4bcc8a;};return _0x279d();}