@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,474 +1 @@
|
|
|
1
|
-
import React, { useState, useEffect, useCallback, useRef } from 'react';
|
|
2
|
-
import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Alert, Platform, Dimensions, Modal, Animated, TouchableWithoutFeedback, SafeAreaView, Image, Switch } from 'react-native';
|
|
3
|
-
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
4
|
-
import { onairosApi } from '../api';
|
|
5
|
-
import { encryptModelKey } from '../utils/encryption';
|
|
6
|
-
const {
|
|
7
|
-
width: SCREEN_WIDTH,
|
|
8
|
-
height: SCREEN_HEIGHT
|
|
9
|
-
} = Dimensions.get('window');
|
|
10
|
-
export const Overlay = ({
|
|
11
|
-
data,
|
|
12
|
-
username,
|
|
13
|
-
modelKey,
|
|
14
|
-
onResolved,
|
|
15
|
-
appName = 'Your App',
|
|
16
|
-
darkMode = false,
|
|
17
|
-
platforms = [{
|
|
18
|
-
id: 'instagram',
|
|
19
|
-
name: 'Instagram',
|
|
20
|
-
icon: require('../assets/images/instagram.png')
|
|
21
|
-
}, {
|
|
22
|
-
id: 'youtube',
|
|
23
|
-
name: 'YouTube',
|
|
24
|
-
icon: require('../assets/images/youtube.png')
|
|
25
|
-
}, {
|
|
26
|
-
id: 'reddit',
|
|
27
|
-
name: 'Reddit',
|
|
28
|
-
icon: require('../assets/images/reddit.png')
|
|
29
|
-
}, {
|
|
30
|
-
id: 'pinterest',
|
|
31
|
-
name: 'Pinterest',
|
|
32
|
-
icon: require('../assets/images/pinterest.png')
|
|
33
|
-
}, {
|
|
34
|
-
id: 'email',
|
|
35
|
-
name: 'Email',
|
|
36
|
-
icon: require('../assets/images/email.png')
|
|
37
|
-
}]
|
|
38
|
-
}) => {
|
|
39
|
-
const [selections, setSelections] = useState({});
|
|
40
|
-
const [details, setDetails] = useState('');
|
|
41
|
-
const [visible, setVisible] = useState(true);
|
|
42
|
-
const [platformToggles, setPlatformToggles] = useState({});
|
|
43
|
-
const bottomSheetAnim = useRef(new Animated.Value(0)).current;
|
|
44
|
-
|
|
45
|
-
// Initialize selection state on mount
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
// Initialize selection state
|
|
48
|
-
const initialSelections = {};
|
|
49
|
-
Object.keys(data).forEach(key => {
|
|
50
|
-
initialSelections[key] = false;
|
|
51
|
-
});
|
|
52
|
-
setSelections(initialSelections);
|
|
53
|
-
|
|
54
|
-
// Initialize platform toggles
|
|
55
|
-
const initialToggles = {};
|
|
56
|
-
platforms.forEach(platform => {
|
|
57
|
-
initialToggles[platform.id] = false;
|
|
58
|
-
});
|
|
59
|
-
setPlatformToggles(initialToggles);
|
|
60
|
-
getDetails();
|
|
61
|
-
|
|
62
|
-
// Animate the bottom sheet sliding up
|
|
63
|
-
Animated.spring(bottomSheetAnim, {
|
|
64
|
-
toValue: 1,
|
|
65
|
-
useNativeDriver: true,
|
|
66
|
-
bounciness: 0
|
|
67
|
-
}).start();
|
|
68
|
-
}, []);
|
|
69
|
-
const getDetails = async () => {
|
|
70
|
-
try {
|
|
71
|
-
// In Expo or development, use mock data
|
|
72
|
-
if (__DEV__) {
|
|
73
|
-
setDetails('Development mode - mock account info');
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const response = await onairosApi.post('getAccountInfo', {
|
|
77
|
-
Info: {
|
|
78
|
-
username: username
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
// Handle response data properly based on API structure
|
|
82
|
-
if (response && response.data) {
|
|
83
|
-
const accountInfo = typeof response.data === 'object' && response.data.AccountInfo ? response.data.AccountInfo : `User: ${username}`;
|
|
84
|
-
setDetails(accountInfo);
|
|
85
|
-
} else {
|
|
86
|
-
setDetails(`User: ${username}`);
|
|
87
|
-
}
|
|
88
|
-
} catch (e) {
|
|
89
|
-
console.error('Error getting account info:', e);
|
|
90
|
-
setDetails(`User: ${username}`);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
const closeOverlay = useCallback(() => {
|
|
94
|
-
// Animate the overlay sliding down
|
|
95
|
-
Animated.timing(bottomSheetAnim, {
|
|
96
|
-
toValue: 0,
|
|
97
|
-
duration: 250,
|
|
98
|
-
useNativeDriver: true
|
|
99
|
-
}).start(() => {
|
|
100
|
-
setVisible(false);
|
|
101
|
-
});
|
|
102
|
-
}, [bottomSheetAnim]);
|
|
103
|
-
const togglePlatform = useCallback(platformId => {
|
|
104
|
-
setPlatformToggles(prev => ({
|
|
105
|
-
...prev,
|
|
106
|
-
[platformId]: !prev[platformId]
|
|
107
|
-
}));
|
|
108
|
-
}, []);
|
|
109
|
-
const confirmSelection = useCallback(async () => {
|
|
110
|
-
try {
|
|
111
|
-
// Mock app identifier
|
|
112
|
-
const appId = Platform.select({
|
|
113
|
-
ios: 'com.onairos.mock',
|
|
114
|
-
android: 'com.onairos.mock',
|
|
115
|
-
default: 'unknown'
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
// In development mode, use mock data
|
|
119
|
-
if (__DEV__) {
|
|
120
|
-
onResolved('https://api2.onairos.uk', 'mock-token', {
|
|
121
|
-
username,
|
|
122
|
-
selections,
|
|
123
|
-
platforms: platformToggles
|
|
124
|
-
});
|
|
125
|
-
closeOverlay();
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Get server public key for encryption
|
|
130
|
-
let serverPublicKey = 'mock-key';
|
|
131
|
-
try {
|
|
132
|
-
const keyResponse = await onairosApi.get('public/key');
|
|
133
|
-
if (keyResponse && keyResponse.data && typeof keyResponse.data === 'object') {
|
|
134
|
-
serverPublicKey = keyResponse.data.publicKey || 'mock-key';
|
|
135
|
-
}
|
|
136
|
-
} catch (e) {
|
|
137
|
-
console.error('Error getting server public key:', e);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Encrypt the model key - only if the function exists and server key is valid
|
|
141
|
-
let encryptedModelKey = modelKey;
|
|
142
|
-
if (typeof encryptModelKey === 'function' && serverPublicKey) {
|
|
143
|
-
try {
|
|
144
|
-
encryptedModelKey = encryptModelKey(serverPublicKey, modelKey);
|
|
145
|
-
} catch (e) {
|
|
146
|
-
console.error('Error encrypting model key:', e);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
const response = await onairosApi.post('getAPIUrlMobile', {
|
|
150
|
-
Info: {
|
|
151
|
-
storage: 'local',
|
|
152
|
-
appId: appId,
|
|
153
|
-
confirmations: selections,
|
|
154
|
-
developerURL: 'devURL',
|
|
155
|
-
EncryptedUserPin: encryptedModelKey,
|
|
156
|
-
username: username,
|
|
157
|
-
platforms: platformToggles
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
if (response && response.data && response.data.APIUrl && response.data.token) {
|
|
161
|
-
onResolved(response.data.APIUrl, response.data.token, {
|
|
162
|
-
username,
|
|
163
|
-
selections,
|
|
164
|
-
platforms: platformToggles
|
|
165
|
-
});
|
|
166
|
-
closeOverlay();
|
|
167
|
-
} else {
|
|
168
|
-
// If response doesn't have expected format, use fallbacks
|
|
169
|
-
onResolved('https://api2.onairos.uk', 'fallback-token', {
|
|
170
|
-
username,
|
|
171
|
-
selections,
|
|
172
|
-
platforms: platformToggles
|
|
173
|
-
});
|
|
174
|
-
closeOverlay();
|
|
175
|
-
}
|
|
176
|
-
} catch (e) {
|
|
177
|
-
console.error('Error confirming selection:', e);
|
|
178
|
-
// In case of error, provide fallback (development mode)
|
|
179
|
-
if (__DEV__) {
|
|
180
|
-
onResolved('https://api2.onairos.uk', 'error-fallback-token', {
|
|
181
|
-
username,
|
|
182
|
-
selections,
|
|
183
|
-
platforms: platformToggles,
|
|
184
|
-
error: true
|
|
185
|
-
});
|
|
186
|
-
closeOverlay();
|
|
187
|
-
} else {
|
|
188
|
-
showErrorModal('Failed to confirm selection. Please try again.');
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}, [selections, username, modelKey, onResolved, closeOverlay, platformToggles]);
|
|
192
|
-
const showErrorModal = errorMessage => {
|
|
193
|
-
Alert.alert('Error', errorMessage, [{
|
|
194
|
-
text: 'OK'
|
|
195
|
-
}]);
|
|
196
|
-
};
|
|
197
|
-
return /*#__PURE__*/React.createElement(Modal, {
|
|
198
|
-
visible: visible,
|
|
199
|
-
transparent: true,
|
|
200
|
-
animationType: "none",
|
|
201
|
-
statusBarTranslucent: true,
|
|
202
|
-
onRequestClose: closeOverlay
|
|
203
|
-
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
204
|
-
style: styles.modalOverlay,
|
|
205
|
-
activeOpacity: 1,
|
|
206
|
-
onPress: closeOverlay
|
|
207
|
-
}, /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
208
|
-
onPress: e => e.stopPropagation()
|
|
209
|
-
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
210
|
-
style: [styles.bottomSheet, darkMode && styles.darkContainer, {
|
|
211
|
-
transform: [{
|
|
212
|
-
translateY: bottomSheetAnim.interpolate({
|
|
213
|
-
inputRange: [0, 1],
|
|
214
|
-
outputRange: [SCREEN_HEIGHT, 0]
|
|
215
|
-
})
|
|
216
|
-
}]
|
|
217
|
-
}]
|
|
218
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
219
|
-
style: styles.handleContainer
|
|
220
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
221
|
-
style: [styles.handle, darkMode && styles.darkHandle]
|
|
222
|
-
})), /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
223
|
-
style: [styles.container, darkMode && styles.darkContainer]
|
|
224
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
225
|
-
style: [styles.header, darkMode && styles.darkHeader]
|
|
226
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
227
|
-
style: styles.headerContent
|
|
228
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
229
|
-
style: [styles.appIcon, darkMode && styles.darkAppIcon]
|
|
230
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
231
|
-
style: [styles.appIconText, darkMode && styles.darkText]
|
|
232
|
-
}, appName.charAt(0))), /*#__PURE__*/React.createElement(Icon, {
|
|
233
|
-
name: "arrow_forward",
|
|
234
|
-
size: 24,
|
|
235
|
-
color: darkMode ? '#999' : '#666',
|
|
236
|
-
style: styles.arrow
|
|
237
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
238
|
-
style: [styles.onairosIcon, darkMode && styles.darkOnairosIcon]
|
|
239
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
240
|
-
style: [styles.onairosIconText, darkMode && styles.darkText]
|
|
241
|
-
}, "O")))), /*#__PURE__*/React.createElement(ScrollView, {
|
|
242
|
-
style: styles.content
|
|
243
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
244
|
-
style: styles.titleContainer
|
|
245
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
246
|
-
style: [styles.mainTitle, darkMode && styles.darkText]
|
|
247
|
-
}, "Connect your data to create a Persona of you, to connect to Cosmos"), /*#__PURE__*/React.createElement(Text, {
|
|
248
|
-
style: [styles.privacyMessage, darkMode && styles.darkSubText]
|
|
249
|
-
}, "None of your app data is shared with ANYONE")), /*#__PURE__*/React.createElement(View, {
|
|
250
|
-
style: styles.platformsContainer
|
|
251
|
-
}, platforms.map(platform => /*#__PURE__*/React.createElement(View, {
|
|
252
|
-
key: platform.id,
|
|
253
|
-
style: [styles.platformItem, darkMode && styles.darkPlatformItem]
|
|
254
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
255
|
-
style: styles.platformInfo
|
|
256
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
257
|
-
source: platform.icon,
|
|
258
|
-
style: styles.platformIcon,
|
|
259
|
-
resizeMode: "contain"
|
|
260
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
261
|
-
style: [styles.platformName, darkMode && styles.darkText]
|
|
262
|
-
}, platform.name)), /*#__PURE__*/React.createElement(Switch, {
|
|
263
|
-
value: platformToggles[platform.id],
|
|
264
|
-
onValueChange: () => togglePlatform(platform.id),
|
|
265
|
-
trackColor: {
|
|
266
|
-
false: '#767577',
|
|
267
|
-
true: '#81b0ff'
|
|
268
|
-
},
|
|
269
|
-
thumbColor: platformToggles[platform.id] ? '#2196F3' : '#f4f3f4'
|
|
270
|
-
}))))), /*#__PURE__*/React.createElement(View, {
|
|
271
|
-
style: [styles.footer, darkMode && styles.darkFooter]
|
|
272
|
-
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
273
|
-
style: styles.footerButtonCancel,
|
|
274
|
-
onPress: closeOverlay
|
|
275
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
276
|
-
style: [styles.footerButtonText, darkMode && styles.darkSubText]
|
|
277
|
-
}, "Cancel")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
278
|
-
style: [styles.footerButtonConfirm, darkMode && styles.darkFooterButtonConfirm],
|
|
279
|
-
onPress: confirmSelection
|
|
280
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
281
|
-
style: [styles.footerButtonTextConfirm, darkMode && {
|
|
282
|
-
color: '#000'
|
|
283
|
-
}]
|
|
284
|
-
}, "Connect"))))))));
|
|
285
|
-
};
|
|
286
|
-
const styles = StyleSheet.create({
|
|
287
|
-
modalOverlay: {
|
|
288
|
-
flex: 1,
|
|
289
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
290
|
-
justifyContent: 'flex-end'
|
|
291
|
-
},
|
|
292
|
-
bottomSheet: {
|
|
293
|
-
backgroundColor: '#fff',
|
|
294
|
-
borderTopLeftRadius: 24,
|
|
295
|
-
borderTopRightRadius: 24,
|
|
296
|
-
width: SCREEN_WIDTH,
|
|
297
|
-
height: SCREEN_HEIGHT * 0.8,
|
|
298
|
-
overflow: 'hidden'
|
|
299
|
-
},
|
|
300
|
-
handleContainer: {
|
|
301
|
-
width: '100%',
|
|
302
|
-
alignItems: 'center',
|
|
303
|
-
paddingTop: 12,
|
|
304
|
-
paddingBottom: 8
|
|
305
|
-
},
|
|
306
|
-
handle: {
|
|
307
|
-
width: 40,
|
|
308
|
-
height: 5,
|
|
309
|
-
borderRadius: 3,
|
|
310
|
-
backgroundColor: '#E0E0E0'
|
|
311
|
-
},
|
|
312
|
-
darkHandle: {
|
|
313
|
-
backgroundColor: '#666'
|
|
314
|
-
},
|
|
315
|
-
container: {
|
|
316
|
-
flex: 1,
|
|
317
|
-
backgroundColor: '#fff'
|
|
318
|
-
},
|
|
319
|
-
darkContainer: {
|
|
320
|
-
backgroundColor: '#1A1A1A'
|
|
321
|
-
},
|
|
322
|
-
header: {
|
|
323
|
-
padding: 24,
|
|
324
|
-
alignItems: 'center'
|
|
325
|
-
},
|
|
326
|
-
darkHeader: {
|
|
327
|
-
backgroundColor: '#1A1A1A'
|
|
328
|
-
},
|
|
329
|
-
headerContent: {
|
|
330
|
-
flexDirection: 'row',
|
|
331
|
-
alignItems: 'center',
|
|
332
|
-
justifyContent: 'center',
|
|
333
|
-
marginBottom: 16
|
|
334
|
-
},
|
|
335
|
-
appIcon: {
|
|
336
|
-
width: 48,
|
|
337
|
-
height: 48,
|
|
338
|
-
borderRadius: 16,
|
|
339
|
-
backgroundColor: '#F5F5F5',
|
|
340
|
-
alignItems: 'center',
|
|
341
|
-
justifyContent: 'center'
|
|
342
|
-
},
|
|
343
|
-
darkAppIcon: {
|
|
344
|
-
backgroundColor: '#2A2A2A'
|
|
345
|
-
},
|
|
346
|
-
appIconText: {
|
|
347
|
-
fontSize: 24,
|
|
348
|
-
color: '#000'
|
|
349
|
-
},
|
|
350
|
-
darkText: {
|
|
351
|
-
color: '#fff'
|
|
352
|
-
},
|
|
353
|
-
arrow: {
|
|
354
|
-
marginHorizontal: 16
|
|
355
|
-
},
|
|
356
|
-
onairosIcon: {
|
|
357
|
-
width: 48,
|
|
358
|
-
height: 48,
|
|
359
|
-
borderRadius: 16,
|
|
360
|
-
backgroundColor: '#F5F5F5',
|
|
361
|
-
alignItems: 'center',
|
|
362
|
-
justifyContent: 'center'
|
|
363
|
-
},
|
|
364
|
-
darkOnairosIcon: {
|
|
365
|
-
backgroundColor: '#2A2A2A'
|
|
366
|
-
},
|
|
367
|
-
onairosIconText: {
|
|
368
|
-
fontSize: 24,
|
|
369
|
-
color: '#000'
|
|
370
|
-
},
|
|
371
|
-
darkSubText: {
|
|
372
|
-
color: '#999'
|
|
373
|
-
},
|
|
374
|
-
titleContainer: {
|
|
375
|
-
marginBottom: 30
|
|
376
|
-
},
|
|
377
|
-
mainTitle: {
|
|
378
|
-
fontSize: 22,
|
|
379
|
-
fontWeight: '600',
|
|
380
|
-
color: '#000',
|
|
381
|
-
textAlign: 'center',
|
|
382
|
-
marginBottom: 16
|
|
383
|
-
},
|
|
384
|
-
privacyMessage: {
|
|
385
|
-
fontSize: 14,
|
|
386
|
-
color: '#666',
|
|
387
|
-
textAlign: 'center',
|
|
388
|
-
marginBottom: 16
|
|
389
|
-
},
|
|
390
|
-
content: {
|
|
391
|
-
flex: 1,
|
|
392
|
-
paddingHorizontal: 24
|
|
393
|
-
},
|
|
394
|
-
platformsContainer: {
|
|
395
|
-
marginTop: 16
|
|
396
|
-
},
|
|
397
|
-
platformItem: {
|
|
398
|
-
flexDirection: 'row',
|
|
399
|
-
justifyContent: 'space-between',
|
|
400
|
-
alignItems: 'center',
|
|
401
|
-
padding: 16,
|
|
402
|
-
backgroundColor: '#fff',
|
|
403
|
-
borderRadius: 16,
|
|
404
|
-
marginBottom: 16,
|
|
405
|
-
borderWidth: 1,
|
|
406
|
-
borderColor: '#eee'
|
|
407
|
-
},
|
|
408
|
-
darkPlatformItem: {
|
|
409
|
-
backgroundColor: '#2A2A2A',
|
|
410
|
-
borderColor: '#333'
|
|
411
|
-
},
|
|
412
|
-
platformInfo: {
|
|
413
|
-
flexDirection: 'row',
|
|
414
|
-
alignItems: 'center'
|
|
415
|
-
},
|
|
416
|
-
platformIcon: {
|
|
417
|
-
width: 32,
|
|
418
|
-
height: 32,
|
|
419
|
-
marginRight: 12
|
|
420
|
-
},
|
|
421
|
-
platformName: {
|
|
422
|
-
fontSize: 16,
|
|
423
|
-
fontWeight: '500',
|
|
424
|
-
color: '#000'
|
|
425
|
-
},
|
|
426
|
-
footer: {
|
|
427
|
-
flexDirection: 'row',
|
|
428
|
-
alignItems: 'center',
|
|
429
|
-
justifyContent: 'space-between',
|
|
430
|
-
padding: 24,
|
|
431
|
-
borderTopWidth: 1,
|
|
432
|
-
borderTopColor: '#eee',
|
|
433
|
-
backgroundColor: '#fff'
|
|
434
|
-
},
|
|
435
|
-
darkFooter: {
|
|
436
|
-
backgroundColor: '#2A2A2A',
|
|
437
|
-
borderTopColor: '#333'
|
|
438
|
-
},
|
|
439
|
-
footerButtonCancel: {
|
|
440
|
-
paddingVertical: 8,
|
|
441
|
-
paddingHorizontal: 16
|
|
442
|
-
},
|
|
443
|
-
darkFooterButton: {
|
|
444
|
-
backgroundColor: 'transparent'
|
|
445
|
-
},
|
|
446
|
-
footerButtonConfirm: {
|
|
447
|
-
paddingVertical: 16,
|
|
448
|
-
paddingHorizontal: 32,
|
|
449
|
-
borderRadius: 16,
|
|
450
|
-
backgroundColor: '#fff',
|
|
451
|
-
borderWidth: 1,
|
|
452
|
-
borderColor: '#000'
|
|
453
|
-
},
|
|
454
|
-
darkFooterButtonConfirm: {
|
|
455
|
-
backgroundColor: '#fff',
|
|
456
|
-
borderColor: '#fff'
|
|
457
|
-
},
|
|
458
|
-
footerButtonText: {
|
|
459
|
-
color: '#666',
|
|
460
|
-
fontSize: 16
|
|
461
|
-
},
|
|
462
|
-
footerButtonTextConfirm: {
|
|
463
|
-
color: '#000',
|
|
464
|
-
fontSize: 16,
|
|
465
|
-
fontWeight: '600'
|
|
466
|
-
},
|
|
467
|
-
lightBackground: {
|
|
468
|
-
backgroundColor: '#fff'
|
|
469
|
-
},
|
|
470
|
-
darkBackground: {
|
|
471
|
-
backgroundColor: '#1A1A1A'
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
//# sourceMappingURL=Overlay.js.map
|
|
1
|
+
import React,{useState,useEffect,useCallback,useRef}from'react';import{View,Text,StyleSheet,TouchableOpacity,ScrollView,Alert,Platform,Dimensions,Modal,Animated,TouchableWithoutFeedback,SafeAreaView,Image,Switch}from'react-native';import _0x298ee7 from'react-native-vector-icons/MaterialIcons';import{onairosApi}from'../api';import{encryptModelKey}from'../utils/encryption';function _0x3f65(){const _0x5ae855=['get','window','Your\x20App','Error\x20getting\x20server\x20public\x20key:','Development\x20mode\x20-\x20mock\x20account\x20info','getAccountInfo','ZiCGx','auImw','oyPRt','Error\x20getting\x20account\x20info:','mock-token','fallback-token','unknown','ukYJH','xowpB','public/key','object','function','zSTSY','qNjMG','Error\x20encrypting\x20model\x20key:','getAPIUrlMobile','devURL','oaPss','emcxu','Error\x20confirming\x20selection:','luxXj','error-fallback-token','ZTvPJ','Failed\x20to\x20confirm\x20selection.\x20Please\x20try\x20again.','ifrJb','cKlFx','Error','none','arrow_forward','#999','#666','qAAyc','WzyeT','MWMnq','current','avaaH','OursX','ygxxR','keys','forEach','unpqr','start','error','rXuCC','post','bLQae','sVyow','data','epjVT','vNXWr','mkifH','spring','User:\x20','Kdibp','JrMHN','XhTMa','FagSx','timing','eDfxW','pYfWE','XjLok','tGgon','wlwIg','enQLX','select','ANyKY','com.onairos.mock','xbEAH','OWpKX','qOMKf','BASE_URL','mock-key','mVHhB','YaYYl','PRYuB','WlQio','Ipnxx','publicKey','etdNo','tuHIC','UCfeN','ytVgK','sPqLW','odrYh','GQsUV','PwedI','tdnBi','OfbDq','VBiND','APIUrl','xZLor','OeGyU','token','Ftvmg','TNtnx','xhdDO','cxZhE','krjbF','MjMBw','tnLVR','hMTat','eSgtR','FpHNj','Kozft','PGDHD','nwxLJ','UUBPE','XIjdg','kweoa','BOUCi','RrKqg','tRsmH','alert','MPhva','IVQEE','modalOverlay','createElement','stopPropagation','View','darkContainer','interpolate','handleContainer','handle','darkHandle','darkHeader','appIcon','darkAppIcon','darkText','charAt','mWQDD','hExfT','Jqhiv','arrow','onairosIcon','darkOnairosIcon','onairosIconText','content','titleContainer','mainTitle','Connect\x20your\x20data\x20to\x20create\x20a\x20Persona\x20of\x20you,\x20to\x20connect\x20to\x20Cosmos','platformsContainer','map','darkPlatformItem','platformInfo','icon','contain','platformName','#81b0ff','#f4f3f4','footerButtonText','Cancel','footerButtonConfirm','darkFooterButtonConfirm','footerButtonTextConfirm','SjULj','oqIgw','Dffjb','create','rgba(0,\x200,\x200,\x200.5)','hidden','100%','center','#E0E0E0','#fff','#1A1A1A','row','#F5F5F5','#000','600','space-between','#eee','#2A2A2A','#333','500','transparent'];_0x3f65=function(){return _0x5ae855;};return _0x3f65();}function _0x165b(_0x3f65e3,_0x165bfe){_0x3f65e3=_0x3f65e3-0x0;const _0x140675=_0x3f65();let _0x3ce29d=_0x140675[_0x3f65e3];return _0x3ce29d;}import{OVERLAY_PLATFORMS}from'../utils/assetRegistry';const {width:SCREEN_WIDTH,height:SCREEN_HEIGHT}=Dimensions[_0x165b(0x0)](_0x165b(0x1));import{API_CONFIG}from'../config/api';export const Overlay=({data:_0x160aee,username:_0x9c30e2,modelKey:_0x4bb161,onResolved:_0x4a14e6,appName:appName=_0x165b(0x2),darkMode:darkMode=![],platforms:platforms=OVERLAY_PLATFORMS})=>{const _0xab3d4c={'avaaH':_0x165b(0x3),'OursX':function(_0x5dff7e,_0x3b3d2e){return _0x5dff7e===_0x3b3d2e;},'MWMnq':function(_0x579711,_0x515ea9){return _0x579711(_0x515ea9);},'unpqr':function(_0x361a2a){return _0x361a2a();},'WzyeT':function(_0xfb89e0,_0x16ba63){return _0xfb89e0(_0x16ba63);},'MkHfE':_0x165b(0x4),'bLQae':_0x165b(0x5),'sVyow':function(_0x4d1c8f,_0x2227ac){return _0x4d1c8f===_0x2227ac;},'qAAyc':function(_0x5db204,_0x1bd18f){return _0x5db204(_0x1bd18f);},'epjVT':function(_0x4995c9,_0x50e386){return _0x4995c9!==_0x50e386;},'vNXWr':_0x165b(0x6),'fkFkm':function(_0x143b7d,_0x17d962){return _0x143b7d===_0x17d962;},'Kdibp':_0x165b(0x7),'JrMHN':_0x165b(0x8),'XhTMa':_0x165b(0x9),'tdnBi':function(_0x168611,_0x4304c7){return _0x168611(_0x4304c7);},'FagSx':function(_0x49a3c9,_0x548d3f){return _0x49a3c9(_0x548d3f);},'pYfWE':function(_0x507f76,_0x237192,_0x56714b,_0x211926){return _0x507f76(_0x237192,_0x56714b,_0x211926);},'XIjdg':_0x165b(0xa),'XjLok':function(_0x29826e,_0x467a87,_0x237c18,_0x252f7c){return _0x29826e(_0x467a87,_0x237c18,_0x252f7c);},'tGgon':_0x165b(0xb),'wlwIg':function(_0x52555d){return _0x52555d();},'enQLX':function(_0x310fb5,_0x3c0192,_0xd8702f){return _0x310fb5(_0x3c0192,_0xd8702f);},'ANyKY':'com.onairos.mock','xbEAH':_0x165b(0xc),'TZhZR':function(_0x548902,_0x22968d){return _0x548902!==_0x22968d;},'OWpKX':_0x165b(0xd),'qUNAW':'vLKrn','qOMKf':function(_0x436309,_0x4cb692,_0x198e7b,_0x514740){return _0x436309(_0x4cb692,_0x198e7b,_0x514740);},'mVHhB':_0x165b(0xe),'PRYuB':_0x165b(0xf),'WlQio':function(_0x27d8c4,_0xcd777d){return _0x27d8c4===_0xcd777d;},'Ipnxx':_0x165b(0x10),'etdNo':function(_0x2bc5f5,_0x50c9e6){return _0x2bc5f5===_0x50c9e6;},'tuHIC':_0x165b(0x11),'UCfeN':_0x165b(0x12),'GGiCD':_0x165b(0x13),'mPYuV':function(_0x160b38,_0x184eaf,_0x307c6a){return _0x160b38(_0x184eaf,_0x307c6a);},'xneMP':function(_0x539af5,_0x482ee7){return _0x539af5===_0x482ee7;},'PwedI':'PcJeG','tRsmH':_0x165b(0x14),'OfbDq':_0x165b(0x15),'VBiND':'local','ZcqUv':_0x165b(0x16),'xZLor':function(_0x5356b9,_0x283aa5){return _0x5356b9!==_0x283aa5;},'OeGyU':_0x165b(0x17),'xhdDO':function(_0x392b10,_0x4673f3,_0x9829a2,_0x6f3893){return _0x392b10(_0x4673f3,_0x9829a2,_0x6f3893);},'cxZhE':function(_0x33bd3a){return _0x33bd3a();},'EfQmj':function(_0x320fef,_0x389070){return _0x320fef===_0x389070;},'krjbF':_0x165b(0x18),'MjMBw':_0x165b(0x19),'WpdeH':_0x165b(0x1a),'hMTat':function(_0x164a84,_0x28df7c,_0xd91a1f,_0x3699bb){return _0x164a84(_0x28df7c,_0xd91a1f,_0x3699bb);},'eSgtR':_0x165b(0x1b),'rcamR':function(_0x351e40,_0x5e3f2a){return _0x351e40===_0x5e3f2a;},'PGDHD':_0x165b(0x1c),'LoYVE':'rckrd','UUBPE':_0x165b(0x1d),'kweoa':function(_0x41cb8c,_0x371193){return _0x41cb8c===_0x371193;},'BOUCi':_0x165b(0x1e),'RrKqg':_0x165b(0x1f),'MPhva':_0x165b(0x20),'DSGaR':function(_0x2ef771,_0x4ec8e3){return _0x2ef771(_0x4ec8e3);},'eDfxW':function(_0xdf34e7,_0x19a7d7,_0x5ef90b){return _0xdf34e7(_0x19a7d7,_0x5ef90b);},'XhXJV':function(_0x46f3b0,_0x339efd,_0x2246c7){return _0x46f3b0(_0x339efd,_0x2246c7);},'IVQEE':_0x165b(0x21),'mWQDD':_0x165b(0x22),'hExfT':_0x165b(0x23),'Jqhiv':_0x165b(0x24),'SjULj':function(_0x24646e,_0x542e11){return _0x24646e&&_0x542e11;},'oqIgw':'#000','Dffjb':'Connect'},[_0x218ad0,_0x3c2aaa]=_0xab3d4c[_0x165b(0x25)](useState,{}),[_0x1052e7,_0x35276d]=_0xab3d4c[_0x165b(0x26)](useState,''),[_0x1dba2c,_0x2729b4]=useState(!![]),[_0x28ced1,_0x11ee3d]=_0xab3d4c[_0x165b(0x27)](useState,{}),_0x239927=_0xab3d4c['DSGaR'](useRef,new Animated['Value'](0x0))[_0x165b(0x28)];useEffect(()=>{const _0xd2d546={'rXuCC':_0xab3d4c[_0x165b(0x29)]};if(_0xab3d4c[_0x165b(0x2a)](_0x165b(0x2b),_0x165b(0x2b))){const _0x2c9463={};Object[_0x165b(0x2c)](_0x160aee)[_0x165b(0x2d)](_0x2abc1e=>{_0x2c9463[_0x2abc1e]=![];}),_0xab3d4c[_0x165b(0x27)](_0x3c2aaa,_0x2c9463);const _0x33aab3={};platforms[_0x165b(0x2d)](_0x8726a8=>{_0x33aab3[_0x8726a8['id']]=![];}),_0xab3d4c[_0x165b(0x27)](_0x11ee3d,_0x33aab3),_0xab3d4c[_0x165b(0x2e)](_0x22ee21),Animated['spring'](_0x239927,{'toValue':0x1,'useNativeDriver':!![],'bounciness':0x0})[_0x165b(0x2f)]();}else _0x4e6860[_0x165b(0x30)](_0xd2d546[_0x165b(0x31)],_0x41197f);},[]);const _0x22ee21=async()=>{const _0x394b02={'mkifH':function(_0x35628b,_0x48dd17){return _0x35628b(_0x48dd17);}};try{if(__DEV__){_0xab3d4c[_0x165b(0x26)](_0x35276d,_0xab3d4c['MkHfE']);return;}const _0x40a8bc=await onairosApi[_0x165b(0x32)](_0xab3d4c[_0x165b(0x33)],{'Info':{'username':_0x9c30e2}});if(_0x40a8bc&&_0x40a8bc['data']){const _0x4d3255=_0xab3d4c[_0x165b(0x34)](typeof _0x40a8bc[_0x165b(0x35)],_0x165b(0x10))&&_0x40a8bc['data']['AccountInfo']?_0x40a8bc['data']['AccountInfo']:'User:\x20'+_0x9c30e2;_0xab3d4c[_0x165b(0x25)](_0x35276d,_0x4d3255);}else{if(_0xab3d4c[_0x165b(0x36)](_0xab3d4c[_0x165b(0x37)],_0xab3d4c[_0x165b(0x37)])){const _0x206576={};_0x1ccb07['keys'](_0x138799)[_0x165b(0x2d)](_0xa69bf5=>{_0x206576[_0xa69bf5]=![];}),_0x394b02[_0x165b(0x38)](_0x20d2c3,_0x206576);const _0x4b212c={};_0x3e496b[_0x165b(0x2d)](_0x229e41=>{_0x4b212c[_0x229e41['id']]=![];}),_0x394b02[_0x165b(0x38)](_0xd06658,_0x4b212c),_0x38e568(),Animated[_0x165b(0x39)](_0x5ef354,{'toValue':0x1,'useNativeDriver':!![],'bounciness':0x0})['start']();}else _0x35276d(_0x165b(0x3a)+_0x9c30e2);}}catch(_0x255aea){_0xab3d4c['fkFkm'](_0xab3d4c[_0x165b(0x3b)],_0xab3d4c[_0x165b(0x3c)])?_0x45c328[_0x10105b]=![]:(console[_0x165b(0x30)](_0xab3d4c[_0x165b(0x3d)],_0x255aea),_0xab3d4c['tdnBi'](_0x35276d,_0x165b(0x3a)+_0x9c30e2));}},_0x5ed58a=useCallback(()=>{const _0x591f73={'GyebZ':function(_0x35eadf,_0x4bb6e7){return _0xab3d4c[_0x165b(0x3e)](_0x35eadf,_0x4bb6e7);}};Animated[_0x165b(0x3f)](_0x239927,{'toValue':0x0,'duration':0xfa,'useNativeDriver':!![]})[_0x165b(0x2f)](()=>{_0x591f73['GyebZ'](_0x2729b4,![]);});},[_0x239927]),_0x1939a3=_0xab3d4c[_0x165b(0x40)](useCallback,_0xb301aa=>{_0xab3d4c[_0x165b(0x26)](_0x11ee3d,_0x3ce364=>({..._0x3ce364,[_0xb301aa]:!_0x3ce364[_0xb301aa]}));},[]),_0x1c3b54=_0xab3d4c['XhXJV'](useCallback,async()=>{const _0x5e6a3d={'YaYYl':_0x165b(0x9),'ytVgK':_0x165b(0x19),'sPqLW':function(_0x18fac6,_0x2b8c48,_0x387b5a,_0x374389){return _0xab3d4c[_0x165b(0x41)](_0x18fac6,_0x2b8c48,_0x387b5a,_0x374389);},'odrYh':function(_0x2a6cc6){return _0xab3d4c[_0x165b(0x2e)](_0x2a6cc6);},'Ftvmg':function(_0x6a6981,_0x40fa24,_0x59ce18,_0x30c6e3){return _0xab3d4c[_0x165b(0x42)](_0x6a6981,_0x40fa24,_0x59ce18,_0x30c6e3);},'TNtnx':_0x165b(0x1b),'FpHNj':_0xab3d4c[_0x165b(0x43)],'Kozft':function(_0x39a9f3){return _0xab3d4c[_0x165b(0x44)](_0x39a9f3);},'nwxLJ':function(_0x47c0e7,_0x312182,_0x544b12){return _0xab3d4c[_0x165b(0x45)](_0x47c0e7,_0x312182,_0x544b12);}};try{const _0x301ec7=Platform[_0x165b(0x46)]({'ios':_0xab3d4c[_0x165b(0x47)],'android':_0x165b(0x48),'default':_0xab3d4c[_0x165b(0x49)]});if(__DEV__){if(_0xab3d4c['TZhZR'](_0xab3d4c[_0x165b(0x4a)],_0xab3d4c['qUNAW'])){_0xab3d4c[_0x165b(0x4b)](_0x4a14e6,''+API_CONFIG[_0x165b(0x4c)],_0xab3d4c['XIjdg'],{'username':_0x9c30e2,'selections':_0x218ad0,'platforms':_0x28ced1}),_0xab3d4c[_0x165b(0x2e)](_0x5ed58a);return;}else _0xf87b07[_0x231ac0['id']]=![];}let _0xffd9af=_0x165b(0x4d);try{if(_0xab3d4c[_0x165b(0x4e)]!==_0xab3d4c[_0x165b(0x4e)])_0x549727[_0x165b(0x30)](_0x5e6a3d[_0x165b(0x4f)],_0x1b5b7e),_0x1a2bf4(_0x165b(0x3a)+_0x208ef9);else{const _0x104a32=await onairosApi[_0x165b(0x0)](_0xab3d4c[_0x165b(0x50)]);_0x104a32&&_0x104a32[_0x165b(0x35)]&&_0xab3d4c[_0x165b(0x51)](typeof _0x104a32[_0x165b(0x35)],_0xab3d4c[_0x165b(0x52)])&&(_0xffd9af=_0x104a32[_0x165b(0x35)][_0x165b(0x53)]||'mock-key');}}catch(_0xb419c){console[_0x165b(0x30)](_0xab3d4c[_0x165b(0x29)],_0xb419c);}let _0x3418f3=_0x4bb161;if(_0xab3d4c[_0x165b(0x54)](typeof encryptModelKey,_0xab3d4c[_0x165b(0x55)])&&_0xffd9af){if(_0xab3d4c[_0x165b(0x34)](_0xab3d4c[_0x165b(0x56)],_0xab3d4c['GGiCD']))_0x2bcc0a[_0x165b(0x30)](_0x5e6a3d[_0x165b(0x57)],_0x247384),_0x49a744?(_0x5e6a3d[_0x165b(0x58)](_0x4ee427,''+_0x55d5ec['BASE_URL'],_0x165b(0x1b),{'username':_0x41aae9,'selections':_0x2af396,'platforms':_0xcf80bf,'error':!![]}),_0x5e6a3d[_0x165b(0x59)](_0x44bf23)):_0x5b8738(_0x165b(0x1d));else try{_0x3418f3=_0xab3d4c['mPYuV'](encryptModelKey,_0xffd9af,_0x4bb161);}catch(_0x4b2607){if(_0xab3d4c['xneMP'](_0x165b(0x5a),_0xab3d4c[_0x165b(0x5b)])){const _0x2d5739={'sLSgr':function(_0x3e8815,_0x52bcd3){return _0xab3d4c[_0x165b(0x5c)](_0x3e8815,_0x52bcd3);}};Animated[_0x165b(0x3f)](_0x199e17,{'toValue':0x0,'duration':0xfa,'useNativeDriver':!![]})['start'](()=>{_0x2d5739['sLSgr'](_0x3d7d23,![]);});}else console[_0x165b(0x30)](_0xab3d4c['tRsmH'],_0x4b2607);}}const _0x2f9c57=await onairosApi['post'](_0xab3d4c[_0x165b(0x5d)],{'Info':{'storage':_0xab3d4c[_0x165b(0x5e)],'appId':_0x301ec7,'confirmations':_0x218ad0,'developerURL':_0xab3d4c['ZcqUv'],'EncryptedUserPin':_0x3418f3,'username':_0x9c30e2,'platforms':_0x28ced1}});_0x2f9c57&&_0x2f9c57[_0x165b(0x35)]&&_0x2f9c57[_0x165b(0x35)][_0x165b(0x5f)]&&_0x2f9c57[_0x165b(0x35)]['token']?_0xab3d4c[_0x165b(0x60)](_0xab3d4c[_0x165b(0x61)],'sMCYl')?(_0xab3d4c['xhdDO'](_0x4a14e6,_0x2f9c57['data'][_0x165b(0x5f)],_0x2f9c57['data'][_0x165b(0x62)],{'username':_0x9c30e2,'selections':_0x218ad0,'platforms':_0x28ced1}),_0x5ed58a()):(_0x5e6a3d[_0x165b(0x63)](_0x26925f,''+_0x445dda[_0x165b(0x4c)],_0x5e6a3d[_0x165b(0x64)],{'username':_0x1d7c08,'selections':_0x3085d8,'platforms':_0x5311fd,'error':!![]}),_0x5e6a3d['odrYh'](_0x5db2b6)):(_0xab3d4c[_0x165b(0x65)](_0x4a14e6,''+API_CONFIG['BASE_URL'],_0xab3d4c[_0x165b(0x43)],{'username':_0x9c30e2,'selections':_0x218ad0,'platforms':_0x28ced1}),_0xab3d4c[_0x165b(0x66)](_0x5ed58a));}catch(_0x3d4eb5){if(_0xab3d4c['EfQmj'](_0xab3d4c['krjbF'],_0xab3d4c[_0x165b(0x67)])){console[_0x165b(0x30)](_0xab3d4c[_0x165b(0x68)],_0x3d4eb5);if(__DEV__)_0xab3d4c['WpdeH']!==_0x165b(0x69)?(_0xab3d4c[_0x165b(0x6a)](_0x4a14e6,''+API_CONFIG[_0x165b(0x4c)],_0xab3d4c[_0x165b(0x6b)],{'username':_0x9c30e2,'selections':_0x218ad0,'platforms':_0x28ced1,'error':!![]}),_0xab3d4c[_0x165b(0x2e)](_0x5ed58a)):(_0x22706c(''+_0x2e3e29[_0x165b(0x4c)],_0x5e6a3d[_0x165b(0x6c)],{'username':_0x55dcf5,'selections':_0x12835b,'platforms':_0x23b431}),_0x5e6a3d[_0x165b(0x6d)](_0x53cc5a));else{if(_0xab3d4c['rcamR'](_0xab3d4c[_0x165b(0x6e)],_0xab3d4c['LoYVE']))try{_0x34d87d=_0x5e6a3d[_0x165b(0x6f)](_0x4c43c1,_0x33561e,_0x1dbd84);}catch(_0x592718){_0x55e58f[_0x165b(0x30)]('Error\x20encrypting\x20model\x20key:',_0x592718);}else _0xab3d4c[_0x165b(0x3e)](_0x7ba0c2,_0xab3d4c[_0x165b(0x70)]);}}else{_0xab3d4c[_0x165b(0x41)](_0x148825,''+_0x575fc5[_0x165b(0x4c)],_0xab3d4c[_0x165b(0x71)],{'username':_0x5ef2fd,'selections':_0x3b7fe8,'platforms':_0x3292ea}),_0xab3d4c['unpqr'](_0x12de50);return;}}},[_0x218ad0,_0x9c30e2,_0x4bb161,_0x4a14e6,_0x5ed58a,_0x28ced1]),_0x7ba0c2=_0x2aa05d=>{_0xab3d4c[_0x165b(0x72)](_0xab3d4c[_0x165b(0x73)],_0xab3d4c[_0x165b(0x74)])?_0x55c075[_0x165b(0x30)](_0xab3d4c[_0x165b(0x75)],_0x298d55):Alert[_0x165b(0x76)](_0xab3d4c[_0x165b(0x77)],_0x2aa05d,[{'text':'OK'}]);};return React['createElement'](Modal,{'visible':_0x1dba2c,'transparent':!![],'animationType':_0xab3d4c[_0x165b(0x78)],'statusBarTranslucent':!![],'onRequestClose':_0x5ed58a},React['createElement'](TouchableOpacity,{'style':styles[_0x165b(0x79)],'activeOpacity':0x1,'onPress':_0x5ed58a},React[_0x165b(0x7a)](TouchableWithoutFeedback,{'onPress':_0x41e79a=>_0x41e79a[_0x165b(0x7b)]()},React[_0x165b(0x7a)](Animated[_0x165b(0x7c)],{'style':[styles['bottomSheet'],darkMode&&styles[_0x165b(0x7d)],{'transform':[{'translateY':_0x239927[_0x165b(0x7e)]({'inputRange':[0x0,0x1],'outputRange':[SCREEN_HEIGHT,0x0]})}]}]},React[_0x165b(0x7a)](View,{'style':styles[_0x165b(0x7f)]},React[_0x165b(0x7a)](View,{'style':[styles[_0x165b(0x80)],darkMode&&styles[_0x165b(0x81)]]})),React['createElement'](SafeAreaView,{'style':[styles['container'],darkMode&&styles[_0x165b(0x7d)]]},React[_0x165b(0x7a)](View,{'style':[styles['header'],darkMode&&styles[_0x165b(0x82)]]},React[_0x165b(0x7a)](View,{'style':styles['headerContent']},React[_0x165b(0x7a)](View,{'style':[styles[_0x165b(0x83)],darkMode&&styles[_0x165b(0x84)]]},React['createElement'](Text,{'style':[styles['appIconText'],darkMode&&styles[_0x165b(0x85)]]},appName[_0x165b(0x86)](0x0))),React[_0x165b(0x7a)](_0x298ee7,{'name':_0xab3d4c[_0x165b(0x87)],'size':0x18,'color':darkMode?_0xab3d4c[_0x165b(0x88)]:_0xab3d4c[_0x165b(0x89)],'style':styles[_0x165b(0x8a)]}),React[_0x165b(0x7a)](View,{'style':[styles[_0x165b(0x8b)],darkMode&&styles[_0x165b(0x8c)]]},React[_0x165b(0x7a)](Text,{'style':[styles[_0x165b(0x8d)],darkMode&&styles['darkText']]},'O')))),React['createElement'](ScrollView,{'style':styles[_0x165b(0x8e)]},React[_0x165b(0x7a)](View,{'style':styles[_0x165b(0x8f)]},React[_0x165b(0x7a)](Text,{'style':[styles[_0x165b(0x90)],darkMode&&styles[_0x165b(0x85)]]},_0x165b(0x91)),React[_0x165b(0x7a)](Text,{'style':[styles['privacyMessage'],darkMode&&styles['darkSubText']]},'None\x20of\x20your\x20app\x20data\x20is\x20shared\x20with\x20ANYONE')),React[_0x165b(0x7a)](View,{'style':styles[_0x165b(0x92)]},platforms[_0x165b(0x93)](_0x26680a=>React[_0x165b(0x7a)](View,{'key':_0x26680a['id'],'style':[styles['platformItem'],darkMode&&styles[_0x165b(0x94)]]},React['createElement'](View,{'style':styles[_0x165b(0x95)]},React[_0x165b(0x7a)](Image,{'source':_0x26680a[_0x165b(0x96)],'style':styles['platformIcon'],'resizeMode':_0x165b(0x97)}),React[_0x165b(0x7a)](Text,{'style':[styles[_0x165b(0x98)],darkMode&&styles[_0x165b(0x85)]]},_0x26680a['name'])),React[_0x165b(0x7a)](Switch,{'value':_0x28ced1[_0x26680a['id']],'onValueChange':()=>_0x1939a3(_0x26680a['id']),'trackColor':{'false':'#767577','true':_0x165b(0x99)},'thumbColor':_0x28ced1[_0x26680a['id']]?'#2196F3':_0x165b(0x9a)}))))),React[_0x165b(0x7a)](View,{'style':[styles['footer'],darkMode&&styles['darkFooter']]},React['createElement'](TouchableOpacity,{'style':styles['footerButtonCancel'],'onPress':_0x5ed58a},React[_0x165b(0x7a)](Text,{'style':[styles[_0x165b(0x9b)],darkMode&&styles['darkSubText']]},_0x165b(0x9c))),React['createElement'](TouchableOpacity,{'style':[styles[_0x165b(0x9d)],darkMode&&styles[_0x165b(0x9e)]],'onPress':_0x1c3b54},React[_0x165b(0x7a)](Text,{'style':[styles[_0x165b(0x9f)],_0xab3d4c[_0x165b(0xa0)](darkMode,{'color':_0xab3d4c[_0x165b(0xa1)]})]},_0xab3d4c[_0x165b(0xa2)]))))))));};const styles=StyleSheet[_0x165b(0xa3)]({'modalOverlay':{'flex':0x1,'backgroundColor':_0x165b(0xa4),'justifyContent':'flex-end'},'bottomSheet':{'backgroundColor':'#fff','borderTopLeftRadius':0x18,'borderTopRightRadius':0x18,'width':SCREEN_WIDTH,'height':SCREEN_HEIGHT*0.8,'overflow':_0x165b(0xa5)},'handleContainer':{'width':_0x165b(0xa6),'alignItems':_0x165b(0xa7),'paddingTop':0xc,'paddingBottom':0x8},'handle':{'width':0x28,'height':0x5,'borderRadius':0x3,'backgroundColor':_0x165b(0xa8)},'darkHandle':{'backgroundColor':_0x165b(0x24)},'container':{'flex':0x1,'backgroundColor':_0x165b(0xa9)},'darkContainer':{'backgroundColor':_0x165b(0xaa)},'header':{'padding':0x18,'alignItems':_0x165b(0xa7)},'darkHeader':{'backgroundColor':_0x165b(0xaa)},'headerContent':{'flexDirection':_0x165b(0xab),'alignItems':'center','justifyContent':_0x165b(0xa7),'marginBottom':0x10},'appIcon':{'width':0x30,'height':0x30,'borderRadius':0x10,'backgroundColor':_0x165b(0xac),'alignItems':_0x165b(0xa7),'justifyContent':_0x165b(0xa7)},'darkAppIcon':{'backgroundColor':'#2A2A2A'},'appIconText':{'fontSize':0x18,'color':_0x165b(0xad)},'darkText':{'color':_0x165b(0xa9)},'arrow':{'marginHorizontal':0x10},'onairosIcon':{'width':0x30,'height':0x30,'borderRadius':0x10,'backgroundColor':_0x165b(0xac),'alignItems':_0x165b(0xa7),'justifyContent':_0x165b(0xa7)},'darkOnairosIcon':{'backgroundColor':'#2A2A2A'},'onairosIconText':{'fontSize':0x18,'color':_0x165b(0xad)},'darkSubText':{'color':'#999'},'titleContainer':{'marginBottom':0x1e},'mainTitle':{'fontSize':0x16,'fontWeight':_0x165b(0xae),'color':_0x165b(0xad),'textAlign':_0x165b(0xa7),'marginBottom':0x10},'privacyMessage':{'fontSize':0xe,'color':_0x165b(0x24),'textAlign':_0x165b(0xa7),'marginBottom':0x10},'content':{'flex':0x1,'paddingHorizontal':0x18},'platformsContainer':{'marginTop':0x10},'platformItem':{'flexDirection':_0x165b(0xab),'justifyContent':_0x165b(0xaf),'alignItems':'center','padding':0x10,'backgroundColor':_0x165b(0xa9),'borderRadius':0x10,'marginBottom':0x10,'borderWidth':0x1,'borderColor':_0x165b(0xb0)},'darkPlatformItem':{'backgroundColor':_0x165b(0xb1),'borderColor':_0x165b(0xb2)},'platformInfo':{'flexDirection':_0x165b(0xab),'alignItems':_0x165b(0xa7)},'platformIcon':{'width':0x20,'height':0x20,'marginRight':0xc},'platformName':{'fontSize':0x10,'fontWeight':_0x165b(0xb3),'color':_0x165b(0xad)},'footer':{'flexDirection':'row','alignItems':_0x165b(0xa7),'justifyContent':_0x165b(0xaf),'padding':0x18,'borderTopWidth':0x1,'borderTopColor':_0x165b(0xb0),'backgroundColor':_0x165b(0xa9)},'darkFooter':{'backgroundColor':_0x165b(0xb1),'borderTopColor':_0x165b(0xb2)},'footerButtonCancel':{'paddingVertical':0x8,'paddingHorizontal':0x10},'darkFooterButton':{'backgroundColor':_0x165b(0xb4)},'footerButtonConfirm':{'paddingVertical':0x10,'paddingHorizontal':0x20,'borderRadius':0x10,'backgroundColor':'#fff','borderWidth':0x1,'borderColor':_0x165b(0xad)},'darkFooterButtonConfirm':{'backgroundColor':_0x165b(0xa9),'borderColor':_0x165b(0xa9)},'footerButtonText':{'color':_0x165b(0x24),'fontSize':0x10},'footerButtonTextConfirm':{'color':_0x165b(0xad),'fontSize':0x10,'fontWeight':_0x165b(0xae)},'lightBackground':{'backgroundColor':_0x165b(0xa9)},'darkBackground':{'backgroundColor':_0x165b(0xaa)}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React,{useEffect,useRef,useState}from'react';import{View,StyleSheet}from'react-native';import _0x3490fa from'lottie-react-native';import{ANIMATIONS}from'../utils/assetRegistry';const PersonaImage=({level:_0x4a7910,style:_0x59deca,disableAnimation:disableAnimation=![]})=>{const _0x2445be={'qozhS':function(_0x4b8db8,_0xde1fca){return _0x4b8db8!==_0xde1fca;},'rYzFE':function(_0x56a1a6,_0xcdcfe2){return _0x56a1a6!==_0xcdcfe2;},'TRIgS':_0x4913(0x0),'OmtiV':_0x4913(0x1),'PAUhN':function(_0x49fd23,_0x31c73c){return _0x49fd23===_0x31c73c;},'xKhYX':'KkIBu','fxCVk':function(_0x41b7cc,_0x14fa92){return _0x41b7cc<_0x14fa92;},'ijXJs':function(_0x4bf486,_0x5a2603){return _0x4bf486+_0x5a2603;},'BPHBt':function(_0x1a2612,_0x5ec01f){return _0x1a2612-_0x5ec01f;},'RsEAr':function(_0xeeb69c,_0x38d4be){return _0xeeb69c*_0x38d4be;},'Zojtx':_0x4913(0x2),'NMKUG':function(_0x9e283a,_0x925030){return _0x9e283a(_0x925030);},'smgha':function(_0x14af9d,_0x2c4263){return _0x14af9d===_0x2c4263;},'yJZwf':_0x4913(0x3),'SAlYD':function(_0x47f80d,_0x41f6f3){return _0x47f80d(_0x41f6f3);},'ymHbb':_0x4913(0x4),'FlxmA':function(_0x2c9779,_0x4a151d){return _0x2c9779(_0x4a151d);},'Ipker':function(_0x51bde,_0x9bd526){return _0x51bde!==_0x9bd526;},'tcCLI':function(_0x3c2a97,_0x474f0d,_0xaf9148){return _0x3c2a97(_0x474f0d,_0xaf9148);},'RXWmD':function(_0x4a6dde,_0x39ab97){return _0x4a6dde(_0x39ab97);},'sSpPq':_0x4913(0x5)},_0x5abf01=_0x2445be[_0x4913(0x6)](useRef,null),_0x3f599f=[0x0,0.2,0.35,0.52,0.8],_0x514b32=_0x319de3=>_0x3f599f[_0x319de3-0x1]||0x0,[_0x477e9b,_0x4e3357]=_0x2445be[_0x4913(0x7)](useState,_0x2445be[_0x4913(0x6)](_0x514b32,_0x4a7910)),_0x232f81=_0x2445be[_0x4913(0x8)](useRef,_0x514b32(_0x4a7910)),_0x4767f7=_0x2445be[_0x4913(0x9)](useRef,_0x4a7910),_0x494081=_0x2445be[_0x4913(0x6)](useRef,null),_0x190777=useRef(null),_0x37aa1b=useRef(!![]);return useEffect(()=>{const _0x351dd8={'ueYwD':function(_0x3af40f,_0x12a642){return _0x2445be[_0x4913(0xa)](_0x3af40f,_0x12a642);},'zJVHy':function(_0x239ced,_0x44bf7d){return _0x2445be['ijXJs'](_0x239ced,_0x44bf7d);},'KkYAV':function(_0x21d33d,_0x205980){return _0x21d33d*_0x205980;},'vKWal':function(_0x57cc84,_0x1735ff){return _0x2445be[_0x4913(0xb)](_0x57cc84,_0x1735ff);},'LEmqy':function(_0x32fc49,_0x37d2d0){return _0x2445be[_0x4913(0xc)](_0x32fc49,_0x37d2d0);},'MUcDZ':function(_0x1b9551,_0x457de8){return _0x1b9551(_0x457de8);}};if(_0x2445be[_0x4913(0xd)]===_0x2445be[_0x4913(0xd)]){const _0xcc44b5=_0x514b32(_0x4a7910);if(_0x37aa1b[_0x4913(0xe)]){_0x232f81[_0x4913(0xe)]=_0xcc44b5,_0x2445be[_0x4913(0x6)](_0x4e3357,_0xcc44b5),_0x4767f7[_0x4913(0xe)]=_0x4a7910,_0x37aa1b[_0x4913(0xe)]=![];return;}if(disableAnimation){if(_0x2445be['smgha']('IIDCP',_0x2445be[_0x4913(0xf)])){_0x232f81[_0x4913(0xe)]=_0xcc44b5,_0x2445be[_0x4913(0x9)](_0x4e3357,_0xcc44b5),_0x4767f7[_0x4913(0xe)]=_0x4a7910;return;}else _0xa9a124[_0x4913(0xe)]=null;}if(_0x2445be['PAUhN'](_0x4767f7[_0x4913(0xe)],_0x4a7910)){if(_0x2445be[_0x4913(0x10)](_0x2445be['ymHbb'],_0x2445be[_0x4913(0x11)]))_0x99cce4(_0x1fb918[_0x4913(0xe)]),_0x1b1632['current']=null;else return;}_0x494081[_0x4913(0xe)]!==null&&(_0x2445be[_0x4913(0x7)](cancelAnimationFrame,_0x494081['current']),_0x494081[_0x4913(0xe)]=null);_0x2445be[_0x4913(0x12)](_0x190777[_0x4913(0xe)],null)&&(clearTimeout(_0x190777[_0x4913(0xe)]),_0x190777[_0x4913(0xe)]=null);const _0x2ef66a=0x96,_0x57bad7=0xc80;return _0x190777['current']=_0x2445be[_0x4913(0x13)](setTimeout,()=>{const _0x27e0bf={'bLbCu':function(_0x20edc4,_0x2947fc){return _0x20edc4!==_0x2947fc;},'LOTHx':function(_0x4cc1e1,_0x22819b){return _0x4cc1e1(_0x22819b);},'UfFyt':_0x4913(0x14),'JIQGB':_0x4913(0x15),'PDvIe':function(_0x53ddb8,_0x35965a){return _0x351dd8[_0x4913(0x16)](_0x53ddb8,_0x35965a);},'JPunQ':function(_0x3698f2,_0x25b03c){return _0x3698f2*_0x25b03c;},'vmXtn':function(_0x5e6548,_0x3f44af){return _0x351dd8[_0x4913(0x17)](_0x5e6548,_0x3f44af);},'vxmtW':function(_0x225805,_0x400690){return _0x351dd8[_0x4913(0x18)](_0x225805,_0x400690);},'QGqwg':function(_0x4eb3af,_0x32939e){return _0x351dd8['vKWal'](_0x4eb3af,_0x32939e);},'JSusF':function(_0x1ebc08,_0x21b978){return _0x351dd8['LEmqy'](_0x1ebc08,_0x21b978);}},_0x454d72=_0x232f81[_0x4913(0xe)],_0x4983d2=Date[_0x4913(0x19)](),_0x4389cf=()=>{if(_0x27e0bf[_0x4913(0x1a)]===_0x27e0bf[_0x4913(0x1b)])_0x27e0bf[_0x4913(0x1c)](_0xa56d7f[_0x4913(0xe)],null)&&(_0x318d4b(_0x30c762[_0x4913(0xe)]),_0x50ebd8['current']=null),_0x27e0bf[_0x4913(0x1c)](_0x247eed['current'],null)&&(_0x27e0bf[_0x4913(0x1d)](_0x2d7b2e,_0x3cecf1[_0x4913(0xe)]),_0x1939d0['current']=null);else{const _0x3d1ec3=Date[_0x4913(0x19)]()-_0x4983d2,_0x4f3b96=Math[_0x4913(0x1e)](_0x3d1ec3/_0x57bad7,0x1),_0xbad19a=_0x27e0bf['PDvIe'](_0x4f3b96,0.5)?_0x27e0bf[_0x4913(0x1f)](0x2*_0x4f3b96,_0x4f3b96):_0x27e0bf['vmXtn'](-0x1,_0x27e0bf['vxmtW'](_0x27e0bf[_0x4913(0x20)](0x4,_0x27e0bf['JSusF'](0x2,_0x4f3b96)),_0x4f3b96)),_0x5916ba=_0x27e0bf[_0x4913(0x21)](_0x454d72,_0x27e0bf['QGqwg'](_0xcc44b5,_0x454d72)*_0xbad19a);_0x232f81['current']=_0x5916ba,_0x27e0bf[_0x4913(0x1d)](_0x4e3357,_0x5916ba),_0x4f3b96<0x1?_0x494081['current']=requestAnimationFrame(_0x4389cf):_0x494081[_0x4913(0xe)]=null;}};_0x494081[_0x4913(0xe)]=requestAnimationFrame(_0x4389cf);},_0x2ef66a),_0x4767f7[_0x4913(0xe)]=_0x4a7910,()=>{if(_0x2445be[_0x4913(0x22)](_0x494081[_0x4913(0xe)],null)){if(_0x2445be[_0x4913(0x10)](_0x2445be[_0x4913(0x23)],_0x2445be[_0x4913(0x24)]))cancelAnimationFrame(_0x494081[_0x4913(0xe)]),_0x494081[_0x4913(0xe)]=null;else return;}if(_0x2445be[_0x4913(0x10)](_0x190777[_0x4913(0xe)],null)){if(_0x2445be[_0x4913(0x25)](_0x2445be['xKhYX'],'hrmxQ')){_0x405fa9[_0x4913(0xe)]=_0xd4bbbb,_0x351dd8[_0x4913(0x26)](_0x1d3208,_0x403060),_0x3a03f2[_0x4913(0xe)]=_0x1d6ada;return;}else clearTimeout(_0x190777[_0x4913(0xe)]),_0x190777[_0x4913(0xe)]=null;}};}else _0x246ca7(_0xb7b046['current']),_0x518e0e['current']=null;},[_0x4a7910,disableAnimation]),React[_0x4913(0x27)](View,{'style':[styles[_0x4913(0x28)],_0x59deca]},React['createElement'](_0x3490fa,{'ref':_0x5abf01,'source':ANIMATIONS[_0x4913(0x29)],'progress':_0x477e9b,'loop':![],'autoPlay':![],'style':styles[_0x4913(0x2a)],'resizeMode':_0x2445be[_0x4913(0x2b)]}));},styles=StyleSheet[_0x4913(0x2c)]({'container':{'width':0xc8,'height':0xc8,'alignItems':_0x4913(0x2d),'justifyContent':'center'},'animation':{'width':_0x4913(0x2e),'height':_0x4913(0x2e)}});function _0x4913(_0x419662,_0x491300){_0x419662=_0x419662-0x0;const _0x52d9c3=_0x4196();let _0x1c2500=_0x52d9c3[_0x419662];return _0x1c2500;}export default PersonaImage;function _0x4196(){const _0x9810cf=['IWeXW','OvtMQ','GwkgD','IIDCP','SyhVS','contain','NMKUG','FlxmA','RXWmD','SAlYD','fxCVk','BPHBt','RsEAr','Zojtx','current','yJZwf','rYzFE','ymHbb','Ipker','tcCLI','HAvoM','cVCTE','ueYwD','zJVHy','KkYAV','now','UfFyt','JIQGB','bLbCu','LOTHx','min','JPunQ','QGqwg','vmXtn','qozhS','TRIgS','OmtiV','PAUhN','MUcDZ','createElement','container','persona','animation','sSpPq','create','center','100%'];_0x4196=function(){return _0x9810cf;};return _0x4196();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x311b(_0x4f48fa,_0x311bf1){_0x4f48fa=_0x4f48fa-0x0;const _0x325dde=_0x4f48();let _0x28ea1e=_0x325dde[_0x4f48fa];return _0x28ea1e;}import React,{useEffect,useRef,useState}from'react';import{View,Text,StyleSheet,Animated}from'react-native';import _0x504e26 from'lottie-react-native';import{COLORS}from'../theme';import{triggerHaptic,HapticType}from'../utils/haptics';import{ANIMATIONS}from'../utils/assetRegistry';function _0x4f48(){const _0x5b8701=['Keeping\x20your\x20data\x20private','You\x27re\x20more\x20interesting\x20than\x20I\x20expected','Almost\x20done','Complete!','zjzoK','LeNWq','random','floor','PPxrv','pmcuH','Tvsnr','gPsXX','jDbTM','medium','short','EJqrL','QCguX','Value','current','LwRSR','UHexi','HLuHQ','loop','sequence','timing','mAjwl','ifZbT','ZdZgT','MuakE','svXMD','ULPPn','WNJzB','eejoi','Wgsat','KPwzF','jQmIK','ewpPj','aAvcu','ygDhR','pWDzX','RPtMp','push','pbbdN','min','JGaAs','DPKWh','XKTJi','minProgress','maxProgress','text','forEach','hbcby','setValue','rmLnW','AuuGr','AGgWo','lyTxR','BXlkX','ZVAPL','MKsFW','sort','UgTWM','vMFPk','GBLUW','hutmm','ZDlZX','YIePu','hyWSA','DdeMo','QxJkj','map','prqlG','cGaSm','WyNHR','puYis','progress','sEfUN','PDmUT','kfwOk','YXIWG','hkwWb','CRXEX','message','iDOfo','start','PknAL','NvSMb','fwsfP','yoxdA','SUCCESS','yesmE','createElement','lottieContainer','loader','lottieAnimation','tSQEv','textContainer','loadingText','Text','dot','progressContainer','progressTrack','View','progressFill','interpolate','surface','center','100%','row','IBM\x20Plex\x20Sans','600','grey800','hidden'];_0x4f48=function(){return _0x5b8701;};return _0x4f48();}const STATUS_MESSAGES=[{'text':_0x311b(0x0),'minProgress':0x0,'maxProgress':0x19},{'text':'Trying\x20to\x20understand\x20your\x20mind','minProgress':0x14,'maxProgress':0x2d},{'text':_0x311b(0x1),'minProgress':0x28,'maxProgress':0x41},{'text':'Finalizing\x20your\x20unique\x20persona','minProgress':0x3c,'maxProgress':0x55},{'text':_0x311b(0x2),'minProgress':0x50,'maxProgress':0x5f},{'text':_0x311b(0x3),'minProgress':0x64,'maxProgress':0x64}],randomInRange=(_0x321747,_0x1c18ae)=>{const _0x19fad={'zjzoK':function(_0x396e07,_0x580a49){return _0x396e07+_0x580a49;},'LeNWq':function(_0x17ce0a,_0x480b07){return _0x17ce0a*_0x480b07;},'MwVwg':function(_0x4377d8,_0x571d4b){return _0x4377d8-_0x571d4b;}};return _0x19fad[_0x311b(0x4)](_0x19fad[_0x311b(0x5)](Math[_0x311b(0x6)](),_0x19fad['MwVwg'](_0x1c18ae,_0x321747)),_0x321747);},randomIntInRange=(_0x5c0aaf,_0x19e337)=>{const _0xdd4b7d={'ohHbI':function(_0x27e1ab,_0x58e509,_0x57b8d1){return _0x27e1ab(_0x58e509,_0x57b8d1);},'PPxrv':function(_0x3bdcdd,_0x1f62a2){return _0x3bdcdd+_0x1f62a2;}};return Math[_0x311b(0x7)](_0xdd4b7d['ohHbI'](randomInRange,_0x5c0aaf,_0xdd4b7d[_0x311b(0x8)](_0x19e337,0x1)));},PersonaLoadingScreen=({visible:_0x2ed718,onComplete:_0x400adc})=>{const _0x11e014={'UHexi':function(_0x5d578b,_0x351490){return _0x5d578b===_0x351490;},'HLuHQ':_0x311b(0x9),'ifZbT':function(_0x2162d7,_0x44b082,_0x26c7c0){return _0x2162d7(_0x44b082,_0x26c7c0);},'mAjwl':function(_0xddf321,_0x37d4d0,_0x3b0f5a){return _0xddf321(_0x37d4d0,_0x3b0f5a);},'QxJkj':function(_0x134695,_0x529555){return _0x134695*_0x529555;},'cGaSm':_0x311b(0xa),'WyNHR':_0x311b(0xb),'ULPPn':function(_0x4c6c69,_0x2b7af3){return _0x4c6c69+_0x2b7af3;},'MuakE':function(_0x6cc230,_0xf79cfd){return _0x6cc230/_0xf79cfd;},'svXMD':function(_0x1847e6,_0x2ae357){return _0x1847e6*_0x2ae357;},'WNJzB':function(_0x1bff00,_0x179637,_0x530087){return _0x1bff00(_0x179637,_0x530087);},'eejoi':function(_0x42b06d,_0x1a4484,_0x5de2f1){return _0x42b06d(_0x1a4484,_0x5de2f1);},'QCguX':function(_0x338d30,_0x321696){return _0x338d30(_0x321696);},'Wgsat':function(_0xf476eb){return _0xf476eb();},'KPwzF':function(_0x408d7c,_0x539577){return _0x408d7c<_0x539577;},'jQmIK':function(_0x8a15d,_0x57b9db){return _0x8a15d>=_0x57b9db;},'aYDai':'HJHdJ','JGaAs':function(_0x330745,_0x5cb048){return _0x330745===_0x5cb048;},'HnaKd':'wezQO','DPKWh':_0x311b(0xc),'hbcby':_0x311b(0x0),'CWWGK':function(_0x26fcf5,_0x4ce181,_0x34ed23){return _0x26fcf5(_0x4ce181,_0x34ed23);},'rmLnW':function(_0x5e9fd1,_0x726e52){return _0x5e9fd1-_0x726e52;},'AuuGr':function(_0x18c853,_0x4163fe){return _0x18c853===_0x4163fe;},'lyTxR':'NYLeH','BXlkX':function(_0x37c3d7,_0x2ad479){return _0x37c3d7+_0x2ad479;},'andFz':function(_0x2fca41,_0x923bfd){return _0x2fca41*_0x923bfd;},'ZVAPL':function(_0x113c5e,_0x5c59cd){return _0x113c5e/_0x5c59cd;},'MKsFW':function(_0x3802db,_0x39ab39,_0x21c4c4){return _0x3802db(_0x39ab39,_0x21c4c4);},'UgTWM':_0x311b(0xd),'vMFPk':'long','GBLUW':function(_0x598ed2,_0x2ef342){return _0x598ed2<_0x2ef342;},'hutmm':function(_0x4cbc65,_0x39be10,_0x1ca769){return _0x4cbc65(_0x39be10,_0x1ca769);},'ZDlZX':_0x311b(0xe),'YIePu':function(_0x1fc380,_0x49bdec){return _0x1fc380!==_0x49bdec;},'dZtOb':'KZWeu','hyWSA':_0x311b(0xf),'DdeMo':function(_0x47bd7d,_0x5e9698,_0x442454){return _0x47bd7d(_0x5e9698,_0x442454);},'XJIWJ':function(_0x308566,_0x5b2a99){return _0x308566/_0x5b2a99;},'upfsa':function(_0x35bf67,_0x9a3a5d){return _0x35bf67(_0x9a3a5d);},'LwRSR':function(_0x1c38f6,_0x287a61,_0x51459e){return _0x1c38f6(_0x287a61,_0x51459e);},'ZdZgT':function(_0x532f42,_0x256d3c,_0x3638b8){return _0x532f42(_0x256d3c,_0x3638b8);},'tSQEv':'contain'},_0x2de6dc=_0x11e014[_0x311b(0x10)](useRef,new Animated[(_0x311b(0x11))](0x0))[_0x311b(0x12)],_0x359c8a=_0x11e014[_0x311b(0x10)](useRef,new Animated[(_0x311b(0x11))](0.3))[_0x311b(0x12)],_0x38a175=useRef(new Animated[(_0x311b(0x11))](0.3))[_0x311b(0x12)],_0x3295a3=_0x11e014[_0x311b(0x10)](useRef,new Animated[(_0x311b(0x11))](0.3))[_0x311b(0x12)],[_0x281a0d,_0xf8b2c6]=_0x11e014[_0x311b(0x10)](useState,0x0),[_0x2c1efe,_0x5af01f]=_0x11e014['upfsa'](useState,_0x311b(0x0)),_0x5131af=useRef([]);_0x11e014[_0x311b(0x13)](useEffect,()=>{const _0x6688af={'qlpSV':function(_0x451002,_0x16e8a0,_0x4ceb6a){return _0x11e014['ifZbT'](_0x451002,_0x16e8a0,_0x4ceb6a);}};if(!_0x2ed718)return;const _0x2d4731=(_0x4c6192,_0x3dc00f)=>{if(_0x11e014[_0x311b(0x14)](_0x11e014[_0x311b(0x15)],_0x11e014[_0x311b(0x15)]))return Animated[_0x311b(0x16)](Animated[_0x311b(0x17)]([Animated[_0x311b(0x18)](_0x4c6192,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]}),Animated['timing'](_0x4c6192,{'toValue':0.3,'duration':0x258,'useNativeDriver':!![]})]),{'iterations':-0x1});else _0x195385(_0x7bf3cd,0x0)['start']();};setTimeout(()=>{_0x6688af['qlpSV'](_0x2d4731,_0x359c8a,0x0)['start']();},0x12c),_0x11e014[_0x311b(0x19)](setTimeout,()=>{_0x6688af['qlpSV'](_0x2d4731,_0x38a175,0xc8)['start']();},0x1f4),_0x11e014[_0x311b(0x19)](setTimeout,()=>{_0x11e014[_0x311b(0x1a)](_0x2d4731,_0x3295a3,0x190)['start']();},0x2bc);},[_0x2ed718,_0x359c8a,_0x38a175,_0x3295a3]),_0x11e014[_0x311b(0x1b)](useEffect,()=>{const _0x3ae361={'aAvcu':function(_0x2fef27,_0x249694){return _0x11e014['ULPPn'](_0x2fef27,_0x249694);},'ygDhR':function(_0x16cc11,_0xc939c5){return _0x11e014[_0x311b(0x1c)](_0x16cc11,_0xc939c5);},'pWDzX':function(_0x512bf1,_0x17c0b2){return _0x11e014[_0x311b(0x1d)](_0x512bf1,_0x17c0b2);},'RPtMp':function(_0x5c2985,_0x42d9c5){return _0x11e014[_0x311b(0x1e)](_0x5c2985,_0x42d9c5);},'pbbdN':function(_0x49dd35,_0x55850c,_0x470a94){return _0x11e014[_0x311b(0x1f)](_0x49dd35,_0x55850c,_0x470a94);},'XKTJi':function(_0x3c6615,_0xe936e0,_0x191954){return _0x11e014[_0x311b(0x20)](_0x3c6615,_0xe936e0,_0x191954);},'CRXEX':function(_0x4ed33c,_0x472dfe){return _0x11e014[_0x311b(0x10)](_0x4ed33c,_0x472dfe);},'sEfUN':function(_0x2c17c9,_0x2e7e1c){return _0x2c17c9===_0x2e7e1c;},'kfwOk':function(_0x6cd984){return _0x11e014[_0x311b(0x21)](_0x6cd984);},'YXIWG':function(_0x5442e2,_0x1460d6){return _0x11e014[_0x311b(0x22)](_0x5442e2,_0x1460d6);},'hkwWb':function(_0x451f4f,_0x120fd2){return _0x11e014[_0x311b(0x23)](_0x451f4f,_0x120fd2);},'iDOfo':function(_0x2cf07e,_0x2c2e6e){return _0x2cf07e(_0x2c2e6e);}};if(_0x311b(0x24)===_0x11e014['aYDai']){const _0x2de5a2=_0x3ae361[_0x311b(0x25)](_0x25f34b,0x1)*_0x3ae361[_0x311b(0x26)](0x64,_0x53d0c9)-0xa,_0xe4f48f=_0x3ae361[_0x311b(0x25)](_0x3ae361[_0x311b(0x27)](_0x3ae361[_0x311b(0x28)](_0x229538,0x1),_0x3ae361['ygDhR'](0x64,_0x12bb75)),0xa);_0x1440d5[_0x311b(0x29)](_0x3ae361[_0x311b(0x2a)](_0x276719,_0x21eeda['max'](0xa,_0x2de5a2),_0x1b785d[_0x311b(0x2b)](0x5a,_0xe4f48f)));}else{if(!_0x2ed718){if(_0x11e014[_0x311b(0x2c)](_0x11e014['HnaKd'],_0x11e014[_0x311b(0x2d)])){const _0x1c3ae4=_0x3ae361[_0x311b(0x2e)](_0x5019de,_0x560304[_0x311b(0x2f)],_0x409540[_0x311b(0x30)]);_0x19d338['push']({'progress':_0x1c3ae4,'message':_0x204393[_0x311b(0x31)]});}else{_0x5131af[_0x311b(0x12)][_0x311b(0x32)](_0x3eb818=>clearTimeout(_0x3eb818)),_0x5131af['current']=[];return;}}_0x11e014[_0x311b(0x10)](_0xf8b2c6,0x0),_0x11e014[_0x311b(0x10)](_0x5af01f,_0x11e014[_0x311b(0x33)]),_0x2de6dc[_0x311b(0x34)](0x0);const _0x1d818f=randomInRange(0x1b58,0x2ee0),_0x28482b=_0x11e014['CWWGK'](randomIntInRange,0x5,0x8),_0x58e0dd=[0x0];for(let _0x3330b6=0x0;_0x3330b6<_0x11e014[_0x311b(0x35)](_0x28482b,0x1);_0x3330b6++){if(_0x11e014[_0x311b(0x36)](_0x311b(0x37),_0x11e014[_0x311b(0x38)])){if(_0x592b17[_0x311b(0x2f)]===0x64)_0x50eebd[_0x311b(0x29)]({'progress':0x64,'message':_0x3c68a7[_0x311b(0x31)]});else{const _0x21540b=_0xab6b12(_0x5ec66b['minProgress'],_0xc5b8c4[_0x311b(0x30)]);_0x579c23[_0x311b(0x29)]({'progress':_0x21540b,'message':_0x46863e[_0x311b(0x31)]});}}else{const _0x1899a7=_0x11e014[_0x311b(0x35)](_0x11e014['ULPPn'](_0x3330b6,0x1)*(0x64/_0x28482b),0xa),_0x42d46c=_0x11e014[_0x311b(0x39)](_0x11e014['andFz'](_0x11e014['BXlkX'](_0x3330b6,0x1),_0x11e014[_0x311b(0x3a)](0x64,_0x28482b)),0xa);_0x58e0dd['push'](_0x11e014[_0x311b(0x3b)](randomIntInRange,Math['max'](0xa,_0x1899a7),Math[_0x311b(0x2b)](0x5a,_0x42d46c)));}}_0x58e0dd['push'](0x64),_0x58e0dd[_0x311b(0x3c)]((_0x2312e6,_0x3f0f0c)=>_0x2312e6-_0x3f0f0c);const _0x4fe912=['short',_0x11e014[_0x311b(0x3d)],_0x11e014[_0x311b(0x3e)]],_0x12cac6=[];let _0x2a8152=0x0;for(let _0x3a8298=0x0;_0x11e014[_0x311b(0x3f)](_0x3a8298,_0x28482b);_0x3a8298++){const _0x481d01=_0x4fe912[_0x11e014[_0x311b(0x40)](randomIntInRange,0x0,0x2)];let _0x37863e;if(_0x11e014[_0x311b(0x36)](_0x481d01,_0x11e014[_0x311b(0x41)])){if(_0x11e014[_0x311b(0x42)](_0x11e014['dZtOb'],_0x11e014[_0x311b(0x43)]))_0x37863e=_0x11e014[_0x311b(0x1f)](randomInRange,0xfa,0x1f4);else return Animated[_0x311b(0x16)](Animated[_0x311b(0x17)]([Animated[_0x311b(0x18)](_0x13d8a5,{'toValue':0x1,'duration':0x258,'useNativeDriver':!![]}),Animated[_0x311b(0x18)](_0x2cbd67,{'toValue':0.3,'duration':0x258,'useNativeDriver':!![]})]),{'iterations':-0x1});}else _0x481d01===_0x11e014[_0x311b(0x3d)]?_0x37863e=_0x11e014[_0x311b(0x44)](randomInRange,0x1f4,0x320):_0x37863e=_0x11e014['CWWGK'](randomInRange,0x320,0x4b0);_0x12cac6['push'](_0x37863e),_0x2a8152+=_0x37863e;}const _0x674fc6=0x190,_0x598dd2=_0x11e014[_0x311b(0x45)](_0x28482b,_0x674fc6),_0x1987ef=_0x11e014[_0x311b(0x35)](_0x1d818f,_0x598dd2),_0xd310e8=_0x11e014['XJIWJ'](_0x1987ef,_0x2a8152),_0x6b3d00=_0x12cac6[_0x311b(0x46)](_0x3c086b=>_0x3c086b*_0xd310e8),_0x1540ea=[];STATUS_MESSAGES[_0x311b(0x32)](_0x4df7cc=>{const _0x4e3f37={'puYis':function(_0x25b2b9,_0x4c969a){return _0x11e014[_0x311b(0x45)](_0x25b2b9,_0x4c969a);},'BflVF':function(_0x203ab9,_0x1c2030){return _0x203ab9-_0x1c2030;}};if(_0x11e014[_0x311b(0x14)](_0x311b(0x47),_0x11e014[_0x311b(0x48)]))_0x3ae361['CRXEX'](_0x5aa99e,_0x11d9a1[_0x2343d5]['message']),_0xce2dad++;else{if(_0x11e014['UHexi'](_0x4df7cc[_0x311b(0x2f)],0x64))_0x1540ea[_0x311b(0x29)]({'progress':0x64,'message':_0x4df7cc[_0x311b(0x31)]});else{if(_0x11e014[_0x311b(0x49)]!==_0x11e014[_0x311b(0x49)])return _0x4e3f37[_0x311b(0x4a)](_0x1ba76b['random'](),_0x4e3f37['BflVF'](_0x27ea72,_0x6b67a9))+_0x2a40b9;else{const _0x5e674f=_0x11e014[_0x311b(0x19)](randomInRange,_0x4df7cc['minProgress'],_0x4df7cc[_0x311b(0x30)]);_0x1540ea['push']({'progress':_0x5e674f,'message':_0x4df7cc[_0x311b(0x31)]});}}}}),_0x1540ea[_0x311b(0x3c)]((_0x4f6265,_0x1f5c8f)=>_0x4f6265[_0x311b(0x4b)]-_0x1f5c8f[_0x311b(0x4b)]);let _0x3ab889=0x0,_0x244e2a=0x0;for(let _0x47cac0=0x1;_0x47cac0<=_0x28482b;_0x47cac0++){const _0x737ba8=_0x58e0dd[_0x47cac0],_0x4df356=_0x6b3d00[_0x47cac0-0x1];_0x3ab889+=_0x4df356;const _0x4839e8=setTimeout(()=>{const _0x37c477={'FDhdM':function(_0x5bb620,_0xed36e6,_0x3b6453){return _0x3ae361['pbbdN'](_0x5bb620,_0xed36e6,_0x3b6453);},'PknAL':function(_0x106de2,_0x58901c){return _0x3ae361[_0x311b(0x4c)](_0x106de2,_0x58901c);},'fwsfP':_0x311b(0x4d),'yoxdA':function(_0xe765d4,_0x3c707b){return _0xe765d4(_0x3c707b);},'yesmE':function(_0x180960){return _0x3ae361[_0x311b(0x4e)](_0x180960);}};while(_0x3ae361[_0x311b(0x4f)](_0x244e2a,_0x1540ea['length'])&&_0x3ae361[_0x311b(0x50)](_0x737ba8,_0x1540ea[_0x244e2a][_0x311b(0x4b)])){_0x3ae361[_0x311b(0x51)](_0x5af01f,_0x1540ea[_0x244e2a][_0x311b(0x52)]),_0x244e2a++;}_0x3ae361[_0x311b(0x53)](_0xf8b2c6,_0x737ba8),Animated[_0x311b(0x18)](_0x2de6dc,{'toValue':_0x3ae361[_0x311b(0x26)](_0x737ba8,0x64),'duration':_0x674fc6,'useNativeDriver':![]})[_0x311b(0x54)](),_0x737ba8>=0x64&&_0x3ae361['pbbdN'](setTimeout,()=>{_0x37c477[_0x311b(0x55)](_0x311b(0x56),_0x37c477[_0x311b(0x57)])?_0x516e77=_0x37c477['FDhdM'](_0x40a12a,0xfa,0x1f4):(_0x37c477[_0x311b(0x58)](triggerHaptic,HapticType[_0x311b(0x59)]),_0x37c477[_0x311b(0x5a)](_0x400adc));},0x1f4);},_0x3ab889);_0x5131af['current'][_0x311b(0x29)](_0x4839e8),_0x3ab889+=_0x674fc6;}return()=>{_0x5131af[_0x311b(0x12)][_0x311b(0x32)](_0x5d8307=>clearTimeout(_0x5d8307)),_0x5131af[_0x311b(0x12)]=[];};}},[_0x2ed718,_0x400adc,_0x2de6dc]);if(!_0x2ed718)return null;return React[_0x311b(0x5b)](View,{'style':styles['container']},React[_0x311b(0x5b)](View,{'style':styles['content']},React['createElement'](View,{'style':styles[_0x311b(0x5c)]},React[_0x311b(0x5b)](_0x504e26,{'source':ANIMATIONS[_0x311b(0x5d)],'autoPlay':!![],'loop':!![],'style':styles[_0x311b(0x5e)],'resizeMode':_0x11e014[_0x311b(0x5f)]})),React['createElement'](View,{'style':styles[_0x311b(0x60)]},React[_0x311b(0x5b)](Text,{'style':styles[_0x311b(0x61)]},_0x2c1efe),React['createElement'](View,{'style':styles['dotsContainer']},React['createElement'](Animated[_0x311b(0x62)],{'style':[styles[_0x311b(0x63)],{'opacity':_0x359c8a}]},'.'),React[_0x311b(0x5b)](Animated[_0x311b(0x62)],{'style':[styles['dot'],{'opacity':_0x38a175}]},'.'),React[_0x311b(0x5b)](Animated['Text'],{'style':[styles[_0x311b(0x63)],{'opacity':_0x3295a3}]},'.'))),React[_0x311b(0x5b)](View,{'style':styles[_0x311b(0x64)]},React[_0x311b(0x5b)](View,{'style':styles[_0x311b(0x65)]},React[_0x311b(0x5b)](Animated[_0x311b(0x66)],{'style':[styles[_0x311b(0x67)],{'width':_0x2de6dc[_0x311b(0x68)]({'inputRange':[0x0,0x1],'outputRange':['0%','100%']})}]})))));},styles=StyleSheet['create']({'container':{'flex':0x1,'backgroundColor':COLORS[_0x311b(0x69)]},'content':{'flex':0x1,'justifyContent':_0x311b(0x6a),'alignItems':_0x311b(0x6a),'paddingHorizontal':0x18,'marginTop':-0x50},'lottieContainer':{'width':0x168,'height':0x168,'marginBottom':0x20,'alignItems':_0x311b(0x6a),'justifyContent':_0x311b(0x6a)},'lottieAnimation':{'width':_0x311b(0x6b),'height':_0x311b(0x6b)},'textContainer':{'flexDirection':_0x311b(0x6c),'alignItems':_0x311b(0x6a),'marginBottom':0x30},'loadingText':{'fontSize':0x18,'fontFamily':_0x311b(0x6d),'fontWeight':_0x311b(0x6e),'color':COLORS[_0x311b(0x6f)]},'dotsContainer':{'flexDirection':_0x311b(0x6c),'marginLeft':0x4},'dot':{'fontSize':0x18,'fontFamily':_0x311b(0x6d),'fontWeight':_0x311b(0x6e),'color':COLORS[_0x311b(0x6f)],'marginLeft':0x2},'progressContainer':{'width':'100%','maxWidth':0x118},'progressTrack':{'height':0x6,'backgroundColor':'#E5E5E5','borderRadius':0x3,'overflow':_0x311b(0x70)},'progressFill':{'height':_0x311b(0x6b),'backgroundColor':COLORS['grey800'],'borderRadius':0x3}});export default PersonaLoadingScreen;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React,{useState}from'react';import{View,Text,StyleSheet,TouchableOpacity,Image,ScrollView,ActivityIndicator}from'react-native';import{COLORS}from'../theme';function _0x9ad9(){const _0x552096=['Enoch','IdGji','SCWTA','KMFTm','ETokx','contain','\x20wants\x20to\x20personalize\x20your\x20experience','Connected\x20Platforms','#FFFFFF','Decline','Use\x20different\x20account','rdYOi','BUTTON_PRESS','BgNlO','values','createElement','container','scrollContent','headerContainer','onairosLogo','headerIcon','ZKyHq','enochIcon','titleContainer','welcomeBackText','jeQYq','subtitle','HQIsV','basicProfile','optionLeft','grey700','optionIcon','grey800','checkboxContainer','uNkTI','checkbox','grey400','optionRow','contentAnalysis','optionText','personalityProfile','connectedPlatformsSection','connectedPlatformsTitle','JtfUc','jcgRG','length','connectedPlatformsIcons','connectedPlatformIcon','uuNKP','sWcHk','YDKZv','dCjct','connectMoreText','Connect\x20more','connectMorePlusCircle','buttonContainer','acceptButton','acceptButtonActive','acceptButtonLoading','sZPCg','wndEb','hZRuA','mEycx','xhfqi','Mwtqi','Fragment','acceptButtonText','acceptButtonTextActive','Accept\x20&\x20Continue','buttonArrowActive','declineButton','XzEJx','xiYtR','ibVEN','donBs','logoutButton','bhPkT','logoutButtonText','kTbkP','create','surface','row','center','#000','IBM\x20Plex\x20Sans','grey600','700','Inter','400','space-between','#F8F9FA','#E5E5E5','#2D3436','#999999','600','500','grey500','underline','wrap'];_0x9ad9=function(){return _0x552096;};return _0x9ad9();}import{triggerHaptic,HapticType}from'../utils/haptics';import{getPlatformIcon}from'../services/connectedAccountsService';function _0x2f3f(_0x9ad91e,_0x2f3fea){_0x9ad91e=_0x9ad91e-0x0;const _0x52ac86=_0x9ad9();let _0x2ddf95=_0x52ac86[_0x9ad91e];return _0x2ddf95;}import{BRAND_IMAGES}from'../utils/assetRegistry';import{Basicproficon,Basicprofile,Contenticon,Personalityicon,Personalitytraits,Userpreferences,Checkbox,Checkmark}from'./icons';const PersonalizationConsentScreen=({visible:_0x31b347,onAccept:_0x1a14d4,onDecline:_0xabc036,loading:loading=![],connectedPlatforms:connectedPlatforms=[],onConnectMore:_0x600510,isReturningUser:isReturningUser=![],appName:appName=_0x2f3f(0x0),onLogout:_0x16bb14})=>{const _0x3a3ae8={'BgNlO':function(_0x46b577,_0x1358a3){return _0x46b577(_0x1358a3);},'uuNKP':function(_0x426fa6,_0x1c2763){return _0x426fa6!==_0x1c2763;},'sWcHk':_0x2f3f(0x1),'YDKZv':_0x2f3f(0x2),'dCjct':function(_0x57f789){return _0x57f789();},'mEycx':function(_0x3e6997,_0x19e391){return _0x3e6997(_0x19e391);},'sZPCg':function(_0xa91633,_0x247da9){return _0xa91633===_0x247da9;},'hZRuA':_0x2f3f(0x3),'rdYOi':function(_0x5cdf32,_0x26ec70){return _0x5cdf32(_0x26ec70);},'XzEJx':_0x2f3f(0x4),'ibVEN':function(_0x123e74,_0xd91f35){return _0x123e74(_0xd91f35);},'nquYS':function(_0x383bac,_0xb9ff98){return _0x383bac(_0xb9ff98);},'bhPkT':function(_0x368cb7){return _0x368cb7();},'ZKyHq':_0x2f3f(0x5),'jeQYq':_0x2f3f(0x6),'HQIsV':'Choose\x20what\x20to\x20share:','uNkTI':'#4CD964','JtfUc':_0x2f3f(0x7),'jcgRG':function(_0x1d737d,_0x2cfc1b){return _0x1d737d>_0x2cfc1b;},'xhfqi':'small','Mwtqi':_0x2f3f(0x8),'donBs':_0x2f3f(0x9),'kTbkP':_0x2f3f(0xa)},[_0x415cf1,_0x237efc]=_0x3a3ae8[_0x2f3f(0xb)](useState,{'basicProfile':![],'contentAnalysis':![],'personalityProfile':![]}),_0x9f7b4b=_0xb523bb=>{triggerHaptic(HapticType[_0x2f3f(0xc)]),_0x3a3ae8[_0x2f3f(0xd)](_0x237efc,_0x18c3ab=>({..._0x18c3ab,[_0xb523bb]:!_0x18c3ab[_0xb523bb]}));},_0xb9611=Object[_0x2f3f(0xe)](_0x415cf1)['some'](_0x3e8ba8=>_0x3e8ba8);if(!_0x31b347)return null;return React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x10)]},React['createElement'](ScrollView,{'style':styles['scrollView'],'contentContainerStyle':styles[_0x2f3f(0x11)],'showsVerticalScrollIndicator':![]},React['createElement'](View,{'style':styles[_0x2f3f(0x12)]},React[_0x2f3f(0xf)](View,{'style':styles['iconContainer']},React[_0x2f3f(0xf)](Image,{'source':BRAND_IMAGES[_0x2f3f(0x13)],'style':styles[_0x2f3f(0x14)],'resizeMode':_0x3a3ae8[_0x2f3f(0x15)]})),React['createElement'](Text,{'style':styles['arrow']},'→'),React[_0x2f3f(0xf)](Image,{'source':BRAND_IMAGES[_0x2f3f(0x16)],'style':styles['enochAppIcon'],'resizeMode':_0x3a3ae8[_0x2f3f(0x15)]})),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x17)]},isReturningUser&&React['createElement'](Text,{'style':styles[_0x2f3f(0x18)]},'Welcome\x20back!'),React['createElement'](Text,{'style':styles['title']},appName,_0x3a3ae8[_0x2f3f(0x19)]),React[_0x2f3f(0xf)](Text,{'style':styles[_0x2f3f(0x1a)]},_0x3a3ae8[_0x2f3f(0x1b)])),React[_0x2f3f(0xf)](View,{'style':styles['optionsContainer']},React['createElement'](TouchableOpacity,{'style':styles['optionRow'],'onPress':()=>_0x9f7b4b(_0x2f3f(0x1c))},React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x1d)]},React['createElement'](Basicproficon,{'width':0x20,'height':0x20,'fill':COLORS[_0x2f3f(0x1e)],'style':styles[_0x2f3f(0x1f)]}),React[_0x2f3f(0xf)](Basicprofile,{'height':0x18,'fill':COLORS[_0x2f3f(0x20)],'style':styles['optionText']})),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x21)]},_0x415cf1[_0x2f3f(0x1c)]?React[_0x2f3f(0xf)](Checkmark,{'width':0x18,'height':0x18,'fill':_0x3a3ae8[_0x2f3f(0x22)],'style':styles[_0x2f3f(0x23)]}):React[_0x2f3f(0xf)](Checkbox,{'width':0x18,'height':0x18,'stroke':COLORS[_0x2f3f(0x24)],'style':styles['checkbox']}))),React[_0x2f3f(0xf)](TouchableOpacity,{'style':styles[_0x2f3f(0x25)],'onPress':()=>_0x9f7b4b(_0x2f3f(0x26))},React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x1d)]},React[_0x2f3f(0xf)](Contenticon,{'width':0x20,'height':0x20,'fill':COLORS[_0x2f3f(0x1e)],'style':styles[_0x2f3f(0x1f)]}),React[_0x2f3f(0xf)](Userpreferences,{'height':0x18,'fill':COLORS[_0x2f3f(0x20)],'style':styles[_0x2f3f(0x27)]})),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x21)]},_0x415cf1[_0x2f3f(0x26)]?React[_0x2f3f(0xf)](Checkmark,{'width':0x18,'height':0x18,'fill':_0x3a3ae8[_0x2f3f(0x22)],'style':styles[_0x2f3f(0x23)]}):React[_0x2f3f(0xf)](Checkbox,{'width':0x18,'height':0x18,'stroke':COLORS[_0x2f3f(0x24)],'style':styles[_0x2f3f(0x23)]}))),React[_0x2f3f(0xf)](TouchableOpacity,{'style':styles[_0x2f3f(0x25)],'onPress':()=>_0x9f7b4b(_0x2f3f(0x28))},React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x1d)]},React[_0x2f3f(0xf)](Personalityicon,{'width':0x20,'height':0x20,'fill':COLORS[_0x2f3f(0x1e)],'style':styles[_0x2f3f(0x1f)]}),React[_0x2f3f(0xf)](Personalitytraits,{'height':0x18,'fill':COLORS[_0x2f3f(0x20)],'style':styles[_0x2f3f(0x27)]})),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x21)]},_0x415cf1[_0x2f3f(0x28)]?React[_0x2f3f(0xf)](Checkmark,{'width':0x18,'height':0x18,'fill':_0x3a3ae8[_0x2f3f(0x22)],'style':styles[_0x2f3f(0x23)]}):React[_0x2f3f(0xf)](Checkbox,{'width':0x18,'height':0x18,'stroke':COLORS['grey400'],'style':styles['checkbox']})))),React['createElement'](View,{'style':styles[_0x2f3f(0x29)]},React[_0x2f3f(0xf)](Text,{'style':styles[_0x2f3f(0x2a)]},_0x3a3ae8[_0x2f3f(0x2b)]),_0x3a3ae8[_0x2f3f(0x2c)](connectedPlatforms[_0x2f3f(0x2d)],0x0)&&React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x2e)]},connectedPlatforms['map'](_0x40dc7f=>React[_0x2f3f(0xf)](View,{'key':_0x40dc7f,'style':styles['connectedPlatformIconContainer']},React[_0x2f3f(0xf)](Image,{'source':getPlatformIcon(_0x40dc7f),'style':styles[_0x2f3f(0x2f)],'resizeMode':'contain'})))),_0x600510&&React[_0x2f3f(0xf)](TouchableOpacity,{'style':styles['connectMoreButton'],'onPress':()=>{const _0x4855b8={'KgRQT':function(_0x5e45c2,_0x36808a){return _0x3a3ae8[_0x2f3f(0xd)](_0x5e45c2,_0x36808a);}};_0x3a3ae8[_0x2f3f(0x30)](_0x3a3ae8[_0x2f3f(0x31)],_0x3a3ae8[_0x2f3f(0x32)])?(triggerHaptic(HapticType[_0x2f3f(0xc)]),_0x3a3ae8[_0x2f3f(0x33)](_0x600510)):(_0x4855b8['KgRQT'](_0x427f8d,_0x2f9e46[_0x2f3f(0xc)]),_0x1cd560());}},React[_0x2f3f(0xf)](Text,{'style':styles[_0x2f3f(0x34)]},_0x2f3f(0x35)),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x36)]},React[_0x2f3f(0xf)](Text,{'style':styles['connectMorePlus']},'+'))))),React[_0x2f3f(0xf)](View,{'style':styles[_0x2f3f(0x37)]},React[_0x2f3f(0xf)](TouchableOpacity,{'style':[styles[_0x2f3f(0x38)],_0xb9611&&styles[_0x2f3f(0x39)],loading&&styles[_0x2f3f(0x3a)]],'onPress':()=>{_0x3a3ae8[_0x2f3f(0x3b)](_0x2f3f(0x3c),_0x3a3ae8[_0x2f3f(0x3d)])?(_0x3a3ae8[_0x2f3f(0x3e)](_0x5061ed,_0x2df0ae['BUTTON_PRESS']),_0x3a3ae8[_0x2f3f(0x33)](_0x275c20)):!loading&&(triggerHaptic(HapticType['BUTTON_PRESS']),_0x3a3ae8[_0x2f3f(0x33)](_0x1a14d4));},'disabled':loading,'activeOpacity':loading?0x1:0.7},loading?React[_0x2f3f(0xf)](ActivityIndicator,{'size':_0x3a3ae8[_0x2f3f(0x3f)],'color':_0x3a3ae8[_0x2f3f(0x40)]}):React[_0x2f3f(0xf)](React[_0x2f3f(0x41)],null,React[_0x2f3f(0xf)](Text,{'style':[styles[_0x2f3f(0x42)],_0xb9611&&styles[_0x2f3f(0x43)]]},_0x2f3f(0x44)),React['createElement'](Text,{'style':[styles['buttonArrow'],_0xb9611&&styles[_0x2f3f(0x45)]]},'→'))),React[_0x2f3f(0xf)](TouchableOpacity,{'style':styles[_0x2f3f(0x46)],'onPress':()=>{_0x3a3ae8['uuNKP'](_0x3a3ae8[_0x2f3f(0x47)],_0x2f3f(0x48))?(_0x3a3ae8[_0x2f3f(0x49)](triggerHaptic,HapticType['BUTTON_PRESS']),_0xabc036()):!_0x16531f&&(_0x3a3ae8[_0x2f3f(0xb)](_0x532c0b,_0x62087a[_0x2f3f(0xc)]),_0x50eb14());}},React[_0x2f3f(0xf)](Text,{'style':styles['declineButtonText']},_0x3a3ae8[_0x2f3f(0x4a)])),_0x16bb14&&React['createElement'](TouchableOpacity,{'style':styles[_0x2f3f(0x4b)],'onPress':()=>{_0x3a3ae8['nquYS'](triggerHaptic,HapticType[_0x2f3f(0xc)]),_0x3a3ae8[_0x2f3f(0x4c)](_0x16bb14);}},React[_0x2f3f(0xf)](Text,{'style':styles[_0x2f3f(0x4d)]},_0x3a3ae8[_0x2f3f(0x4e)]))));},styles=StyleSheet[_0x2f3f(0x4f)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x2f3f(0x50)],'paddingHorizontal':0x18,'paddingTop':0x28,'paddingBottom':0x8},'headerContainer':{'flexDirection':_0x2f3f(0x51),'alignItems':_0x2f3f(0x52),'justifyContent':'center','marginBottom':0xc,'marginTop':0x0},'iconContainer':{'width':0x40,'height':0x40,'backgroundColor':_0x2f3f(0x8),'borderRadius':0xc,'alignItems':_0x2f3f(0x52),'justifyContent':_0x2f3f(0x52),'marginHorizontal':0x8,'shadowColor':_0x2f3f(0x53),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'headerIcon':{'width':0x2a,'height':0x2a},'enochAppIcon':{'width':0x48,'height':0x48,'marginHorizontal':0x8},'enochLetter':{'fontSize':0x1c,'fontFamily':_0x2f3f(0x54),'fontWeight':'700','color':COLORS[_0x2f3f(0x20)]},'arrow':{'fontSize':0x18,'color':COLORS[_0x2f3f(0x55)],'marginHorizontal':0x10},'titleContainer':{'alignItems':_0x2f3f(0x52),'marginBottom':0x8},'welcomeBackText':{'fontSize':0x18,'fontFamily':_0x2f3f(0x54),'fontWeight':_0x2f3f(0x56),'color':COLORS[_0x2f3f(0x20)],'textAlign':'center','marginBottom':0x2},'title':{'fontSize':0x14,'fontFamily':_0x2f3f(0x54),'fontWeight':'600','color':COLORS[_0x2f3f(0x20)],'textAlign':_0x2f3f(0x52),'marginBottom':0xa},'subtitle':{'fontSize':0x10,'fontFamily':_0x2f3f(0x57),'fontWeight':_0x2f3f(0x58),'color':COLORS[_0x2f3f(0x55)],'textAlign':_0x2f3f(0x52)},'scrollView':{'flex':0x1},'scrollContent':{'flexGrow':0x1},'optionsContainer':{'marginBottom':0x8},'optionRow':{'flexDirection':_0x2f3f(0x51),'alignItems':_0x2f3f(0x52),'justifyContent':_0x2f3f(0x59),'paddingVertical':0xc,'paddingHorizontal':0x2,'backgroundColor':_0x2f3f(0x5a),'borderRadius':0xc,'marginBottom':0x6,'marginHorizontal':0x0},'optionLeft':{'flexDirection':_0x2f3f(0x51),'alignItems':'center','flex':0x1},'optionIcon':{'marginRight':0xc,'marginLeft':0x2,'marginTop':-0x4},'optionText':{'flex':0x1,'marginLeft':0x2},'checkboxContainer':{'paddingLeft':0x4,'paddingRight':0x2,'alignItems':_0x2f3f(0x52),'justifyContent':'center'},'checkbox':{},'buttonContainer':{'gap':0x8,'paddingHorizontal':0x0,'paddingBottom':0x10,'marginTop':0x10},'acceptButton':{'backgroundColor':_0x2f3f(0x5b),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'flexDirection':'row','alignItems':_0x2f3f(0x52),'justifyContent':_0x2f3f(0x52)},'acceptButtonActive':{'backgroundColor':_0x2f3f(0x5c)},'acceptButtonLoading':{'backgroundColor':_0x2f3f(0x5c),'opacity':0.8},'acceptButtonText':{'color':_0x2f3f(0x5d),'fontSize':0x10,'fontFamily':_0x2f3f(0x57),'fontWeight':_0x2f3f(0x5e),'marginRight':0x8},'acceptButtonTextActive':{'color':_0x2f3f(0x8)},'buttonArrow':{'color':_0x2f3f(0x5d),'fontSize':0x10},'buttonArrowActive':{'color':_0x2f3f(0x8)},'declineButton':{'backgroundColor':_0x2f3f(0x5b),'borderRadius':0x19,'paddingVertical':0xa,'paddingHorizontal':0x18,'alignItems':_0x2f3f(0x52),'justifyContent':'center'},'declineButtonText':{'color':COLORS[_0x2f3f(0x55)],'fontSize':0x10,'fontFamily':'Inter','fontWeight':_0x2f3f(0x5f)},'logoutButton':{'alignItems':_0x2f3f(0x52),'paddingVertical':0xc,'marginTop':0x8},'logoutButtonText':{'fontSize':0xe,'fontFamily':_0x2f3f(0x57),'fontWeight':_0x2f3f(0x58),'color':COLORS[_0x2f3f(0x60)],'textDecorationLine':_0x2f3f(0x61)},'connectedPlatformsSection':{'alignItems':_0x2f3f(0x52),'paddingVertical':0xa,'paddingHorizontal':0x10,'backgroundColor':_0x2f3f(0x5a),'borderRadius':0x10,'marginBottom':0xa,'marginTop':0x10},'connectedPlatformsTitle':{'fontSize':0xf,'fontFamily':_0x2f3f(0x57),'fontWeight':_0x2f3f(0x5f),'color':COLORS[_0x2f3f(0x60)],'marginBottom':0xa},'connectedPlatformsIcons':{'flexDirection':_0x2f3f(0x51),'justifyContent':'center','alignItems':_0x2f3f(0x52),'flexWrap':_0x2f3f(0x62),'gap':0xa,'marginBottom':0xa},'connectedPlatformIconContainer':{'width':0x30,'height':0x30,'borderRadius':0xa,'backgroundColor':_0x2f3f(0x8),'justifyContent':_0x2f3f(0x52),'alignItems':_0x2f3f(0x52),'shadowColor':_0x2f3f(0x53),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'connectedPlatformIcon':{'width':0x20,'height':0x20},'connectMoreButton':{'flexDirection':_0x2f3f(0x51),'alignItems':_0x2f3f(0x52),'justifyContent':_0x2f3f(0x52),'gap':0x8},'connectMoreText':{'fontSize':0x10,'fontFamily':_0x2f3f(0x57),'fontWeight':_0x2f3f(0x5f),'color':COLORS[_0x2f3f(0x60)]},'connectMorePlusCircle':{'width':0x1c,'height':0x1c,'borderRadius':0xe,'borderWidth':0x2,'borderColor':COLORS[_0x2f3f(0x24)],'justifyContent':'center','alignItems':'center'},'connectMorePlus':{'fontSize':0x12,'fontWeight':_0x2f3f(0x5f),'color':COLORS[_0x2f3f(0x60)],'marginTop':-0x2}});export{PersonalizationConsentScreen};export default PersonalizationConsentScreen;
|