@onairos/react-native 3.6.4 → 3.6.5
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/apiKeyService.js +924 -9
- package/lib/commonjs/services/authService.js +627 -10
- 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/oauthService.js +391 -11
- 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/apiKeyService.js +898 -1
- package/lib/module/services/authService.js +602 -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/oauthService.js +381 -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-fs')
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
import React,{useState}from'react';function _0x33af(){const _0x34a74f=['log','unknown','Connect\x20ChatGPT','Paste\x20your\x20ChatGPT\x20conversation\x20JSON\x20here...','Paste\x20your\x20Claude\x20conversation\x20JSON\x20here...','gemini','Export\x20your\x20Gemini\x20(Google\x20AI)\x20conversations\x20and\x20paste\x20the\x20data\x20below.','Paste\x20your\x20Gemini\x20conversation\x20JSON\x20here...','grok','Connect\x20Grok','Export\x20your\x20Grok\x20conversations\x20from\x20X/Twitter\x20and\x20paste\x20the\x20data\x20below.','Paste\x20your\x20Grok\x20conversation\x20JSON\x20here...','Paste\x20your\x20conversation\x20data\x20below\x20or\x20upload\x20a\x20JSON\x20file.','Paste\x20your\x20conversation\x20JSON\x20here...','Imported\x20Conversation','ywtSK','FIloD','Failed\x20to\x20import\x20any\x20conversations.\x20Please\x20check\x20your\x20data\x20format.','GZMgE','nuPwi','Authentication\x20required.\x20Please\x20sign\x20in\x20first.','gcIPs','YwMnc','FePoK','pyyMH','ImHMf','Error\x20parsing\x20conversation\x20data:','human','string','Invalid\x20JSON\x20format.\x20Please\x20check\x20your\x20data\x20and\x20try\x20again.','Selected\x20file','content://','ZwTrB','utf8','File\x20pick\x20error:','Failed\x20to\x20read\x20file.\x20Please\x20try\x20again\x20or\x20paste\x20data\x20manually.','user','NAiIo','Please\x20paste\x20or\x20upload\x20conversation\x20data\x20first.','enoch_token','rJkCJ','hQuRn','conversation','mobile_app_import','lpGuA','MfCcw','AiurH','Success!\x20🎉','wKCFZ','Failed\x20to\x20import\x20data.\x20Please\x20try\x20again.','4|1|5|2|0|3','paste','file','slide','pageSheet','padding','height','Cancel','handled','Upload\x20File\x20','top','none','Tap\x20to\x20select\x20a\x20file','Data\x20Preview','...','\x20characters','#FFFFFF','txBFP','sXphB','ZhePt','EpRno','cpkiN','ujXuU','SZdQF','jJlta','jXPyz','lbVOo','cZrED','message','content','parts','join','trim','msg_','WZIgT','bEvLP','create_time','KvwFr','toISOString','BmWVA','TmtMN','TOxka','WjVgf','pLvAS','Connect\x20Claude','Export\x20your\x20Claude\x20conversations\x20and\x20paste\x20the\x20JSON\x20data\x20below,\x20or\x20upload\x20your\x20exported\x20file.','HdKmM','cRiXM','Connect\x20Gemini','FysZr','gdoLy','JSSsG','qFxOc','bjgoz','cNeYm','Connect\x20','orcjV','assistant','dHcOe','TjVTw','KUPDM','Submit\x20error:','parse','isArray','UUMJa','sbkQb','bTOCB','now','title','oPGlB','CGNRq','length','push','conversation_id','conv_','name','Conversation\x20','LjDaY','created_at','update_time','updated_at','text','uuid','sender','kPfaP','conversations','qCDgk','xjUMH','NfYae','forEach','GKxor','MKJRd','dRJFw','NOvAo','gMePd','0|1|4|3|5|2','split','wWZWC','bgZmF','NvvEV','NyDJY','mapping','messages','reJhb','unlPZ','IEQwp','AQUJG','NacWe','BUTTON_PRESS','XIOcF','ERROR','Uxggt','oKwiS','HWXin','error','UzBBa','vgNpG','Pswzi','ixSdk','SQPoJ','gTnjq','ctUlh','KnCPL','hpLpz','uZQdw','zPUxF','author','role','dgtOr','aompM','Error\x20storing\x20conversation:','IopUn','jvpbd','PSGcY','timestamp','chat_messages','ZVhCv','LjzKv','JMmOY','LtcrC','json','plainText','allFiles','uri','startsWith','xRyOn','iQYAS','wrlfV','JfDQo','readFile','AAiyA','SUCCESS','JqWWV','DOCUMENT_PICKER_CANCELED','bjSJl','ZTBsb','EzvMP','SwFfp','EKKqK','hwlJv','FSiwR','iOfYH','GufQI','sguum','nqwQI','HKELp','IIuvo','egvRZ','DOhRD','getItem','onairos_jwt_token','maROT','auth_token','mobile-','bxckz','AVrhS','UgLto','cwIan','RQPRY','ABIGD','pJqFC','HDZEF','BASE_URL','/llm-data/store','Bearer\x20','stringify','conversationId','context','Version','NviIX','YtXwY','TbruL','EGVFc','Uqxpp','exxaw','Failed\x20to\x20store\x20conversation\x20','fSrKG','setItem','EMclU','alert','Successfully\x20imported\x20','\x20conversation','kIUXN','\x20from\x20','GmxBf','hmuLR','spJxf','itHqD','ozvcP','xcrlp','zouWb','rORbJ','VqMfC','beQhk','createElement','xLgAS','container','ESzQM','wEHna','yqFeW','header','closeButton','closeButtonText','kXkoT','headerTitle','contentContainer','hJgOc','instructionsContainer','instructionsText','tabContainer','tab','qkJKz','tabActive','tabText','tabTextActive','Paste\x20Data','DisER','tabDisabled','rboYh','File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.','tabTextDisabled','inputContainer','textInput','NgMJK','CPWbR','fileInputContainer','filePickButton','filePickIcon','filePickText','dEfFQ','fileSelectedContainer','fileSelectedText','errorContainer','errorText','previewContainer','DeCzK','previewText','CfRcT','YzXhL','previewInfo','toLocaleString','footer','submitButton','zJkhu','QzuXQ','submitButtonText','NWrJg','create','surface','row','space-between','ios','#E5E7EB','600','#3B82F6','#0369A1','Inter','#F3F4F6','center','grey500','grey800','grey300','monospace','#166534','#DC2626','grey600'];_0x33af=function(){return _0x34a74f;};return _0x33af();}import{View,Text,StyleSheet,Modal,TouchableOpacity,TextInput,ScrollView,ActivityIndicator,Alert,Platform,KeyboardAvoidingView}from'react-native';import{COLORS}from'../theme';import{triggerHaptic,HapticType}from'../utils/haptics';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';function _0x199f(_0x33af17,_0x199f84){_0x33af17=_0x33af17-0x0;const _0x4f8f94=_0x33af();let _0x3e108e=_0x4f8f94[_0x33af17];return _0x3e108e;}let DocumentPicker=null,RNFS=null;try{DocumentPicker=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x4d5830){console['log']('react-native-document-picker not available - file upload disabled');}try{RNFS=__ONAIROS_REQ_FUNC__(0x1);}catch(_0xc081d8){console[_0x199f(0x0)]('react-native-fs not available - file upload disabled');}const FILE_UPLOAD_AVAILABLE=DocumentPicker!==null&&RNFS!==null,LLMDataInputModal=({visible:_0x12da86,platform:_0x4149a3,platformName:_0x200174,onClose:_0x1b721b,onSuccess:_0x24b07b})=>{const _0x45d50a={'EpRno':function(_0x2a8070,_0x4ae2b2){return _0x2a8070!==_0x4ae2b2;},'cpkiN':function(_0x3afbe2,_0x41a186){return _0x3afbe2===_0x41a186;},'ujXuU':_0x199f(0x1),'SZdQF':function(_0x343dcb,_0xd31f2b){return _0x343dcb*_0xd31f2b;},'jJlta':function(_0x53d294,_0x4531f1){return _0x53d294!==_0x4531f1;},'BmWVA':'chatgpt','TmtMN':_0x199f(0x2),'TOxka':'Export\x20your\x20ChatGPT\x20conversations\x20from\x20Settings\x20→\x20Data\x20Controls\x20→\x20Export\x20data.\x20Then\x20upload\x20the\x20JSON\x20file\x20or\x20paste\x20your\x20conversation\x20data.','WjVgf':_0x199f(0x3),'pLvAS':'claude','HdKmM':_0x199f(0x4),'cRiXM':_0x199f(0x5),'FysZr':_0x199f(0x6),'gdoLy':_0x199f(0x7),'JSSsG':_0x199f(0x8),'qFxOc':_0x199f(0x9),'bjgoz':_0x199f(0xa),'cNeYm':_0x199f(0xb),'DfPJG':_0x199f(0xc),'orcjV':_0x199f(0xd),'NacWe':_0x199f(0xe),'GKxor':function(_0xa936d8,_0x25c60f){return _0xa936d8(_0x25c60f);},'MKJRd':function(_0x4d9d73){return _0x4d9d73();},'txBFP':function(_0x2a88c5,_0x2f6102){return _0x2a88c5(_0x2f6102);},'dRJFw':_0x199f(0xf),'NOvAo':_0x199f(0x10),'gMePd':function(_0x1b81fe,_0x1ffc1e){return _0x1b81fe+_0x1ffc1e;},'NyDJY':_0x199f(0x11),'dHcOe':_0x199f(0x12),'TjVTw':_0x199f(0x13),'ZhePt':function(_0x2214c6,_0x201da1){return _0x2214c6(_0x201da1);},'KUPDM':'File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.','ZcTZS':_0x199f(0x14),'UUMJa':function(_0x19c33e,_0x9a4c27){return _0x19c33e!==_0x9a4c27;},'bTOCB':'sbkQb','qCDgk':function(_0x99f1e3,_0x3e949d){return _0x99f1e3!==_0x3e949d;},'NfYae':_0x199f(0x15),'reJhb':function(_0x1e9fb9,_0x40a713){return _0x1e9fb9!==_0x40a713;},'Yiukr':_0x199f(0x16),'RFmPv':_0x199f(0x17),'unlPZ':function(_0x33fa70,_0x48cd78){return _0x33fa70>_0x48cd78;},'IEQwp':'vxHiL','AQUJG':'LRNLC','oKwiS':function(_0x34b0a9,_0x1de804){return _0x34b0a9>_0x1de804;},'HWXin':_0x199f(0x18),'Pswzi':_0x199f(0x19),'ixSdk':_0x199f(0x1a),'ctUlh':function(_0xd1c542,_0x4cafad){return _0xd1c542!==_0x4cafad;},'KnCPL':function(_0x28984a,_0x26f117){return _0x28984a!==_0x26f117;},'hpLpz':function(_0x2c6917,_0x50649a){return _0x2c6917!==_0x50649a;},'hwlJv':function(_0xf50c37,_0x5d3df6){return _0xf50c37===_0x5d3df6;},'ZVhCv':_0x199f(0x1b),'mgPOB':'assistant','FSiwR':function(_0x2a406e,_0xf62f83){return _0x2a406e===_0xf62f83;},'gTnjq':_0x199f(0x1c),'LjzKv':_0x199f(0x1d),'JMmOY':function(_0x119d95,_0x4eda36){return _0x119d95===_0x4eda36;},'mvvbr':_0x199f(0x1e),'lWoOu':_0x199f(0x1f),'xRyOn':'lIWrC','iQYAS':_0x199f(0x20),'JfDQo':_0x199f(0x21),'AAiyA':function(_0x4dc55b,_0x3fe31b){return _0x4dc55b(_0x3fe31b);},'JqWWV':function(_0x4e42e5,_0x18bc88){return _0x4e42e5!==_0x18bc88;},'sjRKs':_0x199f(0x22),'bjSJl':function(_0x2f774c,_0x1ba5b8){return _0x2f774c(_0x1ba5b8);},'ZTBsb':_0x199f(0x23),'GufQI':function(_0x524934,_0x54ad08){return _0x524934===_0x54ad08;},'EKKqK':_0x199f(0x24),'AtQbM':function(_0x2f960f,_0x3ad9de){return _0x2f960f(_0x3ad9de);},'NbqYE':function(_0x479279,_0x2c6de6){return _0x479279>_0x2c6de6;},'DOhRD':'No\x20valid\x20conversations\x20found\x20in\x20the\x20data.\x20Please\x20check\x20the\x20format.','SIKSh':_0x199f(0x25),'iOfYH':_0x199f(0x26),'egvRZ':function(_0x8f1531,_0x5ece0e){return _0x8f1531(_0x5ece0e);},'maROT':_0x199f(0x27),'bxckz':function(_0x38b63e,_0x503830){return _0x38b63e!==_0x503830;},'AVrhS':_0x199f(0x28),'ABIGD':function(_0x53b3aa,_0x295d28){return _0x53b3aa===_0x295d28;},'pJqFC':_0x199f(0x29),'jiqvk':function(_0x4f5102,_0xd317a3,_0x28debc){return _0x4f5102(_0xd317a3,_0x28debc);},'CHKjD':'1.0.0','NviIX':_0x199f(0x2a),'YtXwY':_0x199f(0x2b),'rgAEt':function(_0x555096,_0x14c860){return _0x555096!==_0x14c860;},'TbruL':_0x199f(0x2c),'EGVFc':_0x199f(0x2d),'lytFS':_0x199f(0x2e),'EMclU':function(_0x4b500c,_0x4581d0){return _0x4b500c(_0x4581d0);},'nxNSl':_0x199f(0x2f),'kIUXN':function(_0x169a81,_0x524761){return _0x169a81>_0x524761;},'GmxBf':_0x199f(0x30),'spJxf':'Submit\x20error:','itHqD':_0x199f(0x31),'xcrlp':'BFhjw','zouWb':_0x199f(0x32),'rORbJ':_0x199f(0x33),'VqMfC':function(_0x30501f,_0x161456){return _0x30501f(_0x161456);},'beQhk':function(_0x416d72,_0xf67d90){return _0x416d72(_0xf67d90);},'eRZaT':function(_0x2b9e71,_0x857cf7){return _0x2b9e71(_0x857cf7);},'wvhUY':_0x199f(0x34),'rboYh':function(_0x26f0d5,_0x1e5350){return _0x26f0d5(_0x1e5350);},'sXphB':function(_0x15152a,_0x3b2036){return _0x15152a(_0x3b2036);},'ZknrG':_0x199f(0x35),'xLgAS':_0x199f(0x36),'ESzQM':function(_0x2cd120,_0x4bd9c4){return _0x2cd120===_0x4bd9c4;},'wEHna':_0x199f(0x37),'yqFeW':_0x199f(0x38),'kXkoT':_0x199f(0x39),'hJgOc':_0x199f(0x3a),'qkJKz':function(_0x37982f,_0x2565bb){return _0x37982f===_0x2565bb;},'DisER':function(_0x58dd17,_0x401e1a){return _0x58dd17===_0x401e1a;},'zJLYf':_0x199f(0x3b),'EPmnQ':'(N/A)','LdQvZ':function(_0x2f673c,_0x354bed){return _0x2f673c===_0x354bed;},'NgMJK':_0x199f(0x3c),'CPWbR':_0x199f(0x3d),'dEfFQ':function(_0x2271a7,_0xd60ec3){return _0x2271a7||_0xd60ec3;},'uxlRq':_0x199f(0x3e),'DeCzK':_0x199f(0x3f),'CfRcT':function(_0x1fb9a4,_0x192e74){return _0x1fb9a4>_0x192e74;},'YzXhL':_0x199f(0x40),'EHIOw':_0x199f(0x41),'zJkhu':_0x199f(0x42),'QzuXQ':'small','NWrJg':'Import\x20Conversations'},[_0x99cbc3,_0x1af378]=_0x45d50a[_0x199f(0x43)](useState,_0x199f(0x33)),[_0x6acced,_0x3671e3]=useState(''),[_0x4ba718,_0x5dc1b2]=_0x45d50a[_0x199f(0x44)](useState,![]),[_0x192f9c,_0x5a953f]=_0x45d50a[_0x199f(0x45)](useState,null),[_0x733df0,_0x4cdba1]=useState(null),[_0x36ec9e,_0x320332]=useState(null),_0x409fb4=()=>{const _0x2bdea4={'lbVOo':function(_0x4c53d3,_0x206a31){return _0x4c53d3!==_0x206a31;},'cZrED':function(_0x4ec24b,_0x22ef14){return _0x45d50a[_0x199f(0x46)](_0x4ec24b,_0x22ef14);},'WZIgT':function(_0x206f6a,_0x318b8b){return _0x45d50a[_0x199f(0x47)](_0x206f6a,_0x318b8b);},'bEvLP':_0x45d50a[_0x199f(0x48)],'KvwFr':function(_0x4299b8,_0x5ce7c5){return _0x45d50a[_0x199f(0x49)](_0x4299b8,_0x5ce7c5);}};if(_0x45d50a[_0x199f(0x4a)](_0x199f(0x4b),_0x199f(0x4b))){var _0x2d130f;if(_0x2bdea4[_0x199f(0x4c)](_0x223aab,null)&&_0x2bdea4[_0x199f(0x4d)](_0x4a8358,void 0x0)&&_0x2bdea4[_0x199f(0x4d)](_0x2d130f=_0x2f42de[_0x199f(0x4e)],null)&&_0x2bdea4['cZrED'](_0x2d130f,void 0x0)&&(_0x2d130f=_0x2d130f['content'])!==null&&_0x2d130f!==void 0x0&&_0x2d130f['parts']){const _0x1febff=_0x3fdb13[_0x199f(0x4e)][_0x199f(0x4f)][_0x199f(0x50)][_0x199f(0x51)]('\x0a');if(_0x1febff[_0x199f(0x52)]()){var _0x4934af;_0x35e461['push']({'id':_0x310bd1['message']['id']||_0x199f(0x53)+_0x3fd80e,'role':(_0x2bdea4[_0x199f(0x54)](_0x4934af=_0x19c447[_0x199f(0x4e)]['author'],null)||_0x2bdea4[_0x199f(0x54)](_0x4934af,void 0x0)?void 0x0:_0x4934af['role'])||_0x2bdea4[_0x199f(0x55)],'content':_0x1febff,'timestamp':_0x2f4a05[_0x199f(0x4e)][_0x199f(0x56)]?new _0x276fc0(_0x2bdea4[_0x199f(0x57)](_0x94dd61['message'][_0x199f(0x56)],0x3e8))[_0x199f(0x58)]():_0xfb073e});}}}else switch(_0x4149a3){case _0x45d50a[_0x199f(0x59)]:return{'title':_0x45d50a[_0x199f(0x5a)],'instructions':_0x45d50a[_0x199f(0x5b)],'placeholder':_0x45d50a[_0x199f(0x5c)]};case _0x45d50a[_0x199f(0x5d)]:return{'title':_0x199f(0x5e),'instructions':_0x199f(0x5f),'placeholder':_0x45d50a[_0x199f(0x60)]};case _0x45d50a[_0x199f(0x61)]:return{'title':_0x199f(0x62),'instructions':_0x45d50a[_0x199f(0x63)],'placeholder':_0x45d50a[_0x199f(0x64)]};case _0x45d50a[_0x199f(0x65)]:return{'title':_0x45d50a[_0x199f(0x66)],'instructions':_0x45d50a[_0x199f(0x67)],'placeholder':_0x45d50a[_0x199f(0x68)]};default:return{'title':_0x199f(0x69)+_0x200174,'instructions':_0x45d50a['DfPJG'],'placeholder':_0x45d50a[_0x199f(0x6a)]};}},{title:_0x20df1f,instructions:_0x29610e,placeholder:_0x20d82d}=_0x409fb4(),_0x5bcbdc=_0x10007d=>{const _0x43f6b4={'kPfaP':_0x199f(0x6b),'oPGlB':_0x45d50a[_0x199f(0x6c)],'HOfjJ':_0x45d50a[_0x199f(0x6d)],'EiDpk':function(_0x5be56f,_0x50ca4e){return _0x5be56f(_0x50ca4e);},'CGNRq':function(_0x2b0fa0,_0x4d7249){return _0x2b0fa0>_0x4d7249;},'LjDaY':function(_0x156abc,_0x8a8cee){return _0x156abc+_0x8a8cee;},'vgNpG':function(_0x5ac5d9,_0x28b60a){return _0x45d50a[_0x199f(0x45)](_0x5ac5d9,_0x28b60a);},'XIOcF':_0x45d50a[_0x199f(0x6e)],'Uxggt':_0x45d50a['ZcTZS'],'UzBBa':_0x199f(0x6f)};try{const _0x276edc=JSON[_0x199f(0x70)](_0x10007d),_0x29a288=[];if(Array[_0x199f(0x71)](_0x276edc))_0x45d50a[_0x199f(0x72)](_0x199f(0x73),_0x45d50a[_0x199f(0x74)])?_0x14264e['push']({'conversationId':_0x2b3ae4['id']||'conv_'+_0x364448[_0x199f(0x75)](),'messages':_0x54d52c,'context':{'title':_0x2f0d7d[_0x199f(0x76)]||_0x45d50a['NacWe'],'create_time':_0x4fd2d0['create_time'],'update_time':_0x1cbc95['update_time']}}):_0x276edc['forEach']((_0x46b83a,_0xe4b613)=>{if(_0x43f6b4[_0x199f(0x77)]!==_0x43f6b4['HOfjJ']){const _0x594987=_0x43f6b4['EiDpk'](_0xf7e0cd,_0x46b83a);_0x43f6b4[_0x199f(0x78)](_0x594987[_0x199f(0x79)],0x0)&&_0x29a288[_0x199f(0x7a)]({'conversationId':_0x46b83a['id']||_0x46b83a[_0x199f(0x7b)]||_0x199f(0x7c)+_0xe4b613+'_'+Date[_0x199f(0x75)](),'messages':_0x594987,'context':{'title':_0x46b83a[_0x199f(0x76)]||_0x46b83a[_0x199f(0x7d)]||_0x199f(0x7e)+_0x43f6b4[_0x199f(0x7f)](_0xe4b613,0x1),'create_time':_0x46b83a[_0x199f(0x56)]||_0x46b83a[_0x199f(0x80)],'update_time':_0x46b83a[_0x199f(0x81)]||_0x46b83a[_0x199f(0x82)]}});}else(_0x5df475[_0x199f(0x83)]||_0x5afe0a[_0x199f(0x4f)])&&_0x239be8[_0x199f(0x7a)]({'id':_0x4b371e[_0x199f(0x84)]||_0x199f(0x53)+_0x1a56b2,'role':_0x1ee8f0[_0x199f(0x85)]==='human'?'user':_0x43f6b4[_0x199f(0x86)],'content':_0x336959[_0x199f(0x83)]||_0x18fb42[_0x199f(0x4f)],'timestamp':_0x52a920[_0x199f(0x80)]});});else{if(_0x276edc['conversations']&&Array['isArray'](_0x276edc[_0x199f(0x87)])){if(_0x45d50a[_0x199f(0x88)](_0x199f(0x89),_0x45d50a[_0x199f(0x8a)]))_0x276edc[_0x199f(0x87)][_0x199f(0x8b)]((_0x1e7060,_0xcaab3f)=>{const _0x3cff04={'wWZWC':function(_0x3e72d7,_0x41b1e9){return _0x45d50a[_0x199f(0x8c)](_0x3e72d7,_0x41b1e9);},'bgZmF':function(_0x5ea853){return _0x45d50a[_0x199f(0x8d)](_0x5ea853);},'NvvEV':function(_0x52e8ac,_0x6ef875){return _0x45d50a[_0x199f(0x43)](_0x52e8ac,_0x6ef875);}};if(_0x45d50a[_0x199f(0x8e)]!==_0x45d50a[_0x199f(0x8f)]){const _0x11972e=_0xf7e0cd(_0x1e7060);_0x11972e[_0x199f(0x79)]>0x0&&_0x29a288[_0x199f(0x7a)]({'conversationId':_0x1e7060['id']||_0x199f(0x7c)+_0xcaab3f+'_'+Date[_0x199f(0x75)](),'messages':_0x11972e,'context':{'title':_0x1e7060[_0x199f(0x76)]||'Conversation\x20'+_0x45d50a[_0x199f(0x90)](_0xcaab3f,0x1),'create_time':_0x1e7060['create_time'],'update_time':_0x1e7060['update_time']}});}else{const _0x33e24e=_0x199f(0x91)[_0x199f(0x92)]('|');let _0x48ad4a=0x0;while(!![]){switch(_0x33e24e[_0x48ad4a++]){case'0':_0x3cff04[_0x199f(0x93)](_0x2df652,'');continue;case'1':_0x3cff04['wWZWC'](_0x3c902d,null);continue;case'2':_0x3cff04[_0x199f(0x94)](_0x51347f);continue;case'3':_0x3cff04[_0x199f(0x95)](_0x83d73e,null);continue;case'4':_0x3cff04[_0x199f(0x93)](_0x3fbafe,null);continue;case'5':_0x26a5cf(_0x199f(0x33));continue;}break;}}});else throw new _0x4c9f04(_0x45d50a[_0x199f(0x96)]);}else{if(_0x276edc[_0x199f(0x97)]||_0x276edc[_0x199f(0x98)]){if(_0x45d50a[_0x199f(0x99)](_0x45d50a['Yiukr'],_0x45d50a['RFmPv'])){const _0x44d911=_0xf7e0cd(_0x276edc);_0x45d50a[_0x199f(0x9a)](_0x44d911[_0x199f(0x79)],0x0)&&(_0x45d50a['EpRno'](_0x45d50a[_0x199f(0x9b)],_0x45d50a[_0x199f(0x9c)])?_0x29a288[_0x199f(0x7a)]({'conversationId':_0x276edc['id']||_0x199f(0x7c)+Date[_0x199f(0x75)](),'messages':_0x44d911,'context':{'title':_0x276edc['title']||_0x45d50a[_0x199f(0x9d)],'create_time':_0x276edc['create_time'],'update_time':_0x276edc[_0x199f(0x81)]}}):_0x129896?(_0x43f6b4['vgNpG'](_0x34acc6,_0x199f(0x34)),_0x4bcdd9(_0x3fdfe6[_0x199f(0x9e)])):(_0x43f6b4['vgNpG'](_0x153cef,_0x43f6b4[_0x199f(0x9f)]),_0x52030a(_0x432607[_0x199f(0xa0)])));}else throw new _0x75cd9f(_0x43f6b4[_0x199f(0xa1)]);}else{const _0x4588c3=_0x45d50a[_0x199f(0x45)](_0xf7e0cd,_0x276edc);_0x45d50a[_0x199f(0xa2)](_0x4588c3[_0x199f(0x79)],0x0)&&(_0x45d50a[_0x199f(0xa3)]!==_0x45d50a[_0x199f(0xa3)]?(_0x30b27d[_0x199f(0xa4)](_0x43f6b4[_0x199f(0xa5)],_0x266036),_0x43f6b4[_0x199f(0xa6)](_0x14e4ad,_0x41ef49[_0x199f(0x4e)]||_0x199f(0x31)),_0x43f6b4[_0x199f(0xa6)](_0x5d2c30,_0x4174df[_0x199f(0xa0)])):_0x29a288['push']({'conversationId':_0x199f(0x7c)+Date['now'](),'messages':_0x4588c3,'context':{'title':_0x276edc[_0x199f(0x76)]||_0x199f(0xe)}}));}}}return _0x29a288;}catch(_0x33e3a7){if(_0x45d50a[_0x199f(0x46)](_0x45d50a[_0x199f(0xa7)],_0x45d50a[_0x199f(0xa7)]))_0x167d11=_0x43f6b4[_0x199f(0xa6)](_0x25b26e,0x0);else{console[_0x199f(0xa4)](_0x45d50a[_0x199f(0xa8)],_0x33e3a7);throw new Error(_0x199f(0x1d));}}},_0xf7e0cd=_0x42a45f=>{const _0x544d92={'dgtOr':function(_0x2b1d0b,_0x48137f){return _0x45d50a[_0x199f(0x88)](_0x2b1d0b,_0x48137f);},'aompM':_0x199f(0xa9),'IopUn':function(_0x166671,_0xfb98fc){return _0x45d50a['FSiwR'](_0x166671,_0xfb98fc);},'jvpbd':_0x45d50a[_0x199f(0xaa)],'taQRB':function(_0x55af1d,_0x23063f){return _0x55af1d!==_0x23063f;},'PSGcY':_0x199f(0x24)},_0x49cfa4=[];return _0x42a45f['mapping']&&Object['values'](_0x42a45f[_0x199f(0x97)])[_0x199f(0x8b)]((_0x5762c3,_0x168fe9)=>{var _0x110e38;if(_0x45d50a[_0x199f(0xab)](_0x5762c3,null)&&_0x45d50a[_0x199f(0xac)](_0x5762c3,void 0x0)&&(_0x110e38=_0x5762c3['message'])!==null&&_0x110e38!==void 0x0&&(_0x110e38=_0x110e38[_0x199f(0x4f)])!==null&&_0x45d50a[_0x199f(0xad)](_0x110e38,void 0x0)&&_0x110e38['parts']){if(_0x199f(0xae)!==_0x199f(0xaf)){const _0xa62372=_0x5762c3[_0x199f(0x4e)][_0x199f(0x4f)]['parts'][_0x199f(0x51)]('\x0a');if(_0xa62372[_0x199f(0x52)]()){var _0x17675e;_0x49cfa4[_0x199f(0x7a)]({'id':_0x5762c3[_0x199f(0x4e)]['id']||_0x199f(0x53)+_0x168fe9,'role':(_0x45d50a[_0x199f(0x47)](_0x17675e=_0x5762c3[_0x199f(0x4e)][_0x199f(0xb0)],null)||_0x45d50a['hwlJv'](_0x17675e,void 0x0)?void 0x0:_0x17675e[_0x199f(0xb1)])||_0x45d50a[_0x199f(0x48)],'content':_0xa62372,'timestamp':_0x5762c3['message'][_0x199f(0x56)]?new Date(_0x45d50a[_0x199f(0x49)](_0x5762c3['message'][_0x199f(0x56)],0x3e8))[_0x199f(0x58)]():undefined});}}else _0x46d6e1[_0x199f(0x0)]('react-native-document-picker not available - file upload disabled');}}),_0x42a45f['messages']&&Array['isArray'](_0x42a45f[_0x199f(0x98)])&&_0x42a45f[_0x199f(0x98)][_0x199f(0x8b)]((_0x1f99db,_0x1ba901)=>{if(_0x544d92[_0x199f(0xb2)](_0x544d92[_0x199f(0xb3)],_0x199f(0xa9)))_0x56f06a[_0x199f(0xa4)](_0x199f(0xb4),_0x26d832);else{var _0x5ac154;const _0x1eef0b=_0x1f99db[_0x199f(0x4f)]||_0x1f99db['text']||_0x1f99db[_0x199f(0x4e)]||'';if(_0x544d92[_0x199f(0xb5)](typeof _0x1eef0b,_0x544d92[_0x199f(0xb6)])&&_0x1eef0b[_0x199f(0x52)]())_0x49cfa4[_0x199f(0x7a)]({'id':_0x1f99db['id']||_0x199f(0x53)+_0x1ba901,'role':_0x1f99db[_0x199f(0xb1)]||_0x1f99db['author']||'user','content':_0x1eef0b,'timestamp':_0x1f99db['timestamp']||_0x1f99db[_0x199f(0x80)]});else _0x544d92['dgtOr'](_0x5ac154=_0x1f99db[_0x199f(0x4f)],null)&&_0x544d92['taQRB'](_0x5ac154,void 0x0)&&_0x5ac154[_0x199f(0x50)]&&_0x49cfa4['push']({'id':_0x1f99db['id']||'msg_'+_0x1ba901,'role':_0x1f99db[_0x199f(0xb1)]||_0x544d92[_0x199f(0xb7)],'content':_0x1f99db[_0x199f(0x4f)][_0x199f(0x50)][_0x199f(0x51)]('\x0a'),'timestamp':_0x1f99db[_0x199f(0xb8)]});}}),_0x42a45f[_0x199f(0xb9)]&&Array[_0x199f(0x71)](_0x42a45f[_0x199f(0xb9)])&&_0x42a45f[_0x199f(0xb9)]['forEach']((_0x8a01c2,_0x1de84f)=>{(_0x8a01c2[_0x199f(0x83)]||_0x8a01c2['content'])&&_0x49cfa4[_0x199f(0x7a)]({'id':_0x8a01c2[_0x199f(0x84)]||_0x199f(0x53)+_0x1de84f,'role':_0x8a01c2[_0x199f(0x85)]===_0x45d50a[_0x199f(0xba)]?_0x199f(0x24):_0x45d50a['mgPOB'],'content':_0x8a01c2[_0x199f(0x83)]||_0x8a01c2[_0x199f(0x4f)],'timestamp':_0x8a01c2[_0x199f(0x80)]});}),_0x49cfa4;},_0xac3e2a=async()=>{const _0xd845dc={'wrlfV':_0x45d50a[_0x199f(0xbb)],'EzvMP':_0x45d50a[_0x199f(0x6e)],'SwFfp':function(_0x1b8173,_0x110f92){return _0x45d50a[_0x199f(0x45)](_0x1b8173,_0x110f92);}};if(_0x45d50a[_0x199f(0xbc)](_0x199f(0xbd),'LtcrC')){if(!FILE_UPLOAD_AVAILABLE){_0x45d50a['txBFP'](_0x5a953f,'File upload requires react-native-document-picker and react-native-fs. Please paste data instead.');return;}try{_0x45d50a[_0x199f(0x45)](_0x5a953f,null);const {pick:_0x28e729,types:_0x54a5eb}=DocumentPicker,_0x1a76f8=await _0x45d50a[_0x199f(0x8c)](_0x28e729,{'type':[_0x54a5eb[_0x199f(0xbe)],_0x54a5eb[_0x199f(0xbf)],_0x54a5eb[_0x199f(0xc0)]]});if(_0x1a76f8&&_0x1a76f8[0x0]){const _0x1e64d5=_0x1a76f8[0x0];_0x4cdba1(_0x1e64d5[_0x199f(0x7d)]||_0x45d50a['mvvbr']);let _0x3d16d0;if(_0x1e64d5[_0x199f(0xc1)][_0x199f(0xc2)](_0x45d50a['lWoOu'])){if(_0x45d50a[_0x199f(0xc3)]===_0x45d50a[_0x199f(0xc4)]){_0x5b9a48[_0x199f(0xa4)](_0x199f(0x1a),_0x54f784);throw new _0x596285(_0xd845dc[_0x199f(0xc5)]);}else _0x3d16d0=await RNFS['readFile'](_0x1e64d5['uri'],_0x45d50a[_0x199f(0xc6)]);}else _0x3d16d0=await RNFS[_0x199f(0xc7)](_0x1e64d5[_0x199f(0xc1)],_0x199f(0x21));_0x45d50a[_0x199f(0xc8)](_0x320332,_0x3d16d0),_0x45d50a[_0x199f(0xc8)](_0x3671e3,_0x3d16d0),_0x45d50a[_0x199f(0x45)](triggerHaptic,HapticType[_0x199f(0xc9)]);}}catch(_0x3442c7){_0x45d50a[_0x199f(0xca)](_0x3442c7['code'],_0x199f(0xcb))&&(console['error'](_0x45d50a['sjRKs'],_0x3442c7),_0x45d50a[_0x199f(0xcc)](_0x5a953f,_0x45d50a[_0x199f(0xcd)]),_0x45d50a[_0x199f(0x43)](triggerHaptic,HapticType[_0x199f(0xa0)]));}}else _0x1b0113(_0xd845dc[_0x199f(0xce)]),_0xd845dc[_0x199f(0xcf)](_0x32f700,_0x494615[_0x199f(0xa0)]);},_0x2eddad=async()=>{const _0xd960b8={'UgLto':_0x45d50a['ZVhCv'],'cwIan':_0x45d50a[_0x199f(0xd0)],'RQPRY':'assistant','HDZEF':function(_0x3f34a7,_0x228931){return _0x45d50a['AtQbM'](_0x3f34a7,_0x228931);},'Uqxpp':function(_0x1292e2,_0x3bfa5d){return _0x45d50a['NbqYE'](_0x1292e2,_0x3bfa5d);},'exxaw':function(_0x3c382a,_0x55b7ea){return _0x45d50a[_0x199f(0x90)](_0x3c382a,_0x55b7ea);},'fSrKG':function(_0x131c97,_0x158ad6){return _0x131c97+_0x158ad6;},'hmuLR':_0x45d50a['DOhRD']},_0x4b0c99=_0x45d50a[_0x199f(0xd1)](_0x99cbc3,_0x199f(0x34))&&_0x36ec9e?_0x36ec9e:_0x6acced;if(!_0x4b0c99[_0x199f(0x52)]()){if(_0x45d50a[_0x199f(0xd2)](_0x45d50a['SIKSh'],_0x45d50a['SIKSh'])){_0x5a953f(_0x45d50a[_0x199f(0xd3)]),triggerHaptic(HapticType['ERROR']);return;}else{const _0xf2c3f7={'sguum':function(_0x1b5fe3,_0x22e9c8){return _0x45d50a[_0x199f(0xd4)](_0x1b5fe3,_0x22e9c8);},'nqwQI':_0x45d50a['gTnjq'],'IIuvo':_0x45d50a[_0x199f(0xd0)],'HKELp':function(_0x3af815,_0x3de9c2){return _0x3af815!==_0x3de9c2;}};_0x50f388[_0x199f(0x98)][_0x199f(0x8b)]((_0x17b908,_0x20b73a)=>{var _0x26e5a2;const _0x2285ac=_0x17b908[_0x199f(0x4f)]||_0x17b908[_0x199f(0x83)]||_0x17b908['message']||'';if(_0xf2c3f7[_0x199f(0xd5)](typeof _0x2285ac,_0xf2c3f7[_0x199f(0xd6)])&&_0x2285ac[_0x199f(0x52)]())_0x5abfce[_0x199f(0x7a)]({'id':_0x17b908['id']||_0x199f(0x53)+_0x20b73a,'role':_0x17b908['role']||_0x17b908['author']||_0xf2c3f7['IIuvo'],'content':_0x2285ac,'timestamp':_0x17b908['timestamp']||_0x17b908['created_at']});else(_0x26e5a2=_0x17b908[_0x199f(0x4f)])!==null&&_0xf2c3f7[_0x199f(0xd7)](_0x26e5a2,void 0x0)&&_0x26e5a2[_0x199f(0x50)]&&_0x1d7969['push']({'id':_0x17b908['id']||_0x199f(0x53)+_0x20b73a,'role':_0x17b908[_0x199f(0xb1)]||_0xf2c3f7[_0x199f(0xd8)],'content':_0x17b908[_0x199f(0x4f)][_0x199f(0x50)]['join']('\x0a'),'timestamp':_0x17b908[_0x199f(0xb8)]});});}}_0x45d50a[_0x199f(0xcc)](_0x5dc1b2,!![]),_0x45d50a[_0x199f(0xd9)](_0x5a953f,null);try{const _0xb6c941=_0x5bcbdc(_0x4b0c99);if(_0xb6c941['length']===0x0)throw new Error(_0x45d50a[_0x199f(0xda)]);const _0x2e68f8=await AsyncStorage[_0x199f(0xdb)](_0x199f(0xdc))||await AsyncStorage[_0x199f(0xdb)](_0x45d50a[_0x199f(0xdd)])||await AsyncStorage[_0x199f(0xdb)](_0x199f(0xde));if(!_0x2e68f8)throw new Error(_0x199f(0x14));const _0x29c314=_0x199f(0xdf)+_0x4149a3;let _0x315175=0x0;for(const _0x1df5f2 of _0xb6c941){if(_0x45d50a[_0x199f(0xe0)](_0x45d50a[_0x199f(0xe1)],_0x45d50a[_0x199f(0xe1)]))_0xf5d778[_0x199f(0x7a)]({'id':_0x1703af[_0x199f(0x84)]||_0x199f(0x53)+_0x12f9d5,'role':_0x219d3b['sender']===_0xd960b8[_0x199f(0xe2)]?_0xd960b8[_0x199f(0xe3)]:_0xd960b8[_0x199f(0xe4)],'content':_0x12817d[_0x199f(0x83)]||_0x1800db[_0x199f(0x4f)],'timestamp':_0x2f2c3d[_0x199f(0x80)]});else try{if(_0x45d50a[_0x199f(0xe5)](_0x45d50a[_0x199f(0xe6)],'zFefY'))_0xd960b8[_0x199f(0xe7)](_0x5e11fb,_0x199f(0x34)),_0x3a7934(_0x264705['BUTTON_PRESS']);else{const _0x2b82a0=await _0x45d50a['jiqvk'](fetch,API_CONFIG[_0x199f(0xe8)]+_0x199f(0xe9),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x199f(0xea)+_0x2e68f8},'body':JSON[_0x199f(0xeb)]({'platform':_0x29c314,'conversationData':{'conversationId':_0x1df5f2[_0x199f(0xec)],'messages':_0x1df5f2['messages'],'context':_0x1df5f2[_0x199f(0xed)],'mobileMetadata':{'platform':Platform['OS'],'appVersion':_0x45d50a['CHKjD'],'osVersion':Platform[_0x199f(0xee)],'isOfflineSync':![]}},'memoryType':_0x45d50a[_0x199f(0xef)],'metadata':{'source':_0x45d50a[_0x199f(0xf0)],'importedAt':new Date()[_0x199f(0x58)](),'originalPlatform':_0x4149a3}})});if(_0x2b82a0['ok']){if(_0x45d50a['rgAEt'](_0x45d50a[_0x199f(0xf1)],_0x45d50a[_0x199f(0xf2)]))_0x315175++;else{const _0x3c1167={'agTqo':function(_0x3c1b48,_0x2abc5d){return _0x3c1b48(_0x2abc5d);},'pAqZg':function(_0x71d8ff,_0x5050b6){return _0xd960b8[_0x199f(0xf3)](_0x71d8ff,_0x5050b6);},'gPrfm':function(_0x1c02cb,_0x6ace4d){return _0xd960b8[_0x199f(0xf4)](_0x1c02cb,_0x6ace4d);}};_0x5ac72d[_0x199f(0x8b)]((_0xec8320,_0x454898)=>{const _0x447e89=_0x3c1167['agTqo'](_0x330cdd,_0xec8320);_0x3c1167['pAqZg'](_0x447e89['length'],0x0)&&_0x366bf0[_0x199f(0x7a)]({'conversationId':_0xec8320['id']||_0xec8320['conversation_id']||_0x199f(0x7c)+_0x454898+'_'+_0x581107['now'](),'messages':_0x447e89,'context':{'title':_0xec8320['title']||_0xec8320[_0x199f(0x7d)]||'Conversation\x20'+_0x3c1167['gPrfm'](_0x454898,0x1),'create_time':_0xec8320[_0x199f(0x56)]||_0xec8320['created_at'],'update_time':_0xec8320['update_time']||_0xec8320[_0x199f(0x82)]}});});}}else{const _0x4ea7e2=await _0x2b82a0['text']();console['error'](_0x199f(0xf5)+_0x1df5f2['conversationId']+':',_0x4ea7e2);}}}catch(_0x245ca4){_0x45d50a['lytFS']===_0x45d50a['lytFS']?console[_0x199f(0xa4)](_0x199f(0xb4),_0x245ca4):_0x50d92e[_0x199f(0x7a)]({'conversationId':_0x1bc6ad['id']||_0x5c9f07['conversation_id']||_0x199f(0x7c)+_0x1fd018+'_'+_0x72d2c3[_0x199f(0x75)](),'messages':_0x85c744,'context':{'title':_0x54a845[_0x199f(0x76)]||_0x9ac248[_0x199f(0x7d)]||_0x199f(0x7e)+_0xd960b8[_0x199f(0xf6)](_0x41c0c3,0x1),'create_time':_0x4d1426[_0x199f(0x56)]||_0x579659[_0x199f(0x80)],'update_time':_0x148a34[_0x199f(0x81)]||_0x539f6b[_0x199f(0x82)]}});}}if(_0x45d50a[_0x199f(0xa2)](_0x315175,0x0))await AsyncStorage[_0x199f(0xf7)]('@onairos:llm_connected:'+_0x4149a3,JSON[_0x199f(0xeb)]({'connected':!![],'platform':_0x4149a3,'conversationsCount':_0x315175,'lastSyncAt':new Date()[_0x199f(0x58)]()})),_0x45d50a[_0x199f(0xf8)](triggerHaptic,HapticType['SUCCESS']),Alert[_0x199f(0xf9)](_0x45d50a['nxNSl'],_0x199f(0xfa)+_0x315175+_0x199f(0xfb)+(_0x45d50a[_0x199f(0xfc)](_0x315175,0x1)?'s':'')+_0x199f(0xfd)+_0x200174+'.',[{'text':'OK','onPress':()=>_0x24b07b(_0x4149a3)}]);else throw new Error(_0x45d50a['NyDJY']);}catch(_0x5c610d){if(_0x45d50a[_0x199f(0xfe)]==='fYbYW')throw new _0x17611f(_0xd960b8[_0x199f(0xff)]);else console[_0x199f(0xa4)](_0x45d50a[_0x199f(0x100)],_0x5c610d),_0x45d50a[_0x199f(0xcc)](_0x5a953f,_0x5c610d[_0x199f(0x4e)]||_0x45d50a[_0x199f(0x101)]),_0x45d50a[_0x199f(0x8c)](triggerHaptic,HapticType[_0x199f(0xa0)]);}finally{_0x45d50a[_0x199f(0x45)](_0x5dc1b2,![]);}},_0x54e396=()=>{if(_0x45d50a[_0x199f(0xab)](_0x199f(0x102),_0x45d50a[_0x199f(0x103)])){const _0x45f0df=_0x45d50a[_0x199f(0x104)][_0x199f(0x92)]('|');let _0x5a2789=0x0;while(!![]){switch(_0x45f0df[_0x5a2789++]){case'0':_0x45d50a['bjSJl'](_0x1af378,_0x45d50a[_0x199f(0x105)]);continue;case'1':_0x45d50a[_0x199f(0x43)](_0x320332,null);continue;case'2':_0x45d50a[_0x199f(0x106)](_0x5a953f,null);continue;case'3':_0x45d50a[_0x199f(0x8d)](_0x1b721b);continue;case'4':_0x3671e3('');continue;case'5':_0x45d50a[_0x199f(0x107)](_0x4cdba1,null);continue;}break;}}else _0x487a5b[_0x199f(0x0)]('react-native-fs not available - file upload disabled');};return React[_0x199f(0x108)](Modal,{'visible':_0x12da86,'animationType':_0x45d50a['ZknrG'],'presentationStyle':_0x45d50a[_0x199f(0x109)],'onRequestClose':_0x54e396},React[_0x199f(0x108)](KeyboardAvoidingView,{'style':styles[_0x199f(0x10a)],'behavior':_0x45d50a[_0x199f(0x10b)](Platform['OS'],'ios')?_0x45d50a[_0x199f(0x10c)]:_0x45d50a[_0x199f(0x10d)]},React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x10e)]},React['createElement'](TouchableOpacity,{'style':styles[_0x199f(0x10f)],'onPress':_0x54e396},React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x110)]},_0x45d50a[_0x199f(0x111)])),React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x112)]},_0x20df1f),React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x10f)]})),React[_0x199f(0x108)](ScrollView,{'style':styles[_0x199f(0x4f)],'contentContainerStyle':styles[_0x199f(0x113)],'keyboardShouldPersistTaps':_0x45d50a[_0x199f(0x114)]},React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x115)]},React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x116)]},_0x29610e)),React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x117)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x199f(0x118)],_0x45d50a[_0x199f(0x119)](_0x99cbc3,_0x45d50a[_0x199f(0x105)])&&styles[_0x199f(0x11a)]],'onPress':()=>{_0x1af378('paste'),triggerHaptic(HapticType[_0x199f(0x9e)]);}},React[_0x199f(0x108)](Text,{'style':[styles[_0x199f(0x11b)],_0x99cbc3===_0x45d50a['rORbJ']&&styles[_0x199f(0x11c)]]},_0x199f(0x11d))),React[_0x199f(0x108)](TouchableOpacity,{'style':[styles[_0x199f(0x118)],_0x45d50a[_0x199f(0x11e)](_0x99cbc3,_0x199f(0x34))&&styles[_0x199f(0x11a)],!FILE_UPLOAD_AVAILABLE&&styles[_0x199f(0x11f)]],'onPress':()=>{FILE_UPLOAD_AVAILABLE?(_0x45d50a['eRZaT'](_0x1af378,_0x45d50a['wvhUY']),_0x45d50a[_0x199f(0x120)](triggerHaptic,HapticType[_0x199f(0x9e)])):(_0x45d50a[_0x199f(0xc8)](_0x5a953f,_0x199f(0x121)),_0x45d50a[_0x199f(0xd9)](triggerHaptic,HapticType[_0x199f(0xa0)]));}},React[_0x199f(0x108)](Text,{'style':[styles[_0x199f(0x11b)],_0x99cbc3===_0x199f(0x34)&&styles[_0x199f(0x11c)],!FILE_UPLOAD_AVAILABLE&&styles[_0x199f(0x122)]]},_0x45d50a['zJLYf'],!FILE_UPLOAD_AVAILABLE&&_0x45d50a['EPmnQ']))),_0x45d50a['LdQvZ'](_0x99cbc3,_0x199f(0x33))?React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x123)]},React[_0x199f(0x108)](TextInput,{'style':styles[_0x199f(0x124)],'multiline':!![],'placeholder':_0x20d82d,'placeholderTextColor':COLORS['grey400'],'value':_0x6acced,'onChangeText':_0x3671e3,'textAlignVertical':_0x45d50a[_0x199f(0x125)],'autoCapitalize':_0x45d50a[_0x199f(0x126)],'autoCorrect':![]})):React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x127)]},React['createElement'](TouchableOpacity,{'style':styles[_0x199f(0x128)],'onPress':_0xac3e2a},React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x129)]},'📁'),React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x12a)]},_0x45d50a[_0x199f(0x12b)](_0x733df0,_0x45d50a['uxlRq']))),_0x733df0&&React['createElement'](View,{'style':styles[_0x199f(0x12c)]},React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x12d)]},'✓\x20',_0x733df0))),_0x192f9c&&React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x12e)]},React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x12f)]},_0x192f9c)),_0x45d50a['kIUXN'](_0x6acced[_0x199f(0x79)],0x0)&&React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x130)]},React[_0x199f(0x108)](Text,{'style':styles['previewTitle']},_0x45d50a[_0x199f(0x131)]),React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x132)],'numberOfLines':0x5},_0x6acced['substring'](0x0,0x1f4),_0x45d50a[_0x199f(0x133)](_0x6acced[_0x199f(0x79)],0x1f4)?_0x45d50a[_0x199f(0x134)]:''),React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x135)]},_0x6acced['length'][_0x199f(0x136)](),_0x45d50a['EHIOw']))),React[_0x199f(0x108)](View,{'style':styles[_0x199f(0x137)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x199f(0x138)],(!_0x6acced[_0x199f(0x52)]()||_0x4ba718)&&styles['submitButtonDisabled']],'onPress':_0x2eddad,'disabled':!_0x6acced['trim']()||_0x4ba718},_0x4ba718?React[_0x199f(0x108)](ActivityIndicator,{'color':_0x45d50a[_0x199f(0x139)],'size':_0x45d50a[_0x199f(0x13a)]}):React[_0x199f(0x108)](Text,{'style':styles[_0x199f(0x13b)]},_0x45d50a[_0x199f(0x13c)])))));},styles=StyleSheet[_0x199f(0x13d)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x199f(0x13e)]},'header':{'flexDirection':_0x199f(0x13f),'alignItems':'center','justifyContent':_0x199f(0x140),'paddingHorizontal':0x10,'paddingTop':Platform['OS']===_0x199f(0x141)?0xc:0x10,'paddingBottom':0xc,'borderBottomWidth':0x1,'borderBottomColor':_0x199f(0x142)},'headerTitle':{'fontSize':0x11,'fontWeight':_0x199f(0x143),'color':COLORS['grey800'],'fontFamily':'IBM\x20Plex\x20Sans'},'closeButton':{'width':0x3c},'closeButtonText':{'fontSize':0x10,'color':_0x199f(0x144),'fontFamily':'Inter'},'content':{'flex':0x1},'contentContainer':{'padding':0x14,'paddingBottom':0x28},'instructionsContainer':{'backgroundColor':'#F0F9FF','borderRadius':0xc,'padding':0x10,'marginBottom':0x14},'instructionsText':{'fontSize':0xe,'lineHeight':0x14,'color':_0x199f(0x145),'fontFamily':_0x199f(0x146)},'tabContainer':{'flexDirection':_0x199f(0x13f),'backgroundColor':_0x199f(0x147),'borderRadius':0xa,'padding':0x4,'marginBottom':0x14},'tab':{'flex':0x1,'paddingVertical':0xa,'borderRadius':0x8,'alignItems':_0x199f(0x148)},'tabActive':{'backgroundColor':'#FFFFFF','shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x1},'shadowOpacity':0.1,'shadowRadius':0x2,'elevation':0x2},'tabText':{'fontSize':0xe,'fontWeight':'500','color':COLORS[_0x199f(0x149)],'fontFamily':_0x199f(0x146)},'tabTextActive':{'color':COLORS[_0x199f(0x14a)]},'tabDisabled':{'opacity':0.5},'tabTextDisabled':{'color':COLORS['grey400']},'inputContainer':{'marginBottom':0x14},'textInput':{'backgroundColor':_0x199f(0x42),'borderWidth':0x1,'borderColor':COLORS[_0x199f(0x14b)],'borderRadius':0xc,'padding':0x10,'minHeight':0xc8,'fontSize':0xe,'fontFamily':Platform['OS']===_0x199f(0x141)?'Menlo':_0x199f(0x14c),'color':COLORS[_0x199f(0x14a)]},'fileInputContainer':{'marginBottom':0x14},'filePickButton':{'backgroundColor':_0x199f(0x42),'borderWidth':0x2,'borderColor':COLORS[_0x199f(0x14b)],'borderStyle':'dashed','borderRadius':0xc,'padding':0x28,'alignItems':_0x199f(0x148),'justifyContent':_0x199f(0x148)},'filePickIcon':{'fontSize':0x28,'marginBottom':0xc},'filePickText':{'fontSize':0xf,'color':COLORS['grey600'],'fontFamily':'Inter'},'fileSelectedContainer':{'marginTop':0xc,'backgroundColor':'#F0FDF4','borderRadius':0x8,'padding':0xc},'fileSelectedText':{'fontSize':0xe,'color':_0x199f(0x14d),'fontFamily':_0x199f(0x146),'fontWeight':'500'},'errorContainer':{'backgroundColor':'#FEF2F2','borderRadius':0x8,'padding':0xc,'marginBottom':0x10},'errorText':{'fontSize':0xe,'color':_0x199f(0x14e),'fontFamily':'Inter'},'previewContainer':{'backgroundColor':_0x199f(0x147),'borderRadius':0xc,'padding':0x10},'previewTitle':{'fontSize':0xe,'fontWeight':_0x199f(0x143),'color':COLORS[_0x199f(0x14a)],'marginBottom':0x8,'fontFamily':_0x199f(0x146)},'previewText':{'fontSize':0xc,'color':COLORS[_0x199f(0x14f)],'fontFamily':Platform['OS']===_0x199f(0x141)?'Menlo':_0x199f(0x14c),'lineHeight':0x12},'previewInfo':{'fontSize':0xc,'color':COLORS[_0x199f(0x149)],'marginTop':0x8,'fontFamily':'Inter'},'footer':{'padding':0x14,'paddingBottom':Platform['OS']===_0x199f(0x141)?0x22:0x14,'borderTopWidth':0x1,'borderTopColor':_0x199f(0x142),'backgroundColor':COLORS[_0x199f(0x13e)]},'submitButton':{'backgroundColor':'#10B981','borderRadius':0xc,'paddingVertical':0x10,'alignItems':_0x199f(0x148),'justifyContent':_0x199f(0x148)},'submitButtonDisabled':{'backgroundColor':COLORS[_0x199f(0x14b)]},'submitButtonText':{'fontSize':0x10,'fontWeight':'600','color':_0x199f(0x42),'fontFamily':_0x199f(0x146)}});export default LLMDataInputModal;
|
|
8
|
+
import React,{useState}from'react';import{View,Text,StyleSheet,Modal,TouchableOpacity,TextInput,ScrollView,ActivityIndicator,Alert,Platform,KeyboardAvoidingView}from'react-native';import{COLORS}from'../theme';import{triggerHaptic,HapticType}from'../utils/haptics';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';let DocumentPicker=null,RNFS=null;function _0x1363(){const _0x177222=['log','chatgpt','Connect\x20ChatGPT','Export\x20your\x20ChatGPT\x20conversations\x20from\x20Settings\x20→\x20Data\x20Controls\x20→\x20Export\x20data.\x20Then\x20upload\x20the\x20JSON\x20file\x20or\x20paste\x20your\x20conversation\x20data.','claude','Connect\x20Claude','gemini','Paste\x20your\x20Gemini\x20conversation\x20JSON\x20here...','Connect\x20Grok','Export\x20your\x20Grok\x20conversations\x20from\x20X/Twitter\x20and\x20paste\x20the\x20data\x20below.','Paste\x20your\x20conversation\x20data\x20below\x20or\x20upload\x20a\x20JSON\x20file.','Failed\x20to\x20read\x20file.\x20Please\x20try\x20again\x20or\x20paste\x20data\x20manually.','File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.','Iotxp','WGsdR','nbDiQ','TYdui','laAMt','npwdz','Imported\x20Conversation','Qsdkv','unknown','assistant','liUvK','arSHm','YBOTz','utf8','DOCUMENT_PICKER_CANCELED','No\x20valid\x20conversations\x20found\x20in\x20the\x20data.\x20Please\x20check\x20the\x20format.','file','mUDaI','hoaDE','FLjCQ','onairos_jwt_token','Authentication\x20required.\x20Please\x20sign\x20in\x20first.','YRtxN','1.0.0','conversation','SfUsW','Success!\x20🎉','Failed\x20to\x20import\x20any\x20conversations.\x20Please\x20check\x20your\x20data\x20format.','Submit\x20error:','Failed\x20to\x20import\x20data.\x20Please\x20try\x20again.','GvCqI','5|3|4|1|2|0','paste','tljPH','ZnLuw','VwJlr','VbkIx','pageSheet','ios','height','handled','Paste\x20Data','Upload\x20File\x20','(N/A)','top','none','Tap\x20to\x20select\x20a\x20file','...','\x20characters','small','HMTjD','lJtKa','oVGOT','BNNoO','Paste\x20your\x20ChatGPT\x20conversation\x20JSON\x20here...','jvFeb','mCXdc','Paste\x20your\x20Claude\x20conversation\x20JSON\x20here...','Export\x20your\x20Gemini\x20(Google\x20AI)\x20conversations\x20and\x20paste\x20the\x20data\x20below.','mmgOd','grok','VhWwy','InRmD','Paste\x20your\x20Grok\x20conversation\x20JSON\x20here...','Connect\x20','dxvrz','Paste\x20your\x20conversation\x20JSON\x20here...','KsTBr','LykWh','NBsbp','ttlsW','DRKXk','qJoAU','PxNbR','oVAIt','eQswQ','gJRRc','jXazm','heiRm','rvUrw','content','text','message','anMuH','FxcuM','trim','msg_','role','author','iEypj','timestamp','created_at','xJtYP','parts','push','user','parse','isArray','Pimzi','jOBWn','forEach','UhxVF','UIJuo','UuRsR','length','DYMWh','wVOAV','eRGGe','BUTTON_PRESS','JNCUf','conversation_id','conv_','name','Conversation\x20','bPSsu','create_time','updated_at','FlDSs','JsELo','utSzY','ERROR','conversations','title','yeQla','qBzMs','NbpMT','now','update_time','vmyrm','sknJM','XvGdM','CZxlr','join','haVfD','toISOString','oeGcY','QPjXG','error','Error\x20parsing\x20conversation\x20data:','Invalid\x20JSON\x20format.\x20Please\x20check\x20your\x20data\x20and\x20try\x20again.','cHhfI','HGxnJ','kjuPJ','kdDZp','boXsi','WCLOL','IiEsM','mapping','VTJDZ','GgTdz','qULjo','values','zEqFD','ILOLS','cxBwb','seLsi','HAvhX','ujQte','qtJET','hBnOc','BGyQm','gcPxH','messages','Jvdkf','HJglc','vZZYD','dJviF','hDIQn','VlFiV','ksZOD','chat_messages','uuid','human','mqqBz','cfAim','hGvQn','JpItq','zCMLT','vYrVJ','CpXaQ','scgSb','ARiMl','OWXFd','dyiUY','GiwZv','vMPad','plainText','allFiles','cLwBL','Selected\x20file','uri','startsWith','content://','readFile','OBCIB','SUCCESS','yApZU','code','GYnbD','PDUGz','cBxBs','hUUgP','uOZmr','Please\x20paste\x20or\x20upload\x20conversation\x20data\x20first.','QuFYq','vBEZp','YtNqv','pdcRZ','vWsmz','mWCbS','tmDtH','kkZbQ','AmEuy','WBsan','Wcaut','rvuEZ','zQvww','getItem','enoch_token','sHrsy','pYTdN','mobile-','VbpWC','TYYSF','jzDBd','YUrZY','mhEBv','yFvGl','iKBuZ','WerOa','BASE_URL','/llm-data/store','Bearer\x20','conversationId','context','Version','kxYtV','qVUoi','qaIWQ','DFhhw','aRNVb','Failed\x20to\x20store\x20conversation\x20','Error\x20storing\x20conversation:','bejBY','@onairos:llm_connected:','stringify','alert','DJcxK','Successfully\x20imported\x20','\x20conversation','jURPN','\x20from\x20','wzkZZ','tBofQ','KSaQI','NERdq','NJtIr','IgRdh','split','DJVDO','MMZMn','AiluV','yLHEq','SbhiJ','createElement','SEqVZ','WgOfM','container','ALWtO','cWQLL','header','closeButton','closeButtonText','Cancel','headerTitle','contentContainer','instructionsContainer','instructionsText','tabContainer','tab','tabActive','NCoeO','MheXG','tabText','tabTextActive','SOTft','LyEBD','tabDisabled','Cuxfh','aQLqX','CdUXi','rGdtJ','gYoKK','pSzhl','PriNz','YNyyX','fdypv','UKdNB','YLmxT','pEMfN','sender','CRrqu','VAlTD','tabTextDisabled','cRcei','nlozd','BqzTy','inputContainer','grey400','WuRiI','filePickButton','filePickText','AOmFp','aHZbM','previewContainer','previewTitle','Data\x20Preview','previewText','QNRjE','previewInfo','toLocaleString','AFcSh','footer','submitButton','WqhIB','xPRRf','submitButtonText','create','row','center','space-between','#E5E7EB','600','grey800','IBM\x20Plex\x20Sans','Inter','#F0F9FF','#0369A1','#F3F4F6','#FFFFFF','500','grey500','grey300','Menlo','monospace','grey600','#F0FDF4','#166534','#FEF2F2','#DC2626','surface','#10B981'];_0x1363=function(){return _0x177222;};return _0x1363();}try{DocumentPicker=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x165691){console[_0x4ab9(0x0)]('react-native-document-picker not available - file upload disabled');}function _0x4ab9(_0x13634b,_0x4ab92b){_0x13634b=_0x13634b-0x0;const _0x12d15a=_0x1363();let _0x17c92f=_0x12d15a[_0x13634b];return _0x17c92f;}try{RNFS=__ONAIROS_REQ_FUNC__(0x1);}catch(_0x4619a1){console[_0x4ab9(0x0)]('react-native-fs not available - file upload disabled');}const FILE_UPLOAD_AVAILABLE=DocumentPicker!==null&&RNFS!==null,LLMDataInputModal=({visible:_0xd58bcd,platform:_0x2dffaa,platformName:_0x5c6065,onClose:_0x31921d,onSuccess:_0xca3597})=>{const _0x2cf7b3={'oVGOT':_0x4ab9(0x1),'RXrLH':_0x4ab9(0x2),'BNNoO':_0x4ab9(0x3),'jvFeb':_0x4ab9(0x4),'pzCmo':_0x4ab9(0x5),'mCXdc':'Export\x20your\x20Claude\x20conversations\x20and\x20paste\x20the\x20JSON\x20data\x20below,\x20or\x20upload\x20your\x20exported\x20file.','EebZF':_0x4ab9(0x6),'mmgOd':_0x4ab9(0x7),'VhWwy':_0x4ab9(0x8),'InRmD':_0x4ab9(0x9),'dxvrz':_0x4ab9(0xa),'jXazm':function(_0x5ce58e,_0xd0acd7){return _0x5ce58e(_0xd0acd7);},'FlDSs':'File\x20pick\x20error:','JsELo':_0x4ab9(0xb),'utSzY':function(_0x2a55fa,_0x2c8f28){return _0x2a55fa(_0x2c8f28);},'vMPad':function(_0x3ef653,_0x523bd3){return _0x3ef653(_0x523bd3);},'PxNbR':function(_0x4e05c3,_0x1ec240){return _0x4e05c3+_0x1ec240;},'KsTBr':function(_0x41cbea,_0x47d139){return _0x41cbea===_0x47d139;},'LykWh':'string','NBsbp':'user','ttlsW':function(_0x8968dc,_0x29c380){return _0x8968dc!==_0x29c380;},'MheXG':function(_0x29ee95,_0x5e8af4){return _0x29ee95(_0x5e8af4);},'DRKXk':_0x4ab9(0xc),'tNPcd':'Yhxux','qJoAU':_0x4ab9(0xd),'oVAIt':function(_0x47e3c8,_0x14e6e4){return _0x47e3c8(_0x14e6e4);},'eQswQ':function(_0x15a9c3,_0x2b11e4){return _0x15a9c3!==_0x2b11e4;},'gJRRc':_0x4ab9(0xe),'heiRm':_0x4ab9(0xf),'rvUrw':_0x4ab9(0x10),'jOBWn':_0x4ab9(0x11),'hBDbN':function(_0x2d413b,_0x330e73){return _0x2d413b(_0x330e73);},'yeQla':function(_0x545ae6,_0x389b25){return _0x545ae6>_0x389b25;},'qBzMs':function(_0x479975,_0x5e6f04){return _0x479975===_0x5e6f04;},'NbpMT':_0x4ab9(0x12),'sknJM':function(_0x169e45,_0x175576){return _0x169e45(_0x175576);},'XvGdM':function(_0x230c97,_0x104e4b){return _0x230c97>_0x104e4b;},'oeGcY':_0x4ab9(0x13),'xQcDa':function(_0x2cc438,_0x381ec2){return _0x2cc438!==_0x381ec2;},'QPjXG':_0x4ab9(0x14),'cHhfI':function(_0x4baa8c,_0x417ce2){return _0x4baa8c(_0x417ce2);},'XHEZG':function(_0x2c4905,_0xe0e8f6){return _0x2c4905!==_0xe0e8f6;},'kdDZp':_0x4ab9(0x15),'boXsi':function(_0x43e46d,_0x2eacb5){return _0x43e46d*_0x2eacb5;},'IiEsM':_0x4ab9(0x16),'VTJDZ':function(_0x3ae93c,_0x5afbf3){return _0x3ae93c===_0x5afbf3;},'GgTdz':_0x4ab9(0x17),'oRhLy':'lrckM','Jvdkf':_0x4ab9(0x18),'cfAim':function(_0x3bbac7,_0x372fa1){return _0x3bbac7(_0x372fa1);},'JpItq':_0x4ab9(0x19),'scgSb':function(_0x498526,_0x15189f){return _0x498526!==_0x15189f;},'ARiMl':'jBdHZ','GiwZv':function(_0x33e71d,_0x458b0c){return _0x33e71d(_0x458b0c);},'cLwBL':function(_0x3f2607,_0x3adc97){return _0x3f2607(_0x3adc97);},'OBCIB':_0x4ab9(0x1a),'AZdBB':function(_0x11ae47,_0x3875d4){return _0x11ae47(_0x3875d4);},'sgAnH':function(_0x2ea2a2,_0x93533){return _0x2ea2a2(_0x93533);},'yApZU':function(_0x5ef468,_0x4a3e02){return _0x5ef468!==_0x4a3e02;},'zZLPJ':_0x4ab9(0x1b),'GYnbD':function(_0x9977d5,_0x48517b){return _0x9977d5(_0x48517b);},'cewLA':function(_0x3b95d3,_0x339a7f){return _0x3b95d3!==_0x339a7f;},'pdcRZ':function(_0x36eb6f,_0x1da727){return _0x36eb6f!==_0x1da727;},'vBEZp':function(_0x176d34,_0x2b6ddf){return _0x176d34!==_0x2b6ddf;},'vWsmz':function(_0x4ed9ce,_0x227194){return _0x4ed9ce===_0x227194;},'rvuEZ':_0x4ab9(0x1c),'PDUGz':function(_0x598a0b,_0x5aa263){return _0x598a0b!==_0x5aa263;},'BqzTy':function(_0x49507d,_0x109f5e){return _0x49507d===_0x109f5e;},'cBxBs':function(_0x12e9be,_0xc9c697){return _0x12e9be*_0xc9c697;},'hUUgP':function(_0xa9f76e,_0x5e279f){return _0xa9f76e(_0x5e279f);},'uOZmr':_0x4ab9(0x1d),'QuFYq':function(_0x4b25a4,_0x1c6566){return _0x4b25a4(_0x1c6566);},'YtNqv':_0x4ab9(0x1e),'WBsan':function(_0x29c1cc,_0x4af87e){return _0x29c1cc(_0x4af87e);},'aywxI':_0x4ab9(0x1f),'Wcaut':_0x4ab9(0x20),'zQvww':_0x4ab9(0x21),'sHrsy':'auth_token','pYTdN':_0x4ab9(0x22),'TYYSF':_0x4ab9(0x23),'ackTp':function(_0xf2b7be,_0x410c3b,_0x3e75ef){return _0xf2b7be(_0x410c3b,_0x3e75ef);},'gfrfs':_0x4ab9(0x24),'kxYtV':_0x4ab9(0x25),'qVUoi':'mobile_app_import','qaIWQ':_0x4ab9(0x26),'bejBY':function(_0x2944f9,_0xac84e3){return _0x2944f9>_0xac84e3;},'DJcxK':_0x4ab9(0x27),'jURPN':function(_0x53ca8f,_0x21b0a8){return _0x53ca8f>_0x21b0a8;},'wzkZZ':_0x4ab9(0x28),'aRUnX':_0x4ab9(0x29),'tBofQ':_0x4ab9(0x2a),'KSaQI':function(_0x3220b5,_0x109ef0){return _0x3220b5(_0x109ef0);},'NERdq':function(_0x272cbe,_0x54efa9){return _0x272cbe!==_0x54efa9;},'NJtIr':_0x4ab9(0x2b),'IgRdh':_0x4ab9(0x2c),'DJVDO':function(_0x4137f2){return _0x4137f2();},'MMZMn':function(_0x3ce85e,_0x178985){return _0x3ce85e(_0x178985);},'AiluV':_0x4ab9(0x2d),'yLHEq':function(_0x4a3a28,_0x2b1ebb){return _0x4a3a28(_0x2b1ebb);},'SbhiJ':function(_0x1a8a39,_0x41bd7f){return _0x1a8a39(_0x41bd7f);},'NCoeO':_0x4ab9(0x2e),'SBOKL':function(_0x45dabf,_0x150cfc){return _0x45dabf(_0x150cfc);},'Cuxfh':'human','IJDbG':_0x4ab9(0x2f),'CdUXi':function(_0x42f984,_0x5ca7ec){return _0x42f984(_0x5ca7ec);},'WhQTM':_0x4ab9(0x30),'rGdtJ':_0x4ab9(0x31),'KHeQw':function(_0x3a50ad,_0xdb97ca){return _0x3a50ad(_0xdb97ca);},'HMTjD':function(_0x2010fa,_0x2f484e){return _0x2010fa(_0x2f484e);},'DYFJH':function(_0x2d1dbf,_0xa422f3){return _0x2d1dbf(_0xa422f3);},'lJtKa':function(_0x46a0b2,_0x3bcdf9){return _0x46a0b2(_0x3bcdf9);},'SEqVZ':'slide','WgOfM':_0x4ab9(0x32),'ALWtO':_0x4ab9(0x33),'lphYw':'padding','cWQLL':_0x4ab9(0x34),'ibAAf':_0x4ab9(0x35),'SOTft':_0x4ab9(0x36),'LyEBD':function(_0x4fd9a9,_0x8ab2aa){return _0x4fd9a9===_0x8ab2aa;},'VAlTD':function(_0x32a79a,_0x3ed401){return _0x32a79a===_0x3ed401;},'kojcp':_0x4ab9(0x37),'cRcei':function(_0x148b38,_0x2e0384){return _0x148b38&&_0x2e0384;},'nlozd':_0x4ab9(0x38),'WuRiI':_0x4ab9(0x39),'iNSPP':_0x4ab9(0x3a),'AOmFp':function(_0x30c4a6,_0x47186b){return _0x30c4a6||_0x47186b;},'aHZbM':_0x4ab9(0x3b),'QNRjE':_0x4ab9(0x3c),'AFcSh':_0x4ab9(0x3d),'WqhIB':'#FFFFFF','xPRRf':_0x4ab9(0x3e)},[_0xe82a62,_0x16d868]=_0x2cf7b3['KHeQw'](useState,_0x2cf7b3['AiluV']),[_0x5e701d,_0x336635]=useState(''),[_0x535597,_0x3752cc]=useState(![]),[_0x2c3248,_0xb063a3]=_0x2cf7b3[_0x4ab9(0x3f)](useState,null),[_0x4fc6d7,_0x15c4e9]=_0x2cf7b3['DYFJH'](useState,null),[_0x18128f,_0x18406b]=_0x2cf7b3[_0x4ab9(0x40)](useState,null),_0x4a77f3=()=>{switch(_0x2dffaa){case _0x2cf7b3[_0x4ab9(0x41)]:return{'title':_0x2cf7b3['RXrLH'],'instructions':_0x2cf7b3[_0x4ab9(0x42)],'placeholder':_0x4ab9(0x43)};case _0x2cf7b3[_0x4ab9(0x44)]:return{'title':_0x2cf7b3['pzCmo'],'instructions':_0x2cf7b3[_0x4ab9(0x45)],'placeholder':_0x4ab9(0x46)};case _0x2cf7b3['EebZF']:return{'title':'Connect\x20Gemini','instructions':_0x4ab9(0x47),'placeholder':_0x2cf7b3[_0x4ab9(0x48)]};case _0x4ab9(0x49):return{'title':_0x2cf7b3[_0x4ab9(0x4a)],'instructions':_0x2cf7b3[_0x4ab9(0x4b)],'placeholder':_0x4ab9(0x4c)};default:return{'title':_0x4ab9(0x4d)+_0x5c6065,'instructions':_0x2cf7b3[_0x4ab9(0x4e)],'placeholder':_0x4ab9(0x4f)};}},{title:_0x31bc20,instructions:_0x322191,placeholder:_0x27baf9}=_0x2cf7b3['DJVDO'](_0x4a77f3),_0x52f771=_0x24927e=>{const _0x36ad1d={'anMuH':function(_0x4ea268,_0x3a6bbf){return _0x2cf7b3[_0x4ab9(0x50)](_0x4ea268,_0x3a6bbf);},'FxcuM':_0x2cf7b3[_0x4ab9(0x51)],'iEypj':_0x2cf7b3[_0x4ab9(0x52)],'YwKrS':function(_0x3d1049,_0x193de5){return _0x3d1049!==_0x193de5;},'xJtYP':function(_0x4f05be,_0x5e3103){return _0x2cf7b3[_0x4ab9(0x53)](_0x4f05be,_0x5e3103);},'UhxVF':_0x4ab9(0x1d),'UIJuo':function(_0x2ca4bc,_0x183c9c){return _0x2cf7b3['MheXG'](_0x2ca4bc,_0x183c9c);},'UuRsR':_0x2cf7b3[_0x4ab9(0x54)],'DYMWh':_0x2cf7b3['tNPcd'],'YnCWY':_0x2cf7b3[_0x4ab9(0x55)],'bPSsu':function(_0x4261e6,_0x25dd3d){return _0x2cf7b3[_0x4ab9(0x56)](_0x4261e6,_0x25dd3d);},'vmyrm':function(_0x3a5940,_0x2987c9){return _0x2cf7b3[_0x4ab9(0x57)](_0x3a5940,_0x2987c9);},'dSamy':function(_0xc3c504,_0x586bc6){return _0x2cf7b3[_0x4ab9(0x50)](_0xc3c504,_0x586bc6);},'haVfD':_0x4ab9(0x15)};if(_0x2cf7b3[_0x4ab9(0x58)](_0x4ab9(0xe),_0x2cf7b3[_0x4ab9(0x59)]))_0x2cf7b3[_0x4ab9(0x5a)](_0x48ceae,![]);else try{if(_0x2cf7b3[_0x4ab9(0x5b)]===_0x2cf7b3[_0x4ab9(0x5c)]){var _0x38d049;const _0x17dadc=_0x29cfe8[_0x4ab9(0x5d)]||_0x17c795[_0x4ab9(0x5e)]||_0x460cb9[_0x4ab9(0x5f)]||'';if(_0x36ad1d[_0x4ab9(0x60)](typeof _0x17dadc,_0x36ad1d[_0x4ab9(0x61)])&&_0x17dadc[_0x4ab9(0x62)]())_0x3f4391['push']({'id':_0x34bab2['id']||_0x4ab9(0x63)+_0x1db7e7,'role':_0x2cdfa9[_0x4ab9(0x64)]||_0x436ec6[_0x4ab9(0x65)]||_0x36ad1d[_0x4ab9(0x66)],'content':_0x17dadc,'timestamp':_0x561b26[_0x4ab9(0x67)]||_0x2a2b86[_0x4ab9(0x68)]});else _0x36ad1d['YwKrS'](_0x38d049=_0x5c21b7[_0x4ab9(0x5d)],null)&&_0x36ad1d[_0x4ab9(0x69)](_0x38d049,void 0x0)&&_0x38d049[_0x4ab9(0x6a)]&&_0x525074[_0x4ab9(0x6b)]({'id':_0x372621['id']||_0x4ab9(0x63)+_0x56e461,'role':_0x33917f[_0x4ab9(0x64)]||_0x4ab9(0x6c),'content':_0x1fddaf['content']['parts']['join']('\x0a'),'timestamp':_0x4cd6b7[_0x4ab9(0x67)]});}else{const _0x3371d5=JSON[_0x4ab9(0x6d)](_0x24927e),_0x14b1ce=[];if(Array[_0x4ab9(0x6e)](_0x3371d5))_0x2cf7b3['eQswQ'](_0x4ab9(0x6f),_0x2cf7b3[_0x4ab9(0x70)])?_0x3371d5[_0x4ab9(0x71)]((_0x2d25fa,_0xd3ce61)=>{const _0x38c3ba={'wVOAV':_0x36ad1d[_0x4ab9(0x72)],'eRGGe':function(_0x5473dc,_0x55d867){return _0x36ad1d[_0x4ab9(0x73)](_0x5473dc,_0x55d867);},'JNCUf':_0x36ad1d[_0x4ab9(0x74)]},_0x21cc86=_0x36ad1d[_0x4ab9(0x73)](_0x1dfccf,_0x2d25fa);_0x21cc86[_0x4ab9(0x75)]>0x0&&(_0x36ad1d[_0x4ab9(0x60)](_0x36ad1d[_0x4ab9(0x76)],_0x36ad1d['YnCWY'])?_0x4431c3?(_0x5e12ce(_0x38c3ba[_0x4ab9(0x77)]),_0x38c3ba[_0x4ab9(0x78)](_0x17e994,_0x19753a[_0x4ab9(0x79)])):(_0x38c3ba['eRGGe'](_0x8922bf,_0x38c3ba[_0x4ab9(0x7a)]),_0x38c3ba[_0x4ab9(0x78)](_0x2d48a6,_0x4e4c44['ERROR'])):_0x14b1ce[_0x4ab9(0x6b)]({'conversationId':_0x2d25fa['id']||_0x2d25fa[_0x4ab9(0x7b)]||_0x4ab9(0x7c)+_0xd3ce61+'_'+Date['now'](),'messages':_0x21cc86,'context':{'title':_0x2d25fa['title']||_0x2d25fa[_0x4ab9(0x7d)]||_0x4ab9(0x7e)+_0x36ad1d[_0x4ab9(0x7f)](_0xd3ce61,0x1),'create_time':_0x2d25fa[_0x4ab9(0x80)]||_0x2d25fa[_0x4ab9(0x68)],'update_time':_0x2d25fa['update_time']||_0x2d25fa[_0x4ab9(0x81)]}}));}):(_0x29cb06['error'](_0x2cf7b3[_0x4ab9(0x82)],_0xb5b3a7),_0x2cf7b3[_0x4ab9(0x5a)](_0xe2ccf1,_0x2cf7b3[_0x4ab9(0x83)]),_0x2cf7b3[_0x4ab9(0x84)](_0x22e4aa,_0x86e1a6[_0x4ab9(0x85)]));else{if(_0x3371d5[_0x4ab9(0x86)]&&Array[_0x4ab9(0x6e)](_0x3371d5[_0x4ab9(0x86)]))_0x3371d5[_0x4ab9(0x86)]['forEach']((_0x2c1cc4,_0x4cee26)=>{const _0x4a7a75=_0x2cf7b3['vMPad'](_0x1dfccf,_0x2c1cc4);_0x4a7a75[_0x4ab9(0x75)]>0x0&&_0x14b1ce['push']({'conversationId':_0x2c1cc4['id']||_0x4ab9(0x7c)+_0x4cee26+'_'+Date['now'](),'messages':_0x4a7a75,'context':{'title':_0x2c1cc4[_0x4ab9(0x87)]||_0x4ab9(0x7e)+_0x2cf7b3['PxNbR'](_0x4cee26,0x1),'create_time':_0x2c1cc4[_0x4ab9(0x80)],'update_time':_0x2c1cc4['update_time']}});});else{if(_0x3371d5['mapping']||_0x3371d5['messages']){const _0x446df9=_0x2cf7b3['hBDbN'](_0x1dfccf,_0x3371d5);_0x2cf7b3[_0x4ab9(0x88)](_0x446df9[_0x4ab9(0x75)],0x0)&&(_0x2cf7b3[_0x4ab9(0x89)](_0x2cf7b3[_0x4ab9(0x8a)],_0x2cf7b3['NbpMT'])?_0x14b1ce[_0x4ab9(0x6b)]({'conversationId':_0x3371d5['id']||'conv_'+Date[_0x4ab9(0x8b)](),'messages':_0x446df9,'context':{'title':_0x3371d5[_0x4ab9(0x87)]||_0x4ab9(0x13),'create_time':_0x3371d5['create_time'],'update_time':_0x3371d5[_0x4ab9(0x8c)]}}):_0x492c6a=_0x36ad1d[_0x4ab9(0x8d)](_0x4860a3,0x1));}else{const _0x3bbdfb=_0x2cf7b3[_0x4ab9(0x8e)](_0x1dfccf,_0x3371d5);if(_0x2cf7b3[_0x4ab9(0x8f)](_0x3bbdfb['length'],0x0)){if(_0x2cf7b3[_0x4ab9(0x58)](_0x4ab9(0x90),_0x4ab9(0x90))){const _0x4ce911=_0xe745aa[_0x4ab9(0x5f)][_0x4ab9(0x5d)][_0x4ab9(0x6a)][_0x4ab9(0x91)]('\x0a');if(_0x4ce911[_0x4ab9(0x62)]()){var _0x2bf928;_0x427fba[_0x4ab9(0x6b)]({'id':_0x551018['message']['id']||'msg_'+_0x59393f,'role':((_0x2bf928=_0x13043d[_0x4ab9(0x5f)][_0x4ab9(0x65)])===null||_0x36ad1d['dSamy'](_0x2bf928,void 0x0)?void 0x0:_0x2bf928[_0x4ab9(0x64)])||_0x36ad1d[_0x4ab9(0x92)],'content':_0x4ce911,'timestamp':_0x4c0cf4[_0x4ab9(0x5f)][_0x4ab9(0x80)]?new _0x42c9f8(_0x544f6d[_0x4ab9(0x5f)]['create_time']*0x3e8)[_0x4ab9(0x93)]():_0x10ad40});}}else _0x14b1ce['push']({'conversationId':_0x4ab9(0x7c)+Date[_0x4ab9(0x8b)](),'messages':_0x3bbdfb,'context':{'title':_0x3371d5[_0x4ab9(0x87)]||_0x2cf7b3[_0x4ab9(0x94)]}});}}}}return _0x14b1ce;}}catch(_0x565c69){if(_0x2cf7b3['xQcDa'](_0x2cf7b3[_0x4ab9(0x95)],_0x2cf7b3[_0x4ab9(0x95)]))_0x154907['push']({'conversationId':_0x4de5cd['id']||_0x4ab9(0x7c)+_0x1ae1ef+'_'+_0x293181[_0x4ab9(0x8b)](),'messages':_0x348aa0,'context':{'title':_0x200e5f[_0x4ab9(0x87)]||_0x4ab9(0x7e)+_0x2cf7b3[_0x4ab9(0x56)](_0x393bf0,0x1),'create_time':_0x236002['create_time'],'update_time':_0x114a4e[_0x4ab9(0x8c)]}});else{console[_0x4ab9(0x96)](_0x4ab9(0x97),_0x565c69);throw new Error(_0x4ab9(0x98));}}},_0x1dfccf=_0x56de01=>{const _0x1acfaa={'qULjo':function(_0x41284b,_0x5483cb){return _0x2cf7b3[_0x4ab9(0x99)](_0x41284b,_0x5483cb);},'CQpYs':'Please\x20paste\x20or\x20upload\x20conversation\x20data\x20first.','zEqFD':function(_0xa0025b,_0x531654){return _0x2cf7b3['ttlsW'](_0xa0025b,_0x531654);},'ILOLS':_0x4ab9(0x9a),'cxBwb':function(_0x16fab0,_0x26b370){return _0x2cf7b3['ttlsW'](_0x16fab0,_0x26b370);},'seLsi':function(_0x2de841,_0x1cd944){return _0x2de841!==_0x1cd944;},'vUBcR':function(_0x3544ed,_0x488431){return _0x2cf7b3[_0x4ab9(0x58)](_0x3544ed,_0x488431);},'HAvhX':function(_0x4832f7,_0x232ba3){return _0x2cf7b3['XHEZG'](_0x4832f7,_0x232ba3);},'ujQte':function(_0x5ceb7d,_0x2a8522){return _0x5ceb7d!==_0x2a8522;},'SIbeP':function(_0x2bc541,_0x22ab4c){return _0x2cf7b3[_0x4ab9(0x89)](_0x2bc541,_0x22ab4c);},'qtJET':_0x4ab9(0x9b),'hBnOc':function(_0x5a3add,_0x2b9d65){return _0x5a3add===_0x2b9d65;},'BGyQm':_0x2cf7b3[_0x4ab9(0x9c)],'gcPxH':function(_0x5dc547,_0x116828){return _0x2cf7b3[_0x4ab9(0x9d)](_0x5dc547,_0x116828);},'VlFiV':'Imported\x20Conversation','HJglc':_0x2cf7b3[_0x4ab9(0x51)],'vZZYD':function(_0x2b4e84,_0x2c0f71){return _0x2b4e84!==_0x2c0f71;},'KDepb':'Qgezn','dJviF':_0x4ab9(0x9e),'hDIQn':_0x2cf7b3[_0x4ab9(0x52)],'ksZOD':function(_0x4b96ee,_0x5cd884){return _0x2cf7b3['XHEZG'](_0x4b96ee,_0x5cd884);},'idxje':function(_0x4ecf11,_0xee4fdd){return _0x2cf7b3[_0x4ab9(0x50)](_0x4ecf11,_0xee4fdd);},'mqqBz':_0x2cf7b3[_0x4ab9(0x9f)]},_0x56c84a=[];if(_0x56de01[_0x4ab9(0xa0)]){if(_0x2cf7b3[_0x4ab9(0xa1)](_0x2cf7b3[_0x4ab9(0xa2)],_0x2cf7b3['oRhLy'])){_0x1acfaa[_0x4ab9(0xa3)](_0x1a4be7,_0x1acfaa['CQpYs']),_0x270902(_0x19f8f7[_0x4ab9(0x85)]);return;}else Object[_0x4ab9(0xa4)](_0x56de01[_0x4ab9(0xa0)])[_0x4ab9(0x71)]((_0x1bc2da,_0x54ee7e)=>{if(_0x1acfaa[_0x4ab9(0xa5)]('lHsEB',_0x1acfaa[_0x4ab9(0xa6)])){var _0x4792db;if(_0x1acfaa[_0x4ab9(0xa7)](_0x1bc2da,null)&&_0x1acfaa[_0x4ab9(0xa8)](_0x1bc2da,void 0x0)&&_0x1acfaa['vUBcR'](_0x4792db=_0x1bc2da[_0x4ab9(0x5f)],null)&&_0x4792db!==void 0x0&&_0x1acfaa[_0x4ab9(0xa9)](_0x4792db=_0x4792db[_0x4ab9(0x5d)],null)&&_0x1acfaa[_0x4ab9(0xaa)](_0x4792db,void 0x0)&&_0x4792db[_0x4ab9(0x6a)]){const _0x36bc6e=_0x1bc2da['message'][_0x4ab9(0x5d)][_0x4ab9(0x6a)]['join']('\x0a');if(_0x36bc6e[_0x4ab9(0x62)]()){if(_0x1acfaa['SIbeP'](_0x1acfaa[_0x4ab9(0xab)],_0x1acfaa['qtJET'])){var _0x5b019a;_0x56c84a['push']({'id':_0x1bc2da['message']['id']||_0x4ab9(0x63)+_0x54ee7e,'role':(_0x1acfaa['SIbeP'](_0x5b019a=_0x1bc2da['message'][_0x4ab9(0x65)],null)||_0x1acfaa[_0x4ab9(0xac)](_0x5b019a,void 0x0)?void 0x0:_0x5b019a[_0x4ab9(0x64)])||_0x1acfaa[_0x4ab9(0xad)],'content':_0x36bc6e,'timestamp':_0x1bc2da[_0x4ab9(0x5f)]['create_time']?new Date(_0x1acfaa[_0x4ab9(0xae)](_0x1bc2da[_0x4ab9(0x5f)][_0x4ab9(0x80)],0x3e8))[_0x4ab9(0x93)]():undefined});}else _0x365b31[_0x4ab9(0x0)]('react-native-fs not available - file upload disabled');}}}else throw new _0x24b841(_0x4ab9(0x22));});}return _0x56de01[_0x4ab9(0xaf)]&&Array['isArray'](_0x56de01[_0x4ab9(0xaf)])&&(_0x2cf7b3[_0x4ab9(0xa1)](_0x2cf7b3[_0x4ab9(0xb0)],_0x2cf7b3[_0x4ab9(0xb0)])?_0x56de01['messages'][_0x4ab9(0x71)]((_0x3064ac,_0x32ac5e)=>{var _0x2fe407;const _0x539776=_0x3064ac[_0x4ab9(0x5d)]||_0x3064ac[_0x4ab9(0x5e)]||_0x3064ac[_0x4ab9(0x5f)]||'';if(_0x1acfaa['hBnOc'](typeof _0x539776,_0x1acfaa[_0x4ab9(0xb1)])&&_0x539776['trim']())_0x1acfaa[_0x4ab9(0xb2)](_0x1acfaa['KDepb'],_0x1acfaa[_0x4ab9(0xb3)])?_0x56c84a[_0x4ab9(0x6b)]({'id':_0x3064ac['id']||_0x4ab9(0x63)+_0x32ac5e,'role':_0x3064ac[_0x4ab9(0x64)]||_0x3064ac[_0x4ab9(0x65)]||_0x1acfaa[_0x4ab9(0xb4)],'content':_0x539776,'timestamp':_0x3064ac[_0x4ab9(0x67)]||_0x3064ac[_0x4ab9(0x68)]}):_0x642ef6[_0x4ab9(0x6b)]({'conversationId':_0x4ab9(0x7c)+_0x8031b0[_0x4ab9(0x8b)](),'messages':_0x10c2f6,'context':{'title':_0x329176[_0x4ab9(0x87)]||_0x1acfaa[_0x4ab9(0xb5)]}});else _0x1acfaa[_0x4ab9(0xb6)](_0x2fe407=_0x3064ac[_0x4ab9(0x5d)],null)&&_0x1acfaa['vUBcR'](_0x2fe407,void 0x0)&&_0x2fe407['parts']&&_0x56c84a[_0x4ab9(0x6b)]({'id':_0x3064ac['id']||_0x4ab9(0x63)+_0x32ac5e,'role':_0x3064ac[_0x4ab9(0x64)]||_0x1acfaa['hDIQn'],'content':_0x3064ac['content']['parts']['join']('\x0a'),'timestamp':_0x3064ac[_0x4ab9(0x67)]});}):_0x168fd5[_0x4ab9(0x96)]('Error\x20storing\x20conversation:',_0x262fd7)),_0x56de01[_0x4ab9(0xb7)]&&Array[_0x4ab9(0x6e)](_0x56de01[_0x4ab9(0xb7)])&&_0x56de01[_0x4ab9(0xb7)][_0x4ab9(0x71)]((_0x1eb4ed,_0x2a94ea)=>{(_0x1eb4ed[_0x4ab9(0x5e)]||_0x1eb4ed[_0x4ab9(0x5d)])&&_0x56c84a[_0x4ab9(0x6b)]({'id':_0x1eb4ed[_0x4ab9(0xb8)]||_0x4ab9(0x63)+_0x2a94ea,'role':_0x1acfaa['idxje'](_0x1eb4ed['sender'],_0x4ab9(0xb9))?_0x1acfaa[_0x4ab9(0xb4)]:_0x1acfaa[_0x4ab9(0xba)],'content':_0x1eb4ed[_0x4ab9(0x5e)]||_0x1eb4ed['content'],'timestamp':_0x1eb4ed['created_at']});}),_0x56c84a;},_0x1946c2=async()=>{const _0x53c4f4={'zCMLT':function(_0x11a8e6,_0x2dec2e){return _0x2cf7b3['KsTBr'](_0x11a8e6,_0x2dec2e);},'vYrVJ':_0x2cf7b3[_0x4ab9(0x9c)],'CpXaQ':function(_0x5f37a4,_0x415d92){return _0x5f37a4*_0x415d92;},'OWXFd':function(_0x3c8970,_0x4d9147){return _0x2cf7b3[_0x4ab9(0xbb)](_0x3c8970,_0x4d9147);},'dyiUY':function(_0x312c82,_0x50fb31){return _0x2cf7b3[_0x4ab9(0x8f)](_0x312c82,_0x50fb31);}};if(_0x4ab9(0xbc)===_0x2cf7b3[_0x4ab9(0xbd)]){var _0x589d6f;_0x2737cb[_0x4ab9(0x6b)]({'id':_0x5d8f66[_0x4ab9(0x5f)]['id']||'msg_'+_0x5943c7,'role':(_0x53c4f4[_0x4ab9(0xbe)](_0x589d6f=_0x1e7496[_0x4ab9(0x5f)][_0x4ab9(0x65)],null)||_0x53c4f4[_0x4ab9(0xbe)](_0x589d6f,void 0x0)?void 0x0:_0x589d6f[_0x4ab9(0x64)])||_0x53c4f4[_0x4ab9(0xbf)],'content':_0x12e660,'timestamp':_0x3d3d44['message'][_0x4ab9(0x80)]?new _0x32a5aa(_0x53c4f4[_0x4ab9(0xc0)](_0x338a59[_0x4ab9(0x5f)]['create_time'],0x3e8))[_0x4ab9(0x93)]():_0x573a90});}else{if(!FILE_UPLOAD_AVAILABLE){if(_0x2cf7b3[_0x4ab9(0xc1)](_0x2cf7b3[_0x4ab9(0xc2)],'jBdHZ'))_0x12e03f[_0x4ab9(0x71)]((_0x2acb1e,_0x54085c)=>{const _0x5498ea=_0x53c4f4[_0x4ab9(0xc3)](_0x4af645,_0x2acb1e);_0x53c4f4[_0x4ab9(0xc4)](_0x5498ea[_0x4ab9(0x75)],0x0)&&_0x27690a['push']({'conversationId':_0x2acb1e['id']||_0x2acb1e[_0x4ab9(0x7b)]||_0x4ab9(0x7c)+_0x54085c+'_'+_0xdc8969['now'](),'messages':_0x5498ea,'context':{'title':_0x2acb1e[_0x4ab9(0x87)]||_0x2acb1e[_0x4ab9(0x7d)]||_0x4ab9(0x7e)+(_0x54085c+0x1),'create_time':_0x2acb1e[_0x4ab9(0x80)]||_0x2acb1e[_0x4ab9(0x68)],'update_time':_0x2acb1e[_0x4ab9(0x8c)]||_0x2acb1e[_0x4ab9(0x81)]}});});else{_0x2cf7b3[_0x4ab9(0xc5)](_0xb063a3,'File upload requires react-native-document-picker and react-native-fs. Please paste data instead.');return;}}try{_0x2cf7b3[_0x4ab9(0x84)](_0xb063a3,null);const {pick:_0x3123ab,types:_0x49853c}=DocumentPicker,_0x331e84=await _0x2cf7b3[_0x4ab9(0xc6)](_0x3123ab,{'type':[_0x49853c['json'],_0x49853c[_0x4ab9(0xc7)],_0x49853c[_0x4ab9(0xc8)]]});if(_0x331e84&&_0x331e84[0x0]){const _0x10affe=_0x331e84[0x0];_0x2cf7b3[_0x4ab9(0xc9)](_0x15c4e9,_0x10affe['name']||_0x4ab9(0xca));let _0x51dd31;_0x10affe[_0x4ab9(0xcb)][_0x4ab9(0xcc)](_0x4ab9(0xcd))?_0x51dd31=await RNFS[_0x4ab9(0xce)](_0x10affe[_0x4ab9(0xcb)],_0x4ab9(0x1a)):_0x51dd31=await RNFS[_0x4ab9(0xce)](_0x10affe[_0x4ab9(0xcb)],_0x2cf7b3[_0x4ab9(0xcf)]),_0x2cf7b3['AZdBB'](_0x18406b,_0x51dd31),_0x2cf7b3[_0x4ab9(0xc5)](_0x336635,_0x51dd31),_0x2cf7b3['sgAnH'](triggerHaptic,HapticType[_0x4ab9(0xd0)]);}}catch(_0x3ad361){_0x2cf7b3[_0x4ab9(0xd1)](_0x3ad361[_0x4ab9(0xd2)],_0x2cf7b3['zZLPJ'])&&(console[_0x4ab9(0x96)](_0x2cf7b3[_0x4ab9(0x82)],_0x3ad361),_0x2cf7b3[_0x4ab9(0xd3)](_0xb063a3,_0x2cf7b3[_0x4ab9(0x83)]),triggerHaptic(HapticType[_0x4ab9(0x85)]));}}},_0xf07dd8=async()=>{const _0x54e27c={'jzDBd':function(_0x35cef6,_0x3e1107){return _0x2cf7b3[_0x4ab9(0x58)](_0x35cef6,_0x3e1107);},'YUrZY':function(_0x4a1d95,_0x165f83){return _0x2cf7b3[_0x4ab9(0xd4)](_0x4a1d95,_0x165f83);},'mhEBv':function(_0x80295c,_0x20a4e7){return _0x2cf7b3['eQswQ'](_0x80295c,_0x20a4e7);},'yFvGl':function(_0x39e1a,_0x45c43a){return _0x2cf7b3['BqzTy'](_0x39e1a,_0x45c43a);},'iKBuZ':_0x2cf7b3['kdDZp'],'WerOa':function(_0x2dfb91,_0x5c1c12){return _0x2cf7b3[_0x4ab9(0xd5)](_0x2dfb91,_0x5c1c12);},'aRNVb':function(_0x1cfa06,_0x57facc){return _0x2cf7b3[_0x4ab9(0xd6)](_0x1cfa06,_0x57facc);}},_0x4df79a=_0x2cf7b3[_0x4ab9(0x89)](_0xe82a62,_0x2cf7b3[_0x4ab9(0xd7)])&&_0x18128f?_0x18128f:_0x5e701d;if(!_0x4df79a['trim']()){_0xb063a3(_0x4ab9(0xd8)),triggerHaptic(HapticType[_0x4ab9(0x85)]);return;}_0x2cf7b3[_0x4ab9(0x57)](_0x3752cc,!![]),_0x2cf7b3[_0x4ab9(0xd9)](_0xb063a3,null);try{if(_0x2cf7b3[_0x4ab9(0xda)](_0x2cf7b3[_0x4ab9(0xdb)],_0x2cf7b3['YtNqv'])){const _0x51cf12={'yGIiu':function(_0x31875c,_0xc30c18){return _0x2cf7b3['cewLA'](_0x31875c,_0xc30c18);},'mWCbS':function(_0x2d4947,_0x105b92){return _0x2cf7b3[_0x4ab9(0xdc)](_0x2d4947,_0x105b92);},'tmDtH':function(_0x551dbf,_0x16be7c){return _0x2cf7b3['vBEZp'](_0x551dbf,_0x16be7c);},'kkZbQ':function(_0x55bff0,_0x4bf64c){return _0x2cf7b3['VTJDZ'](_0x55bff0,_0x4bf64c);},'AmEuy':function(_0x229615,_0x2cf930){return _0x2cf7b3[_0x4ab9(0xdd)](_0x229615,_0x2cf930);},'enLFb':function(_0x4e5511,_0x40e6cb){return _0x4e5511*_0x40e6cb;}};_0x569340[_0x4ab9(0xa4)](_0x187fb6[_0x4ab9(0xa0)])[_0x4ab9(0x71)]((_0xec656e,_0x34df92)=>{var _0xb06ada;if(_0xec656e!==null&&_0xec656e!==void 0x0&&_0x51cf12['yGIiu'](_0xb06ada=_0xec656e['message'],null)&&_0xb06ada!==void 0x0&&_0x51cf12[_0x4ab9(0xde)](_0xb06ada=_0xb06ada['content'],null)&&_0x51cf12[_0x4ab9(0xdf)](_0xb06ada,void 0x0)&&_0xb06ada[_0x4ab9(0x6a)]){const _0x24fe35=_0xec656e['message'][_0x4ab9(0x5d)][_0x4ab9(0x6a)][_0x4ab9(0x91)]('\x0a');if(_0x24fe35[_0x4ab9(0x62)]()){var _0x134b95;_0x23fd84[_0x4ab9(0x6b)]({'id':_0xec656e[_0x4ab9(0x5f)]['id']||'msg_'+_0x34df92,'role':(_0x51cf12[_0x4ab9(0xe0)](_0x134b95=_0xec656e['message']['author'],null)||_0x51cf12[_0x4ab9(0xe1)](_0x134b95,void 0x0)?void 0x0:_0x134b95[_0x4ab9(0x64)])||'unknown','content':_0x24fe35,'timestamp':_0xec656e[_0x4ab9(0x5f)][_0x4ab9(0x80)]?new _0x49c9dc(_0x51cf12['enLFb'](_0xec656e['message'][_0x4ab9(0x80)],0x3e8))['toISOString']():_0xa35e72});}}});}else{const _0x2a3dff=_0x2cf7b3[_0x4ab9(0xe2)](_0x52f771,_0x4df79a);if(_0x2cf7b3[_0x4ab9(0xa1)](_0x2a3dff[_0x4ab9(0x75)],0x0)){if(_0x2cf7b3['aywxI']===_0x2cf7b3[_0x4ab9(0xe3)])throw new _0x14232b(_0x2cf7b3[_0x4ab9(0xe4)]);else throw new Error(_0x2cf7b3[_0x4ab9(0xe4)]);}const _0x28d31f=await AsyncStorage['getItem'](_0x2cf7b3[_0x4ab9(0xe5)])||await AsyncStorage[_0x4ab9(0xe6)](_0x4ab9(0xe7))||await AsyncStorage[_0x4ab9(0xe6)](_0x2cf7b3[_0x4ab9(0xe8)]);if(!_0x28d31f)throw new Error(_0x2cf7b3[_0x4ab9(0xe9)]);const _0x25b9bf=_0x4ab9(0xea)+_0x2dffaa;let _0x4efcf0=0x0;for(const _0x5eeab0 of _0x2a3dff){if(_0x4ab9(0xeb)!==_0x4ab9(0xeb))_0xfd1fd7[_0x4ab9(0x6b)]({'id':_0x58eea0['id']||_0x4ab9(0x63)+_0x18b839,'role':_0x4d43a7[_0x4ab9(0x64)]||_0x4ab9(0x6c),'content':_0x3f44e6[_0x4ab9(0x5d)]['parts'][_0x4ab9(0x91)]('\x0a'),'timestamp':_0x365da9[_0x4ab9(0x67)]});else try{if(_0x2cf7b3['KsTBr'](_0x2cf7b3[_0x4ab9(0xec)],'AAECH')){var _0x1f6b9f;if(_0x54e27c[_0x4ab9(0xed)](_0x22823e,null)&&_0x5366a1!==void 0x0&&_0x54e27c[_0x4ab9(0xee)](_0x1f6b9f=_0xf61652[_0x4ab9(0x5f)],null)&&_0x54e27c[_0x4ab9(0xef)](_0x1f6b9f,void 0x0)&&(_0x1f6b9f=_0x1f6b9f[_0x4ab9(0x5d)])!==null&&_0x1f6b9f!==void 0x0&&_0x1f6b9f[_0x4ab9(0x6a)]){const _0x5950c1=_0x98c066[_0x4ab9(0x5f)][_0x4ab9(0x5d)][_0x4ab9(0x6a)][_0x4ab9(0x91)]('\x0a');if(_0x5950c1[_0x4ab9(0x62)]()){var _0x4539eb;_0x35a544[_0x4ab9(0x6b)]({'id':_0x61bdd7[_0x4ab9(0x5f)]['id']||_0x4ab9(0x63)+_0x1e67e0,'role':((_0x4539eb=_0x3c9885[_0x4ab9(0x5f)][_0x4ab9(0x65)])===null||_0x54e27c[_0x4ab9(0xf0)](_0x4539eb,void 0x0)?void 0x0:_0x4539eb[_0x4ab9(0x64)])||_0x54e27c[_0x4ab9(0xf1)],'content':_0x5950c1,'timestamp':_0x4da20d[_0x4ab9(0x5f)][_0x4ab9(0x80)]?new _0x69eb23(_0x54e27c[_0x4ab9(0xf2)](_0x571c97['message']['create_time'],0x3e8))[_0x4ab9(0x93)]():_0x2ead39});}}}else{const _0x264cd8=await _0x2cf7b3['ackTp'](fetch,API_CONFIG[_0x4ab9(0xf3)]+_0x4ab9(0xf4),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x4ab9(0xf5)+_0x28d31f},'body':JSON['stringify']({'platform':_0x25b9bf,'conversationData':{'conversationId':_0x5eeab0[_0x4ab9(0xf6)],'messages':_0x5eeab0[_0x4ab9(0xaf)],'context':_0x5eeab0[_0x4ab9(0xf7)],'mobileMetadata':{'platform':Platform['OS'],'appVersion':_0x2cf7b3['gfrfs'],'osVersion':Platform[_0x4ab9(0xf8)],'isOfflineSync':![]}},'memoryType':_0x2cf7b3[_0x4ab9(0xf9)],'metadata':{'source':_0x2cf7b3[_0x4ab9(0xfa)],'importedAt':new Date()['toISOString'](),'originalPlatform':_0x2dffaa}})});if(_0x264cd8['ok'])_0x4efcf0++;else{if(_0x2cf7b3[_0x4ab9(0x50)](_0x2cf7b3[_0x4ab9(0xfb)],_0x4ab9(0xfc)))_0x54e27c[_0x4ab9(0xfd)](_0x78658f,_0x4ab9(0x1d)),_0x54e27c[_0x4ab9(0xfd)](_0x1f3c3e,_0x5d139e[_0x4ab9(0x79)]);else{const _0x328aad=await _0x264cd8[_0x4ab9(0x5e)]();console['error'](_0x4ab9(0xfe)+_0x5eeab0[_0x4ab9(0xf6)]+':',_0x328aad);}}}}catch(_0x4363b7){console[_0x4ab9(0x96)](_0x4ab9(0xff),_0x4363b7);}}if(_0x2cf7b3[_0x4ab9(0x100)](_0x4efcf0,0x0))await AsyncStorage['setItem'](_0x4ab9(0x101)+_0x2dffaa,JSON[_0x4ab9(0x102)]({'connected':!![],'platform':_0x2dffaa,'conversationsCount':_0x4efcf0,'lastSyncAt':new Date()[_0x4ab9(0x93)]()})),_0x2cf7b3[_0x4ab9(0x99)](triggerHaptic,HapticType[_0x4ab9(0xd0)]),Alert[_0x4ab9(0x103)](_0x2cf7b3[_0x4ab9(0x104)],_0x4ab9(0x105)+_0x4efcf0+_0x4ab9(0x106)+(_0x2cf7b3[_0x4ab9(0x107)](_0x4efcf0,0x1)?'s':'')+_0x4ab9(0x108)+_0x5c6065+'.',[{'text':'OK','onPress':()=>_0xca3597(_0x2dffaa)}]);else throw new Error(_0x2cf7b3[_0x4ab9(0x109)]);}}catch(_0x4c258a){console[_0x4ab9(0x96)](_0x2cf7b3['aRUnX'],_0x4c258a),_0xb063a3(_0x4c258a['message']||_0x2cf7b3[_0x4ab9(0x10a)]),_0x2cf7b3[_0x4ab9(0x10b)](triggerHaptic,HapticType['ERROR']);}finally{_0x3752cc(![]);}},_0x4256bd=()=>{if(_0x2cf7b3[_0x4ab9(0x10c)](_0x2cf7b3[_0x4ab9(0x10d)],_0x2cf7b3[_0x4ab9(0x10d)]))_0xfcdf68('File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.'),_0x2cf7b3[_0x4ab9(0x84)](_0x113f0d,_0x869d56['ERROR']);else{const _0x572b9f=_0x2cf7b3[_0x4ab9(0x10e)][_0x4ab9(0x10f)]('|');let _0x261d29=0x0;while(!![]){switch(_0x572b9f[_0x261d29++]){case'0':_0x2cf7b3[_0x4ab9(0x110)](_0x31921d);continue;case'1':_0x2cf7b3[_0x4ab9(0x111)](_0xb063a3,null);continue;case'2':_0x16d868(_0x2cf7b3[_0x4ab9(0x112)]);continue;case'3':_0x2cf7b3[_0x4ab9(0x113)](_0x18406b,null);continue;case'4':_0x2cf7b3[_0x4ab9(0x114)](_0x15c4e9,null);continue;case'5':_0x2cf7b3[_0x4ab9(0x84)](_0x336635,'');continue;}break;}}};return React[_0x4ab9(0x115)](Modal,{'visible':_0xd58bcd,'animationType':_0x2cf7b3[_0x4ab9(0x116)],'presentationStyle':_0x2cf7b3[_0x4ab9(0x117)],'onRequestClose':_0x4256bd},React['createElement'](KeyboardAvoidingView,{'style':styles[_0x4ab9(0x118)],'behavior':_0x2cf7b3[_0x4ab9(0x50)](Platform['OS'],_0x2cf7b3[_0x4ab9(0x119)])?_0x2cf7b3['lphYw']:_0x2cf7b3[_0x4ab9(0x11a)]},React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x11b)]},React[_0x4ab9(0x115)](TouchableOpacity,{'style':styles[_0x4ab9(0x11c)],'onPress':_0x4256bd},React['createElement'](Text,{'style':styles[_0x4ab9(0x11d)]},_0x4ab9(0x11e))),React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x11f)]},_0x31bc20),React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x11c)]})),React[_0x4ab9(0x115)](ScrollView,{'style':styles[_0x4ab9(0x5d)],'contentContainerStyle':styles[_0x4ab9(0x120)],'keyboardShouldPersistTaps':_0x2cf7b3['ibAAf']},React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x121)]},React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x122)]},_0x322191)),React['createElement'](View,{'style':styles[_0x4ab9(0x123)]},React[_0x4ab9(0x115)](TouchableOpacity,{'style':[styles[_0x4ab9(0x124)],_0x2cf7b3[_0x4ab9(0xdd)](_0xe82a62,_0x2cf7b3[_0x4ab9(0x112)])&&styles[_0x4ab9(0x125)]],'onPress':()=>{_0x2cf7b3[_0x4ab9(0x50)](_0x2cf7b3[_0x4ab9(0x126)],_0x4ab9(0x2e))?(_0x2cf7b3['SBOKL'](_0x16d868,_0x4ab9(0x2d)),_0x2cf7b3[_0x4ab9(0x127)](triggerHaptic,HapticType[_0x4ab9(0x79)])):_0x155f2f[_0x4ab9(0x0)]('react-native-document-picker not available - file upload disabled');}},React[_0x4ab9(0x115)](Text,{'style':[styles[_0x4ab9(0x128)],_0x2cf7b3['VTJDZ'](_0xe82a62,_0x4ab9(0x2d))&&styles[_0x4ab9(0x129)]]},_0x2cf7b3[_0x4ab9(0x12a)])),React[_0x4ab9(0x115)](TouchableOpacity,{'style':[styles[_0x4ab9(0x124)],_0x2cf7b3[_0x4ab9(0x12b)](_0xe82a62,_0x2cf7b3[_0x4ab9(0xd7)])&&styles[_0x4ab9(0x125)],!FILE_UPLOAD_AVAILABLE&&styles[_0x4ab9(0x12c)]],'onPress':()=>{const _0x54beea={'gYoKK':function(_0x33a19b,_0x33037f){return _0x2cf7b3[_0x4ab9(0x89)](_0x33a19b,_0x33037f);},'pSzhl':_0x2cf7b3['LykWh'],'PriNz':_0x2cf7b3[_0x4ab9(0x52)],'pEMfN':function(_0x498db2,_0x3502e2){return _0x498db2===_0x3502e2;},'CRrqu':_0x2cf7b3[_0x4ab9(0x12d)],'SUbZA':_0x2cf7b3[_0x4ab9(0x9f)]};if(_0x2cf7b3[_0x4ab9(0x53)](_0x2cf7b3['IJDbG'],_0x4ab9(0x12e))){if(FILE_UPLOAD_AVAILABLE)_0x16d868(_0x4ab9(0x1d)),_0x2cf7b3[_0x4ab9(0x12f)](triggerHaptic,HapticType['BUTTON_PRESS']);else{if(_0x2cf7b3[_0x4ab9(0x89)](_0x2cf7b3['WhQTM'],_0x2cf7b3[_0x4ab9(0x130)])){const _0x18ace8={'YNyyX':function(_0x2b6b37,_0x1c0826){return _0x54beea[_0x4ab9(0x131)](_0x2b6b37,_0x1c0826);},'fdypv':_0x54beea[_0x4ab9(0x132)],'UKdNB':function(_0x12b3d6,_0x16995a){return _0x12b3d6!==_0x16995a;},'YLmxT':_0x54beea[_0x4ab9(0x133)]};_0x59b544['messages'][_0x4ab9(0x71)]((_0xaeeb40,_0x424cd1)=>{var _0x5ec34a;const _0x5676ea=_0xaeeb40[_0x4ab9(0x5d)]||_0xaeeb40['text']||_0xaeeb40[_0x4ab9(0x5f)]||'';if(_0x18ace8[_0x4ab9(0x134)](typeof _0x5676ea,_0x18ace8[_0x4ab9(0x135)])&&_0x5676ea[_0x4ab9(0x62)]())_0x109497[_0x4ab9(0x6b)]({'id':_0xaeeb40['id']||_0x4ab9(0x63)+_0x424cd1,'role':_0xaeeb40['role']||_0xaeeb40[_0x4ab9(0x65)]||_0x4ab9(0x6c),'content':_0x5676ea,'timestamp':_0xaeeb40[_0x4ab9(0x67)]||_0xaeeb40[_0x4ab9(0x68)]});else _0x18ace8['UKdNB'](_0x5ec34a=_0xaeeb40['content'],null)&&_0x18ace8[_0x4ab9(0x136)](_0x5ec34a,void 0x0)&&_0x5ec34a[_0x4ab9(0x6a)]&&_0x595e8c[_0x4ab9(0x6b)]({'id':_0xaeeb40['id']||_0x4ab9(0x63)+_0x424cd1,'role':_0xaeeb40[_0x4ab9(0x64)]||_0x18ace8[_0x4ab9(0x137)],'content':_0xaeeb40[_0x4ab9(0x5d)]['parts'][_0x4ab9(0x91)]('\x0a'),'timestamp':_0xaeeb40[_0x4ab9(0x67)]});});}else _0xb063a3(_0x2cf7b3['DRKXk']),_0x2cf7b3['QuFYq'](triggerHaptic,HapticType[_0x4ab9(0x85)]);}}else _0x19cb15[_0x4ab9(0x6b)]({'id':_0x2acb2c[_0x4ab9(0xb8)]||_0x4ab9(0x63)+_0xbfdca6,'role':_0x54beea[_0x4ab9(0x138)](_0x3c75ed[_0x4ab9(0x139)],_0x54beea[_0x4ab9(0x13a)])?'user':_0x54beea['SUbZA'],'content':_0x2dc99f['text']||_0x12a694[_0x4ab9(0x5d)],'timestamp':_0x1a14cf['created_at']});}},React['createElement'](Text,{'style':[styles[_0x4ab9(0x128)],_0x2cf7b3[_0x4ab9(0x13b)](_0xe82a62,_0x2cf7b3['uOZmr'])&&styles[_0x4ab9(0x129)],!FILE_UPLOAD_AVAILABLE&&styles[_0x4ab9(0x13c)]]},_0x2cf7b3['kojcp'],_0x2cf7b3[_0x4ab9(0x13d)](!FILE_UPLOAD_AVAILABLE,_0x2cf7b3[_0x4ab9(0x13e)])))),_0x2cf7b3[_0x4ab9(0x13f)](_0xe82a62,_0x2cf7b3['AiluV'])?React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x140)]},React[_0x4ab9(0x115)](TextInput,{'style':styles['textInput'],'multiline':!![],'placeholder':_0x27baf9,'placeholderTextColor':COLORS[_0x4ab9(0x141)],'value':_0x5e701d,'onChangeText':_0x336635,'textAlignVertical':_0x2cf7b3[_0x4ab9(0x142)],'autoCapitalize':_0x2cf7b3['iNSPP'],'autoCorrect':![]})):React[_0x4ab9(0x115)](View,{'style':styles['fileInputContainer']},React[_0x4ab9(0x115)](TouchableOpacity,{'style':styles[_0x4ab9(0x143)],'onPress':_0x1946c2},React[_0x4ab9(0x115)](Text,{'style':styles['filePickIcon']},'📁'),React['createElement'](Text,{'style':styles[_0x4ab9(0x144)]},_0x2cf7b3[_0x4ab9(0x145)](_0x4fc6d7,_0x2cf7b3[_0x4ab9(0x146)]))),_0x4fc6d7&&React['createElement'](View,{'style':styles['fileSelectedContainer']},React['createElement'](Text,{'style':styles['fileSelectedText']},'✓\x20',_0x4fc6d7))),_0x2c3248&&React[_0x4ab9(0x115)](View,{'style':styles['errorContainer']},React[_0x4ab9(0x115)](Text,{'style':styles['errorText']},_0x2c3248)),_0x5e701d[_0x4ab9(0x75)]>0x0&&React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x147)]},React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x148)]},_0x4ab9(0x149)),React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x14a)],'numberOfLines':0x5},_0x5e701d['substring'](0x0,0x1f4),_0x5e701d[_0x4ab9(0x75)]>0x1f4?_0x2cf7b3[_0x4ab9(0x14b)]:''),React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x14c)]},_0x5e701d[_0x4ab9(0x75)][_0x4ab9(0x14d)](),_0x2cf7b3[_0x4ab9(0x14e)]))),React[_0x4ab9(0x115)](View,{'style':styles[_0x4ab9(0x14f)]},React[_0x4ab9(0x115)](TouchableOpacity,{'style':[styles[_0x4ab9(0x150)],(!_0x5e701d['trim']()||_0x535597)&&styles['submitButtonDisabled']],'onPress':_0xf07dd8,'disabled':!_0x5e701d[_0x4ab9(0x62)]()||_0x535597},_0x535597?React[_0x4ab9(0x115)](ActivityIndicator,{'color':_0x2cf7b3[_0x4ab9(0x151)],'size':_0x2cf7b3[_0x4ab9(0x152)]}):React[_0x4ab9(0x115)](Text,{'style':styles[_0x4ab9(0x153)]},'Import\x20Conversations')))));},styles=StyleSheet[_0x4ab9(0x154)]({'container':{'flex':0x1,'backgroundColor':COLORS['surface']},'header':{'flexDirection':_0x4ab9(0x155),'alignItems':_0x4ab9(0x156),'justifyContent':_0x4ab9(0x157),'paddingHorizontal':0x10,'paddingTop':Platform['OS']==='ios'?0xc:0x10,'paddingBottom':0xc,'borderBottomWidth':0x1,'borderBottomColor':_0x4ab9(0x158)},'headerTitle':{'fontSize':0x11,'fontWeight':_0x4ab9(0x159),'color':COLORS[_0x4ab9(0x15a)],'fontFamily':_0x4ab9(0x15b)},'closeButton':{'width':0x3c},'closeButtonText':{'fontSize':0x10,'color':'#3B82F6','fontFamily':_0x4ab9(0x15c)},'content':{'flex':0x1},'contentContainer':{'padding':0x14,'paddingBottom':0x28},'instructionsContainer':{'backgroundColor':_0x4ab9(0x15d),'borderRadius':0xc,'padding':0x10,'marginBottom':0x14},'instructionsText':{'fontSize':0xe,'lineHeight':0x14,'color':_0x4ab9(0x15e),'fontFamily':_0x4ab9(0x15c)},'tabContainer':{'flexDirection':_0x4ab9(0x155),'backgroundColor':_0x4ab9(0x15f),'borderRadius':0xa,'padding':0x4,'marginBottom':0x14},'tab':{'flex':0x1,'paddingVertical':0xa,'borderRadius':0x8,'alignItems':_0x4ab9(0x156)},'tabActive':{'backgroundColor':_0x4ab9(0x160),'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x1},'shadowOpacity':0.1,'shadowRadius':0x2,'elevation':0x2},'tabText':{'fontSize':0xe,'fontWeight':_0x4ab9(0x161),'color':COLORS[_0x4ab9(0x162)],'fontFamily':_0x4ab9(0x15c)},'tabTextActive':{'color':COLORS[_0x4ab9(0x15a)]},'tabDisabled':{'opacity':0.5},'tabTextDisabled':{'color':COLORS['grey400']},'inputContainer':{'marginBottom':0x14},'textInput':{'backgroundColor':_0x4ab9(0x160),'borderWidth':0x1,'borderColor':COLORS[_0x4ab9(0x163)],'borderRadius':0xc,'padding':0x10,'minHeight':0xc8,'fontSize':0xe,'fontFamily':Platform['OS']==='ios'?_0x4ab9(0x164):_0x4ab9(0x165),'color':COLORS['grey800']},'fileInputContainer':{'marginBottom':0x14},'filePickButton':{'backgroundColor':_0x4ab9(0x160),'borderWidth':0x2,'borderColor':COLORS['grey300'],'borderStyle':'dashed','borderRadius':0xc,'padding':0x28,'alignItems':_0x4ab9(0x156),'justifyContent':_0x4ab9(0x156)},'filePickIcon':{'fontSize':0x28,'marginBottom':0xc},'filePickText':{'fontSize':0xf,'color':COLORS[_0x4ab9(0x166)],'fontFamily':_0x4ab9(0x15c)},'fileSelectedContainer':{'marginTop':0xc,'backgroundColor':_0x4ab9(0x167),'borderRadius':0x8,'padding':0xc},'fileSelectedText':{'fontSize':0xe,'color':_0x4ab9(0x168),'fontFamily':_0x4ab9(0x15c),'fontWeight':_0x4ab9(0x161)},'errorContainer':{'backgroundColor':_0x4ab9(0x169),'borderRadius':0x8,'padding':0xc,'marginBottom':0x10},'errorText':{'fontSize':0xe,'color':_0x4ab9(0x16a),'fontFamily':_0x4ab9(0x15c)},'previewContainer':{'backgroundColor':_0x4ab9(0x15f),'borderRadius':0xc,'padding':0x10},'previewTitle':{'fontSize':0xe,'fontWeight':_0x4ab9(0x159),'color':COLORS[_0x4ab9(0x15a)],'marginBottom':0x8,'fontFamily':_0x4ab9(0x15c)},'previewText':{'fontSize':0xc,'color':COLORS[_0x4ab9(0x166)],'fontFamily':Platform['OS']===_0x4ab9(0x33)?_0x4ab9(0x164):_0x4ab9(0x165),'lineHeight':0x12},'previewInfo':{'fontSize':0xc,'color':COLORS[_0x4ab9(0x162)],'marginTop':0x8,'fontFamily':_0x4ab9(0x15c)},'footer':{'padding':0x14,'paddingBottom':Platform['OS']===_0x4ab9(0x33)?0x22:0x14,'borderTopWidth':0x1,'borderTopColor':'#E5E7EB','backgroundColor':COLORS[_0x4ab9(0x16b)]},'submitButton':{'backgroundColor':_0x4ab9(0x16c),'borderRadius':0xc,'paddingVertical':0x10,'alignItems':'center','justifyContent':_0x4ab9(0x156)},'submitButtonDisabled':{'backgroundColor':COLORS[_0x4ab9(0x163)]},'submitButtonText':{'fontSize':0x10,'fontWeight':_0x4ab9(0x159),'color':'#FFFFFF','fontFamily':_0x4ab9(0x15c)}});export default LLMDataInputModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from'react';import{View,StyleSheet,TouchableOpacity,Text}from'react-native';import{COLORS,SPACING}from'../theme';const ModalHeader=({onClose:
|
|
1
|
+
import React from'react';import{View,StyleSheet,TouchableOpacity,Text}from'react-native';function _0x2be6(_0x571ea6,_0x2be6df){_0x571ea6=_0x571ea6-0x0;const _0x28e7b9=_0x571e();let _0x2ac9a8=_0x28e7b9[_0x571ea6];return _0x2ac9a8;}import{COLORS,SPACING}from'../theme';function _0x571e(){const _0xdf8ecb=['Close','createElement','Fragment','grabber','container','closeButton','NUnSz','IGEZs','closeText','create','100%','center','row','flex-start','grey800','500'];_0x571e=function(){return _0xdf8ecb;};return _0x571e();}const ModalHeader=({onClose:_0x466700,onBack:_0x180781,showGrabber:showGrabber=!![],showBackButton:showBackButton=![]})=>{const _0x227cab={'iZwnt':'Go\x20back','NUnSz':'button','IGEZs':_0x2be6(0x0)};return React[_0x2be6(0x1)](React[_0x2be6(0x2)],null,showGrabber&&React[_0x2be6(0x1)](View,{'style':styles['grabberContainer']},React[_0x2be6(0x1)](View,{'style':styles[_0x2be6(0x3)]})),React[_0x2be6(0x1)](View,{'style':styles[_0x2be6(0x4)]},showBackButton?React['createElement'](TouchableOpacity,{'style':styles[_0x2be6(0x5)],'onPress':_0x180781,'activeOpacity':0.7,'accessibilityLabel':_0x227cab['iZwnt'],'accessibilityRole':_0x227cab[_0x2be6(0x6)]},React[_0x2be6(0x1)](Text,{'style':styles['backText']},'←')):React['createElement'](TouchableOpacity,{'style':styles['closeButton'],'onPress':_0x466700,'activeOpacity':0.7,'accessibilityLabel':_0x227cab[_0x2be6(0x7)],'accessibilityRole':'button'},React[_0x2be6(0x1)](Text,{'style':styles[_0x2be6(0x8)]},'✕')),React[_0x2be6(0x1)](View,{'style':styles['centerSpacer']}),React[_0x2be6(0x1)](View,{'style':styles['spacer']})));},styles=StyleSheet[_0x2be6(0x9)]({'grabberContainer':{'width':_0x2be6(0xa),'alignItems':_0x2be6(0xb),'paddingTop':0xc,'paddingBottom':0x4},'grabber':{'width':0x64,'height':0x6,'backgroundColor':'#D0D0D0','borderRadius':0x3},'container':{'flexDirection':_0x2be6(0xc),'alignItems':'flex-start','justifyContent':_0x2be6(0xd),'height':0x2c,'paddingTop':0x0,'paddingLeft':0x4,'marginBottom':SPACING['md']},'closeButton':{'width':0x24,'height':0x24,'justifyContent':_0x2be6(0xb),'alignItems':_0x2be6(0xb),'marginTop':0x0},'closeText':{'fontSize':0x14,'color':COLORS[_0x2be6(0xe)],'fontWeight':_0x2be6(0xf)},'backText':{'fontSize':0x18,'color':COLORS['grey800'],'fontWeight':_0x2be6(0xf)},'centerSpacer':{'flex':0x1},'spacer':{'width':0x2c,'height':0x2c}});export{ModalHeader};export default ModalHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from'react';import{View,StyleSheet}from'react-native';import{COLORS,BORDER_RADIUS,SPACING}from'../theme';
|
|
1
|
+
function _0x498c(){const _0x42772d=['modalTopPadding','createElement','container','bottom','create','surface','modalTop','modalHorizontal','80%'];_0x498c=function(){return _0x42772d;};return _0x498c();}import React from'react';import{View,StyleSheet}from'react-native';import{COLORS,BORDER_RADIUS,SPACING}from'../theme';const ModalSheet=({children:_0x32be75,topPadding:topPadding=SPACING[_0x2b41(0x0)],onClose:_0x4c46c9,showGrabber:showGrabber=!![],style:_0x1bb9ae})=>{const _0x3d1fe2={'bottom':0x14};return React[_0x2b41(0x1)](View,{'style':[styles[_0x2b41(0x2)],{'paddingTop':topPadding,'paddingBottom':_0x3d1fe2[_0x2b41(0x3)]||SPACING['lg']},_0x1bb9ae]},_0x32be75);},styles=StyleSheet[_0x2b41(0x4)]({'container':{'backgroundColor':COLORS[_0x2b41(0x5)],'borderTopLeftRadius':BORDER_RADIUS[_0x2b41(0x6)],'borderTopRightRadius':BORDER_RADIUS[_0x2b41(0x6)],'borderBottomLeftRadius':0x0,'borderBottomRightRadius':0x0,'paddingHorizontal':SPACING[_0x2b41(0x7)],'flex':0x1,'minHeight':_0x2b41(0x8)}});function _0x2b41(_0x498c70,_0x2b419c){_0x498c70=_0x498c70-0x0;const _0x49f977=_0x498c();let _0x832458=_0x49f977[_0x498c70];return _0x832458;}export{ModalSheet};export default ModalSheet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React,{forwardRef,useImperativeHandle,useState,useCallback,useEffect}from'react';import{StyleSheet,View,TouchableOpacity,Text,Image,Alert}from'react-native';import{UniversalOnboarding}from'./UniversalOnboarding';import{COLORS}from'../constants';import{hasCredentials,getCredentials}from'../utils/secureStorage';import{initializeApiKey,isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{API_CONFIG}from'../config/api';import{BRAND_IMAGES}from'../utils/assetRegistry';export const Onairos=forwardRef((_0x50274f,_0x1d39b9)=>{const _0x96092f={'BeOsw':function(_0x1b9404,_0x229443){return _0x1b9404(_0x229443);},'ZOuti':'✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully','kQtbj':function(_0x19908d,_0x14fedc,_0x40fced,_0x362934){return _0x19908d(_0x14fedc,_0x40fced,_0x362934);},'sZmTU':_0x349a(0x0),'orwcc':_0x349a(0x1),'hfgsr':_0x349a(0x2),'tgZoh':function(_0x1b8d8f,_0x364da0){return _0x1b8d8f!==_0x364da0;},'HnMNI':_0x349a(0x3),'efkLb':_0x349a(0x4),'updpJ':function(_0x93939a,_0x1ca7d6){return _0x93939a(_0x1ca7d6);},'rRcdT':function(_0x5ef8b2,_0x126ba1){return _0x5ef8b2(_0x126ba1);},'JkgnQ':_0x349a(0x5),'FYukS':function(_0x1950cc,_0x34f10b){return _0x1950cc instanceof _0x34f10b;},'Vgvfq':_0x349a(0x6),'xGRhm':_0x349a(0x7),'gpiHi':'GlyYt','bbkjK':_0x349a(0x8),'OCrOq':function(_0x58ceb9,_0x290036){return _0x58ceb9(_0x290036);},'ZvyxL':function(_0x4d4ccd,_0x4926c7){return _0x4d4ccd(_0x4926c7);},'oPSTd':_0x349a(0x9),'HiaJQ':_0x349a(0xa),'DmFVu':_0x349a(0xb),'FBYZq':function(_0x25767e,_0x41ce46){return _0x25767e===_0x41ce46;},'NMbvx':'dSOlM','ysqlv':'OCdmT','MzknX':function(_0xef854a,_0x9ca310){return _0xef854a!==_0x9ca310;},'MiMuV':_0x349a(0xc),'lzVmw':'UABxm','OBSQt':function(_0x504897,_0x321b08){return _0x504897(_0x321b08);},'wTtzB':_0x349a(0xd),'jmvna':_0x349a(0xe),'WEUpw':_0x349a(0xf),'xDIWo':_0x349a(0x10),'dOzai':function(_0x1f5aae){return _0x1f5aae();},'kHaMr':function(_0x120aa3,_0x4726d3){return _0x120aa3!==_0x4726d3;},'gLake':function(_0x4ce0aa){return _0x4ce0aa();},'Qlzmh':function(_0x5e9d73,_0x4ce8d6){return _0x5e9d73(_0x4ce8d6);},'ndEIa':function(_0x1825fb,_0x427e1e){return _0x1825fb===_0x427e1e;},'cElid':'rPGko','hqXCt':_0x349a(0x11),'gLxtq':'✅\x20Pre-check\x20passed','KsLmo':_0x349a(0x12),'dyNdp':_0x349a(0x13),'pogJz':_0x349a(0x14),'dTSYy':function(_0x22fbce,_0xf5a992){return _0x22fbce===_0xf5a992;},'IJgZT':_0x349a(0x15),'KGjej':_0x349a(0x16),'SyddS':'🔍\x20Running\x20pre-check\x20validation...','Yapmk':_0x349a(0x17),'VxsxZ':function(_0xde67fd,_0x55325c){return _0xde67fd===_0x55325c;},'HsICC':_0x349a(0x18),'sOWKq':_0x349a(0x19),'BYLIB':function(_0x44bbd8,_0x29984d){return _0x44bbd8(_0x29984d);},'ggWnt':_0x349a(0x1a),'mskuv':'🔍\x20Checking\x20for\x20existing\x20credentials...','xvcqx':'DxgKC','YbbbP':_0x349a(0x1b),'aybEk':function(_0x502f7b){return _0x502f7b();},'WUGnH':function(_0x1db9c5,_0x5d47a8){return _0x1db9c5&&_0x5d47a8;},'Mjdds':_0x349a(0x1c),'lVxHQ':_0x349a(0x1d),'jfkKd':_0x349a(0x1e),'YpWtW':_0x349a(0x1f),'gsGNX':function(_0x304e2b,_0x2a33c2,_0x18e1e9,_0x32e70a){return _0x304e2b(_0x2a33c2,_0x18e1e9,_0x32e70a);},'zUxAy':_0x349a(0x20),'oXUzz':_0x349a(0x21),'Dwlpj':function(_0x3b3eb7,_0x3440c9){return _0x3b3eb7(_0x3440c9);},'DPuDv':'fVXKh','suhTr':'❌\x20Error\x20opening\x20overlay:','fgwUR':_0x349a(0x22),'GgzDg':function(_0x482d4d,_0x236dc2){return _0x482d4d&&_0x236dc2;},'tDPSl':function(_0x5536bd,_0x31eab0){return _0x5536bd===_0x31eab0;},'QLQSl':_0x349a(0x23),'eOwIx':function(_0x317925,_0xe4f309){return _0x317925(_0xe4f309);},'gbFrb':_0x349a(0x24),'EweyY':function(_0x572dd1,_0x1e1c6e){return _0x572dd1!==_0x1e1c6e;},'DaAil':'pill','zKmud':function(_0x5e52fb,_0x59b741){return _0x5e52fb/_0x59b741;},'UalGN':_0x349a(0x25),'RkfEQ':_0x349a(0x26),'DfQNB':_0x349a(0x27),'IpWZx':_0x349a(0x28),'JBQsd':function(_0xa40839,_0x188926){return _0xa40839(_0x188926);},'zUNpw':function(_0x4ae48a,_0x2e8c30){return _0x4ae48a(_0x2e8c30);},'aldEs':function(_0x29c453,_0xb0f708,_0x618cee){return _0x29c453(_0xb0f708,_0x618cee);},'MfJNC':function(_0xeb6a27,_0x4b8944,_0x1417d0){return _0xeb6a27(_0x4b8944,_0x1417d0);},'YmmPE':function(_0x171629,_0x27b847){return _0x171629||_0x27b847;},'yxldx':function(_0x4c37fa){return _0x4c37fa();},'GCSzS':'#fff','HdQlT':function(_0x5c9242,_0x39ec13){return _0x5c9242||_0x39ec13;}},{returnLink:_0x37aae5,prefillUrl:_0x8a8b7b,AppName:_0x923b4f,buttonType:buttonType='normal',requestData:_0x7dd635,buttonWidth:buttonWidth=0xc8,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x96092f['IpWZx'],onRejection:_0x97d573,onResolved:_0x227897,preCheck:_0x50e829,color:color=COLORS[_0x349a(0x29)],debug:debug=![],darkMode:darkMode=![],preferredPlatform:_0x54633b,testMode:testMode=![],apiKey:_0x15c330,environment:environment=_0x349a(0x2a),enableLogging:enableLogging=!![],timeout:timeout=0x7530,retryAttempts:retryAttempts=0x3}=_0x50274f,[_0x3bcfef,_0x2b370c]=_0x96092f['BeOsw'](useState,![]),[_0x4d104c,_0x3635d2]=_0x96092f[_0x349a(0x2b)](useState,![]),[_0x6ae781,_0x112db3]=_0x96092f[_0x349a(0x2c)](useState,null),[_0x3ea271,_0x317e6e]=_0x96092f[_0x349a(0x2d)](useState,![]);useEffect(()=>{const _0x3f33bc={'GVoTy':_0x349a(0x2e),'twfYC':_0x96092f[_0x349a(0x2f)],'CeVie':_0x96092f[_0x349a(0x30)],'wtKHY':_0x96092f[_0x349a(0x31)],'eTeaj':_0x349a(0x16),'EtjwD':function(_0x18dfd8,_0x24a843){return _0x96092f['updpJ'](_0x18dfd8,_0x24a843);},'fMhqm':_0x349a(0x24),'rGVJV':function(_0x917a5d,_0x39eaa6){return _0x96092f['MzknX'](_0x917a5d,_0x39eaa6);},'WfoDP':_0x96092f['xDIWo']};var _0x337d4f;let _0x9d71ee=!![];const _0x35df72=async()=>{const _0xb66662={'vaBBK':function(_0x458ad4,_0x2c3e4e){return _0x96092f[_0x349a(0x32)](_0x458ad4,_0x2c3e4e);},'XTkaA':function(_0x398028,_0x4f5327){return _0x398028(_0x4f5327);},'bCdGK':_0x96092f[_0x349a(0x33)],'taxEg':_0x349a(0x34),'rkdSN':function(_0x4fb6be,_0x14b85b){return _0x96092f[_0x349a(0x32)](_0x4fb6be,_0x14b85b);},'Hzflv':function(_0x4c3f44,_0x4c4737,_0x3b93eb,_0x4aa7ae){return _0x96092f[_0x349a(0x35)](_0x4c3f44,_0x4c4737,_0x3b93eb,_0x4aa7ae);},'xTyIv':_0x349a(0x27),'iYXFg':_0x96092f[_0x349a(0x36)],'DmHTp':_0x96092f[_0x349a(0x37)]};if(_0x3ea271)return;_0x96092f[_0x349a(0x32)](_0x317e6e,!![]),_0x112db3(null);try{console[_0x349a(0x38)](_0x96092f[_0x349a(0x39)]);if(!_0x15c330){if(_0x96092f[_0x349a(0x3a)](_0x96092f[_0x349a(0x3b)],_0x96092f[_0x349a(0x3c)]))throw new Error(_0x349a(0x11));else _0x5d00dd[_0x349a(0x38)](_0x3f33bc[_0x349a(0x3d)]);}const _0x45db08={'apiKey':_0x15c330,'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts};await _0x96092f[_0x349a(0x3e)](initializeApiKey,_0x45db08),_0x9d71ee&&(_0x96092f[_0x349a(0x3f)](_0x3635d2,!![]),_0x96092f[_0x349a(0x32)](_0x112db3,null),enableLogging&&(console[_0x349a(0x38)](_0x349a(0x40)),console[_0x349a(0x38)](_0x96092f[_0x349a(0x41)],{'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts,'apiKeyLength':_0x15c330[_0x349a(0x42)]})));}catch(_0x551f74){const _0x393955=_0x96092f[_0x349a(0x43)](_0x551f74,Error)?_0x551f74['message']:_0x96092f[_0x349a(0x44)];console[_0x349a(0x45)](_0x96092f['xGRhm'],_0x393955),_0x9d71ee&&(_0x96092f['tgZoh'](_0x96092f['gpiHi'],_0x96092f['bbkjK'])?(_0x96092f[_0x349a(0x46)](_0x3635d2,![]),_0x96092f[_0x349a(0x47)](_0x112db3,_0x393955),enableLogging&&(_0x96092f['oPSTd']===_0x96092f[_0x349a(0x48)]?(console[_0x349a(0x49)](_0x349a(0x4a)),console[_0x349a(0x38)](_0x96092f[_0x349a(0x4b)]),console['log'](_0x349a(0x4c)),console['log'](_0x349a(0x4d)),console[_0x349a(0x38)](_0x96092f['DmFVu']),console[_0x349a(0x38)](_0x349a(0x4e)),console[_0x349a(0x4f)]()):(_0xb66662[_0x349a(0x50)](_0x394ffa,!![]),_0xb66662['XTkaA'](_0x52ce6e,null),_0x388fe5&&(_0x365a9b['log'](_0xb66662[_0x349a(0x51)]),_0x174450['log'](_0x349a(0x5),{'environment':_0xd3fd46,'enableLogging':_0xf70bb8,'timeout':_0x1092a3,'retryAttempts':_0x13af2e,'apiKeyLength':_0x13185e[_0x349a(0x42)]})))),_0x97d573&&(_0x96092f[_0x349a(0x52)](_0x96092f['NMbvx'],_0x96092f['ysqlv'])?(_0x3b8db2[_0x349a(0x38)](_0xb66662[_0x349a(0x53)],_0x47c4ff),_0xb66662[_0x349a(0x54)](_0x2c3c0f,![]),_0x17348['log'](_0x349a(0x22)),_0x615f4d&&_0x116337&&_0xb66662['Hzflv'](_0x4cead8,_0x2bd7ba['apiUrl'],_0x34c577[_0x349a(0x55)],_0x1e2f2b['userData'])):_0x96092f[_0x349a(0x32)](_0x97d573,_0x349a(0x56)+_0x393955))):_0xb66662[_0x349a(0x57)](_0x5162bc,![]));}finally{if(_0x96092f[_0x349a(0x58)](_0x96092f[_0x349a(0x59)],_0x96092f[_0x349a(0x5a)]))_0x9d71ee&&_0x96092f[_0x349a(0x5b)](_0x317e6e,![]);else switch(_0x347c2c){case _0xb66662[_0x349a(0x5c)]:return _0xb66662[_0x349a(0x5d)];default:return _0xb66662[_0x349a(0x5e)];}}};if(_0x15c330&&(!_0x96092f['dOzai'](isApiKeyInitialized)||_0x96092f[_0x349a(0x5f)]((_0x337d4f=_0x96092f[_0x349a(0x60)](getApiConfig))===null||_0x96092f[_0x349a(0x52)](_0x337d4f,void 0x0)?void 0x0:_0x337d4f[_0x349a(0x61)],_0x15c330)))_0x96092f['gLake'](_0x35df72);else{if(_0x96092f['gLake'](isApiKeyInitialized)){_0x96092f[_0x349a(0x3f)](_0x3635d2,!![]),_0x96092f['Qlzmh'](_0x317e6e,![]);if(enableLogging){if(_0x96092f[_0x349a(0x62)](_0x96092f[_0x349a(0x63)],_0x349a(0x64)))console[_0x349a(0x38)](_0x349a(0x2e));else return React[_0x349a(0x65)](View,{'style':_0x363804['loadingContainer']},React[_0x349a(0x65)](TouchableOpacity,{'style':[_0x2a40bb[_0x349a(0x66)],{'backgroundColor':_0x3f33bc['twfYC']}],'disabled':!![]},React[_0x349a(0x65)](Text,{'style':_0x468aa6[_0x349a(0x67)]},_0x3f33bc[_0x349a(0x68)])));}}}return()=>{const _0x2889a1={'ddhrV':_0x3f33bc[_0x349a(0x69)],'yaonQ':_0x3f33bc[_0x349a(0x6a)],'WCmbS':function(_0x3c1811,_0x2c095b){return _0x3f33bc[_0x349a(0x6b)](_0x3c1811,_0x2c095b);},'lkPbH':_0x3f33bc[_0x349a(0x6c)]};if(_0x3f33bc[_0x349a(0x6d)](_0x3f33bc[_0x349a(0x6e)],_0x3f33bc['WfoDP'])){const _0x2f1c7a=_0x3f5ea2||_0x2889a1[_0x349a(0x6f)];_0xea6f25[_0x349a(0x45)](_0x2889a1[_0x349a(0x70)]);_0x53e3df?_0x2889a1[_0x349a(0x71)](_0x47a2e9,_0x2f1c7a):Alert[_0x349a(0x72)](_0x2889a1['lkPbH'],_0x2f1c7a,[{'text':'OK'}]);return;}else _0x9d71ee=![];};},[_0x15c330,environment,enableLogging,timeout,retryAttempts,_0x97d573]),_0x96092f['aldEs'](useImperativeHandle,_0x1d39b9,()=>({'openOverlay':_0x512494,'closeOverlay':_0x29f015,'isInitialized':()=>_0x4d104c,'getApiConfig':()=>getApiConfig()}));const _0x512494=_0x96092f[_0x349a(0x73)](useCallback,async()=>{const _0x185df6={'xjlGy':_0x349a(0x74),'nWgBM':function(_0x257ac0,_0x3cd1b0,_0x11afd3,_0x28db4d){return _0x257ac0(_0x3cd1b0,_0x11afd3,_0x28db4d);},'UAXbJ':function(_0x48d8a6,_0x58803f){return _0x96092f[_0x349a(0x5b)](_0x48d8a6,_0x58803f);}};console[_0x349a(0x38)](_0x96092f[_0x349a(0x75)],_0x4d104c,_0x349a(0x76),_0x3ea271,_0x349a(0x77),_0x3bcfef);try{if(!_0x4d104c){if(_0x96092f[_0x349a(0x78)](_0x349a(0x15),_0x96092f[_0x349a(0x79)])){const _0x50a416=_0x6ae781||_0x96092f[_0x349a(0x31)];console[_0x349a(0x45)](_0x96092f[_0x349a(0x7a)]);_0x97d573?_0x96092f[_0x349a(0x5b)](_0x97d573,_0x50a416):Alert[_0x349a(0x72)](_0x349a(0x24),_0x50a416,[{'text':'OK'}]);return;}else throw new _0x24e267(_0x96092f['hqXCt']);}if(_0x50e829){enableLogging&&console[_0x349a(0x38)](_0x96092f['SyddS']);try{if(_0x96092f[_0x349a(0x52)](_0x96092f[_0x349a(0x7b)],_0x349a(0x7c)))_0x47ed0c['log'](_0x185df6[_0x349a(0x7d)],_0x481bd0);else{const _0x2b7c47=await _0x96092f[_0x349a(0x7e)](_0x50e829);if(!_0x2b7c47){enableLogging&&console[_0x349a(0x38)](_0x96092f[_0x349a(0x7f)]);return;}if(enableLogging){if(_0x96092f[_0x349a(0x80)](_0x96092f[_0x349a(0x81)],_0x96092f['sOWKq'])){_0xecc478&&_0x4a9e61[_0x349a(0x38)](_0x349a(0x13));return;}else console[_0x349a(0x38)](_0x96092f[_0x349a(0x82)]);}}}catch(_0x20ab45){console[_0x349a(0x45)](_0x96092f['KsLmo'],_0x20ab45);_0x97d573&&_0x96092f[_0x349a(0x83)](_0x97d573,_0x349a(0x84)+_0x20ab45['message']);return;}}enableLogging&&(_0x96092f[_0x349a(0x58)](_0x96092f[_0x349a(0x85)],_0x96092f['ggWnt'])?_0x7d9283[_0x349a(0x38)](_0x96092f[_0x349a(0x82)]):console[_0x349a(0x38)](_0x96092f['mskuv']));const _0x10c393=await _0x96092f['gLake'](hasCredentials);if(_0x10c393){enableLogging&&(_0x96092f[_0x349a(0x52)](_0x349a(0x86),_0x96092f[_0x349a(0x87)])?console['log'](_0x96092f[_0x349a(0x88)]):_0x185df6[_0x349a(0x89)](_0x573c89,_0x4e74af['apiUrl'],_0x1057e9['token'],_0x2aaef5[_0x349a(0x8a)]));try{const _0x4c748e=await _0x96092f[_0x349a(0x8b)](getCredentials);if(_0x96092f[_0x349a(0x8c)](_0x4c748e,_0x227897)){if(_0x96092f['tgZoh'](_0x96092f[_0x349a(0x8d)],_0x349a(0x8e))){const _0x271413=API_CONFIG[_0x349a(0x8f)]+_0x349a(0x90),_0x4dbf1f=_0x96092f[_0x349a(0x91)];enableLogging&&(_0x96092f[_0x349a(0x58)](_0x96092f[_0x349a(0x92)],_0x96092f['jfkKd'])?_0x185df6[_0x349a(0x93)](_0x34727e,_0x4f1735):console[_0x349a(0x38)](_0x96092f[_0x349a(0x94)]));_0x96092f[_0x349a(0x95)](_0x227897,_0x271413,_0x4dbf1f,_0x4c748e);return;}else{_0x2a969e[_0x349a(0x45)](_0x96092f[_0x349a(0x96)],_0xe4403d);_0x2f8d46&&_0x5432a6(_0x349a(0x84)+_0x377177[_0x349a(0x97)]);return;}}}catch(_0x231541){console[_0x349a(0x98)](_0x96092f[_0x349a(0x99)],_0x231541);}}enableLogging&&console['log'](_0x96092f['oXUzz']),_0x96092f['Dwlpj'](_0x2b370c,!![]);}catch(_0x506f78){_0x96092f[_0x349a(0x5f)](_0x96092f[_0x349a(0x9a)],_0x96092f[_0x349a(0x9a)])?_0x19bdd1[_0x349a(0x38)](_0x96092f[_0x349a(0x7f)]):(console['error'](_0x96092f[_0x349a(0x9b)],_0x506f78),_0x97d573&&_0x96092f['BeOsw'](_0x97d573,_0x349a(0x9c)+_0x506f78[_0x349a(0x97)]));}},[_0x4d104c,_0x6ae781,_0x50e829,enableLogging,_0x97d573,_0x227897]),_0x29f015=_0x96092f[_0x349a(0x9d)](useCallback,_0x45a0dd=>{console[_0x349a(0x38)](_0x349a(0x34),_0x45a0dd),_0x2b370c(![]),console['log'](_0x96092f[_0x349a(0x9e)]),_0x96092f[_0x349a(0x9f)](_0x45a0dd,_0x227897)&&_0x227897(_0x45a0dd[_0x349a(0xa0)],_0x45a0dd[_0x349a(0x55)],_0x45a0dd['userData']);},[enableLogging,_0x227897]),_0x364531=useCallback(_0x3075fa=>{_0x96092f[_0x349a(0xa1)]('lwYIk','lwYIk')?(enableLogging&&(_0x96092f[_0x349a(0xa2)]===_0x96092f[_0x349a(0xa2)]?console[_0x349a(0x38)](_0x349a(0x74),_0x3075fa):_0x41e636&&_0x96092f[_0x349a(0x46)](_0x4ee88b,![])),_0x96092f[_0x349a(0x2d)](_0x2b370c,![]),_0x97d573&&_0x96092f[_0x349a(0xa3)](_0x97d573,_0x3075fa)):_0x122284[_0x349a(0x38)]('🔑\x20Existing\x20credentials\x20found,\x20attempting\x20automatic\x20resolution...');},[enableLogging,_0x97d573]);if(_0x6ae781&&!_0x3ea271)return React[_0x349a(0x65)](View,{'style':styles[_0x349a(0xa4)]},React[_0x349a(0x65)](TouchableOpacity,{'style':[styles[_0x349a(0xa5)],{'backgroundColor':'#FF6B6B'}],'onPress':()=>{_0x96092f[_0x349a(0xa6)](_0x349a(0xa7),_0x349a(0xa7))?Alert[_0x349a(0x72)](_0x96092f[_0x349a(0xa8)],_0x349a(0xa9)+_0x17bc29+'\x0a\x0aPlease\x20check\x20your\x20API\x20key\x20and\x20try\x20again.',[{'text':'OK'}]):Alert[_0x349a(0x72)](_0x96092f[_0x349a(0xa8)],_0x349a(0xa9)+_0x6ae781+'\x0a\x0aPlease\x20check\x20your\x20API\x20key\x20and\x20try\x20again.',[{'text':'OK'}]);}},React[_0x349a(0x65)](Text,{'style':styles[_0x349a(0xaa)]},'⚠️\x20SDK\x20Error')));if(_0x96092f['YmmPE'](_0x3ea271,!_0x4d104c))return React[_0x349a(0x65)](View,{'style':styles[_0x349a(0xab)]},React[_0x349a(0x65)](TouchableOpacity,{'style':[styles[_0x349a(0x66)],{'backgroundColor':_0x96092f[_0x349a(0x2f)]}],'disabled':!![]},React[_0x349a(0x65)](Text,{'style':styles[_0x349a(0x67)]},_0x96092f[_0x349a(0x30)])));const _0x574b18=()=>{const _0x33d1d4={'width':buttonWidth,'height':buttonHeight,'backgroundColor':color,'borderRadius':_0x96092f[_0x349a(0x52)](buttonType,_0x96092f[_0x349a(0xac)])?_0x96092f[_0x349a(0xad)](buttonHeight,0x2):0x8,'alignItems':_0x349a(0xae),'justifyContent':'center','flexDirection':'row','opacity':enabled?0x1:0.6};return hasStroke&&(_0x33d1d4[_0x349a(0xaf)]=0x2,_0x33d1d4['borderColor']=darkMode?_0x349a(0xb0):_0x96092f[_0x349a(0xb1)]),_0x33d1d4;},_0x621f05=()=>{if(_0x96092f[_0x349a(0x52)](_0x96092f['RkfEQ'],_0x96092f[_0x349a(0xb2)]))switch(buttonForm){case _0x96092f[_0x349a(0xb3)]:return _0x96092f[_0x349a(0x36)];default:return _0x96092f[_0x349a(0x37)];}else _0x3df554('Failed\x20to\x20open\x20overlay:\x20'+_0xa82a6b[_0x349a(0x97)]);};return React[_0x349a(0x65)](React[_0x349a(0xb4)],null,React[_0x349a(0x65)](TouchableOpacity,{'style':_0x96092f[_0x349a(0xb5)](_0x574b18),'onPress':_0x512494,'disabled':!enabled||_0x3ea271||!_0x4d104c,'activeOpacity':0.8},React[_0x349a(0x65)](Image,{'source':BRAND_IMAGES['onairosLogoAlt'],'style':styles[_0x349a(0xb6)],'resizeMode':'contain'}),React[_0x349a(0x65)](Text,{'style':[styles[_0x349a(0xb7)],{'color':darkMode?_0x96092f[_0x349a(0xb1)]:_0x96092f[_0x349a(0xb8)]}]},_0x96092f[_0x349a(0x8b)](_0x621f05))),React[_0x349a(0x65)](UniversalOnboarding,{'visible':_0x3bcfef,'onClose':_0x29f015,'AppName':_0x923b4f,'requestData':_0x96092f[_0x349a(0xb9)](_0x7dd635,{}),'returnLink':_0x37aae5,'onComplete':_0x29f015,'embedd':![],'debug':debug,'testMode':testMode,'preferredPlatform':_0x54633b}));});const styles=StyleSheet[_0x349a(0xba)]({'button':{'flexDirection':'row','alignItems':_0x349a(0xae),'justifyContent':_0x349a(0xae),'paddingVertical':0xc,'paddingHorizontal':0x10,'shadowColor':_0x349a(0x25),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'buttonContent':{'flexDirection':_0x349a(0xbb),'alignItems':_0x349a(0xae),'justifyContent':'center'},'logo':{'width':0x18,'height':0x18,'marginRight':0x8},'buttonText':{'fontSize':0x10,'fontWeight':_0x349a(0xbc),'textAlign':_0x349a(0xae)},'errorContainer':{'flex':0x1,'justifyContent':_0x349a(0xae),'alignItems':_0x349a(0xae)},'errorButton':{'padding':0x10,'borderRadius':0x8},'errorButtonText':{'fontSize':0x10,'fontWeight':_0x349a(0xbc),'color':_0x349a(0xb0)},'loadingContainer':{'flex':0x1,'justifyContent':_0x349a(0xae),'alignItems':_0x349a(0xae)},'loadingButton':{'padding':0x10,'borderRadius':0x8},'loadingButtonText':{'fontSize':0x10,'fontWeight':_0x349a(0xbc),'color':_0x349a(0xb0)}});function _0x349a(_0x1c8c5a,_0x349a47){_0x1c8c5a=_0x1c8c5a-0x0;const _0x1a6e85=_0x1c8c();let _0x224a67=_0x1a6e85[_0x1c8c5a];return _0x224a67;}function _0x1c8c(){const _0x220037=['Connect\x20with\x20Onairos','Continue\x20with\x20Onairos','🚀\x20Onairos\x20SDK:\x20Starting\x20API\x20key\x20initialization...','dizBk','CSnNf','📊\x20Configuration:','Unknown\x20initialization\x20error','❌\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20failed:','Unqay','gGqrX','1.\x20Check\x20that\x20your\x20API\x20key\x20is\x20correct\x20and\x20not\x20expired','4.\x20Check\x20your\x20internet\x20connection','IJKRE','#999','🔄\x20Initializing...','SDK\x20not\x20initialized.\x20Please\x20check\x20your\x20API\x20key.','RygnW','API\x20key\x20is\x20required.\x20Please\x20provide\x20a\x20valid\x20API\x20key\x20from\x20your\x20Onairos\x20dashboard.','❌\x20Pre-check\x20error:','⛔\x20Pre-check\x20failed,\x20aborting\x20overlay','🔘\x20Button\x20pressed!\x20isInitialized:','QqwNq','❌\x20Cannot\x20open\x20overlay:\x20SDK\x20not\x20initialized','mCyNb','avWYK','sPtOp','EzazZ','🔑\x20Existing\x20credentials\x20found,\x20attempting\x20automatic\x20resolution...','iGhSg','existing_user_token','Wlsxn','✅\x20Resolving\x20with\x20existing\x20credentials','⚠️\x20Failed\x20to\x20retrieve\x20existing\x20credentials:','🎨\x20Opening\x20Onairos\x20overlay...','🔽\x20showOverlay\x20set\x20to\x20false','ASTNW','SDK\x20Error','#000','whLAp','connect','default','primary','production','JBQsd','zUNpw','eOwIx','✅\x20Onairos\x20component:\x20SDK\x20already\x20initialized,\x20syncing\x20state','wTtzB','jmvna','WEUpw','BeOsw','ZOuti','🔽\x20Closing\x20Onairos\x20overlay,\x20result:','kQtbj','sZmTU','orwcc','log','hfgsr','tgZoh','HnMNI','efkLb','GVoTy','updpJ','rRcdT','✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully','JkgnQ','length','FYukS','Vgvfq','error','OCrOq','ZvyxL','oPSTd','group','🔧\x20API\x20Key\x20Troubleshooting\x20Guide','HiaJQ','2.\x20Verify\x20you\x20have\x20the\x20right\x20permissions\x20for\x20your\x20use\x20case','3.\x20Ensure\x20your\x20environment\x20setting\x20matches\x20your\x20API\x20key','5.\x20Visit\x20https://dashboard.onairos.uk\x20to\x20manage\x20your\x20API\x20keys','groupEnd','vaBBK','bCdGK','FBYZq','taxEg','rkdSN','token','SDK\x20initialization\x20failed:\x20','XTkaA','MzknX','MiMuV','lzVmw','OBSQt','xTyIv','iYXFg','DmHTp','kHaMr','gLake','apiKey','ndEIa','cElid','rPGko','createElement','loadingButton','loadingButtonText','CeVie','wtKHY','eTeaj','EtjwD','fMhqm','rGVJV','WfoDP','ddhrV','yaonQ','WCmbS','alert','aldEs','❌\x20Overlay\x20rejected:','pogJz','isInitializing:','showOverlay:','dTSYy','IJgZT','KGjej','Yapmk','xOKOE','xjlGy','dOzai','dyNdp','VxsxZ','HsICC','gLxtq','BYLIB','Pre-check\x20failed:\x20','ggWnt','DxgKC','xvcqx','YbbbP','nWgBM','userData','aybEk','WUGnH','Mjdds','CtqmJ','BASE_URL','/user/data','lVxHQ','jfkKd','UAXbJ','YpWtW','gsGNX','KsLmo','message','warn','zUxAy','DPuDv','suhTr','Failed\x20to\x20open\x20overlay:\x20','MfJNC','fgwUR','GgzDg','apiUrl','tDPSl','QLQSl','Qlzmh','errorContainer','errorButton','EweyY','dvbcd','gbFrb','Onairos\x20SDK\x20initialization\x20failed:\x0a\x0a','errorButtonText','loadingContainer','DaAil','zKmud','center','borderWidth','#fff','UalGN','RkfEQ','DfQNB','Fragment','yxldx','logo','buttonText','GCSzS','HdQlT','create','row','600'];_0x1c8c=function(){return _0x220037;};return _0x1c8c();}
|
|
1
|
+
import React,{forwardRef,useImperativeHandle,useState,useCallback,useEffect}from'react';import{StyleSheet,View,TouchableOpacity,Text,Image,Alert}from'react-native';import{UniversalOnboarding}from'./UniversalOnboarding';import{COLORS}from'../constants';function _0x1b85(_0x4bb465,_0x1b8533){_0x4bb465=_0x4bb465-0x0;const _0x54b075=_0x4bb4();let _0x577b49=_0x54b075[_0x4bb465];return _0x577b49;}import{hasCredentials,getCredentials}from'../utils/secureStorage';import{initializeApiKey,isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{API_CONFIG}from'../config/api';import{BRAND_IMAGES}from'../utils/assetRegistry';export const Onairos=forwardRef((_0x59f424,_0x2a32ab)=>{const _0x1b248b={'znTpE':function(_0x15ed53,_0x260f7d){return _0x15ed53(_0x260f7d);},'LXhmI':_0x1b85(0x0),'xnJnS':_0x1b85(0x1),'TuJDG':'#FF6B6B','usEEq':_0x1b85(0x2),'NdIWB':function(_0x1bea39,_0x47a48e){return _0x1bea39(_0x47a48e);},'XyLqS':function(_0x32c3e3,_0x243c8a){return _0x32c3e3(_0x243c8a);},'kXieL':function(_0x47c51a,_0x1c88d6){return _0x47c51a!==_0x1c88d6;},'AmwGM':_0x1b85(0x3),'OuyNi':_0x1b85(0x4),'Skyfe':_0x1b85(0x5),'HREHt':function(_0x31cf42,_0x9a713f){return _0x31cf42===_0x9a713f;},'RhEsp':'AlGjq','zNOzX':function(_0x46c709,_0x559935){return _0x46c709(_0x559935);},'RAdxP':_0x1b85(0x6),'pWvIn':_0x1b85(0x7),'LmPCO':_0x1b85(0x8),'lRDhG':_0x1b85(0x9),'HODdj':'ZincW','bUBoS':_0x1b85(0xa),'UfULc':'1.\x20Check\x20that\x20your\x20API\x20key\x20is\x20correct\x20and\x20not\x20expired','rUkJY':'2.\x20Verify\x20you\x20have\x20the\x20right\x20permissions\x20for\x20your\x20use\x20case','gssoF':_0x1b85(0xb),'fQXEV':'4.\x20Check\x20your\x20internet\x20connection','MdKhM':'5.\x20Visit\x20https://dashboard.onairos.uk\x20to\x20manage\x20your\x20API\x20keys','EPRlY':_0x1b85(0xc),'lsYol':function(_0x2be8be,_0x2b0a0a){return _0x2be8be(_0x2b0a0a);},'gsNyy':function(_0x105886,_0x41e643){return _0x105886||_0x41e643;},'RTrDj':'SDK\x20not\x20initialized.\x20Please\x20check\x20your\x20API\x20key.','zjsYY':_0x1b85(0xd),'fAogj':function(_0x58802d,_0x4765d9){return _0x58802d(_0x4765d9);},'LqNMA':'🔍\x20Checking\x20for\x20existing\x20credentials...','NDvVw':'❌\x20Pre-check\x20error:','HMsIw':_0x1b85(0xe),'PzHvo':_0x1b85(0xf),'vPZhm':_0x1b85(0x10),'pUyOd':function(_0x31e50f){return _0x31e50f();},'HNSFY':function(_0x12bfbe){return _0x12bfbe();},'VcTiQ':function(_0x39303b){return _0x39303b();},'PDfIw':_0x1b85(0x11),'jAsss':_0x1b85(0x12),'mqPPY':function(_0x128eb2,_0x15d2cb){return _0x128eb2(_0x15d2cb);},'woLMf':'✅\x20Onairos\x20component:\x20SDK\x20already\x20initialized,\x20syncing\x20state','aoCzp':'pill','jiJaf':_0x1b85(0x13),'rOYom':'#000','LXWgB':_0x1b85(0x14),'uGpZa':_0x1b85(0x15),'QXGxk':_0x1b85(0x16),'snSmE':function(_0x14f1fd,_0x46bf49){return _0x14f1fd&&_0x46bf49;},'qEQkS':function(_0x19ca09,_0xf68ea6,_0x4a0eae,_0xe97e35){return _0x19ca09(_0xf68ea6,_0x4a0eae,_0xe97e35);},'JKWdD':_0x1b85(0x17),'bwPMf':'VmIeR','gaeJC':_0x1b85(0x18),'qZTSr':_0x1b85(0x19),'YQWnc':function(_0x4d876c){return _0x4d876c();},'Iulcy':_0x1b85(0x1a),'Atxbx':function(_0x16bbaf){return _0x16bbaf();},'HLJWu':function(_0x532261,_0x5c32e1){return _0x532261!==_0x5c32e1;},'uUwUl':'KlTTM','iXDGc':'🔑\x20Existing\x20credentials\x20found,\x20attempting\x20automatic\x20resolution...','YYtaC':_0x1b85(0x1b),'FSLDI':function(_0x3b1842,_0x175ba3){return _0x3b1842&&_0x175ba3;},'OgsuX':_0x1b85(0x1c),'mqJVo':_0x1b85(0x1d),'YNOkJ':function(_0x215880,_0x14c33a){return _0x215880===_0x14c33a;},'YlKfp':_0x1b85(0x1e),'lJOdU':_0x1b85(0x1f),'xEcds':function(_0x53762f,_0x5c99c0){return _0x53762f(_0x5c99c0);},'WFrvT':_0x1b85(0x20),'ECmhS':_0x1b85(0x21),'hgJjC':function(_0x1d7394,_0x427632){return _0x1d7394(_0x427632);},'JQLST':function(_0x43c4e9,_0x4af0ee){return _0x43c4e9(_0x4af0ee);},'RIjis':function(_0x5900bb,_0x3a71c9,_0x52411d,_0x6457e2){return _0x5900bb(_0x3a71c9,_0x52411d,_0x6457e2);},'riHZC':function(_0xff9e57,_0x35a161){return _0xff9e57(_0x35a161);},'gKNln':function(_0x4423c6,_0x1a3b0f){return _0x4423c6===_0x1a3b0f;},'OIFnl':'row','BgbMq':_0x1b85(0x22),'dxDio':_0x1b85(0x23),'KIAqB':_0x1b85(0x24),'pPoTS':'Connect\x20with\x20Onairos','MMBxg':'default','uXADd':'production','fJBBK':function(_0x2322c5,_0x5b5d26){return _0x2322c5(_0x5b5d26);},'KcCwk':function(_0x1df198,_0x4ab8b3,_0x388782){return _0x1df198(_0x4ab8b3,_0x388782);},'akAxP':function(_0x3c0553,_0x12608d){return _0x3c0553||_0x12608d;},'DMhze':function(_0x4371da,_0x2d189b){return _0x4371da===_0x2d189b;},'Zgbgo':_0x1b85(0x25),'DwcLu':_0x1b85(0x26),'sgzfe':'contain','AKjiL':function(_0x27efca,_0x5acb3e){return _0x27efca||_0x5acb3e;}},{returnLink:_0x4caae0,prefillUrl:_0x3cc28c,AppName:_0x37944f,buttonType:buttonType=_0x1b85(0x27),requestData:_0x2d79de,buttonWidth:buttonWidth=0xc8,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x1b248b[_0x1b85(0x28)],onRejection:_0x386393,onResolved:_0x21f8ca,preCheck:_0x217423,color:color=COLORS[_0x1b85(0x29)],debug:debug=![],darkMode:darkMode=![],preferredPlatform:_0x471c31,testMode:testMode=![],apiKey:_0x203562,environment:environment=_0x1b248b[_0x1b85(0x2a)],enableLogging:enableLogging=!![],timeout:timeout=0x7530,retryAttempts:retryAttempts=0x3}=_0x59f424,[_0x31a950,_0x238665]=_0x1b248b[_0x1b85(0x2b)](useState,![]),[_0x3567ea,_0x218597]=_0x1b248b[_0x1b85(0x2c)](useState,![]),[_0x2bcd43,_0x38dc29]=_0x1b248b[_0x1b85(0x2d)](useState,null),[_0x91ca92,_0x4e4421]=useState(![]);useEffect(()=>{const _0x2e57f5={'tuWZO':function(_0x8a37c,_0x2c64a0){return _0x1b248b[_0x1b85(0x2e)](_0x8a37c,_0x2c64a0);},'qkuDL':_0x1b248b[_0x1b85(0x2f)],'jDjgi':_0x1b248b[_0x1b85(0x30)],'qwSZQ':function(_0x27c3b5,_0x545efc){return _0x1b248b[_0x1b85(0x31)](_0x27c3b5,_0x545efc);},'LEtWF':function(_0x35fb27,_0x38eec7){return _0x35fb27===_0x38eec7;},'QenvM':_0x1b248b[_0x1b85(0x32)]};if(_0x1b248b[_0x1b85(0x33)](_0x1b248b[_0x1b85(0x34)],_0x1b248b[_0x1b85(0x35)]))_0x1b248b[_0x1b85(0x2d)](_0x29c291,_0x5e467);else{var _0x5c3038;let _0x3df2ea=!![];const _0x39fcb0=async()=>{const _0x260c67={'pbRQD':_0x1b248b[_0x1b85(0x36)],'PqmTY':_0x1b248b[_0x1b85(0x37)],'WcvbU':_0x1b248b[_0x1b85(0x38)],'odeQW':_0x1b248b[_0x1b85(0x39)],'hAhML':function(_0xa9f9ff,_0x318e6c){return _0xa9f9ff(_0x318e6c);}};if(_0x91ca92)return;_0x1b248b[_0x1b85(0x3a)](_0x4e4421,!![]),_0x1b248b['XyLqS'](_0x38dc29,null);try{if(_0x1b248b[_0x1b85(0x3b)](_0x1b85(0x3),_0x1b248b[_0x1b85(0x3c)]))_0x2e57f5['tuWZO'](_0x2c09f3,_0x1b85(0x3d)+_0x3f7129['message']);else{console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x3f)]);if(!_0x203562){if(_0x1b85(0x5)!==_0x1b248b['Skyfe'])_0xc87ae9[_0x1b85(0x3e)](_0x260c67[_0x1b85(0x40)]);else throw new Error(_0x1b85(0x23));}const _0x1db912={'apiKey':_0x203562,'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts};await _0x1b248b['znTpE'](initializeApiKey,_0x1db912);if(_0x3df2ea){if(_0x1b248b[_0x1b85(0x33)](_0x1b248b[_0x1b85(0x41)],_0x1b248b[_0x1b85(0x41)]))_0x218597(!![]),_0x1b248b['zNOzX'](_0x38dc29,null),enableLogging&&(console[_0x1b85(0x3e)](_0x1b248b['RAdxP']),console[_0x1b85(0x3e)](_0x1b85(0x42),{'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts,'apiKeyLength':_0x203562[_0x1b85(0x43)]}));else return React[_0x1b85(0x44)](View,{'style':_0x4f2d95[_0x1b85(0x45)]},React[_0x1b85(0x44)](TouchableOpacity,{'style':[_0x3f4ca7[_0x1b85(0x46)],{'backgroundColor':_0x260c67[_0x1b85(0x47)]}],'onPress':()=>{Alert[_0x1b85(0x48)](_0x260c67[_0x1b85(0x49)],_0x1b85(0x4a)+_0x1f8cb2+_0x1b85(0x4b),[{'text':'OK'}]);}},React[_0x1b85(0x44)](Text,{'style':_0x18a4d1['errorButtonText']},_0x260c67[_0x1b85(0x4c)])));}}}catch(_0x2f5233){const _0x2a4afd=_0x2f5233 instanceof Error?_0x2f5233[_0x1b85(0x4d)]:_0x1b248b[_0x1b85(0x4e)];console[_0x1b85(0x4f)](_0x1b248b[_0x1b85(0x50)],_0x2a4afd),_0x3df2ea&&(_0x1b248b[_0x1b85(0x51)]===_0x1b248b[_0x1b85(0x51)]?(_0x1b248b[_0x1b85(0x3a)](_0x218597,![]),_0x38dc29(_0x2a4afd),enableLogging&&(_0x1b248b['kXieL'](_0x1b85(0x52),_0x1b248b[_0x1b85(0x53)])?_0x260c67[_0x1b85(0x54)](_0x554217,_0x1b85(0x55)+_0x177e5f):(console[_0x1b85(0x56)](_0x1b248b['bUBoS']),console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x57)]),console['log'](_0x1b248b[_0x1b85(0x58)]),console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x59)]),console[_0x1b85(0x3e)](_0x1b248b['fQXEV']),console['log'](_0x1b248b[_0x1b85(0x5a)]),console['groupEnd']())),_0x386393&&(_0x1b248b[_0x1b85(0x5b)]===_0x1b248b['EPRlY']?_0x1b248b[_0x1b85(0x2b)](_0x386393,_0x1b85(0x55)+_0x2a4afd):_0xef13c9[_0x1b85(0x3e)](_0x1b85(0x1d)))):_0x2b05aa[_0x1b85(0x3e)](_0x2e57f5['qkuDL']));}finally{_0x3df2ea&&_0x1b248b['lsYol'](_0x4e4421,![]);}};if(_0x203562&&(!_0x1b248b[_0x1b85(0x5c)](isApiKeyInitialized)||_0x1b248b['kXieL'](_0x1b248b[_0x1b85(0x33)](_0x5c3038=_0x1b248b[_0x1b85(0x5d)](getApiConfig),null)||_0x5c3038===void 0x0?void 0x0:_0x5c3038[_0x1b85(0x5e)],_0x203562)))_0x39fcb0();else{if(_0x1b248b[_0x1b85(0x5f)](isApiKeyInitialized)){if(_0x1b248b[_0x1b85(0x60)]===_0x1b248b[_0x1b85(0x61)]){const _0x5bd0de=_0x1b248b[_0x1b85(0x62)](_0x29fcdb,_0x1b248b['RTrDj']);_0xf6f6f3[_0x1b85(0x4f)](_0x1b248b[_0x1b85(0x63)]);_0x122be9?_0x3b93c6(_0x5bd0de):Alert[_0x1b85(0x48)](_0x1b248b[_0x1b85(0x37)],_0x5bd0de,[{'text':'OK'}]);return;}else _0x1b248b[_0x1b85(0x64)](_0x218597,!![]),_0x1b248b[_0x1b85(0x3a)](_0x4e4421,![]),enableLogging&&console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x65)]);}}return()=>{const _0x28715c={'CawQd':_0x2e57f5[_0x1b85(0x66)],'gJPDE':function(_0x28af7a,_0x2c4756){return _0x2e57f5[_0x1b85(0x67)](_0x28af7a,_0x2c4756);}};if(_0x2e57f5['LEtWF'](_0x2e57f5['QenvM'],_0x2e57f5[_0x1b85(0x68)]))_0x3df2ea=![];else{_0x18d97b[_0x1b85(0x4f)](_0x28715c[_0x1b85(0x69)],_0x1324b7);_0x2cca47&&_0x28715c[_0x1b85(0x6a)](_0x373ae8,_0x1b85(0x6b)+_0x1396c4[_0x1b85(0x4d)]);return;}};}},[_0x203562,environment,enableLogging,timeout,retryAttempts,_0x386393]),_0x1b248b[_0x1b85(0x6c)](useImperativeHandle,_0x2a32ab,()=>({'openOverlay':_0x46a9f3,'closeOverlay':_0x2cba67,'isInitialized':()=>_0x3567ea,'getApiConfig':()=>getApiConfig()}));const _0x46a9f3=useCallback(async()=>{const _0x58d64e={'uYOFQ':function(_0x2471f3,_0x4dc728){return _0x2471f3(_0x4dc728);},'YmNnc':_0x1b248b[_0x1b85(0x6d)],'saSLw':_0x1b248b['uGpZa'],'CnbFp':_0x1b248b[_0x1b85(0x6e)],'mSEUx':function(_0x522ed8,_0x111b22){return _0x1b248b[_0x1b85(0x6f)](_0x522ed8,_0x111b22);},'KWchb':function(_0x296627,_0x52c006,_0x4a10d5,_0x53a571){return _0x1b248b[_0x1b85(0x70)](_0x296627,_0x52c006,_0x4a10d5,_0x53a571);}};console['log'](_0x1b248b[_0x1b85(0x71)],_0x3567ea,_0x1b85(0x72),_0x91ca92,'showOverlay:',_0x31a950);try{if(!_0x3567ea){const _0x32fe92=_0x2bcd43||_0x1b248b[_0x1b85(0x73)];console['error'](_0x1b248b[_0x1b85(0x63)]);if(_0x386393){if('XUkDo'===_0x1b248b[_0x1b85(0x74)]){const _0x476faa={'width':_0x3e0940,'height':_0x58389c,'backgroundColor':_0x2760ed,'borderRadius':_0x1b248b[_0x1b85(0x33)](_0x1eec19,_0x1b248b[_0x1b85(0x75)])?_0x1a736f/0x2:0x8,'alignItems':_0x1b85(0x13),'justifyContent':_0x1b248b[_0x1b85(0x76)],'flexDirection':_0x1b85(0x77),'opacity':_0x339104?0x1:0.6};return _0x4d94f7&&(_0x476faa[_0x1b85(0x78)]=0x2,_0x476faa[_0x1b85(0x79)]=_0xf0b21?_0x1b85(0x22):_0x1b248b[_0x1b85(0x6d)]),_0x476faa;}else _0x386393(_0x32fe92);}else Alert[_0x1b85(0x48)](_0x1b248b[_0x1b85(0x37)],_0x32fe92,[{'text':'OK'}]);return;}if(_0x217423){enableLogging&&(_0x1b248b[_0x1b85(0x7a)]!==_0x1b248b[_0x1b85(0x7b)]?console[_0x1b85(0x3e)](_0x1b85(0x7c)):(_0x359421[_0x1b85(0x4f)]('❌\x20Error\x20opening\x20overlay:',_0x1795fb),_0x51f7d3&&_0x58d64e['uYOFQ'](_0x5d8ee1,'Failed\x20to\x20open\x20overlay:\x20'+_0x6e266c[_0x1b85(0x4d)])));try{const _0x55b232=await _0x1b248b[_0x1b85(0x7d)](_0x217423);if(!_0x55b232){enableLogging&&console['log'](_0x1b248b[_0x1b85(0x7e)]);return;}enableLogging&&console[_0x1b85(0x3e)](_0x1b85(0x0));}catch(_0x5a2f1d){console[_0x1b85(0x4f)](_0x1b85(0x7f),_0x5a2f1d);_0x386393&&_0x1b248b[_0x1b85(0x2d)](_0x386393,_0x1b85(0x6b)+_0x5a2f1d[_0x1b85(0x4d)]);return;}}enableLogging&&console[_0x1b85(0x3e)](_0x1b248b['LqNMA']);const _0x418a99=await _0x1b248b[_0x1b85(0x80)](hasCredentials);if(_0x418a99){if(_0x1b248b['HLJWu'](_0x1b248b['uUwUl'],_0x1b85(0x81))){enableLogging&&console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x82)]);try{if(_0x1b85(0x1b)!==_0x1b248b['YYtaC'])_0x5604b7&&_0xd17d31[_0x1b85(0x3e)](_0x1b85(0x83),_0x1874a5),_0x1b248b[_0x1b85(0x84)](_0x2c9af5,![]),_0x28e1b5&&_0xb82410(_0x5ca59f);else{const _0x5e6798=await _0x1b248b[_0x1b85(0x5f)](getCredentials);if(_0x1b248b[_0x1b85(0x85)](_0x5e6798,_0x21f8ca)){const _0x1502c9=API_CONFIG['BASE_URL']+'/user/data',_0x40aedd=_0x1b248b[_0x1b85(0x86)];enableLogging&&console['log'](_0x1b248b[_0x1b85(0x87)]);_0x21f8ca(_0x1502c9,_0x40aedd,_0x5e6798);return;}}}catch(_0x4e682d){_0x1b248b[_0x1b85(0x88)](_0x1b248b[_0x1b85(0x89)],_0x1b85(0x1e))?console[_0x1b85(0x8a)](_0x1b248b[_0x1b85(0x8b)],_0x4e682d):(_0x184847['borderWidth']=0x2,_0xe14163['borderColor']=_0x33f548?_0x1b85(0x22):_0x58d64e['YmNnc']);}}else _0x5523ea['log'](_0x1b248b[_0x1b85(0x8c)]);}enableLogging&&console[_0x1b85(0x3e)](_0x1b85(0x14)),_0x1b248b[_0x1b85(0x8d)](_0x238665,!![]);}catch(_0x324d3b){_0x1b248b[_0x1b85(0x8e)]!==_0x1b248b[_0x1b85(0x8e)]?(_0x3638b7[_0x1b85(0x3e)](_0x58d64e[_0x1b85(0x8f)],_0x39c129),_0x58d64e['uYOFQ'](_0x5d02f3,![]),_0x42a038[_0x1b85(0x3e)](_0x58d64e[_0x1b85(0x90)]),_0x58d64e['mSEUx'](_0xa64584,_0x514622)&&_0x58d64e[_0x1b85(0x91)](_0x201ba4,_0x5154d1[_0x1b85(0x92)],_0x2d53ff[_0x1b85(0x93)],_0x16d84f[_0x1b85(0x94)])):(console[_0x1b85(0x4f)](_0x1b248b[_0x1b85(0x95)],_0x324d3b),_0x386393&&_0x1b248b['hgJjC'](_0x386393,_0x1b85(0x3d)+_0x324d3b[_0x1b85(0x4d)]));}},[_0x3567ea,_0x2bcd43,_0x217423,enableLogging,_0x386393,_0x21f8ca]),_0x2cba67=_0x1b248b[_0x1b85(0x6c)](useCallback,_0x373950=>{console[_0x1b85(0x3e)](_0x1b248b[_0x1b85(0x96)],_0x373950),_0x1b248b[_0x1b85(0x97)](_0x238665,![]),console[_0x1b85(0x3e)](_0x1b248b['QXGxk']),_0x1b248b['snSmE'](_0x373950,_0x21f8ca)&&_0x1b248b[_0x1b85(0x98)](_0x21f8ca,_0x373950[_0x1b85(0x92)],_0x373950[_0x1b85(0x93)],_0x373950[_0x1b85(0x94)]);},[enableLogging,_0x21f8ca]),_0xf35c88=useCallback(_0x512ca1=>{enableLogging&&console['log'](_0x1b85(0x83),_0x512ca1),_0x1b248b['fAogj'](_0x238665,![]),_0x386393&&_0x1b248b[_0x1b85(0x99)](_0x386393,_0x512ca1);},[enableLogging,_0x386393]);if(_0x2bcd43&&!_0x91ca92)return React[_0x1b85(0x44)](View,{'style':styles[_0x1b85(0x45)]},React[_0x1b85(0x44)](TouchableOpacity,{'style':[styles[_0x1b85(0x46)],{'backgroundColor':_0x1b248b[_0x1b85(0x38)]}],'onPress':()=>{Alert[_0x1b85(0x48)]('SDK\x20Error',_0x1b85(0x4a)+_0x2bcd43+_0x1b85(0x4b),[{'text':'OK'}]);}},React['createElement'](Text,{'style':styles[_0x1b85(0x9a)]},_0x1b85(0x2))));if(_0x1b248b[_0x1b85(0x9b)](_0x91ca92,!_0x3567ea)){if(_0x1b248b['DMhze']('vzssk',_0x1b85(0x9c)))return React[_0x1b85(0x44)](View,{'style':styles[_0x1b85(0x9d)]},React[_0x1b85(0x44)](TouchableOpacity,{'style':[styles[_0x1b85(0x9e)],{'backgroundColor':_0x1b248b[_0x1b85(0x9f)]}],'disabled':!![]},React[_0x1b85(0x44)](Text,{'style':styles['loadingButtonText']},_0x1b248b[_0x1b85(0xa0)])));else{const _0x531e4e=_0x4a244e[_0x1b85(0xa1)]+_0x1b85(0xa2),_0x484841=_0x1b248b[_0x1b85(0x86)];_0xa2b2be&&_0x51cf75[_0x1b85(0x3e)](_0x1b85(0x1d));_0x1b248b[_0x1b85(0x70)](_0x50bca2,_0x531e4e,_0x484841,_0x189015);return;}}const _0x531b84=()=>{const _0x5dabb7={'width':buttonWidth,'height':buttonHeight,'backgroundColor':color,'borderRadius':_0x1b248b[_0x1b85(0xa3)](buttonType,_0x1b248b[_0x1b85(0x75)])?buttonHeight/0x2:0x8,'alignItems':_0x1b248b[_0x1b85(0x76)],'justifyContent':'center','flexDirection':_0x1b248b['OIFnl'],'opacity':enabled?0x1:0.6};return hasStroke&&(_0x5dabb7[_0x1b85(0x78)]=0x2,_0x5dabb7[_0x1b85(0x79)]=darkMode?_0x1b248b[_0x1b85(0xa4)]:_0x1b248b['rOYom']),_0x5dabb7;},_0x4cf9d1=()=>{if(_0x1b248b[_0x1b85(0x88)](_0x1b248b[_0x1b85(0xa5)],_0x1b248b[_0x1b85(0xa5)]))switch(buttonForm){case _0x1b85(0xa6):return _0x1b248b[_0x1b85(0xa7)];default:return _0x1b85(0xa8);}else throw new _0x29df2c(_0x1b248b[_0x1b85(0xa9)]);};return React['createElement'](React[_0x1b85(0xaa)],null,React['createElement'](TouchableOpacity,{'style':_0x1b248b[_0x1b85(0x80)](_0x531b84),'onPress':_0x46a9f3,'disabled':_0x1b248b[_0x1b85(0x9b)](!enabled,_0x91ca92)||!_0x3567ea,'activeOpacity':0.8},React[_0x1b85(0x44)](Image,{'source':BRAND_IMAGES[_0x1b85(0xab)],'style':styles[_0x1b85(0xac)],'resizeMode':_0x1b248b[_0x1b85(0xad)]}),React[_0x1b85(0x44)](Text,{'style':[styles['buttonText'],{'color':darkMode?_0x1b248b['rOYom']:_0x1b85(0x22)}]},_0x1b248b[_0x1b85(0x80)](_0x4cf9d1))),React[_0x1b85(0x44)](UniversalOnboarding,{'visible':_0x31a950,'onClose':_0x2cba67,'AppName':_0x37944f,'requestData':_0x1b248b[_0x1b85(0xae)](_0x2d79de,{}),'returnLink':_0x4caae0,'onComplete':_0x2cba67,'embedd':![],'debug':debug,'testMode':testMode,'preferredPlatform':_0x471c31}));});const styles=StyleSheet['create']({'button':{'flexDirection':_0x1b85(0x77),'alignItems':'center','justifyContent':_0x1b85(0x13),'paddingVertical':0xc,'paddingHorizontal':0x10,'shadowColor':_0x1b85(0xaf),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'buttonContent':{'flexDirection':_0x1b85(0x77),'alignItems':_0x1b85(0x13),'justifyContent':'center'},'logo':{'width':0x18,'height':0x18,'marginRight':0x8},'buttonText':{'fontSize':0x10,'fontWeight':_0x1b85(0xb0),'textAlign':_0x1b85(0x13)},'errorContainer':{'flex':0x1,'justifyContent':_0x1b85(0x13),'alignItems':_0x1b85(0x13)},'errorButton':{'padding':0x10,'borderRadius':0x8},'errorButtonText':{'fontSize':0x10,'fontWeight':_0x1b85(0xb0),'color':_0x1b85(0x22)},'loadingContainer':{'flex':0x1,'justifyContent':_0x1b85(0x13),'alignItems':'center'},'loadingButton':{'padding':0x10,'borderRadius':0x8},'loadingButtonText':{'fontSize':0x10,'fontWeight':_0x1b85(0xb0),'color':'#fff'}});function _0x4bb4(){const _0x5260b6=['✅\x20Pre-check\x20passed','SDK\x20Error','⚠️\x20SDK\x20Error','ycbLh','🚀\x20Onairos\x20SDK:\x20Starting\x20API\x20key\x20initialization...','wJRnk','✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully','Unknown\x20initialization\x20error','❌\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20failed:','kcozf','🔧\x20API\x20Key\x20Troubleshooting\x20Guide','3.\x20Ensure\x20your\x20environment\x20setting\x20matches\x20your\x20API\x20key','nUumT','❌\x20Cannot\x20open\x20overlay:\x20SDK\x20not\x20initialized','OjSSM','OtUUB','SkfUt','iGwTk','tFntQ','center','🎨\x20Opening\x20Onairos\x20overlay...','🔽\x20Closing\x20Onairos\x20overlay,\x20result:','🔽\x20showOverlay\x20set\x20to\x20false','🔘\x20Button\x20pressed!\x20isInitialized:','iyIJw','CGWSI','⛔\x20Pre-check\x20failed,\x20aborting\x20overlay','MABgP','existing_user_token','✅\x20Resolving\x20with\x20existing\x20credentials','ClXbN','⚠️\x20Failed\x20to\x20retrieve\x20existing\x20credentials:','EbQLt','❌\x20Error\x20opening\x20overlay:','#fff','API\x20key\x20is\x20required.\x20Please\x20provide\x20a\x20valid\x20API\x20key\x20from\x20your\x20Onairos\x20dashboard.','UTibv','#999','🔄\x20Initializing...','normal','MMBxg','primary','uXADd','lsYol','fJBBK','znTpE','fAogj','LqNMA','NDvVw','zNOzX','HMsIw','HREHt','PzHvo','vPZhm','LXhmI','xnJnS','TuJDG','usEEq','NdIWB','kXieL','AmwGM','Failed\x20to\x20open\x20overlay:\x20','log','OuyNi','pbRQD','RhEsp','📊\x20Configuration:','length','createElement','errorContainer','errorButton','WcvbU','alert','PqmTY','Onairos\x20SDK\x20initialization\x20failed:\x0a\x0a','\x0a\x0aPlease\x20check\x20your\x20API\x20key\x20and\x20try\x20again.','odeQW','message','pWvIn','error','LmPCO','lRDhG','ZincW','HODdj','hAhML','SDK\x20initialization\x20failed:\x20','group','UfULc','rUkJY','gssoF','MdKhM','EPRlY','pUyOd','HNSFY','apiKey','VcTiQ','PDfIw','jAsss','gsNyy','zjsYY','mqPPY','woLMf','jDjgi','qwSZQ','QenvM','CawQd','gJPDE','Pre-check\x20failed:\x20','KcCwk','rOYom','QXGxk','snSmE','qEQkS','JKWdD','isInitializing:','RTrDj','bwPMf','aoCzp','jiJaf','row','borderWidth','borderColor','gaeJC','qZTSr','🔍\x20Running\x20pre-check\x20validation...','YQWnc','Iulcy','❌\x20Pre-check\x20error:','Atxbx','jBRrW','iXDGc','❌\x20Overlay\x20rejected:','XyLqS','FSLDI','OgsuX','mqJVo','YNOkJ','YlKfp','warn','lJOdU','LXWgB','xEcds','WFrvT','saSLw','CnbFp','KWchb','apiUrl','token','userData','ECmhS','uGpZa','JQLST','RIjis','riHZC','errorButtonText','akAxP','vzssk','loadingContainer','loadingButton','Zgbgo','DwcLu','BASE_URL','/user/data','gKNln','BgbMq','KIAqB','connect','pPoTS','Continue\x20with\x20Onairos','dxDio','Fragment','onairosLogoAlt','logo','sgzfe','AKjiL','#000','600'];_0x4bb4=function(){return _0x5260b6;};return _0x4bb4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React,{useState,useCallback,forwardRef,useImperativeHandle,useEffect}from'react';import{TouchableOpacity,Text,StyleSheet,View,ActivityIndicator,Dimensions,Image,Alert}from'react-native';import _0x333c46 from'react-native-linear-gradient';import{UniversalOnboarding}from'./UniversalOnboarding';import _0x56e80c from'./WelcomeScreen';import{isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{BRAND_IMAGES}from'../utils/assetRegistry';function _0x502f(){const _0x3c9ba9=['window','normal','right','black','IJPrj','qLLLA','[OnairosButton]\x20handlePress\x20called.','CQWYr','SDK\x20Not\x20Initialized','haQDO','[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:','...','nNATU','DrLXE','[OnairosButton]\x20Error\x20in\x20handlePress:','Unknown\x20error','Connect\x20Onairos','login','signup','Sign\x20up\x20with\x20Onairos','Onairos\x20SDK\x20not\x20initialized.\x20Developers\x20must\x20call\x20initializeApiKey()\x20with\x20a\x20valid\x20API\x20key\x20before\x20using\x20SDK\x20components.\x20Get\x20your\x20API\x20key\x20from\x20https://dashboard.onairos.uk','dxMSU','lKhEr','User\x20closed\x20onboarding','[OnairosButton]\x20Rendering\x20JSX\x20with\x20props:','pill','#f5e7c1','#C7A047','absolute','small','#FFFFFF','Small','Basic\x20tier','Free\x20access','Medium','Standard\x20tier','Full\x20personalization','onairosevents://auth/callback','MluRn','log','[OnairosButton]\x20Initializing.\x20Initial\x20showOnboarding:','laudH','YfBNT','xytqJ','[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','OBiGT','pKAau','OWIgL','sPSSQ','resolve','jmtkp','btQmh','gDwdh','hVyZi','AVhxz','xCvOT','DKIqX','xsVQu','error','ZPObb','alert','The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.','bpdLL','cEhRJ','CztIL','DlLUJ','uqZUi','apiKey','substring','iqDXt','vjeto','LQLQw','Precheck\x20validation\x20failed','IpfxJ','PoIVi','BNkWT','NDNYv','iQhOu','GXETN','kBxKx','xaTLm','message','JhEPa','YOaKC','QuHLj','MenWa','szGhw','kwNzI','aOxDc','connect','kJRZI','yNyxr','wnDQC','urtFz','JZOPS','tqYsa','zYPsc','gaHXs','Rybhh','tPRit','oKEZy','Pkxui','Ywjus','cUQtU','UWoHe','QarQb','OeRcg','RZDxx','createElement','button','pillButton','disabledButton','vwdza','ZDdYY','BQzfR','DvUwm','poSbo','buttonContent','onairosLogoAlt','logoImage','LZWAk','buttonText','NTMij','fErzs','XKmYE','cRFRX','lwghr','Large','Premium\x20tier','dNLAY','ZQXDN','wCcib','create','row','center','#000','hidden','bold','transparent'];_0x502f=function(){return _0x3c9ba9;};return _0x502f();}function _0x232e(_0x502fd6,_0x232ec0){_0x502fd6=_0x502fd6-0x0;const _0x3c2dd7=_0x502f();let _0x477321=_0x3c2dd7[_0x502fd6];return _0x477321;}const {width}=Dimensions['get'](_0x232e(0x0));export const OnairosButton=forwardRef(({AppName:_0x50f046,buttonType:buttonType=_0x232e(0x1),buttonWidth:buttonWidth=0xb4,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm='default',onResolved:_0x21f7ce,onRejection:_0x15332e,preCheck:_0x59e43d,color:color='#1BA9D4',swerv:swerv=![],darkMode:darkMode=![],returnLink:_0xed3f6c,preferredPlatform:_0x57ab7e,autoFetch:autoFetch=![],inferenceData:_0x5c13a1,textLayout:textLayout=_0x232e(0x2),textColor:textColor=_0x232e(0x3),proofMode:proofMode=![],webpageName:_0x259833,debug:debug=![],testMode:testMode=![],requestData:_0x559879,onPress:_0x5b605b,primaryAuthOnly:primaryAuthOnly=![],useNewWelcomeFlow:useNewWelcomeFlow=![]},_0x1b01f5)=>{const _0x2de671={'yLTqD':'[OnairosButton]\x20LogEffect:\x20showOnboarding\x20state\x20changed\x20to:','laudH':function(_0x1d21d9,_0xebaf70){return _0x1d21d9(_0xebaf70);},'YfBNT':function(_0x2157e9,_0x1558a8){return _0x2157e9!==_0x1558a8;},'xytqJ':_0x232e(0x4),'xsVQu':function(_0x19493d){return _0x19493d();},'Ethkb':function(_0x20a414,_0x568c9b){return _0x20a414!==_0x568c9b;},'OWIgL':_0x232e(0x5),'jmtkp':function(_0x5704a3,_0x269adc,_0x2cd276){return _0x5704a3(_0x269adc,_0x2cd276);},'btQmh':function(_0x53ca63,_0xdcc6a6){return _0x53ca63===_0xdcc6a6;},'gDwdh':_0x232e(0x6),'hVyZi':function(_0x1f17c3,_0x1b7ccf){return _0x1f17c3||_0x1b7ccf;},'AVhxz':function(_0x175149,_0x4ee488){return _0x175149(_0x4ee488);},'xCvOT':function(_0x5ad0d8,_0x1fb440){return _0x5ad0d8===_0x1fb440;},'DKIqX':_0x232e(0x7),'ZPObb':'❌\x20[OnairosButton]\x20SDK\x20NOT\x20INITIALIZED:','UWoHe':_0x232e(0x8),'bpdLL':function(_0x5d998c){return _0x5d998c();},'jCnUi':_0x232e(0x9),'Jaocu':_0x232e(0xa),'CztIL':function(_0x5152c5,_0x468b23){return _0x5152c5+_0x468b23;},'DlLUJ':function(_0x530374,_0x51ab88){return _0x530374===_0x51ab88;},'uqZUi':function(_0x346c15,_0x1e1fca){return _0x346c15===_0x1e1fca;},'iqDXt':_0x232e(0xb),'vjeto':_0x232e(0xc),'LQLQw':'[OnairosButton]\x20Precheck\x20failed.\x20Setting\x20showOnboarding\x20to\x20false\x20(indirectly,\x20by\x20not\x20setting\x20to\x20true).','PoIVi':'[OnairosButton]\x20handlePress:\x20Setting\x20showOnboarding\x20to\x20true.','NDNYv':function(_0x5f2f47,_0x64d1fd){return _0x5f2f47!==_0x64d1fd;},'iQhOu':_0x232e(0xd),'QuHLj':_0x232e(0xe),'MenWa':function(_0x592d92,_0x2ad552){return _0x592d92===_0x2ad552;},'szGhw':function(_0x5a2799,_0x2a4b1b){return _0x5a2799(_0x2a4b1b);},'kwNzI':function(_0x409cab,_0x518bdd){return _0x409cab instanceof _0x518bdd;},'aOxDc':_0x232e(0xf),'kJRZI':_0x232e(0x10),'yNyxr':_0x232e(0x11),'wnDQC':'Sign\x20in\x20with\x20Onairos','urtFz':_0x232e(0x12),'JZOPS':_0x232e(0x13),'NWhmh':_0x232e(0x14),'MluRn':function(_0x2fa095,_0x49c57c){return _0x2fa095(_0x49c57c);},'tqYsa':function(_0x5757a9,_0x154e2c){return _0x5757a9+_0x154e2c;},'zYPsc':'[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.','gaHXs':_0x232e(0x15),'Ywjus':_0x232e(0x16),'cUQtU':function(_0x5b7e18){return _0x5b7e18();},'uZUZK':'[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','OeRcg':_0x232e(0x17),'QarQb':function(_0x4ca601,_0x2dfcbd,_0xe8b1e5){return _0x4ca601(_0x2dfcbd,_0xe8b1e5);},'RZDxx':_0x232e(0x18),'DvUwm':_0x232e(0x19),'vwdza':_0x232e(0x1a),'ZDdYY':_0x232e(0x1b),'ChNna':'#8B6914','BQzfR':_0x232e(0x1c),'poSbo':_0x232e(0x1d),'LZWAk':'contain','NTMij':_0x232e(0x1e),'fErzs':function(_0x46742f){return _0x46742f();},'XKmYE':_0x232e(0x1f),'cRFRX':_0x232e(0x20),'pNHXY':_0x232e(0x21),'lwghr':_0x232e(0x22),'OVNJf':_0x232e(0x23),'zdtDa':'Premium\x20features','dNLAY':_0x232e(0x24),'ZQXDN':function(_0x58aa38,_0x9872eb){return _0x58aa38||_0x9872eb;},'wCcib':_0x232e(0x25)},[_0x15843c,_0x214a47]=useState(![]),[_0x315a9a,_0x5f2b9d]=_0x2de671[_0x232e(0x26)](useState,![]),[_0x3e5f38,_0x35534e]=useState(![]);console[_0x232e(0x27)](_0x232e(0x28),_0x3e5f38),useEffect(()=>{console[_0x232e(0x27)](_0x2de671['yLTqD'],_0x3e5f38);},[_0x3e5f38]),useImperativeHandle(_0x1b01f5,()=>({'trigger':async()=>{const _0x28e03b={'OBiGT':function(_0x34d799,_0x13999b){return _0x2de671[_0x232e(0x29)](_0x34d799,_0x13999b);},'pKAau':_0x232e(0x17)};if(_0x2de671[_0x232e(0x2a)](_0x2de671[_0x232e(0x2b)],_0x232e(0x4)))_0x1c36c7[_0x232e(0x27)](_0x232e(0x2c)),_0xc6600c(![]),_0x4acf86&&_0x28e03b[_0x232e(0x2d)](_0x4dd4ef,_0x28e03b[_0x232e(0x2e)]);else return await _0x2de671['xsVQu'](_0x951d5c),Promise['resolve']();},'reset':async()=>{const _0x805306={'sPSSQ':function(_0x34a8f0){return _0x2de671['xsVQu'](_0x34a8f0);}};if(_0x2de671['Ethkb'](_0x2de671[_0x232e(0x2f)],_0x2de671[_0x232e(0x2f)]))_0x805306[_0x232e(0x30)](_0x14d927);else return Promise[_0x232e(0x31)]();}}));const _0x951d5c=async()=>{const _0x1ebfe0={'IpfxJ':function(_0x547e85,_0x5604d9,_0x55f2cd){return _0x2de671[_0x232e(0x32)](_0x547e85,_0x5604d9,_0x55f2cd);},'BNkWT':function(_0x309b2b,_0x279075){return _0x2de671[_0x232e(0x29)](_0x309b2b,_0x279075);},'GXETN':_0x232e(0xe),'kBxKx':function(_0x406cc4,_0x3ffd42){return _0x2de671[_0x232e(0x33)](_0x406cc4,_0x3ffd42);},'xaTLm':function(_0x3ebf0e,_0xea3920){return _0x2de671[_0x232e(0x29)](_0x3ebf0e,_0xea3920);},'JhEPa':_0x232e(0xf),'YOaKC':function(_0xa3b113,_0x3ab37f){return _0xa3b113(_0x3ab37f);}};console['log'](_0x2de671[_0x232e(0x34)]);if(_0x2de671[_0x232e(0x35)](!enabled,_0x15843c))return;_0x2de671[_0x232e(0x36)](_0x214a47,!![]);try{if(_0x2de671[_0x232e(0x37)](_0x2de671['DKIqX'],_0x2de671[_0x232e(0x38)])){if(!_0x2de671[_0x232e(0x39)](isApiKeyInitialized)){const _0x133d7e=_0x232e(0x14);console[_0x232e(0x3a)](_0x2de671[_0x232e(0x3b)],_0x133d7e);_0x15332e?_0x15332e(_0x133d7e):Alert[_0x232e(0x3c)](_0x2de671['UWoHe'],_0x232e(0x3d),[{'text':'OK'}]);_0x214a47(![]);return;}const _0x3d9db6=_0x2de671[_0x232e(0x3e)](getApiConfig);if(debug){if(_0x2de671['jCnUi']===_0x232e(0x3f))return _0x595bce[_0x232e(0x31)]();else{var _0x723da0;console[_0x232e(0x27)](_0x2de671['Jaocu'],_0x2de671[_0x232e(0x40)](_0x2de671[_0x232e(0x41)](_0x3d9db6,null)||_0x2de671['xCvOT'](_0x3d9db6,void 0x0)||_0x2de671[_0x232e(0x42)](_0x723da0=_0x3d9db6[_0x232e(0x43)],null)||_0x723da0===void 0x0?void 0x0:_0x723da0[_0x232e(0x44)](0x0,0x8),_0x2de671[_0x232e(0x45)]));}}if(_0x59e43d){const _0x29c75f=await _0x2de671['xsVQu'](_0x59e43d);if(!_0x29c75f){if(_0x2de671[_0x232e(0x46)]===_0x2de671[_0x232e(0x46)]){console[_0x232e(0x27)](_0x2de671[_0x232e(0x47)]),_0x2de671[_0x232e(0x41)](_0x15332e,null)||_0x2de671[_0x232e(0x41)](_0x15332e,void 0x0)||_0x2de671[_0x232e(0x29)](_0x15332e,_0x232e(0x48)),_0x2de671[_0x232e(0x36)](_0x214a47,![]);return;}else _0x1ebfe0[_0x232e(0x49)](_0x2099d7,_0xfb046d,_0xe94a30);}}console[_0x232e(0x27)](_0x2de671[_0x232e(0x4a)]),_0x2de671[_0x232e(0x29)](_0x35534e,!![]),_0x2de671[_0x232e(0x36)](_0x214a47,![]);}else _0x1ebfe0[_0x232e(0x4b)](_0x3a0ff3,_0x56512b);}catch(_0x57bb97){_0x2de671[_0x232e(0x4c)](_0x2de671[_0x232e(0x4d)],_0x232e(0xd))?(_0x576b97[_0x232e(0x3a)](_0x1ebfe0[_0x232e(0x4e)],_0x564307),_0x1ebfe0[_0x232e(0x4f)](_0x548171,null)||_0x1ebfe0[_0x232e(0x4f)](_0x6f61e7,void 0x0)||_0x1ebfe0[_0x232e(0x50)](_0x22842f,_0x57a9b1 instanceof _0x328f1c?_0x3c2fb0[_0x232e(0x51)]:_0x1ebfe0[_0x232e(0x52)]),_0x1ebfe0[_0x232e(0x53)](_0x3dcdeb,![])):(console[_0x232e(0x3a)](_0x2de671[_0x232e(0x54)],_0x57bb97),_0x15332e===null||_0x2de671[_0x232e(0x55)](_0x15332e,void 0x0)||_0x2de671[_0x232e(0x56)](_0x15332e,_0x2de671[_0x232e(0x57)](_0x57bb97,Error)?_0x57bb97['message']:_0x2de671[_0x232e(0x58)]),_0x214a47(![]));}},_0x49f816=()=>{switch(buttonForm){case _0x232e(0x59):return _0x2de671[_0x232e(0x5a)];case _0x2de671[_0x232e(0x5b)]:return _0x2de671[_0x232e(0x5c)];case _0x2de671[_0x232e(0x5d)]:return _0x2de671[_0x232e(0x5e)];default:return _0x232e(0x10);}},_0x47fe3d=_0x2de671[_0x232e(0x32)](useCallback,(_0x19a706,_0x42402d)=>{const _0x20d622={'Rybhh':function(_0x57824f,_0x4b8ca3){return _0x2de671[_0x232e(0x5f)](_0x57824f,_0x4b8ca3);},'tPRit':function(_0x35e727,_0x32dc9e){return _0x2de671[_0x232e(0x33)](_0x35e727,_0x32dc9e);},'oKEZy':function(_0x151bee,_0x241c8b){return _0x151bee===_0x241c8b;},'Pkxui':_0x232e(0xb)};console[_0x232e(0x27)](_0x2de671[_0x232e(0x60)]),_0x2de671[_0x232e(0x36)](_0x35534e,![]);if(_0x21f7ce){if(_0x2de671[_0x232e(0x4c)](_0x2de671[_0x232e(0x61)],_0x2de671[_0x232e(0x61)])){var _0x32d677;_0x3ab8a1[_0x232e(0x27)]('[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:',_0x20d622[_0x232e(0x62)](_0x20d622[_0x232e(0x63)](_0x5d2c8d,null)||_0x20d622[_0x232e(0x63)](_0x1cb5fa,void 0x0)||_0x20d622[_0x232e(0x64)](_0x32d677=_0x35a85c[_0x232e(0x43)],null)||_0x32d677===void 0x0?void 0x0:_0x32d677[_0x232e(0x44)](0x0,0x8),_0x20d622[_0x232e(0x65)]));}else _0x2de671[_0x232e(0x32)](_0x21f7ce,_0x19a706,_0x42402d);}if(_0x5b605b){if(_0x2de671[_0x232e(0x55)](_0x2de671[_0x232e(0x66)],_0x232e(0x16)))_0x2de671[_0x232e(0x67)](_0x5b605b);else{const _0x48a15b=_0x2de671['NWhmh'];_0x425966[_0x232e(0x3a)](_0x2de671[_0x232e(0x3b)],_0x48a15b);_0x295316?_0x2de671[_0x232e(0x26)](_0x51b724,_0x48a15b):Alert[_0x232e(0x3c)](_0x2de671[_0x232e(0x68)],'The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.',[{'text':'OK'}]);_0x37d308(![]);return;}}},[_0x21f7ce,_0x5b605b]),_0xf715d4=_0x2de671[_0x232e(0x69)](useCallback,()=>{console[_0x232e(0x27)](_0x2de671['uZUZK']),_0x35534e(![]),_0x15332e&&_0x2de671[_0x232e(0x29)](_0x15332e,_0x2de671[_0x232e(0x6a)]);},[_0x15332e]);return console[_0x232e(0x27)](_0x2de671[_0x232e(0x6b)],{'AppName':_0x50f046,'buttonType':buttonType,'buttonWidth':buttonWidth,'buttonHeight':buttonHeight,'hasStroke':hasStroke,'enabled':enabled,'buttonForm':buttonForm,'onResolved':_0x21f7ce,'onRejection':_0x15332e,'preCheck':_0x59e43d,'color':color,'swerv':swerv,'darkMode':darkMode,'returnLink':_0xed3f6c,'preferredPlatform':_0x57ab7e,'autoFetch':autoFetch,'inferenceData':_0x5c13a1,'textLayout':textLayout,'textColor':textColor,'proofMode':proofMode,'webpageName':_0x259833,'debug':debug,'testMode':testMode,'requestData':_0x559879,'onPress':_0x5b605b,'primaryAuthOnly':primaryAuthOnly,'useNewWelcomeFlow':useNewWelcomeFlow}),React['createElement'](React['Fragment'],null,React['createElement'](View,null,React[_0x232e(0x6c)](TouchableOpacity,{'style':[styles[_0x232e(0x6d)],buttonType===_0x2de671['DvUwm']&&styles[_0x232e(0x6e)],hasStroke&&styles['strokedButton'],{'width':buttonWidth,'height':buttonHeight},swerv&&styles['swervButton'],!enabled&&styles[_0x232e(0x6f)]],'onPress':_0x951d5c,'disabled':!enabled||_0x15843c,'onPressIn':()=>_0x5f2b9d(!![]),'onPressOut':()=>_0x5f2b9d(![])},React[_0x232e(0x6c)](_0x333c46,{'colors':[_0x2de671[_0x232e(0x70)],_0x2de671[_0x232e(0x71)],_0x2de671['ChNna']],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':{'position':_0x2de671[_0x232e(0x72)],'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'borderRadius':_0x2de671[_0x232e(0x41)](buttonType,_0x2de671[_0x232e(0x73)])?0x18:0x8}}),_0x15843c?React['createElement'](ActivityIndicator,{'size':_0x2de671[_0x232e(0x74)],'color':_0x232e(0x1e)}):React[_0x232e(0x6c)](View,{'style':styles[_0x232e(0x75)]},React[_0x232e(0x6c)](View,{'style':styles['logoContainer']},React[_0x232e(0x6c)](Image,{'source':BRAND_IMAGES[_0x232e(0x76)],'style':styles[_0x232e(0x77)],'resizeMode':_0x2de671[_0x232e(0x78)]})),React[_0x232e(0x6c)](Text,{'style':[styles[_0x232e(0x79)],{'color':_0x2de671[_0x232e(0x7a)]}]},_0x2de671[_0x232e(0x7b)](_0x49f816))))),useNewWelcomeFlow?React[_0x232e(0x6c)](_0x56e80c,{'visible':_0x3e5f38,'onClose':_0xf715d4,'onComplete':_0x47fe3d}):React[_0x232e(0x6c)](UniversalOnboarding,{'visible':_0x3e5f38,'onClose':_0xf715d4,'AppName':_0x50f046,'requestData':_0x559879||{'Small':{'type':_0x2de671[_0x232e(0x7c)],'descriptions':_0x2de671[_0x232e(0x7d)],'reward':_0x2de671['pNHXY']},'Medium':{'type':_0x2de671[_0x232e(0x7e)],'descriptions':_0x2de671['OVNJf'],'reward':_0x2de671['zdtDa']},'Large':{'type':_0x232e(0x7f),'descriptions':_0x232e(0x80),'reward':_0x2de671[_0x232e(0x81)]}},'returnLink':_0x2de671[_0x232e(0x82)](_0xed3f6c,_0x2de671[_0x232e(0x83)]),'onComplete':_0x47fe3d,'debug':debug,'test':testMode,'preferredPlatform':_0x57ab7e,'primaryAuthOnly':primaryAuthOnly}));});const styles=StyleSheet[_0x232e(0x84)]({'button':{'flexDirection':_0x232e(0x85),'alignItems':'center','justifyContent':_0x232e(0x86),'paddingVertical':0xc,'paddingHorizontal':0x10,'borderRadius':0x8,'shadowColor':_0x232e(0x87),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.2,'shadowRadius':0x4,'elevation':0x3,'overflow':_0x232e(0x88)},'buttonContent':{'flexDirection':_0x232e(0x85),'alignItems':'center','justifyContent':_0x232e(0x86)},'logoContainer':{'width':0x18,'height':0x18,'alignItems':_0x232e(0x86),'justifyContent':_0x232e(0x86),'marginRight':0x4},'logoText':{'color':'#C7A047','fontWeight':_0x232e(0x89),'fontSize':0xe},'logoImage':{'width':0x14,'height':0x14},'pillButton':{'borderRadius':0x18},'strokedButton':{'backgroundColor':_0x232e(0x8a),'borderWidth':0x1},'swervButton':{'transform':[{'rotate':'-2deg'}]},'disabledButton':{'opacity':0.6},'buttonText':{'fontSize':0x10,'fontWeight':'600','textAlign':'center'}});export default OnairosButton;
|
|
1
|
+
import React,{useState,useCallback,forwardRef,useImperativeHandle,useEffect}from'react';import{TouchableOpacity,Text,StyleSheet,View,ActivityIndicator,Dimensions,Image,Alert}from'react-native';function _0x5586(){const _0xa5855a=['get','window','normal','default','#1BA9D4','right','black','[OnairosButton]\x20LogEffect:\x20showOnboarding\x20state\x20changed\x20to:','[OnairosButton]\x20Precheck\x20failed.\x20Setting\x20showOnboarding\x20to\x20false\x20(indirectly,\x20by\x20not\x20setting\x20to\x20true).','[OnairosButton]\x20handlePress\x20called.','vSCpt','The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.','AfaCg','[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:','...','[OnairosButton]\x20Error\x20in\x20handlePress:','login','Sign\x20in\x20with\x20Onairos','lmADM','[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.','VFWCd','User\x20closed\x20onboarding','[OnairosButton]\x20Initializing.\x20Initial\x20showOnboarding:','pill','#C7A047','#FFFFFF','contain','Free\x20access','Medium','Large','Premium\x20tier','Full\x20personalization','onairosevents://auth/callback','TBtBZ','EgURL','log','FoKst','JQhej','yorcI','resolve','uvWiT','EMfky','JwsDy','HQoJJ','FGcdZ','ryKUK','❌\x20[OnairosButton]\x20SDK\x20NOT\x20INITIALIZED:','alert','SDK\x20Not\x20Initialized','LYxRz','yRXog','dLkoC','aQdbG','apiKey','GqBSR','ZhGSi','VdPrg','SPhuD','oSCjY','RttEp','hOyUx','gMzBZ','oPIOQ','jUdkP','error','bhyKb','aBMsR','message','Unknown\x20error','connect','XQlpe','yDJLd','signup','Sign\x20up\x20with\x20Onairos','UirFC','uogrK','kmXhL','eGiKE','gUvqf','xViuA','NXfrr','AuJJZ','ZnUMq','substring','IDtEi','CvENQ','EZnXb','LdPcg','JzViv','EYUeZ','Fragment','createElement','BlSyU','pillButton','strokedButton','swervButton','#f5e7c1','IOgXI','pgNwV','pMHIN','AJnKw','xxJcl','logoContainer','onairosLogoAlt','pUTyO','buttonText','jEEfY','xTDoA','titzU','DnwFI','Standard\x20tier','kIScm','SaiqN','zqAcD','ROHBr','create','row','center','#000','bold','transparent','600'];_0x5586=function(){return _0xa5855a;};return _0x5586();}import _0x2ba6d3 from'react-native-linear-gradient';import{UniversalOnboarding}from'./UniversalOnboarding';import _0x68be93 from'./WelcomeScreen';function _0x277f(_0x5586d9,_0x277f73){_0x5586d9=_0x5586d9-0x0;const _0x5893aa=_0x5586();let _0x28975a=_0x5893aa[_0x5586d9];return _0x28975a;}import{isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{BRAND_IMAGES}from'../utils/assetRegistry';const {width}=Dimensions[_0x277f(0x0)](_0x277f(0x1));export const OnairosButton=forwardRef(({AppName:_0x104a1a,buttonType:buttonType=_0x277f(0x2),buttonWidth:buttonWidth=0xb4,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x277f(0x3),onResolved:_0x109ad4,onRejection:_0x34161c,preCheck:_0x581731,color:color=_0x277f(0x4),swerv:swerv=![],darkMode:darkMode=![],returnLink:_0x550a99,preferredPlatform:_0x54a16d,autoFetch:autoFetch=![],inferenceData:_0x2e6873,textLayout:textLayout=_0x277f(0x5),textColor:textColor=_0x277f(0x6),proofMode:proofMode=![],webpageName:_0x3573b0,debug:debug=![],testMode:testMode=![],requestData:_0x4a61df,onPress:_0x25cbae,primaryAuthOnly:primaryAuthOnly=![],useNewWelcomeFlow:useNewWelcomeFlow=![]},_0x563fba)=>{const _0x2a43a2={'JQhej':_0x277f(0x7),'yorcI':function(_0x38fd92){return _0x38fd92();},'oSCjY':_0x277f(0x8),'uvWiT':function(_0x21aa98,_0x388444){return _0x21aa98===_0x388444;},'EMfky':function(_0x34e548,_0x3a2684){return _0x34e548(_0x3a2684);},'JwsDy':'Precheck\x20validation\x20failed','HQoJJ':_0x277f(0x9),'yRXog':function(_0x2a809f,_0x506c6f){return _0x2a809f!==_0x506c6f;},'FGcdZ':'pmaVF','vKRwc':_0x277f(0xa),'ryKUK':'Onairos\x20SDK\x20not\x20initialized.\x20Developers\x20must\x20call\x20initializeApiKey()\x20with\x20a\x20valid\x20API\x20key\x20before\x20using\x20SDK\x20components.\x20Get\x20your\x20API\x20key\x20from\x20https://dashboard.onairos.uk','LYxRz':_0x277f(0xb),'vjTFv':function(_0x3cae54){return _0x3cae54();},'dLkoC':_0x277f(0xc),'xViuA':_0x277f(0xd),'GqBSR':function(_0x12fff9,_0x36610e){return _0x12fff9===_0x36610e;},'ZhGSi':_0x277f(0xe),'VdPrg':function(_0x206b27){return _0x206b27();},'SPhuD':'ZXGYj','RttEp':function(_0x5b864f,_0x1e3f63){return _0x5b864f(_0x1e3f63);},'hOyUx':'[OnairosButton]\x20handlePress:\x20Setting\x20showOnboarding\x20to\x20true.','bhyKb':_0x277f(0xf),'aBMsR':function(_0x31dc59,_0x5ecacb){return _0x31dc59 instanceof _0x5ecacb;},'TBtBZ':function(_0xb8f192,_0x12f335){return _0xb8f192(_0x12f335);},'XQlpe':'Connect\x20Onairos','yDJLd':_0x277f(0x10),'gxSqg':_0x277f(0x11),'NXfrr':function(_0x4cf37b,_0x5ed9af){return _0x4cf37b+_0x5ed9af;},'AuJJZ':function(_0x42b1b3,_0x2e71eb){return _0x42b1b3===_0x2e71eb;},'ZnUMq':function(_0x106b67,_0xfcbf61){return _0x106b67===_0xfcbf61;},'EZnXb':function(_0x295327,_0x247396){return _0x295327!==_0x247396;},'uogrK':'fRzNX','kmXhL':_0x277f(0x12),'eGiKE':_0x277f(0x13),'gUvqf':function(_0x35385a,_0x4cf002,_0x6c2953){return _0x35385a(_0x4cf002,_0x6c2953);},'CvENQ':'[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','tHLRP':function(_0x30b70c,_0x52c447){return _0x30b70c(_0x52c447);},'LdPcg':'bfKtC','JzViv':_0x277f(0x14),'nPKbN':_0x277f(0x15),'EgURL':function(_0x1b7953,_0x5381ee){return _0x1b7953(_0x5381ee);},'jNNvd':function(_0x279a2c,_0x5d174e){return _0x279a2c(_0x5d174e);},'FoKst':_0x277f(0x16),'UirFC':function(_0x182948,_0x4337b7,_0x4c4bfc){return _0x182948(_0x4337b7,_0x4c4bfc);},'IDtEi':function(_0x53f087,_0x1f14d8,_0x286244){return _0x53f087(_0x1f14d8,_0x286244);},'EYUeZ':'[OnairosButton]\x20Rendering\x20JSX\x20with\x20props:','BlSyU':_0x277f(0x17),'IOgXI':_0x277f(0x18),'caeat':'#8B6914','pgNwV':'absolute','pMHIN':function(_0x13ea7b,_0x217358){return _0x13ea7b===_0x217358;},'AJnKw':'small','xxJcl':_0x277f(0x19),'pUTyO':_0x277f(0x1a),'jEEfY':function(_0x3c47c7,_0x35c10a){return _0x3c47c7||_0x35c10a;},'xTDoA':'Small','titzU':'Basic\x20tier','DnwFI':_0x277f(0x1b),'lbzOi':_0x277f(0x1c),'fDeIP':'Premium\x20features','ORhTn':_0x277f(0x1d),'kIScm':_0x277f(0x1e),'SaiqN':_0x277f(0x1f),'zqAcD':function(_0x156515,_0x2d16b6){return _0x156515||_0x2d16b6;},'ROHBr':_0x277f(0x20)},[_0x5b3238,_0x43cde2]=_0x2a43a2[_0x277f(0x21)](useState,![]),[_0x52212c,_0x2e773a]=_0x2a43a2[_0x277f(0x22)](useState,![]),[_0x2b2468,_0x4465ad]=_0x2a43a2['jNNvd'](useState,![]);console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x24)],_0x2b2468),_0x2a43a2['gUvqf'](useEffect,()=>{console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x25)],_0x2b2468);},[_0x2b2468]),useImperativeHandle(_0x563fba,()=>({'trigger':async()=>{return await _0x2a43a2[_0x277f(0x26)](_0x3874b5),Promise['resolve']();},'reset':async()=>{return Promise[_0x277f(0x27)]();}}));const _0x3874b5=async()=>{const _0x24cb88={'aQdbG':_0x2a43a2[_0x277f(0x25)],'gMzBZ':_0x2a43a2['oSCjY'],'oPIOQ':function(_0x2b49f3,_0x1cddde){return _0x2b49f3===_0x1cddde;},'XQzPL':function(_0x10cf2a,_0x530f45){return _0x2a43a2[_0x277f(0x28)](_0x10cf2a,_0x530f45);},'jUdkP':function(_0x565690,_0xd9549e){return _0x2a43a2[_0x277f(0x29)](_0x565690,_0xd9549e);},'ajKHj':_0x2a43a2[_0x277f(0x2a)]};console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x2b)]);if(!enabled||_0x5b3238)return;_0x2a43a2[_0x277f(0x29)](_0x43cde2,!![]);try{if(_0x2a43a2['yRXog'](_0x2a43a2[_0x277f(0x2c)],_0x2a43a2['vKRwc'])){if(!_0x2a43a2[_0x277f(0x26)](isApiKeyInitialized)){const _0x7b683b=_0x2a43a2[_0x277f(0x2d)];console['error'](_0x277f(0x2e),_0x7b683b);_0x34161c?_0x34161c(_0x7b683b):Alert[_0x277f(0x2f)](_0x277f(0x30),_0x2a43a2[_0x277f(0x31)],[{'text':'OK'}]);_0x43cde2(![]);return;}const _0x10d57b=_0x2a43a2['vjTFv'](getApiConfig);if(debug){if(_0x2a43a2[_0x277f(0x32)](_0x2a43a2[_0x277f(0x33)],_0x277f(0xc)))_0x5c2833[_0x277f(0x23)](_0x24cb88[_0x277f(0x34)],_0x430066);else{var _0x181dd6;console['log'](_0x2a43a2['xViuA'],(_0x2a43a2[_0x277f(0x28)](_0x10d57b,null)||_0x10d57b===void 0x0||_0x2a43a2[_0x277f(0x28)](_0x181dd6=_0x10d57b[_0x277f(0x35)],null)||_0x2a43a2[_0x277f(0x36)](_0x181dd6,void 0x0)?void 0x0:_0x181dd6['substring'](0x0,0x8))+_0x2a43a2[_0x277f(0x37)]);}}if(_0x581731){const _0x317458=await _0x2a43a2[_0x277f(0x38)](_0x581731);if(!_0x317458){if(_0x2a43a2[_0x277f(0x39)]===_0x2a43a2[_0x277f(0x39)]){console['log'](_0x2a43a2[_0x277f(0x3a)]),_0x2a43a2[_0x277f(0x28)](_0x34161c,null)||_0x34161c===void 0x0||_0x2a43a2[_0x277f(0x29)](_0x34161c,_0x2a43a2[_0x277f(0x2a)]),_0x2a43a2[_0x277f(0x3b)](_0x43cde2,![]);return;}else _0x25d3b7(_0x31fe23,_0x407c0b);}}console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x3c)]),_0x2a43a2[_0x277f(0x29)](_0x4465ad,!![]),_0x2a43a2['RttEp'](_0x43cde2,![]);}else{_0x366eba[_0x277f(0x23)](_0x24cb88[_0x277f(0x3d)]),_0x24cb88[_0x277f(0x3e)](_0x182e41,null)||_0x24cb88['XQzPL'](_0x111816,void 0x0)||_0x24cb88[_0x277f(0x3f)](_0x4d8bfb,_0x24cb88['ajKHj']),_0x24cb88['jUdkP'](_0x57bd4d,![]);return;}}catch(_0x6eab3d){console[_0x277f(0x40)](_0x2a43a2[_0x277f(0x41)],_0x6eab3d),_0x2a43a2[_0x277f(0x36)](_0x34161c,null)||_0x2a43a2[_0x277f(0x28)](_0x34161c,void 0x0)||_0x34161c(_0x2a43a2[_0x277f(0x42)](_0x6eab3d,Error)?_0x6eab3d[_0x277f(0x43)]:_0x277f(0x44)),_0x2a43a2['TBtBZ'](_0x43cde2,![]);}},_0x44d1cb=()=>{switch(buttonForm){case _0x277f(0x45):return _0x2a43a2[_0x277f(0x46)];case _0x2a43a2[_0x277f(0x47)]:return _0x2a43a2['gxSqg'];case _0x277f(0x48):return _0x277f(0x49);default:return _0x2a43a2[_0x277f(0x46)];}},_0x25973c=_0x2a43a2[_0x277f(0x4a)](useCallback,(_0x2e865c,_0x42db41)=>{if(_0x2a43a2['EZnXb'](_0x2a43a2[_0x277f(0x4b)],_0x2a43a2[_0x277f(0x4c)]))console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x4d)]),_0x2a43a2[_0x277f(0x29)](_0x4465ad,![]),_0x109ad4&&_0x2a43a2[_0x277f(0x4e)](_0x109ad4,_0x2e865c,_0x42db41),_0x25cbae&&_0x25cbae();else{var _0x2ac643;_0x404e32[_0x277f(0x23)](_0x2a43a2[_0x277f(0x4f)],_0x2a43a2[_0x277f(0x50)](_0x2a43a2[_0x277f(0x28)](_0x1fc473,null)||_0x2a43a2[_0x277f(0x28)](_0x184012,void 0x0)||_0x2a43a2[_0x277f(0x51)](_0x2ac643=_0x42d30a[_0x277f(0x35)],null)||_0x2a43a2[_0x277f(0x52)](_0x2ac643,void 0x0)?void 0x0:_0x2ac643[_0x277f(0x53)](0x0,0x8),_0x2a43a2[_0x277f(0x37)]));}},[_0x109ad4,_0x25cbae]),_0x1fae06=_0x2a43a2[_0x277f(0x54)](useCallback,()=>{console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x55)]),_0x2a43a2['tHLRP'](_0x4465ad,![]),_0x34161c&&(_0x2a43a2[_0x277f(0x56)](_0x2a43a2[_0x277f(0x57)],_0x2a43a2[_0x277f(0x58)])?_0x2a43a2[_0x277f(0x3b)](_0x34161c,_0x2a43a2['nPKbN']):_0x1b1a7f());},[_0x34161c]);return console[_0x277f(0x23)](_0x2a43a2[_0x277f(0x59)],{'AppName':_0x104a1a,'buttonType':buttonType,'buttonWidth':buttonWidth,'buttonHeight':buttonHeight,'hasStroke':hasStroke,'enabled':enabled,'buttonForm':buttonForm,'onResolved':_0x109ad4,'onRejection':_0x34161c,'preCheck':_0x581731,'color':color,'swerv':swerv,'darkMode':darkMode,'returnLink':_0x550a99,'preferredPlatform':_0x54a16d,'autoFetch':autoFetch,'inferenceData':_0x2e6873,'textLayout':textLayout,'textColor':textColor,'proofMode':proofMode,'webpageName':_0x3573b0,'debug':debug,'testMode':testMode,'requestData':_0x4a61df,'onPress':_0x25cbae,'primaryAuthOnly':primaryAuthOnly,'useNewWelcomeFlow':useNewWelcomeFlow}),React['createElement'](React[_0x277f(0x5a)],null,React['createElement'](View,null,React[_0x277f(0x5b)](TouchableOpacity,{'style':[styles['button'],_0x2a43a2[_0x277f(0x28)](buttonType,_0x2a43a2[_0x277f(0x5c)])&&styles[_0x277f(0x5d)],hasStroke&&styles[_0x277f(0x5e)],{'width':buttonWidth,'height':buttonHeight},swerv&&styles[_0x277f(0x5f)],!enabled&&styles['disabledButton']],'onPress':_0x3874b5,'disabled':!enabled||_0x5b3238,'onPressIn':()=>_0x2e773a(!![]),'onPressOut':()=>_0x2e773a(![])},React[_0x277f(0x5b)](_0x2ba6d3,{'colors':[_0x277f(0x60),_0x2a43a2[_0x277f(0x61)],_0x2a43a2['caeat']],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':{'position':_0x2a43a2[_0x277f(0x62)],'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'borderRadius':_0x2a43a2[_0x277f(0x63)](buttonType,_0x277f(0x17))?0x18:0x8}}),_0x5b3238?React[_0x277f(0x5b)](ActivityIndicator,{'size':_0x2a43a2[_0x277f(0x64)],'color':_0x2a43a2[_0x277f(0x65)]}):React[_0x277f(0x5b)](View,{'style':styles['buttonContent']},React[_0x277f(0x5b)](View,{'style':styles[_0x277f(0x66)]},React[_0x277f(0x5b)](Image,{'source':BRAND_IMAGES[_0x277f(0x67)],'style':styles['logoImage'],'resizeMode':_0x2a43a2[_0x277f(0x68)]})),React[_0x277f(0x5b)](Text,{'style':[styles[_0x277f(0x69)],{'color':_0x2a43a2[_0x277f(0x65)]}]},_0x2a43a2['VdPrg'](_0x44d1cb))))),useNewWelcomeFlow?React[_0x277f(0x5b)](_0x68be93,{'visible':_0x2b2468,'onClose':_0x1fae06,'onComplete':_0x25973c}):React[_0x277f(0x5b)](UniversalOnboarding,{'visible':_0x2b2468,'onClose':_0x1fae06,'AppName':_0x104a1a,'requestData':_0x2a43a2[_0x277f(0x6a)](_0x4a61df,{'Small':{'type':_0x2a43a2[_0x277f(0x6b)],'descriptions':_0x2a43a2[_0x277f(0x6c)],'reward':_0x2a43a2[_0x277f(0x6d)]},'Medium':{'type':_0x2a43a2['lbzOi'],'descriptions':_0x277f(0x6e),'reward':_0x2a43a2['fDeIP']},'Large':{'type':_0x2a43a2['ORhTn'],'descriptions':_0x2a43a2[_0x277f(0x6f)],'reward':_0x2a43a2[_0x277f(0x70)]}}),'returnLink':_0x2a43a2[_0x277f(0x71)](_0x550a99,_0x2a43a2[_0x277f(0x72)]),'onComplete':_0x25973c,'debug':debug,'test':testMode,'preferredPlatform':_0x54a16d,'primaryAuthOnly':primaryAuthOnly}));});const styles=StyleSheet[_0x277f(0x73)]({'button':{'flexDirection':_0x277f(0x74),'alignItems':_0x277f(0x75),'justifyContent':_0x277f(0x75),'paddingVertical':0xc,'paddingHorizontal':0x10,'borderRadius':0x8,'shadowColor':_0x277f(0x76),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.2,'shadowRadius':0x4,'elevation':0x3,'overflow':'hidden'},'buttonContent':{'flexDirection':'row','alignItems':_0x277f(0x75),'justifyContent':_0x277f(0x75)},'logoContainer':{'width':0x18,'height':0x18,'alignItems':_0x277f(0x75),'justifyContent':_0x277f(0x75),'marginRight':0x4},'logoText':{'color':_0x277f(0x18),'fontWeight':_0x277f(0x77),'fontSize':0xe},'logoImage':{'width':0x14,'height':0x14},'pillButton':{'borderRadius':0x18},'strokedButton':{'backgroundColor':_0x277f(0x78),'borderWidth':0x1},'swervButton':{'transform':[{'rotate':'-2deg'}]},'disabledButton':{'opacity':0.6},'buttonText':{'fontSize':0x10,'fontWeight':_0x277f(0x79),'textAlign':'center'}});export default OnairosButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React,{useState,useCallback}from'react';import{TouchableOpacity,Text,StyleSheet,View,Image}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';function
|
|
1
|
+
import React,{useState,useCallback}from'react';import{TouchableOpacity,Text,StyleSheet,View,Image}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x2968(_0x2c4639,_0x296898){_0x2c4639=_0x2c4639-0x0;const _0x4869f4=_0x2c46();let _0xe48a25=_0x4869f4[_0x2c4639];return _0xe48a25;}import _0x317a9d from'./WelcomeScreen';function _0x2c46(){const _0x2b5348=['#D4A536','#000','oDLEW','lRKkX','🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20Received\x20placeholder\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20OnairosSignInButton:\x20Returning\x20token\x20with\x20email:','🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:','🔍\x20OnairosSignInButton:\x20handleWelcomeComplete\x20called\x20with:','🔍\x20OnairosSignInButton:\x20Is\x20JWT\x20token?','jPSwC','🔘\x20OnairosSignInButton\x20pressed,\x20showing\x20WelcomeScreen','🔘\x20showWelcomeScreen\x20state\x20set\x20to\x20true','contain','Onairos\x20logo','HoOto','acxtZ','qouTh','SYqSQ','SsHzq','length','log','user_email','then','YCoKL','ITULQ','kGXLm','getItem','TQvxG','VKiII','AkLWD','rVWwx','EDuTl','Ktguc','RmcIP','zIVLB','QvQdJ','GXHOs','duuzc','WTGWp','ojvpu','JKhLS','MnteN','Yuvco','ChWZn','kdKwy','fIkTi','User\x20closed\x20welcome\x20screen','createElement','container','button','PFWeK','BUTTON_PRESS','ulMQi','onairosLogoAlt','HBtJD','uWVrU','buttonText','Sign\x20in\x20with\x20Onairos','create','center','row','600'];_0x2c46=function(){return _0x2b5348;};return _0x2c46();}import{triggerHaptic,HapticType}from'../utils/haptics';import{BRAND_IMAGES}from'../utils/assetRegistry';export const OnairosSignInButton=({AppName:_0x575ad2,buttonWidth:buttonWidth=0x118,buttonHeight:buttonHeight=0x2c,color:color=_0x2968(0x0),textColor:textColor=_0x2968(0x1),onResolved:_0x115610,onRejection:_0x11577e,autoFocusEmailInput:autoFocusEmailInput=!![]})=>{const _0x228888={'nJFnC':function(_0x45bd61,_0x5ba623){return _0x45bd61||_0x5ba623;},'SsHzq':function(_0x141685,_0x2d013c,_0xf78f76){return _0x141685(_0x2d013c,_0xf78f76);},'YCoKL':function(_0x59393b,_0x130dc4){return _0x59393b===_0x130dc4;},'gqnox':_0x2968(0x2),'ITULQ':_0x2968(0x3),'WTGWp':function(_0x2078db,_0x5952df){return _0x2078db||_0x5952df;},'Ktguc':_0x2968(0x4),'qouTh':'user_email','rVWwx':_0x2968(0x5),'GXHOs':_0x2968(0x6),'SYqSQ':_0x2968(0x7),'ipoiE':_0x2968(0x8),'BJjvw':_0x2968(0x9),'SiiyO':function(_0x18c2c7,_0x8930a6){return _0x18c2c7!==_0x8930a6;},'AkLWD':'nIeQt','EDuTl':function(_0x594d9d,_0x1b18fb,_0x80d06d){return _0x594d9d(_0x1b18fb,_0x80d06d);},'ojvpu':_0x2968(0xa),'fIkTi':function(_0x2f850d,_0x2d87d9){return _0x2f850d(_0x2d87d9);},'PFWeK':_0x2968(0xb),'ttKZg':function(_0x4617a1,_0xee1850){return _0x4617a1(_0xee1850);},'ulMQi':_0x2968(0xc),'HoOto':function(_0x7ac0c4,_0x58503f){return _0x7ac0c4(_0x58503f);},'acxtZ':function(_0x5d5d3c,_0x13fac4,_0x19218d){return _0x5d5d3c(_0x13fac4,_0x19218d);},'duuzc':function(_0x1888de,_0x61c745,_0x120ec3){return _0x1888de(_0x61c745,_0x120ec3);},'HBtJD':_0x2968(0xd),'uWVrU':_0x2968(0xe)},[_0x38bae1,_0x2399da]=useState(![]),[_0x22b0c8,_0x465f5d]=_0x228888[_0x2968(0xf)](useState,''),_0x14f355=_0x228888[_0x2968(0x10)](useCallback,(_0x34fa9c,_0x362820)=>{const _0x43f457={'kGXLm':'🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','EgiSe':_0x228888[_0x2968(0x11)],'RmcIP':function(_0x127049,_0x331d04){return _0x127049||_0x331d04;},'zIVLB':_0x228888[_0x2968(0x12)],'QvQdJ':function(_0x35ed9e,_0x454d5c,_0x351def){return _0x228888[_0x2968(0x13)](_0x35ed9e,_0x454d5c,_0x351def);}};console['log'](_0x228888['ipoiE'],{'token':_0x34fa9c,'email':_0x362820});const _0x5b518e=_0x34fa9c&&_0x34fa9c['includes']('.')&&_0x34fa9c['split']('.')[_0x2968(0x14)]===0x3;console[_0x2968(0x15)](_0x228888['BJjvw'],_0x5b518e),_0x2399da(![]);if(_0x115610){if(_0x5b518e)console['log'](_0x228888['Ktguc']),AsyncStorage['getItem'](_0x2968(0x16))[_0x2968(0x17)](_0x22f92f=>{const _0x3245e4={'TQvxG':function(_0x1417bf,_0x1b1fbb){return _0x228888['nJFnC'](_0x1417bf,_0x1b1fbb);},'RyULy':function(_0x4330e2,_0x18f94,_0x2bf4f2){return _0x228888['SsHzq'](_0x4330e2,_0x18f94,_0x2bf4f2);}};if(_0x228888[_0x2968(0x18)](_0x228888['gqnox'],_0x228888[_0x2968(0x19)]))_0x3e5ed4[_0x2968(0x15)](_0x43f457[_0x2968(0x1a)]),AsyncStorage[_0x2968(0x1b)](_0x43f457['EgiSe'])[_0x2968(0x17)](_0x26c2c4=>{const _0x21e5f8=_0x3245e4[_0x2968(0x1c)](_0x50c5ee,_0x26c2c4)||_0x2f3f05;_0x20beb4[_0x2968(0x15)](_0x2968(0x7),_0x21e5f8),_0x3245e4['RyULy'](_0x5c7dee,_0x510de7,_0x21e5f8);});else{const _0x2faba9=_0x228888['WTGWp'](_0x362820,_0x22f92f)||_0x22b0c8;console[_0x2968(0x15)](_0x2968(0x7),_0x2faba9),_0x228888['SsHzq'](_0x115610,_0x34fa9c,_0x2faba9);}});else{if(_0x228888['SiiyO'](_0x2968(0x1d),_0x228888[_0x2968(0x1e)])){console[_0x2968(0x15)](_0x228888[_0x2968(0x1f)]);const _0x225b68=_0x362820||_0x22b0c8;console[_0x2968(0x15)](_0x228888['GXHOs'],_0x225b68),_0x228888[_0x2968(0x20)](_0x115610,_0x34fa9c,_0x225b68);}else{if(_0x482bde)_0x207797['log'](_0x228888[_0x2968(0x21)]),AsyncStorage[_0x2968(0x1b)](_0x228888[_0x2968(0x11)])[_0x2968(0x17)](_0x1c203f=>{const _0x51b1f7=_0x43f457[_0x2968(0x22)](_0x3c8114,_0x1c203f)||_0x854526;_0x2b9153['log'](_0x43f457[_0x2968(0x23)],_0x51b1f7),_0x43f457[_0x2968(0x24)](_0x43ef2d,_0x31b2b1,_0x51b1f7);});else{_0x598c5d[_0x2968(0x15)](_0x228888['rVWwx']);const _0x4d409e=_0xa92686||_0x32e6cd;_0x1b1a99[_0x2968(0x15)](_0x228888[_0x2968(0x25)],_0x4d409e),_0x228888[_0x2968(0x13)](_0x20c89d,_0x22687e,_0x4d409e);}}}}},[_0x115610,_0x22b0c8]),_0x3d9165=_0x228888[_0x2968(0x26)](useCallback,()=>{const _0x214f6b={'MnteN':_0x228888['rVWwx'],'Yuvco':function(_0x15fa22,_0x93022b){return _0x228888[_0x2968(0x27)](_0x15fa22,_0x93022b);},'ChWZn':_0x228888[_0x2968(0x25)],'kdKwy':function(_0x5dac44,_0x82b713,_0x472349){return _0x228888['EDuTl'](_0x5dac44,_0x82b713,_0x472349);}};if(_0x228888[_0x2968(0x18)](_0x228888[_0x2968(0x28)],_0x2968(0x29))){_0x13c5dd[_0x2968(0x15)](_0x214f6b[_0x2968(0x2a)]);const _0x34f22e=_0x214f6b[_0x2968(0x2b)](_0x2f76e9,_0x45cfc7);_0x1a6058[_0x2968(0x15)](_0x214f6b[_0x2968(0x2c)],_0x34f22e),_0x214f6b[_0x2968(0x2d)](_0x53dc2e,_0x27169f,_0x34f22e);}else _0x228888[_0x2968(0x2e)](_0x2399da,![]),_0x11577e&&_0x11577e(_0x2968(0x2f));},[_0x11577e]);return React[_0x2968(0x30)](View,{'style':styles[_0x2968(0x31)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x2968(0x32)],{'width':buttonWidth,'height':buttonHeight,'backgroundColor':color}],'onPress':()=>{console['log'](_0x228888[_0x2968(0x33)]),_0x228888['ttKZg'](triggerHaptic,HapticType[_0x2968(0x34)]),_0x2399da(!![]),console[_0x2968(0x15)](_0x228888[_0x2968(0x35)]);},'activeOpacity':0.85},React[_0x2968(0x30)](View,{'style':styles['contentRow']},React[_0x2968(0x30)](Image,{'source':BRAND_IMAGES[_0x2968(0x36)],'style':styles['logo'],'resizeMode':_0x228888[_0x2968(0x37)],'accessibilityLabel':_0x228888[_0x2968(0x38)]}),React[_0x2968(0x30)](Text,{'style':[styles[_0x2968(0x39)],{'color':textColor}]},_0x2968(0x3a)))),React[_0x2968(0x30)](_0x317a9d,{'visible':_0x38bae1,'onClose':_0x3d9165,'onComplete':_0x14f355}));};const styles=StyleSheet[_0x2968(0x3b)]({'button':{'borderRadius':0x18,'justifyContent':_0x2968(0x3c),'alignItems':_0x2968(0x3c),'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2,'marginVertical':0x8},'contentRow':{'flexDirection':_0x2968(0x3d),'alignItems':_0x2968(0x3c),'justifyContent':_0x2968(0x3c)},'logo':{'width':0x1a,'height':0x1a,'marginRight':0xa},'buttonText':{'fontSize':0x10,'fontWeight':_0x2968(0x3e),'textAlign':_0x2968(0x3c)},'container':{}});
|