@onairos/react-native 3.7.1 → 3.7.2
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/assets/icons/spotify.png +0 -0
- package/lib/commonjs/assets/images/spotify.png +0 -0
- 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/netflixDataExtractor.js +1 -1
- package/lib/commonjs/services/netflixDataService.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/spotifyDataExtractor.js +1 -1
- package/lib/commonjs/services/spotifyDataService.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/netflix.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/spotify.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/assets/icons/spotify.png +0 -0
- package/lib/module/assets/images/spotify.png +0 -0
- 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/netflixDataExtractor.js +1 -1
- package/lib/module/services/netflixDataService.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/spotifyDataExtractor.js +1 -1
- package/lib/module/services/spotifyDataService.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/netflix.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/spotify.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +1 -1
|
@@ -25,4 +25,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
25
25
|
require(`../services/${platform}DataExtractor`)
|
|
26
26
|
];
|
|
27
27
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
28
|
-
function _0x53a5(_0x218a36,_0x53a535){_0x218a36=_0x218a36-0x0;const _0x5442cf=_0x218a();let _0x2bfe86=_0x5442cf[_0x218a36];return _0x2bfe86;}import{API_CONFIG}from'../config/api';export const testWebViewScriptExports=()=>{const _0xd8262c={'dXXdc':function(_0x2fa734,_0x4f825a){return _0x2fa734(_0x4f825a);},'PBmfu':_0x53a5(0x0),'XoErs':'extractor','bViDm':function(_0x55caf3,_0x235303){return _0x55caf3===_0x235303;},'PaswK':_0x53a5(0x1),'yqJTB':_0x53a5(0x2),'gitVq':'FfSRF','GKpPt':_0x53a5(0x3),'AcLkO':_0x53a5(0x4),'FXTKk':'ChatGPT\x20scripts\x20missing','DZFoj':'claude','TSWZS':_0x53a5(0x5),'sGZws':_0x53a5(0x6),'KDvQs':_0x53a5(0x7),'ZJLLQ':_0x53a5(0x8),'GVnpa':function(_0x40691e,_0x334cbd){return _0x40691e(_0x334cbd);},'GHLlB':'instagram','dUYTv':_0x53a5(0x9),'rpins':_0x53a5(0xa),'lTajN':function(_0x49d25f,_0x1d77fb){return _0x49d25f(_0x1d77fb);},'gIxdN':_0x53a5(0xb),'MplIX':'Sephora\x20scripts\x20missing','ZzPGb':_0x53a5(0xc),'kdUgy':'Telegram\x20scripts\x20exported\x20correctly','EYKnq':_0x53a5(0xd),'zHhSq':_0x53a5(0xe),'zBKeC':_0x53a5(0xf),'HuRdr':function(_0x19dddb,_0x410d53){return _0x19dddb&&_0x410d53;},'ZKHfC':'Platform\x20detection\x20functions\x20available','eUDSq':'all'},_0x3aa9e6=[];try{if(_0x53a5(0x10)!==_0xd8262c[_0x53a5(0x11)]){const {CHATGPT_CONSENT_POPUP_SCRIPT:_0x2b79de,CHATGPT_EXPORT_SCRIPT:_0x19625b}=__ONAIROS_REQ_FUNC__(0x13);_0x3aa9e6['push']({'platform':'chatgpt','component':_0xd8262c[_0x53a5(0x12)],'status':_0x19625b?_0x53a5(0x5):_0xd8262c[_0x53a5(0x13)],'message':_0x19625b?_0xd8262c['AcLkO']:_0xd8262c[_0x53a5(0x14)]});const {CLAUDE_CONSENT_POPUP_SCRIPT:_0x343c53,CLAUDE_EXPORT_SCRIPT:_0x48a752}=__ONAIROS_REQ_FUNC__(0x12);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x16)],'component':_0xd8262c[_0x53a5(0x12)],'status':_0x48a752?_0xd8262c[_0x53a5(0x17)]:_0xd8262c[_0x53a5(0x13)],'message':_0x48a752?_0xd8262c[_0x53a5(0x18)]:_0xd8262c[_0x53a5(0x19)]});const {HINGE_CONSENT_POPUP_SCRIPT:_0x4c3f47,HINGE_EXPORT_SCRIPT:_0x161afd}=_0xd8262c[_0x53a5(0x1a)](__ONAIROS_REQ_FUNC__,0x11);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0x53a5(0x0),'component':_0xd8262c[_0x53a5(0x12)],'status':_0x161afd?_0xd8262c[_0x53a5(0x17)]:_0xd8262c[_0x53a5(0x13)],'message':_0x161afd?_0xd8262c[_0x53a5(0x1b)]:_0x53a5(0x1c)});const {INSTAGRAM_CONSENT_POPUP_SCRIPT:_0x4e4f1a,INSTAGRAM_EXPORT_SCRIPT:_0x5dd1dd}=_0xd8262c[_0x53a5(0x1d)](__ONAIROS_REQ_FUNC__,0x6);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x1e)],'component':_0xd8262c['GKpPt'],'status':_0x5dd1dd?_0xd8262c[_0x53a5(0x17)]:_0xd8262c[_0x53a5(0x13)],'message':_0x5dd1dd?_0xd8262c[_0x53a5(0x1f)]:_0xd8262c[_0x53a5(0x20)]});const {SEPHORA_CONSENT_POPUP_SCRIPT:_0x3577f4,SEPHORA_EXPORT_SCRIPT:_0x52c7a7}=_0xd8262c[_0x53a5(0x21)](__ONAIROS_REQ_FUNC__,0x5);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x22)],'component':_0xd8262c[_0x53a5(0x12)],'status':_0x52c7a7?_0xd8262c[_0x53a5(0x17)]:_0xd8262c[_0x53a5(0x13)],'message':_0x52c7a7?_0x53a5(0x23):_0xd8262c['MplIX']});const {TELEGRAM_CONSENT_POPUP_SCRIPT:_0x368199,TELEGRAM_EXPORT_SCRIPT:_0x43710e}=_0xd8262c['dXXdc'](__ONAIROS_REQ_FUNC__,0x4);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x24)],'component':_0xd8262c['GKpPt'],'status':_0x43710e?'pass':_0xd8262c['yqJTB'],'message':_0x43710e?_0xd8262c[_0x53a5(0x25)]:_0xd8262c[_0x53a5(0x26)]});const {isWebViewExtractionPlatform:_0x25963f,isHingePlatform:_0xecf2e2,isInstagramPlatform:_0x59c459,isSephoraPlatform:_0x1c2f88,isTelegramPlatform:_0x475463}=_0xd8262c[_0x53a5(0x1d)](__ONAIROS_REQ_FUNC__,0x3);_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c['zHhSq'],'component':_0xd8262c[_0x53a5(0x27)],'status':_0xd8262c[_0x53a5(0x28)](_0x25963f,_0xecf2e2)&&_0x59c459&&_0x1c2f88&&_0x475463?_0xd8262c['TSWZS']:_0x53a5(0x2),'message':_0xd8262c[_0x53a5(0x29)]});}else{const {useHingeDataExtractor:useHingeDataExtractor}=_0xd8262c[_0x53a5(0x1a)](_0x52fc05,0xd);_0x44dab6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x2a)],'component':_0xd8262c[_0x53a5(0x2b)],'status':_0xd8262c[_0x53a5(0x2c)](typeof useHingeDataExtractor,_0xd8262c[_0x53a5(0x2d)])?_0x53a5(0x5):_0xd8262c[_0x53a5(0x13)],'message':'Hinge\x20extractor\x20hook\x20available'});}}catch(_0x58da46){_0x3aa9e6[_0x53a5(0x15)]({'platform':_0xd8262c[_0x53a5(0x2e)],'component':_0xd8262c['GKpPt'],'status':_0xd8262c[_0x53a5(0x13)],'message':_0x53a5(0x2f)+_0x58da46[_0x53a5(0x30)]});}return _0x3aa9e6;};export const testServiceImports=()=>{const _0x60ad44={'YoJIc':_0x53a5(0x31),'JIDMO':function(_0x5f2e3a,_0x25b954){return _0x5f2e3a===_0x25b954;},'CnVKY':_0x53a5(0x1),'lhbQG':_0x53a5(0x2),'waSQw':_0x53a5(0x32),'LGwiR':function(_0xb9573a,_0x4fd396){return _0xb9573a(_0x4fd396);},'zjUUO':function(_0xdd5440,_0x2bfd28){return _0xdd5440===_0x2bfd28;},'KhlQr':_0x53a5(0x0),'MSgGQ':_0x53a5(0x33),'FWKGV':'storeInstagramData','wWsCm':function(_0x240061,_0x47d397){return _0x240061===_0x47d397;},'lLcrB':_0x53a5(0xc),'swJsz':'storeTelegramData','MhmCN':_0x53a5(0x34),'DXxdR':'❌\x20Some\x20tests\x20failed!\x20Please\x20check\x20the\x20errors\x20above.','EiURq':'sephora','zMleS':function(_0xa73814,_0x44f8c5){return _0xa73814===_0x44f8c5;},'JYQOr':_0x53a5(0x35),'AeNQD':_0x53a5(0x36),'XpYOt':function(_0x7fb60b,_0x47daaf){return _0x7fb60b(_0x47daaf);},'uuTcD':_0x53a5(0x37),'PPSuf':function(_0x1b754f,_0xeb3745){return _0x1b754f!==_0xeb3745;},'FXTgB':_0x53a5(0x38),'EEJvl':function(_0x24e7bc,_0x5e819f){return _0x24e7bc(_0x5e819f);},'oaArN':'claude','PeSGg':_0x53a5(0x5),'Mtdmp':_0x53a5(0x39),'oYWvf':_0x53a5(0x3a),'zvQZg':_0x53a5(0x3b),'EbEwE':function(_0x31b8fc,_0x2be51e){return _0x31b8fc===_0x2be51e;},'VUiFk':function(_0x1b271a,_0x569193){return _0x1b271a(_0x569193);},'gCgeF':_0x53a5(0x3c),'uDqQP':function(_0x9148f2,_0x46551a){return _0x9148f2===_0x46551a;},'WPOdd':_0x53a5(0x3d),'uplBA':function(_0x4a57fa,_0x48e9d1){return _0x4a57fa===_0x48e9d1;},'EipYN':'Sephora\x20service\x20function\x20available','xuolC':function(_0x1ac1ec,_0x935da){return _0x1ac1ec!==_0x935da;},'qmJgG':_0x53a5(0x3e),'ipGMA':_0x53a5(0x3f),'odAUU':function(_0x4f3732,_0x124e03){return _0x4f3732===_0x124e03;},'lOKpM':'PEjNX'},_0x4139d2=[];try{if(_0x60ad44[_0x53a5(0x40)](_0x60ad44[_0x53a5(0x41)],_0x60ad44[_0x53a5(0x42)])){const {storeInstagramData:_0x4ff83e}=_0x1824f5(0xa);_0x3cf3de[_0x53a5(0x15)]({'platform':_0x53a5(0x3c),'component':_0x60ad44[_0x53a5(0x43)],'status':_0x60ad44[_0x53a5(0x44)](typeof _0x4ff83e,_0x60ad44[_0x53a5(0x45)])?_0x53a5(0x5):_0x60ad44[_0x53a5(0x46)],'message':_0x60ad44['waSQw']});}else{const {storeChatGPTConversations:_0x4ba952}=_0x60ad44['XpYOt'](__ONAIROS_REQ_FUNC__,0x7);_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x47)],'component':_0x60ad44['YoJIc'],'status':_0x60ad44[_0x53a5(0x40)](typeof _0x4ba952,_0x60ad44[_0x53a5(0x45)])?_0x53a5(0x5):_0x60ad44[_0x53a5(0x46)],'message':_0x53a5(0x48)});}}catch(_0x35c48e){_0x4139d2[_0x53a5(0x15)]({'platform':'chatgpt','component':_0x60ad44['YoJIc'],'status':_0x60ad44[_0x53a5(0x46)],'message':_0x53a5(0x2f)+_0x35c48e[_0x53a5(0x30)]});}try{if(_0x60ad44[_0x53a5(0x49)](_0x60ad44[_0x53a5(0x4a)],_0x53a5(0x4b))){const {storeClaudeConversations:_0x512821}=_0x60ad44[_0x53a5(0x4c)](__ONAIROS_REQ_FUNC__,0x8);_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x4d)],'component':_0x53a5(0x31),'status':_0x60ad44[_0x53a5(0x4e)](typeof _0x512821,_0x60ad44[_0x53a5(0x45)])?_0x60ad44[_0x53a5(0x4f)]:_0x60ad44['lhbQG'],'message':_0x60ad44[_0x53a5(0x50)]});}else{const _0x3879ca=_0x60ad44[_0x53a5(0x51)](_0x33e9b8,0x14),_0x5dc723=_0x60ad44[_0x53a5(0x4e)](_0x5e036f,_0x60ad44[_0x53a5(0x52)])?_0x60ad44[_0x53a5(0x53)]:_0x5eb24c===_0x53a5(0x3c)?_0x60ad44['FWKGV']:_0x60ad44[_0x53a5(0x54)](_0x5d8811,_0x60ad44['lLcrB'])?_0x60ad44[_0x53a5(0x55)]:_0x60ad44[_0x53a5(0x56)];_0x5ece6d['push']({'platform':_0x4029c2,'component':_0x53a5(0x31),'status':_0x60ad44[_0x53a5(0x54)](typeof _0x3879ca[_0x5dc723],'function')?'pass':_0x60ad44['lhbQG'],'message':_0x53a5(0x57)+_0x5dc723+_0x53a5(0x58)});}}catch(_0x459b5b){_0x4139d2[_0x53a5(0x15)]({'platform':_0x53a5(0x59),'component':_0x60ad44['YoJIc'],'status':_0x60ad44[_0x53a5(0x46)],'message':_0x53a5(0x2f)+_0x459b5b[_0x53a5(0x30)]});}try{if(_0x60ad44[_0x53a5(0x49)](_0x60ad44[_0x53a5(0x5a)],_0x60ad44[_0x53a5(0x5b)])){const {storeHingeData:_0x2b8c4f}=__ONAIROS_REQ_FUNC__(0x9);_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x52)],'component':_0x60ad44[_0x53a5(0x43)],'status':_0x60ad44[_0x53a5(0x5c)](typeof _0x2b8c4f,_0x60ad44[_0x53a5(0x45)])?_0x60ad44[_0x53a5(0x4f)]:_0x60ad44[_0x53a5(0x46)],'message':_0x53a5(0x5d)});}else _0x9dfe05[_0x53a5(0x5e)](_0x53a5(0x5f));}catch(_0x104216){_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x52)],'component':_0x60ad44[_0x53a5(0x43)],'status':_0x53a5(0x2),'message':_0x53a5(0x2f)+_0x104216[_0x53a5(0x30)]});}try{const {storeInstagramData:_0x3601b9}=_0x60ad44[_0x53a5(0x60)](__ONAIROS_REQ_FUNC__,0xa);_0x4139d2['push']({'platform':_0x60ad44[_0x53a5(0x61)],'component':_0x60ad44['YoJIc'],'status':_0x60ad44[_0x53a5(0x5c)](typeof _0x3601b9,_0x60ad44[_0x53a5(0x45)])?_0x60ad44[_0x53a5(0x4f)]:_0x60ad44['lhbQG'],'message':_0x60ad44[_0x53a5(0x62)]});}catch(_0x568d4c){_0x60ad44['uDqQP'](_0x60ad44[_0x53a5(0x63)],_0x60ad44[_0x53a5(0x63)])?_0x4139d2['push']({'platform':_0x60ad44[_0x53a5(0x61)],'component':_0x60ad44[_0x53a5(0x43)],'status':_0x53a5(0x2),'message':_0x53a5(0x2f)+_0x568d4c[_0x53a5(0x30)]}):_0x1ccccc['push']({'platform':'hinge','component':_0x60ad44[_0x53a5(0x43)],'status':_0x60ad44[_0x53a5(0x46)],'message':'Import\x20error:\x20'+_0x2ce4a7['message']});}try{const {storeSephoraData:_0x53799b}=_0x60ad44[_0x53a5(0x60)](__ONAIROS_REQ_FUNC__,0xb);_0x4139d2['push']({'platform':_0x60ad44[_0x53a5(0x64)],'component':'service','status':_0x60ad44[_0x53a5(0x65)](typeof _0x53799b,_0x60ad44[_0x53a5(0x45)])?_0x60ad44[_0x53a5(0x4f)]:_0x60ad44[_0x53a5(0x46)],'message':_0x60ad44['EipYN']});}catch(_0x31c5e9){_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44['EiURq'],'component':_0x60ad44[_0x53a5(0x43)],'status':_0x53a5(0x2),'message':_0x53a5(0x2f)+_0x31c5e9[_0x53a5(0x30)]});}try{if(_0x60ad44[_0x53a5(0x66)](_0x60ad44['qmJgG'],_0x53a5(0x3e)))_0x55e1a9[_0x53a5(0x5e)](_0x60ad44[_0x53a5(0x67)]);else{const {storeTelegramData:_0x1e3747}=_0x60ad44[_0x53a5(0x60)](__ONAIROS_REQ_FUNC__,0xc);_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x68)],'component':_0x60ad44[_0x53a5(0x43)],'status':typeof _0x1e3747===_0x60ad44[_0x53a5(0x45)]?_0x60ad44[_0x53a5(0x4f)]:_0x60ad44[_0x53a5(0x46)],'message':_0x60ad44[_0x53a5(0x69)]});}}catch(_0x1ca73f){_0x60ad44[_0x53a5(0x6a)](_0x60ad44[_0x53a5(0x6b)],_0x60ad44[_0x53a5(0x6b)])?_0x4139d2[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x68)],'component':_0x60ad44[_0x53a5(0x43)],'status':_0x60ad44[_0x53a5(0x46)],'message':_0x53a5(0x2f)+_0x1ca73f[_0x53a5(0x30)]}):_0x441897[_0x53a5(0x15)]({'platform':_0x60ad44[_0x53a5(0x64)],'component':'service','status':_0x53a5(0x2),'message':'Import\x20error:\x20'+_0x96cca1[_0x53a5(0x30)]});}return _0x4139d2;};export const testExtractorImports=()=>{const _0x58520e={'JGqoY':function(_0x5dd332,_0x1e4f94){return _0x5dd332(_0x1e4f94);},'kIAvP':_0x53a5(0x37),'aGbSb':_0x53a5(0x31),'OdNBn':function(_0xcc8b9e,_0x56416c){return _0xcc8b9e===_0x56416c;},'JbRtW':_0x53a5(0x5),'wWQWT':_0x53a5(0x2),'ZMbrJ':'ChatGPT\x20service\x20function\x20available','WBiwd':_0x53a5(0x3),'CIXUn':_0x53a5(0x0),'fwoVj':_0x53a5(0x6c),'uNvsh':_0x53a5(0x6d),'AHtFO':function(_0x39635f,_0x141969){return _0x39635f!==_0x141969;},'DzSoj':_0x53a5(0x6e),'RlSbS':'DjXww','xkSyy':'function','WBmCP':_0x53a5(0x6f),'qFAtY':function(_0x1a9dce,_0x354de0){return _0x1a9dce===_0x354de0;},'aMCTW':_0x53a5(0x70),'zmskf':_0x53a5(0xb),'tsYGM':'Sephora\x20extractor\x20hook\x20available','oBoIp':function(_0x30c876,_0x288105){return _0x30c876(_0x288105);},'WOVcz':_0x53a5(0xc),'tmiWP':_0x53a5(0x71)},_0x3565a8=[];try{const {useHingeDataExtractor:useHingeDataExtractor}=_0x58520e[_0x53a5(0x72)](__ONAIROS_REQ_FUNC__,0xd);_0x3565a8[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x73)],'component':_0x58520e['fwoVj'],'status':_0x58520e[_0x53a5(0x74)](typeof useHingeDataExtractor,_0x53a5(0x1))?_0x58520e['JbRtW']:_0x58520e['wWQWT'],'message':_0x58520e[_0x53a5(0x75)]});}catch(_0x2ebfce){if(_0x58520e[_0x53a5(0x76)](_0x58520e[_0x53a5(0x77)],_0x58520e[_0x53a5(0x78)]))_0x3565a8['push']({'platform':_0x58520e[_0x53a5(0x73)],'component':_0x58520e[_0x53a5(0x79)],'status':_0x58520e[_0x53a5(0x7a)],'message':_0x53a5(0x2f)+_0x2ebfce[_0x53a5(0x30)]});else{const {storeChatGPTConversations:_0x356226}=_0x58520e['JGqoY'](_0x109755,0x7);_0x5762f3[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x7b)],'component':_0x58520e[_0x53a5(0x7c)],'status':_0x58520e[_0x53a5(0x74)](typeof _0x356226,'function')?_0x58520e['JbRtW']:_0x58520e[_0x53a5(0x7a)],'message':_0x58520e[_0x53a5(0x7d)]});}}try{const {useInstagramDataExtractor:useInstagramDataExtractor}=_0x58520e[_0x53a5(0x72)](__ONAIROS_REQ_FUNC__,0xe);_0x3565a8[_0x53a5(0x15)]({'platform':_0x53a5(0x3c),'component':'extractor','status':_0x58520e['OdNBn'](typeof useInstagramDataExtractor,_0x58520e['xkSyy'])?_0x58520e[_0x53a5(0x7e)]:_0x58520e[_0x53a5(0x7a)],'message':_0x58520e[_0x53a5(0x7f)]});}catch(_0x5b60c7){_0x58520e['qFAtY'](_0x58520e[_0x53a5(0x80)],_0x58520e[_0x53a5(0x80)])?_0x3565a8[_0x53a5(0x15)]({'platform':'instagram','component':_0x58520e[_0x53a5(0x79)],'status':_0x58520e[_0x53a5(0x7a)],'message':_0x53a5(0x2f)+_0x5b60c7[_0x53a5(0x30)]}):_0x1f3975['push']({'platform':_0x53a5(0x81),'component':_0x58520e[_0x53a5(0x82)],'status':_0x58520e[_0x53a5(0x7a)],'message':'Import\x20error:\x20'+_0xc10941[_0x53a5(0x30)]});}try{const {useSephoraDataExtractor:useSephoraDataExtractor}=__ONAIROS_REQ_FUNC__(0xf);_0x3565a8[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x83)],'component':'extractor','status':typeof useSephoraDataExtractor==='function'?_0x58520e[_0x53a5(0x7e)]:_0x58520e[_0x53a5(0x7a)],'message':_0x58520e[_0x53a5(0x84)]});}catch(_0x2dc69c){_0x3565a8[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x83)],'component':_0x58520e[_0x53a5(0x79)],'status':_0x58520e[_0x53a5(0x7a)],'message':_0x53a5(0x2f)+_0x2dc69c[_0x53a5(0x30)]});}try{const {useTelegramDataExtractor:useTelegramDataExtractor}=_0x58520e[_0x53a5(0x85)](__ONAIROS_REQ_FUNC__,0x10);_0x3565a8[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x86)],'component':_0x58520e['fwoVj'],'status':_0x58520e[_0x53a5(0x74)](typeof useTelegramDataExtractor,_0x58520e[_0x53a5(0x87)])?_0x58520e[_0x53a5(0x7e)]:_0x58520e['wWQWT'],'message':_0x58520e[_0x53a5(0x88)]});}catch(_0x513a2d){_0x3565a8[_0x53a5(0x15)]({'platform':_0x58520e[_0x53a5(0x86)],'component':_0x53a5(0x6c),'status':_0x58520e[_0x53a5(0x7a)],'message':_0x53a5(0x2f)+_0x513a2d[_0x53a5(0x30)]});}return _0x3565a8;};export const testBackendConnectivity=async()=>{const _0x18e47b={'yqkLW':_0x53a5(0xc),'CAfEb':_0x53a5(0x6c),'KcRPC':_0x53a5(0x2),'bJXik':function(_0x4cf942,_0x2ae8da,_0x507494){return _0x4cf942(_0x2ae8da,_0x507494);},'mGxoh':function(_0x1705fd,_0x4f4f52,_0x7be151){return _0x1705fd(_0x4f4f52,_0x7be151);},'QorDi':function(_0x174bf6,_0x5c2fb1){return _0x174bf6(_0x5c2fb1);},'JqSwk':_0x53a5(0x89),'aapXX':_0x53a5(0x5),'ZMgrl':_0x53a5(0x8a),'JlbwD':function(_0x3255a4,_0x232e83){return _0x3255a4===_0x232e83;},'oZDya':'DUpIB','rbORX':'backend','TmOsI':function(_0x551286,_0x557afb,_0x29aced){return _0x551286(_0x557afb,_0x29aced);},'cixtm':'warning','OHDVz':'platform_data_endpoint'},_0xc92be4=[];try{const _0x34af19=new AbortController(),_0x55a3e9=_0x18e47b['bJXik'](setTimeout,()=>_0x34af19['abort'](),0x2710),_0x4448f5=await _0x18e47b[_0x53a5(0x8b)](fetch,API_CONFIG[_0x53a5(0x8c)]+_0x53a5(0x8d),{'method':'GET','signal':_0x34af19['signal']});_0x18e47b[_0x53a5(0x8e)](clearTimeout,_0x55a3e9),_0xc92be4[_0x53a5(0x15)]({'platform':'backend','component':_0x18e47b[_0x53a5(0x8f)],'status':_0x4448f5['ok']?_0x18e47b[_0x53a5(0x90)]:_0x53a5(0x91),'message':_0x4448f5['ok']?_0x18e47b[_0x53a5(0x92)]:_0x53a5(0x93)+_0x4448f5['status'],'details':{'status':_0x4448f5[_0x53a5(0x94)]}});}catch(_0x19aeab){_0x18e47b[_0x53a5(0x95)](_0x53a5(0x96),_0x18e47b[_0x53a5(0x97)])?_0x1164fe[_0x53a5(0x15)]({'platform':_0x18e47b[_0x53a5(0x98)],'component':_0x18e47b[_0x53a5(0x99)],'status':_0x18e47b[_0x53a5(0x9a)],'message':_0x53a5(0x2f)+_0x507a9c[_0x53a5(0x30)]}):_0xc92be4[_0x53a5(0x15)]({'platform':_0x18e47b['rbORX'],'component':_0x18e47b[_0x53a5(0x8f)],'status':_0x18e47b[_0x53a5(0x9a)],'message':_0x53a5(0x9b)+_0x19aeab['message']});}try{const _0x1bbc10=new AbortController(),_0x5d9bb8=setTimeout(()=>_0x1bbc10[_0x53a5(0x9c)](),0x2710),_0x5eebe9=await _0x18e47b[_0x53a5(0x9d)](fetch,API_CONFIG[_0x53a5(0x8c)]+'/platform-data/store',{'method':'OPTIONS','signal':_0x1bbc10['signal']});_0x18e47b['QorDi'](clearTimeout,_0x5d9bb8),_0xc92be4[_0x53a5(0x15)]({'platform':_0x18e47b['rbORX'],'component':_0x53a5(0x9e),'status':_0x5eebe9[_0x53a5(0x94)]<0x1f4?_0x53a5(0x5):_0x18e47b[_0x53a5(0x9f)],'message':_0x53a5(0xa0)+_0x5eebe9[_0x53a5(0x94)],'details':{'status':_0x5eebe9[_0x53a5(0x94)]}});}catch(_0x1fdd1b){_0xc92be4['push']({'platform':_0x18e47b[_0x53a5(0xa1)],'component':_0x18e47b[_0x53a5(0xa2)],'status':_0x53a5(0x91),'message':'Endpoint\x20check\x20failed\x20(may\x20require\x20auth):\x20'+_0x1fdd1b[_0x53a5(0x30)]});}return _0xc92be4;};export const testPlatformDetection=()=>{const _0x1bb799={'zqZvt':function(_0x4e7425,_0x2b74a3){return _0x4e7425(_0x2b74a3);},'CqeYf':'service','CYKgQ':function(_0x508b0a,_0x5636ef){return _0x508b0a===_0x5636ef;},'lWwDs':_0x53a5(0x1),'DIxCw':'fail','XOmuJ':_0x53a5(0x3f),'jxIul':function(_0x435e08,_0x3f6522){return _0x435e08(_0x3f6522);},'qpbVL':function(_0x421192,_0x25651a){return _0x421192+_0x25651a;},'vcckd':function(_0x1d911f,_0x30f028){return _0x1d911f!==_0x30f028;},'necKK':'dWueZ','MeLJr':_0x53a5(0xa3),'luchU':_0x53a5(0x0),'TXFrG':function(_0x3ddd28,_0x78003f){return _0x3ddd28(_0x78003f);},'ZLipi':_0x53a5(0xa4),'mgdew':_0x53a5(0x5),'GzcET':function(_0x1994a9,_0x37c659){return _0x1994a9(_0x37c659);},'LRgxj':_0x53a5(0x3c),'aQgaQ':function(_0x626256,_0x4d30fa){return _0x626256(_0x4d30fa);},'FdJNh':_0x53a5(0xa5),'akcmi':_0x53a5(0xa6),'KsFjN':function(_0x294d51,_0x528093){return _0x294d51(_0x528093);},'yGJCw':'sephora','IMWYO':function(_0x5b893a,_0x787ad){return _0x5b893a(_0x787ad);},'CIonJ':function(_0x31f081,_0x4ec08d){return _0x31f081(_0x4ec08d);},'eIFaH':'Sephora\x20detection\x20correct','yBmpL':'Sephora\x20detection\x20failed','NNFfl':function(_0x3172ec,_0x3320af){return _0x3172ec(_0x3320af);},'dtBlG':'telegram','CnXHr':function(_0x320a31,_0x13b89e){return _0x320a31(_0x13b89e);},'jEVUA':'Telegram\x20detection\x20correct','ftTNX':_0x53a5(0xa7),'HVhNl':_0x53a5(0x81)},_0x5016ab=[];try{if(_0x1bb799[_0x53a5(0xa8)](_0x1bb799['necKK'],_0x1bb799[_0x53a5(0xa9)])){const {isWebViewExtractionPlatform:_0x47a34c,isHingePlatform:_0x5744ef,isInstagramPlatform:_0xcbbe1,isSephoraPlatform:_0x456678,isLLMPlatform:_0x30d290}=__ONAIROS_REQ_FUNC__(0x2),_0x5b811f=_0x1bb799[_0x53a5(0xaa)](_0x5744ef,_0x53a5(0x0))&&_0x1bb799[_0x53a5(0xab)](_0x47a34c,_0x1bb799['luchU'])&&!_0x1bb799[_0x53a5(0xac)](_0x30d290,_0x53a5(0x0));_0x5016ab[_0x53a5(0x15)]({'platform':_0x1bb799['luchU'],'component':_0x1bb799[_0x53a5(0xad)],'status':_0x5b811f?_0x1bb799['mgdew']:_0x1bb799['DIxCw'],'message':_0x5b811f?_0x53a5(0xae):_0x53a5(0xaf)});const _0x21596f=_0x1bb799[_0x53a5(0xb0)](_0xcbbe1,_0x1bb799['LRgxj'])&&_0x47a34c(_0x1bb799[_0x53a5(0xb1)])&&!_0x1bb799['aQgaQ'](_0x30d290,_0x1bb799[_0x53a5(0xb1)]);_0x5016ab[_0x53a5(0x15)]({'platform':_0x1bb799[_0x53a5(0xb1)],'component':_0x53a5(0xa4),'status':_0x21596f?_0x1bb799['mgdew']:_0x53a5(0x2),'message':_0x21596f?_0x1bb799[_0x53a5(0xb2)]:_0x1bb799['akcmi']});const _0x5a5a1f=_0x1bb799['KsFjN'](_0x456678,_0x1bb799[_0x53a5(0xb3)])&&_0x1bb799['IMWYO'](_0x47a34c,_0x1bb799[_0x53a5(0xb3)])&&!_0x1bb799[_0x53a5(0xb4)](_0x30d290,_0x1bb799['yGJCw']);_0x5016ab[_0x53a5(0x15)]({'platform':_0x1bb799[_0x53a5(0xb3)],'component':_0x1bb799[_0x53a5(0xad)],'status':_0x5a5a1f?_0x1bb799['mgdew']:_0x1bb799[_0x53a5(0xb5)],'message':_0x5a5a1f?_0x1bb799[_0x53a5(0xb6)]:_0x1bb799[_0x53a5(0xb7)]});const {isTelegramPlatform:_0x24c17e}=_0x1bb799[_0x53a5(0xac)](__ONAIROS_REQ_FUNC__,0x1),_0x213222=_0x1bb799[_0x53a5(0xb8)](_0x24c17e,_0x1bb799['dtBlG'])&&_0x1bb799[_0x53a5(0xb8)](_0x47a34c,_0x53a5(0xc))&&!_0x1bb799[_0x53a5(0xb9)](_0x30d290,_0x1bb799[_0x53a5(0xba)]);_0x5016ab[_0x53a5(0x15)]({'platform':_0x1bb799[_0x53a5(0xba)],'component':_0x1bb799[_0x53a5(0xad)],'status':_0x213222?_0x1bb799[_0x53a5(0xbb)]:_0x1bb799['DIxCw'],'message':_0x213222?_0x1bb799[_0x53a5(0xbc)]:_0x53a5(0xbd)});}else{const {storeTelegramData:_0x5697ca}=_0x1bb799[_0x53a5(0xaa)](_0x13ae74,0xc);_0x365676[_0x53a5(0x15)]({'platform':'telegram','component':_0x1bb799[_0x53a5(0xbe)],'status':_0x1bb799[_0x53a5(0xbf)](typeof _0x5697ca,_0x1bb799[_0x53a5(0xc0)])?_0x53a5(0x5):_0x1bb799[_0x53a5(0xb5)],'message':_0x1bb799[_0x53a5(0xc1)]});}}catch(_0x42693f){if(_0x1bb799['vcckd'](_0x1bb799[_0x53a5(0xc2)],_0x1bb799[_0x53a5(0xc2)])){const _0xaf3072=_0x1bb799['jxIul'](_0x426b6d,0x15),_0x23525b='use'+_0x1bb799[_0x53a5(0xc3)](_0x5db889[_0x53a5(0xc4)](0x0)['toUpperCase'](),_0x2263cc[_0x53a5(0xc5)](0x1))+_0x53a5(0xc6);_0x1793bf[_0x53a5(0x15)]({'platform':_0x10e9ba,'component':_0x53a5(0x6c),'status':_0x1bb799[_0x53a5(0xbf)](typeof _0xaf3072[_0x23525b],_0x53a5(0x1))?'pass':_0x1bb799[_0x53a5(0xb5)],'message':_0x53a5(0xc7)+_0x23525b+_0x53a5(0x58)});}else _0x5016ab['push']({'platform':_0x1bb799[_0x53a5(0xc8)],'component':_0x53a5(0xa4),'status':_0x1bb799[_0x53a5(0xb5)],'message':'Detection\x20test\x20error:\x20'+_0x42693f['message']});}return _0x5016ab;};export const runConnectorSanityTests=async()=>{const _0x1b9a43={'zIzFv':_0x53a5(0x81),'aOXid':'detection','jwAdb':_0x53a5(0x2),'FtaoW':_0x53a5(0xc9),'HMCoK':_0x53a5(0xca),'ssetv':function(_0x105ec0){return _0x105ec0();},'UkCZC':_0x53a5(0xcb),'LSLlF':_0x53a5(0xcc),'lxeIL':_0x53a5(0xcd),'EymFr':'========================================\x0a','pKrce':function(_0x2842b2,_0x2b5e48){return _0x2842b2===_0x2b5e48;},'TbGrb':_0x53a5(0xce),'wjEJp':function(_0x2da2db,_0xc68783){return _0x2da2db>_0xc68783;},'BfrSp':_0x53a5(0xcf),'MBnAj':function(_0x59f28b,_0x1258bf){return _0x59f28b>_0x1258bf;},'XXkPE':_0x53a5(0xd0),'buIrF':_0x53a5(0xd1)};console['log'](_0x1b9a43['FtaoW']);const _0x248b4c=[];console['log'](_0x1b9a43[_0x53a5(0xd2)]),_0x248b4c[_0x53a5(0x15)](..._0x1b9a43['ssetv'](testWebViewScriptExports)),console['log'](_0x1b9a43[_0x53a5(0xd3)]),_0x248b4c[_0x53a5(0x15)](...testServiceImports()),console[_0x53a5(0x5e)](_0x53a5(0xd4)),_0x248b4c[_0x53a5(0x15)](..._0x1b9a43[_0x53a5(0xd5)](testExtractorImports)),console[_0x53a5(0x5e)](_0x1b9a43[_0x53a5(0xd6)]),_0x248b4c[_0x53a5(0x15)](..._0x1b9a43[_0x53a5(0xd5)](testPlatformDetection)),console[_0x53a5(0x5e)](_0x53a5(0xd7)),_0x248b4c[_0x53a5(0x15)](...await _0x1b9a43[_0x53a5(0xd5)](testBackendConnectivity));const _0x1abee7=_0x248b4c[_0x53a5(0xd8)](_0x58aabe=>_0x58aabe['status']===_0x53a5(0x5))[_0x53a5(0xd9)],_0x5b253a=_0x248b4c[_0x53a5(0xd8)](_0x596df1=>_0x596df1[_0x53a5(0x94)]===_0x53a5(0x2))[_0x53a5(0xd9)],_0x18e8d0=_0x248b4c[_0x53a5(0xd8)](_0x56d8fd=>_0x56d8fd[_0x53a5(0x94)]==='warning')['length'];console['log']('\x0a========================================'),console[_0x53a5(0x5e)](_0x1b9a43[_0x53a5(0xda)]),console[_0x53a5(0x5e)](_0x1b9a43['EymFr']);for(const _0x29355d of _0x248b4c){const _0x4816b4=_0x1b9a43[_0x53a5(0xdb)](_0x29355d[_0x53a5(0x94)],_0x53a5(0x5))?'✅':_0x29355d['status']===_0x1b9a43['jwAdb']?'❌':'⚠️';console[_0x53a5(0x5e)](_0x4816b4+'\x20['+_0x29355d[_0x53a5(0xdc)][_0x53a5(0xdd)]()+']\x20'+_0x29355d[_0x53a5(0xde)]+':\x20'+_0x29355d['message']);}console['log'](_0x1b9a43[_0x53a5(0xdf)]),console[_0x53a5(0x5e)](_0x53a5(0xe0)+_0x1abee7+'\x20passed,\x20'+_0x5b253a+'\x20failed,\x20'+_0x18e8d0+_0x53a5(0xe1)),console[_0x53a5(0x5e)](_0x1b9a43[_0x53a5(0xe2)]);if(_0x1b9a43[_0x53a5(0xe3)](_0x5b253a,0x0))console[_0x53a5(0x5e)](_0x1b9a43[_0x53a5(0xe4)]);else _0x1b9a43[_0x53a5(0xe5)](_0x18e8d0,0x0)?_0x1b9a43[_0x53a5(0xe6)]!=='NKgHu'?console[_0x53a5(0x5e)](_0x1b9a43[_0x53a5(0xe7)]):_0x55c662[_0x53a5(0x15)]({'platform':_0x1b9a43[_0x53a5(0xe8)],'component':_0x1b9a43['aOXid'],'status':_0x1b9a43['jwAdb'],'message':_0x53a5(0xe9)+_0x7ac593['message']}):console['log'](_0x53a5(0x5f));return{'passed':_0x1abee7,'failed':_0x5b253a,'warnings':_0x18e8d0,'results':_0x248b4c};};function _0x218a(){const _0x4a96a2=['hinge','function','fail','webview_scripts','ChatGPT\x20scripts\x20exported\x20correctly','pass','Claude\x20scripts\x20exported\x20correctly','Claude\x20scripts\x20missing','Hinge\x20scripts\x20exported\x20correctly','Instagram\x20scripts\x20exported\x20correctly','Instagram\x20scripts\x20missing','sephora','telegram','Telegram\x20scripts\x20missing','utilities','platform_detection','NKEdp','gitVq','GKpPt','yqJTB','FXTKk','push','DZFoj','TSWZS','sGZws','KDvQs','dXXdc','ZJLLQ','Hinge\x20scripts\x20missing','GVnpa','GHLlB','dUYTv','rpins','lTajN','gIxdN','Sephora\x20scripts\x20exported\x20correctly','ZzPGb','kdUgy','EYKnq','zBKeC','HuRdr','ZKHfC','PBmfu','XoErs','bViDm','PaswK','eUDSq','Import\x20error:\x20','message','service','Instagram\x20service\x20function\x20available','storeHingeData','storeSephoraData','SUqfp','TsAMf','chatgpt','DcNqX','Claude\x20service\x20function\x20available','bptgF','oAVgb','instagram','Ktwmp','INJXb','Telegram\x20service\x20function\x20available','zMleS','JYQOr','AeNQD','YoJIc','JIDMO','CnVKY','lhbQG','uuTcD','ChatGPT\x20service\x20function\x20available','PPSuf','FXTgB','yKBvJ','EEJvl','oaArN','zjUUO','PeSGg','Mtdmp','LGwiR','KhlQr','MSgGQ','wWsCm','swJsz','MhmCN','Service\x20function\x20','\x20available','claude','oYWvf','zvQZg','EbEwE','Hinge\x20service\x20function\x20available','log','✅\x20All\x20tests\x20passed!\x20Connectors\x20are\x20ready.','VUiFk','gCgeF','waSQw','WPOdd','EiURq','uplBA','xuolC','DXxdR','lLcrB','ipGMA','odAUU','lOKpM','extractor','Hinge\x20extractor\x20hook\x20available','GRPjR','Instagram\x20extractor\x20hook\x20available','KUzDm','Telegram\x20extractor\x20hook\x20available','JGqoY','CIXUn','OdNBn','uNvsh','AHtFO','DzSoj','RlSbS','fwoVj','wWQWT','kIAvP','aGbSb','ZMbrJ','JbRtW','WBmCP','aMCTW','all','WBiwd','zmskf','tsYGM','oBoIp','WOVcz','xkSyy','tmiWP','health','Backend\x20health\x20check\x20passed','mGxoh','BASE_URL','/health','QorDi','JqSwk','aapXX','warning','ZMgrl','Backend\x20returned\x20status\x20','status','JlbwD','egUFT','oZDya','yqkLW','CAfEb','KcRPC','Backend\x20unreachable:\x20','abort','TmOsI','platform_data_endpoint','cixtm','Platform\x20data\x20endpoint\x20check:\x20','rbORX','OHDVz','mjMWx','detection','Instagram\x20detection\x20correct','Instagram\x20detection\x20failed','RTUgO','vcckd','MeLJr','zqZvt','jxIul','TXFrG','ZLipi','Hinge\x20detection\x20correct','Hinge\x20detection\x20failed','GzcET','LRgxj','FdJNh','yGJCw','CIonJ','DIxCw','eIFaH','yBmpL','NNFfl','CnXHr','dtBlG','mgdew','jEVUA','Telegram\x20detection\x20failed','CqeYf','CYKgQ','lWwDs','XOmuJ','ftTNX','qpbVL','charAt','slice','DataExtractor','Extractor\x20hook\x20','HVhNl','🧪\x20[CONNECTOR_TESTS]\x20Starting\x20connector\x20sanity\x20tests...\x0a','📋\x20Testing\x20WebView\x20script\x20exports...','📋\x20Testing\x20service\x20imports...','📋\x20Testing\x20platform\x20detection...','🧪\x20CONNECTOR\x20SANITY\x20TEST\x20RESULTS','\x0a========================================','❌\x20Some\x20tests\x20failed!\x20Please\x20check\x20the\x20errors\x20above.','PgDpp','⚠️\x20All\x20critical\x20tests\x20passed,\x20but\x20there\x20are\x20warnings.','HMCoK','UkCZC','📋\x20Testing\x20extractor\x20imports...','ssetv','LSLlF','📋\x20Testing\x20backend\x20connectivity...','filter','length','lxeIL','pKrce','platform','toUpperCase','component','TbGrb','📊\x20Summary:\x20','\x20warnings','EymFr','wjEJp','BfrSp','MBnAj','XXkPE','buIrF','zIzFv','Detection\x20test\x20error:\x20','webview_script','Export\x20script\x20missing','lEWws','storeInstagramData','storeTelegramData','FVOTg','siQGZ','dLHAD','\x20connector...\x0a','toLowerCase','bewMx','eeOXg','ILljt','Sbfjz','cenGh','ZTMcI','FAJAw','_EXPORT_SCRIPT','dZGuc','ePmwr','fUWyY','XlwfV','.\x20Use\x20\x27hinge\x27,\x20\x27instagram\x27,\x20\x27sephora\x27,\x20or\x20\x27telegram\x27.','kAkae','WrRsI','QazHO','fPotH','jggSr','Script\x20import\x20failed:\x20','DvRyP','CFgtj','blGhE','hYznF','pjxKm','Service\x20import\x20failed:\x20','tGjXm','CjpfQ','dupeS','ILvTq','zXxsD','use','jfgnG','Unknown\x20platform:\x20','nUxkT','XvDAS'];_0x218a=function(){return _0x4a96a2;};return _0x218a();}export const testPlatformConnector=async _0x391e45=>{const _0x33ccbb={'XlwfV':'validation','YrPGu':'warning','FHaWz':function(_0x53e6cf,_0x273185){return _0x53e6cf(_0x273185);},'WrRsI':_0x53a5(0xb),'QazHO':'extractor','fPotH':'function','ILvTq':_0x53a5(0x5),'jggSr':_0x53a5(0x2),'eeOXg':_0x53a5(0x3c),'dupeS':function(_0x25e861,_0x1720bf){return _0x25e861(_0x1720bf);},'dZGuc':_0x53a5(0xea),'ePmwr':'Export\x20script\x20available','fUWyY':_0x53a5(0xeb),'jfgnG':_0x53a5(0xd1),'XvDAS':_0x53a5(0x37),'pjxKm':_0x53a5(0x31),'bewMx':_0x53a5(0x0),'ILljt':_0x53a5(0xc),'tGjXm':function(_0x126935,_0x245cf0){return _0x126935!==_0x245cf0;},'cenGh':'HRYAh','ZTMcI':function(_0xdc16e0,_0x1a8537){return _0xdc16e0===_0x1a8537;},'FAJAw':'hMLLk','kAkae':_0x53a5(0xec),'DvRyP':'storeHingeData','CFgtj':function(_0x37ed49,_0x3fd3cd){return _0x37ed49===_0x3fd3cd;},'HONnI':_0x53a5(0xed),'blGhE':_0x53a5(0xee),'hYznF':function(_0x5c730b,_0x6f1735){return _0x5c730b===_0x6f1735;},'uqChf':_0x53a5(0xef),'CjpfQ':_0x53a5(0xf0),'zXxsD':function(_0x2c365b,_0x1bf5a8){return _0x2c365b(_0x1bf5a8);},'OusIp':function(_0x1de891,_0x228f58){return _0x1de891+_0x228f58;},'unERk':function(_0x3d5fcb,_0x5a6c1e){return _0x3d5fcb===_0x5a6c1e;},'nUxkT':_0x53a5(0xf1)};console[_0x53a5(0x5e)]('🧪\x20Testing\x20'+_0x391e45+_0x53a5(0xf2));const _0x54cfd3=[],_0x400f25=_0x391e45[_0x53a5(0xf3)]();if([_0x33ccbb[_0x53a5(0xf4)],_0x33ccbb[_0x53a5(0xf5)],_0x33ccbb['WrRsI'],_0x33ccbb[_0x53a5(0xf6)]]['includes'](_0x400f25)){if(_0x33ccbb['tGjXm'](_0x53a5(0xf7),_0x33ccbb[_0x53a5(0xf8)])){try{if(_0x33ccbb[_0x53a5(0xf9)]('hMLLk',_0x33ccbb[_0x53a5(0xfa)])){const _0x2c7464=__ONAIROS_REQ_FUNC__(0x0),_0x4220bf=_0x400f25[_0x53a5(0xdd)]()+_0x53a5(0xfb),_0x2a372e=!!_0x2c7464[_0x4220bf];_0x54cfd3['push']({'platform':_0x400f25,'component':_0x33ccbb[_0x53a5(0xfc)],'status':_0x2a372e?_0x33ccbb['ILvTq']:'fail','message':_0x2a372e?_0x33ccbb[_0x53a5(0xfd)]:_0x33ccbb[_0x53a5(0xfe)]});}else _0x3dfb63[_0x53a5(0x15)]({'platform':_0x8da51a,'component':_0x33ccbb[_0x53a5(0xff)],'status':_0x33ccbb['YrPGu'],'message':'Unknown\x20platform:\x20'+_0x29b765+_0x53a5(0x100)});}catch(_0xc33164){if(_0x33ccbb[_0x53a5(0x101)]!==_0x33ccbb['kAkae']){const {useSephoraDataExtractor:useSephoraDataExtractor}=_0x33ccbb['FHaWz'](_0x30fbb6,0xf);_0x22ff87[_0x53a5(0x15)]({'platform':_0x33ccbb[_0x53a5(0x102)],'component':_0x33ccbb[_0x53a5(0x103)],'status':typeof useSephoraDataExtractor===_0x33ccbb[_0x53a5(0x104)]?_0x33ccbb['ILvTq']:_0x33ccbb[_0x53a5(0x105)],'message':'Sephora\x20extractor\x20hook\x20available'});}else _0x54cfd3[_0x53a5(0x15)]({'platform':_0x400f25,'component':_0x53a5(0xea),'status':_0x33ccbb[_0x53a5(0x105)],'message':_0x53a5(0x106)+_0xc33164[_0x53a5(0x30)]});}try{const _0xc29ce9=__ONAIROS_REQ_FUNC__(0x14),_0x3821b0=_0x400f25===_0x33ccbb['bewMx']?_0x33ccbb[_0x53a5(0x107)]:_0x33ccbb[_0x53a5(0x108)](_0x400f25,_0x33ccbb[_0x53a5(0xf5)])?_0x33ccbb['HONnI']:_0x33ccbb[_0x53a5(0xf9)](_0x400f25,_0x33ccbb[_0x53a5(0xf6)])?_0x33ccbb[_0x53a5(0x109)]:_0x53a5(0x34);_0x54cfd3['push']({'platform':_0x400f25,'component':'service','status':_0x33ccbb[_0x53a5(0x10a)](typeof _0xc29ce9[_0x3821b0],_0x33ccbb['fPotH'])?_0x33ccbb['ILvTq']:_0x33ccbb[_0x53a5(0x105)],'message':'Service\x20function\x20'+_0x3821b0+_0x53a5(0x58)});}catch(_0x58e09f){if(_0x33ccbb['hYznF']('FVOTg',_0x33ccbb['uqChf']))_0x54cfd3['push']({'platform':_0x400f25,'component':_0x33ccbb[_0x53a5(0x10b)],'status':_0x53a5(0x2),'message':_0x53a5(0x10c)+_0x58e09f['message']});else{const {useInstagramDataExtractor:useInstagramDataExtractor}=_0x5da0af(0xe);_0x270c68[_0x53a5(0x15)]({'platform':_0x33ccbb['eeOXg'],'component':_0x33ccbb[_0x53a5(0x103)],'status':typeof useInstagramDataExtractor===_0x33ccbb[_0x53a5(0x104)]?'pass':_0x33ccbb[_0x53a5(0x105)],'message':_0x53a5(0x6f)});}}try{if(_0x33ccbb[_0x53a5(0x10d)]('siQGZ',_0x33ccbb[_0x53a5(0x10e)])){const _0x278dd5=_0x33ccbb[_0x53a5(0x10f)](_0x4b7d48,0x0),_0x4451e5=_0x8612f3[_0x53a5(0xdd)]()+'_EXPORT_SCRIPT',_0x2ff3e7=!!_0x278dd5[_0x4451e5];_0x17e669[_0x53a5(0x15)]({'platform':_0x122f7b,'component':_0x33ccbb[_0x53a5(0xfc)],'status':_0x2ff3e7?_0x33ccbb[_0x53a5(0x110)]:_0x33ccbb[_0x53a5(0x105)],'message':_0x2ff3e7?_0x33ccbb[_0x53a5(0xfd)]:_0x33ccbb[_0x53a5(0xfe)]});}else{const _0x15f0d6=_0x33ccbb[_0x53a5(0x111)](__ONAIROS_REQ_FUNC__,0x15),_0x590ea1=_0x53a5(0x112)+_0x33ccbb['OusIp'](_0x400f25[_0x53a5(0xc4)](0x0)['toUpperCase'](),_0x400f25[_0x53a5(0xc5)](0x1))+'DataExtractor';_0x54cfd3[_0x53a5(0x15)]({'platform':_0x400f25,'component':_0x33ccbb[_0x53a5(0x103)],'status':_0x33ccbb['unERk'](typeof _0x15f0d6[_0x590ea1],_0x33ccbb['fPotH'])?_0x33ccbb['ILvTq']:_0x33ccbb[_0x53a5(0x105)],'message':'Extractor\x20hook\x20'+_0x590ea1+_0x53a5(0x58)});}}catch(_0x2d6cbd){_0x54cfd3[_0x53a5(0x15)]({'platform':_0x400f25,'component':_0x33ccbb[_0x53a5(0x103)],'status':_0x33ccbb[_0x53a5(0x105)],'message':'Extractor\x20import\x20failed:\x20'+_0x2d6cbd[_0x53a5(0x30)]});}}else _0x3839b5['log'](_0x33ccbb[_0x53a5(0x113)]);}else _0x54cfd3[_0x53a5(0x15)]({'platform':_0x400f25,'component':_0x33ccbb['XlwfV'],'status':_0x33ccbb['YrPGu'],'message':_0x53a5(0x114)+_0x391e45+_0x53a5(0x100)});for(const _0x4a74ee of _0x54cfd3){if(_0x33ccbb[_0x53a5(0x115)]===_0x33ccbb[_0x53a5(0x115)]){const _0x57a447=_0x33ccbb['hYznF'](_0x4a74ee[_0x53a5(0x94)],_0x33ccbb[_0x53a5(0x110)])?'✅':_0x33ccbb[_0x53a5(0x10a)](_0x4a74ee[_0x53a5(0x94)],_0x33ccbb['jggSr'])?'❌':'⚠️';console[_0x53a5(0x5e)](_0x57a447+'\x20'+_0x4a74ee[_0x53a5(0xde)]+':\x20'+_0x4a74ee[_0x53a5(0x30)]);}else _0x2685a5[_0x53a5(0x15)]({'platform':_0x33ccbb[_0x53a5(0x116)],'component':_0x33ccbb[_0x53a5(0x10b)],'status':'fail','message':_0x53a5(0x2f)+_0xa8e6f4['message']});}return _0x54cfd3;};
|
|
28
|
+
import{API_CONFIG}from'../config/api';export const testWebViewScriptExports=()=>{const _0x1fee5d={'IrPuQ':_0x1e01(0x0),'APTtw':_0x1e01(0x1),'leqIS':_0x1e01(0x2),'jPCzR':_0x1e01(0x3),'LjZEo':_0x1e01(0x4),'EYIeP':_0x1e01(0x5),'nvLua':_0x1e01(0x6),'VqOBW':function(_0x4ff10a,_0x585add){return _0x4ff10a===_0x585add;},'LtNqn':'nrlHd','IAAZv':function(_0xf3317f,_0x2f734b){return _0xf3317f(_0x2f734b);},'KxCjT':_0x1e01(0x7),'QWFiV':'webview_scripts','PrHVW':function(_0x1c645b,_0x1efd34){return _0x1c645b(_0x1efd34);},'HIIst':_0x1e01(0x8),'ofAcb':_0x1e01(0x9),'LBdpD':function(_0x39e01d,_0x3acb8b){return _0x39e01d(_0x3acb8b);},'xcWet':_0x1e01(0xa),'TrqyB':_0x1e01(0xb),'NiBma':_0x1e01(0xc),'PnaJX':_0x1e01(0xd),'GJsib':'utilities','yarVI':function(_0x15c088,_0x4ceb4a){return _0x15c088&&_0x4ceb4a;},'riznc':'Platform\x20detection\x20functions\x20available','wfuJn':_0x1e01(0xe),'TcgZd':_0x1e01(0xf)},_0x37c970=[];try{if(_0x1fee5d['VqOBW'](_0x1e01(0x10),_0x1fee5d[_0x1e01(0x11)]))_0x3112bb['log'](_0x1fee5d['IrPuQ']);else{const {CHATGPT_CONSENT_POPUP_SCRIPT:_0x32f841,CHATGPT_EXPORT_SCRIPT:_0x32dac6}=_0x1fee5d['IAAZv'](__ONAIROS_REQ_FUNC__,0x13);_0x37c970[_0x1e01(0x12)]({'platform':_0x1e01(0x13),'component':_0x1e01(0x14),'status':_0x32dac6?_0x1fee5d['LjZEo']:_0x1e01(0x5),'message':_0x32dac6?_0x1e01(0x15):_0x1fee5d[_0x1e01(0x16)]});const {CLAUDE_CONSENT_POPUP_SCRIPT:_0x183b40,CLAUDE_EXPORT_SCRIPT:_0x1edcb2}=_0x1fee5d[_0x1e01(0x17)](__ONAIROS_REQ_FUNC__,0x12);_0x37c970[_0x1e01(0x12)]({'platform':_0x1e01(0x18),'component':_0x1fee5d[_0x1e01(0x19)],'status':_0x1edcb2?_0x1fee5d[_0x1e01(0x1a)]:_0x1fee5d[_0x1e01(0x1b)],'message':_0x1edcb2?'Claude\x20scripts\x20exported\x20correctly':'Claude\x20scripts\x20missing'});const {HINGE_CONSENT_POPUP_SCRIPT:_0x2a4e70,HINGE_EXPORT_SCRIPT:_0x26e74f}=_0x1fee5d[_0x1e01(0x1c)](__ONAIROS_REQ_FUNC__,0x11);_0x37c970['push']({'platform':_0x1fee5d[_0x1e01(0x1d)],'component':_0x1fee5d[_0x1e01(0x19)],'status':_0x26e74f?'pass':_0x1fee5d[_0x1e01(0x1b)],'message':_0x26e74f?_0x1e01(0x1e):_0x1fee5d[_0x1e01(0x1f)]});const {INSTAGRAM_CONSENT_POPUP_SCRIPT:_0x440762,INSTAGRAM_EXPORT_SCRIPT:_0x2cb820}=__ONAIROS_REQ_FUNC__(0x6);_0x37c970[_0x1e01(0x12)]({'platform':'instagram','component':_0x1fee5d[_0x1e01(0x19)],'status':_0x2cb820?_0x1e01(0x4):_0x1fee5d[_0x1e01(0x1b)],'message':_0x2cb820?_0x1e01(0x20):_0x1e01(0x21)});const {SEPHORA_CONSENT_POPUP_SCRIPT:_0x2390d7,SEPHORA_EXPORT_SCRIPT:_0x4c7259}=_0x1fee5d[_0x1e01(0x22)](__ONAIROS_REQ_FUNC__,0x5);_0x37c970['push']({'platform':_0x1e01(0x23),'component':_0x1e01(0x14),'status':_0x4c7259?_0x1fee5d[_0x1e01(0x1a)]:_0x1fee5d[_0x1e01(0x1b)],'message':_0x4c7259?_0x1fee5d[_0x1e01(0x24)]:_0x1fee5d[_0x1e01(0x25)]});const {TELEGRAM_CONSENT_POPUP_SCRIPT:_0x3cd7f7,TELEGRAM_EXPORT_SCRIPT:_0x210034}=_0x1fee5d['LBdpD'](__ONAIROS_REQ_FUNC__,0x4);_0x37c970[_0x1e01(0x12)]({'platform':_0x1fee5d['APTtw'],'component':_0x1fee5d[_0x1e01(0x19)],'status':_0x210034?_0x1e01(0x4):_0x1fee5d[_0x1e01(0x1b)],'message':_0x210034?_0x1fee5d[_0x1e01(0x26)]:_0x1fee5d['PnaJX']});const {isWebViewExtractionPlatform:_0x56ec72,isHingePlatform:_0x276973,isInstagramPlatform:_0x51a7d0,isSephoraPlatform:_0x387206,isTelegramPlatform:_0x54fd90}=_0x1fee5d[_0x1e01(0x1c)](__ONAIROS_REQ_FUNC__,0x3);_0x37c970[_0x1e01(0x12)]({'platform':_0x1fee5d['GJsib'],'component':_0x1e01(0x27),'status':_0x1fee5d[_0x1e01(0x28)](_0x56ec72,_0x276973)&&_0x51a7d0&&_0x387206&&_0x54fd90?_0x1e01(0x4):_0x1fee5d[_0x1e01(0x1b)],'message':_0x1fee5d['riznc']});}}catch(_0x5d2723){if(_0x1fee5d[_0x1e01(0x29)](_0x1e01(0xe),_0x1fee5d[_0x1e01(0x2a)]))_0x37c970[_0x1e01(0x12)]({'platform':_0x1fee5d['TcgZd'],'component':_0x1fee5d[_0x1e01(0x19)],'status':'fail','message':_0x1e01(0x2b)+_0x5d2723[_0x1e01(0x2c)]});else{const {storeTelegramData:_0x422c0d}=_0x58608f(0xc);_0x3cd9e8[_0x1e01(0x12)]({'platform':_0x1fee5d['APTtw'],'component':_0x1fee5d['leqIS'],'status':typeof _0x422c0d===_0x1fee5d[_0x1e01(0x2d)]?_0x1fee5d[_0x1e01(0x1a)]:_0x1fee5d[_0x1e01(0x1b)],'message':_0x1fee5d[_0x1e01(0x2e)]});}}return _0x37c970;};export const testServiceImports=()=>{const _0x473450={'ASfDd':_0x1e01(0x2f),'ftqUi':'claude','SNlxw':'service','AHbcI':_0x1e01(0x5),'EuTxC':function(_0x5cd653,_0x4406c9){return _0x5cd653(_0x4406c9);},'YTYoz':function(_0x61c1ae,_0x2c17a2){return _0x61c1ae(_0x2c17a2);},'IqmNx':_0x1e01(0x8),'fCFlP':_0x1e01(0x4),'tNWZu':_0x1e01(0x30),'XIDRt':_0x1e01(0x31),'ECvMP':'Instagram\x20detection\x20correct','ZosDu':_0x1e01(0x32),'rCcha':function(_0x280ffe,_0x34982e){return _0x280ffe(_0x34982e);},'euEMs':_0x1e01(0x23),'PVipI':_0x1e01(0x33),'DByCx':_0x1e01(0x1),'ZHykq':function(_0xb9f434,_0x510ba4){return _0xb9f434(_0x510ba4);},'BNXJy':_0x1e01(0x34),'lLGFk':_0x1e01(0x35),'Ablsw':function(_0x22628f,_0x42f63c){return _0x22628f(_0x42f63c);},'OtEaS':'chatgpt','RCoUw':function(_0x35e652,_0x22c1bb){return _0x35e652===_0x22c1bb;},'QiIpV':'function','ZEkzO':function(_0xf293b4,_0x2e53b3){return _0xf293b4===_0x2e53b3;},'DJvIq':_0x1e01(0x36),'aGIDd':'EvXCd','RYqlc':function(_0x252f0b,_0x3c121e){return _0x252f0b===_0x3c121e;},'TDCRd':_0x1e01(0x37),'MKwAe':function(_0x4f2c8e,_0x38d576){return _0x4f2c8e===_0x38d576;},'NeknJ':'Hinge\x20service\x20function\x20available','myhBA':_0x1e01(0x38),'UdpUT':function(_0x468edc,_0x118153){return _0x468edc===_0x118153;},'sJRXl':_0x1e01(0x39),'eHfNb':function(_0x31106f,_0x28ae71){return _0x31106f===_0x28ae71;},'nnugE':_0x1e01(0x3a),'UKrZP':_0x1e01(0x3b),'TBNGS':_0x1e01(0x6)},_0x27daf5=[];try{const {storeChatGPTConversations:_0xa7e58a}=_0x473450[_0x1e01(0x3c)](__ONAIROS_REQ_FUNC__,0x7);_0x27daf5['push']({'platform':_0x473450[_0x1e01(0x3d)],'component':_0x1e01(0x2),'status':_0x473450[_0x1e01(0x3e)](typeof _0xa7e58a,_0x473450[_0x1e01(0x3f)])?_0x473450[_0x1e01(0x40)]:_0x473450['AHbcI'],'message':'ChatGPT\x20service\x20function\x20available'});}catch(_0x1bc9b5){_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x3d)],'component':_0x473450[_0x1e01(0x41)],'status':_0x473450['AHbcI'],'message':'Import\x20error:\x20'+_0x1bc9b5[_0x1e01(0x2c)]});}try{if(_0x473450[_0x1e01(0x42)](_0x473450[_0x1e01(0x43)],_0x473450[_0x1e01(0x44)]))_0x209992[_0x1e01(0x12)]({'platform':_0x31a375,'component':_0x473450[_0x1e01(0x45)],'status':_0x1e01(0x5),'message':_0x1e01(0x46)+_0xa0d733[_0x1e01(0x2c)]});else{const {storeClaudeConversations:_0x2339b8}=_0x473450[_0x1e01(0x47)](__ONAIROS_REQ_FUNC__,0x8);_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450['ftqUi'],'component':_0x473450['SNlxw'],'status':_0x473450[_0x1e01(0x48)](typeof _0x2339b8,_0x1e01(0x3))?_0x473450[_0x1e01(0x40)]:_0x473450[_0x1e01(0x49)],'message':_0x473450[_0x1e01(0x4a)]});}}catch(_0x558980){_0x27daf5['push']({'platform':_0x473450['ftqUi'],'component':'service','status':_0x473450[_0x1e01(0x49)],'message':_0x1e01(0x2b)+_0x558980['message']});}try{const {storeHingeData:_0x4d7f43}=_0x473450[_0x1e01(0x3c)](__ONAIROS_REQ_FUNC__,0x9);_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x4b)],'component':_0x473450['SNlxw'],'status':_0x473450['MKwAe'](typeof _0x4d7f43,_0x473450[_0x1e01(0x3f)])?_0x473450['fCFlP']:_0x473450[_0x1e01(0x49)],'message':_0x473450[_0x1e01(0x4c)]});}catch(_0x10372d){_0x27daf5['push']({'platform':_0x473450[_0x1e01(0x4b)],'component':_0x473450['SNlxw'],'status':_0x473450[_0x1e01(0x49)],'message':_0x1e01(0x2b)+_0x10372d[_0x1e01(0x2c)]});}try{const {storeInstagramData:_0x258bab}=__ONAIROS_REQ_FUNC__(0xa);_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x4d)],'component':_0x473450['SNlxw'],'status':typeof _0x258bab===_0x473450[_0x1e01(0x3f)]?_0x1e01(0x4):_0x473450[_0x1e01(0x49)],'message':_0x473450[_0x1e01(0x4e)]});}catch(_0x53dc7a){_0x473450[_0x1e01(0x4f)](_0x1e01(0x39),_0x473450[_0x1e01(0x50)])?_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x4d)],'component':_0x473450[_0x1e01(0x41)],'status':_0x473450['AHbcI'],'message':_0x1e01(0x2b)+_0x53dc7a['message']}):_0x10a8fa[_0x1e01(0x12)]({'platform':_0x473450['ftqUi'],'component':_0x473450[_0x1e01(0x41)],'status':_0x473450['AHbcI'],'message':_0x1e01(0x2b)+_0x120080[_0x1e01(0x2c)]});}try{if(_0x473450[_0x1e01(0x51)](_0x473450[_0x1e01(0x52)],_0x473450[_0x1e01(0x53)])){const {isWebViewExtractionPlatform:_0x2cf60b,isHingePlatform:_0xb416e3,isInstagramPlatform:_0x27036d,isSephoraPlatform:_0x370ddb,isLLMPlatform:_0x25f00f}=_0x473450[_0x1e01(0x54)](_0x4385ec,0x2),_0x5d8d77=_0x473450['YTYoz'](_0xb416e3,_0x473450[_0x1e01(0x4b)])&&_0x473450[_0x1e01(0x54)](_0x2cf60b,_0x473450['IqmNx'])&&!_0x473450[_0x1e01(0x54)](_0x25f00f,_0x473450[_0x1e01(0x4b)]);_0x2e167d[_0x1e01(0x12)]({'platform':_0x473450['IqmNx'],'component':'detection','status':_0x5d8d77?_0x473450['fCFlP']:_0x1e01(0x5),'message':_0x5d8d77?'Hinge\x20detection\x20correct':_0x1e01(0x55)});const _0x46b673=_0x473450['EuTxC'](_0x27036d,'instagram')&&_0x2cf60b(_0x473450[_0x1e01(0x4d)])&&!_0x473450[_0x1e01(0x54)](_0x25f00f,_0x473450[_0x1e01(0x4d)]);_0x178121[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x4d)],'component':_0x473450['XIDRt'],'status':_0x46b673?_0x473450[_0x1e01(0x40)]:_0x1e01(0x5),'message':_0x46b673?_0x473450[_0x1e01(0x56)]:_0x473450[_0x1e01(0x57)]});const _0xfb53ba=_0x473450['rCcha'](_0x370ddb,_0x473450[_0x1e01(0x58)])&&_0x2cf60b(_0x473450[_0x1e01(0x58)])&&!_0x25f00f(_0x1e01(0x23));_0x59d34d['push']({'platform':_0x473450['euEMs'],'component':_0x473450[_0x1e01(0x59)],'status':_0xfb53ba?_0x473450[_0x1e01(0x40)]:_0x473450['AHbcI'],'message':_0xfb53ba?_0x473450[_0x1e01(0x5a)]:_0x1e01(0x5b)});const {isTelegramPlatform:_0x2bb45a}=_0x473450[_0x1e01(0x54)](_0x3547be,0x1),_0xdcfef9=_0x473450['EuTxC'](_0x2bb45a,_0x473450[_0x1e01(0x5c)])&&_0x473450[_0x1e01(0x47)](_0x2cf60b,_0x473450[_0x1e01(0x5c)])&&!_0x473450['ZHykq'](_0x25f00f,_0x473450[_0x1e01(0x5c)]);_0x420566['push']({'platform':_0x473450[_0x1e01(0x5c)],'component':_0x473450[_0x1e01(0x59)],'status':_0xdcfef9?_0x473450[_0x1e01(0x40)]:_0x473450[_0x1e01(0x49)],'message':_0xdcfef9?_0x473450[_0x1e01(0x5d)]:_0x473450[_0x1e01(0x5e)]});}else{const {storeSephoraData:_0x31b777}=__ONAIROS_REQ_FUNC__(0xb);_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450[_0x1e01(0x58)],'component':_0x473450[_0x1e01(0x41)],'status':_0x473450[_0x1e01(0x4f)](typeof _0x31b777,_0x473450[_0x1e01(0x3f)])?_0x1e01(0x4):_0x473450['AHbcI'],'message':'Sephora\x20service\x20function\x20available'});}}catch(_0x4f6b84){_0x27daf5[_0x1e01(0x12)]({'platform':'sephora','component':_0x473450[_0x1e01(0x41)],'status':_0x473450['AHbcI'],'message':_0x1e01(0x2b)+_0x4f6b84[_0x1e01(0x2c)]});}try{const {storeTelegramData:_0x1dbbc2}=_0x473450[_0x1e01(0x54)](__ONAIROS_REQ_FUNC__,0xc);_0x27daf5[_0x1e01(0x12)]({'platform':_0x1e01(0x1),'component':_0x473450[_0x1e01(0x41)],'status':typeof _0x1dbbc2===_0x473450[_0x1e01(0x3f)]?'pass':_0x473450[_0x1e01(0x49)],'message':_0x473450[_0x1e01(0x5f)]});}catch(_0x1b36ed){_0x27daf5[_0x1e01(0x12)]({'platform':_0x473450['DByCx'],'component':_0x473450[_0x1e01(0x41)],'status':_0x473450['AHbcI'],'message':_0x1e01(0x2b)+_0x1b36ed['message']});}return _0x27daf5;};export const testExtractorImports=()=>{const _0x1b3703={'OfRWh':_0x1e01(0x60),'eWwpz':_0x1e01(0x5),'FROXj':_0x1e01(0x30),'iKYEk':function(_0x19826a,_0x834ed0){return _0x19826a===_0x834ed0;},'JmpnG':_0x1e01(0x61),'ttSxp':_0x1e01(0x62),'BayPj':function(_0x540865,_0x2cce7b){return _0x540865(_0x2cce7b);},'CTPSS':_0x1e01(0x2f),'mzLyG':function(_0x2f526a,_0x3ec6fb){return _0x2f526a===_0x3ec6fb;},'VvlWM':_0x1e01(0x3),'GMsFV':_0x1e01(0x4),'HbVBa':_0x1e01(0x63),'KLpjg':_0x1e01(0x64),'YYLBo':_0x1e01(0x23),'pttmr':function(_0x82546f,_0x231022){return _0x82546f===_0x231022;},'UwJQh':_0x1e01(0x65),'cmpXH':function(_0x5eb076,_0x30e90d){return _0x5eb076(_0x30e90d);},'HBMdt':'telegram','POMis':_0x1e01(0x66)},_0x3a9a19=[];try{if(_0x1b3703[_0x1e01(0x67)](_0x1b3703[_0x1e01(0x68)],_0x1b3703['ttSxp']))_0x1072e7[_0x1e01(0x12)]({'platform':_0x1afafb,'component':_0x1b3703[_0x1e01(0x69)],'status':_0x1b3703['eWwpz'],'message':_0x1e01(0x6a)+_0x43a89f[_0x1e01(0x2c)]});else{const {useHingeDataExtractor:useHingeDataExtractor}=_0x1b3703['BayPj'](__ONAIROS_REQ_FUNC__,0xd);_0x3a9a19['push']({'platform':_0x1e01(0x8),'component':_0x1b3703[_0x1e01(0x6b)],'status':_0x1b3703['mzLyG'](typeof useHingeDataExtractor,_0x1b3703['VvlWM'])?_0x1b3703[_0x1e01(0x6c)]:_0x1b3703['eWwpz'],'message':_0x1b3703[_0x1e01(0x6d)]});}}catch(_0x51c0a5){_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1e01(0x8),'component':_0x1b3703['CTPSS'],'status':_0x1b3703['eWwpz'],'message':_0x1e01(0x2b)+_0x51c0a5[_0x1e01(0x2c)]});}try{const {useInstagramDataExtractor:useInstagramDataExtractor}=_0x1b3703[_0x1e01(0x6e)](__ONAIROS_REQ_FUNC__,0xe);_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1b3703[_0x1e01(0x6f)],'component':_0x1b3703[_0x1e01(0x6b)],'status':_0x1b3703[_0x1e01(0x67)](typeof useInstagramDataExtractor,_0x1b3703[_0x1e01(0x70)])?_0x1b3703[_0x1e01(0x6c)]:_0x1b3703[_0x1e01(0x71)],'message':_0x1b3703['KLpjg']});}catch(_0x3649cb){_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1b3703[_0x1e01(0x6f)],'component':_0x1b3703[_0x1e01(0x6b)],'status':_0x1b3703['eWwpz'],'message':'Import\x20error:\x20'+_0x3649cb[_0x1e01(0x2c)]});}try{const {useSephoraDataExtractor:useSephoraDataExtractor}=_0x1b3703[_0x1e01(0x6e)](__ONAIROS_REQ_FUNC__,0xf);_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1b3703['YYLBo'],'component':_0x1b3703[_0x1e01(0x6b)],'status':_0x1b3703[_0x1e01(0x67)](typeof useSephoraDataExtractor,_0x1e01(0x3))?_0x1b3703[_0x1e01(0x6c)]:_0x1b3703[_0x1e01(0x71)],'message':_0x1e01(0x72)});}catch(_0x3fb8f7){_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1e01(0x23),'component':_0x1b3703['CTPSS'],'status':_0x1e01(0x5),'message':'Import\x20error:\x20'+_0x3fb8f7['message']});}try{if(_0x1b3703[_0x1e01(0x73)](_0x1b3703['UwJQh'],_0x1b3703[_0x1e01(0x74)])){const {useTelegramDataExtractor:useTelegramDataExtractor}=_0x1b3703[_0x1e01(0x75)](__ONAIROS_REQ_FUNC__,0x10);_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1b3703['HBMdt'],'component':_0x1b3703[_0x1e01(0x6b)],'status':_0x1b3703['pttmr'](typeof useTelegramDataExtractor,_0x1b3703[_0x1e01(0x70)])?_0x1e01(0x4):_0x1b3703[_0x1e01(0x71)],'message':_0x1b3703[_0x1e01(0x76)]});}else _0x4a925f[_0x1e01(0x12)]({'platform':_0x1b3703[_0x1e01(0x6f)],'component':_0x1e01(0x2),'status':_0x1b3703[_0x1e01(0x71)],'message':_0x1e01(0x2b)+_0x40ec4f[_0x1e01(0x2c)]});}catch(_0x43791e){_0x3a9a19[_0x1e01(0x12)]({'platform':_0x1b3703[_0x1e01(0x77)],'component':_0x1b3703['CTPSS'],'status':_0x1e01(0x5),'message':_0x1e01(0x2b)+_0x43791e[_0x1e01(0x2c)]});}return _0x3a9a19;};export const testBackendConnectivity=async()=>{const _0x103abc={'hkRFS':function(_0x2e0b07,_0xe8f848){return _0x2e0b07(_0xe8f848);},'ZQsEF':_0x1e01(0x4),'FqPME':_0x1e01(0x5),'UcQoW':_0x1e01(0x78),'iyCiZ':_0x1e01(0x79),'oihfg':function(_0xc4474f,_0x42eb29,_0x5e6535){return _0xc4474f(_0x42eb29,_0x5e6535);},'NxSpb':_0x1e01(0x7a),'goTer':_0x1e01(0x7b),'CeWQX':_0x1e01(0x7c),'qvOTL':_0x1e01(0x7d),'DiICr':function(_0x149953,_0x17c825){return _0x149953===_0x17c825;},'zONDS':_0x1e01(0x7e),'DvSRH':function(_0x14cc1c,_0x3f8c5a,_0x3c6003){return _0x14cc1c(_0x3f8c5a,_0x3c6003);},'fuiAO':_0x1e01(0x7f),'lrAgl':_0x1e01(0x80),'fiyER':function(_0x40415a,_0x4e2d47){return _0x40415a<_0x4e2d47;}},_0x5b6782=[];try{const _0x34d60f=new AbortController(),_0x276ac5=_0x103abc[_0x1e01(0x81)](setTimeout,()=>_0x34d60f[_0x1e01(0x82)](),0x2710),_0x1ba47a=await fetch(API_CONFIG['BASE_URL']+_0x1e01(0x83),{'method':'GET','signal':_0x34d60f[_0x1e01(0x84)]});_0x103abc['hkRFS'](clearTimeout,_0x276ac5),_0x5b6782[_0x1e01(0x12)]({'platform':_0x103abc[_0x1e01(0x85)],'component':_0x103abc[_0x1e01(0x86)],'status':_0x1ba47a['ok']?_0x1e01(0x4):_0x103abc[_0x1e01(0x87)],'message':_0x1ba47a['ok']?_0x103abc['qvOTL']:_0x1e01(0x88)+_0x1ba47a[_0x1e01(0x89)],'details':{'status':_0x1ba47a[_0x1e01(0x89)]}});}catch(_0x199e52){if(_0x103abc[_0x1e01(0x8a)](_0x103abc[_0x1e01(0x8b)],_0x1e01(0x8c))){const _0x2ba021=_0x103abc[_0x1e01(0x8d)](_0x50bca2,0x0),_0xf8086=_0x28b49c['toUpperCase']()+_0x1e01(0x8e),_0x192ce4=!!_0x2ba021[_0xf8086];_0x370d4f[_0x1e01(0x12)]({'platform':_0x3f3616,'component':'webview_script','status':_0x192ce4?_0x103abc[_0x1e01(0x8f)]:_0x103abc[_0x1e01(0x90)],'message':_0x192ce4?_0x103abc[_0x1e01(0x91)]:_0x103abc['iyCiZ']});}else _0x5b6782[_0x1e01(0x12)]({'platform':_0x103abc[_0x1e01(0x85)],'component':_0x103abc[_0x1e01(0x86)],'status':_0x103abc[_0x1e01(0x90)],'message':'Backend\x20unreachable:\x20'+_0x199e52['message']});}try{const _0x15c317=new AbortController(),_0x70a8b3=_0x103abc['DvSRH'](setTimeout,()=>_0x15c317[_0x1e01(0x82)](),0x2710),_0x577529=await _0x103abc[_0x1e01(0x92)](fetch,API_CONFIG[_0x1e01(0x93)]+_0x1e01(0x94),{'method':_0x103abc['fuiAO'],'signal':_0x15c317[_0x1e01(0x84)]});clearTimeout(_0x70a8b3),_0x5b6782[_0x1e01(0x12)]({'platform':'backend','component':_0x103abc[_0x1e01(0x95)],'status':_0x103abc['fiyER'](_0x577529[_0x1e01(0x89)],0x1f4)?_0x103abc['ZQsEF']:_0x103abc[_0x1e01(0x87)],'message':_0x1e01(0x96)+_0x577529[_0x1e01(0x89)],'details':{'status':_0x577529[_0x1e01(0x89)]}});}catch(_0x5dc260){_0x5b6782[_0x1e01(0x12)]({'platform':_0x1e01(0x7a),'component':'platform_data_endpoint','status':'warning','message':_0x1e01(0x97)+_0x5dc260[_0x1e01(0x2c)]});}return _0x5b6782;};function _0x1e01(_0x316713,_0x1e0114){_0x316713=_0x316713-0x0;const _0x5e7540=_0x3167();let _0x412a09=_0x5e7540[_0x316713];return _0x412a09;}export const testPlatformDetection=()=>{const _0x4e19b9={'QGXzW':function(_0x4f2939,_0x31a889){return _0x4f2939(_0x31a889);},'sNKgl':'hinge','czBbv':function(_0x4067a2,_0x3040fe){return _0x4067a2(_0x3040fe);},'WNcFg':'detection','tkjbC':'pass','YYApu':_0x1e01(0x5),'vgKRP':_0x1e01(0x55),'DvOJC':function(_0x128da0,_0x24a692){return _0x128da0(_0x24a692);},'wUUNH':'instagram','TJGwu':function(_0x3d1f16,_0x5e8d38){return _0x3d1f16(_0x5e8d38);},'zWUUy':_0x1e01(0x98),'KSKle':'Instagram\x20detection\x20failed','uZqDb':'sephora','NgMXw':function(_0x16711c,_0x3ff826){return _0x16711c(_0x3ff826);},'FwhHZ':_0x1e01(0x1),'LoEVg':_0x1e01(0x34),'ppknc':_0x1e01(0x35),'SEygE':_0x1e01(0xf)},_0x3397f7=[];try{const {isWebViewExtractionPlatform:_0x47efc3,isHingePlatform:_0x3c6c9e,isInstagramPlatform:_0xf0834d,isSephoraPlatform:_0x3fc0a6,isLLMPlatform:_0x1e4ce9}=__ONAIROS_REQ_FUNC__(0x2),_0x28a8d7=_0x4e19b9['QGXzW'](_0x3c6c9e,_0x4e19b9[_0x1e01(0x99)])&&_0x4e19b9[_0x1e01(0x9a)](_0x47efc3,_0x4e19b9['sNKgl'])&&!_0x4e19b9[_0x1e01(0x9a)](_0x1e4ce9,_0x4e19b9['sNKgl']);_0x3397f7['push']({'platform':_0x4e19b9[_0x1e01(0x99)],'component':_0x4e19b9['WNcFg'],'status':_0x28a8d7?_0x4e19b9[_0x1e01(0x9b)]:_0x4e19b9[_0x1e01(0x9c)],'message':_0x28a8d7?_0x1e01(0x9d):_0x4e19b9[_0x1e01(0x9e)]});const _0x1aba4a=_0x4e19b9[_0x1e01(0x9f)](_0xf0834d,_0x1e01(0x30))&&_0x47efc3(_0x4e19b9[_0x1e01(0xa0)])&&!_0x4e19b9[_0x1e01(0xa1)](_0x1e4ce9,_0x1e01(0x30));_0x3397f7[_0x1e01(0x12)]({'platform':_0x4e19b9[_0x1e01(0xa0)],'component':_0x4e19b9[_0x1e01(0xa2)],'status':_0x1aba4a?_0x4e19b9[_0x1e01(0x9b)]:_0x4e19b9[_0x1e01(0x9c)],'message':_0x1aba4a?_0x4e19b9[_0x1e01(0xa3)]:_0x4e19b9[_0x1e01(0xa4)]});const _0x52589f=_0x4e19b9[_0x1e01(0xa5)](_0x3fc0a6,_0x1e01(0x23))&&_0x4e19b9['czBbv'](_0x47efc3,_0x4e19b9[_0x1e01(0xa6)])&&!_0x4e19b9[_0x1e01(0xa1)](_0x1e4ce9,_0x4e19b9[_0x1e01(0xa6)]);_0x3397f7['push']({'platform':_0x4e19b9[_0x1e01(0xa6)],'component':_0x1e01(0x31),'status':_0x52589f?_0x4e19b9[_0x1e01(0x9b)]:_0x4e19b9[_0x1e01(0x9c)],'message':_0x52589f?_0x1e01(0x33):'Sephora\x20detection\x20failed'});const {isTelegramPlatform:_0x1f8705}=_0x4e19b9[_0x1e01(0xa7)](__ONAIROS_REQ_FUNC__,0x1),_0x53b793=_0x1f8705(_0x4e19b9[_0x1e01(0xa8)])&&_0x4e19b9[_0x1e01(0xa5)](_0x47efc3,_0x4e19b9['FwhHZ'])&&!_0x1e4ce9(_0x1e01(0x1));_0x3397f7[_0x1e01(0x12)]({'platform':_0x4e19b9['FwhHZ'],'component':_0x4e19b9[_0x1e01(0xa2)],'status':_0x53b793?_0x1e01(0x4):_0x4e19b9[_0x1e01(0x9c)],'message':_0x53b793?_0x4e19b9['LoEVg']:_0x4e19b9[_0x1e01(0xa9)]});}catch(_0x33345c){_0x3397f7[_0x1e01(0x12)]({'platform':_0x4e19b9['SEygE'],'component':_0x4e19b9[_0x1e01(0xa2)],'status':'fail','message':_0x1e01(0xaa)+_0x33345c[_0x1e01(0x2c)]});}return _0x3397f7;};export const runConnectorSanityTests=async()=>{const _0x59d6a8={'OUDDx':_0x1e01(0xf),'jbmMX':_0x1e01(0x14),'tExGj':_0x1e01(0x5),'fcIyc':_0x1e01(0x1),'WbYEX':_0x1e01(0x2f),'LIsXl':_0x1e01(0xab),'MNbJJ':_0x1e01(0xac),'LadLY':_0x1e01(0xad),'cqRBk':function(_0x5a1864){return _0x5a1864();},'vvGyJ':function(_0x482a8f){return _0x482a8f();},'nhGYi':'📋\x20Testing\x20platform\x20detection...','aZUYX':function(_0x239790){return _0x239790();},'ipsVS':_0x1e01(0xae),'HvZKt':_0x1e01(0xaf),'kSeJj':function(_0x53c1ee,_0x54ee37){return _0x53c1ee===_0x54ee37;},'UaFwg':_0x1e01(0xb0),'HmSQm':_0x1e01(0xb1),'yNDVc':function(_0x52a309,_0x10bd52){return _0x52a309===_0x10bd52;},'HlGld':_0x1e01(0x4),'IMgcl':function(_0x59d329,_0x44fbde){return _0x59d329===_0x44fbde;},'BMTXm':_0x1e01(0xb2),'OPpmN':function(_0x411789,_0x27c796){return _0x411789!==_0x27c796;},'Tcqkg':_0x1e01(0xb3),'YmWNa':_0x1e01(0xb4),'JfmZd':_0x1e01(0xb5)};console['log'](_0x59d6a8[_0x1e01(0xb6)]);const _0x1b02b7=[];console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xb8)]),_0x1b02b7[_0x1e01(0x12)](...testWebViewScriptExports()),console[_0x1e01(0xb7)](_0x59d6a8['LadLY']),_0x1b02b7[_0x1e01(0x12)](..._0x59d6a8[_0x1e01(0xb9)](testServiceImports)),console[_0x1e01(0xb7)]('📋\x20Testing\x20extractor\x20imports...'),_0x1b02b7[_0x1e01(0x12)](..._0x59d6a8[_0x1e01(0xba)](testExtractorImports)),console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xbb)]),_0x1b02b7[_0x1e01(0x12)](..._0x59d6a8[_0x1e01(0xbc)](testPlatformDetection)),console[_0x1e01(0xb7)](_0x1e01(0xbd)),_0x1b02b7[_0x1e01(0x12)](...await _0x59d6a8[_0x1e01(0xb9)](testBackendConnectivity));const _0x5b35ac=_0x1b02b7[_0x1e01(0xbe)](_0x10f3f7=>_0x10f3f7[_0x1e01(0x89)]==='pass')[_0x1e01(0xbf)],_0x37929a=_0x1b02b7[_0x1e01(0xbe)](_0x22a703=>_0x22a703[_0x1e01(0x89)]===_0x1e01(0x5))[_0x1e01(0xbf)],_0x7f08a7=_0x1b02b7[_0x1e01(0xbe)](_0x15913a=>_0x15913a[_0x1e01(0x89)]===_0x1e01(0x7c))['length'];console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xc0)]),console[_0x1e01(0xb7)](_0x1e01(0xc1)),console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xc2)]);for(const _0x55317d of _0x1b02b7){if(_0x59d6a8[_0x1e01(0xc3)](_0x59d6a8[_0x1e01(0xc4)],_0x59d6a8[_0x1e01(0xc5)]))_0x1db8b2['push']({'platform':_0x59d6a8[_0x1e01(0xc6)],'component':_0x59d6a8[_0x1e01(0xc7)],'status':_0x59d6a8['tExGj'],'message':_0x1e01(0x2b)+_0x4fdfd5['message']});else{const _0x3ef254=_0x59d6a8['yNDVc'](_0x55317d[_0x1e01(0x89)],_0x59d6a8[_0x1e01(0xc8)])?'✅':_0x59d6a8[_0x1e01(0xc9)](_0x55317d[_0x1e01(0x89)],_0x59d6a8[_0x1e01(0xca)])?'❌':'⚠️';console[_0x1e01(0xb7)](_0x3ef254+'\x20['+_0x55317d[_0x1e01(0xcb)]['toUpperCase']()+']\x20'+_0x55317d[_0x1e01(0xcc)]+':\x20'+_0x55317d[_0x1e01(0x2c)]);}}console['log'](_0x59d6a8[_0x1e01(0xc0)]),console[_0x1e01(0xb7)](_0x1e01(0xcd)+_0x5b35ac+_0x1e01(0xce)+_0x37929a+'\x20failed,\x20'+_0x7f08a7+_0x1e01(0xcf)),console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xc2)]);if(_0x37929a>0x0)console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xd0)]);else _0x7f08a7>0x0?console['log'](_0x1e01(0x0)):_0x59d6a8[_0x1e01(0xd1)](_0x59d6a8['Tcqkg'],_0x59d6a8[_0x1e01(0xd2)])?console[_0x1e01(0xb7)](_0x59d6a8[_0x1e01(0xd3)]):_0x27ede0[_0x1e01(0x12)]({'platform':_0x59d6a8[_0x1e01(0xd4)],'component':_0x59d6a8[_0x1e01(0xd5)],'status':_0x1e01(0x5),'message':_0x1e01(0x2b)+_0x2dc679[_0x1e01(0x2c)]});return{'passed':_0x5b35ac,'failed':_0x37929a,'warnings':_0x7f08a7,'results':_0x1b02b7};};export const testPlatformConnector=async _0x458a4c=>{const _0x2eb519={'VaRsV':function(_0x109caa,_0x240537){return _0x109caa(_0x240537);},'fvRzM':_0x1e01(0x8),'OIFTQ':function(_0x45db8d,_0x20f7fb){return _0x45db8d(_0x20f7fb);},'EKwLI':_0x1e01(0x31),'bALUR':_0x1e01(0x5),'tqTmE':'Hinge\x20detection\x20failed','abNey':function(_0x1763eb,_0xf0f94b){return _0x1763eb(_0xf0f94b);},'uYCfX':_0x1e01(0x30),'TabMR':function(_0x66f327,_0x2e2713){return _0x66f327(_0x2e2713);},'XJXEz':'sephora','SBqHz':_0x1e01(0x33),'PdSJk':_0x1e01(0x5b),'zKxPk':function(_0x51ef54,_0xdc0020){return _0x51ef54(_0xdc0020);},'LyuUQ':_0x1e01(0x1),'IDGOm':_0x1e01(0x4),'INGZv':'Telegram\x20detection\x20failed','eSpnR':_0x1e01(0xf),'ppDUu':function(_0x2de99e,_0x5391fe){return _0x2de99e(_0x5391fe);},'Xrbkx':function(_0x2fb9b7,_0x21cb8d){return _0x2fb9b7+_0x21cb8d;},'PyBQH':_0x1e01(0x2f),'rFsqC':_0x1e01(0x3),'NlIPz':function(_0x290f5c,_0x5f33fe){return _0x290f5c===_0x5f33fe;},'bnBJK':function(_0x1a2b5f,_0x35118b){return _0x1a2b5f===_0x35118b;},'RDbEP':_0x1e01(0x79),'qYOaH':_0x1e01(0x60),'xaddu':_0x1e01(0xd6),'TAnSu':function(_0x4c3aff,_0x3aeb82){return _0x4c3aff(_0x3aeb82);},'fUQMW':'storeInstagramData','NbtGf':'storeTelegramData','mygjd':_0x1e01(0x2),'ZbEbf':function(_0x16f5db,_0x1385dc){return _0x16f5db===_0x1385dc;},'mUQQQ':function(_0x56da01,_0x37d76e){return _0x56da01(_0x37d76e);},'RSpEA':function(_0x229500,_0x1ecc65){return _0x229500+_0x1ecc65;},'wZIQW':function(_0x1e3fc9,_0x1945e2){return _0x1e3fc9===_0x1945e2;},'zMTFF':_0x1e01(0xd7),'ebcQh':function(_0xd4cb2e,_0x18bf93){return _0xd4cb2e!==_0x18bf93;},'knSzW':_0x1e01(0xd8),'aIsyU':_0x1e01(0xd9),'MFSas':_0x1e01(0x7c),'OnPBH':function(_0x28a127,_0x48331d){return _0x28a127===_0x48331d;},'NJvzj':_0x1e01(0xda),'VmXKo':function(_0x18a4b0,_0x497f46){return _0x18a4b0===_0x497f46;},'ilypi':function(_0x16e24d,_0x843f89){return _0x16e24d===_0x843f89;}};console[_0x1e01(0xb7)](_0x1e01(0xdb)+_0x458a4c+_0x1e01(0xdc));const _0x3afa2c=[],_0xba0bce=_0x458a4c[_0x1e01(0xdd)]();if([_0x2eb519[_0x1e01(0xde)],_0x2eb519['uYCfX'],'sephora',_0x2eb519[_0x1e01(0xdf)]][_0x1e01(0xe0)](_0xba0bce)){try{const _0x35c539=_0x2eb519[_0x1e01(0xe1)](__ONAIROS_REQ_FUNC__,0x0),_0x598f04=_0xba0bce['toUpperCase']()+_0x1e01(0x8e),_0x3939a7=!!_0x35c539[_0x598f04];_0x3afa2c[_0x1e01(0x12)]({'platform':_0xba0bce,'component':_0x1e01(0x60),'status':_0x3939a7?_0x2eb519['IDGOm']:_0x2eb519['bALUR'],'message':_0x3939a7?_0x1e01(0x78):_0x2eb519[_0x1e01(0xe2)]});}catch(_0x57b6aa){_0x3afa2c[_0x1e01(0x12)]({'platform':_0xba0bce,'component':_0x2eb519[_0x1e01(0xe3)],'status':_0x2eb519['bALUR'],'message':_0x1e01(0x6a)+_0x57b6aa[_0x1e01(0x2c)]});}try{if(_0x2eb519[_0x1e01(0xe4)](_0x1e01(0xd6),_0x2eb519['xaddu'])){const _0x205b4a=_0x2eb519[_0x1e01(0xe5)](__ONAIROS_REQ_FUNC__,0x14),_0xc92d19=_0x2eb519[_0x1e01(0xe6)](_0xba0bce,_0x1e01(0x8))?_0x1e01(0xe7):_0xba0bce===_0x1e01(0x30)?_0x2eb519['fUQMW']:_0x2eb519[_0x1e01(0xe4)](_0xba0bce,_0x2eb519['LyuUQ'])?_0x2eb519[_0x1e01(0xe8)]:_0x1e01(0xe9);_0x3afa2c[_0x1e01(0x12)]({'platform':_0xba0bce,'component':_0x2eb519[_0x1e01(0xea)],'status':_0x2eb519[_0x1e01(0xeb)](typeof _0x205b4a[_0xc92d19],_0x2eb519[_0x1e01(0xec)])?_0x2eb519[_0x1e01(0xed)]:_0x2eb519['bALUR'],'message':_0x1e01(0xee)+_0xc92d19+_0x1e01(0xef)});}else{const _0x123032=[];try{const {isWebViewExtractionPlatform:_0x4fcd86,isHingePlatform:_0x5bc692,isInstagramPlatform:_0x7e7270,isSephoraPlatform:_0x4d6cfc,isLLMPlatform:_0x17f8bb}=_0x2eb519[_0x1e01(0xf0)](_0xdf9432,0x2),_0x236eeb=_0x5bc692(_0x2eb519[_0x1e01(0xde)])&&_0x2eb519[_0x1e01(0xe1)](_0x4fcd86,_0x2eb519[_0x1e01(0xde)])&&!_0x2eb519['OIFTQ'](_0x17f8bb,_0x2eb519['fvRzM']);_0x123032[_0x1e01(0x12)]({'platform':_0x2eb519[_0x1e01(0xde)],'component':_0x2eb519['EKwLI'],'status':_0x236eeb?_0x1e01(0x4):_0x2eb519['bALUR'],'message':_0x236eeb?'Hinge\x20detection\x20correct':_0x2eb519[_0x1e01(0xf1)]});const _0x135257=_0x2eb519['abNey'](_0x7e7270,_0x2eb519[_0x1e01(0xf2)])&&_0x4fcd86(_0x2eb519[_0x1e01(0xf2)])&&!_0x17f8bb(_0x2eb519[_0x1e01(0xf2)]);_0x123032[_0x1e01(0x12)]({'platform':_0x2eb519['uYCfX'],'component':_0x2eb519[_0x1e01(0xf3)],'status':_0x135257?'pass':_0x2eb519[_0x1e01(0xf4)],'message':_0x135257?_0x1e01(0x98):'Instagram\x20detection\x20failed'});const _0x1abbfd=_0x2eb519['TabMR'](_0x4d6cfc,_0x2eb519[_0x1e01(0xf5)])&&_0x4fcd86(_0x1e01(0x23))&&!_0x17f8bb(_0x2eb519[_0x1e01(0xf5)]);_0x123032['push']({'platform':_0x2eb519[_0x1e01(0xf5)],'component':_0x2eb519[_0x1e01(0xf3)],'status':_0x1abbfd?_0x1e01(0x4):_0x2eb519[_0x1e01(0xf4)],'message':_0x1abbfd?_0x2eb519[_0x1e01(0xf6)]:_0x2eb519[_0x1e01(0xf7)]});const {isTelegramPlatform:_0x494927}=_0x2eb519[_0x1e01(0xf8)](_0x1a431a,0x1),_0x5719b3=_0x494927(_0x2eb519['LyuUQ'])&&_0x2eb519[_0x1e01(0xf8)](_0x4fcd86,_0x2eb519[_0x1e01(0xdf)])&&!_0x2eb519['zKxPk'](_0x17f8bb,_0x2eb519[_0x1e01(0xdf)]);_0x123032[_0x1e01(0x12)]({'platform':_0x2eb519['LyuUQ'],'component':_0x2eb519['EKwLI'],'status':_0x5719b3?_0x2eb519[_0x1e01(0xed)]:_0x2eb519['bALUR'],'message':_0x5719b3?'Telegram\x20detection\x20correct':_0x2eb519['INGZv']});}catch(_0x22c822){_0x123032[_0x1e01(0x12)]({'platform':_0x2eb519[_0x1e01(0xf9)],'component':_0x2eb519[_0x1e01(0xf3)],'status':_0x2eb519[_0x1e01(0xf4)],'message':_0x1e01(0xaa)+_0x22c822[_0x1e01(0x2c)]});}return _0x123032;}}catch(_0x2dc368){_0x3afa2c[_0x1e01(0x12)]({'platform':_0xba0bce,'component':_0x1e01(0x2),'status':_0x2eb519[_0x1e01(0xf4)],'message':_0x1e01(0xfa)+_0x2dc368['message']});}try{const _0x528792=_0x2eb519['mUQQQ'](__ONAIROS_REQ_FUNC__,0x15),_0x163bed=_0x1e01(0xfb)+_0x2eb519[_0x1e01(0xfc)](_0xba0bce[_0x1e01(0xfd)](0x0)[_0x1e01(0xfe)](),_0xba0bce[_0x1e01(0xff)](0x1))+'DataExtractor';_0x3afa2c['push']({'platform':_0xba0bce,'component':_0x2eb519['PyBQH'],'status':_0x2eb519[_0x1e01(0x100)](typeof _0x528792[_0x163bed],_0x2eb519[_0x1e01(0xec)])?_0x2eb519['IDGOm']:_0x1e01(0x5),'message':'Extractor\x20hook\x20'+_0x163bed+_0x1e01(0xef)});}catch(_0x1c22bf){if(_0x2eb519[_0x1e01(0xe4)](_0x2eb519[_0x1e01(0x101)],_0x1e01(0xd7)))_0x3afa2c['push']({'platform':_0xba0bce,'component':_0x2eb519[_0x1e01(0x102)],'status':_0x1e01(0x5),'message':_0x1e01(0x46)+_0x1c22bf['message']});else{const _0x31a227=_0x2eb519['ppDUu'](_0x3864b4,0x15),_0x3fd22d=_0x1e01(0xfb)+_0x2eb519['Xrbkx'](_0x1c01c7[_0x1e01(0xfd)](0x0)['toUpperCase'](),_0x51a07a['slice'](0x1))+_0x1e01(0x103);_0x5937dc['push']({'platform':_0x55f1f9,'component':_0x2eb519[_0x1e01(0x102)],'status':typeof _0x31a227[_0x3fd22d]===_0x2eb519[_0x1e01(0xec)]?_0x2eb519[_0x1e01(0xed)]:_0x2eb519[_0x1e01(0xf4)],'message':'Extractor\x20hook\x20'+_0x3fd22d+_0x1e01(0xef)});}}}else{if(_0x2eb519[_0x1e01(0x104)](_0x2eb519[_0x1e01(0x105)],_0x2eb519[_0x1e01(0x106)]))_0x3afa2c[_0x1e01(0x12)]({'platform':_0xba0bce,'component':_0x1e01(0x107),'status':_0x2eb519[_0x1e01(0x108)],'message':'Unknown\x20platform:\x20'+_0x458a4c+'.\x20Use\x20\x27hinge\x27,\x20\x27instagram\x27,\x20\x27sephora\x27,\x20or\x20\x27telegram\x27.'});else{const _0xc17223=_0x2eb519[_0x1e01(0xe6)](_0x413f11[_0x1e01(0x89)],_0x2eb519['IDGOm'])?'✅':_0x2eb519['bnBJK'](_0x2d8874[_0x1e01(0x89)],_0x2eb519[_0x1e01(0xf4)])?'❌':'⚠️';_0x44d4ab[_0x1e01(0xb7)](_0xc17223+'\x20'+_0x538d18[_0x1e01(0xcc)]+':\x20'+_0x4b95e7['message']);}}for(const _0x4484ac of _0x3afa2c){if(_0x2eb519[_0x1e01(0x109)](_0x2eb519[_0x1e01(0x10a)],_0x2eb519[_0x1e01(0x10a)])){const _0x47c795=_0x2eb519[_0x1e01(0x10b)](_0x4484ac['status'],_0x2eb519[_0x1e01(0xed)])?'✅':_0x2eb519['ilypi'](_0x4484ac['status'],_0x2eb519[_0x1e01(0xf4)])?'❌':'⚠️';console[_0x1e01(0xb7)](_0x47c795+'\x20'+_0x4484ac[_0x1e01(0xcc)]+':\x20'+_0x4484ac[_0x1e01(0x2c)]);}else _0x172e59[_0x1e01(0x12)]({'platform':_0x2eb519[_0x1e01(0xf9)],'component':_0x1e01(0x31),'status':_0x1e01(0x5),'message':'Detection\x20test\x20error:\x20'+_0x4d2e6e[_0x1e01(0x2c)]});}return _0x3afa2c;};function _0x3167(){const _0x3b20ae=['⚠️\x20All\x20critical\x20tests\x20passed,\x20but\x20there\x20are\x20warnings.','telegram','service','function','pass','fail','Telegram\x20service\x20function\x20available','ChatGPT\x20scripts\x20missing','hinge','Hinge\x20scripts\x20missing','Sephora\x20scripts\x20exported\x20correctly','Sephora\x20scripts\x20missing','Telegram\x20scripts\x20exported\x20correctly','Telegram\x20scripts\x20missing','xBAKW','all','KpFJu','LtNqn','push','chatgpt','webview_scripts','ChatGPT\x20scripts\x20exported\x20correctly','KxCjT','IAAZv','claude','QWFiV','LjZEo','EYIeP','PrHVW','HIIst','Hinge\x20scripts\x20exported\x20correctly','ofAcb','Instagram\x20scripts\x20exported\x20correctly','Instagram\x20scripts\x20missing','LBdpD','sephora','xcWet','TrqyB','NiBma','platform_detection','yarVI','VqOBW','wfuJn','Import\x20error:\x20','message','jPCzR','nvLua','extractor','instagram','detection','Instagram\x20detection\x20failed','Sephora\x20detection\x20correct','Telegram\x20detection\x20correct','Telegram\x20detection\x20failed','ssoSd','Claude\x20service\x20function\x20available','Instagram\x20service\x20function\x20available','sNXav','XdxoM','oAiko','Ablsw','OtEaS','RCoUw','QiIpV','fCFlP','SNlxw','ZEkzO','DJvIq','aGIDd','ASfDd','Extractor\x20import\x20failed:\x20','YTYoz','RYqlc','AHbcI','TDCRd','IqmNx','NeknJ','tNWZu','myhBA','UdpUT','sJRXl','eHfNb','nnugE','UKrZP','EuTxC','Hinge\x20detection\x20failed','ECvMP','ZosDu','euEMs','XIDRt','PVipI','Sephora\x20detection\x20failed','DByCx','BNXJy','lLGFk','TBNGS','webview_script','xDQgp','YZBmd','Hinge\x20extractor\x20hook\x20available','Instagram\x20extractor\x20hook\x20available','PCUKY','Telegram\x20extractor\x20hook\x20available','iKYEk','JmpnG','OfRWh','Script\x20import\x20failed:\x20','CTPSS','GMsFV','HbVBa','BayPj','FROXj','VvlWM','eWwpz','Sephora\x20extractor\x20hook\x20available','pttmr','UwJQh','cmpXH','POMis','HBMdt','Export\x20script\x20available','Export\x20script\x20missing','backend','health','warning','Backend\x20health\x20check\x20passed','DdjFD','OPTIONS','platform_data_endpoint','oihfg','abort','/health','signal','NxSpb','goTer','CeWQX','Backend\x20returned\x20status\x20','status','DiICr','zONDS','HStoE','hkRFS','_EXPORT_SCRIPT','ZQsEF','FqPME','UcQoW','DvSRH','BASE_URL','/platform-data/store','lrAgl','Platform\x20data\x20endpoint\x20check:\x20','Endpoint\x20check\x20failed\x20(may\x20require\x20auth):\x20','Instagram\x20detection\x20correct','sNKgl','czBbv','tkjbC','YYApu','Hinge\x20detection\x20correct','vgKRP','DvOJC','wUUNH','TJGwu','WNcFg','zWUUy','KSKle','QGXzW','uZqDb','NgMXw','FwhHZ','ppknc','Detection\x20test\x20error:\x20','🧪\x20[CONNECTOR_TESTS]\x20Starting\x20connector\x20sanity\x20tests...\x0a','📋\x20Testing\x20WebView\x20script\x20exports...','📋\x20Testing\x20service\x20imports...','\x0a========================================','========================================\x0a','xCKkn','IxjnQ','❌\x20Some\x20tests\x20failed!\x20Please\x20check\x20the\x20errors\x20above.','MSDsd','GqcJB','✅\x20All\x20tests\x20passed!\x20Connectors\x20are\x20ready.','LIsXl','log','MNbJJ','cqRBk','vvGyJ','nhGYi','aZUYX','📋\x20Testing\x20backend\x20connectivity...','filter','length','ipsVS','🧪\x20CONNECTOR\x20SANITY\x20TEST\x20RESULTS','HvZKt','kSeJj','UaFwg','HmSQm','OUDDx','jbmMX','HlGld','IMgcl','tExGj','platform','component','📊\x20Summary:\x20','\x20passed,\x20','\x20warnings','BMTXm','OPpmN','YmWNa','JfmZd','fcIyc','WbYEX','FWUqM','CYDJn','eVXQH','QKEvy','Jxkcs','🧪\x20Testing\x20','\x20connector...\x0a','toLowerCase','fvRzM','LyuUQ','includes','OIFTQ','RDbEP','qYOaH','bnBJK','TAnSu','NlIPz','storeHingeData','NbtGf','storeSephoraData','mygjd','ZbEbf','rFsqC','IDGOm','Service\x20function\x20','\x20available','VaRsV','tqTmE','uYCfX','EKwLI','bALUR','XJXEz','SBqHz','PdSJk','zKxPk','eSpnR','Service\x20import\x20failed:\x20','use','RSpEA','charAt','toUpperCase','slice','wZIQW','zMTFF','PyBQH','DataExtractor','ebcQh','knSzW','aIsyU','validation','MFSas','OnPBH','NJvzj','VmXKo'];_0x3167=function(){return _0x3b20ae;};return _0x3167();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
import{RSA}from'react-native-rsa-native';import{sha256 as _0x3772c1}from'react-native-crypto-js';function _0x2bd6(){const _0x1a6b47=['-----END\x20PUBLIC\x20KEY-----','RSA\x20encryption\x20failed:','replace','-----BEGIN\x20PUBLIC\x20KEY-----','dljtZ','trim','-----BEGIN\x20PUBLIC\x20KEY-----\x0a','\x0a-----END\x20PUBLIC\x20KEY-----','encrypt','error','VgGKc','toString','base64','binary','from','HaPdD','VNynW','length','YUYtv','charCodeAt','buffer','dttJO','YIHPC','gVUcR','Error\x20converting\x20base64\x20to\x20buffer:'];_0x2bd6=function(){return _0x1a6b47;};return _0x2bd6();}export const rsaEncrypt=async(_0x36d604,_0x2a5444)=>{const _0x4d55c9={'dljtZ':_0x53e2(0x0),'qRPnA':_0x53e2(0x1)};try{const _0x49f96f=_0x36d604[_0x53e2(0x2)](/\\n/g,'')[_0x53e2(0x2)](/^\s+|\s+$/g,'')[_0x53e2(0x2)](_0x53e2(0x3),'')[_0x53e2(0x2)](_0x4d55c9[_0x53e2(0x4)],'')[_0x53e2(0x5)](),_0x4e2714=_0x53e2(0x6)+_0x49f96f+_0x53e2(0x7),_0x1960d3=await RSA[_0x53e2(0x8)](_0x2a5444,_0x4e2714);return _0x1960d3;}catch(_0x4cd011){console[_0x53e2(0x9)](_0x4d55c9['qRPnA'],_0x4cd011);throw _0x4cd011;}};function _0x53e2(_0x2bd6be,_0x53e290){_0x2bd6be=_0x2bd6be-0x0;const _0x3703cf=_0x2bd6();let _0x3f9836=_0x3703cf[_0x2bd6be];return _0x3f9836;}export const sha256=_0x31cf8e=>{const _0x322d53={'VgGKc':function(_0x18e612,_0x495f20){return _0x18e612(_0x495f20);}};return _0x322d53[_0x53e2(0xa)](_0x3772c1,_0x31cf8e)[_0x53e2(0xb)]();};export const base64ToBuffer=_0x182c5a=>{const _0x46824a={'HaPdD':_0x53e2(0xc),'VNynW':_0x53e2(0xd),'YUYtv':function(_0x1830a9,_0x539573){return _0x1830a9<_0x539573;},'dttJO':function(_0x4055af,_0x77d126){return _0x4055af!==_0x77d126;},'YIHPC':'KOxWG','gVUcR':'hwEHb'};try{const _0x477739=Buffer[_0x53e2(0xe)](_0x182c5a,_0x46824a[_0x53e2(0xf)])['toString'](_0x46824a[_0x53e2(0x10)]),_0x5b631a=new Uint8Array(_0x477739[_0x53e2(0x11)]);for(let _0x14d2d7=0x0;_0x46824a[_0x53e2(0x12)](_0x14d2d7,_0x477739[_0x53e2(0x11)]);_0x14d2d7++){_0x5b631a[_0x14d2d7]=_0x477739[_0x53e2(0x13)](_0x14d2d7);}return _0x5b631a[_0x53e2(0x14)];}catch(_0x4e2a97){if(_0x46824a[_0x53e2(0x15)](_0x46824a[_0x53e2(0x16)],_0x46824a[_0x53e2(0x17)])){console['error'](_0x53e2(0x18),_0x4e2a97);throw _0x4e2a97;}else _0x5cf4cc[_0x203265]=_0x5f1d84['charCodeAt'](_0x272a12);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4c4f(){const _0x92dff8=['env','NODE_ENV','production','PLxoK','SuZIL','mSRUU','[Onairos\x20Error]\x20','VFnck','API\x20Request','pfiQR','IcxoX'];_0x4c4f=function(){return _0x92dff8;};return _0x4c4f();}const __DEV__=process[_0x3748(0x0)][_0x3748(0x1)]!==_0x3748(0x2);export const logDebug=(_0x4e6723,_0x35bb90)=>{__DEV__&&console['log']('[Onairos\x20Debug]\x20'+_0x4e6723+':',_0x35bb90||'');};export const logError=(_0xe0ab3,_0x5db2e9)=>{const _0x27ee2e={'gzSHj':_0x3748(0x3),'mSRUU':_0x3748(0x4)};if(__DEV__){if(_0x27ee2e['gzSHj']===_0x27ee2e[_0x3748(0x5)])return _0x3551d1===!![]||_0x3ffe5d;else console['error'](_0x3748(0x6)+_0xe0ab3+':',_0x5db2e9);}};export const isDebugMode=_0x335d34=>{const _0x33f2af={'VFnck':function(_0xa5222b,_0x21d9a4){return _0xa5222b===_0x21d9a4;}};return _0x33f2af[_0x3748(0x7)](_0x335d34,!![])||__DEV__;};function _0x3748(_0x4c4fba,_0x374832){_0x4c4fba=_0x4c4fba-0x0;const _0x3fce59=_0x4c4f();let _0x4bf515=_0x3fce59[_0x4c4fba];return _0x4bf515;}export const logApiRequest=(_0x4e9f59,_0x26d33c,_0x119274)=>{const _0xab8426={'pfiQR':_0x3748(0x8),'IcxoX':function(_0x5e9dc0,_0x8d8e69){return _0x5e9dc0||_0x8d8e69;}};__DEV__&&logDebug(_0xab8426[_0x3748(0x9)],{'method':_0x4e9f59,'url':_0x26d33c,'data':_0xab8426[_0x3748(0xa)](_0x119274,{})});};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{onairosApi}from'../api';
|
|
1
|
+
import{onairosApi}from'../api';export const encryptModelKey=(_0x4a1057,_0x4bd822)=>{const _0x2e33a6={'QPJRv':'Encrypting\x20model\x20key','YYVIK':function(_0x494b58,_0x559daf){return _0x494b58||_0x559daf;},'iCfrF':_0x30c0(0x0),'mxSPh':_0x30c0(0x1),'HDzIC':function(_0x4ed2cb,_0x210dba){return _0x4ed2cb===_0x210dba;},'uJnRf':_0x30c0(0x2)};try{if(_0x2e33a6[_0x30c0(0x3)](_0x2e33a6['uJnRf'],_0x2e33a6[_0x30c0(0x4)])){console['log'](_0x2e33a6[_0x30c0(0x5)]);if(_0x2e33a6[_0x30c0(0x6)](!_0x4a1057,!_0x4bd822))throw new Error(_0x2e33a6[_0x30c0(0x7)]);return _0x30c0(0x8)+_0x4bd822+'_'+Date[_0x30c0(0x9)]();}else try{_0x391a2a[_0x30c0(0xa)](_0x2e33a6[_0x30c0(0x5)]);if(_0x2e33a6[_0x30c0(0x6)](!_0x24e857,!_0x3b2ccc))throw new _0x336795(_0x2e33a6['iCfrF']);return'encrypted_'+_0x28209e+'_'+_0x3435e1[_0x30c0(0x9)]();}catch(_0x2b8d70){_0x1d8191['error'](_0x2e33a6[_0x30c0(0xb)],_0x2b8d70);throw _0x2b8d70;}}catch(_0x490eea){console[_0x30c0(0xc)](_0x2e33a6[_0x30c0(0xb)],_0x490eea);throw _0x490eea;}};function _0x30c0(_0x1f4512,_0x30c034){_0x1f4512=_0x1f4512-0x0;const _0x3a421c=_0x1f45();let _0x1ff9e0=_0x3a421c[_0x1f4512];return _0x1ff9e0;}export const getServerPublicKey=async()=>{const _0x5a9841={'JaNuc':'No\x20public\x20key\x20found\x20in\x20response','qOphn':_0x30c0(0xd),'IWPka':_0x30c0(0xe),'dZqSB':_0x30c0(0xf),'GqfiG':function(_0x55a932,_0x563db7){return _0x55a932!==_0x563db7;},'JVQYB':function(_0x32a6a6,_0x385530){return _0x32a6a6!==_0x385530;},'wknAp':function(_0xe35b3e,_0x5aeb50){return _0xe35b3e!==_0x5aeb50;},'Jeftw':function(_0x593a11,_0x4c301c){return _0x593a11!==_0x4c301c;},'suCzb':function(_0xd3d28d,_0x382b80){return _0xd3d28d===_0x382b80;},'EfCfU':_0x30c0(0x10),'lvAeP':_0x30c0(0x11),'AbSWC':function(_0x4a7f6b,_0x299fc7){return _0x4a7f6b!==_0x299fc7;},'nqfdf':_0x30c0(0x12),'ooGfG':_0x30c0(0x13),'iVBwR':function(_0x228167,_0x1ec9f9){return _0x228167!==_0x1ec9f9;},'Vfdiv':_0x30c0(0x14),'uoKak':_0x30c0(0x15)};try{var _0x50ccc4,_0x19703e;const _0x52513a=await onairosApi['get'](_0x5a9841[_0x30c0(0x16)]);if(_0x52513a!==null&&_0x5a9841[_0x30c0(0x17)](_0x52513a,void 0x0)&&_0x5a9841[_0x30c0(0x18)](_0x50ccc4=_0x52513a[_0x30c0(0x19)],null)&&_0x5a9841[_0x30c0(0x1a)](_0x50ccc4,void 0x0)&&_0x5a9841[_0x30c0(0x1a)](_0x50ccc4=_0x50ccc4['data'],null)&&_0x5a9841['Jeftw'](_0x50ccc4,void 0x0)&&_0x50ccc4[_0x30c0(0x1b)]){if(_0x5a9841['suCzb'](_0x5a9841[_0x30c0(0x1c)],_0x5a9841[_0x30c0(0x1d)]))throw new _0x228ed3(_0x5a9841['JaNuc']);else return _0x52513a[_0x30c0(0x19)][_0x30c0(0x19)][_0x30c0(0x1b)];}else{if(_0x5a9841['JVQYB'](_0x52513a,null)&&_0x52513a!==void 0x0&&_0x5a9841[_0x30c0(0x1e)](_0x19703e=_0x52513a['data'],null)&&_0x5a9841[_0x30c0(0x1f)](_0x19703e,void 0x0)&&_0x19703e[_0x30c0(0x1b)]){if(_0x5a9841['GqfiG'](_0x5a9841[_0x30c0(0x20)],'yCAiZ'))try{return _0x30c0(0x21)+_0x57bb0b['replace'](/\s+/g,'_')+'_'+_0x168644[_0x30c0(0x9)]();}catch(_0x528aae){return _0x22a552[_0x30c0(0xc)](_0x5a9841['qOphn'],_0x528aae),_0x30c0(0x22)+_0x16b074[_0x30c0(0x9)]();}else return _0x52513a[_0x30c0(0x19)]['publicKey'];}else{if(_0x5a9841[_0x30c0(0x23)](_0x5a9841[_0x30c0(0x24)],_0x30c0(0x13)))throw new Error(_0x5a9841[_0x30c0(0x25)]);else return _0xccacf8['error'](_0x5a9841[_0x30c0(0x26)],_0x191003),_0x30c0(0x15);}}}catch(_0x55a779){return _0x5a9841[_0x30c0(0x27)](_0x30c0(0x28),_0x5a9841['Vfdiv'])?(console[_0x30c0(0xc)](_0x5a9841[_0x30c0(0x26)],_0x55a779),_0x5a9841[_0x30c0(0x29)]):_0x5567d5[_0x30c0(0x19)][_0x30c0(0x1b)];}};export const hashString=async _0x1ce4e0=>{try{return _0x30c0(0x21)+_0x1ce4e0['replace'](/\s+/g,'_')+'_'+Date[_0x30c0(0x9)]();}catch(_0x2b95c4){return console[_0x30c0(0xc)](_0x30c0(0xd),_0x2b95c4),_0x30c0(0x22)+Date[_0x30c0(0x9)]();}};function _0x1f45(){const _0x57b108=['Public\x20key\x20or\x20model\x20key\x20is\x20missing','Error\x20encrypting\x20model\x20key:','swmkP','HDzIC','uJnRf','QPJRv','YYVIK','iCfrF','encrypted_','now','log','mxSPh','error','Error\x20hashing\x20string:','Error\x20getting\x20server\x20public\x20key:','public/getPublicKey','LAtAE','piTAN','yCAiZ','kcdyU','JSwuk','mock_public_key_for_testing','dZqSB','GqfiG','JVQYB','data','wknAp','publicKey','EfCfU','lvAeP','Jeftw','AbSWC','nqfdf','hash_','fallback_hash_','suCzb','ooGfG','JaNuc','IWPka','iVBwR','KCdTB','uoKak'];_0x1f45=function(){return _0x57b108;};return _0x1f45();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const generateEventCode=(_0x56ca63=0x6)=>{const _0x26285d={'kHpoe':function(_0x334e62,_0x31b065){return _0x334e62<_0x31b065;},'gpvIM':function(_0x30e9e3,_0x46a6bf){return _0x30e9e3!==_0x46a6bf;},'LWLXV':'VbfeC','bMPha':function(_0x24857a,_0x27d476){return _0x24857a*_0x27d476;}},_0x90ce13=_0x398e(0x0);let _0x238c79='';for(let _0xa2074e=0x0;_0x26285d['kHpoe'](_0xa2074e,_0x56ca63);_0xa2074e++){_0x26285d['gpvIM'](_0x26285d[_0x398e(0x1)],_0x26285d[_0x398e(0x1)])?_0x3c392e=_0x2cbddc[_0x398e(0x2)](0x0,0x8):_0x238c79+=_0x90ce13[_0x398e(0x3)](Math['floor'](_0x26285d[_0x398e(0x4)](Math[_0x398e(0x5)](),_0x90ce13[_0x398e(0x6)])));}return _0x238c79;};export const generateSmartEventCode=_0x797357=>{const _0x19c24f={'JCqZP':function(_0x2367c3,_0x262ddd){return _0x2367c3<_0x262ddd;},'bqEpl':_0x398e(0x7),'eujCN':function(_0x4908b9,_0x4cb179){return _0x4908b9-_0x4cb179;},'DCHYj':function(_0x1be5bb,_0x356565){return _0x1be5bb/_0x356565;},'Zsrzq':function(_0x1ce94c,_0x5f2113){return _0x1ce94c*_0x5f2113;},'yzlAt':function(_0x34308f,_0x21aeca){return _0x34308f===_0x21aeca;},'vdUYz':_0x398e(0x8),'xnaEb':function(_0x34950a){return _0x34950a();},'GTfMD':'ZXRGh','tUVmZ':_0x398e(0x9),'gmrJy':function(_0x5bd097,_0x25b07e){return _0x5bd097===_0x25b07e;},'yddkO':_0x398e(0xa),'dvTSF':_0x398e(0xb),'bwYey':_0x398e(0xc),'rbdWE':function(_0xc17c8,_0x1f9ca9){return _0xc17c8(_0x1f9ca9);},'dNeVj':function(_0x579bb9,_0x468ca0){return _0x579bb9-_0x468ca0;},'dJlGL':function(_0xd9c578,_0x3891f7){return _0xd9c578>_0x3891f7;},'ZHHzO':'gPdjz'};if(!_0x797357[_0x398e(0xd)]())return generateEventCode();const _0x3fb9d8=_0x797357[_0x398e(0xd)]()['toUpperCase']()[_0x398e(0xe)](/[^A-Z0-9\s]/g,'')[_0x398e(0xf)](/\s+/)[_0x398e(0x10)](_0x29742c=>_0x29742c[_0x398e(0x6)]>0x0);if(_0x3fb9d8[_0x398e(0x6)]===0x0)return _0x19c24f[_0x398e(0x11)](_0x19c24f[_0x398e(0x12)],_0x398e(0x13))?0x0:_0x19c24f[_0x398e(0x14)](generateEventCode);let _0x2db2f5='';if(_0x3fb9d8[_0x398e(0x6)]>=0x2){if(_0x19c24f[_0x398e(0x15)]===_0x19c24f['tUVmZ'])try{const _0x103a12=new _0x21ea63(),_0x71e7ce=new _0x157ecb(_0x52ace6);return _0x103a12['setHours'](0x0,0x0,0x0,0x0),_0x71e7ce[_0x398e(0x16)](0x0,0x0,0x0,0x0),_0x19c24f[_0x398e(0x17)](_0x71e7ce,_0x103a12);}catch(_0x56a456){return![];}else{const _0x3d610c=_0x3fb9d8[_0x398e(0x18)](0x0,0x3);_0x2db2f5=_0x3d610c[_0x398e(0x19)](_0x428a2f=>_0x428a2f[_0x398e(0x2)](0x0,0x2))[_0x398e(0x1a)]('');}}else{if(_0x19c24f[_0x398e(0x1b)](_0x19c24f[_0x398e(0x1c)],_0x19c24f[_0x398e(0x1d)]))return _0x19c24f['bqEpl'];else _0x2db2f5=_0x3fb9d8[0x0][_0x398e(0x2)](0x0,0x4);}const _0x2dcdfe=new Date()[_0x398e(0x1e)]()[_0x398e(0x1f)]()[_0x398e(0x18)](-0x2);_0x2db2f5+=_0x2dcdfe;if(_0x2db2f5[_0x398e(0x6)]<0x4){if(_0x19c24f[_0x398e(0x1b)](_0x398e(0x20),_0x19c24f[_0x398e(0x21)]))try{const _0x56cb79=new _0x3f7731(),_0x4b4df2=new _0x2f031e(_0x155b23);_0x56cb79['setHours'](0x0,0x0,0x0,0x0),_0x4b4df2[_0x398e(0x16)](0x0,0x0,0x0,0x0);const _0x4a524b=_0x19c24f[_0x398e(0x22)](_0x4b4df2[_0x398e(0x23)](),_0x56cb79[_0x398e(0x23)]()),_0x54aaea=_0x293ebd[_0x398e(0x24)](_0x19c24f[_0x398e(0x25)](_0x4a524b,_0x19c24f['Zsrzq'](_0x19c24f[_0x398e(0x26)](0x3e8,0x3c)*0x3c,0x18)));return _0x54aaea;}catch(_0x21c09a){return 0x0;}else _0x2db2f5+=_0x19c24f['rbdWE'](generateEventCode,_0x19c24f['dNeVj'](0x4,_0x2db2f5[_0x398e(0x6)]));}else{if(_0x19c24f[_0x398e(0x27)](_0x2db2f5[_0x398e(0x6)],0x8)){if(_0x19c24f['ZHHzO']!==_0x19c24f[_0x398e(0x28)])return _0x311b2a;else _0x2db2f5=_0x2db2f5['substring'](0x0,0x8);}}return _0x2db2f5;};export const validateEventCode=_0x466890=>{const _0x4b7391={'OMNwG':_0x398e(0x29),'tDweb':_0x398e(0x2a),'eZqdU':'long','Nvtyy':_0x398e(0x2b),'ROZpm':_0x398e(0x2c),'AyYac':function(_0x346630,_0x25c439){return _0x346630!==_0x25c439;},'hGUjQ':'yplju','tNlBl':function(_0x1ebc74,_0x25c496){return _0x1ebc74>_0x25c496;},'RQZIf':function(_0x5122a0,_0xa0e1ac){return _0x5122a0!==_0xa0e1ac;},'GcWOV':_0x398e(0x2d),'wGbXY':'oNvNB','hmWep':function(_0x4cc7b4,_0x36ed27){return _0x4cc7b4!==_0x36ed27;},'LkSlh':_0x398e(0x2e),'Rmick':_0x398e(0x2f)};if(!_0x466890||!_0x466890['trim']())return{'isValid':![],'error':_0x4b7391['ROZpm']};const _0x5aca5c=_0x466890[_0x398e(0xd)]()['toUpperCase']();if(_0x5aca5c[_0x398e(0x6)]<0x3){if(_0x4b7391[_0x398e(0x30)](_0x398e(0x31),_0x4b7391['hGUjQ']))return{'isValid':![],'error':_0x4b7391[_0x398e(0x32)]};else _0x2a6494=_0x348aca[0x0][_0x398e(0x2)](0x0,0x4);}if(_0x4b7391[_0x398e(0x33)](_0x5aca5c[_0x398e(0x6)],0xa))return _0x4b7391[_0x398e(0x34)](_0x4b7391[_0x398e(0x35)],_0x4b7391[_0x398e(0x36)])?{'isValid':![],'error':_0x398e(0x37)}:{'isValid':![],'error':_0x4b7391[_0x398e(0x32)]};if(!/^[A-Z0-9]+$/[_0x398e(0x38)](_0x5aca5c)){if(_0x4b7391[_0x398e(0x39)](_0x4b7391[_0x398e(0x3a)],_0x4b7391[_0x398e(0x3a)])){const _0x38004f=new _0x1d13b8(_0x37fb21);return _0x38004f[_0x398e(0x3b)](_0x4b7391[_0x398e(0x3c)],{'weekday':_0x4b7391[_0x398e(0x3d)],'year':_0x4b7391[_0x398e(0x3e)],'month':_0x4b7391['eZqdU'],'day':_0x4b7391[_0x398e(0x3e)]});}else return{'isValid':![],'error':_0x4b7391[_0x398e(0x3f)]};}return{'isValid':!![]};};export const formatEventDate=_0x126918=>{const _0x2105c1={'kHWaj':function(_0x57da8d){return _0x57da8d();},'RIIgM':function(_0x13f043,_0x3edfad){return _0x13f043<_0x3edfad;},'iicDU':function(_0x33385e,_0x20e68e){return _0x33385e!==_0x20e68e;},'Sqapv':_0x398e(0x40),'JZHVy':_0x398e(0x2a),'TEqyh':_0x398e(0x41),'KKjFw':_0x398e(0x2b),'dcnBq':_0x398e(0x42),'zPzYG':_0x398e(0x43)};try{if(_0x2105c1[_0x398e(0x44)](_0x2105c1[_0x398e(0x45)],_0x2105c1[_0x398e(0x45)]))return _0x2105c1[_0x398e(0x46)](_0x48db26);else{const _0x59de96=new Date(_0x126918);return _0x59de96['toLocaleDateString'](_0x2105c1[_0x398e(0x47)],{'weekday':_0x2105c1[_0x398e(0x48)],'year':_0x2105c1['KKjFw'],'month':_0x2105c1['TEqyh'],'day':_0x2105c1[_0x398e(0x49)]});}}catch(_0x47d997){if(_0x2105c1[_0x398e(0x4a)]!==_0x2105c1[_0x398e(0x4b)])return _0x126918;else{const _0x5c40aa=new _0x268e79(),_0x5b10ad=new _0x511ecd(_0x2a92f7);return _0x5c40aa[_0x398e(0x16)](0x0,0x0,0x0,0x0),_0x5b10ad[_0x398e(0x16)](0x0,0x0,0x0,0x0),_0x2105c1[_0x398e(0x4c)](_0x5b10ad,_0x5c40aa);}}};export const isEventToday=_0x4e9773=>{const _0x237cda={'aYmpZ':function(_0x4b3ba6,_0x423d31){return _0x4b3ba6-_0x423d31;},'NvOLf':function(_0x137aa2,_0xf01095){return _0x137aa2===_0xf01095;},'DENrJ':_0x398e(0x4d),'IROnR':function(_0x215cf7,_0x532b8b){return _0x215cf7===_0x532b8b;}};try{if(_0x237cda[_0x398e(0x4e)](_0x237cda[_0x398e(0x4f)],_0x398e(0x4d))){const _0x51559a=new Date(),_0x5088c6=new Date(_0x4e9773);return _0x237cda[_0x398e(0x4e)](_0x51559a[_0x398e(0x1e)](),_0x5088c6[_0x398e(0x1e)]())&&_0x51559a['getMonth']()===_0x5088c6[_0x398e(0x50)]()&&_0x237cda['IROnR'](_0x51559a[_0x398e(0x51)](),_0x5088c6['getDate']());}else return _0x237cda[_0x398e(0x52)](_0x280de3['getTime'](),_0x150d2c['getTime']());}catch(_0x4fbc07){return![];}};export const isEventPast=_0x5d58d4=>{const _0x46417e={'nSITF':function(_0x51faf5,_0x2f5738){return _0x51faf5-_0x2f5738;},'JFHBB':function(_0x3a7159,_0x4747b3){return _0x3a7159*_0x4747b3;},'gUOpe':function(_0x2a6edb,_0x1d4000){return _0x2a6edb<_0x1d4000;},'JKFUK':function(_0xc9101f,_0x4c2a96){return _0xc9101f<_0x4c2a96;},'IcbOz':function(_0x32bf74,_0x2dc5d5){return _0x32bf74&&_0x2dc5d5;},'eeLPT':function(_0x2b9fb7,_0x40eadf){return _0x2b9fb7-_0x40eadf;},'UoOLY':function(_0x2749ad,_0x3b514d){return _0x2749ad===_0x3b514d;},'vFPlV':'IqelF','ltIUu':function(_0x2aa9d0,_0x52e0a4){return _0x2aa9d0<_0x52e0a4;},'VLOKA':_0x398e(0x53),'RaSco':'KYJKR'};try{if(_0x46417e[_0x398e(0x54)](_0x46417e[_0x398e(0x55)],_0x398e(0x56))){const _0x4aa977=_0x51910b['length'],_0x831d14=_0x42c0e9['filter'](_0xeda988=>_0xeda988[_0x398e(0x57)])['length'],_0x2adac5=_0x46417e[_0x398e(0x58)](_0x4aa977,_0x831d14),_0x1f054b=_0x2f2474[_0x398e(0x59)]((_0x1c27cd,_0x5f5816)=>_0x1c27cd+_0x5f5816[_0x398e(0x5a)],0x0),_0x17c8f5=_0xaabb54[_0x398e(0x59)]((_0x386b01,_0x5f2fc0)=>_0x386b01+_0x5f2fc0[_0x398e(0x5b)],0x0),_0xc27fff=_0x6a9d65[_0x398e(0x10)](_0x1cfd85=>_0x1cfd85['isActive']&&!_0x3809a9(_0x1cfd85[_0x398e(0x5c)]))[_0x398e(0x6)],_0x45f32e=_0x322733['filter'](_0x586806=>_0x2b9768(_0x586806[_0x398e(0x5c)]))['length'],_0x14ffe4=_0x1b5d07[_0x398e(0x10)](_0x558571=>_0x558571[_0x398e(0x57)]&&_0x7184a1(_0x558571[_0x398e(0x5c)]))[_0x398e(0x6)];return{'total':_0x4aa977,'active':_0x831d14,'inactive':_0x2adac5,'upcoming':_0xc27fff,'past':_0x45f32e,'today':_0x14ffe4,'totalAttendees':_0x1f054b,'totalCapacity':_0x17c8f5,'averageAttendance':_0x17c8f5>0x0?_0x35cc61[_0x398e(0x5d)](_0x46417e['JFHBB'](_0x1f054b/_0x17c8f5,0x64)):0x0};}else{const _0x5f1e58=new Date(),_0x547728=new Date(_0x5d58d4);return _0x5f1e58[_0x398e(0x16)](0x0,0x0,0x0,0x0),_0x547728['setHours'](0x0,0x0,0x0,0x0),_0x46417e[_0x398e(0x5e)](_0x547728,_0x5f1e58);}}catch(_0x223ccc){return _0x46417e[_0x398e(0x5f)]===_0x46417e['RaSco']?_0x4978b7['sort']((_0x5e4b46,_0x15c3af)=>{if(_0x5e4b46[_0x398e(0x57)]&&!_0x15c3af['isActive'])return-0x1;if(!_0x5e4b46['isActive']&&_0x15c3af[_0x398e(0x57)])return 0x1;const _0x1cd185=new _0x2a8735(_0x5e4b46[_0x398e(0x5c)]),_0x255b7a=new _0x5b8e7b(_0x15c3af[_0x398e(0x5c)]),_0x11d181=new _0x5851d0(),_0x5852fe=_0x46417e['gUOpe'](_0x1cd185,_0x11d181),_0x3555f7=_0x46417e[_0x398e(0x60)](_0x255b7a,_0x11d181);if(_0x46417e[_0x398e(0x61)](_0x5852fe,!_0x3555f7))return 0x1;if(!_0x5852fe&&_0x3555f7)return-0x1;return _0x46417e[_0x398e(0x61)](_0x5852fe,_0x3555f7)?_0x46417e['nSITF'](_0x255b7a['getTime'](),_0x1cd185[_0x398e(0x23)]()):_0x46417e[_0x398e(0x62)](_0x1cd185[_0x398e(0x23)](),_0x255b7a[_0x398e(0x23)]());}):![];}};function _0x398e(_0x3f5115,_0x398e6d){_0x3f5115=_0x3f5115-0x0;const _0x56209f=_0x3f51();let _0x2b8cef=_0x56209f[_0x3f5115];return _0x2b8cef;}function _0x3f51(){const _0x63e2db=['ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789','LWLXV','substring','charAt','bMPha','random','length','Past','dAGXv','RgPKT','UNurN','XzgtW','qoUkG','trim','replace','split','filter','yzlAt','vdUYz','tRBla','xnaEb','GTfMD','setHours','JCqZP','slice','map','join','gmrJy','yddkO','dvTSF','getFullYear','toString','bwStK','bwYey','eujCN','getTime','ceil','DCHYj','Zsrzq','dJlGL','ZHHzO','Event\x20code\x20must\x20be\x20at\x20least\x203\x20characters','en-US','numeric','Event\x20code\x20is\x20required','FWZrX','Blejy','Event\x20code\x20must\x20contain\x20only\x20letters\x20and\x20numbers','AyYac','wiamA','OMNwG','tNlBl','RQZIf','GcWOV','wGbXY','Event\x20code\x20must\x20be\x2010\x20characters\x20or\x20less','test','hmWep','LkSlh','toLocaleDateString','tDweb','eZqdU','Nvtyy','Rmick','rGyHM','long','lgNCj','obKXa','iicDU','Sqapv','kHWaj','JZHVy','TEqyh','KKjFw','dcnBq','zPzYG','RIIgM','oeirv','NvOLf','DENrJ','getMonth','getDate','aYmpZ','gAqlf','UoOLY','vFPlV','hfgyo','isActive','nSITF','reduce','attendeeCount','maxAttendees','eventDate','round','ltIUu','VLOKA','JKFUK','IcbOz','eeLPT','Inactive','Today','pWpuh','OfwDH','SJZIw','aNEPi','lfNle','yGtsj','KUUrg','wKFVL','QUxvi','LDbxp','fyWYZ','sort','xFmcP','IWTHd','HQgIl','yTtyG','iTfJk','dZjjc','NxjXH','FYFrP','ihZzb','ROyLr','toLowerCase','title','includes','description','Nwuml','location','organizer','tags','wzVaz','some','from','dDjQd','UIbOr','lbhkp'];_0x3f51=function(){return _0x63e2db;};return _0x3f51();}export const getEventStatus=(_0x302613,_0x23b455)=>{const _0x3d2173={'aNEPi':_0x398e(0x63),'pWpuh':function(_0x584dd8,_0x1219df){return _0x584dd8===_0x1219df;},'yduCb':function(_0x284292,_0x5bb07d){return _0x284292(_0x5bb07d);},'lfNle':_0x398e(0x7),'CtgLs':function(_0x242165,_0x263715){return _0x242165(_0x263715);},'yGtsj':_0x398e(0x64)};if(!_0x23b455)return _0x3d2173[_0x398e(0x65)](_0x398e(0x66),_0x398e(0x67))?_0x3d2173[_0x398e(0x68)]:_0x3d2173[_0x398e(0x68)];if(_0x3d2173['yduCb'](isEventPast,_0x302613))return _0x3d2173[_0x398e(0x69)];if(_0x3d2173['CtgLs'](isEventToday,_0x302613))return _0x3d2173[_0x398e(0x6a)];return'Upcoming';};export const getDaysUntilEvent=_0x20c7e6=>{const _0x1a2e24={'KUUrg':function(_0x2a0847,_0x186d3a){return _0x2a0847/_0x186d3a;},'wKFVL':function(_0x3a3bdd,_0x3daf76){return _0x3a3bdd*_0x3daf76;},'wgwlz':function(_0x5de23a,_0x117e09){return _0x5de23a*_0x117e09;},'QUxvi':function(_0x1ce7cd,_0x451387){return _0x1ce7cd*_0x451387;}};try{const _0x373361=new Date(),_0x300e07=new Date(_0x20c7e6);_0x373361[_0x398e(0x16)](0x0,0x0,0x0,0x0),_0x300e07[_0x398e(0x16)](0x0,0x0,0x0,0x0);const _0x3ae53f=_0x300e07['getTime']()-_0x373361[_0x398e(0x23)](),_0x5e9c88=Math[_0x398e(0x24)](_0x1a2e24[_0x398e(0x6b)](_0x3ae53f,_0x1a2e24[_0x398e(0x6c)](_0x1a2e24['wgwlz'](_0x1a2e24[_0x398e(0x6d)](0x3e8,0x3c),0x3c),0x18)));return _0x5e9c88;}catch(_0x5a1793){return 0x0;}};export const sortEventsByDate=_0x551fa2=>{const _0x125339={'HQgIl':function(_0x2a56a4,_0x12ab8c){return _0x2a56a4===_0x12ab8c;},'yTtyG':function(_0x360758,_0x546410){return _0x360758===_0x546410;},'xFmcP':_0x398e(0x6e),'iTfJk':function(_0x58272c,_0x287b36){return _0x58272c<_0x287b36;},'dZjjc':function(_0x1382f6,_0x35e4e0){return _0x1382f6&&_0x35e4e0;},'NxjXH':function(_0x4499c7,_0x46b196){return _0x4499c7===_0x46b196;},'FYFrP':_0x398e(0x6f),'ihZzb':function(_0x2d5f6d,_0x13a769){return _0x2d5f6d-_0x13a769;},'ROyLr':function(_0x31e55d,_0x187978){return _0x31e55d-_0x187978;}};return _0x551fa2[_0x398e(0x70)]((_0x516841,_0x2d616f)=>{if(_0x125339[_0x398e(0x71)]===_0x398e(0x72))try{const _0xeff174=new _0x8bcc01(),_0x55b325=new _0x14625b(_0x351666);return _0x125339[_0x398e(0x73)](_0xeff174[_0x398e(0x1e)](),_0x55b325[_0x398e(0x1e)]())&&_0xeff174[_0x398e(0x50)]()===_0x55b325[_0x398e(0x50)]()&&_0x125339[_0x398e(0x74)](_0xeff174['getDate'](),_0x55b325['getDate']());}catch(_0x5d6d2f){return![];}else{if(_0x516841['isActive']&&!_0x2d616f[_0x398e(0x57)])return-0x1;if(!_0x516841[_0x398e(0x57)]&&_0x2d616f[_0x398e(0x57)])return 0x1;const _0x58f54e=new Date(_0x516841[_0x398e(0x5c)]),_0x396b4b=new Date(_0x2d616f[_0x398e(0x5c)]),_0x5541e2=new Date(),_0x1b300b=_0x125339[_0x398e(0x75)](_0x58f54e,_0x5541e2),_0x1846ff=_0x396b4b<_0x5541e2;if(_0x125339[_0x398e(0x76)](_0x1b300b,!_0x1846ff))return 0x1;if(_0x125339['dZjjc'](!_0x1b300b,_0x1846ff))return-0x1;return _0x1b300b&&_0x1846ff?_0x125339[_0x398e(0x77)](_0x125339[_0x398e(0x78)],_0x125339[_0x398e(0x78)])?_0x125339[_0x398e(0x79)](_0x396b4b[_0x398e(0x23)](),_0x58f54e['getTime']()):![]:_0x125339[_0x398e(0x7a)](_0x58f54e[_0x398e(0x23)](),_0x396b4b[_0x398e(0x23)]());}});};export const filterEventsBySearch=(_0x50332c,_0x10536a)=>{const _0x23367c={'Nwuml':function(_0x5bfed4,_0x4a5a07){return _0x5bfed4===_0x4a5a07;},'wzVaz':function(_0x335d6f,_0x1b1373){return _0x335d6f===_0x1b1373;}};if(!_0x10536a['trim']())return _0x50332c;const _0x43e710=_0x10536a[_0x398e(0x7b)]()[_0x398e(0xd)]();return _0x50332c[_0x398e(0x10)](_0x1c2de6=>{var _0x41a7fe,_0x3a3a7c,_0x4f14ca;return _0x1c2de6[_0x398e(0x7c)]['toLowerCase']()[_0x398e(0x7d)](_0x43e710)||_0x1c2de6[_0x398e(0x7e)][_0x398e(0x7b)]()[_0x398e(0x7d)](_0x43e710)||_0x1c2de6['code'][_0x398e(0x7b)]()['includes'](_0x43e710)||(_0x23367c[_0x398e(0x7f)](_0x41a7fe=_0x1c2de6[_0x398e(0x80)],null)||_0x23367c[_0x398e(0x7f)](_0x41a7fe,void 0x0)?void 0x0:_0x41a7fe[_0x398e(0x7b)]()[_0x398e(0x7d)](_0x43e710))||((_0x3a3a7c=_0x1c2de6[_0x398e(0x81)])===null||_0x3a3a7c===void 0x0?void 0x0:_0x3a3a7c['toLowerCase']()[_0x398e(0x7d)](_0x43e710))||(_0x23367c[_0x398e(0x7f)](_0x4f14ca=_0x1c2de6[_0x398e(0x82)],null)||_0x23367c[_0x398e(0x83)](_0x4f14ca,void 0x0)?void 0x0:_0x4f14ca[_0x398e(0x84)](_0x107081=>_0x107081[_0x398e(0x7b)]()[_0x398e(0x7d)](_0x43e710)));});};export const getUniqueEventTags=_0x14eded=>{const _0x5ab780=_0x14eded['flatMap'](_0x102821=>_0x102821[_0x398e(0x82)]||[]);return Array[_0x398e(0x85)](new Set(_0x5ab780))[_0x398e(0x70)]();};export const calculateEventStats=_0x223fe4=>{const _0x17bc93={'dDjQd':function(_0x77a662,_0xb8eee3){return _0x77a662-_0xb8eee3;},'ApSge':function(_0x490fb8,_0x2994df){return _0x490fb8>_0x2994df;},'UIbOr':function(_0x4ab9fa,_0x31902d){return _0x4ab9fa*_0x31902d;},'lbhkp':function(_0x3b85ed,_0x4948b5){return _0x3b85ed/_0x4948b5;}},_0x245d04=_0x223fe4[_0x398e(0x6)],_0x2c1834=_0x223fe4[_0x398e(0x10)](_0x58297=>_0x58297[_0x398e(0x57)])[_0x398e(0x6)],_0x2d3c21=_0x17bc93[_0x398e(0x86)](_0x245d04,_0x2c1834),_0x4ce79b=_0x223fe4[_0x398e(0x59)]((_0x5a4d25,_0x9634f2)=>_0x5a4d25+_0x9634f2[_0x398e(0x5a)],0x0),_0x5e20e3=_0x223fe4[_0x398e(0x59)]((_0x39c728,_0x273273)=>_0x39c728+_0x273273['maxAttendees'],0x0),_0x39da14=_0x223fe4['filter'](_0x30557d=>_0x30557d[_0x398e(0x57)]&&!isEventPast(_0x30557d[_0x398e(0x5c)]))[_0x398e(0x6)],_0x554c7=_0x223fe4[_0x398e(0x10)](_0x43368d=>isEventPast(_0x43368d[_0x398e(0x5c)]))['length'],_0x6608c3=_0x223fe4[_0x398e(0x10)](_0x5e46ca=>_0x5e46ca[_0x398e(0x57)]&&isEventToday(_0x5e46ca[_0x398e(0x5c)]))[_0x398e(0x6)];return{'total':_0x245d04,'active':_0x2c1834,'inactive':_0x2d3c21,'upcoming':_0x39da14,'past':_0x554c7,'today':_0x6608c3,'totalAttendees':_0x4ce79b,'totalCapacity':_0x5e20e3,'averageAttendance':_0x17bc93['ApSge'](_0x5e20e3,0x0)?Math[_0x398e(0x5d)](_0x17bc93[_0x398e(0x87)](_0x17bc93[_0x398e(0x88)](_0x4ce79b,_0x5e20e3),0x64)):0x0};};
|
|
1
|
+
function _0xab99(){const _0x2e01ec=['PqGHR','charAt','floor','random','en-US','long','numeric','hbkDq','ZKxuo','trim','sjCqN','toUpperCase','replace','split','filter','length','XhGRR','osJun','KMsRz','fWatz','slice','map','substring','getFullYear','revVD','uhoDn','OZIxr','KLxCA','AojWu','taoLk','toLocaleDateString','rVQFG','xrRTl','VFkRU','Event\x20code\x20is\x20required','Event\x20code\x20must\x20be\x20at\x20least\x203\x20characters','eCjoX','EPiHq','hVosP','tRYuU','dblQw','jKdwb','OislG','Iejuu','test','nQiFo','evKuI','YuDTz','RxWrh','kfolg','GSXhc','ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789','cHalO','JsTCa','VnFce','HsOhG','getDate','TnZCn','uREzN','wYVgb','kcJkp','Event\x20code\x20must\x20be\x2010\x20characters\x20or\x20less','EuXgm','qsvEG','qPzam','setHours','Past','Upcoming','bitrT','UEBGt','Today','SeKve','lIBbx','getTime','ceil','xkCBB','ujGvG','tHIBq','sort','OwCwe','jsScI','XaQmM','cWvxK','isActive','eventDate','zRERP','QczOC','nRVpw','CxkhU','LmgEq','DCZoP','UKXhe','GSiNR','WLKkh','toLowerCase','includes','description','code','TFckA','location','hJXxQ','organizer','tags','qyXHX','ZjfsG','reduce','attendeeCount','GwoYN','round','rRUZj'];_0xab99=function(){return _0x2e01ec;};return _0xab99();}export const generateEventCode=(_0xefc064=0x6)=>{const _0x6ae6b2={'PqGHR':function(_0x4cb138,_0x19e8ec){return _0x4cb138<_0x19e8ec;},'wYpvT':function(_0x504caa,_0x40f4f0){return _0x504caa*_0x40f4f0;}},_0x5432c0='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';let _0x1aba03='';for(let _0x165f63=0x0;_0x6ae6b2[_0x5188(0x0)](_0x165f63,_0xefc064);_0x165f63++){_0x1aba03+=_0x5432c0[_0x5188(0x1)](Math[_0x5188(0x2)](_0x6ae6b2['wYpvT'](Math[_0x5188(0x3)](),_0x5432c0['length'])));}return _0x1aba03;};export const generateSmartEventCode=_0x42dc97=>{const _0x33f9d9={'sjCqN':function(_0x50d3dc){return _0x50d3dc();},'rVQFG':_0x5188(0x4),'xrRTl':_0x5188(0x5),'VFkRU':_0x5188(0x6),'XhGRR':function(_0x450172){return _0x450172();},'osJun':function(_0xd12bdd,_0x41522b){return _0xd12bdd===_0x41522b;},'KMsRz':'AxqHz','fWatz':_0x5188(0x7),'revVD':function(_0x57d27e,_0x48aef9){return _0x57d27e<_0x48aef9;},'OZIxr':'uhoDn','MvmPC':function(_0x16893c,_0x42ef9d){return _0x16893c-_0x42ef9d;},'KLxCA':function(_0x426621,_0x19d228){return _0x426621>_0x19d228;},'AojWu':function(_0x42b574,_0xa4e1df){return _0x42b574===_0xa4e1df;},'taoLk':_0x5188(0x8)};if(!_0x42dc97[_0x5188(0x9)]())return _0x33f9d9[_0x5188(0xa)](generateEventCode);const _0x438dc6=_0x42dc97['trim']()[_0x5188(0xb)]()[_0x5188(0xc)](/[^A-Z0-9\s]/g,'')[_0x5188(0xd)](/\s+/)[_0x5188(0xe)](_0x57cdf8=>_0x57cdf8[_0x5188(0xf)]>0x0);if(_0x438dc6[_0x5188(0xf)]===0x0)return _0x33f9d9[_0x5188(0x10)](generateEventCode);let _0x52e061='';if(_0x438dc6[_0x5188(0xf)]>=0x2){if(_0x33f9d9[_0x5188(0x11)](_0x33f9d9[_0x5188(0x12)],_0x33f9d9[_0x5188(0x13)]))return _0x3a46da();else{const _0xf621f7=_0x438dc6[_0x5188(0x14)](0x0,0x3);_0x52e061=_0xf621f7[_0x5188(0x15)](_0x353eec=>_0x353eec[_0x5188(0x16)](0x0,0x2))['join']('');}}else _0x52e061=_0x438dc6[0x0][_0x5188(0x16)](0x0,0x4);const _0x46211a=new Date()[_0x5188(0x17)]()['toString']()[_0x5188(0x14)](-0x2);_0x52e061+=_0x46211a;if(_0x33f9d9[_0x5188(0x18)](_0x52e061['length'],0x4)){if(_0x5188(0x19)===_0x33f9d9[_0x5188(0x1a)])_0x52e061+=generateEventCode(_0x33f9d9['MvmPC'](0x4,_0x52e061['length']));else return _0x33f9d9[_0x5188(0xa)](_0x40764a);}else{if(_0x33f9d9[_0x5188(0x1b)](_0x52e061[_0x5188(0xf)],0x8)){if(_0x33f9d9[_0x5188(0x1c)](_0x33f9d9['taoLk'],_0x33f9d9[_0x5188(0x1d)]))_0x52e061=_0x52e061['substring'](0x0,0x8);else{const _0x35e80e=new _0x504722(_0x352655);return _0x35e80e[_0x5188(0x1e)](_0x33f9d9[_0x5188(0x1f)],{'weekday':_0x33f9d9[_0x5188(0x20)],'year':_0x5188(0x6),'month':_0x33f9d9[_0x5188(0x20)],'day':_0x33f9d9[_0x5188(0x21)]});}}}return _0x52e061;};export const validateEventCode=_0x31a3c5=>{const _0x21a797={'hVosP':_0x5188(0x22),'dblQw':_0x5188(0x23),'tRYuU':function(_0x1f3dc7,_0x9f881d){return _0x1f3dc7<_0x9f881d;},'jKdwb':function(_0x1e8cd2,_0x189f12){return _0x1e8cd2===_0x189f12;},'OislG':_0x5188(0x24),'Iejuu':'Event\x20code\x20must\x20be\x2010\x20characters\x20or\x20less','nQiFo':function(_0x4e427f,_0x15f4f4){return _0x4e427f!==_0x15f4f4;},'YuDTz':_0x5188(0x25),'VGEhD':'Event\x20code\x20must\x20contain\x20only\x20letters\x20and\x20numbers'};if(!_0x31a3c5||!_0x31a3c5['trim']())return{'isValid':![],'error':_0x21a797[_0x5188(0x26)]};const _0x45c64b=_0x31a3c5[_0x5188(0x9)]()[_0x5188(0xb)]();if(_0x21a797[_0x5188(0x27)](_0x45c64b[_0x5188(0xf)],0x3))return{'isValid':![],'error':_0x21a797[_0x5188(0x28)]};if(_0x45c64b[_0x5188(0xf)]>0xa)return _0x21a797[_0x5188(0x29)](_0x21a797[_0x5188(0x2a)],_0x5188(0x24))?{'isValid':![],'error':_0x21a797[_0x5188(0x2b)]}:{'isValid':![],'error':_0x21a797[_0x5188(0x26)]};if(!/^[A-Z0-9]+$/[_0x5188(0x2c)](_0x45c64b))return _0x21a797[_0x5188(0x2d)](_0x5188(0x2e),_0x21a797[_0x5188(0x2f)])?{'isValid':![],'error':_0x21a797['VGEhD']}:{'isValid':![],'error':_0x21a797[_0x5188(0x28)]};return{'isValid':!![]};};export const formatEventDate=_0x3e4438=>{const _0x283daf={'RxWrh':_0x5188(0x4),'kfolg':'long','GSXhc':_0x5188(0x6)};try{const _0x40b444=new Date(_0x3e4438);return _0x40b444[_0x5188(0x1e)](_0x283daf[_0x5188(0x30)],{'weekday':_0x283daf[_0x5188(0x31)],'year':_0x283daf[_0x5188(0x32)],'month':_0x5188(0x5),'day':_0x283daf[_0x5188(0x32)]});}catch(_0x5bcc27){return _0x3e4438;}};export const isEventToday=_0x9b2985=>{const _0x22f681={'wYVgb':_0x5188(0x33),'iUKAE':function(_0x230b1c,_0x56797f){return _0x230b1c<_0x56797f;},'kcJkp':function(_0x201fb2,_0xfc40e8){return _0x201fb2*_0xfc40e8;},'VnFce':'JsTCa','HsOhG':function(_0x28cd0b,_0x55c5c1){return _0x28cd0b===_0x55c5c1;},'TnZCn':function(_0x5df828,_0x2fa923){return _0x5df828===_0x2fa923;},'uREzN':_0x5188(0x34)};try{if(_0x5188(0x35)===_0x22f681[_0x5188(0x36)]){const _0x2d3c64=new Date(),_0xf345ba=new Date(_0x9b2985);return _0x2d3c64[_0x5188(0x17)]()===_0xf345ba[_0x5188(0x17)]()&&_0x22f681[_0x5188(0x37)](_0x2d3c64['getMonth'](),_0xf345ba['getMonth']())&&_0x22f681['TnZCn'](_0x2d3c64[_0x5188(0x38)](),_0xf345ba[_0x5188(0x38)]());}else return 0x0;}catch(_0x53ea1a){if(_0x22f681[_0x5188(0x39)](_0x22f681['uREzN'],_0x22f681[_0x5188(0x3a)]))return![];else{const _0x190445=_0x22f681[_0x5188(0x3b)];let _0x49c34b='';for(let _0x8b664a=0x0;_0x22f681['iUKAE'](_0x8b664a,_0x1b17af);_0x8b664a++){_0x49c34b+=_0x190445[_0x5188(0x1)](_0x25de85[_0x5188(0x2)](_0x22f681[_0x5188(0x3c)](_0x40037f['random'](),_0x190445[_0x5188(0xf)])));}return _0x49c34b;}}};function _0x5188(_0x518821,_0x20082d){_0x518821=_0x518821-0x0;const _0x106296=_0xab99();let _0x2efa96=_0x106296[_0x518821];return _0x2efa96;}export const isEventPast=_0x232686=>{const _0x4bcff9={'qPzam':_0x5188(0x3d),'EuXgm':function(_0x904bad,_0x5129af){return _0x904bad===_0x5129af;},'IBKDK':'FobjL','qsvEG':'ZxyrV'};try{if(_0x4bcff9[_0x5188(0x3e)](_0x4bcff9['IBKDK'],_0x4bcff9[_0x5188(0x3f)]))return{'isValid':![],'error':_0x4bcff9[_0x5188(0x40)]};else{const _0x2315c9=new Date(),_0x2f77b4=new Date(_0x232686);return _0x2315c9[_0x5188(0x41)](0x0,0x0,0x0,0x0),_0x2f77b4[_0x5188(0x41)](0x0,0x0,0x0,0x0),_0x2f77b4<_0x2315c9;}}catch(_0x4d5b0f){return![];}};export const getEventStatus=(_0x7c6cbe,_0x4fd455)=>{const _0x35ed22={'TEvqF':'Inactive','vyCqJ':function(_0x5439c8,_0x3bfdb9){return _0x5439c8(_0x3bfdb9);},'bitrT':_0x5188(0x42),'UEBGt':function(_0x37c037,_0x589659){return _0x37c037(_0x589659);},'SeKve':_0x5188(0x43)};if(!_0x4fd455)return _0x35ed22['TEvqF'];if(_0x35ed22['vyCqJ'](isEventPast,_0x7c6cbe))return _0x35ed22[_0x5188(0x44)];if(_0x35ed22[_0x5188(0x45)](isEventToday,_0x7c6cbe))return _0x5188(0x46);return _0x35ed22[_0x5188(0x47)];};export const getDaysUntilEvent=_0x24cae=>{const _0x569826={'lIBbx':function(_0x55cb59,_0x3eb4b7){return _0x55cb59-_0x3eb4b7;},'xkCBB':function(_0x18c13e,_0x470e8b){return _0x18c13e/_0x470e8b;},'ujGvG':function(_0x44c43a,_0x34d794){return _0x44c43a*_0x34d794;}};try{const _0xfa7bd5=new Date(),_0x299cb8=new Date(_0x24cae);_0xfa7bd5[_0x5188(0x41)](0x0,0x0,0x0,0x0),_0x299cb8['setHours'](0x0,0x0,0x0,0x0);const _0x1516f3=_0x569826[_0x5188(0x48)](_0x299cb8[_0x5188(0x49)](),_0xfa7bd5[_0x5188(0x49)]()),_0x39a7da=Math[_0x5188(0x4a)](_0x569826[_0x5188(0x4b)](_0x1516f3,_0x569826[_0x5188(0x4c)](0x3e8*0x3c,0x3c)*0x18));return _0x39a7da;}catch(_0x62907b){return 0x0;}};export const sortEventsByDate=_0x28dcf0=>{const _0x22ca94={'FMpez':function(_0x108869,_0x442f41){return _0x108869<_0x442f41;},'PNhyw':function(_0x4124f3,_0x3574d9){return _0x4124f3===_0x3574d9;},'OwCwe':_0x5188(0x4d),'jsScI':'fMzWx','Nesab':function(_0x17098f,_0x2a51a4){return _0x17098f<_0x2a51a4;},'zRERP':function(_0x201274,_0x11a372){return _0x201274<_0x11a372;},'fyRTU':function(_0x103b1f,_0x2ae1d3){return _0x103b1f&&_0x2ae1d3;},'QczOC':function(_0x5c91c7,_0x332202){return _0x5c91c7&&_0x332202;},'OYehN':function(_0x3ba550,_0x34c0a3){return _0x3ba550-_0x34c0a3;},'nRVpw':function(_0x7987de,_0x4add66){return _0x7987de!==_0x4add66;},'kMXOT':'mMaIE','LmgEq':function(_0x4a4d76,_0x18fb02){return _0x4a4d76-_0x18fb02;}};return _0x28dcf0[_0x5188(0x4e)]((_0x94f9f4,_0x568379)=>{const _0x219ade={'XaQmM':function(_0xdde3ca,_0x18e6e4){return _0xdde3ca===_0x18e6e4;},'cWvxK':function(_0x5b1976,_0x50a76a){return _0x5b1976===_0x50a76a;}};if(_0x22ca94['PNhyw'](_0x22ca94[_0x5188(0x4f)],_0x22ca94[_0x5188(0x50)]))try{const _0x13d62d=new _0x9204cb(),_0x3eefa6=new _0x48017f(_0x1f4fe0);return _0x219ade[_0x5188(0x51)](_0x13d62d[_0x5188(0x17)](),_0x3eefa6[_0x5188(0x17)]())&&_0x219ade[_0x5188(0x52)](_0x13d62d['getMonth'](),_0x3eefa6['getMonth']())&&_0x219ade[_0x5188(0x52)](_0x13d62d[_0x5188(0x38)](),_0x3eefa6[_0x5188(0x38)]());}catch(_0x442c88){return![];}else{if(_0x94f9f4[_0x5188(0x53)]&&!_0x568379[_0x5188(0x53)])return-0x1;if(!_0x94f9f4['isActive']&&_0x568379[_0x5188(0x53)])return 0x1;const _0x54dc88=new Date(_0x94f9f4[_0x5188(0x54)]),_0x1cbe9d=new Date(_0x568379[_0x5188(0x54)]),_0x11cb60=new Date(),_0x36fb04=_0x22ca94['Nesab'](_0x54dc88,_0x11cb60),_0x5da64c=_0x22ca94[_0x5188(0x55)](_0x1cbe9d,_0x11cb60);if(_0x22ca94['fyRTU'](_0x36fb04,!_0x5da64c))return 0x1;if(_0x22ca94[_0x5188(0x56)](!_0x36fb04,_0x5da64c))return-0x1;if(_0x22ca94[_0x5188(0x56)](_0x36fb04,_0x5da64c))return _0x22ca94['OYehN'](_0x1cbe9d[_0x5188(0x49)](),_0x54dc88[_0x5188(0x49)]());else{if(_0x22ca94[_0x5188(0x57)](_0x5188(0x58),_0x22ca94['kMXOT']))return _0x22ca94[_0x5188(0x59)](_0x54dc88[_0x5188(0x49)](),_0x1cbe9d['getTime']());else try{const _0x4d9711=new _0x2f9150(),_0x4b759f=new _0x2d9d26(_0x27b9a4);return _0x4d9711[_0x5188(0x41)](0x0,0x0,0x0,0x0),_0x4b759f[_0x5188(0x41)](0x0,0x0,0x0,0x0),_0x22ca94['FMpez'](_0x4b759f,_0x4d9711);}catch(_0x5ef0d3){return![];}}}});};export const filterEventsBySearch=(_0x34c482,_0x19adcf)=>{const _0x4ead88={'AsOMC':'Inactive','GSiNR':function(_0xfe91d8,_0x103d54){return _0xfe91d8(_0x103d54);},'WLKkh':_0x5188(0x43),'TFckA':function(_0x289cf9,_0x20616d){return _0x289cf9===_0x20616d;},'hJXxQ':function(_0x869b2c,_0x652029){return _0x869b2c===_0x652029;},'qyXHX':function(_0x51f411,_0x3ddcaf){return _0x51f411===_0x3ddcaf;},'DCZoP':function(_0x15837a,_0x166394){return _0x15837a!==_0x166394;},'LrLZo':'hZuNZ'};if(!_0x19adcf['trim']()){if(_0x4ead88[_0x5188(0x5a)](_0x5188(0x5b),_0x4ead88['LrLZo']))return _0x34c482;else{if(!_0x202f57)return _0x4ead88['AsOMC'];if(_0x4ead88[_0x5188(0x5c)](_0x3e9742,_0x363698))return _0x5188(0x42);if(_0x1fa913(_0x1a72e2))return _0x5188(0x46);return _0x4ead88[_0x5188(0x5d)];}}const _0x552ad1=_0x19adcf['toLowerCase']()[_0x5188(0x9)]();return _0x34c482['filter'](_0x4e7c7a=>{var _0x4fc5f5,_0x51b10e,_0x550751;return _0x4e7c7a['title'][_0x5188(0x5e)]()[_0x5188(0x5f)](_0x552ad1)||_0x4e7c7a[_0x5188(0x60)][_0x5188(0x5e)]()[_0x5188(0x5f)](_0x552ad1)||_0x4e7c7a[_0x5188(0x61)][_0x5188(0x5e)]()[_0x5188(0x5f)](_0x552ad1)||(_0x4ead88[_0x5188(0x62)](_0x4fc5f5=_0x4e7c7a[_0x5188(0x63)],null)||_0x4ead88[_0x5188(0x62)](_0x4fc5f5,void 0x0)?void 0x0:_0x4fc5f5['toLowerCase']()[_0x5188(0x5f)](_0x552ad1))||(_0x4ead88[_0x5188(0x64)](_0x51b10e=_0x4e7c7a[_0x5188(0x65)],null)||_0x51b10e===void 0x0?void 0x0:_0x51b10e['toLowerCase']()['includes'](_0x552ad1))||((_0x550751=_0x4e7c7a[_0x5188(0x66)])===null||_0x4ead88[_0x5188(0x67)](_0x550751,void 0x0)?void 0x0:_0x550751['some'](_0x139876=>_0x139876[_0x5188(0x5e)]()[_0x5188(0x5f)](_0x552ad1)));});};export const getUniqueEventTags=_0xbbec9f=>{const _0x32abec=_0xbbec9f['flatMap'](_0x35dfc6=>_0x35dfc6[_0x5188(0x66)]||[]);return Array['from'](new Set(_0x32abec))[_0x5188(0x4e)]();};export const calculateEventStats=_0x487d9b=>{const _0x4204ab={'ZjfsG':function(_0x3b74c2,_0x4884b2){return _0x3b74c2-_0x4884b2;},'GwoYN':function(_0x138bba,_0x20fad6){return _0x138bba>_0x20fad6;},'hODrH':function(_0x1cd469,_0x1f750f){return _0x1cd469*_0x1f750f;},'rRUZj':function(_0x128ab4,_0x45cfcb){return _0x128ab4/_0x45cfcb;}},_0x5f255d=_0x487d9b[_0x5188(0xf)],_0x57166e=_0x487d9b[_0x5188(0xe)](_0x515cec=>_0x515cec['isActive'])[_0x5188(0xf)],_0x574c31=_0x4204ab[_0x5188(0x68)](_0x5f255d,_0x57166e),_0x26e3e4=_0x487d9b[_0x5188(0x69)]((_0x5358f9,_0x5565a9)=>_0x5358f9+_0x5565a9[_0x5188(0x6a)],0x0),_0x209f41=_0x487d9b[_0x5188(0x69)]((_0x3793dc,_0x1b6219)=>_0x3793dc+_0x1b6219['maxAttendees'],0x0),_0x4efe29=_0x487d9b[_0x5188(0xe)](_0x419f64=>_0x419f64[_0x5188(0x53)]&&!isEventPast(_0x419f64[_0x5188(0x54)]))['length'],_0x383eb=_0x487d9b[_0x5188(0xe)](_0x35fd22=>isEventPast(_0x35fd22[_0x5188(0x54)]))[_0x5188(0xf)],_0x1beb48=_0x487d9b['filter'](_0x489adf=>_0x489adf['isActive']&&isEventToday(_0x489adf[_0x5188(0x54)]))['length'];return{'total':_0x5f255d,'active':_0x57166e,'inactive':_0x574c31,'upcoming':_0x4efe29,'past':_0x383eb,'today':_0x1beb48,'totalAttendees':_0x26e3e4,'totalCapacity':_0x209f41,'averageAttendance':_0x4204ab[_0x5188(0x6b)](_0x209f41,0x0)?Math[_0x5188(0x6c)](_0x4204ab['hODrH'](_0x4204ab[_0x5188(0x6d)](_0x26e3e4,_0x209f41),0x64)):0x0};};
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require('react-native')
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
function
|
|
8
|
+
import{Platform}from'react-native';export let HapticType=function(_0x386f54){const _0x38c880={'CXTDW':'7|1|3|2|6|0|4|5','AmaCz':'ERROR','fZOqD':_0x52f0(0x0),'SpbHw':_0x52f0(0x1),'XpArU':'heavy','MJExg':_0x52f0(0x2),'NFuMH':_0x52f0(0x3)},_0x5c9b60=_0x38c880[_0x52f0(0x4)][_0x52f0(0x5)]('|');let _0x42fbde=0x0;while(!![]){switch(_0x5c9b60[_0x42fbde++]){case'0':_0x386f54[_0x38c880['AmaCz']]=_0x52f0(0x6);continue;case'1':_0x386f54[_0x52f0(0x7)]=_0x38c880[_0x52f0(0x8)];continue;case'2':_0x386f54[_0x52f0(0x9)]=_0x38c880[_0x52f0(0xa)];continue;case'3':_0x386f54['HEAVY']=_0x38c880[_0x52f0(0xb)];continue;case'4':_0x386f54[_0x38c880[_0x52f0(0xc)]]=_0x38c880[_0x52f0(0xd)];continue;case'5':return _0x386f54;case'6':_0x386f54['WARNING']=_0x52f0(0xe);continue;case'7':_0x386f54[_0x52f0(0xf)]=_0x38c880[_0x52f0(0xd)];continue;}break;}}({});function _0x52f0(_0x2028cf,_0x52f091){_0x2028cf=_0x2028cf-0x0;const _0x33c39c=_0x2028();let _0x5ca66b=_0x33c39c[_0x2028cf];return _0x5ca66b;}function _0x2028(){const _0x57f991=['medium','success','BUTTON_PRESS','light','CXTDW','split','error','MEDIUM','fZOqD','SUCCESS','SpbHw','XpArU','MJExg','NFuMH','warning','LIGHT','0|4|2|3|5|6|7|1','ERROR','OMKbp','mXPVB','impactMedium','impactHeavy','notificationWarning','notificationError','impactLight','android','XvcMX','ios','yuUVi','vibrate','KTRaA','wCOMU','XBlVF','CUInX','ePTim','sNTlH','lMPQY','rruvH','hfgIU','trigger','HEAVY','jAszm','notificationSuccess','WARNING','DkUgV','GrgFZ','warn','Haptic\x20feedback\x20not\x20available:','bniIB','npYKf','yXggl'];_0x2028=function(){return _0x57f991;};return _0x2028();}export const triggerHaptic=(_0x3844ce=HapticType[_0x52f0(0xf)])=>{const _0xf34c9b={'yXggl':function(_0x483746,_0x97f172){return _0x483746(_0x97f172);},'fOBvc':_0x52f0(0x10),'SibaI':_0x52f0(0xf),'wCOMU':'heavy','XBlVF':_0x52f0(0x9),'CUInX':_0x52f0(0x1),'ePTim':_0x52f0(0x7),'sNTlH':'WARNING','lMPQY':_0x52f0(0xe),'rruvH':_0x52f0(0x11),'OqprI':'BUTTON_PRESS','hfgIU':_0x52f0(0x3),'OOStz':'Haptic\x20feedback\x20not\x20available:','XvcMX':function(_0x26f048,_0x2cd970){return _0x26f048===_0x2cd970;},'NMiRb':function(_0x407216,_0x4bd0e8){return _0x407216!==_0x4bd0e8;},'yuUVi':_0x52f0(0x12),'KTRaA':_0x52f0(0x13),'vLMmO':_0x52f0(0x14),'jAszm':_0x52f0(0x15),'DkUgV':_0x52f0(0x16),'GrgFZ':_0x52f0(0x17),'uPRgb':_0x52f0(0x18),'bniIB':_0x52f0(0x19),'NaxSB':'LDUFX','LMXoH':'Vibration\x20not\x20available:'};if(_0xf34c9b[_0x52f0(0x1a)](Platform['OS'],_0x52f0(0x1b))){if(_0xf34c9b['NMiRb'](_0xf34c9b[_0x52f0(0x1c)],'OMKbp')){const {Vibration:_0x5553eb}=_0xf34c9b['yXggl'](_0x2c3e11,0x1);_0x5553eb[_0x52f0(0x1d)](0x32);}else try{if(_0xf34c9b[_0x52f0(0x1a)]('VlihO',_0xf34c9b[_0x52f0(0x1e)])){const _0x827f33=_0xf34c9b['fOBvc']['split']('|');let _0x2b7b4e=0x0;while(!![]){switch(_0x827f33[_0x2b7b4e++]){case'0':_0x227f76[_0xf34c9b['SibaI']]=_0x52f0(0x3);continue;case'1':return _0x3cc8cf;case'2':_0x3e1844['HEAVY']=_0xf34c9b[_0x52f0(0x1f)];continue;case'3':_0x2b3fff[_0xf34c9b[_0x52f0(0x20)]]=_0xf34c9b[_0x52f0(0x21)];continue;case'4':_0x5f0317[_0xf34c9b[_0x52f0(0x22)]]=_0x52f0(0x0);continue;case'5':_0x4dd661[_0xf34c9b[_0x52f0(0x23)]]=_0xf34c9b[_0x52f0(0x24)];continue;case'6':_0x1ce6e7[_0xf34c9b[_0x52f0(0x25)]]=_0x52f0(0x6);continue;case'7':_0x398c80[_0xf34c9b['OqprI']]=_0xf34c9b[_0x52f0(0x26)];continue;}break;}}else{const _0x455345=__ONAIROS_REQ_FUNC__(0x0),_0x5cd860={'enableVibrateFallback':!![],'ignoreAndroidSystemSettings':![]};switch(_0x3844ce){case HapticType[_0x52f0(0xf)]:_0x455345[_0x52f0(0x27)](_0x52f0(0x18),_0x5cd860);break;case HapticType[_0x52f0(0x7)]:_0x455345[_0x52f0(0x27)](_0xf34c9b['vLMmO'],_0x5cd860);break;case HapticType[_0x52f0(0x28)]:_0x455345[_0x52f0(0x27)](_0xf34c9b[_0x52f0(0x29)],_0x5cd860);break;case HapticType[_0x52f0(0x9)]:_0x455345[_0x52f0(0x27)](_0x52f0(0x2a),_0x5cd860);break;case HapticType[_0x52f0(0x2b)]:_0x455345[_0x52f0(0x27)](_0xf34c9b[_0x52f0(0x2c)],_0x5cd860);break;case HapticType['ERROR']:_0x455345['trigger'](_0xf34c9b[_0x52f0(0x2d)],_0x5cd860);break;default:_0x455345[_0x52f0(0x27)](_0xf34c9b['uPRgb'],_0x5cd860);}}}catch(_0x268962){console[_0x52f0(0x2e)](_0x52f0(0x2f),_0x268962);}}else{if(Platform['OS']===_0xf34c9b[_0x52f0(0x30)]){if(_0x52f0(0x31)!==_0xf34c9b['NaxSB'])try{const {Vibration:_0x2fe4a2}=_0xf34c9b[_0x52f0(0x32)](__ONAIROS_REQ_FUNC__,0x1);_0x2fe4a2[_0x52f0(0x1d)](0x32);}catch(_0x43e5d2){console[_0x52f0(0x2e)](_0xf34c9b['LMXoH'],_0x43e5d2);}else _0x2f1bf3['warn'](_0xf34c9b['OOStz'],_0x1a3283);}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Platform}from'react-native';import{API_CONFIG}from'../config/api';function _0x362b(_0x2008be,_0x362bfc){_0x2008be=_0x2008be-0x0;const _0x1d7f18=_0x2008();let _0x5b19de=_0x1d7f18[_0x2008be];return _0x5b19de;}export const runFullDiagnostics=async()=>{const _0x11eefd={'eSLwm':_0x362b(0x0),'ZLVOm':'1|2|4|3|0','yxAiz':_0x362b(0x1),'FPKIX':_0x362b(0x2),'tunOY':function(_0x38a00c,_0x40ec5f){return _0x38a00c===_0x40ec5f;},'hdxAg':_0x362b(0x3),'wzKtQ':function(_0x2815c3,_0x2bbf4a){return _0x2815c3+_0x2bbf4a;},'AKhkQ':_0x362b(0x4),'laDOj':'🔍\x20ONAIROS\x20SDK\x20NETWORK\x20DIAGNOSTICS','FXjiH':_0x362b(0x5),'eRRji':'\x0a🧪\x20Test\x201:\x20Internet\x20Connectivity\x20(google.com)','qeusp':function(_0x393ca3,_0x3102fd,_0x508d0e){return _0x393ca3(_0x3102fd,_0x508d0e);},'GhYfI':_0x362b(0x6),'LWyLa':_0x362b(0x7),'uwhkT':function(_0x5cbe9b,_0x1dde47){return _0x5cbe9b-_0x1dde47;},'omDUD':function(_0xc4c273,_0x6b7678){return _0xc4c273!==_0x6b7678;},'YZszL':_0x362b(0x8),'tNehC':_0x362b(0x9),'xKVHb':function(_0x1091e9,_0x42c632){return _0x1091e9!==_0x42c632;},'RkIaP':_0x362b(0xa),'HkUiM':'vRmIA','CrUPX':function(_0x3ab5cc,_0x4c2f6d){return _0x3ab5cc-_0x4c2f6d;},'PAwYt':_0x362b(0xb),'jfzIz':_0x362b(0xc),'DQwCd':_0x362b(0xd),'RIcJm':_0x362b(0xe),'LFtYO':function(_0x53b532,_0x3c92e8){return _0x53b532===_0x3c92e8;},'WBIfW':_0x362b(0xf),'Hzykv':_0x362b(0x10),'YBmpT':function(_0x45b7d9,_0x57be36){return _0x45b7d9!==_0x57be36;},'UENRX':_0x362b(0x11),'SgOfK':function(_0x2dc6ff,_0x264947){return _0x2dc6ff===_0x264947;},'UySSz':_0x362b(0x12),'MOmMT':_0x362b(0x13),'cpPWc':_0x362b(0x14),'BbwYN':_0x362b(0x15),'GvPPY':function(_0xb5fc93,_0x11e73c){return _0xb5fc93===_0x11e73c;},'PVkdP':_0x362b(0x16),'LOSgi':_0x362b(0x17)};console[_0x362b(0x18)](_0x11eefd[_0x362b(0x19)]),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x1a)]),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x19)]);const _0x404372={'timestamp':new Date()[_0x362b(0x1b)](),'platform':Platform['OS'],'platformVersion':Platform['Version'],'tests':{'googleReachable':![],'apiReachable':![],'apiPostWorks':![],'youtubeOAuthWorks':![]},'errors':[],'recommendations':[],'rawResults':{}};console[_0x362b(0x18)](_0x362b(0x1c)+Platform['OS']+'\x20'+Platform[_0x362b(0x1d)]),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x1e)]),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x1f)]);try{const _0x4cd65f=Date['now'](),_0x4065a8=await _0x11eefd[_0x362b(0x20)](fetch,_0x11eefd[_0x362b(0x21)],{'method':_0x11eefd[_0x362b(0x22)]}),_0x240130=_0x11eefd[_0x362b(0x23)](Date[_0x362b(0x24)](),_0x4cd65f);_0x404372[_0x362b(0x25)]['googleReachable']=!![],_0x404372[_0x362b(0x26)][_0x362b(0x27)]={'status':_0x4065a8[_0x362b(0x28)],'time':_0x240130},console[_0x362b(0x18)](_0x362b(0x29)+_0x240130+'ms)');}catch(_0x29fb99){if(_0x11eefd[_0x362b(0x2a)](_0x11eefd[_0x362b(0x2b)],_0x362b(0x2c))){const _0x182a5b='4|2|0|1|3'['split']('|');let _0x197e39=0x0;while(!![]){switch(_0x182a5b[_0x197e39++]){case'0':_0x404372[_0x362b(0x26)]['google']={'error':_0x29fb99['message']};continue;case'1':console[_0x362b(0x18)](_0x362b(0x2d)+_0x29fb99[_0x362b(0x2e)]);continue;case'2':_0x404372['errors']['push']('Google\x20unreachable:\x20'+_0x29fb99[_0x362b(0x2e)]);continue;case'3':_0x404372[_0x362b(0x2f)]['push'](_0x362b(0x30));continue;case'4':_0x404372[_0x362b(0x25)][_0x362b(0x31)]=![];continue;}break;}}else _0x8f5557[_0x362b(0x2f)][_0x362b(0x32)](_0x11eefd['eSLwm']);}console['log'](_0x11eefd[_0x362b(0x33)]);try{if(_0x11eefd['xKVHb'](_0x11eefd[_0x362b(0x34)],_0x11eefd[_0x362b(0x35)])){const _0x3b0ba7=Date[_0x362b(0x24)](),_0x344657=await fetch(API_CONFIG[_0x362b(0x36)]+_0x362b(0x37),{'method':'GET','headers':{'Accept':'application/json'}}),_0x1a7829=_0x11eefd[_0x362b(0x38)](Date[_0x362b(0x24)](),_0x3b0ba7),_0x2ad33a=await _0x344657[_0x362b(0x39)]()[_0x362b(0x3a)](()=>_0x362b(0x3b));_0x404372[_0x362b(0x25)][_0x362b(0x3c)]=_0x344657['ok'],_0x404372[_0x362b(0x26)][_0x362b(0x3d)]={'status':_0x344657[_0x362b(0x28)],'time':_0x1a7829,'body':_0x2ad33a[_0x362b(0x3e)](0x0,0xc8)},_0x344657['ok']?console[_0x362b(0x18)](_0x362b(0x3f)+_0x1a7829+_0x362b(0x40)):_0x11eefd[_0x362b(0x41)]===_0x11eefd[_0x362b(0x41)]?(console[_0x362b(0x18)](_0x362b(0x42)+_0x344657[_0x362b(0x28)]),_0x404372[_0x362b(0x43)][_0x362b(0x32)](_0x362b(0x44)+_0x344657[_0x362b(0x28)])):_0x47498a[_0x362b(0x2f)][_0x362b(0x32)](_0x362b(0x45));}else return![];}catch(_0x3838c2){_0x404372['tests'][_0x362b(0x3c)]=![],_0x404372['errors']['push'](_0x362b(0x46)+_0x3838c2[_0x362b(0x2e)]),_0x404372[_0x362b(0x26)][_0x362b(0x3d)]={'error':_0x3838c2[_0x362b(0x2e)]},console['log']('\x20\x20\x20❌\x20FAIL\x20-\x20'+_0x3838c2[_0x362b(0x2e)]);if(_0x404372[_0x362b(0x25)][_0x362b(0x31)]){if('OFEMs'!=='yvtOb')_0x404372[_0x362b(0x2f)]['push'](_0x362b(0x45));else{const _0x1f19d5=_0x11eefd[_0x362b(0x47)]['split']('|');let _0x381dfa=0x0;while(!![]){switch(_0x1f19d5[_0x381dfa++]){case'0':_0x4f17f3[_0x362b(0x2f)][_0x362b(0x32)]('POST requests failing. This is the exact issue affecting OAuth.');continue;case'1':_0x217b7c[_0x362b(0x25)][_0x362b(0x48)]=![];continue;case'2':_0x30fa0a[_0x362b(0x43)][_0x362b(0x32)](_0x362b(0x49)+_0xa3fac0[_0x362b(0x2e)]);continue;case'3':_0x557d34['log']('\x20\x20\x20❌\x20FAIL\x20-\x20'+_0x3b9154[_0x362b(0x2e)]);continue;case'4':_0x552367['rawResults'][_0x362b(0x4a)]={'error':_0xecced6['message']};continue;}break;}}}}console[_0x362b(0x18)]('\n\uD83E\uDDEA Test 3: POST Request (OAuth simulation)');try{if(_0x11eefd['tunOY'](_0x362b(0xc),_0x11eefd[_0x362b(0x4b)])){const _0x59abb1=Date[_0x362b(0x24)](),_0x4881d6=await _0x11eefd[_0x362b(0x20)](fetch,API_CONFIG[_0x362b(0x36)]+_0x362b(0x4c),{'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/json'},'body':JSON[_0x362b(0x4d)]({'session':{'username':_0x11eefd['DQwCd'],'platform':_0x11eefd[_0x362b(0x4e)],'timestamp':new Date()[_0x362b(0x1b)]()}})}),_0x9ba93f=Date[_0x362b(0x24)]()-_0x59abb1,_0x367518=await _0x4881d6['text']()[_0x362b(0x3a)](()=>_0x362b(0x3b));_0x404372['rawResults']['apiPost']={'status':_0x4881d6[_0x362b(0x28)],'time':_0x9ba93f,'body':_0x367518[_0x362b(0x3e)](0x0,0x1f4)},_0x404372[_0x362b(0x25)][_0x362b(0x48)]=!![],console['log'](_0x362b(0x4f)+_0x4881d6[_0x362b(0x28)]+'\x20('+_0x9ba93f+'ms)');try{const _0x498ac5=JSON[_0x362b(0x50)](_0x367518);_0x498ac5[_0x362b(0x51)]&&(_0x404372['tests'][_0x362b(0x52)]=!![],console[_0x362b(0x18)](_0x362b(0x53)));}catch{}}else{const _0x3e2c9a=_0x1665a7[_0x362b(0x50)](_0x510cd9);_0x3e2c9a[_0x362b(0x51)]&&(_0x440865['tests'][_0x362b(0x52)]=!![],_0x20c0b7['log']('\x20\x20\x20✅\x20BONUS\x20-\x20Got\x20YouTube\x20OAuth\x20URL!'));}}catch(_0x4d0562){if(_0x11eefd[_0x362b(0x54)](_0x362b(0xf),_0x11eefd['WBIfW'])){const _0x27261b=_0x362b(0x55)[_0x362b(0x56)]('|');let _0x54426a=0x0;while(!![]){switch(_0x27261b[_0x54426a++]){case'0':console[_0x362b(0x18)](_0x362b(0x2d)+_0x4d0562[_0x362b(0x2e)]);continue;case'1':_0x404372[_0x362b(0x43)][_0x362b(0x32)](_0x362b(0x49)+_0x4d0562[_0x362b(0x2e)]);continue;case'2':_0x404372[_0x362b(0x2f)]['push']('POST requests failing. This is the exact issue affecting OAuth.');continue;case'3':_0x404372[_0x362b(0x26)][_0x362b(0x4a)]={'error':_0x4d0562[_0x362b(0x2e)]};continue;case'4':_0x404372[_0x362b(0x25)]['apiPostWorks']=![];continue;}break;}}else return _0x11eefd[_0x362b(0x57)];}console['log'](_0x362b(0x58)),console['log'](_0x11eefd[_0x362b(0x59)]),console[_0x362b(0x18)]('───────────────────────────────────────────');const _0x4e3deb=Object[_0x362b(0x5a)](_0x404372[_0x362b(0x25)])['filter'](Boolean)[_0x362b(0x5b)],_0x32f4be=Object[_0x362b(0x5c)](_0x404372[_0x362b(0x25)])[_0x362b(0x5b)];return console[_0x362b(0x18)](_0x362b(0x5d)+_0x4e3deb+'/'+_0x32f4be),_0x11eefd[_0x362b(0x5e)](_0x4e3deb,_0x32f4be)?_0x11eefd['YBmpT'](_0x11eefd[_0x362b(0x5f)],_0x362b(0x11))?_0xc3c0f3[_0x362b(0x18)](_0x11eefd['FPKIX']):console[_0x362b(0x18)]('\x0a✅\x20ALL\x20TESTS\x20PASSED\x20-\x20SDK\x20should\x20work\x20correctly'):_0x11eefd[_0x362b(0x60)](_0x11eefd[_0x362b(0x61)],_0x362b(0x62))?_0x4dbf3e[_0x362b(0x18)]('\x20\x20\x20'+(_0x324c85+0x1)+'.\x20'+_0x53b3a5):(console[_0x362b(0x18)](_0x11eefd[_0x362b(0x63)]),Platform['OS']===_0x11eefd[_0x362b(0x64)]&&!_0x404372[_0x362b(0x25)][_0x362b(0x3c)]&&_0x404372[_0x362b(0x2f)][_0x362b(0x32)](_0x362b(0x65),_0x11eefd['BbwYN']),!_0x404372[_0x362b(0x25)]['googleReachable']&&(_0x11eefd[_0x362b(0x66)]('glPBl',_0x362b(0x67))?_0x404372[_0x362b(0x2f)]['push'](_0x11eefd[_0x362b(0x68)]):(_0x1b83e4[_0x362b(0x18)]('\x20\x20\x20⚠️\x20PARTIAL\x20-\x20API\x20responded\x20with\x20'+_0x26c011['status']),_0x21f5d8[_0x362b(0x43)]['push']('API\x20returned\x20status\x20'+_0x490aa0['status']))),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x69)]),_0x404372['recommendations']['forEach']((_0x547d58,_0x411300)=>{_0x11eefd[_0x362b(0x5e)](_0x11eefd[_0x362b(0x6a)],_0x11eefd[_0x362b(0x6a)])?console['log'](_0x362b(0x6b)+_0x11eefd[_0x362b(0x6c)](_0x411300,0x1)+'.\x20'+_0x547d58):(_0x5e832b['tests'][_0x362b(0x52)]=!![],_0x42dec2[_0x362b(0x18)](_0x362b(0x53)));})),console[_0x362b(0x18)](_0x362b(0x6d)),console[_0x362b(0x18)](_0x11eefd[_0x362b(0x6e)]),console['log'](JSON[_0x362b(0x4d)](_0x404372,null,0x2)),_0x404372;};export const isApiReachable=async()=>{try{const _0x3b0ccd=await fetch(API_CONFIG['BASE_URL']+_0x362b(0x37),{'method':'GET'});return _0x3b0ccd['ok'];}catch{return![];}};function _0x2008(){const _0x5b88db=['Device\x20has\x20no\x20internet\x20-\x20check\x20WiFi/cellular','api_unreachable','\x0a✅\x20ALL\x20TESTS\x20PASSED\x20-\x20SDK\x20should\x20work\x20correctly','HCRps','═══════════════════════════════════════════','───────────────────────────────────────────','https://www.google.com','HEAD','RcvFX','\x0a🧪\x20Test\x202:\x20API\x20Reachability\x20(API\x20server/health)','uAkdF','lPmez','Fslbl','diagnostic_test','youtube','tNnFn','📋\x20SUMMARY','VHhFz','abeLb','\x0a⚠️\x20SOME\x20TESTS\x20FAILED\x20-\x20See\x20recommendations\x20below:','ios','iOS:\x20Try\x20on\x20physical\x20device\x20instead\x20of\x20simulator','\x0a📌\x20RECOMMENDATIONS:','Full\x20results\x20object\x20logged\x20below\x20for\x20debugging:','log','AKhkQ','laDOj','toISOString','📱\x20Platform:\x20','Version','FXjiH','eRRji','qeusp','GhYfI','LWyLa','uwhkT','now','tests','rawResults','google','status','\x20\x20\x20✅\x20PASS\x20-\x20Google\x20reachable\x20(','omDUD','YZszL','RqhQO','\x20\x20\x20❌\x20FAIL\x20-\x20','message','recommendations','Check\x20internet\x20connection\x20on\x20device','googleReachable','push','tNehC','RkIaP','HkUiM','BASE_URL','/health','CrUPX','text','catch','Unable\x20to\x20read','apiReachable','apiHealth','substring','\x20\x20\x20✅\x20PASS\x20-\x20API\x20reachable\x20(','ms)','PAwYt','\x20\x20\x20⚠️\x20PARTIAL\x20-\x20API\x20responded\x20with\x20','errors','API\x20returned\x20status\x20','Internet\x20works\x20but\x20API\x20blocked.\x20Check:\x20VPN,\x20Firewall,\x20iOS\x20ATS\x20settings','API\x20unreachable:\x20','ZLVOm','apiPostWorks','POST\x20request\x20failed:\x20','apiPost','jfzIz','/youtube/authorize','stringify','RIcJm','\x20\x20\x20✅\x20PASS\x20-\x20POST\x20request\x20succeeded,\x20status:\x20','parse','youtubeURL','youtubeOAuthWorks','\x20\x20\x20✅\x20BONUS\x20-\x20Got\x20YouTube\x20OAuth\x20URL!','LFtYO','4|1|3|0|2','split','yxAiz','\x0a───────────────────────────────────────────','Hzykv','values','length','keys','\x0aTests\x20Passed:\x20','tunOY','UENRX','SgOfK','UySSz','VriBN','MOmMT','cpPWc','iOS:\x20Add\x20NSAppTransportSecurity\x20to\x20Info.plist','GvPPY','glPBl','eSLwm','PVkdP','hdxAg','\x20\x20\x20','wzKtQ','\x0a═══════════════════════════════════════════','LOSgi','online','KMQvE','XrUgz','offline','KmAqU','psKGl','dupTz','openw','coPjY','mTAik','MRjSM','dIAcC','JSJlM','aLnBF'];_0x2008=function(){return _0x5b88db;};return _0x2008();}export const getNetworkStatus=async()=>{const _0xda1d4b={'coPjY':_0x362b(0x6f),'dIAcC':'1|4|3|2|0','JSJlM':'Internet\x20works\x20but\x20API\x20blocked.\x20Check:\x20VPN,\x20Firewall,\x20iOS\x20ATS\x20settings','KmAqU':function(_0x1eed70,_0x5b4a44,_0x3571e5){return _0x1eed70(_0x5b4a44,_0x3571e5);},'psKGl':_0x362b(0x6),'dupTz':function(_0x57218f,_0x50f40c){return _0x57218f(_0x50f40c);},'JxRTw':function(_0x3788c4,_0x9620fd){return _0x3788c4!==_0x9620fd;},'openw':_0x362b(0x70),'mTAik':_0x362b(0x1),'MRjSM':_0x362b(0x71),'aLnBF':_0x362b(0x72)};try{await _0xda1d4b[_0x362b(0x73)](fetch,_0xda1d4b[_0x362b(0x74)],{'method':'HEAD'});const _0x12ab18=await _0xda1d4b[_0x362b(0x75)](fetch,API_CONFIG['BASE_URL']+_0x362b(0x37));return _0x12ab18['ok']?_0xda1d4b['JxRTw'](_0xda1d4b['openw'],_0xda1d4b[_0x362b(0x76)])?_0xda1d4b[_0x362b(0x77)]:_0xda1d4b[_0x362b(0x77)]:_0xda1d4b[_0x362b(0x78)];}catch{if('XrUgz'!==_0xda1d4b[_0x362b(0x79)]){const _0x3caba6=_0xda1d4b[_0x362b(0x7a)][_0x362b(0x56)]('|');let _0x110094=0x0;while(!![]){switch(_0x3caba6[_0x110094++]){case'0':_0xe1efc6[_0x362b(0x25)][_0x362b(0x31)]&&_0x20a6cc[_0x362b(0x2f)][_0x362b(0x32)](_0xda1d4b[_0x362b(0x7b)]);continue;case'1':_0x23a553[_0x362b(0x25)][_0x362b(0x3c)]=![];continue;case'2':_0x5df812[_0x362b(0x18)](_0x362b(0x2d)+_0x54e2cb[_0x362b(0x2e)]);continue;case'3':_0x1008c5[_0x362b(0x26)]['apiHealth']={'error':_0x782cbe['message']};continue;case'4':_0x6806c2[_0x362b(0x43)][_0x362b(0x32)](_0x362b(0x46)+_0x1cf23b[_0x362b(0x2e)]);continue;}break;}}else return _0xda1d4b[_0x362b(0x7c)];}};
|
|
1
|
+
import{Platform}from'react-native';function _0x2a23(_0x1a3eeb,_0x2a23da){_0x1a3eeb=_0x1a3eeb-0x0;const _0x41a92b=_0x1a3e();let _0x2b0201=_0x41a92b[_0x1a3eeb];return _0x2b0201;}import{API_CONFIG}from'../config/api';export const runFullDiagnostics=async()=>{const _0x65da6d={'IMcqO':'offline','TKhOy':_0x2a23(0x0),'xehuf':function(_0x19dae2,_0x378477){return _0x19dae2+_0x378477;},'FizOg':'═══════════════════════════════════════════','vmgcS':_0x2a23(0x1),'dHhBT':_0x2a23(0x2),'adtBw':function(_0x35a74e,_0x4065f3,_0x436c8b){return _0x35a74e(_0x4065f3,_0x436c8b);},'vaify':_0x2a23(0x3),'kPjTo':function(_0x46bfe3,_0x512ea0){return _0x46bfe3-_0x512ea0;},'OTsGb':function(_0x31f805,_0x23409d){return _0x31f805!==_0x23409d;},'NETSI':'cEeRv','yBBEk':'3|1|2|4|0','RkJuy':function(_0x57a0a6,_0x491865){return _0x57a0a6-_0x491865;},'LgjTn':_0x2a23(0x4),'kJexw':_0x2a23(0x5),'pwHIm':'diagnostic_test','masGz':'youtube','yQGtw':function(_0x19a40b,_0x4ff0d2){return _0x19a40b-_0x4ff0d2;},'eDqTj':function(_0x4cee51,_0x446efa){return _0x4cee51===_0x446efa;},'fuDyt':'FMhhE','wjRaA':'WwXjv','ouNrC':_0x2a23(0x6),'eGbFO':_0x2a23(0x7),'sfSYp':_0x2a23(0x8),'yDMVn':function(_0x57949f,_0x4fb729){return _0x57949f===_0x4fb729;},'uhTzB':_0x2a23(0x9),'PhqIH':_0x2a23(0xa),'gVCKk':_0x2a23(0xb),'RCtey':_0x2a23(0xc),'fWoyl':'onAdn','LcXsy':'Device\x20has\x20no\x20internet\x20-\x20check\x20WiFi/cellular','oKrVj':_0x2a23(0xd)};console[_0x2a23(0xe)](_0x65da6d[_0x2a23(0xf)]),console[_0x2a23(0xe)]('🔍\x20ONAIROS\x20SDK\x20NETWORK\x20DIAGNOSTICS'),console['log'](_0x65da6d[_0x2a23(0xf)]);const _0x247d4f={'timestamp':new Date()[_0x2a23(0x10)](),'platform':Platform['OS'],'platformVersion':Platform[_0x2a23(0x11)],'tests':{'googleReachable':![],'apiReachable':![],'apiPostWorks':![],'youtubeOAuthWorks':![]},'errors':[],'recommendations':[],'rawResults':{}};console[_0x2a23(0xe)](_0x2a23(0x12)+Platform['OS']+'\x20'+Platform[_0x2a23(0x11)]),console[_0x2a23(0xe)](_0x65da6d[_0x2a23(0x13)]),console['log'](_0x65da6d[_0x2a23(0x14)]);try{const _0x39ba42=Date[_0x2a23(0x15)](),_0x42e145=await _0x65da6d[_0x2a23(0x16)](fetch,_0x2a23(0x17),{'method':_0x65da6d['vaify']}),_0x22f73a=_0x65da6d[_0x2a23(0x18)](Date[_0x2a23(0x15)](),_0x39ba42);_0x247d4f['tests'][_0x2a23(0x19)]=!![],_0x247d4f[_0x2a23(0x1a)][_0x2a23(0x1b)]={'status':_0x42e145[_0x2a23(0x1c)],'time':_0x22f73a},console[_0x2a23(0xe)](_0x2a23(0x1d)+_0x22f73a+_0x2a23(0x1e));}catch(_0x18f761){if(_0x65da6d[_0x2a23(0x1f)](_0x2a23(0x20),_0x65da6d['NETSI'])){const _0xe48d70=_0x65da6d[_0x2a23(0x21)][_0x2a23(0x22)]('|');let _0x299f8c=0x0;while(!![]){switch(_0xe48d70[_0x299f8c++]){case'0':_0x247d4f[_0x2a23(0x23)]['push'](_0x2a23(0x24));continue;case'1':_0x247d4f['errors']['push']('Google\x20unreachable:\x20'+_0x18f761[_0x2a23(0x25)]);continue;case'2':_0x247d4f[_0x2a23(0x1a)]['google']={'error':_0x18f761[_0x2a23(0x25)]};continue;case'3':_0x247d4f[_0x2a23(0x26)][_0x2a23(0x19)]=![];continue;case'4':console['log']('\x20\x20\x20❌\x20FAIL\x20-\x20'+_0x18f761[_0x2a23(0x25)]);continue;}break;}}else _0x434651[_0x2a23(0x23)]['push'](_0x2a23(0x27));}console[_0x2a23(0xe)]('\x0a🧪\x20Test\x202:\x20API\x20Reachability\x20(API\x20server/health)');try{const _0x344b1b=Date[_0x2a23(0x15)](),_0x54ccac=await fetch(API_CONFIG['BASE_URL']+_0x2a23(0x28),{'method':'GET','headers':{'Accept':'application/json'}}),_0x21b835=_0x65da6d[_0x2a23(0x29)](Date['now'](),_0x344b1b),_0x24a4a5=await _0x54ccac[_0x2a23(0x2a)]()['catch'](()=>_0x2a23(0x2b));_0x247d4f[_0x2a23(0x26)][_0x2a23(0x2c)]=_0x54ccac['ok'],_0x247d4f[_0x2a23(0x1a)][_0x2a23(0x2d)]={'status':_0x54ccac[_0x2a23(0x1c)],'time':_0x21b835,'body':_0x24a4a5[_0x2a23(0x2e)](0x0,0xc8)},_0x54ccac['ok']?console['log'](_0x2a23(0x2f)+_0x21b835+_0x2a23(0x1e)):_0x65da6d['LgjTn']===_0x65da6d['LgjTn']?(console[_0x2a23(0xe)](_0x2a23(0x30)+_0x54ccac[_0x2a23(0x1c)]),_0x247d4f[_0x2a23(0x31)]['push'](_0x2a23(0x32)+_0x54ccac[_0x2a23(0x1c)])):(_0x350521[_0x2a23(0xe)](_0x2a23(0x30)+_0x967c00[_0x2a23(0x1c)]),_0xe0b573[_0x2a23(0x31)][_0x2a23(0x33)](_0x2a23(0x32)+_0x5704db['status']));}catch(_0x334e29){_0x247d4f[_0x2a23(0x26)]['apiReachable']=![],_0x247d4f[_0x2a23(0x31)]['push'](_0x2a23(0x34)+_0x334e29[_0x2a23(0x25)]),_0x247d4f[_0x2a23(0x1a)][_0x2a23(0x2d)]={'error':_0x334e29[_0x2a23(0x25)]},console[_0x2a23(0xe)](_0x2a23(0x35)+_0x334e29[_0x2a23(0x25)]),_0x247d4f['tests']['googleReachable']&&(_0x65da6d['kJexw']==='JdHxJ'?_0x4d3de9[_0x2a23(0xe)](_0x2a23(0x2f)+_0x20feeb+_0x2a23(0x1e)):_0x247d4f['recommendations'][_0x2a23(0x33)](_0x2a23(0x27)));}console['log']('\n\uD83E\uDDEA Test 3: POST Request (OAuth simulation)');try{const _0x336625=Date[_0x2a23(0x15)](),_0x1be305=await fetch(API_CONFIG[_0x2a23(0x36)]+_0x2a23(0x37),{'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/json'},'body':JSON[_0x2a23(0x38)]({'session':{'username':_0x65da6d[_0x2a23(0x39)],'platform':_0x65da6d[_0x2a23(0x3a)],'timestamp':new Date()['toISOString']()}})}),_0x2e2944=_0x65da6d['yQGtw'](Date['now'](),_0x336625),_0x526c17=await _0x1be305[_0x2a23(0x2a)]()['catch'](()=>_0x2a23(0x2b));_0x247d4f['rawResults'][_0x2a23(0x3b)]={'status':_0x1be305[_0x2a23(0x1c)],'time':_0x2e2944,'body':_0x526c17[_0x2a23(0x2e)](0x0,0x1f4)},_0x247d4f[_0x2a23(0x26)][_0x2a23(0x3c)]=!![],console[_0x2a23(0xe)]('\x20\x20\x20✅\x20PASS\x20-\x20POST\x20request\x20succeeded,\x20status:\x20'+_0x1be305['status']+'\x20('+_0x2e2944+_0x2a23(0x1e));try{const _0x7a629=JSON['parse'](_0x526c17);_0x7a629[_0x2a23(0x3d)]&&(_0x247d4f[_0x2a23(0x26)][_0x2a23(0x3e)]=!![],console[_0x2a23(0xe)]('\x20\x20\x20✅\x20BONUS\x20-\x20Got\x20YouTube\x20OAuth\x20URL!'));}catch{}}catch(_0x3365cd){if(_0x65da6d[_0x2a23(0x3f)](_0x65da6d['fuDyt'],_0x65da6d[_0x2a23(0x40)]))return _0x65da6d[_0x2a23(0x41)];else{const _0x34ae6=_0x65da6d['ouNrC'][_0x2a23(0x22)]('|');let _0x35f2a5=0x0;while(!![]){switch(_0x34ae6[_0x35f2a5++]){case'0':_0x247d4f[_0x2a23(0x26)]['apiPostWorks']=![];continue;case'1':console[_0x2a23(0xe)](_0x2a23(0x35)+_0x3365cd['message']);continue;case'2':_0x247d4f[_0x2a23(0x23)][_0x2a23(0x33)]('POST requests failing. This is the exact issue affecting OAuth.');continue;case'3':_0x247d4f[_0x2a23(0x1a)][_0x2a23(0x3b)]={'error':_0x3365cd[_0x2a23(0x25)]};continue;case'4':_0x247d4f[_0x2a23(0x31)]['push']('POST\x20request\x20failed:\x20'+_0x3365cd['message']);continue;}break;}}}console[_0x2a23(0xe)](_0x2a23(0x42)),console['log'](_0x65da6d[_0x2a23(0x43)]),console[_0x2a23(0xe)](_0x65da6d['vmgcS']);const _0x351128=Object[_0x2a23(0x44)](_0x247d4f['tests'])['filter'](Boolean)[_0x2a23(0x45)],_0x3d5fea=Object[_0x2a23(0x46)](_0x247d4f[_0x2a23(0x26)])[_0x2a23(0x45)];console[_0x2a23(0xe)](_0x2a23(0x47)+_0x351128+'/'+_0x3d5fea);if(_0x65da6d[_0x2a23(0x3f)](_0x351128,_0x3d5fea)){if(_0x65da6d['OTsGb'](_0x65da6d[_0x2a23(0x48)],_0x65da6d['sfSYp']))return _0x65da6d['TKhOy'];else console[_0x2a23(0xe)](_0x2a23(0x49));}else console['log'](_0x2a23(0x4a)),_0x65da6d[_0x2a23(0x4b)](Platform['OS'],_0x65da6d[_0x2a23(0x4c)])&&!_0x247d4f['tests'][_0x2a23(0x2c)]&&_0x247d4f[_0x2a23(0x23)][_0x2a23(0x33)](_0x65da6d['PhqIH'],_0x65da6d[_0x2a23(0x4d)]),!_0x247d4f[_0x2a23(0x26)][_0x2a23(0x19)]&&(_0x65da6d['RCtey']!==_0x65da6d[_0x2a23(0x4e)]?_0x247d4f[_0x2a23(0x23)]['push'](_0x65da6d['LcXsy']):(_0x4d327d[_0x2a23(0x26)][_0x2a23(0x3e)]=!![],_0x2d021a[_0x2a23(0xe)]('\x20\x20\x20✅\x20BONUS\x20-\x20Got\x20YouTube\x20OAuth\x20URL!'))),console[_0x2a23(0xe)](_0x65da6d[_0x2a23(0x4f)]),_0x247d4f[_0x2a23(0x23)][_0x2a23(0x50)]((_0x401d77,_0x38d207)=>{console[_0x2a23(0xe)](_0x2a23(0x51)+_0x65da6d['xehuf'](_0x38d207,0x1)+'.\x20'+_0x401d77);});return console[_0x2a23(0xe)](_0x2a23(0x52)),console[_0x2a23(0xe)]('Full\x20results\x20object\x20logged\x20below\x20for\x20debugging:'),console[_0x2a23(0xe)](JSON[_0x2a23(0x38)](_0x247d4f,null,0x2)),_0x247d4f;};function _0x1a3e(){const _0x591621=['api_unreachable','───────────────────────────────────────────','\x0a🧪\x20Test\x201:\x20Internet\x20Connectivity\x20(google.com)','HEAD','PyvQH','IIbZU','0|4|3|1|2','📋\x20SUMMARY','hDvvq','ios','iOS:\x20Add\x20NSAppTransportSecurity\x20to\x20Info.plist','iOS:\x20Try\x20on\x20physical\x20device\x20instead\x20of\x20simulator','blayd','\x0a📌\x20RECOMMENDATIONS:','log','FizOg','toISOString','Version','📱\x20Platform:\x20','vmgcS','dHhBT','now','adtBw','https://www.google.com','kPjTo','googleReachable','rawResults','google','status','\x20\x20\x20✅\x20PASS\x20-\x20Google\x20reachable\x20(','ms)','OTsGb','FIcLv','yBBEk','split','recommendations','Check\x20internet\x20connection\x20on\x20device','message','tests','Internet\x20works\x20but\x20API\x20blocked.\x20Check:\x20VPN,\x20Firewall,\x20iOS\x20ATS\x20settings','/health','RkJuy','text','Unable\x20to\x20read','apiReachable','apiHealth','substring','\x20\x20\x20✅\x20PASS\x20-\x20API\x20reachable\x20(','\x20\x20\x20⚠️\x20PARTIAL\x20-\x20API\x20responded\x20with\x20','errors','API\x20returned\x20status\x20','push','API\x20unreachable:\x20','\x20\x20\x20❌\x20FAIL\x20-\x20','BASE_URL','/youtube/authorize','stringify','pwHIm','masGz','apiPost','apiPostWorks','youtubeURL','youtubeOAuthWorks','eDqTj','wjRaA','IMcqO','\x0a───────────────────────────────────────────','eGbFO','values','length','keys','\x0aTests\x20Passed:\x20','sfSYp','\x0a✅\x20ALL\x20TESTS\x20PASSED\x20-\x20SDK\x20should\x20work\x20correctly','\x0a⚠️\x20SOME\x20TESTS\x20FAILED\x20-\x20See\x20recommendations\x20below:','yDMVn','uhTzB','gVCKk','fWoyl','oKrVj','forEach','\x20\x20\x20','\x0a═══════════════════════════════════════════','zOkLA','Xjlbs','qbRfN','Grzuu','online','qvNhu','offline','RjTmr','AMQqW','ptsFN','eezYj','uuyRW','MzAAX','cRdlw','JIpmq','AQOca','sgWAG','parse','\x20\x20\x20✅\x20BONUS\x20-\x20Got\x20YouTube\x20OAuth\x20URL!','JWHAj'];_0x1a3e=function(){return _0x591621;};return _0x1a3e();}export const isApiReachable=async()=>{const _0x7f3281={'AJHho':function(_0x14a8bf,_0x2a485c,_0xfd5dff){return _0x14a8bf(_0x2a485c,_0xfd5dff);},'Xjlbs':function(_0x1600f4,_0xcd44c4){return _0x1600f4!==_0xcd44c4;},'qbRfN':_0x2a23(0x53),'etOFM':'otvxK'};try{const _0x2c20f1=await _0x7f3281['AJHho'](fetch,API_CONFIG['BASE_URL']+_0x2a23(0x28),{'method':'GET'});return _0x2c20f1['ok'];}catch{if(_0x7f3281[_0x2a23(0x54)](_0x7f3281[_0x2a23(0x55)],_0x7f3281['etOFM']))return![];else _0x50371d[_0x2a23(0xe)]('\x20\x20\x20'+(_0x540c7d+0x1)+'.\x20'+_0x3d16cc);}};export const getNetworkStatus=async()=>{const _0x141dda={'RjTmr':function(_0x56863f,_0x2c0dc7,_0xe14a7f){return _0x56863f(_0x2c0dc7,_0xe14a7f);},'AMQqW':_0x2a23(0x17),'ptsFN':_0x2a23(0x3),'eezYj':function(_0x516069,_0x247133){return _0x516069(_0x247133);},'uuyRW':function(_0x5c3b7b,_0x312717){return _0x5c3b7b===_0x312717;},'cRdlw':_0x2a23(0x56),'JIpmq':_0x2a23(0x57),'AQOca':_0x2a23(0x58),'sgWAG':_0x2a23(0x0),'JWHAj':_0x2a23(0x59)};try{await _0x141dda[_0x2a23(0x5a)](fetch,_0x141dda[_0x2a23(0x5b)],{'method':_0x141dda[_0x2a23(0x5c)]});const _0x1b21cb=await _0x141dda[_0x2a23(0x5d)](fetch,API_CONFIG['BASE_URL']+_0x2a23(0x28));if(_0x1b21cb['ok']){if(_0x141dda[_0x2a23(0x5e)](_0x2a23(0x5f),_0x141dda[_0x2a23(0x60)]))_0x28a30b[_0x2a23(0xe)](_0x2a23(0x49));else return _0x141dda[_0x2a23(0x61)];}else{if(_0x141dda[_0x2a23(0x5e)]('qvNhu',_0x141dda[_0x2a23(0x62)]))return _0x141dda[_0x2a23(0x63)];else{const _0x14d835=_0xa6c3ff[_0x2a23(0x64)](_0x3bc9ef);_0x14d835[_0x2a23(0x3d)]&&(_0x5863e4[_0x2a23(0x26)][_0x2a23(0x3e)]=!![],_0x5d9976[_0x2a23(0xe)](_0x2a23(0x65)));}}}catch{return _0x141dda[_0x2a23(0x66)];}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import NetInfo from'@react-native-community/netinfo';import{logDebug}from'./debugHelper';import{getJWT,makeUserRequest,makeDeveloperRequest,isUserAuthenticated,extractUsernameFromJWT}from'../services/apiKeyService';export class ApiError extends Error{constructor(_0x286b0a,_0x2e64d2,_0x5882fc,_0x27150b){const _0x29ca46={'QYsPr':_0x32b0(0x0)};super(_0x286b0a),this[_0x32b0(0x1)]=_0x2e64d2,this['code']=_0x5882fc,this[_0x32b0(0x2)]=_0x27150b,this['name']=_0x29ca46['QYsPr'];}}const checkNetworkConnection=async()=>{const _0x49e11f={'Pqnwa':function(_0x113baa,_0x1c8364){return _0x113baa===_0x1c8364;}},_0xbaa042=await NetInfo[_0x32b0(0x3)]();return _0x49e11f[_0x32b0(0x4)](_0xbaa042['isConnected'],!![]);},makeUserApiRequest=async(_0x4a8fb8,_0x3f19c3,_0x3efe5b={})=>{const _0x4a8684={'sSnOm':function(_0x15c7d5,_0x28cb45){return _0x15c7d5===_0x28cb45;},'PKAix':function(_0x5439e8,_0x41375e){return _0x5439e8===_0x41375e;},'UrUVb':_0x32b0(0x5),'JPOzc':function(_0x4f4a1e,_0x1bac46){return _0x4f4a1e>=_0x1bac46;},'uUQkn':_0x32b0(0x6),'ywOCz':_0x32b0(0x7),'bjRgH':function(_0x3bd84d,_0x5d18e9){return _0x3bd84d===_0x5d18e9;},'umUVB':_0x32b0(0x8),'sSata':function(_0x1ae6ec,_0x4e534b){return _0x1ae6ec===_0x4e534b;},'pjnYa':function(_0x3a2f15,_0x57e473){return _0x3a2f15===_0x57e473;},'SutLV':function(_0x35c272,_0x2cbb1f){return _0x35c272===_0x2cbb1f;},'wnkDw':function(_0x390e18,_0x371787,_0x253e48){return _0x390e18(_0x371787,_0x253e48);},'xAKuc':'User\x20API\x20Response','pKlpM':function(_0x53156b){return _0x53156b();},'OImpV':_0x32b0(0x9),'NMsNA':_0x32b0(0xa),'hEaNt':_0x32b0(0xb),'ZcnbX':_0x32b0(0xc),'fqdtZ':'[REDACTED]','ZYuVt':_0x32b0(0xd),'TxVli':function(_0x3ba4c2,_0xebc126){return _0x3ba4c2===_0xebc126;},'zZFzI':function(_0x2b687e,_0x187960){return _0x2b687e===_0x187960;},'vyKKw':function(_0x548dc,_0x2d55a0){return _0x548dc instanceof _0x2d55a0;},'GApPu':function(_0x17b0f8,_0x484438){return _0x17b0f8!==_0x484438;},'vWIQj':'xSmcq','HZlNo':_0x32b0(0xe),'qxaZJ':function(_0x192338,_0x184b18){return _0x192338===_0x184b18;},'PjpRt':_0x32b0(0xf),'hKfKb':_0x32b0(0x10),'CzzpD':_0x32b0(0x11)},{data:_0x30159d,headers:headers={},debug:debug=![]}=_0x3efe5b;try{const _0x2048f0=await _0x4a8684[_0x32b0(0x12)](checkNetworkConnection);if(!_0x2048f0)throw new ApiError(_0x4a8684['OImpV'],_0x4a8684[_0x32b0(0x13)]);if(!_0x4a8684['pKlpM'](isUserAuthenticated))throw new ApiError(_0x4a8684[_0x32b0(0x14)],_0x4a8684['ZcnbX']);debug&&_0x4a8684[_0x32b0(0x15)](logDebug,_0x32b0(0x16),{'endpoint':_0x4a8fb8,'method':_0x3f19c3,'headers':{...headers,'Authorization':_0x4a8684[_0x32b0(0x17)]},'data':_0x30159d||null});const _0x52a7c8=await makeUserRequest(_0x4a8fb8,{'method':_0x3f19c3,'headers':headers,..._0x30159d?{'body':JSON['stringify'](_0x30159d)}:{}}),_0x56f3ca=await _0x52a7c8[_0x32b0(0x18)]();debug&&logDebug(_0x4a8684['xAKuc'],{'status':_0x52a7c8[_0x32b0(0x19)],'data':_0x56f3ca});if(!_0x52a7c8['ok']){if(_0x4a8684[_0x32b0(0x1a)](_0x4a8684[_0x32b0(0x1b)],_0x4a8684[_0x32b0(0x1b)])){var _0x38d9fe,_0x119e16,_0x4073b6;const _0x5c61c1=_0x4a8684['sSata'](_0x52a7c8[_0x32b0(0x19)],0x191)||_0x4a8684[_0x32b0(0x1c)](_0x52a7c8['status'],0x193)?_0x32b0(0xc):_0x52a7c8[_0x32b0(0x19)]===0x190?_0x4a8684[_0x32b0(0x1d)]:_0x52a7c8['status']>=0x1f4?_0x32b0(0x6):_0x4a8684['ywOCz'];throw new ApiError((_0x4a8684['pjnYa'](_0x38d9fe=_0x56f3ca['error'],null)||_0x4a8684['PKAix'](_0x38d9fe,void 0x0)?void 0x0:_0x38d9fe['message'])||_0x32b0(0x8),_0x5c61c1,_0x4a8684['TxVli'](_0x119e16=_0x56f3ca[_0x32b0(0x1e)],null)||_0x119e16===void 0x0?void 0x0:_0x119e16[_0x32b0(0x1f)],(_0x4073b6=_0x56f3ca['error'])===null||_0x4a8684['zZFzI'](_0x4073b6,void 0x0)?void 0x0:_0x4073b6[_0x32b0(0x2)]);}else return _0x26b2c0();}return _0x56f3ca;}catch(_0x55de5f){if(_0x4a8684[_0x32b0(0x20)](_0x55de5f,ApiError)){if(_0x4a8684[_0x32b0(0x21)](_0x4a8684[_0x32b0(0x22)],_0x4a8684['HZlNo']))throw _0x55de5f;else{var _0x3543ae,_0xf7dcc9,_0x553f4d;const _0x41108d=_0x4a8684[_0x32b0(0x1a)](_0x5e118c['status'],0x191)||_0x4a8684[_0x32b0(0x1a)](_0x5d8c17['status'],0x193)?_0x32b0(0xc):_0x4a8684[_0x32b0(0x23)](_0x522044[_0x32b0(0x19)],0x190)?_0x4a8684[_0x32b0(0x1d)]:_0x4a8684[_0x32b0(0x24)](_0x29416e['status'],0x1f4)?_0x4a8684[_0x32b0(0x25)]:_0x4a8684['ywOCz'];throw new _0x56275f(((_0x3543ae=_0x59a046[_0x32b0(0x1e)])===null||_0x4a8684['bjRgH'](_0x3543ae,void 0x0)?void 0x0:_0x3543ae[_0x32b0(0x26)])||_0x4a8684['umUVB'],_0x41108d,_0x4a8684[_0x32b0(0x27)](_0xf7dcc9=_0x42f2a8['error'],null)||_0x4a8684[_0x32b0(0x1c)](_0xf7dcc9,void 0x0)?void 0x0:_0xf7dcc9[_0x32b0(0x1f)],_0x4a8684[_0x32b0(0x28)](_0x553f4d=_0x2d61e9[_0x32b0(0x1e)],null)||_0x4a8684[_0x32b0(0x29)](_0x553f4d,void 0x0)?void 0x0:_0x553f4d['details']);}}if(_0x4a8684[_0x32b0(0x2a)](_0x55de5f[_0x32b0(0x2b)],_0x32b0(0x2c)))throw new ApiError(_0x32b0(0x2d),_0x32b0(0x2e));debug&&(_0x4a8684[_0x32b0(0x21)](_0x32b0(0xf),_0x4a8684[_0x32b0(0x2f)])?_0x4a8684[_0x32b0(0x15)](_0x4f64e0,_0x4a8684[_0x32b0(0x30)],{'status':_0x538937['status'],'data':_0x5f53fc}):logDebug(_0x4a8684[_0x32b0(0x31)],{'endpoint':_0x4a8fb8,'method':_0x3f19c3,'error':_0x55de5f[_0x32b0(0x26)]||_0x32b0(0x32)}));throw new ApiError(_0x55de5f[_0x32b0(0x26)]||_0x4a8684[_0x32b0(0x33)],_0x4a8684[_0x32b0(0x34)]);}},makeDeveloperApiRequest=async(_0xd24597,_0x1140a9,_0xbf76e7={})=>{const _0x342f10={'GjpSo':function(_0x681c72,_0x33dcd4,_0x451b26,_0x2c6a7f){return _0x681c72(_0x33dcd4,_0x451b26,_0x2c6a7f);},'ilHmi':_0x32b0(0x35),'bGkqG':_0x32b0(0x36),'vFNxX':function(_0x3814f0,_0x295b9f,_0x1f5d93,_0x2c29ea){return _0x3814f0(_0x295b9f,_0x1f5d93,_0x2c29ea);},'BlwLC':function(_0x34bd5a){return _0x34bd5a();},'VfkBq':function(_0x22f04a,_0x29c0bc){return _0x22f04a===_0x29c0bc;},'XjCtd':_0x32b0(0x37),'MbLUm':_0x32b0(0x9),'abbuQ':function(_0x3842e7,_0x9e518f){return _0x3842e7!==_0x9e518f;},'dJPmR':_0x32b0(0x38),'nIXfc':_0x32b0(0x39),'Bzplr':'Developer\x20API\x20Request','WTjht':function(_0x332c44,_0x3a2e05){return _0x332c44||_0x3a2e05;},'CFpVr':function(_0x20c4e9,_0x486d47,_0x287eb1){return _0x20c4e9(_0x486d47,_0x287eb1);},'hBNep':function(_0x1e5c3c,_0x53920c,_0x14f391){return _0x1e5c3c(_0x53920c,_0x14f391);},'tVGOU':'auth_error','gzwLS':_0x32b0(0x6),'qVgpm':_0x32b0(0x7),'NdgRR':function(_0x49d628,_0x3cc483){return _0x49d628===_0x3cc483;},'BGheF':_0x32b0(0x8),'KfgeA':function(_0x364fc3,_0x3759e5){return _0x364fc3===_0x3759e5;},'ixmnk':function(_0x184422,_0x1307e7){return _0x184422===_0x1307e7;},'frCSd':function(_0x37f93a,_0x182bc6){return _0x37f93a instanceof _0x182bc6;},'HIScY':'AbortError','OaZEZ':'CXNEI','RVumX':'timeout_error','lXevZ':function(_0x58219b,_0x13b6c8,_0x46be97){return _0x58219b(_0x13b6c8,_0x46be97);},'HhLrq':_0x32b0(0x32),'zoGXs':_0x32b0(0x11)},{data:_0x339958,headers:headers={},debug:debug=![]}=_0xbf76e7;try{const _0x4aead0=await _0x342f10[_0x32b0(0x3a)](checkNetworkConnection);if(!_0x4aead0){if(_0x342f10[_0x32b0(0x3b)]('fXweT',_0x342f10['XjCtd']))throw new ApiError(_0x342f10[_0x32b0(0x3c)],_0x32b0(0xa));else return _0x342f10['GjpSo'](_0x3d61d6,_0x342f10[_0x32b0(0x3d)],'POST',{'data':{'username':_0xf6b68c[_0x32b0(0x3e)],'platforms':_0x3041f7[_0x32b0(0x3f)]},'debug':_0x15ef46['debug']});}if(debug){if(_0x342f10['abbuQ'](_0x342f10[_0x32b0(0x40)],_0x342f10[_0x32b0(0x41)]))logDebug(_0x342f10[_0x32b0(0x42)],{'endpoint':_0xd24597,'method':_0x1140a9,'headers':{...headers,'Authorization':_0x32b0(0x43)},'data':_0x342f10[_0x32b0(0x44)](_0x339958,null)});else return _0x342f10[_0x32b0(0x45)](_0x32ad91,_0x342f10[_0x32b0(0x46)],'PUT',{'data':{'platforms':_0x575631},'debug':_0x54e059[_0x32b0(0x47)]});}const _0x38af6a=await _0x342f10[_0x32b0(0x48)](makeDeveloperRequest,_0xd24597,{'method':_0x1140a9,'headers':headers,..._0x339958?{'body':JSON[_0x32b0(0x49)](_0x339958)}:{}}),_0x250828=await _0x38af6a[_0x32b0(0x18)]();debug&&_0x342f10[_0x32b0(0x4a)](logDebug,'Developer\x20API\x20Response',{'status':_0x38af6a[_0x32b0(0x19)],'data':_0x250828});if(!_0x38af6a['ok']){var _0x4cd289,_0x5da006,_0xd6ff38;const _0x25b3ee=_0x342f10[_0x32b0(0x3b)](_0x38af6a[_0x32b0(0x19)],0x191)||_0x38af6a[_0x32b0(0x19)]===0x193?_0x342f10['tVGOU']:_0x342f10[_0x32b0(0x3b)](_0x38af6a[_0x32b0(0x19)],0x190)?'validation_error':_0x38af6a[_0x32b0(0x19)]>=0x1f4?_0x342f10[_0x32b0(0x4b)]:_0x342f10['qVgpm'];throw new ApiError((_0x342f10[_0x32b0(0x4c)](_0x4cd289=_0x250828['error'],null)||_0x4cd289===void 0x0?void 0x0:_0x4cd289[_0x32b0(0x26)])||_0x342f10['BGheF'],_0x25b3ee,_0x342f10[_0x32b0(0x4d)](_0x5da006=_0x250828[_0x32b0(0x1e)],null)||_0x342f10[_0x32b0(0x4d)](_0x5da006,void 0x0)?void 0x0:_0x5da006[_0x32b0(0x1f)],_0x342f10[_0x32b0(0x4c)](_0xd6ff38=_0x250828[_0x32b0(0x1e)],null)||_0x342f10[_0x32b0(0x4e)](_0xd6ff38,void 0x0)?void 0x0:_0xd6ff38[_0x32b0(0x2)]);}return _0x250828;}catch(_0x21a60a){if(_0x342f10[_0x32b0(0x4f)](_0x21a60a,ApiError))throw _0x21a60a;if(_0x21a60a['name']===_0x342f10[_0x32b0(0x50)]){if(_0x342f10[_0x32b0(0x51)]!==_0x32b0(0x52))return _0x342f10['vFNxX'](_0x562133,_0x32b0(0x53),'POST',{'data':{'refreshToken':_0x51637f},'debug':_0xba0f50[_0x32b0(0x47)]});else throw new ApiError('Request\x20timed\x20out',_0x342f10[_0x32b0(0x54)]);}debug&&_0x342f10[_0x32b0(0x55)](logDebug,_0x32b0(0x56),{'endpoint':_0xd24597,'method':_0x1140a9,'error':_0x21a60a[_0x32b0(0x26)]||_0x342f10[_0x32b0(0x57)]});throw new ApiError(_0x21a60a[_0x32b0(0x26)]||_0x342f10[_0x32b0(0x58)],'unknown_error');}};function _0x1e54(){const _0x44f3f5=['ApiError','type','details','fetch','Pqnwa','validation_error','server_error','unknown_error','API\x20request\x20failed','No\x20network\x20connection\x20available','network_error','User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','auth_error','UBLgo','tDMEc','xdpNq','User\x20API\x20Error','An\x20unexpected\x20error\x20occurred','pKlpM','NMsNA','hEaNt','wnkDw','User\x20API\x20Request','fqdtZ','json','status','sSnOm','ZYuVt','pjnYa','UrUVb','error','code','vyKKw','GApPu','vWIQj','PKAix','JPOzc','uUQkn','message','sSata','SutLV','bjRgH','qxaZJ','name','AbortError','Request\x20timed\x20out','timeout_error','PjpRt','xAKuc','hKfKb','Unknown\x20error','CzzpD','ywOCz','auth/register','user/platforms','fXweT','PztdV','ooVAt','BlwLC','VfkBq','MbLUm','ilHmi','username','platforms','dJPmR','nIXfc','Bzplr','[REDACTED]','WTjht','GjpSo','bGkqG','debug','CFpVr','stringify','hBNep','gzwLS','NdgRR','KfgeA','ixmnk','frCSd','HIScY','OaZEZ','CXNEI','auth/refresh','RVumX','lXevZ','Developer\x20API\x20Error','HhLrq','zoGXs','Developer\x20API\x20Request','auth/validate','qXtPR','BfHnQ','cOWSv','IFCCv','CGNPb','LOuix','success','mZaCW','FcRsU','data','isValid','cTvjy','iiRGo','UKZlr','MUKwW','auth/login','userPin','FQFrq','platforms/','/data','user/profile','TfWem','YlXvm','jRtBU','CTnpo','No\x20username\x20available\x20-\x20either\x20provide\x20username\x20or\x20ensure\x20JWT\x20token\x20is\x20valid','aXKvm','pmvwT','IWqIF','Wassx','FAzTf'];_0x1e54=function(){return _0x44f3f5;};return _0x1e54();}export const validateCredentials=async(_0x53113f,_0x3462cb={'debug':![]})=>{const _0x378ee4={'BfHnQ':function(_0x5346cf,_0x14b29f,_0x628331){return _0x5346cf(_0x14b29f,_0x628331);},'cOWSv':_0x32b0(0x59),'FlWtj':_0x32b0(0x43),'IFCCv':function(_0x2b2bf8,_0x5abec1){return _0x2b2bf8||_0x5abec1;},'qXtPR':'ahmvy','CGNPb':function(_0x21c686,_0x2d17d0,_0x151bdb,_0x3e568c){return _0x21c686(_0x2d17d0,_0x151bdb,_0x3e568c);},'LOuix':_0x32b0(0x5a),'mZaCW':function(_0xe94cb7,_0x486b53){return _0xe94cb7===_0x486b53;},'FcRsU':function(_0x227825,_0x3cda09){return _0x227825===_0x3cda09;},'cTvjy':function(_0x59f6d1,_0x225e5d){return _0x59f6d1===_0x225e5d;}};try{if(_0x378ee4[_0x32b0(0x5b)]!=='ahmvy')_0x378ee4[_0x32b0(0x5c)](_0x3f1e41,_0x378ee4[_0x32b0(0x5d)],{'endpoint':_0x1ac0d0,'method':_0x1b4f27,'headers':{..._0x4c0cc3,'Authorization':_0x378ee4['FlWtj']},'data':_0x378ee4[_0x32b0(0x5e)](_0x18aab8,null)});else{var _0x50b3d7,_0x24742d;const _0x5b05e2=await _0x378ee4[_0x32b0(0x5f)](makeUserApiRequest,_0x378ee4[_0x32b0(0x60)],'POST',{'data':{'username':_0x53113f},'debug':_0x3462cb[_0x32b0(0x47)]});return{'isValid':_0x5b05e2[_0x32b0(0x61)]&&_0x378ee4[_0x32b0(0x62)](_0x378ee4[_0x32b0(0x63)](_0x50b3d7=_0x5b05e2[_0x32b0(0x64)],null)||_0x50b3d7===void 0x0?void 0x0:_0x50b3d7[_0x32b0(0x65)],!![]),'message':_0x378ee4[_0x32b0(0x62)](_0x24742d=_0x5b05e2['error'],null)||_0x378ee4[_0x32b0(0x66)](_0x24742d,void 0x0)?void 0x0:_0x24742d[_0x32b0(0x26)]};}}catch(_0x182349){return{'isValid':![],'message':_0x182349[_0x32b0(0x26)]};}};export const createAccount=async(_0xfa0cba,_0x3bf2bf={'debug':![]})=>{const _0x1cf9bb={'iiRGo':function(_0x457e94,_0x1aa452,_0x3c1aff,_0x25cb4c){return _0x457e94(_0x1aa452,_0x3c1aff,_0x25cb4c);},'UKZlr':_0x32b0(0x35)};return _0x1cf9bb[_0x32b0(0x67)](makeDeveloperApiRequest,_0x1cf9bb[_0x32b0(0x68)],'POST',{'data':{'username':_0xfa0cba[_0x32b0(0x3e)],'platforms':_0xfa0cba[_0x32b0(0x3f)]},'debug':_0x3bf2bf[_0x32b0(0x47)]});};export const authenticate=async(_0x49cb2e,_0x3b1468={'debug':![]})=>{const _0x79b9b0={'MUKwW':function(_0x396fbf,_0x2d1ef7,_0x52c78c,_0x2c85e3){return _0x396fbf(_0x2d1ef7,_0x52c78c,_0x2c85e3);}};return _0x79b9b0[_0x32b0(0x69)](makeUserApiRequest,_0x32b0(0x6a),'POST',{'data':{'username':_0x49cb2e[_0x32b0(0x3e)],'pin':_0x49cb2e[_0x32b0(0x6b)]},'debug':_0x3b1468[_0x32b0(0x47)]});};export const refreshToken=async(_0x4411b3,_0x58f9ce={'debug':![]})=>{const _0x108137={'FQFrq':function(_0x509bdc,_0x4efd29,_0x409b96,_0x3822da){return _0x509bdc(_0x4efd29,_0x409b96,_0x3822da);}};return _0x108137[_0x32b0(0x6c)](makeUserApiRequest,_0x32b0(0x53),'POST',{'data':{'refreshToken':_0x4411b3},'debug':_0x58f9ce['debug']});};export const getPlatformData=async(_0x1cd6b4,_0x2b4b3c={'debug':![]})=>{const _0x2609bc={'ohbqa':function(_0x44e56b,_0x3c91e8,_0x700f51,_0x3d917a){return _0x44e56b(_0x3c91e8,_0x700f51,_0x3d917a);}};return _0x2609bc['ohbqa'](makeUserApiRequest,_0x32b0(0x6d)+_0x1cd6b4+_0x32b0(0x6e),'GET',{'debug':_0x2b4b3c[_0x32b0(0x47)]});};export const getUserProfile=async(_0xe7bb83={'debug':![]})=>{const _0xfc90b6={'TfWem':function(_0x2cd213,_0x9ad625,_0x14f5f9,_0x1b771a){return _0x2cd213(_0x9ad625,_0x14f5f9,_0x1b771a);},'YlXvm':_0x32b0(0x6f)};return _0xfc90b6[_0x32b0(0x70)](makeUserApiRequest,_0xfc90b6[_0x32b0(0x71)],'GET',{'debug':_0xe7bb83['debug']});};function _0x32b0(_0x1e5439,_0x32b078){_0x1e5439=_0x1e5439-0x0;const _0x102a91=_0x1e54();let _0x3b9fc2=_0x102a91[_0x1e5439];return _0x3b9fc2;}export const updatePlatformConnections=async(_0x5bf81e,_0x139a49={'debug':![]})=>{const _0x3ac283={'jRtBU':function(_0x246226,_0x27d0fa,_0xd4f3d1,_0x38baa6){return _0x246226(_0x27d0fa,_0xd4f3d1,_0x38baa6);},'CTnpo':'user/platforms'};return _0x3ac283[_0x32b0(0x72)](makeUserApiRequest,_0x3ac283[_0x32b0(0x73)],'PUT',{'data':{'platforms':_0x5bf81e},'debug':_0x139a49[_0x32b0(0x47)]});};export const storePIN=async(_0x24b8d0,_0x42bff4={})=>{const _0x599d={'aXKvm':function(_0xacb52e){return _0xacb52e();},'pmvwT':_0x32b0(0x74),'hOOfT':_0x32b0(0xc),'IWqIF':function(_0x1ff41f,_0x7ea400,_0x36a2a,_0x1e5664){return _0x1ff41f(_0x7ea400,_0x36a2a,_0x1e5664);},'Wassx':'store-pin/mobile'},{debug:debug=![],username:_0xd37ea6}=_0x42bff4,_0x223794=_0xd37ea6||_0x599d[_0x32b0(0x75)](extractUsernameFromJWT);if(!_0x223794)throw new ApiError(_0x599d[_0x32b0(0x76)],_0x599d['hOOfT']);return _0x599d[_0x32b0(0x77)](makeUserApiRequest,_0x599d[_0x32b0(0x78)],'POST',{'data':{'username':_0x223794,'pin':_0x24b8d0},'debug':debug});};export const getCurrentUserToken=async()=>{const _0x19fffe={'FAzTf':function(_0x56b06e){return _0x56b06e();}};return await _0x19fffe[_0x32b0(0x79)](getJWT);};export const isCurrentUserAuthenticated=()=>{const _0x3f559a={'vwuVc':function(_0x392c37){return _0x392c37();}};return _0x3f559a['vwuVc'](isUserAuthenticated);};
|
|
1
|
+
function _0x554c(_0x375775,_0x554c7d){_0x375775=_0x375775-0x0;const _0x7c0cd0=_0x3757();let _0x2adf40=_0x7c0cd0[_0x375775];return _0x2adf40;}import NetInfo from'@react-native-community/netinfo';import{logDebug}from'./debugHelper';import{getJWT,makeUserRequest,makeDeveloperRequest,isUserAuthenticated,extractUsernameFromJWT}from'../services/apiKeyService';export class ApiError extends Error{constructor(_0x122ae4,_0x2b22c7,_0x57765e,_0x1776b2){const _0x419d79={'bYJtW':_0x554c(0x0),'VIvpg':_0x554c(0x1)},_0x1e1bc4=_0x419d79[_0x554c(0x2)][_0x554c(0x3)]('|');let _0x2d167a=0x0;while(!![]){switch(_0x1e1bc4[_0x2d167a++]){case'0':super(_0x122ae4);continue;case'1':this[_0x554c(0x4)]=_0x419d79[_0x554c(0x5)];continue;case'2':this[_0x554c(0x6)]=_0x57765e;continue;case'3':this['details']=_0x1776b2;continue;case'4':this['type']=_0x2b22c7;continue;}break;}}}const checkNetworkConnection=async()=>{const _0xf7a8f3={'JqyvU':function(_0x4c7488,_0x116ab7){return _0x4c7488===_0x116ab7;}},_0x4d725a=await NetInfo[_0x554c(0x7)]();return _0xf7a8f3[_0x554c(0x8)](_0x4d725a[_0x554c(0x9)],!![]);},makeUserApiRequest=async(_0x256465,_0x1c84c7,_0x1b371c={})=>{const _0x5a5547={'vevZc':function(_0x1b1285,_0x7fee68,_0x1804f0){return _0x1b1285(_0x7fee68,_0x1804f0);},'mmGnb':_0x554c(0xa),'CbXej':'Unknown\x20error','SbbwS':function(_0x1c7c33){return _0x1c7c33();},'RSUvm':_0x554c(0xb),'NqaTF':_0x554c(0xc),'USIbJ':'User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','jLsCj':function(_0x16bb68,_0x41da4b){return _0x16bb68===_0x41da4b;},'SruXT':_0x554c(0xd),'kFucP':_0x554c(0xe),'bLYfQ':_0x554c(0xf),'MnSYD':function(_0x1d55fe,_0x230906){return _0x1d55fe===_0x230906;},'HvDwN':_0x554c(0x10),'ihnFw':function(_0x28ab59,_0x33b83e){return _0x28ab59===_0x33b83e;},'qMuvC':function(_0x57fb37,_0x2a0c2c){return _0x57fb37>=_0x2a0c2c;},'mgmDf':_0x554c(0x11),'pGKSe':_0x554c(0x12),'REQGU':function(_0x4a8317,_0x41f530){return _0x4a8317===_0x41f530;},'JboIj':function(_0x97e1e2,_0x469c81){return _0x97e1e2===_0x469c81;},'bTNwf':'API\x20request\x20failed','HPNEH':function(_0x3b7119,_0x3edbf9){return _0x3b7119===_0x3edbf9;},'oSeWq':function(_0x135c80,_0x198872){return _0x135c80===_0x198872;},'yXUxk':function(_0x28df35,_0x4bc5b6){return _0x28df35 instanceof _0x4bc5b6;},'ONacN':function(_0x27ca3e,_0x21e34c){return _0x27ca3e===_0x21e34c;},'QofSS':_0x554c(0x13),'exoPS':_0x554c(0x14),'WpXVu':function(_0xdd6088,_0x53624d,_0x352c34){return _0xdd6088(_0x53624d,_0x352c34);},'VcHDX':_0x554c(0x15),'QSLFD':_0x554c(0x16)},{data:_0x315a04,headers:headers={},debug:debug=![]}=_0x1b371c;try{const _0x2ec285=await _0x5a5547[_0x554c(0x17)](checkNetworkConnection);if(!_0x2ec285)throw new ApiError(_0x5a5547['RSUvm'],_0x5a5547[_0x554c(0x18)]);if(!_0x5a5547['SbbwS'](isUserAuthenticated))throw new ApiError(_0x5a5547[_0x554c(0x19)],_0x554c(0x1a));debug&&(_0x5a5547[_0x554c(0x1b)](_0x5a5547[_0x554c(0x1c)],_0x5a5547['SruXT'])?_0x5a5547[_0x554c(0x1d)](logDebug,_0x5a5547[_0x554c(0x1e)],{'endpoint':_0x256465,'method':_0x1c84c7,'headers':{...headers,'Authorization':_0x5a5547[_0x554c(0x1f)]},'data':_0x315a04||null}):_0x5a5547[_0x554c(0x1d)](_0x142333,_0x5a5547[_0x554c(0x20)],{'status':_0xfe1e01['status'],'data':_0x11e1fd}));const _0x7fc576=await _0x5a5547['vevZc'](makeUserRequest,_0x256465,{'method':_0x1c84c7,'headers':headers,..._0x315a04?{'body':JSON[_0x554c(0x21)](_0x315a04)}:{}}),_0x5f5d9a=await _0x7fc576[_0x554c(0x22)]();debug&&logDebug(_0x5a5547[_0x554c(0x20)],{'status':_0x7fc576[_0x554c(0x23)],'data':_0x5f5d9a});if(!_0x7fc576['ok']){if(_0x5a5547[_0x554c(0x24)](_0x5a5547[_0x554c(0x25)],_0x554c(0x26)))_0x5a5547[_0x554c(0x1d)](_0x2001e6,_0x554c(0x15),{'endpoint':_0x3f2910,'method':_0x3bc42d,'error':_0x4ed539['message']||_0x5a5547[_0x554c(0x27)]});else{var _0x165f68,_0x243592,_0x44bce1;const _0x4db5c3=_0x5a5547[_0x554c(0x1b)](_0x7fc576[_0x554c(0x23)],0x191)||_0x5a5547['ihnFw'](_0x7fc576[_0x554c(0x23)],0x193)?'auth_error':_0x7fc576[_0x554c(0x23)]===0x190?_0x554c(0x28):_0x5a5547[_0x554c(0x29)](_0x7fc576[_0x554c(0x23)],0x1f4)?_0x5a5547[_0x554c(0x2a)]:_0x5a5547[_0x554c(0x2b)];throw new ApiError((_0x5a5547[_0x554c(0x2c)](_0x165f68=_0x5f5d9a[_0x554c(0x2d)],null)||_0x5a5547[_0x554c(0x2e)](_0x165f68,void 0x0)?void 0x0:_0x165f68['message'])||_0x5a5547['bTNwf'],_0x4db5c3,_0x5a5547[_0x554c(0x2f)](_0x243592=_0x5f5d9a[_0x554c(0x2d)],null)||_0x243592===void 0x0?void 0x0:_0x243592[_0x554c(0x6)],_0x5a5547[_0x554c(0x30)](_0x44bce1=_0x5f5d9a[_0x554c(0x2d)],null)||_0x5a5547[_0x554c(0x31)](_0x44bce1,void 0x0)?void 0x0:_0x44bce1[_0x554c(0x32)]);}}return _0x5f5d9a;}catch(_0x35d6b5){if(_0x5a5547[_0x554c(0x33)](_0x35d6b5,ApiError))throw _0x35d6b5;if(_0x5a5547[_0x554c(0x34)](_0x35d6b5['name'],_0x5a5547[_0x554c(0x35)]))throw new ApiError(_0x554c(0x36),_0x5a5547['exoPS']);debug&&_0x5a5547[_0x554c(0x37)](logDebug,_0x5a5547[_0x554c(0x38)],{'endpoint':_0x256465,'method':_0x1c84c7,'error':_0x35d6b5[_0x554c(0x39)]||_0x554c(0x3a)});throw new ApiError(_0x35d6b5[_0x554c(0x39)]||_0x5a5547['QSLFD'],_0x5a5547[_0x554c(0x2b)]);}},makeDeveloperApiRequest=async(_0x454ee7,_0xa52c7b,_0x942017={})=>{const _0x4cab26={'OgNHC':'Developer\x20API\x20Request','GFJlJ':_0x554c(0xf),'nPIix':function(_0x39ca3e,_0x450562){return _0x39ca3e||_0x450562;},'xZrVs':function(_0x564c0e,_0x492113){return _0x564c0e===_0x492113;},'qzKtL':_0x554c(0x13),'AYRbj':_0x554c(0x14),'vPxsX':function(_0xd3c4cb,_0x43d7a8,_0xab9b65){return _0xd3c4cb(_0x43d7a8,_0xab9b65);},'OVJUW':_0x554c(0x15),'gUzTz':_0x554c(0x3a),'oHLOz':_0x554c(0x16),'pBRSt':'unknown_error','aCGPv':_0x554c(0x3b),'aaQfc':_0x554c(0x1a),'gPCMh':function(_0x26bea7,_0x570c1e,_0x346924,_0x370c3e){return _0x26bea7(_0x570c1e,_0x346924,_0x370c3e);},'FBULR':_0x554c(0x36),'HprRq':'nfjaX','FeZTA':function(_0xc02c05,_0x521d6b){return _0xc02c05!==_0x521d6b;},'NhRJD':_0x554c(0x3c),'xqpek':_0x554c(0xb),'hNoQs':_0x554c(0xc),'kNoWm':function(_0x261f54,_0x269004){return _0x261f54===_0x269004;},'mlhCH':_0x554c(0x3d),'rnUHY':_0x554c(0x3e),'oMZvS':'fwmCR','GtXuS':function(_0x541584,_0x26592b,_0x3e6067){return _0x541584(_0x26592b,_0x3e6067);},'nyERO':function(_0x49651b,_0x4eb573){return _0x49651b===_0x4eb573;},'FGGWx':_0x554c(0x28),'kSTnH':function(_0x218d7e,_0x7182ad){return _0x218d7e>=_0x7182ad;},'mpAOL':'server_error','dRQPU':function(_0x29e6b8,_0x11d9bb){return _0x29e6b8===_0x11d9bb;},'ZKabk':function(_0x3e66c8,_0x4327f4){return _0x3e66c8===_0x4327f4;},'vACCJ':function(_0x167641,_0x30c195){return _0x167641===_0x30c195;},'Nrbxh':function(_0x54e518,_0x466523){return _0x54e518 instanceof _0x466523;},'BSVvM':_0x554c(0x3f)},{data:_0x7acb03,headers:headers={},debug:debug=![]}=_0x942017;try{if(_0x554c(0x40)===_0x4cab26[_0x554c(0x41)])_0x2d7e7b(_0x4cab26[_0x554c(0x42)],{'endpoint':_0x726bc9,'method':_0x5d13df,'headers':{..._0xcdf92c,'Authorization':_0x4cab26[_0x554c(0x43)]},'data':_0x4cab26[_0x554c(0x44)](_0x3ffbfb,null)});else{const _0x4f7c2d=await checkNetworkConnection();if(!_0x4f7c2d){if(_0x4cab26[_0x554c(0x45)](_0x4cab26[_0x554c(0x46)],_0x4cab26['NhRJD'])){if(_0x35313e instanceof _0x173a94)throw _0x5c7507;if(_0x4cab26[_0x554c(0x47)](_0x54268c[_0x554c(0x4)],_0x4cab26[_0x554c(0x48)]))throw new _0x146805(_0x554c(0x36),_0x4cab26[_0x554c(0x49)]);_0x5615aa&&_0x4cab26[_0x554c(0x4a)](_0xe281a9,_0x4cab26['OVJUW'],{'endpoint':_0x48b220,'method':_0x22da39,'error':_0x2b65c7['message']||_0x4cab26[_0x554c(0x4b)]});throw new _0x1e99aa(_0x9ead99[_0x554c(0x39)]||_0x4cab26[_0x554c(0x4c)],_0x4cab26['pBRSt']);}else throw new ApiError(_0x4cab26[_0x554c(0x4d)],_0x4cab26[_0x554c(0x4e)]);}if(debug){if(_0x4cab26[_0x554c(0x4f)](_0x4cab26[_0x554c(0x50)],_0x4cab26[_0x554c(0x51)]))throw new _0x1338bc(_0x4cab26[_0x554c(0x52)],_0x4cab26[_0x554c(0x53)]);else logDebug(_0x4cab26['OgNHC'],{'endpoint':_0x454ee7,'method':_0xa52c7b,'headers':{...headers,'Authorization':_0x4cab26[_0x554c(0x43)]},'data':_0x7acb03||null});}const _0x470d09=await _0x4cab26['vPxsX'](makeDeveloperRequest,_0x454ee7,{'method':_0xa52c7b,'headers':headers,..._0x7acb03?{'body':JSON[_0x554c(0x21)](_0x7acb03)}:{}}),_0x27fdba=await _0x470d09[_0x554c(0x22)]();if(debug){if(_0x4cab26['oMZvS']===_0x554c(0x54))return _0x4cab26['gPCMh'](_0xcfc42a,'platforms/'+_0x1dfb37+'/data','GET',{'debug':_0x230c57['debug']});else _0x4cab26[_0x554c(0x55)](logDebug,_0x554c(0x56),{'status':_0x470d09['status'],'data':_0x27fdba});}if(!_0x470d09['ok']){var _0x4b4401,_0x424634,_0x1926b5;const _0x5a71a6=_0x4cab26['xZrVs'](_0x470d09[_0x554c(0x23)],0x191)||_0x470d09[_0x554c(0x23)]===0x193?_0x554c(0x1a):_0x4cab26[_0x554c(0x57)](_0x470d09[_0x554c(0x23)],0x190)?_0x4cab26[_0x554c(0x58)]:_0x4cab26['kSTnH'](_0x470d09['status'],0x1f4)?_0x4cab26[_0x554c(0x59)]:_0x4cab26[_0x554c(0x5a)];throw new ApiError((_0x4cab26[_0x554c(0x5b)](_0x4b4401=_0x27fdba['error'],null)||_0x4b4401===void 0x0?void 0x0:_0x4b4401[_0x554c(0x39)])||_0x554c(0x5c),_0x5a71a6,_0x4cab26[_0x554c(0x5d)](_0x424634=_0x27fdba['error'],null)||_0x4cab26[_0x554c(0x5e)](_0x424634,void 0x0)?void 0x0:_0x424634[_0x554c(0x6)],_0x4cab26[_0x554c(0x47)](_0x1926b5=_0x27fdba['error'],null)||_0x4cab26[_0x554c(0x4f)](_0x1926b5,void 0x0)?void 0x0:_0x1926b5[_0x554c(0x32)]);}return _0x27fdba;}}catch(_0x185125){if(_0x4cab26['Nrbxh'](_0x185125,ApiError))throw _0x185125;if(_0x185125['name']===_0x4cab26[_0x554c(0x48)]){if(_0x4cab26[_0x554c(0x5b)](_0x4cab26['BSVvM'],_0x4cab26[_0x554c(0x5f)]))throw new ApiError(_0x4cab26[_0x554c(0x60)],_0x4cab26[_0x554c(0x49)]);else throw new _0x43e9b7(_0x4cab26[_0x554c(0x60)],_0x4cab26[_0x554c(0x49)]);}debug&&logDebug(_0x554c(0x61),{'endpoint':_0x454ee7,'method':_0xa52c7b,'error':_0x185125[_0x554c(0x39)]||_0x554c(0x3a)});throw new ApiError(_0x185125[_0x554c(0x39)]||_0x554c(0x16),_0x4cab26['pBRSt']);}};export const validateCredentials=async(_0x145180,_0x3bb4d0={'debug':![]})=>{const _0x26c3ea={'mARbv':function(_0x31c331,_0x3e2aea){return _0x31c331===_0x3e2aea;},'IlCar':'AKulM','BeNyF':function(_0x1811fe,_0x1ccc85,_0x11b890,_0x45ee09){return _0x1811fe(_0x1ccc85,_0x11b890,_0x45ee09);},'gzMGx':'auth/validate','Aaajs':function(_0x4ad23a,_0x2d66dc){return _0x4ad23a===_0x2d66dc;},'YhWsl':function(_0x497ced,_0x23f0c2){return _0x497ced===_0x23f0c2;}};try{if(_0x26c3ea[_0x554c(0x62)](_0x26c3ea[_0x554c(0x63)],_0x554c(0x64))){var _0x5484d2,_0x1b3638;const _0x10106b=await _0x26c3ea[_0x554c(0x65)](makeUserApiRequest,_0x26c3ea[_0x554c(0x66)],'POST',{'data':{'username':_0x145180},'debug':_0x3bb4d0[_0x554c(0x67)]});return{'isValid':_0x10106b[_0x554c(0x68)]&&_0x26c3ea[_0x554c(0x69)](_0x26c3ea[_0x554c(0x69)](_0x5484d2=_0x10106b[_0x554c(0x6a)],null)||_0x26c3ea['Aaajs'](_0x5484d2,void 0x0)?void 0x0:_0x5484d2[_0x554c(0x6b)],!![]),'message':_0x26c3ea[_0x554c(0x6c)](_0x1b3638=_0x10106b[_0x554c(0x2d)],null)||_0x1b3638===void 0x0?void 0x0:_0x1b3638[_0x554c(0x39)]};}else return _0x573b55();}catch(_0x360c63){return{'isValid':![],'message':_0x360c63[_0x554c(0x39)]};}};export const createAccount=async(_0x35849d,_0x2a28e2={'debug':![]})=>{const _0x26edaf={'GWthL':function(_0x2abdec,_0x526052,_0x4f5eb3,_0x219552){return _0x2abdec(_0x526052,_0x4f5eb3,_0x219552);}};return _0x26edaf['GWthL'](makeDeveloperApiRequest,'auth/register','POST',{'data':{'username':_0x35849d[_0x554c(0x6d)],'platforms':_0x35849d[_0x554c(0x6e)]},'debug':_0x2a28e2[_0x554c(0x67)]});};export const authenticate=async(_0x4ac713,_0x297195={'debug':![]})=>{const _0x1ed4bd={'ZCfGI':function(_0x556fdf,_0x109272,_0x23aacd,_0x1c6d56){return _0x556fdf(_0x109272,_0x23aacd,_0x1c6d56);},'IKSPM':'auth/login'};return _0x1ed4bd[_0x554c(0x6f)](makeUserApiRequest,_0x1ed4bd['IKSPM'],'POST',{'data':{'username':_0x4ac713['username'],'pin':_0x4ac713[_0x554c(0x70)]},'debug':_0x297195['debug']});};export const refreshToken=async(_0x13a1e4,_0x47a41c={'debug':![]})=>{const _0x2b3fac={'TsdRD':function(_0x48e825,_0x431e33,_0x405d7a,_0xade1fb){return _0x48e825(_0x431e33,_0x405d7a,_0xade1fb);},'ncRdH':_0x554c(0x71)};return _0x2b3fac[_0x554c(0x72)](makeUserApiRequest,_0x2b3fac['ncRdH'],'POST',{'data':{'refreshToken':_0x13a1e4},'debug':_0x47a41c[_0x554c(0x67)]});};export const getPlatformData=async(_0x3a4235,_0x5d0438={'debug':![]})=>{const _0x4d2443={'nYefn':function(_0x2f5da6,_0x2577c2,_0x2d444d,_0x13e8eb){return _0x2f5da6(_0x2577c2,_0x2d444d,_0x13e8eb);}};return _0x4d2443['nYefn'](makeUserApiRequest,'platforms/'+_0x3a4235+_0x554c(0x73),'GET',{'debug':_0x5d0438[_0x554c(0x67)]});};export const getUserProfile=async(_0x5da498={'debug':![]})=>{const _0x4842f5={'CKsFf':function(_0x445315,_0x46278f,_0x2be730,_0x52e636){return _0x445315(_0x46278f,_0x2be730,_0x52e636);},'dobul':'user/profile'};return _0x4842f5[_0x554c(0x74)](makeUserApiRequest,_0x4842f5['dobul'],'GET',{'debug':_0x5da498['debug']});};export const updatePlatformConnections=async(_0xb7a867,_0x1a6aaf={'debug':![]})=>{const _0x3464f3={'ZXwxt':function(_0xc71b58,_0x263156,_0x27ad8b,_0x3ddf5e){return _0xc71b58(_0x263156,_0x27ad8b,_0x3ddf5e);}};return _0x3464f3[_0x554c(0x75)](makeUserApiRequest,_0x554c(0x76),'PUT',{'data':{'platforms':_0xb7a867},'debug':_0x1a6aaf[_0x554c(0x67)]});};export const storePIN=async(_0x5e4495,_0x412b1e={})=>{const _0x49f83a={'LFMOu':_0x554c(0x36),'LCidY':_0x554c(0x14),'mEsTK':function(_0xfd3c0a){return _0xfd3c0a();},'FrAsx':_0x554c(0x77),'tUrsU':'No\x20username\x20available\x20-\x20either\x20provide\x20username\x20or\x20ensure\x20JWT\x20token\x20is\x20valid','asaHd':_0x554c(0x1a)},{debug:debug=![],username:_0x45632f}=_0x412b1e,_0x4fa96d=_0x45632f||_0x49f83a[_0x554c(0x78)](extractUsernameFromJWT);if(!_0x4fa96d){if(_0x49f83a[_0x554c(0x79)]!==_0x49f83a[_0x554c(0x79)])throw new _0x47779a(_0x49f83a[_0x554c(0x7a)],_0x49f83a[_0x554c(0x7b)]);else throw new ApiError(_0x49f83a['tUrsU'],_0x49f83a['asaHd']);}return makeUserApiRequest('store-pin/mobile','POST',{'data':{'username':_0x4fa96d,'pin':_0x5e4495},'debug':debug});};function _0x3757(){const _0x487ee5=['0|4|2|3|1','ApiError','bYJtW','split','name','VIvpg','code','fetch','JqyvU','isConnected','User\x20API\x20Response','No\x20network\x20connection\x20available','network_error','wMkVv','User\x20API\x20Request','[REDACTED]','PNaRs','server_error','unknown_error','AbortError','timeout_error','User\x20API\x20Error','An\x20unexpected\x20error\x20occurred','SbbwS','NqaTF','USIbJ','auth_error','jLsCj','SruXT','vevZc','kFucP','bLYfQ','mmGnb','stringify','json','status','MnSYD','HvDwN','BzZJK','CbXej','validation_error','qMuvC','mgmDf','pGKSe','REQGU','error','JboIj','HPNEH','ihnFw','oSeWq','details','yXUxk','ONacN','QofSS','Request\x20timed\x20out','WpXVu','VcHDX','message','Unknown\x20error','No\x20username\x20available\x20-\x20either\x20provide\x20username\x20or\x20ensure\x20JWT\x20token\x20is\x20valid','fJtXl','FiAfs','HlVby','yltoy','JQgxm','HprRq','OgNHC','GFJlJ','nPIix','FeZTA','NhRJD','xZrVs','qzKtL','AYRbj','vPxsX','gUzTz','oHLOz','xqpek','hNoQs','kNoWm','mlhCH','rnUHY','aCGPv','aaQfc','zvsxU','GtXuS','Developer\x20API\x20Response','nyERO','FGGWx','mpAOL','pBRSt','dRQPU','API\x20request\x20failed','ZKabk','vACCJ','BSVvM','FBULR','Developer\x20API\x20Error','mARbv','IlCar','AKulM','BeNyF','gzMGx','debug','success','Aaajs','data','isValid','YhWsl','username','platforms','ZCfGI','userPin','auth/refresh','TsdRD','/data','CKsFf','ZXwxt','user/platforms','tnunr','mEsTK','FrAsx','LFMOu','LCidY','xBAIL','eSBcQ'];_0x3757=function(){return _0x487ee5;};return _0x3757();}export const getCurrentUserToken=async()=>{const _0x470717={'xBAIL':function(_0x2e66dd){return _0x2e66dd();}};return await _0x470717[_0x554c(0x7c)](getJWT);};export const isCurrentUserAuthenticated=()=>{const _0x2bed06={'eSBcQ':function(_0x41e33a){return _0x41e33a();}};return _0x2bed06[_0x554c(0x7d)](isUserAuthenticated);};
|