@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,98 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _reactNative =
|
|
9
|
-
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); }
|
|
10
|
-
// Store for portal instances
|
|
11
|
-
const portalRefs = {};
|
|
12
|
-
let portalId = 0;
|
|
13
|
-
|
|
14
|
-
// Context to pass portal host state
|
|
15
|
-
const PortalContext = /*#__PURE__*/_react.default.createContext({
|
|
16
|
-
mount: () => 0,
|
|
17
|
-
update: () => {},
|
|
18
|
-
unmount: () => {}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Portal Host component - place this at the root of your app
|
|
23
|
-
*/
|
|
24
|
-
const PortalHost = ({
|
|
25
|
-
children
|
|
26
|
-
}) => {
|
|
27
|
-
const [portals, setPortals] = (0, _react.useState)({});
|
|
28
|
-
const mount = children => {
|
|
29
|
-
const key = ++portalId;
|
|
30
|
-
setPortals(state => ({
|
|
31
|
-
...state,
|
|
32
|
-
[key]: children
|
|
33
|
-
}));
|
|
34
|
-
return key;
|
|
35
|
-
};
|
|
36
|
-
const update = (key, children) => {
|
|
37
|
-
setPortals(state => ({
|
|
38
|
-
...state,
|
|
39
|
-
[key]: children
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
const unmount = key => {
|
|
43
|
-
setPortals(state => {
|
|
44
|
-
const newState = {
|
|
45
|
-
...state
|
|
46
|
-
};
|
|
47
|
-
delete newState[key];
|
|
48
|
-
return newState;
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(PortalContext.Provider, {
|
|
52
|
-
value: {
|
|
53
|
-
mount,
|
|
54
|
-
update,
|
|
55
|
-
unmount
|
|
56
|
-
}
|
|
57
|
-
}, children, Object.keys(portals).map(key => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
58
|
-
key: key,
|
|
59
|
-
style: {
|
|
60
|
-
position: 'absolute',
|
|
61
|
-
top: 0,
|
|
62
|
-
left: 0,
|
|
63
|
-
right: 0,
|
|
64
|
-
bottom: 0,
|
|
65
|
-
zIndex: 9999
|
|
66
|
-
}
|
|
67
|
-
}, portals[Number(key)])));
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Portal component - renders children into the PortalHost
|
|
72
|
-
*/
|
|
73
|
-
exports.PortalHost = PortalHost;
|
|
74
|
-
const Portal = ({
|
|
75
|
-
children
|
|
76
|
-
}) => {
|
|
77
|
-
const {
|
|
78
|
-
mount,
|
|
79
|
-
update,
|
|
80
|
-
unmount
|
|
81
|
-
} = _react.default.useContext(PortalContext);
|
|
82
|
-
const [portalId, setPortalId] = (0, _react.useState)(null);
|
|
83
|
-
(0, _react.useEffect)(() => {
|
|
84
|
-
const id = mount(children);
|
|
85
|
-
setPortalId(id);
|
|
86
|
-
return () => {
|
|
87
|
-
if (portalId) unmount(portalId);
|
|
88
|
-
};
|
|
89
|
-
}, []);
|
|
90
|
-
(0, _react.useEffect)(() => {
|
|
91
|
-
if (portalId !== null) {
|
|
92
|
-
update(portalId, children);
|
|
93
|
-
}
|
|
94
|
-
}, [children, portalId]);
|
|
95
|
-
return null;
|
|
96
|
-
};
|
|
97
|
-
exports.Portal = Portal;
|
|
98
|
-
//# sourceMappingURL=Portal.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
|
+
];
|
|
7
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
+
Object[_0x5909(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x5909(0x1)]=exports[_0x5909(0x2)]=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x596da6,_0x243aa0){const _0x22bd14={'cPiWd':function(_0x308209,_0x39174a){return _0x308209&&_0x39174a;},'sdSgq':function(_0x29888b,_0x23950b){return _0x29888b===_0x23950b;},'PXAhT':function(_0xdb16e9,_0x14cc5a){return _0xdb16e9!=_0x14cc5a;},'WTHUV':_0x5909(0x3),'PJArR':function(_0x37934e,_0xb9dff5){return _0x37934e!==_0xb9dff5;},'ANTKy':_0x5909(0x4),'HKBVS':function(_0x54d5cf,_0x58d938,_0x5b23d4,_0x2e1340){return _0x54d5cf(_0x58d938,_0x5b23d4,_0x2e1340);},'vhrjt':function(_0xb2575d,_0x170719){return _0xb2575d==_0x170719;},'lMJxr':'function'};if(_0x22bd14[_0x5909(0x5)](_0x22bd14[_0x5909(0x6)],typeof WeakMap))var _0x508883=new WeakMap(),_0x2823b9=new WeakMap();return(_interopRequireWildcard=function(_0x113d51,_0x41c7fb){if(_0x22bd14[_0x5909(0x7)](!_0x41c7fb,_0x113d51)&&_0x113d51[_0x5909(0x8)])return _0x113d51;var _0xed9c5a,_0xd7a876,_0x3924c4={'__proto__':null,'default':_0x113d51};if(_0x22bd14[_0x5909(0x9)](null,_0x113d51)||_0x22bd14[_0x5909(0xa)](_0x22bd14[_0x5909(0xb)],typeof _0x113d51)&&_0x5909(0xc)!=typeof _0x113d51)return _0x3924c4;if(_0xed9c5a=_0x41c7fb?_0x2823b9:_0x508883){if(_0xed9c5a[_0x5909(0xd)](_0x113d51))return _0xed9c5a[_0x5909(0xe)](_0x113d51);_0xed9c5a['set'](_0x113d51,_0x3924c4);}for(const _0x27db26 in _0x113d51)_0x22bd14[_0x5909(0xf)](_0x22bd14[_0x5909(0x10)],_0x27db26)&&{}[_0x5909(0x11)][_0x5909(0x12)](_0x113d51,_0x27db26)&&((_0xd7a876=(_0xed9c5a=Object['defineProperty'])&&Object[_0x5909(0x13)](_0x113d51,_0x27db26))&&(_0xd7a876[_0x5909(0xe)]||_0xd7a876[_0x5909(0x14)])?_0x22bd14['HKBVS'](_0xed9c5a,_0x3924c4,_0x27db26,_0xd7a876):_0x3924c4[_0x27db26]=_0x113d51[_0x27db26]);return _0x3924c4;})(_0x596da6,_0x243aa0);}function _0x5909(_0x3cae07,_0x590954){_0x3cae07=_0x3cae07-0x0;const _0x2e5e38=_0x3cae();let _0x3578ad=_0x2e5e38[_0x3cae07];return _0x3578ad;}const portalRefs={};let portalId=0x0;const PortalContext=_react[_0x5909(0x4)][_0x5909(0x15)]({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}}),PortalHost=({children:_0x4c4987})=>{const _0x56b22c={'JpGzn':function(_0x28270e,_0x5e6e69){return _0x28270e(_0x5e6e69);},'dKfZA':function(_0x487dda,_0x12c252){return _0x487dda(_0x12c252);},'yRGlF':function(_0x1f4f3c,_0x506de6){return _0x1f4f3c===_0x506de6;},'ctBnD':_0x5909(0x16)},[_0xf0ca0d,_0x11dee3]=(0x0,_react[_0x5909(0x17)])({}),_0xd10ee1=_0x423cbb=>{const _0x58085c=++portalId;return _0x56b22c[_0x5909(0x18)](_0x11dee3,_0x4d2138=>({..._0x4d2138,[_0x58085c]:_0x423cbb})),_0x58085c;},_0x1ab470=(_0x1f5c4c,_0x1ce66f)=>{_0x56b22c[_0x5909(0x19)](_0x11dee3,_0x57460c=>({..._0x57460c,[_0x1f5c4c]:_0x1ce66f}));},_0x5368ac=_0x227b31=>{if(_0x56b22c[_0x5909(0x1a)](_0x56b22c[_0x5909(0x1b)],_0x56b22c['ctBnD']))_0x56b22c[_0x5909(0x19)](_0x11dee3,_0x560a99=>{const _0x1a6979={..._0x560a99};return delete _0x1a6979[_0x227b31],_0x1a6979;});else{const _0x2bcf40={..._0x3a280e};return delete _0x2bcf40[_0x48be36],_0x2bcf40;}};return _react[_0x5909(0x4)]['createElement'](PortalContext[_0x5909(0x1c)],{'value':{'mount':_0xd10ee1,'update':_0x1ab470,'unmount':_0x5368ac}},_0x4c4987,Object[_0x5909(0x1d)](_0xf0ca0d)[_0x5909(0x1e)](_0x37320e=>_react['default'][_0x5909(0x1f)](_reactNative[_0x5909(0x20)],{'key':_0x37320e,'style':{'position':_0x5909(0x21),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0xf0ca0d[Number(_0x37320e)])));};exports[_0x5909(0x1)]=PortalHost;function _0x3cae(){const _0x3afc96=['defineProperty','PortalHost','Portal','object','default','vhrjt','lMJxr','cPiWd','__esModule','sdSgq','PXAhT','WTHUV','function','has','get','PJArR','ANTKy','hasOwnProperty','call','getOwnPropertyDescriptor','set','createContext','oEQSh','useState','JpGzn','dKfZA','yRGlF','ctBnD','Provider','keys','map','createElement','View','absolute','cuXiE','KKhLJ','useContext','useEffect','aIeBT','osutm','DGqql','Ipdky','sUUNp','OHqED','HndBa','AwGBL','HhEiB','ZwkNA','FfziB','dgvZT','DaASd','CZhbh','GsWrn','FKjoB','dDPgC','GobBh','adPyW','wHdkQ','gxUcK'];_0x3cae=function(){return _0x3afc96;};return _0x3cae();}const Portal=({children:_0x1be450})=>{const _0x2060d6={'Ipdky':function(_0x4274e0,_0x46611f){return _0x4274e0(_0x46611f);},'sUUNp':function(_0x575915,_0x5002a2){return _0x575915===_0x5002a2;},'AwGBL':function(_0x1834c9,_0xede64){return _0x1834c9===_0xede64;},'HhEiB':_0x5909(0x3),'ZwkNA':function(_0x1baa57,_0x24ded3){return _0x1baa57!=_0x24ded3;},'FfziB':_0x5909(0xc),'dgvZT':function(_0x26d629,_0x434cd9){return _0x26d629!==_0x434cd9;},'DaASd':_0x5909(0x4),'CZhbh':function(_0x4e29e4,_0x2abeae,_0x19f042,_0x227f5c){return _0x4e29e4(_0x2abeae,_0x19f042,_0x227f5c);},'aIeBT':_0x5909(0x22),'osutm':function(_0x316dcb,_0x4de5eb){return _0x316dcb(_0x4de5eb);},'DGqql':function(_0x2beb81,_0x3781ba){return _0x2beb81(_0x3781ba);},'GsWrn':function(_0x37fdae,_0x1791c5){return _0x37fdae&&_0x1791c5;},'FKjoB':function(_0x2298b3,_0x416cdc){return _0x2298b3!==_0x416cdc;},'isXER':'cnjnl','kpwZJ':function(_0x11016a,_0x3fe7e7){return _0x11016a===_0x3fe7e7;},'wHdkQ':_0x5909(0x23),'gxUcK':function(_0x368ea9,_0x53db44,_0x52e402){return _0x368ea9(_0x53db44,_0x52e402);}},{mount:_0x356c08,update:_0x5eaeb6,unmount:_0x3ad895}=_react[_0x5909(0x4)][_0x5909(0x24)](PortalContext),[_0x1509dc,_0x12c2ec]=(0x0,_react[_0x5909(0x17)])(null);return(0x0,_react[_0x5909(0x25)])(()=>{if(_0x2060d6['sUUNp'](_0x2060d6[_0x5909(0x26)],_0x2060d6[_0x5909(0x26)])){const _0x4169f2=_0x2060d6[_0x5909(0x27)](_0x356c08,_0x1be450);return _0x2060d6[_0x5909(0x28)](_0x12c2ec,_0x4169f2),()=>{const _0x2fbe84={'HndBa':function(_0x1e5c67,_0x2e65dd){return _0x2060d6[_0x5909(0x29)](_0x1e5c67,_0x2e65dd);}};if(_0x2060d6[_0x5909(0x2a)](_0x5909(0x2b),_0x5909(0x2b))){if(_0x1509dc)_0x2060d6['Ipdky'](_0x3ad895,_0x1509dc);}else{const _0x1007b7=_0x13ebda(_0x369cc9);return _0x2fbe84[_0x5909(0x2c)](_0x511339,_0x1007b7),()=>{if(_0x54ac73)_0x3ace7f(_0x5e79f7);};}};}else{if(!_0x5a7138&&_0x45cdc2&&_0x167fa7[_0x5909(0x8)])return _0x1cc2e1;var _0x522a6b,_0x18b36c,_0x55e18d={'__proto__':null,'default':_0x23a930};if(_0x2060d6[_0x5909(0x2d)](null,_0x29dca0)||_0x2060d6[_0x5909(0x2e)]!=typeof _0x24ffe0&&_0x2060d6[_0x5909(0x2f)](_0x2060d6[_0x5909(0x30)],typeof _0x78e118))return _0x55e18d;if(_0x522a6b=_0x386a0a?_0x1b47ab:_0x20f597){if(_0x522a6b[_0x5909(0xd)](_0x220f63))return _0x522a6b[_0x5909(0xe)](_0x223774);_0x522a6b[_0x5909(0x14)](_0x21efc2,_0x55e18d);}for(const _0x1626ff in _0x162cc7)_0x2060d6[_0x5909(0x31)](_0x2060d6[_0x5909(0x32)],_0x1626ff)&&{}[_0x5909(0x11)][_0x5909(0x12)](_0x5c35af,_0x1626ff)&&((_0x18b36c=(_0x522a6b=_0x4f1d4f[_0x5909(0x0)])&&_0x3d6780[_0x5909(0x13)](_0x49fd48,_0x1626ff))&&(_0x18b36c[_0x5909(0xe)]||_0x18b36c[_0x5909(0x14)])?_0x2060d6[_0x5909(0x33)](_0x522a6b,_0x55e18d,_0x1626ff,_0x18b36c):_0x55e18d[_0x1626ff]=_0x56f108[_0x1626ff]);return _0x55e18d;}},[]),(0x0,_react[_0x5909(0x25)])(()=>{const _0x3f827d={'XXwJL':function(_0x51b458,_0xc34071){return _0x2060d6[_0x5909(0x34)](_0x51b458,_0xc34071);},'GobBh':function(_0x2e168e,_0x4f54b5){return _0x2e168e===_0x4f54b5;},'dMgTX':function(_0x37e4da,_0x28c368){return _0x2060d6[_0x5909(0x2f)](_0x37e4da,_0x28c368);},'YnUGp':_0x2060d6[_0x5909(0x2e)],'YxWdM':_0x2060d6[_0x5909(0x30)],'adPyW':function(_0x4768b6,_0x21c445){return _0x2060d6[_0x5909(0x35)](_0x4768b6,_0x21c445);},'NTPKP':_0x2060d6[_0x5909(0x32)]};if(_0x2060d6['isXER']===_0x5909(0x36)){if('function'==typeof _0x49fdbb)var _0x4421f9=new _0x1155b1(),_0x3cf95f=new _0x5b5891();return(_0x5c5486=function(_0x2c5940,_0x1a3b9b){if(_0x3f827d['XXwJL'](!_0x1a3b9b,_0x2c5940)&&_0x2c5940[_0x5909(0x8)])return _0x2c5940;var _0x46d5f1,_0x6493a3,_0x4a9a62={'__proto__':null,'default':_0x2c5940};if(_0x3f827d[_0x5909(0x37)](null,_0x2c5940)||_0x3f827d['dMgTX'](_0x3f827d['YnUGp'],typeof _0x2c5940)&&_0x3f827d['YxWdM']!=typeof _0x2c5940)return _0x4a9a62;if(_0x46d5f1=_0x1a3b9b?_0x3cf95f:_0x4421f9){if(_0x46d5f1[_0x5909(0xd)](_0x2c5940))return _0x46d5f1[_0x5909(0xe)](_0x2c5940);_0x46d5f1['set'](_0x2c5940,_0x4a9a62);}for(const _0x49aef6 in _0x2c5940)_0x3f827d[_0x5909(0x38)](_0x3f827d['NTPKP'],_0x49aef6)&&{}[_0x5909(0x11)]['call'](_0x2c5940,_0x49aef6)&&((_0x6493a3=(_0x46d5f1=_0x156849[_0x5909(0x0)])&&_0x40cb52['getOwnPropertyDescriptor'](_0x2c5940,_0x49aef6))&&(_0x6493a3[_0x5909(0xe)]||_0x6493a3[_0x5909(0x14)])?_0x46d5f1(_0x4a9a62,_0x49aef6,_0x6493a3):_0x4a9a62[_0x49aef6]=_0x2c5940[_0x49aef6]);return _0x4a9a62;})(_0x3a2720,_0x37631b);}else{if(_0x2060d6[_0x5909(0x31)](_0x1509dc,null)){if(_0x2060d6['kpwZJ'](_0x2060d6[_0x5909(0x39)],_0x2060d6[_0x5909(0x39)]))_0x2060d6[_0x5909(0x3a)](_0x5eaeb6,_0x1509dc,_0x1be450);else{if(_0x22e656)_0x30bf31(_0x3d6bd8);}}}},[_0x1be450,_0x1509dc]),null;};exports[_0x5909(0x2)]=Portal;
|
|
@@ -1,129 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
const API_URL = 'https://api2.onairos.uk';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Create an API instance with authorization headers
|
|
14
|
-
* @returns {Promise<Object>} - The axios instance
|
|
15
|
-
*/
|
|
16
|
-
const createApiInstance = async () => {
|
|
17
|
-
const token = await _asyncStorage.default.getItem('onairosToken');
|
|
18
|
-
return _axios.default.create({
|
|
19
|
-
baseURL: API_URL,
|
|
20
|
-
headers: {
|
|
21
|
-
'Content-Type': 'application/json',
|
|
22
|
-
...(token ? {
|
|
23
|
-
'Authorization': `Bearer ${token}`
|
|
24
|
-
} : {})
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Validate the domain with the Onairos API
|
|
31
|
-
* @returns {Promise<Object>} - The validation response
|
|
32
|
-
*/
|
|
33
|
-
exports.createApiInstance = createApiInstance;
|
|
34
|
-
const validateDomain = async () => {
|
|
35
|
-
try {
|
|
36
|
-
const api = await createApiInstance();
|
|
37
|
-
const response = await api.post('/valid/validate-domain');
|
|
38
|
-
return response.data;
|
|
39
|
-
} catch (error) {
|
|
40
|
-
console.error('Error validating domain:', error);
|
|
41
|
-
return {
|
|
42
|
-
status: false
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Fetch account information
|
|
49
|
-
* @param {string} identifier - The username or email
|
|
50
|
-
* @param {boolean} isEmail - Whether the identifier is an email
|
|
51
|
-
* @returns {Promise<Object>} - The account information
|
|
52
|
-
*/
|
|
53
|
-
exports.validateDomain = validateDomain;
|
|
54
|
-
const fetchAccountInfo = async (identifier, isEmail = false) => {
|
|
55
|
-
try {
|
|
56
|
-
const api = await createApiInstance();
|
|
57
|
-
const jsonData = isEmail ? {
|
|
58
|
-
Info: {
|
|
59
|
-
identifier
|
|
60
|
-
}
|
|
61
|
-
} : {
|
|
62
|
-
Info: {
|
|
63
|
-
userName: identifier
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const endpoint = isEmail ? '/getAccountInfo/email' : '/getAccountInfo';
|
|
67
|
-
const response = await api.post(endpoint, jsonData);
|
|
68
|
-
return response.data;
|
|
69
|
-
} catch (error) {
|
|
70
|
-
console.error('Error fetching account info:', error);
|
|
71
|
-
throw error;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get API URL for data requests
|
|
77
|
-
* @param {Array} approvedRequests - The approved data requests
|
|
78
|
-
* @param {string} pin - The encrypted PIN
|
|
79
|
-
* @param {string} othentSub - The hashed Othent sub
|
|
80
|
-
* @returns {Promise<Object>} - The API URL response
|
|
81
|
-
*/
|
|
82
|
-
exports.fetchAccountInfo = fetchAccountInfo;
|
|
83
|
-
const getApiUrl = async (approvedRequests, pin, othentSub) => {
|
|
84
|
-
try {
|
|
85
|
-
const api = await createApiInstance();
|
|
86
|
-
const jsonData = {
|
|
87
|
-
Info: {
|
|
88
|
-
EncryptedUserPin: pin,
|
|
89
|
-
confirmations: approvedRequests,
|
|
90
|
-
web3Type: 'othent',
|
|
91
|
-
Domain: Platform.OS,
|
|
92
|
-
proofMode: false,
|
|
93
|
-
OthentSub: othentSub
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const response = await api.post('/getAPIurl', jsonData);
|
|
97
|
-
return response.data;
|
|
98
|
-
} catch (error) {
|
|
99
|
-
console.error('Error getting API URL:', error);
|
|
100
|
-
throw error;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Create a new user account
|
|
106
|
-
* @param {string} othentSub - The hashed Othent sub
|
|
107
|
-
* @param {string} pin - The PIN
|
|
108
|
-
* @param {Array} socialAccounts - The selected social accounts
|
|
109
|
-
* @param {string} email - The user's email
|
|
110
|
-
* @returns {Promise<Object>} - The account creation response
|
|
111
|
-
*/
|
|
112
|
-
exports.getApiUrl = getApiUrl;
|
|
113
|
-
const createAccount = async (othentSub, pin, socialAccounts, email) => {
|
|
114
|
-
try {
|
|
115
|
-
const api = await createApiInstance();
|
|
116
|
-
const response = await api.post('/createAccount', {
|
|
117
|
-
othentSub,
|
|
118
|
-
pin,
|
|
119
|
-
socialAccounts,
|
|
120
|
-
email
|
|
121
|
-
});
|
|
122
|
-
return response.data;
|
|
123
|
-
} catch (error) {
|
|
124
|
-
console.error('Error creating account:', error);
|
|
125
|
-
throw error;
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
exports.createAccount = createAccount;
|
|
129
|
-
//# sourceMappingURL=api.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("axios"),
|
|
5
|
+
require("@react-native-async-storage/async-storage"),
|
|
6
|
+
require("../config/api")
|
|
7
|
+
];
|
|
8
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
+
Object['defineProperty'](exports,_0x3ff6(0x0),{'value':!![]}),exports[_0x3ff6(0x1)]=exports[_0x3ff6(0x2)]=exports['fetchAccountInfo']=exports[_0x3ff6(0x3)]=exports['createAccount']=void 0x0;var _axios=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x2a43d6){return _0x2a43d6&&_0x2a43d6[_0x3ff6(0x0)]?_0x2a43d6:{'default':_0x2a43d6};}const API_URL=_api[_0x3ff6(0x4)][_0x3ff6(0x5)],createApiInstance=async()=>{const _0x28d1e7={'cQuBQ':'onairosToken'},_0x42fb13=await _asyncStorage[_0x3ff6(0x6)][_0x3ff6(0x7)](_0x28d1e7[_0x3ff6(0x8)]);return _axios[_0x3ff6(0x6)]['create']({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x42fb13?{'Authorization':_0x3ff6(0x9)+_0x42fb13}:{}}});};exports[_0x3ff6(0x3)]=createApiInstance;const validateDomain=async()=>{const _0x12db7d={'DUZQq':_0x3ff6(0xa),'BvxKX':function(_0x45365c,_0x63daa){return _0x45365c===_0x63daa;},'frctH':'nDrbf','MSVLO':function(_0x45e1ae){return _0x45e1ae();},'frGIR':_0x3ff6(0xb)};try{if(_0x12db7d[_0x3ff6(0xc)](_0x12db7d[_0x3ff6(0xd)],_0x12db7d[_0x3ff6(0xd)])){const _0x322ea7=await _0x12db7d['MSVLO'](createApiInstance),_0x380111=await _0x322ea7[_0x3ff6(0xe)](_0x12db7d['frGIR']);return _0x380111['data'];}else{_0x424830[_0x3ff6(0xf)](_0x12db7d[_0x3ff6(0x10)],_0x11d288);throw _0x45cc55;}}catch(_0x37f15d){return console['error'](_0x3ff6(0x11),_0x37f15d),{'status':![]};}};exports[_0x3ff6(0x1)]=validateDomain;const fetchAccountInfo=async(_0x3c076c,_0x205b97=![])=>{const _0x422ae7={'gVPkN':_0x3ff6(0x12),'bfZgi':function(_0x438b94){return _0x438b94();},'bqCaj':_0x3ff6(0x13),'ZLDIp':_0x3ff6(0x14),'aDRpt':function(_0x246569,_0x3bdf78){return _0x246569===_0x3bdf78;},'NKjnt':_0x3ff6(0x15),'lAEvV':'Error\x20fetching\x20account\x20info:'};try{const _0x284afa=await _0x422ae7[_0x3ff6(0x16)](createApiInstance),_0x1cb35e=_0x205b97?{'Info':{'identifier':_0x3c076c}}:{'Info':{'userName':_0x3c076c}},_0x35e551=_0x205b97?_0x422ae7[_0x3ff6(0x17)]:_0x422ae7['ZLDIp'],_0x31ea10=await _0x284afa[_0x3ff6(0xe)](_0x35e551,_0x1cb35e);return _0x31ea10[_0x3ff6(0x18)];}catch(_0x48072e){if(_0x422ae7['aDRpt'](_0x3ff6(0x19),_0x422ae7[_0x3ff6(0x1a)])){_0x28c78a['error'](_0x422ae7[_0x3ff6(0x1b)],_0x1fed93);throw _0x369846;}else{console[_0x3ff6(0xf)](_0x422ae7[_0x3ff6(0x1c)],_0x48072e);throw _0x48072e;}}};function _0x3ff6(_0x535971,_0x3ff6e8){_0x535971=_0x535971-0x0;const _0x4d9b20=_0x5359();let _0x2f6d2d=_0x4d9b20[_0x535971];return _0x2f6d2d;}exports[_0x3ff6(0x1d)]=fetchAccountInfo;const getApiUrl=async(_0x2b7f36,_0x4be1b6,_0x3e0fa4)=>{const _0xd32f60={'zwNtr':_0x3ff6(0x11),'rHYjb':function(_0x46f03b,_0x27bdf8){return _0x46f03b!==_0x27bdf8;},'jxEhN':_0x3ff6(0x1e),'XeSna':function(_0x463d63){return _0x463d63();},'iSIrm':_0x3ff6(0x1f)};try{if(_0xd32f60['rHYjb'](_0xd32f60[_0x3ff6(0x20)],_0xd32f60[_0x3ff6(0x20)]))return _0x2a7910&&_0x2e47cb[_0x3ff6(0x0)]?_0x1533a8:{'default':_0x5dc003};else{const _0x186cb2=await _0xd32f60['XeSna'](createApiInstance),_0x42958f={'Info':{'EncryptedUserPin':_0x4be1b6,'confirmations':_0x2b7f36,'web3Type':_0x3ff6(0x21),'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x3e0fa4}},_0x1cc6cb=await _0x186cb2[_0x3ff6(0xe)](_0xd32f60[_0x3ff6(0x22)],_0x42958f);return _0x1cc6cb['data'];}}catch(_0x21f5dc){if(_0x3ff6(0x23)===_0x3ff6(0x23)){console[_0x3ff6(0xf)](_0x3ff6(0xa),_0x21f5dc);throw _0x21f5dc;}else return _0x5c3d3c['error'](_0xd32f60[_0x3ff6(0x24)],_0x3ab19e),{'status':![]};}};exports[_0x3ff6(0x2)]=getApiUrl;function _0x5359(){const _0x4f4c01=['__esModule','validateDomain','getApiUrl','createApiInstance','API_CONFIG','BASE_URL','default','getItem','cQuBQ','Bearer\x20','Error\x20getting\x20API\x20URL:','/valid/validate-domain','BvxKX','frctH','post','error','DUZQq','Error\x20validating\x20domain:','Error\x20creating\x20account:','/getAccountInfo/email','/getAccountInfo','DfXkz','bfZgi','bqCaj','data','DhLGN','NKjnt','gVPkN','lAEvV','fetchAccountInfo','OyFXs','/getAPIurl','jxEhN','othent','iSIrm','kfQor','zwNtr','Error\x20fetching\x20account\x20info:','YnXaS','/createAccount','jiCTX','NyBQC','MtbGs','ZDZJV','ATQjw','createAccount'];_0x5359=function(){return _0x4f4c01;};return _0x5359();}const createAccount=async(_0x535b35,_0x5c64be,_0x1a676f,_0x555197)=>{const _0x2636aa={'ATQjw':_0x3ff6(0x25),'jiCTX':function(_0x2a2878,_0x2ea921){return _0x2a2878!==_0x2ea921;},'NyBQC':_0x3ff6(0x26),'MtbGs':'BHirX','ZDZJV':_0x3ff6(0x12)};try{const _0x2dce2d=await createApiInstance(),_0x2be857=await _0x2dce2d[_0x3ff6(0xe)](_0x3ff6(0x27),{'othentSub':_0x535b35,'pin':_0x5c64be,'socialAccounts':_0x1a676f,'email':_0x555197});return _0x2be857[_0x3ff6(0x18)];}catch(_0x1b7e02){if(_0x2636aa[_0x3ff6(0x28)](_0x2636aa[_0x3ff6(0x29)],_0x2636aa[_0x3ff6(0x2a)])){console['error'](_0x2636aa[_0x3ff6(0x2b)],_0x1b7e02);throw _0x1b7e02;}else{_0x2dd390[_0x3ff6(0xf)](_0x2636aa[_0x3ff6(0x2c)],_0x4d56ce);throw _0x4d04ff;}}};exports[_0x3ff6(0x2d)]=createAccount;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require('../assets/icons/YouTubeicon3.png'),
|
|
5
|
+
require('../assets/icons/YouTubeicon2.png'),
|
|
6
|
+
require('../assets/icons/Redditicon.png'),
|
|
7
|
+
require('../assets/icons/Linkedinicon.png'),
|
|
8
|
+
require('../assets/icons/instagram.png'),
|
|
9
|
+
require('../assets/icons/Facebookicon.png'),
|
|
10
|
+
require('../assets/icons/pinterest.png'),
|
|
11
|
+
require('../assets/icons/Gmail.png'),
|
|
12
|
+
require('../assets/icons/twitter.jpg'),
|
|
13
|
+
require('../assets/icons/farcaster.png'),
|
|
14
|
+
require('../assets/icons/chatgpt.png'),
|
|
15
|
+
require('../assets/icons/claude.png'),
|
|
16
|
+
require('../assets/icons/grok.png'),
|
|
17
|
+
require('../assets/icons/gemini.png'),
|
|
18
|
+
require('../assets/icons/swerv_logo.png'),
|
|
19
|
+
require('../assets/images/persona1.png'),
|
|
20
|
+
require('../assets/images/persona2.png'),
|
|
21
|
+
require('../assets/images/persona3.png'),
|
|
22
|
+
require('../assets/images/persona4.png'),
|
|
23
|
+
require('../assets/images/persona5.png'),
|
|
24
|
+
require('../assets/images/OnairosNewLogo.png'),
|
|
25
|
+
require('../assets/images/onairos_logo.png'),
|
|
26
|
+
require('../assets/images/Googlelogo.png'),
|
|
27
|
+
require('../assets/images/Face_ID_logo.png'),
|
|
28
|
+
require('../assets/images/Enochicon1.png'),
|
|
29
|
+
require('../assets/animations/loaderani.json'),
|
|
30
|
+
require('../assets/animations/persona-animation.json')
|
|
31
|
+
];
|
|
32
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
33
|
+
Object['defineProperty'](exports,_0x4a98(0x0),{'value':!![]}),exports[_0x4a98(0x1)]=exports[_0x4a98(0x2)]=exports['getPersonaImage']=exports[_0x4a98(0x3)]=exports[_0x4a98(0x4)]=exports[_0x4a98(0x5)]=exports[_0x4a98(0x6)]=exports['ANIMATIONS']=void 0x0;const PLATFORM_ICONS=exports[_0x4a98(0x3)]={'youtube':__ONAIROS_REQ_FUNC__(0x0),'youtube2':__ONAIROS_REQ_FUNC__(0x1),'reddit':__ONAIROS_REQ_FUNC__(0x2),'linkedin':__ONAIROS_REQ_FUNC__(0x3),'instagram':__ONAIROS_REQ_FUNC__(0x4),'facebook':__ONAIROS_REQ_FUNC__(0x5),'pinterest':__ONAIROS_REQ_FUNC__(0x6),'gmail':__ONAIROS_REQ_FUNC__(0x7),'twitter':__ONAIROS_REQ_FUNC__(0x8),'farcaster':__ONAIROS_REQ_FUNC__(0x9),'chatgpt':__ONAIROS_REQ_FUNC__(0xa),'claude':__ONAIROS_REQ_FUNC__(0xb),'grok':__ONAIROS_REQ_FUNC__(0xc),'gemini':__ONAIROS_REQ_FUNC__(0xd),'default':__ONAIROS_REQ_FUNC__(0xe)},getPlatformIconFromRegistry=_0x2be6a3=>{const _0x556936={'FWlbm':'reddit','CHuJw':_0x4a98(0x7),'xVCZf':'farcaster','JnuXq':'openai'},_0x1153ab=_0x2be6a3[_0x4a98(0x8)]();switch(_0x1153ab){case _0x4a98(0x9):return PLATFORM_ICONS[_0x4a98(0x9)];case _0x556936['FWlbm']:return PLATFORM_ICONS[_0x4a98(0xa)];case _0x4a98(0xb):return PLATFORM_ICONS[_0x4a98(0xb)];case _0x4a98(0xc):return PLATFORM_ICONS[_0x4a98(0xc)];case'facebook':return PLATFORM_ICONS[_0x4a98(0xd)];case _0x4a98(0xe):return PLATFORM_ICONS[_0x4a98(0xe)];case _0x556936['CHuJw']:case'email':return PLATFORM_ICONS[_0x4a98(0x7)];case _0x4a98(0xf):case'x':return PLATFORM_ICONS[_0x4a98(0xf)];case _0x556936[_0x4a98(0x10)]:return PLATFORM_ICONS['farcaster'];case _0x4a98(0x11):case _0x556936[_0x4a98(0x12)]:return PLATFORM_ICONS['chatgpt'];case _0x4a98(0x13):case _0x4a98(0x14):return PLATFORM_ICONS[_0x4a98(0x13)];case _0x4a98(0x15):return PLATFORM_ICONS['grok'];case'gemini':case _0x4a98(0x16):return PLATFORM_ICONS[_0x4a98(0x17)];default:return PLATFORM_ICONS[_0x4a98(0x18)];}};exports['getPlatformIconFromRegistry']=getPlatformIconFromRegistry;function _0x4a98(_0x58a243,_0x4a98ae){_0x58a243=_0x58a243-0x0;const _0x57886e=_0x58a2();let _0x55a88c=_0x57886e[_0x58a243];return _0x55a88c;}const PERSONA_IMAGES=exports[_0x4a98(0x4)]={'level1':__ONAIROS_REQ_FUNC__(0xf),'level2':__ONAIROS_REQ_FUNC__(0x10),'level3':__ONAIROS_REQ_FUNC__(0x11),'level4':__ONAIROS_REQ_FUNC__(0x12),'level5':__ONAIROS_REQ_FUNC__(0x13)},getPersonaImage=_0x5b8ef1=>{const _0x128c32='level'+_0x5b8ef1;return PERSONA_IMAGES[_0x128c32]||PERSONA_IMAGES[_0x4a98(0x19)];};function _0x58a2(){const _0x4e4ce2=['__esModule','getUniversalOnboardingIcon','getPlatformIconFromRegistry','PLATFORM_ICONS','PERSONA_IMAGES','OVERLAY_PLATFORMS','BRAND_IMAGES','gmail','toLowerCase','youtube','reddit','linkedin','instagram','facebook','pinterest','twitter','xVCZf','chatgpt','JnuXq','claude','anthropic','grok','google_ai','gemini','default','level1','getPersonaImage','ANIMATIONS','YouTube','youtube2','Reddit','Pinterest','email','Email','pJVbD','CJxlE'];_0x58a2=function(){return _0x4e4ce2;};return _0x58a2();}exports[_0x4a98(0x1a)]=getPersonaImage;const BRAND_IMAGES=exports[_0x4a98(0x6)]={'onairosLogo':__ONAIROS_REQ_FUNC__(0x14),'onairosLogoAlt':__ONAIROS_REQ_FUNC__(0x15),'googleLogo':__ONAIROS_REQ_FUNC__(0x16),'faceIdLogo':__ONAIROS_REQ_FUNC__(0x17),'enochIcon':__ONAIROS_REQ_FUNC__(0x18)},ANIMATIONS=exports[_0x4a98(0x1b)]={'loader':__ONAIROS_REQ_FUNC__(0x19),'persona':__ONAIROS_REQ_FUNC__(0x1a)},OVERLAY_PLATFORMS=exports['OVERLAY_PLATFORMS']=[{'id':'instagram','name':'Instagram','icon':PLATFORM_ICONS['instagram']},{'id':'youtube','name':_0x4a98(0x1c),'icon':PLATFORM_ICONS[_0x4a98(0x1d)]},{'id':_0x4a98(0xa),'name':_0x4a98(0x1e),'icon':PLATFORM_ICONS['reddit']},{'id':_0x4a98(0xe),'name':_0x4a98(0x1f),'icon':PLATFORM_ICONS['pinterest']},{'id':_0x4a98(0x20),'name':_0x4a98(0x21),'icon':PLATFORM_ICONS['gmail']}],getUniversalOnboardingIcon=_0x4713ce=>{const _0x1f96e4={'pJVbD':_0x4a98(0xa),'CJxlE':_0x4a98(0xb)},_0x5b5832=_0x4713ce['toLowerCase']();switch(_0x5b5832){case'instagram':return PLATFORM_ICONS[_0x4a98(0xc)];case _0x4a98(0x9):return PLATFORM_ICONS[_0x4a98(0x1d)];case _0x1f96e4[_0x4a98(0x22)]:return PLATFORM_ICONS[_0x4a98(0xa)];case _0x4a98(0xe):return PLATFORM_ICONS[_0x4a98(0xe)];case _0x4a98(0xd):return PLATFORM_ICONS[_0x4a98(0xd)];case _0x1f96e4[_0x4a98(0x23)]:return PLATFORM_ICONS[_0x4a98(0xb)];case _0x4a98(0x7):case'email':return PLATFORM_ICONS[_0x4a98(0x7)];default:return PLATFORM_ICONS['default'];}};exports[_0x4a98(0x1)]=getUniversalOnboardingIcon;
|
|
@@ -1,111 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
const API_URL = 'https://api2.onairos.uk';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Get the encrypted PIN for a user
|
|
14
|
-
* @param {string} hashedOthentSub - The hashed Othent sub
|
|
15
|
-
* @returns {Promise<Object>} - The response containing the encrypted PIN
|
|
16
|
-
*/
|
|
17
|
-
const getPin = async hashedOthentSub => {
|
|
18
|
-
try {
|
|
19
|
-
const response = await _axios.default.post(`${API_URL}/getPin`, {
|
|
20
|
-
hashedOthentSub
|
|
21
|
-
});
|
|
22
|
-
return response.data;
|
|
23
|
-
} catch (error) {
|
|
24
|
-
console.error('Error getting PIN:', error);
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Verify a token with the Onairos API
|
|
31
|
-
* @param {string} token - The token to verify
|
|
32
|
-
* @returns {Promise<boolean>} - Whether the token is valid
|
|
33
|
-
*/
|
|
34
|
-
exports.getPin = getPin;
|
|
35
|
-
const verifyToken = async token => {
|
|
36
|
-
try {
|
|
37
|
-
const response = await _axios.default.post(`${API_URL}/verifyToken`, {}, {
|
|
38
|
-
headers: {
|
|
39
|
-
'Authorization': `Bearer ${token}`
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return response.data.valid;
|
|
43
|
-
} catch (error) {
|
|
44
|
-
console.error('Error verifying token:', error);
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Store authentication data
|
|
51
|
-
* @param {string} token - The authentication token
|
|
52
|
-
* @param {string} username - The username
|
|
53
|
-
* @param {Object} othentData - The Othent user data
|
|
54
|
-
*/
|
|
55
|
-
exports.verifyToken = verifyToken;
|
|
56
|
-
const storeAuthData = async (token, username = null, othentData = null) => {
|
|
57
|
-
try {
|
|
58
|
-
await _asyncStorage.default.setItem('onairosToken', token);
|
|
59
|
-
if (username) {
|
|
60
|
-
await _asyncStorage.default.setItem('username', username);
|
|
61
|
-
}
|
|
62
|
-
if (othentData) {
|
|
63
|
-
await _asyncStorage.default.setItem('othentToken', JSON.stringify(othentData));
|
|
64
|
-
}
|
|
65
|
-
} catch (error) {
|
|
66
|
-
console.error('Error storing auth data:', error);
|
|
67
|
-
throw error;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Clear authentication data
|
|
73
|
-
*/
|
|
74
|
-
exports.storeAuthData = storeAuthData;
|
|
75
|
-
const clearAuthData = async () => {
|
|
76
|
-
try {
|
|
77
|
-
await _asyncStorage.default.removeItem('onairosToken');
|
|
78
|
-
await _asyncStorage.default.removeItem('username');
|
|
79
|
-
await _asyncStorage.default.removeItem('othentToken');
|
|
80
|
-
} catch (error) {
|
|
81
|
-
console.error('Error clearing auth data:', error);
|
|
82
|
-
throw error;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Get stored authentication data
|
|
88
|
-
* @returns {Promise<Object>} - The stored authentication data
|
|
89
|
-
*/
|
|
90
|
-
exports.clearAuthData = clearAuthData;
|
|
91
|
-
const getStoredAuthData = async () => {
|
|
92
|
-
try {
|
|
93
|
-
const token = await _asyncStorage.default.getItem('onairosToken');
|
|
94
|
-
const username = await _asyncStorage.default.getItem('username');
|
|
95
|
-
const othentToken = await _asyncStorage.default.getItem('othentToken');
|
|
96
|
-
return {
|
|
97
|
-
token,
|
|
98
|
-
username,
|
|
99
|
-
othentToken: othentToken ? JSON.parse(othentToken) : null
|
|
100
|
-
};
|
|
101
|
-
} catch (error) {
|
|
102
|
-
console.error('Error getting stored auth data:', error);
|
|
103
|
-
return {
|
|
104
|
-
token: null,
|
|
105
|
-
username: null,
|
|
106
|
-
othentToken: null
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
exports.getStoredAuthData = getStoredAuthData;
|
|
111
|
-
//# sourceMappingURL=auth.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("axios"),
|
|
5
|
+
require("@react-native-async-storage/async-storage"),
|
|
6
|
+
require("../config/api")
|
|
7
|
+
];
|
|
8
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
+
Object[_0xa9d1(0x0)](exports,_0xa9d1(0x1),{'value':!![]}),exports['verifyToken']=exports[_0xa9d1(0x2)]=exports['getStoredAuthData']=exports['getPin']=exports['clearAuthData']=void 0x0;var _axios=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x1098c2){return _0x1098c2&&_0x1098c2[_0xa9d1(0x1)]?_0x1098c2:{'default':_0x1098c2};}const API_URL=_api['API_CONFIG'][_0xa9d1(0x3)],getPin=async _0x8a17e2=>{const _0x36decc={'LKLye':_0xa9d1(0x4)};try{const _0x210d9b=await _axios[_0xa9d1(0x5)]['post'](API_URL+_0xa9d1(0x6),{'hashedOthentSub':_0x8a17e2});return _0x210d9b['data'];}catch(_0x217d06){console[_0xa9d1(0x7)](_0x36decc[_0xa9d1(0x8)],_0x217d06);throw _0x217d06;}};exports[_0xa9d1(0x9)]=getPin;const verifyToken=async _0x46ed88=>{const _0x28890b={'zOAYp':_0xa9d1(0xa)};try{const _0x2e5384=await _axios['default'][_0xa9d1(0xb)](API_URL+_0xa9d1(0xc),{},{'headers':{'Authorization':_0xa9d1(0xd)+_0x46ed88}});return _0x2e5384[_0xa9d1(0xe)][_0xa9d1(0xf)];}catch(_0x4c4421){return console['error'](_0x28890b[_0xa9d1(0x10)],_0x4c4421),![];}};exports['verifyToken']=verifyToken;function _0xa9d1(_0x9cc790,_0xa9d162){_0x9cc790=_0x9cc790-0x0;const _0x132a01=_0x9cc7();let _0x2ab2b4=_0x132a01[_0x9cc790];return _0x2ab2b4;}const storeAuthData=async(_0x502284,_0x3c8945=null,_0xe83167=null)=>{const _0x3068b7={'RqHaq':_0xa9d1(0x11),'kEQtA':_0xa9d1(0x12),'YIxyo':'zRlJs','PLZNS':_0xa9d1(0x13),'LdRlf':_0xa9d1(0x14),'WOzVd':'othentToken','ArbmX':_0xa9d1(0x15)};try{await _asyncStorage[_0xa9d1(0x5)]['setItem'](_0x3068b7['kEQtA'],_0x502284);if(_0x3c8945){if(_0x3068b7[_0xa9d1(0x16)]!==_0x3068b7[_0xa9d1(0x17)])await _asyncStorage[_0xa9d1(0x5)][_0xa9d1(0x18)](_0x3068b7[_0xa9d1(0x19)],_0x3c8945);else return _0x1c86c6[_0xa9d1(0x7)](_0x3068b7[_0xa9d1(0x1a)],_0x20ffa4),{'token':null,'username':null,'othentToken':null};}_0xe83167&&await _asyncStorage[_0xa9d1(0x5)][_0xa9d1(0x18)](_0x3068b7[_0xa9d1(0x1b)],JSON[_0xa9d1(0x1c)](_0xe83167));}catch(_0x278d2d){console[_0xa9d1(0x7)](_0x3068b7[_0xa9d1(0x1d)],_0x278d2d);throw _0x278d2d;}};exports['storeAuthData']=storeAuthData;function _0x9cc7(){const _0x236ce7=['defineProperty','__esModule','storeAuthData','BASE_URL','Error\x20getting\x20PIN:','default','/getPin','error','LKLye','getPin','Error\x20verifying\x20token:','post','/verifyToken','Bearer\x20','data','valid','zOAYp','Error\x20getting\x20stored\x20auth\x20data:','onairosToken','iXKvC','username','Error\x20storing\x20auth\x20data:','YIxyo','PLZNS','setItem','LdRlf','RqHaq','WOzVd','stringify','ArbmX','othentToken','oTWxr','Error\x20clearing\x20auth\x20data:','clearAuthData','HbMtR','xBalD','JMHxA','BPmmx','RCAea','getItem','iQMbL','evEBg','hYOcG','WeFpA','VzrEE','yQtXN','getStoredAuthData'];_0x9cc7=function(){return _0x236ce7;};return _0x9cc7();}const clearAuthData=async()=>{const _0x17ea2b={'uSpYk':'onairosToken','oTWxr':_0xa9d1(0x14),'xNvKr':_0xa9d1(0x1e)};try{await _asyncStorage['default']['removeItem'](_0x17ea2b['uSpYk']),await _asyncStorage['default']['removeItem'](_0x17ea2b[_0xa9d1(0x1f)]),await _asyncStorage[_0xa9d1(0x5)]['removeItem'](_0x17ea2b['xNvKr']);}catch(_0x2534b6){console[_0xa9d1(0x7)](_0xa9d1(0x20),_0x2534b6);throw _0x2534b6;}};exports[_0xa9d1(0x21)]=clearAuthData;const getStoredAuthData=async()=>{const _0x450a59={'vVpbp':_0xa9d1(0x4),'JMHxA':function(_0x48a821,_0x505e83){return _0x48a821!==_0x505e83;},'BPmmx':_0xa9d1(0x22),'RCAea':_0xa9d1(0x23),'iQMbL':_0xa9d1(0x12),'evEBg':_0xa9d1(0x14),'hYOcG':'othentToken','WeFpA':function(_0x46d398,_0x20b68c){return _0x46d398===_0x20b68c;},'VzrEE':'XFDNW','jWLNb':'izRRz','yQtXN':_0xa9d1(0x11)};try{if(_0x450a59[_0xa9d1(0x24)](_0x450a59[_0xa9d1(0x25)],_0x450a59[_0xa9d1(0x26)])){const _0x75bef7=await _asyncStorage[_0xa9d1(0x5)][_0xa9d1(0x27)](_0x450a59[_0xa9d1(0x28)]),_0x2b32bb=await _asyncStorage[_0xa9d1(0x5)][_0xa9d1(0x27)](_0x450a59[_0xa9d1(0x29)]),_0x4a0292=await _asyncStorage[_0xa9d1(0x5)]['getItem'](_0x450a59[_0xa9d1(0x2a)]);return{'token':_0x75bef7,'username':_0x2b32bb,'othentToken':_0x4a0292?JSON['parse'](_0x4a0292):null};}else{_0x41855b['error'](_0x450a59['vVpbp'],_0x16f838);throw _0x2ddb18;}}catch(_0x25795f){return _0x450a59[_0xa9d1(0x2b)](_0x450a59[_0xa9d1(0x2c)],_0x450a59['jWLNb'])?_0x50372a&&_0x289cc5[_0xa9d1(0x1)]?_0x1c1f13:{'default':_0x59f3d9}:(console['error'](_0x450a59[_0xa9d1(0x2d)],_0x25795f),{'token':null,'username':null,'othentToken':null});}};exports[_0xa9d1(0x2e)]=getStoredAuthData;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("../config/api"),
|
|
5
|
+
require('./webviewScripts'),
|
|
6
|
+
require('./webviewScripts'),
|
|
7
|
+
require('./webviewScripts'),
|
|
8
|
+
require('./webviewScripts'),
|
|
9
|
+
require('./webviewScripts'),
|
|
10
|
+
require('./webviewScripts'),
|
|
11
|
+
require('./webviewScripts'),
|
|
12
|
+
require('../services/chatGPTConversationService'),
|
|
13
|
+
require('../services/claudeConversationService'),
|
|
14
|
+
require('../services/hingeDataService'),
|
|
15
|
+
require('../services/instagramDataService'),
|
|
16
|
+
require('../services/sephoraDataService'),
|
|
17
|
+
require('../services/telegramDataService'),
|
|
18
|
+
require('../services/hingeDataExtractor'),
|
|
19
|
+
require('../services/instagramDataExtractor'),
|
|
20
|
+
require('../services/sephoraDataExtractor'),
|
|
21
|
+
require('../services/telegramDataExtractor'),
|
|
22
|
+
require('./webviewScripts'),
|
|
23
|
+
require('./webviewScripts'),
|
|
24
|
+
require('./webviewScripts'),
|
|
25
|
+
require(`../services/${platform}DataService`),
|
|
26
|
+
require(`../services/${platform}DataExtractor`)
|
|
27
|
+
];
|
|
28
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
29
|
+
Object['defineProperty'](exports,_0x1024(0x0),{'value':!![]}),exports[_0x1024(0x1)]=exports[_0x1024(0x2)]=exports[_0x1024(0x3)]=exports['testPlatformConnector']=exports[_0x1024(0x4)]=exports[_0x1024(0x5)]=exports[_0x1024(0x6)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0);const testWebViewScriptExports=()=>{const _0x442270={'kGkyN':function(_0x261365,_0x340a45){return _0x261365===_0x340a45;},'mLYyb':_0x1024(0x7),'mRqan':_0x1024(0x8),'jcxyV':_0x1024(0x9),'IuuUM':_0x1024(0xa),'FAusg':_0x1024(0xb),'qZFtS':_0x1024(0xc),'CYPdh':function(_0xf709b9,_0x3331d0){return _0xf709b9(_0x3331d0);},'OmYBY':_0x1024(0xd),'prHEy':_0x1024(0xe),'CoTAx':_0x1024(0xf),'bDkNF':function(_0x21b4ce,_0x2450aa){return _0x21b4ce(_0x2450aa);},'gdPgx':_0x1024(0x10),'fDtMV':_0x1024(0x11),'DPSKq':function(_0x3cf85f,_0x3569c3){return _0x3cf85f(_0x3569c3);},'sBHZG':_0x1024(0x12),'gsVTw':_0x1024(0x13),'guSXq':_0x1024(0x14),'HrZlb':_0x1024(0x15),'YoAdl':_0x1024(0x16),'TzCgK':function(_0x3441bb,_0x3a3847){return _0x3441bb(_0x3a3847);},'vhgqL':_0x1024(0x17),'nAcgr':_0x1024(0x18),'pkbiS':_0x1024(0x19),'NqWRf':function(_0x594038,_0x5a32bb){return _0x594038(_0x5a32bb);},'slVWU':_0x1024(0x1a),'QfNTP':function(_0x4bdef4,_0x5f4563){return _0x4bdef4&&_0x5f4563;},'gzNun':'all'},_0x80c746=[];try{if(_0x1024(0x8)!==_0x442270[_0x1024(0x1b)]){const _0x3b03f0=_0x442270[_0x1024(0x1c)](_0x55197d[_0x1024(0x1d)],_0x1024(0xb))?'✅':_0x442270[_0x1024(0x1c)](_0x15cfad[_0x1024(0x1d)],_0x442270[_0x1024(0x1e)])?'❌':'⚠️';_0x3a9940[_0x1024(0x1f)](_0x3b03f0+'\x20'+_0x498250[_0x1024(0x20)]+':\x20'+_0x464758['message']);}else{const {CHATGPT_CONSENT_POPUP_SCRIPT:_0x2ad698,CHATGPT_EXPORT_SCRIPT:_0x2af312}=__ONAIROS_REQ_FUNC__(0x14);_0x80c746[_0x1024(0x21)]({'platform':_0x442270['jcxyV'],'component':_0x442270[_0x1024(0x22)],'status':_0x2af312?_0x442270[_0x1024(0x23)]:_0x442270[_0x1024(0x1e)],'message':_0x2af312?_0x1024(0x24):_0x442270['qZFtS']});const {CLAUDE_CONSENT_POPUP_SCRIPT:_0xbd2980,CLAUDE_EXPORT_SCRIPT:_0x5990f8}=_0x442270[_0x1024(0x25)](__ONAIROS_REQ_FUNC__,0x13);_0x80c746['push']({'platform':_0x442270[_0x1024(0x26)],'component':_0x442270['IuuUM'],'status':_0x5990f8?_0x1024(0xb):_0x442270[_0x1024(0x1e)],'message':_0x5990f8?_0x442270[_0x1024(0x27)]:_0x442270[_0x1024(0x28)]});const {HINGE_CONSENT_POPUP_SCRIPT:_0x2a6c2a,HINGE_EXPORT_SCRIPT:_0x27e135}=_0x442270[_0x1024(0x29)](__ONAIROS_REQ_FUNC__,0x12);_0x80c746[_0x1024(0x21)]({'platform':_0x442270['gdPgx'],'component':_0x442270[_0x1024(0x22)],'status':_0x27e135?_0x442270['FAusg']:_0x1024(0x7),'message':_0x27e135?'Hinge\x20scripts\x20exported\x20correctly':_0x442270[_0x1024(0x2a)]});const {INSTAGRAM_CONSENT_POPUP_SCRIPT:_0x43752b,INSTAGRAM_EXPORT_SCRIPT:_0x55a533}=_0x442270[_0x1024(0x2b)](__ONAIROS_REQ_FUNC__,0x7);_0x80c746[_0x1024(0x21)]({'platform':_0x442270[_0x1024(0x2c)],'component':_0x442270[_0x1024(0x22)],'status':_0x55a533?_0x442270[_0x1024(0x23)]:_0x1024(0x7),'message':_0x55a533?_0x1024(0x2d):_0x442270[_0x1024(0x2e)]});const {SEPHORA_CONSENT_POPUP_SCRIPT:_0xf5f3af,SEPHORA_EXPORT_SCRIPT:_0x21b2db}=_0x442270[_0x1024(0x2b)](__ONAIROS_REQ_FUNC__,0x6);_0x80c746[_0x1024(0x21)]({'platform':_0x442270[_0x1024(0x2f)],'component':'webview_scripts','status':_0x21b2db?_0x442270[_0x1024(0x23)]:_0x442270[_0x1024(0x1e)],'message':_0x21b2db?_0x442270[_0x1024(0x30)]:_0x442270['YoAdl']});const {TELEGRAM_CONSENT_POPUP_SCRIPT:_0x15341b,TELEGRAM_EXPORT_SCRIPT:_0x279086}=_0x442270['TzCgK'](__ONAIROS_REQ_FUNC__,0x5);_0x80c746['push']({'platform':_0x442270[_0x1024(0x31)],'component':_0x442270['IuuUM'],'status':_0x279086?_0x442270[_0x1024(0x23)]:_0x1024(0x7),'message':_0x279086?_0x442270[_0x1024(0x32)]:_0x442270['pkbiS']});const {isWebViewExtractionPlatform:_0x2638cb,isHingePlatform:_0x3490d9,isInstagramPlatform:_0x360578,isSephoraPlatform:_0x2fdb83,isTelegramPlatform:_0x204806}=_0x442270[_0x1024(0x33)](__ONAIROS_REQ_FUNC__,0x4);_0x80c746[_0x1024(0x21)]({'platform':_0x442270['slVWU'],'component':_0x1024(0x34),'status':_0x442270[_0x1024(0x35)](_0x2638cb,_0x3490d9)&&_0x360578&&_0x2fdb83&&_0x204806?_0x1024(0xb):_0x442270[_0x1024(0x1e)],'message':_0x1024(0x36)});}}catch(_0x59e185){_0x80c746[_0x1024(0x21)]({'platform':_0x442270[_0x1024(0x37)],'component':_0x1024(0xa),'status':_0x1024(0x7),'message':'Import\x20error:\x20'+_0x59e185['message']});}return _0x80c746;};exports[_0x1024(0x1)]=testWebViewScriptExports;const testServiceImports=()=>{const _0x278484={'AlPOJ':'sephora','EAIUY':_0x1024(0x38),'nSIlw':function(_0x16375e,_0x26aafd){return _0x16375e===_0x26aafd;},'fFqiH':_0x1024(0x39),'IqNTt':_0x1024(0xb),'Ltefu':_0x1024(0x7),'CIDRb':'hinge','nDqJc':'extractor','Vdjem':function(_0x280b8a,_0x132532){return _0x280b8a===_0x132532;},'cXSKS':_0x1024(0x3a),'hNVqP':_0x1024(0x9),'fVAfO':function(_0x376024,_0x9a9833){return _0x376024(_0x9a9833);},'YGbBK':function(_0x46099d,_0x4ccfcd){return _0x46099d===_0x4ccfcd;},'bMPYv':_0x1024(0x3b),'oOusr':function(_0x326ad5,_0x550e20){return _0x326ad5!==_0x550e20;},'eDJfb':'ekXMG','zUwAM':_0x1024(0x3c),'sOSpu':_0x1024(0xd),'IZulN':_0x1024(0x3d),'qmNzv':_0x1024(0x3e),'FUOSB':function(_0x4e9015,_0x483b12){return _0x4e9015(_0x483b12);},'hNtQo':_0x1024(0x3f),'cdHlH':'instagram','IROGr':function(_0x21fd48,_0x59f6a3){return _0x21fd48===_0x59f6a3;},'whHEH':_0x1024(0x40),'dQjhU':_0x1024(0x41),'XGwhk':_0x1024(0x42),'hTDZV':function(_0x42fc78,_0x206385){return _0x42fc78!==_0x206385;},'UAtJx':_0x1024(0x43),'hVAza':'Telegram\x20service\x20function\x20available','QkwQU':_0x1024(0x17)},_0x2244d7=[];try{const {storeChatGPTConversations:_0x47bceb}=_0x278484[_0x1024(0x44)](__ONAIROS_REQ_FUNC__,0x8);_0x2244d7[_0x1024(0x21)]({'platform':'chatgpt','component':_0x1024(0x38),'status':_0x278484[_0x1024(0x45)](typeof _0x47bceb,_0x278484[_0x1024(0x46)])?_0x278484[_0x1024(0x47)]:_0x278484[_0x1024(0x48)],'message':_0x278484[_0x1024(0x49)]});}catch(_0x1dc74d){if(_0x278484['oOusr'](_0x278484[_0x1024(0x4a)],_0x278484[_0x1024(0x4b)]))_0x2244d7[_0x1024(0x21)]({'platform':_0x278484['hNVqP'],'component':_0x278484[_0x1024(0x4c)],'status':_0x278484[_0x1024(0x48)],'message':'Import\x20error:\x20'+_0x1dc74d[_0x1024(0x4d)]});else{const {storeSephoraData:_0x57ca91}=_0x4b58ab(0xc);_0x570c10[_0x1024(0x21)]({'platform':_0x278484[_0x1024(0x4e)],'component':_0x278484[_0x1024(0x4c)],'status':_0x278484[_0x1024(0x4f)](typeof _0x57ca91,_0x278484['fFqiH'])?_0x278484[_0x1024(0x47)]:_0x278484[_0x1024(0x48)],'message':'Sephora\x20service\x20function\x20available'});}}try{const {storeClaudeConversations:_0x1c6d93}=_0x278484['fVAfO'](__ONAIROS_REQ_FUNC__,0x9);_0x2244d7[_0x1024(0x21)]({'platform':_0x278484['sOSpu'],'component':_0x278484['EAIUY'],'status':_0x278484[_0x1024(0x50)](typeof _0x1c6d93,_0x278484[_0x1024(0x46)])?_0x278484[_0x1024(0x47)]:_0x278484[_0x1024(0x48)],'message':_0x278484[_0x1024(0x51)]});}catch(_0x372922){_0x2244d7['push']({'platform':_0x1024(0xd),'component':_0x278484[_0x1024(0x4c)],'status':_0x1024(0x7),'message':_0x1024(0x52)+_0x372922[_0x1024(0x4d)]});}try{if(_0x278484[_0x1024(0x50)](_0x278484[_0x1024(0x53)],_0x278484['qmNzv'])){const {storeHingeData:_0x1122cc}=_0x278484[_0x1024(0x54)](__ONAIROS_REQ_FUNC__,0xa);_0x2244d7['push']({'platform':_0x1024(0x10),'component':'service','status':typeof _0x1122cc===_0x278484[_0x1024(0x46)]?_0x278484[_0x1024(0x47)]:_0x278484[_0x1024(0x48)],'message':_0x278484['hNtQo']});}else{const {useHingeDataExtractor:useHingeDataExtractor}=_0x3d61b5(0xe);_0x4bc7f3[_0x1024(0x21)]({'platform':_0x278484[_0x1024(0x55)],'component':_0x278484[_0x1024(0x56)],'status':_0x278484[_0x1024(0x50)](typeof useHingeDataExtractor,_0x278484['fFqiH'])?_0x278484[_0x1024(0x47)]:_0x278484[_0x1024(0x48)],'message':_0x278484[_0x1024(0x57)]});}}catch(_0x515f94){_0x2244d7[_0x1024(0x21)]({'platform':_0x278484[_0x1024(0x55)],'component':_0x1024(0x38),'status':_0x278484[_0x1024(0x48)],'message':'Import\x20error:\x20'+_0x515f94[_0x1024(0x4d)]});}try{const {storeInstagramData:_0x448b56}=_0x278484[_0x1024(0x44)](__ONAIROS_REQ_FUNC__,0xb);_0x2244d7[_0x1024(0x21)]({'platform':_0x278484[_0x1024(0x58)],'component':_0x278484[_0x1024(0x4c)],'status':_0x278484[_0x1024(0x59)](typeof _0x448b56,_0x1024(0x39))?_0x278484[_0x1024(0x47)]:_0x278484['Ltefu'],'message':_0x278484[_0x1024(0x5a)]});}catch(_0x7822c6){_0x2244d7['push']({'platform':_0x278484[_0x1024(0x58)],'component':_0x278484['EAIUY'],'status':_0x278484[_0x1024(0x48)],'message':_0x1024(0x52)+_0x7822c6['message']});}try{if(_0x278484[_0x1024(0x5b)](_0x278484['dQjhU'],_0x278484['dQjhU']))_0x5d2e99[_0x1024(0x21)]({'platform':_0x27cdc9,'component':_0x278484[_0x1024(0x4c)],'status':_0x278484['Ltefu'],'message':_0x1024(0x5c)+_0x207f89[_0x1024(0x4d)]});else{const {storeSephoraData:_0x380272}=_0x278484[_0x1024(0x54)](__ONAIROS_REQ_FUNC__,0xc);_0x2244d7['push']({'platform':_0x278484['AlPOJ'],'component':_0x278484[_0x1024(0x4c)],'status':_0x278484['IROGr'](typeof _0x380272,_0x278484[_0x1024(0x46)])?_0x1024(0xb):_0x1024(0x7),'message':_0x278484['XGwhk']});}}catch(_0xa44f00){_0x278484[_0x1024(0x5d)](_0x278484[_0x1024(0x5e)],_0x1024(0x43))?_0x12a288['push']({'platform':_0x278484[_0x1024(0x5f)],'component':_0x1024(0x38),'status':_0x278484[_0x1024(0x48)],'message':_0x1024(0x52)+_0x1a58c5[_0x1024(0x4d)]}):_0x2244d7[_0x1024(0x21)]({'platform':_0x1024(0x14),'component':_0x278484[_0x1024(0x4c)],'status':_0x278484[_0x1024(0x48)],'message':'Import\x20error:\x20'+_0xa44f00['message']});}try{const {storeTelegramData:_0x4736c2}=__ONAIROS_REQ_FUNC__(0xd);_0x2244d7[_0x1024(0x21)]({'platform':_0x1024(0x17),'component':'service','status':_0x278484[_0x1024(0x45)](typeof _0x4736c2,_0x278484[_0x1024(0x46)])?_0x278484[_0x1024(0x47)]:'fail','message':_0x278484['hVAza']});}catch(_0x38eea8){_0x2244d7[_0x1024(0x21)]({'platform':_0x278484[_0x1024(0x60)],'component':_0x278484[_0x1024(0x4c)],'status':_0x278484['Ltefu'],'message':_0x1024(0x52)+_0x38eea8['message']});}return _0x2244d7;};exports['testServiceImports']=testServiceImports;function _0x3a12(){const _0x1e5e7e=['__esModule','testWebViewScriptExports','testServiceImports','testPlatformDetection','testExtractorImports','testBackendConnectivity','runConnectorSanityTests','fail','eyUfD','chatgpt','webview_scripts','pass','ChatGPT\x20scripts\x20missing','claude','Claude\x20scripts\x20exported\x20correctly','Claude\x20scripts\x20missing','hinge','Hinge\x20scripts\x20missing','instagram','Instagram\x20scripts\x20missing','sephora','Sephora\x20scripts\x20exported\x20correctly','Sephora\x20scripts\x20missing','telegram','Telegram\x20scripts\x20exported\x20correctly','Telegram\x20scripts\x20missing','utilities','mRqan','kGkyN','status','mLYyb','log','component','push','IuuUM','FAusg','ChatGPT\x20scripts\x20exported\x20correctly','CYPdh','OmYBY','prHEy','CoTAx','bDkNF','fDtMV','DPSKq','sBHZG','Instagram\x20scripts\x20exported\x20correctly','gsVTw','guSXq','HrZlb','vhgqL','nAcgr','NqWRf','platform_detection','QfNTP','Platform\x20detection\x20functions\x20available','gzNun','service','function','Hinge\x20extractor\x20hook\x20available','ChatGPT\x20service\x20function\x20available','iFMsy','Claude\x20service\x20function\x20available','eBSHu','Hinge\x20service\x20function\x20available','Instagram\x20service\x20function\x20available','buphd','Sephora\x20service\x20function\x20available','rSnKo','fVAfO','YGbBK','fFqiH','IqNTt','Ltefu','bMPYv','eDJfb','zUwAM','EAIUY','message','AlPOJ','nSIlw','Vdjem','IZulN','Import\x20error:\x20','qmNzv','FUOSB','CIDRb','nDqJc','cXSKS','cdHlH','IROGr','whHEH','oOusr','Service\x20import\x20failed:\x20','hTDZV','UAtJx','hNVqP','QkwQU','extractor','Telegram\x20extractor\x20hook\x20available','Hinge\x20detection\x20correct','Hinge\x20detection\x20failed','detection','Instagram\x20detection\x20correct','Instagram\x20detection\x20failed','Sephora\x20detection\x20failed','Telegram\x20detection\x20failed','all','Sephora\x20extractor\x20hook\x20available','webview_script','DiFVR','KiXZk','wlvGN','xfQhU','Instagram\x20extractor\x20hook\x20available','cIcAC','WnAcD','ZSWki','adloe','xrxND','dfyct','wZXQp','gYuIN','DrhFX','ohuEc','aTZNz','pskrT','AOnuI','MOMtR','EMBph','ooStb','DxZKG','ZSBID','MNAEj','JZefH','uHFJO','pRLCe','FwFrS','KHpsJ','mSmbY','cwRac','vfdwV','byPaJ','bklLF','HYojq','Sephora\x20detection\x20correct','SPfjL','ZnrGJ','Detection\x20test\x20error:\x20','rEPon','BWQdM','nbVVO','gNMFG','JhJQO','ADYfv','hBHvH','YTovl','eABDV','kHnzr','Script\x20import\x20failed:\x20','vblXa','warning','VqRVC','backend','abort','API_CONFIG','BASE_URL','/health','signal','iZcCN','QxaeP','JjQNh','Backend\x20health\x20check\x20passed','KCtrO','wHyAc','hTNBV','Jbpdh','health','Backend\x20unreachable:\x20','vufkM','jBhke','CeAyB','Zgtbw','XLUVZ','MWDWU','Platform\x20data\x20endpoint\x20check:\x20','Endpoint\x20check\x20failed\x20(may\x20require\x20auth):\x20','OuAkd','Telegram\x20detection\x20correct','HaWFr','qBCOf','zeEMk','iascr','ihBsY','wQKKg','OahCz','fXuqg','bOYJS','oHZWH','gNArl','zWMLs','HrXzG','aYMwD','AadAH','wJeyN','yasQn','KKwQb','XbRUi','iXsDe','wZMtm','PWGWr','AMHcR','etxRh','📋\x20Testing\x20WebView\x20script\x20exports...','📋\x20Testing\x20service\x20imports...','📋\x20Testing\x20extractor\x20imports...','📋\x20Testing\x20platform\x20detection...','📋\x20Testing\x20backend\x20connectivity...','========================================\x0a','\x0a========================================','⚠️\x20All\x20critical\x20tests\x20passed,\x20but\x20there\x20are\x20warnings.','✅\x20All\x20tests\x20passed!\x20Connectors\x20are\x20ready.','🧪\x20[CONNECTOR_TESTS]\x20Starting\x20connector\x20sanity\x20tests...\x0a','AoZhe','zLagF','OoRil','CguvE','vtWqd','filter','length','jufWN','vKGDm','XnEKy','uVPhJ','GPGnd','wbvpz','📊\x20Summary:\x20','\x20passed,\x20','\x20warnings','oJqcQ','BigMo','ztyPR','wJwyg','zbzia','Export\x20script\x20available','storeTelegramData','Lthak','validation','HxVZh','🧪\x20Testing\x20','\x20connector...\x0a','toLowerCase','eVZkY','includes','VcYUy','jdShc','toUpperCase','_EXPORT_SCRIPT','YoXBS','nQvaj','GnREv','AtrUx','HIRwQ','zQfUr','giWuB','pebAk','wWBgX','kqdzh','storeSephoraData','qJptH','vTzro','Service\x20function\x20','use','zjKSZ','slice','yyEgy','rcALr','Extractor\x20hook\x20','\x20available','xdfnD','kFnwv','Unknown\x20platform:\x20','.\x20Use\x20\x27hinge\x27,\x20\x27instagram\x27,\x20\x27sephora\x27,\x20or\x20\x27telegram\x27.','SswyB','wEKzc','cQsfl','IpmYa','RGAVX','mIFob','BRqvv','voikN','dXjSy','KgZTV','COaRf','PXbQC','WQNeu','KJURS','ZPtYx','ecXvP','qAvMC','testPlatformConnector'];_0x3a12=function(){return _0x1e5e7e;};return _0x3a12();}const testExtractorImports=()=>{const _0xe23b01={'dfyct':function(_0x4973e5,_0x489990){return _0x4973e5(_0x489990);},'wZXQp':_0x1024(0x17),'gYuIN':_0x1024(0x61),'DrhFX':function(_0x278f76,_0x1c6e94){return _0x278f76===_0x1c6e94;},'ohuEc':_0x1024(0xb),'aTZNz':_0x1024(0x7),'pskrT':_0x1024(0x62),'MNAEj':function(_0x1c717c,_0x26e3dc){return _0x1c717c(_0x26e3dc);},'JZefH':function(_0x19c17b,_0x33347d){return _0x19c17b(_0x33347d);},'MOMtR':_0x1024(0x10),'uHFJO':function(_0x57183d,_0x33e01a){return _0x57183d(_0x33e01a);},'EarLz':_0x1024(0x63),'pRLCe':_0x1024(0x64),'FwFrS':function(_0x5c7062,_0x47be2b){return _0x5c7062(_0x47be2b);},'KHpsJ':'instagram','mSmbY':function(_0x1bb16e,_0x257a58){return _0x1bb16e(_0x257a58);},'cwRac':_0x1024(0x65),'vfdwV':_0x1024(0x66),'byPaJ':_0x1024(0x67),'bklLF':function(_0x1b3a5b,_0x9a7fad){return _0x1b3a5b(_0x9a7fad);},'HYojq':_0x1024(0x14),'SPfjL':_0x1024(0x68),'UqzcS':'Telegram\x20detection\x20correct','KzMsx':_0x1024(0x69),'ZnrGJ':_0x1024(0x6a),'JhJQO':function(_0x118e98,_0xf14cd0){return _0x118e98(_0xf14cd0);},'EMBph':function(_0x54622c,_0x352ab8){return _0x54622c===_0x352ab8;},'ADYfv':_0x1024(0x6b),'kHnzr':_0x1024(0x6c),'ooStb':function(_0x31c48a,_0x3854c6){return _0x31c48a===_0x3854c6;},'adloe':_0x1024(0x6d),'xrxND':_0x1024(0x6e),'AOnuI':function(_0x2aec7b,_0x3ceaae){return _0x2aec7b(_0x3ceaae);},'UixzM':_0x1024(0x3a),'DxZKG':_0x1024(0x6f),'ZSBID':_0x1024(0x70),'rEPon':function(_0x43a6d4,_0x3bafff){return _0x43a6d4(_0x3bafff);},'BWQdM':_0x1024(0x39),'nbVVO':_0x1024(0x71),'WpbEE':function(_0x58ccf8,_0x341b3b){return _0x58ccf8!==_0x341b3b;},'gNMFG':_0x1024(0x72),'hBHvH':function(_0x5067a2,_0x35e795){return _0x5067a2(_0x35e795);},'YTovl':function(_0x490417,_0x151dbd){return _0x490417===_0x151dbd;},'EjnMv':_0x1024(0x73),'eABDV':_0x1024(0x74),'xtZIp':function(_0xff1e0c,_0x4dbb44){return _0xff1e0c(_0x4dbb44);},'vblXa':function(_0xb8b9dd,_0x2e8e46){return _0xb8b9dd===_0x2e8e46;}},_0x2db925=[];try{if(_0xe23b01['ooStb'](_0xe23b01[_0x1024(0x75)],_0xe23b01[_0x1024(0x76)])){const {useTelegramDataExtractor:useTelegramDataExtractor}=_0xe23b01[_0x1024(0x77)](_0x479a01,0x11);_0x390972['push']({'platform':_0xe23b01[_0x1024(0x78)],'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01[_0x1024(0x7a)](typeof useTelegramDataExtractor,'function')?_0xe23b01[_0x1024(0x7b)]:_0xe23b01[_0x1024(0x7c)],'message':_0xe23b01[_0x1024(0x7d)]});}else{const {useHingeDataExtractor:useHingeDataExtractor}=_0xe23b01[_0x1024(0x7e)](__ONAIROS_REQ_FUNC__,0xe);_0x2db925[_0x1024(0x21)]({'platform':_0xe23b01[_0x1024(0x7f)],'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01[_0x1024(0x80)](typeof useHingeDataExtractor,_0x1024(0x39))?_0xe23b01[_0x1024(0x7b)]:_0xe23b01[_0x1024(0x7c)],'message':_0xe23b01['UixzM']});}}catch(_0x32f5ca){if(_0xe23b01[_0x1024(0x81)](_0xe23b01[_0x1024(0x82)],_0xe23b01[_0x1024(0x83)])){const _0x104e48=[];try{const {isWebViewExtractionPlatform:_0x5a8134,isHingePlatform:_0x1061be,isInstagramPlatform:_0x351b12,isSephoraPlatform:_0x344448,isLLMPlatform:_0x3e9631}=_0xe23b01[_0x1024(0x84)](_0x4b795f,0x3),_0x83698d=_0xe23b01[_0x1024(0x85)](_0x1061be,_0xe23b01[_0x1024(0x7f)])&&_0x5a8134(_0xe23b01[_0x1024(0x7f)])&&!_0xe23b01[_0x1024(0x86)](_0x3e9631,_0x1024(0x10));_0x104e48['push']({'platform':_0xe23b01['MOMtR'],'component':'detection','status':_0x83698d?_0xe23b01[_0x1024(0x7b)]:_0xe23b01[_0x1024(0x7c)],'message':_0x83698d?_0xe23b01['EarLz']:_0xe23b01[_0x1024(0x87)]});const _0x19c5b7=_0xe23b01[_0x1024(0x88)](_0x351b12,_0xe23b01['KHpsJ'])&&_0xe23b01[_0x1024(0x88)](_0x5a8134,_0xe23b01[_0x1024(0x89)])&&!_0xe23b01[_0x1024(0x8a)](_0x3e9631,_0xe23b01[_0x1024(0x89)]);_0x104e48['push']({'platform':_0xe23b01['KHpsJ'],'component':_0xe23b01[_0x1024(0x8b)],'status':_0x19c5b7?_0x1024(0xb):_0xe23b01[_0x1024(0x7c)],'message':_0x19c5b7?_0xe23b01[_0x1024(0x8c)]:_0xe23b01[_0x1024(0x8d)]});const _0x108f63=_0xe23b01[_0x1024(0x8e)](_0x344448,_0xe23b01[_0x1024(0x8f)])&&_0xe23b01[_0x1024(0x88)](_0x5a8134,_0xe23b01[_0x1024(0x8f)])&&!_0xe23b01[_0x1024(0x8a)](_0x3e9631,_0x1024(0x14));_0x104e48[_0x1024(0x21)]({'platform':_0xe23b01[_0x1024(0x8f)],'component':_0xe23b01[_0x1024(0x8b)],'status':_0x108f63?_0xe23b01['ohuEc']:_0x1024(0x7),'message':_0x108f63?_0x1024(0x90):_0xe23b01[_0x1024(0x91)]});const {isTelegramPlatform:_0x7974e9}=_0x19c213(0x2),_0x24fc17=_0xe23b01[_0x1024(0x88)](_0x7974e9,_0xe23b01[_0x1024(0x78)])&&_0x5a8134(_0xe23b01[_0x1024(0x78)])&&!_0xe23b01[_0x1024(0x88)](_0x3e9631,_0x1024(0x17));_0x104e48['push']({'platform':_0x1024(0x17),'component':_0x1024(0x65),'status':_0x24fc17?_0xe23b01['ohuEc']:_0xe23b01[_0x1024(0x7c)],'message':_0x24fc17?_0xe23b01['UqzcS']:_0xe23b01['KzMsx']});}catch(_0x4017ef){_0x104e48['push']({'platform':_0xe23b01[_0x1024(0x92)],'component':_0xe23b01[_0x1024(0x8b)],'status':_0xe23b01[_0x1024(0x7c)],'message':_0x1024(0x93)+_0x4017ef[_0x1024(0x4d)]});}return _0x104e48;}else _0x2db925[_0x1024(0x21)]({'platform':_0x1024(0x10),'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01['aTZNz'],'message':_0x1024(0x52)+_0x32f5ca[_0x1024(0x4d)]});}try{const {useInstagramDataExtractor:useInstagramDataExtractor}=_0xe23b01[_0x1024(0x94)](__ONAIROS_REQ_FUNC__,0xf);_0x2db925[_0x1024(0x21)]({'platform':_0x1024(0x12),'component':_0xe23b01[_0x1024(0x79)],'status':typeof useInstagramDataExtractor===_0xe23b01[_0x1024(0x95)]?_0xe23b01[_0x1024(0x7b)]:_0xe23b01[_0x1024(0x7c)],'message':_0xe23b01[_0x1024(0x96)]});}catch(_0xa474b7){if(_0xe23b01['WpbEE'](_0xe23b01['gNMFG'],_0xe23b01[_0x1024(0x97)])){const {useSephoraDataExtractor:useSephoraDataExtractor}=_0xe23b01[_0x1024(0x98)](_0x900c1a,0x10);_0x292c34[_0x1024(0x21)]({'platform':_0x1024(0x14),'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01['EMBph'](typeof useSephoraDataExtractor,_0x1024(0x39))?_0xe23b01[_0x1024(0x7b)]:_0xe23b01['aTZNz'],'message':_0xe23b01[_0x1024(0x99)]});}else _0x2db925['push']({'platform':_0x1024(0x12),'component':'extractor','status':_0xe23b01['aTZNz'],'message':_0x1024(0x52)+_0xa474b7[_0x1024(0x4d)]});}try{const {useSephoraDataExtractor:useSephoraDataExtractor}=_0xe23b01[_0x1024(0x9a)](__ONAIROS_REQ_FUNC__,0x10);_0x2db925[_0x1024(0x21)]({'platform':_0x1024(0x14),'component':_0x1024(0x61),'status':_0xe23b01[_0x1024(0x9b)](typeof useSephoraDataExtractor,_0xe23b01[_0x1024(0x95)])?_0xe23b01[_0x1024(0x7b)]:_0xe23b01[_0x1024(0x7c)],'message':_0xe23b01[_0x1024(0x99)]});}catch(_0x41768a){_0x2db925[_0x1024(0x21)]({'platform':_0xe23b01[_0x1024(0x8f)],'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01[_0x1024(0x7c)],'message':'Import\x20error:\x20'+_0x41768a[_0x1024(0x4d)]});}try{if(_0xe23b01['EjnMv']===_0xe23b01[_0x1024(0x9c)])_0xe0fb68[_0x1024(0x21)]({'platform':_0x42bb44,'component':_0xe23b01[_0x1024(0x9d)],'status':_0xe23b01[_0x1024(0x7c)],'message':_0x1024(0x9e)+_0x4eb72b['message']});else{const {useTelegramDataExtractor:useTelegramDataExtractor}=_0xe23b01['xtZIp'](__ONAIROS_REQ_FUNC__,0x11);_0x2db925['push']({'platform':_0xe23b01[_0x1024(0x78)],'component':'extractor','status':_0xe23b01[_0x1024(0x9f)](typeof useTelegramDataExtractor,_0xe23b01[_0x1024(0x95)])?_0xe23b01[_0x1024(0x7b)]:'fail','message':_0xe23b01['pskrT']});}}catch(_0x23687f){_0x2db925[_0x1024(0x21)]({'platform':_0xe23b01[_0x1024(0x78)],'component':_0xe23b01[_0x1024(0x79)],'status':_0xe23b01[_0x1024(0x7c)],'message':_0x1024(0x52)+_0x23687f[_0x1024(0x4d)]});}return _0x2db925;};exports[_0x1024(0x4)]=testExtractorImports;const testBackendConnectivity=async()=>{const _0x1e242a={'hTNBV':'fail','xFJKQ':function(_0x54ec31,_0x5c6706,_0x2d9345){return _0x54ec31(_0x5c6706,_0x2d9345);},'iZcCN':function(_0x1de349,_0x2aa045){return _0x1de349(_0x2aa045);},'QxaeP':'health','MWDWU':_0x1024(0xb),'JjQNh':_0x1024(0xa0),'KCtrO':function(_0x4f8c03,_0x25697c){return _0x4f8c03===_0x25697c;},'WJlaE':_0x1024(0xa1),'Jbpdh':_0x1024(0xa2),'vufkM':function(_0x3cc799,_0xefcecd,_0x48aa30){return _0x3cc799(_0xefcecd,_0x48aa30);},'jBhke':function(_0x58406a,_0x99ac44,_0x7caae0){return _0x58406a(_0x99ac44,_0x7caae0);},'CeAyB':'OPTIONS','Zgtbw':function(_0x19a6b3,_0x18e43c){return _0x19a6b3(_0x18e43c);},'XLUVZ':'platform_data_endpoint','TlZHe':function(_0x3d9b32,_0x1907e7){return _0x3d9b32<_0x1907e7;}},_0x22d7e6=[];try{const _0x324029=new AbortController(),_0x164d11=_0x1e242a['xFJKQ'](setTimeout,()=>_0x324029[_0x1024(0xa3)](),0x2710),_0x500e13=await _0x1e242a['xFJKQ'](fetch,_api[_0x1024(0xa4)][_0x1024(0xa5)]+_0x1024(0xa6),{'method':'GET','signal':_0x324029[_0x1024(0xa7)]});_0x1e242a[_0x1024(0xa8)](clearTimeout,_0x164d11),_0x22d7e6[_0x1024(0x21)]({'platform':_0x1024(0xa2),'component':_0x1e242a[_0x1024(0xa9)],'status':_0x500e13['ok']?_0x1e242a['MWDWU']:_0x1e242a[_0x1024(0xaa)],'message':_0x500e13['ok']?_0x1024(0xab):'Backend\x20returned\x20status\x20'+_0x500e13[_0x1024(0x1d)],'details':{'status':_0x500e13[_0x1024(0x1d)]}});}catch(_0x166703){_0x1e242a[_0x1024(0xac)](_0x1024(0xad),_0x1e242a['WJlaE'])?_0x448963[_0x1024(0x21)]({'platform':_0x1024(0x10),'component':_0x1024(0x38),'status':_0x1e242a[_0x1024(0xae)],'message':_0x1024(0x52)+_0x1d759b[_0x1024(0x4d)]}):_0x22d7e6[_0x1024(0x21)]({'platform':_0x1e242a[_0x1024(0xaf)],'component':_0x1024(0xb0),'status':_0x1e242a[_0x1024(0xae)],'message':_0x1024(0xb1)+_0x166703['message']});}try{const _0xb564c2=new AbortController(),_0x1c46b9=_0x1e242a[_0x1024(0xb2)](setTimeout,()=>_0xb564c2[_0x1024(0xa3)](),0x2710),_0x24a4ab=await _0x1e242a[_0x1024(0xb3)](fetch,_api[_0x1024(0xa4)][_0x1024(0xa5)]+'/platform-data/store',{'method':_0x1e242a[_0x1024(0xb4)],'signal':_0xb564c2[_0x1024(0xa7)]});_0x1e242a[_0x1024(0xb5)](clearTimeout,_0x1c46b9),_0x22d7e6['push']({'platform':_0x1e242a[_0x1024(0xaf)],'component':_0x1e242a[_0x1024(0xb6)],'status':_0x1e242a['TlZHe'](_0x24a4ab[_0x1024(0x1d)],0x1f4)?_0x1e242a[_0x1024(0xb7)]:_0x1e242a[_0x1024(0xaa)],'message':_0x1024(0xb8)+_0x24a4ab[_0x1024(0x1d)],'details':{'status':_0x24a4ab[_0x1024(0x1d)]}});}catch(_0x3caa2e){_0x22d7e6[_0x1024(0x21)]({'platform':_0x1e242a[_0x1024(0xaf)],'component':_0x1e242a[_0x1024(0xb6)],'status':_0x1024(0xa0),'message':_0x1024(0xb9)+_0x3caa2e[_0x1024(0x4d)]});}return _0x22d7e6;};exports['testBackendConnectivity']=testBackendConnectivity;const testPlatformDetection=()=>{const _0x3dbc08={'AMHcR':_0x1024(0xd),'etxRh':_0x1024(0x38),'zWMLs':_0x1024(0x7),'HaWFr':function(_0x34a436,_0x353ff8){return _0x34a436!==_0x353ff8;},'qBCOf':_0x1024(0xba),'eUqiN':'OxbEN','zeEMk':function(_0xf027df,_0x1bb938){return _0xf027df(_0x1bb938);},'iascr':_0x1024(0x10),'aYMwD':function(_0x5795ea,_0x4f3440){return _0x5795ea(_0x4f3440);},'ihBsY':_0x1024(0xb),'wQKKg':_0x1024(0x63),'OahCz':_0x1024(0x64),'fXuqg':function(_0x15010b,_0x80e416){return _0x15010b(_0x80e416);},'bOYJS':'instagram','SjWoU':function(_0x272f98,_0x527cf3){return _0x272f98(_0x527cf3);},'oHZWH':function(_0x3118e9,_0x2039f4){return _0x3118e9(_0x2039f4);},'gNArl':'detection','HrXzG':_0x1024(0x67),'AadAH':_0x1024(0x14),'wJeyN':_0x1024(0x68),'yasQn':function(_0x4a7c35,_0x508202){return _0x4a7c35(_0x508202);},'KKwQb':function(_0xbad533,_0x118a1f){return _0xbad533(_0x118a1f);},'iXsDe':_0x1024(0x17),'XbRUi':function(_0x35348c,_0xcb2676){return _0x35348c(_0xcb2676);},'wZMtm':_0x1024(0xbb),'PWGWr':_0x1024(0x69),'iVRHr':'all'},_0x5e6195=[];try{if(_0x3dbc08[_0x1024(0xbc)](_0x3dbc08[_0x1024(0xbd)],_0x3dbc08['eUqiN'])){const {isWebViewExtractionPlatform:_0x2e0ee4,isHingePlatform:_0x21cd24,isInstagramPlatform:_0x3d4f06,isSephoraPlatform:_0x2a7eec,isLLMPlatform:_0x5da1de}=_0x3dbc08['zeEMk'](__ONAIROS_REQ_FUNC__,0x3),_0x2f93b1=_0x3dbc08[_0x1024(0xbe)](_0x21cd24,_0x3dbc08[_0x1024(0xbf)])&&_0x3dbc08['zeEMk'](_0x2e0ee4,_0x3dbc08['iascr'])&&!_0x3dbc08['aYMwD'](_0x5da1de,_0x3dbc08[_0x1024(0xbf)]);_0x5e6195[_0x1024(0x21)]({'platform':_0x3dbc08['iascr'],'component':'detection','status':_0x2f93b1?_0x3dbc08[_0x1024(0xc0)]:'fail','message':_0x2f93b1?_0x3dbc08[_0x1024(0xc1)]:_0x3dbc08[_0x1024(0xc2)]});const _0x523792=_0x3dbc08[_0x1024(0xc3)](_0x3d4f06,_0x3dbc08['bOYJS'])&&_0x3dbc08['SjWoU'](_0x2e0ee4,_0x3dbc08[_0x1024(0xc4)])&&!_0x3dbc08[_0x1024(0xc5)](_0x5da1de,_0x3dbc08[_0x1024(0xc4)]);_0x5e6195[_0x1024(0x21)]({'platform':_0x3dbc08[_0x1024(0xc4)],'component':_0x3dbc08[_0x1024(0xc6)],'status':_0x523792?_0x3dbc08[_0x1024(0xc0)]:_0x3dbc08[_0x1024(0xc7)],'message':_0x523792?_0x1024(0x66):_0x3dbc08[_0x1024(0xc8)]});const _0x3bbd7b=_0x3dbc08[_0x1024(0xc9)](_0x2a7eec,_0x3dbc08[_0x1024(0xca)])&&_0x2e0ee4(_0x3dbc08['AadAH'])&&!_0x3dbc08[_0x1024(0xc5)](_0x5da1de,_0x3dbc08[_0x1024(0xca)]);_0x5e6195[_0x1024(0x21)]({'platform':_0x3dbc08[_0x1024(0xca)],'component':_0x3dbc08[_0x1024(0xc6)],'status':_0x3bbd7b?_0x3dbc08['ihBsY']:_0x1024(0x7),'message':_0x3bbd7b?_0x1024(0x90):_0x3dbc08[_0x1024(0xcb)]});const {isTelegramPlatform:_0x45cd53}=__ONAIROS_REQ_FUNC__(0x2),_0x24f72b=_0x3dbc08[_0x1024(0xcc)](_0x45cd53,_0x1024(0x17))&&_0x3dbc08[_0x1024(0xcd)](_0x2e0ee4,_0x3dbc08['iXsDe'])&&!_0x3dbc08[_0x1024(0xce)](_0x5da1de,_0x3dbc08[_0x1024(0xcf)]);_0x5e6195[_0x1024(0x21)]({'platform':_0x3dbc08['iXsDe'],'component':_0x3dbc08[_0x1024(0xc6)],'status':_0x24f72b?_0x3dbc08['ihBsY']:_0x3dbc08[_0x1024(0xc7)],'message':_0x24f72b?_0x3dbc08[_0x1024(0xd0)]:_0x3dbc08[_0x1024(0xd1)]});}else _0x22b3b7[_0x1024(0x21)]({'platform':_0x3dbc08[_0x1024(0xd2)],'component':_0x3dbc08[_0x1024(0xd3)],'status':_0x3dbc08[_0x1024(0xc7)],'message':_0x1024(0x52)+_0x46b204[_0x1024(0x4d)]});}catch(_0x43048d){_0x5e6195[_0x1024(0x21)]({'platform':_0x3dbc08['iVRHr'],'component':_0x3dbc08['gNArl'],'status':_0x1024(0x7),'message':_0x1024(0x93)+_0x43048d['message']});}return _0x5e6195;};function _0x1024(_0x3a12ca,_0x10244c){_0x3a12ca=_0x3a12ca-0x0;const _0x51f9ed=_0x3a12();let _0x17b5d5=_0x51f9ed[_0x3a12ca];return _0x17b5d5;}exports[_0x1024(0x3)]=testPlatformDetection;const runConnectorSanityTests=async()=>{const _0x41fa45={'AoZhe':_0x1024(0xd4),'bhWKe':function(_0x2c819e){return _0x2c819e();},'zLagF':_0x1024(0xd5),'OoRil':_0x1024(0xd6),'CguvE':function(_0x27f95a){return _0x27f95a();},'vtWqd':_0x1024(0xd7),'ytZMA':_0x1024(0xd8),'jufWN':'🧪\x20CONNECTOR\x20SANITY\x20TEST\x20RESULTS','vKGDm':_0x1024(0xd9),'XnEKy':function(_0x568ded,_0x29a23b){return _0x568ded===_0x29a23b;},'uVPhJ':_0x1024(0xb),'GPGnd':_0x1024(0x7),'wbvpz':_0x1024(0xda),'BigMo':function(_0xccdb75,_0x4124f2){return _0xccdb75>_0x4124f2;},'oJqcQ':'❌\x20Some\x20tests\x20failed!\x20Please\x20check\x20the\x20errors\x20above.','ztyPR':_0x1024(0xdb),'wJwyg':_0x1024(0xdc)};console[_0x1024(0x1f)](_0x1024(0xdd));const _0x931c77=[];console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xde)]),_0x931c77[_0x1024(0x21)](..._0x41fa45['bhWKe'](testWebViewScriptExports)),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xdf)]),_0x931c77['push'](...testServiceImports()),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xe0)]),_0x931c77[_0x1024(0x21)](..._0x41fa45[_0x1024(0xe1)](testExtractorImports)),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xe2)]),_0x931c77[_0x1024(0x21)](..._0x41fa45[_0x1024(0xe1)](testPlatformDetection)),console['log'](_0x41fa45['ytZMA']),_0x931c77[_0x1024(0x21)](...await testBackendConnectivity());const _0x210363=_0x931c77[_0x1024(0xe3)](_0x3cfab6=>_0x3cfab6[_0x1024(0x1d)]===_0x1024(0xb))['length'],_0x54769e=_0x931c77[_0x1024(0xe3)](_0x32738f=>_0x32738f[_0x1024(0x1d)]===_0x1024(0x7))[_0x1024(0xe4)],_0x2eac82=_0x931c77['filter'](_0xfbd9fa=>_0xfbd9fa[_0x1024(0x1d)]==='warning')[_0x1024(0xe4)];console[_0x1024(0x1f)](_0x1024(0xda)),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xe5)]),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xe6)]);for(const _0x3a0cd0 of _0x931c77){const _0x56d254=_0x41fa45[_0x1024(0xe7)](_0x3a0cd0[_0x1024(0x1d)],_0x41fa45[_0x1024(0xe8)])?'✅':_0x41fa45[_0x1024(0xe7)](_0x3a0cd0[_0x1024(0x1d)],_0x41fa45[_0x1024(0xe9)])?'❌':'⚠️';console['log'](_0x56d254+'\x20['+_0x3a0cd0['platform']['toUpperCase']()+']\x20'+_0x3a0cd0[_0x1024(0x20)]+':\x20'+_0x3a0cd0[_0x1024(0x4d)]);}console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xea)]),console['log'](_0x1024(0xeb)+_0x210363+_0x1024(0xec)+_0x54769e+'\x20failed,\x20'+_0x2eac82+_0x1024(0xed)),console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xe6)]);if(_0x41fa45['BigMo'](_0x54769e,0x0))console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xee)]);else _0x41fa45[_0x1024(0xef)](_0x2eac82,0x0)?console[_0x1024(0x1f)](_0x41fa45[_0x1024(0xf0)]):console['log'](_0x41fa45[_0x1024(0xf1)]);return{'passed':_0x210363,'failed':_0x54769e,'warnings':_0x2eac82,'results':_0x931c77};};exports[_0x1024(0x6)]=runConnectorSanityTests;const testPlatformConnector=async _0xd2a62=>{const _0x11bf3e={'HIRwQ':function(_0x30e707,_0x85d52e){return _0x30e707(_0x85d52e);},'zQfUr':_0x1024(0x9),'qJptH':function(_0x46a1d3,_0xaf495){return _0x46a1d3===_0xaf495;},'giWuB':_0x1024(0x39),'vTzro':_0x1024(0xb),'pebAk':_0x1024(0x3b),'SswyB':'webview_scripts','wEKzc':'ChatGPT\x20scripts\x20exported\x20correctly','cQsfl':'ChatGPT\x20scripts\x20missing','IpmYa':_0x1024(0xd),'RGAVX':_0x1024(0xf),'wWBgX':_0x1024(0x10),'nQvaj':_0x1024(0x7),'eVZkY':'instagram','mIFob':'Instagram\x20scripts\x20exported\x20correctly','BRqvv':_0x1024(0x13),'LqOKX':_0x1024(0x15),'psjRu':_0x1024(0x16),'voikN':_0x1024(0x17),'dXjSy':_0x1024(0x18),'KgZTV':_0x1024(0x19),'COaRf':function(_0x504342,_0x391e8f){return _0x504342(_0x391e8f);},'PXbQC':'utilities','WQNeu':function(_0x425355,_0x7974d1){return _0x425355&&_0x7974d1;},'KJURS':_0x1024(0x36),'ZPtYx':'all','oVYKB':'backend','qAvMC':'platform_data_endpoint','zdsbq':_0x1024(0x14),'vyzEO':function(_0x518905,_0x3a3c38){return _0x518905===_0x3a3c38;},'VcYUy':_0x1024(0xf2),'jdShc':function(_0x697369,_0x2cd676){return _0x697369(_0x2cd676);},'YoXBS':'webview_script','GnREv':_0x1024(0xf3),'AtrUx':'Export\x20script\x20missing','ANSga':'storeInstagramData','kqdzh':_0x1024(0xf4),'zjKSZ':function(_0x944869,_0x32e6df){return _0x944869+_0x32e6df;},'yyEgy':_0x1024(0x61),'rcALr':function(_0x2ea779,_0x2feb06){return _0x2ea779===_0x2feb06;},'xdfnD':_0x1024(0xf5),'kFnwv':_0x1024(0xf6),'ecXvP':_0x1024(0xf7)};console[_0x1024(0x1f)](_0x1024(0xf8)+_0xd2a62+_0x1024(0xf9));const _0x73dea7=[],_0x24f892=_0xd2a62[_0x1024(0xfa)]();if([_0x11bf3e['wWBgX'],_0x11bf3e[_0x1024(0xfb)],_0x11bf3e['zdsbq'],_0x1024(0x17)][_0x1024(0xfc)](_0x24f892)){try{if(_0x11bf3e['vyzEO'](_0x1024(0xf2),_0x11bf3e[_0x1024(0xfd)])){const _0x59b0f8=_0x11bf3e[_0x1024(0xfe)](__ONAIROS_REQ_FUNC__,0x1),_0xdd2703=_0x24f892[_0x1024(0xff)]()+_0x1024(0x100),_0x493614=!!_0x59b0f8[_0xdd2703];_0x73dea7[_0x1024(0x21)]({'platform':_0x24f892,'component':_0x11bf3e[_0x1024(0x101)],'status':_0x493614?_0x1024(0xb):_0x11bf3e[_0x1024(0x102)],'message':_0x493614?_0x11bf3e[_0x1024(0x103)]:_0x11bf3e[_0x1024(0x104)]});}else{const {storeChatGPTConversations:_0x1ec78b}=_0x11bf3e[_0x1024(0x105)](_0xf80950,0x8);_0x2325f5[_0x1024(0x21)]({'platform':_0x11bf3e[_0x1024(0x106)],'component':'service','status':_0x11bf3e['qJptH'](typeof _0x1ec78b,_0x11bf3e[_0x1024(0x107)])?_0x11bf3e['vTzro']:_0x1024(0x7),'message':_0x11bf3e[_0x1024(0x108)]});}}catch(_0x547ee3){_0x73dea7['push']({'platform':_0x24f892,'component':_0x11bf3e['YoXBS'],'status':_0x11bf3e[_0x1024(0x102)],'message':_0x1024(0x9e)+_0x547ee3[_0x1024(0x4d)]});}try{const _0x248981=__ONAIROS_REQ_FUNC__(0x15),_0x2394b1=_0x24f892===_0x11bf3e[_0x1024(0x109)]?'storeHingeData':_0x11bf3e['vyzEO'](_0x24f892,'instagram')?_0x11bf3e['ANSga']:_0x24f892===_0x11bf3e['voikN']?_0x11bf3e[_0x1024(0x10a)]:_0x1024(0x10b);_0x73dea7['push']({'platform':_0x24f892,'component':_0x1024(0x38),'status':_0x11bf3e[_0x1024(0x10c)](typeof _0x248981[_0x2394b1],_0x11bf3e['giWuB'])?_0x11bf3e[_0x1024(0x10d)]:_0x1024(0x7),'message':_0x1024(0x10e)+_0x2394b1+'\x20available'});}catch(_0x445840){_0x73dea7[_0x1024(0x21)]({'platform':_0x24f892,'component':_0x1024(0x38),'status':_0x1024(0x7),'message':_0x1024(0x5c)+_0x445840[_0x1024(0x4d)]});}try{const _0x418c53=_0x11bf3e[_0x1024(0x105)](__ONAIROS_REQ_FUNC__,0x16),_0x23e6b0=_0x1024(0x10f)+_0x11bf3e[_0x1024(0x110)](_0x24f892['charAt'](0x0)['toUpperCase'](),_0x24f892[_0x1024(0x111)](0x1))+'DataExtractor';_0x73dea7[_0x1024(0x21)]({'platform':_0x24f892,'component':_0x11bf3e[_0x1024(0x112)],'status':_0x11bf3e[_0x1024(0x113)](typeof _0x418c53[_0x23e6b0],_0x11bf3e[_0x1024(0x107)])?_0x11bf3e[_0x1024(0x10d)]:_0x1024(0x7),'message':_0x1024(0x114)+_0x23e6b0+_0x1024(0x115)});}catch(_0x33db9b){_0x73dea7['push']({'platform':_0x24f892,'component':_0x11bf3e[_0x1024(0x112)],'status':'fail','message':'Extractor\x20import\x20failed:\x20'+_0x33db9b[_0x1024(0x4d)]});}}else{if(_0x11bf3e[_0x1024(0x10c)](_0x11bf3e[_0x1024(0x116)],_0x11bf3e[_0x1024(0x116)]))_0x73dea7[_0x1024(0x21)]({'platform':_0x24f892,'component':_0x11bf3e[_0x1024(0x117)],'status':_0x1024(0xa0),'message':_0x1024(0x118)+_0xd2a62+_0x1024(0x119)});else{const _0x34c26b=[];try{const {CHATGPT_CONSENT_POPUP_SCRIPT:_0x17403a,CHATGPT_EXPORT_SCRIPT:_0x41d965}=_0x11bf3e[_0x1024(0x105)](_0x5445d5,0x14);_0x34c26b['push']({'platform':_0x11bf3e['zQfUr'],'component':_0x11bf3e[_0x1024(0x11a)],'status':_0x41d965?_0x11bf3e[_0x1024(0x10d)]:_0x1024(0x7),'message':_0x41d965?_0x11bf3e[_0x1024(0x11b)]:_0x11bf3e[_0x1024(0x11c)]});const {CLAUDE_CONSENT_POPUP_SCRIPT:_0x21ec45,CLAUDE_EXPORT_SCRIPT:_0x50cdb3}=_0x11bf3e[_0x1024(0x105)](_0x524f97,0x13);_0x34c26b[_0x1024(0x21)]({'platform':_0x11bf3e[_0x1024(0x11d)],'component':_0x11bf3e['SswyB'],'status':_0x50cdb3?_0x1024(0xb):_0x1024(0x7),'message':_0x50cdb3?_0x1024(0xe):_0x11bf3e[_0x1024(0x11e)]});const {HINGE_CONSENT_POPUP_SCRIPT:_0x38a641,HINGE_EXPORT_SCRIPT:_0x27f71e}=_0x11bf3e[_0x1024(0x105)](_0x373d75,0x12);_0x34c26b['push']({'platform':_0x11bf3e[_0x1024(0x109)],'component':_0x1024(0xa),'status':_0x27f71e?_0x1024(0xb):_0x11bf3e['nQvaj'],'message':_0x27f71e?'Hinge\x20scripts\x20exported\x20correctly':_0x1024(0x11)});const {INSTAGRAM_CONSENT_POPUP_SCRIPT:_0x3d1f02,INSTAGRAM_EXPORT_SCRIPT:_0xac8f93}=_0x35c5d1(0x7);_0x34c26b[_0x1024(0x21)]({'platform':_0x11bf3e[_0x1024(0xfb)],'component':_0x11bf3e[_0x1024(0x11a)],'status':_0xac8f93?_0x1024(0xb):_0x11bf3e[_0x1024(0x102)],'message':_0xac8f93?_0x11bf3e[_0x1024(0x11f)]:_0x11bf3e[_0x1024(0x120)]});const {SEPHORA_CONSENT_POPUP_SCRIPT:_0x16b5c5,SEPHORA_EXPORT_SCRIPT:_0x276c5f}=_0x11bf3e[_0x1024(0x105)](_0x324b2e,0x6);_0x34c26b['push']({'platform':'sephora','component':_0x1024(0xa),'status':_0x276c5f?_0x11bf3e[_0x1024(0x10d)]:_0x1024(0x7),'message':_0x276c5f?_0x11bf3e['LqOKX']:_0x11bf3e['psjRu']});const {TELEGRAM_CONSENT_POPUP_SCRIPT:_0x4763f2,TELEGRAM_EXPORT_SCRIPT:_0x2938dc}=_0x233ee2(0x5);_0x34c26b['push']({'platform':_0x11bf3e[_0x1024(0x121)],'component':_0x11bf3e[_0x1024(0x11a)],'status':_0x2938dc?_0x11bf3e[_0x1024(0x10d)]:_0x11bf3e['nQvaj'],'message':_0x2938dc?_0x11bf3e[_0x1024(0x122)]:_0x11bf3e[_0x1024(0x123)]});const {isWebViewExtractionPlatform:_0x42d0b9,isHingePlatform:_0xcecf3f,isInstagramPlatform:_0x502c68,isSephoraPlatform:_0x491596,isTelegramPlatform:_0x2d606b}=_0x11bf3e[_0x1024(0x124)](_0xba8e83,0x4);_0x34c26b[_0x1024(0x21)]({'platform':_0x11bf3e[_0x1024(0x125)],'component':'platform_detection','status':_0x11bf3e[_0x1024(0x126)](_0x42d0b9,_0xcecf3f)&&_0x502c68&&_0x491596&&_0x2d606b?_0x11bf3e[_0x1024(0x10d)]:_0x11bf3e['nQvaj'],'message':_0x11bf3e[_0x1024(0x127)]});}catch(_0x121403){_0x34c26b[_0x1024(0x21)]({'platform':_0x11bf3e[_0x1024(0x128)],'component':_0x11bf3e[_0x1024(0x11a)],'status':_0x1024(0x7),'message':_0x1024(0x52)+_0x121403[_0x1024(0x4d)]});}return _0x34c26b;}}for(const _0x110e16 of _0x73dea7){if(_0x11bf3e[_0x1024(0x129)]===_0x11bf3e['ecXvP']){const _0x464dec=_0x11bf3e[_0x1024(0x113)](_0x110e16[_0x1024(0x1d)],_0x1024(0xb))?'✅':_0x11bf3e[_0x1024(0x10c)](_0x110e16[_0x1024(0x1d)],_0x11bf3e['nQvaj'])?'❌':'⚠️';console[_0x1024(0x1f)](_0x464dec+'\x20'+_0x110e16['component']+':\x20'+_0x110e16[_0x1024(0x4d)]);}else _0x410258[_0x1024(0x21)]({'platform':_0x11bf3e['oVYKB'],'component':_0x11bf3e[_0x1024(0x12a)],'status':'warning','message':_0x1024(0xb9)+_0x3bee75[_0x1024(0x4d)]});}return _0x73dea7;};exports[_0x1024(0x12b)]=testPlatformConnector;
|