@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,249 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _OAuthWebView = require("./OAuthWebView");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
-
// Platform definitions
|
|
15
|
-
const PLATFORMS = {
|
|
16
|
-
instagram: {
|
|
17
|
-
name: 'Instagram',
|
|
18
|
-
icon: 'photo-camera',
|
|
19
|
-
color: '#E1306C',
|
|
20
|
-
description: 'Connect to share and analyze your Instagram content'
|
|
21
|
-
},
|
|
22
|
-
youtube: {
|
|
23
|
-
name: 'YouTube',
|
|
24
|
-
icon: 'smart-display',
|
|
25
|
-
color: '#FF0000',
|
|
26
|
-
description: 'Connect for YouTube video recommendations and analysis'
|
|
27
|
-
},
|
|
28
|
-
pinterest: {
|
|
29
|
-
name: 'Pinterest',
|
|
30
|
-
icon: 'push-pin',
|
|
31
|
-
color: '#E60023',
|
|
32
|
-
description: 'Connect to enhance Pinterest board recommendations'
|
|
33
|
-
},
|
|
34
|
-
reddit: {
|
|
35
|
-
name: 'Reddit',
|
|
36
|
-
icon: 'forum',
|
|
37
|
-
color: '#FF4500',
|
|
38
|
-
description: 'Connect to personalize Reddit content insights'
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const PlatformConnector = ({
|
|
42
|
-
connections,
|
|
43
|
-
onConnect,
|
|
44
|
-
onDisconnect,
|
|
45
|
-
isLoading,
|
|
46
|
-
canProceed,
|
|
47
|
-
onProceed
|
|
48
|
-
}) => {
|
|
49
|
-
const [activeWebview, setActiveWebview] = (0, _react.useState)(null);
|
|
50
|
-
const handleConnectPress = async platform => {
|
|
51
|
-
setActiveWebview(platform);
|
|
52
|
-
};
|
|
53
|
-
const handleWebViewComplete = () => {
|
|
54
|
-
setActiveWebview(null);
|
|
55
|
-
};
|
|
56
|
-
const handleWebViewClose = () => {
|
|
57
|
-
setActiveWebview(null);
|
|
58
|
-
};
|
|
59
|
-
const handleDisconnectPress = async platform => {
|
|
60
|
-
await onDisconnect(platform);
|
|
61
|
-
};
|
|
62
|
-
const getPlatformStatus = platform => {
|
|
63
|
-
const platformKey = platform;
|
|
64
|
-
return connections[platformKey] ? true : false;
|
|
65
|
-
};
|
|
66
|
-
const getConnectedCount = () => {
|
|
67
|
-
return Object.values(connections).filter(Boolean).length;
|
|
68
|
-
};
|
|
69
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
|
-
style: styles.container
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
72
|
-
style: styles.title
|
|
73
|
-
}, "Connect Your Platforms"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
74
|
-
style: styles.subtitle
|
|
75
|
-
}, "Connect at least 2 platforms to create your Onairos account"), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
76
|
-
style: styles.platformList
|
|
77
|
-
}, Object.keys(PLATFORMS).map(platform => {
|
|
78
|
-
var _connections;
|
|
79
|
-
const platformInfo = PLATFORMS[platform];
|
|
80
|
-
const isConnected = getPlatformStatus(platform);
|
|
81
|
-
const userName = isConnected ? (_connections = connections[platform]) === null || _connections === void 0 ? void 0 : _connections.userName : null;
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
-
key: platform,
|
|
84
|
-
style: styles.platformItem
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
86
|
-
style: styles.platformInfo
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
88
|
-
style: [styles.platformIcon, {
|
|
89
|
-
backgroundColor: platformInfo.color
|
|
90
|
-
}]
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
92
|
-
name: platformInfo.icon,
|
|
93
|
-
size: 24,
|
|
94
|
-
color: "#fff"
|
|
95
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
96
|
-
style: styles.platformText
|
|
97
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
98
|
-
style: styles.platformName
|
|
99
|
-
}, platformInfo.name), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
100
|
-
style: styles.platformDescription
|
|
101
|
-
}, isConnected ? `Connected as ${userName}` : platformInfo.description))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
102
|
-
style: [styles.platformButton, isConnected ? styles.disconnectButton : styles.connectButton],
|
|
103
|
-
onPress: () => isConnected ? handleDisconnectPress(platform) : handleConnectPress(platform),
|
|
104
|
-
disabled: isLoading
|
|
105
|
-
}, isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
|
|
106
|
-
size: "small",
|
|
107
|
-
color: "#fff"
|
|
108
|
-
}) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
109
|
-
style: styles.buttonText
|
|
110
|
-
}, isConnected ? 'Disconnect' : 'Connect')));
|
|
111
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
112
|
-
style: styles.footer
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
114
|
-
style: styles.connectionStatus
|
|
115
|
-
}, getConnectedCount(), " of ", Object.keys(PLATFORMS).length, " platforms connected"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
116
|
-
style: [styles.proceedButton, canProceed ? styles.proceedActive : styles.proceedInactive],
|
|
117
|
-
onPress: onProceed,
|
|
118
|
-
disabled: !canProceed
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
120
|
-
style: [styles.proceedText, canProceed ? styles.proceedTextActive : styles.proceedTextInactive]
|
|
121
|
-
}, "Continue"), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
122
|
-
name: "arrow-forward",
|
|
123
|
-
size: 20,
|
|
124
|
-
color: canProceed ? '#fff' : '#999'
|
|
125
|
-
}))), activeWebview && /*#__PURE__*/_react.default.createElement(_OAuthWebView.OAuthWebView, {
|
|
126
|
-
url: `https://oauth.example.com/${activeWebview}` // This would be replaced with actual OAuth URL
|
|
127
|
-
,
|
|
128
|
-
platform: activeWebview,
|
|
129
|
-
onComplete: handleWebViewComplete,
|
|
130
|
-
onClose: handleWebViewClose,
|
|
131
|
-
onSuccess: code => {
|
|
132
|
-
console.log(`Received authorization code for ${activeWebview}: ${code}`);
|
|
133
|
-
// In a real implementation, we'd pass this code to our API service
|
|
134
|
-
handleWebViewComplete();
|
|
135
|
-
}
|
|
136
|
-
}));
|
|
137
|
-
};
|
|
138
|
-
exports.PlatformConnector = PlatformConnector;
|
|
139
|
-
const styles = _reactNative.StyleSheet.create({
|
|
140
|
-
container: {
|
|
141
|
-
flex: 1,
|
|
142
|
-
padding: 16
|
|
143
|
-
},
|
|
144
|
-
title: {
|
|
145
|
-
fontSize: 24,
|
|
146
|
-
fontWeight: 'bold',
|
|
147
|
-
marginBottom: 8,
|
|
148
|
-
color: '#000'
|
|
149
|
-
},
|
|
150
|
-
subtitle: {
|
|
151
|
-
fontSize: 16,
|
|
152
|
-
color: '#666',
|
|
153
|
-
marginBottom: 24
|
|
154
|
-
},
|
|
155
|
-
platformList: {
|
|
156
|
-
flex: 1
|
|
157
|
-
},
|
|
158
|
-
platformItem: {
|
|
159
|
-
flexDirection: 'row',
|
|
160
|
-
alignItems: 'center',
|
|
161
|
-
marginBottom: 16,
|
|
162
|
-
padding: 12,
|
|
163
|
-
backgroundColor: '#f8f8f8',
|
|
164
|
-
borderRadius: 12,
|
|
165
|
-
borderWidth: 1,
|
|
166
|
-
borderColor: '#eee'
|
|
167
|
-
},
|
|
168
|
-
platformInfo: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
flexDirection: 'row',
|
|
171
|
-
alignItems: 'center'
|
|
172
|
-
},
|
|
173
|
-
platformIcon: {
|
|
174
|
-
width: 40,
|
|
175
|
-
height: 40,
|
|
176
|
-
borderRadius: 20,
|
|
177
|
-
justifyContent: 'center',
|
|
178
|
-
alignItems: 'center',
|
|
179
|
-
marginRight: 12
|
|
180
|
-
},
|
|
181
|
-
platformText: {
|
|
182
|
-
flex: 1
|
|
183
|
-
},
|
|
184
|
-
platformName: {
|
|
185
|
-
fontSize: 16,
|
|
186
|
-
fontWeight: '600',
|
|
187
|
-
marginBottom: 4,
|
|
188
|
-
color: '#000'
|
|
189
|
-
},
|
|
190
|
-
platformDescription: {
|
|
191
|
-
fontSize: 14,
|
|
192
|
-
color: '#666'
|
|
193
|
-
},
|
|
194
|
-
platformButton: {
|
|
195
|
-
paddingHorizontal: 16,
|
|
196
|
-
paddingVertical: 8,
|
|
197
|
-
borderRadius: 20,
|
|
198
|
-
justifyContent: 'center',
|
|
199
|
-
alignItems: 'center',
|
|
200
|
-
minWidth: 100
|
|
201
|
-
},
|
|
202
|
-
connectButton: {
|
|
203
|
-
backgroundColor: _constants.COLORS.primary
|
|
204
|
-
},
|
|
205
|
-
disconnectButton: {
|
|
206
|
-
backgroundColor: '#f44336'
|
|
207
|
-
},
|
|
208
|
-
buttonText: {
|
|
209
|
-
color: '#fff',
|
|
210
|
-
fontWeight: '600'
|
|
211
|
-
},
|
|
212
|
-
footer: {
|
|
213
|
-
flexDirection: 'row',
|
|
214
|
-
alignItems: 'center',
|
|
215
|
-
justifyContent: 'space-between',
|
|
216
|
-
paddingTop: 16,
|
|
217
|
-
borderTopWidth: 1,
|
|
218
|
-
borderTopColor: '#eee',
|
|
219
|
-
marginTop: 16
|
|
220
|
-
},
|
|
221
|
-
connectionStatus: {
|
|
222
|
-
fontSize: 14,
|
|
223
|
-
color: '#666'
|
|
224
|
-
},
|
|
225
|
-
proceedButton: {
|
|
226
|
-
flexDirection: 'row',
|
|
227
|
-
alignItems: 'center',
|
|
228
|
-
paddingHorizontal: 16,
|
|
229
|
-
paddingVertical: 10,
|
|
230
|
-
borderRadius: 24
|
|
231
|
-
},
|
|
232
|
-
proceedActive: {
|
|
233
|
-
backgroundColor: _constants.COLORS.primary
|
|
234
|
-
},
|
|
235
|
-
proceedInactive: {
|
|
236
|
-
backgroundColor: '#eee'
|
|
237
|
-
},
|
|
238
|
-
proceedText: {
|
|
239
|
-
fontWeight: '600',
|
|
240
|
-
marginRight: 8
|
|
241
|
-
},
|
|
242
|
-
proceedTextActive: {
|
|
243
|
-
color: '#fff'
|
|
244
|
-
},
|
|
245
|
-
proceedTextInactive: {
|
|
246
|
-
color: '#999'
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
//# sourceMappingURL=PlatformConnector.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("react-native"),
|
|
6
|
+
require("react-native-vector-icons/MaterialIcons"),
|
|
7
|
+
require("../../constants"),
|
|
8
|
+
require("./OAuthWebView")
|
|
9
|
+
];
|
|
10
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
11
|
+
Object[_0x43ab(0x0)](exports,_0x43ab(0x1),{'value':!![]}),exports[_0x43ab(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_MaterialIcons=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_constants=__ONAIROS_REQ_FUNC__(0x3),_OAuthWebView=__ONAIROS_REQ_FUNC__(0x4);function _0x43ab(_0x1a4c95,_0x43ab28){_0x1a4c95=_0x1a4c95-0x0;const _0x2792e3=_0x1a4c();let _0x8ee11e=_0x2792e3[_0x1a4c95];return _0x8ee11e;}function _interopRequireDefault(_0x28f3fc){return _0x28f3fc&&_0x28f3fc[_0x43ab(0x1)]?_0x28f3fc:{'default':_0x28f3fc};}function _0x1a4c(){const _0xc5613=['defineProperty','__esModule','PlatformConnector','object','function','default','UoJdy','LFHkr','eLREK','MMZMS','rGERf','hasOwnProperty','getOwnPropertyDescriptor','get','Instagram','photo-camera','Connect\x20to\x20share\x20and\x20analyze\x20your\x20Instagram\x20content','YouTube','#FF0000','Connect\x20for\x20YouTube\x20video\x20recommendations\x20and\x20analysis','Pinterest','push-pin','#E60023','Connect\x20to\x20enhance\x20Pinterest\x20board\x20recommendations','Reddit','forum','#FF4500','Connect\x20to\x20personalize\x20Reddit\x20content\x20insights','HKpxW','LLovy','bWXbL','#fff','Connect','Connect\x20at\x20least\x202\x20platforms\x20to\x20create\x20your\x20Onairos\x20account','\x20of\x20','arrow-forward','cAZuk','FpgJn','OtCtq','qRLFX','has','set','gjCaz','dVmii','kVXhN','filter','length','createElement','View','Text','title','subtitle','LzjqX','ScrollView','platformList','map','rZzbD','IcNUK','qIOQg','userName','platformItem','platformInfo','platformIcon','color','icon','platformText','platformName','name','platformDescription','Connected\x20as\x20','description','TouchableOpacity','platformButton','disconnectButton','connectButton','ActivityIndicator','small','buttonText','Disconnect','beZbv','footer','connectionStatus','ESFEX','TRQAl','proceedButton','proceedActive','proceedInactive','proceedText','proceedTextInactive','Continue','nqHmQ','https://oauth.example.com/','tdDzN','log','create','#666','row','center','#f8f8f8','#eee','600','#000','primary','#f44336','space-between','COLORS','#999'];_0x1a4c=function(){return _0xc5613;};return _0x1a4c();}function _interopRequireWildcard(_0x89e51e,_0x233e0c){const _0x7398b={'LFHkr':function(_0x1bde41,_0x1518f3){return _0x1bde41===_0x1518f3;},'eLREK':function(_0x59de59,_0x40e22d){return _0x59de59!=_0x40e22d;},'miLCs':_0x43ab(0x3),'UoJdy':_0x43ab(0x4),'MMZMS':function(_0x14f9cb,_0x12eed4){return _0x14f9cb!==_0x12eed4;},'rGERf':_0x43ab(0x5),'lVfps':function(_0x219ab9,_0x4611aa,_0x14739e,_0x2e521f){return _0x219ab9(_0x4611aa,_0x14739e,_0x2e521f);}};if(_0x7398b[_0x43ab(0x6)]==typeof WeakMap)var _0x2c18d9=new WeakMap(),_0x214b7a=new WeakMap();return(_interopRequireWildcard=function(_0x1dbc6c,_0x19b02e){if(!_0x19b02e&&_0x1dbc6c&&_0x1dbc6c[_0x43ab(0x1)])return _0x1dbc6c;var _0x53847b,_0x24bb25,_0x42e6c0={'__proto__':null,'default':_0x1dbc6c};if(_0x7398b[_0x43ab(0x7)](null,_0x1dbc6c)||_0x7398b[_0x43ab(0x8)](_0x7398b['miLCs'],typeof _0x1dbc6c)&&_0x7398b[_0x43ab(0x6)]!=typeof _0x1dbc6c)return _0x42e6c0;if(_0x53847b=_0x19b02e?_0x214b7a:_0x2c18d9){if(_0x53847b['has'](_0x1dbc6c))return _0x53847b['get'](_0x1dbc6c);_0x53847b['set'](_0x1dbc6c,_0x42e6c0);}for(const _0x5e74a2 in _0x1dbc6c)_0x7398b[_0x43ab(0x9)](_0x7398b[_0x43ab(0xa)],_0x5e74a2)&&{}[_0x43ab(0xb)]['call'](_0x1dbc6c,_0x5e74a2)&&((_0x24bb25=(_0x53847b=Object[_0x43ab(0x0)])&&Object[_0x43ab(0xc)](_0x1dbc6c,_0x5e74a2))&&(_0x24bb25[_0x43ab(0xd)]||_0x24bb25['set'])?_0x7398b['lVfps'](_0x53847b,_0x42e6c0,_0x5e74a2,_0x24bb25):_0x42e6c0[_0x5e74a2]=_0x1dbc6c[_0x5e74a2]);return _0x42e6c0;})(_0x89e51e,_0x233e0c);}const PLATFORMS={'instagram':{'name':_0x43ab(0xe),'icon':_0x43ab(0xf),'color':'#E1306C','description':_0x43ab(0x10)},'youtube':{'name':_0x43ab(0x11),'icon':'smart-display','color':_0x43ab(0x12),'description':_0x43ab(0x13)},'pinterest':{'name':_0x43ab(0x14),'icon':_0x43ab(0x15),'color':_0x43ab(0x16),'description':_0x43ab(0x17)},'reddit':{'name':_0x43ab(0x18),'icon':_0x43ab(0x19),'color':_0x43ab(0x1a),'description':_0x43ab(0x1b)}},PlatformConnector=({connections:_0x47c15e,onConnect:_0x4671a8,onDisconnect:_0x889c52,isLoading:_0x5aa307,canProceed:_0x46fbe0,onProceed:_0x5a9f75})=>{const _0x3875e6={'cAZuk':function(_0x19b687,_0x10c167){return _0x19b687(_0x10c167);},'FpgJn':function(_0xaa63d6,_0x5beb0d){return _0xaa63d6===_0x5beb0d;},'OtCtq':_0x43ab(0x1c),'qRLFX':function(_0x2a28f0,_0x4cffa0){return _0x2a28f0(_0x4cffa0);},'gjCaz':function(_0x58555f,_0x5c68f8){return _0x58555f!==_0x5c68f8;},'FEKVj':'zkkTm','kVXhN':function(_0x3ae123,_0x4a900c){return _0x3ae123(_0x4a900c);},'rZzbD':_0x43ab(0x1d),'IcNUK':_0x43ab(0x1e),'qIOQg':function(_0x2a1526,_0x43cedd){return _0x2a1526(_0x43cedd);},'vQAHX':_0x43ab(0x1f),'beZbv':_0x43ab(0x20),'IXxEw':function(_0x4c5c2a){return _0x4c5c2a();},'Ybjta':'Connect\x20Your\x20Platforms','LzjqX':_0x43ab(0x21),'ESFEX':function(_0x1a2024){return _0x1a2024();},'yNDGN':_0x43ab(0x22),'TRQAl':'\x20platforms\x20connected','nqHmQ':_0x43ab(0x23),'mSRou':'#999'},[_0x42ebef,_0x18bc06]=(0x0,_react['useState'])(null),_0x5581c4=async _0x5b13bf=>{_0x18bc06(_0x5b13bf);},_0x4281fd=()=>{_0x3875e6[_0x43ab(0x24)](_0x18bc06,null);},_0xa0f9a2=()=>{if(_0x3875e6[_0x43ab(0x25)](_0x3875e6[_0x43ab(0x26)],_0x3875e6['OtCtq']))_0x3875e6[_0x43ab(0x27)](_0x18bc06,null);else{if(_0x4758fc[_0x43ab(0x28)](_0x5f3566))return _0xa49670[_0x43ab(0xd)](_0x3c1f0b);_0x4a3c1f[_0x43ab(0x29)](_0x384108,_0x2b825c);}},_0x56d03b=async _0x89805=>{if(_0x3875e6[_0x43ab(0x2a)](_0x43ab(0x2b),_0x3875e6['FEKVj']))await _0x3875e6[_0x43ab(0x2c)](_0x889c52,_0x89805);else return _0x5221a7['values'](_0x1f6a8c)[_0x43ab(0x2d)](_0x2ceb45)[_0x43ab(0x2e)];},_0x3cd544=_0x2dcbfa=>{const _0xb51064=_0x2dcbfa;return _0x47c15e[_0xb51064]?!![]:![];},_0x4184d0=()=>{return Object['values'](_0x47c15e)[_0x43ab(0x2d)](Boolean)[_0x43ab(0x2e)];};return _react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x30)],{'style':styles['container']},_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x32)]},_0x3875e6['Ybjta']),_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x33)]},_0x3875e6[_0x43ab(0x34)]),_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x35)],{'style':styles[_0x43ab(0x36)]},Object['keys'](PLATFORMS)[_0x43ab(0x37)](_0xe31880=>{const _0xfe7bd9={'ttBXn':function(_0xf050ff,_0x121c69){return _0x3875e6[_0x43ab(0x27)](_0xf050ff,_0x121c69);}};if(_0x3875e6[_0x43ab(0x25)](_0x3875e6[_0x43ab(0x38)],_0x3875e6[_0x43ab(0x39)]))_0xfe7bd9['ttBXn'](_0x57eaef,null);else{var _0x40d1f6;const _0x7ed414=PLATFORMS[_0xe31880],_0x2ea4ed=_0x3875e6[_0x43ab(0x3a)](_0x3cd544,_0xe31880),_0x46de0a=_0x2ea4ed?(_0x40d1f6=_0x47c15e[_0xe31880])===null||_0x3875e6['FpgJn'](_0x40d1f6,void 0x0)?void 0x0:_0x40d1f6[_0x43ab(0x3b)]:null;return _react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative['View'],{'key':_0xe31880,'style':styles[_0x43ab(0x3c)]},_react[_0x43ab(0x5)]['createElement'](_reactNative[_0x43ab(0x30)],{'style':styles[_0x43ab(0x3d)]},_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x30)],{'style':[styles[_0x43ab(0x3e)],{'backgroundColor':_0x7ed414[_0x43ab(0x3f)]}]},_react[_0x43ab(0x5)][_0x43ab(0x2f)](_MaterialIcons[_0x43ab(0x5)],{'name':_0x7ed414[_0x43ab(0x40)],'size':0x18,'color':_0x3875e6['vQAHX']})),_react[_0x43ab(0x5)]['createElement'](_reactNative['View'],{'style':styles[_0x43ab(0x41)]},_react[_0x43ab(0x5)]['createElement'](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x42)]},_0x7ed414[_0x43ab(0x43)]),_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x44)]},_0x2ea4ed?_0x43ab(0x45)+_0x46de0a:_0x7ed414[_0x43ab(0x46)]))),_react['default'][_0x43ab(0x2f)](_reactNative[_0x43ab(0x47)],{'style':[styles[_0x43ab(0x48)],_0x2ea4ed?styles[_0x43ab(0x49)]:styles[_0x43ab(0x4a)]],'onPress':()=>_0x2ea4ed?_0x56d03b(_0xe31880):_0x5581c4(_0xe31880),'disabled':_0x5aa307},_0x5aa307?_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x4b)],{'size':_0x43ab(0x4c),'color':_0x43ab(0x1f)}):_react['default'][_0x43ab(0x2f)](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x4d)]},_0x2ea4ed?_0x43ab(0x4e):_0x3875e6[_0x43ab(0x4f)])));}})),_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative[_0x43ab(0x30)],{'style':styles[_0x43ab(0x50)]},_react[_0x43ab(0x5)]['createElement'](_reactNative[_0x43ab(0x31)],{'style':styles[_0x43ab(0x51)]},_0x3875e6[_0x43ab(0x52)](_0x4184d0),_0x3875e6['yNDGN'],Object['keys'](PLATFORMS)[_0x43ab(0x2e)],_0x3875e6[_0x43ab(0x53)]),_react[_0x43ab(0x5)]['createElement'](_reactNative[_0x43ab(0x47)],{'style':[styles[_0x43ab(0x54)],_0x46fbe0?styles[_0x43ab(0x55)]:styles[_0x43ab(0x56)]],'onPress':_0x5a9f75,'disabled':!_0x46fbe0},_react[_0x43ab(0x5)][_0x43ab(0x2f)](_reactNative['Text'],{'style':[styles[_0x43ab(0x57)],_0x46fbe0?styles['proceedTextActive']:styles[_0x43ab(0x58)]]},_0x43ab(0x59)),_react[_0x43ab(0x5)][_0x43ab(0x2f)](_MaterialIcons[_0x43ab(0x5)],{'name':_0x3875e6[_0x43ab(0x5a)],'size':0x14,'color':_0x46fbe0?'#fff':_0x3875e6['mSRou']}))),_0x42ebef&&_react[_0x43ab(0x5)][_0x43ab(0x2f)](_OAuthWebView['OAuthWebView'],{'url':_0x43ab(0x5b)+_0x42ebef,'platform':_0x42ebef,'onComplete':_0x4281fd,'onClose':_0xa0f9a2,'onSuccess':_0x3ec7f6=>{_0x3875e6[_0x43ab(0x25)](_0x43ab(0x5c),_0x43ab(0x5c))?(console[_0x43ab(0x5d)]('Received\x20authorization\x20code\x20for\x20'+_0x42ebef+':\x20'+_0x3ec7f6),_0x3875e6['IXxEw'](_0x4281fd)):_0x3875e6['qIOQg'](_0x10ec33,_0x839e50);}}));};exports[_0x43ab(0x2)]=PlatformConnector;const styles=_reactNative['StyleSheet'][_0x43ab(0x5e)]({'container':{'flex':0x1,'padding':0x10},'title':{'fontSize':0x18,'fontWeight':'bold','marginBottom':0x8,'color':'#000'},'subtitle':{'fontSize':0x10,'color':_0x43ab(0x5f),'marginBottom':0x18},'platformList':{'flex':0x1},'platformItem':{'flexDirection':_0x43ab(0x60),'alignItems':_0x43ab(0x61),'marginBottom':0x10,'padding':0xc,'backgroundColor':_0x43ab(0x62),'borderRadius':0xc,'borderWidth':0x1,'borderColor':_0x43ab(0x63)},'platformInfo':{'flex':0x1,'flexDirection':_0x43ab(0x60),'alignItems':'center'},'platformIcon':{'width':0x28,'height':0x28,'borderRadius':0x14,'justifyContent':_0x43ab(0x61),'alignItems':_0x43ab(0x61),'marginRight':0xc},'platformText':{'flex':0x1},'platformName':{'fontSize':0x10,'fontWeight':_0x43ab(0x64),'marginBottom':0x4,'color':_0x43ab(0x65)},'platformDescription':{'fontSize':0xe,'color':_0x43ab(0x5f)},'platformButton':{'paddingHorizontal':0x10,'paddingVertical':0x8,'borderRadius':0x14,'justifyContent':_0x43ab(0x61),'alignItems':_0x43ab(0x61),'minWidth':0x64},'connectButton':{'backgroundColor':_constants['COLORS'][_0x43ab(0x66)]},'disconnectButton':{'backgroundColor':_0x43ab(0x67)},'buttonText':{'color':_0x43ab(0x1f),'fontWeight':_0x43ab(0x64)},'footer':{'flexDirection':_0x43ab(0x60),'alignItems':_0x43ab(0x61),'justifyContent':_0x43ab(0x68),'paddingTop':0x10,'borderTopWidth':0x1,'borderTopColor':_0x43ab(0x63),'marginTop':0x10},'connectionStatus':{'fontSize':0xe,'color':_0x43ab(0x5f)},'proceedButton':{'flexDirection':_0x43ab(0x60),'alignItems':_0x43ab(0x61),'paddingHorizontal':0x10,'paddingVertical':0xa,'borderRadius':0x18},'proceedActive':{'backgroundColor':_constants[_0x43ab(0x69)][_0x43ab(0x66)]},'proceedInactive':{'backgroundColor':_0x43ab(0x63)},'proceedText':{'fontWeight':_0x43ab(0x64),'marginRight':0x8},'proceedTextActive':{'color':_0x43ab(0x1f)},'proceedTextInactive':{'color':_0x43ab(0x6a)}});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("../services/authService")
|
|
5
|
+
];
|
|
6
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
+
Object[_0x56cd(0x0)](exports,_0x56cd(0x1),{'value':!![]}),exports[_0x56cd(0x2)]=exports['getAuthHeaders']=exports[_0x56cd(0x3)]=exports[_0x56cd(0x4)]=void 0x0;var _authService=__ONAIROS_REQ_FUNC__(0x0);function _0x5c89(){const _0x373d8e=['defineProperty','__esModule','getUserAuthHeaders','getApiHeaders','API_CONFIG','/auth','/user','/connections','/training','/oauth','Bearer\x20','getAuthToken','User\x20not\x20authenticated\x20-\x20no\x20JWT\x20token\x20found','THzKy'];_0x5c89=function(){return _0x373d8e;};return _0x5c89();}function _0x56cd(_0x5c89c5,_0x56cd95){_0x5c89c5=_0x5c89c5-0x0;const _0x40e89a=_0x5c89();let _0xf6f47a=_0x40e89a[_0x5c89c5];return _0xf6f47a;}const API_CONFIG=exports[_0x56cd(0x4)]={'BASE_URL':'https://api2.onairos.uk','ENDPOINTS':{'AUTH':_0x56cd(0x5),'USER':_0x56cd(0x6),'CONNECTIONS':_0x56cd(0x7),'TRAINING':_0x56cd(0x8),'OAUTH':_0x56cd(0x9)},'TIMEOUT':0x7530},getApiHeaders=()=>({'Content-Type':'application/json','Accept':'application/json'});exports[_0x56cd(0x3)]=getApiHeaders;const getAuthHeaders=_0x741615=>({...getApiHeaders(),..._0x741615&&{'Authorization':_0x56cd(0xa)+_0x741615}});exports['getAuthHeaders']=getAuthHeaders;const getUserAuthHeaders=async()=>{const _0x5b9847={'THzKy':function(_0x1cd17e){return _0x1cd17e();}},_0x5d6a79=await(0x0,_authService[_0x56cd(0xb)])();if(!_0x5d6a79)throw new Error(_0x56cd(0xc));return{..._0x5b9847[_0x56cd(0xd)](getApiHeaders),'Authorization':'Bearer\x20'+_0x5d6a79};};exports[_0x56cd(0x2)]=getUserAuthHeaders;
|
|
@@ -1,83 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const COLORS = exports
|
|
8
|
-
primary: '#1BA9D4',
|
|
9
|
-
headerBg: '#F8F9FA',
|
|
10
|
-
text: {
|
|
11
|
-
primary: '#000000',
|
|
12
|
-
secondary: '#666666'
|
|
13
|
-
},
|
|
14
|
-
border: '#E5E5E5',
|
|
15
|
-
success: '#34C759',
|
|
16
|
-
error: '#FF3B30',
|
|
17
|
-
instagram: '#E1306C',
|
|
18
|
-
pinterest: '#E60023',
|
|
19
|
-
reddit: '#FF4500',
|
|
20
|
-
youtube: '#FF0000',
|
|
21
|
-
white: '#FFFFFF',
|
|
22
|
-
black: '#000000',
|
|
23
|
-
gray: '#666666',
|
|
24
|
-
lightGray: '#E5E5E5'
|
|
25
|
-
};
|
|
26
|
-
const PLATFORMS = exports.PLATFORMS = {
|
|
27
|
-
instagram: {
|
|
28
|
-
name: 'Instagram',
|
|
29
|
-
icon: 'instagram',
|
|
30
|
-
color: COLORS.instagram,
|
|
31
|
-
description: 'Connect your Instagram account to train your AI model'
|
|
32
|
-
},
|
|
33
|
-
pinterest: {
|
|
34
|
-
name: 'Pinterest',
|
|
35
|
-
icon: 'pinterest',
|
|
36
|
-
color: COLORS.pinterest,
|
|
37
|
-
description: 'Use your Pinterest boards for AI training'
|
|
38
|
-
},
|
|
39
|
-
reddit: {
|
|
40
|
-
name: 'Reddit',
|
|
41
|
-
icon: 'reddit',
|
|
42
|
-
color: COLORS.reddit,
|
|
43
|
-
description: 'Connect Reddit to enhance your AI model'
|
|
44
|
-
},
|
|
45
|
-
youtube: {
|
|
46
|
-
name: 'YouTube',
|
|
47
|
-
icon: 'youtube',
|
|
48
|
-
color: COLORS.youtube,
|
|
49
|
-
description: 'Use YouTube data to improve AI recommendations'
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const API_ENDPOINTS = exports.API_ENDPOINTS = {
|
|
53
|
-
base: 'https://api2.onairos.uk',
|
|
54
|
-
oauth: {
|
|
55
|
-
instagram: '/instagram/auth',
|
|
56
|
-
pinterest: '/pinterest/auth',
|
|
57
|
-
reddit: '/reddit/auth',
|
|
58
|
-
youtube: '/youtube/auth'
|
|
59
|
-
},
|
|
60
|
-
callback: {
|
|
61
|
-
instagram: '/instagram/callback',
|
|
62
|
-
pinterest: '/pinterest/callback',
|
|
63
|
-
reddit: '/reddit/callback',
|
|
64
|
-
youtube: '/youtube/callback'
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const STORAGE_KEYS = exports.STORAGE_KEYS = {
|
|
68
|
-
credentials: 'onairos_credentials',
|
|
69
|
-
connections: 'onairos_connections'
|
|
70
|
-
};
|
|
71
|
-
const PIN_REQUIREMENTS = exports.PIN_REQUIREMENTS = {
|
|
72
|
-
minLength: 8,
|
|
73
|
-
requireUppercase: true,
|
|
74
|
-
requireLowercase: true,
|
|
75
|
-
requireNumber: true,
|
|
76
|
-
requireSpecialChar: true
|
|
77
|
-
};
|
|
78
|
-
const DEEP_LINK_CONFIG = exports.DEEP_LINK_CONFIG = {
|
|
79
|
-
scheme: 'onairosanime',
|
|
80
|
-
host: 'authenticate',
|
|
81
|
-
redirectUri: 'onairosanime://auth/'
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("../config/api")
|
|
5
|
+
];
|
|
6
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
+
function _0x2d47(){const _0x34350c=['defineProperty','__esModule','STORAGE_KEYS','PLATFORMS','PIN_REQUIREMENTS','DEEP_LINK_CONFIG','COLORS','#666666','#E5E5E5','#34C759','#E60023','#FF4500','#FF0000','#10A37F','Instagram','instagram','Connect\x20your\x20Instagram\x20account\x20to\x20train\x20your\x20AI\x20model','Use\x20your\x20Pinterest\x20boards\x20for\x20AI\x20training','Reddit','reddit','Connect\x20Reddit\x20to\x20enhance\x20your\x20AI\x20model','YouTube','youtube','ChatGPT','chat','chatgpt','Connect\x20your\x20ChatGPT\x20conversations\x20for\x20AI\x20insights','LLM\x20Data','llm','Connect\x20your\x20AI\x20conversation\x20data','API_CONFIG','/instagram/auth','/pinterest/auth','/reddit/auth','/youtube/auth','/chatgpt/auth','/instagram/callback','/pinterest/callback','/chatgpt/callback','/llmdata','onairos_connections','onairosanime','authenticate'];_0x2d47=function(){return _0x34350c;};return _0x2d47();}function _0x402d(_0x2d471f,_0x402d55){_0x2d471f=_0x2d471f-0x0;const _0x3a799c=_0x2d47();let _0x326ee3=_0x3a799c[_0x2d471f];return _0x326ee3;}Object[_0x402d(0x0)](exports,_0x402d(0x1),{'value':!![]}),exports[_0x402d(0x2)]=exports[_0x402d(0x3)]=exports[_0x402d(0x4)]=exports[_0x402d(0x5)]=exports[_0x402d(0x6)]=exports['API_ENDPOINTS']=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0);const COLORS=exports[_0x402d(0x6)]={'primary':'#1BA9D4','headerBg':'#F8F9FA','text':{'primary':'#000000','secondary':_0x402d(0x7)},'border':_0x402d(0x8),'success':_0x402d(0x9),'error':'#FF3B30','instagram':'#E1306C','pinterest':_0x402d(0xa),'reddit':_0x402d(0xb),'youtube':_0x402d(0xc),'chatgpt':_0x402d(0xd),'llm':_0x402d(0xd),'white':'#FFFFFF','black':'#000000','gray':_0x402d(0x7),'lightGray':_0x402d(0x8)},PLATFORMS=exports['PLATFORMS']={'instagram':{'name':_0x402d(0xe),'icon':'instagram','color':COLORS[_0x402d(0xf)],'description':_0x402d(0x10)},'pinterest':{'name':'Pinterest','icon':'pinterest','color':COLORS['pinterest'],'description':_0x402d(0x11)},'reddit':{'name':_0x402d(0x12),'icon':_0x402d(0x13),'color':COLORS[_0x402d(0x13)],'description':_0x402d(0x14)},'youtube':{'name':_0x402d(0x15),'icon':_0x402d(0x16),'color':COLORS[_0x402d(0x16)],'description':'Use\x20YouTube\x20data\x20to\x20improve\x20AI\x20recommendations'},'chatgpt':{'name':_0x402d(0x17),'icon':_0x402d(0x18),'color':COLORS[_0x402d(0x19)],'description':_0x402d(0x1a)},'llm':{'name':_0x402d(0x1b),'icon':'psychology','color':COLORS[_0x402d(0x1c)],'description':_0x402d(0x1d)}},API_ENDPOINTS=exports['API_ENDPOINTS']={'base':_api[_0x402d(0x1e)]['BASE_URL'],'oauth':{'instagram':_0x402d(0x1f),'pinterest':_0x402d(0x20),'reddit':_0x402d(0x21),'youtube':_0x402d(0x22),'chatgpt':'/chatgpt/auth','llm':_0x402d(0x23)},'callback':{'instagram':_0x402d(0x24),'pinterest':_0x402d(0x25),'reddit':'/reddit/callback','youtube':'/youtube/callback','chatgpt':_0x402d(0x26),'llm':_0x402d(0x26)},'llm':{'dataIngest':_0x402d(0x27),'dataRequest':'/llmdata/request'}},STORAGE_KEYS=exports['STORAGE_KEYS']={'credentials':'onairos_credentials','connections':_0x402d(0x28)},PIN_REQUIREMENTS=exports[_0x402d(0x4)]={'minLength':0x8,'requireUppercase':!![],'requireLowercase':!![],'requireNumber':!![],'requireSpecialChar':!![]},DEEP_LINK_CONFIG=exports[_0x402d(0x5)]={'scheme':_0x402d(0x29),'host':_0x402d(0x2a),'redirectUri':'onairosanime://auth/'};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("@react-native-async-storage/async-storage"),
|
|
6
|
+
require("../services/authService"),
|
|
7
|
+
require("../services/storageService")
|
|
8
|
+
];
|
|
9
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
+
Object[_0xed59(0x0)](exports,_0xed59(0x1),{'value':!![]}),exports[_0xed59(0x2)]=exports[_0xed59(0x3)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_authService=__ONAIROS_REQ_FUNC__(0x2),_storageService=__ONAIROS_REQ_FUNC__(0x3);function _interopRequireDefault(_0x442193){return _0x442193&&_0x442193[_0xed59(0x1)]?_0x442193:{'default':_0x442193};}function _interopRequireWildcard(_0x159176,_0x45b417){const _0x3ccd5c={'vlkau':function(_0x43a904,_0xd81705){return _0x43a904&&_0xd81705;},'Rzgzo':function(_0x121b2b,_0x2e6125){return _0x121b2b===_0x2e6125;},'YwNJw':function(_0x3a7ae5,_0x1060c1){return _0x3a7ae5!=_0x1060c1;},'onKBl':_0xed59(0x4),'bLoIu':_0xed59(0x5),'rnjDA':function(_0x3b349e,_0x19c3ca){return _0x3b349e!==_0x19c3ca;},'odImu':_0xed59(0x6),'OoDiM':function(_0x40c3aa,_0x53b652,_0x5df311,_0x2eaa86){return _0x40c3aa(_0x53b652,_0x5df311,_0x2eaa86);},'GLlPf':function(_0x48e02e,_0x79bc00){return _0x48e02e==_0x79bc00;}};if(_0x3ccd5c[_0xed59(0x7)](_0x3ccd5c['bLoIu'],typeof WeakMap))var _0x4305bd=new WeakMap(),_0x11ab9c=new WeakMap();return(_interopRequireWildcard=function(_0x7b656c,_0x392504){if(_0x3ccd5c[_0xed59(0x8)](!_0x392504,_0x7b656c)&&_0x7b656c[_0xed59(0x1)])return _0x7b656c;var _0x5782ba,_0x334338,_0x3c3647={'__proto__':null,'default':_0x7b656c};if(_0x3ccd5c['Rzgzo'](null,_0x7b656c)||_0x3ccd5c[_0xed59(0x9)](_0x3ccd5c[_0xed59(0xa)],typeof _0x7b656c)&&_0x3ccd5c[_0xed59(0x9)](_0x3ccd5c[_0xed59(0xb)],typeof _0x7b656c))return _0x3c3647;if(_0x5782ba=_0x392504?_0x11ab9c:_0x4305bd){if(_0x5782ba[_0xed59(0xc)](_0x7b656c))return _0x5782ba[_0xed59(0xd)](_0x7b656c);_0x5782ba[_0xed59(0xe)](_0x7b656c,_0x3c3647);}for(const _0x244a55 in _0x7b656c)_0x3ccd5c[_0xed59(0xf)](_0x3ccd5c[_0xed59(0x10)],_0x244a55)&&{}[_0xed59(0x11)]['call'](_0x7b656c,_0x244a55)&&((_0x334338=(_0x5782ba=Object['defineProperty'])&&Object[_0xed59(0x12)](_0x7b656c,_0x244a55))&&(_0x334338[_0xed59(0xd)]||_0x334338[_0xed59(0xe)])?_0x3ccd5c[_0xed59(0x13)](_0x5782ba,_0x3c3647,_0x244a55,_0x334338):_0x3c3647[_0x244a55]=_0x7b656c[_0x244a55]);return _0x3c3647;})(_0x159176,_0x45b417);}function _0x20eb(){const _0x48480f=['defineProperty','__esModule','useAuth','AuthProvider','object','function','default','GLlPf','vlkau','YwNJw','onKBl','bLoIu','has','get','set','rnjDA','odImu','hasOwnProperty','getOwnPropertyDescriptor','OoDiM','user','gdjVh','1|0|5|3|2|4','🌐\x20Network\x20verification\x20failed,\x20using\x20local\x20token\x20validation:','💾\x20Network\x20unreachable,\x20trusting\x20local\x20authentication\x20state','ylYYq','oJByF','stvJm','agvHW','403','🌐\x20Profile\x20fetch\x20failed\x20(likely\x20network),\x20keeping\x20authentication\x20state','offline_user','Onairos\x20User','user@onairos.com','onboardingCompleted','Failed\x20to\x20remove\x20user\x20data:','Onairos\x20sign-in\x20failed:','useAuth\x20must\x20be\x20used\x20within\x20an\x20AuthProvider','hKJvC','apple','onairos','User\x20logged\x20in\x20with\x20onboarded=false:','fYqtG','Failed\x20to\x20save\x20user\x20data:','Yuuqm','UrMOf','hasConnectedOnairos','onairosUserId','false','🔗\x20No\x20Onairos\x20connection\x20info\x20from\x20backend,\x20defaulting\x20to\x20false','Apple\x20sign-in\x20failed:','Pzsso','daaYp','3|4|2|1|0|5','FxYXT','sKqqN','Failed\x20to\x20update\x20user\x20data:','CIynn','useState','useEffect','fcRPA','CipZt','JlJpa','fIlpR','Failed\x20to\x20load\x20authentication\x20state:','kwSTw','ddSJk','hasEventAccessToken','getItem','EWKOC','zXDJf','JSHjk','MXzOc','hLOkA','ICIev','error','Failed\x20to\x20complete\x20onboarding:','getAuthToken','VqaPz','BrSEg','iVlzn','verifyToken','iPPeD','CYeTX','zHXdN','parse','TlRnn','uESyi','kunlC','ajxOS','DwFYY','ZCbzU','call','XVZCJ','getUserProfile','setItem','stringify','KFXFX','EBkSt','pylUJ','yFhhS','aMoTD','message','includes','401','qTJUd','removeAuthToken','qFEeE','kwsrM','VupWk','eOQYf','iOaFg','true','lDcGM','saveAuthState','WYhOh','email','FPbJO','ShQua','name','markStepCompleted','authentication','log','xMYCo','RPOgc','Idfhk','nUHNf','MwPch','kKHYM','EUUZf','YujCA','rzABW','authenticateWithApple','saveAuthToken','token','auth_method','BeawF','NqLWT','lastConnectedAt','wEgAQ','IblAG','ZCXbi','NAsQf','dxnkm','oRuWS','BHpXy','authenticateWithOnairos','Uqvzt','ElGSm','ZVTNK','clearUserData','useContext','JtJRP','iLKQt','rBoAG','gEfQH','wCfYk','ooCHI','cmPcw','DHNkm','Wdxkx','qevNG','ukNAs','HikNO','PwVdE','VYmJh','eKicI','warn','tYCRc','updateUserOnboardedStatus','ZEBQP','gpbKT','TLOpo','RnEPn','3|4|0|1|2|6|5','split','ZGpCr','Account\x20deleted\x20successfully','Provider','updateLastScreen','markEventPageReached','Fujzm','Succr'];_0x20eb=function(){return _0x48480f;};return _0x20eb();}const AuthContext=(0x0,_react['createContext'])(undefined),AuthProvider=({children:_0x30da7a})=>{const _0x22b02b={'EWKOC':_0xed59(0x14),'zXDJf':function(_0xbfbf8,_0x283509){return _0xbfbf8!==_0x283509;},'JSHjk':_0xed59(0x15),'myQIh':_0xed59(0x16),'MXzOc':function(_0x391c65,_0x2c2211){return _0x391c65(_0x2c2211);},'hLOkA':'🎯\x20Found\x20event\x20access\x20token\x20-\x20user\x20has\x20completed\x20onboarding,\x20authentication\x20confirmed','ICIev':function(_0xfc3797,_0x106198){return _0xfc3797(_0x106198);},'VqaPz':function(_0x12876f,_0x31ca78){return _0x12876f===_0x31ca78;},'tipbV':'DPcce','PwVdE':_0xed59(0x17),'iPPeD':_0xed59(0x18),'CYeTX':_0xed59(0x19),'zHXdN':'VyDQV','TlRnn':function(_0x92afe3,_0x425228){return _0x92afe3(_0x425228);},'jRFsd':_0xed59(0x1a),'kunlC':_0xed59(0x1b),'kwSTw':function(_0x50170b,_0x2f9613){return _0x50170b===_0x2f9613;},'KFXFX':_0xed59(0x1c),'yFhhS':'Failed\x20to\x20fetch\x20user\x20profile:','aMoTD':function(_0x271c21,_0x3c8df5){return _0x271c21 instanceof _0x3c8df5;},'qTJUd':_0xed59(0x1d),'qFEeE':_0xed59(0x1e),'kwsrM':function(_0x16a906,_0x523ff8){return _0x16a906!==_0x523ff8;},'eOQYf':_0xed59(0x1f),'iOaFg':_0xed59(0x20),'hidun':_0xed59(0x21),'ZGpCr':_0xed59(0x22),'LzsYn':function(_0x46d7a2,_0x426676){return _0x46d7a2(_0x426676);},'Gdemd':_0xed59(0x23),'fcRPA':_0xed59(0x24),'CipZt':_0xed59(0x25),'TDsXg':function(_0x209c78,_0x59b1a7){return _0x209c78&&_0x59b1a7;},'JlJpa':function(_0x4698cc,_0x555bf8){return _0x4698cc!=_0x555bf8;},'fIlpR':function(_0x3cfaa2,_0x24a3fa,_0x176f81,_0x4a863e){return _0x3cfaa2(_0x24a3fa,_0x176f81,_0x4a863e);},'ddSJk':_0xed59(0x26),'lDcGM':function(_0x237f19){return _0x237f19();},'nUHNf':'Failed\x20to\x20delete\x20account:','WYhOh':function(_0x235744,_0x46af5b){return _0x235744!==_0x46af5b;},'FPbJO':_0xed59(0x27),'ShQua':_0xed59(0x28),'xMYCo':_0xed59(0x29),'RPOgc':function(_0x23e1c7,_0x153520){return _0x23e1c7!==_0x153520;},'Idfhk':_0xed59(0x2a),'MwPch':_0xed59(0x2b),'kKHYM':function(_0x214ec3,_0x131322){return _0x214ec3(_0x131322);},'EUUZf':function(_0x3e8073,_0x5766f2){return _0x3e8073===_0x5766f2;},'hoQma':_0xed59(0x2c),'YujCA':_0xed59(0x2d),'BeawF':_0xed59(0x2e),'NqLWT':_0xed59(0x2f),'wEgAQ':'lastConnectedAt','ZCwDc':'🔗\x20Stored\x20Onairos\x20connection\x20status:','IblAG':'Pypuj','PLJvt':_0xed59(0x30),'ZCXbi':_0xed59(0x31),'ueLEN':'🍎\x20Apple\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22apple\x22','dxnkm':_0xed59(0x32),'oRuWS':'RCqtz','BHpXy':function(_0x580c35,_0x1cf190){return _0x580c35(_0x1cf190);},'Uqvzt':function(_0x28be14,_0x2e32eb){return _0x28be14(_0x2e32eb);},'ElGSm':'🔑\x20Onairos\x20sign-in\x20completed\x20-\x20auth_method\x20set\x20to\x20\x22onairos\x22','JtJRP':function(_0x591bad,_0x2434fe){return _0x591bad===_0x2434fe;},'ZVTNK':_0xed59(0x33),'THPkc':_0xed59(0x34),'iLKQt':'ibwIK','rBoAG':_0xed59(0x35),'gEfQH':function(_0x340b57,_0x46b4d5){return _0x340b57(_0x46b4d5);},'cmPcw':function(_0x489e81){return _0x489e81();},'DHNkm':_0xed59(0x36),'Vzbpj':'Failed\x20to\x20complete\x20onboarding:','VYmJh':function(_0x1fe1b3,_0x48962b){return _0x1fe1b3===_0x48962b;},'eKicI':_0xed59(0x37),'tYCRc':_0xed59(0x38),'xgRXe':function(_0x1cfb1a,_0x4622c9){return _0x1cfb1a(_0x4622c9);},'ZEBQP':'Failed\x20to\x20update\x20onboarded\x20status:','gpbKT':'QcZmf','TLOpo':_0xed59(0x39)},[_0x360722,_0x1092a3]=(0x0,_react[_0xed59(0x3a)])(null),[_0xd6bcc5,_0x1f0aef]=(0x0,_react[_0xed59(0x3a)])(!![]),[_0xdb038f,_0x5321f6]=(0x0,_react[_0xed59(0x3a)])(![]),[_0x182dd3,_0x57a73c]=(0x0,_react[_0xed59(0x3a)])(![]);(0x0,_react[_0xed59(0x3b)])(()=>{const _0x39d1ad={'iVlzn':_0x22b02b[_0xed59(0x3c)],'uESyi':_0x22b02b[_0xed59(0x3d)],'ajxOS':function(_0x2edad4,_0x36d09d){return _0x22b02b['TDsXg'](_0x2edad4,_0x36d09d);},'DwFYY':function(_0x1e7a0a,_0x19fa50){return _0x22b02b[_0xed59(0x3e)](_0x1e7a0a,_0x19fa50);},'oIZEO':_0xed59(0x4),'ZCbzU':function(_0x283491,_0xcbc011){return _0x283491!==_0xcbc011;},'lfaxr':'default','XVZCJ':function(_0x13bcca,_0x9af292,_0x1a413c,_0x13a14f){return _0x22b02b[_0xed59(0x3f)](_0x13bcca,_0x9af292,_0x1a413c,_0x13a14f);},'MNWvW':_0xed59(0x40)};if(_0x22b02b[_0xed59(0x41)](_0xed59(0x26),_0x22b02b[_0xed59(0x42)])){const _0x55583a=async()=>{const _0x52a387={'pylUJ':function(_0x51b772,_0x55758a){return _0x51b772(_0x55758a);}};try{const _0x1bc72c=await(0x0,_storageService[_0xed59(0x43)])(),_0x3c87ea=await _asyncStorage[_0xed59(0x6)][_0xed59(0x44)](_0x22b02b[_0xed59(0x45)]);if(_0x1bc72c&&_0x3c87ea){if(_0x22b02b[_0xed59(0x46)]('FiNGz',_0x22b02b[_0xed59(0x47)])){const _0x203d34=_0x22b02b['myQIh']['split']('|');let _0x2c7a07=0x0;while(!![]){switch(_0x203d34[_0x2c7a07++]){case'0':_0x22b02b[_0xed59(0x48)](_0x1092a3,JSON['parse'](_0x3c87ea));continue;case'1':console['log'](_0x22b02b[_0xed59(0x49)]);continue;case'2':_0x22b02b[_0xed59(0x48)](_0x1f0aef,![]);continue;case'3':_0x22b02b[_0xed59(0x48)](_0x5321f6,!![]);continue;case'4':return;case'5':_0x22b02b[_0xed59(0x4a)](_0x57a73c,!![]);continue;}break;}}else{_0x2ba388[_0xed59(0x4b)](_0xed59(0x4c),_0x578ea2);throw _0x3c5079;}}const _0x3767bf=await(0x0,_authService[_0xed59(0x4d)])();if(_0x3767bf){if(_0x22b02b[_0xed59(0x4e)](_0x22b02b['tipbV'],_0xed59(0x4f))){_0x3b9d20['error'](_0x39d1ad[_0xed59(0x50)],_0x211e25);throw _0x10b438;}else{let _0x4572b9=![];try{_0x4572b9=await(0x0,_authService[_0xed59(0x51)])();}catch(_0x5934d0){console['warn'](_0x22b02b['PwVdE'],_0x5934d0),_0x3c87ea&&(console['log'](_0x22b02b[_0xed59(0x52)]),_0x4572b9=!![]);}if(_0x4572b9){if(_0x3c87ea){if(_0x22b02b[_0xed59(0x46)](_0x22b02b[_0xed59(0x53)],_0x22b02b[_0xed59(0x54)]))_0x1092a3(JSON[_0xed59(0x55)](_0x3c87ea)),_0x22b02b[_0xed59(0x56)](_0x57a73c,!![]);else throw new _0x385116(_0x39d1ad[_0xed59(0x57)]);}else try{if(_0x22b02b[_0xed59(0x4e)](_0x22b02b['jRFsd'],_0x22b02b[_0xed59(0x58)])){if(_0x39d1ad[_0xed59(0x59)](!_0x55a1fa,_0x2d1fe6)&&_0x5cb208[_0xed59(0x1)])return _0x2cb582;var _0x36729e,_0x3686ee,_0x12a771={'__proto__':null,'default':_0x1172bf};if(null===_0x45ec12||_0x39d1ad[_0xed59(0x5a)](_0x39d1ad['oIZEO'],typeof _0x5bd09e)&&_0x39d1ad[_0xed59(0x5a)](_0xed59(0x5),typeof _0x5ae8ef))return _0x12a771;if(_0x36729e=_0x54e9d0?_0x3ee1d2:_0x123d10){if(_0x36729e[_0xed59(0xc)](_0x4d6a36))return _0x36729e[_0xed59(0xd)](_0x492e74);_0x36729e['set'](_0x5b85f5,_0x12a771);}for(const _0x112a00 in _0x296f3e)_0x39d1ad[_0xed59(0x5b)](_0x39d1ad['lfaxr'],_0x112a00)&&{}['hasOwnProperty'][_0xed59(0x5c)](_0x3ab744,_0x112a00)&&((_0x3686ee=(_0x36729e=_0x1266d9[_0xed59(0x0)])&&_0xed6cb2[_0xed59(0x12)](_0x10f292,_0x112a00))&&(_0x3686ee[_0xed59(0xd)]||_0x3686ee[_0xed59(0xe)])?_0x39d1ad[_0xed59(0x5d)](_0x36729e,_0x12a771,_0x112a00,_0x3686ee):_0x12a771[_0x112a00]=_0x5c6e29[_0x112a00]);return _0x12a771;}else{const _0x5e490d=await(0x0,_authService[_0xed59(0x5e)])();await _asyncStorage['default'][_0xed59(0x5f)](_0x22b02b[_0xed59(0x45)],JSON[_0xed59(0x60)](_0x5e490d)),_0x1092a3(_0x5e490d),_0x57a73c(!![]);}}catch(_0x29b03e){if(_0x22b02b['kwSTw'](_0x22b02b[_0xed59(0x61)],_0xed59(0x62)))_0x52a387[_0xed59(0x63)](_0x3157e1,![]);else{console['error'](_0x22b02b[_0xed59(0x64)],_0x29b03e);const _0xfc0694=_0x22b02b[_0xed59(0x65)](_0x29b03e,Error)?_0x29b03e[_0xed59(0x66)]:_0x22b02b['ICIev'](String,_0x29b03e);if(_0xfc0694[_0xed59(0x67)](_0xed59(0x68))||_0xfc0694[_0xed59(0x67)](_0x22b02b[_0xed59(0x69)]))await(0x0,_authService[_0xed59(0x6a)])();else{console['log'](_0x22b02b[_0xed59(0x6b)]);if(_0x3767bf){if(_0x22b02b[_0xed59(0x6c)](_0xed59(0x6d),_0xed59(0x6d)))_0x10f366[_0xed59(0x4b)](_0x39d1ad['MNWvW'],_0x2e851c);else{const _0x1603fe={'id':_0x22b02b[_0xed59(0x6e)],'name':_0x22b02b[_0xed59(0x6f)],'email':_0x22b02b['hidun'],'onboarded':![]};await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b['EWKOC'],JSON[_0xed59(0x60)](_0x1603fe)),_0x1092a3(_0x1603fe),_0x22b02b['TlRnn'](_0x57a73c,!![]);}}}}}}else await(0x0,_authService[_0xed59(0x6a)])();}}const _0x43361b=await _asyncStorage[_0xed59(0x6)][_0xed59(0x44)](_0x22b02b['ZGpCr']);_0x22b02b[_0xed59(0x4e)](_0x43361b,_0xed59(0x70))&&_0x22b02b[_0xed59(0x56)](_0x5321f6,!![]);}catch(_0x546d8b){console['error'](_0xed59(0x40),_0x546d8b);}finally{_0x22b02b['LzsYn'](_0x1f0aef,![]);}};_0x22b02b[_0xed59(0x71)](_0x55583a);}else _0x4633c1[_0xed59(0x4b)](_0x22b02b['Gdemd'],_0x16213b);},[]);const _0x3b2014=async _0x582904=>{try{var _0x1389bf;const _0x43adfe={..._0x582904,'onboarded':![]};await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b[_0xed59(0x45)],JSON[_0xed59(0x60)](_0x43adfe)),_0x22b02b[_0xed59(0x56)](_0x1092a3,_0x43adfe),_0x22b02b[_0xed59(0x56)](_0x57a73c,!![]),await(0x0,_storageService[_0xed59(0x72)])({'isAuthenticated':!![],'authMethod':_0x22b02b[_0xed59(0x73)](_0x1389bf=_0x582904[_0xed59(0x74)],null)&&_0x22b02b['zXDJf'](_0x1389bf,void 0x0)&&_0x1389bf[_0xed59(0x67)](_0x22b02b[_0xed59(0x75)])?_0x22b02b[_0xed59(0x75)]:_0x22b02b[_0xed59(0x76)],'hasValidToken':!![],'userEmail':_0x582904[_0xed59(0x74)],'userName':_0x582904[_0xed59(0x77)]}),await(0x0,_storageService[_0xed59(0x78)])(_0xed59(0x79)),console[_0xed59(0x7a)](_0x22b02b[_0xed59(0x7b)],_0x43adfe);}catch(_0x1e7605){if(_0x22b02b[_0xed59(0x7c)](_0x22b02b[_0xed59(0x7d)],_0xed59(0x2a))){_0x4c5d6f['error'](_0x22b02b[_0xed59(0x7e)],_0x472c6f);throw _0x2130ad;}else console[_0xed59(0x4b)](_0x22b02b[_0xed59(0x7f)],_0x1e7605);}},_0x4e2ced=async _0x2f9aff=>{const _0x21e8e2={'rzABW':function(_0x4a9315,_0x54153f){return _0x22b02b['TlRnn'](_0x4a9315,_0x54153f);},'NAsQf':function(_0x2255fd,_0x2dfea5){return _0x22b02b[_0xed59(0x80)](_0x2255fd,_0x2dfea5);},'yZUly':function(_0x11e6f7,_0xaeef54){return _0x11e6f7(_0xaeef54);}};try{if(_0x22b02b[_0xed59(0x81)](_0x22b02b['hoQma'],_0x22b02b[_0xed59(0x82)]))_0x21e8e2[_0xed59(0x83)](_0x56a937,![]);else{_0x1f0aef(!![]);const _0x4e26d3=await(0x0,_authService[_0xed59(0x84)])(_0x2f9aff);await(0x0,_authService[_0xed59(0x85)])(_0x4e26d3[_0xed59(0x86)]),await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0xed59(0x87),_0x22b02b[_0xed59(0x75)]);_0x4e26d3[_0xed59(0x28)]?(await _asyncStorage[_0xed59(0x6)]['setItem'](_0x22b02b[_0xed59(0x88)],_0x4e26d3[_0xed59(0x28)][_0xed59(0x2e)]['toString']()),_0x4e26d3[_0xed59(0x28)][_0xed59(0x2f)]&&await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b[_0xed59(0x89)],_0x4e26d3[_0xed59(0x28)][_0xed59(0x2f)]),_0x4e26d3[_0xed59(0x28)][_0xed59(0x8a)]&&await _asyncStorage[_0xed59(0x6)]['setItem'](_0x22b02b[_0xed59(0x8b)],_0x4e26d3[_0xed59(0x28)][_0xed59(0x8a)]),console[_0xed59(0x7a)](_0x22b02b['ZCwDc'],_0x4e26d3[_0xed59(0x28)][_0xed59(0x2e)])):_0x22b02b[_0xed59(0x41)](_0x22b02b[_0xed59(0x8c)],_0x22b02b['IblAG'])?(await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b[_0xed59(0x88)],_0x22b02b['PLJvt']),console[_0xed59(0x7a)](_0x22b02b[_0xed59(0x8d)])):(_0x21e8e2[_0xed59(0x8e)](_0x41f461,_0x552712[_0xed59(0x55)](_0x237a37)),_0x21e8e2['yZUly'](_0x57eb4e,!![]));const _0x5ea451={'id':_0x4e26d3[_0xed59(0x14)]['id'],'name':_0x4e26d3[_0xed59(0x14)]['name']||_0x22b02b['iOaFg'],'email':_0x4e26d3['user']['email'],'profilePicture':_0x4e26d3[_0xed59(0x14)]['profilePicture'],'onboarded':![]};return await _asyncStorage['default'][_0xed59(0x5f)](_0x22b02b[_0xed59(0x45)],JSON['stringify'](_0x5ea451)),_0x22b02b[_0xed59(0x56)](_0x1092a3,_0x5ea451),_0x57a73c(!![]),console[_0xed59(0x7a)](_0x22b02b['ueLEN']),_0x5ea451;}}catch(_0x59f141){console[_0xed59(0x4b)](_0x22b02b[_0xed59(0x8f)],_0x59f141);throw _0x59f141;}finally{_0x1f0aef(![]);}},_0x41eb1b=async _0xdc3c96=>{if(_0x22b02b[_0xed59(0x46)](_0x22b02b[_0xed59(0x90)],'RCqtz'))return _0x6e76a7&&_0x2e11f6[_0xed59(0x1)]?_0x56b31c:{'default':_0x284777};else try{_0x22b02b[_0xed59(0x91)](_0x1f0aef,!![]);const _0xf4d5da=await(0x0,_authService[_0xed59(0x92)])(_0xdc3c96);await(0x0,_authService['saveAuthToken'])(_0xf4d5da[_0xed59(0x86)]),await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)]('auth_method',_0x22b02b[_0xed59(0x76)]);const _0x225642={'id':_0xf4d5da['user']['id'],'name':_0xf4d5da[_0xed59(0x14)][_0xed59(0x77)]||_0x22b02b[_0xed59(0x6f)],'email':_0xf4d5da[_0xed59(0x14)][_0xed59(0x74)],'profilePicture':_0xf4d5da[_0xed59(0x14)]['profilePicture'],'onboarded':![]};return await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0xed59(0x14),JSON['stringify'](_0x225642)),_0x1092a3(_0x225642),_0x22b02b[_0xed59(0x93)](_0x57a73c,!![]),console[_0xed59(0x7a)](_0x22b02b[_0xed59(0x94)]),_0x225642;}catch(_0x3f8710){console[_0xed59(0x4b)](_0x22b02b[_0xed59(0x3c)],_0x3f8710);throw _0x3f8710;}finally{_0x1f0aef(![]);}},_0x5d0e7a=async()=>{const _0x2a0de2={'ZvAfn':_0x22b02b['dxnkm']};try{if(_0x22b02b[_0xed59(0x41)](_0xed59(0x33),_0x22b02b[_0xed59(0x95)]))await(0x0,_storageService[_0xed59(0x96)])(),_0x22b02b['TlRnn'](_0x1092a3,null),_0x22b02b[_0xed59(0x93)](_0x57a73c,![]);else{const _0x6b1e07=(0x0,_0x3d0188[_0xed59(0x97)])(_0x39ec20);if(_0x22b02b[_0xed59(0x98)](_0x6b1e07,_0x2824e7))throw new _0x2479dc(_0xed59(0x25));return _0x6b1e07;}}catch(_0x5b8fcb){if(_0x22b02b['THPkc']!==_0x22b02b[_0xed59(0x99)])console[_0xed59(0x4b)]('Failed\x20to\x20remove\x20user\x20data:',_0x5b8fcb);else{_0x130679['error'](_0x2a0de2['ZvAfn'],_0x34b99e);throw _0x1cca28;}}},_0x207871=async _0x313659=>{const _0x614f50={'qevNG':_0x22b02b[_0xed59(0x9a)],'ukNAs':function(_0x256a1f,_0x3c0714){return _0x22b02b[_0xed59(0x9b)](_0x256a1f,_0x3c0714);},'HikNO':_0x22b02b[_0xed59(0x49)]};if(_0x22b02b[_0xed59(0x73)](_0xed59(0x9c),_0xed59(0x9d)))try{const _0x4bae3d={..._0x360722,..._0x313659};await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b[_0xed59(0x45)],JSON['stringify'](_0x4bae3d)),_0x22b02b[_0xed59(0x4a)](_0x1092a3,_0x4bae3d),await _0x22b02b[_0xed59(0x9e)](_0x339887);}catch(_0x4bfcca){if(_0x22b02b[_0xed59(0x73)](_0x22b02b[_0xed59(0x9f)],_0xed59(0xa0))){console[_0xed59(0x4b)](_0x22b02b['Vzbpj'],_0x4bfcca);throw _0x4bfcca;}else{const _0x45e863=_0x614f50[_0xed59(0xa1)]['split']('|');let _0x3e714e=0x0;while(!![]){switch(_0x45e863[_0x3e714e++]){case'0':_0x614f50[_0xed59(0xa2)](_0x4a61f6,![]);continue;case'1':_0x3b9fd1(!![]);continue;case'2':_0x614f50[_0xed59(0xa2)](_0x4482df,!![]);continue;case'3':_0x549399[_0xed59(0x7a)](_0x614f50[_0xed59(0xa3)]);continue;case'4':_0x614f50[_0xed59(0xa2)](_0x866a44,_0x29543d[_0xed59(0x55)](_0x4a7f19));continue;case'5':return;}break;}}}else _0x174bc0(![]);},_0x410c81=async _0x2ff5c4=>{const _0x3a8006={'odiZb':_0x22b02b[_0xed59(0xa4)]};try{if(_0x22b02b[_0xed59(0xa5)](_0x22b02b[_0xed59(0xa6)],_0x22b02b[_0xed59(0xa6)])){if(!_0x360722)return;const _0x348de7={..._0x360722,..._0x2ff5c4};await _asyncStorage[_0xed59(0x6)]['setItem'](_0x22b02b['EWKOC'],JSON[_0xed59(0x60)](_0x348de7)),_0x22b02b[_0xed59(0x91)](_0x1092a3,_0x348de7);}else _0x142889[_0xed59(0xa7)](_0x3a8006['odiZb'],_0x524041),_0x2fb521&&(_0x408456[_0xed59(0x7a)](_0xed59(0x18)),_0x4d4cee=!![]);}catch(_0x5c84cc){console[_0xed59(0x4b)](_0x22b02b[_0xed59(0xa8)],_0x5c84cc);}},_0x339887=async()=>{try{_0x22b02b['xgRXe'](_0x1f0aef,!![]),await(0x0,_authService[_0xed59(0xa9)])();if(_0x360722){const _0x271d67={..._0x360722,'onboarded':!![]};await _asyncStorage[_0xed59(0x6)][_0xed59(0x5f)](_0x22b02b[_0xed59(0x45)],JSON[_0xed59(0x60)](_0x271d67)),_0x22b02b[_0xed59(0x48)](_0x1092a3,_0x271d67);}}catch(_0x28cf19){console[_0xed59(0x4b)](_0x22b02b[_0xed59(0xaa)],_0x28cf19);throw _0x28cf19;}finally{_0x1f0aef(![]);}},_0x21c9c4=async()=>{const _0x3c09f0={'RnEPn':_0xed59(0x18)};if(_0x22b02b['VYmJh'](_0x22b02b[_0xed59(0xab)],_0x22b02b[_0xed59(0xac)]))_0x2a9a5b[_0xed59(0x7a)](_0x3c09f0[_0xed59(0xad)]),_0x41b896=!![];else try{const _0x1174b5=_0xed59(0xae)[_0xed59(0xaf)]('|');let _0x35741b=0x0;while(!![]){switch(_0x1174b5[_0x35741b++]){case'0':await _asyncStorage['default']['removeItem'](_0x22b02b[_0xed59(0xb0)]);continue;case'1':_0x1092a3(null);continue;case'2':_0x22b02b[_0xed59(0x4a)](_0x57a73c,![]);continue;case'3':await _asyncStorage[_0xed59(0x6)]['removeItem'](_0x22b02b[_0xed59(0x45)]);continue;case'4':await(0x0,_authService[_0xed59(0x6a)])();continue;case'5':console[_0xed59(0x7a)](_0xed59(0xb1));continue;case'6':_0x5321f6(![]);continue;}break;}}catch(_0x259981){console['error'](_0x22b02b['nUHNf'],_0x259981);throw _0x259981;}};return _react[_0xed59(0x6)]['createElement'](AuthContext[_0xed59(0xb2)],{'value':{'user':_0x360722,'isLoading':_0xd6bcc5,'hasCompletedOnboarding':_0xdb038f,'login':_0x3b2014,'logout':_0x5d0e7a,'deleteAccount':_0x21c9c4,'completeOnboarding':_0x207871,'updateUser':_0x410c81,'appleSignIn':_0x4e2ced,'onairosSignIn':_0x41eb1b,'isAuthenticated':_0x182dd3,'updateOnboardedStatus':_0x339887,'getResumeTarget':_storageService['getResumeTarget'],'markStepCompleted':_storageService[_0xed59(0x78)],'updateLastScreen':_storageService[_0xed59(0xb3)],'isReturningUser':_storageService['isReturningUser'],'markEventPageReached':_storageService[_0xed59(0xb4)],'hasEventAccessToken':_storageService[_0xed59(0x43)]}},_0x30da7a);};exports[_0xed59(0x3)]=AuthProvider;const useAuth=()=>{const _0x53838b={'Fujzm':function(_0xf4efea,_0x578277){return _0xf4efea===_0x578277;},'Succr':_0xed59(0x25)},_0x281e69=(0x0,_react['useContext'])(AuthContext);if(_0x53838b[_0xed59(0xb5)](_0x281e69,undefined))throw new Error(_0x53838b[_0xed59(0xb6)]);return _0x281e69;};function _0xed59(_0x20eb7f,_0xed5921){_0x20eb7f=_0x20eb7f-0x0;const _0x499e75=_0x20eb();let _0x2d16d6=_0x499e75[_0x20eb7f];return _0x2d16d6;}exports[_0xed59(0x2)]=useAuth;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react"),
|
|
5
|
+
require("../services/connectedAccountsService"),
|
|
6
|
+
require("../context/AuthContext")
|
|
7
|
+
];
|
|
8
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
+
Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x3d72(0x0)]=void 0x0;function _0x3d72(_0x2e24d4,_0x3d7291){_0x2e24d4=_0x2e24d4-0x0;const _0xf9a9a=_0x2e24();let _0x45d3e3=_0xf9a9a[_0x2e24d4];return _0x45d3e3;}function _0x2e24(){const _0x22cb25=['useConnectedAccounts','GfELY','🔍\x20No\x20user\x20available\x20for\x20fetching\x20connected\x20accounts','MyPAk','gYlua','🔄\x20[HOOK]\x20Refreshing\x20connected\x20accounts...','OXnNj','lIQBy','useState','useCallback','rAdGG','MDsxU','FTSea','zjgWn','OMLqq','log','eIzOW','ynbqB','🚀\x20[HOOK]\x20Starting\x20connected\x20accounts\x20fetch\x20with\x20new\x20smart\x20API...','SuacY','name','getConnectedAccountsSmart','length','\x20accounts','error','❌\x20[HOOK]\x20Error\x20fetching\x20connected\x20accounts:','uITXa','https://','.com/','some','platform','toLowerCase','map','wccbP','QSBZq','hiNVM','mrxfg','filter','LEOQu','fCTzL','SZOsS','useEffect'];_0x2e24=function(){return _0x22cb25;};return _0x2e24();}var _react=__ONAIROS_REQ_FUNC__(0x0),_connectedAccountsService=__ONAIROS_REQ_FUNC__(0x1),_AuthContext=__ONAIROS_REQ_FUNC__(0x2);const useConnectedAccounts=()=>{const _0x1100f7={'zjgWn':function(_0x20200e,_0x3e8be9){return _0x20200e(_0x3e8be9);},'wccbP':'✅\x20[HOOK]\x20Account\x20added\x20locally:','rAdGG':_0x3d72(0x1),'FTSea':_0x3d72(0x2),'aeigO':function(_0x1b7fe3,_0x5b4a7d){return _0x1b7fe3!==_0x5b4a7d;},'OMLqq':_0x3d72(0x3),'ynbqB':function(_0x523134,_0x3acff6){return _0x523134(_0x3acff6);},'SuacY':'🚀\x20[HOOK]\x20User\x20info\x20available:','Unqfc':function(_0x23cbdb,_0xa0ba24){return _0x23cbdb===_0xa0ba24;},'QSBZq':'✅\x20[HOOK]\x20Account\x20removed\x20locally:','GEjqi':_0x3d72(0x4),'uTFSF':_0x3d72(0x5),'hiNVM':function(_0x1701af){return _0x1701af();},'MNRBS':_0x3d72(0x6),'fCTzL':_0x3d72(0x7)},{user:_0x25b1ec}=(0x0,_AuthContext['useAuth'])(),[_0x34563b,_0x5b4f71]=(0x0,_react[_0x3d72(0x8)])([]),[_0x5383fa,_0x1c86af]=(0x0,_react['useState'])(!![]),[_0x12e675,_0x122985]=(0x0,_react[_0x3d72(0x8)])(null),_0x57db8e=(0x0,_react[_0x3d72(0x9)])(async()=>{const _0x46776b={'eIzOW':_0x3d72(0x2)};if(_0x1100f7[_0x3d72(0xa)]===_0x3d72(0xb))_0x3fda5e();else{if(!_0x25b1ec){console['log'](_0x1100f7[_0x3d72(0xc)]),_0x1100f7[_0x3d72(0xd)](_0x1c86af,![]);return;}try{if(_0x1100f7['aeigO'](_0x1100f7[_0x3d72(0xe)],_0x1100f7[_0x3d72(0xe)])){_0x30b6b3[_0x3d72(0xf)](_0x46776b[_0x3d72(0x10)]),_0x6926b0(![]);return;}else{_0x1100f7['zjgWn'](_0x1c86af,!![]),_0x1100f7[_0x3d72(0x11)](_0x122985,null),console[_0x3d72(0xf)](_0x3d72(0x12)),console[_0x3d72(0xf)](_0x1100f7[_0x3d72(0x13)],{'email':_0x25b1ec['email'],'id':_0x25b1ec['id'],'name':_0x25b1ec[_0x3d72(0x14)]});const _0x485b3b=await(0x0,_connectedAccountsService[_0x3d72(0x15)])(_0x25b1ec['email'],_0x25b1ec['id'],_0x25b1ec[_0x3d72(0x14)]);console[_0x3d72(0xf)]('✅\x20[HOOK]\x20Connected\x20accounts\x20loaded\x20via\x20smart\x20API:\x20'+_0x485b3b[_0x3d72(0x16)]+_0x3d72(0x17)),_0x1100f7[_0x3d72(0xd)](_0x5b4f71,_0x485b3b);}}catch(_0x4abedd){console[_0x3d72(0x18)](_0x3d72(0x19),_0x4abedd),_0x1100f7[_0x3d72(0x11)](_0x122985,'Failed\x20to\x20load\x20connected\x20accounts');}finally{if(_0x1100f7['Unqfc'](_0x3d72(0x1a),'uITXa'))_0x1100f7['zjgWn'](_0x1c86af,![]);else{const _0x3f4989=_0x3d72(0x1b)+_0x187b4c['toLowerCase']()+_0x3d72(0x1c)+_0x24a6b4,_0x6317cc={'platform':_0x14781c,'username':_0x3cb28e,'url':_0x3f4989};_0x1100f7['zjgWn'](_0xcd20f3,_0x51b15e=>{const _0x5e77ef=_0x51b15e[_0x3d72(0x1d)](_0x2e7b31=>_0x2e7b31[_0x3d72(0x1e)][_0x3d72(0x1f)]()===_0x55676e['toLowerCase']());return _0x5e77ef?_0x51b15e[_0x3d72(0x20)](_0x43c074=>_0x43c074[_0x3d72(0x1e)]['toLowerCase']()===_0x575325[_0x3d72(0x1f)]()?_0x6317cc:_0x43c074):[..._0x51b15e,_0x6317cc];}),_0x279e47[_0x3d72(0xf)](_0x1100f7[_0x3d72(0x21)],_0x6317cc);}}}},[_0x25b1ec]),_0x49d00e=(0x0,_react['useCallback'])(async()=>{const _0x23dc37={'mrxfg':function(_0x907020,_0x1cf342){return _0x907020(_0x1cf342);},'LEOQu':_0x1100f7[_0x3d72(0x22)]};_0x1100f7['GEjqi']!=='RCMzL'?(console['log'](_0x1100f7['uTFSF']),await _0x1100f7[_0x3d72(0x23)](_0x57db8e)):(_0x23dc37[_0x3d72(0x24)](_0x1a4d1b,_0x26b200=>_0x26b200[_0x3d72(0x25)](_0x2c924c=>_0x2c924c['platform']['toLowerCase']()!==_0x190f23[_0x3d72(0x1f)]())),_0x30228e[_0x3d72(0xf)](_0x23dc37[_0x3d72(0x26)],_0xe69687));},[_0x57db8e]),_0x473e99=(0x0,_react['useCallback'])((_0xb2b76c,_0x228681)=>{const _0x23bbfd=_0x3d72(0x1b)+_0xb2b76c['toLowerCase']()+'.com/'+_0x228681,_0x4f9124={'platform':_0xb2b76c,'username':_0x228681,'url':_0x23bbfd};_0x5b4f71(_0x3947f4=>{const _0x1150a8=_0x3947f4[_0x3d72(0x1d)](_0x343ef8=>_0x343ef8[_0x3d72(0x1e)][_0x3d72(0x1f)]()===_0xb2b76c[_0x3d72(0x1f)]());if(_0x1150a8)return _0x3947f4[_0x3d72(0x20)](_0x4f1518=>_0x4f1518[_0x3d72(0x1e)][_0x3d72(0x1f)]()===_0xb2b76c[_0x3d72(0x1f)]()?_0x4f9124:_0x4f1518);else{if(_0x1100f7['Unqfc'](_0x3d72(0x6),_0x1100f7['MNRBS']))return[..._0x3947f4,_0x4f9124];else{const _0x4d3b39=_0x3063a2[_0x3d72(0x1d)](_0xc44d3e=>_0xc44d3e[_0x3d72(0x1e)]['toLowerCase']()===_0x3bc8d7[_0x3d72(0x1f)]());return _0x4d3b39?_0x394be0[_0x3d72(0x20)](_0x1ff8cf=>_0x1ff8cf[_0x3d72(0x1e)][_0x3d72(0x1f)]()===_0x1e77f5[_0x3d72(0x1f)]()?_0x28d372:_0x1ff8cf):[..._0x102947,_0x2f1077];}}}),console[_0x3d72(0xf)](_0x1100f7[_0x3d72(0x21)],_0x4f9124);},[]),_0x2783fe=(0x0,_react[_0x3d72(0x9)])(_0x13ae8f=>{if(_0x1100f7[_0x3d72(0x27)]!==_0x3d72(0x28))_0x1100f7[_0x3d72(0x11)](_0x5b4f71,_0x33fedb=>_0x33fedb[_0x3d72(0x25)](_0x205797=>_0x205797[_0x3d72(0x1e)][_0x3d72(0x1f)]()!==_0x13ae8f['toLowerCase']())),console[_0x3d72(0xf)](_0x1100f7[_0x3d72(0x22)],_0x13ae8f);else return _0x40d14a[_0x3d72(0x20)](_0x4c2322=>_0x4c2322[_0x3d72(0x1e)][_0x3d72(0x1f)]()===_0x274fb1[_0x3d72(0x1f)]()?_0x4fa9fe:_0x4c2322);},[]);return(0x0,_react[_0x3d72(0x29)])(()=>{_0x57db8e();},[_0x57db8e]),{'connectedAccounts':_0x34563b,'isLoading':_0x5383fa,'error':_0x12e675,'refreshAccounts':_0x49d00e,'addAccount':_0x473e99,'removeAccount':_0x2783fe};};exports[_0x3d72(0x0)]=useConnectedAccounts;
|