@onairos/react-native 3.4.0 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -13
- package/lib/commonjs/api/index.js +9 -145
- package/lib/commonjs/assets/animations/loaderani.json +1 -0
- package/lib/commonjs/assets/animations/persona-animation.json +1 -0
- package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
- package/lib/commonjs/assets/icons/Gmail.png +0 -0
- package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/icons/Redditicon.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
- package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/icons/chatgpt.png +0 -0
- package/lib/commonjs/assets/icons/claude.png +0 -0
- package/lib/commonjs/assets/icons/gemini.png +0 -0
- package/lib/commonjs/assets/icons/grok.png +0 -0
- package/lib/commonjs/assets/images/Checkbox.svg +3 -0
- package/lib/commonjs/assets/images/EnochE.svg +19 -0
- package/lib/commonjs/assets/images/Enochicon1.png +0 -0
- package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
- package/lib/commonjs/assets/images/Facebookicon.png +0 -0
- package/lib/commonjs/assets/images/Gmail.png +0 -0
- package/lib/commonjs/assets/images/Googlelogo.png +0 -0
- package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
- package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
- package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
- package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
- package/lib/commonjs/assets/images/Redditicon.png +0 -0
- package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
- package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
- package/lib/commonjs/assets/images/arrow.svg +20 -0
- package/lib/commonjs/assets/images/basicproficon.svg +43 -0
- package/lib/commonjs/assets/images/basicprofile.svg +3 -0
- package/lib/commonjs/assets/images/chatgpt.png +0 -0
- package/lib/commonjs/assets/images/checkmark.svg +4 -0
- package/lib/commonjs/assets/images/claude.png +0 -0
- package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
- package/lib/commonjs/assets/images/contenticon.svg +23 -0
- package/lib/commonjs/assets/images/gemini.png +0 -0
- package/lib/commonjs/assets/images/grok.png +0 -0
- package/lib/commonjs/assets/images/persona1.png +0 -0
- package/lib/commonjs/assets/images/persona2.png +0 -0
- package/lib/commonjs/assets/images/persona3.png +0 -0
- package/lib/commonjs/assets/images/persona4.png +0 -0
- package/lib/commonjs/assets/images/persona5.png +0 -0
- package/lib/commonjs/assets/images/personalityicon.svg +18 -0
- package/lib/commonjs/assets/images/x-close.svg +3 -0
- package/lib/commonjs/components/BodyText.js +9 -0
- package/lib/commonjs/components/BrandMark.js +10 -0
- package/lib/commonjs/components/CodeInput.js +9 -0
- package/lib/commonjs/components/EmailInput.js +8 -0
- package/lib/commonjs/components/GoogleButton.js +9 -0
- package/lib/commonjs/components/HeadingGroup.js +9 -0
- package/lib/commonjs/components/LLMDataInputModal.js +14 -0
- package/lib/commonjs/components/ModalHeader.js +9 -0
- package/lib/commonjs/components/ModalSheet.js +9 -0
- package/lib/commonjs/components/Onairos.js +14 -374
- package/lib/commonjs/components/OnairosButton.js +13 -309
- package/lib/commonjs/components/OnairosSignInButton.js +12 -0
- package/lib/commonjs/components/Overlay.js +13 -483
- package/lib/commonjs/components/PersonaImage.js +10 -0
- package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
- package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
- package/lib/commonjs/components/PinCreationScreen.js +12 -0
- package/lib/commonjs/components/PinInput.js +9 -302
- package/lib/commonjs/components/PlatformConnectorsStep.js +22 -0
- package/lib/commonjs/components/PlatformList.js +10 -137
- package/lib/commonjs/components/PlatformToggle.js +9 -0
- package/lib/commonjs/components/PrimaryButton.js +10 -0
- package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
- package/lib/commonjs/components/SignInStep.js +12 -0
- package/lib/commonjs/components/UniversalOnboarding.js +29 -1702
- package/lib/commonjs/components/VerificationStep.js +11 -0
- package/lib/commonjs/components/WelcomeScreen.js +21 -0
- package/lib/commonjs/components/icons/Basicproficon.js +8 -0
- package/lib/commonjs/components/icons/Basicprofile.js +8 -0
- package/lib/commonjs/components/icons/Checkbox.js +8 -0
- package/lib/commonjs/components/icons/Checkmark.js +8 -0
- package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
- package/lib/commonjs/components/icons/Contenticon.js +8 -0
- package/lib/commonjs/components/icons/EnochE.js +8 -0
- package/lib/commonjs/components/icons/Personalityicon.js +8 -0
- package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
- package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
- package/lib/commonjs/components/icons/Userpreferences.js +8 -0
- package/lib/commonjs/components/icons/index.js +17 -0
- package/lib/commonjs/components/onboarding/OAuthWebView.js +14 -827
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
- package/lib/commonjs/components/onboarding/PinInput.js +10 -283
- package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
- package/lib/commonjs/config/api.js +7 -0
- package/lib/commonjs/constants/index.js +7 -83
- package/lib/commonjs/context/AuthContext.js +10 -0
- package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
- package/lib/commonjs/hooks/useConnections.js +8 -159
- package/lib/commonjs/hooks/useCredentials.js +10 -177
- package/lib/commonjs/hooks/useUserConnections.js +10 -0
- package/lib/commonjs/index.js +35 -106
- package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +31 -38
- package/lib/commonjs/services/apiClient.js +8 -0
- package/lib/commonjs/services/apiKeyService.js +9 -946
- package/lib/commonjs/services/authService.js +10 -0
- package/lib/commonjs/services/biometricPinService.js +8 -0
- package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
- package/lib/commonjs/services/chatGPTConversationService.js +9 -0
- package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
- package/lib/commonjs/services/claudeConversationService.js +9 -0
- package/lib/commonjs/services/connectedAccountsService.js +10 -0
- package/lib/commonjs/services/googleAuthService.js +11 -0
- package/lib/commonjs/services/imageCompressionService.js +7 -0
- package/lib/commonjs/services/jwtStorageService.js +7 -0
- package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
- package/lib/commonjs/services/linkedinProfileService.js +9 -0
- package/lib/commonjs/services/linkedinScrapingService.js +8 -0
- package/lib/commonjs/services/llmDataStorage.js +8 -0
- package/lib/commonjs/services/mobileTrainingService.js +8 -0
- package/lib/commonjs/services/oauthService.js +11 -390
- package/lib/commonjs/services/pinEncryptionService.js +8 -0
- package/lib/commonjs/services/pinStorageUtils.js +7 -0
- package/lib/commonjs/services/platformAuthService.js +12 -1067
- package/lib/commonjs/services/storageService.js +8 -0
- package/lib/commonjs/services/trainingApiHelpers.js +7 -0
- package/lib/commonjs/services/userConnectionsService.js +10 -0
- package/lib/commonjs/services/youtubeMigrationService.js +10 -0
- package/lib/commonjs/theme/index.js +7 -0
- package/lib/commonjs/types/ambient.d.js +1 -2
- package/lib/commonjs/types/declarations.d.js +1 -2
- package/lib/commonjs/types/index.js +1 -6
- package/lib/commonjs/types/node-fix.d.js +1 -2
- package/lib/commonjs/types/node-override.d.js +1 -2
- package/lib/commonjs/types/opacity.d.js +1 -2
- package/lib/commonjs/types.js +1 -14
- package/lib/commonjs/utils/Portal.js +8 -98
- package/lib/commonjs/utils/api.js +9 -129
- package/lib/commonjs/utils/assetRegistry.js +33 -0
- package/lib/commonjs/utils/auth.js +9 -111
- package/lib/commonjs/utils/crypto.js +8 -62
- package/lib/commonjs/utils/debugHelper.js +1 -64
- package/lib/commonjs/utils/encryption.js +7 -76
- package/lib/commonjs/utils/eventUtils.js +1 -0
- package/lib/commonjs/utils/haptics.js +9 -0
- package/lib/commonjs/utils/imagePreloader.js +1 -0
- package/lib/commonjs/utils/networkDiagnostics.js +8 -0
- package/lib/commonjs/utils/onairosApi.js +9 -350
- package/lib/commonjs/utils/programmaticFlow.js +9 -117
- package/lib/commonjs/utils/retryHelper.js +1 -220
- package/lib/commonjs/utils/secureStorage.js +10 -349
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
- package/lib/commonjs/utils/webviewScripts/index.js +9 -0
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
- package/lib/module/api/index.js +1 -139
- package/lib/module/assets/animations/loaderani.json +1 -0
- package/lib/module/assets/animations/persona-animation.json +1 -0
- package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
- package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
- package/lib/module/assets/icons/Facebookicon.png +0 -0
- package/lib/module/assets/icons/Gmail.png +0 -0
- package/lib/module/assets/icons/Linkedinicon.png +0 -0
- package/lib/module/assets/icons/Redditicon.png +0 -0
- package/lib/module/assets/icons/YouTubeicon2.png +0 -0
- package/lib/module/assets/icons/YouTubeicon3.png +0 -0
- package/lib/module/assets/icons/chatgpt.png +0 -0
- package/lib/module/assets/icons/claude.png +0 -0
- package/lib/module/assets/icons/farcaster.png +0 -0
- package/lib/module/assets/icons/gemini.png +0 -0
- package/lib/module/assets/icons/grok.png +0 -0
- package/lib/module/assets/icons/instagram.png +0 -0
- package/lib/module/assets/icons/pinterest.png +0 -0
- package/lib/module/assets/icons/swerv_logo.png +0 -0
- package/lib/module/assets/icons/twitter.jpg +0 -0
- package/lib/module/assets/images/Checkbox.svg +3 -0
- package/lib/module/assets/images/EnochE.svg +19 -0
- package/lib/module/assets/images/Enochicon1.png +0 -0
- package/lib/module/assets/images/Face_ID_logo.png +0 -0
- package/lib/module/assets/images/Facebookicon.png +0 -0
- package/lib/module/assets/images/Gmail.png +0 -0
- package/lib/module/assets/images/Googlelogo.png +0 -0
- package/lib/module/assets/images/Linkedinicon.png +0 -0
- package/lib/module/assets/images/Onairoslogo.png +0 -0
- package/lib/module/assets/images/Personalityprofile.svg +3 -0
- package/lib/module/assets/images/Personalitytraits.svg +3 -0
- package/lib/module/assets/images/Redditicon.png +0 -0
- package/lib/module/assets/images/Userpreferences.svg +3 -0
- package/lib/module/assets/images/YouTubeicon3.png +0 -0
- package/lib/module/assets/images/arrow.svg +20 -0
- package/lib/module/assets/images/basicproficon.svg +43 -0
- package/lib/module/assets/images/basicprofile.svg +3 -0
- package/lib/module/assets/images/chatgpt.png +0 -0
- package/lib/module/assets/images/checkmark.svg +4 -0
- package/lib/module/assets/images/claude.png +0 -0
- package/lib/module/assets/images/contentanalysis.svg +3 -0
- package/lib/module/assets/images/contenticon.svg +23 -0
- package/lib/module/assets/images/gemini.png +0 -0
- package/lib/module/assets/images/grok.png +0 -0
- package/lib/module/assets/images/persona1.png +0 -0
- package/lib/module/assets/images/persona2.png +0 -0
- package/lib/module/assets/images/persona3.png +0 -0
- package/lib/module/assets/images/persona4.png +0 -0
- package/lib/module/assets/images/persona5.png +0 -0
- package/lib/module/assets/images/personalityicon.svg +18 -0
- package/lib/module/assets/images/x-close.svg +3 -0
- package/lib/module/components/BodyText.js +1 -0
- package/lib/module/components/BrandMark.js +1 -0
- package/lib/module/components/CodeInput.js +1 -0
- package/lib/module/components/EmailInput.js +1 -0
- package/lib/module/components/GoogleButton.js +1 -0
- package/lib/module/components/HeadingGroup.js +1 -0
- package/lib/module/components/LLMDataInputModal.js +8 -0
- package/lib/module/components/ModalHeader.js +1 -0
- package/lib/module/components/ModalSheet.js +1 -0
- package/lib/module/components/Onairos.js +1 -367
- package/lib/module/components/OnairosButton.js +1 -302
- package/lib/module/components/OnairosSignInButton.js +1 -0
- package/lib/module/components/Overlay.js +1 -474
- package/lib/module/components/PersonaImage.js +1 -0
- package/lib/module/components/PersonaLoadingScreen.js +1 -0
- package/lib/module/components/PersonalizationConsentScreen.js +1 -0
- package/lib/module/components/PinCreationScreen.js +1 -0
- package/lib/module/components/PinInput.js +1 -293
- package/lib/module/components/PlatformConnectorsStep.js +1 -0
- package/lib/module/components/PlatformList.js +1 -129
- package/lib/module/components/PlatformToggle.js +1 -0
- package/lib/module/components/PrimaryButton.js +1 -0
- package/lib/module/components/SignInMatchAnimation.js +1 -0
- package/lib/module/components/SignInStep.js +1 -0
- package/lib/module/components/UniversalOnboarding.js +1 -1693
- package/lib/module/components/VerificationStep.js +1 -0
- package/lib/module/components/WelcomeScreen.js +1 -0
- package/lib/module/components/icons/Basicproficon.js +1 -0
- package/lib/module/components/icons/Basicprofile.js +1 -0
- package/lib/module/components/icons/Checkbox.js +1 -0
- package/lib/module/components/icons/Checkmark.js +1 -0
- package/lib/module/components/icons/Contentanalysis.js +1 -0
- package/lib/module/components/icons/Contenticon.js +1 -0
- package/lib/module/components/icons/EnochE.js +1 -0
- package/lib/module/components/icons/Personalityicon.js +1 -0
- package/lib/module/components/icons/Personalityprofile.js +1 -0
- package/lib/module/components/icons/Personalitytraits.js +1 -0
- package/lib/module/components/icons/Userpreferences.js +1 -0
- package/lib/module/components/icons/index.js +1 -0
- package/lib/module/components/onboarding/OAuthWebView.js +1 -818
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
- package/lib/module/components/onboarding/PinInput.js +1 -274
- package/lib/module/components/onboarding/PlatformConnector.js +1 -240
- package/lib/module/config/api.js +1 -0
- package/lib/module/constants/index.js +1 -77
- package/lib/module/context/AuthContext.js +1 -0
- package/lib/module/hooks/useConnectedAccounts.js +1 -0
- package/lib/module/hooks/useConnections.js +1 -152
- package/lib/module/hooks/useCredentials.js +6 -169
- package/lib/module/hooks/useUserConnections.js +1 -0
- package/lib/module/index.js +1 -32
- package/lib/module/services/SDK_API_KEY_VALIDATION.md +31 -38
- package/lib/module/services/apiClient.js +1 -0
- package/lib/module/services/apiKeyService.js +1 -919
- package/lib/module/services/authService.js +1 -0
- package/lib/module/services/biometricPinService.js +1 -0
- package/lib/module/services/chatGPTConversationExtractor.js +1 -0
- package/lib/module/services/chatGPTConversationService.js +1 -0
- package/lib/module/services/claudeConversationExtractor.js +1 -0
- package/lib/module/services/claudeConversationService.js +1 -0
- package/lib/module/services/connectedAccountsService.js +1 -0
- package/lib/module/services/googleAuthService.js +1 -0
- package/lib/module/services/imageCompressionService.js +1 -0
- package/lib/module/services/jwtStorageService.js +1 -0
- package/lib/module/services/linkedinDOMExtractor.js +1 -0
- package/lib/module/services/linkedinProfileService.js +1 -0
- package/lib/module/services/linkedinScrapingService.js +1 -0
- package/lib/module/services/llmDataStorage.js +1 -0
- package/lib/module/services/mobileTrainingService.js +1 -0
- package/lib/module/services/oauthService.js +1 -380
- package/lib/module/services/pinEncryptionService.js +7 -0
- package/lib/module/services/pinStorageUtils.js +1 -0
- package/lib/module/services/platformAuthService.js +1 -1041
- package/lib/module/services/storageService.js +1 -0
- package/lib/module/services/trainingApiHelpers.js +1 -0
- package/lib/module/services/userConnectionsService.js +1 -0
- package/lib/module/services/youtubeMigrationService.js +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/types.js +1 -10
- package/lib/module/utils/Portal.js +1 -90
- package/lib/module/utils/api.js +1 -117
- package/lib/module/utils/assetRegistry.js +33 -0
- package/lib/module/utils/auth.js +1 -99
- package/lib/module/utils/crypto.js +1 -54
- package/lib/module/utils/debugHelper.js +1 -54
- package/lib/module/utils/encryption.js +1 -67
- package/lib/module/utils/eventUtils.js +1 -0
- package/lib/module/utils/haptics.js +8 -0
- package/lib/module/utils/imagePreloader.js +1 -0
- package/lib/module/utils/networkDiagnostics.js +1 -0
- package/lib/module/utils/onairosApi.js +1 -333
- package/lib/module/utils/programmaticFlow.js +1 -111
- package/lib/module/utils/retryHelper.js +1 -211
- package/lib/module/utils/secureStorage.js +6 -330
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
- package/lib/module/utils/webviewScripts/claude.js +1 -0
- package/lib/module/utils/webviewScripts/index.js +1 -0
- package/lib/module/utils/webviewScripts/linkedin.js +1 -0
- package/package.json +62 -39
- package/lib/commonjs/api/index.js.map +0 -1
- package/lib/commonjs/assets/images/email.png +0 -0
- package/lib/commonjs/assets/images/linkedin.png +0 -0
- package/lib/commonjs/assets/images/reddit.png +0 -0
- package/lib/commonjs/assets/images/youtube.png +0 -0
- package/lib/commonjs/components/DataRequestModal.js +0 -228
- package/lib/commonjs/components/DataRequestModal.js.map +0 -1
- package/lib/commonjs/components/DataRequestScreen.js +0 -329
- package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
- package/lib/commonjs/components/EmailVerificationModal.js +0 -320
- package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
- package/lib/commonjs/components/Onairos.js.map +0 -1
- package/lib/commonjs/components/OnairosButton.js.map +0 -1
- package/lib/commonjs/components/Overlay.js.map +0 -1
- package/lib/commonjs/components/PinInput.js.map +0 -1
- package/lib/commonjs/components/PlatformList.js.map +0 -1
- package/lib/commonjs/components/TrainingModal.js +0 -717
- package/lib/commonjs/components/TrainingModal.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
- package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
- package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
- package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
- package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
- package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/commonjs/constants/index.js.map +0 -1
- package/lib/commonjs/hooks/useConnections.js.map +0 -1
- package/lib/commonjs/hooks/useCredentials.js.map +0 -1
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/services/apiKeyService.js.map +0 -1
- package/lib/commonjs/services/oauthService.js.map +0 -1
- package/lib/commonjs/services/platformAuthService.js.map +0 -1
- package/lib/commonjs/types/ambient.d.js.map +0 -1
- package/lib/commonjs/types/declarations.d.js.map +0 -1
- package/lib/commonjs/types/index.d.js.map +0 -1
- package/lib/commonjs/types/index.js.map +0 -1
- package/lib/commonjs/types/node-fix.d.js.map +0 -1
- package/lib/commonjs/types/node-override.d.js.map +0 -1
- package/lib/commonjs/types/opacity.d.js.map +0 -1
- package/lib/commonjs/types/types.d.js.map +0 -1
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/Portal.js.map +0 -1
- package/lib/commonjs/utils/api.js.map +0 -1
- package/lib/commonjs/utils/auth.js.map +0 -1
- package/lib/commonjs/utils/crypto.js.map +0 -1
- package/lib/commonjs/utils/debugHelper.js.map +0 -1
- package/lib/commonjs/utils/encryption.js.map +0 -1
- package/lib/commonjs/utils/onairosApi.js.map +0 -1
- package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
- package/lib/commonjs/utils/retryHelper.js.map +0 -1
- package/lib/commonjs/utils/secureStorage.js.map +0 -1
- package/lib/module/api/index.js.map +0 -1
- package/lib/module/assets/images/email.png +0 -0
- package/lib/module/assets/images/linkedin.png +0 -0
- package/lib/module/assets/images/reddit.png +0 -0
- package/lib/module/assets/images/youtube.png +0 -0
- package/lib/module/components/DataRequestModal.js +0 -220
- package/lib/module/components/DataRequestModal.js.map +0 -1
- package/lib/module/components/DataRequestScreen.js +0 -321
- package/lib/module/components/DataRequestScreen.js.map +0 -1
- package/lib/module/components/EmailVerificationModal.js +0 -311
- package/lib/module/components/EmailVerificationModal.js.map +0 -1
- package/lib/module/components/Onairos.js.map +0 -1
- package/lib/module/components/OnairosButton.js.map +0 -1
- package/lib/module/components/Overlay.js.map +0 -1
- package/lib/module/components/PinInput.js.map +0 -1
- package/lib/module/components/PlatformList.js.map +0 -1
- package/lib/module/components/TrainingModal.js +0 -708
- package/lib/module/components/TrainingModal.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.js.map +0 -1
- package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
- package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
- package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
- package/lib/module/components/onboarding/PinInput.js.map +0 -1
- package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
- package/lib/module/components/screens/ConnectorScreen.js +0 -138
- package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
- package/lib/module/components/screens/LoadingScreen.js +0 -83
- package/lib/module/components/screens/LoadingScreen.js.map +0 -1
- package/lib/module/components/screens/PinCreationScreen.js +0 -53
- package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
- package/lib/module/constants/index.js.map +0 -1
- package/lib/module/hooks/useConnections.js.map +0 -1
- package/lib/module/hooks/useCredentials.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/services/apiKeyService.js.map +0 -1
- package/lib/module/services/oauthService.js.map +0 -1
- package/lib/module/services/platformAuthService.js.map +0 -1
- package/lib/module/types/ambient.d.js.map +0 -1
- package/lib/module/types/declarations.d.js.map +0 -1
- package/lib/module/types/index.d.js.map +0 -1
- package/lib/module/types/index.js.map +0 -1
- package/lib/module/types/node-fix.d.js.map +0 -1
- package/lib/module/types/node-override.d.js.map +0 -1
- package/lib/module/types/opacity.d.js.map +0 -1
- package/lib/module/types/types.d.js.map +0 -1
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils/Portal.js.map +0 -1
- package/lib/module/utils/api.js.map +0 -1
- package/lib/module/utils/auth.js.map +0 -1
- package/lib/module/utils/crypto.js.map +0 -1
- package/lib/module/utils/debugHelper.js.map +0 -1
- package/lib/module/utils/encryption.js.map +0 -1
- package/lib/module/utils/onairosApi.js.map +0 -1
- package/lib/module/utils/programmaticFlow.js.map +0 -1
- package/lib/module/utils/retryHelper.js.map +0 -1
- package/lib/module/utils/secureStorage.js.map +0 -1
- package/lib/typescript/api/index.d.ts +0 -8
- package/lib/typescript/api/index.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestModal.d.ts +0 -11
- package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
- package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
- package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
- package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
- package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
- package/lib/typescript/components/Onairos.d.ts +0 -4
- package/lib/typescript/components/Onairos.d.ts.map +0 -1
- package/lib/typescript/components/OnairosButton.d.ts +0 -12
- package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
- package/lib/typescript/components/Overlay.d.ts +0 -4
- package/lib/typescript/components/Overlay.d.ts.map +0 -1
- package/lib/typescript/components/PinInput.d.ts +0 -4
- package/lib/typescript/components/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/PlatformList.d.ts +0 -4
- package/lib/typescript/components/PlatformList.d.ts.map +0 -1
- package/lib/typescript/components/TrainingModal.d.ts +0 -4
- package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
- package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
- package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
- package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
- package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
- package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
- package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
- package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
- package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
- package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
- package/lib/typescript/constants/index.d.ts +0 -53
- package/lib/typescript/constants/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useConnections.d.ts +0 -9
- package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
- package/lib/typescript/hooks/useCredentials.d.ts +0 -9
- package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -18
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/services/apiKeyService.d.ts +0 -132
- package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
- package/lib/typescript/services/oauthService.d.ts +0 -50
- package/lib/typescript/services/oauthService.d.ts.map +0 -1
- package/lib/typescript/services/platformAuthService.d.ts +0 -144
- package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
- package/lib/typescript/types/index.d.ts +0 -231
- package/lib/typescript/types/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts +0 -270
- package/lib/typescript/types.d.ts.map +0 -1
- package/lib/typescript/utils/Portal.d.ts +0 -14
- package/lib/typescript/utils/Portal.d.ts.map +0 -1
- package/lib/typescript/utils/api.d.ts +0 -6
- package/lib/typescript/utils/api.d.ts.map +0 -1
- package/lib/typescript/utils/auth.d.ts +0 -6
- package/lib/typescript/utils/auth.d.ts.map +0 -1
- package/lib/typescript/utils/crypto.d.ts +0 -4
- package/lib/typescript/utils/crypto.d.ts.map +0 -1
- package/lib/typescript/utils/debugHelper.d.ts +0 -29
- package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
- package/lib/typescript/utils/encryption.d.ts +0 -19
- package/lib/typescript/utils/encryption.d.ts.map +0 -1
- package/lib/typescript/utils/onairosApi.d.ts +0 -87
- package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
- package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
- package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
- package/lib/typescript/utils/retryHelper.d.ts +0 -69
- package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
- package/lib/typescript/utils/secureStorage.d.ts +0 -94
- package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
- package/src/api/index.ts +0 -111
- package/src/assets/images/email.png +0 -0
- package/src/assets/images/linkedin.png +0 -0
- package/src/assets/images/onairos_logo.png +0 -0
- package/src/assets/images/reddit.png +0 -0
- package/src/assets/images/youtube.png +0 -0
- package/src/components/DataRequestModal.tsx +0 -227
- package/src/components/DataRequestScreen.tsx +0 -356
- package/src/components/EmailVerificationModal.tsx +0 -364
- package/src/components/Onairos.tsx +0 -425
- package/src/components/OnairosButton.tsx +0 -359
- package/src/components/Overlay.tsx +0 -506
- package/src/components/PinInput.tsx +0 -343
- package/src/components/PlatformList.tsx +0 -145
- package/src/components/TrainingModal.tsx +0 -737
- package/src/components/UniversalOnboarding.tsx +0 -1839
- package/src/components/UniversalOnboarding.tsx.new +0 -455
- package/src/components/onboarding/OAuthWebView.tsx +0 -838
- package/src/components/onboarding/OnboardingHeader.tsx +0 -70
- package/src/components/onboarding/PinInput.tsx +0 -356
- package/src/components/onboarding/PlatformConnector.tsx +0 -302
- package/src/components/screens/ConnectorScreen.tsx +0 -153
- package/src/components/screens/LoadingScreen.tsx +0 -100
- package/src/components/screens/PinCreationScreen.tsx +0 -67
- package/src/constants/index.ts +0 -83
- package/src/hooks/useConnections.ts +0 -163
- package/src/hooks/useCredentials.ts +0 -175
- package/src/index.js +0 -14
- package/src/index.ts +0 -50
- package/src/services/SDK_API_KEY_VALIDATION.md +0 -428
- package/src/services/apiKeyService.ts +0 -979
- package/src/services/oauthService.ts +0 -412
- package/src/services/platformAuthService.ts +0 -1113
- package/src/types/ambient.d.ts +0 -29
- package/src/types/declarations.d.ts +0 -26
- package/src/types/index.d.ts +0 -274
- package/src/types/index.ts +0 -244
- package/src/types/node-fix.d.ts +0 -19
- package/src/types/node-override.d.ts +0 -24
- package/src/types/opacity.d.ts +0 -16
- package/src/types/types.d.ts +0 -18
- package/src/types.ts +0 -298
- package/src/utils/Portal.tsx +0 -83
- package/src/utils/api.js +0 -112
- package/src/utils/auth.js +0 -104
- package/src/utils/crypto.js +0 -60
- package/src/utils/debugHelper.ts +0 -53
- package/src/utils/encryption.ts +0 -69
- package/src/utils/onairosApi.ts +0 -391
- package/src/utils/programmaticFlow.ts +0 -113
- package/src/utils/retryHelper.ts +0 -275
- package/src/utils/secureStorage.ts +0 -361
- package/types/index.d.ts +0 -218
- package/types/node-env.d.ts +0 -15
- /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
- /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("@react-native-async-storage/async-storage"),
|
|
5
|
+
require("./pinStorageUtils")
|
|
6
|
+
];
|
|
7
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
+
Object[_0x58d9(0x0)](exports,_0x58d9(0x1),{'value':!![]}),exports['updateLastScreen']=exports['saveUserProgress']=exports[_0x58d9(0x2)]=exports[_0x58d9(0x3)]=exports[_0x58d9(0x4)]=exports[_0x58d9(0x5)]=exports[_0x58d9(0x6)]=exports[_0x58d9(0x7)]=exports['hasCompletedOnboarding']=exports[_0x58d9(0x8)]=exports['getResumeTarget']=exports[_0x58d9(0x9)]=exports[_0x58d9(0xa)]=exports['clearUserData']=exports[_0x58d9(0xb)]=exports[_0x58d9(0xc)]=void 0x0;var _asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_pinStorageUtils=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireDefault(_0x3cf89c){return _0x3cf89c&&_0x3cf89c['__esModule']?_0x3cf89c:{'default':_0x3cf89c};}const STORAGE_KEYS=exports[_0x58d9(0xc)]={'AUTH_TOKEN':_0x58d9(0xd),'ONAIROS_JWT_TOKEN':_0x58d9(0xe),'ENOCH_TOKEN':_0x58d9(0xf),'USER':'user','USER_PROFILE':_0x58d9(0x10),'USER_PROFILE_FALLBACK':_0x58d9(0x11),'USER_PROGRESS':_0x58d9(0x12),'ONBOARDING_COMPLETED':'onboardingCompleted','IS_FIRST_TIME_USER':_0x58d9(0x13),'USER_ATTENDANCE_CONFIRMED':_0x58d9(0x14),'ONBOARDING_COMPLETE_TOKEN':_0x58d9(0x15),'EVENT_ACCESS_TOKEN':_0x58d9(0x16),'ONAIROS_USER':_0x58d9(0x17),'APPLE_USER':_0x58d9(0x18),'AUTH_METHOD':'auth_method','CURRENT_EVENT_DATA':_0x58d9(0x19),'CONNECTED_PLATFORMS':_0x58d9(0x1a),'PROFILE_IMAGE':_0x58d9(0x1b),'USER_ADMIN_STATUS':'user_admin_status'},saveUserProgress=async _0x1f6613=>{const _0x462b63={'bPlzc':_0x58d9(0x1c),'ojdTS':'SgfHU','KHSAO':_0x58d9(0x1d),'gcKyr':function(_0x212efd){return _0x212efd();},'TVMPT':_0x58d9(0x1e)};try{if(_0x462b63[_0x58d9(0x1f)]!==_0x462b63[_0x58d9(0x20)]){const _0xce04e8=await _0x462b63[_0x58d9(0x21)](getUserProgress),_0x4b0934={..._0xce04e8,..._0x1f6613,'timestamp':Date[_0x58d9(0x22)]()};await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x24)](STORAGE_KEYS[_0x58d9(0x25)],JSON['stringify'](_0x4b0934)),console[_0x58d9(0x26)](_0x462b63['TVMPT'],_0x4b0934);}else return _0x416c13[_0x58d9(0x27)](_0x462b63[_0x58d9(0x28)],_0x2ce15f),![];}catch(_0x6a6639){console[_0x58d9(0x27)](_0x58d9(0x29),_0x6a6639);}};exports[_0x58d9(0x2a)]=saveUserProgress;const getUserProgress=async()=>{const _0x898ed8={'mVezP':_0x58d9(0x2b),'AuAdl':_0x58d9(0x2c)};try{const _0x3d512d=await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x2d)](STORAGE_KEYS[_0x58d9(0x25)]);if(_0x3d512d)return JSON[_0x58d9(0x2e)](_0x3d512d);}catch(_0x27299f){console[_0x58d9(0x27)](_0x898ed8[_0x58d9(0x2f)],_0x27299f);}return{'lastScreen':_0x898ed8[_0x58d9(0x30)],'completedSteps':[],'authMethod':null,'hasProfilePhoto':![],'hasCompletedProfile':![],'hasSelectedIntentions':![],'hasViewedResults':![],'hasEnteredEventCode':![],'hasRegisteredForEvent':![],'hasReachedEventPage':![],'timestamp':Date['now']()};};exports[_0x58d9(0x8)]=getUserProgress;const saveAuthState=async _0x35d8a8=>{const _0x509bc2={'qMmUv':_0x58d9(0x31),'zzKwF':function(_0xd05d9a){return _0xd05d9a();},'zAINb':function(_0x1993ad,_0x1149ff){return _0x1993ad!==_0x1149ff;},'yWsca':_0x58d9(0x32),'IdBGG':_0x58d9(0x33),'RpOBa':_0x58d9(0x34)};try{const _0x44088a=await _0x509bc2[_0x58d9(0x35)](getAuthState),_0x5d60e8={..._0x44088a,..._0x35d8a8};if(_0x35d8a8[_0x58d9(0x36)]){if(_0x509bc2[_0x58d9(0x37)](_0x509bc2[_0x58d9(0x38)],_0x509bc2['IdBGG']))await _asyncStorage['default'][_0x58d9(0x24)](STORAGE_KEYS[_0x58d9(0x39)],_0x35d8a8['authMethod']);else return _0x108998['error'](_0x509bc2[_0x58d9(0x3a)],_0x499b28),{'isAuthenticated':![],'authMethod':null,'hasValidToken':![]};}console['log'](_0x58d9(0x3b),_0x5d60e8);}catch(_0x1711cf){console['error'](_0x509bc2[_0x58d9(0x3c)],_0x1711cf);}};exports[_0x58d9(0x2)]=saveAuthState;const getAuthState=async()=>{const _0x2da131={'FaZTQ':_0x58d9(0x3d),'LDEtR':_0x58d9(0x3e),'GEtkc':function(_0x9a12be,_0x5cbd54){return _0x9a12be===_0x5cbd54;},'nVHIf':_0x58d9(0x3f)};try{const _0x28f5ac=await _asyncStorage['default'][_0x58d9(0x2d)](STORAGE_KEYS[_0x58d9(0x39)]),_0x43f6e1=!!await _asyncStorage['default'][_0x58d9(0x2d)](STORAGE_KEYS['AUTH_TOKEN']);return{'isAuthenticated':_0x43f6e1,'authMethod':_0x28f5ac,'hasValidToken':_0x43f6e1};}catch(_0x13db61){return _0x2da131['GEtkc'](_0x2da131['nVHIf'],_0x2da131['nVHIf'])?(console[_0x58d9(0x27)](_0x58d9(0x31),_0x13db61),{'isAuthenticated':![],'authMethod':null,'hasValidToken':![]}):(_0x258202[_0x58d9(0x26)](_0x2da131[_0x58d9(0x40)]),{'screen':_0x2da131[_0x58d9(0x41)]});}};function _0x26d8(){const _0x498fb4=['defineProperty','__esModule','saveAuthState','markStepCompleted','markEventPageReached','markAppActive','isReturningUser','hasEventAccessToken','getUserProgress','getDebugStorageInfo','getAuthState','clearAllProgress','STORAGE_KEYS','auth_token','onairos_jwt_token','enoch_token','userProfile','userProfileFallback','user_progress','isFirstTimeUser','userAttendanceConfirmed','onboarding_complete_token','event_access_token','onairos_user','apple_user','currentEventData','connectedPlatforms','profileImage','❌\x20Error\x20checking\x20event\x20access\x20token:','NULGb','✅\x20User\x20progress\x20saved:','ojdTS','KHSAO','gcKyr','now','default','setItem','USER_PROGRESS','log','error','bPlzc','❌\x20Error\x20saving\x20user\x20progress:','saveUserProgress','❌\x20Error\x20getting\x20user\x20progress:','Welcome','getItem','parse','mVezP','AuAdl','❌\x20Error\x20getting\x20auth\x20state:','WoAHA','PAFpR','❌\x20Error\x20saving\x20auth\x20state:','zzKwF','authMethod','zAINb','yWsca','AUTH_METHOD','qMmUv','✅\x20Auth\x20state\x20saved:','RpOBa','🎯\x20User\x20has\x20completed\x20onboarding\x20(verified\x20by\x20token)\x20-\x20returning\x20to\x20Home\x20screen','Home','zKYal','FaZTQ','LDEtR','✅\x20Biometrically\x20stored\x20PIN\x20cleared','⚠️\x20Error\x20clearing\x20stored\x20PIN\x20(continuing):','❌\x20Error\x20clearing\x20user\x20data:','USER','USER_PROFILE_FALLBACK','AUTH_TOKEN','ONAIROS_JWT_TOKEN','ENOCH_TOKEN','ONAIROS_USER','IS_FIRST_TIME_USER','ONBOARDING_COMPLETED','ONBOARDING_COMPLETE_TOKEN','multiRemove','clearStoredPin','warn','vaoYT','CnfqU','clearUserData','❌\x20Error\x20checking\x20onboarding\x20status:','❌\x20Error\x20marking\x20step\x20completed:','qjBAd','oOgcb','CreateFreshProfile','onairos','Intention','❌\x20Error\x20determining\x20resume\x20target:','ArNjF','oGCIP','OeuJP','hasViewedResults','CHrTN','iHAHI','zHUam','KgvSE','isAuthenticated','HypfR','length','GINhg','nApJT','AXhsN','osANY','hCYtc','hasCompletedProfile','PROFILE_IMAGE','heelE','hasSelectedIntentions','JlSSb','CbOzR','aNtrS','QWoeU','NtBfh','USER_PROFILE','hyXGW','JnpFE','getResumeTarget','❌\x20Error\x20updating\x20last\x20screen:','rvrXv','pPglQ','wDJbl','aLmBP','❌\x20Error\x20marking\x20event\x20page\x20reached:','nbEgr','BVHfm','BcovF','dIPBK','hYqrb','hasCompletedOnboarding','true','qlXiJ','PaQQZ','ExLGQ','EVENT_ACCESS_TOKEN','stringify','pJhBU','❌\x20Error\x20clearing\x20progress\x20data:','pTKwP','GITWd','CoJHR','Zohyn','eVzSj','zfHQS','KIalC','ykxxl','rLBax','FQSDp','completedSteps','includes','SnLXe','ujXDD','uTsIA','klGhJ','updateLastScreen','wHear','ygzTj','TcGDc','MyDAs','qgSeI','❌\x20Error\x20checking\x20returning\x20user\x20status:','DYRlQ','❌\x20Error\x20marking\x20app\x20as\x20active:','eDEYV','✅\x20App\x20marked\x20as\x20active','WQjlp','QcyBr','NdkuU','DztME','gBURL','OMmlX','qVIVz','DIqlX','hqKvv','✅\x20All\x20progress\x20data\x20cleared','gSADq'];_0x26d8=function(){return _0x498fb4;};return _0x26d8();}exports['getAuthState']=getAuthState;const clearUserData=async()=>{const _0x3d1f44={'NOLzM':_0x58d9(0x42),'vaoYT':_0x58d9(0x43),'CnfqU':_0x58d9(0x44)};try{const _0x54bad4=[STORAGE_KEYS[_0x58d9(0x45)],STORAGE_KEYS['USER_PROFILE'],STORAGE_KEYS[_0x58d9(0x46)],STORAGE_KEYS[_0x58d9(0x25)],STORAGE_KEYS[_0x58d9(0x47)],STORAGE_KEYS[_0x58d9(0x48)],STORAGE_KEYS[_0x58d9(0x49)],STORAGE_KEYS[_0x58d9(0x4a)],STORAGE_KEYS['APPLE_USER'],STORAGE_KEYS[_0x58d9(0x39)],STORAGE_KEYS[_0x58d9(0x4b)],STORAGE_KEYS['USER_ATTENDANCE_CONFIRMED'],STORAGE_KEYS['PROFILE_IMAGE'],STORAGE_KEYS[_0x58d9(0x4c)],STORAGE_KEYS[_0x58d9(0x4d)],STORAGE_KEYS['EVENT_ACCESS_TOKEN']];await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x4e)](_0x54bad4);try{await(0x0,_pinStorageUtils[_0x58d9(0x4f)])(),console[_0x58d9(0x26)](_0x3d1f44['NOLzM']);}catch(_0x532739){console[_0x58d9(0x50)](_0x3d1f44[_0x58d9(0x51)],_0x532739);}console[_0x58d9(0x26)]('✅\x20User\x20data\x20cleared\x20including\x20onboarding\x20completion\x20tokens');}catch(_0x4dec23){console[_0x58d9(0x27)](_0x3d1f44[_0x58d9(0x52)],_0x4dec23);}};exports[_0x58d9(0x53)]=clearUserData;const getResumeTarget=async()=>{const _0x10a436={'KgvSE':_0x58d9(0x54),'osANY':_0x58d9(0x29),'QWoeU':_0x58d9(0x55),'ArNjF':function(_0x2e3605){return _0x2e3605();},'oGCIP':function(_0x44d016){return _0x44d016();},'OeuJP':function(_0x436938){return _0x436938();},'CHrTN':function(_0x590972,_0x17006e){return _0x590972!==_0x17006e;},'iHAHI':'pmhWR','HypfR':_0x58d9(0x56),'LXheJ':function(_0x19cf72,_0xa73399){return _0x19cf72===_0xa73399;},'hCYtc':_0x58d9(0x2c),'GINhg':function(_0x15e63e,_0x17f02b){return _0x15e63e===_0x17f02b;},'nApJT':'fAgbn','AXhsN':_0x58d9(0x57),'NzpQU':_0x58d9(0x58),'heelE':_0x58d9(0x59),'JlSSb':function(_0x4b2eb8,_0x2db287){return _0x4b2eb8===_0x2db287;},'CbOzR':'RGPPg','NtBfh':_0x58d9(0x5a),'hyXGW':'Results','JnpFE':_0x58d9(0x5b)};try{const _0x392b02=await _0x10a436[_0x58d9(0x5c)](getUserProgress),_0x5671a2=await _0x10a436[_0x58d9(0x5d)](getAuthState),_0x536139=await _0x10a436[_0x58d9(0x5e)](hasEventAccessToken);if(_0x536139||_0x392b02['hasReachedEventPage']&&_0x392b02[_0x58d9(0x5f)])return _0x10a436[_0x58d9(0x60)](_0x10a436[_0x58d9(0x61)],_0x58d9(0x62))?(console[_0x58d9(0x26)](_0x58d9(0x3d)),{'screen':_0x58d9(0x3e)}):(_0xd7edb1[_0x58d9(0x27)](_0x10a436[_0x58d9(0x63)],_0x1d7755),![]);if(!_0x5671a2[_0x58d9(0x64)])return _0x10a436[_0x58d9(0x65)]!==_0x58d9(0x56)?_0x3ba71b['parse'](_0x3c1f26):{'screen':_0x58d9(0x2c)};if(_0x10a436['LXheJ'](_0x392b02['completedSteps'][_0x58d9(0x66)],0x0))return{'screen':_0x10a436['hCYtc'],'params':{'isNewUser':!![],'activateCamera':!![]}};if(!_0x392b02['hasProfilePhoto']){if(_0x10a436[_0x58d9(0x67)](_0x10a436[_0x58d9(0x68)],_0x10a436[_0x58d9(0x69)]))_0x55f64d[_0x58d9(0x27)](_0x10a436[_0x58d9(0x6a)],_0x597565);else return{'screen':_0x10a436[_0x58d9(0x6b)],'params':{'isNewUser':!![],'activateCamera':!![]}};}if(!_0x392b02[_0x58d9(0x6c)]){const _0x1310a2=await _asyncStorage['default'][_0x58d9(0x2d)](STORAGE_KEYS[_0x58d9(0x6d)]);return{'screen':_0x10a436['NzpQU'],'params':{'photo':_0x1310a2,'isReviewerBypass':_0x10a436[_0x58d9(0x67)](_0x5671a2[_0x58d9(0x36)],_0x10a436[_0x58d9(0x6e)])}};}if(!_0x392b02[_0x58d9(0x6f)]){if(_0x10a436[_0x58d9(0x70)](_0x10a436[_0x58d9(0x71)],_0x58d9(0x72)))_0x87de4f['error'](_0x10a436[_0x58d9(0x73)],_0x2495e6);else{const _0x5924c6=await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x2d)](STORAGE_KEYS['USER_PROFILE']);return{'screen':_0x10a436[_0x58d9(0x74)],'params':{'userProfile':_0x5924c6?JSON[_0x58d9(0x2e)](_0x5924c6):null}};}}const _0x363773=await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x2d)](STORAGE_KEYS[_0x58d9(0x75)]);return{'screen':_0x10a436[_0x58d9(0x76)],'params':{'userProfile':_0x363773?JSON[_0x58d9(0x2e)](_0x363773):null}};}catch(_0x1d2884){return console[_0x58d9(0x27)](_0x10a436[_0x58d9(0x77)],_0x1d2884),{'screen':_0x58d9(0x2c)};}};exports[_0x58d9(0x78)]=getResumeTarget;const hasCompletedOnboarding=async()=>{const _0x1ca596={'dIPBK':_0x58d9(0x79),'aLmBP':_0x58d9(0x7a),'nbEgr':function(_0x1836bf){return _0x1836bf();},'ahysN':function(_0x27c8b2,_0x23ff42){return _0x27c8b2===_0x23ff42;},'BVHfm':_0x58d9(0x7b),'BcovF':_0x58d9(0x7c),'hYqrb':_0x58d9(0x54)};try{if(_0x1ca596['aLmBP']!==_0x1ca596[_0x58d9(0x7d)])_0x47ee8e[_0x58d9(0x27)](_0x58d9(0x7e),_0x1b076c);else{const _0x471892=await _0x1ca596[_0x58d9(0x7f)](getUserProgress);return _0x471892['hasCompletedProfile']&&_0x471892[_0x58d9(0x5f)];}}catch(_0x35fa69){if(_0x1ca596['ahysN'](_0x1ca596[_0x58d9(0x80)],_0x1ca596[_0x58d9(0x81)]))_0x3e4f4b[_0x58d9(0x27)](_0x1ca596[_0x58d9(0x82)],_0x3c5b8f);else return console[_0x58d9(0x27)](_0x1ca596[_0x58d9(0x83)],_0x35fa69),![];}};exports[_0x58d9(0x84)]=hasCompletedOnboarding;function _0x58d9(_0x26d8f8,_0x58d9ea){_0x26d8f8=_0x26d8f8-0x0;const _0x4607a1=_0x26d8();let _0x1671dc=_0x4607a1[_0x26d8f8];return _0x1671dc;}const markEventPageReached=async _0x1f90aa=>{const _0x66f852={'qlXiJ':function(_0x2a0ec1){return _0x2a0ec1();},'PaQQZ':function(_0x29c7a9,_0xb54463){return _0x29c7a9(_0xb54463);},'ExLGQ':_0x58d9(0x85),'pJhBU':'✅\x20User\x20marked\x20as\x20having\x20reached\x20event\x20page\x20-\x20will\x20always\x20return\x20to\x20Results','OfAOB':_0x58d9(0x7e)};try{const _0x152d9e=await _0x66f852[_0x58d9(0x86)](getUserProgress),_0xe7b80c={..._0x152d9e,'hasReachedEventPage':!![],'hasViewedResults':!![],'eventData':_0x1f90aa||_0x152d9e['eventData'],'timestamp':Date[_0x58d9(0x22)]()};await _0x66f852[_0x58d9(0x87)](saveUserProgress,_0xe7b80c),await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x24)](STORAGE_KEYS['ONBOARDING_COMPLETE_TOKEN'],_0x66f852[_0x58d9(0x88)]),await _asyncStorage[_0x58d9(0x23)][_0x58d9(0x24)](STORAGE_KEYS[_0x58d9(0x89)],JSON[_0x58d9(0x8a)]({'timestamp':Date[_0x58d9(0x22)](),'eventData':_0x1f90aa,'hasAccess':!![]})),console[_0x58d9(0x26)](_0x66f852[_0x58d9(0x8b)]);}catch(_0x1868f9){console[_0x58d9(0x27)](_0x66f852['OfAOB'],_0x1868f9);}};exports[_0x58d9(0x4)]=markEventPageReached;const hasEventAccessToken=async()=>{const _0xdd2e8={'Zohyn':_0x58d9(0x8c),'GITWd':function(_0x38206f,_0x9d6328){return _0x38206f!==_0x9d6328;},'CoJHR':_0x58d9(0x8d),'YopXY':function(_0x2169b0,_0x3152f7){return _0x2169b0===_0x3152f7;},'eVzSj':_0x58d9(0x85),'zfHQS':function(_0x4d979f,_0x541313){return _0x4d979f===_0x541313;},'rLBax':'❌\x20Error\x20checking\x20event\x20access\x20token:'};try{if(_0xdd2e8[_0x58d9(0x8e)](_0xdd2e8[_0x58d9(0x8f)],_0x58d9(0x8d)))_0x3326dc[_0x58d9(0x27)](_0xdd2e8[_0x58d9(0x90)],_0x37d582);else{const _0x50334b=await _asyncStorage[_0x58d9(0x23)]['getItem'](STORAGE_KEYS[_0x58d9(0x4d)]),_0x2477e1=await getUserProgress();return _0xdd2e8['YopXY'](_0x50334b,_0xdd2e8[_0x58d9(0x91)])&&_0x2477e1['hasReachedEventPage'];}}catch(_0x5cc7ef){return _0xdd2e8[_0x58d9(0x92)](_0x58d9(0x93),_0x58d9(0x94))?{'screen':_0x58d9(0x2c),'params':{'isNewUser':!![],'activateCamera':!![]}}:(console[_0x58d9(0x27)](_0xdd2e8[_0x58d9(0x95)],_0x5cc7ef),![]);}};exports[_0x58d9(0x7)]=hasEventAccessToken;const markStepCompleted=async _0x288ffb=>{const _0x16953c={'FQSDp':function(_0x4dadee){return _0x4dadee();},'SnLXe':function(_0x205a58,_0x3fe54a){return _0x205a58(_0x3fe54a);},'ujXDD':_0x58d9(0x55)};try{const _0x407d9d=await _0x16953c[_0x58d9(0x96)](getUserProgress);!_0x407d9d[_0x58d9(0x97)][_0x58d9(0x98)](_0x288ffb)&&(_0x407d9d[_0x58d9(0x97)]['push'](_0x288ffb),await _0x16953c[_0x58d9(0x99)](saveUserProgress,_0x407d9d));}catch(_0x36c212){console[_0x58d9(0x27)](_0x16953c[_0x58d9(0x9a)],_0x36c212);}};exports['markStepCompleted']=markStepCompleted;const updateLastScreen=async(_0x24cfe1,_0x340344)=>{const _0x2ca857={'uTsIA':function(_0x4b2c18,_0x408e14){return _0x4b2c18(_0x408e14);},'klGhJ':_0x58d9(0x79)};try{await _0x2ca857[_0x58d9(0x9b)](saveUserProgress,{'lastScreen':_0x24cfe1,'timestamp':Date[_0x58d9(0x22)]()});}catch(_0x34fcec){console[_0x58d9(0x27)](_0x2ca857[_0x58d9(0x9c)],_0x34fcec);}};exports[_0x58d9(0x9d)]=updateLastScreen;const isReturningUser=async()=>{const _0x1e20f8={'TjuUb':'❌\x20Error\x20checking\x20returning\x20user\x20status:','DYRlQ':_0x58d9(0x2c),'wHear':function(_0x486122,_0x5af244){return _0x486122===_0x5af244;},'TcGDc':'GHqDM','MyDAs':function(_0x9d4b23,_0x8a8149){return _0x9d4b23>_0x8a8149;},'BAzdx':function(_0x207b92,_0x35011c){return _0x207b92===_0x35011c;}};try{if(_0x1e20f8[_0x58d9(0x9e)](_0x58d9(0x9f),_0x1e20f8[_0x58d9(0xa0)]))return _0xada7d2['error'](_0x1e20f8['TjuUb'],_0x50242b),![];else{const _0x589635=await getUserProgress(),_0x44cde4=await getAuthState();return _0x44cde4[_0x58d9(0x64)]&&_0x1e20f8[_0x58d9(0xa1)](_0x589635[_0x58d9(0x97)]['length'],0x0);}}catch(_0x4184ec){return _0x1e20f8['BAzdx'](_0x58d9(0xa2),_0x58d9(0xa2))?(console[_0x58d9(0x27)](_0x58d9(0xa3),_0x4184ec),![]):{'screen':_0x1e20f8[_0x58d9(0xa4)],'params':{'isNewUser':!![],'activateCamera':!![]}};}};exports[_0x58d9(0x6)]=isReturningUser;const markAppActive=async()=>{const _0x54259={'eDEYV':function(_0x3a4ec5,_0x742ed0){return _0x3a4ec5(_0x742ed0);},'WQjlp':_0x58d9(0xa5)};try{await _0x54259[_0x58d9(0xa6)](saveUserProgress,{'timestamp':Date['now']()}),console['log'](_0x58d9(0xa7));}catch(_0xd07d47){console[_0x58d9(0x27)](_0x54259[_0x58d9(0xa8)],_0xd07d47);}};exports[_0x58d9(0x5)]=markAppActive;const getDebugStorageInfo=async()=>{const _0xd9734f={'DztME':'❌\x20Error\x20saving\x20auth\x20state:','OFPoS':'⚠️\x20Error\x20clearing\x20stored\x20PIN\x20(continuing):','NdkuU':_0x58d9(0xa9),'gBURL':function(_0x5366a0){return _0x5366a0();},'DaEMM':function(_0x321ada){return _0x321ada();},'OMmlX':function(_0x386525,_0x28e0cb){return _0x386525===_0x28e0cb;},'hqKvv':'❌\x20Error\x20getting\x20debug\x20storage\x20info:'};try{if(_0xd9734f[_0x58d9(0xaa)]!==_0xd9734f[_0x58d9(0xaa)])_0x2b0ff2[_0x58d9(0x27)](_0xd9734f[_0x58d9(0xab)],_0x22d1a3);else{const _0x3a14c0=await _0xd9734f[_0x58d9(0xac)](getUserProgress),_0x8bc9e2=await getAuthState(),_0x28c48e=await _0xd9734f['DaEMM'](isReturningUser),_0x226d90=await getResumeTarget();return{'progress':_0x3a14c0,'authState':_0x8bc9e2,'isReturning':_0x28c48e,'resumeTarget':_0x226d90};}}catch(_0x48303c){if(_0xd9734f[_0x58d9(0xad)](_0x58d9(0xae),_0x58d9(0xaf)))_0x5eb414['warn'](_0xd9734f['OFPoS'],_0xe0997d);else{console[_0x58d9(0x27)](_0xd9734f[_0x58d9(0xb0)],_0x48303c);throw _0x48303c;}}};exports['getDebugStorageInfo']=getDebugStorageInfo;const clearAllProgress=async()=>{const _0x325faa={'gSADq':function(_0x1f4c8f){return _0x1f4c8f();},'JuxWq':_0x58d9(0xb1),'tNwZi':_0x58d9(0x8c)};try{await _0x325faa[_0x58d9(0xb2)](clearUserData),console[_0x58d9(0x26)](_0x325faa['JuxWq']);}catch(_0xdfd984){console[_0x58d9(0x27)](_0x325faa['tNwZi'],_0xdfd984);}};exports['clearAllProgress']=clearAllProgress;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("./pinEncryptionService")
|
|
5
|
+
];
|
|
6
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
+
Object[_0x239f(0x0)](exports,'__esModule',{'value':!![]}),exports['addEncryptedPinToTrainingData']=void 0x0;function _0x239f(_0x39b17d,_0x239f2d){_0x39b17d=_0x39b17d-0x0;const _0x3a6962=_0x39b1();let _0x220f38=_0x3a6962[_0x39b17d];return _0x220f38;}var _pinEncryptionService=__ONAIROS_REQ_FUNC__(0x0);const addEncryptedPinToTrainingData=async _0x211816=>{const _0x27b438={'dltyM':'❌\x20Error\x20adding\x20encrypted\x20PIN\x20to\x20training\x20data:'};try{const _0x96982d=await(0x0,_pinEncryptionService['getEncryptedPinForAPI'])();return _0x96982d?(console[_0x239f(0x1)](_0x239f(0x2)),{..._0x211816,'encryptedPin':_0x96982d,'hasPinData':!![]}):(console[_0x239f(0x1)](_0x239f(0x3)),{..._0x211816,'hasPinData':![]});}catch(_0x3c59fc){return console[_0x239f(0x4)](_0x27b438[_0x239f(0x5)],_0x3c59fc),{..._0x211816,'hasPinData':![]};}};function _0x39b1(){const _0xdaf9aa=['defineProperty','log','✅\x20Adding\x20encrypted\x20PIN\x20to\x20training\x20data','⚠️\x20No\x20PIN\x20available\x20for\x20training\x20data','error','dltyM','addEncryptedPinToTrainingData'];_0x39b1=function(){return _0xdaf9aa;};return _0x39b1();}exports[_0x239f(0x6)]=addEncryptedPinToTrainingData;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("./authService"),
|
|
5
|
+
require("@react-native-async-storage/async-storage"),
|
|
6
|
+
require("../config/api"),
|
|
7
|
+
require("../utils/assetRegistry")
|
|
8
|
+
];
|
|
9
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
+
Object['defineProperty'](exports,_0x2ebe(0x0),{'value':!![]}),exports[_0x2ebe(0x1)]=exports['getUserConnectionsByUsername']=exports['getUserConnectionsByUserId']=exports[_0x2ebe(0x2)]=void 0x0;var _authService=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2),_assetRegistry=__ONAIROS_REQ_FUNC__(0x3);function _0x2ebe(_0x54d697,_0x2ebe93){_0x54d697=_0x54d697-0x0;const _0x4d2ef9=_0x54d6();let _0x5103d6=_0x4d2ef9[_0x54d697];return _0x5103d6;}function _interopRequireDefault(_0x1d68d1){return _0x1d68d1&&_0x1d68d1[_0x2ebe(0x0)]?_0x1d68d1:{'default':_0x1d68d1};}const getUserIdWithFallbacks=async()=>{const _0x5bbff5={'Kdkzr':_0x2ebe(0x3),'oGauS':_0x2ebe(0x4),'JpYHf':'⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','NrPop':'🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20username\x20as\x20email\x20fallback:','xTwcf':_0x2ebe(0x5),'HwqoS':_0x2ebe(0x6),'kwAfF':function(_0x3bb022,_0x6cc1d1){return _0x3bb022!==_0x6cc1d1;},'CTxTb':function(_0x54f12a,_0x2ebee1){return _0x54f12a!==_0x2ebee1;},'dDUzo':function(_0x482315,_0x402394){return _0x482315!==_0x402394;},'FlbcH':_0x2ebe(0x7),'HCiJD':_0x2ebe(0x8),'DCIFL':'✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20getUserProfile:','pFmDe':_0x2ebe(0x9),'bjFXA':function(_0x31903b,_0x1fc506){return _0x31903b===_0x1fc506;},'aeRrf':_0x2ebe(0xa),'eekvj':_0x2ebe(0xb),'qdhxF':_0x2ebe(0xc),'LRDMV':_0x2ebe(0xd),'ZxkFl':function(_0x454f38,_0x4affe2){return _0x454f38!==_0x4affe2;},'jBfQw':function(_0x34f314,_0x324aac){return _0x34f314>_0x324aac;},'XVgha':_0x2ebe(0xe),'cRvfK':_0x2ebe(0xf),'xDgSe':'onairos_username','nOSzI':_0x2ebe(0x10),'EpsCf':function(_0x2051d7,_0x3ab979){return _0x2051d7===_0x3ab979;},'BzzVO':'ryDDI','hjLnC':function(_0x420198,_0x482cef){return _0x420198===_0x482cef;},'WWuMm':_0x2ebe(0x11),'vjABp':'✅\x20[USER\x20ID]\x20Got\x20email\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','Fnpkd':_0x2ebe(0x12),'IjcfT':_0x2ebe(0x13),'xRBdl':'⚠️\x20[USER\x20ID]\x20JWT\x20token\x20access\x20failed:','adDau':_0x2ebe(0x14),'cWztg':_0x2ebe(0x15)};try{console[_0x2ebe(0x16)](_0x5bbff5[_0x2ebe(0x17)]);try{const _0x4fbd01=await(0x0,_authService['getUserProfile'])();if(_0x4fbd01!==null&&_0x5bbff5[_0x2ebe(0x18)](_0x4fbd01,void 0x0)&&_0x4fbd01['id']&&_0x5bbff5[_0x2ebe(0x19)](_0x4fbd01['id'],_0x2ebe(0x1a))){if(_0x5bbff5[_0x2ebe(0x1b)](_0x5bbff5[_0x2ebe(0x1c)],_0x5bbff5[_0x2ebe(0x1d)]))return console[_0x2ebe(0x16)](_0x5bbff5[_0x2ebe(0x1e)],_0x4fbd01['id']),_0x4fbd01['id'];else{const _0x24d835=_0x2a0912[_0x2ebe(0x1f)][_0x2ebe(0x20)](_0x267a1e);return _0x2f6ca4[_0x2ebe(0x16)](_0x5bbff5['Kdkzr'],_0x24d835[_0x2ebe(0x21)]),_0x24d835;}}else console[_0x2ebe(0x22)](_0x5bbff5[_0x2ebe(0x23)],_0x5bbff5[_0x2ebe(0x24)](_0x4fbd01,null)||_0x4fbd01===void 0x0?void 0x0:_0x4fbd01['id']);}catch(_0x1a2de8){if(_0x5bbff5['aeRrf']===_0x5bbff5[_0x2ebe(0x25)])return _0x3cc3dc[_0x2ebe(0x16)](_0x2ebe(0x10),_0x50359a),_0x7dbc54;else console[_0x2ebe(0x22)](_0x5bbff5[_0x2ebe(0x26)],_0x1a2de8);}const _0x402fe0=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)](_0x2ebe(0x29));if(_0x402fe0&&_0x5bbff5[_0x2ebe(0x1b)](_0x402fe0,_0x5bbff5[_0x2ebe(0x2a)])&&_0x5bbff5['ZxkFl'](_0x402fe0,'fallback_user')&&_0x5bbff5[_0x2ebe(0x2b)](_0x402fe0[_0x2ebe(0x21)],0xa))return console[_0x2ebe(0x16)](_0x5bbff5['XVgha'],_0x402fe0),_0x402fe0;else{if(_0x402fe0){if(_0x5bbff5['cRvfK']===_0x5bbff5[_0x2ebe(0x2c)])console[_0x2ebe(0x22)]('⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:',_0x402fe0);else return _0x215724['warn'](_0x5bbff5[_0x2ebe(0x2d)]),[];}}const _0x43c4e5=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)](_0x5bbff5[_0x2ebe(0x2e)]);if(_0x43c4e5&&_0x43c4e5[_0x2ebe(0x21)]>0x2&&_0x5bbff5[_0x2ebe(0x1b)](_0x43c4e5,_0x5bbff5[_0x2ebe(0x2a)]))return console[_0x2ebe(0x16)](_0x5bbff5['nOSzI'],_0x43c4e5),_0x43c4e5;else _0x43c4e5&&(_0x5bbff5[_0x2ebe(0x2f)](_0x5bbff5[_0x2ebe(0x30)],'ryDDI')?console[_0x2ebe(0x22)](_0x2ebe(0x5),_0x43c4e5):_0x4253b4[_0x2ebe(0x22)](_0x5bbff5[_0x2ebe(0x31)],_0x57ec55));const _0x3ecc70=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)]('user_email');if(_0x3ecc70&&_0x3ecc70[_0x2ebe(0x32)]('@')&&_0x3ecc70[_0x2ebe(0x21)]>0x5){if(_0x5bbff5[_0x2ebe(0x33)](_0x2ebe(0x34),_0x5bbff5[_0x2ebe(0x35)]))_0x2c5b2b[_0x2ebe(0x16)](_0x5bbff5[_0x2ebe(0x36)],_0xf93195),_0x32bde9=_0x2e9bbe;else return console['log'](_0x5bbff5['vjABp'],_0x3ecc70),_0x3ecc70;}else _0x3ecc70&&console[_0x2ebe(0x22)]('⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:',_0x3ecc70);try{const _0x579701=await(0x0,_authService['getAuthToken'])();_0x579701&&_0x579701[_0x2ebe(0x37)]('.')[_0x2ebe(0x21)]===0x3&&(_0x5bbff5['Fnpkd']===_0x5bbff5[_0x2ebe(0x38)]?console[_0x2ebe(0x16)](_0x5bbff5[_0x2ebe(0x39)]):_0x1ca85b[_0x2ebe(0x22)](_0x5bbff5[_0x2ebe(0x3a)],_0xd26334));}catch(_0xa71385){console[_0x2ebe(0x22)](_0x5bbff5[_0x2ebe(0x3b)],_0xa71385);}return console[_0x2ebe(0x3c)](_0x5bbff5['adDau']),null;}catch(_0x360b87){return console[_0x2ebe(0x3c)](_0x5bbff5[_0x2ebe(0x3d)],_0x360b87),null;}},samImage=_assetRegistry[_0x2ebe(0x3e)][_0x2ebe(0x3f)],anandImage=_assetRegistry[_0x2ebe(0x3e)][_0x2ebe(0x40)],chrisImage=_assetRegistry[_0x2ebe(0x3e)][_0x2ebe(0x41)],katieImage=_assetRegistry[_0x2ebe(0x3e)]['level4'],yanniImage=_assetRegistry[_0x2ebe(0x3e)][_0x2ebe(0x42)],API_BASE_URL=_api[_0x2ebe(0x43)][_0x2ebe(0x44)],transformAPIConnection=_0x1c54e4=>{const _0x54592b={'rWeaJ':_0x2ebe(0x45),'AVGiM':function(_0x759c43,_0x509a07){return _0x759c43===_0x509a07;},'PczSh':function(_0x4177c5,_0x265f51){return _0x4177c5(_0x265f51);},'ThsHn':function(_0x4dc7b9,_0x449ddd){return _0x4dc7b9*_0x449ddd;},'mRTFf':'Unknown\x20User','MwDsp':_0x2ebe(0x46),'KLjlp':'Hi!\x20Nice\x20to\x20meet\x20you.'};var _0x4298e9,_0x26ce65;return console[_0x2ebe(0x16)](_0x54592b[_0x2ebe(0x47)],{'id':_0x1c54e4['id'],'name':_0x1c54e4[_0x2ebe(0x48)],'description':_0x1c54e4[_0x2ebe(0x49)],'hasPhoto':!!_0x1c54e4[_0x2ebe(0x4a)],'photoLength':(_0x4298e9=_0x1c54e4[_0x2ebe(0x4a)])===null||_0x54592b[_0x2ebe(0x4b)](_0x4298e9,void 0x0)?void 0x0:_0x4298e9[_0x2ebe(0x21)],'interests':_0x1c54e4[_0x2ebe(0x4c)],'sharedPassions':_0x1c54e4['sharedPassions'],'complementaryQualities':_0x1c54e4[_0x2ebe(0x4d)],'compatibility':_0x1c54e4[_0x2ebe(0x4e)]}),{'id':_0x54592b['PczSh'](parseInt,_0x1c54e4['id'])||_0x54592b[_0x2ebe(0x4f)](parseInt,_0x1c54e4[_0x2ebe(0x50)]||'')||_0x54592b[_0x2ebe(0x51)](Math[_0x2ebe(0x52)](),0x3e8),'name':_0x1c54e4[_0x2ebe(0x48)]||_0x54592b[_0x2ebe(0x53)],'description':_0x1c54e4[_0x2ebe(0x49)]||_0x54592b[_0x2ebe(0x54)],'photo':_0x1c54e4[_0x2ebe(0x4a)]||'','bio':_0x1c54e4[_0x2ebe(0x55)]||'','interests':_0x1c54e4[_0x2ebe(0x4c)]||[],'mutualConnections':_0x1c54e4['mutualConnections']||0x0,'compatibility':_0x1c54e4[_0x2ebe(0x4e)]||0x0,'conversationStarters':_0x1c54e4['conversationStarters']||[_0x54592b['KLjlp']],'sharedPassions':_0x1c54e4['sharedPassions']||[],'complementaryQualities':_0x1c54e4[_0x2ebe(0x4d)]||[],'meaningfulCoincidences':_0x1c54e4[_0x2ebe(0x56)]||[],'mutualConnectionsList':((_0x26ce65=_0x1c54e4['mutualConnectionsList'])===null||_0x26ce65===void 0x0?void 0x0:_0x26ce65[_0x2ebe(0x20)](_0x3e9e9c=>({'name':_0x3e9e9c[_0x2ebe(0x48)],'photo':_0x3e9e9c['photo'],'context':_0x3e9e9c[_0x2ebe(0x57)]})))||[]};},getUserConnectionsByUsername=async _0x1c3d09=>{const _0x50aa17={'MGHtB':_0x2ebe(0x15),'sCJTo':_0x2ebe(0x58),'RuuHs':function(_0x1ed2af,_0x198910){return _0x1ed2af===_0x198910;},'LtOcr':_0x2ebe(0x59),'xXayB':_0x2ebe(0x5a),'ZISSu':_0x2ebe(0x5b),'HlKzS':'⚠️\x20[CONNECTIONS\x20API]\x20This\x20may\x20result\x20in\x20limited\x20or\x20cached\x20data\x20from\x20backend','UbDBI':'✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','WZCsI':_0x2ebe(0x5c),'mCkKI':_0x2ebe(0x5d),'BAWVv':function(_0x2642aa,_0x4fa3d2){return _0x2642aa===_0x4fa3d2;},'IciRY':function(_0x53d59a,_0x58187a){return _0x53d59a!==_0x58187a;},'lyyRe':function(_0x12e131,_0x5b2a93){return _0x12e131>_0x5b2a93;},'OPMDw':_0x2ebe(0x5e),'sDNHI':'🔄\x20Transformed\x20connections\x20by\x20username:','Daksv':_0x2ebe(0x5f),'zCBiD':_0x2ebe(0x60)};try{if(_0x50aa17[_0x2ebe(0x61)](_0x50aa17[_0x2ebe(0x62)],_0x2ebe(0x59))){var _0x5acb7,_0xac518;console[_0x2ebe(0x16)]('🔍\x20Fetching\x20connections\x20for\x20username:',_0x1c3d09);const _0x37719a=await(0x0,_authService['getAuthToken'])();if(!_0x37719a)return _0x50aa17[_0x2ebe(0x61)](_0x50aa17[_0x2ebe(0x63)],_0x2ebe(0x64))?(_0xdefb48['error'](_0x50aa17[_0x2ebe(0x65)],_0x48ea4a),null):(console[_0x2ebe(0x22)](_0x50aa17[_0x2ebe(0x66)]),console[_0x2ebe(0x22)](_0x50aa17['HlKzS']),[]);console['log'](_0x50aa17[_0x2ebe(0x67)],_0x37719a[_0x2ebe(0x68)](0x0,0x14)+'...');const _0xd2f6c3={'success':![],'message':_0x2ebe(0x69),'connections':[],'source':_0x50aa17['WZCsI']};console['log'](_0x50aa17[_0x2ebe(0x6a)],{'success':_0xd2f6c3[_0x2ebe(0x6b)],'connectionsCount':(_0x50aa17[_0x2ebe(0x6c)](_0x5acb7=_0xd2f6c3[_0x2ebe(0x1f)],null)||_0x5acb7===void 0x0?void 0x0:_0x5acb7[_0x2ebe(0x21)])||0x0,'source':_0xd2f6c3[_0x2ebe(0x6d)],'firstConnection':(_0xac518=_0xd2f6c3[_0x2ebe(0x1f)])!==null&&_0x50aa17['IciRY'](_0xac518,void 0x0)&&_0xac518[0x0]?{'id':_0xd2f6c3[_0x2ebe(0x1f)][0x0]['id'],'name':_0xd2f6c3['connections'][0x0]['name'],'description':_0xd2f6c3[_0x2ebe(0x1f)][0x0][_0x2ebe(0x49)]}:null});if(_0xd2f6c3[_0x2ebe(0x6b)]&&_0xd2f6c3['connections']&&_0x50aa17[_0x2ebe(0x6e)](_0xd2f6c3[_0x2ebe(0x1f)][_0x2ebe(0x21)],0x0)){if(_0x50aa17[_0x2ebe(0x6f)](_0x50aa17[_0x2ebe(0x70)],_0x50aa17[_0x2ebe(0x70)]))return _0x4fccd2[_0x2ebe(0x16)](_0x50aa17[_0x2ebe(0x71)],_0x5dac61[_0x2ebe(0x21)]),_0xbea785;else{const _0x55a30a=_0xd2f6c3[_0x2ebe(0x1f)][_0x2ebe(0x20)](transformAPIConnection);return console[_0x2ebe(0x16)](_0x50aa17['sDNHI'],_0x55a30a[_0x2ebe(0x21)]),_0x55a30a;}}return[];}else return _0xb4572c&&_0xb944d1[_0x2ebe(0x0)]?_0x5cf11d:{'default':_0x4a1d22};}catch(_0x46bd03){return console[_0x2ebe(0x16)](_0x50aa17[_0x2ebe(0x72)],_0x46bd03),console[_0x2ebe(0x16)](_0x50aa17[_0x2ebe(0x73)],JSON['stringify'](_0x46bd03,Object['getOwnPropertyNames'](_0x46bd03))),[];}};exports[_0x2ebe(0x74)]=getUserConnectionsByUsername;function _0x54d6(){const _0x224aa8=['__esModule','uploadProfilePicture','getUserConnections','🔄\x20Transformed\x20connections\x20by\x20userId:','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections\x20request','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20username\x20found:','🔍\x20[USER\x20ID]\x20Attempting\x20to\x20get\x20user\x20identifier\x20with\x20multiple\x20methods...','OxCIj','AVcZP','⚠️\x20[USER\x20ID]\x20getUserProfile\x20returned\x20invalid/fallback\x20ID:','rSEle','ySyHA','⚠️\x20[USER\x20ID]\x20getUserProfile\x20failed:','marker','✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20AsyncStorage:','xevRr','✅\x20[USER\x20ID]\x20Got\x20username\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','wkuHB','uCHyq','🔍\x20[USER\x20ID]\x20JWT\x20token\x20found\x20but\x20no\x20local\x20user\x20identifier\x20-\x20backend\x20should\x20handle\x20via\x20token','❌\x20[USER\x20ID]\x20No\x20valid\x20user\x20identifier\x20found','❌\x20[USER\x20ID]\x20Error\x20getting\x20user\x20identifier:','log','HwqoS','kwAfF','CTxTb','fallback_user','dDUzo','FlbcH','HCiJD','DCIFL','connections','map','length','warn','pFmDe','bjFXA','eekvj','qdhxF','default','getItem','user_id','LRDMV','jBfQw','cRvfK','oGauS','xDgSe','EpsCf','BzzVO','JpYHf','includes','hjLnC','QFDLn','WWuMm','NrPop','split','Fnpkd','IjcfT','xTwcf','xRBdl','error','cWztg','PERSONA_IMAGES','level1','level2','level3','level5','API_CONFIG','BASE_URL','🔄\x20Transforming\x20API\x20connection:','Looking\x20to\x20connect','rWeaJ','name','description','photo','AVGiM','interests','complementaryQualities','compatibility','PczSh','_id','ThsHn','random','mRTFf','MwDsp','bio','meaningfulCoincidences','context','✅\x20Successfully\x20got\x20connections\x20by\x20user\x20ID:','EmOJp','lJBOm','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20request','mock','✅\x20API\x20connections\x20fetched\x20by\x20username:','HvyYH','❌\x20Error\x20fetching\x20connections\x20by\x20username:','❌\x20[NETWORK\x20ERROR]\x20Full\x20error\x20details:','RuuHs','LtOcr','xXayB','hHFUT','MGHtB','ZISSu','UbDBI','substring','API\x20function\x20not\x20available','mCkKI','success','BAWVv','source','lyyRe','IciRY','OPMDw','sCJTo','Daksv','zCBiD','getUserConnectionsByUsername','✅\x20API\x20connections\x20fetched\x20by\x20userId:','❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','🔍\x20Fetching\x20connections\x20for\x20userId:','getAuthToken','upCKn','PnCEW','LHiiQ','rtHHm','oBihE','PFqVD','stringify','getUserConnectionsByUserId','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','onairos_username','none','🎯\x20getUserConnections\x20-\x20User\x20profile:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20username\x20as\x20email\x20fallback:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20user\x20ID\x20as\x20fallback:','🎯\x20[USER\x20DEBUG]\x20Final\x20user\x20identifiers\x20to\x20use:','⚠️\x20No\x20connections\x20found\x20by\x20email,\x20trying\x20user\x20ID...','🎯\x20FALLBACK:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20user\x20ID:','⚠️\x20No\x20connections\x20found\x20by\x20user\x20ID','PtJXt','rrdfX','❌\x20Error\x20in\x20getUserConnections:','ensureAuthentication','Sxjzt','auth_token','...','JoAEF','CgQkA','Qkrad','email','oeWhT','NIAhM','zTXer','qQxWV','thZAp','zPFlw','mAMaf','IBTcI','🎯\x20PRIORITY:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20email\x20(working\x20endpoint):','uPoKt','uJyHw','mpDdz','ETuXz','uaVEF','beKNw','UlTsZ','CSQho','PiLEd','FZmKI','⚠️\x20[DEPRECATED]\x20uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK','uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.','uJLTr','ℹ️\x20Consuming\x20apps\x20should\x20call\x20/enoch/users/{id}/profile-picture/base64\x20directly','dqgBU'];_0x54d6=function(){return _0x224aa8;};return _0x54d6();}const getUserConnectionsByUserId=async _0x3592b3=>{const _0x5617f9={'upCKn':'✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','PnCEW':'mock','LHiiQ':_0x2ebe(0x75),'rtHHm':function(_0x232f8,_0x1b9502){return _0x232f8===_0x1b9502;},'oBihE':function(_0x19abb2,_0x57e1a0){return _0x19abb2===_0x57e1a0;},'PFqVD':function(_0x113ed1,_0x3fe0cb){return _0x113ed1!==_0x3fe0cb;},'Vfscr':function(_0x575cd0,_0x153ca0){return _0x575cd0>_0x153ca0;},'gFqaS':_0x2ebe(0x76)};try{var _0x30fbfd,_0x457f17;console[_0x2ebe(0x16)](_0x2ebe(0x77),_0x3592b3);const _0x47625d=await(0x0,_authService[_0x2ebe(0x78)])();if(!_0x47625d)return console[_0x2ebe(0x22)](_0x2ebe(0x4)),[];console['log'](_0x5617f9[_0x2ebe(0x79)],_0x47625d[_0x2ebe(0x68)](0x0,0x14)+'...');const _0x25d602={'success':![],'message':_0x2ebe(0x69),'connections':[],'source':_0x5617f9[_0x2ebe(0x7a)]};console[_0x2ebe(0x16)](_0x5617f9[_0x2ebe(0x7b)],{'success':_0x25d602['success'],'connectionsCount':(_0x5617f9[_0x2ebe(0x7c)](_0x30fbfd=_0x25d602[_0x2ebe(0x1f)],null)||_0x5617f9[_0x2ebe(0x7d)](_0x30fbfd,void 0x0)?void 0x0:_0x30fbfd[_0x2ebe(0x21)])||0x0,'source':_0x25d602[_0x2ebe(0x6d)],'firstConnection':(_0x457f17=_0x25d602[_0x2ebe(0x1f)])!==null&&_0x5617f9[_0x2ebe(0x7e)](_0x457f17,void 0x0)&&_0x457f17[0x0]?{'id':_0x25d602[_0x2ebe(0x1f)][0x0]['id'],'name':_0x25d602[_0x2ebe(0x1f)][0x0]['name'],'description':_0x25d602[_0x2ebe(0x1f)][0x0]['description']}:null});if(_0x25d602[_0x2ebe(0x6b)]&&_0x25d602[_0x2ebe(0x1f)]&&_0x5617f9['Vfscr'](_0x25d602['connections'][_0x2ebe(0x21)],0x0)){const _0x3016f4=_0x25d602['connections'][_0x2ebe(0x20)](transformAPIConnection);return console['log']('🔄\x20Transformed\x20connections\x20by\x20userId:',_0x3016f4[_0x2ebe(0x21)]),_0x3016f4;}return[];}catch(_0x559e9d){return console[_0x2ebe(0x16)]('❌\x20Error\x20fetching\x20connections\x20by\x20userId:',_0x559e9d),console[_0x2ebe(0x16)](_0x5617f9['gFqaS'],JSON[_0x2ebe(0x7f)](_0x559e9d,Object['getOwnPropertyNames'](_0x559e9d))),[];}};exports[_0x2ebe(0x80)]=getUserConnectionsByUserId;const getUserConnections=async()=>{const _0x50c78a={'CSQho':_0x2ebe(0x81),'PiLEd':_0x2ebe(0x76),'Sxjzt':'USER_CONNECTIONS','WyZRV':_0x2ebe(0x82),'fTRZf':'user_email','KnWbU':_0x2ebe(0x29),'tEOhp':_0x2ebe(0x83),'JoAEF':_0x2ebe(0x84),'CgQkA':function(_0x3341ff,_0x2dc8aa){return _0x3341ff!==_0x2dc8aa;},'SANdL':function(_0x30d15e,_0x3b222b){return _0x30d15e!==_0x3b222b;},'Qkrad':function(_0x221ced,_0x8a343c){return _0x221ced!==_0x8a343c;},'oeWhT':function(_0x2bd4d8,_0x4ff062){return _0x2bd4d8===_0x4ff062;},'NIAhM':function(_0x4fb6e6,_0x421866){return _0x4fb6e6===_0x421866;},'zTXer':function(_0x362966,_0x43ba1a){return _0x362966===_0x43ba1a;},'qQxWV':function(_0x1c9cbd,_0xd07d23){return _0x1c9cbd&&_0xd07d23;},'thZAp':_0x2ebe(0x85),'zPFlw':'🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20email\x20as\x20fallback:','mAMaf':_0x2ebe(0x86),'IBTcI':_0x2ebe(0x87),'uPoKt':function(_0x344b64,_0x38986c){return _0x344b64(_0x38986c);},'uJyHw':function(_0x2a027a,_0x1613b4){return _0x2a027a>_0x1613b4;},'mpDdz':_0x2ebe(0x88),'ETuXz':_0x2ebe(0x89),'jtpKS':function(_0x149228,_0x48ff45){return _0x149228(_0x48ff45);},'uaVEF':function(_0x2d14ab,_0x15f68c){return _0x2d14ab>_0x15f68c;},'TqJHG':_0x2ebe(0x8a),'beKNw':'⚠️\x20No\x20user\x20identifier\x20available\x20or\x20no\x20connections\x20found','VHtoz':function(_0x428572,_0x347848){return _0x428572===_0x347848;},'UlTsZ':_0x2ebe(0x8b),'LKHaX':_0x2ebe(0x8c),'FZmKI':_0x2ebe(0x8d)};try{await(0x0,_authService[_0x2ebe(0x8e)])(_0x50c78a[_0x2ebe(0x8f)]),console[_0x2ebe(0x16)]('🔍\x20[USER\x20DEBUG]\x20Checking\x20all\x20available\x20user\x20data\x20sources...');const _0x515ef2=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)](_0x50c78a['WyZRV']),_0x3dee85=await _asyncStorage['default'][_0x2ebe(0x28)](_0x50c78a['fTRZf']),_0x474594=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)](_0x50c78a['KnWbU']),_0x58acc0=await _asyncStorage[_0x2ebe(0x27)][_0x2ebe(0x28)](_0x2ebe(0x90));console[_0x2ebe(0x16)]('🔍\x20[USER\x20DEBUG]\x20AsyncStorage\x20data:',{'storedUsername':_0x515ef2,'storedEmail':_0x3dee85,'storedUserId':_0x474594,'hasAuthToken':!!_0x58acc0,'authTokenPreview':_0x58acc0?_0x58acc0[_0x2ebe(0x68)](0x0,0x14)+_0x2ebe(0x91):_0x50c78a['tEOhp']});const _0x2cd2fb=await(0x0,_authService['getUserProfile'])();console['log'](_0x50c78a[_0x2ebe(0x92)],{'hasId':!!(_0x50c78a[_0x2ebe(0x93)](_0x2cd2fb,null)&&_0x50c78a['SANdL'](_0x2cd2fb,void 0x0)&&_0x2cd2fb['id']),'hasEmail':!!(_0x50c78a['CgQkA'](_0x2cd2fb,null)&&_0x50c78a[_0x2ebe(0x94)](_0x2cd2fb,void 0x0)&&_0x2cd2fb[_0x2ebe(0x95)]),'email':_0x50c78a[_0x2ebe(0x96)](_0x2cd2fb,null)||_0x2cd2fb===void 0x0?void 0x0:_0x2cd2fb['email'],'id':_0x50c78a[_0x2ebe(0x96)](_0x2cd2fb,null)||_0x50c78a[_0x2ebe(0x97)](_0x2cd2fb,void 0x0)?void 0x0:_0x2cd2fb['id']});let _0x16742b=_0x50c78a[_0x2ebe(0x97)](_0x2cd2fb,null)||_0x50c78a[_0x2ebe(0x98)](_0x2cd2fb,void 0x0)?void 0x0:_0x2cd2fb[_0x2ebe(0x95)],_0x2b8f63=_0x50c78a['NIAhM'](_0x2cd2fb,null)||_0x2cd2fb===void 0x0?void 0x0:_0x2cd2fb['id'];_0x50c78a[_0x2ebe(0x99)](!_0x16742b,_0x515ef2)&&(console[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0x9a)],_0x515ef2),_0x16742b=_0x515ef2);_0x50c78a['qQxWV'](!_0x16742b,_0x3dee85)&&(console[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0x9b)],_0x3dee85),_0x16742b=_0x3dee85);!_0x2b8f63&&_0x474594&&(console['log'](_0x50c78a[_0x2ebe(0x9c)],_0x474594),_0x2b8f63=_0x474594);console['log'](_0x50c78a[_0x2ebe(0x9d)],{'userEmail':_0x16742b,'userId':_0x2b8f63,'willTryEmail':!!_0x16742b,'willTryUserId':!!_0x2b8f63});if(_0x16742b){console[_0x2ebe(0x16)](_0x2ebe(0x9e),_0x16742b);const _0x1ca935=await _0x50c78a[_0x2ebe(0x9f)](getUserConnectionsByUsername,_0x16742b);if(_0x50c78a[_0x2ebe(0xa0)](_0x1ca935['length'],0x0))return console['log']('✅\x20Successfully\x20got\x20connections\x20by\x20email:',_0x1ca935[_0x2ebe(0x21)]),_0x1ca935;console[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0xa1)]);}if(_0x2b8f63){console['log'](_0x50c78a[_0x2ebe(0xa2)],_0x2b8f63);const _0x436517=await _0x50c78a['jtpKS'](getUserConnectionsByUserId,_0x2b8f63);if(_0x50c78a[_0x2ebe(0xa3)](_0x436517[_0x2ebe(0x21)],0x0))return console[_0x2ebe(0x16)](_0x2ebe(0x58),_0x436517[_0x2ebe(0x21)]),_0x436517;console[_0x2ebe(0x16)](_0x50c78a['TqJHG']);}return console[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0xa4)]),[];}catch(_0x292cdf){return _0x50c78a['VHtoz'](_0x50c78a[_0x2ebe(0xa5)],_0x50c78a['LKHaX'])?(_0x3f3cda[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0xa6)],_0x2e2c50),_0x34cc91[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0xa7)],_0x37f8f9[_0x2ebe(0x7f)](_0x810267,_0x2df304['getOwnPropertyNames'](_0x1c2836))),[]):(console[_0x2ebe(0x16)](_0x50c78a[_0x2ebe(0xa8)],_0x292cdf),[]);}};exports['getUserConnections']=getUserConnections;const uploadProfilePicture=async(_0x5d1714,_0x54ab20)=>{const _0xde8d0d={'uJLTr':_0x2ebe(0xa9),'dqgBU':_0x2ebe(0xaa)};return console[_0x2ebe(0x22)](_0xde8d0d[_0x2ebe(0xab)]),console[_0x2ebe(0x22)](_0x2ebe(0xac)),{'success':![],'error':_0xde8d0d[_0x2ebe(0xad)]};};exports[_0x2ebe(0x1)]=uploadProfilePicture;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("@react-native-google-signin/google-signin"),
|
|
5
|
+
require("react-native"),
|
|
6
|
+
require("@react-native-async-storage/async-storage"),
|
|
7
|
+
require("../config/api")
|
|
8
|
+
];
|
|
9
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
+
Object[_0x4b5a(0x0)](exports,_0x4b5a(0x1),{'value':!![]}),exports[_0x4b5a(0x2)]=exports[_0x4b5a(0x3)]=exports[_0x4b5a(0x4)]=exports[_0x4b5a(0x5)]=exports['checkAndFixYouTubeConnection']=void 0x0;var _googleSignin=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2)),_api=__ONAIROS_REQ_FUNC__(0x3);function _interopRequireDefault(_0x2ff8a9){return _0x2ff8a9&&_0x2ff8a9['__esModule']?_0x2ff8a9:{'default':_0x2ff8a9};}const WEB_CLIENT_ID=_0x4b5a(0x6),IOS_CLIENT_ID=_0x4b5a(0x6),configureGoogleSignInForRefreshTokens=()=>{const _0x157480={'VYknU':_0x4b5a(0x7),'ImQiG':_0x4b5a(0x8),'irCLy':_0x4b5a(0x9)};_googleSignin['GoogleSignin'][_0x4b5a(0xa)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x4b5a(0xb),_0x157480[_0x4b5a(0xc)],_0x157480[_0x4b5a(0xd)],_0x157480[_0x4b5a(0xe)]],'hostedDomain':'','accountName':''});},checkYouTubeMigrationNeeded=async _0x22f6e6=>{const _0x1c8f3d={'tPBZA':_0x4b5a(0xf),'DAPxO':'YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','SAyrp':'default','zznOZ':function(_0x5a5784,_0x102887){return _0x5a5784(_0x102887);},'GBmeG':function(_0x318f6a,_0x4d431b){return _0x318f6a===_0x4d431b;},'OqQzC':function(_0x4b2452,_0x27bf93){return _0x4b2452===_0x27bf93;},'SYmKl':function(_0x5275c9,_0x2022b8){return _0x5275c9===_0x2022b8;},'HXAEc':function(_0x353218,_0x427733){return _0x353218===_0x427733;},'vTPaP':function(_0x2841ca,_0x51ce7b){return _0x2841ca===_0x51ce7b;},'BLBJC':_0x4b5a(0x10),'knfyV':_0x4b5a(0x11),'WHzeJ':'🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','ZhJee':_0x4b5a(0x12),'AoBMK':_0x4b5a(0x13),'lfrHN':_0x4b5a(0x14)};try{const _0x503dc6=await _0x1c8f3d['zznOZ'](fetch,_api[_0x4b5a(0x15)][_0x4b5a(0x16)]+_0x4b5a(0x17)+_0x22f6e6),_0x5f3935=await _0x503dc6[_0x4b5a(0x18)]();if(_0x5f3935[_0x4b5a(0x19)]&&_0x5f3935[_0x4b5a(0x1a)]){var _0x423156,_0x38d5de,_0x15dd14;const _0x4aa895=_0x1c8f3d[_0x4b5a(0x1b)](_0x1c8f3d['OqQzC'](_0x423156=_0x5f3935[_0x4b5a(0x1a)],null)||_0x1c8f3d['GBmeG'](_0x423156,void 0x0)?void 0x0:_0x423156[_0x4b5a(0x1c)],!![])||_0x1c8f3d[_0x4b5a(0x1d)](_0x1c8f3d[_0x4b5a(0x1e)](_0x38d5de=_0x5f3935[_0x4b5a(0x1f)],null)||_0x1c8f3d['vTPaP'](_0x38d5de,void 0x0)?void 0x0:_0x38d5de['enabled'],!![])||_0x5f3935['isTemporaryMode']===!![]||_0x5f3935[_0x4b5a(0x20)]&&_0x5f3935['message'][_0x4b5a(0x21)](_0x4b5a(0x22)),_0x3fb290=_0x5f3935['validation'][_0x4b5a(0x23)],_0x16681f=_0x5f3935[_0x4b5a(0x1a)][_0x4b5a(0x24)];console[_0x4b5a(0x25)](_0x1c8f3d[_0x4b5a(0x26)],{'username':_0x22f6e6,'needsReconnection':_0x3fb290,'hasRefreshToken':_0x16681f,'isTemporaryMode':_0x4aa895,'temporaryModeEnabled':(_0x15dd14=_0x5f3935['temporaryMode'])===null||_0x15dd14===void 0x0?void 0x0:_0x15dd14[_0x4b5a(0x27)],'message':_0x5f3935[_0x4b5a(0x20)]});if(_0x4aa895)return _0x1c8f3d[_0x4b5a(0x1d)](_0x4b5a(0x11),_0x1c8f3d[_0x4b5a(0x28)])?(console['log'](_0x1c8f3d[_0x4b5a(0x29)]),console[_0x4b5a(0x25)](_0x1c8f3d['ZhJee']),![]):(_0x34b6f6[_0x4b5a(0x2a)][_0x4b5a(0x2b)](_0x1c8f3d['tPBZA'],_0x1c8f3d['DAPxO'],[{'text':'OK','style':_0x1c8f3d[_0x4b5a(0x2c)]}]),![]);else return _0x3fb290?(console[_0x4b5a(0x25)](_0x1c8f3d[_0x4b5a(0x2d)]),!![]):(console[_0x4b5a(0x25)](_0x4b5a(0x2e)),![]);}return![];}catch(_0x16b914){return console[_0x4b5a(0x2f)](_0x1c8f3d['lfrHN'],_0x16b914),![];}};exports['checkYouTubeMigrationNeeded']=checkYouTubeMigrationNeeded;function _0x4b5a(_0x5512e3,_0x4b5a83){_0x5512e3=_0x5512e3-0x0;const _0x3129c2=_0x5512();let _0x1b2cc2=_0x3129c2[_0x5512e3];return _0x1b2cc2;}const getYouTubeConnectionStatus=async _0xdb30e0=>{const _0x56ea9a={'aBxzM':_0x4b5a(0x30),'JNrKv':_0x4b5a(0x31),'qcVDR':'YouTube\x20Connection\x20Upgrade','wRDzD':_0x4b5a(0x32),'KoUmb':_0x4b5a(0x33),'ksvwl':_0x4b5a(0x34),'bQgEB':_0x4b5a(0x35),'KbNVj':function(_0x28611e,_0x433bff){return _0x28611e===_0x433bff;},'VSLzZ':function(_0x38bae9,_0x4d6d7f){return _0x38bae9===_0x4d6d7f;},'xTUeG':_0x4b5a(0x22),'toUUz':_0x4b5a(0x36),'yQjWc':_0x4b5a(0x37),'BCqtA':'temporary','OafEO':_0x4b5a(0x38),'gBpkM':'⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','bdZUe':'limited','DXfUm':function(_0x462d74,_0x7f21c){return _0x462d74!==_0x7f21c;},'mjotT':_0x4b5a(0x39),'EoICb':'dFXjq','iJTmq':_0x4b5a(0x3a),'DAXNF':_0x4b5a(0x3b),'ZzOXO':_0x4b5a(0x3c),'aOeWq':_0x4b5a(0x3d),'UMkPW':function(_0x2ca97a,_0x3d6adf){return _0x2ca97a instanceof _0x3d6adf;},'BSwVw':function(_0x435d3e,_0x41579e){return _0x435d3e(_0x41579e);}};try{const _0x2d109c=await fetch(_api[_0x4b5a(0x15)][_0x4b5a(0x16)]+_0x4b5a(0x17)+_0xdb30e0),_0x1460b6=await _0x2d109c['json']();console['log'](_0x56ea9a[_0x4b5a(0x3e)],_0x1460b6);if(_0x1460b6['success']&&_0x1460b6[_0x4b5a(0x1a)]){var _0x25fd74,_0x4fec3f;const _0x217a59=_0x56ea9a[_0x4b5a(0x3f)]((_0x25fd74=_0x1460b6[_0x4b5a(0x1a)])===null||_0x56ea9a[_0x4b5a(0x40)](_0x25fd74,void 0x0)?void 0x0:_0x25fd74[_0x4b5a(0x1c)],!![])||(_0x56ea9a['VSLzZ'](_0x4fec3f=_0x1460b6['temporaryMode'],null)||_0x56ea9a[_0x4b5a(0x3f)](_0x4fec3f,void 0x0)?void 0x0:_0x4fec3f[_0x4b5a(0x27)])===!![]||_0x1460b6[_0x4b5a(0x1c)]===!![]||_0x1460b6[_0x4b5a(0x20)]&&_0x1460b6[_0x4b5a(0x20)][_0x4b5a(0x21)](_0x56ea9a[_0x4b5a(0x41)]),_0x5eb6df=_0x1460b6[_0x4b5a(0x1a)][_0x4b5a(0x24)]===!![],_0x452f88=_0x1460b6[_0x4b5a(0x1a)][_0x4b5a(0x23)]===!![];if(_0x217a59)return console[_0x4b5a(0x25)](_0x56ea9a[_0x4b5a(0x42)]),console['log'](_0x56ea9a[_0x4b5a(0x43)]),{'isReady':!![],'mode':_0x56ea9a[_0x4b5a(0x44)],'needsMigration':![],'trainingReady':!![],'details':_0x1460b6};else{if(_0x5eb6df){if(_0x4b5a(0x45)===_0x4b5a(0x45))return console[_0x4b5a(0x25)](_0x4b5a(0x46)),{'isReady':!![],'mode':_0x56ea9a[_0x4b5a(0x47)],'needsMigration':![],'trainingReady':!![],'details':_0x1460b6};else _0x279a94[_0x4b5a(0x25)](_0x56ea9a[_0x4b5a(0x48)]);}else{if(_0x452f88)return console[_0x4b5a(0x25)](_0x56ea9a[_0x4b5a(0x49)]),{'isReady':![],'mode':_0x56ea9a['bdZUe'],'needsMigration':!![],'trainingReady':![],'details':_0x1460b6};else{if(_0x56ea9a[_0x4b5a(0x4a)](_0x56ea9a[_0x4b5a(0x4b)],_0x56ea9a['EoICb']))return console[_0x4b5a(0x25)](_0x4b5a(0x4c)),{'isReady':![],'mode':_0x56ea9a['iJTmq'],'needsMigration':![],'trainingReady':![],'details':_0x1460b6};else _0x47b7f1=_0xa70def[_0x4b5a(0x4d)],_0x5efb3d=_0x56ea9a['JNrKv'];}}}}return console[_0x4b5a(0x25)](_0x56ea9a[_0x4b5a(0x4e)]),{'isReady':![],'mode':_0x56ea9a['iJTmq'],'needsMigration':![],'trainingReady':![],'details':_0x1460b6};}catch(_0xf02a9c){if(_0x56ea9a[_0x4b5a(0x4f)]===_0x4b5a(0x50))_0x35ffb5['Alert'][_0x4b5a(0x2b)](_0x56ea9a[_0x4b5a(0x51)],_0x4b5a(0x52),[{'text':_0x4b5a(0x53),'style':_0x56ea9a[_0x4b5a(0x54)],'onPress':()=>_0x349fe5(![])},{'text':_0x56ea9a[_0x4b5a(0x55)],'style':_0x56ea9a['ksvwl'],'onPress':()=>_0x57eeec(!![])}]);else return console[_0x4b5a(0x2f)](_0x56ea9a['aOeWq'],_0xf02a9c),{'isReady':![],'mode':_0x4b5a(0x3a),'needsMigration':![],'trainingReady':![],'details':{'error':_0x56ea9a[_0x4b5a(0x56)](_0xf02a9c,Error)?_0xf02a9c['message']:_0x56ea9a[_0x4b5a(0x57)](String,_0xf02a9c)}};}};exports[_0x4b5a(0x4)]=getYouTubeConnectionStatus;const showYouTubeMigrationPrompt=async()=>{const _0x3ced24={'eJTOj':_0x4b5a(0x58),'gWJCH':_0x4b5a(0x52),'TxMed':'Skip\x20for\x20Now','VgdDZ':'cancel','uacgP':_0x4b5a(0x33),'cFeYZ':_0x4b5a(0x34)};return new Promise(_0x1512ba=>{_reactNative[_0x4b5a(0x2a)]['alert'](_0x3ced24[_0x4b5a(0x59)],_0x3ced24[_0x4b5a(0x5a)],[{'text':_0x3ced24[_0x4b5a(0x5b)],'style':_0x3ced24[_0x4b5a(0x5c)],'onPress':()=>_0x1512ba(![])},{'text':_0x3ced24[_0x4b5a(0x5d)],'style':_0x3ced24['cFeYZ'],'onPress':()=>_0x1512ba(!![])}]);});},forceYouTubeReconnection=async _0x591118=>{const _0xc6b872={'lZeof':function(_0x1f7cf7,_0xee249e){return _0x1f7cf7===_0xee249e;},'MOeDV':function(_0x33eee1,_0x1c4151){return _0x33eee1===_0x1c4151;},'CmFDt':function(_0x4cf08b,_0x24cf55){return _0x4cf08b===_0x24cf55;},'dmMhJ':function(_0xae73a,_0x5b8d4c){return _0xae73a===_0x5b8d4c;},'pnGCT':function(_0x2d3d20,_0x3390ec){return _0x2d3d20===_0x3390ec;},'ZgYZo':function(_0x24b840,_0x34b486){return _0x24b840===_0x34b486;},'oMIAQ':function(_0x257f5b,_0x4588d3){return _0x257f5b===_0x4588d3;},'kjIuz':_0x4b5a(0x5e),'Jbhhs':_0x4b5a(0x5f),'zZvqA':function(_0x357153,_0x440d20){return _0x357153&&_0x440d20;},'rGcuN':_0x4b5a(0x60),'SZXxY':_0x4b5a(0x61),'OvhsC':_0x4b5a(0x62),'slxsc':_0x4b5a(0x63),'XOXOj':'🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','UiJFP':function(_0x28138c){return _0x28138c();},'nRUxQ':_0x4b5a(0x64),'qSwBt':_0x4b5a(0x30),'vcnJZ':'🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','klogx':'None','dWgmF':function(_0x5087ee,_0x6206a0){return _0x5087ee===_0x6206a0;},'CgLvc':_0x4b5a(0x65),'jSWMV':_0x4b5a(0x66),'SIBle':_0x4b5a(0x31),'vymKf':function(_0x48498b,_0x148ca1){return _0x48498b!==_0x148ca1;},'zdCVz':_0x4b5a(0x67),'rijTh':function(_0x156533,_0x28436b){return _0x156533!==_0x28436b;},'kwlwW':function(_0x1d7c8f,_0x1a460b){return _0x1d7c8f!==_0x1a460b;},'AfnHT':function(_0x2680c6,_0x46fd47){return _0x2680c6===_0x46fd47;},'rUVTt':_0x4b5a(0x68),'bmOyj':'💡\x20This\x20usually\x20means:','tPnCZ':_0x4b5a(0x69),'TmgyN':'\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','bZVqn':'✅\x20Got\x20refresh\x20token\x20after\x20consent:','mkNTw':_0x4b5a(0x6a),'lKRAJ':_0x4b5a(0x6b),'PztCn':function(_0x43c09c,_0x2afcff){return _0x43c09c===_0x2afcff;},'zCdKh':function(_0x3869f8,_0xf52db1){return _0x3869f8===_0xf52db1;},'PdoLB':_0x4b5a(0x6c),'mbGiT':function(_0x15108a,_0xbbbf2a){return _0x15108a===_0xbbbf2a;},'MKGBf':'📤\x20Sending\x20migration\x20payload\x20to\x20backend...','mzwae':function(_0x5783a8,_0x149db7,_0x2f922e){return _0x5783a8(_0x149db7,_0x2f922e);},'JWLRz':_0x4b5a(0x6d),'swpJh':_0x4b5a(0x6e),'saLfT':_0x4b5a(0x6f),'Qzewr':_0x4b5a(0x70),'rHgbr':function(_0x49186c,_0x2eef45,_0x83955d,_0x4af85a){return _0x49186c(_0x2eef45,_0x83955d,_0x4af85a);},'qRKTE':function(_0x50f15b,_0x4bc18c,_0x5571ab,_0x96e442){return _0x50f15b(_0x4bc18c,_0x5571ab,_0x96e442);},'XiCLa':function(_0x4ee3ef,_0x3bb8d2){return _0x4ee3ef instanceof _0x3bb8d2;}};try{if(_0xc6b872[_0x4b5a(0x71)]===_0xc6b872[_0x4b5a(0x71)]){var _0x160519,_0x551300,_0x1ace89,_0x189e4f;console[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x72)],_0x591118),_0xc6b872[_0x4b5a(0x73)](configureGoogleSignInForRefreshTokens),await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x75)](),console[_0x4b5a(0x25)](_0x4b5a(0x76));try{const _0x4e19a2=await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x77)]();_0x4e19a2['accessToken']&&(await _googleSignin[_0x4b5a(0x74)]['clearCachedAccessToken'](_0x4e19a2[_0x4b5a(0x78)]),console[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x79)]));}catch(_0x1de2a4){console[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x7a)]);}await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x7b)](),console[_0x4b5a(0x25)](_0xc6b872['vcnJZ']);const _0x513a9f=await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x7c)](),_0x3fd6cb=await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x77)](),_0x3a676b=await _googleSignin[_0x4b5a(0x74)][_0x4b5a(0x7d)]();let _0x1a46d8=null,_0x69ee4b=_0xc6b872['klogx'];if(_0x513a9f[_0x4b5a(0x4d)]){if(_0xc6b872[_0x4b5a(0x7e)](_0xc6b872[_0x4b5a(0x7f)],_0xc6b872[_0x4b5a(0x80)])){var _0x174ab7,_0x112f60;const _0x56b8f6=_0xc6b872['lZeof'](_0xc6b872[_0x4b5a(0x81)](_0x174ab7=_0x18bdd5[_0x4b5a(0x1a)],null)||_0x174ab7===void 0x0?void 0x0:_0x174ab7[_0x4b5a(0x1c)],!![])||_0xc6b872[_0x4b5a(0x82)](_0xc6b872[_0x4b5a(0x83)](_0x112f60=_0x569870[_0x4b5a(0x1f)],null)||_0xc6b872[_0x4b5a(0x84)](_0x112f60,void 0x0)?void 0x0:_0x112f60[_0x4b5a(0x27)],!![])||_0xc6b872[_0x4b5a(0x83)](_0x3ca8c4[_0x4b5a(0x1c)],!![]),_0x51cb92=_0xc6b872[_0x4b5a(0x85)](_0x553cd6[_0x4b5a(0x1a)]['hasAccessToken'],!![]),_0x199042=_0xc6b872['MOeDV'](_0x20e8ab[_0x4b5a(0x1a)][_0x4b5a(0x24)],!![]),_0x3d045a=_0xc6b872[_0x4b5a(0x86)](_0x5212b5['validation'][_0x4b5a(0x23)],!![]);_0x3a0150['log'](_0xc6b872[_0x4b5a(0x87)],{'username':_0x21688c,'hasAccessToken':_0x51cb92,'hasRefreshToken':_0x199042,'needsReconnection':_0x3d045a,'isTemporaryMode':_0x56b8f6,'connectedAt':_0x39e211[_0x4b5a(0x1a)][_0x4b5a(0x88)]});if(_0x56b8f6)return _0x6dedf7[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x89)]),![];else return _0xc6b872[_0x4b5a(0x8a)](_0x51cb92,!_0x199042)&&_0x3d045a?(_0x31bdb2[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x8b)]),!![]):(_0x50d3dd['log'](_0xc6b872[_0x4b5a(0x8c)]),![]);}else _0x1a46d8=_0x513a9f[_0x4b5a(0x4d)],_0x69ee4b=_0xc6b872[_0x4b5a(0x8d)];}else _0xc6b872['vymKf'](_0x3a676b,null)&&_0x3a676b!==void 0x0&&_0x3a676b[_0x4b5a(0x4d)]&&(_0x1a46d8=_0x3a676b[_0x4b5a(0x4d)],_0x69ee4b=_0x4b5a(0x8e));console[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0x8f)],{'hasAccessToken':!!_0x3fd6cb[_0x4b5a(0x78)],'hasIdToken':!!_0x3fd6cb['idToken'],'hasServerAuthCode':!!_0x513a9f[_0x4b5a(0x4d)],'hasCurrentUserAuthCode':!!(_0xc6b872[_0x4b5a(0x90)](_0x3a676b,null)&&_0xc6b872[_0x4b5a(0x91)](_0x3a676b,void 0x0)&&_0x3a676b[_0x4b5a(0x4d)]),'refreshTokenSource':_0x69ee4b,'finalRefreshToken':_0x1a46d8?'Available':'MISSING!','userEmail':_0xc6b872[_0x4b5a(0x92)](_0x160519=_0x513a9f['user'],null)||_0xc6b872[_0x4b5a(0x86)](_0x160519,void 0x0)?void 0x0:_0x160519[_0x4b5a(0x9)]});if(!_0x1a46d8)return console['error'](_0xc6b872['rUVTt']),console[_0x4b5a(0x2f)](_0xc6b872[_0x4b5a(0x93)]),console[_0x4b5a(0x2f)](_0x4b5a(0x94)),console[_0x4b5a(0x2f)](_0xc6b872[_0x4b5a(0x95)]),console[_0x4b5a(0x2f)](_0xc6b872['TmgyN']),![];console['log'](_0xc6b872[_0x4b5a(0x96)],_0x1a46d8[_0x4b5a(0x97)](0x0,0x14)+_0xc6b872['mkNTw']),console[_0x4b5a(0x25)]('🔑\x20Refresh\x20token\x20source:',_0x69ee4b);let _0x13cc7c=await _asyncStorage[_0x4b5a(0x34)]['getItem'](_0x4b5a(0x98))||await _asyncStorage['default'][_0x4b5a(0x99)](_0xc6b872[_0x4b5a(0x9a)])||await _asyncStorage[_0x4b5a(0x34)][_0x4b5a(0x99)](_0x4b5a(0x9b));!_0x13cc7c&&(console[_0x4b5a(0x9c)](_0x4b5a(0x9d)),_0x13cc7c='migration_token_placeholder');const _0x3c289b={'session':{'username':_0x591118,'platform':_0x4b5a(0x9e),'channelName':(_0xc6b872['PztCn'](_0x551300=_0x513a9f['user'],null)||_0xc6b872[_0x4b5a(0x9f)](_0x551300,void 0x0)?void 0x0:_0x551300[_0x4b5a(0xa0)])||_0xc6b872[_0x4b5a(0xa1)],'channelId':null},'googleUser':_0x513a9f[_0x4b5a(0xa2)],'accessToken':_0x3fd6cb[_0x4b5a(0x78)],'idToken':_0x3fd6cb[_0x4b5a(0xa3)],'refreshToken':_0x1a46d8,'serverAuthCode':_0x513a9f[_0x4b5a(0x4d)],'userAccountInfo':{'username':_0x591118,'email':_0xc6b872[_0x4b5a(0x81)](_0x1ace89=_0x513a9f[_0x4b5a(0xa2)],null)||_0xc6b872[_0x4b5a(0x81)](_0x1ace89,void 0x0)?void 0x0:_0x1ace89['email'],'authToken':_0x13cc7c,'channelName':(_0xc6b872['mbGiT'](_0x189e4f=_0x513a9f[_0x4b5a(0xa2)],null)||_0x189e4f===void 0x0?void 0x0:_0x189e4f['name'])||_0xc6b872[_0x4b5a(0xa1)],'channelId':null}};console['log'](_0xc6b872[_0x4b5a(0xa4)]);const _0xf1bf0e=await _0xc6b872[_0x4b5a(0xa5)](fetch,_api['API_CONFIG']['BASE_URL']+_0x4b5a(0xa6),{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0xc6b872[_0x4b5a(0xa7)],..._0x13cc7c!==_0xc6b872['swpJh']&&{'Authorization':_0x4b5a(0xa8)+_0x13cc7c}},'body':JSON[_0x4b5a(0xa9)](_0x3c289b)}),_0x37dde7=await _0xf1bf0e[_0x4b5a(0x18)]();return _0x37dde7['success']?(console[_0x4b5a(0x25)](_0xc6b872[_0x4b5a(0xaa)]),await _0xc6b872['mzwae'](trackMigrationAttempt,_0x591118,!![]),!![]):(console[_0x4b5a(0x2f)](_0xc6b872[_0x4b5a(0xab)],_0x37dde7[_0x4b5a(0x2f)]),await _0xc6b872['rHgbr'](trackMigrationAttempt,_0x591118,![],_0x37dde7[_0x4b5a(0x2f)]),![]);}else return _0x5d2ab9[_0x4b5a(0x25)](_0xc6b872['OvhsC']),!![];}catch(_0x3c12d7){return console[_0x4b5a(0x2f)](_0x4b5a(0xac),_0x3c12d7),await _0xc6b872[_0x4b5a(0xad)](trackMigrationAttempt,_0x591118,![],_0xc6b872[_0x4b5a(0xae)](_0x3c12d7,Error)?_0x3c12d7[_0x4b5a(0x20)]:'Unknown\x20error'),![];}},trackMigrationAttempt=async(_0x24ebb6,_0x4d2826,_0x123d87)=>{const _0x53d5f2={'gtwAb':function(_0x48e724,_0x591d90,_0x8b9c80){return _0x48e724(_0x591d90,_0x8b9c80);},'EssAb':function(_0x2f6189,_0x5dfb44){return _0x2f6189||_0x5dfb44;},'sKCxp':_0x4b5a(0xaf)};try{await _0x53d5f2['gtwAb'](fetch,_api[_0x4b5a(0x15)][_0x4b5a(0x16)]+'/youtube/migration-status',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4b5a(0xa9)]({'username':_0x24ebb6,'success':_0x4d2826,'error':_0x53d5f2[_0x4b5a(0xb0)](_0x123d87,null),'timestamp':new Date()['toISOString']()})});}catch(_0x257282){console[_0x4b5a(0x2f)](_0x53d5f2[_0x4b5a(0xb1)],_0x257282);}},shouldShowYouTubeMigrationWarning=async _0xc0de46=>{const _0x3bef7a={'ZXfsk':'To\x20improve\x20your\x20training\x20experience,\x20we\x20need\x20to\x20upgrade\x20your\x20YouTube\x20connection.\x20This\x20prevents\x20interruptions\x20during\x20data\x20collection.\x0a\x0a✅\x20One-time\x20upgrade\x0a✅\x20Takes\x2030\x20seconds\x0a✅\x20No\x20data\x20loss\x0a\x0aUpgrade\x20now?','KzMxv':_0x4b5a(0x53),'AzdVx':_0x4b5a(0x34),'TxjaU':'✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','oHLBt':'full','eeofW':_0x4b5a(0xb2),'bBdMX':function(_0x3625c2,_0x11c430){return _0x3625c2===_0x11c430;},'cERjX':'lAEyz','mfrvz':function(_0x3ded52,_0x2a6c75){return _0x3ded52===_0x2a6c75;},'jZdbR':function(_0x46a403,_0x1a4a98){return _0x46a403===_0x1a4a98;},'CoTsL':function(_0x2b207c,_0x10fc18){return _0x2b207c===_0x10fc18;},'yfFQE':_0x4b5a(0x5e),'LoldK':'🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','WsxFp':_0x4b5a(0xb3),'qMFcW':_0x4b5a(0x60),'TWryY':_0x4b5a(0x61),'Ljgdu':_0x4b5a(0xb4),'KBaNd':_0x4b5a(0xb5)};try{console[_0x4b5a(0x25)](_0x3bef7a[_0x4b5a(0xb6)],_0xc0de46);const _0x54803f=await fetch(_api[_0x4b5a(0x15)][_0x4b5a(0x16)]+_0x4b5a(0x17)+_0xc0de46),_0x24b5ef=await _0x54803f['json']();if(_0x24b5ef['success']&&_0x24b5ef[_0x4b5a(0x1a)]){if(_0x3bef7a['bBdMX'](_0x3bef7a[_0x4b5a(0xb7)],'lAEyz')){var _0x4fe2e9,_0x551352;const _0x2e04c4=((_0x4fe2e9=_0x24b5ef[_0x4b5a(0x1a)])===null||_0x3bef7a[_0x4b5a(0xb8)](_0x4fe2e9,void 0x0)?void 0x0:_0x4fe2e9[_0x4b5a(0x1c)])===!![]||_0x3bef7a[_0x4b5a(0xb9)](_0x3bef7a[_0x4b5a(0xb8)](_0x551352=_0x24b5ef[_0x4b5a(0x1f)],null)||_0x551352===void 0x0?void 0x0:_0x551352[_0x4b5a(0x27)],!![])||_0x3bef7a[_0x4b5a(0xb8)](_0x24b5ef[_0x4b5a(0x1c)],!![]),_0x2bbd7e=_0x3bef7a[_0x4b5a(0xb8)](_0x24b5ef[_0x4b5a(0x1a)][_0x4b5a(0xba)],!![]),_0xad442e=_0x3bef7a[_0x4b5a(0xbb)](_0x24b5ef[_0x4b5a(0x1a)][_0x4b5a(0x24)],!![]),_0x1faea5=_0x3bef7a[_0x4b5a(0xbc)](_0x24b5ef['validation'][_0x4b5a(0x23)],!![]);console[_0x4b5a(0x25)](_0x3bef7a[_0x4b5a(0xbd)],{'username':_0xc0de46,'hasAccessToken':_0x2bbd7e,'hasRefreshToken':_0xad442e,'needsReconnection':_0x1faea5,'isTemporaryMode':_0x2e04c4,'connectedAt':_0x24b5ef[_0x4b5a(0x1a)]['connectedAt']});if(_0x2e04c4)return console[_0x4b5a(0x25)](_0x3bef7a[_0x4b5a(0xbe)]),![];else{if(_0x2bbd7e&&!_0xad442e&&_0x1faea5){if(_0x3bef7a['CoTsL'](_0x4b5a(0xbf),_0x3bef7a[_0x4b5a(0xc0)])){const _0x1ef255={'cAftl':_0x3bef7a[_0x4b5a(0xc1)],'hlRuR':_0x3bef7a['KzMxv'],'ILmYW':_0x4b5a(0x33),'aKyoy':_0x3bef7a[_0x4b5a(0xc2)]};return new _0x3c8711(_0x52c984=>{_0x12b624[_0x4b5a(0x2a)]['alert']('YouTube\x20Connection\x20Upgrade',_0x1ef255['cAftl'],[{'text':_0x1ef255[_0x4b5a(0xc3)],'style':_0x4b5a(0x32),'onPress':()=>_0x52c984(![])},{'text':_0x1ef255['ILmYW'],'style':_0x1ef255[_0x4b5a(0xc4)],'onPress':()=>_0x52c984(!![])}]);});}else return console[_0x4b5a(0x25)](_0x3bef7a[_0x4b5a(0xc5)]),!![];}else return console[_0x4b5a(0x25)](_0x3bef7a[_0x4b5a(0xc6)]),![];}}else return _0x12798d[_0x4b5a(0x25)](_0x3bef7a['TxjaU']),{'isReady':!![],'mode':_0x3bef7a[_0x4b5a(0xc7)],'needsMigration':![],'trainingReady':!![],'details':_0x36d0b1};}return console[_0x4b5a(0x25)](_0x3bef7a['Ljgdu']),![];}catch(_0x48642a){return console[_0x4b5a(0x2f)](_0x3bef7a[_0x4b5a(0xc8)],_0x48642a),![];}};exports[_0x4b5a(0x2)]=shouldShowYouTubeMigrationWarning;function _0x5512(){const _0x566358=['defineProperty','__esModule','shouldShowYouTubeMigrationWarning','reconnectYouTube','getYouTubeConnectionStatus','checkYouTubeMigrationNeeded','1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','openid','profile','email','configure','https://www.googleapis.com/auth/youtube.readonly','VYknU','ImQiG','irCLy','Upgrade\x20Failed\x20❌','🔍\x20YouTube\x20migration\x20check:','voDoF','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','API_CONFIG','BASE_URL','/youtube/validate-connection/','json','success','validation','GBmeG','isTemporaryMode','SYmKl','HXAEc','temporaryMode','message','includes','temporary\x20access\x20token\x20mode','needsReconnection','hasRefreshToken','log','BLBJC','enabled','knfyV','WHzeJ','Alert','alert','SAyrp','AoBMK','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','error','ℹ️\x20No\x20token\x20cache\x20to\x20clear','Server\x20auth\x20code\x20from\x20sign-in','cancel','Upgrade\x20Now','default','📋\x20Complete\x20YouTube\x20status\x20response:','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','full','hBRfI','none','❌\x20No\x20YouTube\x20connection\x20found','STckO','❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','bQgEB','KbNVj','VSLzZ','xTUeG','toUUz','yQjWc','BCqtA','iuRRm','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','OafEO','aBxzM','gBpkM','DXfUm','mjotT','❓\x20YouTube\x20connection\x20status\x20unclear','serverAuthCode','DAXNF','ZzOXO','BQACw','qcVDR','To\x20improve\x20your\x20training\x20experience,\x20we\x20need\x20to\x20upgrade\x20your\x20YouTube\x20connection.\x20This\x20prevents\x20interruptions\x20during\x20data\x20collection.\x0a\x0a✅\x20One-time\x20upgrade\x0a✅\x20Takes\x2030\x20seconds\x0a✅\x20No\x20data\x20loss\x0a\x0aUpgrade\x20now?','Skip\x20for\x20Now','wRDzD','KoUmb','UMkPW','BSwVw','YouTube\x20Connection\x20Upgrade','eJTOj','gWJCH','TxMed','VgdDZ','uacgP','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','lIFXN','✅\x20Token\x20cache\x20cleared','jotRS','TBcvF','🔍\x20Token\x20Analysis:','❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','...','enoch_token','YouTube\x20Channel','your-api-key','migration_token_placeholder','✅\x20YouTube\x20migration\x20successful','❌\x20Backend\x20rejected\x20YouTube\x20migration:','slxsc','XOXOj','UiJFP','GoogleSignin','signOut','✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','getTokens','accessToken','nRUxQ','qSwBt','hasPlayServices','signIn','getCurrentUser','dWgmF','CgLvc','jSWMV','MOeDV','CmFDt','dmMhJ','pnGCT','ZgYZo','oMIAQ','kjIuz','connectedAt','Jbhhs','zZvqA','rGcuN','SZXxY','SIBle','Current\x20user\x20server\x20auth\x20code','zdCVz','rijTh','kwlwW','AfnHT','bmOyj','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','tPnCZ','bZVqn','substring','onairos_jwt_token','getItem','lKRAJ','auth_token','warn','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','youtube','zCdKh','name','PdoLB','user','idToken','MKGBf','mzwae','/youtube/native-auth','JWLRz','Bearer\x20','stringify','saLfT','Qzewr','❌\x20YouTube\x20migration\x20failed:','qRKTE','XiCLa','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','EssAb','sKCxp','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','DpHZK','ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found','❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','eeofW','cERjX','bBdMX','mfrvz','hasAccessToken','jZdbR','CoTsL','yfFQE','LoldK','TkNOt','WsxFp','ZXfsk','AzdVx','hlRuR','aKyoy','qMFcW','TWryY','oHLBt','KBaNd','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','iHfjv','YouTube\x20Upgraded!\x20✅','Great!','tLOQV','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','OdZDp','QdcIj','JFWNL','jYTdg','VSkFo','FXpPx','GUWXO','spIov','zBNHS','FhMwo','MJvXE','AiyFT','CAMim','scOrP','ASqUj','YDSrk','ihrWe','RXBYq','asycr','uAULY','temporary','🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:','SjVDk','Auiai'];_0x5512=function(){return _0x566358;};return _0x5512();}const checkAndFixYouTubeConnection=async _0x186d4f=>{const _0x233517={'FhMwo':_0x4b5a(0x60),'asycr':'🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','uAULY':_0x4b5a(0x37),'ajWmE':_0x4b5a(0xc9),'OdZDp':function(_0x57b6d2,_0x406c76){return _0x57b6d2(_0x406c76);},'QdcIj':_0x4b5a(0xca),'JFWNL':_0x4b5a(0xcb),'jYTdg':function(_0x50283f,_0x2bffaa){return _0x50283f(_0x2bffaa);},'VSkFo':_0x4b5a(0x62),'FXpPx':_0x4b5a(0xcc),'GUWXO':function(_0x45fad4){return _0x45fad4();},'spIov':function(_0x786e,_0x1b172e){return _0x786e===_0x1b172e;},'zBNHS':_0x4b5a(0xcd),'aQIqV':'ℹ️\x20User\x20declined\x20YouTube\x20migration','ypRme':_0x4b5a(0xce),'MJvXE':_0x4b5a(0xcf),'AiyFT':_0x4b5a(0x34),'CAMim':_0x4b5a(0xf),'scOrP':'YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','ASqUj':function(_0x5d207f,_0xecfbf4){return _0x5d207f!==_0xecfbf4;},'ihrWe':_0x4b5a(0xd0),'RXBYq':_0x4b5a(0xd1)};try{console[_0x4b5a(0x25)](_0x233517['ajWmE'],_0x186d4f);const _0x2dee75=await _0x233517[_0x4b5a(0xd2)](shouldShowYouTubeMigrationWarning,_0x186d4f);if(!_0x2dee75)return console[_0x4b5a(0x25)](_0x233517[_0x4b5a(0xd3)]),console['log'](_0x233517[_0x4b5a(0xd4)]),!![];const _0x3d3df8=await _0x233517[_0x4b5a(0xd5)](checkYouTubeMigrationNeeded,_0x186d4f);if(!_0x3d3df8)return console[_0x4b5a(0x25)](_0x233517[_0x4b5a(0xd6)]),!![];console['log'](_0x233517[_0x4b5a(0xd7)]);const _0x3e2d15=await _0x233517[_0x4b5a(0xd8)](showYouTubeMigrationPrompt);if(!_0x3e2d15)return _0x233517[_0x4b5a(0xd9)](_0x233517[_0x4b5a(0xda)],_0x233517['zBNHS'])?(console[_0x4b5a(0x25)](_0x233517['aQIqV']),![]):(_0x275956[_0x4b5a(0x25)](_0x233517[_0x4b5a(0xdb)]),!![]);const _0xcd2e13=await forceYouTubeReconnection(_0x186d4f);return _0xcd2e13?(_reactNative[_0x4b5a(0x2a)][_0x4b5a(0x2b)](_0x233517['ypRme'],'Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.',[{'text':_0x233517[_0x4b5a(0xdc)],'style':_0x233517[_0x4b5a(0xdd)]}]),!![]):(_reactNative[_0x4b5a(0x2a)][_0x4b5a(0x2b)](_0x233517[_0x4b5a(0xde)],_0x233517[_0x4b5a(0xdf)],[{'text':'OK','style':_0x233517[_0x4b5a(0xdd)]}]),![]);}catch(_0x446247){return _0x233517[_0x4b5a(0xe0)](_0x4b5a(0xe1),_0x233517[_0x4b5a(0xe2)])?(console['error'](_0x233517[_0x4b5a(0xe3)],_0x446247),![]):(_0x968d5c['log'](_0x233517[_0x4b5a(0xe4)]),_0x5f1d46['log'](_0x233517[_0x4b5a(0xe5)]),{'isReady':!![],'mode':_0x4b5a(0xe6),'needsMigration':![],'trainingReady':!![],'details':_0x3a8f23});}};exports['checkAndFixYouTubeConnection']=checkAndFixYouTubeConnection;const reconnectYouTube=async _0x57e21e=>{const _0x81a628={'SjVDk':_0x4b5a(0xe7),'Auiai':function(_0x557deb,_0xc6d933){return _0x557deb(_0xc6d933);}};return console[_0x4b5a(0x25)](_0x81a628[_0x4b5a(0xe8)],_0x57e21e),await _0x81a628[_0x4b5a(0xe9)](forceYouTubeReconnection,_0x57e21e);};exports['reconnectYouTube']=reconnectYouTube;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Onairos SDK - Asset Registry (auto-generated)
|
|
3
|
+
var __ONAIROS_REQ_REGISTRY__ = [
|
|
4
|
+
require("react-native")
|
|
5
|
+
];
|
|
6
|
+
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
+
Object[_0x2506(0x0)](exports,_0x2506(0x1),{'value':!![]}),exports[_0x2506(0x2)]=exports[_0x2506(0x3)]=exports[_0x2506(0x4)]=exports[_0x2506(0x5)]=exports[_0x2506(0x6)]=exports[_0x2506(0x7)]=exports[_0x2506(0x8)]=void 0x0;var _reactNative=__ONAIROS_REQ_FUNC__(0x0);const COLORS=exports['COLORS']={'surface':_0x2506(0x9),'grey300':_0x2506(0xa),'grey400':'#9CA3AF','grey500':_0x2506(0xb),'grey600':'#62646C','grey700':_0x2506(0xc),'grey800':_0x2506(0xd),'btnGradStart':'#29292B','btnGradEnd':_0x2506(0xe),'btnBorder':_0x2506(0xf),'btnShadowOuter':'rgba(0,0,0,0.10)','btnInnerShadow':'rgba(0,0,0,0.06)','btnLabel':_0x2506(0x10),'iconCircleGradientStart':'#0A090E','iconCircleGradientEnd':_0x2506(0x11),'primary':_0x2506(0x12),'primaryDark':_0x2506(0x13),'primaryLight':_0x2506(0x14),'background':{'dark':_0x2506(0x15),'medium':_0x2506(0x16),'light':_0x2506(0x17)},'text':{'primary':_0x2506(0x10),'secondary':_0x2506(0x18),'tertiary':'#808080','gold':_0x2506(0x12)},'ui':{'cardBackground':_0x2506(0x19),'divider':'rgba(255,\x20255,\x20255,\x200.1)','inputBackground':_0x2506(0x19),'buttonBackground':_0x2506(0x19)},'status':{'success':'#4BB543','error':_0x2506(0x1a),'warning':_0x2506(0x1b),'info':_0x2506(0x1c)},'transparent':_0x2506(0x1d),'overlay':_0x2506(0x1e)},FONTS=exports['FONTS']={'families':{'ibmPlexSans':_reactNative['Platform']['OS']===_0x2506(0x1f)?'IBM\x20Plex\x20Sans':_0x2506(0x20),'ibmPlexSansBold':_reactNative['Platform']['OS']===_0x2506(0x1f)?_0x2506(0x20):_0x2506(0x20),'inter':_reactNative[_0x2506(0x21)]['OS']===_0x2506(0x1f)?_0x2506(0x22):'Inter-Regular','base':_reactNative['Platform']['OS']===_0x2506(0x1f)?_0x2506(0x23):'Roboto','serif':_reactNative[_0x2506(0x21)]['OS']===_0x2506(0x1f)?'Georgia':_0x2506(0x24)},'weights':{'light':'300','regular':_0x2506(0x25),'medium':_0x2506(0x26),'semibold':_0x2506(0x27),'bold':_0x2506(0x28)},'sizes':{'xs':0xc,'sm':0xe,'md':0x10,'lg':0x12,'xl':0x14,'xxl':0x18,'xxxl':0x1c,'title':0x20,'large':0x2a,'kicker':0x12,'welcomeTitle':0x30,'body':0x10,'buttonLabel':0x10},'lineHeights':{'kicker':0x14,'welcomeTitle':0x36,'body':0x18,'sm':0x10,'md':0x14,'lg':0x18,'xl':0x1c},'letterSpacing':{'kicker':-0.24,'tight':-0.5,'normal':0x0,'wide':0.5}},SPACING=exports[_0x2506(0x4)]={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18},BORDER_RADIUS=exports[_0x2506(0x8)]={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64},SHADOWS=exports[_0x2506(0x5)]={'small':{'shadowColor':COLORS[_0x2506(0x29)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS['primary'],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x2506(0x29)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS['btnInnerShadow'],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS['btnShadowOuter'],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':_0x2506(0x15),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}},TEXT_STYLES=exports[_0x2506(0x3)]={'kicker':{'fontFamily':FONTS[_0x2506(0x2a)]['ibmPlexSansBold'],'fontWeight':FONTS[_0x2506(0x2b)][_0x2506(0x2c)],'fontSize':FONTS['sizes'][_0x2506(0x2d)],'lineHeight':FONTS[_0x2506(0x2e)][_0x2506(0x2d)],'letterSpacing':FONTS[_0x2506(0x2f)]['kicker'],'color':COLORS[_0x2506(0x30)]},'welcomeTitle':{'fontFamily':FONTS['families'][_0x2506(0x31)],'fontWeight':FONTS[_0x2506(0x2b)]['bold'],'fontSize':FONTS[_0x2506(0x32)][_0x2506(0x33)],'lineHeight':FONTS[_0x2506(0x2e)]['welcomeTitle'],'color':COLORS[_0x2506(0x34)]},'body':{'fontFamily':FONTS[_0x2506(0x2a)]['inter'],'fontWeight':FONTS[_0x2506(0x2b)][_0x2506(0x35)],'fontSize':FONTS[_0x2506(0x32)][_0x2506(0x36)],'lineHeight':FONTS[_0x2506(0x2e)][_0x2506(0x36)],'textAlign':_0x2506(0x37),'color':COLORS[_0x2506(0x38)]},'buttonLabel':{'fontFamily':FONTS[_0x2506(0x2a)][_0x2506(0x39)],'fontWeight':FONTS[_0x2506(0x2b)][_0x2506(0x3a)],'fontSize':FONTS[_0x2506(0x32)][_0x2506(0x3b)],'color':COLORS['btnLabel']}};function _0x2506(_0x256a98,_0x250606){_0x256a98=_0x256a98-0x0;const _0x5437cf=_0x256a();let _0x522020=_0x5437cf[_0x256a98];return _0x522020;}var _default=exports[_0x2506(0x2)]={'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};function _0x256a(){const _0x49594c=['defineProperty','__esModule','default','TEXT_STYLES','SPACING','SHADOWS','FONTS','COLORS','BORDER_RADIUS','#FAFAFA','#D1D5DB','#86888E','#374151','#1F242F','#17181C','rgba(0,0,0,0.20)','#FFFFFF','#17171B','#FFD700','#E9B104','#FFDF33','#000000','#121212','#1C2526','#B0B0B0','rgba(255,\x20255,\x20255,\x200.1)','#FF3B30','#FF9500','#5AC8FA','transparent','rgba(0,\x200,\x200,\x200.7)','ios','IBM\x20Plex\x20Sans','Platform','Inter','System','serif','400','500','600','700','primary','families','weights','bold','kicker','lineHeights','letterSpacing','grey500','ibmPlexSansBold','sizes','welcomeTitle','grey800','regular','body','center','grey600','inter','semibold','buttonLabel'];_0x256a=function(){return _0x49594c;};return _0x256a();}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=ambient.d.js.map
|
|
1
|
+
'use strict';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=declarations.d.js.map
|
|
1
|
+
'use strict';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';function _0x45c5(){var _0x34685c=['__esModule'];_0x45c5=function(){return _0x34685c;};return _0x45c5();}function _0x1b9e(_0x45c5f2,_0x1b9e0d){_0x45c5f2=_0x45c5f2-0x0;var _0x80a412=_0x45c5();var _0x192208=_0x80a412[_0x45c5f2];return _0x192208;}Object['defineProperty'](exports,_0x1b9e(0x0),{'value':!![]});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=node-fix.d.js.map
|
|
1
|
+
'use strict';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=node-override.d.js.map
|
|
1
|
+
'use strict';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=opacity.d.js.map
|
|
1
|
+
'use strict';
|
package/lib/commonjs/types.js
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ApiKeyType = void 0;
|
|
7
|
-
// API key types
|
|
8
|
-
let ApiKeyType = exports.ApiKeyType = /*#__PURE__*/function (ApiKeyType) {
|
|
9
|
-
ApiKeyType["DEVELOPER"] = "developer";
|
|
10
|
-
ApiKeyType["ADMIN"] = "admin";
|
|
11
|
-
ApiKeyType["INVALID"] = "invalid";
|
|
12
|
-
return ApiKeyType;
|
|
13
|
-
}({}); // ... rest of the existing types ...
|
|
14
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
'use strict';function _0x124f(_0x5a3cb5,_0x124f1c){_0x5a3cb5=_0x5a3cb5-0x0;const _0xb4507e=_0x5a3c();let _0x4a99ab=_0xb4507e[_0x5a3cb5];return _0x4a99ab;}function _0x5a3c(){const _0x3b754b=['defineProperty','__esModule','ApiKeyType','DEVELOPER','ADMIN','admin','MWthF','PnFfD','RqaoN','sfqry'];_0x5a3c=function(){return _0x3b754b;};return _0x5a3c();}Object[_0x124f(0x0)](exports,_0x124f(0x1),{'value':!![]}),exports[_0x124f(0x2)]=void 0x0;let ApiKeyType=exports[_0x124f(0x2)]=function(_0x137f0e){const _0xf70be5={'MWthF':_0x124f(0x3),'PnFfD':'developer','bPgVS':_0x124f(0x4),'RqaoN':_0x124f(0x5),'sfqry':'INVALID'};return _0x137f0e[_0xf70be5[_0x124f(0x6)]]=_0xf70be5[_0x124f(0x7)],_0x137f0e[_0xf70be5['bPgVS']]=_0xf70be5[_0x124f(0x8)],_0x137f0e[_0xf70be5[_0x124f(0x9)]]='invalid',_0x137f0e;}({});
|
|
@@ -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
|
+
function _0x364e(_0x3af763,_0x364ea8){_0x3af763=_0x3af763-0x0;const _0x37c43a=_0x3af7();let _0x33f965=_0x37c43a[_0x3af763];return _0x33f965;}Object[_0x364e(0x0)](exports,_0x364e(0x1),{'value':!![]}),exports['PortalHost']=exports['Portal']=void 0x0;var _react=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x55fccd,_0x3e2d18){const _0x5c51bf={'KPCWd':function(_0x17a19d,_0x5b0e70){return _0x17a19d!==_0x5b0e70;},'GloPw':_0x364e(0x2),'oqxkR':function(_0x207608,_0x27ff8a){return _0x207608===_0x27ff8a;},'eYcCm':function(_0x1509c9,_0x3dcd8f){return _0x1509c9!=_0x3dcd8f;},'jZeOO':_0x364e(0x3),'FKvha':function(_0x287eae,_0x253072){return _0x287eae!=_0x253072;},'GxCZQ':'function','ifBrl':_0x364e(0x4),'QpohU':function(_0x478705,_0x399421,_0x5ea4e8,_0x195825){return _0x478705(_0x399421,_0x5ea4e8,_0x195825);},'VfGBM':function(_0x8494c0,_0x100432){return _0x8494c0==_0x100432;}};if(_0x5c51bf[_0x364e(0x5)](_0x5c51bf['GxCZQ'],typeof WeakMap))var _0x3a50f4=new WeakMap(),_0x276433=new WeakMap();return(_interopRequireWildcard=function(_0x6cfdca,_0x363661){const _0xd7bcf7={'mKuCK':function(_0x4c8b0a,_0xad0e34){return _0x4c8b0a(_0xad0e34);}};if(_0x5c51bf[_0x364e(0x6)](_0x5c51bf[_0x364e(0x7)],_0x364e(0x2))){const _0xc239cf={'NXxRY':function(_0x57ff0d,_0x58f227){return _0xd7bcf7[_0x364e(0x8)](_0x57ff0d,_0x58f227);}},_0x1a8a9e=_0x179c2d(_0x59d6e9);return _0xc601b4(_0x1a8a9e),()=>{if(_0x63b75e)_0xc239cf[_0x364e(0x9)](_0xf971c2,_0x2d545d);};}else{if(!_0x363661&&_0x6cfdca&&_0x6cfdca[_0x364e(0x1)])return _0x6cfdca;var _0x451272,_0x37bf06,_0x3696ec={'__proto__':null,'default':_0x6cfdca};if(_0x5c51bf['oqxkR'](null,_0x6cfdca)||_0x5c51bf[_0x364e(0xa)](_0x5c51bf['jZeOO'],typeof _0x6cfdca)&&_0x5c51bf[_0x364e(0xb)](_0x5c51bf[_0x364e(0xc)],typeof _0x6cfdca))return _0x3696ec;if(_0x451272=_0x363661?_0x276433:_0x3a50f4){if(_0x451272[_0x364e(0xd)](_0x6cfdca))return _0x451272[_0x364e(0xe)](_0x6cfdca);_0x451272[_0x364e(0xf)](_0x6cfdca,_0x3696ec);}for(const _0x39b1bc in _0x6cfdca)_0x5c51bf[_0x364e(0x6)](_0x5c51bf[_0x364e(0x10)],_0x39b1bc)&&{}[_0x364e(0x11)][_0x364e(0x12)](_0x6cfdca,_0x39b1bc)&&((_0x37bf06=(_0x451272=Object[_0x364e(0x0)])&&Object[_0x364e(0x13)](_0x6cfdca,_0x39b1bc))&&(_0x37bf06[_0x364e(0xe)]||_0x37bf06[_0x364e(0xf)])?_0x5c51bf[_0x364e(0x14)](_0x451272,_0x3696ec,_0x39b1bc,_0x37bf06):_0x3696ec[_0x39b1bc]=_0x6cfdca[_0x39b1bc]);return _0x3696ec;}})(_0x55fccd,_0x3e2d18);}const portalRefs={};let portalId=0x0;const PortalContext=_react[_0x364e(0x4)][_0x364e(0x15)]({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}}),PortalHost=({children:_0x279615})=>{const _0xf85185={'PubEr':function(_0xd4b626,_0x42141e){return _0xd4b626&&_0x42141e;},'XZKZj':function(_0x3b5254,_0x2310fe){return _0x3b5254===_0x2310fe;},'dJQau':function(_0x34e226,_0x1d011d){return _0x34e226!=_0x1d011d;},'QyNse':_0x364e(0x16),'riGrX':function(_0x39eb91,_0x4dcb2a){return _0x39eb91!==_0x4dcb2a;},'ErFhw':function(_0x3cadfe,_0x5278bd){return _0x3cadfe==_0x5278bd;},'UDTbw':'tVyuw','UVSQK':function(_0x3cf3d0,_0x49bb73){return _0x3cf3d0(_0x49bb73);},'tmGTY':_0x364e(0x17),'xaRsu':function(_0x5a2eb7,_0x158333){return _0x5a2eb7(_0x158333);},'EccIV':_0x364e(0x18)},[_0x5737a4,_0x26ddf6]=(0x0,_react[_0x364e(0x19)])({}),_0x3386d4=_0x2a6bc1=>{const _0x4872a5={'LHNpj':function(_0x5a361a,_0x5d23cb){return _0xf85185['PubEr'](_0x5a361a,_0x5d23cb);},'JXrVO':function(_0x1a432f,_0x32887d){return _0xf85185[_0x364e(0x1a)](_0x1a432f,_0x32887d);},'dLcts':function(_0xa602d7,_0x357272){return _0xf85185[_0x364e(0x1b)](_0xa602d7,_0x357272);},'NYVqU':_0xf85185[_0x364e(0x1c)],'HoGGr':function(_0x462e23,_0x12aeff){return _0xf85185['riGrX'](_0x462e23,_0x12aeff);},'cMrRY':_0x364e(0x4),'xZVkT':function(_0x1cc16e,_0x456dfa,_0x42ceaf,_0x5c8c55){return _0x1cc16e(_0x456dfa,_0x42ceaf,_0x5c8c55);},'Xuxli':function(_0x53cbb4,_0x1c093a){return _0xf85185['ErFhw'](_0x53cbb4,_0x1c093a);}};if(_0xf85185[_0x364e(0x1d)](_0xf85185[_0x364e(0x1e)],_0xf85185['UDTbw'])){if(_0x4872a5[_0x364e(0x1f)](_0x4872a5[_0x364e(0x20)],typeof _0x5d2f9f))var _0x3db1af=new _0x29ac59(),_0x40c1bf=new _0x170efc();return(_0x5e59df=function(_0x2e5257,_0x35e52f){if(_0x4872a5[_0x364e(0x21)](!_0x35e52f,_0x2e5257)&&_0x2e5257['__esModule'])return _0x2e5257;var _0x4fdfce,_0x44d211,_0x93d428={'__proto__':null,'default':_0x2e5257};if(_0x4872a5[_0x364e(0x22)](null,_0x2e5257)||_0x4872a5['dLcts'](_0x364e(0x3),typeof _0x2e5257)&&_0x4872a5[_0x364e(0x23)](_0x4872a5['NYVqU'],typeof _0x2e5257))return _0x93d428;if(_0x4fdfce=_0x35e52f?_0x40c1bf:_0x3db1af){if(_0x4fdfce[_0x364e(0xd)](_0x2e5257))return _0x4fdfce['get'](_0x2e5257);_0x4fdfce[_0x364e(0xf)](_0x2e5257,_0x93d428);}for(const _0x3c4f59 in _0x2e5257)_0x4872a5[_0x364e(0x24)](_0x4872a5[_0x364e(0x25)],_0x3c4f59)&&{}[_0x364e(0x11)][_0x364e(0x12)](_0x2e5257,_0x3c4f59)&&((_0x44d211=(_0x4fdfce=_0xe3fa6f[_0x364e(0x0)])&&_0x45a578[_0x364e(0x13)](_0x2e5257,_0x3c4f59))&&(_0x44d211[_0x364e(0xe)]||_0x44d211['set'])?_0x4872a5[_0x364e(0x26)](_0x4fdfce,_0x93d428,_0x3c4f59,_0x44d211):_0x93d428[_0x3c4f59]=_0x2e5257[_0x3c4f59]);return _0x93d428;})(_0x42b53d,_0x4a4593);}else{const _0x2d6068=++portalId;return _0xf85185['UVSQK'](_0x26ddf6,_0x97554c=>({..._0x97554c,[_0x2d6068]:_0x2a6bc1})),_0x2d6068;}},_0xa1c1b3=(_0xac6031,_0xec7d73)=>{_0xf85185[_0x364e(0x1a)](_0xf85185[_0x364e(0x27)],_0xf85185[_0x364e(0x27)])?_0xf85185[_0x364e(0x28)](_0x26ddf6,_0xad74b2=>({..._0xad74b2,[_0xac6031]:_0xec7d73})):_0x2b1f0c!==null&&_0xe09d9(_0x2dd6a9,_0x5c13cf);},_0x22e2dd=_0x57a33c=>{if(_0xf85185[_0x364e(0x1a)](_0xf85185[_0x364e(0x29)],_0xf85185[_0x364e(0x29)]))_0xf85185[_0x364e(0x28)](_0x26ddf6,_0x104738=>{const _0xf8eb8a={..._0x104738};return delete _0xf8eb8a[_0x57a33c],_0xf8eb8a;});else{if(_0x36522d)_0xf85185[_0x364e(0x2a)](_0x48fab3,_0x20f37d);}};return _react[_0x364e(0x4)]['createElement'](PortalContext[_0x364e(0x2b)],{'value':{'mount':_0x3386d4,'update':_0xa1c1b3,'unmount':_0x22e2dd}},_0x279615,Object[_0x364e(0x2c)](_0x5737a4)[_0x364e(0x2d)](_0x9871c4=>_react['default']['createElement'](_reactNative['View'],{'key':_0x9871c4,'style':{'position':_0x364e(0x2e),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x5737a4[Number(_0x9871c4)])));};exports[_0x364e(0x2f)]=PortalHost;function _0x3af7(){const _0x2d6ce2=['defineProperty','__esModule','qigVY','object','default','VfGBM','KPCWd','GloPw','mKuCK','NXxRY','eYcCm','FKvha','GxCZQ','has','get','set','ifBrl','hasOwnProperty','call','getOwnPropertyDescriptor','QpohU','createContext','function','ojmGI','HNJaQ','useState','XZKZj','dJQau','QyNse','riGrX','UDTbw','Xuxli','NYVqU','LHNpj','JXrVO','dLcts','HoGGr','cMrRY','xZVkT','tmGTY','UVSQK','EccIV','xaRsu','Provider','keys','map','absolute','PortalHost','XxsYe','useContext','useEffect','BJiEw','xnTCH','wEyoJ','AsIzF','Portal'];_0x3af7=function(){return _0x2d6ce2;};return _0x3af7();}const Portal=({children:_0x354f59})=>{const _0x162cdb={'BJiEw':function(_0x589360,_0x1a5adc){return _0x589360(_0x1a5adc);},'AsIzF':function(_0xca4929,_0x1cc528,_0x19dc55){return _0xca4929(_0x1cc528,_0x19dc55);},'DgwQd':function(_0x5b0fc5,_0x392f66){return _0x5b0fc5!==_0x392f66;},'xnTCH':function(_0x4849a9,_0x2e311d){return _0x4849a9!==_0x2e311d;},'wEyoJ':_0x364e(0x30)},{mount:_0x3ee3dd,update:_0x119312,unmount:_0x3294ae}=_react['default'][_0x364e(0x31)](PortalContext),[_0x4c5fda,_0x1ce14a]=(0x0,_react[_0x364e(0x19)])(null);return(0x0,_react[_0x364e(0x32)])(()=>{const _0x2258e5=_0x3ee3dd(_0x354f59);return _0x162cdb[_0x364e(0x33)](_0x1ce14a,_0x2258e5),()=>{if(_0x4c5fda)_0x162cdb[_0x364e(0x33)](_0x3294ae,_0x4c5fda);};},[]),(0x0,_react[_0x364e(0x32)])(()=>{_0x162cdb['DgwQd'](_0x4c5fda,null)&&(_0x162cdb[_0x364e(0x34)](_0x162cdb[_0x364e(0x35)],_0x162cdb['wEyoJ'])?_0x162cdb[_0x364e(0x36)](_0x2bf805,_0x2d8ea0,_0x46ad92):_0x119312(_0x4c5fda,_0x354f59));},[_0x354f59,_0x4c5fda]),null;};exports[_0x364e(0x37)]=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[_0x3da8(0x0)](exports,_0x3da8(0x1),{'value':!![]}),exports[_0x3da8(0x2)]=exports[_0x3da8(0x3)]=exports[_0x3da8(0x4)]=exports[_0x3da8(0x5)]=exports[_0x3da8(0x6)]=void 0x0;var _axios=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x19767e){return _0x19767e&&_0x19767e[_0x3da8(0x1)]?_0x19767e:{'default':_0x19767e};}function _0x3da8(_0x3aee16,_0x3da8da){_0x3aee16=_0x3aee16-0x0;const _0x215c0b=_0x3aee();let _0xb44b41=_0x215c0b[_0x3aee16];return _0xb44b41;}const API_URL=_api[_0x3da8(0x7)]['BASE_URL'],createApiInstance=async()=>{const _0x8d3f3=await _asyncStorage[_0x3da8(0x8)][_0x3da8(0x9)]('onairosToken');return _axios[_0x3da8(0x8)][_0x3da8(0xa)]({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x8d3f3?{'Authorization':_0x3da8(0xb)+_0x8d3f3}:{}}});};exports[_0x3da8(0x5)]=createApiInstance;const validateDomain=async()=>{const _0x4b1228={'XXrxq':_0x3da8(0xc),'SbXCM':function(_0x879de5,_0xac25df){return _0x879de5!==_0xac25df;},'yjeVn':_0x3da8(0xd),'gRGze':_0x3da8(0xe)};try{const _0x49a692=await createApiInstance(),_0x166819=await _0x49a692[_0x3da8(0xf)]('/valid/validate-domain');return _0x166819['data'];}catch(_0x11a8ec){if(_0x4b1228[_0x3da8(0x10)](_0x3da8(0x11),_0x4b1228[_0x3da8(0x12)]))return console[_0x3da8(0x13)](_0x4b1228[_0x3da8(0x14)],_0x11a8ec),{'status':![]};else{_0x55496a[_0x3da8(0x13)](_0x4b1228[_0x3da8(0x15)],_0x597f7a);throw _0x19e1b0;}}};exports[_0x3da8(0x2)]=validateDomain;const fetchAccountInfo=async(_0xe62c61,_0x2ab809=![])=>{const _0xad750a={'HglWk':function(_0x570735){return _0x570735();},'FSSsM':_0x3da8(0x16)};try{const _0x5f53a1=await _0xad750a[_0x3da8(0x17)](createApiInstance),_0x5ddaf2=_0x2ab809?{'Info':{'identifier':_0xe62c61}}:{'Info':{'userName':_0xe62c61}},_0x5a160e=_0x2ab809?_0x3da8(0x18):_0xad750a[_0x3da8(0x19)],_0xda20b3=await _0x5f53a1[_0x3da8(0xf)](_0x5a160e,_0x5ddaf2);return _0xda20b3[_0x3da8(0x1a)];}catch(_0x45b74d){console[_0x3da8(0x13)]('Error\x20fetching\x20account\x20info:',_0x45b74d);throw _0x45b74d;}};exports[_0x3da8(0x4)]=fetchAccountInfo;const getApiUrl=async(_0x2d8c84,_0x1534ae,_0x1ac0c7)=>{const _0x1d72ab={'Wvqpk':_0x3da8(0xe),'AAUJS':_0x3da8(0x1b),'ZWsXa':function(_0x5e561a){return _0x5e561a();},'vBlbq':'/getAPIurl'};try{if(_0x1d72ab['AAUJS']!==_0x1d72ab['AAUJS'])return _0x14f8f1['error'](_0x1d72ab['Wvqpk'],_0x41d9de),{'status':![]};else{const _0x453c0a=await _0x1d72ab[_0x3da8(0x1c)](createApiInstance),_0x196011={'Info':{'EncryptedUserPin':_0x1534ae,'confirmations':_0x2d8c84,'web3Type':_0x3da8(0x1d),'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x1ac0c7}},_0x15abbe=await _0x453c0a[_0x3da8(0xf)](_0x1d72ab[_0x3da8(0x1e)],_0x196011);return _0x15abbe[_0x3da8(0x1a)];}}catch(_0x538b5e){console['error']('Error\x20getting\x20API\x20URL:',_0x538b5e);throw _0x538b5e;}};exports[_0x3da8(0x3)]=getApiUrl;function _0x3aee(){const _0x2d0be5=['defineProperty','__esModule','validateDomain','getApiUrl','fetchAccountInfo','createApiInstance','createAccount','API_CONFIG','default','getItem','create','Bearer\x20','Error\x20getting\x20API\x20URL:','StMdF','Error\x20validating\x20domain:','post','SbXCM','daLNQ','yjeVn','error','gRGze','XXrxq','/getAccountInfo','HglWk','/getAccountInfo/email','FSSsM','data','AzKaV','ZWsXa','othent','vBlbq','/createAccount','MBDWG','Error\x20creating\x20account:','mxyXv','JfyAN','sINYZ','edqcn','GfdSM'];_0x3aee=function(){return _0x2d0be5;};return _0x3aee();}const createAccount=async(_0x432d0e,_0x151ed6,_0x4e94e6,_0x458364)=>{const _0x3facca={'mxyXv':function(_0x122519){return _0x122519();},'JfyAN':_0x3da8(0x1f),'sINYZ':function(_0x5635ed,_0x51666b){return _0x5635ed===_0x51666b;},'GfdSM':_0x3da8(0x20),'LeVGc':_0x3da8(0x21)};try{const _0x4ea203=await _0x3facca[_0x3da8(0x22)](createApiInstance),_0x5250ec=await _0x4ea203['post'](_0x3facca[_0x3da8(0x23)],{'othentSub':_0x432d0e,'pin':_0x151ed6,'socialAccounts':_0x4e94e6,'email':_0x458364});return _0x5250ec[_0x3da8(0x1a)];}catch(_0x4e0486){if(_0x3facca[_0x3da8(0x24)](_0x3da8(0x25),_0x3facca[_0x3da8(0x26)])){_0x4ba50f[_0x3da8(0x13)]('Error\x20fetching\x20account\x20info:',_0x42fb61);throw _0x434b87;}else{console[_0x3da8(0x13)](_0x3facca['LeVGc'],_0x4e0486);throw _0x4e0486;}}};exports[_0x3da8(0x6)]=createAccount;
|