@onairos/react-native 3.4.0 → 3.5.4
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 +62 -13
- 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/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 +22 -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 +29 -1702
- package/lib/commonjs/components/VerificationStep.js +11 -0
- package/lib/commonjs/components/WelcomeScreen.js +21 -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 +14 -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 +35 -106
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +31 -38
- package/lib/commonjs/services/apiClient.js +8 -0
- package/lib/commonjs/services/apiKeyService.js +9 -946
- 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/imageCompressionService.js +7 -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/storageService.js +8 -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/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/index.js +9 -0
- package/lib/commonjs/utils/webviewScripts/linkedin.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/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 +1 -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 +31 -38
- package/lib/module/services/apiClient.js +1 -0
- package/lib/module/services/apiKeyService.js +1 -919
- 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/imageCompressionService.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/storageService.js +1 -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/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/index.js +1 -0
- package/lib/module/utils/webviewScripts/linkedin.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 -428
- package/src/services/apiKeyService.ts +0 -979
- 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
|
+
function _0x98aa(){var _0x3d1f01=['defineProperty','__esModule','OnboardingHeader','arrow-back','close','View','header','default','createElement','TouchableOpacity','backButton','YiFUm','#000','titleContainer','subtitle','closeButton','ehdAu','eWCNk','StyleSheet','create','row','center','COLORS','headerBg','600'];_0x98aa=function(){return _0x3d1f01;};return _0x98aa();}Object[_0x15ed(0x0)](exports,_0x15ed(0x1),{'value':!![]}),exports[_0x15ed(0x2)]=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 _interopRequireDefault(_0x54e08b){return _0x54e08b&&_0x54e08b[_0x15ed(0x1)]?_0x54e08b:{'default':_0x54e08b};}const OnboardingHeader=({title:_0x4acd63,subtitle:_0x5b9634,showBackButton:showBackButton=![],onBack:_0x5aa4e4,onClose:_0x23d705})=>{var _0x54cffd={'YiFUm':_0x15ed(0x3),'ehdAu':_0x15ed(0x4),'eWCNk':'#000'};return _react['default']['createElement'](_reactNative[_0x15ed(0x5)],{'style':styles[_0x15ed(0x6)]},showBackButton&&_react[_0x15ed(0x7)][_0x15ed(0x8)](_reactNative[_0x15ed(0x9)],{'style':styles[_0x15ed(0xa)],'onPress':_0x5aa4e4},_react[_0x15ed(0x7)]['createElement'](_MaterialIcons['default'],{'name':_0x54cffd[_0x15ed(0xb)],'size':0x18,'color':_0x15ed(0xc)})),_react[_0x15ed(0x7)]['createElement'](_reactNative['View'],{'style':styles[_0x15ed(0xd)]},_react[_0x15ed(0x7)][_0x15ed(0x8)](_reactNative['Text'],{'style':styles['title']},_0x4acd63),_0x5b9634&&_react[_0x15ed(0x7)]['createElement'](_reactNative['Text'],{'style':styles[_0x15ed(0xe)]},_0x5b9634)),_react[_0x15ed(0x7)][_0x15ed(0x8)](_reactNative[_0x15ed(0x9)],{'style':styles[_0x15ed(0xf)],'onPress':_0x23d705},_react[_0x15ed(0x7)]['createElement'](_MaterialIcons[_0x15ed(0x7)],{'name':_0x54cffd[_0x15ed(0x10)],'size':0x18,'color':_0x54cffd[_0x15ed(0x11)]})));};function _0x15ed(_0x98aaa9,_0x15ed40){_0x98aaa9=_0x98aaa9-0x0;var _0x3fb01b=_0x98aa();var _0x56228b=_0x3fb01b[_0x98aaa9];return _0x56228b;}exports[_0x15ed(0x2)]=OnboardingHeader;const styles=_reactNative[_0x15ed(0x12)][_0x15ed(0x13)]({'header':{'flexDirection':_0x15ed(0x14),'alignItems':_0x15ed(0x15),'padding':0x10,'backgroundColor':_constants[_0x15ed(0x16)][_0x15ed(0x17)],'borderTopLeftRadius':0x10,'borderTopRightRadius':0x10},'backButton':{'padding':0x8,'marginRight':0x8},'titleContainer':{'flex':0x1},'title':{'fontSize':0x12,'fontWeight':_0x15ed(0x18),'color':'#000'},'subtitle':{'fontSize':0xe,'color':'#666','marginTop':0x4},'closeButton':{'padding':0x8}});
|
|
@@ -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
|
+
Object[_0x32f4(0x0)](exports,_0x32f4(0x1),{'value':!![]}),exports['PinInput']=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(_0x283789){return _0x283789&&_0x283789['__esModule']?_0x283789:{'default':_0x283789};}function _interopRequireWildcard(_0x89449c,_0x29b851){const _0x15dee4={'VqCdl':function(_0x94912a,_0x7fc134){return _0x94912a&&_0x7fc134;},'UodVb':function(_0x2af6eb,_0x26e274){return _0x2af6eb===_0x26e274;},'QjjdZ':function(_0x13bb9a,_0x567a2d){return _0x13bb9a!=_0x567a2d;},'ASKKl':'object','mjWHT':_0x32f4(0x2),'mPZOr':function(_0x1a16b0,_0x4c86d8){return _0x1a16b0!==_0x4c86d8;},'WCyeA':function(_0x30cbe0,_0x28eebf,_0x43bb26,_0x1fe0be){return _0x30cbe0(_0x28eebf,_0x43bb26,_0x1fe0be);},'ZcNrO':function(_0x2afce9,_0x53d468){return _0x2afce9==_0x53d468;}};if(_0x15dee4[_0x32f4(0x3)](_0x15dee4[_0x32f4(0x4)],typeof WeakMap))var _0xad0b1a=new WeakMap(),_0x55393e=new WeakMap();return(_interopRequireWildcard=function(_0x237476,_0xbba116){if(_0x15dee4[_0x32f4(0x5)](!_0xbba116,_0x237476)&&_0x237476[_0x32f4(0x1)])return _0x237476;var _0x27cdb5,_0x12bb58,_0x6f1a38={'__proto__':null,'default':_0x237476};if(_0x15dee4[_0x32f4(0x6)](null,_0x237476)||_0x15dee4['QjjdZ'](_0x15dee4['ASKKl'],typeof _0x237476)&&_0x15dee4['mjWHT']!=typeof _0x237476)return _0x6f1a38;if(_0x27cdb5=_0xbba116?_0x55393e:_0xad0b1a){if(_0x27cdb5[_0x32f4(0x7)](_0x237476))return _0x27cdb5[_0x32f4(0x8)](_0x237476);_0x27cdb5[_0x32f4(0x9)](_0x237476,_0x6f1a38);}for(const _0x44660c in _0x237476)_0x15dee4[_0x32f4(0xa)](_0x32f4(0xb),_0x44660c)&&{}[_0x32f4(0xc)][_0x32f4(0xd)](_0x237476,_0x44660c)&&((_0x12bb58=(_0x27cdb5=Object[_0x32f4(0x0)])&&Object[_0x32f4(0xe)](_0x237476,_0x44660c))&&(_0x12bb58[_0x32f4(0x8)]||_0x12bb58[_0x32f4(0x9)])?_0x15dee4[_0x32f4(0xf)](_0x27cdb5,_0x6f1a38,_0x44660c,_0x12bb58):_0x6f1a38[_0x44660c]=_0x237476[_0x44660c]);return _0x6f1a38;})(_0x89449c,_0x29b851);}const PinInput=({onSubmit:_0x3917e2,minLength:minLength=0x6,requireSpecialChar:requireSpecialChar=!![],requireNumber:requireNumber=!![]})=>{const _0x5f57dd={'DjEAs':function(_0x572f87,_0x270a7b){return _0x572f87===_0x270a7b;},'dqbrV':function(_0x439d0b,_0x3223c0){return _0x439d0b!=_0x3223c0;},'gZhln':_0x32f4(0x10),'CtaNM':function(_0x26977e,_0xe35b55){return _0x26977e!==_0xe35b55;},'QEifq':_0x32f4(0xb),'UXyDD':function(_0x3bdbac,_0x4bee49){return _0x3bdbac(_0x4bee49);},'TvepM':_0x32f4(0x11),'NoFQE':function(_0x19c206,_0x1c2891){return _0x19c206(_0x1c2891);},'HccLb':_0x32f4(0x12),'OORaQ':_0x32f4(0x13),'qgnQD':function(_0x433a52,_0x69f5d7){return _0x433a52===_0x69f5d7;},'HvZKJ':function(_0x3be268,_0x4c3e74){return _0x3be268===_0x4c3e74;},'EDTfs':_0x32f4(0x14),'OIJpz':_0x32f4(0x15),'dOyFk':function(_0x515b38,_0x51e9d8){return _0x515b38<_0x51e9d8;},'YVjIq':_0x32f4(0x16),'BxmvY':function(_0x589980,_0x2c6a18){return _0x589980==_0x2c6a18;},'nCmEK':_0x32f4(0x2),'XYoqH':_0x32f4(0x17),'GIHYl':_0x32f4(0x18),'vgQAC':function(_0x20463a,_0x3f3696){return _0x20463a(_0x3f3696);},'peHmq':function(_0x11db42,_0x365179){return _0x11db42!==_0x365179;},'SoUhu':_0x32f4(0x19),'Zoorb':function(_0x42e148,_0x1a1168){return _0x42e148!==_0x1a1168;},'HFOxQ':_0x32f4(0x1a),'FrWhF':_0x32f4(0x1b),'zXxpo':function(_0x44413e,_0x2ca101){return _0x44413e(_0x2ca101);},'CXRRH':function(_0x517163,_0x523ea3){return _0x517163(_0x523ea3);},'UKsQm':function(_0x219b37,_0x2474e8){return _0x219b37(_0x2474e8);},'LvnQJ':function(_0x3263da,_0xff76e0){return _0x3263da===_0xff76e0;},'HFFGU':_0x32f4(0x1c),'NnxJa':function(_0x564a2b,_0x5daaec){return _0x564a2b===_0x5daaec;},'KIcxe':'ios','txBDH':_0x32f4(0x1d),'MQSPL':_0x32f4(0x1e),'DPwDW':function(_0x42de0e,_0x54dfd1){return _0x42de0e===_0x54dfd1;},'fdWEh':_0x32f4(0x1f),'kypJc':_0x32f4(0x20),'rDxYQ':function(_0x1086d0,_0x2cfc9c){return _0x1086d0===_0x2cfc9c;},'dwWiM':function(_0x384e29,_0x1e4e2a){return _0x384e29===_0x1e4e2a;},'YExKz':_0x32f4(0x21),'yRBWh':_0x32f4(0x22),'PPFKz':_0x32f4(0x23),'slWam':_0x32f4(0x24),'FhKVu':_0x32f4(0x25),'hAtoD':_0x32f4(0x26),'yiULz':function(_0x32c802,_0x9adce6){return _0x32c802>_0x9adce6;},'YeZaA':function(_0x3a397a,_0x47a97d){return _0x3a397a===_0x47a97d;},'RvzLD':_0x32f4(0x27),'Ielbe':function(_0x2d824c,_0x4f51d2){return _0x2d824c>=_0x4f51d2;},'eyUfT':_0x32f4(0x28),'LGpZw':'radio-button-unchecked','bMtaF':'#4caf50','pltSM':function(_0x3c7e41,_0x2f7e76){return _0x3c7e41>=_0x2f7e76;},'DtkJS':'\x20characters','EBITM':_0x32f4(0x29),'XpsCt':'Include\x20at\x20least\x20one\x20special\x20character','QmJHV':function(_0x52857c,_0x426915){return _0x52857c===_0x426915;},'iXWyY':'Back','aYciP':function(_0x14d658,_0xd4c7bc){return _0x14d658>_0xd4c7bc;},'HqhYB':function(_0x230aef,_0x10f87d){return _0x230aef===_0x10f87d;},'PHfFz':function(_0xe7e3cd,_0x24d92f){return _0xe7e3cd===_0x24d92f;},'zvBRl':'Next','EgAmZ':_0x32f4(0x2a),'rxIzs':_0x32f4(0x2b),'kZxYG':'#fff'},[_0x4bfe70,_0x56e681]=(0x0,_react[_0x32f4(0x2c)])(''),[_0x9b4e9b,_0x1a6e57]=(0x0,_react['useState'])(''),[_0xf829cc,_0x36b719]=(0x0,_react['useState'])(![]),[_0x5a7aab,_0x57a603]=(0x0,_react[_0x32f4(0x2c)])([]),[_0xbc01b,_0x53c21b]=(0x0,_react[_0x32f4(0x2c)])(_0x5f57dd[_0x32f4(0x2d)]);(0x0,_react[_0x32f4(0x2e)])(()=>{if(_0x32f4(0x2f)===_0x5f57dd[_0x32f4(0x30)]){if(!_0x5b6b94&&_0x55922b&&_0x225cde[_0x32f4(0x1)])return _0x183562;var _0x1a9fd5,_0x1341d7,_0x5053da={'__proto__':null,'default':_0x4a0175};if(_0x5f57dd[_0x32f4(0x31)](null,_0x298322)||_0x5f57dd[_0x32f4(0x32)](_0x5f57dd[_0x32f4(0x33)],typeof _0x26a0a6)&&'function'!=typeof _0x2f7f47)return _0x5053da;if(_0x1a9fd5=_0x4ac182?_0xcdd949:_0x1092fb){if(_0x1a9fd5[_0x32f4(0x7)](_0x2062e9))return _0x1a9fd5['get'](_0x48e03f);_0x1a9fd5[_0x32f4(0x9)](_0x3bd4a3,_0x5053da);}for(const _0x2e1a3f in _0x128b83)_0x5f57dd[_0x32f4(0x34)](_0x5f57dd[_0x32f4(0x35)],_0x2e1a3f)&&{}[_0x32f4(0xc)]['call'](_0x3f75d3,_0x2e1a3f)&&((_0x1341d7=(_0x1a9fd5=_0x41b4c4[_0x32f4(0x0)])&&_0x2b5850[_0x32f4(0xe)](_0x570165,_0x2e1a3f))&&(_0x1341d7['get']||_0x1341d7[_0x32f4(0x9)])?_0x1a9fd5(_0x5053da,_0x2e1a3f,_0x1341d7):_0x5053da[_0x2e1a3f]=_0xe7b10b[_0x2e1a3f]);return _0x5053da;}else _0xbc01b===_0x5f57dd[_0x32f4(0x2d)]&&(_0x5f57dd[_0x32f4(0x31)](_0x32f4(0x36),'wWmAM')?(_0x5f57dd['UXyDD'](_0x287b87,[_0x5f57dd[_0x32f4(0x37)]]),_0x5f57dd[_0x32f4(0x38)](_0x3ca54a,'')):_0x3570d7(_0x4bfe70));},[_0x4bfe70,_0xbc01b]);const _0x3570d7=(0x0,_react[_0x32f4(0x39)])(_0x4fc9de=>{if(_0x5f57dd[_0x32f4(0x3a)](_0x5f57dd[_0x32f4(0x3b)],_0x5f57dd[_0x32f4(0x3c)]))_0x5f57dd[_0x32f4(0x3d)](_0xe59dfe,_0xa02220)?(_0x4e0d80[_0x32f4(0x3e)][_0x32f4(0x3f)](),_0x377f24(_0x1614db)):(_0x44fc77([_0x32f4(0x11)]),_0x5f57dd[_0x32f4(0x40)](_0x2dfdaf,''));else{const _0x303059=[];_0x5f57dd[_0x32f4(0x41)](_0x4fc9de[_0x32f4(0x42)],minLength)&&_0x303059[_0x32f4(0x43)](_0x32f4(0x44)+minLength+_0x32f4(0x45));if(requireNumber&&!/\d/[_0x32f4(0x46)](_0x4fc9de)){if(_0x5f57dd[_0x32f4(0x31)](_0x5f57dd[_0x32f4(0x47)],_0x5f57dd[_0x32f4(0x47)]))_0x303059[_0x32f4(0x43)](_0x32f4(0x48));else{if(_0x470829[_0x32f4(0x7)](_0x1861e7))return _0x36f0b4['get'](_0x36b0a0);_0x1f20c1[_0x32f4(0x9)](_0x1b018e,_0xe0ab7f);}}return requireSpecialChar&&!/[!@#$%^&*(),.?":{}|<>]/[_0x32f4(0x46)](_0x4fc9de)&&_0x303059['push'](_0x32f4(0x49)),_0x5f57dd[_0x32f4(0x40)](_0x57a603,_0x303059),_0x303059[_0x32f4(0x42)]===0x0;}},[minLength,requireNumber,requireSpecialChar]),_0x5a2cb9=(0x0,_react['useCallback'])(()=>{const _0x4c3674={'pkvSn':function(_0x654f05,_0x268a8d){return _0x654f05&&_0x268a8d;},'YJqXH':function(_0x4d5846,_0x7a01a1){return _0x4d5846===_0x7a01a1;},'KVHaw':function(_0x26dc77,_0x49ddc5){return _0x5f57dd[_0x32f4(0x32)](_0x26dc77,_0x49ddc5);},'QYGSN':_0x32f4(0x10),'WlbxB':_0x5f57dd[_0x32f4(0x4a)],'rUFiM':function(_0x2a6637,_0x56a373){return _0x2a6637!==_0x56a373;},'avJPj':_0x5f57dd[_0x32f4(0x35)],'QxUtR':function(_0x5df339,_0x1ab7af,_0x3d3adf,_0x241e8a){return _0x5df339(_0x1ab7af,_0x3d3adf,_0x241e8a);}};if(_0x5f57dd[_0x32f4(0x31)](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)]))_0x5f57dd[_0x32f4(0x38)](_0x3570d7,_0x4bfe70)&&_0x53c21b(_0x5f57dd[_0x32f4(0x4b)]);else{if(_0x5f57dd['DjEAs'](_0x5f57dd[_0x32f4(0x4c)],_0x5f57dd[_0x32f4(0x4c)]))_0x5f57dd[_0x32f4(0x31)](_0x4bfe70,_0x9b4e9b)?(_reactNative['Keyboard']['dismiss'](),_0x5f57dd['vgQAC'](_0x3917e2,_0x4bfe70)):_0x5f57dd[_0x32f4(0x4d)](_0x5f57dd[_0x32f4(0x4e)],_0x5f57dd['SoUhu'])?_0x5f57dd[_0x32f4(0x31)](_0x564186,_0x5f57dd[_0x32f4(0x2d)])&&_0x5f57dd[_0x32f4(0x40)](_0x398b6c,_0x35275f):(_0x57a603([_0x5f57dd[_0x32f4(0x37)]]),_0x1a6e57(''));else{if(_0x5f57dd[_0x32f4(0x4f)](_0x5f57dd[_0x32f4(0x4a)],typeof _0x10c681))var _0x27b482=new _0x6f3605(),_0x213238=new _0xb4e282();return(_0x47c110=function(_0x54e47e,_0x1bbe96){if(_0x4c3674[_0x32f4(0x50)](!_0x1bbe96,_0x54e47e)&&_0x54e47e[_0x32f4(0x1)])return _0x54e47e;var _0x243489,_0x3301d0,_0x3fe451={'__proto__':null,'default':_0x54e47e};if(_0x4c3674[_0x32f4(0x51)](null,_0x54e47e)||_0x4c3674['KVHaw'](_0x4c3674[_0x32f4(0x52)],typeof _0x54e47e)&&_0x4c3674[_0x32f4(0x53)]!=typeof _0x54e47e)return _0x3fe451;if(_0x243489=_0x1bbe96?_0x213238:_0x27b482){if(_0x243489[_0x32f4(0x7)](_0x54e47e))return _0x243489['get'](_0x54e47e);_0x243489['set'](_0x54e47e,_0x3fe451);}for(const _0x38e626 in _0x54e47e)_0x4c3674[_0x32f4(0x54)](_0x4c3674[_0x32f4(0x55)],_0x38e626)&&{}[_0x32f4(0xc)]['call'](_0x54e47e,_0x38e626)&&((_0x3301d0=(_0x243489=_0x1e33bc[_0x32f4(0x0)])&&_0x3a589d[_0x32f4(0xe)](_0x54e47e,_0x38e626))&&(_0x3301d0[_0x32f4(0x8)]||_0x3301d0[_0x32f4(0x9)])?_0x4c3674['QxUtR'](_0x243489,_0x3fe451,_0x38e626,_0x3301d0):_0x3fe451[_0x38e626]=_0x54e47e[_0x38e626]);return _0x3fe451;})(_0xbea545,_0x243e99);}}},[_0x4bfe70,_0x9b4e9b,_0xbc01b,_0x3570d7,_0x3917e2]),_0x4f644c=(0x0,_react[_0x32f4(0x39)])(()=>{_0x5f57dd['Zoorb'](_0x5f57dd[_0x32f4(0x56)],_0x5f57dd[_0x32f4(0x57)])?(_0x53c21b(_0x5f57dd[_0x32f4(0x2d)]),_0x5f57dd[_0x32f4(0x58)](_0x1a6e57,''),_0x5f57dd['CXRRH'](_0x57a603,[])):(_0x4d78b0[_0x32f4(0x3e)]['dismiss'](),_0x5f57dd['vgQAC'](_0x10a6bf,_0x2671d8));},[]),_0x429d17=(0x0,_react[_0x32f4(0x39)])(()=>{const _0x28d7ce={'vYXeA':function(_0x5b921f,_0x396d61){return _0x5f57dd[_0x32f4(0x59)](_0x5b921f,_0x396d61);},'ImdIj':_0x5f57dd[_0x32f4(0x4b)]};_0x5f57dd[_0x32f4(0x5a)](_0x5f57dd['HFFGU'],_0x5f57dd[_0x32f4(0x5b)])?_0x5f57dd[_0x32f4(0x5c)](_0x36b719,!_0xf829cc):_0x28d7ce[_0x32f4(0x5d)](_0xffea40,_0x28d7ce['ImdIj']);},[_0xf829cc]);return _react[_0x32f4(0xb)]['createElement'](_reactNative[_0x32f4(0x5e)],{'behavior':_0x5f57dd['NnxJa'](_reactNative['Platform']['OS'],_0x5f57dd[_0x32f4(0x5f)])?_0x5f57dd[_0x32f4(0x60)]:_0x5f57dd[_0x32f4(0x61)],'style':styles[_0x32f4(0x62)]},_react['default'][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'style':styles[_0x32f4(0x65)]},_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':styles['title']},_0x5f57dd[_0x32f4(0x67)](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)])?'Create\x20a\x20PIN':_0x5f57dd[_0x32f4(0x68)]),_react['default'][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':styles[_0x32f4(0x69)]},_0xbc01b===_0x5f57dd[_0x32f4(0x2d)]?_0x32f4(0x6a):_0x5f57dd[_0x32f4(0x6b)]),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'style':styles[_0x32f4(0x6c)]},_react[_0x32f4(0xb)]['createElement'](_reactNative[_0x32f4(0x6d)],{'style':styles['input'],'value':_0x5f57dd[_0x32f4(0x6e)](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)])?_0x4bfe70:_0x9b4e9b,'onChangeText':_0x5f57dd['dwWiM'](_0xbc01b,_0x5f57dd['OORaQ'])?_0x56e681:_0x1a6e57,'secureTextEntry':!_0xf829cc,'keyboardType':_0x5f57dd[_0x32f4(0x35)],'autoCapitalize':_0x5f57dd[_0x32f4(0x6f)],'autoCorrect':![],'placeholder':_0x5f57dd['DPwDW'](_0xbc01b,_0x5f57dd['OORaQ'])?_0x32f4(0x70):_0x5f57dd[_0x32f4(0x71)],'placeholderTextColor':_0x5f57dd[_0x32f4(0x72)],'returnKeyType':_0x5f57dd[_0x32f4(0x73)],'onSubmitEditing':_0x5a2cb9}),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x74)],{'style':styles[_0x32f4(0x75)],'onPress':_0x429d17},_react[_0x32f4(0xb)]['createElement'](_MaterialIcons[_0x32f4(0xb)],{'name':_0xf829cc?_0x5f57dd[_0x32f4(0x76)]:_0x5f57dd[_0x32f4(0x77)],'size':0x18,'color':_0x5f57dd['PPFKz']}))),_0x5f57dd[_0x32f4(0x78)](_0x5a7aab[_0x32f4(0x42)],0x0)&&_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'style':styles[_0x32f4(0x79)]},_0x5a7aab[_0x32f4(0x7a)]((_0xe22a7a,_0x50eddc)=>_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'key':_0x50eddc,'style':styles[_0x32f4(0x7b)]},_react[_0x32f4(0xb)]['createElement'](_MaterialIcons[_0x32f4(0xb)],{'name':'error-outline','size':0x10,'color':_0x32f4(0x7c)}),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':styles[_0x32f4(0x7d)]},_0xe22a7a)))),_0x5f57dd[_0x32f4(0x7e)](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)])&&_react['default'][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'style':styles[_0x32f4(0x7f)]},_react['default'][_0x32f4(0x63)](_reactNative['Text'],{'style':styles[_0x32f4(0x80)]},_0x5f57dd['RvzLD']),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative['View'],{'style':styles[_0x32f4(0x81)]},_react[_0x32f4(0xb)][_0x32f4(0x63)](_MaterialIcons[_0x32f4(0xb)],{'name':_0x5f57dd[_0x32f4(0x82)](_0x4bfe70['length'],minLength)?_0x5f57dd[_0x32f4(0x83)]:_0x5f57dd[_0x32f4(0x84)],'size':0x10,'color':_0x5f57dd['Ielbe'](_0x4bfe70[_0x32f4(0x42)],minLength)?_0x5f57dd[_0x32f4(0x85)]:_0x5f57dd[_0x32f4(0x72)]}),_react['default'][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':[styles[_0x32f4(0x86)],{'color':_0x5f57dd[_0x32f4(0x87)](_0x4bfe70[_0x32f4(0x42)],minLength)?_0x5f57dd[_0x32f4(0x85)]:_0x32f4(0x23)}]},'At\x20least\x20',minLength,_0x5f57dd[_0x32f4(0x88)])),requireNumber&&_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative['View'],{'style':styles[_0x32f4(0x81)]},_react[_0x32f4(0xb)][_0x32f4(0x63)](_MaterialIcons[_0x32f4(0xb)],{'name':/\d/[_0x32f4(0x46)](_0x4bfe70)?_0x5f57dd['eyUfT']:_0x5f57dd[_0x32f4(0x84)],'size':0x10,'color':/\d/[_0x32f4(0x46)](_0x4bfe70)?_0x32f4(0x89):_0x5f57dd['PPFKz']}),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':[styles[_0x32f4(0x86)],{'color':/\d/[_0x32f4(0x46)](_0x4bfe70)?_0x32f4(0x89):_0x5f57dd[_0x32f4(0x72)]}]},_0x5f57dd[_0x32f4(0x8a)])),requireSpecialChar&&_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative['View'],{'style':styles[_0x32f4(0x81)]},_react[_0x32f4(0xb)][_0x32f4(0x63)](_MaterialIcons[_0x32f4(0xb)],{'name':/[!@#$%^&*(),.?":{}|<>]/['test'](_0x4bfe70)?_0x5f57dd[_0x32f4(0x83)]:'radio-button-unchecked','size':0x10,'color':/[!@#$%^&*(),.?":{}|<>]/[_0x32f4(0x46)](_0x4bfe70)?_0x5f57dd[_0x32f4(0x85)]:_0x5f57dd[_0x32f4(0x72)]}),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':[styles[_0x32f4(0x86)],{'color':/[!@#$%^&*(),.?":{}|<>]/[_0x32f4(0x46)](_0x4bfe70)?_0x32f4(0x89):_0x32f4(0x23)}]},_0x5f57dd[_0x32f4(0x8b)]))),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x64)],{'style':styles[_0x32f4(0x8c)]},_0x5f57dd[_0x32f4(0x8d)](_0xbc01b,_0x5f57dd['XYoqH'])&&_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x74)],{'style':[styles[_0x32f4(0x8e)],styles[_0x32f4(0x8f)]],'onPress':_0x4f644c},_react['default'][_0x32f4(0x63)](_MaterialIcons[_0x32f4(0xb)],{'name':_0x32f4(0x90),'size':0x14,'color':_constants[_0x32f4(0x91)][_0x32f4(0x92)]}),_react['default'][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':[styles[_0x32f4(0x93)],styles[_0x32f4(0x94)]]},_0x5f57dd[_0x32f4(0x95)])),_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x74)],{'style':[styles['button'],styles[_0x32f4(0x96)],_0x5f57dd[_0x32f4(0x3d)](_0xbc01b,_0x5f57dd['OORaQ'])&&_0x5f57dd[_0x32f4(0x78)](_0x5a7aab['length'],0x0)||_0xbc01b===_0x32f4(0x17)&&!_0x9b4e9b?styles[_0x32f4(0x97)]:null],'onPress':_0x5a2cb9,'disabled':_0x5f57dd['dwWiM'](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)])&&_0x5f57dd[_0x32f4(0x98)](_0x5a7aab[_0x32f4(0x42)],0x0)||_0x5f57dd[_0x32f4(0x99)](_0xbc01b,_0x32f4(0x17))&&!_0x9b4e9b},_react[_0x32f4(0xb)][_0x32f4(0x63)](_reactNative[_0x32f4(0x66)],{'style':[styles[_0x32f4(0x93)],styles[_0x32f4(0x9a)]]},_0x5f57dd[_0x32f4(0x9b)](_0xbc01b,_0x5f57dd[_0x32f4(0x2d)])?_0x5f57dd[_0x32f4(0x9c)]:_0x5f57dd[_0x32f4(0x9d)]),_react[_0x32f4(0xb)][_0x32f4(0x63)](_MaterialIcons[_0x32f4(0xb)],{'name':_0x5f57dd[_0x32f4(0x9e)],'size':0x14,'color':_0x5f57dd[_0x32f4(0x9f)]})))));};function _0x32f4(_0x4c649c,_0x32f469){_0x4c649c=_0x4c649c-0x0;const _0x224716=_0x4c64();let _0x42dd92=_0x224716[_0x4c649c];return _0x42dd92;}function _0x4c64(){const _0x3b8282=['defineProperty','__esModule','function','ZcNrO','mjWHT','VqCdl','UodVb','has','get','set','mPZOr','default','hasOwnProperty','call','getOwnPropertyDescriptor','WCyeA','object','PINs\x20do\x20not\x20match','Pwtgs','create','JqUbl','qhTXE','XZWzm','confirm','HhoDo','MKIFO','npxyT','oqSit','BrEdV','padding','height','Confirm\x20your\x20PIN','Please\x20re-enter\x20your\x20PIN\x20to\x20confirm','none','Confirm\x20PIN','#999','done','visibility-off','visibility','PIN\x20Requirements:','check-circle','Include\x20at\x20least\x20one\x20number','Submit','arrow-forward','useState','OORaQ','useEffect','uHfMV','HccLb','DjEAs','dqbrV','gZhln','CtaNM','QEifq','inHDO','TvepM','NoFQE','useCallback','HvZKJ','EDTfs','OIJpz','qgnQD','Keyboard','dismiss','UXyDD','dOyFk','length','push','PIN\x20must\x20be\x20at\x20least\x20','\x20characters','test','YVjIq','PIN\x20must\x20include\x20at\x20least\x20one\x20number','PIN\x20must\x20include\x20at\x20least\x20one\x20special\x20character','nCmEK','XYoqH','GIHYl','peHmq','SoUhu','BxmvY','pkvSn','YJqXH','QYGSN','WlbxB','rUFiM','avJPj','HFOxQ','FrWhF','zXxpo','UKsQm','LvnQJ','HFFGU','CXRRH','vYXeA','KeyboardAvoidingView','KIcxe','txBDH','MQSPL','container','createElement','View','content','Text','DPwDW','fdWEh','subtitle','This\x20PIN\x20will\x20protect\x20your\x20Onairos\x20account','kypJc','inputContainer','TextInput','rDxYQ','YExKz','Enter\x20PIN','yRBWh','PPFKz','slWam','TouchableOpacity','visibilityToggle','FhKVu','hAtoD','yiULz','errorContainer','map','errorItem','#f44336','errorText','YeZaA','requirementsContainer','requirementsTitle','requirement','Ielbe','eyUfT','LGpZw','bMtaF','requirementText','pltSM','DtkJS','#4caf50','EBITM','XpsCt','buttonContainer','QmJHV','button','backButton','arrow-back','COLORS','primary','buttonText','backButtonText','iXWyY','nextButton','disabledButton','aYciP','HqhYB','nextButtonText','PHfFz','zvBRl','EgAmZ','rxIzs','kZxYG','PinInput','StyleSheet','bold','#000','row','#ddd','#f9f9f9','center','#f5f5f5','600','space-between','transparent','#ccc','#fff'];_0x4c64=function(){return _0x3b8282;};return _0x4c64();}exports[_0x32f4(0xa0)]=PinInput;const styles=_reactNative[_0x32f4(0xa1)][_0x32f4(0x13)]({'container':{'flex':0x1},'content':{'padding':0x18},'title':{'fontSize':0x18,'fontWeight':_0x32f4(0xa2),'marginBottom':0x8,'color':_0x32f4(0xa3)},'subtitle':{'fontSize':0x10,'color':'#666','marginBottom':0x18},'inputContainer':{'flexDirection':_0x32f4(0xa4),'alignItems':'center','borderWidth':0x1,'borderColor':_0x32f4(0xa5),'borderRadius':0x8,'backgroundColor':_0x32f4(0xa6),'marginBottom':0x10},'input':{'flex':0x1,'paddingHorizontal':0x10,'paddingVertical':0xc,'fontSize':0x10,'color':_0x32f4(0xa3)},'visibilityToggle':{'padding':0xc},'errorContainer':{'marginBottom':0x10},'errorItem':{'flexDirection':_0x32f4(0xa4),'alignItems':_0x32f4(0xa7),'marginBottom':0x4},'errorText':{'color':_0x32f4(0x7c),'marginLeft':0x6},'requirementsContainer':{'backgroundColor':_0x32f4(0xa8),'padding':0x10,'borderRadius':0x8,'marginBottom':0x18},'requirementsTitle':{'fontSize':0xe,'fontWeight':_0x32f4(0xa9),'marginBottom':0x8,'color':_0x32f4(0xa3)},'requirement':{'flexDirection':'row','alignItems':_0x32f4(0xa7),'marginBottom':0x8},'requirementText':{'marginLeft':0x8,'fontSize':0xe},'buttonContainer':{'flexDirection':'row','justifyContent':_0x32f4(0xaa)},'button':{'flexDirection':_0x32f4(0xa4),'alignItems':'center','paddingVertical':0xc,'paddingHorizontal':0x14,'borderRadius':0x19},'backButton':{'backgroundColor':_0x32f4(0xab),'borderWidth':0x1,'borderColor':_constants['COLORS'][_0x32f4(0x92)]},'nextButton':{'backgroundColor':_constants[_0x32f4(0x91)][_0x32f4(0x92)],'minWidth':0x78,'justifyContent':_0x32f4(0xa7)},'disabledButton':{'backgroundColor':_0x32f4(0xac)},'buttonText':{'fontSize':0x10,'fontWeight':_0x32f4(0xa9)},'backButtonText':{'color':_constants[_0x32f4(0x91)]['primary'],'marginLeft':0x8},'nextButtonText':{'color':_0x32f4(0xad),'marginRight':0x8}});
|