@onairos/react-native 3.6.6 β 3.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/components/BodyText.js +1 -1
- package/lib/commonjs/components/BrandMark.js +1 -1
- package/lib/commonjs/components/CodeInput.js +1 -1
- package/lib/commonjs/components/EmailInput.js +1 -1
- package/lib/commonjs/components/GoogleButton.js +1 -1
- package/lib/commonjs/components/HeadingGroup.js +1 -1
- package/lib/commonjs/components/LLMDataInputModal.js +1 -1
- package/lib/commonjs/components/ModalHeader.js +1 -1
- package/lib/commonjs/components/ModalSheet.js +1 -1
- package/lib/commonjs/components/Onairos.js +1 -1
- package/lib/commonjs/components/OnairosButton.js +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +1 -1
- package/lib/commonjs/components/Overlay.js +1 -1
- package/lib/commonjs/components/PersonaImage.js +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
- package/lib/commonjs/components/PinCreationScreen.js +1 -1
- package/lib/commonjs/components/PinInput.js +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
- package/lib/commonjs/components/PlatformList.js +1 -1
- package/lib/commonjs/components/PlatformToggle.js +1 -1
- package/lib/commonjs/components/PrimaryButton.js +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
- package/lib/commonjs/components/SignInStep.js +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js +1 -1
- package/lib/commonjs/components/icons/Checkbox.js +1 -1
- package/lib/commonjs/components/icons/Checkmark.js +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
- package/lib/commonjs/components/icons/Contenticon.js +1 -1
- package/lib/commonjs/components/icons/EnochE.js +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js +1 -1
- package/lib/commonjs/components/icons/index.js +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
- package/lib/commonjs/config/api.js +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/context/AuthContext.js +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +1 -1
- package/lib/commonjs/hooks/useCredentials.js +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/biometricPinService.js +1 -1
- package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
- package/lib/commonjs/services/chatGPTConversationService.js +1 -1
- package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
- package/lib/commonjs/services/claudeConversationService.js +1 -1
- package/lib/commonjs/services/connectedAccountsService.js +1 -1
- package/lib/commonjs/services/googleAuthService.js +1 -1
- package/lib/commonjs/services/hingeDataExtractor.js +1 -1
- package/lib/commonjs/services/hingeDataService.js +1 -1
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +1 -1
- package/lib/commonjs/services/instagramDataService.js +1 -1
- package/lib/commonjs/services/jwtStorageService.js +1 -1
- package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
- package/lib/commonjs/services/linkedinProfileService.js +1 -1
- package/lib/commonjs/services/linkedinScrapingService.js +1 -1
- package/lib/commonjs/services/llmDataStorage.js +1 -1
- package/lib/commonjs/services/mobileTrainingService.js +1 -1
- package/lib/commonjs/services/pinEncryptionService.js +1 -1
- package/lib/commonjs/services/pinStorageUtils.js +1 -1
- package/lib/commonjs/services/platformAuthService.js +1 -1
- package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
- package/lib/commonjs/services/sephoraDataService.js +1 -1
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +1 -1
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +1 -1
- package/lib/commonjs/utils/crypto.js +1 -1
- package/lib/commonjs/utils/debugHelper.js +1 -1
- package/lib/commonjs/utils/encryption.js +1 -1
- package/lib/commonjs/utils/eventUtils.js +1 -1
- package/lib/commonjs/utils/haptics.js +1 -1
- package/lib/commonjs/utils/imagePreloader.js +1 -1
- package/lib/commonjs/utils/networkDiagnostics.js +1 -1
- package/lib/commonjs/utils/onairosApi.js +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +1 -1
- package/lib/commonjs/utils/retryHelper.js +1 -1
- package/lib/commonjs/utils/secureStorage.js +1 -1
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
- package/lib/commonjs/utils/webviewScripts/index.js +1 -1
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/components/BodyText.js +1 -1
- package/lib/module/components/BrandMark.js +1 -1
- package/lib/module/components/CodeInput.js +1 -1
- package/lib/module/components/EmailInput.js +1 -1
- package/lib/module/components/GoogleButton.js +1 -1
- package/lib/module/components/HeadingGroup.js +1 -1
- package/lib/module/components/LLMDataInputModal.js +1 -1
- package/lib/module/components/ModalHeader.js +1 -1
- package/lib/module/components/ModalSheet.js +1 -1
- package/lib/module/components/Onairos.js +1 -1
- package/lib/module/components/OnairosButton.js +1 -1
- package/lib/module/components/OnairosSignInButton.js +1 -1
- package/lib/module/components/Overlay.js +1 -1
- package/lib/module/components/PersonaImage.js +1 -1
- package/lib/module/components/PersonaLoadingScreen.js +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js +1 -1
- package/lib/module/components/PinCreationScreen.js +1 -1
- package/lib/module/components/PinInput.js +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +1 -1
- package/lib/module/components/PlatformList.js +1 -1
- package/lib/module/components/PlatformToggle.js +1 -1
- package/lib/module/components/PrimaryButton.js +1 -1
- package/lib/module/components/SignInMatchAnimation.js +1 -1
- package/lib/module/components/SignInStep.js +1 -1
- package/lib/module/components/UniversalOnboarding.js +1 -1
- package/lib/module/components/VerificationStep.js +1 -1
- package/lib/module/components/WelcomeScreen.js +1 -1
- package/lib/module/components/icons/Basicproficon.js +1 -1
- package/lib/module/components/icons/Basicprofile.js +1 -1
- package/lib/module/components/icons/Checkbox.js +1 -1
- package/lib/module/components/icons/Checkmark.js +1 -1
- package/lib/module/components/icons/Contentanalysis.js +1 -1
- package/lib/module/components/icons/Contenticon.js +1 -1
- package/lib/module/components/icons/EnochE.js +1 -1
- package/lib/module/components/icons/Personalityicon.js +1 -1
- package/lib/module/components/icons/Personalityprofile.js +1 -1
- package/lib/module/components/icons/Personalitytraits.js +1 -1
- package/lib/module/components/icons/Userpreferences.js +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/module/components/onboarding/PinInput.js +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +1 -1
- package/lib/module/config/api.js +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/context/AuthContext.js +1 -1
- package/lib/module/hooks/useConnectedAccounts.js +1 -1
- package/lib/module/hooks/useConnections.js +1 -1
- package/lib/module/hooks/useCredentials.js +1 -1
- package/lib/module/hooks/useUserConnections.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/biometricPinService.js +1 -1
- package/lib/module/services/chatGPTConversationExtractor.js +1 -1
- package/lib/module/services/chatGPTConversationService.js +1 -1
- package/lib/module/services/claudeConversationExtractor.js +1 -1
- package/lib/module/services/claudeConversationService.js +1 -1
- package/lib/module/services/connectedAccountsService.js +1 -1
- package/lib/module/services/googleAuthService.js +1 -1
- package/lib/module/services/hingeDataExtractor.js +1 -1
- package/lib/module/services/hingeDataService.js +1 -1
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -1
- package/lib/module/services/instagramDataService.js +1 -1
- package/lib/module/services/jwtStorageService.js +1 -1
- package/lib/module/services/linkedinDOMExtractor.js +1 -1
- package/lib/module/services/linkedinProfileService.js +1 -1
- package/lib/module/services/linkedinScrapingService.js +1 -1
- package/lib/module/services/llmDataStorage.js +1 -1
- package/lib/module/services/mobileTrainingService.js +1 -1
- package/lib/module/services/pinEncryptionService.js +1 -1
- package/lib/module/services/pinStorageUtils.js +1 -1
- package/lib/module/services/platformAuthService.js +1 -1
- package/lib/module/services/sephoraDataExtractor.js +1 -1
- package/lib/module/services/sephoraDataService.js +1 -1
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +1 -1
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +1 -1
- package/lib/module/utils/crypto.js +1 -1
- package/lib/module/utils/debugHelper.js +1 -1
- package/lib/module/utils/encryption.js +1 -1
- package/lib/module/utils/eventUtils.js +1 -1
- package/lib/module/utils/haptics.js +1 -1
- package/lib/module/utils/networkDiagnostics.js +1 -1
- package/lib/module/utils/onairosApi.js +1 -1
- package/lib/module/utils/programmaticFlow.js +1 -1
- package/lib/module/utils/retryHelper.js +1 -1
- package/lib/module/utils/secureStorage.js +1 -1
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/module/utils/webviewScripts/claude.js +1 -1
- package/lib/module/utils/webviewScripts/hinge.js +1 -1
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -1
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +1 -1
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
|
|
8
|
+
function _0x4550(){const _0x46795e=['defineProperty','__esModule','useClaudeConversationExtractor','qxRkM','π\x20[CLAUDE_EXTRACTOR]\x20Conversations\x20to\x20send:','DIWfx','β\x20[CLAUDE_EXTRACTOR]\x20Username\x20is\x20required','Error','pRCvh','ytGRh','βΉοΈ\x20[CLAUDE_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','β\x20[CLAUDE_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','π‘\x20[CLAUDE_EXTRACTOR]\x20Sending\x20to\x20backend...','β
\x20[CLAUDE_EXTRACTOR]\x20Export\x20completed\x20successfully','π\x20[CLAUDE_EXTRACTOR]\x20Backend\x20response:','β\x20[CLAUDE_EXTRACTOR]\x20Backend\x20storage\x20failed:','yHccN','CAypw','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','YnoQf','NnthR','CSanP','π\x20[CLAUDE_EXTRACTOR]\x20Initiating\x20conversation\x20export','log','WDcHI','KFoHd','length','ArZfW','AmTvq','OvPMJ','KDOHm','Alert','alert','IATmV','Username\x20is\x20required\x20to\x20export\x20Claude\x20conversations.','error','IuZtb','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','hLNLs','DTVKE','tUlLG','UPGax','dgjXR','conversation_id','title','user_messages','hXFvF','warn','gitQq','filter','isArray','XvUwU','fKtBv','eCnYz','β οΈ\x20[CLAUDE_EXTRACTOR]\x20Filtered\x20out\x20','storeClaudeConversations','success','xpccO','uXsSh','data','rVsVM','YwkBU','\x20invalid\x20conversations','zLXAa','DNdfU','qclvK','aWbFv','TYOwx','wjDbf'];_0x4550=function(){return _0x46795e;};return _0x4550();}Object[_0x4aa6(0x0)](exports,_0x4aa6(0x1),{'value':!![]}),exports[_0x4aa6(0x2)]=void 0x0;function _0x4aa6(_0x4550b2,_0x4aa6fc){_0x4550b2=_0x4550b2-0x0;const _0x52b5e4=_0x4550();let _0x53c9f2=_0x52b5e4[_0x4550b2];return _0x53c9f2;}var _claudeConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useClaudeConversationExtractor=()=>{const _0x3a5dbb={'IuZtb':'Export\x20Failed','hLNLs':'default','YnoQf':function(_0x4d49b8,_0x59644a){return _0x4d49b8>_0x59644a;},'NnthR':function(_0x5a0b9c,_0x10bff3){return _0x5a0b9c-_0x10bff3;},'CSanP':function(_0x20c277,_0x3b838b){return _0x20c277===_0x3b838b;},'NABCS':_0x4aa6(0x3),'WDcHI':'π€\x20[CLAUDE_EXTRACTOR]\x20Username:','KFoHd':_0x4aa6(0x4),'ArZfW':function(_0x342f7a,_0x2e3e79){return _0x342f7a!==_0x2e3e79;},'AmTvq':'zaMnB','OvPMJ':_0x4aa6(0x5),'KDOHm':_0x4aa6(0x6),'IATmV':_0x4aa6(0x7),'DTVKE':function(_0x10d5a3,_0x2cce26){return _0x10d5a3!==_0x2cce26;},'tUlLG':_0x4aa6(0x8),'UPGax':_0x4aa6(0x9),'dgjXR':_0x4aa6(0xa),'XvUwU':_0x4aa6(0xb),'fKtBv':'Data\x20Error','eCnYz':'No\x20valid\x20conversations\x20found\x20to\x20export.','IAXnS':_0x4aa6(0xc),'xpccO':_0x4aa6(0xd),'uXsSh':_0x4aa6(0xe),'rVsVM':'HItbG','zLXAa':_0x4aa6(0xf),'DNdfU':function(_0x552024,_0x245615){return _0x552024!==_0x245615;},'qclvK':_0x4aa6(0x10),'aWbFv':_0x4aa6(0x11),'TYOwx':'Export\x20Error','wjDbf':_0x4aa6(0x12)},_0x129290=async(_0x55eae8,_0x40b23b)=>{const _0x3a7c98={'hXFvF':function(_0x323823,_0x3549ce){return _0x3a5dbb[_0x4aa6(0x13)](_0x323823,_0x3549ce);},'gitQq':'β οΈ\x20[CLAUDE_EXTRACTOR]\x20Invalid\x20conversation:','YwkBU':function(_0x12db14,_0x240ae0){return _0x3a5dbb[_0x4aa6(0x14)](_0x12db14,_0x240ae0);}};if(_0x3a5dbb[_0x4aa6(0x15)](_0x4aa6(0x3),_0x3a5dbb['NABCS'])){console['log'](_0x4aa6(0x16)),console[_0x4aa6(0x17)](_0x3a5dbb[_0x4aa6(0x18)],_0x55eae8),console[_0x4aa6(0x17)](_0x3a5dbb[_0x4aa6(0x19)],_0x40b23b[_0x4aa6(0x1a)]);if(!_0x55eae8)return _0x3a5dbb[_0x4aa6(0x1b)](_0x3a5dbb[_0x4aa6(0x1c)],_0x3a5dbb[_0x4aa6(0x1d)])?(console['error'](_0x3a5dbb[_0x4aa6(0x1e)]),_reactNative[_0x4aa6(0x1f)][_0x4aa6(0x20)](_0x3a5dbb[_0x4aa6(0x21)],_0x4aa6(0x22),[{'text':'OK','style':'default'}]),![]):(_0x1f82ff[_0x4aa6(0x23)](_0x4aa6(0xf),_0x408b7c[_0x4aa6(0x23)]),_0xf32ccc[_0x4aa6(0x1f)][_0x4aa6(0x20)](_0x3a5dbb[_0x4aa6(0x24)],_0x4ed312[_0x4aa6(0x23)]||_0x4aa6(0x25),[{'text':'OK','style':_0x3a5dbb[_0x4aa6(0x26)]}]),![]);if(!_0x40b23b||_0x3a5dbb[_0x4aa6(0x15)](_0x40b23b[_0x4aa6(0x1a)],0x0)){if(_0x3a5dbb[_0x4aa6(0x27)](_0x3a5dbb[_0x4aa6(0x28)],_0x3a5dbb[_0x4aa6(0x29)]))return console['log'](_0x3a5dbb[_0x4aa6(0x2a)]),!![];else{const _0x36911f=_0xe97e67[_0x4aa6(0x2b)]&&_0x58b572[_0x4aa6(0x2c)]&&_0x5cb282['isArray'](_0x4d9e6e[_0x4aa6(0x2d)])&&_0x3a7c98[_0x4aa6(0x2e)](_0x49821b[_0x4aa6(0x2d)]['length'],0x0);return!_0x36911f&&_0x4dc17c[_0x4aa6(0x2f)](_0x3a7c98[_0x4aa6(0x30)],_0x596acf),_0x36911f;}}const _0x1d284e=_0x40b23b[_0x4aa6(0x31)](_0x3579ad=>{const _0x4ecefa=_0x3579ad[_0x4aa6(0x2b)]&&_0x3579ad['title']&&Array[_0x4aa6(0x32)](_0x3579ad[_0x4aa6(0x2d)])&&_0x3579ad[_0x4aa6(0x2d)][_0x4aa6(0x1a)]>0x0;return!_0x4ecefa&&console[_0x4aa6(0x2f)](_0x3a7c98[_0x4aa6(0x30)],_0x3579ad),_0x4ecefa;});if(_0x1d284e[_0x4aa6(0x1a)]===0x0)return console[_0x4aa6(0x23)](_0x3a5dbb[_0x4aa6(0x33)]),_reactNative[_0x4aa6(0x1f)][_0x4aa6(0x20)](_0x3a5dbb[_0x4aa6(0x34)],_0x3a5dbb[_0x4aa6(0x35)],[{'text':'OK','style':'default'}]),![];_0x1d284e[_0x4aa6(0x1a)]<_0x40b23b['length']&&console[_0x4aa6(0x2f)](_0x4aa6(0x36)+(_0x40b23b['length']-_0x1d284e['length'])+'\x20invalid\x20conversations');try{console[_0x4aa6(0x17)](_0x3a5dbb['IAXnS']);const _0x4fcc49=await(0x0,_claudeConversationService[_0x4aa6(0x37)])(_0x55eae8,_0x1d284e);if(_0x4fcc49[_0x4aa6(0x38)])return console[_0x4aa6(0x17)](_0x3a5dbb[_0x4aa6(0x39)]),console[_0x4aa6(0x17)](_0x3a5dbb[_0x4aa6(0x3a)],_0x4fcc49[_0x4aa6(0x3b)]),!![];else{if(_0x3a5dbb[_0x4aa6(0x3c)]!==_0x3a5dbb[_0x4aa6(0x3c)])_0x4458e2['warn'](_0x4aa6(0x36)+_0x3a7c98[_0x4aa6(0x3d)](_0x50f3df[_0x4aa6(0x1a)],_0x405606[_0x4aa6(0x1a)])+_0x4aa6(0x3e));else return console[_0x4aa6(0x23)](_0x3a5dbb[_0x4aa6(0x3f)],_0x4fcc49[_0x4aa6(0x23)]),_reactNative['Alert'][_0x4aa6(0x20)](_0x3a5dbb[_0x4aa6(0x24)],_0x4fcc49[_0x4aa6(0x23)]||_0x4aa6(0x25),[{'text':'OK','style':_0x3a5dbb[_0x4aa6(0x26)]}]),![];}}catch(_0xc5858d){if(_0x3a5dbb[_0x4aa6(0x40)](_0x3a5dbb[_0x4aa6(0x41)],_0x3a5dbb[_0x4aa6(0x42)]))return console[_0x4aa6(0x23)]('β\x20[CLAUDE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:',_0xc5858d),_reactNative['Alert'][_0x4aa6(0x20)](_0x3a5dbb[_0x4aa6(0x43)],_0x3a5dbb[_0x4aa6(0x44)],[{'text':'OK','style':_0x3a5dbb[_0x4aa6(0x26)]}]),![];else _0x3a89e2['warn'](_0x3a7c98[_0x4aa6(0x30)],_0x3c647c);}}else return _0xe8fc0a[_0x4aa6(0x17)](_0x4aa6(0xd)),_0x541642[_0x4aa6(0x17)](_0x4aa6(0xe),_0x28b446[_0x4aa6(0x3b)]),!![];};return{'initiateConversationExport':_0x129290};};exports[_0x4aa6(0x2)]=useClaudeConversationExtractor;
|
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require("react-native")
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
function
|
|
9
|
+
function _0x23d6(){const _0xc1da2c=['defineProperty','__esModule','storeClaudeConversations','β\x20[CLAUDE_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','π\x20[CLAUDE_SERVICE]\x20Storing\x20Claude\x20conversations\x20for:','mxABF','enoch_token','auth_token','JaVtw','ios','Android','β\x20[CLAUDE_SERVICE]\x20Network\x20error:','log','wAQLH','CTFKd','length','π\x20[CLAUDE_SERVICE]\x20Total\x20messages:','reduce','user_messages','FOOUg','QUYqu','avlXo','Failed\x20to\x20store\x20conversations\x20(','\x20errors)','error','β\x20[CLAUDE_SERVICE]\x20Invalid\x20input','xFaLz','HNgeo','β οΈ\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','sBMnW','getItem','onairos_jwt_token','default','NIfWQ','FRxgj','ONKLE','π\x20[CLAUDE_SERVICE]\x20Auth\x20token\x20found','Platform','1.0.0','MLNKv','DspXP','17.0','iPhone','DaaQw','xawyz','now','map','conversation_id','user','title','ZBbSc','π‘\x20[CLAUDE_SERVICE]\x20Sending\x20conversation\x20','API_CONFIG','BASE_URL','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','β
\x20[CLAUDE_SERVICE]\x20Sent\x20conversation\x20','AuPDE','warn','status','nPwif','π\x20[CLAUDE_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','tmCVu','Stored\x20','\x20of\x20','\x20conversations','dTypZ','message','Network\x20error.\x20Please\x20check\x20your\x20connection.'];_0x23d6=function(){return _0xc1da2c;};return _0x23d6();}Object[_0x38e3(0x0)](exports,_0x38e3(0x1),{'value':!![]}),exports[_0x38e3(0x2)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _0x38e3(_0x23d62d,_0x38e3f2){_0x23d62d=_0x23d62d-0x0;const _0x26f454=_0x23d6();let _0x4a415c=_0x26f454[_0x23d62d];return _0x4a415c;}function _interopRequireDefault(_0xaff7e3){return _0xaff7e3&&_0xaff7e3[_0x38e3(0x1)]?_0xaff7e3:{'default':_0xaff7e3};}const storeClaudeConversations=async(_0x48dca6,_0x9b84bb)=>{const _0x65f543={'sBMnW':function(_0x5d52bd,_0xe00ce9){return _0x5d52bd+_0xe00ce9;},'ONKLE':_0x38e3(0x3),'zeoas':_0x38e3(0x4),'wAQLH':_0x38e3(0x5),'CTFKd':'π\x20[CLAUDE_SERVICE]\x20Number\x20of\x20conversations:','FOOUg':function(_0x9d462d,_0x71b2b5){return _0x9d462d===_0x71b2b5;},'QUYqu':function(_0x30ea30,_0x2bb5ab){return _0x30ea30===_0x2bb5ab;},'avlXo':_0x38e3(0x6),'xFaLz':'Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','HtbSo':function(_0x3c27b2,_0x506a1d){return _0x3c27b2!==_0x506a1d;},'HNgeo':'PfrzN','XlPor':_0x38e3(0x7),'XvBJK':_0x38e3(0x8),'FRxgj':_0x38e3(0x9),'MLNKv':function(_0x2726f0,_0x5790e2){return _0x2726f0===_0x5790e2;},'DspXP':_0x38e3(0xa),'DaaQw':_0x38e3(0xb),'xawyz':function(_0x14ebf2,_0xc951a9){return _0x14ebf2<_0xc951a9;},'ZBbSc':function(_0x5b7c31,_0x3e0286){return _0x5b7c31/_0x3e0286;},'SOQBc':'mobile-claude','AuPDE':function(_0xde9cfc,_0xb1ba79){return _0xde9cfc+_0xb1ba79;},'nPwif':function(_0x1e122d,_0x3b8e31){return _0x1e122d<_0x3b8e31;},'tmCVu':function(_0x78692f,_0x26fc78){return _0x78692f>_0x26fc78;},'dTypZ':_0x38e3(0xc)};console[_0x38e3(0xd)](_0x65f543[_0x38e3(0xe)],_0x48dca6),console['log'](_0x65f543[_0x38e3(0xf)],_0x9b84bb[_0x38e3(0x10)]),console[_0x38e3(0xd)](_0x38e3(0x11),_0x9b84bb[_0x38e3(0x12)]((_0x2e05e6,_0x39a0d1)=>_0x2e05e6+_0x39a0d1[_0x38e3(0x13)][_0x38e3(0x10)],0x0));if(!_0x48dca6||!_0x9b84bb||_0x65f543[_0x38e3(0x14)](_0x9b84bb[_0x38e3(0x10)],0x0))return _0x65f543[_0x38e3(0x15)](_0x65f543[_0x38e3(0x16)],'TJvgN')?{'success':![],'error':_0x38e3(0x17)+_0x30e9a8+_0x38e3(0x18)}:(console[_0x38e3(0x19)](_0x38e3(0x1a)),{'success':![],'error':_0x65f543[_0x38e3(0x1b)]});try{if(_0x65f543['HtbSo'](_0x65f543['HNgeo'],_0x65f543[_0x38e3(0x1c)]))_0x53713b['warn'](_0x38e3(0x1d)+_0x65f543[_0x38e3(0x1e)](_0xe8fc70,0x1)+':',_0x3f0bb1),_0x171a82++;else{const _0x565423=await _asyncStorage['default'][_0x38e3(0x1f)](_0x38e3(0x20))||await _asyncStorage[_0x38e3(0x21)][_0x38e3(0x1f)](_0x65f543['XlPor'])||await _asyncStorage[_0x38e3(0x21)][_0x38e3(0x1f)](_0x65f543['XvBJK']);if(!_0x565423)return _0x65f543[_0x38e3(0x15)](_0x38e3(0x22),_0x65f543[_0x38e3(0x23)])?(_0x1179d5[_0x38e3(0x19)](_0x65f543[_0x38e3(0x24)]),{'success':![],'error':_0x65f543['zeoas']}):(console[_0x38e3(0x19)](_0x65f543[_0x38e3(0x24)]),{'success':![],'error':_0x65f543['zeoas']});console[_0x38e3(0xd)](_0x38e3(0x25));const _0x571a7e={'platform':_reactNative[_0x38e3(0x26)]['OS'],'appVersion':_0x38e3(0x27),'osVersion':_0x65f543[_0x38e3(0x28)](_reactNative[_0x38e3(0x26)]['OS'],_0x65f543[_0x38e3(0x29)])?_0x38e3(0x2a):_reactNative['Platform']['OS'],'deviceModel':_reactNative[_0x38e3(0x26)]['OS']==='ios'?_0x38e3(0x2b):_0x65f543[_0x38e3(0x2c)],'isOfflineSync':![]};let _0x514710=0x0,_0x24bb4d=0x0;for(let _0x10b881=0x0;_0x65f543[_0x38e3(0x2d)](_0x10b881,_0x9b84bb[_0x38e3(0x10)]);_0x10b881++){const _0x493f60=_0x9b84bb[_0x10b881],_0x53231e=Date[_0x38e3(0x2e)](),_0x5d33bf=_0x493f60[_0x38e3(0x13)][_0x38e3(0x2f)]((_0x1c7daa,_0x5d8273)=>({'id':_0x493f60[_0x38e3(0x30)]+'-msg-'+_0x5d8273,'role':_0x38e3(0x31),'content':_0x1c7daa,'timestamp':new Date(_0x53231e-(_0x493f60[_0x38e3(0x13)][_0x38e3(0x10)]-_0x5d8273)*0x3e8)['toISOString'](),'metadata':{}})),_0x18710a={'conversationId':_0x493f60['conversation_id'],'messages':_0x5d33bf,'context':{'title':_0x493f60[_0x38e3(0x32)],'create_time':Math['floor'](_0x65f543[_0x38e3(0x33)](_0x53231e,0x3e8)),'update_time':Math['floor'](_0x65f543[_0x38e3(0x33)](_0x53231e,0x3e8))},'mobileMetadata':_0x571a7e},_0x11371a={'platform':_0x65f543['SOQBc'],'conversationData':_0x18710a,'memoryType':'conversation'};console[_0x38e3(0xd)](_0x38e3(0x34)+(_0x10b881+0x1)+'/'+_0x9b84bb[_0x38e3(0x10)]+':\x20'+_0x493f60[_0x38e3(0x32)]);try{const _0x5b4e28=await fetch(_api[_0x38e3(0x35)][_0x38e3(0x36)]+_0x38e3(0x37),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x38e3(0x38)+_0x565423,'User-Agent':_0x38e3(0x39)+_reactNative['Platform']['OS']+')'},'body':JSON[_0x38e3(0x3a)](_0x11371a)}),_0x15f76b=await _0x5b4e28['json']();_0x5b4e28['ok']?(console[_0x38e3(0xd)](_0x38e3(0x3b)+_0x65f543[_0x38e3(0x3c)](_0x10b881,0x1)+'/'+_0x9b84bb[_0x38e3(0x10)]),_0x514710++):(console[_0x38e3(0x3d)]('β οΈ\x20[CLAUDE_SERVICE]\x20Failed\x20conversation\x20'+_0x65f543['AuPDE'](_0x10b881,0x1)+'/'+_0x9b84bb[_0x38e3(0x10)]+':',_0x15f76b[_0x38e3(0x19)]||_0x5b4e28[_0x38e3(0x3e)]),_0x24bb4d++);}catch(_0x24e01a){console[_0x38e3(0x3d)]('β οΈ\x20[CLAUDE_SERVICE]\x20Network\x20error\x20for\x20conversation\x20'+_0x65f543[_0x38e3(0x1e)](_0x10b881,0x1)+':',_0x24e01a),_0x24bb4d++;}_0x65f543[_0x38e3(0x3f)](_0x10b881,_0x9b84bb[_0x38e3(0x10)]-0x1)&&await new Promise(_0x57af82=>setTimeout(_0x57af82,0x12c));}return console[_0x38e3(0xd)](_0x38e3(0x40)+_0x514710+_0x38e3(0x41)+_0x24bb4d+_0x38e3(0x42)),_0x65f543[_0x38e3(0x43)](_0x514710,0x0)?{'success':!![],'message':_0x38e3(0x44)+_0x514710+_0x38e3(0x45)+_0x9b84bb[_0x38e3(0x10)]+_0x38e3(0x46)}:{'success':![],'error':_0x38e3(0x17)+_0x24bb4d+'\x20errors)'};}}catch(_0x1be371){return console['error'](_0x65f543[_0x38e3(0x47)],_0x1be371),{'success':![],'error':_0x1be371[_0x38e3(0x48)]||_0x38e3(0x49)};}};exports[_0x38e3(0x2)]=storeClaudeConversations;
|
|
@@ -7,4 +7,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
7
7
|
require("../utils/assetRegistry")
|
|
8
8
|
];
|
|
9
9
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
-
function _0x169d(){const _0x4b7b99=['__esModule','getPlatformColor','getConnectedAccountsSmart','getConnectedAccountsLookup','getConnectedAccountsByUsername','getConnectedAccountsByUserId','getConnectedAccountsByEmail','defineProperty','getPlatformIcon','getPlatformIconFromRegistry','API_CONFIG','BASE_URL','βΉοΈ\x20[NEW\x20API]\x20No\x20connected\x20accounts\x20found\x20for\x20user','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20username:','KJhKf','brrEn','3.0.72','isApiKeyInitialized','LaaYh','IMdor','warn','β οΈ\x20SDK\x20not\x20initialized\x20-\x20using\x20basic\x20headers','getApiHeaders','log','apiKey','TRngx','JVsKb','AzqpB','Bearer\x20','XTXfL','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20userId:','β
\x20[NEW\x20API]\x20Connected\x20accounts\x20fetched\x20successfully:','π\x20[NEW\x20API]\x20Fetching\x20connected\x20accounts\x20via\x20unified\x20lookup\x20for:','getAuthToken','/connectedAccounts/lookup/','XWlUT','getAuthHeaders','AHmHi','json','mkpEl','connectedAccounts','KjeSM','length','β
\x20[NEW\x20API]\x20Found\x20','\x20connected\x20accounts','IxdtL','lHetT','NHyuU','β οΈ\x20[NEW\x20API]\x20Response\x20not\x20OK:\x20','status','statusText','eNYaW','whACQ','π§ \x20[SMART\x20API]\x20Available\x20identifiers:','β
\x20[SMART\x20API]\x20Success\x20with\x20new\x20unified\x20lookup\x20via\x20email','π\x20[SMART\x20API]\x20New\x20API\x20returned\x20no\x20results,\x20trying\x20fallbacks...','NxqBI','π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20email:','FCwIu','π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20userId:','π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20username:','sBoar','ZteQh','π§ \x20[SMART\x20API]\x20Trying\x20new\x20unified\x20lookup\x20with\x20email:','EbUcv','rDeAu','ZiQxX','PdPDW','xocCA','AeJpd','mEdQK','bXMJz','ogfIk','wWFkq','AuQpW','GgjZR','WXEon','TuWrS','\x20accounts','β οΈ\x20[SMART\x20API]\x20No\x20connected\x20accounts\x20found\x20with\x20any\x20method','QCpiO','asHyC','β
\x20[LEGACY]\x20Connected\x20accounts\x20fetched:','β οΈ\x20[LEGACY]\x20API\x20response\x20not\x20successful\x20or\x20empty','ZgXbK','QSkMO','π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20username:','/connectedAccounts?username=','hhLRQ','JVKKp','success','RTTBc','YxNim','KWRbE','xruuS','/connectedAccounts?email=','Oykfj','wSElO','ZOcXm','LdpkN','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20email:','wqZgy','XBpwP','π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20userId:','/connectedAccounts?userId=','XUstw','zjWLd','RTYKk','uObrd','LcaBi','oNOpr','youtube','reddit','#FF4500','linkedin','#E1306C','#1877F2','#E60023','gmail','email','#1DA1F2','farcaster','#8A63D2','chatgpt','claude','#D4A574','gemini','#4285F4','toLowerCase','IaPSb','mKbOA','hOfFj','#0077B5','rOYOO','iCgdj','EcjDW','pinterest','BOFge','#EA4335','dbETk','PRLiA','FHaqg','BjcGU','pVRkM','#10A37F','gIufT','BGFEy','CEtZf','EEjXs','google_ai','hinge','#7C3AED','sephora','telegram','qBtlk'];_0x169d=function(){return _0x4b7b99;};return _0x169d();}Object['defineProperty'](exports,_0x12c7(0x0),{'value':!![]}),exports[_0x12c7(0x1)]=exports[_0x12c7(0x2)]=exports[_0x12c7(0x3)]=exports[_0x12c7(0x4)]=exports[_0x12c7(0x5)]=exports[_0x12c7(0x6)]=void 0x0,Object[_0x12c7(0x7)](exports,_0x12c7(0x8),{'enumerable':!![],'get':function(){return _assetRegistry[_0x12c7(0x9)];}});var _authService=__ONAIROS_REQ_FUNC__(0x0),_api=__ONAIROS_REQ_FUNC__(0x1),_apiKeyService=__ONAIROS_REQ_FUNC__(0x2),_assetRegistry=__ONAIROS_REQ_FUNC__(0x3);const API_BASE_URL=_api[_0x12c7(0xa)][_0x12c7(0xb)],getDeveloperAuthHeaders=()=>{const _0x319693={'oEnKy':_0x12c7(0xc),'AzqpB':_0x12c7(0xd),'LaaYh':function(_0x3ba7c1,_0x5608d6){return _0x3ba7c1===_0x5608d6;},'IMdor':_0x12c7(0xe),'TapYP':function(_0x518cc9,_0x291fce){return _0x518cc9!==_0x291fce;},'TRngx':_0x12c7(0xf),'XTXfL':_0x12c7(0x10)};if(!(0x0,_apiKeyService[_0x12c7(0x11)])())return _0x319693[_0x12c7(0x12)](_0x319693['IMdor'],_0x319693[_0x12c7(0x13)])?(console[_0x12c7(0x14)](_0x12c7(0x15)),(0x0,_api[_0x12c7(0x16)])()):(_0x120297[_0x12c7(0x17)](_0x319693['oEnKy']),[]);const _0x7717a4=(0x0,_apiKeyService['getApiConfig'])();if(!(_0x7717a4!==null&&_0x319693['TapYP'](_0x7717a4,void 0x0)&&_0x7717a4[_0x12c7(0x18)]))return _0x319693[_0x12c7(0x12)](_0x319693[_0x12c7(0x19)],_0x12c7(0x1a))?(_0x43b129[_0x12c7(0x17)](_0x319693[_0x12c7(0x1b)],_0x17093f),[]):(0x0,_api['getApiHeaders'])();return{...(0x0,_api[_0x12c7(0x16)])(),'Authorization':_0x12c7(0x1c)+_0x7717a4['apiKey'],'X-SDK-Version':_0x319693[_0x12c7(0x1d)],'X-SDK-Platform':'react-native'};},getConnectedAccountsLookup=async _0x3dceb2=>{const _0x458717={'NHyuU':_0x12c7(0x1e),'XWlUT':function(_0x4740f9,_0x3cca89){return _0x4740f9(_0x3cca89);},'AHmHi':function(_0x1bd08c){return _0x1bd08c();},'mkpEl':_0x12c7(0x1f),'KjeSM':function(_0x54ce2b,_0xac9c7){return _0x54ce2b>_0xac9c7;},'IxdtL':function(_0x3b632b,_0x446512){return _0x3b632b===_0x446512;},'lHetT':'onueY','whACQ':'β\x20[NEW\x20API]\x20Error\x20fetching\x20connected\x20accounts\x20via\x20lookup:'};try{console[_0x12c7(0x17)](_0x12c7(0x20),_0x3dceb2);const _0x23e070=await(0x0,_authService[_0x12c7(0x21)])(),_0x3523b7=await fetch(API_BASE_URL+_0x12c7(0x22)+_0x458717[_0x12c7(0x23)](encodeURIComponent,_0x3dceb2),{'method':'GET','headers':_0x23e070?(0x0,_api[_0x12c7(0x24)])(_0x23e070):_0x458717[_0x12c7(0x25)](getDeveloperAuthHeaders)});if(_0x3523b7['ok']){const _0x3e10ad=await _0x3523b7[_0x12c7(0x26)]();return console['log'](_0x458717[_0x12c7(0x27)],_0x3e10ad),_0x3e10ad['success']&&_0x3e10ad[_0x12c7(0x28)]&&_0x458717[_0x12c7(0x29)](_0x3e10ad[_0x12c7(0x28)][_0x12c7(0x2a)],0x0)?(console['log'](_0x12c7(0x2b)+_0x3e10ad[_0x12c7(0x28)][_0x12c7(0x2a)]+_0x12c7(0x2c)),_0x3e10ad['connectedAccounts']):_0x458717[_0x12c7(0x2d)](_0x458717[_0x12c7(0x2e)],_0x458717[_0x12c7(0x2e)])?(console[_0x12c7(0x17)]('βΉοΈ\x20[NEW\x20API]\x20No\x20connected\x20accounts\x20found\x20for\x20user'),[]):(_0x262b9e[_0x12c7(0x17)](_0x458717[_0x12c7(0x2f)],_0x34f730),[]);}else return console[_0x12c7(0x17)](_0x12c7(0x30)+_0x3523b7[_0x12c7(0x31)]+'\x20'+_0x3523b7[_0x12c7(0x32)]),[];}catch(_0x33e0ce){return _0x458717['IxdtL']('VZDNh',_0x12c7(0x33))?_0x501c65['connectedAccounts']:(console[_0x12c7(0x17)](_0x458717[_0x12c7(0x34)],_0x33e0ce),[]);}};exports['getConnectedAccountsLookup']=getConnectedAccountsLookup;const getConnectedAccountsSmart=async(_0x1b7f42,_0x2fd461,_0x3f9b2f)=>{const _0x433b62={'VFQDV':_0x12c7(0x15),'sBoar':'π§ \x20[SMART\x20API]\x20Starting\x20smart\x20connected\x20accounts\x20fetch...','ZteQh':_0x12c7(0x35),'EbUcv':function(_0x3dc948,_0x272bb7){return _0x3dc948(_0x272bb7);},'rDeAu':_0x12c7(0x36),'ZiQxX':_0x12c7(0x37),'PdPDW':'π\x20[SMART\x20API]\x20Falling\x20back\x20to\x20old\x20API\x20methods...','xocCA':function(_0x165bf4,_0x1d4983){return _0x165bf4===_0x1d4983;},'AeJpd':function(_0x3f41ca,_0x53667f){return _0x3f41ca!==_0x53667f;},'mEdQK':_0x12c7(0x38),'bXMJz':_0x12c7(0x39),'ogfIk':function(_0x36cb37,_0x18724d){return _0x36cb37(_0x18724d);},'wWFkq':function(_0x2c9596,_0x416f1c){return _0x2c9596===_0x416f1c;},'FmVgG':_0x12c7(0x3a),'bcCQV':'mGrSR','AuQpW':_0x12c7(0x3b),'GgjZR':_0x12c7(0x3c),'WXEon':function(_0x43d301,_0x5ea099){return _0x43d301(_0x5ea099);},'TuWrS':function(_0x1292f3,_0x348cb7){return _0x1292f3>_0x348cb7;}};console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x3d)]),console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x3e)],{'userEmail':_0x1b7f42,'userId':_0x2fd461,'username':_0x3f9b2f});if(_0x1b7f42){console[_0x12c7(0x17)](_0x12c7(0x3f),_0x1b7f42);const _0x37b764=await _0x433b62[_0x12c7(0x40)](getConnectedAccountsLookup,_0x1b7f42);if(_0x37b764['length']>0x0)return console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x41)]),_0x37b764;console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x42)]);}console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x43)]);let _0x16f16b=[];if(_0x1b7f42&&_0x433b62[_0x12c7(0x44)](_0x16f16b[_0x12c7(0x2a)],0x0)){if(_0x433b62[_0x12c7(0x45)](_0x433b62[_0x12c7(0x46)],_0x433b62[_0x12c7(0x46)]))return _0x275829[_0x12c7(0x14)](_0x433b62['VFQDV']),(0x0,_0x1094a4[_0x12c7(0x16)])();else console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x47)],_0x1b7f42),_0x16f16b=await _0x433b62[_0x12c7(0x48)](getConnectedAccountsByEmail,_0x1b7f42);}if(_0x433b62[_0x12c7(0x49)](_0x16f16b['length'],0x0)&&_0x2fd461){if(_0x433b62['FmVgG']===_0x433b62['bcCQV'])return _0x5f492b[_0x12c7(0x17)]('β
\x20[NEW\x20API]\x20Found\x20'+_0x1a4b19[_0x12c7(0x28)][_0x12c7(0x2a)]+'\x20connected\x20accounts'),_0x20818b[_0x12c7(0x28)];else console['log'](_0x433b62[_0x12c7(0x4a)],_0x2fd461),_0x16f16b=await _0x433b62[_0x12c7(0x40)](getConnectedAccountsByUserId,_0x2fd461);}return _0x433b62[_0x12c7(0x49)](_0x16f16b['length'],0x0)&&_0x3f9b2f&&(console[_0x12c7(0x17)](_0x433b62[_0x12c7(0x4b)],_0x3f9b2f),_0x16f16b=await _0x433b62[_0x12c7(0x4c)](getConnectedAccountsByUsername,_0x3f9b2f)),_0x433b62[_0x12c7(0x4d)](_0x16f16b[_0x12c7(0x2a)],0x0)?console[_0x12c7(0x17)]('β
\x20[SMART\x20API]\x20Success\x20with\x20old\x20API\x20fallback:\x20'+_0x16f16b['length']+_0x12c7(0x4e)):console[_0x12c7(0x17)](_0x12c7(0x4f)),_0x16f16b;};exports['getConnectedAccountsSmart']=getConnectedAccountsSmart;const getConnectedAccountsByUsername=async _0x27b533=>{const _0x2c1f0c={'ZgXbK':_0x12c7(0x50),'QSkMO':_0x12c7(0x51),'bDyIn':function(_0x2c7028,_0x49c364){return _0x2c7028(_0x49c364);},'hhLRQ':function(_0xaf9e45){return _0xaf9e45();},'JVKKp':_0x12c7(0x52),'RTTBc':function(_0x2db4b3,_0x420b60){return _0x2db4b3>_0x420b60;},'YxNim':_0x12c7(0x53),'KWRbE':_0x12c7(0xd)};try{if(_0x2c1f0c[_0x12c7(0x54)]===_0x2c1f0c[_0x12c7(0x55)])return _0x4f9633[_0x12c7(0x28)];else{console[_0x12c7(0x17)](_0x12c7(0x56),_0x27b533);const _0x255f3f=await(0x0,_authService[_0x12c7(0x21)])(),_0x284943=await fetch(API_BASE_URL+_0x12c7(0x57)+_0x2c1f0c['bDyIn'](encodeURIComponent,_0x27b533),{'method':'GET','headers':_0x255f3f?(0x0,_api[_0x12c7(0x24)])(_0x255f3f):_0x2c1f0c[_0x12c7(0x58)](getDeveloperAuthHeaders)});if(_0x284943['ok']){const _0x170594=await _0x284943['json']();console[_0x12c7(0x17)](_0x2c1f0c[_0x12c7(0x59)],_0x170594);if(_0x170594[_0x12c7(0x5a)]&&_0x170594['connectedAccounts']&&_0x2c1f0c[_0x12c7(0x5b)](_0x170594[_0x12c7(0x28)][_0x12c7(0x2a)],0x0))return _0x170594['connectedAccounts'];}return console[_0x12c7(0x17)](_0x2c1f0c[_0x12c7(0x5c)]),[];}}catch(_0x3c17af){return console['log'](_0x2c1f0c[_0x12c7(0x5d)],_0x3c17af),[];}};exports[_0x12c7(0x4)]=getConnectedAccountsByUsername;const getConnectedAccountsByEmail=async _0x288fbb=>{const _0x3bdb35={'wqZgy':'β οΈ\x20[SMART\x20API]\x20No\x20connected\x20accounts\x20found\x20with\x20any\x20method','xruuS':'π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20email:','LLWEt':function(_0x12ce30,_0x3b46fc,_0x1d4223){return _0x12ce30(_0x3b46fc,_0x1d4223);},'Oykfj':function(_0x3ac8a9){return _0x3ac8a9();},'wSElO':function(_0x2950ff,_0x5a6a2f){return _0x2950ff>_0x5a6a2f;},'ZOcXm':_0x12c7(0x53),'FttRd':function(_0x366c5c,_0xe53ba3){return _0x366c5c===_0xe53ba3;},'LdpkN':'ClwYf'};try{console['log'](_0x3bdb35[_0x12c7(0x5e)],_0x288fbb);const _0x3c792c=await(0x0,_authService[_0x12c7(0x21)])(),_0x2521f6=await _0x3bdb35['LLWEt'](fetch,API_BASE_URL+_0x12c7(0x5f)+encodeURIComponent(_0x288fbb),{'method':'GET','headers':_0x3c792c?(0x0,_api[_0x12c7(0x24)])(_0x3c792c):_0x3bdb35[_0x12c7(0x60)](getDeveloperAuthHeaders)});if(_0x2521f6['ok']){const _0x246e04=await _0x2521f6[_0x12c7(0x26)]();console[_0x12c7(0x17)](_0x12c7(0x52),_0x246e04);if(_0x246e04[_0x12c7(0x5a)]&&_0x246e04[_0x12c7(0x28)]&&_0x3bdb35[_0x12c7(0x61)](_0x246e04[_0x12c7(0x28)][_0x12c7(0x2a)],0x0))return _0x246e04[_0x12c7(0x28)];}return console['log'](_0x3bdb35[_0x12c7(0x62)]),[];}catch(_0xc11ec6){if(_0x3bdb35['FttRd'](_0x3bdb35[_0x12c7(0x63)],_0x3bdb35[_0x12c7(0x63)]))return console[_0x12c7(0x17)](_0x12c7(0x64),_0xc11ec6),[];else _0x415c79[_0x12c7(0x17)](_0x3bdb35[_0x12c7(0x65)]);}};exports[_0x12c7(0x6)]=getConnectedAccountsByEmail;const getConnectedAccountsByUserId=async _0x48483c=>{const _0x5924e0={'XUstw':function(_0x34cbc4,_0x30e39c){return _0x34cbc4(_0x30e39c);},'zjWLd':_0x12c7(0x52),'RTYKk':function(_0x4df900,_0x54bcee){return _0x4df900>_0x54bcee;},'uObrd':_0x12c7(0x53),'LcaBi':function(_0x1892f8,_0x5a3b0d){return _0x1892f8!==_0x5a3b0d;},'oNOpr':_0x12c7(0x66),'elwww':_0x12c7(0x1e)};try{console[_0x12c7(0x17)](_0x12c7(0x67),_0x48483c);const _0x4ee988=await(0x0,_authService['getAuthToken'])(),_0x5b2afc=await fetch(API_BASE_URL+_0x12c7(0x68)+_0x5924e0[_0x12c7(0x69)](encodeURIComponent,_0x48483c),{'method':'GET','headers':_0x4ee988?(0x0,_api[_0x12c7(0x24)])(_0x4ee988):getDeveloperAuthHeaders()});if(_0x5b2afc['ok']){const _0x3c130b=await _0x5b2afc[_0x12c7(0x26)]();console['log'](_0x5924e0[_0x12c7(0x6a)],_0x3c130b);if(_0x3c130b[_0x12c7(0x5a)]&&_0x3c130b[_0x12c7(0x28)]&&_0x5924e0[_0x12c7(0x6b)](_0x3c130b[_0x12c7(0x28)][_0x12c7(0x2a)],0x0))return _0x3c130b[_0x12c7(0x28)];}return console[_0x12c7(0x17)](_0x5924e0[_0x12c7(0x6c)]),[];}catch(_0x57ca7e){return _0x5924e0[_0x12c7(0x6d)](_0x5924e0[_0x12c7(0x6e)],_0x5924e0[_0x12c7(0x6e)])?_0xc94b4e[_0x12c7(0x28)]:(console[_0x12c7(0x17)](_0x5924e0['elwww'],_0x57ca7e),[]);}};exports['getConnectedAccountsByUserId']=getConnectedAccountsByUserId;const getPlatformColor=_0x330255=>{const _0x2a716b={'IaPSb':_0x12c7(0x6f),'mKbOA':_0x12c7(0x70),'GXNzs':_0x12c7(0x71),'hOfFj':_0x12c7(0x72),'rOYOO':'instagram','iCgdj':_0x12c7(0x73),'ayOts':'facebook','EcjDW':_0x12c7(0x74),'dCtAS':_0x12c7(0x75),'GIzcC':_0x12c7(0x76),'BOFge':_0x12c7(0x77),'UURMk':'twitter','dbETk':_0x12c7(0x78),'PRLiA':_0x12c7(0x79),'FHaqg':_0x12c7(0x7a),'BjcGU':_0x12c7(0x7b),'pVRkM':'openai','aAyxM':_0x12c7(0x7c),'gIufT':'anthropic','qOfXA':_0x12c7(0x7d),'BGFEy':'grok','CEtZf':'#000000','EEjXs':_0x12c7(0x7e),'nebIp':_0x12c7(0x7f),'qBtlk':'#666666'},_0x5ce078=_0x330255[_0x12c7(0x80)]();switch(_0x5ce078){case _0x2a716b[_0x12c7(0x81)]:return'#FF0000';case _0x2a716b[_0x12c7(0x82)]:return _0x2a716b['GXNzs'];case _0x2a716b[_0x12c7(0x83)]:return _0x12c7(0x84);case _0x2a716b[_0x12c7(0x85)]:return _0x2a716b[_0x12c7(0x86)];case _0x2a716b['ayOts']:return _0x2a716b[_0x12c7(0x87)];case _0x12c7(0x88):return _0x2a716b['dCtAS'];case _0x2a716b['GIzcC']:case _0x2a716b[_0x12c7(0x89)]:return _0x12c7(0x8a);case _0x2a716b['UURMk']:case'x':return _0x2a716b[_0x12c7(0x8b)];case _0x2a716b[_0x12c7(0x8c)]:return _0x2a716b[_0x12c7(0x8d)];case _0x2a716b[_0x12c7(0x8e)]:case _0x2a716b[_0x12c7(0x8f)]:return _0x12c7(0x90);case _0x2a716b['aAyxM']:case _0x2a716b[_0x12c7(0x91)]:return _0x2a716b['qOfXA'];case _0x2a716b[_0x12c7(0x92)]:return _0x2a716b[_0x12c7(0x93)];case _0x2a716b[_0x12c7(0x94)]:case _0x12c7(0x95):return _0x2a716b['nebIp'];case _0x12c7(0x96):return _0x12c7(0x97);case'instagram':return _0x12c7(0x73);case _0x12c7(0x98):return'#000000';case _0x12c7(0x99):return'#0088CC';default:return _0x2a716b[_0x12c7(0x9a)];}};function _0x12c7(_0x169dd6,_0x12c739){_0x169dd6=_0x169dd6-0x0;const _0x58db98=_0x169d();let _0x371cd7=_0x58db98[_0x169dd6];return _0x371cd7;}exports[_0x12c7(0x1)]=getPlatformColor;
|
|
10
|
+
Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x5e2d(0x0)]=exports[_0x5e2d(0x1)]=exports['getConnectedAccountsLookup']=exports[_0x5e2d(0x2)]=exports[_0x5e2d(0x3)]=exports[_0x5e2d(0x4)]=void 0x0,Object[_0x5e2d(0x5)](exports,_0x5e2d(0x6),{'enumerable':!![],'get':function(){return _assetRegistry[_0x5e2d(0x7)];}});function _0x4869(){const _0x2fcaa7=['getPlatformColor','getConnectedAccountsSmart','getConnectedAccountsByUsername','getConnectedAccountsByUserId','getConnectedAccountsByEmail','defineProperty','getPlatformIcon','getPlatformIconFromRegistry','β οΈ\x20SDK\x20not\x20initialized\x20-\x20using\x20basic\x20headers','rraLG','3.0.72','warn','getApiHeaders','getApiConfig','SbYcW','rhqkE','pQCoD','hNSSE','Bearer\x20','apiKey','gypWu','β οΈ\x20[SMART\x20API]\x20No\x20connected\x20accounts\x20found\x20with\x20any\x20method','β
\x20[NEW\x20API]\x20Connected\x20accounts\x20fetched\x20successfully:','βΉοΈ\x20[NEW\x20API]\x20No\x20connected\x20accounts\x20found\x20for\x20user','ajfgS','XAslw','rvrdF','log','π\x20[NEW\x20API]\x20Fetching\x20connected\x20accounts\x20via\x20unified\x20lookup\x20for:','iArxI','/connectedAccounts/lookup/','lrAbS','getAuthHeaders','GSuzs','json','fpqEH','connectedAccounts','XDfgd','length','\x20connected\x20accounts','hxWyz','β οΈ\x20[NEW\x20API]\x20Response\x20not\x20OK:\x20','status','statusText','jBWIF','Mhzbq','jhLCX','getConnectedAccountsLookup','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20email:','π§ \x20[SMART\x20API]\x20Available\x20identifiers:','π§ \x20[SMART\x20API]\x20Trying\x20new\x20unified\x20lookup\x20with\x20email:','OoPYm','π\x20[SMART\x20API]\x20New\x20API\x20returned\x20no\x20results,\x20trying\x20fallbacks...','π\x20[SMART\x20API]\x20Falling\x20back\x20to\x20old\x20API\x20methods...','qutjV','nvjBc','zurrU','weXqs','ZJWIy','zaRla','π§ \x20[SMART\x20API]\x20Starting\x20smart\x20connected\x20accounts\x20fetch...','YzpkB','RUGRK','XvXnW','rbGKV','YafqW','beBMq','IvsZQ','DLNYI','QwIwR','π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20email:','aSQfh','dMiaR','π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20userId:','XqgRM','pOxgy','CdBZW','ZmNJB','HFuOc','sPpEX','gzcFB','β
\x20[SMART\x20API]\x20Success\x20with\x20old\x20API\x20fallback:\x20','\x20accounts','NuOfo','π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20username:','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20username:','hAdyj','getAuthToken','/connectedAccounts?username=','MInNy','xCmUA','rdjgK','UeLCS','π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20email:','qOPIO','ZyUkY','/connectedAccounts?email=','owUIH','xtWwh','success','β οΈ\x20[LEGACY]\x20API\x20response\x20not\x20successful\x20or\x20empty','Wrznp','β\x20[NEW\x20API]\x20Error\x20fetching\x20connected\x20accounts\x20via\x20lookup:','π\x20[LEGACY]\x20Fetching\x20connected\x20accounts\x20for\x20userId:','zsjoP','β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20userId:','EGSRY','MhcxH','kSMWv','TCGED','tMVYu','sTkgi','youtube','linkedin','#0077B5','#1877F2','pinterest','gmail','email','twitter','#1DA1F2','#10A37F','anthropic','#D4A574','grok','#000000','google_ai','#4285F4','hinge','#7C3AED','#E1306C','sephora','telegram','#0088CC','#666666','toLowerCase','jMtqH','reddit','#FF4500','FvEfa','xLguh','instagram','facebook','ViTOs','SmOuU','MCHIB','esAkl','#EA4335','uFxSp','YLEou','#8A63D2','chatgpt','scceE','PxXgd','mfUOk','EsrkG','eZiNl','tltRw','OTLzW','gemini','nNSfO','Lvkbm','JykEU','YVbMK','WHADd','jsnpe','qhuKc','GpbOX','XAIze'];_0x4869=function(){return _0x2fcaa7;};return _0x4869();}var _authService=__ONAIROS_REQ_FUNC__(0x0),_api=__ONAIROS_REQ_FUNC__(0x1),_apiKeyService=__ONAIROS_REQ_FUNC__(0x2),_assetRegistry=__ONAIROS_REQ_FUNC__(0x3);const API_BASE_URL=_api['API_CONFIG']['BASE_URL'],getDeveloperAuthHeaders=()=>{const _0x4bcecd={'xWMLh':_0x5e2d(0x8),'SbYcW':function(_0x25964e,_0xbb8142){return _0x25964e!==_0xbb8142;},'gpDcA':function(_0xa2f566,_0x160aee){return _0xa2f566!==_0x160aee;},'rhqkE':function(_0x469268,_0x16440b){return _0x469268===_0x16440b;},'pQCoD':_0x5e2d(0x9),'hNSSE':'mrxuj','gypWu':_0x5e2d(0xa)};if(!(0x0,_apiKeyService['isApiKeyInitialized'])())return console[_0x5e2d(0xb)](_0x4bcecd['xWMLh']),(0x0,_api[_0x5e2d(0xc)])();const _0x3c5ab6=(0x0,_apiKeyService[_0x5e2d(0xd)])();if(!(_0x4bcecd[_0x5e2d(0xe)](_0x3c5ab6,null)&&_0x4bcecd['gpDcA'](_0x3c5ab6,void 0x0)&&_0x3c5ab6['apiKey']))return _0x4bcecd[_0x5e2d(0xf)](_0x4bcecd[_0x5e2d(0x10)],_0x4bcecd[_0x5e2d(0x11)])?(0x0,_0x4fe756[_0x5e2d(0xc)])():(0x0,_api[_0x5e2d(0xc)])();return{...(0x0,_api['getApiHeaders'])(),'Authorization':_0x5e2d(0x12)+_0x3c5ab6[_0x5e2d(0x13)],'X-SDK-Version':_0x4bcecd[_0x5e2d(0x14)],'X-SDK-Platform':'react-native'};},getConnectedAccountsLookup=async _0x5933f7=>{const _0x139939={'jhLCX':_0x5e2d(0x15),'iArxI':function(_0x1988e0,_0x4c8e87,_0x3ba580){return _0x1988e0(_0x4c8e87,_0x3ba580);},'lrAbS':function(_0x3d2bcb,_0x50e1b8){return _0x3d2bcb(_0x50e1b8);},'GSuzs':function(_0x12c203){return _0x12c203();},'fpqEH':_0x5e2d(0x16),'XDfgd':function(_0x7250ad,_0x184aa9){return _0x7250ad>_0x184aa9;},'hxWyz':_0x5e2d(0x17),'jBWIF':function(_0x52f6e1,_0x2e70a7){return _0x52f6e1!==_0x2e70a7;},'Mhzbq':_0x5e2d(0x18),'eCWRu':_0x5e2d(0x19)};try{if(_0x5e2d(0x1a)!=='PZjIj'){console[_0x5e2d(0x1b)](_0x5e2d(0x1c),_0x5933f7);const _0x25f5cd=await(0x0,_authService['getAuthToken'])(),_0x21ab87=await _0x139939[_0x5e2d(0x1d)](fetch,API_BASE_URL+_0x5e2d(0x1e)+_0x139939[_0x5e2d(0x1f)](encodeURIComponent,_0x5933f7),{'method':'GET','headers':_0x25f5cd?(0x0,_api[_0x5e2d(0x20)])(_0x25f5cd):_0x139939[_0x5e2d(0x21)](getDeveloperAuthHeaders)});if(_0x21ab87['ok']){const _0x18c323=await _0x21ab87[_0x5e2d(0x22)]();return console[_0x5e2d(0x1b)](_0x139939[_0x5e2d(0x23)],_0x18c323),_0x18c323['success']&&_0x18c323[_0x5e2d(0x24)]&&_0x139939[_0x5e2d(0x25)](_0x18c323[_0x5e2d(0x24)]['length'],0x0)?(console['log']('β
\x20[NEW\x20API]\x20Found\x20'+_0x18c323[_0x5e2d(0x24)][_0x5e2d(0x26)]+_0x5e2d(0x27)),_0x18c323[_0x5e2d(0x24)]):(console[_0x5e2d(0x1b)](_0x139939[_0x5e2d(0x28)]),[]);}else return console[_0x5e2d(0x1b)](_0x5e2d(0x29)+_0x21ab87[_0x5e2d(0x2a)]+'\x20'+_0x21ab87[_0x5e2d(0x2b)]),[];}else return _0x557af1[_0x5e2d(0x7)];}catch(_0x48cebc){if(_0x139939[_0x5e2d(0x2c)](_0x139939[_0x5e2d(0x2d)],_0x139939['eCWRu']))return console['log']('β\x20[NEW\x20API]\x20Error\x20fetching\x20connected\x20accounts\x20via\x20lookup:',_0x48cebc),[];else _0xbb8484[_0x5e2d(0x1b)](_0x139939[_0x5e2d(0x2e)]);}};exports[_0x5e2d(0x2f)]=getConnectedAccountsLookup;const getConnectedAccountsSmart=async(_0x23619f,_0x455cf2,_0x3e973c)=>{const _0x4f7b45={'nCrpR':_0x5e2d(0x30),'dMiaR':'β\x20[LEGACY]\x20Error\x20fetching\x20connected\x20accounts\x20by\x20userId:','YzpkB':_0x5e2d(0x31),'RUGRK':_0x5e2d(0x32),'XvXnW':function(_0x58a70e,_0x11cda3){return _0x58a70e>_0x11cda3;},'rbGKV':function(_0x394b6f,_0x126fff){return _0x394b6f===_0x126fff;},'YafqW':_0x5e2d(0x33),'yRWBV':'β
\x20[SMART\x20API]\x20Success\x20with\x20new\x20unified\x20lookup\x20via\x20email','otIsY':_0x5e2d(0x34),'beBMq':_0x5e2d(0x35),'IvsZQ':function(_0xd16c78,_0x52fc67){return _0xd16c78!==_0x52fc67;},'DLNYI':_0x5e2d(0x36),'QwIwR':_0x5e2d(0x37),'aSQfh':_0x5e2d(0x38),'XqgRM':function(_0x30b523,_0x10f204){return _0x30b523(_0x10f204);},'ICdLF':function(_0x4a23ba,_0x9133b8){return _0x4a23ba!==_0x9133b8;},'pOxgy':_0x5e2d(0x39),'CdBZW':_0x5e2d(0x3a),'ZmNJB':'π\x20[SMART\x20API]\x20Trying\x20old\x20API\x20with\x20username:','HFuOc':function(_0x27fae1,_0xee4a4){return _0x27fae1(_0xee4a4);},'sPpEX':function(_0x483e17,_0x39963c){return _0x483e17!==_0x39963c;},'hJgcZ':_0x5e2d(0x3b),'NuOfo':'β οΈ\x20[SMART\x20API]\x20No\x20connected\x20accounts\x20found\x20with\x20any\x20method'};console[_0x5e2d(0x1b)](_0x5e2d(0x3c)),console[_0x5e2d(0x1b)](_0x4f7b45[_0x5e2d(0x3d)],{'userEmail':_0x23619f,'userId':_0x455cf2,'username':_0x3e973c});if(_0x23619f){console[_0x5e2d(0x1b)](_0x4f7b45[_0x5e2d(0x3e)],_0x23619f);const _0x426fee=await getConnectedAccountsLookup(_0x23619f);if(_0x4f7b45[_0x5e2d(0x3f)](_0x426fee[_0x5e2d(0x26)],0x0))return _0x4f7b45[_0x5e2d(0x40)](_0x4f7b45[_0x5e2d(0x41)],_0x4f7b45[_0x5e2d(0x41)])?(console[_0x5e2d(0x1b)](_0x4f7b45['yRWBV']),_0x426fee):_0xc45e51[_0x5e2d(0x24)];console[_0x5e2d(0x1b)](_0x4f7b45['otIsY']);}console[_0x5e2d(0x1b)](_0x4f7b45[_0x5e2d(0x42)]);let _0x5841ed=[];if(_0x23619f&&_0x4f7b45[_0x5e2d(0x40)](_0x5841ed[_0x5e2d(0x26)],0x0)){if(_0x4f7b45[_0x5e2d(0x43)](_0x4f7b45[_0x5e2d(0x44)],_0x4f7b45[_0x5e2d(0x45)]))console[_0x5e2d(0x1b)](_0x5e2d(0x46),_0x23619f),_0x5841ed=await getConnectedAccountsByEmail(_0x23619f);else return _0x1f3a68['log'](_0x4f7b45['nCrpR'],_0x4a8229),[];}if(_0x4f7b45['rbGKV'](_0x5841ed[_0x5e2d(0x26)],0x0)&&_0x455cf2){if(_0x5e2d(0x38)!==_0x4f7b45[_0x5e2d(0x47)])return _0x2dbfbf[_0x5e2d(0x1b)](_0x4f7b45[_0x5e2d(0x48)],_0x1cfc0d),[];else console[_0x5e2d(0x1b)](_0x5e2d(0x49),_0x455cf2),_0x5841ed=await _0x4f7b45[_0x5e2d(0x4a)](getConnectedAccountsByUserId,_0x455cf2);}if(_0x5841ed[_0x5e2d(0x26)]===0x0&&_0x3e973c){if(_0x4f7b45['ICdLF'](_0x4f7b45[_0x5e2d(0x4b)],_0x4f7b45[_0x5e2d(0x4c)]))console[_0x5e2d(0x1b)](_0x4f7b45[_0x5e2d(0x4d)],_0x3e973c),_0x5841ed=await _0x4f7b45[_0x5e2d(0x4e)](getConnectedAccountsByUsername,_0x3e973c);else return _0x5bc555[_0x5e2d(0x24)];}if(_0x4f7b45[_0x5e2d(0x3f)](_0x5841ed[_0x5e2d(0x26)],0x0)){if(_0x4f7b45[_0x5e2d(0x4f)](_0x4f7b45['hJgcZ'],_0x5e2d(0x50)))console[_0x5e2d(0x1b)](_0x5e2d(0x51)+_0x5841ed['length']+_0x5e2d(0x52));else return _0x8d6dd3[_0x5e2d(0x24)];}else console['log'](_0x4f7b45[_0x5e2d(0x53)]);return _0x5841ed;};function _0x5e2d(_0x48697f,_0x5e2def){_0x48697f=_0x48697f-0x0;const _0x7cc47d=_0x4869();let _0x1de643=_0x7cc47d[_0x48697f];return _0x1de643;}exports[_0x5e2d(0x1)]=getConnectedAccountsSmart;const getConnectedAccountsByUsername=async _0x3e6efc=>{const _0x3d5568={'hAdyj':_0x5e2d(0x54),'XAIpL':function(_0x6d1841,_0x5dc41a,_0x2be428){return _0x6d1841(_0x5dc41a,_0x2be428);},'MInNy':function(_0x1025af,_0x1ccb6b){return _0x1025af(_0x1ccb6b);},'zpxfo':function(_0xff9807,_0x1ae6cc){return _0xff9807===_0x1ae6cc;},'xCmUA':'evZFy','rdjgK':'β
\x20[LEGACY]\x20Connected\x20accounts\x20fetched:','lHCsX':'β οΈ\x20[LEGACY]\x20API\x20response\x20not\x20successful\x20or\x20empty','UeLCS':_0x5e2d(0x55)};try{console[_0x5e2d(0x1b)](_0x3d5568[_0x5e2d(0x56)],_0x3e6efc);const _0x10f8ad=await(0x0,_authService[_0x5e2d(0x57)])(),_0x40b5f0=await _0x3d5568['XAIpL'](fetch,API_BASE_URL+_0x5e2d(0x58)+_0x3d5568[_0x5e2d(0x59)](encodeURIComponent,_0x3e6efc),{'method':'GET','headers':_0x10f8ad?(0x0,_api[_0x5e2d(0x20)])(_0x10f8ad):getDeveloperAuthHeaders()});if(_0x40b5f0['ok']){if(_0x3d5568['zpxfo'](_0x3d5568[_0x5e2d(0x5a)],_0x3d5568['xCmUA'])){const _0x625502=await _0x40b5f0[_0x5e2d(0x22)]();console[_0x5e2d(0x1b)](_0x3d5568[_0x5e2d(0x5b)],_0x625502);if(_0x625502['success']&&_0x625502[_0x5e2d(0x24)]&&_0x625502[_0x5e2d(0x24)][_0x5e2d(0x26)]>0x0)return _0x625502[_0x5e2d(0x24)];}else return _0x168561['log'](_0x5e2d(0x17)),[];}return console[_0x5e2d(0x1b)](_0x3d5568['lHCsX']),[];}catch(_0x4dd2e8){return console['log'](_0x3d5568[_0x5e2d(0x5c)],_0x4dd2e8),[];}};exports[_0x5e2d(0x2)]=getConnectedAccountsByUsername;const getConnectedAccountsByEmail=async _0x1b0f9f=>{const _0x2b21d3={'qOPIO':_0x5e2d(0x5d),'ZyUkY':function(_0x579b34,_0x180719,_0x5685eb){return _0x579b34(_0x180719,_0x5685eb);},'owUIH':function(_0x20ef74,_0x39ecf8){return _0x20ef74(_0x39ecf8);},'xtWwh':function(_0x490d92){return _0x490d92();},'mnmth':'β
\x20[LEGACY]\x20Connected\x20accounts\x20fetched:','Wrznp':'gOsXt'};try{console[_0x5e2d(0x1b)](_0x2b21d3[_0x5e2d(0x5e)],_0x1b0f9f);const _0x4d7ece=await(0x0,_authService[_0x5e2d(0x57)])(),_0x509a47=await _0x2b21d3[_0x5e2d(0x5f)](fetch,API_BASE_URL+_0x5e2d(0x60)+_0x2b21d3[_0x5e2d(0x61)](encodeURIComponent,_0x1b0f9f),{'method':'GET','headers':_0x4d7ece?(0x0,_api['getAuthHeaders'])(_0x4d7ece):_0x2b21d3[_0x5e2d(0x62)](getDeveloperAuthHeaders)});if(_0x509a47['ok']){const _0x36bde1=await _0x509a47[_0x5e2d(0x22)]();console[_0x5e2d(0x1b)](_0x2b21d3['mnmth'],_0x36bde1);if(_0x36bde1[_0x5e2d(0x63)]&&_0x36bde1['connectedAccounts']&&_0x36bde1[_0x5e2d(0x24)][_0x5e2d(0x26)]>0x0)return _0x36bde1['connectedAccounts'];}return console[_0x5e2d(0x1b)](_0x5e2d(0x64)),[];}catch(_0x4e0b5d){if(_0x2b21d3[_0x5e2d(0x65)]!=='gOsXt')_0x13b9a3[_0x5e2d(0x1b)](_0x5e2d(0x51)+_0x4b79a2['length']+'\x20accounts');else return console[_0x5e2d(0x1b)](_0x5e2d(0x30),_0x4e0b5d),[];}};exports[_0x5e2d(0x4)]=getConnectedAccountsByEmail;const getConnectedAccountsByUserId=async _0x5411d4=>{const _0x4bb8a7={'ToOHI':_0x5e2d(0x66),'EGSRY':_0x5e2d(0x67),'MhcxH':function(_0x3640e7,_0x5718fa,_0x11db6d){return _0x3640e7(_0x5718fa,_0x11db6d);},'kSMWv':function(_0x169c15){return _0x169c15();},'hGtHp':function(_0x598914,_0x27dbd7){return _0x598914>_0x27dbd7;},'TCGED':function(_0x54bdbe,_0xeeb411){return _0x54bdbe===_0xeeb411;},'tMVYu':_0x5e2d(0x68),'sTkgi':_0x5e2d(0x69)};try{console[_0x5e2d(0x1b)](_0x4bb8a7[_0x5e2d(0x6a)],_0x5411d4);const _0x3c7738=await(0x0,_authService['getAuthToken'])(),_0x4fec9e=await _0x4bb8a7[_0x5e2d(0x6b)](fetch,API_BASE_URL+'/connectedAccounts?userId='+encodeURIComponent(_0x5411d4),{'method':'GET','headers':_0x3c7738?(0x0,_api[_0x5e2d(0x20)])(_0x3c7738):_0x4bb8a7[_0x5e2d(0x6c)](getDeveloperAuthHeaders)});if(_0x4fec9e['ok']){const _0x4a2cc8=await _0x4fec9e[_0x5e2d(0x22)]();console[_0x5e2d(0x1b)]('β
\x20[LEGACY]\x20Connected\x20accounts\x20fetched:',_0x4a2cc8);if(_0x4a2cc8[_0x5e2d(0x63)]&&_0x4a2cc8[_0x5e2d(0x24)]&&_0x4bb8a7['hGtHp'](_0x4a2cc8[_0x5e2d(0x24)][_0x5e2d(0x26)],0x0))return _0x4bb8a7[_0x5e2d(0x6d)](_0x4bb8a7[_0x5e2d(0x6e)],_0x4bb8a7['tMVYu'])?_0x4a2cc8['connectedAccounts']:(_0x200638['log'](_0x4bb8a7['ToOHI'],_0x59d0ae),[]);}return console[_0x5e2d(0x1b)](_0x5e2d(0x64)),[];}catch(_0x38235f){return console[_0x5e2d(0x1b)](_0x4bb8a7[_0x5e2d(0x6f)],_0x38235f),[];}};exports[_0x5e2d(0x3)]=getConnectedAccountsByUserId;const getPlatformColor=_0x49b1a6=>{const _0x29b44e={'jMtqH':_0x5e2d(0x70),'AXfPe':'#FF0000','FvEfa':_0x5e2d(0x71),'xLguh':_0x5e2d(0x72),'ViTOs':_0x5e2d(0x73),'SmOuU':_0x5e2d(0x74),'MCHIB':_0x5e2d(0x75),'esAkl':_0x5e2d(0x76),'uFxSp':_0x5e2d(0x77),'YLEou':_0x5e2d(0x78),'oxWfD':'farcaster','scceE':'openai','PxXgd':_0x5e2d(0x79),'mfUOk':'claude','EsrkG':_0x5e2d(0x7a),'eZiNl':_0x5e2d(0x7b),'tltRw':_0x5e2d(0x7c),'OTLzW':_0x5e2d(0x7d),'nNSfO':_0x5e2d(0x7e),'Lvkbm':_0x5e2d(0x7f),'JykEU':_0x5e2d(0x80),'YVbMK':_0x5e2d(0x81),'WHADd':'instagram','cHXqZ':_0x5e2d(0x82),'jsnpe':_0x5e2d(0x83),'qhuKc':_0x5e2d(0x84),'GpbOX':_0x5e2d(0x85),'XAIze':_0x5e2d(0x86)},_0x22185c=_0x49b1a6[_0x5e2d(0x87)]();switch(_0x22185c){case _0x29b44e[_0x5e2d(0x88)]:return _0x29b44e['AXfPe'];case _0x5e2d(0x89):return _0x5e2d(0x8a);case _0x29b44e[_0x5e2d(0x8b)]:return _0x29b44e[_0x5e2d(0x8c)];case _0x5e2d(0x8d):return'#E1306C';case _0x5e2d(0x8e):return _0x29b44e[_0x5e2d(0x8f)];case _0x29b44e[_0x5e2d(0x90)]:return'#E60023';case _0x29b44e[_0x5e2d(0x91)]:case _0x29b44e[_0x5e2d(0x92)]:return _0x5e2d(0x93);case _0x29b44e[_0x5e2d(0x94)]:case'x':return _0x29b44e[_0x5e2d(0x95)];case _0x29b44e['oxWfD']:return _0x5e2d(0x96);case _0x5e2d(0x97):case _0x29b44e[_0x5e2d(0x98)]:return _0x29b44e[_0x5e2d(0x99)];case _0x29b44e[_0x5e2d(0x9a)]:case _0x29b44e[_0x5e2d(0x9b)]:return _0x29b44e[_0x5e2d(0x9c)];case _0x29b44e[_0x5e2d(0x9d)]:return _0x29b44e[_0x5e2d(0x9e)];case _0x5e2d(0x9f):case _0x29b44e[_0x5e2d(0xa0)]:return _0x29b44e[_0x5e2d(0xa1)];case _0x29b44e[_0x5e2d(0xa2)]:return _0x29b44e[_0x5e2d(0xa3)];case _0x29b44e[_0x5e2d(0xa4)]:return _0x29b44e['cHXqZ'];case _0x29b44e[_0x5e2d(0xa5)]:return _0x5e2d(0x7d);case _0x29b44e[_0x5e2d(0xa6)]:return _0x29b44e[_0x5e2d(0xa7)];default:return _0x29b44e[_0x5e2d(0xa8)];}};exports[_0x5e2d(0x0)]=getPlatformColor;
|
|
@@ -8,4 +8,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
8
8
|
require("./jwtStorageService")
|
|
9
9
|
];
|
|
10
10
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
11
|
-
Object[_0x3d70(0x0)](exports,_0x3d70(0x1),{'value':!![]}),exports[_0x3d70(0x2)]=exports[_0x3d70(0x3)]=exports[_0x3d70(0x4)]=exports[_0x3d70(0x5)]=void 0x0;var _googleSignin=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2),_apiKeyService=__ONAIROS_REQ_FUNC__(0x3),_jwtStorageService=__ONAIROS_REQ_FUNC__(0x4);function _interopRequireDefault(_0x467163){return _0x467163&&_0x467163[_0x3d70(0x1)]?_0x467163:{'default':_0x467163};}let WEB_CLIENT_ID=_0x3d70(0x6),IOS_CLIENT_ID=_0x3d70(0x6);const updateGoogleClientIds=_0x52639b=>{const _0x12a3da={'nofBT':_0x3d70(0x7),'KwowF':_0x3d70(0x8)};if(_0x52639b[_0x3d70(0x9)]){if(_0x12a3da[_0x3d70(0xa)]!==_0x12a3da[_0x3d70(0xa)])return{'success':![],'message':_0x5b3ff6[_0x3d70(0xb)]||_0x3d70(0xc)};else WEB_CLIENT_ID=_0x52639b[_0x3d70(0x9)];}_0x52639b[_0x3d70(0xd)]&&(IOS_CLIENT_ID=_0x52639b[_0x3d70(0xd)]),console[_0x3d70(0xe)](_0x12a3da['KwowF'],{'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID});};exports['updateGoogleClientIds']=updateGoogleClientIds;function _0x3d70(_0x34904c,_0x3d7036){_0x34904c=_0x34904c-0x0;const _0x5371bd=_0x3490();let _0x34a143=_0x5371bd[_0x34904c];return _0x34a143;}const initializeGoogleAuth=()=>{const _0x20e385={'GeuYu':_0x3d70(0xf),'bnMWg':_0x3d70(0x10)};_googleSignin[_0x3d70(0x11)][_0x3d70(0x12)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'scopes':[_0x20e385[_0x3d70(0x13)],_0x20e385['bnMWg'],_0x3d70(0x14)],'offlineAccess':!![],'forceCodeForRefreshToken':!![],'hostedDomain':'','accountName':''});},signInWithGoogle=async()=>{const _0x5449c4={'Cangf':_0x3d70(0x8),'uSFQn':'Google\x20Sign-In\x20is\x20already\x20in\x20progress','yFyHg':'openid','HGRQa':_0x3d70(0x10),'dURxY':'email','denCi':'Account\x20created/authenticated\x20successfully','xhLgA':_0x3d70(0x15),'koNDc':function(_0x38c186,_0x4384ba){return _0x38c186===_0x4384ba;},'DzWYR':'hUsBt','xCnrP':_0x3d70(0x16),'FVJXE':function(_0xf47272,_0x416eb8){return _0xf47272!==_0x416eb8;},'yFnvT':_0x3d70(0x17),'phuOQ':_0x3d70(0x18),'SYxfB':function(_0x52d5a4,_0x357362){return _0x52d5a4===_0x357362;},'HyWbx':function(_0x5a1733,_0x48d22d){return _0x5a1733===_0x48d22d;},'DaScn':'π\x20Got\x20Google\x20tokens','vpzVn':function(_0x2ed004,_0x3052f3){return _0x2ed004(_0x3052f3);},'sFsuS':_0x3d70(0x19),'QOOAb':function(_0x10cafc,_0x2382b7){return _0x10cafc===_0x2382b7;},'jEvAi':function(_0x3fdd44,_0x37efa1){return _0x3fdd44===_0x37efa1;},'GeJGM':_0x3d70(0x1a),'JYEAu':_0x3d70(0x1b),'fAZbN':_0x3d70(0x1c),'codnW':_0x3d70(0x1d),'IZWPO':_0x3d70(0x1e),'VtIeL':function(_0xa722d,_0x1c612e){return _0xa722d!==_0x1c612e;},'AFqIi':_0x3d70(0x1f),'raIhs':_0x3d70(0x20),'ONDpx':function(_0x4569f5,_0x4abea5){return _0x4569f5===_0x4abea5;},'voALR':_0x3d70(0x21)};try{if(_0x5449c4['koNDc'](_0x5449c4[_0x3d70(0x22)],_0x5449c4[_0x3d70(0x22)])){var _0x199fc7,_0x3d7edf;console[_0x3d70(0xe)](_0x5449c4['xCnrP']),initializeGoogleAuth(),await _googleSignin[_0x3d70(0x11)]['hasPlayServices']();try{_0x5449c4[_0x3d70(0x23)](_0x3d70(0x24),_0x5449c4[_0x3d70(0x25)])?(await _googleSignin[_0x3d70(0x11)][_0x3d70(0x26)](),console[_0x3d70(0xe)](_0x5449c4['phuOQ'])):(_0x58aeee[_0x3d70(0x9)]&&(_0x5e74e7=_0x8a7972[_0x3d70(0x9)]),_0x5b80fd[_0x3d70(0xd)]&&(_0x4622e0=_0x265d8a[_0x3d70(0xd)]),_0x5813c5['log'](_0x5449c4[_0x3d70(0x27)],{'webClientId':_0x51aa8b,'iosClientId':_0x3e63b}));}catch(_0x10ee1c){console['log'](_0x5449c4[_0x3d70(0x28)],_0x10ee1c);}const _0x1039c1=await _googleSignin[_0x3d70(0x11)][_0x3d70(0x29)]();console[_0x3d70(0xe)](_0x3d70(0x2a),_0x5449c4['SYxfB'](_0x199fc7=_0x1039c1[_0x3d70(0x2b)],null)||_0x5449c4['HyWbx'](_0x199fc7,void 0x0)||_0x5449c4[_0x3d70(0x2c)](_0x199fc7=_0x199fc7[_0x3d70(0x2d)],null)||_0x5449c4['SYxfB'](_0x199fc7,void 0x0)?void 0x0:_0x199fc7[_0x3d70(0x14)]);const _0x521127=(_0x3d7edf=_0x1039c1['data'])===null||_0x3d7edf===void 0x0?void 0x0:_0x3d7edf[_0x3d70(0x2d)];if(!_0x521127||!_0x521127[_0x3d70(0x14)])throw new Error('No\x20user\x20data\x20received\x20from\x20Google');console[_0x3d70(0xe)](_0x3d70(0x2e),{'email':_0x521127['email'],'name':_0x521127[_0x3d70(0x2f)],'photo':_0x521127['photo'],'id':_0x521127['id']});const _0x1ce4fa=await _googleSignin[_0x3d70(0x11)][_0x3d70(0x30)]();console[_0x3d70(0xe)](_0x5449c4[_0x3d70(0x31)]);const _0x37d826=await _0x5449c4[_0x3d70(0x32)](createUserAccount,{'email':_0x521127[_0x3d70(0x14)],'name':_0x521127[_0x3d70(0x2f)]||_0x521127['email']['split']('@')[0x0],'photoUrl':_0x521127[_0x3d70(0x33)]||'','googleId':_0x521127['id'],'accessToken':_0x1ce4fa[_0x3d70(0x34)],'idToken':_0x1ce4fa[_0x3d70(0x35)]});if(_0x37d826[_0x3d70(0x36)]){const _0x359c1c=_0x5449c4[_0x3d70(0x37)][_0x3d70(0x38)]('|');let _0x2d57bb=0x0;while(!![]){switch(_0x359c1c[_0x2d57bb++]){case'0':return{'success':!![],'user':{'id':(_0x5449c4[_0x3d70(0x39)](_0x4d7198=_0x37d826[_0x3d70(0x2d)],null)||_0x4d7198===void 0x0?void 0x0:_0x4d7198['id'])||'','email':_0x521127[_0x3d70(0x14)],'username':_0x521127['name']||_0x521127['email']['split']('@')[0x0],'odeanId':_0x5449c4[_0x3d70(0x3a)](_0x244784=_0x37d826[_0x3d70(0x2d)],null)||_0x5449c4[_0x3d70(0x3a)](_0x244784,void 0x0)?void 0x0:_0x244784[_0x3d70(0x3b)]},'token':_0x37d826[_0x3d70(0x3c)],'isNewUser':_0x37d826[_0x3d70(0x3d)]||![]};case'1':await _asyncStorage['default'][_0x3d70(0x3e)](_0x5449c4[_0x3d70(0x3f)],_0x521127[_0x3d70(0x14)]);continue;case'2':await _asyncStorage[_0x3d70(0x40)][_0x3d70(0x3e)](_0x5449c4[_0x3d70(0x41)],_0x521127[_0x3d70(0x14)][_0x3d70(0x38)]('@')[0x0]);continue;case'3':await _asyncStorage[_0x3d70(0x40)][_0x3d70(0x3e)]('auth_method',_0x3d70(0x42));continue;case'4':_0x37d826[_0x3d70(0x3c)]&&await(0x0,_jwtStorageService['storeJWT'])(_0x37d826[_0x3d70(0x3c)]);continue;case'5':console[_0x3d70(0xe)](_0x5449c4[_0x3d70(0x43)]);continue;case'6':var _0x4d7198,_0x244784;continue;}break;}}else throw new Error(_0x37d826['message']||'Failed\x20to\x20create\x20user\x20account');}else return{'success':![],'message':_0x5449c4[_0x3d70(0x44)]};}catch(_0x4c7b25){if(_0x5449c4[_0x3d70(0x45)](_0x5449c4[_0x3d70(0x46)],_0x3d70(0x1d))){console[_0x3d70(0x47)](_0x5449c4['IZWPO'],_0x4c7b25);if(_0x4c7b25[_0x3d70(0x48)]===_googleSignin[_0x3d70(0x49)]['SIGN_IN_CANCELLED']){if(_0x5449c4[_0x3d70(0x4a)](_0x5449c4[_0x3d70(0x4b)],_0x5449c4['raIhs']))return{'success':![],'message':_0x3d70(0x4c),'cancelled':!![]};else _0x15856e['GoogleSignin']['configure']({'webClientId':_0x171b5c,'iosClientId':_0x38397c,'scopes':[_0x5449c4[_0x3d70(0x4d)],_0x5449c4[_0x3d70(0x4e)],_0x5449c4[_0x3d70(0x4f)]],'offlineAccess':!![],'forceCodeForRefreshToken':!![],'hostedDomain':'','accountName':''});}else{if(_0x5449c4['ONDpx'](_0x4c7b25[_0x3d70(0x48)],_googleSignin[_0x3d70(0x49)]['IN_PROGRESS']))return{'success':![],'message':_0x5449c4[_0x3d70(0x44)]};else return _0x4c7b25[_0x3d70(0x48)]===_googleSignin[_0x3d70(0x49)][_0x3d70(0x50)]?_0x5449c4['FVJXE'](_0x5449c4[_0x3d70(0x51)],_0x5449c4[_0x3d70(0x51)])?{'success':!![],'token':_0x2bbd5b[_0x3d70(0x3c)],'user':_0x5c8ef4['user'],'isNewUser':_0x239367[_0x3d70(0x3d)]||![],'message':_0x5449c4[_0x3d70(0x52)]}:{'success':![],'message':'Google\x20Play\x20Services\x20not\x20available'}:{'success':![],'message':_0x4c7b25[_0x3d70(0xb)]||'Google\x20Sign-In\x20failed'};}}else _0x3aa29f[_0x3d70(0xe)](_0x5449c4[_0x3d70(0x28)],_0xdb6e46);}};exports[_0x3d70(0x4)]=signInWithGoogle;const createUserAccount=async _0x186c05=>{const _0x284f41={'bfnws':_0x3d70(0x53),'OQGDm':_0x3d70(0x54),'VUibp':'π\x20Creating/authenticating\x20user\x20account\x20for:','GhVYs':_0x3d70(0x55),'iIEAN':_0x3d70(0x56),'BCSbU':function(_0x2dbcea,_0x56a035){return _0x2dbcea===_0x56a035;},'pYaMI':_0x3d70(0x57),'DsfZO':_0x3d70(0x58),'lgDtS':function(_0x50502b,_0x47e873){return _0x50502b!==_0x47e873;},'yujYc':_0x3d70(0x59),'EiHsJ':_0x3d70(0x5a),'XtYec':'Failed\x20to\x20create\x20account','BEDaC':function(_0x184b2f,_0x163a96){return _0x184b2f!==_0x163a96;},'MsIvl':'Sumjn','JBjtb':_0x3d70(0x5b)};try{if('VSJll'===_0x284f41[_0x3d70(0x5c)]){console[_0x3d70(0xe)](_0x284f41['VUibp'],_0x186c05[_0x3d70(0x14)]),console[_0x3d70(0xe)](_0x3d70(0x5d));const _0x36bb0e=await(0x0,_apiKeyService[_0x3d70(0x5e)])(),_0x10d822=await fetch(_api[_0x3d70(0x5f)][_0x3d70(0x60)]+_0x3d70(0x61),{'method':'POST','headers':_0x36bb0e,'body':JSON[_0x3d70(0x62)]({'credential':_0x186c05[_0x3d70(0x35)],'email':_0x186c05[_0x3d70(0x14)],'name':_0x186c05[_0x3d70(0x2f)],'photoUrl':_0x186c05[_0x3d70(0x63)]})});console[_0x3d70(0xe)](_0x284f41['GhVYs'],_0x10d822[_0x3d70(0x64)]);const _0x18f026=await _0x10d822[_0x3d70(0x65)]();console[_0x3d70(0xe)](_0x284f41['iIEAN'],_0x18f026);if(_0x10d822['ok']&&_0x18f026[_0x3d70(0x3c)]){if(_0x284f41[_0x3d70(0x66)](_0x284f41['pYaMI'],_0x284f41['DsfZO']))_0x6c68fb=_0x573a3c[_0x3d70(0x9)];else return{'success':!![],'token':_0x18f026[_0x3d70(0x3c)],'user':_0x18f026[_0x3d70(0x2d)],'isNewUser':_0x18f026[_0x3d70(0x3d)]||![],'message':_0x3d70(0x67)};}else{if(_0x284f41[_0x3d70(0x68)](_0x284f41['yujYc'],_0x284f41[_0x3d70(0x69)]))return{'success':![],'message':_0x18f026['message']||_0x18f026['error']||_0x284f41[_0x3d70(0x6a)]};else throw new _0x2ce92d(_0x29823e[_0x3d70(0xb)]||_0x284f41[_0x3d70(0x6b)]);}}else return _0x9dd6ae&&_0xc22d3a[_0x3d70(0x1)]?_0x20c1a9:{'default':_0x3b8234};}catch(_0x57c646){return _0x284f41[_0x3d70(0x6c)](_0x284f41[_0x3d70(0x6d)],_0x284f41[_0x3d70(0x6d)])?{'success':![],'message':'Google\x20Sign-In\x20was\x20cancelled','cancelled':!![]}:(console[_0x3d70(0x47)](_0x284f41['JBjtb'],_0x57c646),{'success':![],'message':_0x57c646[_0x3d70(0xb)]||_0x284f41[_0x3d70(0x6b)]});}},isGoogleSignedIn=async()=>{const _0x1ebe5f={'XjbLc':function(_0x21b30f,_0x3e6d5a){return _0x21b30f!==_0x3e6d5a;},'rQgVH':function(_0x427569,_0xd711c0){return _0x427569===_0xd711c0;}};try{const _0x5ac6d0=await _googleSignin[_0x3d70(0x11)][_0x3d70(0x6e)](),_0x358dda=_0x1ebe5f['XjbLc'](_0x5ac6d0,null);if(_0x358dda)return{'isSignedIn':!![],'user':_0x1ebe5f[_0x3d70(0x6f)](_0x5ac6d0,null)||_0x5ac6d0===void 0x0?void 0x0:_0x5ac6d0[_0x3d70(0x2d)]};return{'isSignedIn':![]};}catch(_0x41e171){return console[_0x3d70(0x47)](_0x3d70(0x70),_0x41e171),{'isSignedIn':![]};}};exports['isGoogleSignedIn']=isGoogleSignedIn;const signOutFromGoogle=async()=>{const _0x1d5e61={'SnmEC':_0x3d70(0x71),'mGSWw':function(_0x15012f,_0x3406b2){return _0x15012f!==_0x3406b2;},'SrBLC':_0x3d70(0x72),'fIAaM':_0x3d70(0x73),'cQtjD':_0x3d70(0x74),'Lrypq':_0x3d70(0x75)};try{if(_0x1d5e61[_0x3d70(0x76)](_0x1d5e61['SrBLC'],_0x1d5e61[_0x3d70(0x77)]))return await _googleSignin[_0x3d70(0x11)][_0x3d70(0x26)](),console[_0x3d70(0xe)](_0x1d5e61[_0x3d70(0x78)]),!![];else throw new _0x4b748f(_0x1d5e61[_0x3d70(0x79)]);}catch(_0x315ca3){return console[_0x3d70(0x47)](_0x1d5e61[_0x3d70(0x7a)],_0x315ca3),![];}};exports['signOutFromGoogle']=signOutFromGoogle;function _0x3490(){const _0x17347c=['defineProperty','__esModule','updateGoogleClientIds','signOutFromGoogle','signInWithGoogle','isGoogleSignedIn','1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','mHixM','β
\x20Google\x20client\x20IDs\x20updated:','webClientId','nofBT','message','Google\x20Sign-In\x20failed','iosClientId','log','openid','profile','GoogleSignin','configure','GeuYu','email','βΉοΈ\x20Sign\x20out\x20not\x20needed\x20or\x20failed:','π\x20Initiating\x20Google\x20Sign-In\x20for\x20user\x20authentication','Kecgf','π\x20Signed\x20out\x20to\x20ensure\x20fresh\x20consent','6|5|1|2|3|4|0','user_email','onairos_username','β
\x20User\x20account\x20created/authenticated\x20successfully','aPDHl','β\x20Google\x20Sign-In\x20error:','rbnQT','PkRit','UmOOu','DzWYR','FVJXE','veRue','yFnvT','signOut','Cangf','xhLgA','signIn','β
\x20Google\x20Sign-In\x20successful:','data','koNDc','user','π€\x20Google\x20user\x20data:','name','getTokens','DaScn','vpzVn','photo','accessToken','idToken','success','sFsuS','split','QOOAb','jEvAi','odeanId','token','isNewUser','setItem','GeJGM','default','JYEAu','google','fAZbN','uSFQn','HyWbx','codnW','error','code','statusCodes','VtIeL','AFqIi','Google\x20Sign-In\x20was\x20cancelled','yFyHg','HGRQa','dURxY','PLAY_SERVICES_NOT_AVAILABLE','voALR','denCi','Failed\x20to\x20create\x20user\x20account','VSJll','π‘\x20Google\x20register\x20response\x20status:','π\x20Account\x20creation\x20response:','dKius','mQjUV','gmPYE','hiUUe','β\x20Error\x20creating\x20user\x20account:','OQGDm','π\x20Calling\x20generic\x20/register/google\x20endpoint...','getDeveloperAuthHeaders','API_CONFIG','BASE_URL','/register/google','stringify','photoUrl','status','json','BCSbU','Account\x20created/authenticated\x20successfully','lgDtS','EiHsJ','XtYec','bfnws','BEDaC','MsIvl','getCurrentUser','rQgVH','β\x20Error\x20checking\x20Google\x20sign-in\x20status:','No\x20user\x20data\x20received\x20from\x20Google','CxYjF','rUGMM','β
\x20Google\x20sign-out\x20successful','β\x20Google\x20sign-out\x20error:','mGSWw','fIAaM','cQtjD','SnmEC','Lrypq'];_0x3490=function(){return _0x17347c;};return _0x3490();}
|
|
11
|
+
function _0x3592(){const _0x1cef23=['updateGoogleClientIds','signOutFromGoogle','signInWithGoogle','isGoogleSignedIn','1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','XvDSC','webClientId','iosClientId','yEmuL','DevoH','syKqp','openid','profile','email','GoogleSignin','configure','WrJbt','Google\x20Play\x20Services\x20not\x20available','π\x20Signed\x20out\x20to\x20ensure\x20fresh\x20consent','βΉοΈ\x20Sign\x20out\x20not\x20needed\x20or\x20failed:','No\x20user\x20data\x20received\x20from\x20Google','π\x20Got\x20Google\x20tokens','user_email','onairos_username','RcjXa','Google\x20Sign-In\x20was\x20cancelled','Google\x20Sign-In\x20is\x20already\x20in\x20progress','FkeYk','Google\x20Sign-In\x20failed','log','PqwKI','hasPlayServices','signOut','CGSfh','SFPaq','CEhnd','message','Failed\x20to\x20create\x20account','yKSAg','β
\x20Google\x20Sign-In\x20successful:','data','oFivs','bnpdu','user','HsXzS','WlymJ','name','photo','getTokens','WIPPL','EhQap','accessToken','idToken','gbPWe','oytQS','nFkCc','default','setItem','gHjZP','split','auth_method','google','tuKWN','token','uUoUp','oHAje','bcdJN','odeanId','isNewUser','cTOCp','error','code','statusCodes','SIGN_IN_CANCELLED','NdMTf','ITPDk','IN_PROGRESS','YmKsm','PLAY_SERVICES_NOT_AVAILABLE','kqkkf','β\x20Error\x20creating\x20user\x20account:','RAPRK','π‘\x20Google\x20register\x20response\x20status:','π\x20Account\x20creation\x20response:','Account\x20created/authenticated\x20successfully','mgBtQ','BASE_URL','/register/google','stringify','jKzas','status','json','UEiqq','zYkyt','bHZuQ','cJGTa','FcHFs','FXinv','fsvQd','KgYIs','β\x20Error\x20checking\x20Google\x20sign-in\x20status:','getCurrentUser','KRWZU','BdkHo','ezPQU','hwYnd','XYQHM','β
\x20Google\x20sign-out\x20successful','cyEoH','β\x20Google\x20sign-out\x20error:'];_0x3592=function(){return _0x1cef23;};return _0x3592();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1aa6(0x0)]=exports[_0x1aa6(0x1)]=exports[_0x1aa6(0x2)]=exports[_0x1aa6(0x3)]=void 0x0;var _googleSignin=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_api=__ONAIROS_REQ_FUNC__(0x2),_apiKeyService=__ONAIROS_REQ_FUNC__(0x3),_jwtStorageService=__ONAIROS_REQ_FUNC__(0x4);function _interopRequireDefault(_0x50fbbd){return _0x50fbbd&&_0x50fbbd['__esModule']?_0x50fbbd:{'default':_0x50fbbd};}function _0x1aa6(_0x359263,_0x1aa66c){_0x359263=_0x359263-0x0;const _0x32c6c7=_0x3592();let _0x46dadd=_0x32c6c7[_0x359263];return _0x46dadd;}let WEB_CLIENT_ID=_0x1aa6(0x4),IOS_CLIENT_ID=_0x1aa6(0x4);const updateGoogleClientIds=_0x2753b2=>{const _0x55416a={'yEmuL':function(_0x1ac0df,_0x4a6435){return _0x1ac0df!==_0x4a6435;},'DevoH':_0x1aa6(0x5),'syKqp':'β
\x20Google\x20client\x20IDs\x20updated:'};_0x2753b2[_0x1aa6(0x6)]&&(WEB_CLIENT_ID=_0x2753b2['webClientId']),_0x2753b2[_0x1aa6(0x7)]&&(_0x55416a[_0x1aa6(0x8)](_0x55416a[_0x1aa6(0x9)],_0x55416a[_0x1aa6(0x9)])?_0x57545f=_0x31a22f[_0x1aa6(0x7)]:IOS_CLIENT_ID=_0x2753b2[_0x1aa6(0x7)]),console['log'](_0x55416a[_0x1aa6(0xa)],{'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID});};exports[_0x1aa6(0x0)]=updateGoogleClientIds;const initializeGoogleAuth=()=>{const _0x26a401={'Oqnkn':_0x1aa6(0xb),'WrJbt':_0x1aa6(0xc),'hHOht':_0x1aa6(0xd)};_googleSignin[_0x1aa6(0xe)][_0x1aa6(0xf)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'scopes':[_0x26a401['Oqnkn'],_0x26a401[_0x1aa6(0x10)],_0x26a401['hHOht']],'offlineAccess':!![],'forceCodeForRefreshToken':!![],'hostedDomain':'','accountName':''});},signInWithGoogle=async()=>{const _0x39c1f6={'wsIAm':_0x1aa6(0x11),'cTOCp':'Failed\x20to\x20create\x20user\x20account','PqwKI':'π\x20Initiating\x20Google\x20Sign-In\x20for\x20user\x20authentication','KXiAs':function(_0x4dc23f){return _0x4dc23f();},'CGSfh':_0x1aa6(0x12),'SFPaq':function(_0x1b7de1,_0x1da735){return _0x1b7de1===_0x1da735;},'yKSAg':_0x1aa6(0x13),'ExEJy':function(_0x2c49e1,_0x4160cc){return _0x2c49e1===_0x4160cc;},'oFivs':function(_0x5dfe4f,_0xc3cd0a){return _0x5dfe4f===_0xc3cd0a;},'bnpdu':function(_0x49aa5e,_0x5aecb3){return _0x49aa5e===_0x5aecb3;},'HsXzS':function(_0x2df201,_0x487cd7){return _0x2df201===_0x487cd7;},'WlymJ':_0x1aa6(0x14),'WIPPL':_0x1aa6(0x15),'EhQap':function(_0x9b8970,_0x500134){return _0x9b8970(_0x500134);},'nFkCc':'β
\x20User\x20account\x20created/authenticated\x20successfully','gHjZP':_0x1aa6(0x16),'CAdkq':_0x1aa6(0x17),'tuKWN':_0x1aa6(0x18),'oHAje':function(_0x388d4b,_0x110a75){return _0x388d4b===_0x110a75;},'uUoUp':function(_0x4ed77e,_0x1df2c2){return _0x4ed77e===_0x1df2c2;},'bcdJN':function(_0x12e9e1,_0x35af1a){return _0x12e9e1===_0x35af1a;},'NdMTf':_0x1aa6(0x19),'ITPDk':function(_0x2b5ec9,_0x48d253){return _0x2b5ec9===_0x48d253;},'YmKsm':_0x1aa6(0x1a),'kqkkf':_0x1aa6(0x1b),'RAPRK':_0x1aa6(0x1c)};try{var _0x5f5ce3,_0x44e330;console[_0x1aa6(0x1d)](_0x39c1f6[_0x1aa6(0x1e)]),_0x39c1f6['KXiAs'](initializeGoogleAuth),await _googleSignin['GoogleSignin'][_0x1aa6(0x1f)]();try{await _googleSignin['GoogleSignin'][_0x1aa6(0x20)](),console[_0x1aa6(0x1d)](_0x39c1f6[_0x1aa6(0x21)]);}catch(_0x372cd9){if(_0x39c1f6[_0x1aa6(0x22)](_0x1aa6(0x23),'nbsDl'))return{'success':![],'message':_0x28ece9[_0x1aa6(0x24)]||_0x4b28e4['error']||_0x1aa6(0x25)};else console[_0x1aa6(0x1d)](_0x39c1f6[_0x1aa6(0x26)],_0x372cd9);}const _0x2f5560=await _googleSignin[_0x1aa6(0xe)]['signIn']();console[_0x1aa6(0x1d)](_0x1aa6(0x27),_0x39c1f6['ExEJy'](_0x5f5ce3=_0x2f5560[_0x1aa6(0x28)],null)||_0x39c1f6[_0x1aa6(0x29)](_0x5f5ce3,void 0x0)||_0x39c1f6[_0x1aa6(0x2a)](_0x5f5ce3=_0x5f5ce3[_0x1aa6(0x2b)],null)||_0x39c1f6[_0x1aa6(0x22)](_0x5f5ce3,void 0x0)?void 0x0:_0x5f5ce3['email']);const _0x7a18b4=(_0x44e330=_0x2f5560[_0x1aa6(0x28)])===null||_0x39c1f6[_0x1aa6(0x2c)](_0x44e330,void 0x0)?void 0x0:_0x44e330[_0x1aa6(0x2b)];if(!_0x7a18b4||!_0x7a18b4[_0x1aa6(0xd)])throw new Error(_0x39c1f6[_0x1aa6(0x2d)]);console['log']('π€\x20Google\x20user\x20data:',{'email':_0x7a18b4['email'],'name':_0x7a18b4[_0x1aa6(0x2e)],'photo':_0x7a18b4[_0x1aa6(0x2f)],'id':_0x7a18b4['id']});const _0x3d21f1=await _googleSignin[_0x1aa6(0xe)][_0x1aa6(0x30)]();console[_0x1aa6(0x1d)](_0x39c1f6[_0x1aa6(0x31)]);const _0x3c68b6=await _0x39c1f6[_0x1aa6(0x32)](createUserAccount,{'email':_0x7a18b4['email'],'name':_0x7a18b4[_0x1aa6(0x2e)]||_0x7a18b4['email']['split']('@')[0x0],'photoUrl':_0x7a18b4[_0x1aa6(0x2f)]||'','googleId':_0x7a18b4['id'],'accessToken':_0x3d21f1[_0x1aa6(0x33)],'idToken':_0x3d21f1[_0x1aa6(0x34)]});if(_0x3c68b6['success']){if(_0x39c1f6[_0x1aa6(0x29)](_0x1aa6(0x35),_0x1aa6(0x36)))_0x545ace=_0x459d10[_0x1aa6(0x6)];else{var _0x97daf3,_0x413a72;console[_0x1aa6(0x1d)](_0x39c1f6[_0x1aa6(0x37)]),await _asyncStorage[_0x1aa6(0x38)][_0x1aa6(0x39)](_0x39c1f6[_0x1aa6(0x3a)],_0x7a18b4['email']),await _asyncStorage[_0x1aa6(0x38)][_0x1aa6(0x39)](_0x39c1f6['CAdkq'],_0x7a18b4[_0x1aa6(0xd)][_0x1aa6(0x3b)]('@')[0x0]),await _asyncStorage[_0x1aa6(0x38)][_0x1aa6(0x39)](_0x1aa6(0x3c),_0x1aa6(0x3d));if(_0x3c68b6['token']){if(_0x39c1f6[_0x1aa6(0x22)](_0x39c1f6[_0x1aa6(0x3e)],'lhKMz'))return{'success':![],'message':_0x39c1f6['wsIAm']};else await(0x0,_jwtStorageService['storeJWT'])(_0x3c68b6[_0x1aa6(0x3f)]);}return{'success':!![],'user':{'id':(_0x39c1f6['oHAje'](_0x97daf3=_0x3c68b6['user'],null)||_0x39c1f6[_0x1aa6(0x40)](_0x97daf3,void 0x0)?void 0x0:_0x97daf3['id'])||'','email':_0x7a18b4['email'],'username':_0x7a18b4[_0x1aa6(0x2e)]||_0x7a18b4[_0x1aa6(0xd)][_0x1aa6(0x3b)]('@')[0x0],'odeanId':_0x39c1f6[_0x1aa6(0x41)](_0x413a72=_0x3c68b6[_0x1aa6(0x2b)],null)||_0x39c1f6[_0x1aa6(0x42)](_0x413a72,void 0x0)?void 0x0:_0x413a72[_0x1aa6(0x43)]},'token':_0x3c68b6[_0x1aa6(0x3f)],'isNewUser':_0x3c68b6[_0x1aa6(0x44)]||![]};}}else throw new Error(_0x3c68b6[_0x1aa6(0x24)]||_0x39c1f6[_0x1aa6(0x45)]);}catch(_0x348e60){console[_0x1aa6(0x46)]('β\x20Google\x20Sign-In\x20error:',_0x348e60);if(_0x39c1f6['bcdJN'](_0x348e60[_0x1aa6(0x47)],_googleSignin[_0x1aa6(0x48)][_0x1aa6(0x49)]))return{'success':![],'message':_0x39c1f6[_0x1aa6(0x4a)],'cancelled':!![]};else{if(_0x39c1f6[_0x1aa6(0x4b)](_0x348e60[_0x1aa6(0x47)],_googleSignin[_0x1aa6(0x48)][_0x1aa6(0x4c)]))return{'success':![],'message':_0x39c1f6[_0x1aa6(0x4d)]};else return _0x348e60[_0x1aa6(0x47)]===_googleSignin[_0x1aa6(0x48)][_0x1aa6(0x4e)]?_0x1aa6(0x1b)===_0x39c1f6[_0x1aa6(0x4f)]?{'success':![],'message':_0x1aa6(0x11)}:(_0x33c355[_0x1aa6(0x46)](_0x1aa6(0x50),_0x3f8ffb),{'success':![],'message':_0x9b3e3f[_0x1aa6(0x24)]||_0x39c1f6['cTOCp']}):{'success':![],'message':_0x348e60[_0x1aa6(0x24)]||_0x39c1f6[_0x1aa6(0x51)]};}}};exports[_0x1aa6(0x2)]=signInWithGoogle;const createUserAccount=async _0x46dc6b=>{const _0x2f0103={'cJGTa':'β\x20Google\x20sign-out\x20error:','mgBtQ':'π\x20Calling\x20generic\x20/register/google\x20endpoint...','jKzas':_0x1aa6(0x52),'UEiqq':_0x1aa6(0x53),'PZLxl':_0x1aa6(0x54),'FcHFs':'Failed\x20to\x20create\x20account','cTNoA':_0x1aa6(0x50),'FXinv':'Failed\x20to\x20create\x20user\x20account'};try{console[_0x1aa6(0x1d)]('π\x20Creating/authenticating\x20user\x20account\x20for:',_0x46dc6b[_0x1aa6(0xd)]),console[_0x1aa6(0x1d)](_0x2f0103[_0x1aa6(0x55)]);const _0x1e72b3=await(0x0,_apiKeyService['getDeveloperAuthHeaders'])(),_0x25287e=await fetch(_api['API_CONFIG'][_0x1aa6(0x56)]+_0x1aa6(0x57),{'method':'POST','headers':_0x1e72b3,'body':JSON[_0x1aa6(0x58)]({'credential':_0x46dc6b['idToken'],'email':_0x46dc6b[_0x1aa6(0xd)],'name':_0x46dc6b[_0x1aa6(0x2e)],'photoUrl':_0x46dc6b['photoUrl']})});console[_0x1aa6(0x1d)](_0x2f0103[_0x1aa6(0x59)],_0x25287e[_0x1aa6(0x5a)]);const _0x5c0203=await _0x25287e[_0x1aa6(0x5b)]();return console[_0x1aa6(0x1d)](_0x2f0103[_0x1aa6(0x5c)],_0x5c0203),_0x25287e['ok']&&_0x5c0203[_0x1aa6(0x3f)]?_0x1aa6(0x5d)!==_0x1aa6(0x5e)?{'success':!![],'token':_0x5c0203[_0x1aa6(0x3f)],'user':_0x5c0203['user'],'isNewUser':_0x5c0203[_0x1aa6(0x44)]||![],'message':_0x2f0103['PZLxl']}:(_0x407b9d['error'](_0x2f0103[_0x1aa6(0x5f)],_0x5d5b0f),![]):{'success':![],'message':_0x5c0203[_0x1aa6(0x24)]||_0x5c0203[_0x1aa6(0x46)]||_0x2f0103[_0x1aa6(0x60)]};}catch(_0x3b9ae0){return console[_0x1aa6(0x46)](_0x2f0103['cTNoA'],_0x3b9ae0),{'success':![],'message':_0x3b9ae0['message']||_0x2f0103[_0x1aa6(0x61)]};}},isGoogleSignedIn=async()=>{const _0x4881d9={'hwYnd':_0x1aa6(0x1c),'KRWZU':function(_0x31b1cb,_0x19579b){return _0x31b1cb!==_0x19579b;},'BdkHo':function(_0x5e11cc,_0x3ade77){return _0x5e11cc===_0x3ade77;},'drBVd':_0x1aa6(0x62),'ezPQU':_0x1aa6(0x63),'LmjCT':function(_0xfad314,_0x56f262){return _0xfad314===_0x56f262;},'YhglD':function(_0x2dd8bd,_0x513ec7){return _0x2dd8bd===_0x513ec7;},'XYQHM':_0x1aa6(0x64)};try{const _0x46b9f4=await _googleSignin['GoogleSignin'][_0x1aa6(0x65)](),_0x46c52b=_0x4881d9[_0x1aa6(0x66)](_0x46b9f4,null);if(_0x46c52b)return _0x4881d9[_0x1aa6(0x67)](_0x4881d9['drBVd'],_0x4881d9[_0x1aa6(0x68)])?{'success':![],'message':_0x100639[_0x1aa6(0x24)]||_0x4881d9[_0x1aa6(0x69)]}:{'isSignedIn':!![],'user':_0x4881d9['LmjCT'](_0x46b9f4,null)||_0x4881d9['YhglD'](_0x46b9f4,void 0x0)?void 0x0:_0x46b9f4[_0x1aa6(0x2b)]};return{'isSignedIn':![]};}catch(_0x27606f){return console[_0x1aa6(0x46)](_0x4881d9[_0x1aa6(0x6a)],_0x27606f),{'isSignedIn':![]};}};exports[_0x1aa6(0x3)]=isGoogleSignedIn;const signOutFromGoogle=async()=>{const _0x3a1abc={'cyEoH':_0x1aa6(0x6b)};try{return await _googleSignin[_0x1aa6(0xe)][_0x1aa6(0x20)](),console[_0x1aa6(0x1d)](_0x3a1abc[_0x1aa6(0x6c)]),!![];}catch(_0x44ade4){return console[_0x1aa6(0x46)](_0x1aa6(0x6d),_0x44ade4),![];}};exports['signOutFromGoogle']=signOutFromGoogle;
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
Object[
|
|
8
|
+
Object[_0x320e(0x0)](exports,_0x320e(0x1),{'value':!![]}),exports[_0x320e(0x2)]=void 0x0;var _hingeDataService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useHingeDataExtractor=()=>{const _0x3f9227={'HdSmr':_0x320e(0x3),'blEtf':_0x320e(0x4),'DtsKH':_0x320e(0x5),'kJeRe':_0x320e(0x6),'qgpKX':_0x320e(0x7),'srdBK':_0x320e(0x8),'nLPqu':_0x320e(0x9),'MPjPX':function(_0x5b7982,_0x26febd){return _0x5b7982-_0x26febd;},'vPzpw':function(_0x15d271,_0x413ebf){return _0x15d271===_0x413ebf;},'eNGbv':'bgGSj','HyCFg':_0x320e(0xa),'FYpVy':function(_0x610628,_0x14c7e6){return _0x610628>_0x14c7e6;},'GVrcw':'π€\x20[HINGE_EXTRACTOR]\x20Username:','CouNS':_0x320e(0xb),'YvKWY':'π\x20[HINGE_EXTRACTOR]\x20Chats:','omxtw':'π\x20[HINGE_EXTRACTOR]\x20Messages:','ibzrl':function(_0x2f824d,_0x1d7a51){return _0x2f824d===_0x1d7a51;},'jSvis':_0x320e(0xc),'zNkvJ':function(_0x59f2c3,_0x288141){return _0x59f2c3===_0x288141;},'DQQBK':_0x320e(0xd),'GBFzn':function(_0x5d35dc,_0xa9647b){return _0x5d35dc<_0xa9647b;},'dnrBF':function(_0x40d918,_0x430cd5){return _0x40d918===_0x430cd5;},'UHfxS':_0x320e(0xe),'RVVUj':_0x320e(0xf),'vQuGy':_0x320e(0x10),'NyvHT':_0x320e(0x11),'BcecU':_0x320e(0x12),'egBEI':_0x320e(0x13)},_0xc15af2=async(_0x21aaaf,_0x1894d7)=>{const _0x56bc94={'dznrO':function(_0x4f26a6,_0x1af2c9){return _0x3f9227[_0x320e(0x14)](_0x4f26a6,_0x1af2c9);},'ORRtL':function(_0x305e23,_0x94cfb3){return _0x3f9227['vPzpw'](_0x305e23,_0x94cfb3);},'HXnIN':_0x3f9227[_0x320e(0x15)],'YTuxO':_0x3f9227[_0x320e(0x16)],'pnOgF':function(_0x1952bb,_0x3feaa0){return _0x3f9227[_0x320e(0x17)](_0x1952bb,_0x3feaa0);}};var _0x355d57;console['log']('π\x20[HINGE_EXTRACTOR]\x20Initiating\x20data\x20export'),console[_0x320e(0x18)](_0x3f9227[_0x320e(0x19)],_0x21aaaf),console[_0x320e(0x18)](_0x3f9227[_0x320e(0x1a)],_0x1894d7['total_matches']),console[_0x320e(0x18)](_0x3f9227[_0x320e(0x1b)],_0x1894d7[_0x320e(0x1c)]),console[_0x320e(0x18)](_0x3f9227[_0x320e(0x1d)],_0x1894d7[_0x320e(0x1e)]);if(!_0x21aaaf)return _0x3f9227['ibzrl'](_0x3f9227['jSvis'],_0x3f9227[_0x320e(0x1f)])?(console['error'](_0x3f9227[_0x320e(0x20)]),_reactNative['Alert'][_0x320e(0x21)](_0x3f9227['blEtf'],_0x3f9227[_0x320e(0x22)],[{'text':'OK','style':_0x3f9227[_0x320e(0x23)]}]),![]):(_0x3e461b[_0x320e(0x24)](_0x3f9227[_0x320e(0x20)]),_0x4e287f['Alert']['alert'](_0x3f9227[_0x320e(0x25)],_0x3f9227[_0x320e(0x22)],[{'text':'OK','style':_0x3f9227[_0x320e(0x23)]}]),![]);if((!_0x1894d7[_0x320e(0x26)]||_0x3f9227['zNkvJ'](_0x1894d7[_0x320e(0x26)][_0x320e(0x27)],0x0))&&(!_0x1894d7['chats']||_0x3f9227[_0x320e(0x28)](_0x1894d7[_0x320e(0x29)]['length'],0x0)))return console['log'](_0x3f9227[_0x320e(0x2a)]),!![];const _0x10412c=(_0x1894d7[_0x320e(0x29)]||[])['filter'](_0x4deee1=>{if(_0x56bc94['HXnIN']!==_0x56bc94['YTuxO']){const _0x3815af=_0x4deee1[_0x320e(0x2b)]&&Array[_0x320e(0x2c)](_0x4deee1[_0x320e(0x2d)])&&_0x56bc94[_0x320e(0x2e)](_0x4deee1[_0x320e(0x2d)][_0x320e(0x27)],0x0);return!_0x3815af&&console['warn'](_0x320e(0x2f),_0x4deee1),_0x3815af;}else{var _0x152fcc;_0x440368['warn']('β οΈ\x20[HINGE_EXTRACTOR]\x20Filtered\x20out\x20'+_0x56bc94[_0x320e(0x30)](((_0x152fcc=_0x44f44c[_0x320e(0x29)])===null||_0x56bc94[_0x320e(0x31)](_0x152fcc,void 0x0)?void 0x0:_0x152fcc[_0x320e(0x27)])||0x0,_0x3199f8['length'])+_0x320e(0x32));}});if(_0x3f9227[_0x320e(0x33)](_0x10412c['length'],(_0x3f9227[_0x320e(0x34)](_0x355d57=_0x1894d7[_0x320e(0x29)],null)||_0x3f9227[_0x320e(0x34)](_0x355d57,void 0x0)?void 0x0:_0x355d57[_0x320e(0x27)])||0x0)){var _0x68e0c3;console[_0x320e(0x35)]('β οΈ\x20[HINGE_EXTRACTOR]\x20Filtered\x20out\x20'+_0x3f9227[_0x320e(0x14)]((_0x3f9227[_0x320e(0x34)](_0x68e0c3=_0x1894d7[_0x320e(0x29)],null)||_0x68e0c3===void 0x0?void 0x0:_0x68e0c3[_0x320e(0x27)])||0x0,_0x10412c[_0x320e(0x27)])+_0x320e(0x32));}try{console[_0x320e(0x18)](_0x3f9227[_0x320e(0x36)]);const _0x348cb5=await(0x0,_hingeDataService[_0x320e(0x37)])(_0x21aaaf,{'matches':_0x1894d7[_0x320e(0x26)]||[],'chats':_0x10412c});return _0x348cb5[_0x320e(0x38)]?(console['log'](_0x3f9227[_0x320e(0x39)]),console[_0x320e(0x18)](_0x3f9227['vQuGy'],_0x348cb5['data']),!![]):_0x320e(0x11)!==_0x3f9227[_0x320e(0x3a)]?(_0x218510[_0x320e(0x24)](_0x3f9227[_0x320e(0x3b)],_0x1cff54[_0x320e(0x24)]),_0x488b2c[_0x320e(0x3c)]['alert'](_0x3f9227[_0x320e(0x3d)],_0x18025c['error']||_0x3f9227[_0x320e(0x3e)],[{'text':'OK','style':_0x3f9227[_0x320e(0x23)]}]),![]):(console[_0x320e(0x24)](_0x3f9227['qgpKX'],_0x348cb5[_0x320e(0x24)]),_reactNative[_0x320e(0x3c)][_0x320e(0x21)](_0x3f9227[_0x320e(0x3d)],_0x348cb5[_0x320e(0x24)]||_0x3f9227[_0x320e(0x3e)],[{'text':'OK','style':_0x3f9227[_0x320e(0x23)]}]),![]);}catch(_0x409682){return console[_0x320e(0x24)](_0x320e(0x3f),_0x409682),_reactNative[_0x320e(0x3c)][_0x320e(0x21)](_0x3f9227[_0x320e(0x40)],_0x3f9227[_0x320e(0x41)],[{'text':'OK','style':_0x3f9227[_0x320e(0x23)]}]),![];}};return{'initiateDataExport':_0xc15af2};};exports[_0x320e(0x2)]=useHingeDataExtractor;function _0x320e(_0x20e6a2,_0x320ee8){_0x20e6a2=_0x20e6a2-0x0;const _0x52ac62=_0x20e6();let _0x37bef6=_0x52ac62[_0x20e6a2];return _0x37bef6;}function _0x20e6(){const _0x7ecd62=['defineProperty','__esModule','useHingeDataExtractor','β\x20[HINGE_EXTRACTOR]\x20Username\x20is\x20required','Error','Username\x20is\x20required\x20to\x20export\x20Hinge\x20data.','default','β\x20[HINGE_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20data\x20storage.','ShoSL','π\x20[HINGE_EXTRACTOR]\x20Matches:','SnCuB','βΉοΈ\x20[HINGE_EXTRACTOR]\x20No\x20data\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','π‘\x20[HINGE_EXTRACTOR]\x20Sending\x20to\x20backend...','β
\x20[HINGE_EXTRACTOR]\x20Export\x20completed\x20successfully','π\x20[HINGE_EXTRACTOR]\x20Backend\x20response:','wEGfT','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20data\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','MPjPX','eNGbv','HyCFg','FYpVy','log','GVrcw','CouNS','YvKWY','total_chats','omxtw','total_messages','jSvis','HdSmr','alert','DtsKH','kJeRe','error','blEtf','matches','length','vPzpw','chats','DQQBK','match_id','isArray','user_messages','pnOgF','β οΈ\x20[HINGE_EXTRACTOR]\x20Invalid\x20chat:','dznrO','ORRtL','\x20invalid\x20chats','GBFzn','dnrBF','warn','UHfxS','storeHingeData','success','RVVUj','NyvHT','qgpKX','Alert','srdBK','nLPqu','β\x20[HINGE_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','BcecU','egBEI'];_0x20e6=function(){return _0x7ecd62;};return _0x20e6();}
|
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require("react-native")
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
|
|
9
|
+
Object['defineProperty'](exports,_0x590d(0x0),{'value':!![]}),exports['storeHingeData']=void 0x0;function _0x590d(_0x310bc7,_0x590d69){_0x310bc7=_0x310bc7-0x0;const _0x492e87=_0x310b();let _0xcd1e2b=_0x492e87[_0x310bc7];return _0xcd1e2b;}function _0x310b(){const _0x48f895=['__esModule','β\x20[HINGE_SERVICE]\x20No\x20auth\x20token\x20found','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','Unknown\x20error','β\x20[HINGE_SERVICE]\x20Invalid\x20input:\x20userId\x20missing','π\x20[HINGE_SERVICE]\x20Chats:','π\x20[HINGE_SERVICE]\x20Total\x20user\x20messages:','Invalid\x20input:\x20userId\x20missing.','enoch_token','jmNVo','π\x20[HINGE_SERVICE]\x20Auth\x20token\x20found','1.0.0','ios','17.0','Android','dating','π\x20[HINGE_SERVICE]\x20URL:','BJcoL','umshD','β
\x20[HINGE_SERVICE]\x20Successfully\x20stored\x20Hinge\x20data','NtnFF','xLhjK','β\x20[HINGE_SERVICE]\x20Network\x20error:','log','OygAj','π\x20[HINGE_SERVICE]\x20Matches:','matches','length','efvBC','chats','yKdIm','reduce','user_messages','error','CtnVe','default','getItem','onairos_jwt_token','OtucD','auth_token','uggwg','zTztj','awfse','vNtHA','Platform','jaSpf','doqtJ','CuLWd','gyzWJ','iPhone','UXTuB','toISOString','mobile-hinge','OnYdC','match_name','match_id','content','timestamp','user','total_messages','Ymvlo','KflQm','API_CONFIG','BASE_URL','/platform-data/store','YuQRo','Bearer\x20','stringify','json','SKaJE','IzJoD','β οΈ\x20[HINGE_SERVICE]\x20Backend\x20returned\x20status:\x20','status','warn','β οΈ\x20[HINGE_SERVICE]\x20Error:\x20','ROEdB','HTTP\x20','π\x20[HINGE_SERVICE]\x20Backend\x20response:\x20','data','VWGxD','wrYzy','HeNRY','message','Network\x20error.\x20Please\x20check\x20your\x20connection.','storeHingeData'];_0x310b=function(){return _0x48f895;};return _0x310b();}var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x139a2f){return _0x139a2f&&_0x139a2f[_0x590d(0x0)]?_0x139a2f:{'default':_0x139a2f};}const storeHingeData=async(_0x2c6345,_0x1087eb)=>{const _0x32b5db={'awfse':_0x590d(0x1),'vNtHA':_0x590d(0x2),'ROEdB':_0x590d(0x3),'qPQur':_0x590d(0x4),'OygAj':'π\x20[HINGE_SERVICE]\x20Storing\x20Hinge\x20data\x20for:','efvBC':_0x590d(0x5),'yKdIm':_0x590d(0x6),'CtnVe':_0x590d(0x7),'OtucD':_0x590d(0x8),'uggwg':function(_0x4a859b,_0x1ec0d5){return _0x4a859b!==_0x1ec0d5;},'zTztj':_0x590d(0x9),'PppYZ':_0x590d(0xa),'jaSpf':_0x590d(0xb),'doqtJ':_0x590d(0xc),'CuLWd':_0x590d(0xd),'gyzWJ':function(_0x3bac49,_0x1662b8){return _0x3bac49===_0x1662b8;},'UXTuB':_0x590d(0xe),'OnYdC':_0x590d(0xf),'Ymvlo':'π‘\x20[HINGE_SERVICE]\x20Sending\x20to\x20backend...','KflQm':_0x590d(0x10),'YuQRo':function(_0x398d08,_0x5afb30,_0x4a6fe7){return _0x398d08(_0x5afb30,_0x4a6fe7);},'TpWFo':function(_0x108e3b,_0xe9163f){return _0x108e3b===_0xe9163f;},'SKaJE':_0x590d(0x11),'IzJoD':_0x590d(0x12),'nNcDI':_0x590d(0x13),'PRffD':'Hinge\x20data\x20stored\x20successfully','VWGxD':'wrYzy','HeNRY':_0x590d(0x14),'GEHHl':_0x590d(0x15),'QeuOr':_0x590d(0x16)};console[_0x590d(0x17)](_0x32b5db[_0x590d(0x18)],_0x2c6345),console['log'](_0x590d(0x19),_0x1087eb[_0x590d(0x1a)][_0x590d(0x1b)]),console[_0x590d(0x17)](_0x32b5db[_0x590d(0x1c)],_0x1087eb[_0x590d(0x1d)][_0x590d(0x1b)]),console[_0x590d(0x17)](_0x32b5db[_0x590d(0x1e)],_0x1087eb['chats'][_0x590d(0x1f)]((_0x50e73d,_0x472273)=>_0x50e73d+_0x472273[_0x590d(0x20)][_0x590d(0x1b)],0x0));if(!_0x2c6345)return console[_0x590d(0x21)](_0x590d(0x4)),{'success':![],'error':_0x32b5db[_0x590d(0x22)]};try{const _0x5f0c96=await _asyncStorage[_0x590d(0x23)][_0x590d(0x24)](_0x590d(0x25))||await _asyncStorage[_0x590d(0x23)][_0x590d(0x24)](_0x32b5db[_0x590d(0x26)])||await _asyncStorage['default']['getItem'](_0x590d(0x27));if(!_0x5f0c96)return _0x32b5db[_0x590d(0x28)](_0x32b5db[_0x590d(0x29)],_0x32b5db[_0x590d(0x29)])?(_0xbc4535[_0x590d(0x21)](_0x32b5db[_0x590d(0x2a)]),{'success':![],'error':_0x32b5db[_0x590d(0x2b)]}):(console[_0x590d(0x21)](_0x32b5db['awfse']),{'success':![],'error':_0x590d(0x2)});console[_0x590d(0x17)](_0x32b5db['PppYZ']);const _0x1ab9d6={'platform':_reactNative[_0x590d(0x2c)]['OS'],'appVersion':_0x32b5db[_0x590d(0x2d)],'osVersion':_reactNative['Platform']['OS']===_0x32b5db[_0x590d(0x2e)]?_0x32b5db[_0x590d(0x2f)]:_reactNative['Platform']['OS'],'deviceModel':_0x32b5db[_0x590d(0x30)](_reactNative[_0x590d(0x2c)]['OS'],_0x32b5db[_0x590d(0x2e)])?_0x590d(0x31):_0x32b5db[_0x590d(0x32)],'isOfflineSync':![],'extractedAt':new Date()[_0x590d(0x33)]()},_0x555b90={'platform':_0x590d(0x34),'dataType':_0x32b5db[_0x590d(0x35)],'data':{'matches':_0x1087eb[_0x590d(0x1a)],'chats':_0x1087eb['chats']['map'](_0x385379=>({'matchId':_0x385379['match_id'],'matchName':_0x385379[_0x590d(0x36)],'messages':_0x385379[_0x590d(0x20)]['map']((_0x1ed4d2,_0x46dd98)=>({'id':_0x385379[_0x590d(0x37)]+'-msg-'+_0x46dd98,'content':_0x1ed4d2[_0x590d(0x38)],'timestamp':_0x1ed4d2[_0x590d(0x39)]||new Date()[_0x590d(0x33)](),'role':_0x590d(0x3a)})),'totalMessages':_0x385379[_0x590d(0x3b)]}))},'summary':{'matchCount':_0x1087eb[_0x590d(0x1a)][_0x590d(0x1b)],'chatCount':_0x1087eb[_0x590d(0x1d)][_0x590d(0x1b)],'totalUserMessages':_0x1087eb[_0x590d(0x1d)][_0x590d(0x1f)]((_0x5e6f60,_0x23a9c6)=>_0x5e6f60+_0x23a9c6[_0x590d(0x20)][_0x590d(0x1b)],0x0)},'mobileMetadata':_0x1ab9d6};console['log'](_0x32b5db[_0x590d(0x3c)]),console['log'](_0x32b5db[_0x590d(0x3d)],_api[_0x590d(0x3e)][_0x590d(0x3f)]+_0x590d(0x40));const _0x3e8872=await _0x32b5db[_0x590d(0x41)](fetch,_api[_0x590d(0x3e)]['BASE_URL']+_0x590d(0x40),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x590d(0x42)+_0x5f0c96,'User-Agent':'OnairosSDK/1.0.0\x20('+_reactNative[_0x590d(0x2c)]['OS']+')'},'body':JSON[_0x590d(0x43)](_0x555b90)}),_0x45286d=await _0x3e8872[_0x590d(0x44)]();return _0x3e8872['ok']?_0x32b5db['TpWFo'](_0x32b5db[_0x590d(0x45)],_0x32b5db[_0x590d(0x46)])?(_0x238b8e['warn'](_0x590d(0x47)+_0x37cc54[_0x590d(0x48)]),_0x22f35f[_0x590d(0x49)](_0x590d(0x4a)+(_0x21db02[_0x590d(0x21)]||_0x32b5db[_0x590d(0x4b)])),{'success':![],'error':_0xce53b2[_0x590d(0x21)]||_0x590d(0x4c)+_0x5f0756['status']}):(console[_0x590d(0x17)](_0x32b5db['nNcDI']),_0x45286d['message']&&console[_0x590d(0x17)](_0x590d(0x4d)+_0x45286d['message']),{'success':!![],'message':_0x45286d['message']||_0x32b5db['PRffD'],'data':_0x45286d[_0x590d(0x4e)]}):_0x32b5db[_0x590d(0x4f)]!==_0x590d(0x50)?(_0x4b8d91['error'](_0x32b5db['qPQur']),{'success':![],'error':_0x590d(0x7)}):(console[_0x590d(0x49)](_0x590d(0x47)+_0x3e8872['status']),console['warn'](_0x590d(0x4a)+(_0x45286d['error']||_0x32b5db['ROEdB'])),{'success':![],'error':_0x45286d['error']||_0x590d(0x4c)+_0x3e8872[_0x590d(0x48)]});}catch(_0x494979){if(_0x32b5db[_0x590d(0x51)]!==_0x32b5db['GEHHl'])return console['error'](_0x32b5db['QeuOr'],_0x494979),{'success':![],'error':_0x494979[_0x590d(0x52)]||_0x590d(0x53)};else _0x2a54b0[_0x590d(0x17)]('π\x20[HINGE_SERVICE]\x20Backend\x20response:\x20'+_0x30ad86['message']);}};exports[_0x590d(0x54)]=storeHingeData;
|
|
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
4
4
|
require("@bam.tech/react-native-image-resizer")
|
|
5
5
|
];
|
|
6
6
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
-
function _0x53f5(_0x1ef1ad,_0x53f5ee){_0x1ef1ad=_0x1ef1ad-0x0;const _0x142438=_0x1ef1();let _0x331d7a=_0x142438[_0x1ef1ad];return _0x331d7a;}Object['defineProperty'](exports,_0x53f5(0x0),{'value':!![]}),exports[_0x53f5(0x1)]=exports['compressProfilePicture']=exports[_0x53f5(0x2)]=exports['compressForUpload']=void 0x0;var _reactNativeImageResizer=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0));function _interopRequireDefault(_0x4f8a0f){return _0x4f8a0f&&_0x4f8a0f['__esModule']?_0x4f8a0f:{'default':_0x4f8a0f};}const getFileSizeFromUri=async _0x295a20=>{const _0x3f60d8={'dxeSt':function(_0x3d7730,_0x3d42ef,_0x4a7762){return _0x3d7730(_0x3d42ef,_0x4a7762);},'JouMw':function(_0x4fe103,_0x39f0b6){return _0x4fe103/_0x39f0b6;},'xNXpq':_0x53f5(0x3),'KSJPs':function(_0x13520a,_0x17733d){return _0x13520a(_0x17733d);},'llXnM':function(_0x305130,_0x472c0c){return _0x305130===_0x472c0c;},'iawpz':_0x53f5(0x4),'HGjHJ':_0x53f5(0x5),'qAoTV':_0x53f5(0x6)};try{if(_0x3f60d8['xNXpq']===_0x3f60d8[_0x53f5(0x7)]){const _0x32e2df=await _0x3f60d8[_0x53f5(0x8)](fetch,_0x295a20),_0x271b1f=await _0x32e2df[_0x53f5(0x9)]();return _0x271b1f[_0x53f5(0xa)];}else return _0x3f60d8[_0x53f5(0xb)](_0x12bb6b,_0x18d5c1,{'maxSizeKB':0x12c,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0x53f5(0xc)});}catch(_0x1b5379){if(_0x3f60d8[_0x53f5(0xd)](_0x3f60d8['iawpz'],_0x3f60d8[_0x53f5(0xe)])){const _0x6dee72=_0x3f60d8[_0x53f5(0xf)](_0x3a0533,_0x50d30f);return _0x44e3f8[_0x53f5(0x10)](_0x53f5(0x11),{'originalSizeKB':_0x1fd20d,'finalSizeKB':_0x164ce6,'compressionRatio':_0x6dee72['toFixed'](0x2)+'x','attempts':_0x314f48}),{'success':!![],'base64':_0x3470ce,'sizeKB':_0x10c121,'originalSizeKB':_0x2e4c99,'compressionRatio':_0x6dee72};}else return console[_0x53f5(0x12)](_0x3f60d8[_0x53f5(0x13)],_0x1b5379),0x0;}},imageToBase64=async _0x1e75db=>{const _0x3223db={'xzkjS':function(_0x4c1175,_0x3d0f1d){return _0x4c1175(_0x3d0f1d);},'EONiI':function(_0x1fd2db,_0xf2bb36){return _0x1fd2db!==_0xf2bb36;},'MXdzv':_0x53f5(0x14),'Brrsg':function(_0x525b24,_0x1a5001){return _0x525b24(_0x1a5001);}};try{const _0x39a099=await _0x3223db[_0x53f5(0x15)](fetch,_0x1e75db),_0x5e53ec=await _0x39a099[_0x53f5(0x9)]();return new Promise((_0x210fc5,_0xbace5a)=>{const _0x512d32={'aTxrJ':function(_0x3d8190,_0x38d16b){return _0x3223db['xzkjS'](_0x3d8190,_0x38d16b);}};if(_0x3223db[_0x53f5(0x16)](_0x3223db[_0x53f5(0x17)],_0x3223db[_0x53f5(0x17)]))_0x49a9cf*=0.85;else{const _0x59cc52=new FileReader();_0x59cc52[_0x53f5(0x18)]=()=>{try{const _0x50e863=_0x59cc52[_0x53f5(0x19)],_0x1c6a48=_0x50e863['split'](',')[0x1];_0x210fc5(_0x1c6a48);}catch(_0x2b31f4){_0x512d32[_0x53f5(0x1a)](_0xbace5a,_0x2b31f4);}},_0x59cc52[_0x53f5(0x1b)]=_0xbace5a,_0x59cc52[_0x53f5(0x1c)](_0x5e53ec);}});}catch(_0x2c3cf7){return console[_0x53f5(0x12)](_0x53f5(0x1d),_0x2c3cf7),null;}},compressImageToTarget=async(_0x4efe8a,_0x1b8669={})=>{const _0x1959ed={'eTEkg':function(_0xf3d407,_0x46fa10){return _0xf3d407*_0x46fa10;},'fodyM':function(_0x937171,_0xf72bda,_0x5a77f1){return _0x937171(_0xf72bda,_0x5a77f1);},'AdtRu':_0x53f5(0xc),'xiMoB':'Error\x20getting\x20file\x20size:','RgSJy':function(_0x455693,_0x1cbcb1){return _0x455693>_0x1cbcb1;},'sewYq':function(_0x4bbe04,_0x312975){return _0x4bbe04*_0x312975;},'JLWdZ':function(_0x52ae2e,_0x3a2183){return _0x52ae2e*_0x3a2183;},'osKSe':function(_0x37fcdf,_0x5c7fee){return _0x37fcdf(_0x5c7fee);},'myFMH':function(_0x3da2f0,_0x2e4f8b){return _0x3da2f0(_0x2e4f8b);},'LStFc':function(_0x50add9,_0x237ba1){return _0x50add9===_0x237ba1;},'JLFwO':_0x53f5(0x1e),'tYpNa':function(_0x201695,_0x33d4c8){return _0x201695(_0x33d4c8);},'ZcEYp':function(_0x3d37a1,_0x3dd7d8){return _0x3d37a1/_0x3dd7d8;},'OjqQu':'π\x20[COMPRESSION]\x20Original\x20size:','vzeyw':function(_0x534e75,_0x1f6e36){return _0x534e75<=_0x1f6e36;},'nkDrF':_0x53f5(0x1f),'oSVVR':function(_0x248d0b,_0x3e9a0d){return _0x248d0b(_0x3e9a0d);},'GvSzq':function(_0x4b9f27,_0x184755){return _0x4b9f27<_0x184755;},'PphVn':function(_0x432d7c,_0x5a220d){return _0x432d7c!==_0x5a220d;},'olpRs':_0x53f5(0x20),'BTkoH':_0x53f5(0x21),'yXUUO':_0x53f5(0x22),'PWrYL':function(_0x280258,_0x41e82a){return _0x280258===_0x41e82a;},'uDzrw':_0x53f5(0x23),'eTxqr':'β
\x20[COMPRESSION]\x20Target\x20size\x20achieved!','pJkwX':_0x53f5(0x11),'PPQlO':function(_0x431032,_0x1d38a7){return _0x431032+_0x1d38a7;},'gFSKm':function(_0xb616a6,_0x325601){return _0xb616a6>_0x325601;},'Frkeq':function(_0x5f3efa,_0x2173f0){return _0x5f3efa!==_0x2173f0;},'eQzTP':'OUKhj','vUCJH':function(_0x3d3ede,_0x329df1){return _0x3d3ede*_0x329df1;},'aROoU':function(_0x351b75,_0x12ff21){return _0x351b75*_0x12ff21;},'BKyrN':function(_0x3a30e6,_0x1bab99){return _0x3a30e6>_0x1bab99;},'WmfiF':function(_0x43bf92,_0x3b7507){return _0x43bf92!==_0x3b7507;},'eWWrd':_0x53f5(0x24),'NahVa':_0x53f5(0x25),'phJDo':function(_0xfce270,_0x16c837){return _0xfce270*_0x16c837;},'RkcZk':function(_0x1b18ed,_0x1bc61e){return _0x1b18ed*_0x1bc61e;},'LJTqA':'β οΈ\x20[COMPRESSION]\x20Max\x20attempts\x20reached,\x20using\x20best\x20effort','moGHu':'π€\x20[COMPRESSION]\x20Final\x20result\x20(best\x20effort):','RofbP':_0x53f5(0x26),'KNIVh':_0x53f5(0x27),'xFlXO':_0x53f5(0x28),'MTSkl':function(_0x4e9c66,_0x1b2d0f){return _0x4e9c66 instanceof _0x1b2d0f;},'cNsgG':_0x53f5(0x29)},{maxSizeKB:maxSizeKB=0x12c,maxWidth:maxWidth=0x4b0,maxHeight:maxHeight=0x4b0,quality:quality=0.8,format:format='JPEG'}=_0x1b8669;try{if(_0x1959ed[_0x53f5(0x2a)](_0x1959ed[_0x53f5(0x2b)],_0x53f5(0x1e))){console[_0x53f5(0x10)](_0x53f5(0x2c),_0x4efe8a);const _0x59caf7=await _0x1959ed[_0x53f5(0x2d)](getFileSizeFromUri,_0x4efe8a),_0x3c3af8=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x2f)](_0x59caf7,0x400));console[_0x53f5(0x10)](_0x1959ed[_0x53f5(0x30)],_0x3c3af8,'KB');if(_0x1959ed[_0x53f5(0x31)](_0x3c3af8,maxSizeKB)){console[_0x53f5(0x10)](_0x1959ed[_0x53f5(0x32)]);const _0x278d27=await _0x1959ed['oSVVR'](imageToBase64,_0x4efe8a);if(_0x278d27)return{'success':!![],'base64':_0x278d27,'sizeKB':_0x3c3af8,'originalSizeKB':_0x3c3af8,'compressionRatio':0x1};}let _0x22baa7=quality,_0x413820=maxWidth,_0xf13b81=maxHeight,_0x51cace=0x0;const _0x2bdb44=0x8;while(_0x1959ed[_0x53f5(0x33)](_0x51cace,_0x2bdb44)){if(_0x1959ed[_0x53f5(0x34)]('pOQrN',_0x1959ed[_0x53f5(0x35)]))_0x419bf6*=0.75,_0x527f1f=_0x58d4a8['round'](_0x5a6da6*0.9),_0x3b5a5c=_0x2ccf29[_0x53f5(0x2e)](_0x1959ed['eTEkg'](_0x1d695a,0.9));else{_0x51cace++,console[_0x53f5(0x10)](_0x53f5(0x36)+_0x51cace+':\x20quality='+_0x22baa7+_0x53f5(0x37)+_0x413820+'x'+_0xf13b81);try{if(_0x1959ed[_0x53f5(0x38)]===_0x1959ed['yXUUO'])return _0x1959ed[_0x53f5(0x39)](_0x1c0e12,_0x36d57c,{'maxSizeKB':_0x1af34d,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0x1959ed[_0x53f5(0x3a)]});else{const _0x5538d9=await _reactNativeImageResizer[_0x53f5(0x3b)][_0x53f5(0x3c)](_0x4efe8a,_0x413820,_0xf13b81,format,Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x3d)](_0x22baa7,0x64)),0x0,undefined,![],{'mode':_0x53f5(0x3e),'onlyScaleDown':!![]}),_0x4dfeb9=await getFileSizeFromUri(_0x5538d9[_0x53f5(0x3f)]),_0xf0ba37=Math['round'](_0x4dfeb9/0x400);console['log'](_0x53f5(0x40)+_0x51cace+'\x20result:\x20'+_0xf0ba37+_0x53f5(0x41));if(_0xf0ba37<=maxSizeKB){if(_0x1959ed['PWrYL'](_0x1959ed[_0x53f5(0x42)],_0x1959ed[_0x53f5(0x42)])){console[_0x53f5(0x10)](_0x1959ed[_0x53f5(0x43)]);const _0x177501=await _0x1959ed[_0x53f5(0x44)](imageToBase64,_0x5538d9[_0x53f5(0x3f)]);if(_0x177501){const _0x22fe88=_0x1959ed['ZcEYp'](_0x3c3af8,_0xf0ba37);return console[_0x53f5(0x10)](_0x1959ed['pJkwX'],{'originalSizeKB':_0x3c3af8,'finalSizeKB':_0xf0ba37,'compressionRatio':_0x1959ed['PPQlO'](_0x22fe88[_0x53f5(0x45)](0x2),'x'),'attempts':_0x51cace}),{'success':!![],'base64':_0x177501,'sizeKB':_0xf0ba37,'originalSizeKB':_0x3c3af8,'compressionRatio':_0x22fe88};}}else _0x2907e0(_0x2ac794);}if(_0x1959ed[_0x53f5(0x46)](_0xf0ba37,maxSizeKB)){if(_0x1959ed[_0x53f5(0x47)](_0x1959ed[_0x53f5(0x48)],_0x53f5(0x49)))return _0x1784a1[_0x53f5(0x12)](_0x1959ed['xiMoB'],_0x135518),0x0;else{const _0x566506=_0xf0ba37/maxSizeKB;if(_0x566506>0x2)_0x22baa7*=0.6,_0x413820=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x4a)](_0x413820,0.8)),_0xf13b81=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x4b)](_0xf13b81,0.8));else{if(_0x1959ed[_0x53f5(0x4c)](_0x566506,1.5))_0x22baa7*=0.75,_0x413820=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x4a)](_0x413820,0.9)),_0xf13b81=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x4b)](_0xf13b81,0.9));else{if(_0x1959ed[_0x53f5(0x4d)](_0x53f5(0x4e),_0x1959ed[_0x53f5(0x4f)]))_0x22baa7*=0.85;else{const _0x8752e0=_0x13b76b/_0x913914;if(_0x1959ed['RgSJy'](_0x8752e0,0x2))_0x3aeec2*=0.6,_0x26ef76=_0x257df5[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x3d)](_0x31f2f3,0.8)),_0x3b8bce=_0x2627c5[_0x53f5(0x2e)](_0x1959ed['eTEkg'](_0x4c6aaa,0.8));else _0x1959ed['RgSJy'](_0x8752e0,1.5)?(_0x30b84b*=0.75,_0x403806=_0xf2e2a6['round'](_0x1959ed['JLWdZ'](_0x50552e,0.9)),_0x34ee6a=_0x1edf68[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x50)](_0x442236,0.9))):_0x532043*=0.85;_0x4cf1b8=_0x1b8787[_0x53f5(0x51)](0.1,_0x5e78f3),_0x269e65=_0x3be0a6['max'](0x190,_0x44ef78),_0x2e5cc5=_0x5e6555['max'](0x190,_0x2b0d00);}}}_0x22baa7=Math[_0x53f5(0x51)](0.1,_0x22baa7),_0x413820=Math[_0x53f5(0x51)](0x190,_0x413820),_0xf13b81=Math[_0x53f5(0x51)](0x190,_0xf13b81);}}}}catch(_0x5a4411){if(_0x1959ed['WmfiF'](_0x1959ed[_0x53f5(0x52)],_0x53f5(0x25))){const _0x5eb177=_0x6fa11[_0x53f5(0x19)],_0x540c04=_0x5eb177[_0x53f5(0x53)](',')[0x1];_0x1959ed[_0x53f5(0x44)](_0x4d1cc3,_0x540c04);}else{console[_0x53f5(0x12)](_0x53f5(0x54)+_0x51cace+_0x53f5(0x55),_0x5a4411),_0x22baa7*=0.7,_0x413820=Math[_0x53f5(0x2e)](_0x1959ed[_0x53f5(0x56)](_0x413820,0.8)),_0xf13b81=Math['round'](_0x1959ed['RkcZk'](_0xf13b81,0.8));if(_0x1959ed[_0x53f5(0x33)](_0x22baa7,0.1)||_0x413820<0xc8||_0x1959ed[_0x53f5(0x33)](_0xf13b81,0xc8))break;}}}}console[_0x53f5(0x10)](_0x1959ed[_0x53f5(0x57)]);try{const _0x30f958=await _reactNativeImageResizer[_0x53f5(0x3b)][_0x53f5(0x3c)](_0x4efe8a,Math[_0x53f5(0x51)](0x190,_0x413820),Math['max'](0x190,_0xf13b81),format,0x1e,0x0,undefined,![],{'mode':_0x53f5(0x3e),'onlyScaleDown':!![]}),_0x51e858=await _0x1959ed['oSVVR'](getFileSizeFromUri,_0x30f958[_0x53f5(0x3f)]),_0x57c155=Math['round'](_0x1959ed['ZcEYp'](_0x51e858,0x400)),_0x4a04c9=await imageToBase64(_0x30f958[_0x53f5(0x3f)]);if(_0x4a04c9)return console[_0x53f5(0x10)](_0x1959ed['moGHu'],_0x57c155,'KB'),{'success':!![],'base64':_0x4a04c9,'sizeKB':_0x57c155,'originalSizeKB':_0x3c3af8,'compressionRatio':_0x1959ed['ZcEYp'](_0x3c3af8,_0x57c155)};}catch(_0xb639e4){if(_0x1959ed[_0x53f5(0x4d)](_0x1959ed[_0x53f5(0x58)],_0x1959ed[_0x53f5(0x59)]))console[_0x53f5(0x12)](_0x1959ed[_0x53f5(0x5a)],_0xb639e4);else try{const _0x244b7d=_0x5291e4[_0x53f5(0x19)],_0x52a507=_0x244b7d[_0x53f5(0x53)](',')[0x1];_0x1959ed[_0x53f5(0x5b)](_0x4f8d58,_0x52a507);}catch(_0x1ae129){_0x1959ed['myFMH'](_0x27443d,_0x1ae129);}}return{'success':![],'error':_0x53f5(0x5c)+maxSizeKB+'KB\x20after\x20'+_0x2bdb44+'\x20attempts','originalSizeKB':_0x3c3af8};}else return{'success':!![],'base64':_0x41685f,'sizeKB':_0x60f3c4,'originalSizeKB':_0x11f0b1,'compressionRatio':0x1};}catch(_0x4c782b){return console['error'](_0x53f5(0x5d),_0x4c782b),{'success':![],'error':_0x1959ed['MTSkl'](_0x4c782b,Error)?_0x4c782b['message']:_0x1959ed[_0x53f5(0x5e)],'originalSizeKB':0x0};}};exports[_0x53f5(0x2)]=compressImageToTarget;function _0x1ef1(){const _0x377f91=['__esModule','convertImageToOptimizedBase64','compressImageToTarget','cdlHC','wjFiq','AFvca','Error\x20getting\x20file\x20size:','xNXpq','KSJPs','blob','size','dxeSt','JPEG','llXnM','HGjHJ','JouMw','log','π―\x20[COMPRESSION]\x20Success:','error','qAoTV','zyiPc','Brrsg','EONiI','MXdzv','onloadend','result','aTxrJ','onerror','readAsDataURL','Error\x20converting\x20image\x20to\x20base64:','hLYeA','β
\x20[COMPRESSION]\x20Image\x20already\x20under\x20target\x20size','pOQrN','MPgjd','HKBSV','AoLQU','acnjF','YbFXZ','UjCOY','uGnnc','β\x20[COMPRESSION]\x20Final\x20compression\x20attempt\x20failed:','Unknown\x20compression\x20error','LStFc','JLFwO','πΌοΈ\x20[COMPRESSION]\x20Starting\x20compression\x20for:','tYpNa','round','ZcEYp','OjqQu','vzeyw','nkDrF','GvSzq','PphVn','olpRs','π\x20[COMPRESSION]\x20Attempt\x20',',\x20size=','BTkoH','fodyM','AdtRu','default','createResizedImage','sewYq','contain','uri','π\x20[COMPRESSION]\x20Attempt\x20','\x20KB','uDzrw','eTxqr','osKSe','toFixed','gFSKm','Frkeq','eQzTP','OUKhj','vUCJH','aROoU','BKyrN','WmfiF','XPDfB','eWWrd','eTEkg','max','NahVa','split','β\x20[COMPRESSION]\x20Resize\x20attempt\x20','\x20failed:','phJDo','LJTqA','RofbP','KNIVh','xFlXO','myFMH','Failed\x20to\x20compress\x20image\x20to\x20','β\x20[COMPRESSION]\x20Compression\x20service\x20error:','cNsgG','DhNEa','compressProfilePicture','DhKCg','compressForUpload'];_0x1ef1=function(){return _0x377f91;};return _0x1ef1();}const compressProfilePicture=async _0x3889fd=>{const _0x1b6e71={'zFafs':function(_0x41fa58,_0x1828fb,_0x10335a){return _0x41fa58(_0x1828fb,_0x10335a);},'DhNEa':_0x53f5(0xc)};return _0x1b6e71['zFafs'](compressImageToTarget,_0x3889fd,{'maxSizeKB':0x12c,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0x1b6e71[_0x53f5(0x5f)]});};exports[_0x53f5(0x60)]=compressProfilePicture;const compressForUpload=async(_0x3aa329,_0x5e769e=0x12c)=>{const _0x2f650d={'DhKCg':function(_0x3f7e65,_0x200d3e,_0xfab289){return _0x3f7e65(_0x200d3e,_0xfab289);}};return _0x2f650d[_0x53f5(0x61)](compressImageToTarget,_0x3aa329,{'maxSizeKB':_0x5e769e,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':'JPEG'});};exports[_0x53f5(0x62)]=compressForUpload;const convertImageToOptimizedBase64=async(_0x456d8f,_0x22d825=0.8)=>{const _0x36af51={'EQoIy':function(_0x3f59ec,_0x2060e5,_0x355c83){return _0x3f59ec(_0x2060e5,_0x355c83);}},_0x3f3dfa=await _0x36af51['EQoIy'](compressImageToTarget,_0x456d8f,{'maxSizeKB':0x12c,'quality':_0x22d825,'format':_0x53f5(0xc)});return _0x3f3dfa['success']?_0x3f3dfa['base64']||null:null;};exports[_0x53f5(0x1)]=convertImageToOptimizedBase64;
|
|
7
|
+
Object[_0xe928(0x0)](exports,_0xe928(0x1),{'value':!![]}),exports[_0xe928(0x2)]=exports[_0xe928(0x3)]=exports[_0xe928(0x4)]=exports[_0xe928(0x5)]=void 0x0;function _0x4427(){const _0x19c806=['defineProperty','__esModule','convertImageToOptimizedBase64','compressProfilePicture','compressImageToTarget','compressForUpload','JPEG','rhwoy','AUeAy','CNvvj','oPzhr','awgiM','cnVoz','blob','size','vsLYK','okpep','hESIw','error','CgeCN','Error\x20converting\x20image\x20to\x20base64:','bwdXL','moEmK','PfqVn','split','xasxB','onerror','readAsDataURL','vnSzJ','π―\x20[COMPRESSION]\x20Success:','πΌοΈ\x20[COMPRESSION]\x20Starting\x20compression\x20for:','π\x20[COMPRESSION]\x20Original\x20size:','β
\x20[COMPRESSION]\x20Image\x20already\x20under\x20target\x20size','GrrCX','β
\x20[COMPRESSION]\x20Target\x20size\x20achieved!','abghC','CxBNu','β\x20[COMPRESSION]\x20Final\x20compression\x20attempt\x20failed:','Unknown\x20compression\x20error','OOoHd','round','mSyuN','log','DSHZO','bCJTV','ZfKqd','DMvmh','TcDKz','π\x20[COMPRESSION]\x20Attempt\x20',':\x20quality=','EpDPv','default','createResizedImage','PwTpe','contain','\x20result:\x20','DDdrR','RNrVQ','toFixed','ULaCE','qPIHR','ctuSq','ixfcA','mKuWS','NPFeF','vZOiG','OIEFB','TQWHc','result','max','β\x20[COMPRESSION]\x20Resize\x20attempt\x20','\x20failed:','IcoqH','uri','lslnS','\x20attempts','FrFll','UdZmT','ZTWjZ','β\x20[COMPRESSION]\x20Compression\x20service\x20error:','oYVSl','QjghE','vcReh','success','base64'];_0x4427=function(){return _0x19c806;};return _0x4427();}var _reactNativeImageResizer=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x0));function _interopRequireDefault(_0x274e1a){return _0x274e1a&&_0x274e1a['__esModule']?_0x274e1a:{'default':_0x274e1a};}const getFileSizeFromUri=async _0x262b62=>{const _0x43131e={'awgiM':function(_0x2333bc,_0x3cb211,_0x31c41e){return _0x2333bc(_0x3cb211,_0x31c41e);},'wLTuN':_0xe928(0x6),'cnVoz':function(_0x478b2d,_0x1f9e9c){return _0x478b2d(_0x1f9e9c);},'CNvvj':function(_0x22f219,_0x130961){return _0x22f219!==_0x130961;},'oPzhr':_0xe928(0x7),'vsLYK':function(_0x2a98ba,_0x3dd008){return _0x2a98ba!==_0x3dd008;},'okpep':'mqvOa','hESIw':_0xe928(0x8)};try{if(_0x43131e[_0xe928(0x9)](_0x43131e[_0xe928(0xa)],_0x43131e[_0xe928(0xa)]))return _0x43131e[_0xe928(0xb)](_0x47cd75,_0x73cc5c,{'maxSizeKB':_0x467abd,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0x43131e['wLTuN']});else{const _0x4cbe20=await _0x43131e[_0xe928(0xc)](fetch,_0x262b62),_0x5dfab4=await _0x4cbe20[_0xe928(0xd)]();return _0x5dfab4[_0xe928(0xe)];}}catch(_0x5885e4){if(_0x43131e[_0xe928(0xf)](_0x43131e[_0xe928(0x10)],_0x43131e[_0xe928(0x11)]))return console[_0xe928(0x12)]('Error\x20getting\x20file\x20size:',_0x5885e4),0x0;else _0x43131e['cnVoz'](_0x2dd143,_0x1384df);}},imageToBase64=async _0x5f43fd=>{const _0x27e97f={'PfqVn':'Error\x20getting\x20file\x20size:','xasxB':function(_0x124282,_0x2de921){return _0x124282(_0x2de921);},'bwdXL':function(_0x24cba9,_0x189e06){return _0x24cba9!==_0x189e06;},'moEmK':_0xe928(0x13),'vnSzJ':'Dahku','auHzN':_0xe928(0x14)};try{if(_0x27e97f[_0xe928(0x15)](_0x27e97f[_0xe928(0x16)],_0x27e97f[_0xe928(0x16)]))return _0x15ebf9[_0xe928(0x12)](_0x27e97f[_0xe928(0x17)],_0x2d0b00),0x0;else{const _0x254f41=await fetch(_0x5f43fd),_0x5be838=await _0x254f41[_0xe928(0xd)]();return new Promise((_0x38a2d6,_0x690035)=>{const _0x2e45c4=new FileReader();_0x2e45c4['onloadend']=()=>{try{const _0x3094e7=_0x2e45c4['result'],_0x1ecc71=_0x3094e7[_0xe928(0x18)](',')[0x1];_0x27e97f[_0xe928(0x19)](_0x38a2d6,_0x1ecc71);}catch(_0x29ed55){_0x690035(_0x29ed55);}},_0x2e45c4[_0xe928(0x1a)]=_0x690035,_0x2e45c4[_0xe928(0x1b)](_0x5be838);});}}catch(_0x352063){return _0x27e97f[_0xe928(0x15)](_0x27e97f[_0xe928(0x1c)],_0x27e97f['vnSzJ'])?{'success':!![],'base64':_0x49a965,'sizeKB':_0x4dc9d8,'originalSizeKB':_0x1fefba,'compressionRatio':0x1}:(console['error'](_0x27e97f['auHzN'],_0x352063),null);}},compressImageToTarget=async(_0xfb4a20,_0x16daad={})=>{const _0x222928={'ULaCE':_0xe928(0x14),'vZOiG':function(_0x4e8fa6,_0x24502f){return _0x4e8fa6*_0x24502f;},'lBRNC':function(_0x12c688,_0x4c293c){return _0x12c688*_0x4c293c;},'dFbYl':function(_0x1de82d,_0x32e613){return _0x1de82d(_0x32e613);},'DMvmh':function(_0x281d9b,_0x40b67a){return _0x281d9b(_0x40b67a);},'ZTWjZ':_0xe928(0x1d),'HKfdU':'JPEG','OOoHd':_0xe928(0x1e),'AeNOP':function(_0x53ee31,_0x584b0f){return _0x53ee31(_0x584b0f);},'mSyuN':function(_0x3c0db5,_0x34fc42){return _0x3c0db5/_0x34fc42;},'DSHZO':_0xe928(0x1f),'bCJTV':function(_0x1b9c24,_0x1d7bd4){return _0x1b9c24<=_0x1d7bd4;},'ZfKqd':_0xe928(0x20),'TcDKz':function(_0x49bd81,_0x59bef4){return _0x49bd81<_0x59bef4;},'EpDPv':_0xe928(0x21),'PwTpe':function(_0x364ffe,_0x3d6527){return _0x364ffe*_0x3d6527;},'DDdrR':_0xe928(0x22),'RNrVQ':'yRpvv','qPIHR':function(_0x48f266,_0x4b0024){return _0x48f266>_0x4b0024;},'ctuSq':function(_0x219dd5,_0x36eabe){return _0x219dd5===_0x36eabe;},'ixfcA':'VyLoC','mKuWS':function(_0x490e6b,_0x398b77){return _0x490e6b>_0x398b77;},'pWLvc':function(_0x335640,_0x1094ac){return _0x335640!==_0x1094ac;},'NPFeF':_0xe928(0x23),'OIEFB':function(_0x122f50,_0x5162d0){return _0x122f50*_0x5162d0;},'TQWHc':_0xe928(0x24),'jbvwb':function(_0x5e0573,_0x66e924){return _0x5e0573*_0x66e924;},'IcoqH':'β οΈ\x20[COMPRESSION]\x20Max\x20attempts\x20reached,\x20using\x20best\x20effort','ilCAv':'π€\x20[COMPRESSION]\x20Final\x20result\x20(best\x20effort):','lslnS':function(_0x39fe3f,_0x10628e){return _0x39fe3f/_0x10628e;},'zHGjG':_0xe928(0x25),'FrFll':function(_0x1dc347,_0x356d34){return _0x1dc347!==_0x356d34;},'oYVSl':function(_0x1bd0eb,_0x430296){return _0x1bd0eb instanceof _0x430296;},'RJkLr':_0xe928(0x26)},{maxSizeKB:maxSizeKB=0x12c,maxWidth:maxWidth=0x4b0,maxHeight:maxHeight=0x4b0,quality:quality=0.8,format:format=_0x222928['HKfdU']}=_0x16daad;try{console['log'](_0x222928[_0xe928(0x27)],_0xfb4a20);const _0x449eab=await _0x222928['AeNOP'](getFileSizeFromUri,_0xfb4a20),_0x3482a3=Math[_0xe928(0x28)](_0x222928[_0xe928(0x29)](_0x449eab,0x400));console[_0xe928(0x2a)](_0x222928[_0xe928(0x2b)],_0x3482a3,'KB');if(_0x222928[_0xe928(0x2c)](_0x3482a3,maxSizeKB)){console[_0xe928(0x2a)](_0x222928[_0xe928(0x2d)]);const _0x36b8d9=await _0x222928[_0xe928(0x2e)](imageToBase64,_0xfb4a20);if(_0x36b8d9)return{'success':!![],'base64':_0x36b8d9,'sizeKB':_0x3482a3,'originalSizeKB':_0x3482a3,'compressionRatio':0x1};}let _0x24da46=quality,_0x4f7e5f=maxWidth,_0x1ecece=maxHeight,_0x1cbd3b=0x0;const _0x41bfdc=0x8;while(_0x222928[_0xe928(0x2f)](_0x1cbd3b,_0x41bfdc)){_0x1cbd3b++,console[_0xe928(0x2a)](_0xe928(0x30)+_0x1cbd3b+_0xe928(0x31)+_0x24da46+',\x20size='+_0x4f7e5f+'x'+_0x1ecece);try{if(_0x222928[_0xe928(0x32)]!==_0x222928[_0xe928(0x32)])_0x93428e*=0.85;else{const _0xe041a1=await _reactNativeImageResizer[_0xe928(0x33)][_0xe928(0x34)](_0xfb4a20,_0x4f7e5f,_0x1ecece,format,Math[_0xe928(0x28)](_0x222928[_0xe928(0x35)](_0x24da46,0x64)),0x0,undefined,![],{'mode':_0xe928(0x36),'onlyScaleDown':!![]}),_0x529295=await _0x222928['DMvmh'](getFileSizeFromUri,_0xe041a1['uri']),_0x4a0cb2=Math['round'](_0x529295/0x400);console['log']('π\x20[COMPRESSION]\x20Attempt\x20'+_0x1cbd3b+_0xe928(0x37)+_0x4a0cb2+'\x20KB');if(_0x4a0cb2<=maxSizeKB){console[_0xe928(0x2a)](_0x222928[_0xe928(0x38)]);const _0x32d0dc=await imageToBase64(_0xe041a1['uri']);if(_0x32d0dc){if(_0x222928[_0xe928(0x39)]==='yRpvv'){const _0x23daae=_0x3482a3/_0x4a0cb2;return console['log']('π―\x20[COMPRESSION]\x20Success:',{'originalSizeKB':_0x3482a3,'finalSizeKB':_0x4a0cb2,'compressionRatio':_0x23daae[_0xe928(0x3a)](0x2)+'x','attempts':_0x1cbd3b}),{'success':!![],'base64':_0x32d0dc,'sizeKB':_0x4a0cb2,'originalSizeKB':_0x3482a3,'compressionRatio':_0x23daae};}else return _0x21eece['error'](_0x222928[_0xe928(0x3b)],_0x14fe5f),null;}}if(_0x222928[_0xe928(0x3c)](_0x4a0cb2,maxSizeKB)){if(_0x222928[_0xe928(0x3d)](_0x222928[_0xe928(0x3e)],_0x222928[_0xe928(0x3e)])){const _0x1c2c9a=_0x222928[_0xe928(0x29)](_0x4a0cb2,maxSizeKB);if(_0x222928[_0xe928(0x3f)](_0x1c2c9a,0x2))_0x222928['pWLvc'](_0x222928[_0xe928(0x40)],_0x222928[_0xe928(0x40)])?(_0x38f5dc*=0.75,_0x20e7ba=_0x365522[_0xe928(0x28)](_0x222928[_0xe928(0x41)](_0x5d4202,0.9)),_0xed68e5=_0x3b03fc[_0xe928(0x28)](_0x222928['lBRNC'](_0x2c7c78,0.9))):(_0x24da46*=0.6,_0x4f7e5f=Math[_0xe928(0x28)](_0x222928[_0xe928(0x42)](_0x4f7e5f,0.8)),_0x1ecece=Math['round'](_0x1ecece*0.8));else{if(_0x222928['qPIHR'](_0x1c2c9a,1.5)){if(_0x222928[_0xe928(0x3d)](_0x222928[_0xe928(0x43)],'CxBNu'))_0x24da46*=0.75,_0x4f7e5f=Math['round'](_0x222928['jbvwb'](_0x4f7e5f,0.9)),_0x1ecece=Math[_0xe928(0x28)](_0x1ecece*0.9);else try{const _0x45e5c6=_0x2fe2ad[_0xe928(0x44)],_0x18fa73=_0x45e5c6[_0xe928(0x18)](',')[0x1];_0x222928['dFbYl'](_0x869cc4,_0x18fa73);}catch(_0xd0e894){_0x222928[_0xe928(0x2e)](_0x75b7d4,_0xd0e894);}}else _0x24da46*=0.85;}_0x24da46=Math['max'](0.1,_0x24da46),_0x4f7e5f=Math[_0xe928(0x45)](0x190,_0x4f7e5f),_0x1ecece=Math[_0xe928(0x45)](0x190,_0x1ecece);}else _0x4e324a[_0xe928(0x12)]('β\x20[COMPRESSION]\x20Final\x20compression\x20attempt\x20failed:',_0x5381d7);}}}catch(_0x4a85e5){console[_0xe928(0x12)](_0xe928(0x46)+_0x1cbd3b+_0xe928(0x47),_0x4a85e5),_0x24da46*=0.7,_0x4f7e5f=Math[_0xe928(0x28)](_0x4f7e5f*0.8),_0x1ecece=Math[_0xe928(0x28)](_0x222928[_0xe928(0x35)](_0x1ecece,0.8));if(_0x24da46<0.1||_0x222928[_0xe928(0x2f)](_0x4f7e5f,0xc8)||_0x1ecece<0xc8)break;}}console['log'](_0x222928[_0xe928(0x48)]);try{const _0xe432c7=await _reactNativeImageResizer[_0xe928(0x33)]['createResizedImage'](_0xfb4a20,Math[_0xe928(0x45)](0x190,_0x4f7e5f),Math[_0xe928(0x45)](0x190,_0x1ecece),format,0x1e,0x0,undefined,![],{'mode':'contain','onlyScaleDown':!![]}),_0x4b8c5f=await getFileSizeFromUri(_0xe432c7[_0xe928(0x49)]),_0x53b53f=Math[_0xe928(0x28)](_0x222928[_0xe928(0x29)](_0x4b8c5f,0x400)),_0x4019fa=await imageToBase64(_0xe432c7[_0xe928(0x49)]);if(_0x4019fa)return console[_0xe928(0x2a)](_0x222928['ilCAv'],_0x53b53f,'KB'),{'success':!![],'base64':_0x4019fa,'sizeKB':_0x53b53f,'originalSizeKB':_0x3482a3,'compressionRatio':_0x222928[_0xe928(0x4a)](_0x3482a3,_0x53b53f)};}catch(_0x43b722){console['error'](_0x222928['zHGjG'],_0x43b722);}return{'success':![],'error':'Failed\x20to\x20compress\x20image\x20to\x20'+maxSizeKB+'KB\x20after\x20'+_0x41bfdc+_0xe928(0x4b),'originalSizeKB':_0x3482a3};}catch(_0x1c6c90){if(_0x222928[_0xe928(0x4c)](_0xe928(0x4d),_0xe928(0x4d))){const _0x2cc0a0=_0x11e781/_0x2f2fd5;return _0x47cd01[_0xe928(0x2a)](_0x222928[_0xe928(0x4e)],{'originalSizeKB':_0x1c6e31,'finalSizeKB':_0x2374a4,'compressionRatio':_0x2cc0a0[_0xe928(0x3a)](0x2)+'x','attempts':_0x4ef1f2}),{'success':!![],'base64':_0x1e8ed4,'sizeKB':_0x55edf1,'originalSizeKB':_0x4bc937,'compressionRatio':_0x2cc0a0};}else return console[_0xe928(0x12)](_0xe928(0x4f),_0x1c6c90),{'success':![],'error':_0x222928[_0xe928(0x50)](_0x1c6c90,Error)?_0x1c6c90['message']:_0x222928['RJkLr'],'originalSizeKB':0x0};}};exports[_0xe928(0x4)]=compressImageToTarget;const compressProfilePicture=async _0x26e49f=>{return compressImageToTarget(_0x26e49f,{'maxSizeKB':0x12c,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0xe928(0x6)});};exports['compressProfilePicture']=compressProfilePicture;const compressForUpload=async(_0x52ef82,_0x4b5e93=0x12c)=>{const _0x6f3faf={'QjghE':function(_0x3e71a5,_0x1bafc1,_0x46c527){return _0x3e71a5(_0x1bafc1,_0x46c527);},'vcReh':_0xe928(0x6)};return _0x6f3faf[_0xe928(0x51)](compressImageToTarget,_0x52ef82,{'maxSizeKB':_0x4b5e93,'maxWidth':0x4b0,'maxHeight':0x4b0,'quality':0.8,'format':_0x6f3faf[_0xe928(0x52)]});};exports[_0xe928(0x5)]=compressForUpload;function _0xe928(_0x4427cb,_0xe9287a){_0x4427cb=_0x4427cb-0x0;const _0x2a7593=_0x4427();let _0x2e3edb=_0x2a7593[_0x4427cb];return _0x2e3edb;}const convertImageToOptimizedBase64=async(_0x3863e7,_0x45033b=0.8)=>{const _0x2fab56=await compressImageToTarget(_0x3863e7,{'maxSizeKB':0x12c,'quality':_0x45033b,'format':'JPEG'});return _0x2fab56[_0xe928(0x53)]?_0x2fab56[_0xe928(0x54)]||null:null;};exports['convertImageToOptimizedBase64']=convertImageToOptimizedBase64;
|