@onairos/react-native 3.6.7 → 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
|
-
function _0x4b22(){const _0x4f3ca0=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','https://www.googleapis.com/auth/youtube.readonly','openid','profile','email','configure','Kuxvu','efsqf','🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','temporary\x20access\x20token\x20mode','🔍\x20YouTube\x20migration\x20check:','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','mRJtF','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','BASE_URL','/youtube/validate-connection/','json','success','gFVTE','validation','foPJa','isTemporaryMode','temporaryMode','mptFX','enabled','oIlwB','message','includes','needsReconnection','hasRefreshToken','YXKzP','qBVGG','QDDTq','AwQxf','log','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','EZKzZ','fyMXZ','eDnyk','xmBCS','sysPz','NMekL','xzSiU','error','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','temporary','ZYvPm','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','full','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','❓\x20YouTube\x20connection\x20status\x20unclear','❌\x20No\x20YouTube\x20connection\x20found','❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','xXfit','EgKxr','pwtuN','nqtBw','Dwupz','vVVGC','KoOQb','limited','hiCtG','wuWlH','GmLak','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','alert','DyksW','RcsXV','Esoio','Upgrade\x20Now','IQTLO','cancel','Upgrade\x20Failed\x20❌','YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','✅\x20Token\x20cache\x20cleared','None','Server\x20auth\x20code\x20from\x20sign-in','MISSING!','\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','💡\x20This\x20usually\x20means:','✅\x20Got\x20refresh\x20token\x20after\x20consent:','...','🔑\x20Refresh\x20token\x20source:','onairos_jwt_token','kmZPS','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','youtube','YouTube\x20Channel','📤\x20Sending\x20migration\x20payload\x20to\x20backend...','your-api-key','Qcvig','✅\x20YouTube\x20migration\x20successful','InMEF','Unknown\x20error','uJlac','BOeac','signOut','TaLuK','bBDcq','YouTube\x20Connection\x20Upgrade','kUcZg','QfASX','jmnIJ','clearCachedAccessToken','accessToken','ℹ️\x20No\x20token\x20cache\x20to\x20clear','hasPlayServices','🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','signIn','getCurrentUser','GnPoy','jIkfy','txXfg','TSvlM','JRKpV','serverAuthCode','pimJV','HkFGx','TQYMc','cTGRK','hcAVc','MBfYi','lfOwS','jkjSI','OhObU','hQiaH','UPQiB','NMfPb','idToken','Available','KLmSV','user','Mprhp','split','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','AVLRN','AnCPd','ZRQyE','gjWrT','substring','GROPW','VAXqo','Vefts','getItem','rmtpv','tHCiw','OeuEX','VmmwR','warn','DbDup','dENmx','HPQWz','TBEoU','name','NGaaX','RWWub','cLvRg','Bearer\x20','stringify','GnrPX','dgGPB','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','jxXgV','ozSCI','QojUX','TPXGB','ypkzm','zXfMN','xACSA','rMMrz','xvKWl','nzJBw','ObcjJ','RExem','qJTqW','/youtube/migration-status','toISOString','cXoMc','iqXTX','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','Qhngk','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','uZUrf','GzZvW','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found','nFamn','EOnmF','zJkov','DzMEO','BWnuv','tVIAe','connectedAt','IeATB','DmUbM','Qwztm','sgTAi','Vbcml','IoPUs','hasAccessToken','NSELk','czcGy','sABYj','jViit','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','UBpMp','riYBn','dvLNi','ECnwH','CfwPZ','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','ℹ️\x20User\x20declined\x20YouTube\x20migration','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','bAhgQ','xwtdW','INQwa','XQsgn','IKhxm','ujmTy','FTuHg','nBwXg','Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','mpVeV','RxeEB','ulhoL'];_0x4b22=function(){return _0x4f3ca0;};return _0x4b22();}function _0x464a(_0x4b22fc,_0x464a4c){_0x4b22fc=_0x4b22fc-0x0;const _0x2a58ac=_0x4b22();let _0x182b4b=_0x2a58ac[_0x4b22fc];return _0x182b4b;}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=_0x464a(0x0),IOS_CLIENT_ID=_0x464a(0x0),configureGoogleSignInForRefreshTokens=()=>{const _0x4fe4c3={'ZJCmi':_0x464a(0x1),'wtbjs':_0x464a(0x2),'Kuxvu':_0x464a(0x3),'efsqf':_0x464a(0x4)};GoogleSignin[_0x464a(0x5)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x4fe4c3['ZJCmi'],_0x4fe4c3['wtbjs'],_0x4fe4c3[_0x464a(0x6)],_0x4fe4c3[_0x464a(0x7)]],'hostedDomain':'','accountName':''});};export const checkYouTubeMigrationNeeded=async _0x32e798=>{const _0x32c450={'fyMXZ':'ℹ️\x20User\x20declined\x20YouTube\x20migration','sysPz':_0x464a(0x8),'NMekL':_0x464a(0x9),'GOqMb':function(_0x5a6f52,_0x3b7a7e){return _0x5a6f52(_0x3b7a7e);},'gFVTE':function(_0x2da8f2,_0x15b482){return _0x2da8f2===_0x15b482;},'foPJa':function(_0x482fb4,_0xc58636){return _0x482fb4===_0xc58636;},'mptFX':function(_0x439d28,_0xdce465){return _0x439d28===_0xdce465;},'oIlwB':function(_0x3b3619,_0x8f892d){return _0x3b3619===_0x8f892d;},'fLaPf':_0x464a(0xa),'YXKzP':_0x464a(0xb),'qBVGG':function(_0x3a2759,_0x207d7a){return _0x3a2759===_0x207d7a;},'QDDTq':'AwQxf','EZKzZ':_0x464a(0xc),'eDnyk':_0x464a(0xd),'xmBCS':'🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','xzSiU':_0x464a(0xe),'aEJIX':_0x464a(0xf)};try{const _0x2fec13=await _0x32c450['GOqMb'](fetch,API_CONFIG[_0x464a(0x10)]+_0x464a(0x11)+_0x32e798),_0x567799=await _0x2fec13[_0x464a(0x12)]();if(_0x567799[_0x464a(0x13)]&&_0x567799['validation']){var _0x41cf8c,_0x154bc5,_0xbd8b12;const _0xf68685=_0x32c450[_0x464a(0x14)]((_0x41cf8c=_0x567799[_0x464a(0x15)])===null||_0x32c450[_0x464a(0x16)](_0x41cf8c,void 0x0)?void 0x0:_0x41cf8c[_0x464a(0x17)],!![])||_0x32c450[_0x464a(0x14)](_0x32c450[_0x464a(0x16)](_0x154bc5=_0x567799[_0x464a(0x18)],null)||_0x32c450[_0x464a(0x19)](_0x154bc5,void 0x0)?void 0x0:_0x154bc5[_0x464a(0x1a)],!![])||_0x32c450[_0x464a(0x1b)](_0x567799['isTemporaryMode'],!![])||_0x567799[_0x464a(0x1c)]&&_0x567799[_0x464a(0x1c)][_0x464a(0x1d)](_0x32c450['fLaPf']),_0x551563=_0x567799['validation'][_0x464a(0x1e)],_0x29de19=_0x567799[_0x464a(0x15)][_0x464a(0x1f)];console['log'](_0x32c450[_0x464a(0x20)],{'username':_0x32e798,'needsReconnection':_0x551563,'hasRefreshToken':_0x29de19,'isTemporaryMode':_0xf68685,'temporaryModeEnabled':_0x32c450[_0x464a(0x1b)](_0xbd8b12=_0x567799[_0x464a(0x18)],null)||_0x32c450[_0x464a(0x19)](_0xbd8b12,void 0x0)?void 0x0:_0xbd8b12[_0x464a(0x1a)],'message':_0x567799[_0x464a(0x1c)]});if(_0xf68685)return _0x32c450[_0x464a(0x21)](_0x32c450[_0x464a(0x22)],_0x464a(0x23))?(console[_0x464a(0x24)](_0x464a(0x25)),console[_0x464a(0x24)](_0x32c450[_0x464a(0x26)]),![]):(_0x183205[_0x464a(0x24)](_0x32c450[_0x464a(0x27)]),![]);else return _0x551563?_0x32c450[_0x464a(0x16)](_0x464a(0xd),_0x32c450[_0x464a(0x28)])?(console[_0x464a(0x24)](_0x32c450[_0x464a(0x29)]),!![]):(_0x468c9b[_0x464a(0x24)](_0x32c450[_0x464a(0x2a)]),_0x3e0f23[_0x464a(0x24)](_0x32c450[_0x464a(0x2b)]),!![]):(console['log'](_0x32c450[_0x464a(0x2c)]),![]);}return![];}catch(_0x21797e){return console[_0x464a(0x2d)](_0x32c450['aEJIX'],_0x21797e),![];}};export const getYouTubeConnectionStatus=async _0x2692ca=>{const _0x2f2c29={'DoeXV':_0x464a(0x2e),'xXfit':function(_0x365330,_0xc9857e){return _0x365330(_0xc9857e);},'EgKxr':function(_0xc7abd0,_0x54ec25){return _0xc7abd0===_0x54ec25;},'pwtuN':function(_0x1a139a,_0x361a19){return _0x1a139a===_0x361a19;},'nqtBw':_0x464a(0xa),'cGcit':function(_0x55ac72,_0x2d31ab){return _0x55ac72===_0x2d31ab;},'mVBxp':_0x464a(0x2f),'Dwupz':_0x464a(0x30),'OzvbO':'nhdVY','vVVGC':_0x464a(0x31),'tBens':_0x464a(0x32),'KoOQb':_0x464a(0x33),'ezhLn':_0x464a(0x34),'hiCtG':'none','wuWlH':_0x464a(0x35),'GmLak':_0x464a(0x36)};try{const _0x2cf2bd=await _0x2f2c29[_0x464a(0x37)](fetch,API_CONFIG[_0x464a(0x10)]+_0x464a(0x11)+_0x2692ca),_0x1d9687=await _0x2cf2bd['json']();console['log']('📋\x20Complete\x20YouTube\x20status\x20response:',_0x1d9687);if(_0x1d9687[_0x464a(0x13)]&&_0x1d9687['validation']){var _0x374644,_0x55969e;const _0x9df3dd=_0x2f2c29[_0x464a(0x38)](_0x2f2c29[_0x464a(0x38)](_0x374644=_0x1d9687[_0x464a(0x15)],null)||_0x374644===void 0x0?void 0x0:_0x374644[_0x464a(0x17)],!![])||_0x2f2c29['EgKxr'](_0x2f2c29[_0x464a(0x38)](_0x55969e=_0x1d9687[_0x464a(0x18)],null)||_0x2f2c29[_0x464a(0x39)](_0x55969e,void 0x0)?void 0x0:_0x55969e[_0x464a(0x1a)],!![])||_0x1d9687[_0x464a(0x17)]===!![]||_0x1d9687[_0x464a(0x1c)]&&_0x1d9687['message'][_0x464a(0x1d)](_0x2f2c29[_0x464a(0x3a)]),_0x141cfc=_0x2f2c29['cGcit'](_0x1d9687['validation'][_0x464a(0x1f)],!![]),_0x3b6977=_0x2f2c29['pwtuN'](_0x1d9687[_0x464a(0x15)][_0x464a(0x1e)],!![]);if(_0x9df3dd)return console[_0x464a(0x24)]('🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode'),console[_0x464a(0x24)]('✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour'),{'isReady':!![],'mode':_0x2f2c29['mVBxp'],'needsMigration':![],'trainingReady':!![],'details':_0x1d9687};else{if(_0x141cfc)return _0x2f2c29[_0x464a(0x3b)]!==_0x2f2c29['OzvbO']?(console[_0x464a(0x24)](_0x2f2c29[_0x464a(0x3c)]),{'isReady':!![],'mode':_0x2f2c29['tBens'],'needsMigration':![],'trainingReady':!![],'details':_0x1d9687}):(_0x207c10['log'](_0x2f2c29['DoeXV']),!![]);else return _0x3b6977?(console[_0x464a(0x24)](_0x2f2c29[_0x464a(0x3d)]),{'isReady':![],'mode':_0x464a(0x3e),'needsMigration':!![],'trainingReady':![],'details':_0x1d9687}):(console[_0x464a(0x24)](_0x2f2c29['ezhLn']),{'isReady':![],'mode':_0x2f2c29[_0x464a(0x3f)],'needsMigration':![],'trainingReady':![],'details':_0x1d9687});}}return console['log'](_0x2f2c29[_0x464a(0x40)]),{'isReady':![],'mode':_0x2f2c29[_0x464a(0x3f)],'needsMigration':![],'trainingReady':![],'details':_0x1d9687};}catch(_0x42695a){return console[_0x464a(0x2d)](_0x2f2c29[_0x464a(0x41)],_0x42695a),{'isReady':![],'mode':_0x2f2c29[_0x464a(0x3f)],'needsMigration':![],'trainingReady':![],'details':{'error':_0x42695a instanceof Error?_0x42695a['message']:_0x2f2c29[_0x464a(0x37)](String,_0x42695a)}};}};const showYouTubeMigrationPrompt=async()=>{const _0x5ef972={'DyksW':'YouTube\x20Connection\x20Upgrade','RcsXV':_0x464a(0x42),'Esoio':_0x464a(0x43),'ZnLyq':'cancel','IQTLO':_0x464a(0x44)};return new Promise(_0x1fd723=>{Alert[_0x464a(0x45)](_0x5ef972[_0x464a(0x46)],_0x5ef972[_0x464a(0x47)],[{'text':_0x5ef972[_0x464a(0x48)],'style':_0x5ef972['ZnLyq'],'onPress':()=>_0x1fd723(![])},{'text':_0x464a(0x49),'style':_0x5ef972[_0x464a(0x4a)],'onPress':()=>_0x1fd723(!![])}]);});},forceYouTubeReconnection=async _0x47306f=>{const _0x1f5ab2={'TPXGB':'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?','kUcZg':_0x464a(0x43),'QfASX':_0x464a(0x4b),'ypkzm':_0x464a(0x49),'jmnIJ':_0x464a(0x44),'JRKpV':_0x464a(0x4c),'pbEvz':_0x464a(0x4d),'TaLuK':function(_0x535f0b,_0xf98c1e){return _0x535f0b===_0xf98c1e;},'jIkfy':function(_0x35b20c,_0x58d4c6){return _0x35b20c===_0x58d4c6;},'lfOwS':'🔍\x20YouTube\x20migration\x20check:','jkjSI':function(_0x6666d1,_0x1fc545){return _0x6666d1===_0x1fc545;},'OhObU':'🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','hQiaH':_0x464a(0xc),'UPQiB':'🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','NMfPb':'✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','oDyXA':_0x464a(0x33),'VmmwR':_0x464a(0x3e),'FrkLY':'✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','QojUX':'YouTube\x20Connection\x20Upgrade','ObcjJ':_0x464a(0xf),'uJlac':function(_0x3926c5,_0x1dfa3e){return _0x3926c5!==_0x1dfa3e;},'BOeac':_0x464a(0x4e),'dNiEU':_0x464a(0x4f),'GcfrU':'BnWjk','kZsVu':_0x464a(0x50),'GnPoy':_0x464a(0x51),'TSvlM':'FGSvq','pimJV':_0x464a(0x52),'HkFGx':function(_0x470fdf,_0x3d53ac){return _0x470fdf!==_0x3d53ac;},'TVEuK':function(_0xa4b5f9,_0x321a89){return _0xa4b5f9!==_0x321a89;},'TQYMc':function(_0x33391b,_0x234da1){return _0x33391b===_0x234da1;},'cTGRK':'hcAVc','MBfYi':'Current\x20user\x20server\x20auth\x20code','KLmSV':_0x464a(0x53),'Mprhp':function(_0x3dafd3,_0x399cfe){return _0x3dafd3===_0x399cfe;},'zuWgd':_0x464a(0x54),'AVLRN':_0x464a(0x55),'AnCPd':_0x464a(0x56),'ZRQyE':_0x464a(0x57),'gjWrT':function(_0x50f02e,_0x5e86a0){return _0x50f02e+_0x5e86a0;},'GROPW':_0x464a(0x58),'VAXqo':_0x464a(0x59),'Vefts':_0x464a(0x5a),'rmtpv':'enoch_token','tHCiw':'auth_token','OeuEX':_0x464a(0x5b),'DbDup':_0x464a(0x5c),'dENmx':'migration_token_placeholder','HPQWz':_0x464a(0x5d),'TBEoU':function(_0x2f0967,_0x44e989){return _0x2f0967===_0x44e989;},'NGaaX':_0x464a(0x5e),'mxysl':function(_0x33d284,_0x38c742){return _0x33d284===_0x38c742;},'RWWub':_0x464a(0x5f),'BEtxH':function(_0x4c163a,_0x20a649,_0x418c01){return _0x4c163a(_0x20a649,_0x418c01);},'cLvRg':_0x464a(0x60),'GnrPX':_0x464a(0x61),'dgGPB':'gVRxz','jxXgV':_0x464a(0x62),'ozSCI':function(_0x479d5f,_0x42f18f,_0x5b29aa){return _0x479d5f(_0x42f18f,_0x5b29aa);},'YTWRR':function(_0xb0d513,_0x1b9b87,_0x55b20e,_0x22b1af){return _0xb0d513(_0x1b9b87,_0x55b20e,_0x22b1af);},'zXfMN':function(_0x253c14,_0x1f64d6){return _0x253c14===_0x1f64d6;},'xACSA':_0x464a(0x63),'rMMrz':'❌\x20YouTube\x20migration\x20failed:','JOdNa':function(_0x295572,_0x1f7a40,_0x5737a5,_0x3e8b5b){return _0x295572(_0x1f7a40,_0x5737a5,_0x3e8b5b);},'xvKWl':function(_0x18b325,_0x235216){return _0x18b325 instanceof _0x235216;},'nzJBw':_0x464a(0x64)};try{if(_0x1f5ab2[_0x464a(0x65)]('xgNmQ','QRwnp')){var _0x35e93c,_0x2133b6,_0x4128fb,_0x6034b6;console[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x66)],_0x47306f),configureGoogleSignInForRefreshTokens(),await GoogleSignin[_0x464a(0x67)](),console['log'](_0x1f5ab2['dNiEU']);try{if(_0x1f5ab2[_0x464a(0x68)](_0x464a(0x69),_0x1f5ab2['GcfrU']))return new _0x1ad467(_0x2a2043=>{Alert['alert'](_0x464a(0x6a),_0x1f5ab2['TPXGB'],[{'text':_0x1f5ab2[_0x464a(0x6b)],'style':_0x1f5ab2[_0x464a(0x6c)],'onPress':()=>_0x2a2043(![])},{'text':_0x1f5ab2['ypkzm'],'style':_0x1f5ab2[_0x464a(0x6d)],'onPress':()=>_0x2a2043(!![])}]);});else{const _0x43b336=await GoogleSignin['getTokens']();_0x43b336['accessToken']&&(await GoogleSignin[_0x464a(0x6e)](_0x43b336[_0x464a(0x6f)]),console[_0x464a(0x24)](_0x1f5ab2['kZsVu']));}}catch(_0x296380){console['log'](_0x464a(0x70));}await GoogleSignin[_0x464a(0x71)](),console[_0x464a(0x24)](_0x464a(0x72));const _0x429e90=await GoogleSignin[_0x464a(0x73)](),_0x265b26=await GoogleSignin['getTokens'](),_0xe49d97=await GoogleSignin[_0x464a(0x74)]();let _0x5381ea=null,_0x36484f=_0x1f5ab2[_0x464a(0x75)];if(_0x429e90['serverAuthCode']){if(_0x1f5ab2[_0x464a(0x76)](_0x464a(0x77),_0x1f5ab2[_0x464a(0x78)]))return Alert[_0x464a(0x45)](_0x1f5ab2[_0x464a(0x79)],_0x1f5ab2['pbEvz'],[{'text':'OK','style':_0x1f5ab2[_0x464a(0x6d)]}]),![];else _0x5381ea=_0x429e90[_0x464a(0x7a)],_0x36484f=_0x1f5ab2[_0x464a(0x7b)];}else{if(_0x1f5ab2[_0x464a(0x7c)](_0xe49d97,null)&&_0x1f5ab2['TVEuK'](_0xe49d97,void 0x0)&&_0xe49d97[_0x464a(0x7a)]){if(_0x1f5ab2[_0x464a(0x7d)](_0x1f5ab2[_0x464a(0x7e)],_0x464a(0x7f)))_0x5381ea=_0xe49d97['serverAuthCode'],_0x36484f=_0x1f5ab2[_0x464a(0x80)];else{var _0x53c7cb,_0x193a49,_0x4d1b38;const _0x562d39=((_0x53c7cb=_0x2d7340['validation'])===null||_0x1f5ab2[_0x464a(0x68)](_0x53c7cb,void 0x0)?void 0x0:_0x53c7cb[_0x464a(0x17)])===!![]||_0x1f5ab2[_0x464a(0x68)](_0x1f5ab2[_0x464a(0x76)](_0x193a49=_0x5c5901[_0x464a(0x18)],null)||_0x193a49===void 0x0?void 0x0:_0x193a49[_0x464a(0x1a)],!![])||_0x1f5ab2[_0x464a(0x76)](_0x5a23dd[_0x464a(0x17)],!![])||_0x51c34f[_0x464a(0x1c)]&&_0x5419b4[_0x464a(0x1c)][_0x464a(0x1d)](_0x464a(0xa)),_0x1cb6b4=_0x172023[_0x464a(0x15)]['needsReconnection'],_0x2f9e3e=_0x2ed936['validation'][_0x464a(0x1f)];_0x5eec61[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x81)],{'username':_0x48320d,'needsReconnection':_0x1cb6b4,'hasRefreshToken':_0x2f9e3e,'isTemporaryMode':_0x562d39,'temporaryModeEnabled':_0x1f5ab2[_0x464a(0x68)](_0x4d1b38=_0x521f8a[_0x464a(0x18)],null)||_0x1f5ab2[_0x464a(0x82)](_0x4d1b38,void 0x0)?void 0x0:_0x4d1b38[_0x464a(0x1a)],'message':_0x2d99df[_0x464a(0x1c)]});if(_0x562d39)return _0x3ff76c[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x83)]),_0x393003[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x84)]),![];else return _0x1cb6b4?(_0x587cf3[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x85)]),!![]):(_0x1c6901[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x86)]),![]);}}}console[_0x464a(0x24)]('🔍\x20Token\x20Analysis:',{'hasAccessToken':!!_0x265b26[_0x464a(0x6f)],'hasIdToken':!!_0x265b26[_0x464a(0x87)],'hasServerAuthCode':!!_0x429e90[_0x464a(0x7a)],'hasCurrentUserAuthCode':!!(_0xe49d97!==null&&_0xe49d97!==void 0x0&&_0xe49d97[_0x464a(0x7a)]),'refreshTokenSource':_0x36484f,'finalRefreshToken':_0x5381ea?_0x464a(0x88):_0x1f5ab2[_0x464a(0x89)],'userEmail':(_0x35e93c=_0x429e90[_0x464a(0x8a)])===null||_0x1f5ab2[_0x464a(0x8b)](_0x35e93c,void 0x0)?void 0x0:_0x35e93c['email']});if(!_0x5381ea){const _0x237f67='5|3|0|1|2|4'[_0x464a(0x8c)]('|');let _0x1a51c3=0x0;while(!![]){switch(_0x237f67[_0x1a51c3++]){case'0':console['error'](_0x464a(0x8d));continue;case'1':console[_0x464a(0x2d)](_0x1f5ab2['zuWgd']);continue;case'2':console['error'](_0x1f5ab2[_0x464a(0x8e)]);continue;case'3':console['error'](_0x1f5ab2[_0x464a(0x8f)]);continue;case'4':return![];case'5':console['error']('❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect');continue;}break;}}console[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x90)],_0x1f5ab2[_0x464a(0x91)](_0x5381ea[_0x464a(0x92)](0x0,0x14),_0x1f5ab2[_0x464a(0x93)])),console[_0x464a(0x24)](_0x1f5ab2[_0x464a(0x94)],_0x36484f);let _0x48f0d1=await AsyncStorage['getItem'](_0x1f5ab2[_0x464a(0x95)])||await AsyncStorage[_0x464a(0x96)](_0x1f5ab2[_0x464a(0x97)])||await AsyncStorage['getItem'](_0x1f5ab2[_0x464a(0x98)]);if(!_0x48f0d1){if(_0x1f5ab2['OeuEX']!==_0x1f5ab2[_0x464a(0x99)])return _0x429598[_0x464a(0x24)](_0x1f5ab2['oDyXA']),{'isReady':![],'mode':_0x1f5ab2[_0x464a(0x9a)],'needsMigration':!![],'trainingReady':![],'details':_0xab2f5};else console[_0x464a(0x9b)](_0x1f5ab2[_0x464a(0x9c)]),_0x48f0d1=_0x1f5ab2[_0x464a(0x9d)];}const _0x2563b6={'session':{'username':_0x47306f,'platform':_0x1f5ab2[_0x464a(0x9e)],'channelName':(_0x1f5ab2[_0x464a(0x9f)](_0x2133b6=_0x429e90[_0x464a(0x8a)],null)||_0x1f5ab2[_0x464a(0x68)](_0x2133b6,void 0x0)?void 0x0:_0x2133b6[_0x464a(0xa0)])||_0x1f5ab2[_0x464a(0xa1)],'channelId':null},'googleUser':_0x429e90[_0x464a(0x8a)],'accessToken':_0x265b26['accessToken'],'idToken':_0x265b26['idToken'],'refreshToken':_0x5381ea,'serverAuthCode':_0x429e90[_0x464a(0x7a)],'userAccountInfo':{'username':_0x47306f,'email':_0x1f5ab2['mxysl'](_0x4128fb=_0x429e90[_0x464a(0x8a)],null)||_0x1f5ab2['TBEoU'](_0x4128fb,void 0x0)?void 0x0:_0x4128fb[_0x464a(0x4)],'authToken':_0x48f0d1,'channelName':(_0x1f5ab2[_0x464a(0x68)](_0x6034b6=_0x429e90[_0x464a(0x8a)],null)||_0x1f5ab2[_0x464a(0x7d)](_0x6034b6,void 0x0)?void 0x0:_0x6034b6[_0x464a(0xa0)])||_0x1f5ab2['NGaaX'],'channelId':null}};console[_0x464a(0x24)](_0x1f5ab2[_0x464a(0xa2)]);const _0x3e09e1=await _0x1f5ab2['BEtxH'](fetch,API_CONFIG[_0x464a(0x10)]+'/youtube/native-auth',{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0x1f5ab2[_0x464a(0xa3)],..._0x48f0d1!==_0x1f5ab2[_0x464a(0x9d)]&&{'Authorization':_0x464a(0xa4)+_0x48f0d1}},'body':JSON[_0x464a(0xa5)](_0x2563b6)}),_0x516c8d=await _0x3e09e1[_0x464a(0x12)]();return _0x516c8d[_0x464a(0x13)]?_0x1f5ab2[_0x464a(0xa6)]===_0x1f5ab2[_0x464a(0xa7)]?(_0x3e4e59[_0x464a(0x24)](_0x464a(0xa8)),_0x40d159[_0x464a(0x24)](_0x1f5ab2['FrkLY']),{'isReady':!![],'mode':'temporary','needsMigration':![],'trainingReady':!![],'details':_0x218850}):(console['log'](_0x1f5ab2[_0x464a(0xa9)]),await _0x1f5ab2[_0x464a(0xaa)](trackMigrationAttempt,_0x47306f,!![]),!![]):(console[_0x464a(0x2d)]('❌\x20Backend\x20rejected\x20YouTube\x20migration:',_0x516c8d[_0x464a(0x2d)]),await _0x1f5ab2['YTWRR'](trackMigrationAttempt,_0x47306f,![],_0x516c8d[_0x464a(0x2d)]),![]);}else Alert['alert'](_0x1f5ab2[_0x464a(0xab)],_0x1f5ab2[_0x464a(0xac)],[{'text':_0x464a(0x43),'style':_0x1f5ab2[_0x464a(0x6c)],'onPress':()=>_0x4336ea(![])},{'text':_0x1f5ab2[_0x464a(0xad)],'style':_0x1f5ab2[_0x464a(0x6d)],'onPress':()=>_0xfc85a4(!![])}]);}catch(_0x18c049){return _0x1f5ab2[_0x464a(0xae)](_0x1f5ab2[_0x464a(0xaf)],_0x1f5ab2[_0x464a(0xaf)])?(console[_0x464a(0x2d)](_0x1f5ab2[_0x464a(0xb0)],_0x18c049),await _0x1f5ab2['JOdNa'](trackMigrationAttempt,_0x47306f,![],_0x1f5ab2[_0x464a(0xb1)](_0x18c049,Error)?_0x18c049[_0x464a(0x1c)]:_0x1f5ab2[_0x464a(0xb2)]),![]):(_0xed7e16['error'](_0x1f5ab2[_0x464a(0xb3)],_0x5d0d29),![]);}},trackMigrationAttempt=async(_0x2097dd,_0x2e2392,_0x28a16a)=>{const _0xd824ea={'Qhngk':_0x464a(0xe),'qJTqW':function(_0x290820,_0xe281ef,_0x2ba6c2){return _0x290820(_0xe281ef,_0x2ba6c2);},'cXoMc':function(_0x30940d,_0x419e35){return _0x30940d!==_0x419e35;},'iqXTX':_0x464a(0xb4)};try{await _0xd824ea[_0x464a(0xb5)](fetch,API_CONFIG[_0x464a(0x10)]+_0x464a(0xb6),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x464a(0xa5)]({'username':_0x2097dd,'success':_0x2e2392,'error':_0x28a16a||null,'timestamp':new Date()[_0x464a(0xb7)]()})});}catch(_0x5f4004){if(_0xd824ea[_0x464a(0xb8)]('dqHbE',_0xd824ea[_0x464a(0xb9)]))console['error'](_0x464a(0xba),_0x5f4004);else return _0x1f15d2[_0x464a(0x24)](_0xd824ea[_0x464a(0xbb)]),![];}};export const shouldShowYouTubeMigrationWarning=async _0x164d65=>{const _0x2df9c6={'DmUbM':function(_0x429522,_0xb9b122){return _0x429522===_0xb9b122;},'BWnuv':function(_0x2d4307,_0x59baca){return _0x2d4307===_0x59baca;},'Qwztm':function(_0x3fd454,_0x8ddf6f){return _0x3fd454===_0x8ddf6f;},'sgTAi':function(_0x4c796c,_0x1b2ce2){return _0x4c796c===_0x1b2ce2;},'Vbcml':function(_0x354459,_0x3693e4){return _0x354459===_0x3693e4;},'IoPUs':function(_0x19de11,_0x28a0f3){return _0x19de11===_0x28a0f3;},'eblmv':function(_0x5425d0,_0x2a14bf){return _0x5425d0===_0x2a14bf;},'sHzNe':_0x464a(0xbc),'NSELk':function(_0x39ce4c,_0x3c6dd9){return _0x39ce4c&&_0x3c6dd9;},'czcGy':_0x464a(0x2e),'EOnmF':function(_0x4dc972,_0x16da15){return _0x4dc972(_0x16da15);},'zJkov':function(_0x8fd004,_0x42ca71){return _0x8fd004===_0x42ca71;},'DzMEO':function(_0x23127d,_0x4bd4c5){return _0x23127d===_0x4bd4c5;},'tVIAe':function(_0x3015e2,_0x5817a3){return _0x3015e2===_0x5817a3;},'wqJxv':function(_0x438a7c,_0x43471a){return _0x438a7c===_0x43471a;},'wyMjl':_0x464a(0xbd),'XoIlw':function(_0xbbf339,_0x516c5c){return _0xbbf339!==_0x516c5c;},'IeATB':_0x464a(0xbe),'sABYj':_0x464a(0xbf),'jViit':'wKaPj','UBpMp':_0x464a(0xc0),'riYBn':_0x464a(0xc1),'dvLNi':function(_0x56ee2a,_0xa63a1a){return _0x56ee2a!==_0xa63a1a;},'ECnwH':_0x464a(0xc2),'CfwPZ':'❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:'};try{console['log']('🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:',_0x164d65);const _0x10b501=await _0x2df9c6[_0x464a(0xc3)](fetch,API_CONFIG[_0x464a(0x10)]+_0x464a(0x11)+_0x164d65),_0x53e74b=await _0x10b501[_0x464a(0x12)]();if(_0x53e74b['success']&&_0x53e74b[_0x464a(0x15)]){var _0x3ab32c,_0xbdc0aa;const _0x346ad3=(_0x2df9c6[_0x464a(0xc4)](_0x3ab32c=_0x53e74b['validation'],null)||_0x2df9c6[_0x464a(0xc5)](_0x3ab32c,void 0x0)?void 0x0:_0x3ab32c[_0x464a(0x17)])===!![]||_0x2df9c6['tVIAe'](_0x2df9c6[_0x464a(0xc6)](_0xbdc0aa=_0x53e74b['temporaryMode'],null)||_0xbdc0aa===void 0x0?void 0x0:_0xbdc0aa[_0x464a(0x1a)],!![])||_0x2df9c6['DzMEO'](_0x53e74b[_0x464a(0x17)],!![]),_0x1ec49d=_0x2df9c6['wqJxv'](_0x53e74b[_0x464a(0x15)]['hasAccessToken'],!![]),_0x3c6174=_0x53e74b[_0x464a(0x15)][_0x464a(0x1f)]===!![],_0x1a02d8=_0x2df9c6[_0x464a(0xc7)](_0x53e74b[_0x464a(0x15)][_0x464a(0x1e)],!![]);console[_0x464a(0x24)](_0x2df9c6['wyMjl'],{'username':_0x164d65,'hasAccessToken':_0x1ec49d,'hasRefreshToken':_0x3c6174,'needsReconnection':_0x1a02d8,'isTemporaryMode':_0x346ad3,'connectedAt':_0x53e74b['validation'][_0x464a(0xc8)]});if(_0x346ad3){if(_0x2df9c6['XoIlw'](_0x2df9c6[_0x464a(0xc9)],_0x2df9c6[_0x464a(0xc9)])){var _0x245522,_0x539cf1;const _0x58b3b3=_0x2df9c6[_0x464a(0xca)](_0x2df9c6[_0x464a(0xc6)](_0x245522=_0x2f01cb[_0x464a(0x15)],null)||_0x2df9c6[_0x464a(0xcb)](_0x245522,void 0x0)?void 0x0:_0x245522[_0x464a(0x17)],!![])||_0x2df9c6[_0x464a(0xcc)]((_0x539cf1=_0xc2b417[_0x464a(0x18)])===null||_0x2df9c6[_0x464a(0xcd)](_0x539cf1,void 0x0)?void 0x0:_0x539cf1[_0x464a(0x1a)],!![])||_0x2df9c6[_0x464a(0xce)](_0xc41a30['isTemporaryMode'],!![]),_0x14707c=_0x2df9c6[_0x464a(0xcb)](_0x587017[_0x464a(0x15)][_0x464a(0xcf)],!![]),_0x5305f2=_0x2df9c6['eblmv'](_0x41f78c[_0x464a(0x15)]['hasRefreshToken'],!![]),_0x59898c=_0x57c196['validation'][_0x464a(0x1e)]===!![];_0x32b80d[_0x464a(0x24)]('📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:',{'username':_0x32b32e,'hasAccessToken':_0x14707c,'hasRefreshToken':_0x5305f2,'needsReconnection':_0x59898c,'isTemporaryMode':_0x58b3b3,'connectedAt':_0x5dbfcd[_0x464a(0x15)]['connectedAt']});if(_0x58b3b3)return _0x47fd72[_0x464a(0x24)](_0x2df9c6['sHzNe']),![];else return _0x2df9c6[_0x464a(0xd0)](_0x14707c,!_0x5305f2)&&_0x59898c?(_0x3c9d5a['log'](_0x2df9c6[_0x464a(0xd1)]),!![]):(_0x2a141a[_0x464a(0x24)](_0x464a(0xc0)),![]);}else return console[_0x464a(0x24)](_0x464a(0xbc)),![];}else return _0x1ec49d&&!_0x3c6174&&_0x1a02d8?(console['log'](_0x464a(0x2e)),!![]):_0x2df9c6['eblmv'](_0x2df9c6[_0x464a(0xd2)],_0x2df9c6[_0x464a(0xd3)])?(_0x33c0c5[_0x464a(0x24)](_0x464a(0xd4)),!![]):(console['log'](_0x2df9c6[_0x464a(0xd5)]),![]);}return console[_0x464a(0x24)](_0x2df9c6[_0x464a(0xd6)]),![];}catch(_0x42a9c2){if(_0x2df9c6[_0x464a(0xd7)](_0x2df9c6[_0x464a(0xd8)],'nFamn'))_0x3825d2[_0x464a(0x24)](_0x464a(0x70));else return console[_0x464a(0x2d)](_0x2df9c6[_0x464a(0xd9)],_0x42a9c2),![];}};export const checkAndFixYouTubeConnection=async _0x27d806=>{const _0x32d253={'IKhxm':_0x464a(0x31),'ujmTy':_0x464a(0x32),'bAhgQ':function(_0x98eedb,_0x479fd1){return _0x98eedb(_0x479fd1);},'xwtdW':_0x464a(0x8),'INQwa':'cFeKz','XQsgn':_0x464a(0xd4),'FTuHg':_0x464a(0xda),'nBwXg':_0x464a(0xdb),'mpVeV':'Great!','RxeEB':'default','ulhoL':_0x464a(0x4c)};try{console[_0x464a(0x24)](_0x464a(0xdc),_0x27d806);const _0x134743=await _0x32d253[_0x464a(0xdd)](shouldShowYouTubeMigrationWarning,_0x27d806);if(!_0x134743)return console[_0x464a(0x24)](_0x32d253[_0x464a(0xde)]),console['log'](_0x464a(0x9)),!![];const _0x4a50d9=await checkYouTubeMigrationNeeded(_0x27d806);if(!_0x4a50d9)return _0x32d253[_0x464a(0xdf)]===_0x32d253[_0x464a(0xdf)]?(console[_0x464a(0x24)](_0x32d253[_0x464a(0xe0)]),!![]):(_0x5915ca[_0x464a(0x24)](_0x32d253[_0x464a(0xe1)]),{'isReady':!![],'mode':_0x32d253[_0x464a(0xe2)],'needsMigration':![],'trainingReady':!![],'details':_0x35402c});console[_0x464a(0x24)](_0x32d253[_0x464a(0xe3)]);const _0x17379b=await showYouTubeMigrationPrompt();if(!_0x17379b)return console[_0x464a(0x24)](_0x32d253[_0x464a(0xe4)]),![];const _0x6201cb=await _0x32d253[_0x464a(0xdd)](forceYouTubeReconnection,_0x27d806);return _0x6201cb?(Alert['alert']('YouTube\x20Upgraded!\x20✅',_0x464a(0xe5),[{'text':_0x32d253[_0x464a(0xe6)],'style':_0x32d253[_0x464a(0xe7)]}]),!![]):(Alert['alert'](_0x32d253[_0x464a(0xe8)],'YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.',[{'text':'OK','style':_0x32d253[_0x464a(0xe7)]}]),![]);}catch(_0x3cd5fa){return console['error']('❌\x20Error\x20in\x20YouTube\x20connection\x20check:',_0x3cd5fa),![];}};export const reconnectYouTube=async _0x2e94b1=>{return console[_0x464a(0x24)]('🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:',_0x2e94b1),await forceYouTubeReconnection(_0x2e94b1);};
|
|
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
|
-
import{Platform}from'react-native';
|
|
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
|
-
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'];
|
|
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
|
-
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)};export const getPlatformIconFromRegistry=
|
|
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';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const
|
|
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};}};
|