@onairos/react-native 3.6.6 → 3.6.8
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/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/components/BodyText.js +1 -1
- package/lib/commonjs/components/BrandMark.js +1 -1
- package/lib/commonjs/components/CodeInput.js +1 -1
- package/lib/commonjs/components/EmailInput.js +1 -1
- package/lib/commonjs/components/GoogleButton.js +1 -1
- package/lib/commonjs/components/HeadingGroup.js +1 -1
- package/lib/commonjs/components/LLMDataInputModal.js +1 -1
- package/lib/commonjs/components/ModalHeader.js +1 -1
- package/lib/commonjs/components/ModalSheet.js +1 -1
- package/lib/commonjs/components/Onairos.js +1 -1
- package/lib/commonjs/components/OnairosButton.js +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +1 -1
- package/lib/commonjs/components/Overlay.js +1 -1
- package/lib/commonjs/components/PersonaImage.js +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
- package/lib/commonjs/components/PinCreationScreen.js +1 -1
- package/lib/commonjs/components/PinInput.js +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
- package/lib/commonjs/components/PlatformList.js +1 -1
- package/lib/commonjs/components/PlatformToggle.js +1 -1
- package/lib/commonjs/components/PrimaryButton.js +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
- package/lib/commonjs/components/SignInStep.js +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js +1 -1
- package/lib/commonjs/components/icons/Checkbox.js +1 -1
- package/lib/commonjs/components/icons/Checkmark.js +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
- package/lib/commonjs/components/icons/Contenticon.js +1 -1
- package/lib/commonjs/components/icons/EnochE.js +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js +1 -1
- package/lib/commonjs/components/icons/index.js +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
- package/lib/commonjs/config/api.js +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/context/AuthContext.js +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +1 -1
- package/lib/commonjs/hooks/useCredentials.js +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/biometricPinService.js +1 -1
- package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
- package/lib/commonjs/services/chatGPTConversationService.js +1 -1
- package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
- package/lib/commonjs/services/claudeConversationService.js +1 -1
- package/lib/commonjs/services/connectedAccountsService.js +1 -1
- package/lib/commonjs/services/googleAuthService.js +1 -1
- package/lib/commonjs/services/hingeDataExtractor.js +1 -1
- package/lib/commonjs/services/hingeDataService.js +1 -1
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +1 -1
- package/lib/commonjs/services/instagramDataService.js +1 -1
- package/lib/commonjs/services/jwtStorageService.js +1 -1
- package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
- package/lib/commonjs/services/linkedinProfileService.js +1 -1
- package/lib/commonjs/services/linkedinScrapingService.js +1 -1
- package/lib/commonjs/services/llmDataStorage.js +1 -1
- package/lib/commonjs/services/mobileTrainingService.js +1 -1
- package/lib/commonjs/services/pinEncryptionService.js +1 -1
- package/lib/commonjs/services/pinStorageUtils.js +1 -1
- package/lib/commonjs/services/platformAuthService.js +1 -1
- package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
- package/lib/commonjs/services/sephoraDataService.js +1 -1
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +1 -1
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +1 -1
- package/lib/commonjs/utils/crypto.js +1 -1
- package/lib/commonjs/utils/debugHelper.js +1 -1
- package/lib/commonjs/utils/encryption.js +1 -1
- package/lib/commonjs/utils/eventUtils.js +1 -1
- package/lib/commonjs/utils/haptics.js +1 -1
- package/lib/commonjs/utils/imagePreloader.js +1 -1
- package/lib/commonjs/utils/networkDiagnostics.js +1 -1
- package/lib/commonjs/utils/onairosApi.js +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +1 -1
- package/lib/commonjs/utils/retryHelper.js +1 -1
- package/lib/commonjs/utils/secureStorage.js +1 -1
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
- package/lib/commonjs/utils/webviewScripts/index.js +1 -1
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/components/BodyText.js +1 -1
- package/lib/module/components/BrandMark.js +1 -1
- package/lib/module/components/CodeInput.js +1 -1
- package/lib/module/components/EmailInput.js +1 -1
- package/lib/module/components/GoogleButton.js +1 -1
- package/lib/module/components/HeadingGroup.js +1 -1
- package/lib/module/components/LLMDataInputModal.js +1 -1
- package/lib/module/components/ModalHeader.js +1 -1
- package/lib/module/components/ModalSheet.js +1 -1
- package/lib/module/components/Onairos.js +1 -1
- package/lib/module/components/OnairosButton.js +1 -1
- package/lib/module/components/OnairosSignInButton.js +1 -1
- package/lib/module/components/Overlay.js +1 -1
- package/lib/module/components/PersonaImage.js +1 -1
- package/lib/module/components/PersonaLoadingScreen.js +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js +1 -1
- package/lib/module/components/PinCreationScreen.js +1 -1
- package/lib/module/components/PinInput.js +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +1 -1
- package/lib/module/components/PlatformList.js +1 -1
- package/lib/module/components/PlatformToggle.js +1 -1
- package/lib/module/components/PrimaryButton.js +1 -1
- package/lib/module/components/SignInMatchAnimation.js +1 -1
- package/lib/module/components/SignInStep.js +1 -1
- package/lib/module/components/UniversalOnboarding.js +1 -1
- package/lib/module/components/VerificationStep.js +1 -1
- package/lib/module/components/WelcomeScreen.js +1 -1
- package/lib/module/components/icons/Basicproficon.js +1 -1
- package/lib/module/components/icons/Basicprofile.js +1 -1
- package/lib/module/components/icons/Checkbox.js +1 -1
- package/lib/module/components/icons/Checkmark.js +1 -1
- package/lib/module/components/icons/Contentanalysis.js +1 -1
- package/lib/module/components/icons/Contenticon.js +1 -1
- package/lib/module/components/icons/EnochE.js +1 -1
- package/lib/module/components/icons/Personalityicon.js +1 -1
- package/lib/module/components/icons/Personalityprofile.js +1 -1
- package/lib/module/components/icons/Personalitytraits.js +1 -1
- package/lib/module/components/icons/Userpreferences.js +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/module/components/onboarding/PinInput.js +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +1 -1
- package/lib/module/config/api.js +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/context/AuthContext.js +1 -1
- package/lib/module/hooks/useConnectedAccounts.js +1 -1
- package/lib/module/hooks/useConnections.js +1 -1
- package/lib/module/hooks/useCredentials.js +1 -1
- package/lib/module/hooks/useUserConnections.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/biometricPinService.js +1 -1
- package/lib/module/services/chatGPTConversationExtractor.js +1 -1
- package/lib/module/services/chatGPTConversationService.js +1 -1
- package/lib/module/services/claudeConversationExtractor.js +1 -1
- package/lib/module/services/claudeConversationService.js +1 -1
- package/lib/module/services/connectedAccountsService.js +1 -1
- package/lib/module/services/googleAuthService.js +1 -1
- package/lib/module/services/hingeDataExtractor.js +1 -1
- package/lib/module/services/hingeDataService.js +1 -1
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -1
- package/lib/module/services/instagramDataService.js +1 -1
- package/lib/module/services/jwtStorageService.js +1 -1
- package/lib/module/services/linkedinDOMExtractor.js +1 -1
- package/lib/module/services/linkedinProfileService.js +1 -1
- package/lib/module/services/linkedinScrapingService.js +1 -1
- package/lib/module/services/llmDataStorage.js +1 -1
- package/lib/module/services/mobileTrainingService.js +1 -1
- package/lib/module/services/pinEncryptionService.js +1 -1
- package/lib/module/services/pinStorageUtils.js +1 -1
- package/lib/module/services/platformAuthService.js +1 -1
- package/lib/module/services/sephoraDataExtractor.js +1 -1
- package/lib/module/services/sephoraDataService.js +1 -1
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +1 -1
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +1 -1
- package/lib/module/utils/crypto.js +1 -1
- package/lib/module/utils/debugHelper.js +1 -1
- package/lib/module/utils/encryption.js +1 -1
- package/lib/module/utils/eventUtils.js +1 -1
- package/lib/module/utils/haptics.js +1 -1
- package/lib/module/utils/networkDiagnostics.js +1 -1
- package/lib/module/utils/onairosApi.js +1 -1
- package/lib/module/utils/programmaticFlow.js +1 -1
- package/lib/module/utils/retryHelper.js +1 -1
- package/lib/module/utils/secureStorage.js +1 -1
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/module/utils/webviewScripts/claude.js +1 -1
- package/lib/module/utils/webviewScripts/hinge.js +1 -1
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -1
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GoogleSignin}from'@react-native-google-signin/google-signin';import{Alert}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const WEB_CLIENT_ID=_0x5593(0x0),IOS_CLIENT_ID='1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com',configureGoogleSignInForRefreshTokens=()=>{const _0x2e56a9={'EbtYr':_0x5593(0x1),'FkSEt':_0x5593(0x2)};GoogleSignin[_0x5593(0x3)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x5593(0x4),_0x2e56a9[_0x5593(0x5)],_0x2e56a9[_0x5593(0x6)],_0x5593(0x7)],'hostedDomain':'','accountName':''});};export const checkYouTubeMigrationNeeded=async _0x5c32ec=>{const _0x309634={'eUBiA':_0x5593(0x8),'YyKkv':'limited','JUOqo':function(_0x191fcc,_0x409b35){return _0x191fcc(_0x409b35);},'cLNyo':function(_0x177184,_0x173ba6){return _0x177184===_0x173ba6;},'ffcCB':_0x5593(0x9),'KSAhx':_0x5593(0xa),'Lphqe':function(_0x327fdd,_0x2e924f){return _0x327fdd===_0x2e924f;},'kXRsM':function(_0x504d13,_0x5c121d){return _0x504d13===_0x5c121d;},'ObJqe':function(_0x54596e,_0x550543){return _0x54596e===_0x550543;},'COyjJ':_0x5593(0xb),'rheRi':'🔍\x20YouTube\x20migration\x20check:','rCqBn':function(_0x4d806b,_0x19cb58){return _0x4d806b===_0x19cb58;},'mtaHc':function(_0x4e6bb4,_0x23922d){return _0x4e6bb4!==_0x23922d;},'JnJLh':'xSrMx','AivEN':'NQxOf','nKLEC':'⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','BYHGf':_0x5593(0xc),'ZTCPz':function(_0x5af6b4,_0x2f9e86){return _0x5af6b4===_0x2f9e86;},'wfSSp':_0x5593(0xd),'xoUEH':_0x5593(0xe)};try{const _0x10080f=await _0x309634[_0x5593(0xf)](fetch,API_CONFIG[_0x5593(0x10)]+'/youtube/validate-connection/'+_0x5c32ec),_0x2fe110=await _0x10080f[_0x5593(0x11)]();if(_0x2fe110[_0x5593(0x12)]&&_0x2fe110[_0x5593(0x13)]){if(_0x309634[_0x5593(0x14)](_0x309634['ffcCB'],_0x309634[_0x5593(0x15)]))_0x57939c=_0x3974e6[_0x5593(0x16)],_0x120f30=_0x5593(0x17);else{var _0x1cd1d0,_0x4205f3,_0x112840;const _0x54defe=_0x309634['Lphqe'](_0x309634[_0x5593(0x18)](_0x1cd1d0=_0x2fe110[_0x5593(0x13)],null)||_0x309634[_0x5593(0x19)](_0x1cd1d0,void 0x0)?void 0x0:_0x1cd1d0[_0x5593(0x1a)],!![])||_0x309634[_0x5593(0x18)](_0x309634['ObJqe'](_0x4205f3=_0x2fe110[_0x5593(0x1b)],null)||_0x309634[_0x5593(0x19)](_0x4205f3,void 0x0)?void 0x0:_0x4205f3[_0x5593(0x1c)],!![])||_0x2fe110[_0x5593(0x1a)]===!![]||_0x2fe110['message']&&_0x2fe110['message'][_0x5593(0x1d)](_0x309634[_0x5593(0x1e)]),_0x5871f0=_0x2fe110[_0x5593(0x13)][_0x5593(0x1f)],_0x1835c2=_0x2fe110[_0x5593(0x13)]['hasRefreshToken'];console[_0x5593(0x20)](_0x309634['rheRi'],{'username':_0x5c32ec,'needsReconnection':_0x5871f0,'hasRefreshToken':_0x1835c2,'isTemporaryMode':_0x54defe,'temporaryModeEnabled':_0x309634['cLNyo'](_0x112840=_0x2fe110[_0x5593(0x1b)],null)||_0x309634[_0x5593(0x21)](_0x112840,void 0x0)?void 0x0:_0x112840[_0x5593(0x1c)],'message':_0x2fe110[_0x5593(0x22)]});if(_0x54defe)return _0x309634[_0x5593(0x23)](_0x309634[_0x5593(0x24)],_0x309634[_0x5593(0x25)])?(console[_0x5593(0x20)]('🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly'),console['log'](_0x309634[_0x5593(0x26)]),![]):(_0x42edb7[_0x5593(0x20)](_0x309634[_0x5593(0x27)]),{'isReady':![],'mode':_0x309634[_0x5593(0x28)],'needsMigration':!![],'trainingReady':![],'details':_0x54df42});else return _0x5871f0?(console[_0x5593(0x20)](_0x309634[_0x5593(0x29)]),!![]):_0x309634[_0x5593(0x2a)](_0x309634['wfSSp'],_0x309634['xoUEH'])?(_0x53646f[_0x5593(0x20)](_0x5593(0xc)),!![]):(console[_0x5593(0x20)]('✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens'),![]);}}return![];}catch(_0x71a893){return console['error']('❌\x20Error\x20checking\x20YouTube\x20migration\x20status:',_0x71a893),![];}};export const getYouTubeConnectionStatus=async _0x3035c8=>{const _0x3de1a1={'cQspn':function(_0x1bf73d,_0x203329){return _0x1bf73d===_0x203329;},'lXfaE':'🔍\x20YouTube\x20migration\x20check:','YsoQE':function(_0x10f811,_0x44df6f){return _0x10f811===_0x44df6f;},'OOlQw':_0x5593(0x2b),'OEuhb':_0x5593(0xc),'dofUx':_0x5593(0x2c),'XxisL':_0x5593(0x2d),'vbasA':_0x5593(0x2e),'VCmse':_0x5593(0x2f),'XSjIZ':function(_0x5c1ab4,_0x3b96e4){return _0x5c1ab4(_0x3b96e4);},'GjbdI':function(_0x20993c,_0x357178){return _0x20993c===_0x357178;},'eoiDc':function(_0x24afc8,_0x3bcb74){return _0x24afc8===_0x3bcb74;},'dvxYo':function(_0x4de946,_0x161bca){return _0x4de946===_0x161bca;},'AlyAh':_0x5593(0xb),'ukZby':function(_0x497f91,_0x574f06){return _0x497f91===_0x574f06;},'rxToN':function(_0x234b84,_0x25a42a){return _0x234b84===_0x25a42a;},'TzUJV':_0x5593(0x30),'rRufF':_0x5593(0x31),'bHAFJ':_0x5593(0x32),'EeqTD':_0x5593(0x8),'RiCyp':'❓\x20YouTube\x20connection\x20status\x20unclear','AiJGy':_0x5593(0x33),'GBkLN':_0x5593(0x34),'GvLYI':function(_0x141690,_0x4dee06){return _0x141690===_0x4dee06;},'sUept':_0x5593(0x35),'krOTG':_0x5593(0x36),'ROzeo':function(_0x46ea8c,_0xdbf271){return _0x46ea8c instanceof _0xdbf271;},'lOytZ':function(_0x141535,_0x3fc571){return _0x141535(_0x3fc571);}};try{if(_0x3de1a1[_0x5593(0x37)]!==_0x3de1a1[_0x5593(0x38)]){const _0x185ab8=await _0x3de1a1[_0x5593(0x39)](fetch,API_CONFIG['BASE_URL']+_0x5593(0x3a)+_0x3035c8),_0x1080f7=await _0x185ab8[_0x5593(0x11)]();console[_0x5593(0x20)]('📋\x20Complete\x20YouTube\x20status\x20response:',_0x1080f7);if(_0x1080f7['success']&&_0x1080f7[_0x5593(0x13)]){var _0x101024,_0x25cbd5;const _0x57d1e0=_0x3de1a1[_0x5593(0x3b)](_0x3de1a1['cQspn'](_0x101024=_0x1080f7['validation'],null)||_0x3de1a1[_0x5593(0x3c)](_0x101024,void 0x0)?void 0x0:_0x101024[_0x5593(0x1a)],!![])||_0x3de1a1[_0x5593(0x3c)](_0x3de1a1['eoiDc'](_0x25cbd5=_0x1080f7[_0x5593(0x1b)],null)||_0x3de1a1['YsoQE'](_0x25cbd5,void 0x0)?void 0x0:_0x25cbd5['enabled'],!![])||_0x3de1a1[_0x5593(0x3d)](_0x1080f7['isTemporaryMode'],!![])||_0x1080f7[_0x5593(0x22)]&&_0x1080f7[_0x5593(0x22)][_0x5593(0x1d)](_0x3de1a1['AlyAh']),_0x2f661e=_0x3de1a1[_0x5593(0x3e)](_0x1080f7[_0x5593(0x13)][_0x5593(0x3f)],!![]),_0x61512e=_0x3de1a1[_0x5593(0x40)](_0x1080f7[_0x5593(0x13)][_0x5593(0x1f)],!![]);if(_0x57d1e0){if(_0x3de1a1[_0x5593(0x41)](_0x5593(0x42),_0x5593(0x42)))return console[_0x5593(0x20)](_0x3de1a1[_0x5593(0x43)]),console[_0x5593(0x20)](_0x3de1a1[_0x5593(0x44)]),{'isReady':!![],'mode':_0x3de1a1[_0x5593(0x45)],'needsMigration':![],'trainingReady':!![],'details':_0x1080f7};else{var _0x1a5f4b,_0x3effd6,_0x4340ea;const _0x4942c=(_0x3de1a1['cQspn'](_0x1a5f4b=_0x594346['validation'],null)||_0x3de1a1[_0x5593(0x41)](_0x1a5f4b,void 0x0)?void 0x0:_0x1a5f4b['isTemporaryMode'])===!![]||_0x3de1a1[_0x5593(0x41)](_0x3de1a1[_0x5593(0x41)](_0x3effd6=_0x1fd035['temporaryMode'],null)||_0x3effd6===void 0x0?void 0x0:_0x3effd6['enabled'],!![])||_0x3de1a1[_0x5593(0x41)](_0x4a30c7[_0x5593(0x1a)],!![])||_0x30dd00[_0x5593(0x22)]&&_0x54f512[_0x5593(0x22)]['includes'](_0x5593(0xb)),_0x10c693=_0x2f073e[_0x5593(0x13)][_0x5593(0x1f)],_0x51b4bb=_0x392c91['validation'][_0x5593(0x3f)];_0x4397d7['log'](_0x3de1a1['lXfaE'],{'username':_0x121d3c,'needsReconnection':_0x10c693,'hasRefreshToken':_0x51b4bb,'isTemporaryMode':_0x4942c,'temporaryModeEnabled':_0x3de1a1[_0x5593(0x41)](_0x4340ea=_0x4c2f1a['temporaryMode'],null)||_0x3de1a1[_0x5593(0x3b)](_0x4340ea,void 0x0)?void 0x0:_0x4340ea[_0x5593(0x1c)],'message':_0x41185e[_0x5593(0x22)]});if(_0x4942c)return _0x1353c8[_0x5593(0x20)](_0x3de1a1[_0x5593(0x46)]),_0x4486d6['log'](_0x5593(0x47)),![];else return _0x10c693?(_0x2504b5[_0x5593(0x20)](_0x3de1a1[_0x5593(0x48)]),!![]):(_0x3842fb[_0x5593(0x20)](_0x3de1a1[_0x5593(0x49)]),![]);}}else{if(_0x2f661e)return console[_0x5593(0x20)](_0x5593(0x4a)),{'isReady':!![],'mode':_0x5593(0x4b),'needsMigration':![],'trainingReady':!![],'details':_0x1080f7};else return _0x61512e?(console[_0x5593(0x20)](_0x3de1a1[_0x5593(0x4c)]),{'isReady':![],'mode':_0x5593(0x4d),'needsMigration':!![],'trainingReady':![],'details':_0x1080f7}):(console[_0x5593(0x20)](_0x3de1a1[_0x5593(0x4e)]),{'isReady':![],'mode':_0x3de1a1['AiJGy'],'needsMigration':![],'trainingReady':![],'details':_0x1080f7});}}return console[_0x5593(0x20)](_0x3de1a1[_0x5593(0x4f)]),{'isReady':![],'mode':_0x3de1a1[_0x5593(0x50)],'needsMigration':![],'trainingReady':![],'details':_0x1080f7};}else _0x5982f3[_0x5593(0x51)](_0x3de1a1[_0x5593(0x52)],_0x1d4e41);}catch(_0x194cf1){return _0x3de1a1[_0x5593(0x53)](_0x3de1a1['sUept'],_0x3de1a1[_0x5593(0x54)])?(console[_0x5593(0x51)](_0x3de1a1[_0x5593(0x55)],_0x194cf1),{'isReady':![],'mode':_0x3de1a1['AiJGy'],'needsMigration':![],'trainingReady':![],'details':{'error':_0x3de1a1['ROzeo'](_0x194cf1,Error)?_0x194cf1['message']:_0x3de1a1[_0x5593(0x56)](String,_0x194cf1)}}):(_0x475f31[_0x5593(0x20)](_0x5593(0x57)),![]);}};const showYouTubeMigrationPrompt=async()=>{const _0x491b2a={'iURgj':'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?','pSSRC':_0x5593(0x58),'ycJbp':'cancel','HwbOx':_0x5593(0x59),'pIbeQ':'default'};return new Promise(_0x46be1c=>{Alert[_0x5593(0x5a)](_0x5593(0x5b),_0x491b2a[_0x5593(0x5c)],[{'text':_0x491b2a[_0x5593(0x5d)],'style':_0x491b2a[_0x5593(0x5e)],'onPress':()=>_0x46be1c(![])},{'text':_0x491b2a['HwbOx'],'style':_0x491b2a[_0x5593(0x5f)],'onPress':()=>_0x46be1c(!![])}]);});},forceYouTubeReconnection=async _0x381bd6=>{const _0x2cc8f8={'RZGva':_0x5593(0x36),'UdNFA':_0x5593(0x33),'jBOsB':function(_0x4bf80c,_0xea79e0){return _0x4bf80c instanceof _0xea79e0;},'dGbEy':function(_0x810c4b,_0x7f9929){return _0x810c4b(_0x7f9929);},'CyGgq':'🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','fjOmL':_0x5593(0x2b),'cfOnw':_0x5593(0x47),'vBOCt':function(_0x1f77e3,_0xcd3eb1){return _0x1f77e3===_0xcd3eb1;},'YOjQU':_0x5593(0x60),'SnaLN':_0x5593(0x61),'zIRhG':function(_0x353b44){return _0x353b44();},'GShAP':'✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','WtFNV':'✅\x20Token\x20cache\x20cleared','nvKOs':_0x5593(0x62),'mcSoH':_0x5593(0x63),'tVqAo':_0x5593(0x17),'RGJfF':function(_0xeb7e45,_0x2ef236){return _0xeb7e45!==_0x2ef236;},'piTry':function(_0x473f38,_0x2da05d){return _0x473f38!==_0x2da05d;},'rDBjy':_0x5593(0x64),'hHGTO':function(_0x26d4ad,_0x1004f9){return _0x26d4ad===_0x1004f9;},'Rofyf':'3|5|4|2|0|1','gNxvd':_0x5593(0x65),'CpDIg':'\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','cFxHn':_0x5593(0x66),'ciIlH':_0x5593(0x67),'GWevs':'💡\x20This\x20usually\x20means:','KgcyF':_0x5593(0x68),'kONra':function(_0x358b4d,_0x3591a8){return _0x358b4d+_0x3591a8;},'fJeRF':_0x5593(0x69),'stufk':_0x5593(0x6a),'sdnwd':'auth_token','xeuxw':_0x5593(0x6b),'nebTd':'⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','oNLFA':_0x5593(0x6c),'hmEIy':'youtube','bqxjk':_0x5593(0x6d),'yxSwN':function(_0x1c3a05,_0x3a1196){return _0x1c3a05===_0x3a1196;},'VVtZc':'📤\x20Sending\x20migration\x20payload\x20to\x20backend...','IztHV':function(_0x332629,_0x4efe19,_0x593469){return _0x332629(_0x4efe19,_0x593469);},'ArCXg':_0x5593(0x6e),'oGJLe':function(_0x349975,_0x27fc3e){return _0x349975!==_0x27fc3e;},'YGPxw':'gPQSX','apnIW':_0x5593(0x6f),'pJrnu':'❌\x20Backend\x20rejected\x20YouTube\x20migration:','ENaTz':function(_0x39d05f,_0x58242e,_0x883d2,_0x4bf856){return _0x39d05f(_0x58242e,_0x883d2,_0x4bf856);},'LkNTW':function(_0x3b305f,_0x4ee103,_0x4a3395,_0x38ac2d){return _0x3b305f(_0x4ee103,_0x4a3395,_0x38ac2d);},'PokyU':'Unknown\x20error'};try{if(_0x2cc8f8['vBOCt'](_0x5593(0x60),_0x2cc8f8[_0x5593(0x70)])){var _0x535d9e,_0x5f4972,_0x5b37c4,_0x4188e9;console[_0x5593(0x20)](_0x2cc8f8[_0x5593(0x71)],_0x381bd6),_0x2cc8f8[_0x5593(0x72)](configureGoogleSignInForRefreshTokens),await GoogleSignin[_0x5593(0x73)](),console[_0x5593(0x20)](_0x2cc8f8['GShAP']);try{const _0x123357=await GoogleSignin[_0x5593(0x74)]();_0x123357[_0x5593(0x75)]&&(await GoogleSignin[_0x5593(0x76)](_0x123357[_0x5593(0x75)]),console[_0x5593(0x20)](_0x2cc8f8[_0x5593(0x77)]));}catch(_0x1e6509){console[_0x5593(0x20)](_0x5593(0x78));}await GoogleSignin[_0x5593(0x79)](),console[_0x5593(0x20)](_0x2cc8f8[_0x5593(0x7a)]);const _0x1c1fe2=await GoogleSignin[_0x5593(0x7b)](),_0x3824eb=await GoogleSignin[_0x5593(0x74)](),_0x1af8be=await GoogleSignin[_0x5593(0x7c)]();let _0x29205f=null,_0x485d83=_0x5593(0x7d);if(_0x1c1fe2[_0x5593(0x16)]){if(_0x2cc8f8[_0x5593(0x7e)](_0x2cc8f8[_0x5593(0x7f)],_0x5593(0x63)))_0x29205f=_0x1c1fe2[_0x5593(0x16)],_0x485d83=_0x2cc8f8['tVqAo'];else return _0x2a2ab4[_0x5593(0x51)](_0x2cc8f8['RZGva'],_0x56646b),{'isReady':![],'mode':_0x2cc8f8[_0x5593(0x80)],'needsMigration':![],'trainingReady':![],'details':{'error':_0x2cc8f8[_0x5593(0x81)](_0x3323da,_0x2ce292)?_0x57ccbb[_0x5593(0x22)]:_0x2cc8f8['dGbEy'](_0xb19d6d,_0x3c59a9)}};}else _0x2cc8f8[_0x5593(0x82)](_0x1af8be,null)&&_0x1af8be!==void 0x0&&_0x1af8be['serverAuthCode']&&(_0x29205f=_0x1af8be[_0x5593(0x16)],_0x485d83='Current\x20user\x20server\x20auth\x20code');console[_0x5593(0x20)](_0x5593(0x83),{'hasAccessToken':!!_0x3824eb[_0x5593(0x75)],'hasIdToken':!!_0x3824eb[_0x5593(0x84)],'hasServerAuthCode':!!_0x1c1fe2[_0x5593(0x16)],'hasCurrentUserAuthCode':!!(_0x2cc8f8[_0x5593(0x85)](_0x1af8be,null)&&_0x2cc8f8['RGJfF'](_0x1af8be,void 0x0)&&_0x1af8be[_0x5593(0x16)]),'refreshTokenSource':_0x485d83,'finalRefreshToken':_0x29205f?'Available':_0x2cc8f8[_0x5593(0x86)],'userEmail':_0x2cc8f8['vBOCt'](_0x535d9e=_0x1c1fe2[_0x5593(0x87)],null)||_0x2cc8f8['hHGTO'](_0x535d9e,void 0x0)?void 0x0:_0x535d9e['email']});if(!_0x29205f){const _0x4c5c33=_0x2cc8f8[_0x5593(0x88)][_0x5593(0x89)]('|');let _0x4a233d=0x0;while(!![]){switch(_0x4c5c33[_0x4a233d++]){case'0':console['error'](_0x2cc8f8[_0x5593(0x8a)]);continue;case'1':return![];case'2':console[_0x5593(0x51)](_0x2cc8f8[_0x5593(0x8b)]);continue;case'3':console[_0x5593(0x51)](_0x2cc8f8[_0x5593(0x8c)]);continue;case'4':console['error'](_0x2cc8f8[_0x5593(0x8d)]);continue;case'5':console[_0x5593(0x51)](_0x2cc8f8['GWevs']);continue;}break;}}console[_0x5593(0x20)](_0x2cc8f8[_0x5593(0x8e)],_0x2cc8f8[_0x5593(0x8f)](_0x29205f['substring'](0x0,0x14),_0x5593(0x90))),console[_0x5593(0x20)](_0x5593(0x91),_0x485d83);let _0x54136f=await AsyncStorage['getItem'](_0x2cc8f8['fJeRF'])||await AsyncStorage[_0x5593(0x92)](_0x2cc8f8[_0x5593(0x93)])||await AsyncStorage[_0x5593(0x92)](_0x2cc8f8[_0x5593(0x94)]);if(!_0x54136f){if(_0x2cc8f8[_0x5593(0x85)](_0x2cc8f8[_0x5593(0x95)],_0x2cc8f8[_0x5593(0x95)]))return _0x29b15a[_0x5593(0x51)](_0x5593(0x96),_0x2b15c1),![];else console[_0x5593(0x97)](_0x2cc8f8[_0x5593(0x98)]),_0x54136f=_0x2cc8f8[_0x5593(0x99)];}const _0x3cb667={'session':{'username':_0x381bd6,'platform':_0x2cc8f8[_0x5593(0x9a)],'channelName':(_0x2cc8f8[_0x5593(0x7e)](_0x5f4972=_0x1c1fe2[_0x5593(0x87)],null)||_0x5f4972===void 0x0?void 0x0:_0x5f4972[_0x5593(0x9b)])||_0x2cc8f8[_0x5593(0x9c)],'channelId':null},'googleUser':_0x1c1fe2[_0x5593(0x87)],'accessToken':_0x3824eb[_0x5593(0x75)],'idToken':_0x3824eb[_0x5593(0x84)],'refreshToken':_0x29205f,'serverAuthCode':_0x1c1fe2[_0x5593(0x16)],'userAccountInfo':{'username':_0x381bd6,'email':_0x2cc8f8[_0x5593(0x9d)](_0x5b37c4=_0x1c1fe2[_0x5593(0x87)],null)||_0x5b37c4===void 0x0?void 0x0:_0x5b37c4['email'],'authToken':_0x54136f,'channelName':(_0x2cc8f8[_0x5593(0x7e)](_0x4188e9=_0x1c1fe2['user'],null)||_0x4188e9===void 0x0?void 0x0:_0x4188e9['name'])||_0x5593(0x6d),'channelId':null}};console[_0x5593(0x20)](_0x2cc8f8[_0x5593(0x9e)]);const _0x586f5d=await _0x2cc8f8[_0x5593(0x9f)](fetch,API_CONFIG[_0x5593(0x10)]+_0x5593(0xa0),{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0x2cc8f8[_0x5593(0xa1)],..._0x54136f!==_0x2cc8f8[_0x5593(0x99)]&&{'Authorization':_0x5593(0xa2)+_0x54136f}},'body':JSON[_0x5593(0xa3)](_0x3cb667)}),_0x82cde4=await _0x586f5d[_0x5593(0x11)]();return _0x82cde4[_0x5593(0x12)]?_0x2cc8f8[_0x5593(0xa4)](_0x2cc8f8[_0x5593(0xa5)],_0x2cc8f8['apnIW'])?(console[_0x5593(0x20)]('✅\x20YouTube\x20migration\x20successful'),await trackMigrationAttempt(_0x381bd6,!![]),!![]):(_0x4701df[_0x5593(0x20)](_0x2cc8f8['CyGgq']),![]):(console[_0x5593(0x51)](_0x2cc8f8[_0x5593(0xa6)],_0x82cde4[_0x5593(0x51)]),await _0x2cc8f8[_0x5593(0xa7)](trackMigrationAttempt,_0x381bd6,![],_0x82cde4[_0x5593(0x51)]),![]);}else return _0x18f6da[_0x5593(0x20)](_0x2cc8f8['fjOmL']),_0xb87bd7[_0x5593(0x20)](_0x2cc8f8['cfOnw']),![];}catch(_0x4002a5){return console[_0x5593(0x51)]('❌\x20YouTube\x20migration\x20failed:',_0x4002a5),await _0x2cc8f8[_0x5593(0xa8)](trackMigrationAttempt,_0x381bd6,![],_0x2cc8f8[_0x5593(0x81)](_0x4002a5,Error)?_0x4002a5[_0x5593(0x22)]:_0x2cc8f8['PokyU']),![];}},trackMigrationAttempt=async(_0x568177,_0x5499e7,_0x10b625)=>{const _0x2215a2={'aejzG':_0x5593(0xa9),'PIzJo':_0x5593(0x33),'GzQaM':function(_0x1f78a8,_0x1dc680){return _0x1f78a8!==_0x1dc680;},'eZMDH':_0x5593(0xaa),'kXFna':_0x5593(0xab),'tKIKN':function(_0x1bb3c3,_0x1c2326){return _0x1bb3c3||_0x1c2326;},'ggNqg':'ohHPs','rOqsC':_0x5593(0x2d)};try{if(_0x2215a2[_0x5593(0xac)](_0x2215a2[_0x5593(0xad)],_0x2215a2[_0x5593(0xae)]))await fetch(API_CONFIG[_0x5593(0x10)]+'/youtube/migration-status',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x5593(0xa3)]({'username':_0x568177,'success':_0x5499e7,'error':_0x2215a2['tKIKN'](_0x10b625,null),'timestamp':new Date()[_0x5593(0xaf)]()})});else return _0x2a09ce['error'](_0x2215a2['aejzG'],_0x79fcee),![];}catch(_0x5b3d6c){if(_0x2215a2[_0x5593(0xac)](_0x5593(0xb0),_0x2215a2['ggNqg']))console[_0x5593(0x51)](_0x2215a2[_0x5593(0xb1)],_0x5b3d6c);else return _0x324e9f['log'](_0x5593(0xb2)),{'isReady':![],'mode':_0x2215a2['PIzJo'],'needsMigration':![],'trainingReady':![],'details':_0x4fbc07};}};function _0x104c(){const _0x1627a1=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','openid','profile','configure','https://www.googleapis.com/auth/youtube.readonly','EbtYr','FkSEt','email','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','PqHTC','pJZAQ','temporary\x20access\x20token\x20mode','🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','jkOIM','dfkFR','JUOqo','BASE_URL','json','success','validation','cLNyo','KSAhx','serverAuthCode','Server\x20auth\x20code\x20from\x20sign-in','Lphqe','kXRsM','isTemporaryMode','temporaryMode','enabled','includes','COyjJ','needsReconnection','log','rCqBn','message','mtaHc','JnJLh','AivEN','nKLEC','eUBiA','YyKkv','BYHGf','ZTCPz','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','tnIve','koomj','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','temporary','none','❌\x20No\x20YouTube\x20connection\x20found','aiZie','❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','vbasA','VCmse','XSjIZ','/youtube/validate-connection/','YsoQE','GjbdI','dvxYo','ukZby','hasRefreshToken','rxToN','cQspn','AtHPD','TzUJV','rRufF','bHAFJ','OOlQw','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','OEuhb','dofUx','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','full','EeqTD','limited','RiCyp','GBkLN','AiJGy','error','XxisL','GvLYI','sUept','krOTG','lOytZ','ℹ️\x20User\x20declined\x20YouTube\x20migration','Skip\x20for\x20Now','Upgrade\x20Now','alert','YouTube\x20Connection\x20Upgrade','iURgj','pSSRC','ycJbp','pIbeQ','KjPWl','🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','YPlCf','MISSING!','\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','✅\x20Got\x20refresh\x20token\x20after\x20consent:','onairos_jwt_token','enoch_token','CCSNz','migration_token_placeholder','YouTube\x20Channel','your-api-key','ELbNt','YOjQU','SnaLN','zIRhG','signOut','getTokens','accessToken','clearCachedAccessToken','WtFNV','ℹ️\x20No\x20token\x20cache\x20to\x20clear','hasPlayServices','nvKOs','signIn','getCurrentUser','None','vBOCt','mcSoH','UdNFA','jBOsB','RGJfF','🔍\x20Token\x20Analysis:','idToken','piTry','rDBjy','user','Rofyf','split','gNxvd','CpDIg','cFxHn','ciIlH','KgcyF','kONra','...','🔑\x20Refresh\x20token\x20source:','getItem','stufk','sdnwd','xeuxw','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','warn','nebTd','oNLFA','hmEIy','name','bqxjk','yxSwN','VVtZc','IztHV','/youtube/native-auth','ArCXg','Bearer\x20','stringify','oGJLe','YGPxw','pJrnu','ENaTz','LkNTW','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','aZSpZ','Kmndx','GzQaM','eZMDH','kXFna','toISOString','jfGQG','rOqsC','❓\x20YouTube\x20connection\x20status\x20unclear','Upgrade\x20Failed\x20❌','default','🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','zDFZI','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','Mdlpm','iGTSd','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','kMByI','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','dlTwL','Qhirz','IDwZN','hasAccessToken','zByiu','lqopi','lAAwX','connectedAt','ZsBRo','EIyfs','wFosY','jaKZs','fmRRj','EWgIw','YmxuB','oLuDC','WRVGk','aellA','uYJPX','FqFPy','ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found','rruzn','Current\x20user\x20server\x20auth\x20code','ziXYD','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','oHfUS','YouTube\x20Upgraded!\x20✅','Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','Great!','YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','CecnH','JmCIG','SCUmw','gkTsJ','LItrL','aZJJi','WTZzx','hNPVq','XVzRl','aQaYI','hbWez','chSMQ','UjadM','KomEv','AyjfN','sJmWs','🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:','GWKTd'];_0x104c=function(){return _0x1627a1;};return _0x104c();}export const shouldShowYouTubeMigrationWarning=async _0x47fc4e=>{const _0x223544={'wFosY':'❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','oLuDC':_0x5593(0xb3),'WRVGk':'YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','aellA':_0x5593(0xb4),'FqFPy':_0x5593(0x2c),'fZmjk':_0x5593(0xb5),'rruzn':_0x5593(0xb6),'dlTwL':function(_0x405796,_0x3f94a5){return _0x405796===_0x3f94a5;},'kMByI':'zVZQB','RpsSZ':function(_0x506dee,_0x90e246){return _0x506dee(_0x90e246);},'Qhirz':_0x5593(0xb7),'IDwZN':function(_0x1ed131,_0x3cab93){return _0x1ed131===_0x3cab93;},'zByiu':function(_0x2a1e76,_0x3125b8){return _0x2a1e76===_0x3125b8;},'lqopi':function(_0x4bcc52,_0x1a7d14){return _0x4bcc52===_0x1a7d14;},'lAAwX':_0x5593(0xb8),'ZsBRo':_0x5593(0xb9),'EIyfs':_0x5593(0xba),'jaKZs':_0x5593(0xbb),'JqfaI':function(_0x49202b,_0x53cd98){return _0x49202b&&_0x53cd98;},'fmRRj':function(_0x90ba9a,_0x25cb8e){return _0x90ba9a!==_0x25cb8e;},'EWgIw':'YmxuB','uYJPX':_0x5593(0xbc)};try{if(_0x223544['dlTwL']('zVZQB',_0x223544[_0x5593(0xbd)])){console[_0x5593(0x20)](_0x5593(0xbe),_0x47fc4e);const _0xa0a18a=await _0x223544['RpsSZ'](fetch,API_CONFIG[_0x5593(0x10)]+_0x5593(0x3a)+_0x47fc4e),_0x47fd93=await _0xa0a18a['json']();if(_0x47fd93[_0x5593(0x12)]&&_0x47fd93[_0x5593(0x13)]){if(_0x223544[_0x5593(0xbf)](_0x223544[_0x5593(0xc0)],'zDFZI')){var _0x30bfe7,_0x327558;const _0xb93a7d=_0x223544[_0x5593(0xbf)](_0x223544[_0x5593(0xbf)](_0x30bfe7=_0x47fd93['validation'],null)||_0x223544[_0x5593(0xbf)](_0x30bfe7,void 0x0)?void 0x0:_0x30bfe7[_0x5593(0x1a)],!![])||_0x223544[_0x5593(0xc1)]((_0x327558=_0x47fd93[_0x5593(0x1b)])===null||_0x223544[_0x5593(0xbf)](_0x327558,void 0x0)?void 0x0:_0x327558['enabled'],!![])||_0x223544[_0x5593(0xc1)](_0x47fd93[_0x5593(0x1a)],!![]),_0x1247e6=_0x47fd93[_0x5593(0x13)][_0x5593(0xc2)]===!![],_0xb1f573=_0x223544[_0x5593(0xc3)](_0x47fd93[_0x5593(0x13)][_0x5593(0x3f)],!![]),_0x53b393=_0x223544[_0x5593(0xc4)](_0x47fd93[_0x5593(0x13)]['needsReconnection'],!![]);console[_0x5593(0x20)](_0x223544[_0x5593(0xc5)],{'username':_0x47fc4e,'hasAccessToken':_0x1247e6,'hasRefreshToken':_0xb1f573,'needsReconnection':_0x53b393,'isTemporaryMode':_0xb93a7d,'connectedAt':_0x47fd93['validation'][_0x5593(0xc6)]});if(_0xb93a7d)return _0x223544[_0x5593(0xc1)](_0x223544[_0x5593(0xc7)],_0x223544[_0x5593(0xc8)])?(_0x464c8e[_0x5593(0x51)](_0x223544[_0x5593(0xc9)],_0x3481b7),![]):(console[_0x5593(0x20)](_0x223544[_0x5593(0xca)]),![]);else return _0x223544['JqfaI'](_0x1247e6,!_0xb1f573)&&_0x53b393?(console['log']('⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update'),!![]):_0x223544[_0x5593(0xcb)](_0x223544[_0x5593(0xcc)],_0x5593(0xcd))?(Alert[_0x5593(0x5a)](_0x223544[_0x5593(0xce)],_0x223544[_0x5593(0xcf)],[{'text':'OK','style':_0x223544[_0x5593(0xd0)]}]),![]):(console['log'](_0x223544[_0x5593(0xd1)]),![]);}else return _0x421ef0[_0x5593(0x20)](_0x223544[_0x5593(0xd2)]),![];}return console[_0x5593(0x20)](_0x5593(0xd3)),![];}else return _0x573f18[_0x5593(0x20)](_0x223544['fZmjk']),_0x563749['log'](_0x223544[_0x5593(0xd4)]),!![];}catch(_0x3b4047){return console['error'](_0x223544[_0x5593(0xc9)],_0x3b4047),![];}};export const checkAndFixYouTubeConnection=async _0xa3a69c=>{const _0x56546b={'JmCIG':_0x5593(0xd5),'KomEv':_0x5593(0x78),'CecnH':_0x5593(0xd6),'SCUmw':_0x5593(0xd7),'hNPVq':function(_0x1a0ac9,_0x2233e6){return _0x1a0ac9(_0x2233e6);},'wxmwf':_0x5593(0xb5),'gkTsJ':_0x5593(0xb6),'LItrL':'🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','aZJJi':function(_0x4dc301){return _0x4dc301();},'WTZzx':_0x5593(0x57),'XVzRl':function(_0x48d264,_0x16c459){return _0x48d264===_0x16c459;},'aQaYI':_0x5593(0xd8),'hbWez':_0x5593(0xd9),'UVtmX':_0x5593(0xda),'chSMQ':_0x5593(0xdb),'UjadM':_0x5593(0xb4),'AyjfN':_0x5593(0xdc),'sJmWs':_0x5593(0xa9)};try{if(_0x56546b[_0x5593(0xdd)]!==_0x56546b[_0x5593(0xdd)])_0x2afdfc=_0x3e7dfa[_0x5593(0x16)],_0x2b3f9d=_0x56546b[_0x5593(0xde)];else{console[_0x5593(0x20)](_0x56546b[_0x5593(0xdf)],_0xa3a69c);const _0x4e625d=await _0x56546b['hNPVq'](shouldShowYouTubeMigrationWarning,_0xa3a69c);if(!_0x4e625d)return console['log'](_0x56546b['wxmwf']),console[_0x5593(0x20)](_0x56546b[_0x5593(0xe0)]),!![];const _0x23bdfd=await _0x56546b['hNPVq'](checkYouTubeMigrationNeeded,_0xa3a69c);if(!_0x23bdfd)return console[_0x5593(0x20)]('✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed'),!![];console[_0x5593(0x20)](_0x56546b[_0x5593(0xe1)]);const _0x5849d1=await _0x56546b[_0x5593(0xe2)](showYouTubeMigrationPrompt);if(!_0x5849d1)return console['log'](_0x56546b[_0x5593(0xe3)]),![];const _0x26466c=await _0x56546b[_0x5593(0xe4)](forceYouTubeReconnection,_0xa3a69c);if(_0x26466c){if(_0x56546b[_0x5593(0xe5)](_0x56546b[_0x5593(0xe6)],_0x56546b['aQaYI']))return Alert[_0x5593(0x5a)](_0x56546b[_0x5593(0xe7)],_0x56546b['UVtmX'],[{'text':_0x56546b[_0x5593(0xe8)],'style':_0x56546b[_0x5593(0xe9)]}]),!![];else _0x484802[_0x5593(0x20)](_0x56546b[_0x5593(0xea)]);}else return Alert[_0x5593(0x5a)](_0x5593(0xb3),_0x56546b[_0x5593(0xeb)],[{'text':'OK','style':_0x56546b[_0x5593(0xe9)]}]),![];}}catch(_0xe59428){return console[_0x5593(0x51)](_0x56546b[_0x5593(0xec)],_0xe59428),![];}};function _0x5593(_0x104cb,_0x5593f8){_0x104cb=_0x104cb-0x0;const _0x5ef682=_0x104c();let _0x1ed169=_0x5ef682[_0x104cb];return _0x1ed169;}export const reconnectYouTube=async _0xa78935=>{const _0x2d93df={'GWKTd':function(_0x52c9a5,_0x57ac1e){return _0x52c9a5(_0x57ac1e);}};return console[_0x5593(0x20)](_0x5593(0xed),_0xa78935),await _0x2d93df[_0x5593(0xee)](forceYouTubeReconnection,_0xa78935);};
|
|
1
|
+
import{GoogleSignin}from'@react-native-google-signin/google-signin';import{Alert}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const WEB_CLIENT_ID=_0x2eb0(0x0),IOS_CLIENT_ID='1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com',configureGoogleSignInForRefreshTokens=()=>{const _0x5d4106={'gmNim':_0x2eb0(0x1),'kLDmN':_0x2eb0(0x2),'GprBX':_0x2eb0(0x3)};GoogleSignin[_0x2eb0(0x4)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x5d4106[_0x2eb0(0x5)],_0x5d4106[_0x2eb0(0x6)],_0x2eb0(0x7),_0x5d4106[_0x2eb0(0x8)]],'hostedDomain':'','accountName':''});};function _0x2eb0(_0x357c57,_0x2eb047){_0x357c57=_0x357c57-0x0;const _0x1bb79f=_0x357c();let _0xdcdcd8=_0x1bb79f[_0x357c57];return _0xdcdcd8;}function _0x357c(){const _0x4d59d7=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','https://www.googleapis.com/auth/youtube.readonly','openid','email','configure','gmNim','kLDmN','profile','GprBX','temporary\x20access\x20token\x20mode','🔍\x20YouTube\x20migration\x20check:','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','Current\x20user\x20server\x20auth\x20code','ccpmD','tJMXC','FDTBR','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','nUoVj','AVSry','nDCpS','SBIMz','validation','fVPEy','isTemporaryMode','BrzrA','temporaryMode','enabled','rmhcm','message','dFnkL','needsReconnection','hasRefreshToken','log','dWEzL','FTsIn','qIMRt','iJBCO','BASE_URL','/youtube/validate-connection/','json','success','WIfzX','SbVOR','includes','jLRWn','UOeEd','bhdnx','qxOOa','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','error','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','YouTube\x20Connection\x20Upgrade','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','default','pGGaf','RZEBe','HBgMe','BsMbx','full','vdWmw','dSWHh','limited','qjoDP','❓\x20YouTube\x20connection\x20status\x20unclear','none','❌\x20No\x20YouTube\x20connection\x20found','QcDzC','❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','aSBqB','gWTKa','uItFk','sJrgs','zVHBd','tiYAm','xYeXV','WlDio','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','temporary','oHRGg','uUPsl','VsaWj','wkvTp','lkDab','bFSEx','UBHRD','vEbzi','MzlUY','FGoSw','BshXd','BLgoS','SInuL','alert','fBIRt','ncjrQ','cancel','Upgrade\x20Now','lsMca','FkgTW','daflJ','KgrWY','UsFJr','cbkyK','qakOS','LuGfe','❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','✅\x20Token\x20cache\x20cleared','🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','None','Ccavn','Available','lvVgl','\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','💡\x20This\x20usually\x20means:','✅\x20Got\x20refresh\x20token\x20after\x20consent:','...','🔑\x20Refresh\x20token\x20source:','onairos_jwt_token','auth_token','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','migration_token_placeholder','YouTube\x20Channel','📤\x20Sending\x20migration\x20payload\x20to\x20backend...','your-api-key','✅\x20YouTube\x20migration\x20successful','EqhVT','Unknown\x20error','🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','signOut','OfZyc','accessToken','signIn','getTokens','ggwcx','serverAuthCode','yfvJt','NKCPy','zgjts','YUkFh','lKFYl','puBQT','XhGGf','idToken','aZdsW','KCHId','FMhuH','cWvhb','qlchX','xzIAd','GUgzg','gKCvV','split','WEcny','aWNTT','lhBXK','DsLqe','QKoHy','substring','Cdbpt','getItem','KdGfL','enoch_token','ZOOne','warn','JuFKU','nVxOz','Mykne','user','name','BpaGl','QLiVa','leUhD','/youtube/native-auth','HbUXe','Bearer\x20','qWqzq','DdXjw','zzOEQ','❌\x20YouTube\x20migration\x20failed:','nchrU','KItBM','nUEsP','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','ufnfD','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','ASzHS','jQIce','/youtube/migration-status','stringify','snIAm','toISOString','mhKWK','Server\x20auth\x20code\x20from\x20sign-in','ℹ️\x20User\x20declined\x20YouTube\x20migration','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','tkRLJ','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','bSSfH','zcbOa','ecnCH','ezUCg','oZwyR','IXOYq','KqcLO','eITeD','HVxug','jqpwv','connectedAt','BbVXl','YouTube\x20Upgraded!\x20✅','PLETb','EnOqJ','lgzLA','wpWKp','dchXk','fcmYd','phjza','KbEcE','fkYjO','hasAccessToken','MnYeB','Upgrade\x20Failed\x20❌','YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','1|4|3|5|0|2','qSket','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','Ywfqm','bjyhH','zFtOD','WyPNs','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','OLQcg','ILfxQ','AlRQO','bDKbh','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','dtkbz','qhEfz','NjSYi','kUxts','jQxuc','Ddfow','YXpTu','dLgrY','sfJlT','LAuRb','AQbTT','eyGOE','XCPUp','wTgqy','wwgCY','ycJYd','gDvDa','CXniA','GtbXZ','ZxXpG','fLyzM','KHJJx'];_0x357c=function(){return _0x4d59d7;};return _0x357c();}export const checkYouTubeMigrationNeeded=async _0x2ed48c=>{const _0x1b73a3={'SBIMz':function(_0x2b1e22,_0x41f2d1){return _0x2b1e22===_0x41f2d1;},'VBaNL':function(_0xb9b362,_0x5969ee){return _0xb9b362===_0x5969ee;},'fVPEy':function(_0x2ade12,_0x961281){return _0x2ade12===_0x961281;},'WxVys':function(_0x1b5020,_0x122595){return _0x1b5020===_0x122595;},'BrzrA':function(_0x228dfc,_0x397727){return _0x228dfc===_0x397727;},'rmhcm':function(_0xf97d5b,_0x419af8){return _0xf97d5b===_0x419af8;},'dFnkL':_0x2eb0(0x9),'dWEzL':_0x2eb0(0xa),'FTsIn':function(_0x419f08,_0x463b0c){return _0x419f08===_0x463b0c;},'qIMRt':_0x2eb0(0xb),'gABoY':'⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','iJBCO':_0x2eb0(0xc),'bhdnx':_0x2eb0(0xd),'nUoVj':function(_0x2f2c5a,_0x1fe878){return _0x2f2c5a===_0x1fe878;},'AVSry':_0x2eb0(0xe),'nDCpS':'ZIDap','WIfzX':function(_0xf7161c,_0x9812){return _0xf7161c===_0x9812;},'llkEY':function(_0x49f369,_0x3afb8a){return _0x49f369===_0x3afb8a;},'SbVOR':function(_0x53e086,_0x4e1b54){return _0x53e086===_0x4e1b54;},'jLRWn':function(_0x12aa63,_0x3cc0f7){return _0x12aa63!==_0x3cc0f7;},'UOeEd':_0x2eb0(0xf),'HaIMu':_0x2eb0(0x10),'qxOOa':_0x2eb0(0x11)};try{if(_0x1b73a3[_0x2eb0(0x12)](_0x1b73a3[_0x2eb0(0x13)],_0x1b73a3[_0x2eb0(0x14)])){var _0x2fb77a,_0x3a4cc1,_0x430110;const _0x48f1f5=_0x1b73a3[_0x2eb0(0x15)](_0x1b73a3['VBaNL'](_0x2fb77a=_0x1195c6[_0x2eb0(0x16)],null)||_0x1b73a3[_0x2eb0(0x17)](_0x2fb77a,void 0x0)?void 0x0:_0x2fb77a[_0x2eb0(0x18)],!![])||_0x1b73a3['WxVys'](_0x1b73a3[_0x2eb0(0x19)](_0x3a4cc1=_0x25bf9f[_0x2eb0(0x1a)],null)||_0x1b73a3['SBIMz'](_0x3a4cc1,void 0x0)?void 0x0:_0x3a4cc1[_0x2eb0(0x1b)],!![])||_0x1b73a3[_0x2eb0(0x1c)](_0x4c0580[_0x2eb0(0x18)],!![])||_0x12e08b['message']&&_0x3b196a[_0x2eb0(0x1d)]['includes'](_0x1b73a3[_0x2eb0(0x1e)]),_0x46b20c=_0x6efc58[_0x2eb0(0x16)][_0x2eb0(0x1f)],_0x2060b8=_0x1eac11['validation'][_0x2eb0(0x20)];_0x8a05ff[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x22)],{'username':_0xd3ed93,'needsReconnection':_0x46b20c,'hasRefreshToken':_0x2060b8,'isTemporaryMode':_0x48f1f5,'temporaryModeEnabled':_0x1b73a3[_0x2eb0(0x23)](_0x430110=_0x100172[_0x2eb0(0x1a)],null)||_0x1b73a3['BrzrA'](_0x430110,void 0x0)?void 0x0:_0x430110[_0x2eb0(0x1b)],'message':_0x464cdb[_0x2eb0(0x1d)]});if(_0x48f1f5)return _0x4bee70[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x24)]),_0x2127f0[_0x2eb0(0x21)](_0x1b73a3['gABoY']),![];else return _0x46b20c?(_0x5a357f[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x25)]),!![]):(_0x33209d[_0x2eb0(0x21)](_0x2eb0(0x11)),![]);}else{const _0x120ab7=await fetch(API_CONFIG[_0x2eb0(0x26)]+_0x2eb0(0x27)+_0x2ed48c),_0x33096a=await _0x120ab7[_0x2eb0(0x28)]();if(_0x33096a[_0x2eb0(0x29)]&&_0x33096a['validation']){var _0xd2ff69,_0x70314,_0x51c26f;const _0x35560a=_0x1b73a3[_0x2eb0(0x2a)](_0x1b73a3['llkEY'](_0xd2ff69=_0x33096a['validation'],null)||_0xd2ff69===void 0x0?void 0x0:_0xd2ff69[_0x2eb0(0x18)],!![])||(_0x1b73a3[_0x2eb0(0x2b)](_0x70314=_0x33096a['temporaryMode'],null)||_0x70314===void 0x0?void 0x0:_0x70314['enabled'])===!![]||_0x33096a[_0x2eb0(0x18)]===!![]||_0x33096a[_0x2eb0(0x1d)]&&_0x33096a[_0x2eb0(0x1d)][_0x2eb0(0x2c)](_0x1b73a3['dFnkL']),_0x11babb=_0x33096a[_0x2eb0(0x16)][_0x2eb0(0x1f)],_0x28fc68=_0x33096a[_0x2eb0(0x16)][_0x2eb0(0x20)];console['log'](_0x2eb0(0xa),{'username':_0x2ed48c,'needsReconnection':_0x11babb,'hasRefreshToken':_0x28fc68,'isTemporaryMode':_0x35560a,'temporaryModeEnabled':_0x1b73a3['nUoVj'](_0x51c26f=_0x33096a[_0x2eb0(0x1a)],null)||_0x1b73a3['rmhcm'](_0x51c26f,void 0x0)?void 0x0:_0x51c26f[_0x2eb0(0x1b)],'message':_0x33096a['message']});if(_0x35560a)return console[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x24)]),console[_0x2eb0(0x21)](_0x1b73a3['gABoY']),![];else{if(_0x11babb){if(_0x1b73a3[_0x2eb0(0x2d)](_0x1b73a3['UOeEd'],_0x1b73a3[_0x2eb0(0x2e)]))_0x1ccc13=_0x28292a['serverAuthCode'],_0x10a0f7=_0x1b73a3[_0x2eb0(0x2f)];else return console[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x25)]),!![];}else return _0x1b73a3['jLRWn']('pcVgR',_0x1b73a3['HaIMu'])?(console[_0x2eb0(0x21)](_0x1b73a3[_0x2eb0(0x30)]),![]):(_0x5634b9[_0x2eb0(0x21)](_0x2eb0(0x31)),!![]);}}return![];}}catch(_0x2c86ac){return console[_0x2eb0(0x32)](_0x2eb0(0x33),_0x2c86ac),![];}};export const getYouTubeConnectionStatus=async _0x88fa7f=>{const _0x459fe6={'XZRZG':_0x2eb0(0xb),'wkvTp':_0x2eb0(0x34),'MzlUY':_0x2eb0(0x33),'kbnwy':_0x2eb0(0x35),'fBIRt':_0x2eb0(0x36),'ncjrQ':_0x2eb0(0x37),'vbdBe':_0x2eb0(0x38),'lsMca':_0x2eb0(0x39),'aSBqB':function(_0x2bf8b1,_0xfd1ccf){return _0x2bf8b1(_0xfd1ccf);},'gWTKa':'📋\x20Complete\x20YouTube\x20status\x20response:','xYeXV':function(_0x1af9bc,_0x23f1f4){return _0x1af9bc!==_0x23f1f4;},'IHUue':_0x2eb0(0x3a),'uItFk':'gGcBX','sJrgs':function(_0x1c5d13,_0x126848){return _0x1c5d13===_0x126848;},'zVHBd':function(_0x4b3645,_0xaf3de2){return _0x4b3645===_0xaf3de2;},'tiYAm':function(_0x5e748c,_0x4e9d80){return _0x5e748c===_0x4e9d80;},'WlDio':_0x2eb0(0x3b),'oHRGg':function(_0x1ce23f,_0x5c76e7){return _0x1ce23f===_0x5c76e7;},'uUPsl':_0x2eb0(0x3c),'VsaWj':_0x2eb0(0x3d),'lkDab':'✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','bFSEx':_0x2eb0(0x3e),'UBHRD':_0x2eb0(0x3f),'vEbzi':_0x2eb0(0x40),'QmEnZ':_0x2eb0(0x41),'FGoSw':function(_0x1a10d9,_0x1a0141){return _0x1a10d9===_0x1a0141;},'BshXd':_0x2eb0(0x42),'BLgoS':_0x2eb0(0x43),'SInuL':_0x2eb0(0x44),'FkgTW':_0x2eb0(0x45),'daflJ':_0x2eb0(0x46),'ENAeX':_0x2eb0(0x47),'UsFJr':function(_0x2dc528,_0x3ee419){return _0x2dc528(_0x3ee419);}};try{const _0x4f1c9e=await _0x459fe6[_0x2eb0(0x48)](fetch,API_CONFIG[_0x2eb0(0x26)]+_0x2eb0(0x27)+_0x88fa7f),_0x70281f=await _0x4f1c9e[_0x2eb0(0x28)]();console['log'](_0x459fe6[_0x2eb0(0x49)],_0x70281f);if(_0x70281f[_0x2eb0(0x29)]&&_0x70281f[_0x2eb0(0x16)]){if(_0x459fe6['xYeXV'](_0x459fe6['IHUue'],_0x459fe6[_0x2eb0(0x4a)])){var _0x5d77d7,_0x2c111a;const _0xd9be92=_0x459fe6[_0x2eb0(0x4b)](_0x459fe6[_0x2eb0(0x4b)](_0x5d77d7=_0x70281f[_0x2eb0(0x16)],null)||_0x5d77d7===void 0x0?void 0x0:_0x5d77d7[_0x2eb0(0x18)],!![])||_0x459fe6[_0x2eb0(0x4b)](_0x459fe6[_0x2eb0(0x4b)](_0x2c111a=_0x70281f[_0x2eb0(0x1a)],null)||_0x459fe6[_0x2eb0(0x4c)](_0x2c111a,void 0x0)?void 0x0:_0x2c111a[_0x2eb0(0x1b)],!![])||_0x459fe6[_0x2eb0(0x4d)](_0x70281f[_0x2eb0(0x18)],!![])||_0x70281f['message']&&_0x70281f[_0x2eb0(0x1d)][_0x2eb0(0x2c)](_0x2eb0(0x9)),_0x2c458f=_0x459fe6[_0x2eb0(0x4d)](_0x70281f['validation'][_0x2eb0(0x20)],!![]),_0xbea3ff=_0x459fe6[_0x2eb0(0x4c)](_0x70281f[_0x2eb0(0x16)][_0x2eb0(0x1f)],!![]);if(_0xd9be92)return _0x459fe6[_0x2eb0(0x4e)](_0x459fe6[_0x2eb0(0x4f)],_0x459fe6[_0x2eb0(0x4f)])?(_0x3c4cbc[_0x2eb0(0x21)](_0x2eb0(0x50)),!![]):(console[_0x2eb0(0x21)]('🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode'),console[_0x2eb0(0x21)](_0x2eb0(0x51)),{'isReady':!![],'mode':_0x2eb0(0x52),'needsMigration':![],'trainingReady':!![],'details':_0x70281f});else{if(_0x2c458f)return _0x459fe6[_0x2eb0(0x53)](_0x459fe6[_0x2eb0(0x54)],_0x459fe6[_0x2eb0(0x55)])?(_0x22b87d[_0x2eb0(0x21)](_0x459fe6['XZRZG']),_0x2c8f9b[_0x2eb0(0x21)](_0x459fe6[_0x2eb0(0x56)]),![]):(console[_0x2eb0(0x21)](_0x459fe6[_0x2eb0(0x57)]),{'isReady':!![],'mode':_0x459fe6[_0x2eb0(0x58)],'needsMigration':![],'trainingReady':!![],'details':_0x70281f});else return _0xbea3ff?_0x459fe6[_0x2eb0(0x59)]===_0x459fe6[_0x2eb0(0x5a)]?(_0x2aae7c[_0x2eb0(0x32)](_0x459fe6[_0x2eb0(0x5b)],_0x3c3456),![]):(console['log']('⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration'),{'isReady':![],'mode':_0x459fe6['QmEnZ'],'needsMigration':!![],'trainingReady':![],'details':_0x70281f}):_0x459fe6[_0x2eb0(0x5c)](_0x459fe6[_0x2eb0(0x5d)],_0x2eb0(0x42))?(console['log'](_0x459fe6[_0x2eb0(0x5e)]),{'isReady':![],'mode':_0x459fe6[_0x2eb0(0x5f)],'needsMigration':![],'trainingReady':![],'details':_0x70281f}):(_0x2b7eda[_0x2eb0(0x21)](_0x459fe6['kbnwy']),{'isReady':![],'mode':'limited','needsMigration':!![],'trainingReady':![],'details':_0x21207f});}}else return new _0x37ddb9(_0x5b8e63=>{Alert[_0x2eb0(0x60)](_0x459fe6[_0x2eb0(0x61)],_0x459fe6[_0x2eb0(0x62)],[{'text':_0x459fe6['vbdBe'],'style':_0x2eb0(0x63),'onPress':()=>_0x5b8e63(![])},{'text':_0x2eb0(0x64),'style':_0x459fe6[_0x2eb0(0x65)],'onPress':()=>_0x5b8e63(!![])}]);});}return console[_0x2eb0(0x21)](_0x459fe6[_0x2eb0(0x66)]),{'isReady':![],'mode':_0x459fe6[_0x2eb0(0x5f)],'needsMigration':![],'trainingReady':![],'details':_0x70281f};}catch(_0x34cea5){if(_0x459fe6[_0x2eb0(0x4c)](_0x459fe6[_0x2eb0(0x67)],_0x2eb0(0x68)))_0x22ef9a['warn']('⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration'),_0x506e7c='migration_token_placeholder';else return console[_0x2eb0(0x32)](_0x459fe6['ENAeX'],_0x34cea5),{'isReady':![],'mode':_0x459fe6[_0x2eb0(0x5f)],'needsMigration':![],'trainingReady':![],'details':{'error':_0x34cea5 instanceof Error?_0x34cea5[_0x2eb0(0x1d)]:_0x459fe6[_0x2eb0(0x69)](String,_0x34cea5)}};}};const showYouTubeMigrationPrompt=async()=>{const _0x1ac551={'cbkyK':_0x2eb0(0x36),'qakOS':_0x2eb0(0x38),'LuGfe':_0x2eb0(0x39)};return new Promise(_0x226b1a=>{Alert[_0x2eb0(0x60)](_0x1ac551[_0x2eb0(0x6a)],'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?',[{'text':_0x1ac551[_0x2eb0(0x6b)],'style':_0x2eb0(0x63),'onPress':()=>_0x226b1a(![])},{'text':_0x2eb0(0x64),'style':_0x1ac551[_0x2eb0(0x6c)],'onPress':()=>_0x226b1a(!![])}]);});},forceYouTubeReconnection=async _0xb22913=>{const _0x2b7406={'YUkFh':'❓\x20YouTube\x20connection\x20status\x20unclear','lKFYl':'none','GUgzg':_0x2eb0(0x6d),'cEWmJ':_0x2eb0(0x3e),'OfZyc':'✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','YCsmD':_0x2eb0(0x6e),'UwMLm':'ℹ️\x20No\x20token\x20cache\x20to\x20clear','hmXnp':_0x2eb0(0x6f),'ggwcx':_0x2eb0(0x70),'yfvJt':function(_0x274d8b,_0x31a52f){return _0x274d8b!==_0x31a52f;},'NKCPy':'UCewF','njuoT':_0x2eb0(0x71),'zgjts':'Server\x20auth\x20code\x20from\x20sign-in','puBQT':_0x2eb0(0xd),'XhGGf':'🔍\x20Token\x20Analysis:','aZdsW':_0x2eb0(0x72),'KCHId':function(_0x4947e4,_0x39b623){return _0x4947e4===_0x39b623;},'FMhuH':function(_0x23466e,_0x3ecf54){return _0x23466e===_0x3ecf54;},'cWvhb':function(_0x140a8a,_0x3fc483){return _0x140a8a===_0x3fc483;},'qlchX':'NLrOg','xzIAd':_0x2eb0(0x73),'gKCvV':'1|5|3|0|4|2','WEcny':_0x2eb0(0x74),'aWNTT':'❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','JNsfK':_0x2eb0(0x75),'cBITw':'\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','lhBXK':_0x2eb0(0x76),'DsLqe':_0x2eb0(0x77),'QKoHy':function(_0x5c90eb,_0x4cb292){return _0x5c90eb+_0x4cb292;},'kzpSc':_0x2eb0(0x78),'Cdbpt':_0x2eb0(0x79),'KdGfL':_0x2eb0(0x7a),'ZOOne':_0x2eb0(0x7b),'JuFKU':_0x2eb0(0x7c),'nVxOz':_0x2eb0(0x7d),'cgwiu':'youtube','Mykne':function(_0x334add,_0x2c2ce3){return _0x334add===_0x2c2ce3;},'BpaGl':_0x2eb0(0x7e),'QLiVa':function(_0x1c8b9f,_0x1408af){return _0x1c8b9f===_0x1408af;},'XxXTY':function(_0x276f7b,_0x16a49a){return _0x276f7b===_0x16a49a;},'leUhD':_0x2eb0(0x7f),'HbUXe':_0x2eb0(0x80),'qWqzq':_0x2eb0(0x81),'DdXjw':'❌\x20Backend\x20rejected\x20YouTube\x20migration:','nchrU':function(_0x418ccb,_0xf02c30,_0x4dd0bd,_0x20b94b){return _0x418ccb(_0xf02c30,_0x4dd0bd,_0x20b94b);},'zzOEQ':_0x2eb0(0x82),'tbTXv':'biLKO','KItBM':function(_0x57bcd7,_0x30ffbe){return _0x57bcd7 instanceof _0x30ffbe;},'nUEsP':_0x2eb0(0x83)};try{var _0x49d22a,_0x32aa2c,_0x4f39d6,_0x2fd596;console['log'](_0x2eb0(0x84),_0xb22913),configureGoogleSignInForRefreshTokens(),await GoogleSignin[_0x2eb0(0x85)](),console[_0x2eb0(0x21)](_0x2b7406[_0x2eb0(0x86)]);try{const _0x2590c9=await GoogleSignin['getTokens']();_0x2590c9['accessToken']&&(await GoogleSignin['clearCachedAccessToken'](_0x2590c9[_0x2eb0(0x87)]),console[_0x2eb0(0x21)](_0x2b7406['YCsmD']));}catch(_0x5246e0){console[_0x2eb0(0x21)](_0x2b7406['UwMLm']);}await GoogleSignin['hasPlayServices'](),console[_0x2eb0(0x21)](_0x2b7406['hmXnp']);const _0x542efc=await GoogleSignin[_0x2eb0(0x88)](),_0x129c73=await GoogleSignin[_0x2eb0(0x89)](),_0x2d9356=await GoogleSignin['getCurrentUser']();let _0x4083a7=null,_0x3b5fa6=_0x2b7406[_0x2eb0(0x8a)];if(_0x542efc[_0x2eb0(0x8b)]){if(_0x2b7406[_0x2eb0(0x8c)](_0x2b7406[_0x2eb0(0x8d)],_0x2b7406['njuoT']))_0x4083a7=_0x542efc[_0x2eb0(0x8b)],_0x3b5fa6=_0x2b7406[_0x2eb0(0x8e)];else return _0x51be25['log'](_0x2b7406[_0x2eb0(0x8f)]),{'isReady':![],'mode':_0x2b7406[_0x2eb0(0x90)],'needsMigration':![],'trainingReady':![],'details':_0x5106d5};}else _0x2d9356!==null&&_0x2d9356!==void 0x0&&_0x2d9356[_0x2eb0(0x8b)]&&(_0x4083a7=_0x2d9356[_0x2eb0(0x8b)],_0x3b5fa6=_0x2b7406[_0x2eb0(0x91)]);console[_0x2eb0(0x21)](_0x2b7406[_0x2eb0(0x92)],{'hasAccessToken':!!_0x129c73[_0x2eb0(0x87)],'hasIdToken':!!_0x129c73[_0x2eb0(0x93)],'hasServerAuthCode':!!_0x542efc['serverAuthCode'],'hasCurrentUserAuthCode':!!(_0x2d9356!==null&&_0x2d9356!==void 0x0&&_0x2d9356[_0x2eb0(0x8b)]),'refreshTokenSource':_0x3b5fa6,'finalRefreshToken':_0x4083a7?_0x2b7406[_0x2eb0(0x94)]:'MISSING!','userEmail':_0x2b7406[_0x2eb0(0x95)](_0x49d22a=_0x542efc['user'],null)||_0x2b7406[_0x2eb0(0x96)](_0x49d22a,void 0x0)?void 0x0:_0x49d22a[_0x2eb0(0x3)]});if(!_0x4083a7){if(_0x2b7406[_0x2eb0(0x97)](_0x2b7406[_0x2eb0(0x98)],_0x2b7406[_0x2eb0(0x99)]))return _0x19a00b[_0x2eb0(0x32)](_0x2b7406[_0x2eb0(0x9a)],_0x82e5e7),![];else{const _0x14d630=_0x2b7406[_0x2eb0(0x9b)][_0x2eb0(0x9c)]('|');let _0x3a0107=0x0;while(!![]){switch(_0x14d630[_0x3a0107++]){case'0':console[_0x2eb0(0x32)](_0x2b7406[_0x2eb0(0x9d)]);continue;case'1':console[_0x2eb0(0x32)](_0x2b7406[_0x2eb0(0x9e)]);continue;case'2':return![];case'3':console['error'](_0x2b7406['JNsfK']);continue;case'4':console[_0x2eb0(0x32)](_0x2b7406['cBITw']);continue;case'5':console[_0x2eb0(0x32)](_0x2b7406[_0x2eb0(0x9f)]);continue;}break;}}}console['log'](_0x2b7406[_0x2eb0(0xa0)],_0x2b7406[_0x2eb0(0xa1)](_0x4083a7[_0x2eb0(0xa2)](0x0,0x14),_0x2b7406['kzpSc'])),console[_0x2eb0(0x21)](_0x2b7406[_0x2eb0(0xa3)],_0x3b5fa6);let _0x1e6368=await AsyncStorage[_0x2eb0(0xa4)](_0x2b7406[_0x2eb0(0xa5)])||await AsyncStorage[_0x2eb0(0xa4)](_0x2eb0(0xa6))||await AsyncStorage[_0x2eb0(0xa4)](_0x2b7406[_0x2eb0(0xa7)]);!_0x1e6368&&(console[_0x2eb0(0xa8)](_0x2b7406[_0x2eb0(0xa9)]),_0x1e6368=_0x2b7406[_0x2eb0(0xaa)]);const _0x133501={'session':{'username':_0xb22913,'platform':_0x2b7406['cgwiu'],'channelName':(_0x2b7406[_0x2eb0(0xab)](_0x32aa2c=_0x542efc[_0x2eb0(0xac)],null)||_0x2b7406['FMhuH'](_0x32aa2c,void 0x0)?void 0x0:_0x32aa2c[_0x2eb0(0xad)])||_0x2b7406[_0x2eb0(0xae)],'channelId':null},'googleUser':_0x542efc[_0x2eb0(0xac)],'accessToken':_0x129c73[_0x2eb0(0x87)],'idToken':_0x129c73[_0x2eb0(0x93)],'refreshToken':_0x4083a7,'serverAuthCode':_0x542efc[_0x2eb0(0x8b)],'userAccountInfo':{'username':_0xb22913,'email':_0x2b7406[_0x2eb0(0xaf)](_0x4f39d6=_0x542efc[_0x2eb0(0xac)],null)||_0x2b7406['XxXTY'](_0x4f39d6,void 0x0)?void 0x0:_0x4f39d6['email'],'authToken':_0x1e6368,'channelName':(_0x2b7406['QLiVa'](_0x2fd596=_0x542efc[_0x2eb0(0xac)],null)||_0x2fd596===void 0x0?void 0x0:_0x2fd596[_0x2eb0(0xad)])||_0x2eb0(0x7e),'channelId':null}};console[_0x2eb0(0x21)](_0x2b7406[_0x2eb0(0xb0)]);const _0x1cfd40=await fetch(API_CONFIG[_0x2eb0(0x26)]+_0x2eb0(0xb1),{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0x2b7406[_0x2eb0(0xb2)],..._0x2b7406[_0x2eb0(0x8c)](_0x1e6368,_0x2b7406[_0x2eb0(0xaa)])&&{'Authorization':_0x2eb0(0xb3)+_0x1e6368}},'body':JSON['stringify'](_0x133501)}),_0x4e35cb=await _0x1cfd40[_0x2eb0(0x28)]();return _0x4e35cb[_0x2eb0(0x29)]?(console[_0x2eb0(0x21)](_0x2b7406[_0x2eb0(0xb4)]),await trackMigrationAttempt(_0xb22913,!![]),!![]):(console[_0x2eb0(0x32)](_0x2b7406[_0x2eb0(0xb5)],_0x4e35cb[_0x2eb0(0x32)]),await _0x2b7406['nchrU'](trackMigrationAttempt,_0xb22913,![],_0x4e35cb[_0x2eb0(0x32)]),![]);}catch(_0x306f2b){return _0x2b7406[_0x2eb0(0xb6)]!==_0x2b7406['tbTXv']?(console[_0x2eb0(0x32)](_0x2eb0(0xb7),_0x306f2b),await _0x2b7406[_0x2eb0(0xb8)](trackMigrationAttempt,_0xb22913,![],_0x2b7406[_0x2eb0(0xb9)](_0x306f2b,Error)?_0x306f2b[_0x2eb0(0x1d)]:_0x2b7406[_0x2eb0(0xba)]),![]):(_0x8033fc[_0x2eb0(0x21)](_0x2eb0(0xbb)),{'isReady':!![],'mode':_0x2b7406['cEWmJ'],'needsMigration':![],'trainingReady':!![],'details':_0xc747b1});}},trackMigrationAttempt=async(_0x54b993,_0x14d8d9,_0x3ab8e1)=>{const _0xa73dc0={'zFCtb':'✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','ASzHS':function(_0x4c28da,_0xc4fd98){return _0x4c28da===_0xc4fd98;},'jQIce':_0x2eb0(0xbc),'snIAm':function(_0x28e2e5,_0x2fd611){return _0x28e2e5||_0x2fd611;},'mhKWK':_0x2eb0(0xbd)};try{if(_0xa73dc0[_0x2eb0(0xbe)](_0xa73dc0[_0x2eb0(0xbf)],_0xa73dc0[_0x2eb0(0xbf)]))await fetch(API_CONFIG[_0x2eb0(0x26)]+_0x2eb0(0xc0),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x2eb0(0xc1)]({'username':_0x54b993,'success':_0x14d8d9,'error':_0xa73dc0[_0x2eb0(0xc2)](_0x3ab8e1,null),'timestamp':new Date()[_0x2eb0(0xc3)]()})});else return _0x3ef6b3['log'](_0xa73dc0['zFCtb']),![];}catch(_0x24a681){console[_0x2eb0(0x32)](_0xa73dc0[_0x2eb0(0xc4)],_0x24a681);}};export const shouldShowYouTubeMigrationWarning=async _0xf7d76d=>{const _0x1e84b1={'Ftxdj':'Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','PLETb':'Great!','EnOqJ':_0x2eb0(0x39),'dchXk':_0x2eb0(0xc5),'fkYjO':_0x2eb0(0xc6),'KqcLO':function(_0x190013,_0xe83db5){return _0x190013===_0xe83db5;},'HVxug':function(_0x4fe0f8,_0x1eef5f){return _0x4fe0f8===_0x1eef5f;},'lgzLA':_0x2eb0(0xc7),'fcmYd':_0x2eb0(0x31),'KbEcE':_0x2eb0(0xc8),'ezUCg':_0x2eb0(0xc9),'cKgLb':function(_0x3d1561,_0x494cf3){return _0x3d1561(_0x494cf3);},'EpmvP':function(_0x5a5379,_0x12653b){return _0x5a5379!==_0x12653b;},'oZwyR':_0x2eb0(0xca),'IXOYq':function(_0x37afbb,_0x2cf188){return _0x37afbb===_0x2cf188;},'eITeD':function(_0x4fa4ba,_0x1e3830){return _0x4fa4ba===_0x1e3830;},'zfTot':function(_0x5f2a11,_0x5f260c){return _0x5f2a11===_0x5f260c;},'jqpwv':_0x2eb0(0xcb),'BbVXl':_0x2eb0(0xcc),'wmeJq':_0x2eb0(0xcd),'wpWKp':'KRTgG','phjza':_0x2eb0(0xce),'MnYeB':_0x2eb0(0x6d)};try{console[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xcf)],_0xf7d76d);const _0x2434f9=await _0x1e84b1['cKgLb'](fetch,API_CONFIG['BASE_URL']+'/youtube/validate-connection/'+_0xf7d76d),_0x2f2fd4=await _0x2434f9['json']();if(_0x2f2fd4['success']&&_0x2f2fd4[_0x2eb0(0x16)]){if(_0x1e84b1['EpmvP']('TQwdd',_0x1e84b1[_0x2eb0(0xd0)])){var _0x40c261,_0x44a7af;const _0x17e6ea=_0x1e84b1[_0x2eb0(0xd1)](_0x1e84b1[_0x2eb0(0xd1)](_0x40c261=_0x2f2fd4[_0x2eb0(0x16)],null)||_0x1e84b1[_0x2eb0(0xd2)](_0x40c261,void 0x0)?void 0x0:_0x40c261['isTemporaryMode'],!![])||_0x1e84b1[_0x2eb0(0xd3)](_0x1e84b1[_0x2eb0(0xd1)](_0x44a7af=_0x2f2fd4[_0x2eb0(0x1a)],null)||_0x1e84b1[_0x2eb0(0xd2)](_0x44a7af,void 0x0)?void 0x0:_0x44a7af[_0x2eb0(0x1b)],!![])||_0x1e84b1['zfTot'](_0x2f2fd4[_0x2eb0(0x18)],!![]),_0x3d7ff2=_0x1e84b1[_0x2eb0(0xd4)](_0x2f2fd4[_0x2eb0(0x16)]['hasAccessToken'],!![]),_0x328467=_0x2f2fd4['validation'][_0x2eb0(0x20)]===!![],_0x367e86=_0x1e84b1[_0x2eb0(0xd3)](_0x2f2fd4[_0x2eb0(0x16)][_0x2eb0(0x1f)],!![]);console[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xd5)],{'username':_0xf7d76d,'hasAccessToken':_0x3d7ff2,'hasRefreshToken':_0x328467,'needsReconnection':_0x367e86,'isTemporaryMode':_0x17e6ea,'connectedAt':_0x2f2fd4[_0x2eb0(0x16)][_0x2eb0(0xd6)]});if(_0x17e6ea)return _0x1e84b1[_0x2eb0(0xd7)]===_0x1e84b1['wmeJq']?(Alert[_0x2eb0(0x60)](_0x2eb0(0xd8),_0x1e84b1['Ftxdj'],[{'text':_0x1e84b1[_0x2eb0(0xd9)],'style':_0x1e84b1[_0x2eb0(0xda)]}]),!![]):(console[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xdb)]),![]);else{if(_0x3d7ff2&&!_0x328467&&_0x367e86){if(_0x1e84b1[_0x2eb0(0xdc)]!==_0x1e84b1[_0x2eb0(0xdc)])_0x3bf610=_0x39c1c8[_0x2eb0(0x8b)],_0x4ec152=_0x1e84b1[_0x2eb0(0xdd)];else return console[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xde)]),!![];}else return _0x1e84b1['HVxug'](_0x1e84b1[_0x2eb0(0xdf)],_0x2eb0(0xce))?(console[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xe0)]),![]):(_0x28ce61[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xe1)]),![]);}}else{var _0x2697e5,_0x26b5b4;const _0x9e806=_0x1e84b1['KqcLO']((_0x2697e5=_0x21dd2c[_0x2eb0(0x16)])===null||_0x2697e5===void 0x0?void 0x0:_0x2697e5[_0x2eb0(0x18)],!![])||_0x1e84b1['HVxug']((_0x26b5b4=_0x3f2096[_0x2eb0(0x1a)])===null||_0x26b5b4===void 0x0?void 0x0:_0x26b5b4[_0x2eb0(0x1b)],!![])||_0x1e84b1[_0x2eb0(0xd2)](_0x5d1795[_0x2eb0(0x18)],!![]),_0x142b0a=_0x1e84b1[_0x2eb0(0xd2)](_0x4b76f2[_0x2eb0(0x16)][_0x2eb0(0xe2)],!![]),_0x39106f=_0x1e84b1[_0x2eb0(0xd2)](_0x250839['validation'][_0x2eb0(0x20)],!![]),_0x47dca6=_0x1e84b1[_0x2eb0(0xd4)](_0x373633[_0x2eb0(0x16)][_0x2eb0(0x1f)],!![]);_0x3c0490[_0x2eb0(0x21)]('📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:',{'username':_0x54785c,'hasAccessToken':_0x142b0a,'hasRefreshToken':_0x39106f,'needsReconnection':_0x47dca6,'isTemporaryMode':_0x9e806,'connectedAt':_0x3a24ca[_0x2eb0(0x16)][_0x2eb0(0xd6)]});if(_0x9e806)return _0x26735a[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xdb)]),![];else return _0x142b0a&&!_0x39106f&&_0x47dca6?(_0x4c9ab4[_0x2eb0(0x21)](_0x1e84b1['fcmYd']),!![]):(_0x5e2c7e[_0x2eb0(0x21)](_0x1e84b1[_0x2eb0(0xe0)]),![]);}}return console[_0x2eb0(0x21)]('ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found'),![];}catch(_0x1f142d){return console[_0x2eb0(0x32)](_0x1e84b1[_0x2eb0(0xe3)],_0x1f142d),![];}};export const checkAndFixYouTubeConnection=async _0x539c6d=>{const _0x3efd7b={'jQxuc':_0x2eb0(0xe4),'Ddfow':_0x2eb0(0xe5),'LAuRb':_0x2eb0(0xbd),'xKWPK':_0x2eb0(0x36),'eyGOE':_0x2eb0(0x37),'XCPUp':_0x2eb0(0x38),'imPXV':_0x2eb0(0x63),'wTgqy':_0x2eb0(0x64),'AQbTT':_0x2eb0(0x39),'CXniA':_0x2eb0(0xe6),'kOTCY':'❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','GtbXZ':_0x2eb0(0x75),'ZxXpG':_0x2eb0(0x76),'OLQcg':_0x2eb0(0xe7),'ILfxQ':_0x2eb0(0xe8),'EBoQL':function(_0x404999,_0x36f541){return _0x404999(_0x36f541);},'qjZxN':_0x2eb0(0xe9),'AlRQO':_0x2eb0(0xea),'bDKbh':'✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','dtkbz':function(_0x57a164){return _0x57a164();},'qhEfz':_0x2eb0(0xeb),'kUxts':'ℹ️\x20User\x20declined\x20YouTube\x20migration','YXpTu':function(_0x1fa0e1,_0x567db7){return _0x1fa0e1(_0x567db7);},'dLgrY':_0x2eb0(0xd8),'KvDws':'Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','dsBnY':_0x2eb0(0xec),'wwgCY':function(_0x40f24d,_0x3c548d){return _0x40f24d===_0x3c548d;},'ycJYd':_0x2eb0(0xed),'gDvDa':_0x2eb0(0xee),'fLyzM':_0x2eb0(0xef)};try{if(_0x3efd7b['OLQcg']===_0x3efd7b[_0x2eb0(0xf0)]){console[_0x2eb0(0x21)](_0x3efd7b[_0x2eb0(0xf1)],_0x539c6d);const _0x37fcfd=await _0x3efd7b['EBoQL'](shouldShowYouTubeMigrationWarning,_0x539c6d);if(!_0x37fcfd)return console[_0x2eb0(0x21)](_0x3efd7b['qjZxN']),console[_0x2eb0(0x21)](_0x3efd7b[_0x2eb0(0xf2)]),!![];const _0x1bf9d7=await checkYouTubeMigrationNeeded(_0x539c6d);if(!_0x1bf9d7)return console[_0x2eb0(0x21)](_0x3efd7b[_0x2eb0(0xf3)]),!![];console[_0x2eb0(0x21)](_0x2eb0(0xf4));const _0x1dbb6a=await _0x3efd7b[_0x2eb0(0xf5)](showYouTubeMigrationPrompt);if(!_0x1dbb6a)return _0x3efd7b[_0x2eb0(0xf6)]!==_0x2eb0(0xf7)?(console[_0x2eb0(0x21)](_0x3efd7b[_0x2eb0(0xf8)]),![]):(Alert['alert'](_0x3efd7b[_0x2eb0(0xf9)],_0x3efd7b[_0x2eb0(0xfa)],[{'text':'OK','style':_0x2eb0(0x39)}]),![]);const _0x56bc35=await _0x3efd7b[_0x2eb0(0xfb)](forceYouTubeReconnection,_0x539c6d);if(_0x56bc35)return Alert[_0x2eb0(0x60)](_0x3efd7b[_0x2eb0(0xfc)],_0x3efd7b['KvDws'],[{'text':'Great!','style':_0x2eb0(0x39)}]),!![];else{if(_0x3efd7b['dsBnY']===_0x2eb0(0xfd))_0x3da365[_0x2eb0(0x32)](_0x3efd7b[_0x2eb0(0xfe)],_0x19dafe);else return Alert[_0x2eb0(0x60)](_0x3efd7b[_0x2eb0(0xf9)],_0x2eb0(0xe5),[{'text':'OK','style':_0x3efd7b[_0x2eb0(0xff)]}]),![];}}else Alert[_0x2eb0(0x60)](_0x3efd7b['xKWPK'],_0x3efd7b[_0x2eb0(0x100)],[{'text':_0x3efd7b[_0x2eb0(0x101)],'style':_0x3efd7b['imPXV'],'onPress':()=>_0x10dece(![])},{'text':_0x3efd7b[_0x2eb0(0x102)],'style':_0x3efd7b['AQbTT'],'onPress':()=>_0x3a1fbe(!![])}]);}catch(_0x427ebf){if(_0x3efd7b[_0x2eb0(0x103)](_0x3efd7b[_0x2eb0(0x104)],_0x3efd7b[_0x2eb0(0x105)])){const _0x28f678=_0x3efd7b[_0x2eb0(0x106)][_0x2eb0(0x9c)]('|');let _0x15a651=0x0;while(!![]){switch(_0x28f678[_0x15a651++]){case'0':_0x59f369['error']('\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission');continue;case'1':_0x360d39[_0x2eb0(0x32)](_0x3efd7b['kOTCY']);continue;case'2':return![];case'3':_0x3fb3fe[_0x2eb0(0x32)](_0x3efd7b[_0x2eb0(0x107)]);continue;case'4':_0x3058db[_0x2eb0(0x32)](_0x3efd7b[_0x2eb0(0x108)]);continue;case'5':_0x3994e9[_0x2eb0(0x32)](_0x2eb0(0x74));continue;}break;}}else return console[_0x2eb0(0x32)](_0x3efd7b[_0x2eb0(0x109)],_0x427ebf),![];}};export const reconnectYouTube=async _0xc85805=>{const _0xb7044b={'KHJJx':'🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:'};return console[_0x2eb0(0x21)](_0xb7044b[_0x2eb0(0x10a)],_0xc85805),await forceYouTubeReconnection(_0xc85805);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Platform}from'react-native';export const COLORS={'surface':'#FAFAFA','grey300':_0x5c79(0x0),'grey400':_0x5c79(0x1),'grey500':_0x5c79(0x2),'grey600':_0x5c79(0x3),'grey700':_0x5c79(0x4),'grey800':_0x5c79(0x5),'btnGradStart':_0x5c79(0x6),'btnGradEnd':_0x5c79(0x7),'btnBorder':_0x5c79(0x8),'btnShadowOuter':_0x5c79(0x9),'btnInnerShadow':_0x5c79(0xa),'btnLabel':_0x5c79(0xb),'iconCircleGradientStart':'#0A090E','iconCircleGradientEnd':'#17171B','primary':_0x5c79(0xc),'primaryDark':_0x5c79(0xd),'primaryLight':_0x5c79(0xe),'background':{'dark':_0x5c79(0xf),'medium':_0x5c79(0x10),'light':_0x5c79(0x11)},'text':{'primary':'#FFFFFF','secondary':_0x5c79(0x12),'tertiary':_0x5c79(0x13),'gold':'#FFD700'},'ui':{'cardBackground':_0x5c79(0x14),'divider':_0x5c79(0x14),'inputBackground':_0x5c79(0x14),'buttonBackground':'rgba(255,\x20255,\x20255,\x200.1)'},'status':{'success':_0x5c79(0x15),'error':'#FF3B30','warning':_0x5c79(0x16),'info':_0x5c79(0x17)},'transparent':'transparent','overlay':_0x5c79(0x18)};function _0x5c79(_0x1e42a6,_0x5c79f5){_0x1e42a6=_0x1e42a6-0x0;const _0x1f3af2=_0x1e42();let _0x3b3429=_0x1f3af2[_0x1e42a6];return _0x3b3429;}export const FONTS={'families':{'ibmPlexSans':Platform['OS']===_0x5c79(0x19)?'IBM\x20Plex\x20Sans':_0x5c79(0x1a),'ibmPlexSansBold':Platform['OS']==='ios'?_0x5c79(0x1a):_0x5c79(0x1a),'inter':Platform['OS']==='ios'?_0x5c79(0x1b):'Inter-Regular','base':Platform['OS']===_0x5c79(0x19)?_0x5c79(0x1c):_0x5c79(0x1d),'serif':Platform['OS']===_0x5c79(0x19)?_0x5c79(0x1e):'serif'},'weights':{'light':_0x5c79(0x1f),'regular':'400','medium':_0x5c79(0x20),'semibold':'600','bold':'700'},'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}};function _0x1e42(){const _0x597db5=['#D1D5DB','#9CA3AF','#86888E','#62646C','#374151','#1F242F','#29292B','#17181C','rgba(0,0,0,0.20)','rgba(0,0,0,0.10)','rgba(0,0,0,0.06)','#FFFFFF','#FFD700','#E9B104','#FFDF33','#000000','#121212','#1C2526','#B0B0B0','#808080','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','#FF9500','#5AC8FA','rgba(0,\x200,\x200,\x200.7)','ios','IBM\x20Plex\x20Sans','Inter','System','Roboto','Georgia','300','500','primary','btnInnerShadow','families','ibmPlexSansBold','weights','sizes','kicker','lineHeights','letterSpacing','grey500','bold','welcomeTitle','inter','regular','body','grey600','semibold','buttonLabel','btnLabel'];_0x1e42=function(){return _0x597db5;};return _0x1e42();}export const SPACING={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18};export const BORDER_RADIUS={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64};export const SHADOWS={'small':{'shadowColor':COLORS[_0x5c79(0x21)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x5c79(0x21)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x5c79(0x21)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS[_0x5c79(0x22)],'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':_0x5c79(0xf),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS[_0x5c79(0x23)][_0x5c79(0x24)],'fontWeight':FONTS[_0x5c79(0x25)]['bold'],'fontSize':FONTS[_0x5c79(0x26)][_0x5c79(0x27)],'lineHeight':FONTS[_0x5c79(0x28)][_0x5c79(0x27)],'letterSpacing':FONTS[_0x5c79(0x29)]['kicker'],'color':COLORS[_0x5c79(0x2a)]},'welcomeTitle':{'fontFamily':FONTS[_0x5c79(0x23)][_0x5c79(0x24)],'fontWeight':FONTS[_0x5c79(0x25)][_0x5c79(0x2b)],'fontSize':FONTS[_0x5c79(0x26)][_0x5c79(0x2c)],'lineHeight':FONTS[_0x5c79(0x28)][_0x5c79(0x2c)],'color':COLORS['grey800']},'body':{'fontFamily':FONTS[_0x5c79(0x23)][_0x5c79(0x2d)],'fontWeight':FONTS['weights'][_0x5c79(0x2e)],'fontSize':FONTS[_0x5c79(0x26)]['body'],'lineHeight':FONTS[_0x5c79(0x28)][_0x5c79(0x2f)],'textAlign':'center','color':COLORS[_0x5c79(0x30)]},'buttonLabel':{'fontFamily':FONTS[_0x5c79(0x23)][_0x5c79(0x2d)],'fontWeight':FONTS[_0x5c79(0x25)][_0x5c79(0x31)],'fontSize':FONTS[_0x5c79(0x26)][_0x5c79(0x32)],'color':COLORS[_0x5c79(0x33)]}};export default{'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
|
package/lib/module/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export let ApiKeyType=function(_0x384899){const _0x40abbc={'LqSgJ':_0x2b85(0x0),'WBPFL':_0x2b85(0x1),'Jcxvn':_0x2b85(0x2),'Mqvdb':_0x2b85(0x3),'BNlSL':_0x2b85(0x4)};return _0x384899[_0x40abbc[_0x2b85(0x5)]]=_0x2b85(0x6),_0x384899[_0x40abbc[_0x2b85(0x7)]]=_0x40abbc[_0x2b85(0x8)],_0x384899[_0x40abbc[_0x2b85(0x9)]]=_0x40abbc[_0x2b85(0xa)],_0x384899;}({});function _0x2b85(_0x24e1be,_0x2b85f0){_0x24e1be=_0x24e1be-0x0;const _0x4842d3=_0x24e1();let _0x169d72=_0x4842d3[_0x24e1be];return _0x169d72;}function _0x24e1(){const _0x41fe28=['DEVELOPER','ADMIN','admin','INVALID','invalid','LqSgJ','developer','WBPFL','Jcxvn','Mqvdb','BNlSL'];_0x24e1=function(){return _0x41fe28;};return _0x24e1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React,{useEffect,useState}from'react';import{View}from'react-native';function
|
|
1
|
+
import React,{useEffect,useState}from'react';import{View}from'react-native';function _0x3d66(_0x222e6c,_0x3d666f){_0x222e6c=_0x222e6c-0x0;const _0x486e60=_0x222e();let _0x24d1ac=_0x486e60[_0x222e6c];return _0x24d1ac;}const portalRefs={};function _0x222e(){const _0x4adc4f=['createContext','Xrvkj','BguNJ','OqWrb','qKFgO','fKbgh','hKJDZ','createElement','keys','absolute','yhlJn','pdWXY','VCHSF','jrDfh','GevTE','NJetW','cnBCk','BCfSf','XEoTo','NPUOG','qVXWj'];_0x222e=function(){return _0x4adc4f;};return _0x222e();}let portalId=0x0;const PortalContext=React[_0x3d66(0x0)]({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});export const PortalHost=({children:_0x9e10dc})=>{const _0x5c8f4e={'OqWrb':function(_0x35cc95,_0x96e192){return _0x35cc95(_0x96e192);},'qKFgO':_0x3d66(0x1),'BguNJ':function(_0x53b074,_0x14f723){return _0x53b074(_0x14f723);}},[_0x58bf76,_0x1de771]=_0x5c8f4e[_0x3d66(0x2)](useState,{}),_0x22dffd=_0x2fb41e=>{const _0x401c52=++portalId;return _0x5c8f4e[_0x3d66(0x3)](_0x1de771,_0x12dbb4=>({..._0x12dbb4,[_0x401c52]:_0x2fb41e})),_0x401c52;},_0xe41b29=(_0xddba74,_0x376ae8)=>{_0x1de771(_0x494003=>({..._0x494003,[_0xddba74]:_0x376ae8}));},_0x5a669f=_0x372d44=>{_0x1de771(_0x43f3ed=>{const _0x398141={'hKJDZ':function(_0x2cc7bf,_0x38a18a){return _0x5c8f4e[_0x3d66(0x3)](_0x2cc7bf,_0x38a18a);}};if(_0x5c8f4e[_0x3d66(0x4)]===_0x3d66(0x5)){if(_0x2ae0ad)_0x398141[_0x3d66(0x6)](_0x3ebfef,_0x1984cf);}else{const _0x521e95={..._0x43f3ed};return delete _0x521e95[_0x372d44],_0x521e95;}});};return React[_0x3d66(0x7)](PortalContext['Provider'],{'value':{'mount':_0x22dffd,'update':_0xe41b29,'unmount':_0x5a669f}},_0x9e10dc,Object[_0x3d66(0x8)](_0x58bf76)['map'](_0x1456b8=>React[_0x3d66(0x7)](View,{'key':_0x1456b8,'style':{'position':_0x3d66(0x9),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x58bf76[Number(_0x1456b8)])));};export const Portal=({children:_0x5d19de})=>{const _0xbb4709={'VCHSF':function(_0x3709ba,_0x341581){return _0x3709ba(_0x341581);},'jrDfh':_0x3d66(0xa),'GevTE':function(_0x1e227b,_0xb4c568){return _0x1e227b(_0xb4c568);},'qVXWj':function(_0x30ab1c,_0x9ed131,_0x2356a7){return _0x30ab1c(_0x9ed131,_0x2356a7);},'Qpjxx':function(_0x307456,_0x326e7d){return _0x307456!==_0x326e7d;},'bPimv':_0x3d66(0xb),'YuSXW':function(_0x393ff2,_0x495388,_0x3648c3){return _0x393ff2(_0x495388,_0x3648c3);},'NPUOG':function(_0x1490b1,_0x531243,_0x3865cd){return _0x1490b1(_0x531243,_0x3865cd);}},{mount:_0x58af70,update:_0x3db905,unmount:_0x3a4bca}=React['useContext'](PortalContext),[_0x12919e,_0x52a2d7]=useState(null);return _0xbb4709['YuSXW'](useEffect,()=>{const _0x2ea403={'NJetW':function(_0x4fb875,_0xe8dcb6){return _0xbb4709[_0x3d66(0xc)](_0x4fb875,_0xe8dcb6);},'SvGOA':function(_0x3ac8c7,_0x355ffa){return _0x3ac8c7!==_0x355ffa;},'cnBCk':_0xbb4709[_0x3d66(0xd)]},_0xb294cb=_0xbb4709[_0x3d66(0xe)](_0x58af70,_0x5d19de);return _0xbb4709[_0x3d66(0xe)](_0x52a2d7,_0xb294cb),()=>{const _0x244642={'XEoTo':function(_0x35efb6,_0x1f8980){return _0x2ea403[_0x3d66(0xf)](_0x35efb6,_0x1f8980);}};if(_0x2ea403['SvGOA'](_0x2ea403[_0x3d66(0x10)],_0x3d66(0x11))){if(_0x12919e)_0x2ea403[_0x3d66(0xf)](_0x3a4bca,_0x12919e);}else{const _0x4bfcc1=++_0x50c5dc;return _0x244642[_0x3d66(0x12)](_0x244b4c,_0x4ef0e7=>({..._0x4ef0e7,[_0x4bfcc1]:_0x57a243})),_0x4bfcc1;}};},[]),_0xbb4709[_0x3d66(0x13)](useEffect,()=>{_0xbb4709['Qpjxx'](_0x12919e,null)&&(_0xbb4709['bPimv']===_0xbb4709['bPimv']?_0x3db905(_0x12919e,_0x5d19de):_0xbb4709[_0x3d66(0x14)](_0x3353f1,_0x51862f,_0x34d460));},[_0x5d19de,_0x12919e]),null;};
|
package/lib/module/utils/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG['BASE_URL'];export const createApiInstance=async()=>{const _0x41e97d=await AsyncStorage[_0x15e1(0x0)]('onairosToken');return axios['create']({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x41e97d?{'Authorization':_0x15e1(0x1)+_0x41e97d}:{}}});};function _0x15e1(_0x31e373,_0x15e1cb){_0x31e373=_0x31e373-0x0;const _0x4ffa0e=_0x31e3();let _0x5be198=_0x4ffa0e[_0x31e373];return _0x5be198;}export const validateDomain=async()=>{const _0x3adfe0={'aycjH':function(_0x3346b4){return _0x3346b4();},'esHOm':_0x15e1(0x2),'KLrmO':'Error\x20validating\x20domain:'};try{const _0x2ee743=await _0x3adfe0[_0x15e1(0x3)](createApiInstance),_0x115aae=await _0x2ee743[_0x15e1(0x4)](_0x3adfe0['esHOm']);return _0x115aae[_0x15e1(0x5)];}catch(_0x531c68){return console[_0x15e1(0x6)](_0x3adfe0[_0x15e1(0x7)],_0x531c68),{'status':![]};}};export const fetchAccountInfo=async(_0x1f5069,_0x1798a0=![])=>{const _0x1b62eb={'itukj':function(_0x28f480){return _0x28f480();},'sPMlb':'/getAccountInfo/email','BJjGH':_0x15e1(0x8)};try{const _0x25b43b=await _0x1b62eb[_0x15e1(0x9)](createApiInstance),_0x28496a=_0x1798a0?{'Info':{'identifier':_0x1f5069}}:{'Info':{'userName':_0x1f5069}},_0x1652de=_0x1798a0?_0x1b62eb[_0x15e1(0xa)]:_0x1b62eb[_0x15e1(0xb)],_0x3556bd=await _0x25b43b['post'](_0x1652de,_0x28496a);return _0x3556bd[_0x15e1(0x5)];}catch(_0x154a20){console[_0x15e1(0x6)](_0x15e1(0xc),_0x154a20);throw _0x154a20;}};export const getApiUrl=async(_0x1af85a,_0x496ace,_0x28dc8b)=>{const _0x1dae43={'pRpHN':function(_0x451ea6){return _0x451ea6();},'JQqjc':'/getAPIurl','KPhEd':_0x15e1(0xd)};try{const _0x162ad4=await _0x1dae43[_0x15e1(0xe)](createApiInstance),_0x50a58e={'Info':{'EncryptedUserPin':_0x496ace,'confirmations':_0x1af85a,'web3Type':_0x15e1(0xf),'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x28dc8b}},_0x5c02ad=await _0x162ad4['post'](_0x1dae43[_0x15e1(0x10)],_0x50a58e);return _0x5c02ad[_0x15e1(0x5)];}catch(_0x430851){console[_0x15e1(0x6)](_0x1dae43[_0x15e1(0x11)],_0x430851);throw _0x430851;}};function _0x31e3(){const _0x253fe2=['getItem','Bearer\x20','/valid/validate-domain','aycjH','post','data','error','KLrmO','/getAccountInfo','itukj','sPMlb','BJjGH','Error\x20fetching\x20account\x20info:','Error\x20getting\x20API\x20URL:','pRpHN','othent','JQqjc','KPhEd','/createAccount','Lbtsq'];_0x31e3=function(){return _0x253fe2;};return _0x31e3();}export const createAccount=async(_0x3c3406,_0x5eaaac,_0x190835,_0x411cae)=>{const _0x5d6fe6={'dpsdH':function(_0x1dd64e){return _0x1dd64e();},'Lbtsq':'Error\x20creating\x20account:'};try{const _0x2a0fce=await _0x5d6fe6['dpsdH'](createApiInstance),_0x24329c=await _0x2a0fce[_0x15e1(0x4)](_0x15e1(0x12),{'othentSub':_0x3c3406,'pin':_0x5eaaac,'socialAccounts':_0x190835,'email':_0x411cae});return _0x24329c[_0x15e1(0x5)];}catch(_0x4de4c9){console[_0x15e1(0x6)](_0x5d6fe6[_0x15e1(0x13)],_0x4de4c9);throw _0x4de4c9;}};
|
|
@@ -30,4 +30,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
30
30
|
require('../assets/animations/persona-animation.json')
|
|
31
31
|
];
|
|
32
32
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
33
|
-
|
|
33
|
+
export const PLATFORM_ICONS={'youtube':__ONAIROS_REQ_FUNC__(0x0),'youtube2':__ONAIROS_REQ_FUNC__(0x1),'reddit':__ONAIROS_REQ_FUNC__(0x2),'linkedin':__ONAIROS_REQ_FUNC__(0x3),'instagram':__ONAIROS_REQ_FUNC__(0x4),'facebook':__ONAIROS_REQ_FUNC__(0x5),'pinterest':__ONAIROS_REQ_FUNC__(0x6),'gmail':__ONAIROS_REQ_FUNC__(0x7),'twitter':__ONAIROS_REQ_FUNC__(0x8),'farcaster':__ONAIROS_REQ_FUNC__(0x9),'chatgpt':__ONAIROS_REQ_FUNC__(0xa),'claude':__ONAIROS_REQ_FUNC__(0xb),'grok':__ONAIROS_REQ_FUNC__(0xc),'gemini':__ONAIROS_REQ_FUNC__(0xd),'default':__ONAIROS_REQ_FUNC__(0xe)};function _0x5310(){const _0x56c017=['reddit','instagram','twitter','toLowerCase','youtube','linkedin','jNQSY','facebook','pinterest','gmail','email','farcaster','chatgpt','openai','claude','XXIaQ','grok','gemini','google_ai','default','level','Instagram','YouTube','Pinterest','Email','bcmGc','aoBrs','youtube2','opuDP'];_0x5310=function(){return _0x56c017;};return _0x5310();}export const getPlatformIconFromRegistry=_0x360b66=>{const _0x37d905={'wNrFq':_0x4a26(0x0),'jNQSY':_0x4a26(0x1),'YXxTB':_0x4a26(0x2),'XXIaQ':'anthropic'},_0x5d2c5b=_0x360b66[_0x4a26(0x3)]();switch(_0x5d2c5b){case _0x4a26(0x4):return PLATFORM_ICONS[_0x4a26(0x4)];case _0x37d905['wNrFq']:return PLATFORM_ICONS[_0x4a26(0x0)];case'linkedin':return PLATFORM_ICONS[_0x4a26(0x5)];case _0x37d905[_0x4a26(0x6)]:return PLATFORM_ICONS['instagram'];case'facebook':return PLATFORM_ICONS[_0x4a26(0x7)];case _0x4a26(0x8):return PLATFORM_ICONS['pinterest'];case _0x4a26(0x9):case _0x4a26(0xa):return PLATFORM_ICONS['gmail'];case _0x37d905['YXxTB']:case'x':return PLATFORM_ICONS[_0x4a26(0x2)];case _0x4a26(0xb):return PLATFORM_ICONS[_0x4a26(0xb)];case _0x4a26(0xc):case _0x4a26(0xd):return PLATFORM_ICONS[_0x4a26(0xc)];case _0x4a26(0xe):case _0x37d905[_0x4a26(0xf)]:return PLATFORM_ICONS[_0x4a26(0xe)];case _0x4a26(0x10):return PLATFORM_ICONS[_0x4a26(0x10)];case _0x4a26(0x11):case _0x4a26(0x12):return PLATFORM_ICONS[_0x4a26(0x11)];default:return PLATFORM_ICONS[_0x4a26(0x13)];}};export const PERSONA_IMAGES={'level1':__ONAIROS_REQ_FUNC__(0xf),'level2':__ONAIROS_REQ_FUNC__(0x10),'level3':__ONAIROS_REQ_FUNC__(0x11),'level4':__ONAIROS_REQ_FUNC__(0x12),'level5':__ONAIROS_REQ_FUNC__(0x13)};export const getPersonaImage=_0x2d5ebc=>{const _0x38b96c=_0x4a26(0x14)+_0x2d5ebc;return PERSONA_IMAGES[_0x38b96c]||PERSONA_IMAGES['level1'];};export const BRAND_IMAGES={'onairosLogo':__ONAIROS_REQ_FUNC__(0x14),'onairosLogoAlt':__ONAIROS_REQ_FUNC__(0x15),'googleLogo':__ONAIROS_REQ_FUNC__(0x16),'faceIdLogo':__ONAIROS_REQ_FUNC__(0x17),'enochIcon':__ONAIROS_REQ_FUNC__(0x18)};export const ANIMATIONS={'loader':__ONAIROS_REQ_FUNC__(0x19),'persona':__ONAIROS_REQ_FUNC__(0x1a)};export const OVERLAY_PLATFORMS=[{'id':'instagram','name':_0x4a26(0x15),'icon':PLATFORM_ICONS['instagram']},{'id':_0x4a26(0x4),'name':_0x4a26(0x16),'icon':PLATFORM_ICONS['youtube2']},{'id':_0x4a26(0x0),'name':'Reddit','icon':PLATFORM_ICONS[_0x4a26(0x0)]},{'id':_0x4a26(0x8),'name':_0x4a26(0x17),'icon':PLATFORM_ICONS[_0x4a26(0x8)]},{'id':_0x4a26(0xa),'name':_0x4a26(0x18),'icon':PLATFORM_ICONS['gmail']}];function _0x4a26(_0x531022,_0x4a26bb){_0x531022=_0x531022-0x0;const _0x36ae1a=_0x5310();let _0x125a26=_0x36ae1a[_0x531022];return _0x125a26;}export const getUniversalOnboardingIcon=_0x5a9de5=>{const _0x3179cf={'bcmGc':_0x4a26(0x1),'aoBrs':_0x4a26(0x4),'opuDP':_0x4a26(0x5)},_0x5654d8=_0x5a9de5[_0x4a26(0x3)]();switch(_0x5654d8){case _0x3179cf[_0x4a26(0x19)]:return PLATFORM_ICONS[_0x4a26(0x1)];case _0x3179cf[_0x4a26(0x1a)]:return PLATFORM_ICONS[_0x4a26(0x1b)];case _0x4a26(0x0):return PLATFORM_ICONS[_0x4a26(0x0)];case'pinterest':return PLATFORM_ICONS[_0x4a26(0x8)];case _0x4a26(0x7):return PLATFORM_ICONS['facebook'];case _0x3179cf[_0x4a26(0x1c)]:return PLATFORM_ICONS[_0x4a26(0x5)];case'gmail':case _0x4a26(0xa):return PLATFORM_ICONS['gmail'];default:return PLATFORM_ICONS[_0x4a26(0x13)];}};
|
package/lib/module/utils/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import axios from'axios';function
|
|
1
|
+
import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';function _0x2ab5(){const _0x335910=['BASE_URL','Error\x20getting\x20stored\x20auth\x20data:','Error\x20storing\x20auth\x20data:','LZxZr','LYgiD','YCrjp','LMudi','post','/getPin','data','oHmmC','ZQPoz','error','Error\x20verifying\x20token:','eBZnE','Bearer\x20','valid','eFoZx','fJhOF','Error\x20clearing\x20auth\x20data:','VSHYl','othentToken','onairosToken','setItem','hyoEg','fEZaY','uAbFl','rjCEN','stringify','SWceZ','PlrPL','AnfFp','Error\x20getting\x20PIN:','username','removeItem','BvrBN','nDeGQ','getItem','vbUXs','oHRnH'];_0x2ab5=function(){return _0x335910;};return _0x2ab5();}const API_URL=API_CONFIG[_0x2942(0x0)];export const getPin=async _0x526c0e=>{const _0x115ebc={'oHmmC':_0x2942(0x1),'cRWOw':_0x2942(0x2),'LYgiD':function(_0x340f58,_0x11c599){return _0x340f58!==_0x11c599;},'LMudi':_0x2942(0x3),'QEqTA':'YWQes'};try{if(_0x115ebc[_0x2942(0x4)](_0x2942(0x5),_0x115ebc[_0x2942(0x6)])){const _0x3f5943=await axios[_0x2942(0x7)](API_URL+_0x2942(0x8),{'hashedOthentSub':_0x526c0e});return _0x3f5943[_0x2942(0x9)];}else return _0x24d887['error'](_0x115ebc[_0x2942(0xa)],_0x217b83),{'token':null,'username':null,'othentToken':null};}catch(_0x41f0e6){if(_0x115ebc[_0x2942(0x4)](_0x115ebc['QEqTA'],_0x2942(0xb))){console[_0x2942(0xc)]('Error\x20getting\x20PIN:',_0x41f0e6);throw _0x41f0e6;}else{_0x218a7a[_0x2942(0xc)](_0x115ebc['cRWOw'],_0x1d5ea6);throw _0x1a82d9;}}};export const verifyToken=async _0x3c0a3c=>{const _0x283dae={'fJhOF':_0x2942(0xd),'rBKrF':function(_0x5bfdd4,_0x149e21){return _0x5bfdd4!==_0x149e21;},'doMhM':_0x2942(0xe),'eFoZx':'AtUdO'};try{const _0x25d521=await axios[_0x2942(0x7)](API_URL+'/verifyToken',{},{'headers':{'Authorization':_0x2942(0xf)+_0x3c0a3c}});return _0x25d521[_0x2942(0x9)][_0x2942(0x10)];}catch(_0x1f035c){return _0x283dae['rBKrF'](_0x283dae['doMhM'],_0x283dae[_0x2942(0x11)])?(console['error'](_0x283dae['fJhOF'],_0x1f035c),![]):(_0x5e918c[_0x2942(0xc)](_0x283dae[_0x2942(0x12)],_0x16d1ca),![]);}};export const storeAuthData=async(_0x1beac7,_0x10758f=null,_0x5dc088=null)=>{const _0x376923={'SWceZ':_0x2942(0x13),'hyoEg':'username','fEZaY':function(_0x29268b,_0x21e91a){return _0x29268b===_0x21e91a;},'uAbFl':_0x2942(0x14),'rjCEN':_0x2942(0x15),'PlrPL':'lsHpx','gFcaI':'Error\x20storing\x20auth\x20data:'};try{await AsyncStorage['setItem'](_0x2942(0x16),_0x1beac7);_0x10758f&&await AsyncStorage[_0x2942(0x17)](_0x376923[_0x2942(0x18)],_0x10758f);if(_0x5dc088){if(_0x376923[_0x2942(0x19)](_0x376923[_0x2942(0x1a)],_0x2942(0x14)))await AsyncStorage['setItem'](_0x376923[_0x2942(0x1b)],JSON[_0x2942(0x1c)](_0x5dc088));else{_0x1d57a9[_0x2942(0xc)](_0x376923[_0x2942(0x1d)],_0x3b75ce);throw _0x2406e3;}}}catch(_0x1b343c){if(_0x376923[_0x2942(0x1e)]!==_0x2942(0x1f)){console['error'](_0x376923['gFcaI'],_0x1b343c);throw _0x1b343c;}else{_0x56167f[_0x2942(0xc)](_0x2942(0x20),_0x18121f);throw _0x1b5a1a;}}};function _0x2942(_0x2ab57b,_0x29429e){_0x2ab57b=_0x2ab57b-0x0;const _0x58f708=_0x2ab5();let _0x1836bb=_0x58f708[_0x2ab57b];return _0x1836bb;}export const clearAuthData=async()=>{const _0x2c61f6={'BvrBN':_0x2942(0x16),'nDeGQ':_0x2942(0x21),'VArpl':_0x2942(0x13)};try{await AsyncStorage[_0x2942(0x22)](_0x2c61f6[_0x2942(0x23)]),await AsyncStorage['removeItem'](_0x2c61f6[_0x2942(0x24)]),await AsyncStorage[_0x2942(0x22)]('othentToken');}catch(_0x1a7d41){console[_0x2942(0xc)](_0x2c61f6['VArpl'],_0x1a7d41);throw _0x1a7d41;}};export const getStoredAuthData=async()=>{const _0x2f6bb6={'xBltr':_0x2942(0x16),'vbUXs':'username','oHRnH':'othentToken'};try{const _0x555bba=await AsyncStorage[_0x2942(0x25)](_0x2f6bb6['xBltr']),_0x3c128b=await AsyncStorage['getItem'](_0x2f6bb6[_0x2942(0x26)]),_0x429a1c=await AsyncStorage[_0x2942(0x25)](_0x2f6bb6[_0x2942(0x27)]);return{'token':_0x555bba,'username':_0x3c128b,'othentToken':_0x429a1c?JSON['parse'](_0x429a1c):null};}catch(_0x127629){return console['error'](_0x2942(0x1),_0x127629),{'token':null,'username':null,'othentToken':null};}};
|