@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.
- package/README.md +423 -374
- package/lib/commonjs/api/index.js +9 -145
- package/lib/commonjs/assets/animations/loaderani.json +1 -0
- package/lib/commonjs/assets/animations/persona-animation.json +1 -0
- package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
- package/lib/commonjs/assets/icons/Gmail.png +0 -0
- package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/icons/Redditicon.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/icons/chatgpt.png +0 -0
- package/lib/commonjs/assets/icons/claude.png +0 -0
- package/lib/commonjs/assets/icons/gemini.png +0 -0
- package/lib/commonjs/assets/icons/grok.png +0 -0
- package/lib/commonjs/assets/images/Checkbox.svg +3 -0
- package/lib/commonjs/assets/images/EnochE.svg +19 -0
- package/lib/commonjs/assets/images/Enochicon1.png +0 -0
- package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
- package/lib/commonjs/assets/images/Facebookicon.png +0 -0
- package/lib/commonjs/assets/images/Gmail.png +0 -0
- package/lib/commonjs/assets/images/Googlelogo.png +0 -0
- package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/images/OnairosNewLogo.png +0 -0
- package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
- package/lib/commonjs/assets/images/Redditicon.png +0 -0
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
- package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/images/arrow.svg +20 -0
- package/lib/commonjs/assets/images/basicproficon.svg +43 -0
- package/lib/commonjs/assets/images/basicprofile.svg +3 -0
- package/lib/commonjs/assets/images/chatgpt.png +0 -0
- package/lib/commonjs/assets/images/checkmark.svg +4 -0
- package/lib/commonjs/assets/images/claude.png +0 -0
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
- package/lib/commonjs/assets/images/contenticon.svg +23 -0
- package/lib/commonjs/assets/images/gemini.png +0 -0
- package/lib/commonjs/assets/images/grok.png +0 -0
- package/lib/commonjs/assets/images/persona1.png +0 -0
- package/lib/commonjs/assets/images/persona2.png +0 -0
- package/lib/commonjs/assets/images/persona3.png +0 -0
- package/lib/commonjs/assets/images/persona4.png +0 -0
- package/lib/commonjs/assets/images/persona5.png +0 -0
- package/lib/commonjs/assets/images/personalityicon.svg +18 -0
- package/lib/commonjs/assets/images/x-close.svg +3 -0
- package/lib/commonjs/components/BodyText.js +9 -0
- package/lib/commonjs/components/BrandMark.js +10 -0
- package/lib/commonjs/components/CodeInput.js +9 -0
- package/lib/commonjs/components/EmailInput.js +8 -0
- package/lib/commonjs/components/GoogleButton.js +9 -0
- package/lib/commonjs/components/HeadingGroup.js +9 -0
- package/lib/commonjs/components/LLMDataInputModal.js +14 -0
- package/lib/commonjs/components/ModalHeader.js +9 -0
- package/lib/commonjs/components/ModalSheet.js +9 -0
- package/lib/commonjs/components/Onairos.js +14 -374
- package/lib/commonjs/components/OnairosButton.js +13 -309
- package/lib/commonjs/components/OnairosSignInButton.js +12 -0
- package/lib/commonjs/components/Overlay.js +13 -483
- package/lib/commonjs/components/PersonaImage.js +10 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
- package/lib/commonjs/components/PinCreationScreen.js +12 -0
- package/lib/commonjs/components/PinInput.js +9 -302
- package/lib/commonjs/components/PlatformConnectorsStep.js +23 -0
- package/lib/commonjs/components/PlatformList.js +10 -137
- package/lib/commonjs/components/PlatformToggle.js +9 -0
- package/lib/commonjs/components/PrimaryButton.js +10 -0
- package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
- package/lib/commonjs/components/SignInStep.js +12 -0
- package/lib/commonjs/components/UniversalOnboarding.js +30 -1702
- package/lib/commonjs/components/VerificationStep.js +11 -0
- package/lib/commonjs/components/WelcomeScreen.js +22 -0
- package/lib/commonjs/components/icons/Basicproficon.js +8 -0
- package/lib/commonjs/components/icons/Basicprofile.js +8 -0
- package/lib/commonjs/components/icons/Checkbox.js +8 -0
- package/lib/commonjs/components/icons/Checkmark.js +8 -0
- package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
- package/lib/commonjs/components/icons/Contenticon.js +8 -0
- package/lib/commonjs/components/icons/EnochE.js +8 -0
- package/lib/commonjs/components/icons/Personalityicon.js +8 -0
- package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
- package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
- package/lib/commonjs/components/icons/Userpreferences.js +8 -0
- package/lib/commonjs/components/icons/index.js +17 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +18 -827
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
- package/lib/commonjs/components/onboarding/PinInput.js +10 -283
- package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
- package/lib/commonjs/config/api.js +7 -0
- package/lib/commonjs/constants/index.js +7 -83
- package/lib/commonjs/context/AuthContext.js +10 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
- package/lib/commonjs/hooks/useConnections.js +8 -159
- package/lib/commonjs/hooks/useCredentials.js +10 -177
- package/lib/commonjs/hooks/useUserConnections.js +10 -0
- package/lib/commonjs/index.js +34 -106
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/commonjs/services/apiClient.js +8 -0
- package/lib/commonjs/services/apiKeyService.js +9 -952
- package/lib/commonjs/services/authService.js +10 -0
- package/lib/commonjs/services/biometricPinService.js +8 -0
- package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
- package/lib/commonjs/services/chatGPTConversationService.js +9 -0
- package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
- package/lib/commonjs/services/claudeConversationService.js +9 -0
- package/lib/commonjs/services/connectedAccountsService.js +10 -0
- package/lib/commonjs/services/googleAuthService.js +11 -0
- package/lib/commonjs/services/hingeDataExtractor.js +8 -0
- package/lib/commonjs/services/hingeDataService.js +9 -0
- package/lib/commonjs/services/imageCompressionService.js +7 -0
- package/lib/commonjs/services/instagramDataExtractor.js +8 -0
- package/lib/commonjs/services/instagramDataService.js +9 -0
- package/lib/commonjs/services/jwtStorageService.js +7 -0
- package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
- package/lib/commonjs/services/linkedinProfileService.js +9 -0
- package/lib/commonjs/services/linkedinScrapingService.js +8 -0
- package/lib/commonjs/services/llmDataStorage.js +8 -0
- package/lib/commonjs/services/mobileTrainingService.js +8 -0
- package/lib/commonjs/services/oauthService.js +11 -390
- package/lib/commonjs/services/pinEncryptionService.js +8 -0
- package/lib/commonjs/services/pinStorageUtils.js +7 -0
- package/lib/commonjs/services/platformAuthService.js +12 -1067
- package/lib/commonjs/services/sephoraDataExtractor.js +8 -0
- package/lib/commonjs/services/sephoraDataService.js +9 -0
- package/lib/commonjs/services/storageService.js +8 -0
- package/lib/commonjs/services/telegramDataExtractor.js +8 -0
- package/lib/commonjs/services/telegramDataService.js +11 -0
- package/lib/commonjs/services/trainingApiHelpers.js +7 -0
- package/lib/commonjs/services/userConnectionsService.js +10 -0
- package/lib/commonjs/services/youtubeMigrationService.js +10 -0
- package/lib/commonjs/theme/index.js +7 -0
- package/lib/commonjs/types/ambient.d.js +1 -2
- package/lib/commonjs/types/declarations.d.js +1 -2
- package/lib/commonjs/types/index.js +1 -6
- package/lib/commonjs/types/node-fix.d.js +1 -2
- package/lib/commonjs/types/node-override.d.js +1 -2
- package/lib/commonjs/types/opacity.d.js +1 -2
- package/lib/commonjs/types.js +1 -14
- package/lib/commonjs/utils/Portal.js +8 -98
- package/lib/commonjs/utils/api.js +9 -129
- package/lib/commonjs/utils/assetRegistry.js +33 -0
- package/lib/commonjs/utils/auth.js +9 -111
- package/lib/commonjs/utils/connectorTests.js +29 -0
- package/lib/commonjs/utils/crypto.js +8 -62
- package/lib/commonjs/utils/debugHelper.js +1 -64
- package/lib/commonjs/utils/encryption.js +7 -76
- package/lib/commonjs/utils/eventUtils.js +1 -0
- package/lib/commonjs/utils/haptics.js +9 -0
- package/lib/commonjs/utils/imagePreloader.js +1 -0
- package/lib/commonjs/utils/networkDiagnostics.js +8 -0
- package/lib/commonjs/utils/onairosApi.js +9 -350
- package/lib/commonjs/utils/programmaticFlow.js +9 -117
- package/lib/commonjs/utils/retryHelper.js +1 -220
- package/lib/commonjs/utils/secureStorage.js +10 -349
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -0
- package/lib/commonjs/utils/webviewScripts/index.js +13 -0
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -0
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -0
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -0
- package/lib/module/api/index.js +1 -139
- package/lib/module/assets/animations/loaderani.json +1 -0
- package/lib/module/assets/animations/persona-animation.json +1 -0
- package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/module/assets/icons/Facebookicon.png +0 -0
- package/lib/module/assets/icons/Gmail.png +0 -0
- package/lib/module/assets/icons/Linkedinicon.png +0 -0
- package/lib/module/assets/icons/Redditicon.png +0 -0
- package/lib/module/assets/icons/YouTubeicon2.png +0 -0
- package/lib/module/assets/icons/YouTubeicon3.png +0 -0
- package/lib/module/assets/icons/chatgpt.png +0 -0
- package/lib/module/assets/icons/claude.png +0 -0
- package/lib/module/assets/icons/farcaster.png +0 -0
- package/lib/module/assets/icons/gemini.png +0 -0
- package/lib/module/assets/icons/grok.png +0 -0
- package/lib/module/assets/icons/instagram.png +0 -0
- package/lib/module/assets/icons/pinterest.png +0 -0
- package/lib/module/assets/icons/swerv_logo.png +0 -0
- package/lib/module/assets/icons/twitter.jpg +0 -0
- package/lib/module/assets/images/Checkbox.svg +3 -0
- package/lib/module/assets/images/EnochE.svg +19 -0
- package/lib/module/assets/images/Enochicon1.png +0 -0
- package/lib/module/assets/images/Face_ID_logo.png +0 -0
- package/lib/module/assets/images/Facebookicon.png +0 -0
- package/lib/module/assets/images/Gmail.png +0 -0
- package/lib/module/assets/images/Googlelogo.png +0 -0
- package/lib/module/assets/images/Linkedinicon.png +0 -0
- package/lib/module/assets/images/OnairosNewLogo.png +0 -0
- package/lib/module/assets/images/Onairoslogo.png +0 -0
- package/lib/module/assets/images/Personalityprofile.svg +3 -0
- package/lib/module/assets/images/Personalitytraits.svg +3 -0
- package/lib/module/assets/images/Redditicon.png +0 -0
- package/lib/module/assets/images/Userpreferences.svg +3 -0
- package/lib/module/assets/images/YouTubeicon3.png +0 -0
- package/lib/module/assets/images/arrow.svg +20 -0
- package/lib/module/assets/images/basicproficon.svg +43 -0
- package/lib/module/assets/images/basicprofile.svg +3 -0
- package/lib/module/assets/images/chatgpt.png +0 -0
- package/lib/module/assets/images/checkmark.svg +4 -0
- package/lib/module/assets/images/claude.png +0 -0
- package/lib/module/assets/images/contentanalysis.svg +3 -0
- package/lib/module/assets/images/contenticon.svg +23 -0
- package/lib/module/assets/images/gemini.png +0 -0
- package/lib/module/assets/images/grok.png +0 -0
- package/lib/module/assets/images/persona1.png +0 -0
- package/lib/module/assets/images/persona2.png +0 -0
- package/lib/module/assets/images/persona3.png +0 -0
- package/lib/module/assets/images/persona4.png +0 -0
- package/lib/module/assets/images/persona5.png +0 -0
- package/lib/module/assets/images/personalityicon.svg +18 -0
- package/lib/module/assets/images/x-close.svg +3 -0
- package/lib/module/components/BodyText.js +1 -0
- package/lib/module/components/BrandMark.js +1 -0
- package/lib/module/components/CodeInput.js +1 -0
- package/lib/module/components/EmailInput.js +1 -0
- package/lib/module/components/GoogleButton.js +1 -0
- package/lib/module/components/HeadingGroup.js +1 -0
- package/lib/module/components/LLMDataInputModal.js +8 -0
- package/lib/module/components/ModalHeader.js +1 -0
- package/lib/module/components/ModalSheet.js +1 -0
- package/lib/module/components/Onairos.js +1 -367
- package/lib/module/components/OnairosButton.js +1 -302
- package/lib/module/components/OnairosSignInButton.js +1 -0
- package/lib/module/components/Overlay.js +1 -474
- package/lib/module/components/PersonaImage.js +1 -0
- package/lib/module/components/PersonaLoadingScreen.js +1 -0
- package/lib/module/components/PersonalizationConsentScreen.js +1 -0
- package/lib/module/components/PinCreationScreen.js +1 -0
- package/lib/module/components/PinInput.js +1 -293
- package/lib/module/components/PlatformConnectorsStep.js +7 -0
- package/lib/module/components/PlatformList.js +1 -129
- package/lib/module/components/PlatformToggle.js +1 -0
- package/lib/module/components/PrimaryButton.js +1 -0
- package/lib/module/components/SignInMatchAnimation.js +1 -0
- package/lib/module/components/SignInStep.js +1 -0
- package/lib/module/components/UniversalOnboarding.js +1 -1693
- package/lib/module/components/VerificationStep.js +1 -0
- package/lib/module/components/WelcomeScreen.js +1 -0
- package/lib/module/components/icons/Basicproficon.js +1 -0
- package/lib/module/components/icons/Basicprofile.js +1 -0
- package/lib/module/components/icons/Checkbox.js +1 -0
- package/lib/module/components/icons/Checkmark.js +1 -0
- package/lib/module/components/icons/Contentanalysis.js +1 -0
- package/lib/module/components/icons/Contenticon.js +1 -0
- package/lib/module/components/icons/EnochE.js +1 -0
- package/lib/module/components/icons/Personalityicon.js +1 -0
- package/lib/module/components/icons/Personalityprofile.js +1 -0
- package/lib/module/components/icons/Personalitytraits.js +1 -0
- package/lib/module/components/icons/Userpreferences.js +1 -0
- package/lib/module/components/icons/index.js +1 -0
- package/lib/module/components/onboarding/OAuthWebView.js +1 -818
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
- package/lib/module/components/onboarding/PinInput.js +1 -274
- package/lib/module/components/onboarding/PlatformConnector.js +1 -240
- package/lib/module/config/api.js +1 -0
- package/lib/module/constants/index.js +1 -77
- package/lib/module/context/AuthContext.js +1 -0
- package/lib/module/hooks/useConnectedAccounts.js +1 -0
- package/lib/module/hooks/useConnections.js +1 -152
- package/lib/module/hooks/useCredentials.js +6 -169
- package/lib/module/hooks/useUserConnections.js +1 -0
- package/lib/module/index.js +1 -32
- package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
- package/lib/module/services/apiClient.js +1 -0
- package/lib/module/services/apiKeyService.js +1 -925
- package/lib/module/services/authService.js +1 -0
- package/lib/module/services/biometricPinService.js +1 -0
- package/lib/module/services/chatGPTConversationExtractor.js +1 -0
- package/lib/module/services/chatGPTConversationService.js +1 -0
- package/lib/module/services/claudeConversationExtractor.js +1 -0
- package/lib/module/services/claudeConversationService.js +1 -0
- package/lib/module/services/connectedAccountsService.js +1 -0
- package/lib/module/services/googleAuthService.js +1 -0
- package/lib/module/services/hingeDataExtractor.js +1 -0
- package/lib/module/services/hingeDataService.js +1 -0
- package/lib/module/services/imageCompressionService.js +1 -0
- package/lib/module/services/instagramDataExtractor.js +1 -0
- package/lib/module/services/instagramDataService.js +1 -0
- package/lib/module/services/jwtStorageService.js +1 -0
- package/lib/module/services/linkedinDOMExtractor.js +1 -0
- package/lib/module/services/linkedinProfileService.js +1 -0
- package/lib/module/services/linkedinScrapingService.js +1 -0
- package/lib/module/services/llmDataStorage.js +1 -0
- package/lib/module/services/mobileTrainingService.js +1 -0
- package/lib/module/services/oauthService.js +1 -380
- package/lib/module/services/pinEncryptionService.js +7 -0
- package/lib/module/services/pinStorageUtils.js +1 -0
- package/lib/module/services/platformAuthService.js +1 -1041
- package/lib/module/services/sephoraDataExtractor.js +1 -0
- package/lib/module/services/sephoraDataService.js +1 -0
- package/lib/module/services/storageService.js +1 -0
- package/lib/module/services/telegramDataExtractor.js +1 -0
- package/lib/module/services/telegramDataService.js +8 -0
- package/lib/module/services/trainingApiHelpers.js +1 -0
- package/lib/module/services/userConnectionsService.js +1 -0
- package/lib/module/services/youtubeMigrationService.js +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/types.js +1 -10
- package/lib/module/utils/Portal.js +1 -90
- package/lib/module/utils/api.js +1 -117
- package/lib/module/utils/assetRegistry.js +33 -0
- package/lib/module/utils/auth.js +1 -99
- package/lib/module/utils/connectorTests.js +28 -0
- package/lib/module/utils/crypto.js +1 -54
- package/lib/module/utils/debugHelper.js +1 -54
- package/lib/module/utils/encryption.js +1 -67
- package/lib/module/utils/eventUtils.js +1 -0
- package/lib/module/utils/haptics.js +8 -0
- package/lib/module/utils/imagePreloader.js +1 -0
- package/lib/module/utils/networkDiagnostics.js +1 -0
- package/lib/module/utils/onairosApi.js +1 -333
- package/lib/module/utils/programmaticFlow.js +1 -111
- package/lib/module/utils/retryHelper.js +1 -211
- package/lib/module/utils/secureStorage.js +6 -330
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/module/utils/webviewScripts/claude.js +1 -0
- package/lib/module/utils/webviewScripts/hinge.js +1 -0
- package/lib/module/utils/webviewScripts/index.js +1 -0
- package/lib/module/utils/webviewScripts/instagram.js +1 -0
- package/lib/module/utils/webviewScripts/linkedin.js +1 -0
- package/lib/module/utils/webviewScripts/sephora.js +1 -0
- package/lib/module/utils/webviewScripts/telegram.js +1 -0
- package/package.json +62 -39
- package/lib/commonjs/api/index.js.map +0 -1
- package/lib/commonjs/assets/images/email.png +0 -0
- package/lib/commonjs/assets/images/linkedin.png +0 -0
- package/lib/commonjs/assets/images/reddit.png +0 -0
- package/lib/commonjs/assets/images/youtube.png +0 -0
- package/lib/commonjs/components/DataRequestModal.js +0 -228
- package/lib/commonjs/components/DataRequestModal.js.map +0 -1
- package/lib/commonjs/components/DataRequestScreen.js +0 -329
- package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
- package/lib/commonjs/components/EmailVerificationModal.js +0 -320
- package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
- package/lib/commonjs/components/Onairos.js.map +0 -1
- package/lib/commonjs/components/OnairosButton.js.map +0 -1
- package/lib/commonjs/components/Overlay.js.map +0 -1
- package/lib/commonjs/components/PinInput.js.map +0 -1
- package/lib/commonjs/components/PlatformList.js.map +0 -1
- package/lib/commonjs/components/TrainingModal.js +0 -717
- package/lib/commonjs/components/TrainingModal.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
- package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
- package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
- package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/commonjs/constants/index.js.map +0 -1
- package/lib/commonjs/hooks/useConnections.js.map +0 -1
- package/lib/commonjs/hooks/useCredentials.js.map +0 -1
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/services/apiKeyService.js.map +0 -1
- package/lib/commonjs/services/oauthService.js.map +0 -1
- package/lib/commonjs/services/platformAuthService.js.map +0 -1
- package/lib/commonjs/types/ambient.d.js.map +0 -1
- package/lib/commonjs/types/declarations.d.js.map +0 -1
- package/lib/commonjs/types/index.d.js.map +0 -1
- package/lib/commonjs/types/index.js.map +0 -1
- package/lib/commonjs/types/node-fix.d.js.map +0 -1
- package/lib/commonjs/types/node-override.d.js.map +0 -1
- package/lib/commonjs/types/opacity.d.js.map +0 -1
- package/lib/commonjs/types/types.d.js.map +0 -1
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/Portal.js.map +0 -1
- package/lib/commonjs/utils/api.js.map +0 -1
- package/lib/commonjs/utils/auth.js.map +0 -1
- package/lib/commonjs/utils/crypto.js.map +0 -1
- package/lib/commonjs/utils/debugHelper.js.map +0 -1
- package/lib/commonjs/utils/encryption.js.map +0 -1
- package/lib/commonjs/utils/onairosApi.js.map +0 -1
- package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
- package/lib/commonjs/utils/retryHelper.js.map +0 -1
- package/lib/commonjs/utils/secureStorage.js.map +0 -1
- package/lib/module/api/index.js.map +0 -1
- package/lib/module/assets/images/email.png +0 -0
- package/lib/module/assets/images/linkedin.png +0 -0
- package/lib/module/assets/images/reddit.png +0 -0
- package/lib/module/assets/images/youtube.png +0 -0
- package/lib/module/components/DataRequestModal.js +0 -220
- package/lib/module/components/DataRequestModal.js.map +0 -1
- package/lib/module/components/DataRequestScreen.js +0 -321
- package/lib/module/components/DataRequestScreen.js.map +0 -1
- package/lib/module/components/EmailVerificationModal.js +0 -311
- package/lib/module/components/EmailVerificationModal.js.map +0 -1
- package/lib/module/components/Onairos.js.map +0 -1
- package/lib/module/components/OnairosButton.js.map +0 -1
- package/lib/module/components/Overlay.js.map +0 -1
- package/lib/module/components/PinInput.js.map +0 -1
- package/lib/module/components/PlatformList.js.map +0 -1
- package/lib/module/components/TrainingModal.js +0 -708
- package/lib/module/components/TrainingModal.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/module/components/onboarding/PinInput.js.map +0 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/module/components/screens/ConnectorScreen.js +0 -138
- package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/module/components/screens/LoadingScreen.js +0 -83
- package/lib/module/components/screens/LoadingScreen.js.map +0 -1
- package/lib/module/components/screens/PinCreationScreen.js +0 -53
- package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/module/constants/index.js.map +0 -1
- package/lib/module/hooks/useConnections.js.map +0 -1
- package/lib/module/hooks/useCredentials.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/services/apiKeyService.js.map +0 -1
- package/lib/module/services/oauthService.js.map +0 -1
- package/lib/module/services/platformAuthService.js.map +0 -1
- package/lib/module/types/ambient.d.js.map +0 -1
- package/lib/module/types/declarations.d.js.map +0 -1
- package/lib/module/types/index.d.js.map +0 -1
- package/lib/module/types/index.js.map +0 -1
- package/lib/module/types/node-fix.d.js.map +0 -1
- package/lib/module/types/node-override.d.js.map +0 -1
- package/lib/module/types/opacity.d.js.map +0 -1
- package/lib/module/types/types.d.js.map +0 -1
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils/Portal.js.map +0 -1
- package/lib/module/utils/api.js.map +0 -1
- package/lib/module/utils/auth.js.map +0 -1
- package/lib/module/utils/crypto.js.map +0 -1
- package/lib/module/utils/debugHelper.js.map +0 -1
- package/lib/module/utils/encryption.js.map +0 -1
- package/lib/module/utils/onairosApi.js.map +0 -1
- package/lib/module/utils/programmaticFlow.js.map +0 -1
- package/lib/module/utils/retryHelper.js.map +0 -1
- package/lib/module/utils/secureStorage.js.map +0 -1
- package/lib/typescript/api/index.d.ts +0 -8
- package/lib/typescript/api/index.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestModal.d.ts +0 -11
- package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
- package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
- package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
- package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
- package/lib/typescript/components/Onairos.d.ts +0 -4
- package/lib/typescript/components/Onairos.d.ts.map +0 -1
- package/lib/typescript/components/OnairosButton.d.ts +0 -12
- package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
- package/lib/typescript/components/Overlay.d.ts +0 -4
- package/lib/typescript/components/Overlay.d.ts.map +0 -1
- package/lib/typescript/components/PinInput.d.ts +0 -4
- package/lib/typescript/components/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/PlatformList.d.ts +0 -4
- package/lib/typescript/components/PlatformList.d.ts.map +0 -1
- package/lib/typescript/components/TrainingModal.d.ts +0 -4
- package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
- package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
- package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
- package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
- package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts +0 -53
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useConnections.d.ts +0 -9
- package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
- package/lib/typescript/hooks/useCredentials.d.ts +0 -9
- package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -18
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/services/apiKeyService.d.ts +0 -132
- package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
- package/lib/typescript/services/oauthService.d.ts +0 -50
- package/lib/typescript/services/oauthService.d.ts.map +0 -1
- package/lib/typescript/services/platformAuthService.d.ts +0 -144
- package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
- package/lib/typescript/types/index.d.ts +0 -231
- package/lib/typescript/types/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -270
- package/lib/typescript/types.d.ts.map +0 -1
- package/lib/typescript/utils/Portal.d.ts +0 -14
- package/lib/typescript/utils/Portal.d.ts.map +0 -1
- package/lib/typescript/utils/api.d.ts +0 -6
- package/lib/typescript/utils/api.d.ts.map +0 -1
- package/lib/typescript/utils/auth.d.ts +0 -6
- package/lib/typescript/utils/auth.d.ts.map +0 -1
- package/lib/typescript/utils/crypto.d.ts +0 -4
- package/lib/typescript/utils/crypto.d.ts.map +0 -1
- package/lib/typescript/utils/debugHelper.d.ts +0 -29
- package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
- package/lib/typescript/utils/encryption.d.ts +0 -19
- package/lib/typescript/utils/encryption.d.ts.map +0 -1
- package/lib/typescript/utils/onairosApi.d.ts +0 -87
- package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
- package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
- package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
- package/lib/typescript/utils/retryHelper.d.ts +0 -69
- package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
- package/lib/typescript/utils/secureStorage.d.ts +0 -94
- package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
- package/src/api/index.ts +0 -111
- package/src/assets/images/email.png +0 -0
- package/src/assets/images/linkedin.png +0 -0
- package/src/assets/images/onairos_logo.png +0 -0
- package/src/assets/images/reddit.png +0 -0
- package/src/assets/images/youtube.png +0 -0
- package/src/components/DataRequestModal.tsx +0 -227
- package/src/components/DataRequestScreen.tsx +0 -356
- package/src/components/EmailVerificationModal.tsx +0 -364
- package/src/components/Onairos.tsx +0 -425
- package/src/components/OnairosButton.tsx +0 -359
- package/src/components/Overlay.tsx +0 -506
- package/src/components/PinInput.tsx +0 -343
- package/src/components/PlatformList.tsx +0 -145
- package/src/components/TrainingModal.tsx +0 -737
- package/src/components/UniversalOnboarding.tsx +0 -1839
- package/src/components/UniversalOnboarding.tsx.new +0 -455
- package/src/components/onboarding/OAuthWebView.tsx +0 -838
- package/src/components/onboarding/OnboardingHeader.tsx +0 -70
- package/src/components/onboarding/PinInput.tsx +0 -356
- package/src/components/onboarding/PlatformConnector.tsx +0 -302
- package/src/components/screens/ConnectorScreen.tsx +0 -153
- package/src/components/screens/LoadingScreen.tsx +0 -100
- package/src/components/screens/PinCreationScreen.tsx +0 -67
- package/src/constants/index.ts +0 -83
- package/src/hooks/useConnections.ts +0 -163
- package/src/hooks/useCredentials.ts +0 -175
- package/src/index.js +0 -14
- package/src/index.ts +0 -50
- package/src/services/SDK_API_KEY_VALIDATION.md +0 -421
- package/src/services/apiKeyService.ts +0 -984
- package/src/services/oauthService.ts +0 -412
- package/src/services/platformAuthService.ts +0 -1113
- package/src/types/ambient.d.ts +0 -29
- package/src/types/declarations.d.ts +0 -26
- package/src/types/index.d.ts +0 -274
- package/src/types/index.ts +0 -244
- package/src/types/node-fix.d.ts +0 -19
- package/src/types/node-override.d.ts +0 -24
- package/src/types/opacity.d.ts +0 -16
- package/src/types/types.d.ts +0 -18
- package/src/types.ts +0 -298
- package/src/utils/Portal.tsx +0 -83
- package/src/utils/api.js +0 -112
- package/src/utils/auth.js +0 -104
- package/src/utils/crypto.js +0 -60
- package/src/utils/debugHelper.ts +0 -53
- package/src/utils/encryption.ts +0 -69
- package/src/utils/onairosApi.ts +0 -391
- package/src/utils/programmaticFlow.ts +0 -113
- package/src/utils/retryHelper.ts +0 -275
- package/src/utils/secureStorage.ts +0 -361
- package/types/index.d.ts +0 -218
- package/types/node-env.d.ts +0 -15
- /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
|
@@ -1,74 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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();}
|