@onairos/react-native 3.6.6 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/components/BodyText.js +1 -1
- package/lib/commonjs/components/BrandMark.js +1 -1
- package/lib/commonjs/components/CodeInput.js +1 -1
- package/lib/commonjs/components/EmailInput.js +1 -1
- package/lib/commonjs/components/GoogleButton.js +1 -1
- package/lib/commonjs/components/HeadingGroup.js +1 -1
- package/lib/commonjs/components/LLMDataInputModal.js +1 -1
- package/lib/commonjs/components/ModalHeader.js +1 -1
- package/lib/commonjs/components/ModalSheet.js +1 -1
- package/lib/commonjs/components/Onairos.js +1 -1
- package/lib/commonjs/components/OnairosButton.js +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +1 -1
- package/lib/commonjs/components/Overlay.js +1 -1
- package/lib/commonjs/components/PersonaImage.js +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
- package/lib/commonjs/components/PinCreationScreen.js +1 -1
- package/lib/commonjs/components/PinInput.js +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
- package/lib/commonjs/components/PlatformList.js +1 -1
- package/lib/commonjs/components/PlatformToggle.js +1 -1
- package/lib/commonjs/components/PrimaryButton.js +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
- package/lib/commonjs/components/SignInStep.js +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js +1 -1
- package/lib/commonjs/components/icons/Checkbox.js +1 -1
- package/lib/commonjs/components/icons/Checkmark.js +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
- package/lib/commonjs/components/icons/Contenticon.js +1 -1
- package/lib/commonjs/components/icons/EnochE.js +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js +1 -1
- package/lib/commonjs/components/icons/index.js +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
- package/lib/commonjs/config/api.js +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/context/AuthContext.js +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +1 -1
- package/lib/commonjs/hooks/useCredentials.js +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/biometricPinService.js +1 -1
- package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
- package/lib/commonjs/services/chatGPTConversationService.js +1 -1
- package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
- package/lib/commonjs/services/claudeConversationService.js +1 -1
- package/lib/commonjs/services/connectedAccountsService.js +1 -1
- package/lib/commonjs/services/googleAuthService.js +1 -1
- package/lib/commonjs/services/hingeDataExtractor.js +1 -1
- package/lib/commonjs/services/hingeDataService.js +1 -1
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +1 -1
- package/lib/commonjs/services/instagramDataService.js +1 -1
- package/lib/commonjs/services/jwtStorageService.js +1 -1
- package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
- package/lib/commonjs/services/linkedinProfileService.js +1 -1
- package/lib/commonjs/services/linkedinScrapingService.js +1 -1
- package/lib/commonjs/services/llmDataStorage.js +1 -1
- package/lib/commonjs/services/mobileTrainingService.js +1 -1
- package/lib/commonjs/services/pinEncryptionService.js +1 -1
- package/lib/commonjs/services/pinStorageUtils.js +1 -1
- package/lib/commonjs/services/platformAuthService.js +1 -1
- package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
- package/lib/commonjs/services/sephoraDataService.js +1 -1
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +1 -1
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +1 -1
- package/lib/commonjs/utils/crypto.js +1 -1
- package/lib/commonjs/utils/debugHelper.js +1 -1
- package/lib/commonjs/utils/encryption.js +1 -1
- package/lib/commonjs/utils/eventUtils.js +1 -1
- package/lib/commonjs/utils/haptics.js +1 -1
- package/lib/commonjs/utils/imagePreloader.js +1 -1
- package/lib/commonjs/utils/networkDiagnostics.js +1 -1
- package/lib/commonjs/utils/onairosApi.js +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +1 -1
- package/lib/commonjs/utils/retryHelper.js +1 -1
- package/lib/commonjs/utils/secureStorage.js +1 -1
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
- package/lib/commonjs/utils/webviewScripts/index.js +1 -1
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/components/BodyText.js +1 -1
- package/lib/module/components/BrandMark.js +1 -1
- package/lib/module/components/CodeInput.js +1 -1
- package/lib/module/components/EmailInput.js +1 -1
- package/lib/module/components/GoogleButton.js +1 -1
- package/lib/module/components/HeadingGroup.js +1 -1
- package/lib/module/components/LLMDataInputModal.js +1 -1
- package/lib/module/components/ModalHeader.js +1 -1
- package/lib/module/components/ModalSheet.js +1 -1
- package/lib/module/components/Onairos.js +1 -1
- package/lib/module/components/OnairosButton.js +1 -1
- package/lib/module/components/OnairosSignInButton.js +1 -1
- package/lib/module/components/Overlay.js +1 -1
- package/lib/module/components/PersonaImage.js +1 -1
- package/lib/module/components/PersonaLoadingScreen.js +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js +1 -1
- package/lib/module/components/PinCreationScreen.js +1 -1
- package/lib/module/components/PinInput.js +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +1 -1
- package/lib/module/components/PlatformList.js +1 -1
- package/lib/module/components/PlatformToggle.js +1 -1
- package/lib/module/components/PrimaryButton.js +1 -1
- package/lib/module/components/SignInMatchAnimation.js +1 -1
- package/lib/module/components/SignInStep.js +1 -1
- package/lib/module/components/UniversalOnboarding.js +1 -1
- package/lib/module/components/VerificationStep.js +1 -1
- package/lib/module/components/WelcomeScreen.js +1 -1
- package/lib/module/components/icons/Basicproficon.js +1 -1
- package/lib/module/components/icons/Basicprofile.js +1 -1
- package/lib/module/components/icons/Checkbox.js +1 -1
- package/lib/module/components/icons/Checkmark.js +1 -1
- package/lib/module/components/icons/Contentanalysis.js +1 -1
- package/lib/module/components/icons/Contenticon.js +1 -1
- package/lib/module/components/icons/EnochE.js +1 -1
- package/lib/module/components/icons/Personalityicon.js +1 -1
- package/lib/module/components/icons/Personalityprofile.js +1 -1
- package/lib/module/components/icons/Personalitytraits.js +1 -1
- package/lib/module/components/icons/Userpreferences.js +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/module/components/onboarding/PinInput.js +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +1 -1
- package/lib/module/config/api.js +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/context/AuthContext.js +1 -1
- package/lib/module/hooks/useConnectedAccounts.js +1 -1
- package/lib/module/hooks/useConnections.js +1 -1
- package/lib/module/hooks/useCredentials.js +1 -1
- package/lib/module/hooks/useUserConnections.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/biometricPinService.js +1 -1
- package/lib/module/services/chatGPTConversationExtractor.js +1 -1
- package/lib/module/services/chatGPTConversationService.js +1 -1
- package/lib/module/services/claudeConversationExtractor.js +1 -1
- package/lib/module/services/claudeConversationService.js +1 -1
- package/lib/module/services/connectedAccountsService.js +1 -1
- package/lib/module/services/googleAuthService.js +1 -1
- package/lib/module/services/hingeDataExtractor.js +1 -1
- package/lib/module/services/hingeDataService.js +1 -1
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -1
- package/lib/module/services/instagramDataService.js +1 -1
- package/lib/module/services/jwtStorageService.js +1 -1
- package/lib/module/services/linkedinDOMExtractor.js +1 -1
- package/lib/module/services/linkedinProfileService.js +1 -1
- package/lib/module/services/linkedinScrapingService.js +1 -1
- package/lib/module/services/llmDataStorage.js +1 -1
- package/lib/module/services/mobileTrainingService.js +1 -1
- package/lib/module/services/pinEncryptionService.js +1 -1
- package/lib/module/services/pinStorageUtils.js +1 -1
- package/lib/module/services/platformAuthService.js +1 -1
- package/lib/module/services/sephoraDataExtractor.js +1 -1
- package/lib/module/services/sephoraDataService.js +1 -1
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +1 -1
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +1 -1
- package/lib/module/utils/crypto.js +1 -1
- package/lib/module/utils/debugHelper.js +1 -1
- package/lib/module/utils/encryption.js +1 -1
- package/lib/module/utils/eventUtils.js +1 -1
- package/lib/module/utils/haptics.js +1 -1
- package/lib/module/utils/networkDiagnostics.js +1 -1
- package/lib/module/utils/onairosApi.js +1 -1
- package/lib/module/utils/programmaticFlow.js +1 -1
- package/lib/module/utils/retryHelper.js +1 -1
- package/lib/module/utils/secureStorage.js +1 -1
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/module/utils/webviewScripts/claude.js +1 -1
- package/lib/module/utils/webviewScripts/hinge.js +1 -1
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -1
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require("../services/apiKeyService")
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
Object[_0x200c(0x0)](exports,_0x200c(0x1),{'value':!![]}),exports[_0x200c(0x2)]=exports[_0x200c(0x3)]=exports[_0x200c(0x4)]=exports['refreshToken']=exports[_0x200c(0x5)]=exports['getUserProfile']=exports['getPlatformData']=exports['getCurrentUserToken']=exports['createAccount']=exports[_0x200c(0x6)]=exports['ApiError']=void 0x0;var _netinfo=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_debugHelper=__ONAIROS_REQ_FUNC__(0x1),_apiKeyService=__ONAIROS_REQ_FUNC__(0x2);function _0x200c(_0x3f3845,_0x200cfd){_0x3f3845=_0x3f3845-0x0;const _0x43b46f=_0x3f38();let _0x28dc02=_0x43b46f[_0x3f3845];return _0x28dc02;}function _interopRequireDefault(_0x5386cb){return _0x5386cb&&_0x5386cb['__esModule']?_0x5386cb:{'default':_0x5386cb};}class ApiError extends Error{constructor(_0x152c6d,_0x40fcb0,_0x430bf6,_0xcce831){const _0x13c68f={'IjOze':_0x200c(0x7),'LfSNn':_0x200c(0x8)},_0x10f715=_0x13c68f['IjOze']['split']('|');let _0x8d88dc=0x0;while(!![]){switch(_0x10f715[_0x8d88dc++]){case'0':this[_0x200c(0x9)]=_0x40fcb0;continue;case'1':this[_0x200c(0xa)]=_0x13c68f['LfSNn'];continue;case'2':super(_0x152c6d);continue;case'3':this['code']=_0x430bf6;continue;case'4':this[_0x200c(0xb)]=_0xcce831;continue;}break;}}}exports[_0x200c(0x8)]=ApiError;const checkNetworkConnection=async()=>{const _0x1ab868={'vtmsS':function(_0x3cf579,_0x24cc8e){return _0x3cf579===_0x24cc8e;}},_0x8297eb=await _netinfo[_0x200c(0xc)][_0x200c(0xd)]();return _0x1ab868[_0x200c(0xe)](_0x8297eb['isConnected'],!![]);},makeUserApiRequest=async(_0x4ca519,_0x28346b,_0x14521b={})=>{const _0x11bff9={'TEdgN':_0x200c(0xf),'rykjp':_0x200c(0x10),'fjEyy':_0x200c(0x11),'xrhWL':function(_0x538e9e,_0x208659,_0x32fced,_0x4d92b1){return _0x538e9e(_0x208659,_0x32fced,_0x4d92b1);},'iTLiM':_0x200c(0x12),'YYwkE':_0x200c(0x13),'jCwKt':function(_0x379654){return _0x379654();},'vrGtI':function(_0x11265f,_0x42cd7d){return _0x11265f===_0x42cd7d;},'ijUDO':_0x200c(0x14),'daAFC':_0x200c(0x15),'DswNm':_0x200c(0x16),'dJvuD':_0x200c(0x17),'gBzTy':_0x200c(0x18),'YDsew':function(_0x5adf93,_0x5c9d20){return _0x5adf93===_0x5c9d20;},'NDTaD':'validation_error','sWqiK':function(_0x36063c,_0x4dab68){return _0x36063c>=_0x4dab68;},'jMFBh':_0x200c(0x19),'YxlQl':_0x200c(0x1a),'bfeKD':_0x200c(0x1b),'sYrBz':function(_0xe7d767,_0x29f19e){return _0xe7d767===_0x29f19e;},'cFeBb':function(_0x568f67,_0xce111e){return _0x568f67===_0xce111e;},'mXKXo':function(_0x3d6f0b,_0xe99a6e){return _0x3d6f0b instanceof _0xe99a6e;},'oeXow':_0x200c(0x1c),'CMmoO':_0x200c(0x1d),'vbjUv':_0x200c(0x1e),'trdFt':_0x200c(0x1f),'WEcfO':_0x200c(0x20)},{data:_0x269f32,headers:headers={},debug:debug=![]}=_0x14521b;try{if(_0x11bff9['YYwkE']===_0x11bff9[_0x200c(0x21)]){const _0x4ad40d=await _0x11bff9['jCwKt'](checkNetworkConnection);if(!_0x4ad40d){if(_0x11bff9[_0x200c(0x22)](_0x11bff9[_0x200c(0x23)],_0x11bff9[_0x200c(0x23)]))throw new ApiError(_0x11bff9[_0x200c(0x24)],_0x11bff9[_0x200c(0x25)]);else(0x0,_0x31cc43['logDebug'])(_0x11bff9[_0x200c(0x26)],{'status':_0x510931[_0x200c(0x27)],'data':_0x5675c3});}if(!(0x0,_apiKeyService[_0x200c(0x28)])())throw new ApiError(_0x11bff9[_0x200c(0x29)],_0x200c(0x11));debug&&(0x0,_debugHelper[_0x200c(0x2a)])('User\x20API\x20Request',{'endpoint':_0x4ca519,'method':_0x28346b,'headers':{...headers,'Authorization':_0x11bff9[_0x200c(0x2b)]},'data':_0x269f32||null});const _0x33ed30=await(0x0,_apiKeyService[_0x200c(0x2c)])(_0x4ca519,{'method':_0x28346b,'headers':headers,..._0x269f32?{'body':JSON[_0x200c(0x2d)](_0x269f32)}:{}}),_0x19bd71=await _0x33ed30[_0x200c(0x2e)]();debug&&(0x0,_debugHelper[_0x200c(0x2a)])(_0x11bff9[_0x200c(0x26)],{'status':_0x33ed30['status'],'data':_0x19bd71});if(!_0x33ed30['ok']){var _0x33cb23,_0xa0f2cf,_0x2a7aa7;const _0x133322=_0x11bff9[_0x200c(0x22)](_0x33ed30[_0x200c(0x27)],0x191)||_0x11bff9[_0x200c(0x22)](_0x33ed30[_0x200c(0x27)],0x193)?_0x11bff9[_0x200c(0x2f)]:_0x11bff9['YDsew'](_0x33ed30[_0x200c(0x27)],0x190)?_0x11bff9[_0x200c(0x30)]:_0x11bff9[_0x200c(0x31)](_0x33ed30[_0x200c(0x27)],0x1f4)?_0x11bff9['jMFBh']:_0x11bff9[_0x200c(0x32)];throw new ApiError(((_0x33cb23=_0x19bd71[_0x200c(0x33)])===null||_0x33cb23===void 0x0?void 0x0:_0x33cb23['message'])||_0x11bff9[_0x200c(0x34)],_0x133322,_0x11bff9[_0x200c(0x35)](_0xa0f2cf=_0x19bd71[_0x200c(0x33)],null)||_0xa0f2cf===void 0x0?void 0x0:_0xa0f2cf[_0x200c(0x36)],_0x11bff9[_0x200c(0x37)](_0x2a7aa7=_0x19bd71['error'],null)||_0x11bff9['cFeBb'](_0x2a7aa7,void 0x0)?void 0x0:_0x2a7aa7[_0x200c(0xb)]);}return _0x19bd71;}else(0x0,_0x2b55ce[_0x200c(0x2a)])(_0x200c(0x38),{'status':_0x576a78[_0x200c(0x27)],'data':_0xadded0});}catch(_0x285cc2){if(_0x11bff9[_0x200c(0x39)](_0x285cc2,ApiError)){if(_0x11bff9[_0x200c(0x3a)]===_0x200c(0x3b)){const {debug:debug=![],username:_0x48edd0}=_0x137a84,_0x5da820=_0x48edd0||(0x0,_0x430db0['extractUsernameFromJWT'])();if(!_0x5da820)throw new _0xf5ff9b(_0x11bff9[_0x200c(0x3c)],_0x11bff9[_0x200c(0x2f)]);return _0x11bff9[_0x200c(0x3d)](_0x17556c,_0x11bff9['iTLiM'],'POST',{'data':{'username':_0x5da820,'pin':_0x49806d},'debug':debug});}else throw _0x285cc2;}if(_0x285cc2[_0x200c(0xa)]===_0x11bff9[_0x200c(0x3e)])throw new ApiError(_0x11bff9[_0x200c(0x3f)],_0x11bff9[_0x200c(0x40)]);debug&&(0x0,_debugHelper[_0x200c(0x2a)])(_0x11bff9['WEcfO'],{'endpoint':_0x4ca519,'method':_0x28346b,'error':_0x285cc2[_0x200c(0x41)]||_0x200c(0x42)});throw new ApiError(_0x285cc2[_0x200c(0x41)]||'An\x20unexpected\x20error\x20occurred',_0x11bff9[_0x200c(0x32)]);}},makeDeveloperApiRequest=async(_0x50e1ac,_0x3c08f6,_0x10b5c9={})=>{const _0x403a0={'yBRAP':_0x200c(0x43),'KVQmq':_0x200c(0x42),'oNyZR':function(_0x5ef928){return _0x5ef928();},'rjFmU':'puiaM','lswqo':_0x200c(0x15),'IQNuV':'network_error','xTOFo':_0x200c(0x44),'NcRnO':_0x200c(0x18),'xnoqU':function(_0x3b7711,_0x1e8d45){return _0x3b7711||_0x1e8d45;},'jVdYu':'Developer\x20API\x20Response','eSnud':function(_0x323054,_0x253ca4){return _0x323054===_0x253ca4;},'ulcSo':_0x200c(0x11),'RKTej':_0x200c(0x45),'uklbB':_0x200c(0x19),'DBmww':_0x200c(0x1a),'TslAt':_0x200c(0x1b),'oppyl':function(_0xeb7a09,_0x2316f0){return _0xeb7a09===_0x2316f0;},'xGchR':function(_0x1d6159,_0x269ef1){return _0x1d6159 instanceof _0x269ef1;},'PPyNq':_0x200c(0x1e),'QLFIG':'timeout_error','VMmdS':_0x200c(0x46)},{data:_0x2595e1,headers:headers={},debug:debug=![]}=_0x10b5c9;try{const _0x4132fb=await _0x403a0[_0x200c(0x47)](checkNetworkConnection);if(!_0x4132fb){if(_0x403a0[_0x200c(0x48)]===_0x403a0['rjFmU'])throw new ApiError(_0x403a0[_0x200c(0x49)],_0x403a0[_0x200c(0x4a)]);else(0x0,_0x4c7449[_0x200c(0x2a)])(_0x403a0['yBRAP'],{'endpoint':_0x4e5b1b,'method':_0xb1b0d1,'error':_0xd9c6f2[_0x200c(0x41)]||_0x403a0[_0x200c(0x4b)]});}debug&&(0x0,_debugHelper[_0x200c(0x2a)])(_0x403a0[_0x200c(0x4c)],{'endpoint':_0x50e1ac,'method':_0x3c08f6,'headers':{...headers,'Authorization':_0x403a0[_0x200c(0x4d)]},'data':_0x403a0[_0x200c(0x4e)](_0x2595e1,null)});const _0x62fd90=await(0x0,_apiKeyService[_0x200c(0x4f)])(_0x50e1ac,{'method':_0x3c08f6,'headers':headers,..._0x2595e1?{'body':JSON[_0x200c(0x2d)](_0x2595e1)}:{}}),_0x3ea05c=await _0x62fd90[_0x200c(0x2e)]();debug&&(0x0,_debugHelper[_0x200c(0x2a)])(_0x403a0[_0x200c(0x50)],{'status':_0x62fd90[_0x200c(0x27)],'data':_0x3ea05c});if(!_0x62fd90['ok']){var _0x2514f0,_0x14ebc5,_0xf94aa9;const _0x2079b8=_0x403a0[_0x200c(0x51)](_0x62fd90[_0x200c(0x27)],0x191)||_0x403a0['eSnud'](_0x62fd90[_0x200c(0x27)],0x193)?_0x403a0[_0x200c(0x52)]:_0x62fd90[_0x200c(0x27)]===0x190?_0x403a0[_0x200c(0x53)]:_0x62fd90[_0x200c(0x27)]>=0x1f4?_0x403a0['uklbB']:_0x403a0['DBmww'];throw new ApiError(((_0x2514f0=_0x3ea05c['error'])===null||_0x403a0[_0x200c(0x51)](_0x2514f0,void 0x0)?void 0x0:_0x2514f0[_0x200c(0x41)])||_0x403a0['TslAt'],_0x2079b8,(_0x14ebc5=_0x3ea05c[_0x200c(0x33)])===null||_0x403a0[_0x200c(0x51)](_0x14ebc5,void 0x0)?void 0x0:_0x14ebc5[_0x200c(0x36)],_0x403a0[_0x200c(0x54)](_0xf94aa9=_0x3ea05c[_0x200c(0x33)],null)||_0x403a0[_0x200c(0x51)](_0xf94aa9,void 0x0)?void 0x0:_0xf94aa9[_0x200c(0xb)]);}return _0x3ea05c;}catch(_0x47e3b7){if(_0x403a0[_0x200c(0x55)](_0x47e3b7,ApiError))throw _0x47e3b7;if(_0x403a0[_0x200c(0x54)](_0x47e3b7['name'],_0x200c(0x1d)))throw new ApiError(_0x403a0[_0x200c(0x56)],_0x403a0[_0x200c(0x57)]);debug&&(0x0,_debugHelper[_0x200c(0x2a)])(_0x403a0[_0x200c(0x58)],{'endpoint':_0x50e1ac,'method':_0x3c08f6,'error':_0x47e3b7[_0x200c(0x41)]||_0x200c(0x42)});throw new ApiError(_0x47e3b7[_0x200c(0x41)]||_0x403a0['VMmdS'],_0x403a0['DBmww']);}},validateCredentials=async(_0x324049,_0x1eb741={'debug':![]})=>{const _0x171bfd={'TYkKC':_0x200c(0x59),'HtQrs':_0x200c(0x5a),'GQwQX':function(_0x568042,_0x4c5694,_0x571c45,_0x4290e5){return _0x568042(_0x4c5694,_0x571c45,_0x4290e5);},'nArgH':_0x200c(0x5b),'EoHRX':function(_0x5389b8,_0x31daf6){return _0x5389b8===_0x31daf6;},'JaCst':function(_0x500991,_0x5645c4){return _0x500991===_0x5645c4;},'vCVzb':function(_0x4eac6b,_0x3a70c9){return _0x4eac6b===_0x3a70c9;}};try{if(_0x171bfd[_0x200c(0x5c)]!==_0x171bfd[_0x200c(0x5d)]){var _0x5bf5de,_0x2e8f29;const _0x127109=await _0x171bfd[_0x200c(0x5e)](makeUserApiRequest,_0x171bfd[_0x200c(0x5f)],'POST',{'data':{'username':_0x324049},'debug':_0x1eb741['debug']});return{'isValid':_0x127109['success']&&_0x171bfd[_0x200c(0x60)](_0x171bfd[_0x200c(0x61)](_0x5bf5de=_0x127109[_0x200c(0x62)],null)||_0x5bf5de===void 0x0?void 0x0:_0x5bf5de[_0x200c(0x63)],!![]),'message':_0x171bfd['JaCst'](_0x2e8f29=_0x127109[_0x200c(0x33)],null)||_0x171bfd[_0x200c(0x64)](_0x2e8f29,void 0x0)?void 0x0:_0x2e8f29[_0x200c(0x41)]};}else return(0x0,_0xac1cfd[_0x200c(0x28)])();}catch(_0x5a379e){return{'isValid':![],'message':_0x5a379e['message']};}};exports[_0x200c(0x2)]=validateCredentials;const createAccount=async(_0x940c6,_0x515570={'debug':![]})=>{const _0x502526={'LZWJo':function(_0x565911,_0x509866,_0x2105b1,_0x1c4cdd){return _0x565911(_0x509866,_0x2105b1,_0x1c4cdd);}};return _0x502526[_0x200c(0x65)](makeDeveloperApiRequest,_0x200c(0x66),'POST',{'data':{'username':_0x940c6[_0x200c(0x67)],'platforms':_0x940c6[_0x200c(0x68)]},'debug':_0x515570[_0x200c(0x69)]});};exports[_0x200c(0x6a)]=createAccount;const authenticate=async(_0x39ee15,_0x137388={'debug':![]})=>{const _0x4d88c4={'jKBro':_0x200c(0x6b)};return makeUserApiRequest(_0x4d88c4[_0x200c(0x6c)],'POST',{'data':{'username':_0x39ee15[_0x200c(0x67)],'pin':_0x39ee15[_0x200c(0x6d)]},'debug':_0x137388[_0x200c(0x69)]});};exports['authenticate']=authenticate;const refreshToken=async(_0x53c6d0,_0x2f0370={'debug':![]})=>{const _0x2f6524={'tnUnD':function(_0x3813e3,_0x24f136,_0x47b6ce,_0x3f6cbe){return _0x3813e3(_0x24f136,_0x47b6ce,_0x3f6cbe);},'PIgNA':_0x200c(0x6e)};return _0x2f6524[_0x200c(0x6f)](makeUserApiRequest,_0x2f6524[_0x200c(0x70)],'POST',{'data':{'refreshToken':_0x53c6d0},'debug':_0x2f0370[_0x200c(0x69)]});};exports['refreshToken']=refreshToken;const getPlatformData=async(_0x1c0653,_0x3f943b={'debug':![]})=>{const _0x381951={'XzQCX':function(_0x760711,_0x262156,_0x460ca2,_0x18a4ca){return _0x760711(_0x262156,_0x460ca2,_0x18a4ca);}};return _0x381951[_0x200c(0x71)](makeUserApiRequest,_0x200c(0x72)+_0x1c0653+'/data','GET',{'debug':_0x3f943b[_0x200c(0x69)]});};exports['getPlatformData']=getPlatformData;const getUserProfile=async(_0x1460b9={'debug':![]})=>{const _0x5e69d3={'zqIMr':function(_0x3f30cf,_0x132b54,_0x2279fd,_0x42f4be){return _0x3f30cf(_0x132b54,_0x2279fd,_0x42f4be);},'txTQz':'user/profile'};return _0x5e69d3[_0x200c(0x73)](makeUserApiRequest,_0x5e69d3[_0x200c(0x74)],'GET',{'debug':_0x1460b9['debug']});};exports[_0x200c(0x75)]=getUserProfile;const updatePlatformConnections=async(_0x350b37,_0x4d14f0={'debug':![]})=>{return makeUserApiRequest('user/platforms','PUT',{'data':{'platforms':_0x350b37},'debug':_0x4d14f0[_0x200c(0x69)]});};exports[_0x200c(0x3)]=updatePlatformConnections;const storePIN=async(_0x5ef056,_0x3e692e={})=>{const _0x16921f={'acWiM':function(_0x1c74d7,_0x53a739){return _0x1c74d7===_0x53a739;},'qkmci':function(_0x3b01fd,_0x23adb9){return _0x3b01fd===_0x23adb9;},'tztIS':'auth_error','qmFNr':_0x200c(0x45),'fHtLP':function(_0x4a2273,_0x203a91){return _0x4a2273>=_0x203a91;},'NTgrW':_0x200c(0x19),'IqzNb':_0x200c(0x1a),'xqMce':function(_0x17822f,_0x1f325d){return _0x17822f===_0x1f325d;},'SEwPC':'API\x20request\x20failed','SbGpA':function(_0x59f445,_0x1daf58){return _0x59f445===_0x1daf58;},'BsVVV':function(_0x4daf75,_0x2620f7){return _0x4daf75===_0x2620f7;},'yPctU':function(_0x572f27,_0x36cd5e){return _0x572f27===_0x36cd5e;},'PQeHp':function(_0x340a7a,_0x4553ef){return _0x340a7a!==_0x4553ef;},'thntH':_0x200c(0x76),'zRTId':_0x200c(0x77),'UKbnv':_0x200c(0x10),'MPxGh':'store-pin/mobile'},{debug:debug=![],username:_0x2b0ee5}=_0x3e692e,_0x385461=_0x2b0ee5||(0x0,_apiKeyService['extractUsernameFromJWT'])();if(!_0x385461){if(_0x16921f[_0x200c(0x78)](_0x16921f['thntH'],_0x16921f[_0x200c(0x79)]))throw new ApiError(_0x16921f[_0x200c(0x7a)],_0x16921f[_0x200c(0x7b)]);else{var _0x255ef5,_0x1b1f89,_0x487f62;const _0xe586e5=_0x16921f[_0x200c(0x7c)](_0x37357f[_0x200c(0x27)],0x191)||_0x16921f['qkmci'](_0x4b0c9a[_0x200c(0x27)],0x193)?_0x16921f[_0x200c(0x7b)]:_0x16921f[_0x200c(0x7c)](_0x54874f['status'],0x190)?_0x16921f[_0x200c(0x7d)]:_0x16921f[_0x200c(0x7e)](_0x207694[_0x200c(0x27)],0x1f4)?_0x16921f[_0x200c(0x7f)]:_0x16921f[_0x200c(0x80)];throw new _0x556240((_0x16921f[_0x200c(0x81)](_0x255ef5=_0x5442c1[_0x200c(0x33)],null)||_0x255ef5===void 0x0?void 0x0:_0x255ef5[_0x200c(0x41)])||_0x16921f[_0x200c(0x82)],_0xe586e5,_0x16921f[_0x200c(0x83)](_0x1b1f89=_0x354eb2[_0x200c(0x33)],null)||_0x16921f[_0x200c(0x83)](_0x1b1f89,void 0x0)?void 0x0:_0x1b1f89[_0x200c(0x36)],_0x16921f[_0x200c(0x84)](_0x487f62=_0x48ac0b[_0x200c(0x33)],null)||_0x16921f['yPctU'](_0x487f62,void 0x0)?void 0x0:_0x487f62['details']);}}return makeUserApiRequest(_0x16921f[_0x200c(0x85)],'POST',{'data':{'username':_0x385461,'pin':_0x5ef056},'debug':debug});};exports[_0x200c(0x4)]=storePIN;const getCurrentUserToken=async()=>{return await(0x0,_apiKeyService['getJWT'])();};exports[_0x200c(0x86)]=getCurrentUserToken;const isCurrentUserAuthenticated=()=>{return(0x0,_apiKeyService[_0x200c(0x28)])();};exports['isCurrentUserAuthenticated']=isCurrentUserAuthenticated;function _0x3f38(){const _0x72c3d3=['defineProperty','__esModule','validateCredentials','updatePlatformConnections','storePIN','isCurrentUserAuthenticated','authenticate','2|0|3|4|1','ApiError','type','name','details','default','fetch','vtmsS','User\x20API\x20Response','No\x20username\x20available\x20-\x20either\x20provide\x20username\x20or\x20ensure\x20JWT\x20token\x20is\x20valid','auth_error','store-pin/mobile','hMOJk','DSUoz','No\x20network\x20connection\x20available','network_error','User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','[REDACTED]','server_error','unknown_error','API\x20request\x20failed','tBasT','AbortError','Request\x20timed\x20out','timeout_error','User\x20API\x20Error','YYwkE','vrGtI','ijUDO','daAFC','DswNm','TEdgN','status','isUserAuthenticated','dJvuD','logDebug','gBzTy','makeUserRequest','stringify','json','fjEyy','NDTaD','sWqiK','YxlQl','error','bfeKD','YDsew','code','sYrBz','Developer\x20API\x20Response','mXKXo','oeXow','mdMUt','rykjp','xrhWL','CMmoO','vbjUv','trdFt','message','Unknown\x20error','Developer\x20API\x20Error','Developer\x20API\x20Request','validation_error','An\x20unexpected\x20error\x20occurred','oNyZR','rjFmU','lswqo','IQNuV','KVQmq','xTOFo','NcRnO','xnoqU','makeDeveloperRequest','jVdYu','eSnud','ulcSo','RKTej','oppyl','xGchR','PPyNq','QLFIG','yBRAP','pSenM','wbXLa','auth/validate','TYkKC','HtQrs','GQwQX','nArgH','EoHRX','JaCst','data','isValid','vCVzb','LZWJo','auth/register','username','platforms','debug','createAccount','auth/login','jKBro','userPin','auth/refresh','tnUnD','PIgNA','XzQCX','platforms/','zqIMr','txTQz','getUserProfile','iTnhA','TsRAr','PQeHp','zRTId','UKbnv','tztIS','acWiM','qmFNr','fHtLP','NTgrW','IqzNb','xqMce','SEwPC','SbGpA','BsVVV','MPxGh','getCurrentUserToken'];_0x3f38=function(){return _0x72c3d3;};return _0x3f38();}
|
|
9
|
+
Object[_0x599b(0x0)](exports,_0x599b(0x1),{'value':!![]}),exports[_0x599b(0x2)]=exports[_0x599b(0x3)]=exports[_0x599b(0x4)]=exports[_0x599b(0x5)]=exports[_0x599b(0x6)]=exports['getUserProfile']=exports['getPlatformData']=exports[_0x599b(0x7)]=exports[_0x599b(0x8)]=exports[_0x599b(0x9)]=exports[_0x599b(0xa)]=void 0x0;var _netinfo=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0)),_debugHelper=__ONAIROS_REQ_FUNC__(0x1),_apiKeyService=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x4f7e8c){return _0x4f7e8c&&_0x4f7e8c[_0x599b(0x1)]?_0x4f7e8c:{'default':_0x4f7e8c};}class ApiError extends Error{constructor(_0x12e7b7,_0x4a6304,_0x105987,_0x2bab33){const _0x10f29c={'KuXni':_0x599b(0xa)};super(_0x12e7b7),this['type']=_0x4a6304,this[_0x599b(0xb)]=_0x105987,this[_0x599b(0xc)]=_0x2bab33,this[_0x599b(0xd)]=_0x10f29c['KuXni'];}}exports[_0x599b(0xa)]=ApiError;const checkNetworkConnection=async()=>{const _0x2794d7={'eTtlN':function(_0x240a42,_0x3a7cef){return _0x240a42===_0x3a7cef;}},_0x41582a=await _netinfo[_0x599b(0xe)][_0x599b(0xf)]();return _0x2794d7['eTtlN'](_0x41582a['isConnected'],!![]);},makeUserApiRequest=async(_0x3e8183,_0x7e44ec,_0xbac0b2={})=>{const _0x46b1f6={'cVDWo':_0x599b(0x10),'KXkoC':_0x599b(0x11),'eDyNC':'User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','fzgvP':'auth_error','twvck':_0x599b(0x12),'Urptg':_0x599b(0x13),'MucyI':_0x599b(0x14),'YHvqM':_0x599b(0x15),'amudf':function(_0x4f3b01,_0x44dc5e){return _0x4f3b01||_0x44dc5e;},'skwhe':'User\x20API\x20Response','psulB':_0x599b(0x16),'WxOUv':function(_0x3207b1,_0x1d9bea){return _0x3207b1>=_0x1d9bea;},'VdgST':'server_error','yQndQ':'unknown_error','GKEPd':function(_0x150314,_0x95b25){return _0x150314===_0x95b25;},'ZCgMb':'API\x20request\x20failed','jKGme':function(_0x49fc14,_0x37f941){return _0x49fc14===_0x37f941;},'NfcBp':function(_0x51f5a5,_0x1c6335){return _0x51f5a5===_0x1c6335;},'qtpLo':function(_0x366929,_0x685588){return _0x366929 instanceof _0x685588;},'XYKBQ':_0x599b(0x17),'CuQAK':'timeout_error','FgniG':'User\x20API\x20Error','mVzpj':_0x599b(0x18),'Aqjfm':_0x599b(0x19)},{data:_0x2aa7f2,headers:headers={},debug:debug=![]}=_0xbac0b2;try{const _0x3c1e58=await checkNetworkConnection();if(!_0x3c1e58)throw new ApiError(_0x599b(0x10),'network_error');if(!(0x0,_apiKeyService[_0x599b(0x1a)])())throw new ApiError(_0x46b1f6[_0x599b(0x1b)],_0x46b1f6[_0x599b(0x1c)]);if(debug){if(_0x46b1f6[_0x599b(0x1d)]===_0x46b1f6['Urptg'])throw new _0x568731(_0x46b1f6[_0x599b(0x1e)],_0x599b(0x1f));else(0x0,_debugHelper['logDebug'])(_0x46b1f6[_0x599b(0x20)],{'endpoint':_0x3e8183,'method':_0x7e44ec,'headers':{...headers,'Authorization':_0x46b1f6[_0x599b(0x21)]},'data':_0x46b1f6[_0x599b(0x22)](_0x2aa7f2,null)});}const _0x1178d7=await(0x0,_apiKeyService['makeUserRequest'])(_0x3e8183,{'method':_0x7e44ec,'headers':headers,..._0x2aa7f2?{'body':JSON[_0x599b(0x23)](_0x2aa7f2)}:{}}),_0x2e8145=await _0x1178d7['json']();debug&&(0x0,_debugHelper[_0x599b(0x24)])(_0x46b1f6[_0x599b(0x25)],{'status':_0x1178d7[_0x599b(0x26)],'data':_0x2e8145});if(!_0x1178d7['ok']){var _0x255c43,_0x30b96f,_0x35ffc8;const _0x51ae03=_0x1178d7[_0x599b(0x26)]===0x191||_0x1178d7['status']===0x193?_0x46b1f6[_0x599b(0x1c)]:_0x1178d7[_0x599b(0x26)]===0x190?_0x46b1f6['psulB']:_0x46b1f6['WxOUv'](_0x1178d7[_0x599b(0x26)],0x1f4)?_0x46b1f6[_0x599b(0x27)]:_0x46b1f6[_0x599b(0x28)];throw new ApiError(((_0x255c43=_0x2e8145['error'])===null||_0x46b1f6['GKEPd'](_0x255c43,void 0x0)?void 0x0:_0x255c43[_0x599b(0x29)])||_0x46b1f6[_0x599b(0x2a)],_0x51ae03,_0x46b1f6[_0x599b(0x2b)](_0x30b96f=_0x2e8145[_0x599b(0x2c)],null)||_0x46b1f6['jKGme'](_0x30b96f,void 0x0)?void 0x0:_0x30b96f[_0x599b(0xb)],_0x46b1f6[_0x599b(0x2b)](_0x35ffc8=_0x2e8145[_0x599b(0x2c)],null)||_0x46b1f6[_0x599b(0x2d)](_0x35ffc8,void 0x0)?void 0x0:_0x35ffc8[_0x599b(0xc)]);}return _0x2e8145;}catch(_0x262d70){if(_0x46b1f6[_0x599b(0x2e)](_0x262d70,ApiError))throw _0x262d70;if(_0x46b1f6[_0x599b(0x2f)](_0x262d70[_0x599b(0xd)],_0x46b1f6['XYKBQ']))throw new ApiError(_0x599b(0x30),_0x46b1f6[_0x599b(0x31)]);debug&&(_0x599b(0x32)===_0x599b(0x33)?(0x0,_0x4787a5[_0x599b(0x24)])(_0x46b1f6[_0x599b(0x34)],{'endpoint':_0x57eb54,'method':_0x3c7460,'error':_0x2ef29d[_0x599b(0x29)]||_0x599b(0x18)}):(0x0,_debugHelper[_0x599b(0x24)])(_0x46b1f6[_0x599b(0x35)],{'endpoint':_0x3e8183,'method':_0x7e44ec,'error':_0x262d70[_0x599b(0x29)]||_0x46b1f6[_0x599b(0x36)]}));throw new ApiError(_0x262d70[_0x599b(0x29)]||_0x46b1f6[_0x599b(0x37)],_0x46b1f6['yQndQ']);}},makeDeveloperApiRequest=async(_0x33fff8,_0xf65eb6,_0x12c57e={})=>{const _0x36daae={'wgSJS':function(_0x16bdf5,_0x2f2a11,_0x1e24d7,_0x557977){return _0x16bdf5(_0x2f2a11,_0x1e24d7,_0x557977);},'jYPpg':_0x599b(0x14),'UMkyS':'[REDACTED]','AhQyh':function(_0x2563d6,_0x59784b){return _0x2563d6||_0x59784b;},'rhurJ':function(_0x3ac32a){return _0x3ac32a();},'wmHox':_0x599b(0x10),'YUmZH':'network_error','BdtVm':_0x599b(0x38),'LpcHP':function(_0x28d6f4,_0x5a5892){return _0x28d6f4||_0x5a5892;},'WIrZn':function(_0x405603,_0x141eac){return _0x405603!==_0x141eac;},'DDWBV':'Developer\x20API\x20Response','HjwXg':function(_0x329c3e,_0x2bd4dc){return _0x329c3e===_0x2bd4dc;},'FHmik':_0x599b(0x39),'ehxgs':function(_0x1c50af,_0x14dd52){return _0x1c50af>=_0x14dd52;},'EHzwB':_0x599b(0x3a),'QgRVl':_0x599b(0x3b),'IaaUH':function(_0x57cbb8,_0x55222e){return _0x57cbb8===_0x55222e;},'NTOdo':_0x599b(0x3c),'gpukg':function(_0x2bc222,_0x2b3cb3){return _0x2bc222 instanceof _0x2b3cb3;},'YAPEO':_0x599b(0x17),'zabEG':_0x599b(0x3d),'OTNQY':'Request\x20timed\x20out','aeUxL':_0x599b(0x11),'psUdX':_0x599b(0x18)},{data:_0x2a5194,headers:headers={},debug:debug=![]}=_0x12c57e;try{const _0x949ed=await _0x36daae[_0x599b(0x3e)](checkNetworkConnection);if(!_0x949ed)throw new ApiError(_0x36daae['wmHox'],_0x36daae[_0x599b(0x3f)]);debug&&(0x0,_debugHelper[_0x599b(0x24)])(_0x36daae[_0x599b(0x40)],{'endpoint':_0x33fff8,'method':_0xf65eb6,'headers':{...headers,'Authorization':_0x36daae['UMkyS']},'data':_0x36daae['LpcHP'](_0x2a5194,null)});const _0x8407e=await(0x0,_apiKeyService[_0x599b(0x41)])(_0x33fff8,{'method':_0xf65eb6,'headers':headers,..._0x2a5194?{'body':JSON[_0x599b(0x23)](_0x2a5194)}:{}}),_0x46e164=await _0x8407e['json']();if(debug){if(_0x36daae['WIrZn']('hkAzS',_0x599b(0x42)))(0x0,_debugHelper[_0x599b(0x24)])(_0x36daae[_0x599b(0x43)],{'status':_0x8407e['status'],'data':_0x46e164});else return _0x36daae[_0x599b(0x44)](_0x11b2eb,_0x599b(0x45),'POST',{'data':{'refreshToken':_0x1ef5a0},'debug':_0x1c44df[_0x599b(0x46)]});}if(!_0x8407e['ok']){var _0x2113a3,_0x5d5cdc,_0x4b4744;const _0x4b6f6d=_0x36daae[_0x599b(0x47)](_0x8407e[_0x599b(0x26)],0x191)||_0x36daae['HjwXg'](_0x8407e[_0x599b(0x26)],0x193)?_0x36daae[_0x599b(0x48)]:_0x8407e[_0x599b(0x26)]===0x190?_0x599b(0x16):_0x36daae['ehxgs'](_0x8407e[_0x599b(0x26)],0x1f4)?_0x36daae['EHzwB']:_0x36daae[_0x599b(0x49)];throw new ApiError((_0x36daae[_0x599b(0x4a)](_0x2113a3=_0x46e164['error'],null)||_0x36daae['IaaUH'](_0x2113a3,void 0x0)?void 0x0:_0x2113a3['message'])||_0x36daae['NTOdo'],_0x4b6f6d,_0x36daae[_0x599b(0x47)](_0x5d5cdc=_0x46e164['error'],null)||_0x36daae[_0x599b(0x47)](_0x5d5cdc,void 0x0)?void 0x0:_0x5d5cdc[_0x599b(0xb)],_0x36daae[_0x599b(0x47)](_0x4b4744=_0x46e164[_0x599b(0x2c)],null)||_0x36daae[_0x599b(0x47)](_0x4b4744,void 0x0)?void 0x0:_0x4b4744[_0x599b(0xc)]);}return _0x46e164;}catch(_0x178670){if(_0x36daae[_0x599b(0x4b)](_0x178670,ApiError))throw _0x178670;if(_0x36daae['IaaUH'](_0x178670['name'],_0x36daae[_0x599b(0x4c)])){if(_0x36daae[_0x599b(0x4d)]!==_0x36daae['zabEG'])(0x0,_0x4409bf[_0x599b(0x24)])(_0x36daae[_0x599b(0x4e)],{'endpoint':_0x5e5039,'method':_0x4475db,'headers':{..._0x123fed,'Authorization':_0x36daae['UMkyS']},'data':_0x36daae[_0x599b(0x4f)](_0x16fb74,null)});else throw new ApiError(_0x36daae['OTNQY'],_0x599b(0x50));}debug&&(0x0,_debugHelper['logDebug'])(_0x36daae[_0x599b(0x51)],{'endpoint':_0x33fff8,'method':_0xf65eb6,'error':_0x178670[_0x599b(0x29)]||_0x36daae[_0x599b(0x52)]});throw new ApiError(_0x178670[_0x599b(0x29)]||_0x599b(0x19),_0x36daae[_0x599b(0x49)]);}},validateCredentials=async(_0x1aeb27,_0xd8b283={'debug':![]})=>{const _0x35559f={'hnbKR':function(_0x50a664,_0x3a835a,_0x4ac776,_0x24a815){return _0x50a664(_0x3a835a,_0x4ac776,_0x24a815);},'vlrRm':_0x599b(0x53),'OMiDu':'Developer\x20API\x20Response','sqMwQ':function(_0x50f0ca,_0x45b51a){return _0x50f0ca!==_0x45b51a;},'XKXYd':_0x599b(0x54),'hyMAI':_0x599b(0x55),'KWYhV':function(_0x3dd235,_0x42219d,_0x616793,_0x88de7){return _0x3dd235(_0x42219d,_0x616793,_0x88de7);},'atsoH':_0x599b(0x56),'eSEuA':function(_0x484a05,_0x109f5c){return _0x484a05===_0x109f5c;},'QujSM':function(_0x32969f,_0x52cc39){return _0x32969f===_0x52cc39;},'zeKGw':function(_0x55c8e5,_0x2ed7c7){return _0x55c8e5===_0x2ed7c7;},'laFdJ':function(_0x27c0fd,_0x220f87){return _0x27c0fd===_0x220f87;},'MVTJt':_0x599b(0x57),'NdjFs':_0x599b(0x58)};try{if(_0x35559f[_0x599b(0x59)](_0x35559f[_0x599b(0x5a)],_0x35559f[_0x599b(0x5b)])){var _0x453d7e,_0xeeb529;const _0x2e1034=await _0x35559f[_0x599b(0x5c)](makeUserApiRequest,_0x35559f[_0x599b(0x5d)],'POST',{'data':{'username':_0x1aeb27},'debug':_0xd8b283[_0x599b(0x46)]});return{'isValid':_0x2e1034[_0x599b(0x5e)]&&_0x35559f[_0x599b(0x5f)](_0x35559f[_0x599b(0x5f)](_0x453d7e=_0x2e1034[_0x599b(0x60)],null)||_0x35559f['QujSM'](_0x453d7e,void 0x0)?void 0x0:_0x453d7e[_0x599b(0x61)],!![]),'message':(_0xeeb529=_0x2e1034[_0x599b(0x2c)])===null||_0x35559f['zeKGw'](_0xeeb529,void 0x0)?void 0x0:_0xeeb529['message']};}else return _0x35559f[_0x599b(0x62)](_0x4eff33,_0x35559f[_0x599b(0x63)],'POST',{'data':{'username':_0x3c7f6[_0x599b(0x64)],'platforms':_0x55f9f3['platforms']},'debug':_0x4e773e[_0x599b(0x46)]});}catch(_0x54eb59){if(_0x35559f[_0x599b(0x65)](_0x35559f[_0x599b(0x66)],_0x35559f[_0x599b(0x67)]))(0x0,_0x337c38[_0x599b(0x24)])(_0x35559f[_0x599b(0x68)],{'status':_0x34deb3['status'],'data':_0xafea40});else return{'isValid':![],'message':_0x54eb59[_0x599b(0x29)]};}};exports['validateCredentials']=validateCredentials;const createAccount=async(_0x5854a9,_0x52fcd8={'debug':![]})=>{const _0x1db458={'CrLOd':function(_0x762865,_0x39c7a2,_0x18a34b,_0x1eb2c7){return _0x762865(_0x39c7a2,_0x18a34b,_0x1eb2c7);},'OzDLD':_0x599b(0x53)};return _0x1db458[_0x599b(0x69)](makeDeveloperApiRequest,_0x1db458['OzDLD'],'POST',{'data':{'username':_0x5854a9[_0x599b(0x64)],'platforms':_0x5854a9['platforms']},'debug':_0x52fcd8['debug']});};exports['createAccount']=createAccount;const authenticate=async(_0x25caf6,_0x1adf26={'debug':![]})=>{const _0x5e1228={'eRzww':function(_0x312e87,_0x349ceb,_0x490e47,_0x5ebb4a){return _0x312e87(_0x349ceb,_0x490e47,_0x5ebb4a);},'dvgFp':_0x599b(0x6a)};return _0x5e1228[_0x599b(0x6b)](makeUserApiRequest,_0x5e1228[_0x599b(0x6c)],'POST',{'data':{'username':_0x25caf6[_0x599b(0x64)],'pin':_0x25caf6[_0x599b(0x6d)]},'debug':_0x1adf26['debug']});};exports[_0x599b(0x9)]=authenticate;function _0x599b(_0x33e318,_0x599be4){_0x33e318=_0x33e318-0x0;const _0x425d21=_0x33e3();let _0x1d927e=_0x425d21[_0x33e318];return _0x1d927e;}const refreshToken=async(_0x7466b4,_0xbb9362={'debug':![]})=>{const _0x19bcd1={'szsfX':function(_0x28af88,_0x159da6,_0x1144ee,_0x1ef9c5){return _0x28af88(_0x159da6,_0x1144ee,_0x1ef9c5);}};return _0x19bcd1[_0x599b(0x6e)](makeUserApiRequest,_0x599b(0x45),'POST',{'data':{'refreshToken':_0x7466b4},'debug':_0xbb9362[_0x599b(0x46)]});};function _0x33e3(){const _0x12f856=['defineProperty','__esModule','validateCredentials','updatePlatformConnections','storePIN','refreshToken','isCurrentUserAuthenticated','getCurrentUserToken','createAccount','authenticate','ApiError','code','details','name','default','fetch','No\x20network\x20connection\x20available','Developer\x20API\x20Error','qnLQd','jZnVg','User\x20API\x20Request','[REDACTED]','validation_error','AbortError','Unknown\x20error','An\x20unexpected\x20error\x20occurred','isUserAuthenticated','eDyNC','fzgvP','twvck','cVDWo','network_error','MucyI','YHvqM','amudf','stringify','logDebug','skwhe','status','VdgST','yQndQ','message','ZCgMb','jKGme','error','NfcBp','qtpLo','GKEPd','Request\x20timed\x20out','CuQAK','pRRbN','bgRDd','KXkoC','FgniG','mVzpj','Aqjfm','Developer\x20API\x20Request','auth_error','server_error','unknown_error','API\x20request\x20failed','uohXM','rhurJ','YUmZH','BdtVm','makeDeveloperRequest','HWHzv','DDWBV','wgSJS','auth/refresh','debug','HjwXg','FHmik','QgRVl','IaaUH','gpukg','YAPEO','zabEG','jYPpg','AhQyh','timeout_error','aeUxL','psUdX','auth/register','BXBrd','DHjpe','auth/validate','kqDFr','ObMiR','sqMwQ','XKXYd','hyMAI','KWYhV','atsoH','success','eSEuA','data','isValid','hnbKR','vlrRm','username','laFdJ','MVTJt','NdjFs','OMiDu','CrLOd','auth/login','eRzww','dvgFp','userPin','szsfX','platforms/','/data','getPlatformData','user/profile','user/platforms','OuELs','store-pin/mobile','extractUsernameFromJWT','No\x20username\x20available\x20-\x20either\x20provide\x20username\x20or\x20ensure\x20JWT\x20token\x20is\x20valid','RlzQY','getJWT'];_0x33e3=function(){return _0x12f856;};return _0x33e3();}exports['refreshToken']=refreshToken;const getPlatformData=async(_0x36f356,_0x7da3da={'debug':![]})=>{return makeUserApiRequest(_0x599b(0x6f)+_0x36f356+_0x599b(0x70),'GET',{'debug':_0x7da3da[_0x599b(0x46)]});};exports[_0x599b(0x71)]=getPlatformData;const getUserProfile=async(_0xe923ea={'debug':![]})=>{const _0x1e0a73={'mpbSb':_0x599b(0x72)};return makeUserApiRequest(_0x1e0a73['mpbSb'],'GET',{'debug':_0xe923ea[_0x599b(0x46)]});};exports['getUserProfile']=getUserProfile;const updatePlatformConnections=async(_0x36ce5a,_0xc02933={'debug':![]})=>{const _0x1c24e1={'OuELs':_0x599b(0x73)};return makeUserApiRequest(_0x1c24e1[_0x599b(0x74)],'PUT',{'data':{'platforms':_0x36ce5a},'debug':_0xc02933[_0x599b(0x46)]});};exports[_0x599b(0x3)]=updatePlatformConnections;const storePIN=async(_0x419231,_0x1b1fc5={})=>{const _0x3e06fe={'Tfsnw':function(_0x5df990,_0x455abb,_0x2ae3c7,_0x25e4a1){return _0x5df990(_0x455abb,_0x2ae3c7,_0x25e4a1);},'RlzQY':_0x599b(0x75)},{debug:debug=![],username:_0x5a90db}=_0x1b1fc5,_0x1dfe82=_0x5a90db||(0x0,_apiKeyService[_0x599b(0x76)])();if(!_0x1dfe82)throw new ApiError(_0x599b(0x77),_0x599b(0x39));return _0x3e06fe['Tfsnw'](makeUserApiRequest,_0x3e06fe[_0x599b(0x78)],'POST',{'data':{'username':_0x1dfe82,'pin':_0x419231},'debug':debug});};exports[_0x599b(0x4)]=storePIN;const getCurrentUserToken=async()=>{return await(0x0,_apiKeyService[_0x599b(0x79)])();};exports[_0x599b(0x7)]=getCurrentUserToken;const isCurrentUserAuthenticated=()=>{return(0x0,_apiKeyService['isUserAuthenticated'])();};exports[_0x599b(0x6)]=isCurrentUserAuthenticated;
|
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require('react')
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
Object[
|
|
9
|
+
function _0x1368(_0x1209d2,_0x13681a){_0x1209d2=_0x1209d2-0x0;const _0x30efb6=_0x1209();let _0x3888ed=_0x30efb6[_0x1209d2];return _0x3888ed;}Object[_0x1368(0x0)](exports,_0x1368(0x1),{'value':!![]}),exports['startOnairosFlow']=exports[_0x1368(0x2)]=void 0x0;var _platformAuthService=__ONAIROS_REQ_FUNC__(0x0);function _interopRequireWildcard(_0x16d6fb,_0x48b190){const _0x20e660={'IxBNo':function(_0x4a021b,_0x20cd2e){return _0x4a021b&&_0x20cd2e;},'uLWpi':function(_0x1f0334,_0x2abc88){return _0x1f0334===_0x2abc88;},'TEfMX':function(_0x2399e6,_0x5864b5){return _0x2399e6!=_0x5864b5;},'XicFe':'object','YaZCu':_0x1368(0x3),'lliRU':function(_0x21f5f1,_0x231c71,_0x2ed639,_0x322b16){return _0x21f5f1(_0x231c71,_0x2ed639,_0x322b16);},'lEusZ':function(_0x5a9f2d,_0x5ea8ca){return _0x5a9f2d==_0x5ea8ca;}};if(_0x20e660['lEusZ'](_0x1368(0x3),typeof WeakMap))var _0x16d45e=new WeakMap(),_0x20fded=new WeakMap();return(_interopRequireWildcard=function(_0x5656c3,_0x5db381){if(_0x20e660[_0x1368(0x4)](!_0x5db381,_0x5656c3)&&_0x5656c3[_0x1368(0x1)])return _0x5656c3;var _0x14d489,_0x1b2480,_0x52c0ec={'__proto__':null,'default':_0x5656c3};if(_0x20e660[_0x1368(0x5)](null,_0x5656c3)||_0x20e660[_0x1368(0x6)](_0x20e660['XicFe'],typeof _0x5656c3)&&_0x20e660[_0x1368(0x6)](_0x20e660[_0x1368(0x7)],typeof _0x5656c3))return _0x52c0ec;if(_0x14d489=_0x5db381?_0x20fded:_0x16d45e){if(_0x14d489[_0x1368(0x8)](_0x5656c3))return _0x14d489[_0x1368(0x9)](_0x5656c3);_0x14d489[_0x1368(0xa)](_0x5656c3,_0x52c0ec);}for(const _0x11e13e in _0x5656c3)_0x1368(0xb)!==_0x11e13e&&{}[_0x1368(0xc)][_0x1368(0xd)](_0x5656c3,_0x11e13e)&&((_0x1b2480=(_0x14d489=Object[_0x1368(0x0)])&&Object[_0x1368(0xe)](_0x5656c3,_0x11e13e))&&(_0x1b2480['get']||_0x1b2480[_0x1368(0xa)])?_0x20e660[_0x1368(0xf)](_0x14d489,_0x52c0ec,_0x11e13e,_0x1b2480):_0x52c0ec[_0x11e13e]=_0x5656c3[_0x11e13e]);return _0x52c0ec;})(_0x16d6fb,_0x48b190);}const executeOnairosFlow=async _0x5a7b98=>{const _0x242ec3={'PecVK':function(_0x349489,_0x3323e2){return _0x349489&&_0x3323e2;},'kXobs':function(_0x32ba07,_0x3b8891){return _0x32ba07!=_0x3b8891;},'oREtz':function(_0x226fe6,_0x380ed4){return _0x226fe6!=_0x380ed4;},'Mfrzd':function(_0x21d0cd,_0x5a78e9){return _0x21d0cd!==_0x5a78e9;},'BViiK':function(_0x44bd84,_0x403b13,_0x34a8c7,_0x8d794a){return _0x44bd84(_0x403b13,_0x34a8c7,_0x8d794a);},'KXKqn':function(_0xd23dfc,_0x2fe046){return _0xd23dfc==_0x2fe046;},'flGWw':_0x1368(0x10),'TPeXI':_0x1368(0x11),'dJtmx':function(_0x39cafb,_0x4302c5){return _0x39cafb===_0x4302c5;},'MrQZm':_0x1368(0x12),'wXtEd':function(_0x43a8fc){return _0x43a8fc();},'iscMX':_0x1368(0x13),'DFFLo':function(_0x1d77fd,_0x3d9230){return _0x1d77fd(_0x3d9230);},'vGILe':function(_0xe342b2,_0x47bbb3){return _0xe342b2||_0x47bbb3;},'ErWkF':_0x1368(0x14),'ULSWG':_0x1368(0x15),'GvDKK':function(_0xc539b1,_0x44bf37){return _0xc539b1(_0x44bf37);},'AwTgu':_0x1368(0x16),'CImEI':_0x1368(0x17),'EtdNT':_0x1368(0x18),'PKzEp':_0x1368(0x19),'WnNwV':_0x1368(0x1a),'lhKKU':'Dlvbl'};try{if(_0x242ec3['dJtmx'](_0x242ec3[_0x1368(0x1b)],_0x242ec3[_0x1368(0x1c)])){if(_0x242ec3[_0x1368(0x1d)](_0x1368(0x3),typeof _0x522638))var _0x11316f=new _0x3ecc61(),_0x1e28a8=new _0x1b533f();return(_0x124530=function(_0x3ceafc,_0xf4da76){if(_0x242ec3[_0x1368(0x1e)](!_0xf4da76,_0x3ceafc)&&_0x3ceafc[_0x1368(0x1)])return _0x3ceafc;var _0x38b861,_0x3c39f2,_0x73dce7={'__proto__':null,'default':_0x3ceafc};if(null===_0x3ceafc||_0x242ec3[_0x1368(0x1f)](_0x1368(0x20),typeof _0x3ceafc)&&_0x242ec3[_0x1368(0x21)](_0x1368(0x3),typeof _0x3ceafc))return _0x73dce7;if(_0x38b861=_0xf4da76?_0x1e28a8:_0x11316f){if(_0x38b861[_0x1368(0x8)](_0x3ceafc))return _0x38b861['get'](_0x3ceafc);_0x38b861[_0x1368(0xa)](_0x3ceafc,_0x73dce7);}for(const _0x12cb65 in _0x3ceafc)_0x242ec3[_0x1368(0x22)](_0x1368(0xb),_0x12cb65)&&{}[_0x1368(0xc)][_0x1368(0xd)](_0x3ceafc,_0x12cb65)&&((_0x3c39f2=(_0x38b861=_0x3459ae[_0x1368(0x0)])&&_0x25727d[_0x1368(0xe)](_0x3ceafc,_0x12cb65))&&(_0x3c39f2['get']||_0x3c39f2[_0x1368(0xa)])?_0x242ec3[_0x1368(0x23)](_0x38b861,_0x73dce7,_0x12cb65,_0x3c39f2):_0x73dce7[_0x12cb65]=_0x3ceafc[_0x12cb65]);return _0x73dce7;})(_0x37f559,_0x379b70);}else{console[_0x1368(0x24)](_0x1368(0x25)),await(0x0,_platformAuthService[_0x1368(0x26)])();const {UniversalOnboarding:_0x4c7e5c}=await Promise[_0x1368(0x27)]()[_0x1368(0x28)](()=>_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x1))),React=await Promise[_0x1368(0x27)]()[_0x1368(0x28)](()=>_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x2)));return new Promise((_0x5a04e8,_0x598052)=>{const _0x543e6c={'PuLpt':_0x242ec3['flGWw'],'Smryj':_0x242ec3[_0x1368(0x29)],'bFKrB':function(_0x2d3135,_0x37fca9){return _0x242ec3[_0x1368(0x2a)](_0x2d3135,_0x37fca9);},'SkWNL':_0x242ec3[_0x1368(0x2b)],'txJdT':'✅\x20Onairos\x20flow\x20completed\x20successfully','YYkgJ':function(_0x3a9879){return _0x242ec3[_0x1368(0x2c)](_0x3a9879);},'veyak':_0x242ec3[_0x1368(0x2d)],'GoVGa':function(_0x3ce1c0,_0x1ef32b){return _0x242ec3[_0x1368(0x2e)](_0x3ce1c0,_0x1ef32b);},'KllnA':function(_0x44a715,_0x388030){return _0x242ec3['vGILe'](_0x44a715,_0x388030);},'hwKLX':_0x242ec3['ErWkF'],'htvCp':_0x242ec3['ULSWG'],'qZkLZ':function(_0x4b5ce8,_0xa70d23){return _0x242ec3[_0x1368(0x22)](_0x4b5ce8,_0xa70d23);},'QqXSS':function(_0x26c062,_0x4758dc){return _0x242ec3[_0x1368(0x2f)](_0x26c062,_0x4758dc);},'vFPKR':function(_0x26743c,_0x5abee5){return _0x26743c||_0x5abee5;}};if(_0x242ec3[_0x1368(0x30)]==='MJrcq'){let _0x515b5b=null;const _0x450fed=(_0x975dde,_0x482462,_0x2a884f)=>{if(_0x543e6c[_0x1368(0x31)](_0x543e6c['SkWNL'],_0x543e6c['SkWNL']))console[_0x1368(0x24)](_0x543e6c[_0x1368(0x32)]),_0x515b5b&&_0x515b5b[_0x1368(0x33)]&&_0x515b5b['close'](),_0x5a7b98[_0x1368(0x34)]&&_0x5a7b98[_0x1368(0x34)](_0x975dde,_0x482462,_0x2a884f),_0x543e6c[_0x1368(0x35)](_0x5a04e8);else{_0x47a132[_0x1368(0x24)](_0x543e6c[_0x1368(0x36)]);_0x7c941['onRejection']&&_0x2d0071['onRejection'](_0x543e6c['Smryj']);return;}},_0x26e52a=_0x4afada=>{if(_0x543e6c[_0x1368(0x37)]===_0x543e6c['htvCp']){if(_0x5a214a['has'](_0x415d25))return _0x60f325[_0x1368(0x9)](_0x2601d4);_0x35144e[_0x1368(0xa)](_0x5c11be,_0x38010c);}else console[_0x1368(0x24)](_0x1368(0x13),_0x4afada),_0x515b5b&&_0x515b5b['close']&&_0x515b5b['close'](),_0x5a7b98[_0x1368(0x38)]&&(_0x543e6c[_0x1368(0x39)]('KvOjM',_0x1368(0x3a))?_0x5a7b98[_0x1368(0x38)](_0x4afada):(_0x363376['log'](_0x543e6c[_0x1368(0x3b)],_0x223a53),_0x14f7fc&&_0x15c827[_0x1368(0x33)]&&_0x50b36b[_0x1368(0x33)](),_0x251e85[_0x1368(0x38)]&&_0x2ab127[_0x1368(0x38)](_0x5dcf31),_0x543e6c['GoVGa'](_0x4dae13,new _0x324ad6(_0x543e6c[_0x1368(0x3c)](_0x372750,_0x1368(0x3d)))))),_0x543e6c[_0x1368(0x3e)](_0x598052,new Error(_0x543e6c[_0x1368(0x3f)](_0x4afada,_0x1368(0x3d))));},_0x483bcb=React[_0x1368(0x40)](_0x4c7e5c,{'visible':!![],'onClose':()=>_0x26e52a(_0x1368(0x41)),'AppName':_0x5a7b98[_0x1368(0x42)],'requestData':_0x5a7b98[_0x1368(0x43)],'returnLink':_0x5a7b98[_0x1368(0x44)],'onComplete':_0x450fed,'preferredPlatform':_0x5a7b98[_0x1368(0x45)],'debug':_0x5a7b98[_0x1368(0x46)],'testMode':_0x5a7b98[_0x1368(0x47)]});_0x515b5b=_0x483bcb,console[_0x1368(0x24)](_0x242ec3[_0x1368(0x48)]);}else _0x12920c[_0x1368(0x33)]();});}}catch(_0x5f2b41){if(_0x242ec3[_0x1368(0x49)]===_0x242ec3[_0x1368(0x49)]){console['error'](_0x242ec3[_0x1368(0x4a)],_0x5f2b41);throw _0x5f2b41;}else{_0x4400fe['error'](_0x242ec3['EtdNT'],_0x4f1fde);throw _0x2a971a;}}};exports[_0x1368(0x2)]=executeOnairosFlow;function _0x1209(){const _0x552a8f=['defineProperty','__esModule','executeOnairosFlow','function','IxBNo','uLWpi','TEfMX','YaZCu','has','get','set','default','hasOwnProperty','call','getOwnPropertyDescriptor','lliRU','❌\x20Pre-check\x20failed,\x20not\x20starting\x20Onairos\x20flow','Pre-check\x20failed','GHKRA','❌\x20Onairos\x20flow\x20rejected:','nLHGd','VRsyq','MJrcq','📱\x20Onairos\x20modal\x20should\x20be\x20displayed','❌\x20Failed\x20to\x20execute\x20Onairos\x20flow:','LgeZm','nrJGD','PKzEp','WnNwV','KXKqn','PecVK','kXobs','object','oREtz','Mfrzd','BViiK','log','🚀\x20Starting\x20Onairos\x20flow\x20programmatically...','initializePlatformAuthService','resolve','then','TPeXI','dJtmx','MrQZm','wXtEd','iscMX','DFFLo','GvDKK','AwTgu','bFKrB','txJdT','close','onResolved','YYkgJ','PuLpt','hwKLX','onRejection','qZkLZ','iEEAB','veyak','KllnA','Onairos\x20flow\x20was\x20rejected','QqXSS','vFPKR','createElement','User\x20closed\x20the\x20modal','AppName','requestData','returnLink','preferredPlatform','debug','testMode','CImEI','lhKKU','EtdNT','VLsdh','preCheck','nPiwE','lwVVL','LdYwn','startOnairosFlow'];_0x1209=function(){return _0x552a8f;};return _0x1209();}const startOnairosFlow=async _0x2f827c=>{const _0x145451={'nPiwE':'❌\x20Pre-check\x20failed,\x20not\x20starting\x20Onairos\x20flow','lwVVL':function(_0x1e48d7,_0x3f9341){return _0x1e48d7!==_0x3f9341;},'LdYwn':_0x1368(0x4b),'xomLH':function(_0x3029ea,_0x6f98a7){return _0x3029ea(_0x6f98a7);}};if(_0x2f827c[_0x1368(0x4c)]){const _0x520383=await _0x2f827c[_0x1368(0x4c)]();if(!_0x520383){console[_0x1368(0x24)](_0x145451[_0x1368(0x4d)]);_0x2f827c[_0x1368(0x38)]&&(_0x145451[_0x1368(0x4e)](_0x145451[_0x1368(0x4f)],_0x145451[_0x1368(0x4f)])?_0x462a95[_0x1368(0x38)](_0x49c728):_0x2f827c[_0x1368(0x38)](_0x1368(0x11)));return;}}return _0x145451['xomLH'](executeOnairosFlow,_0x2f827c);};exports[_0x1368(0x50)]=startOnairosFlow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x3072(){const _0x537c19=['defineProperty','__esModule','NETWORK_RETRY_OPTIONS','DEFAULT_RETRY_OPTIONS','API_RETRY_OPTIONS','fetchWithRetry','healthCheck','HfzJr','ejHIK','fetch','ENOTFOUND','JSON\x20Parse\x20error','Unexpected\x20character','Aoujp','SoZEI','iodjt','jPOJq','Qtvde','qjhJY','JYwZK','message','ziDaA','gVOOK','zYXLO','timeout','status','includes','ssPWv','gPrRQ','rKlNN','🔄\x20Retry\x20attempt\x20','CLBbY','maxRetries','hKSSB','xdGzG','DKHRX','ZGxgj','now','KQWMv','PHejP','iIlgA','EfIzr','BKHig','asCoF','enableLogging','qRovC','ZHBJz','ApBuE','CYwPI','DCrXs','shouldRetry','error','❌\x20All\x20retry\x20attempts\x20exhausted\x20or\x20error\x20not\x20retryable:\x20','baseDelay','exponentialBackoff','bFdPr','min','pow','SJnIx','maxDelay','random','onRetry','log','⏳\x20Waiting\x20','ms\x20before\x20retry\x20(attempt\x20','QjDaP','Unknown\x20error','validation\x20endpoint','HTML\x20page\x20instead\x20of\x20JSON','dhUdL','sCqaB','trgZP','nXwrY','htiqa','name','AbortError','VqgEP','bwStd','DgPQx','cULgK','warn','),\x20retrying\x20in\x20','ms:\x20','Network\x20request\x20failed','DNS','EMLCh','yLYVB','tZxwq','UJzBQ','DaAnw','MjTXC','HxFpE','success','umAFL','vpfPg','data','abort','aTeDT','OnairosReactNative/HealthCheck','hNILO','ZGuWR'];_0x3072=function(){return _0x537c19;};return _0x3072();}function _0x4a9c(_0x30724c,_0x4a9cb2){_0x30724c=_0x30724c-0x0;const _0x356ed2=_0x3072();let _0x3c794b=_0x356ed2[_0x30724c];return _0x3c794b;}Object[_0x4a9c(0x0)](exports,_0x4a9c(0x1),{'value':!![]}),exports[_0x4a9c(0x2)]=exports[_0x4a9c(0x3)]=exports[_0x4a9c(0x4)]=void 0x0,exports[_0x4a9c(0x5)]=fetchWithRetry,exports[_0x4a9c(0x6)]=healthCheck,exports['withRetry']=withRetry;const DEFAULT_RETRY_OPTIONS=exports[_0x4a9c(0x3)]={'maxRetries':0x3,'baseDelay':0x3e8,'maxDelay':0x1388,'exponentialBackoff':!![],'enableLogging':![],'shouldRetry':(_0x4b4dcc,_0x2db8ca)=>{const _0x26cb60={'CLBbY':function(_0x1384ad,_0x4a5de0){return _0x1384ad+_0x4a5de0;},'SoZEI':function(_0x536f46,_0x492f71){return _0x536f46>=_0x492f71;},'iodjt':function(_0x467316,_0x51eedf){return _0x467316<_0x51eedf;},'jPOJq':function(_0x1f23fe,_0x1688c9){return _0x1f23fe!==_0x1688c9;},'Qtvde':_0x4a9c(0x7),'qjhJY':_0x4a9c(0x8),'Phhrb':function(_0x42bfb5,_0x2f0c5d){return _0x42bfb5===_0x2f0c5d;},'JYwZK':'AbortError','ziDaA':'Network\x20request\x20failed','gVOOK':_0x4a9c(0x9),'zYXLO':_0x4a9c(0xa),'ssPWv':_0x4a9c(0xb),'gPrRQ':_0x4a9c(0xc),'dnxgF':function(_0x29a37d,_0x36df26){return _0x29a37d!==_0x36df26;},'rKlNN':_0x4a9c(0xd)};if(_0x26cb60[_0x4a9c(0xe)](_0x4b4dcc['status'],0x190)&&_0x26cb60[_0x4a9c(0xf)](_0x4b4dcc['status'],0x1f4)&&_0x26cb60[_0x4a9c(0x10)](_0x4b4dcc['status'],0x198)&&_0x26cb60[_0x4a9c(0x10)](_0x4b4dcc['status'],0x1ad))return _0x26cb60[_0x4a9c(0x11)]!==_0x26cb60[_0x4a9c(0x12)]?![]:!![];if(_0x26cb60['Phhrb'](_0x4b4dcc['name'],_0x26cb60[_0x4a9c(0x13)])||_0x4b4dcc[_0x4a9c(0x14)]['includes'](_0x26cb60[_0x4a9c(0x15)])||_0x4b4dcc[_0x4a9c(0x14)]['includes'](_0x26cb60[_0x4a9c(0x16)])||_0x4b4dcc[_0x4a9c(0x14)]['includes'](_0x26cb60[_0x4a9c(0x17)])||_0x4b4dcc['message']['includes'](_0x4a9c(0x18))||_0x4b4dcc[_0x4a9c(0x19)]>=0x1f4)return!![];if(_0x4b4dcc[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x26cb60[_0x4a9c(0x1b)])||_0x4b4dcc[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x26cb60[_0x4a9c(0x1c)])){if(_0x26cb60['dnxgF']('nrKnE',_0x26cb60[_0x4a9c(0x1d)]))return!![];else _0x2c8bac['log'](_0x4a9c(0x1e)+_0x1f45d7+'/'+_0x26cb60[_0x4a9c(0x1f)](_0x541890[_0x4a9c(0x20)],0x1));}return![];}};async function withRetry(_0x3fe060,_0x15dca8={}){const _0x4e13ed={'KQWMv':function(_0x3288ed,_0x532e05){return _0x3288ed<=_0x532e05;},'PHejP':function(_0x3b8b63,_0x2a257d){return _0x3b8b63+_0x2a257d;},'iIlgA':function(_0x13585e,_0x5a2edb){return _0x13585e!==_0x5a2edb;},'gsSwv':_0x4a9c(0x21),'BKHig':function(_0x253d8e,_0x41d11){return _0x253d8e!==_0x41d11;},'asCoF':_0x4a9c(0x22),'qRovC':function(_0x1d4599,_0xb0406e){return _0x1d4599>_0xb0406e;},'ZHBJz':function(_0x5d0ceb,_0x559260){return _0x5d0ceb+_0x559260;},'ApBuE':function(_0xa16489){return _0xa16489();},'CYwPI':function(_0x484acd,_0x277155){return _0x484acd-_0x277155;},'DCrXs':_0x4a9c(0x23),'bFdPr':_0x4a9c(0x24),'wBXtc':function(_0x450c0f,_0x148f9d){return _0x450c0f*_0x148f9d;},'SJnIx':function(_0x9a671c,_0x86e7d4){return _0x9a671c-_0x86e7d4;},'QjDaP':function(_0x432d7e,_0x1b388f){return _0x432d7e+_0x1b388f;}},_0x39bf89={...DEFAULT_RETRY_OPTIONS,..._0x15dca8},_0x287794=Date[_0x4a9c(0x25)]();let _0x306c35=null;for(let _0xdc2a7d=0x1;_0x4e13ed[_0x4a9c(0x26)](_0xdc2a7d,_0x4e13ed[_0x4a9c(0x27)](_0x39bf89[_0x4a9c(0x20)],0x1));_0xdc2a7d++){if(_0x4e13ed[_0x4a9c(0x28)](_0x4a9c(0x29),_0x4e13ed['gsSwv']))try{if(_0x4e13ed[_0x4a9c(0x2a)](_0x4e13ed[_0x4a9c(0x2b)],_0x4e13ed['asCoF']))return!![];else{_0x39bf89[_0x4a9c(0x2c)]&&_0x4e13ed[_0x4a9c(0x2d)](_0xdc2a7d,0x1)&&console['log']('🔄\x20Retry\x20attempt\x20'+_0xdc2a7d+'/'+_0x4e13ed[_0x4a9c(0x2e)](_0x39bf89[_0x4a9c(0x20)],0x1));const _0x4ec50e=await _0x4e13ed[_0x4a9c(0x2f)](_0x3fe060);return{'success':!![],'data':_0x4ec50e,'attempts':_0xdc2a7d,'totalDuration':_0x4e13ed[_0x4a9c(0x30)](Date[_0x4a9c(0x25)](),_0x287794)};}}catch(_0x5529a7){if(_0x4e13ed[_0x4a9c(0x2a)](_0x4e13ed[_0x4a9c(0x31)],'DKHRX'))return!![];else{_0x306c35=_0x5529a7;const _0x23aec8=_0x39bf89[_0x4a9c(0x32)]?_0x39bf89[_0x4a9c(0x32)](_0x5529a7,_0xdc2a7d):!![];if(_0x4e13ed[_0x4a9c(0x2d)](_0xdc2a7d,_0x39bf89[_0x4a9c(0x20)])||!_0x23aec8){_0x39bf89['enableLogging']&&console[_0x4a9c(0x33)](_0x4a9c(0x34)+_0x5529a7[_0x4a9c(0x14)]);break;}let _0x18441d=_0x39bf89[_0x4a9c(0x35)];if(_0x39bf89[_0x4a9c(0x36)]){if(_0x4e13ed[_0x4a9c(0x37)]!=='ZGxgj')return![];else _0x18441d=Math[_0x4a9c(0x38)](_0x4e13ed['wBXtc'](_0x39bf89[_0x4a9c(0x35)],Math[_0x4a9c(0x39)](0x2,_0x4e13ed[_0x4a9c(0x3a)](_0xdc2a7d,0x1))),_0x39bf89[_0x4a9c(0x3b)]);}const _0x3bcb39=Math[_0x4a9c(0x3c)]()*0.1*_0x18441d;_0x18441d=Math['floor'](_0x4e13ed[_0x4a9c(0x27)](_0x18441d,_0x3bcb39)),_0x39bf89[_0x4a9c(0x3d)]&&_0x39bf89[_0x4a9c(0x3d)](_0x5529a7,_0xdc2a7d,_0x18441d),_0x39bf89[_0x4a9c(0x2c)]&&console[_0x4a9c(0x3e)](_0x4a9c(0x3f)+_0x18441d+_0x4a9c(0x40)+_0xdc2a7d+'/'+_0x4e13ed[_0x4a9c(0x41)](_0x39bf89[_0x4a9c(0x20)],0x1)+')'),await new Promise(_0x5daf12=>setTimeout(()=>_0x5daf12(),_0x18441d));}}else throw _0x25f9d7[_0x4a9c(0x33)];}return{'success':![],'error':_0x306c35||new Error(_0x4a9c(0x42)),'attempts':_0x4e13ed['ZHBJz'](_0x39bf89[_0x4a9c(0x20)],0x1),'totalDuration':_0x4e13ed[_0x4a9c(0x30)](Date['now'](),_0x287794)};}const API_RETRY_OPTIONS=exports[_0x4a9c(0x4)]={'maxRetries':0x3,'baseDelay':0x3e8,'maxDelay':0x1388,'exponentialBackoff':!![],'shouldRetry':(_0xd31106,_0x5585f4)=>{const _0x22f4a3={'dhUdL':function(_0x22c1ae,_0xf00231){return _0x22c1ae===_0xf00231;},'GGFnv':function(_0x7ab2a8,_0x4eb19a){return _0x7ab2a8===_0x4eb19a;},'sCqaB':function(_0x3e507f,_0x540cc2){return _0x3e507f===_0x540cc2;},'trgZP':_0x4a9c(0x43),'aJIyr':function(_0x18a551,_0x1fe70d){return _0x18a551===_0x1fe70d;},'uvozd':'nXwrY','htiqa':function(_0x4f83fd,_0x2c32fd){return _0x4f83fd===_0x2c32fd;},'FPZJg':function(_0x15687e,_0x3fc9f7){return _0x15687e>=_0x3fc9f7;},'VqgEP':_0x4a9c(0x18),'blmiO':'Network\x20request\x20failed','bwStd':_0x4a9c(0x9),'DgPQx':_0x4a9c(0xb),'cULgK':_0x4a9c(0x44)};if(_0x22f4a3[_0x4a9c(0x45)](_0xd31106[_0x4a9c(0x19)],0x191)||_0xd31106[_0x4a9c(0x19)]===0x193)return![];if(_0x22f4a3['GGFnv'](_0xd31106[_0x4a9c(0x19)],0x190)||_0x22f4a3[_0x4a9c(0x46)](_0xd31106['status'],0x194)&&!_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x22f4a3[_0x4a9c(0x47)]))return _0x22f4a3['aJIyr'](_0x4a9c(0x48),_0x22f4a3['uvozd'])?![]:!![];if(_0x22f4a3[_0x4a9c(0x49)](_0xd31106[_0x4a9c(0x19)],0x1ad))return _0x5585f4<=0x2;if(_0x22f4a3['FPZJg'](_0xd31106['status'],0x1f4))return!![];if(_0xd31106[_0x4a9c(0x4a)]===_0x4a9c(0x4b)||_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x22f4a3[_0x4a9c(0x4c)])||_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x22f4a3['blmiO'])||_0xd31106[_0x4a9c(0x14)]['includes'](_0x22f4a3[_0x4a9c(0x4d)])||_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x4a9c(0xa)))return!![];if(_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x22f4a3[_0x4a9c(0x4e)])||_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x4a9c(0xc))||_0xd31106[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x22f4a3[_0x4a9c(0x4f)]))return!![];return![];},'onRetry':(_0x5a8a95,_0x349346,_0x52ce2a)=>{console[_0x4a9c(0x50)]('⚠️\x20API\x20call\x20failed\x20(attempt\x20'+_0x349346+_0x4a9c(0x51)+_0x52ce2a+_0x4a9c(0x52)+_0x5a8a95[_0x4a9c(0x14)]);}},NETWORK_RETRY_OPTIONS=exports['NETWORK_RETRY_OPTIONS']={'maxRetries':0x2,'baseDelay':0x7d0,'maxDelay':0x1f40,'exponentialBackoff':!![],'shouldRetry':(_0x3501ea,_0x5395d8)=>{const _0x33c1d5={'EMLCh':_0x4a9c(0x53),'yLYVB':_0x4a9c(0xa),'tZxwq':_0x4a9c(0x54),'UJzBQ':function(_0x46a223,_0x497e2f){return _0x46a223===_0x497e2f;},'gzapI':_0x4a9c(0x4b)};return _0x3501ea[_0x4a9c(0x14)]['includes'](_0x33c1d5[_0x4a9c(0x55)])||_0x3501ea[_0x4a9c(0x14)]['includes'](_0x33c1d5[_0x4a9c(0x56)])||_0x3501ea[_0x4a9c(0x14)][_0x4a9c(0x1a)](_0x33c1d5[_0x4a9c(0x57)])||_0x33c1d5[_0x4a9c(0x58)](_0x3501ea[_0x4a9c(0x4a)],_0x33c1d5['gzapI']);}};async function fetchWithRetry(_0x240cdc,_0x4ce5d2={},_0x11c441=API_RETRY_OPTIONS){const _0x3973dc={'HxFpE':function(_0x4558da,_0x263552,_0x48a944){return _0x4558da(_0x263552,_0x48a944);},'ZaFlZ':function(_0x2b44ae,_0x5dc25d){return _0x2b44ae!==_0x5dc25d;},'umAFL':_0x4a9c(0x59),'vpfPg':_0x4a9c(0x5a)},_0x516f2d=await _0x3973dc[_0x4a9c(0x5b)](withRetry,()=>fetch(_0x240cdc,_0x4ce5d2),_0x11c441);if(!_0x516f2d[_0x4a9c(0x5c)]){if(_0x3973dc['ZaFlZ'](_0x3973dc[_0x4a9c(0x5d)],_0x3973dc[_0x4a9c(0x5e)]))throw _0x516f2d['error'];else _0x1d6289[_0x4a9c(0x3d)](_0x472071,_0xc6231c,_0x52d9ed);}return _0x516f2d[_0x4a9c(0x5f)];}async function healthCheck(_0x27dccd,_0x53ed02=0x1388){const _0x5cf4ca={'nOsFd':function(_0x552312,_0x1bb916,_0x598105){return _0x552312(_0x1bb916,_0x598105);},'aTeDT':function(_0x3fc21d,_0x35b319,_0x34280f){return _0x3fc21d(_0x35b319,_0x34280f);},'hNILO':function(_0x4c160e,_0xaf150b){return _0x4c160e(_0xaf150b);},'ZGuWR':function(_0x145635,_0x1c8fee){return _0x145635-_0x1c8fee;}},_0x4debf3=Date[_0x4a9c(0x25)]();try{const _0x2a016c=new AbortController(),_0x4e3141=_0x5cf4ca['nOsFd'](setTimeout,()=>_0x2a016c[_0x4a9c(0x60)](),_0x53ed02),_0x5f2e08=await _0x5cf4ca[_0x4a9c(0x61)](fetch,_0x27dccd,{'method':'GET','signal':_0x2a016c['signal'],'headers':{'User-Agent':_0x4a9c(0x62)}});return _0x5cf4ca[_0x4a9c(0x63)](clearTimeout,_0x4e3141),{'reachable':!![],'status':_0x5f2e08[_0x4a9c(0x19)],'duration':Date['now']()-_0x4debf3};}catch(_0x5b2d29){return{'reachable':![],'error':_0x5b2d29[_0x4a9c(0x14)],'duration':_0x5cf4ca[_0x4a9c(0x64)](Date[_0x4a9c(0x25)](),_0x4debf3)};}}
|
|
1
|
+
'use strict';Object[_0x3bf5(0x0)](exports,_0x3bf5(0x1),{'value':!![]}),exports[_0x3bf5(0x2)]=exports['DEFAULT_RETRY_OPTIONS']=exports[_0x3bf5(0x3)]=void 0x0,exports['fetchWithRetry']=fetchWithRetry,exports[_0x3bf5(0x4)]=healthCheck,exports['withRetry']=withRetry;const DEFAULT_RETRY_OPTIONS=exports[_0x3bf5(0x5)]={'maxRetries':0x3,'baseDelay':0x3e8,'maxDelay':0x1388,'exponentialBackoff':!![],'enableLogging':![],'shouldRetry':(_0x2be71e,_0x37202f)=>{const _0x3aba03={'PVcuu':'Network\x20request\x20failed','iSKAn':_0x3bf5(0x6),'giAIs':_0x3bf5(0x7),'UZRVi':function(_0x2a3108,_0x4ee9be){return _0x2a3108===_0x4ee9be;},'ypNJE':_0x3bf5(0x8),'DgqJl':function(_0x23d82d,_0x1f1096){return _0x23d82d<_0x1f1096;},'uokbg':function(_0x4e65d5,_0x567823){return _0x4e65d5!==_0x567823;},'jnsbt':_0x3bf5(0x9),'aYHjY':_0x3bf5(0xa),'AjCIg':function(_0x23ca44,_0x17bf92){return _0x23ca44===_0x17bf92;},'JVJzM':_0x3bf5(0xb),'rxwlO':_0x3bf5(0xc),'IIUqX':function(_0x375589,_0x19c22c){return _0x375589>=_0x19c22c;},'XrRxf':_0x3bf5(0xd)};if(_0x2be71e['status']>=0x190&&_0x3aba03[_0x3bf5(0xe)](_0x2be71e[_0x3bf5(0xf)],0x1f4)&&_0x3aba03[_0x3bf5(0x10)](_0x2be71e[_0x3bf5(0xf)],0x198)&&_0x2be71e[_0x3bf5(0xf)]!==0x1ad)return _0x3aba03[_0x3bf5(0x11)](_0x3aba03[_0x3bf5(0x12)],_0x3aba03[_0x3bf5(0x13)])?_0x54cb85[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3aba03[_0x3bf5(0x16)])||_0x5d75a9['message'][_0x3bf5(0x15)](_0x3aba03[_0x3bf5(0x17)])||_0x59f625['message'][_0x3bf5(0x15)](_0x3aba03['giAIs'])||_0x3aba03['UZRVi'](_0xc41fa3['name'],_0x3aba03[_0x3bf5(0x18)]):![];if(_0x3aba03['AjCIg'](_0x2be71e[_0x3bf5(0x19)],_0x3aba03[_0x3bf5(0x18)])||_0x2be71e[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3bf5(0x1a))||_0x2be71e[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3aba03[_0x3bf5(0x1b)])||_0x2be71e['message']['includes'](_0x3aba03['iSKAn'])||_0x2be71e[_0x3bf5(0x14)]['includes'](_0x3aba03[_0x3bf5(0x1c)])||_0x3aba03['IIUqX'](_0x2be71e['status'],0x1f4))return!![];if(_0x2be71e['message'][_0x3bf5(0x15)](_0x3bf5(0x1d))||_0x2be71e['message'][_0x3bf5(0x15)](_0x3aba03['XrRxf']))return!![];return![];}};async function withRetry(_0x33b53a,_0x48b063={}){const _0x42af88={'HiaLk':function(_0x4b68df,_0x16e7b4){return _0x4b68df>=_0x16e7b4;},'veNzc':function(_0x360adc,_0x347b2b){return _0x360adc<_0x347b2b;},'mAKrd':function(_0x436511,_0x108b42){return _0x436511!==_0x108b42;},'TCjWN':_0x3bf5(0x8),'hRaiN':_0x3bf5(0x1a),'OeCxK':'fetch','HOhlc':'ENOTFOUND','RHluK':function(_0x1e4443,_0x360869){return _0x1e4443>=_0x360869;},'irJIR':_0x3bf5(0x1d),'deQsa':'Unexpected\x20character','DxbFW':'NitQy','hnlOd':function(_0x59959c,_0x3681e7){return _0x59959c>_0x3681e7;},'fppcx':function(_0x5fac81,_0x5e5c07){return _0x5fac81+_0x5e5c07;},'wxCbX':function(_0x156494){return _0x156494();},'nTWGu':_0x3bf5(0x1e),'DcImf':_0x3bf5(0x1f),'IfNnx':'NFHSJ','IrCCc':function(_0x67e734,_0x389364){return _0x67e734*_0x389364;},'cQNRc':function(_0x4df8e0,_0x7e050c){return _0x4df8e0-_0x7e050c;},'iAolK':function(_0x12ecd4,_0x3433dd){return _0x12ecd4===_0x3433dd;},'FwgUY':_0x3bf5(0x20),'Ywtas':_0x3bf5(0x21),'zxDif':_0x3bf5(0x22)},_0x15fc59={...DEFAULT_RETRY_OPTIONS,..._0x48b063},_0x597c1d=Date[_0x3bf5(0x23)]();let _0x35b6d2=null;for(let _0x5d293a=0x1;_0x5d293a<=_0x15fc59['maxRetries']+0x1;_0x5d293a++){if('NitQy'!==_0x42af88[_0x3bf5(0x24)])return!![];else try{_0x15fc59['enableLogging']&&_0x42af88[_0x3bf5(0x25)](_0x5d293a,0x1)&&console['log'](_0x3bf5(0x26)+_0x5d293a+'/'+_0x42af88[_0x3bf5(0x27)](_0x15fc59['maxRetries'],0x1));const _0xe9c8e2=await _0x42af88[_0x3bf5(0x28)](_0x33b53a);return{'success':!![],'data':_0xe9c8e2,'attempts':_0x5d293a,'totalDuration':Date[_0x3bf5(0x23)]()-_0x597c1d};}catch(_0x4cd250){if(_0x42af88['mAKrd'](_0x42af88[_0x3bf5(0x29)],_0x42af88[_0x3bf5(0x29)]))return![];else{_0x35b6d2=_0x4cd250;const _0x511814=_0x15fc59[_0x3bf5(0x2a)]?_0x15fc59[_0x3bf5(0x2a)](_0x4cd250,_0x5d293a):!![];if(_0x42af88[_0x3bf5(0x25)](_0x5d293a,_0x15fc59[_0x3bf5(0x2b)])||!_0x511814){if(_0x15fc59[_0x3bf5(0x2c)]){if(_0x42af88['mAKrd'](_0x42af88[_0x3bf5(0x2d)],_0x3bf5(0x2e)))console['error'](_0x3bf5(0x2f)+_0x4cd250[_0x3bf5(0x14)]);else{if(_0x42af88[_0x3bf5(0x30)](_0xce0541[_0x3bf5(0xf)],0x190)&&_0x42af88[_0x3bf5(0x31)](_0xcf3fa7['status'],0x1f4)&&_0x42af88['mAKrd'](_0x439db7[_0x3bf5(0xf)],0x198)&&_0x42af88[_0x3bf5(0x32)](_0x5d31cf[_0x3bf5(0xf)],0x1ad))return![];if(_0x4fdc43[_0x3bf5(0x19)]===_0x42af88['TCjWN']||_0x265166[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x42af88[_0x3bf5(0x33)])||_0xc53204[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x42af88[_0x3bf5(0x34)])||_0x4df581['message'][_0x3bf5(0x15)](_0x42af88[_0x3bf5(0x35)])||_0x43e865[_0x3bf5(0x14)][_0x3bf5(0x15)]('timeout')||_0x42af88[_0x3bf5(0x36)](_0x36d1a8[_0x3bf5(0xf)],0x1f4))return!![];if(_0x51e298[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x42af88[_0x3bf5(0x37)])||_0x35af3c[_0x3bf5(0x14)]['includes'](_0x42af88['deQsa']))return!![];return![];}}break;}let _0x44ed43=_0x15fc59['baseDelay'];if(_0x15fc59[_0x3bf5(0x38)]){if(_0x42af88[_0x3bf5(0x32)]('wRaiv',_0x42af88['IfNnx']))_0x44ed43=Math[_0x3bf5(0x39)](_0x42af88[_0x3bf5(0x3a)](_0x15fc59[_0x3bf5(0x3b)],Math[_0x3bf5(0x3c)](0x2,_0x42af88['cQNRc'](_0x5d293a,0x1))),_0x15fc59[_0x3bf5(0x3d)]);else return![];}const _0x3e7303=_0x42af88[_0x3bf5(0x3a)](_0x42af88[_0x3bf5(0x3a)](Math[_0x3bf5(0x3e)](),0.1),_0x44ed43);_0x44ed43=Math[_0x3bf5(0x3f)](_0x42af88[_0x3bf5(0x27)](_0x44ed43,_0x3e7303));if(_0x15fc59['onRetry']){if(_0x42af88[_0x3bf5(0x40)](_0x42af88[_0x3bf5(0x41)],_0x42af88[_0x3bf5(0x42)]))return!![];else _0x15fc59[_0x3bf5(0x43)](_0x4cd250,_0x5d293a,_0x44ed43);}_0x15fc59[_0x3bf5(0x2c)]&&console[_0x3bf5(0x44)](_0x3bf5(0x45)+_0x44ed43+_0x3bf5(0x46)+_0x5d293a+'/'+(_0x15fc59[_0x3bf5(0x2b)]+0x1)+')'),await new Promise(_0x1d1565=>setTimeout(()=>_0x1d1565(),_0x44ed43));}}}return{'success':![],'error':_0x35b6d2||new Error(_0x42af88[_0x3bf5(0x47)]),'attempts':_0x42af88[_0x3bf5(0x27)](_0x15fc59[_0x3bf5(0x2b)],0x1),'totalDuration':_0x42af88[_0x3bf5(0x48)](Date[_0x3bf5(0x23)](),_0x597c1d)};}const API_RETRY_OPTIONS=exports[_0x3bf5(0x3)]={'maxRetries':0x3,'baseDelay':0x3e8,'maxDelay':0x1388,'exponentialBackoff':!![],'shouldRetry':(_0x2fd8db,_0x1fdffb)=>{const _0x3e2ac7={'HpTko':function(_0xbc0374,_0x183986){return _0xbc0374+_0x183986;},'dHgOw':function(_0x565c64,_0x1ce0be){return _0x565c64===_0x1ce0be;},'EbCSA':function(_0x1d1101,_0x47da71){return _0x1d1101===_0x47da71;},'SgZds':function(_0x57ce2e,_0x18bf51){return _0x57ce2e!==_0x18bf51;},'TmovS':'QUPrs','YBFbH':function(_0x2a7fd5,_0x13aaaa){return _0x2a7fd5===_0x13aaaa;},'ehWio':'YVPxg','bVSca':function(_0x2ee9ae,_0x4ca873){return _0x2ee9ae<=_0x4ca873;},'MTgjF':_0x3bf5(0x8),'foDxE':_0x3bf5(0xc),'csVPi':_0x3bf5(0xb),'kippA':'ENOTFOUND','cyNqu':_0x3bf5(0xd),'pYVbU':'HTML\x20page\x20instead\x20of\x20JSON'};if(_0x3e2ac7[_0x3bf5(0x49)](_0x2fd8db['status'],0x191)||_0x3e2ac7['EbCSA'](_0x2fd8db[_0x3bf5(0xf)],0x193)){if(_0x3e2ac7[_0x3bf5(0x4a)](_0x3e2ac7[_0x3bf5(0x4b)],_0x3bf5(0x4c)))return![];else throw _0x553753['error'];}if(_0x3e2ac7[_0x3bf5(0x4d)](_0x2fd8db[_0x3bf5(0xf)],0x190)||_0x3e2ac7[_0x3bf5(0x4e)](_0x2fd8db[_0x3bf5(0xf)],0x194)&&!_0x2fd8db[_0x3bf5(0x14)]['includes'](_0x3bf5(0x4f))){if(_0x3e2ac7[_0x3bf5(0x4d)](_0x3e2ac7[_0x3bf5(0x50)],'iBDoF'))_0x2eb845[_0x3bf5(0x44)](_0x3bf5(0x45)+_0x2cfd47+_0x3bf5(0x46)+_0x4dc49d+'/'+_0x3e2ac7[_0x3bf5(0x51)](_0x5e1333[_0x3bf5(0x2b)],0x1)+')');else return![];}if(_0x2fd8db[_0x3bf5(0xf)]===0x1ad)return _0x3e2ac7[_0x3bf5(0x52)](_0x1fdffb,0x2);if(_0x2fd8db[_0x3bf5(0xf)]>=0x1f4)return!![];if(_0x3e2ac7[_0x3bf5(0x49)](_0x2fd8db['name'],_0x3e2ac7['MTgjF'])||_0x2fd8db['message']['includes'](_0x3e2ac7[_0x3bf5(0x53)])||_0x2fd8db[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3bf5(0x1a))||_0x2fd8db[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3e2ac7[_0x3bf5(0x54)])||_0x2fd8db['message']['includes'](_0x3e2ac7[_0x3bf5(0x55)]))return!![];if(_0x2fd8db[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3bf5(0x1d))||_0x2fd8db[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3e2ac7[_0x3bf5(0x56)])||_0x2fd8db[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3e2ac7[_0x3bf5(0x57)]))return!![];return![];},'onRetry':(_0x439cfb,_0x2aa753,_0x588e1c)=>{console[_0x3bf5(0x58)](_0x3bf5(0x59)+_0x2aa753+_0x3bf5(0x5a)+_0x588e1c+_0x3bf5(0x5b)+_0x439cfb[_0x3bf5(0x14)]);}},NETWORK_RETRY_OPTIONS=exports[_0x3bf5(0x2)]={'maxRetries':0x2,'baseDelay':0x7d0,'maxDelay':0x1f40,'exponentialBackoff':!![],'shouldRetry':(_0x555333,_0x40b280)=>{const _0x5effc9={'EjcfA':_0x3bf5(0x7),'pfANx':function(_0x220772,_0x4be6bb){return _0x220772===_0x4be6bb;},'nctTp':_0x3bf5(0x8)};return _0x555333[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x3bf5(0x1a))||_0x555333[_0x3bf5(0x14)]['includes'](_0x3bf5(0x6))||_0x555333[_0x3bf5(0x14)][_0x3bf5(0x15)](_0x5effc9[_0x3bf5(0x5c)])||_0x5effc9[_0x3bf5(0x5d)](_0x555333[_0x3bf5(0x19)],_0x5effc9[_0x3bf5(0x5e)]);}};function _0x15cd(){const _0x15e4c8=['defineProperty','__esModule','NETWORK_RETRY_OPTIONS','API_RETRY_OPTIONS','healthCheck','DEFAULT_RETRY_OPTIONS','ENOTFOUND','DNS','AbortError','jnYGK','YWjqg','fetch','timeout','Unexpected\x20character','DgqJl','status','uokbg','UZRVi','jnsbt','aYHjY','message','includes','PVcuu','iSKAn','ypNJE','name','Network\x20request\x20failed','JVJzM','rxwlO','JSON\x20Parse\x20error','kvpoD','KTxOr','UZglT','tBswh','Unknown\x20error','now','DxbFW','hnlOd','🔄\x20Retry\x20attempt\x20','fppcx','wxCbX','nTWGu','shouldRetry','maxRetries','enableLogging','DcImf','JzbwD','❌\x20All\x20retry\x20attempts\x20exhausted\x20or\x20error\x20not\x20retryable:\x20','HiaLk','veNzc','mAKrd','hRaiN','OeCxK','HOhlc','RHluK','irJIR','exponentialBackoff','min','IrCCc','baseDelay','pow','maxDelay','random','floor','iAolK','FwgUY','Ywtas','onRetry','log','⏳\x20Waiting\x20','ms\x20before\x20retry\x20(attempt\x20','zxDif','cQNRc','dHgOw','SgZds','TmovS','vkPjK','YBFbH','EbCSA','validation\x20endpoint','ehWio','HpTko','bVSca','foDxE','csVPi','kippA','cyNqu','pYVbU','warn','⚠️\x20API\x20call\x20failed\x20(attempt\x20','),\x20retrying\x20in\x20','ms:\x20','EjcfA','pfANx','nctTp','CJHNL','success','error','OnairosReactNative/HealthCheck','gatPl','abort','signal','LAQmW','fRRQG'];_0x15cd=function(){return _0x15e4c8;};return _0x15cd();}async function fetchWithRetry(_0x273ac6,_0x347cf4={},_0x1e5b15=API_RETRY_OPTIONS){const _0x10bae3={'CJHNL':function(_0x415225,_0x236d57,_0x5d779a){return _0x415225(_0x236d57,_0x5d779a);}},_0x9e1837=await _0x10bae3[_0x3bf5(0x5f)](withRetry,()=>fetch(_0x273ac6,_0x347cf4),_0x1e5b15);if(!_0x9e1837[_0x3bf5(0x60)])throw _0x9e1837[_0x3bf5(0x61)];return _0x9e1837['data'];}function _0x3bf5(_0x15cd0e,_0x3bf59d){_0x15cd0e=_0x15cd0e-0x0;const _0x202c44=_0x15cd();let _0xe4a96a=_0x202c44[_0x15cd0e];return _0xe4a96a;}async function healthCheck(_0x2cdb3d,_0x54b7b9=0x1388){const _0x242ec7={'LAQmW':_0x3bf5(0x62),'fRRQG':_0x3bf5(0x63)},_0x22a0f4=Date[_0x3bf5(0x23)]();try{const _0x83218d=new AbortController(),_0x305f31=setTimeout(()=>_0x83218d[_0x3bf5(0x64)](),_0x54b7b9),_0x4c06f2=await fetch(_0x2cdb3d,{'method':'GET','signal':_0x83218d[_0x3bf5(0x65)],'headers':{'User-Agent':_0x242ec7[_0x3bf5(0x66)]}});return clearTimeout(_0x305f31),{'reachable':!![],'status':_0x4c06f2[_0x3bf5(0xf)],'duration':Date[_0x3bf5(0x23)]()-_0x22a0f4};}catch(_0x2fb27e){if(_0x242ec7[_0x3bf5(0x67)]!==_0x242ec7['fRRQG'])_0xc16865['onRetry'](_0x47533d,_0x3f0031,_0x26b2b2);else return{'reachable':![],'error':_0x2fb27e['message'],'duration':Date[_0x3bf5(0x23)]()-_0x22a0f4};}}
|
|
@@ -7,4 +7,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
7
7
|
require('react-native-keychain')
|
|
8
8
|
];
|
|
9
9
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
-
Object[_0x2890(0x0)](exports,_0x2890(0x1),{'value':!![]}),exports[_0x2890(0x2)]=exports[_0x2890(0x3)]=exports[_0x2890(0x4)]=exports[_0x2890(0x5)]=exports[_0x2890(0x6)]=exports[_0x2890(0x7)]=exports['getJWTPayload']=exports[_0x2890(0x8)]=exports[_0x2890(0x9)]=exports[_0x2890(0xa)]=exports[_0x2890(0xb)]=exports[_0x2890(0xc)]=void 0x0;var _reactNative=__ONAIROS_REQ_FUNC__(0x0),_constants=__ONAIROS_REQ_FUNC__(0x1),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2));function _0x309c(){const _0x13b513=['defineProperty','__esModule','verifyCredentials','updateCredentials','storeCredentials','isJWTExpired','hasJWT','hasCredentials','getJWT','getCredentials','generateDeviceUsername','deleteCredentials','clearJWT','onairos_jwt_token','warn','mock','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','dBPYz','function','nKuaF','ENMVP','length','MKpXn','charAt','indexOf','iDenC','cFyrn','EPLbl','ScoUl','fromCharCode','Udsws','XFAhu','JuujL','getGenericPassword','CabAN','Error\x20checking\x20credentials:','PiCja','default','Fiwbl','ItYLs','jPTpI','EbsSf','pTKdW','yiQKd','bLOpt','service','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','setGenericPassword','WzGrU','dkbhC','EDVTU','resetGenericPassword','gPUce','oPIoH','iJZts','cUIjW','fAeEo','sHBsM','Username\x20is\x20required\x20for\x20storing\x20credentials','web','NMJqg','now','fSaax','aUSXl','hRCst','❌\x20Failed\x20to\x20clear\x20JWT\x20token:','STORAGE_KEYS','credentials','QbVFk','accessControl','ACCESS_CONTROL','BIOMETRY_ANY_OR_DEVICE_PASSCODE','accessible','ACCESSIBLE','WHEN_UNLOCKED','stringify','wVtxT','oxMrF','Error\x20getting\x20credentials:','nOJWz','iassh','password','error','zGySw','viNkD','QmFNh','tBJnt','Error\x20deleting\x20credentials:','tDgMl','CLcly','GPyQL','pVmwB','dvagP','toString','substring','yNSqV','aAWZK','Xycxt','getItem','bbhyS','xmWAS','❌\x20Failed\x20to\x20retrieve\x20JWT\x20token:','❌\x20Failed\x20to\x20check\x20JWT\x20token:','nIwSW','KurCH','removeItem','log','FNRpk','YLgWE','EQeMI','bSTVo','fdHQQ','YRHBj','GotZw','afFfF','XcNrk','POvjZ','waZBZ','jTleG','oFRkN','EnBlF','arWCc','HYOmf','❌\x20Failed\x20to\x20decode\x20JWT\x20payload:','YlRjC','UNSZV','zzQXO','split','lYLUo','parse','vpQpe','HXToV','getJWTPayload','TSHDr','❌\x20Failed\x20to\x20check\x20JWT\x20expiration:','qJVdJ','exp','floor','lrdOl','ziitl','ZKNzM'];_0x309c=function(){return _0x13b513;};return _0x309c();}function _interopRequireDefault(_0x33961c){return _0x33961c&&_0x33961c['__esModule']?_0x33961c:{'default':_0x33961c};}const JWT_TOKEN_KEY=_0x2890(0xd),mockStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x3);}catch(_0x4d4b89){console[_0x2890(0xe)]('react-native-keychain module not available, using mock storage'),Keychain={'ACCESS_CONTROL':{'BIOMETRY_ANY_OR_DEVICE_PASSCODE':_0x2890(0xf)},'ACCESSIBLE':{'WHEN_UNLOCKED':_0x2890(0xf)},'getGenericPassword':async()=>null,'setGenericPassword':async()=>!![],'resetGenericPassword':async()=>!![]};}const isKeychainAvailable=()=>{const _0x1c55fc={'ENMVP':function(_0x128f4c,_0x95206b){return _0x128f4c%_0x95206b;},'MKpXn':_0x2890(0x10),'iDenC':function(_0x42f833,_0x50ab2f){return _0x42f833+_0x50ab2f;},'cFyrn':function(_0x3e6fad,_0x2d065e){return _0x3e6fad+_0x2d065e;},'EPLbl':function(_0x44eabd,_0x39f7d9){return _0x44eabd|_0x39f7d9;},'ScoUl':function(_0x58b3af,_0x1f1602){return _0x58b3af<<_0x1f1602;},'Udsws':function(_0xf4e79c,_0x159cab){return _0xf4e79c&_0x159cab;},'XFAhu':function(_0x5786d9,_0x26956d){return _0x5786d9!==_0x26956d;},'JuujL':function(_0x1e3427,_0x4a4a1d){return _0x1e3427>>_0x4a4a1d;},'nKuaF':_0x2890(0x11),'CabAN':_0x2890(0x12)};try{if(_0x1c55fc['XFAhu'](_0x1c55fc[_0x2890(0x13)],_0x1c55fc[_0x2890(0x13)])){while(_0x1c55fc[_0x2890(0x14)](_0x29c886[_0x2890(0x15)],0x4)){_0x5ca3c4+='=';}const _0x242c8a=_0x1c55fc[_0x2890(0x16)];let _0x5a816e='';for(let _0x4b8276=0x0;_0x4b8276<_0x372af3[_0x2890(0x15)];_0x4b8276+=0x4){const _0x5ed094=_0x242c8a['indexOf'](_0x4e51fe[_0x2890(0x17)](_0x4b8276)),_0x167f6a=_0x242c8a[_0x2890(0x18)](_0x134af5[_0x2890(0x17)](_0x4b8276+0x1)),_0x105852=_0x242c8a[_0x2890(0x18)](_0x142ebc['charAt'](_0x1c55fc[_0x2890(0x19)](_0x4b8276,0x2))),_0x486c2a=_0x242c8a['indexOf'](_0x4a1cad[_0x2890(0x17)](_0x1c55fc[_0x2890(0x1a)](_0x4b8276,0x3))),_0x482f62=_0x1c55fc[_0x2890(0x1b)](_0x1c55fc[_0x2890(0x1b)](_0x1c55fc[_0x2890(0x1b)](_0x1c55fc[_0x2890(0x1c)](_0x5ed094,0x12),_0x1c55fc['ScoUl'](_0x167f6a,0xc)),_0x105852<<0x6),_0x486c2a);_0x5a816e+=_0x53b604[_0x2890(0x1d)](_0x1c55fc[_0x2890(0x1e)](_0x482f62>>0x10,0xff));if(_0x1c55fc[_0x2890(0x1f)](_0x105852,0x40))_0x5a816e+=_0x40a6f7[_0x2890(0x1d)](_0x1c55fc[_0x2890(0x20)](_0x482f62,0x8)&0xff);if(_0x486c2a!==0x40)_0x5a816e+=_0x295f25[_0x2890(0x1d)](_0x482f62&0xff);}return _0x5a816e;}else return Keychain&&typeof Keychain[_0x2890(0x21)]===_0x1c55fc[_0x2890(0x22)];}catch(_0x2b7f6f){return![];}},safeGetGenericPassword=async _0x4d44a1=>{const _0x17d2ac={'jPTpI':_0x2890(0x23),'Fiwbl':function(_0x38a353,_0x5a5889){return _0x38a353===_0x5a5889;},'SOlpY':'ZZvJo','ItYLs':_0x2890(0x24),'EbsSf':function(_0x44c069,_0x8c5b56){return _0x44c069===_0x8c5b56;},'pTKdW':_0x2890(0x25),'yiQKd':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','bLOpt':function(_0x2c9049,_0x5098a4){return _0x2c9049===_0x5098a4;}};try{if(isKeychainAvailable())return _0x17d2ac[_0x2890(0x26)](_0x17d2ac['SOlpY'],_0x17d2ac[_0x2890(0x27)])?(_0x1d2e0e['error'](_0x17d2ac[_0x2890(0x28)],_0x448e87),![]):await Keychain['getGenericPassword'](_0x4d44a1);else{const _0x59ab93=(_0x17d2ac[_0x2890(0x29)](_0x4d44a1,null)||_0x17d2ac[_0x2890(0x29)](_0x4d44a1,void 0x0)?void 0x0:_0x4d44a1['service'])||_0x17d2ac[_0x2890(0x2a)];return mockStorage[_0x59ab93]||null;}}catch(_0x82ba6a){console[_0x2890(0xe)](_0x17d2ac[_0x2890(0x2b)],_0x82ba6a);const _0x2dbb0e=(_0x17d2ac[_0x2890(0x2c)](_0x4d44a1,null)||_0x17d2ac[_0x2890(0x29)](_0x4d44a1,void 0x0)?void 0x0:_0x4d44a1[_0x2890(0x2d)])||_0x17d2ac[_0x2890(0x2a)];return mockStorage[_0x2dbb0e]||null;}},safeSetGenericPassword=async(_0x1a0a7f,_0x4b906b,_0x448507)=>{const _0x33f8c8={'kLXFh':function(_0x2cba7a){return _0x2cba7a();},'WzGrU':function(_0x52ca4e,_0x2616b3){return _0x52ca4e===_0x2616b3;},'dkbhC':_0x2890(0x2e),'EDVTU':'default'};try{if(_0x33f8c8['kLXFh'](isKeychainAvailable))return await Keychain[_0x2890(0x2f)](_0x1a0a7f,_0x4b906b,_0x448507);else{const _0x281074=(_0x33f8c8[_0x2890(0x30)](_0x448507,null)||_0x33f8c8[_0x2890(0x30)](_0x448507,void 0x0)?void 0x0:_0x448507['service'])||_0x2890(0x25);return mockStorage[_0x281074]={'username':_0x1a0a7f,'password':_0x4b906b},!![];}}catch(_0xa85a79){console[_0x2890(0xe)](_0x33f8c8[_0x2890(0x31)],_0xa85a79);const _0x210bc1=(_0x33f8c8[_0x2890(0x30)](_0x448507,null)||_0x448507===void 0x0?void 0x0:_0x448507[_0x2890(0x2d)])||_0x33f8c8[_0x2890(0x32)];return mockStorage[_0x210bc1]={'username':_0x1a0a7f,'password':_0x4b906b},!![];}},safeResetGenericPassword=async _0x20737d=>{const _0x1fed0d={'YHVom':function(_0x9add62){return _0x9add62();},'gPUce':function(_0x349c09,_0x47a1ea){return _0x349c09===_0x47a1ea;},'oPIoH':function(_0x4b6df9,_0x2dc350){return _0x4b6df9===_0x2dc350;},'iJZts':_0x2890(0x2e),'cUIjW':function(_0x1ca5f8,_0x3f0635){return _0x1ca5f8===_0x3f0635;},'fAeEo':'default'};try{if(_0x1fed0d['YHVom'](isKeychainAvailable))return await Keychain[_0x2890(0x33)](_0x20737d);else{const _0x2285ba=(_0x1fed0d[_0x2890(0x34)](_0x20737d,null)||_0x1fed0d[_0x2890(0x35)](_0x20737d,void 0x0)?void 0x0:_0x20737d[_0x2890(0x2d)])||_0x2890(0x25);return delete mockStorage[_0x2285ba],!![];}}catch(_0xaaadaa){console[_0x2890(0xe)](_0x1fed0d[_0x2890(0x36)],_0xaaadaa);const _0x56ba88=(_0x1fed0d[_0x2890(0x35)](_0x20737d,null)||_0x1fed0d[_0x2890(0x37)](_0x20737d,void 0x0)?void 0x0:_0x20737d[_0x2890(0x2d)])||_0x1fed0d[_0x2890(0x38)];return delete mockStorage[_0x56ba88],!![];}},storeCredentials=async _0x47d524=>{const _0x6cc2a3={'NMJqg':function(_0x1b145b){return _0x1b145b();},'PirJm':function(_0x998529,_0x418f8e){return _0x998529===_0x418f8e;},'fSaax':function(_0x578290,_0x39d7e1){return _0x578290!==_0x39d7e1;},'aUSXl':_0x2890(0x39),'NkoGt':_0x2890(0x3a),'QbVFk':function(_0x2ebdae,_0x30e733){return _0x2ebdae!==_0x30e733;},'meFbe':_0x2890(0x3b),'wWOvH':function(_0x1447bc,_0x14e172,_0x31b3e2,_0x164007){return _0x1447bc(_0x14e172,_0x31b3e2,_0x164007);},'wVtxT':'Error\x20storing\x20credentials:'};try{const _0xf6d15b=await _0x6cc2a3[_0x2890(0x3c)](getCredentials),_0x3b5e72={..._0xf6d15b,..._0x47d524,'createdAt':(_0xf6d15b===null||_0x6cc2a3['PirJm'](_0xf6d15b,void 0x0)?void 0x0:_0xf6d15b['createdAt'])||Date[_0x2890(0x3d)]()},_0x327774=_0x3b5e72['username'];if(!_0x327774){if(_0x6cc2a3[_0x2890(0x3e)](_0x6cc2a3[_0x2890(0x3f)],_0x2890(0x40)))throw new Error(_0x6cc2a3['NkoGt']);else return _0x5c0d67['error'](_0x2890(0x41),_0x3cfebb),![];}const _0x5dc94e={'service':_constants[_0x2890(0x42)][_0x2890(0x43)]};return _0x6cc2a3[_0x2890(0x44)](_reactNative['Platform']['OS'],_0x6cc2a3['meFbe'])&&_0x6cc2a3[_0x2890(0x3c)](isKeychainAvailable)&&(_0x5dc94e[_0x2890(0x45)]=Keychain[_0x2890(0x46)][_0x2890(0x47)],_0x5dc94e[_0x2890(0x48)]=Keychain[_0x2890(0x49)][_0x2890(0x4a)]),await _0x6cc2a3['wWOvH'](safeSetGenericPassword,_0x327774,JSON[_0x2890(0x4b)](_0x3b5e72),_0x5dc94e),!![];}catch(_0x1cc72a){return console['error'](_0x6cc2a3[_0x2890(0x4c)],_0x1cc72a),![];}};exports[_0x2890(0x4)]=storeCredentials;const getCredentials=async()=>{const _0x2ea199={'nOJWz':function(_0x5ef59a,_0x31e66f){return _0x5ef59a(_0x31e66f);},'VDrbA':function(_0x28860a,_0x4f3403){return _0x28860a===_0x4f3403;},'iassh':_0x2890(0x4d),'zGySw':_0x2890(0x4e)};try{const _0x278745=await _0x2ea199[_0x2890(0x4f)](safeGetGenericPassword,{'service':_constants['STORAGE_KEYS']['credentials']});if(_0x278745){if(_0x2ea199['VDrbA']('UXPFo',_0x2ea199[_0x2890(0x50)]))_0x4a96d6[_0x2890(0x45)]=Keychain[_0x2890(0x46)][_0x2890(0x47)],_0x69f84e[_0x2890(0x48)]=Keychain[_0x2890(0x49)]['WHEN_UNLOCKED'];else return JSON['parse'](_0x278745[_0x2890(0x51)]);}return null;}catch(_0xe0ac8b){return console[_0x2890(0x52)](_0x2ea199[_0x2890(0x53)],_0xe0ac8b),null;}};function _0x2890(_0x309c31,_0x289095){_0x309c31=_0x309c31-0x0;const _0x335ed3=_0x309c();let _0x2e70a5=_0x335ed3[_0x309c31];return _0x2e70a5;}exports[_0x2890(0x9)]=getCredentials;const hasCredentials=async()=>{const _0x131832={'JOARG':_0x2890(0x23)};try{const _0x46e2a6=await safeGetGenericPassword({'service':_constants[_0x2890(0x42)]['credentials']});return!!_0x46e2a6;}catch(_0x2d2645){return console[_0x2890(0x52)](_0x131832['JOARG'],_0x2d2645),![];}};exports['hasCredentials']=hasCredentials;const deleteCredentials=async()=>{const _0x5609db={'tDgMl':function(_0x180da5,_0x46640b){return _0x180da5!==_0x46640b;},'CQgas':_0x2890(0x54),'CLcly':_0x2890(0x55),'GPyQL':function(_0x26b356,_0xc9c15b){return _0x26b356(_0xc9c15b);},'pVmwB':function(_0x195f14,_0x3c4a4e){return _0x195f14===_0x3c4a4e;},'bUXUR':_0x2890(0x56),'dvagP':_0x2890(0x57)};try{return _0x5609db[_0x2890(0x58)](_0x5609db['CQgas'],_0x5609db[_0x2890(0x59)])?(await _0x5609db[_0x2890(0x5a)](safeResetGenericPassword,{'service':_constants['STORAGE_KEYS'][_0x2890(0x43)]}),!![]):_0x1fff8a(_0x1d700b);}catch(_0x18a5a8){if(_0x5609db[_0x2890(0x5b)](_0x2890(0x56),_0x5609db['bUXUR']))return console['error'](_0x5609db[_0x2890(0x5c)],_0x18a5a8),![];else Keychain=_0x42118c(0x3);}};exports[_0x2890(0xb)]=deleteCredentials;const updateCredentials=async _0x4c66ae=>{const _0xa875c9={'KcfYU':function(_0x5de5f5,_0x292427){return _0x5de5f5(_0x292427);}};return _0xa875c9['KcfYU'](storeCredentials,_0x4c66ae);};exports[_0x2890(0x3)]=updateCredentials;const generateDeviceUsername=()=>{const _0x114d20=Math['random']()[_0x2890(0x5d)](0x24)[_0x2890(0x5e)](0x2,0xa);return'dev_'+_0x114d20;};exports[_0x2890(0xa)]=generateDeviceUsername;const verifyCredentials=async _0x1bb9a1=>{const _0x1d8e12={'yNSqV':function(_0xca11e0){return _0xca11e0();},'aAWZK':'Error\x20verifying\x20credentials:'};try{if(!_0x1d8e12[_0x2890(0x5f)](isKeychainAvailable))return!![];return!![];}catch(_0x35c652){return console[_0x2890(0x52)](_0x1d8e12[_0x2890(0x60)],_0x35c652),![];}};exports[_0x2890(0x2)]=verifyCredentials;const getJWT=async()=>{const _0x217031={'xmWAS':_0x2890(0x4e),'NIuNB':_0x2890(0x61)};try{const _0x411246=await _asyncStorage['default'][_0x2890(0x62)](JWT_TOKEN_KEY);return _0x411246;}catch(_0x5c1839){return _0x2890(0x63)===_0x217031['NIuNB']?(_0x1e1f5a[_0x2890(0x52)](_0x217031[_0x2890(0x64)],_0x2f6d4b),null):(console[_0x2890(0x52)](_0x2890(0x65),_0x5c1839),null);}};exports[_0x2890(0x8)]=getJWT;const hasJWT=async()=>{const _0x3a7f93={'nIwSW':_0x2890(0x66)};try{const _0x54f91b=await _asyncStorage['default'][_0x2890(0x62)](JWT_TOKEN_KEY);return!!_0x54f91b;}catch(_0x2d42ce){return console[_0x2890(0x52)](_0x3a7f93[_0x2890(0x67)],_0x2d42ce),![];}};exports[_0x2890(0x6)]=hasJWT;const clearJWT=async()=>{const _0x560a7d={'FNRpk':'🗑️\x20JWT\x20token\x20cleared','YLgWE':_0x2890(0x68)};try{return await _asyncStorage['default'][_0x2890(0x69)](JWT_TOKEN_KEY),console[_0x2890(0x6a)](_0x560a7d[_0x2890(0x6b)]),!![];}catch(_0x5c4eb6){return _0x560a7d[_0x2890(0x6c)]!==_0x2890(0x68)?(_0x58f069[_0x2890(0x52)](_0x2890(0x65),_0x476cfe),null):(console[_0x2890(0x52)](_0x2890(0x41),_0x5c4eb6),![]);}};exports[_0x2890(0xc)]=clearJWT;const base64Decode=_0x5ae8b5=>{const _0x59c1dc={'YRHBj':'❌\x20Failed\x20to\x20decode\x20JWT\x20payload:','HGXMf':function(_0x359eca,_0x5f185c){return _0x359eca%_0x5f185c;},'bSTVo':function(_0x3d72f5,_0x882eb9){return _0x3d72f5===_0x882eb9;},'fdHQQ':_0x2890(0x6d),'GotZw':_0x2890(0x10),'afFfF':function(_0x47a509,_0x121393){return _0x47a509<_0x121393;},'toLqn':function(_0x14109f,_0x54d2a8){return _0x14109f+_0x54d2a8;},'XcNrk':function(_0x1d3b06,_0x6e1cad){return _0x1d3b06+_0x6e1cad;},'POvjZ':function(_0x17cff0,_0x232a18){return _0x17cff0|_0x232a18;},'zhktl':function(_0x59b917,_0x26d013){return _0x59b917<<_0x26d013;},'waZBZ':function(_0x41b2e3,_0x11f33c){return _0x41b2e3<<_0x11f33c;},'jTleG':function(_0x502464,_0x1a5c14){return _0x502464<<_0x1a5c14;},'euVGD':function(_0x1c7051,_0x200574){return _0x1c7051&_0x200574;},'oFRkN':function(_0x525513,_0x55b3c8){return _0x525513!==_0x55b3c8;},'EnBlF':function(_0x1df36a,_0x552923){return _0x1df36a>>_0x552923;},'arWCc':function(_0x518ee1,_0x4ec6e3){return _0x518ee1!==_0x4ec6e3;}};while(_0x59c1dc['HGXMf'](_0x5ae8b5[_0x2890(0x15)],0x4)){if(_0x59c1dc[_0x2890(0x6e)](_0x59c1dc[_0x2890(0x6f)],'klvyD'))return _0x46d9c1[_0x2890(0x52)](_0x59c1dc[_0x2890(0x70)],_0x117c30),null;else _0x5ae8b5+='=';}const _0x48fec5=_0x59c1dc[_0x2890(0x71)];let _0x2e239f='';for(let _0x334fa7=0x0;_0x59c1dc[_0x2890(0x72)](_0x334fa7,_0x5ae8b5[_0x2890(0x15)]);_0x334fa7+=0x4){const _0x46b986=_0x48fec5[_0x2890(0x18)](_0x5ae8b5[_0x2890(0x17)](_0x334fa7)),_0x1e0aa5=_0x48fec5[_0x2890(0x18)](_0x5ae8b5[_0x2890(0x17)](_0x334fa7+0x1)),_0x853cd9=_0x48fec5[_0x2890(0x18)](_0x5ae8b5[_0x2890(0x17)](_0x59c1dc['toLqn'](_0x334fa7,0x2))),_0x582337=_0x48fec5[_0x2890(0x18)](_0x5ae8b5[_0x2890(0x17)](_0x59c1dc[_0x2890(0x73)](_0x334fa7,0x3))),_0xdce824=_0x59c1dc[_0x2890(0x74)](_0x59c1dc[_0x2890(0x74)](_0x59c1dc['zhktl'](_0x46b986,0x12),_0x59c1dc[_0x2890(0x75)](_0x1e0aa5,0xc)),_0x59c1dc[_0x2890(0x76)](_0x853cd9,0x6))|_0x582337;_0x2e239f+=String[_0x2890(0x1d)](_0x59c1dc['euVGD'](_0xdce824>>0x10,0xff));if(_0x59c1dc[_0x2890(0x77)](_0x853cd9,0x40))_0x2e239f+=String['fromCharCode'](_0x59c1dc['euVGD'](_0x59c1dc[_0x2890(0x78)](_0xdce824,0x8),0xff));if(_0x59c1dc[_0x2890(0x79)](_0x582337,0x40))_0x2e239f+=String['fromCharCode'](_0xdce824&0xff);}return _0x2e239f;},getJWTPayload=async()=>{const _0x577dd7={'vpQpe':function(_0x4d2b70,_0x431d44){return _0x4d2b70===_0x431d44;},'YlRjC':_0x2890(0x7a),'UNSZV':'XAAaA','zzQXO':function(_0x32fc5f){return _0x32fc5f();},'lYLUo':function(_0x4b6a17,_0x4d6997){return _0x4b6a17!==_0x4d6997;},'FrlQO':function(_0x170f47,_0x15df14){return _0x170f47(_0x15df14);},'HXToV':_0x2890(0x7b)};try{if(_0x577dd7[_0x2890(0x7c)]!==_0x577dd7[_0x2890(0x7d)]){const _0x2d1334=await _0x577dd7[_0x2890(0x7e)](getJWT);if(!_0x2d1334)return null;const _0x6b7b63=_0x2d1334[_0x2890(0x7f)]('.');if(_0x577dd7[_0x2890(0x80)](_0x6b7b63[_0x2890(0x15)],0x3))return null;const _0x1f55cf=_0x577dd7['FrlQO'](base64Decode,_0x6b7b63[0x1]),_0x529638=JSON[_0x2890(0x81)](_0x1f55cf);return _0x529638;}else{const _0x2f254a=(_0x577dd7[_0x2890(0x82)](_0x2210da,null)||_0x577dd7[_0x2890(0x82)](_0x2c8d25,void 0x0)?void 0x0:_0x1202f3[_0x2890(0x2d)])||_0x2890(0x25);return delete _0x206fc7[_0x2f254a],!![];}}catch(_0x1e4908){return console[_0x2890(0x52)](_0x577dd7[_0x2890(0x83)],_0x1e4908),null;}};exports[_0x2890(0x84)]=getJWTPayload;const isJWTExpired=async()=>{const _0x4633f0={'ziitl':_0x2890(0x3a),'qJVdJ':function(_0x18f34b){return _0x18f34b();},'DnnoY':function(_0x3668de,_0x106c86){return _0x3668de/_0x106c86;},'Dszgq':function(_0x38fc22,_0x7f4c89){return _0x38fc22===_0x7f4c89;},'lrdOl':_0x2890(0x85),'ZKNzM':_0x2890(0x86)};try{const _0x69fc46=await _0x4633f0[_0x2890(0x87)](getJWTPayload);if(!_0x69fc46||!_0x69fc46[_0x2890(0x88)])return!![];const _0x27e7c4=Math[_0x2890(0x89)](_0x4633f0['DnnoY'](Date[_0x2890(0x3d)](),0x3e8));return _0x69fc46[_0x2890(0x88)]<_0x27e7c4;}catch(_0x9d9fce){if(_0x4633f0['Dszgq']('IQoaG',_0x4633f0[_0x2890(0x8a)]))throw new _0x197d24(_0x4633f0[_0x2890(0x8b)]);else return console[_0x2890(0x52)](_0x4633f0[_0x2890(0x8c)],_0x9d9fce),!![];}};exports[_0x2890(0x5)]=isJWTExpired;
|
|
10
|
+
Object[_0x1f1c(0x0)](exports,_0x1f1c(0x1),{'value':!![]}),exports[_0x1f1c(0x2)]=exports[_0x1f1c(0x3)]=exports[_0x1f1c(0x4)]=exports[_0x1f1c(0x5)]=exports['hasJWT']=exports['hasCredentials']=exports[_0x1f1c(0x6)]=exports[_0x1f1c(0x7)]=exports[_0x1f1c(0x8)]=exports[_0x1f1c(0x9)]=exports[_0x1f1c(0xa)]=exports[_0x1f1c(0xb)]=void 0x0;var _reactNative=__ONAIROS_REQ_FUNC__(0x0),_constants=__ONAIROS_REQ_FUNC__(0x1),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x2));function _interopRequireDefault(_0x3688b7){return _0x3688b7&&_0x3688b7[_0x1f1c(0x1)]?_0x3688b7:{'default':_0x3688b7};}function _0x1f1c(_0x3e3b2c,_0x1f1c05){_0x3e3b2c=_0x3e3b2c-0x0;const _0x9c3326=_0x3e3b();let _0x4553a9=_0x9c3326[_0x3e3b2c];return _0x4553a9;}const JWT_TOKEN_KEY=_0x1f1c(0xc),mockStorage={};function _0x3e3b(){const _0x594dc5=['defineProperty','__esModule','verifyCredentials','updateCredentials','storeCredentials','isJWTExpired','getJWTPayload','getJWT','getCredentials','generateDeviceUsername','deleteCredentials','clearJWT','onairos_jwt_token','warn','mock','kHMOU','vyJQf','uXuJU','getGenericPassword','lTmLr','length','fMGpt','indexOf','charAt','LttWq','rMrHI','kpHtg','TZUyb','fromCharCode','GUZii','uJuZd','pHgmT','soKnR','zsWNc','service','nfueA','zBYWs','nKtAt','❌\x20Failed\x20to\x20clear\x20JWT\x20token:','fBoYg','default','qQtZV','VwvbO','error','qSlzM','shtYQ','JAyPZ','AYRtj','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','qJgXJ','resetGenericPassword','uwGkA','iRDSq','kEzoC','Error\x20getting\x20credentials:','OZvbB','Cwnca','Username\x20is\x20required\x20for\x20storing\x20credentials','web','xcPKu','Error\x20storing\x20credentials:','vRuCQ','accessControl','ACCESS_CONTROL','WHEN_UNLOCKED','rSzVE','QPuoS','createdAt','now','username','BUuqb','nRHkT','STORAGE_KEYS','credentials','olJCM','GOcmV','qUsiO','vDWTT','jTXLd','QaCFu','BIOMETRY_ANY_OR_DEVICE_PASSCODE','accessible','wSdjN','stringify','yXKnX','Error\x20verifying\x20credentials:','cywVt','ooLhH','UdjFs','uRleO','parse','password','fNyvE','QJHCO','xLIWr','ptUkC','vztHH','hasCredentials','GtEAB','smxGz','MAZMk','CIsec','PTDSj','zphRU','Error\x20deleting\x20credentials:','random','substring','dev_','SAKjR','hWWDl','POeQF','DRWKq','VeywU','PeFKq','❌\x20Failed\x20to\x20retrieve\x20JWT\x20token:','bclMl','RvBma','getItem','ereZL','HRABj','fXhva','❌\x20Failed\x20to\x20check\x20JWT\x20token:','XYvwN','bktRk','uHIRR','hasJWT','🗑️\x20JWT\x20token\x20cleared','mqIvG','WyJRf','QAqyM','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','riFBp','rhENh','RLqhX','lCLRp','SbbBe','RocLo','eVoBK','nkTSV','❌\x20Failed\x20to\x20decode\x20JWT\x20payload:','split','ljvxW','bblsn','❌\x20Failed\x20to\x20check\x20JWT\x20expiration:','DBjdn','exp','floor','RbOYD','ZdBIp','rkhfV','vGSHh','GvZyb','IwMRK','HLfyf'];_0x3e3b=function(){return _0x594dc5;};return _0x3e3b();}let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x3);}catch(_0x1d40ce){console[_0x1f1c(0xd)]('react-native-keychain module not available, using mock storage'),Keychain={'ACCESS_CONTROL':{'BIOMETRY_ANY_OR_DEVICE_PASSCODE':_0x1f1c(0xe)},'ACCESSIBLE':{'WHEN_UNLOCKED':'mock'},'getGenericPassword':async()=>null,'setGenericPassword':async()=>!![],'resetGenericPassword':async()=>!![]};}const isKeychainAvailable=()=>{const _0x4978e1={'fMGpt':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','JqbZY':function(_0x2f6a23,_0x1f9aae){return _0x2f6a23+_0x1f9aae;},'LttWq':function(_0x50fc73,_0x4b9d20){return _0x50fc73|_0x4b9d20;},'rMrHI':function(_0x51db4b,_0x330660){return _0x51db4b|_0x330660;},'kpHtg':function(_0x58c3d3,_0xdfac81){return _0x58c3d3<<_0xdfac81;},'TZUyb':function(_0x1d9faf,_0x38b8ff){return _0x1d9faf<<_0x38b8ff;},'GUZii':function(_0x34fa48,_0x224570){return _0x34fa48>>_0x224570;},'dlxWn':function(_0xe1321e,_0x4c66b0){return _0xe1321e!==_0x4c66b0;},'HplNp':function(_0x573387,_0x29cb93){return _0x573387>>_0x29cb93;},'vyJQf':function(_0x1134fe,_0xda1cab){return _0x1134fe===_0xda1cab;},'uXuJU':_0x1f1c(0xf),'etPQA':function(_0x53964d,_0x58c5c8){return _0x53964d===_0x58c5c8;},'lTmLr':'function'};try{if(_0x4978e1[_0x1f1c(0x10)](_0x4978e1[_0x1f1c(0x11)],_0x4978e1['uXuJU']))return Keychain&&_0x4978e1['etPQA'](typeof Keychain[_0x1f1c(0x12)],_0x4978e1[_0x1f1c(0x13)]);else{while(_0x3d7a34[_0x1f1c(0x14)]%0x4){_0xe1cc25+='=';}const _0x778956=_0x4978e1[_0x1f1c(0x15)];let _0x49d71c='';for(let _0x40f3c6=0x0;_0x40f3c6<_0x366ce7[_0x1f1c(0x14)];_0x40f3c6+=0x4){const _0x7edcc5=_0x778956[_0x1f1c(0x16)](_0x397061[_0x1f1c(0x17)](_0x40f3c6)),_0x42d026=_0x778956[_0x1f1c(0x16)](_0x1f7dd7[_0x1f1c(0x17)](_0x4978e1['JqbZY'](_0x40f3c6,0x1))),_0xe3aae7=_0x778956[_0x1f1c(0x16)](_0x2cdf60[_0x1f1c(0x17)](_0x4978e1['JqbZY'](_0x40f3c6,0x2))),_0x46ddf5=_0x778956['indexOf'](_0x48d62b[_0x1f1c(0x17)](_0x4978e1['JqbZY'](_0x40f3c6,0x3))),_0x175f10=_0x4978e1[_0x1f1c(0x18)](_0x4978e1[_0x1f1c(0x19)](_0x4978e1[_0x1f1c(0x1a)](_0x7edcc5,0x12)|_0x4978e1[_0x1f1c(0x1a)](_0x42d026,0xc),_0x4978e1[_0x1f1c(0x1b)](_0xe3aae7,0x6)),_0x46ddf5);_0x49d71c+=_0x5722a7[_0x1f1c(0x1c)](_0x4978e1[_0x1f1c(0x1d)](_0x175f10,0x10)&0xff);if(_0x4978e1['dlxWn'](_0xe3aae7,0x40))_0x49d71c+=_0x4e9847[_0x1f1c(0x1c)](_0x4978e1['HplNp'](_0x175f10,0x8)&0xff);if(_0x46ddf5!==0x40)_0x49d71c+=_0x5c73c4['fromCharCode'](_0x175f10&0xff);}return _0x49d71c;}}catch(_0x56f5b4){return![];}},safeGetGenericPassword=async _0x130b6f=>{const _0x17a604={'nfueA':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','zsWNc':function(_0x37c8e7,_0x32bb99){return _0x37c8e7===_0x32bb99;},'nKtAt':'default','uJuZd':'icrSr','oRCFq':function(_0x3304bb){return _0x3304bb();},'soKnR':function(_0x3d818a,_0x3ba12c){return _0x3d818a===_0x3ba12c;},'zBYWs':function(_0x577342,_0x3ead5d){return _0x577342===_0x3ead5d;},'jmPWM':function(_0x5dd0b3,_0x4d2e9c){return _0x5dd0b3===_0x4d2e9c;}};try{if(_0x17a604['zsWNc'](_0x17a604[_0x1f1c(0x1e)],_0x17a604[_0x1f1c(0x1e)])){if(_0x17a604['oRCFq'](isKeychainAvailable))return _0x17a604['soKnR']('pHgmT',_0x1f1c(0x1f))?await Keychain[_0x1f1c(0x12)](_0x130b6f):!![];else{const _0x11e31b=(_0x17a604[_0x1f1c(0x20)](_0x130b6f,null)||_0x17a604[_0x1f1c(0x21)](_0x130b6f,void 0x0)?void 0x0:_0x130b6f[_0x1f1c(0x22)])||_0x17a604['nKtAt'];return mockStorage[_0x11e31b]||null;}}else{_0xdca6c7[_0x1f1c(0xd)](_0x17a604['nfueA'],_0x3d66d7);const _0x3f4d2b=(_0x17a604[_0x1f1c(0x21)](_0x39059d,null)||_0x17a604[_0x1f1c(0x21)](_0xc3670b,void 0x0)?void 0x0:_0x31cb0d[_0x1f1c(0x22)])||_0x17a604['nKtAt'];return _0x462f95[_0x3f4d2b]||null;}}catch(_0x3e4d2c){console['warn'](_0x17a604[_0x1f1c(0x23)],_0x3e4d2c);const _0x3f5046=(_0x17a604[_0x1f1c(0x24)](_0x130b6f,null)||_0x17a604['jmPWM'](_0x130b6f,void 0x0)?void 0x0:_0x130b6f['service'])||_0x17a604[_0x1f1c(0x25)];return mockStorage[_0x3f5046]||null;}},safeSetGenericPassword=async(_0x540e7f,_0x2f6f37,_0x23a968)=>{const _0x8fbc85={'aZwTz':_0x1f1c(0x26),'qQtZV':function(_0x53ef0f,_0xd4274e){return _0x53ef0f!==_0xd4274e;},'VwvbO':_0x1f1c(0x27),'qSlzM':function(_0x28fd24,_0x3d6f79){return _0x28fd24===_0x3d6f79;},'shtYQ':function(_0xb452fc,_0x56dba4){return _0xb452fc===_0x56dba4;},'JAyPZ':_0x1f1c(0x28),'AYRtj':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage'};try{if(isKeychainAvailable())return await Keychain['setGenericPassword'](_0x540e7f,_0x2f6f37,_0x23a968);else{if(_0x8fbc85[_0x1f1c(0x29)](_0x1f1c(0x27),_0x8fbc85[_0x1f1c(0x2a)]))return _0x265344[_0x1f1c(0x2b)](_0x8fbc85['aZwTz'],_0x2b4f7f),![];else{const _0xdde5c9=(_0x8fbc85[_0x1f1c(0x2c)](_0x23a968,null)||_0x8fbc85[_0x1f1c(0x2d)](_0x23a968,void 0x0)?void 0x0:_0x23a968[_0x1f1c(0x22)])||_0x8fbc85[_0x1f1c(0x2e)];return mockStorage[_0xdde5c9]={'username':_0x540e7f,'password':_0x2f6f37},!![];}}}catch(_0x129e88){console[_0x1f1c(0xd)](_0x8fbc85[_0x1f1c(0x2f)],_0x129e88);const _0x1a4042=(_0x23a968===null||_0x23a968===void 0x0?void 0x0:_0x23a968[_0x1f1c(0x22)])||_0x8fbc85[_0x1f1c(0x2e)];return mockStorage[_0x1a4042]={'username':_0x540e7f,'password':_0x2f6f37},!![];}},safeResetGenericPassword=async _0xefb228=>{const _0x2944a9={'qJgXJ':function(_0x145eee){return _0x145eee();},'uwGkA':function(_0x4cda26,_0x4f4524){return _0x4cda26===_0x4f4524;},'iRDSq':_0x1f1c(0x30),'kEzoC':_0x1f1c(0x28)};try{if(_0x2944a9[_0x1f1c(0x31)](isKeychainAvailable))return await Keychain[_0x1f1c(0x32)](_0xefb228);else{const _0x111bed=(_0xefb228===null||_0x2944a9[_0x1f1c(0x33)](_0xefb228,void 0x0)?void 0x0:_0xefb228[_0x1f1c(0x22)])||'default';return delete mockStorage[_0x111bed],!![];}}catch(_0x33fe64){console[_0x1f1c(0xd)](_0x2944a9[_0x1f1c(0x34)],_0x33fe64);const _0x3e9fa9=(_0x2944a9[_0x1f1c(0x33)](_0xefb228,null)||_0x2944a9[_0x1f1c(0x33)](_0xefb228,void 0x0)?void 0x0:_0xefb228['service'])||_0x2944a9[_0x1f1c(0x35)];return delete mockStorage[_0x3e9fa9],!![];}},storeCredentials=async _0x27583d=>{const _0xdfd0e6={'hGOOn':_0x1f1c(0x36),'jTXLd':function(_0x1d309a,_0x3f6cc6){return _0x1d309a===_0x3f6cc6;},'QaCFu':'default','OKrsn':_0x1f1c(0x37),'rSzVE':function(_0x3bcee6){return _0x3bcee6();},'QPuoS':function(_0x35ea1c,_0x4e0aa8){return _0x35ea1c===_0x4e0aa8;},'BUuqb':_0x1f1c(0x38),'nRHkT':_0x1f1c(0x39),'olJCM':function(_0xc01cce,_0x424311){return _0xc01cce!==_0x424311;},'GOcmV':_0x1f1c(0x3a),'ktAzI':function(_0x334fea,_0x43720c){return _0x334fea===_0x43720c;},'qUsiO':_0x1f1c(0x3b),'wSdjN':function(_0x519ce5,_0x4b6f40,_0x389911,_0xef465){return _0x519ce5(_0x4b6f40,_0x389911,_0xef465);},'yXKnX':_0x1f1c(0x3c)};try{if(_0x1f1c(0x3d)===_0xdfd0e6['OKrsn'])_0x168909[_0x1f1c(0x3e)]=Keychain[_0x1f1c(0x3f)]['BIOMETRY_ANY_OR_DEVICE_PASSCODE'],_0x56a060['accessible']=Keychain['ACCESSIBLE'][_0x1f1c(0x40)];else{const _0x2ec9d1=await _0xdfd0e6[_0x1f1c(0x41)](getCredentials),_0x1477ee={..._0x2ec9d1,..._0x27583d,'createdAt':(_0xdfd0e6[_0x1f1c(0x42)](_0x2ec9d1,null)||_0xdfd0e6['QPuoS'](_0x2ec9d1,void 0x0)?void 0x0:_0x2ec9d1[_0x1f1c(0x43)])||Date[_0x1f1c(0x44)]()},_0x411ef8=_0x1477ee[_0x1f1c(0x45)];if(!_0x411ef8){if(_0xdfd0e6[_0x1f1c(0x42)](_0xdfd0e6[_0x1f1c(0x46)],'Cwnca'))throw new Error(_0xdfd0e6[_0x1f1c(0x47)]);else return _0x5c358d[_0x1f1c(0x2b)](_0xdfd0e6['hGOOn'],_0xc08251),null;}const _0x1a81ae={'service':_constants[_0x1f1c(0x48)][_0x1f1c(0x49)]};if(_0xdfd0e6[_0x1f1c(0x4a)](_reactNative['Platform']['OS'],_0xdfd0e6[_0x1f1c(0x4b)])&&isKeychainAvailable()){if(_0xdfd0e6['ktAzI'](_0xdfd0e6[_0x1f1c(0x4c)],_0x1f1c(0x4d))){const _0x3485c6=(_0x2925af===null||_0xdfd0e6[_0x1f1c(0x4e)](_0x52ee9e,void 0x0)?void 0x0:_0x16f79a[_0x1f1c(0x22)])||_0xdfd0e6[_0x1f1c(0x4f)];return _0x29f8b2[_0x3485c6]||null;}else _0x1a81ae[_0x1f1c(0x3e)]=Keychain[_0x1f1c(0x3f)][_0x1f1c(0x50)],_0x1a81ae[_0x1f1c(0x51)]=Keychain['ACCESSIBLE'][_0x1f1c(0x40)];}return await _0xdfd0e6[_0x1f1c(0x52)](safeSetGenericPassword,_0x411ef8,JSON[_0x1f1c(0x53)](_0x1477ee),_0x1a81ae),!![];}}catch(_0x5be246){return console[_0x1f1c(0x2b)](_0xdfd0e6[_0x1f1c(0x54)],_0x5be246),![];}};exports[_0x1f1c(0x4)]=storeCredentials;const getCredentials=async()=>{const _0x5505fb={'PKWbB':_0x1f1c(0x55),'ooLhH':function(_0x34c4bf,_0x358d4e){return _0x34c4bf!==_0x358d4e;},'UdjFs':_0x1f1c(0x56),'uRleO':function(_0x48fba3,_0x4f7f76){return _0x48fba3(_0x4f7f76);},'QJHCO':'fNyvE','xLIWr':_0x1f1c(0x36)};try{if(_0x5505fb[_0x1f1c(0x57)](_0x5505fb[_0x1f1c(0x58)],_0x1f1c(0x56)))return _0x43d6ce&&_0x5871bc[_0x1f1c(0x1)]?_0x19e854:{'default':_0x392259};else{const _0x14b787=await _0x5505fb[_0x1f1c(0x59)](safeGetGenericPassword,{'service':_constants[_0x1f1c(0x48)][_0x1f1c(0x49)]});if(_0x14b787)return JSON[_0x1f1c(0x5a)](_0x14b787[_0x1f1c(0x5b)]);return null;}}catch(_0x402248){return _0x1f1c(0x5c)!==_0x5505fb[_0x1f1c(0x5d)]?(_0x1a80c8[_0x1f1c(0x2b)](_0x5505fb['PKWbB'],_0xb5bffb),![]):(console[_0x1f1c(0x2b)](_0x5505fb[_0x1f1c(0x5e)],_0x402248),null);}};exports[_0x1f1c(0x8)]=getCredentials;const hasCredentials=async()=>{const _0x15ad47={'ptUkC':function(_0x440334,_0x4fddf8){return _0x440334(_0x4fddf8);},'vztHH':'Error\x20checking\x20credentials:'};try{const _0x1018c7=await _0x15ad47[_0x1f1c(0x5f)](safeGetGenericPassword,{'service':_constants[_0x1f1c(0x48)][_0x1f1c(0x49)]});return!!_0x1018c7;}catch(_0x34f704){return console[_0x1f1c(0x2b)](_0x15ad47[_0x1f1c(0x60)],_0x34f704),![];}};exports[_0x1f1c(0x61)]=hasCredentials;const deleteCredentials=async()=>{const _0x5a9144={'CIsec':function(_0x2ace05,_0x236b20){return _0x2ace05(_0x236b20);},'wWvVl':function(_0x1c95ba,_0x53e1bd){return _0x1c95ba===_0x53e1bd;},'MAZMk':_0x1f1c(0x62),'PTDSj':function(_0x101e95,_0x50dcff){return _0x101e95!==_0x50dcff;},'zphRU':'KDpys','ecZjT':_0x1f1c(0x63)};try{if(_0x5a9144['wWvVl'](_0x5a9144[_0x1f1c(0x64)],_0x5a9144[_0x1f1c(0x64)]))return await _0x5a9144[_0x1f1c(0x65)](safeResetGenericPassword,{'service':_constants['STORAGE_KEYS']['credentials']}),!![];else Keychain=_0x5a9144['CIsec'](_0x2af21d,0x3);}catch(_0x407c07){if(_0x5a9144[_0x1f1c(0x66)](_0x5a9144[_0x1f1c(0x67)],_0x5a9144['ecZjT']))return console[_0x1f1c(0x2b)](_0x1f1c(0x68),_0x407c07),![];else _0x4bcb87['warn']('react-native-keychain module not available, using mock storage'),Keychain={'ACCESS_CONTROL':{'BIOMETRY_ANY_OR_DEVICE_PASSCODE':_0x1f1c(0xe)},'ACCESSIBLE':{'WHEN_UNLOCKED':'mock'},'getGenericPassword':async()=>null,'setGenericPassword':async()=>!![],'resetGenericPassword':async()=>!![]};}};exports[_0x1f1c(0xa)]=deleteCredentials;const updateCredentials=async _0x370b29=>{const _0x1cb6db={'IkPGk':function(_0x263193,_0x6c03f9){return _0x263193(_0x6c03f9);}};return _0x1cb6db['IkPGk'](storeCredentials,_0x370b29);};exports[_0x1f1c(0x3)]=updateCredentials;const generateDeviceUsername=()=>{const _0x3ac0b7=Math[_0x1f1c(0x69)]()['toString'](0x24)[_0x1f1c(0x6a)](0x2,0xa);return _0x1f1c(0x6b)+_0x3ac0b7;};exports[_0x1f1c(0x9)]=generateDeviceUsername;const verifyCredentials=async _0x31b848=>{const _0x26419c={'DRWKq':function(_0x117131){return _0x117131();},'VeywU':'Error\x20verifying\x20credentials:','hWWDl':'nwScA','POeQF':_0x1f1c(0x6c)};try{if(_0x26419c[_0x1f1c(0x6d)]===_0x26419c[_0x1f1c(0x6e)])try{if(!_0x26419c[_0x1f1c(0x6f)](_0x1058fa))return!![];return!![];}catch(_0xd2ca7f){return _0x4ba780[_0x1f1c(0x2b)](_0x26419c[_0x1f1c(0x70)],_0xd2ca7f),![];}else{if(!_0x26419c[_0x1f1c(0x6f)](isKeychainAvailable))return!![];return!![];}}catch(_0x31005a){return console[_0x1f1c(0x2b)](_0x26419c[_0x1f1c(0x70)],_0x31005a),![];}};exports[_0x1f1c(0x2)]=verifyCredentials;const getJWT=async()=>{const _0x1b68c8={'ereZL':_0x1f1c(0x30),'bclMl':function(_0x56aa9d,_0xda14d8){return _0x56aa9d===_0xda14d8;},'QJKZG':_0x1f1c(0x28),'RvBma':_0x1f1c(0x71),'HRABj':_0x1f1c(0x72)};try{if(_0x1b68c8[_0x1f1c(0x73)](_0x1b68c8[_0x1f1c(0x74)],_0x1f1c(0x71))){const _0x3f8bdb=await _asyncStorage['default'][_0x1f1c(0x75)](JWT_TOKEN_KEY);return _0x3f8bdb;}else{_0x452620[_0x1f1c(0xd)](_0x1b68c8[_0x1f1c(0x76)],_0x3fd61e);const _0x37a906=(_0x1b68c8[_0x1f1c(0x73)](_0x286e3e,null)||_0x4a2b94===void 0x0?void 0x0:_0x4e0604[_0x1f1c(0x22)])||_0x1b68c8['QJKZG'];return _0x126815[_0x37a906]={'username':_0x946694,'password':_0x2c64b3},!![];}}catch(_0x21fdff){return console['error'](_0x1b68c8[_0x1f1c(0x77)],_0x21fdff),null;}};exports[_0x1f1c(0x7)]=getJWT;const hasJWT=async()=>{const _0x43359a={'XYvwN':function(_0xe14b0,_0x355cbf){return _0xe14b0===_0x355cbf;},'bktRk':_0x1f1c(0x78),'uHIRR':_0x1f1c(0x79)};try{if(_0x43359a[_0x1f1c(0x7a)](_0x1f1c(0x78),_0x43359a[_0x1f1c(0x7b)])){const _0x3ca885=await _asyncStorage[_0x1f1c(0x28)][_0x1f1c(0x75)](JWT_TOKEN_KEY);return!!_0x3ca885;}else _0xa6097a+='=';}catch(_0x579012){return console[_0x1f1c(0x2b)](_0x43359a[_0x1f1c(0x7c)],_0x579012),![];}};exports[_0x1f1c(0x7d)]=hasJWT;const clearJWT=async()=>{const _0x14e7dd={'mqIvG':_0x1f1c(0x7e),'WyJRf':_0x1f1c(0x26)};try{return await _asyncStorage[_0x1f1c(0x28)]['removeItem'](JWT_TOKEN_KEY),console['log'](_0x14e7dd[_0x1f1c(0x7f)]),!![];}catch(_0x5862b3){return console[_0x1f1c(0x2b)](_0x14e7dd[_0x1f1c(0x80)],_0x5862b3),![];}};exports[_0x1f1c(0xb)]=clearJWT;const base64Decode=_0x4ba7dc=>{const _0x460b1f={'QAqyM':function(_0x19ed94,_0x4df3a9){return _0x19ed94%_0x4df3a9;},'riFBp':function(_0xa49d8,_0x1bdc88){return _0xa49d8<_0x1bdc88;},'IPmfl':function(_0x22f730,_0x44b352){return _0x22f730+_0x44b352;},'rhENh':function(_0x325259,_0x5e4959){return _0x325259+_0x5e4959;},'RLqhX':function(_0x2d3231,_0x2a3d40){return _0x2d3231+_0x2a3d40;},'lCLRp':function(_0x1f65d7,_0x27f703){return _0x1f65d7|_0x27f703;},'SbbBe':function(_0x3e0b18,_0x273075){return _0x3e0b18|_0x273075;},'RocLo':function(_0x2fe825,_0x3ee1c4){return _0x2fe825<<_0x3ee1c4;},'eVoBK':function(_0x3e7924,_0x21a1ee){return _0x3e7924&_0x21a1ee;},'nkTSV':function(_0x5680a9,_0x48f8e1){return _0x5680a9>>_0x48f8e1;},'LPGbm':function(_0x21c922,_0x3db59a){return _0x21c922!==_0x3db59a;}};while(_0x460b1f[_0x1f1c(0x81)](_0x4ba7dc['length'],0x4)){_0x4ba7dc+='=';}const _0x3bd417=_0x1f1c(0x82);let _0x2ca989='';for(let _0x29ae1a=0x0;_0x460b1f[_0x1f1c(0x83)](_0x29ae1a,_0x4ba7dc[_0x1f1c(0x14)]);_0x29ae1a+=0x4){const _0x363fce=_0x3bd417[_0x1f1c(0x16)](_0x4ba7dc[_0x1f1c(0x17)](_0x29ae1a)),_0x3e531c=_0x3bd417['indexOf'](_0x4ba7dc['charAt'](_0x460b1f['IPmfl'](_0x29ae1a,0x1))),_0x14c52f=_0x3bd417[_0x1f1c(0x16)](_0x4ba7dc[_0x1f1c(0x17)](_0x460b1f[_0x1f1c(0x84)](_0x29ae1a,0x2))),_0x5e18a5=_0x3bd417[_0x1f1c(0x16)](_0x4ba7dc[_0x1f1c(0x17)](_0x460b1f[_0x1f1c(0x85)](_0x29ae1a,0x3))),_0xb7e2d7=_0x460b1f[_0x1f1c(0x86)](_0x460b1f[_0x1f1c(0x87)](_0x460b1f[_0x1f1c(0x86)](_0x363fce<<0x12,_0x460b1f[_0x1f1c(0x88)](_0x3e531c,0xc)),_0x14c52f<<0x6),_0x5e18a5);_0x2ca989+=String['fromCharCode'](_0x460b1f[_0x1f1c(0x89)](_0x460b1f[_0x1f1c(0x8a)](_0xb7e2d7,0x10),0xff));if(_0x14c52f!==0x40)_0x2ca989+=String[_0x1f1c(0x1c)](_0x460b1f[_0x1f1c(0x89)](_0x460b1f[_0x1f1c(0x8a)](_0xb7e2d7,0x8),0xff));if(_0x460b1f['LPGbm'](_0x5e18a5,0x40))_0x2ca989+=String[_0x1f1c(0x1c)](_0xb7e2d7&0xff);}return _0x2ca989;},getJWTPayload=async()=>{const _0x4f6ba0={'ljvxW':_0x1f1c(0x8b)};try{const _0xb1dc5e=await getJWT();if(!_0xb1dc5e)return null;const _0x517729=_0xb1dc5e[_0x1f1c(0x8c)]('.');if(_0x517729[_0x1f1c(0x14)]!==0x3)return null;const _0x5b5f13=base64Decode(_0x517729[0x1]),_0x55216c=JSON['parse'](_0x5b5f13);return _0x55216c;}catch(_0x301abb){return console[_0x1f1c(0x2b)](_0x4f6ba0[_0x1f1c(0x8d)],_0x301abb),null;}};exports[_0x1f1c(0x6)]=getJWTPayload;const isJWTExpired=async()=>{const _0x23de40={'GvZyb':function(_0x248539,_0x4fc6b0){return _0x248539===_0x4fc6b0;},'IwMRK':function(_0x1f89be,_0x6fe7b8){return _0x1f89be===_0x6fe7b8;},'DBjdn':function(_0x7f3b35){return _0x7f3b35();},'RbOYD':function(_0x2cf70f,_0x461909){return _0x2cf70f/_0x461909;},'ZdBIp':function(_0x477432,_0x7067da){return _0x477432<_0x7067da;},'rkhfV':function(_0x17ef3c,_0x222c14){return _0x17ef3c!==_0x222c14;},'vGSHh':_0x1f1c(0x8e),'HLfyf':_0x1f1c(0x8f)};try{const _0x5edd31=await _0x23de40[_0x1f1c(0x90)](getJWTPayload);if(!_0x5edd31||!_0x5edd31[_0x1f1c(0x91)])return!![];const _0x11b14a=Math[_0x1f1c(0x92)](_0x23de40[_0x1f1c(0x93)](Date['now'](),0x3e8));return _0x23de40[_0x1f1c(0x94)](_0x5edd31['exp'],_0x11b14a);}catch(_0x536b40){if(_0x23de40[_0x1f1c(0x95)](_0x23de40[_0x1f1c(0x96)],_0x23de40[_0x1f1c(0x96)])){const _0x3eb14e=(_0x23de40[_0x1f1c(0x97)](_0x3f1c35,null)||_0x23de40[_0x1f1c(0x98)](_0x5e2760,void 0x0)?void 0x0:_0x38171b['service'])||_0x1f1c(0x28);return _0x44fda7[_0x3eb14e]={'username':_0x5239f8,'password':_0x4f6523},!![];}else return console[_0x1f1c(0x2b)](_0x23de40[_0x1f1c(0x99)],_0x536b40),!![];}};exports[_0x1f1c(0x5)]=isJWTExpired;
|