@onairos/react-native 3.6.0 → 3.6.1

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.
Files changed (222) hide show
  1. package/lib/commonjs/api/index.js +1 -1
  2. package/lib/commonjs/components/BodyText.js +1 -1
  3. package/lib/commonjs/components/BrandMark.js +1 -1
  4. package/lib/commonjs/components/CodeInput.js +1 -1
  5. package/lib/commonjs/components/EmailInput.js +1 -1
  6. package/lib/commonjs/components/GoogleButton.js +1 -1
  7. package/lib/commonjs/components/HeadingGroup.js +1 -1
  8. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  9. package/lib/commonjs/components/ModalHeader.js +1 -1
  10. package/lib/commonjs/components/ModalSheet.js +1 -1
  11. package/lib/commonjs/components/Onairos.js +1 -1
  12. package/lib/commonjs/components/OnairosButton.js +1 -1
  13. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  14. package/lib/commonjs/components/Overlay.js +1 -1
  15. package/lib/commonjs/components/PersonaImage.js +1 -1
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  18. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  19. package/lib/commonjs/components/PinInput.js +1 -1
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  21. package/lib/commonjs/components/PlatformList.js +1 -1
  22. package/lib/commonjs/components/PlatformToggle.js +1 -1
  23. package/lib/commonjs/components/PrimaryButton.js +1 -1
  24. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  25. package/lib/commonjs/components/SignInStep.js +1 -1
  26. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  27. package/lib/commonjs/components/VerificationStep.js +1 -1
  28. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  29. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  30. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  31. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  32. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  33. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  34. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  35. package/lib/commonjs/components/icons/EnochE.js +1 -1
  36. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  37. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  38. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  39. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  40. package/lib/commonjs/components/icons/index.js +1 -1
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  43. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  45. package/lib/commonjs/config/api.js +1 -1
  46. package/lib/commonjs/constants/index.js +1 -1
  47. package/lib/commonjs/context/AuthContext.js +1 -1
  48. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  49. package/lib/commonjs/hooks/useConnections.js +1 -1
  50. package/lib/commonjs/hooks/useCredentials.js +1 -1
  51. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  52. package/lib/commonjs/index.js +1 -1
  53. package/lib/commonjs/services/apiClient.js +1 -1
  54. package/lib/commonjs/services/apiKeyService.js +1 -1
  55. package/lib/commonjs/services/authService.js +1 -1
  56. package/lib/commonjs/services/biometricPinService.js +1 -1
  57. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  58. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  59. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  60. package/lib/commonjs/services/claudeConversationService.js +1 -1
  61. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  62. package/lib/commonjs/services/googleAuthService.js +1 -1
  63. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  64. package/lib/commonjs/services/hingeDataService.js +1 -1
  65. package/lib/commonjs/services/imageCompressionService.js +1 -1
  66. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  67. package/lib/commonjs/services/instagramDataService.js +1 -1
  68. package/lib/commonjs/services/jwtStorageService.js +1 -1
  69. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  70. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  71. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  72. package/lib/commonjs/services/llmDataStorage.js +1 -1
  73. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  74. package/lib/commonjs/services/oauthService.js +1 -1
  75. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  76. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  77. package/lib/commonjs/services/platformAuthService.js +1 -1
  78. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  79. package/lib/commonjs/services/sephoraDataService.js +1 -1
  80. package/lib/commonjs/services/storageService.js +1 -1
  81. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  82. package/lib/commonjs/services/telegramDataService.js +2 -4
  83. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  84. package/lib/commonjs/services/userConnectionsService.js +1 -1
  85. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  86. package/lib/commonjs/theme/index.js +1 -1
  87. package/lib/commonjs/types/index.js +1 -1
  88. package/lib/commonjs/types.js +1 -1
  89. package/lib/commonjs/utils/Portal.js +1 -1
  90. package/lib/commonjs/utils/api.js +1 -1
  91. package/lib/commonjs/utils/assetRegistry.js +1 -1
  92. package/lib/commonjs/utils/auth.js +1 -1
  93. package/lib/commonjs/utils/connectorTests.js +1 -1
  94. package/lib/commonjs/utils/crypto.js +1 -1
  95. package/lib/commonjs/utils/debugHelper.js +1 -1
  96. package/lib/commonjs/utils/encryption.js +1 -1
  97. package/lib/commonjs/utils/eventUtils.js +1 -1
  98. package/lib/commonjs/utils/haptics.js +1 -1
  99. package/lib/commonjs/utils/imagePreloader.js +1 -1
  100. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  101. package/lib/commonjs/utils/onairosApi.js +1 -1
  102. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  103. package/lib/commonjs/utils/retryHelper.js +1 -1
  104. package/lib/commonjs/utils/secureStorage.js +1 -1
  105. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  106. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  107. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  108. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  109. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  110. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  111. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  112. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  113. package/lib/module/api/index.js +1 -1
  114. package/lib/module/components/BodyText.js +1 -1
  115. package/lib/module/components/BrandMark.js +1 -1
  116. package/lib/module/components/CodeInput.js +1 -1
  117. package/lib/module/components/EmailInput.js +1 -1
  118. package/lib/module/components/GoogleButton.js +1 -1
  119. package/lib/module/components/HeadingGroup.js +1 -1
  120. package/lib/module/components/LLMDataInputModal.js +1 -1
  121. package/lib/module/components/ModalHeader.js +1 -1
  122. package/lib/module/components/ModalSheet.js +1 -1
  123. package/lib/module/components/Onairos.js +1 -1
  124. package/lib/module/components/OnairosButton.js +1 -1
  125. package/lib/module/components/OnairosSignInButton.js +1 -1
  126. package/lib/module/components/Overlay.js +1 -1
  127. package/lib/module/components/PersonaImage.js +1 -1
  128. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  129. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  130. package/lib/module/components/PinCreationScreen.js +1 -1
  131. package/lib/module/components/PinInput.js +1 -1
  132. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  133. package/lib/module/components/PlatformList.js +1 -1
  134. package/lib/module/components/PlatformToggle.js +1 -1
  135. package/lib/module/components/PrimaryButton.js +1 -1
  136. package/lib/module/components/SignInMatchAnimation.js +1 -1
  137. package/lib/module/components/SignInStep.js +1 -1
  138. package/lib/module/components/UniversalOnboarding.js +1 -1
  139. package/lib/module/components/VerificationStep.js +1 -1
  140. package/lib/module/components/WelcomeScreen.js +1 -1
  141. package/lib/module/components/icons/Basicproficon.js +1 -1
  142. package/lib/module/components/icons/Basicprofile.js +1 -1
  143. package/lib/module/components/icons/Checkbox.js +1 -1
  144. package/lib/module/components/icons/Checkmark.js +1 -1
  145. package/lib/module/components/icons/Contentanalysis.js +1 -1
  146. package/lib/module/components/icons/Contenticon.js +1 -1
  147. package/lib/module/components/icons/EnochE.js +1 -1
  148. package/lib/module/components/icons/Personalityicon.js +1 -1
  149. package/lib/module/components/icons/Personalityprofile.js +1 -1
  150. package/lib/module/components/icons/Personalitytraits.js +1 -1
  151. package/lib/module/components/icons/Userpreferences.js +1 -1
  152. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  153. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  154. package/lib/module/components/onboarding/PinInput.js +1 -1
  155. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  156. package/lib/module/config/api.js +1 -1
  157. package/lib/module/constants/index.js +1 -1
  158. package/lib/module/context/AuthContext.js +1 -1
  159. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  160. package/lib/module/hooks/useConnections.js +1 -1
  161. package/lib/module/hooks/useCredentials.js +1 -1
  162. package/lib/module/hooks/useUserConnections.js +1 -1
  163. package/lib/module/index.js +1 -1
  164. package/lib/module/services/apiClient.js +1 -1
  165. package/lib/module/services/apiKeyService.js +1 -1
  166. package/lib/module/services/authService.js +1 -1
  167. package/lib/module/services/biometricPinService.js +1 -1
  168. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  169. package/lib/module/services/chatGPTConversationService.js +1 -1
  170. package/lib/module/services/claudeConversationExtractor.js +1 -1
  171. package/lib/module/services/claudeConversationService.js +1 -1
  172. package/lib/module/services/connectedAccountsService.js +1 -1
  173. package/lib/module/services/googleAuthService.js +1 -1
  174. package/lib/module/services/hingeDataExtractor.js +1 -1
  175. package/lib/module/services/hingeDataService.js +1 -1
  176. package/lib/module/services/imageCompressionService.js +1 -1
  177. package/lib/module/services/instagramDataExtractor.js +1 -1
  178. package/lib/module/services/instagramDataService.js +1 -1
  179. package/lib/module/services/jwtStorageService.js +1 -1
  180. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  181. package/lib/module/services/linkedinProfileService.js +1 -1
  182. package/lib/module/services/linkedinScrapingService.js +1 -1
  183. package/lib/module/services/llmDataStorage.js +1 -1
  184. package/lib/module/services/mobileTrainingService.js +1 -1
  185. package/lib/module/services/oauthService.js +1 -1
  186. package/lib/module/services/pinEncryptionService.js +1 -1
  187. package/lib/module/services/pinStorageUtils.js +1 -1
  188. package/lib/module/services/platformAuthService.js +1 -1
  189. package/lib/module/services/sephoraDataExtractor.js +1 -1
  190. package/lib/module/services/sephoraDataService.js +1 -1
  191. package/lib/module/services/storageService.js +1 -1
  192. package/lib/module/services/telegramDataExtractor.js +1 -1
  193. package/lib/module/services/telegramDataService.js +1 -8
  194. package/lib/module/services/trainingApiHelpers.js +1 -1
  195. package/lib/module/services/userConnectionsService.js +1 -1
  196. package/lib/module/services/youtubeMigrationService.js +1 -1
  197. package/lib/module/theme/index.js +1 -1
  198. package/lib/module/types.js +1 -1
  199. package/lib/module/utils/Portal.js +1 -1
  200. package/lib/module/utils/api.js +1 -1
  201. package/lib/module/utils/assetRegistry.js +1 -1
  202. package/lib/module/utils/auth.js +1 -1
  203. package/lib/module/utils/connectorTests.js +1 -1
  204. package/lib/module/utils/crypto.js +1 -1
  205. package/lib/module/utils/debugHelper.js +1 -1
  206. package/lib/module/utils/encryption.js +1 -1
  207. package/lib/module/utils/eventUtils.js +1 -1
  208. package/lib/module/utils/haptics.js +1 -1
  209. package/lib/module/utils/networkDiagnostics.js +1 -1
  210. package/lib/module/utils/onairosApi.js +1 -1
  211. package/lib/module/utils/programmaticFlow.js +1 -1
  212. package/lib/module/utils/retryHelper.js +1 -1
  213. package/lib/module/utils/secureStorage.js +1 -1
  214. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  215. package/lib/module/utils/webviewScripts/claude.js +1 -1
  216. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  217. package/lib/module/utils/webviewScripts/index.js +1 -1
  218. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  219. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  220. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  221. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  222. 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';import{View,Text,StyleSheet,Modal,TouchableOpacity,TextInput,ScrollView,ActivityIndicator,Alert,Platform,KeyboardAvoidingView}from'react-native';import{COLORS}from'../theme';function _0x63bc(_0x5228d0,_0x63bc12){_0x5228d0=_0x5228d0-0x0;const _0x2e56f7=_0x5228();let _0x176864=_0x2e56f7[_0x5228d0];return _0x176864;}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;try{DocumentPicker=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x2ae257){console[_0x63bc(0x0)]('react-native-document-picker not available - file upload disabled');}try{RNFS=__ONAIROS_REQ_FUNC__(0x1);}catch(_0x58ed08){console[_0x63bc(0x0)]('react-native-fs not available - file upload disabled');}const FILE_UPLOAD_AVAILABLE=DocumentPicker!==null&&RNFS!==null,LLMDataInputModal=({visible:_0x90f67,platform:_0xa971b,platformName:_0x14865,onClose:_0x1b44c0,onSuccess:_0x5ac40c})=>{const _0x2b7547={'qOkSQ':_0x63bc(0x1),'Ihkms':_0x63bc(0x2),'XZTiK':_0x63bc(0x3),'xZHZH':_0x63bc(0x4),'KoOAN':'Connect\x20Claude','WwKCK':'Export\x20your\x20Claude\x20conversations\x20and\x20paste\x20the\x20JSON\x20data\x20below,\x20or\x20upload\x20your\x20exported\x20file.','MAmEq':_0x63bc(0x5),'hjTwv':_0x63bc(0x6),'OolQw':_0x63bc(0x7),'vyVUu':_0x63bc(0x8),'ESGET':'grok','ABlsF':_0x63bc(0x9),'oyAsp':_0x63bc(0xa),'uyHuJ':_0x63bc(0xb),'YoawH':_0x63bc(0xc),'mKTLC':function(_0xbc5715,_0x5966f4){return _0xbc5715(_0x5966f4);},'Oprlv':function(_0x4d8800,_0xf98212){return _0x4d8800>_0xf98212;},'PErOh':_0x63bc(0xd),'WMNPe':'TXucA','ovUPk':function(_0x1ef193,_0xda8e91){return _0x1ef193+_0xda8e91;},'bZzFB':function(_0x887251,_0x361508){return _0x887251===_0x361508;},'CRkaU':function(_0x265829,_0xc84346){return _0x265829*_0xc84346;},'gGdnm':_0x63bc(0xe),'vqZIQ':function(_0x53e6fc,_0x4f5332){return _0x53e6fc===_0x4f5332;},'WHgvb':'string','ltbma':function(_0x37377e,_0x3edd37){return _0x37377e!==_0x3edd37;},'apTnF':'user','mPWIS':function(_0xaa5eaf,_0x3218e7){return _0xaa5eaf(_0x3218e7);},'zYGRE':function(_0x5bdaf7,_0x4d41bb){return _0x5bdaf7>_0x4d41bb;},'PqFDM':'qWmlR','cAwvJ':_0x63bc(0xf),'vXNIt':function(_0x4b001a,_0x10c192){return _0x4b001a===_0x10c192;},'yAuCh':_0x63bc(0x10),'eDrtU':_0x63bc(0x11),'yRdzb':_0x63bc(0x12),'GqKKZ':_0x63bc(0x13),'HGckf':_0x63bc(0x14),'vObPV':_0x63bc(0x15),'xbKmK':function(_0x441529,_0x4d3cf5){return _0x441529(_0x4d3cf5);},'RKTWz':_0x63bc(0x16),'lLAGG':'Imported\x20Conversation','xApnL':_0x63bc(0x17),'IEelS':_0x63bc(0x18),'rosYC':_0x63bc(0x19),'DVQyh':function(_0x5a8472,_0x138a85){return _0x5a8472(_0x138a85);},'znoIX':_0x63bc(0x1a),'QRtnC':_0x63bc(0x1b),'olhEj':function(_0x5d42eb,_0x3885e8){return _0x5d42eb===_0x3885e8;},'LRnwS':'unknown','lZleq':function(_0x9ab659,_0x172a59){return _0x9ab659===_0x172a59;},'GGtub':_0x63bc(0x1c),'pIKBS':_0x63bc(0x1d),'Gtrfr':_0x63bc(0x1e),'bkIbm':function(_0x17dddf,_0x3595a5){return _0x17dddf+_0x3595a5;},'sHtYP':function(_0x151d2b,_0x3f5103){return _0x151d2b(_0x3f5103);},'UeChf':function(_0x36879e,_0x418a75){return _0x36879e>_0x418a75;},'rKJNc':_0x63bc(0x1f),'zTuIp':_0x63bc(0x20),'yNawP':function(_0x4520a1,_0x14924d){return _0x4520a1===_0x14924d;},'yMOeZ':_0x63bc(0x21),'xyxBf':_0x63bc(0x22),'lhlDY':function(_0x3a9655,_0x4acb41){return _0x3a9655(_0x4acb41);},'OdFUT':_0x63bc(0x23),'VLUVL':function(_0x6ac537,_0x4d2d04){return _0x6ac537!==_0x4d2d04;},'JiOOP':_0x63bc(0x24),'fTyHh':function(_0x2adf10,_0x4f2789){return _0x2adf10!==_0x4f2789;},'xdTsn':_0x63bc(0x25),'WEJdz':_0x63bc(0x26),'eoPAI':_0x63bc(0x27),'yWAmI':'File\x20pick\x20error:','kzqOa':function(_0x2819ff,_0xf43c59){return _0x2819ff(_0xf43c59);},'lLRwn':function(_0xba6427,_0x395225){return _0xba6427(_0x395225);},'szWMw':_0x63bc(0x28),'mXsVR':'Error\x20parsing\x20conversation\x20data:','oySrx':_0x63bc(0x29),'bURRy':_0x63bc(0x2a),'nPvOO':_0x63bc(0x2b),'AESCc':function(_0x5d0fb7,_0x2e90f1){return _0x5d0fb7(_0x2e90f1);},'mautf':'DHZcc','YIqrs':_0x63bc(0x2c),'aYqft':'onairos_jwt_token','xkXtc':_0x63bc(0x2d),'NIAhM':'auth_token','SiiXZ':function(_0x396187,_0x34d8dc,_0x382532){return _0x396187(_0x34d8dc,_0x382532);},'menXZ':_0x63bc(0x2e),'eSuTk':_0x63bc(0x2f),'ioIkx':function(_0xb2a2e8,_0xd2c2f3){return _0xb2a2e8>_0xd2c2f3;},'ePxKV':function(_0x5d7bd7,_0x33261f){return _0x5d7bd7===_0x33261f;},'cqJZP':'OjlnG','NxBLq':'Submit\x20error:','DcuuZ':function(_0x4b620a,_0x1fcba3){return _0x4b620a(_0x1fcba3);},'XJYsd':_0x63bc(0x30),'etQLG':function(_0x4bbf8b,_0x475d7f){return _0x4bbf8b(_0x475d7f);},'xOzlo':function(_0x5208f3,_0x383c9f){return _0x5208f3(_0x383c9f);},'qmrla':_0x63bc(0x31),'NcHCX':_0x63bc(0x32),'zuuTj':_0x63bc(0x33),'Lyeed':_0x63bc(0x34),'ysxuD':function(_0x3a041c){return _0x3a041c();},'yYtcn':function(_0x3fcfc3,_0x2ee88e){return _0x3fcfc3!==_0x2ee88e;},'KlLeT':function(_0x47cbee,_0xdfdb08){return _0x47cbee===_0xdfdb08;},'NntmF':function(_0xc1861d,_0x49b2c3){return _0xc1861d*_0x49b2c3;},'gXVRP':_0x63bc(0x35),'rZZhB':function(_0x4932af,_0x5f0d41){return _0x4932af(_0x5f0d41);},'mcuHT':function(_0x1d1253,_0x19deac){return _0x1d1253(_0x19deac);},'tGFhS':_0x63bc(0x36),'SdhtU':function(_0x32f5e8,_0x4c233e){return _0x32f5e8(_0x4c233e);},'JwXzR':function(_0x34d6d2,_0x50ba8c){return _0x34d6d2(_0x50ba8c);},'hlCsK':_0x63bc(0x37),'WtVjx':_0x63bc(0x38),'VYvVv':_0x63bc(0x39),'VTTsn':_0x63bc(0x3a),'EgzfU':_0x63bc(0x3b),'LdZjq':function(_0x322f1c,_0x124ee4){return _0x322f1c===_0x124ee4;},'vqYKd':function(_0x197012,_0x4c290e){return _0x197012===_0x4c290e;},'pjssN':_0x63bc(0x3c),'DlpfL':function(_0x53bbff,_0xd2c2c6){return _0x53bbff===_0xd2c2c6;},'mUKLr':_0x63bc(0x3d),'uezLf':'(N/A)','WdOlI':_0x63bc(0x3e),'ImrTc':function(_0x353fed,_0x5c58eb){return _0x353fed||_0x5c58eb;},'OergN':_0x63bc(0x3f),'DuIHN':function(_0x1278ab,_0x177b2a){return _0x1278ab>_0x177b2a;},'duDIT':_0x63bc(0x40),'ULnMw':_0x63bc(0x41),'rSoBn':_0x63bc(0x42),'ASKtK':_0x63bc(0x43),'WLLYO':_0x63bc(0x44),'IOWwI':_0x63bc(0x45)},[_0x2d518d,_0x2afe92]=useState(_0x2b7547[_0x63bc(0x46)]),[_0x4e6dd6,_0x57c3a3]=_0x2b7547[_0x63bc(0x47)](useState,''),[_0x318ad2,_0x4cac31]=_0x2b7547['AESCc'](useState,![]),[_0x2ea21d,_0x418743]=_0x2b7547['rZZhB'](useState,null),[_0x5bd7c7,_0x24ef72]=_0x2b7547[_0x63bc(0x48)](useState,null),[_0x301e38,_0x5f421e]=_0x2b7547[_0x63bc(0x49)](useState,null),_0x333294=()=>{switch(_0xa971b){case _0x2b7547[_0x63bc(0x4a)]:return{'title':_0x2b7547[_0x63bc(0x4b)],'instructions':'Export\x20your\x20ChatGPT\x20conversations\x20from\x20Settings\x20→\x20Data\x20Controls\x20→\x20Export\x20data.\x20Then\x20upload\x20the\x20JSON\x20file\x20or\x20paste\x20your\x20conversation\x20data.','placeholder':_0x2b7547['XZTiK']};case _0x2b7547[_0x63bc(0x4c)]:return{'title':_0x2b7547['KoOAN'],'instructions':_0x2b7547[_0x63bc(0x4d)],'placeholder':_0x2b7547[_0x63bc(0x4e)]};case _0x63bc(0x4f):return{'title':_0x2b7547[_0x63bc(0x50)],'instructions':_0x2b7547[_0x63bc(0x51)],'placeholder':_0x2b7547[_0x63bc(0x52)]};case _0x2b7547[_0x63bc(0x53)]:return{'title':_0x2b7547['ABlsF'],'instructions':_0x2b7547['oyAsp'],'placeholder':_0x63bc(0x32)};default:return{'title':_0x63bc(0x54)+_0x14865,'instructions':_0x2b7547[_0x63bc(0x55)],'placeholder':_0x2b7547[_0x63bc(0x56)]};}},{title:_0x29bea8,instructions:_0x4511b1,placeholder:_0x32e1c5}=_0x333294(),_0x39d329=_0x3f19e0=>{const _0x58331a={'FgjUG':function(_0x48a001,_0x565d79){return _0x2b7547[_0x63bc(0x57)](_0x48a001,_0x565d79);},'KyUZK':_0x2b7547[_0x63bc(0x58)],'QGCgK':function(_0x311b42,_0x16ba8d){return _0x2b7547[_0x63bc(0x59)](_0x311b42,_0x16ba8d);},'dENmD':_0x2b7547[_0x63bc(0x5a)],'OwZNX':function(_0x717f0a,_0x3a813b){return _0x2b7547['mPWIS'](_0x717f0a,_0x3a813b);},'lseNg':function(_0x1fab9e,_0x384e0c){return _0x2b7547[_0x63bc(0x5b)](_0x1fab9e,_0x384e0c);},'TvrKI':_0x2b7547[_0x63bc(0x5c)],'DjbVe':_0x63bc(0x5d),'UCPmz':function(_0x4002e3,_0x2cfb2f){return _0x4002e3+_0x2cfb2f;},'Epzdn':_0x2b7547['cAwvJ'],'MQceC':function(_0x56cb9e,_0x5bd2d5){return _0x2b7547[_0x63bc(0x5e)](_0x56cb9e,_0x5bd2d5);},'bXTkR':_0x2b7547[_0x63bc(0x5f)],'vVVYe':_0x2b7547[_0x63bc(0x60)],'hulcg':function(_0x1ebb96,_0x48b788){return _0x1ebb96>_0x48b788;},'VCHdY':_0x63bc(0x61)};if(_0x2b7547[_0x63bc(0x59)](_0x2b7547[_0x63bc(0x62)],_0x2b7547[_0x63bc(0x63)]))try{if(_0x2b7547[_0x63bc(0x64)](_0x63bc(0x14),_0x2b7547[_0x63bc(0x65)])){const _0x191f3d=JSON['parse'](_0x3f19e0),_0x3d254e=[];if(Array[_0x63bc(0x66)](_0x191f3d))_0x191f3d['forEach']((_0x3d6940,_0x37f1f3)=>{const _0x158fad={'mcZDI':function(_0x195f53,_0x4b95f5){return _0x58331a[_0x63bc(0x67)](_0x195f53,_0x4b95f5);},'bOupD':_0x58331a['KyUZK'],'fllUJ':function(_0x3b922a,_0x22da25){return _0x3b922a!==_0x22da25;},'yQdSM':function(_0x28588e,_0x314cf9){return _0x58331a['QGCgK'](_0x28588e,_0x314cf9);},'YROPJ':_0x58331a[_0x63bc(0x68)]},_0x5dc537=_0x58331a['OwZNX'](_0x2d86f0,_0x3d6940);_0x58331a[_0x63bc(0x69)](_0x5dc537[_0x63bc(0x6a)],0x0)&&(_0x58331a[_0x63bc(0x6b)]!==_0x58331a['DjbVe']?_0x3d254e[_0x63bc(0x6c)]({'conversationId':_0x3d6940['id']||_0x3d6940['conversation_id']||_0x63bc(0x6d)+_0x37f1f3+'_'+Date[_0x63bc(0x6e)](),'messages':_0x5dc537,'context':{'title':_0x3d6940[_0x63bc(0x6f)]||_0x3d6940[_0x63bc(0x70)]||'Conversation\x20'+_0x58331a[_0x63bc(0x71)](_0x37f1f3,0x1),'create_time':_0x3d6940[_0x63bc(0x72)]||_0x3d6940[_0x63bc(0x73)],'update_time':_0x3d6940[_0x63bc(0x74)]||_0x3d6940[_0x63bc(0x75)]}}):_0x3c4d2c[_0x63bc(0x76)][_0x63bc(0x77)]((_0x176239,_0x57402b)=>{var _0x16a462;const _0x40c766=_0x176239[_0x63bc(0x78)]||_0x176239[_0x63bc(0x79)]||_0x176239[_0x63bc(0x7a)]||'';if(_0x158fad['mcZDI'](typeof _0x40c766,_0x158fad[_0x63bc(0x7b)])&&_0x40c766[_0x63bc(0x7c)]())_0x2e10b5[_0x63bc(0x6c)]({'id':_0x176239['id']||'msg_'+_0x57402b,'role':_0x176239[_0x63bc(0x7d)]||_0x176239['author']||_0x63bc(0x7e),'content':_0x40c766,'timestamp':_0x176239[_0x63bc(0x7f)]||_0x176239[_0x63bc(0x73)]});else _0x158fad['fllUJ'](_0x16a462=_0x176239[_0x63bc(0x78)],null)&&_0x158fad[_0x63bc(0x80)](_0x16a462,void 0x0)&&_0x16a462[_0x63bc(0x81)]&&_0x5e9e79[_0x63bc(0x6c)]({'id':_0x176239['id']||_0x63bc(0x82)+_0x57402b,'role':_0x176239[_0x63bc(0x7d)]||_0x158fad[_0x63bc(0x83)],'content':_0x176239[_0x63bc(0x78)][_0x63bc(0x81)][_0x63bc(0x84)]('\x0a'),'timestamp':_0x176239[_0x63bc(0x7f)]});}));});else{if(_0x191f3d[_0x63bc(0x85)]&&Array[_0x63bc(0x66)](_0x191f3d[_0x63bc(0x85)]))_0x191f3d[_0x63bc(0x85)]['forEach']((_0x23f1a9,_0x5184e0)=>{const _0x5f0517=_0x2b7547[_0x63bc(0x86)](_0x2d86f0,_0x23f1a9);if(_0x2b7547[_0x63bc(0x87)](_0x5f0517[_0x63bc(0x6a)],0x0)){if(_0x2b7547[_0x63bc(0x88)]!==_0x2b7547['WMNPe'])_0x3d254e[_0x63bc(0x6c)]({'conversationId':_0x23f1a9['id']||_0x63bc(0x6d)+_0x5184e0+'_'+Date[_0x63bc(0x6e)](),'messages':_0x5f0517,'context':{'title':_0x23f1a9[_0x63bc(0x6f)]||_0x63bc(0x89)+_0x2b7547[_0x63bc(0x8a)](_0x5184e0,0x1),'create_time':_0x23f1a9[_0x63bc(0x72)],'update_time':_0x23f1a9[_0x63bc(0x74)]}});else throw new _0x1c835c(_0x58331a['Epzdn']);}});else{if(_0x191f3d[_0x63bc(0x8b)]||_0x191f3d[_0x63bc(0x76)]){if(_0x2b7547[_0x63bc(0x64)](_0x63bc(0x8c),_0x2b7547['vObPV'])){var _0x27dba6;_0x2994dd[_0x63bc(0x6c)]({'id':_0x33f848[_0x63bc(0x7a)]['id']||_0x63bc(0x82)+_0x152180,'role':(_0x2b7547[_0x63bc(0x64)](_0x27dba6=_0x110389[_0x63bc(0x7a)][_0x63bc(0x8d)],null)||_0x27dba6===void 0x0?void 0x0:_0x27dba6['role'])||_0x63bc(0x8e),'content':_0x49f5fa,'timestamp':_0x1dc1e9[_0x63bc(0x7a)][_0x63bc(0x72)]?new _0x423887(_0x2b7547['CRkaU'](_0x20b2b3[_0x63bc(0x7a)][_0x63bc(0x72)],0x3e8))['toISOString']():_0x491c7d});}else{const _0x23eb26=_0x2b7547[_0x63bc(0x48)](_0x2d86f0,_0x191f3d);_0x23eb26[_0x63bc(0x6a)]>0x0&&(_0x2b7547[_0x63bc(0x5e)]('irAVT',_0x2b7547['RKTWz'])?_0x3d254e[_0x63bc(0x6c)]({'conversationId':_0x191f3d['id']||_0x63bc(0x6d)+Date[_0x63bc(0x6e)](),'messages':_0x23eb26,'context':{'title':_0x191f3d[_0x63bc(0x6f)]||_0x2b7547[_0x63bc(0x8f)],'create_time':_0x191f3d[_0x63bc(0x72)],'update_time':_0x191f3d[_0x63bc(0x74)]}}):_0x110b85[_0x63bc(0x90)][_0x63bc(0x77)]((_0x54ddd1,_0x2c1ea4)=>{(_0x54ddd1['text']||_0x54ddd1['content'])&&_0x194543[_0x63bc(0x6c)]({'id':_0x54ddd1[_0x63bc(0x91)]||_0x63bc(0x82)+_0x2c1ea4,'role':_0x58331a['MQceC'](_0x54ddd1[_0x63bc(0x92)],_0x58331a['bXTkR'])?_0x58331a[_0x63bc(0x68)]:_0x58331a[_0x63bc(0x93)],'content':_0x54ddd1[_0x63bc(0x79)]||_0x54ddd1['content'],'timestamp':_0x54ddd1[_0x63bc(0x73)]});}));}}else{if(_0x2b7547['ltbma'](_0x63bc(0x17),_0x2b7547['xApnL']))_0x54c06e['push']({'id':_0x2c34b1['id']||_0x63bc(0x82)+_0x4ae4f4,'role':_0x503bcf['role']||_0x45e00f['author']||_0x58331a[_0x63bc(0x68)],'content':_0x1472d9,'timestamp':_0x5d99d8['timestamp']||_0x4e58f4[_0x63bc(0x73)]});else{const _0x27c954=_0x2b7547['mPWIS'](_0x2d86f0,_0x191f3d);_0x2b7547[_0x63bc(0x5b)](_0x27c954[_0x63bc(0x6a)],0x0)&&_0x3d254e[_0x63bc(0x6c)]({'conversationId':_0x63bc(0x6d)+Date[_0x63bc(0x6e)](),'messages':_0x27c954,'context':{'title':_0x191f3d[_0x63bc(0x6f)]||_0x2b7547[_0x63bc(0x8f)]}});}}}}return _0x3d254e;}else{const _0x5179a3=_0xb5d813(_0xc1257a);_0x58331a[_0x63bc(0x94)](_0x5179a3[_0x63bc(0x6a)],0x0)&&_0x491a1d[_0x63bc(0x6c)]({'conversationId':'conv_'+_0x391e4b['now'](),'messages':_0x5179a3,'context':{'title':_0x15c934['title']||_0x58331a[_0x63bc(0x95)]}});}}catch(_0xd4eeba){if(_0x2b7547['vqZIQ'](_0x2b7547['IEelS'],_0x63bc(0x96)))throw new _0xd94feb(_0x2b7547['gGdnm']);else{console['error'](_0x63bc(0x97),_0xd4eeba);throw new Error(_0x2b7547['rosYC']);}}else _0x40cb26[_0x63bc(0x6c)]({'conversationId':_0x1a012f['id']||_0xe747f[_0x63bc(0x98)]||'conv_'+_0x513053+'_'+_0x5ac3bb[_0x63bc(0x6e)](),'messages':_0x4f18d5,'context':{'title':_0x12596f[_0x63bc(0x6f)]||_0x519fcd['name']||_0x63bc(0x89)+_0x2b7547[_0x63bc(0x8a)](_0x32bcec,0x1),'create_time':_0xff2a85['create_time']||_0x317d61[_0x63bc(0x73)],'update_time':_0x57f425['update_time']||_0x3214de[_0x63bc(0x75)]}});},_0x2d86f0=_0x1ccd46=>{const _0x14e5ec={'ChgFR':function(_0x1f2dd4,_0x1a842e){return _0x2b7547[_0x63bc(0x5e)](_0x1f2dd4,_0x1a842e);},'iHyGJ':_0x2b7547['apTnF'],'NfxLS':function(_0x21dde2,_0x7fc5a5){return _0x2b7547['ltbma'](_0x21dde2,_0x7fc5a5);},'mxzZv':function(_0x45f2ff,_0x2e7184){return _0x45f2ff(_0x2e7184);},'CUHjM':function(_0x1b9a71,_0x2b7e6b){return _0x2b7547[_0x63bc(0x99)](_0x1b9a71,_0x2b7e6b);},'Gnred':_0x2b7547[_0x63bc(0x9a)],'wXzXd':_0x2b7547[_0x63bc(0x58)],'Oyrdv':function(_0x2a62b5,_0x2e694f){return _0x2b7547[_0x63bc(0x59)](_0x2a62b5,_0x2e694f);},'ozyMP':function(_0x53f282,_0x1062c0){return _0x2b7547['ltbma'](_0x53f282,_0x1062c0);},'RLOLn':_0x2b7547[_0x63bc(0x9b)],'EHxpy':_0x63bc(0x9c),'RRGEB':function(_0x18b03e,_0x4352f1){return _0x2b7547[_0x63bc(0x59)](_0x18b03e,_0x4352f1);},'VUIsS':_0x63bc(0x9d),'tDwMJ':_0x2b7547[_0x63bc(0x9e)],'fOhOA':_0x2b7547[_0x63bc(0x5f)]},_0x263c73=[];return _0x1ccd46[_0x63bc(0x8b)]&&Object[_0x63bc(0x9f)](_0x1ccd46['mapping'])[_0x63bc(0x77)]((_0x259928,_0x450d7e)=>{const _0x20f465={'kgATe':function(_0x51eaca,_0x26978f){return _0x2b7547[_0x63bc(0xa0)](_0x51eaca,_0x26978f);},'zZNgq':function(_0x59e103,_0x4cc37e){return _0x59e103(_0x4cc37e);}};if(_0x2b7547[_0x63bc(0x5e)](_0x2b7547[_0x63bc(0xa1)],_0x2b7547['QRtnC']))_0x1a4a3c[_0x63bc(0xa2)]('Submit\x20error:',_0xb37998),_0x20f465[_0x63bc(0xa3)](_0xd6ea31,_0x55f11e[_0x63bc(0x7a)]||_0x63bc(0x30)),_0x20f465[_0x63bc(0xa4)](_0xfbd43,_0x147f32[_0x63bc(0xa5)]);else{var _0x5cb684;if(_0x2b7547[_0x63bc(0x59)](_0x259928,null)&&_0x2b7547[_0x63bc(0x59)](_0x259928,void 0x0)&&_0x2b7547[_0x63bc(0x59)](_0x5cb684=_0x259928[_0x63bc(0x7a)],null)&&_0x5cb684!==void 0x0&&_0x2b7547['ltbma'](_0x5cb684=_0x5cb684[_0x63bc(0x78)],null)&&_0x2b7547[_0x63bc(0x59)](_0x5cb684,void 0x0)&&_0x5cb684[_0x63bc(0x81)]){const _0x245946=_0x259928[_0x63bc(0x7a)][_0x63bc(0x78)][_0x63bc(0x81)][_0x63bc(0x84)]('\x0a');if(_0x245946[_0x63bc(0x7c)]()){var _0x1b1140;_0x263c73[_0x63bc(0x6c)]({'id':_0x259928[_0x63bc(0x7a)]['id']||_0x63bc(0x82)+_0x450d7e,'role':(_0x2b7547['olhEj'](_0x1b1140=_0x259928['message'][_0x63bc(0x8d)],null)||_0x2b7547[_0x63bc(0x5e)](_0x1b1140,void 0x0)?void 0x0:_0x1b1140[_0x63bc(0x7d)])||_0x2b7547[_0x63bc(0xa6)],'content':_0x245946,'timestamp':_0x259928[_0x63bc(0x7a)][_0x63bc(0x72)]?new Date(_0x259928[_0x63bc(0x7a)][_0x63bc(0x72)]*0x3e8)[_0x63bc(0xa7)]():undefined});}}}}),_0x1ccd46[_0x63bc(0x76)]&&Array[_0x63bc(0x66)](_0x1ccd46[_0x63bc(0x76)])&&_0x1ccd46[_0x63bc(0x76)][_0x63bc(0x77)]((_0x3b4b6e,_0x145e2b)=>{const _0x4331b4={'EDHnJ':function(_0x1e78c4,_0x2598a2){return _0x14e5ec[_0x63bc(0xa8)](_0x1e78c4,_0x2598a2);}};if(_0x14e5ec[_0x63bc(0xa9)](_0x14e5ec['Gnred'],_0x14e5ec[_0x63bc(0xaa)])){var _0x25e97c;const _0x3d6a87=_0x3b4b6e[_0x63bc(0x78)]||_0x3b4b6e['text']||_0x3b4b6e[_0x63bc(0x7a)]||'';if(typeof _0x3d6a87===_0x14e5ec[_0x63bc(0xab)]&&_0x3d6a87['trim']())_0x263c73['push']({'id':_0x3b4b6e['id']||'msg_'+_0x145e2b,'role':_0x3b4b6e[_0x63bc(0x7d)]||_0x3b4b6e[_0x63bc(0x8d)]||_0x14e5ec[_0x63bc(0xac)],'content':_0x3d6a87,'timestamp':_0x3b4b6e[_0x63bc(0x7f)]||_0x3b4b6e[_0x63bc(0x73)]});else{if(_0x14e5ec['Oyrdv'](_0x25e97c=_0x3b4b6e[_0x63bc(0x78)],null)&&_0x14e5ec[_0x63bc(0xad)](_0x25e97c,void 0x0)&&_0x25e97c['parts']){if(_0x14e5ec['RLOLn']===_0x14e5ec[_0x63bc(0xae)]){_0x4331b4[_0x63bc(0xaf)](_0xb8dbea,_0x63bc(0x2b)),_0x34556f(_0x4ec213[_0x63bc(0xa5)]);return;}else _0x263c73[_0x63bc(0x6c)]({'id':_0x3b4b6e['id']||_0x63bc(0x82)+_0x145e2b,'role':_0x3b4b6e[_0x63bc(0x7d)]||_0x14e5ec[_0x63bc(0xac)],'content':_0x3b4b6e[_0x63bc(0x78)]['parts'][_0x63bc(0x84)]('\x0a'),'timestamp':_0x3b4b6e[_0x63bc(0x7f)]});}}}else{var _0x10b662;const _0x5c132a=_0x3948e7[_0x63bc(0x78)]||_0x440615[_0x63bc(0x79)]||_0x58a992[_0x63bc(0x7a)]||'';if(_0x14e5ec[_0x63bc(0xb0)](typeof _0x5c132a,_0x63bc(0xb1))&&_0x5c132a[_0x63bc(0x7c)]())_0x2ce97c[_0x63bc(0x6c)]({'id':_0x452ae4['id']||_0x63bc(0x82)+_0x16ead0,'role':_0x25f2bd[_0x63bc(0x7d)]||_0x381e5d[_0x63bc(0x8d)]||_0x14e5ec[_0x63bc(0xac)],'content':_0x5c132a,'timestamp':_0x54bae2[_0x63bc(0x7f)]||_0x679744[_0x63bc(0x73)]});else _0x14e5ec[_0x63bc(0xb2)](_0x10b662=_0x4efc49[_0x63bc(0x78)],null)&&_0x14e5ec[_0x63bc(0xb2)](_0x10b662,void 0x0)&&_0x10b662['parts']&&_0x4aedfb['push']({'id':_0x1891d5['id']||_0x63bc(0x82)+_0x5a4d9e,'role':_0x354e23[_0x63bc(0x7d)]||_0x63bc(0x7e),'content':_0x2e5394['content'][_0x63bc(0x81)]['join']('\x0a'),'timestamp':_0x84a1ec[_0x63bc(0x7f)]});}}),_0x1ccd46[_0x63bc(0x90)]&&Array[_0x63bc(0x66)](_0x1ccd46['chat_messages'])&&_0x1ccd46['chat_messages'][_0x63bc(0x77)]((_0x3089a4,_0x2ca666)=>{(_0x3089a4[_0x63bc(0x79)]||_0x3089a4[_0x63bc(0x78)])&&(_0x14e5ec['RRGEB'](_0x14e5ec[_0x63bc(0xb3)],_0x14e5ec[_0x63bc(0xb4)])?_0x263c73['push']({'id':_0x3089a4['uuid']||'msg_'+_0x2ca666,'role':_0x14e5ec[_0x63bc(0xb0)](_0x3089a4[_0x63bc(0x92)],_0x14e5ec[_0x63bc(0xb5)])?_0x14e5ec[_0x63bc(0xac)]:_0x63bc(0x11),'content':_0x3089a4[_0x63bc(0x79)]||_0x3089a4[_0x63bc(0x78)],'timestamp':_0x3089a4[_0x63bc(0x73)]}):_0x31b97d++);}),_0x263c73;},_0x106def=async()=>{const _0x36095a={'ynafR':function(_0x41d5b8,_0x544244){return _0x41d5b8===_0x544244;},'Hdxrq':_0x63bc(0x7e),'ueAkd':_0x2b7547[_0x63bc(0x60)],'uVDoo':function(_0x23d536,_0x1660cd){return _0x2b7547[_0x63bc(0xb6)](_0x23d536,_0x1660cd);},'inRBe':function(_0x15c983,_0x26436e){return _0x2b7547[_0x63bc(0xb7)](_0x15c983,_0x26436e);},'YtlRL':_0x63bc(0x61)};if(_0x2b7547[_0x63bc(0xb8)]!==_0x2b7547['zTuIp']){if(!FILE_UPLOAD_AVAILABLE){if(_0x2b7547[_0x63bc(0xb9)](_0x2b7547[_0x63bc(0xba)],_0x2b7547[_0x63bc(0xbb)])){const _0x576944=_0xeb1903(_0x197bd7);_0x576944['length']>0x0&&_0x585b7b[_0x63bc(0x6c)]({'conversationId':_0x5b3864['id']||_0x63bc(0x6d)+_0xfefa3e+'_'+_0x312b61[_0x63bc(0x6e)](),'messages':_0x576944,'context':{'title':_0x219377[_0x63bc(0x6f)]||_0x63bc(0x89)+_0x2b7547[_0x63bc(0xbc)](_0xe2907e,0x1),'create_time':_0xad5d2a[_0x63bc(0x72)],'update_time':_0x48711a[_0x63bc(0x74)]}});}else{_0x2b7547['lhlDY'](_0x418743,'File upload requires react-native-document-picker and react-native-fs. Please paste data instead.');return;}}try{_0x2b7547[_0x63bc(0xa0)](_0x418743,null);const {pick:_0x514573,types:_0x2923e4}=DocumentPicker,_0x3ffde4=await _0x2b7547['xbKmK'](_0x514573,{'type':[_0x2923e4[_0x63bc(0xbd)],_0x2923e4[_0x63bc(0xbe)],_0x2923e4[_0x63bc(0xbf)]]});if(_0x3ffde4&&_0x3ffde4[0x0]){const _0x55ceaf=_0x3ffde4[0x0];_0x2b7547['sHtYP'](_0x24ef72,_0x55ceaf[_0x63bc(0x70)]||'Selected\x20file');let _0x14c52f;_0x55ceaf['uri'][_0x63bc(0xc0)](_0x2b7547[_0x63bc(0xc1)])?_0x14c52f=await RNFS['readFile'](_0x55ceaf['uri'],_0x63bc(0xc2)):_0x2b7547[_0x63bc(0xc3)]('nYRSi',_0x2b7547['JiOOP'])?_0x31630c[_0x63bc(0x6c)]({'id':_0x1ebb82[_0x63bc(0x91)]||_0x63bc(0x82)+_0x1dcc27,'role':_0x36095a[_0x63bc(0xc4)](_0x875c20['sender'],_0x63bc(0x10))?_0x36095a[_0x63bc(0xc5)]:_0x36095a['ueAkd'],'content':_0xa1b684['text']||_0x5ba7da[_0x63bc(0x78)],'timestamp':_0x5e1182[_0x63bc(0x73)]}):_0x14c52f=await RNFS[_0x63bc(0xc6)](_0x55ceaf['uri'],_0x63bc(0xc2)),_0x2b7547[_0x63bc(0xc7)](_0x5f421e,_0x14c52f),_0x57c3a3(_0x14c52f),_0x2b7547[_0x63bc(0x48)](triggerHaptic,HapticType[_0x63bc(0xc8)]);}}catch(_0x5e4d68){if(_0x2b7547[_0x63bc(0xc9)](_0x5e4d68['code'],_0x2b7547['xdTsn'])){if(_0x2b7547['olhEj'](_0x2b7547[_0x63bc(0xca)],_0x2b7547['eoPAI'])){const _0x78378a=_0x36095a[_0x63bc(0xcb)](_0x5e83c3,_0x2f57e0);_0x36095a[_0x63bc(0xcc)](_0x78378a[_0x63bc(0x6a)],0x0)&&_0xfa650f[_0x63bc(0x6c)]({'conversationId':_0x5e450a['id']||_0x63bc(0x6d)+_0x2d1f11[_0x63bc(0x6e)](),'messages':_0x78378a,'context':{'title':_0x3d796b[_0x63bc(0x6f)]||_0x36095a[_0x63bc(0xcd)],'create_time':_0x358082[_0x63bc(0x72)],'update_time':_0x5119b2['update_time']}});}else console[_0x63bc(0xa2)](_0x2b7547[_0x63bc(0xce)],_0x5e4d68),_0x2b7547[_0x63bc(0xc7)](_0x418743,'Failed\x20to\x20read\x20file.\x20Please\x20try\x20again\x20or\x20paste\x20data\x20manually.'),_0x2b7547[_0x63bc(0xcf)](triggerHaptic,HapticType[_0x63bc(0xa5)]);}}}else _0x1a9bc1[_0x63bc(0x6c)]({'conversationId':_0x63bc(0x6d)+_0x3b0c94[_0x63bc(0x6e)](),'messages':_0x25a646,'context':{'title':_0x492ffd[_0x63bc(0x6f)]||'Imported\x20Conversation'}});},_0x3bf15a=async()=>{const _0x38b3b7={'VzRGQ':_0x2b7547[_0x63bc(0xd0)],'AfHbA':_0x2b7547[_0x63bc(0xd1)]},_0x7342c3=_0x2d518d===_0x2b7547['oySrx']&&_0x301e38?_0x301e38:_0x4e6dd6;if(!_0x7342c3[_0x63bc(0x7c)]()){if(_0x2b7547[_0x63bc(0xc9)](_0x2b7547['bURRy'],_0x63bc(0x2a)))_0x2b7547['lLRwn'](_0x443f3b,![]);else{_0x2b7547[_0x63bc(0x49)](_0x418743,_0x2b7547[_0x63bc(0xd2)]),_0x2b7547['kzqOa'](triggerHaptic,HapticType['ERROR']);return;}}_0x2b7547['AESCc'](_0x4cac31,!![]),_0x418743(null);try{const _0x19ff2d=_0x39d329(_0x7342c3);if(_0x2b7547[_0x63bc(0xd3)](_0x19ff2d[_0x63bc(0x6a)],0x0)){if(_0x2b7547['mautf']!==_0x2b7547[_0x63bc(0xd4)])throw new Error(_0x2b7547[_0x63bc(0xd5)]);else _0x2442a3[_0x63bc(0x0)]('react-native-fs not available - file upload disabled');}const _0x4b6c60=await AsyncStorage[_0x63bc(0xd6)](_0x2b7547[_0x63bc(0xd7)])||await AsyncStorage['getItem'](_0x2b7547[_0x63bc(0xd8)])||await AsyncStorage['getItem'](_0x2b7547[_0x63bc(0xd9)]);if(!_0x4b6c60)throw new Error(_0x2b7547['szWMw']);const _0xc73173=_0x63bc(0xda)+_0xa971b;let _0x297e1b=0x0;for(const _0x133150 of _0x19ff2d){try{const _0x391314=await _0x2b7547['SiiXZ'](fetch,API_CONFIG[_0x63bc(0xdb)]+_0x63bc(0xdc),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4b6c60},'body':JSON[_0x63bc(0xdd)]({'platform':_0xc73173,'conversationData':{'conversationId':_0x133150[_0x63bc(0xde)],'messages':_0x133150[_0x63bc(0x76)],'context':_0x133150['context'],'mobileMetadata':{'platform':Platform['OS'],'appVersion':'1.0.0','osVersion':Platform[_0x63bc(0xdf)],'isOfflineSync':![]}},'memoryType':_0x2b7547[_0x63bc(0xe0)],'metadata':{'source':'mobile_app_import','importedAt':new Date()[_0x63bc(0xa7)](),'originalPlatform':_0xa971b}})});if(_0x391314['ok'])_0x297e1b++;else{const _0x19ec4c=await _0x391314['text']();console[_0x63bc(0xa2)]('Failed\x20to\x20store\x20conversation\x20'+_0x133150[_0x63bc(0xde)]+':',_0x19ec4c);}}catch(_0x13f402){if(_0x63bc(0xe1)===_0x2b7547[_0x63bc(0xe2)])throw new _0x4b8459(_0x2b7547[_0x63bc(0xe3)]);else console[_0x63bc(0xa2)]('Error\x20storing\x20conversation:',_0x13f402);}}if(_0x2b7547[_0x63bc(0x87)](_0x297e1b,0x0))await AsyncStorage['setItem']('@onairos:llm_connected:'+_0xa971b,JSON['stringify']({'connected':!![],'platform':_0xa971b,'conversationsCount':_0x297e1b,'lastSyncAt':new Date()[_0x63bc(0xa7)]()})),_0x2b7547[_0x63bc(0xb6)](triggerHaptic,HapticType[_0x63bc(0xc8)]),Alert['alert']('Success!\x20🎉','Successfully\x20imported\x20'+_0x297e1b+_0x63bc(0xe4)+(_0x2b7547[_0x63bc(0xe5)](_0x297e1b,0x1)?'s':'')+_0x63bc(0xe6)+_0x14865+'.',[{'text':'OK','onPress':()=>_0x5ac40c(_0xa971b)}]);else throw new Error(_0x2b7547['cAwvJ']);}catch(_0x1381a1){if(_0x2b7547[_0x63bc(0xe7)](_0x2b7547['cqJZP'],_0x2b7547[_0x63bc(0xe8)]))console[_0x63bc(0xa2)](_0x2b7547[_0x63bc(0xe9)],_0x1381a1),_0x2b7547[_0x63bc(0xea)](_0x418743,_0x1381a1[_0x63bc(0x7a)]||_0x2b7547[_0x63bc(0xeb)]),_0x2b7547[_0x63bc(0xec)](triggerHaptic,HapticType[_0x63bc(0xa5)]);else{_0xe6c6ee['error'](_0x38b3b7[_0x63bc(0xed)],_0x3d14af);throw new _0x50cebe(_0x38b3b7[_0x63bc(0xee)]);}}finally{_0x2b7547[_0x63bc(0xef)](_0x4cac31,![]);}},_0x54683c=()=>{if(_0x2b7547['VLUVL'](_0x63bc(0x33),_0x2b7547[_0x63bc(0xf0)]))switch(_0x4f5d66){case'chatgpt':return{'title':_0x2b7547['Ihkms'],'instructions':_0x2b7547[_0x63bc(0xf1)],'placeholder':_0x63bc(0x3)};case _0x63bc(0x4):return{'title':_0x2b7547[_0x63bc(0xf2)],'instructions':_0x2b7547[_0x63bc(0x4d)],'placeholder':_0x2b7547[_0x63bc(0x4e)]};case _0x63bc(0x4f):return{'title':_0x2b7547[_0x63bc(0x50)],'instructions':_0x2b7547[_0x63bc(0x51)],'placeholder':_0x2b7547[_0x63bc(0x52)]};case _0x2b7547[_0x63bc(0x53)]:return{'title':_0x2b7547[_0x63bc(0xf3)],'instructions':_0x63bc(0xa),'placeholder':_0x2b7547[_0x63bc(0xf4)]};default:return{'title':_0x63bc(0x54)+_0x4f28b8,'instructions':_0x63bc(0xb),'placeholder':_0x2b7547[_0x63bc(0x56)]};}else _0x2b7547[_0x63bc(0xc7)](_0x57c3a3,''),_0x5f421e(null),_0x24ef72(null),_0x2b7547[_0x63bc(0xef)](_0x418743,null),_0x2b7547[_0x63bc(0x49)](_0x2afe92,_0x2b7547[_0x63bc(0x46)]),_0x2b7547[_0x63bc(0xf5)](_0x1b44c0);};return React['createElement'](Modal,{'visible':_0x90f67,'animationType':_0x63bc(0xf6),'presentationStyle':_0x2b7547['hlCsK'],'onRequestClose':_0x54683c},React['createElement'](KeyboardAvoidingView,{'style':styles[_0x63bc(0xf7)],'behavior':Platform['OS']===_0x2b7547[_0x63bc(0xf8)]?_0x2b7547['VYvVv']:_0x2b7547['VTTsn']},React['createElement'](View,{'style':styles['header']},React['createElement'](TouchableOpacity,{'style':styles[_0x63bc(0xf9)],'onPress':_0x54683c},React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0xfb)]},'Cancel')),React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0xfc)]},_0x29bea8),React[_0x63bc(0xfa)](View,{'style':styles['closeButton']})),React[_0x63bc(0xfa)](ScrollView,{'style':styles[_0x63bc(0x78)],'contentContainerStyle':styles['contentContainer'],'keyboardShouldPersistTaps':_0x2b7547[_0x63bc(0xfd)]},React['createElement'](View,{'style':styles[_0x63bc(0xfe)]},React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0xff)]},_0x4511b1)),React[_0x63bc(0xfa)](View,{'style':styles['tabContainer']},React[_0x63bc(0xfa)](TouchableOpacity,{'style':[styles[_0x63bc(0x100)],_0x2b7547[_0x63bc(0x101)](_0x2d518d,'paste')&&styles['tabActive']],'onPress':()=>{if(_0x2b7547['gXVRP']!==_0x2b7547[_0x63bc(0x102)]){var _0x3caa7b;if(_0x2b7547['fTyHh'](_0x592b7d,null)&&_0x2b7547[_0x63bc(0x103)](_0x1a0ac1,void 0x0)&&_0x2b7547[_0x63bc(0x59)](_0x3caa7b=_0x50933e[_0x63bc(0x7a)],null)&&_0x2b7547['VLUVL'](_0x3caa7b,void 0x0)&&_0x2b7547['fTyHh'](_0x3caa7b=_0x3caa7b[_0x63bc(0x78)],null)&&_0x2b7547[_0x63bc(0x103)](_0x3caa7b,void 0x0)&&_0x3caa7b[_0x63bc(0x81)]){const _0x1f2646=_0x4dbf4d[_0x63bc(0x7a)][_0x63bc(0x78)][_0x63bc(0x81)][_0x63bc(0x84)]('\x0a');if(_0x1f2646['trim']()){var _0x51830d;_0x2f1996['push']({'id':_0x2797bb['message']['id']||_0x63bc(0x82)+_0x5401fd,'role':(_0x2b7547[_0x63bc(0x64)](_0x51830d=_0x4d44e2['message'][_0x63bc(0x8d)],null)||_0x2b7547[_0x63bc(0x104)](_0x51830d,void 0x0)?void 0x0:_0x51830d[_0x63bc(0x7d)])||_0x2b7547[_0x63bc(0xa6)],'content':_0x1f2646,'timestamp':_0x60f73f[_0x63bc(0x7a)][_0x63bc(0x72)]?new _0x5a79b4(_0x2b7547['NntmF'](_0x538009[_0x63bc(0x7a)][_0x63bc(0x72)],0x3e8))[_0x63bc(0xa7)]():_0x24d298});}}}else _0x2b7547[_0x63bc(0x105)](_0x2afe92,_0x2b7547[_0x63bc(0x46)]),_0x2b7547['rZZhB'](triggerHaptic,HapticType[_0x63bc(0x106)]);}},React[_0x63bc(0xfa)](Text,{'style':[styles[_0x63bc(0x107)],_0x2b7547['vqYKd'](_0x2d518d,_0x63bc(0x34))&&styles[_0x63bc(0x108)]]},_0x2b7547[_0x63bc(0x109)])),React[_0x63bc(0xfa)](TouchableOpacity,{'style':[styles[_0x63bc(0x100)],_0x2b7547['vqYKd'](_0x2d518d,_0x2b7547[_0x63bc(0x10a)])&&styles['tabActive'],!FILE_UPLOAD_AVAILABLE&&styles[_0x63bc(0x10b)]],'onPress':()=>{FILE_UPLOAD_AVAILABLE?(_0x2b7547[_0x63bc(0xef)](_0x2afe92,_0x2b7547[_0x63bc(0x10a)]),_0x2b7547[_0x63bc(0x10c)](triggerHaptic,HapticType['BUTTON_PRESS'])):(_0x418743(_0x2b7547[_0x63bc(0x10d)]),_0x2b7547[_0x63bc(0x10e)](triggerHaptic,HapticType[_0x63bc(0xa5)]));}},React[_0x63bc(0xfa)](Text,{'style':[styles[_0x63bc(0x107)],_0x2b7547[_0x63bc(0x10f)](_0x2d518d,_0x2b7547['oySrx'])&&styles[_0x63bc(0x108)],!FILE_UPLOAD_AVAILABLE&&styles['tabTextDisabled']]},_0x2b7547[_0x63bc(0x110)],!FILE_UPLOAD_AVAILABLE&&_0x2b7547[_0x63bc(0x111)]))),_0x2d518d===_0x2b7547[_0x63bc(0x46)]?React['createElement'](View,{'style':styles[_0x63bc(0x112)]},React[_0x63bc(0xfa)](TextInput,{'style':styles[_0x63bc(0x113)],'multiline':!![],'placeholder':_0x32e1c5,'placeholderTextColor':COLORS[_0x63bc(0x114)],'value':_0x4e6dd6,'onChangeText':_0x57c3a3,'textAlignVertical':_0x2b7547[_0x63bc(0x115)],'autoCapitalize':_0x63bc(0x116),'autoCorrect':![]})):React[_0x63bc(0xfa)](View,{'style':styles['fileInputContainer']},React['createElement'](TouchableOpacity,{'style':styles['filePickButton'],'onPress':_0x106def},React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0x117)]},'📁'),React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0x118)]},_0x2b7547[_0x63bc(0x119)](_0x5bd7c7,_0x2b7547[_0x63bc(0x11a)]))),_0x5bd7c7&&React[_0x63bc(0xfa)](View,{'style':styles[_0x63bc(0x11b)]},React['createElement'](Text,{'style':styles[_0x63bc(0x11c)]},'✓\x20',_0x5bd7c7))),_0x2ea21d&&React[_0x63bc(0xfa)](View,{'style':styles[_0x63bc(0x11d)]},React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0x11e)]},_0x2ea21d)),_0x2b7547[_0x63bc(0x11f)](_0x4e6dd6[_0x63bc(0x6a)],0x0)&&React[_0x63bc(0xfa)](View,{'style':styles[_0x63bc(0x120)]},React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0x121)]},_0x2b7547['duDIT']),React['createElement'](Text,{'style':styles[_0x63bc(0x122)],'numberOfLines':0x5},_0x4e6dd6[_0x63bc(0x123)](0x0,0x1f4),_0x2b7547[_0x63bc(0x11f)](_0x4e6dd6[_0x63bc(0x6a)],0x1f4)?_0x2b7547[_0x63bc(0x124)]:''),React[_0x63bc(0xfa)](Text,{'style':styles['previewInfo']},_0x4e6dd6[_0x63bc(0x6a)][_0x63bc(0x125)](),_0x2b7547['rSoBn']))),React[_0x63bc(0xfa)](View,{'style':styles[_0x63bc(0x126)]},React[_0x63bc(0xfa)](TouchableOpacity,{'style':[styles[_0x63bc(0x127)],(!_0x4e6dd6['trim']()||_0x318ad2)&&styles['submitButtonDisabled']],'onPress':_0x3bf15a,'disabled':!_0x4e6dd6[_0x63bc(0x7c)]()||_0x318ad2},_0x318ad2?React[_0x63bc(0xfa)](ActivityIndicator,{'color':_0x2b7547['ASKtK'],'size':_0x2b7547[_0x63bc(0x128)]}):React[_0x63bc(0xfa)](Text,{'style':styles[_0x63bc(0x129)]},_0x2b7547[_0x63bc(0x12a)])))));},styles=StyleSheet[_0x63bc(0x12b)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x63bc(0x12c)]},'header':{'flexDirection':_0x63bc(0x12d),'alignItems':_0x63bc(0x12e),'justifyContent':_0x63bc(0x12f),'paddingHorizontal':0x10,'paddingTop':Platform['OS']===_0x63bc(0x38)?0xc:0x10,'paddingBottom':0xc,'borderBottomWidth':0x1,'borderBottomColor':_0x63bc(0x130)},'headerTitle':{'fontSize':0x11,'fontWeight':_0x63bc(0x131),'color':COLORS[_0x63bc(0x132)],'fontFamily':_0x63bc(0x133)},'closeButton':{'width':0x3c},'closeButtonText':{'fontSize':0x10,'color':_0x63bc(0x134),'fontFamily':_0x63bc(0x135)},'content':{'flex':0x1},'contentContainer':{'padding':0x14,'paddingBottom':0x28},'instructionsContainer':{'backgroundColor':'#F0F9FF','borderRadius':0xc,'padding':0x10,'marginBottom':0x14},'instructionsText':{'fontSize':0xe,'lineHeight':0x14,'color':'#0369A1','fontFamily':_0x63bc(0x135)},'tabContainer':{'flexDirection':_0x63bc(0x12d),'backgroundColor':_0x63bc(0x136),'borderRadius':0xa,'padding':0x4,'marginBottom':0x14},'tab':{'flex':0x1,'paddingVertical':0xa,'borderRadius':0x8,'alignItems':_0x63bc(0x12e)},'tabActive':{'backgroundColor':'#FFFFFF','shadowColor':_0x63bc(0x137),'shadowOffset':{'width':0x0,'height':0x1},'shadowOpacity':0.1,'shadowRadius':0x2,'elevation':0x2},'tabText':{'fontSize':0xe,'fontWeight':'500','color':COLORS[_0x63bc(0x138)],'fontFamily':_0x63bc(0x135)},'tabTextActive':{'color':COLORS[_0x63bc(0x132)]},'tabDisabled':{'opacity':0.5},'tabTextDisabled':{'color':COLORS[_0x63bc(0x114)]},'inputContainer':{'marginBottom':0x14},'textInput':{'backgroundColor':'#FFFFFF','borderWidth':0x1,'borderColor':COLORS[_0x63bc(0x139)],'borderRadius':0xc,'padding':0x10,'minHeight':0xc8,'fontSize':0xe,'fontFamily':Platform['OS']===_0x63bc(0x38)?_0x63bc(0x13a):_0x63bc(0x13b),'color':COLORS[_0x63bc(0x132)]},'fileInputContainer':{'marginBottom':0x14},'filePickButton':{'backgroundColor':'#FFFFFF','borderWidth':0x2,'borderColor':COLORS[_0x63bc(0x139)],'borderStyle':_0x63bc(0x13c),'borderRadius':0xc,'padding':0x28,'alignItems':_0x63bc(0x12e),'justifyContent':_0x63bc(0x12e)},'filePickIcon':{'fontSize':0x28,'marginBottom':0xc},'filePickText':{'fontSize':0xf,'color':COLORS['grey600'],'fontFamily':_0x63bc(0x135)},'fileSelectedContainer':{'marginTop':0xc,'backgroundColor':'#F0FDF4','borderRadius':0x8,'padding':0xc},'fileSelectedText':{'fontSize':0xe,'color':_0x63bc(0x13d),'fontFamily':_0x63bc(0x135),'fontWeight':'500'},'errorContainer':{'backgroundColor':_0x63bc(0x13e),'borderRadius':0x8,'padding':0xc,'marginBottom':0x10},'errorText':{'fontSize':0xe,'color':_0x63bc(0x13f),'fontFamily':_0x63bc(0x135)},'previewContainer':{'backgroundColor':_0x63bc(0x136),'borderRadius':0xc,'padding':0x10},'previewTitle':{'fontSize':0xe,'fontWeight':'600','color':COLORS[_0x63bc(0x132)],'marginBottom':0x8,'fontFamily':_0x63bc(0x135)},'previewText':{'fontSize':0xc,'color':COLORS[_0x63bc(0x140)],'fontFamily':Platform['OS']==='ios'?'Menlo':_0x63bc(0x13b),'lineHeight':0x12},'previewInfo':{'fontSize':0xc,'color':COLORS[_0x63bc(0x138)],'marginTop':0x8,'fontFamily':_0x63bc(0x135)},'footer':{'padding':0x14,'paddingBottom':Platform['OS']===_0x63bc(0x38)?0x22:0x14,'borderTopWidth':0x1,'borderTopColor':'#E5E7EB','backgroundColor':COLORS[_0x63bc(0x12c)]},'submitButton':{'backgroundColor':_0x63bc(0x141),'borderRadius':0xc,'paddingVertical':0x10,'alignItems':_0x63bc(0x12e),'justifyContent':_0x63bc(0x12e)},'submitButtonDisabled':{'backgroundColor':COLORS[_0x63bc(0x139)]},'submitButtonText':{'fontSize':0x10,'fontWeight':_0x63bc(0x131),'color':_0x63bc(0x43),'fontFamily':_0x63bc(0x135)}});export default LLMDataInputModal;function _0x5228(){const _0x2555f0=['log','chatgpt','Connect\x20ChatGPT','Paste\x20your\x20ChatGPT\x20conversation\x20JSON\x20here...','claude','Paste\x20your\x20Claude\x20conversation\x20JSON\x20here...','Connect\x20Gemini','Export\x20your\x20Gemini\x20(Google\x20AI)\x20conversations\x20and\x20paste\x20the\x20data\x20below.','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.','Paste\x20your\x20conversation\x20JSON\x20here...','ptbhp','No\x20valid\x20conversations\x20found\x20in\x20the\x20data.\x20Please\x20check\x20the\x20format.','Failed\x20to\x20import\x20any\x20conversations.\x20Please\x20check\x20your\x20data\x20format.','human','assistant','KVvWu','tpYXv','seaaC','nEZXC','irAVT','bhZVe','zgcBE','Invalid\x20JSON\x20format.\x20Please\x20check\x20your\x20data\x20and\x20try\x20again.','WuzCP','riPvX','Johyr','iFdmb','KAzrj','AQvoD','KhEFb','pILbU','lQPlN','content://','nYRSi','DOCUMENT_PICKER_CANCELED','URlPq','ldlZl','Authentication\x20required.\x20Please\x20sign\x20in\x20first.','file','jdWnI','Please\x20paste\x20or\x20upload\x20conversation\x20data\x20first.','BQOsV','enoch_token','conversation','VEACx','Failed\x20to\x20import\x20data.\x20Please\x20try\x20again.','Export\x20your\x20ChatGPT\x20conversations\x20from\x20Settings\x20→\x20Data\x20Controls\x20→\x20Export\x20data.\x20Then\x20upload\x20the\x20JSON\x20file\x20or\x20paste\x20your\x20conversation\x20data.','Paste\x20your\x20Grok\x20conversation\x20JSON\x20here...','dMHbh','paste','AXYTw','File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.','pageSheet','ios','padding','height','handled','Paste\x20Data','Upload\x20File\x20','top','Tap\x20to\x20select\x20a\x20file','Data\x20Preview','...','\x20characters','#FFFFFF','small','Import\x20Conversations','Lyeed','JwXzR','xbKmK','mPWIS','qOkSQ','Ihkms','xZHZH','WwKCK','MAmEq','gemini','hjTwv','OolQw','vyVUu','ESGET','Connect\x20','uyHuJ','YoawH','vqZIQ','WHgvb','ltbma','apTnF','zYGRE','PqFDM','OlVEP','vXNIt','yAuCh','eDrtU','Imported\x20Conversation','yRdzb','GqKKZ','bZzFB','HGckf','isArray','FgjUG','dENmD','lseNg','length','TvrKI','push','conv_','now','title','name','UCPmz','create_time','created_at','update_time','updated_at','messages','forEach','content','text','message','bOupD','trim','role','user','timestamp','yQdSM','parts','msg_','YROPJ','join','conversations','mKTLC','Oprlv','PErOh','Conversation\x20','ovUPk','mapping','jYGwn','author','unknown','lLAGG','chat_messages','uuid','sender','vVVYe','hulcg','VCHdY','Kdzxn','Error\x20parsing\x20conversation\x20data:','conversation_id','lZleq','GGtub','pIKBS','kihIa','nWJdV','Gtrfr','values','DVQyh','znoIX','error','kgATe','zZNgq','ERROR','LRnwS','toISOString','mxzZv','CUHjM','Gnred','wXzXd','iHyGJ','ozyMP','EHxpy','EDHnJ','ChgFR','string','NfxLS','VUIsS','tDwMJ','fOhOA','sHtYP','UeChf','rKJNc','yNawP','yMOeZ','xyxBf','bkIbm','json','plainText','allFiles','startsWith','OdFUT','utf8','VLUVL','ynafR','Hdxrq','readFile','lhlDY','SUCCESS','fTyHh','WEJdz','uVDoo','inRBe','YtlRL','yWAmI','kzqOa','mXsVR','rosYC','nPvOO','olhEj','YIqrs','gGdnm','getItem','aYqft','xkXtc','NIAhM','mobile-','BASE_URL','/llm-data/store','stringify','conversationId','Version','menXZ','qPRCb','eSuTk','szWMw','\x20conversation','ioIkx','\x20from\x20','ePxKV','cqJZP','NxBLq','DcuuZ','XJYsd','etQLG','VzRGQ','AfHbA','xOzlo','zuuTj','qmrla','KoOAN','ABlsF','NcHCX','ysxuD','slide','container','WtVjx','closeButton','createElement','closeButtonText','headerTitle','EgzfU','instructionsContainer','instructionsText','tab','LdZjq','gXVRP','yYtcn','KlLeT','AESCc','BUTTON_PRESS','tabText','tabTextActive','pjssN','oySrx','tabDisabled','mcuHT','tGFhS','SdhtU','DlpfL','mUKLr','uezLf','inputContainer','textInput','grey400','WdOlI','none','filePickIcon','filePickText','ImrTc','OergN','fileSelectedContainer','fileSelectedText','errorContainer','errorText','DuIHN','previewContainer','previewTitle','previewText','substring','ULnMw','toLocaleString','footer','submitButton','WLLYO','submitButtonText','IOWwI','create','surface','row','center','space-between','#E5E7EB','600','grey800','IBM\x20Plex\x20Sans','#3B82F6','Inter','#F3F4F6','#000','grey500','grey300','Menlo','monospace','dashed','#166534','#FEF2F2','#DC2626','grey600','#10B981'];_0x5228=function(){return _0x2555f0;};return _0x5228();}
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 _0x3c7c(_0xd2273f,_0x3c7c27){_0xd2273f=_0xd2273f-0x0;const _0x271b8d=_0xd227();let _0x2f2be0=_0x271b8d[_0xd2273f];return _0x2f2be0;}try{DocumentPicker=__ONAIROS_REQ_FUNC__(0x0);}catch(_0x35713e){console[_0x3c7c(0x0)]('react-native-document-picker not available - file upload disabled');}function _0xd227(){const _0x2d1dd7=['log','Connect\x20ChatGPT','Export\x20your\x20ChatGPT\x20conversations\x20from\x20Settings\x20→\x20Data\x20Controls\x20→\x20Export\x20data.\x20Then\x20upload\x20the\x20JSON\x20file\x20or\x20paste\x20your\x20conversation\x20data.','Paste\x20your\x20ChatGPT\x20conversation\x20JSON\x20here...','Connect\x20Claude','Export\x20your\x20Claude\x20conversations\x20and\x20paste\x20the\x20JSON\x20data\x20below,\x20or\x20upload\x20your\x20exported\x20file.','Paste\x20your\x20Claude\x20conversation\x20JSON\x20here...','gemini','Connect\x20Gemini','Export\x20your\x20Gemini\x20(Google\x20AI)\x20conversations\x20and\x20paste\x20the\x20data\x20below.','Paste\x20your\x20Gemini\x20conversation\x20JSON\x20here...','Export\x20your\x20Grok\x20conversations\x20from\x20X/Twitter\x20and\x20paste\x20the\x20data\x20below.','Paste\x20your\x20Grok\x20conversation\x20JSON\x20here...','Paste\x20your\x20conversation\x20JSON\x20here...','paste','wsPti','KefNO','Imported\x20Conversation','PTCFw','SBtPs','YdLJv','Invalid\x20JSON\x20format.\x20Please\x20check\x20your\x20data\x20and\x20try\x20again.','unknown','string','user','hMBNh','assistant','DpwTa','file','zzvaf','content://','utf8','kOCIY','DOCUMENT_PICKER_CANCELED','CKUcF','File\x20pick\x20error:','human','Failed\x20to\x20import\x20any\x20conversations.\x20Please\x20check\x20your\x20data\x20format.','Please\x20paste\x20or\x20upload\x20conversation\x20data\x20first.','PKRGr','No\x20valid\x20conversations\x20found\x20in\x20the\x20data.\x20Please\x20check\x20the\x20format.','onairos_jwt_token','enoch_token','auth_token','aVLzX','conversation','Failed\x20to\x20read\x20file.\x20Please\x20try\x20again\x20or\x20paste\x20data\x20manually.','oQLUq','slide','pageSheet','padding','height','handled','Upload\x20File\x20','(N/A)','none','Tap\x20to\x20select\x20a\x20file','...','\x20characters','small','gXtun','jlSmr','pCHUb','chatgpt','rBNeH','IrfyU','uhiad','claude','GbIDS','AKPkZ','DHURW','zAHzI','voqar','Connect\x20Grok','QDfxj','hjNAA','Connect\x20','Paste\x20your\x20conversation\x20data\x20below\x20or\x20upload\x20a\x20JSON\x20file.','qZEVE','sFXpP','kzeYA','rDHjm','oTBZo','AtCMv','UasJt','ZfcNE','LZgJY','dYDyC','gokMc','lJNFf','push','conv_','now','Conversation\x20','create_time','update_time','forEach','VDFpJ','krrde','sZkgu','udpch','conversation_id','title','VaZLT','created_at','updated_at','hJhpt','length','name','AFrJp','conversations','isArray','SNgqJ','OFRMV','yePSG','message','role','oBLZQ','toISOString','mapping','messages','NbNTY','Krznp','gzgxF','ryKNt','SRrpE','RAnlz','ddIOi','sFNdO','xhpsO','sMurK','gkWVB','BUTTON_PRESS','UBZZL','error','FRSzQ','rFzml','File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.','ERROR','HiJMt','lLZWz','values','LUYJD','zbDGS','VrifE','caiHx','content','parts','WbTpy','sKSwY','join','trim','msg_','xrxdy','ZOPTi','qwedU','text','nBJka','fnnfe','author','UZrgb','timestamp','chat_messages','wlqOI','DeAOb','OVUpA','fnLsT','CDsTC','UGqRh','kfUjk','ksXOa','sender','kXwCS','JQhHw','XUYFi','uOCUg','kmiyy','ARZuj','ZwzKX','json','allFiles','Selected\x20file','uri','qaiyT','readFile','hZSvY','isTDj','SUCCESS','hNMXI','code','KqnLG','KAUAJ','HyJUU','lZtBf','lTvNz','htNvr','zINKK','bKaJJ','EYcgD','CRdYD','getItem','BRIHP','NLuio','wfozV','mobile-','OJWeq','uuid','gPVki','SpIHu','XAihA','kvBdO','ESlfx','BASE_URL','/llm-data/store','Bearer\x20','conversationId','context','1.0.0','xRlZC','Failed\x20to\x20store\x20conversation\x20','aNgoU','adIei','Submit\x20error:','Failed\x20to\x20import\x20data.\x20Please\x20try\x20again.','Error\x20storing\x20conversation:','stringify','alert','LDVGi','Successfully\x20imported\x20','\x20conversation','\x20from\x20','VJiGY','aDoCJ','hCiKq','KpWph','createElement','hEBSK','container','ldHNm','dzPKA','header','closeButtonText','Cancel','headerTitle','closeButton','IIOGf','instructionsContainer','instructionsText','tabContainer','tab','tabActive','AoVRN','CBVvQ','inDkZ','uhHzV','tabText','rfKJp','tabTextActive','ovZhO','CkfRH','OwxLr','kssHZ','TQWvw','DSQJy','tuKkd','xGdFD','tabTextDisabled','sBNmz','inputContainer','textInput','grey400','plQEe','fileInputContainer','filePickIcon','filePickText','nGjnX','vrMKF','fileSelectedContainer','fileSelectedText','errorContainer','errorText','previewContainer','previewTitle','DGngZ','substring','jKJye','previewInfo','ZCFvm','footer','submitButton','submitButtonDisabled','#FFFFFF','tlSwS','submitButtonText','dRxuU','create','surface','row','space-between','#E5E7EB','600','grey800','IBM\x20Plex\x20Sans','#3B82F6','Inter','#F0F9FF','#0369A1','center','#000','500','grey500','grey300','ios','Menlo','monospace','dashed','#F0FDF4','#FEF2F2','#DC2626','#F3F4F6','#10B981'];_0xd227=function(){return _0x2d1dd7;};return _0xd227();}try{RNFS=__ONAIROS_REQ_FUNC__(0x1);}catch(_0x9ef135){console[_0x3c7c(0x0)]('react-native-fs not available - file upload disabled');}const FILE_UPLOAD_AVAILABLE=DocumentPicker!==null&&RNFS!==null,LLMDataInputModal=({visible:_0x327846,platform:_0x57898b,platformName:_0x3da7e4,onClose:_0x2f3caa,onSuccess:_0x301a34})=>{const _0x3059cf={'rBNeH':_0x3c7c(0x1),'IrfyU':_0x3c7c(0x2),'uhiad':_0x3c7c(0x3),'JQTYk':_0x3c7c(0x4),'GbIDS':_0x3c7c(0x5),'AKPkZ':_0x3c7c(0x6),'DHURW':_0x3c7c(0x7),'WZfen':_0x3c7c(0x8),'zAHzI':_0x3c7c(0x9),'voqar':_0x3c7c(0xa),'sYnoD':'grok','QDfxj':_0x3c7c(0xb),'hjNAA':_0x3c7c(0xc),'fIMOu':_0x3c7c(0xd),'UasJt':_0x3c7c(0xe),'pCHUb':function(_0x59782e,_0x50fc73){return _0x59782e(_0x50fc73);},'qZEVE':function(_0xc4ac26,_0x262b52){return _0xc4ac26>_0x262b52;},'kzeYA':function(_0x4d6c00,_0x210d51){return _0x4d6c00===_0x210d51;},'rDHjm':function(_0x379578,_0x3e5fef){return _0x379578>_0x3e5fef;},'oTBZo':_0x3c7c(0xf),'AtCMv':function(_0x3153e6,_0x4358cb){return _0x3153e6(_0x4358cb);},'jlSmr':function(_0x572fc3,_0x104a91){return _0x572fc3(_0x104a91);},'ZfcNE':function(_0x5d47ac){return _0x5d47ac();},'LZgJY':function(_0x23ff08,_0x2dcc7e){return _0x23ff08(_0x2dcc7e);},'dYDyC':function(_0x5deffc,_0x3bcf91){return _0x5deffc===_0x3bcf91;},'lJNFf':'iEAGE','NbNTY':function(_0x443dbc,_0x2b2746){return _0x443dbc!==_0x2b2746;},'Krznp':_0x3c7c(0x10),'sFNdO':_0x3c7c(0x11),'VrifE':function(_0x26b500,_0x31b5fa){return _0x26b500!==_0x31b5fa;},'xhpsO':_0x3c7c(0x12),'sMurK':_0x3c7c(0x13),'RKbkA':'IInLU','gkWVB':'zGlqK','UBZZL':_0x3c7c(0x14),'OUzuj':'Error\x20parsing\x20conversation\x20data:','FRSzQ':_0x3c7c(0x15),'LUYJD':'zbDGS','caiHx':function(_0x2ec419,_0x2584fd){return _0x2ec419!==_0x2584fd;},'WbTpy':'vZvRg','ksXOa':function(_0x4e4a81,_0x5411ab){return _0x4e4a81===_0x5411ab;},'xrxdy':_0x3c7c(0x16),'nBJka':function(_0x4373ea,_0x530119){return _0x4373ea===_0x530119;},'fnnfe':_0x3c7c(0x17),'UZrgb':_0x3c7c(0x18),'wlqOI':function(_0x4a3e19,_0x1fd4b6){return _0x4a3e19>_0x1fd4b6;},'DeAOb':'AfBdy','CDsTC':function(_0x1dc4b2,_0x5cffa6){return _0x1dc4b2===_0x5cffa6;},'UGqRh':_0x3c7c(0x19),'kfUjk':'geFtW','unXfW':_0x3c7c(0x1a),'kXwCS':function(_0x449f1e,_0x1c78f0){return _0x449f1e>_0x1c78f0;},'JQhHw':function(_0x10f68a,_0x38fce3){return _0x10f68a+_0x38fce3;},'HiJMt':function(_0x586468,_0x373e8a){return _0x586468+_0x373e8a;},'lLZWz':_0x3c7c(0x1b),'XUYFi':_0x3c7c(0x1c),'uOCUg':_0x3c7c(0x1d),'qaiyT':_0x3c7c(0x1e),'hZSvY':_0x3c7c(0x1f),'isTDj':function(_0x200eb6,_0x6a4399){return _0x200eb6(_0x6a4399);},'hNMXI':_0x3c7c(0x20),'TQWvw':_0x3c7c(0x21),'KqnLG':_0x3c7c(0x22),'DSQJy':_0x3c7c(0x23),'dPGwG':_0x3c7c(0x24),'HyJUU':_0x3c7c(0x25),'lZtBf':function(_0x1342e9,_0x2dde75){return _0x1342e9===_0x2dde75;},'Xuzzu':_0x3c7c(0x26),'lTvNz':function(_0x401df6,_0x2aa2e9){return _0x401df6(_0x2aa2e9);},'htNvr':function(_0x5d10eb,_0x4a384b){return _0x5d10eb(_0x4a384b);},'zINKK':function(_0x56b8d0,_0x119bc8){return _0x56b8d0(_0x119bc8);},'hwmDB':_0x3c7c(0x27),'bKaJJ':'bfXYj','EYcgD':_0x3c7c(0x28),'BRIHP':_0x3c7c(0x29),'NLuio':_0x3c7c(0x2a),'wfozV':_0x3c7c(0x2b),'OJWeq':'jkmXW','SpIHu':function(_0x50ef37,_0x7ab65d){return _0x50ef37===_0x7ab65d;},'XAihA':_0x3c7c(0x2c),'szicz':'QKsak','ESlfx':function(_0x5d8bf6,_0x39bfc1,_0x1c3211){return _0x5d8bf6(_0x39bfc1,_0x1c3211);},'xRlZC':_0x3c7c(0x2d),'Semaw':'mobile_app_import','aNgoU':'UjQJR','adIei':'pRedd','LDVGi':'Success!\x20🎉','VJiGY':'Failed\x20to\x20import\x20data.\x20Please\x20try\x20again.','aDoCJ':function(_0x4229ac,_0x160177){return _0x4229ac(_0x160177);},'hCiKq':function(_0x4c66bb,_0x31d4a3){return _0x4c66bb(_0x31d4a3);},'waemc':function(_0x4323b7,_0x1ae47c){return _0x4323b7(_0x1ae47c);},'KpWph':function(_0x102214,_0x1c1ea1){return _0x102214(_0x1c1ea1);},'AoVRN':'jzonc','CBVvQ':function(_0x423a0f,_0xf62ba5){return _0x423a0f(_0xf62ba5);},'HjCVK':_0x3c7c(0x2e),'tuKkd':function(_0x153d83,_0xf94a8b){return _0x153d83(_0xf94a8b);},'CkfRH':function(_0x10cf81,_0xfccff3){return _0x10cf81!==_0xfccff3;},'HxhYR':_0x3c7c(0x2f),'kssHZ':function(_0x34a7c4,_0x28b155){return _0x34a7c4(_0x28b155);},'gXtun':function(_0x479342,_0x2086d0){return _0x479342(_0x2086d0);},'RLuPr':_0x3c7c(0x30),'hEBSK':_0x3c7c(0x31),'ldHNm':_0x3c7c(0x32),'dzPKA':_0x3c7c(0x33),'IIOGf':_0x3c7c(0x34),'rfKJp':function(_0x157c75,_0x5a42d2){return _0x157c75===_0x5a42d2;},'ovZhO':'Paste\x20Data','wBgeF':function(_0x137c80,_0x4718ee){return _0x137c80===_0x4718ee;},'xGdFD':function(_0x4d5296,_0x49a527){return _0x4d5296===_0x49a527;},'xECXL':_0x3c7c(0x35),'sBNmz':_0x3c7c(0x36),'plQEe':_0x3c7c(0x37),'nGjnX':function(_0x4461dd,_0x51b28f){return _0x4461dd||_0x51b28f;},'vrMKF':_0x3c7c(0x38),'DGngZ':'Data\x20Preview','jKJye':_0x3c7c(0x39),'ZCFvm':_0x3c7c(0x3a),'tlSwS':_0x3c7c(0x3b),'dRxuU':'Import\x20Conversations'},[_0x574d5d,_0x379afd]=useState(_0x3059cf['UasJt']),[_0x3884ad,_0x59c841]=_0x3059cf['isTDj'](useState,''),[_0x3f2aa0,_0x388eed]=_0x3059cf[_0x3c7c(0x3c)](useState,![]),[_0x4c6d8d,_0x3c35ec]=_0x3059cf[_0x3c7c(0x3d)](useState,null),[_0x1e4d5b,_0x4c24cc]=useState(null),[_0x244c6d,_0x4737e0]=_0x3059cf[_0x3c7c(0x3e)](useState,null),_0x27cbed=()=>{switch(_0x57898b){case _0x3c7c(0x3f):return{'title':_0x3059cf[_0x3c7c(0x40)],'instructions':_0x3059cf[_0x3c7c(0x41)],'placeholder':_0x3059cf[_0x3c7c(0x42)]};case _0x3c7c(0x43):return{'title':_0x3059cf['JQTYk'],'instructions':_0x3059cf[_0x3c7c(0x44)],'placeholder':_0x3059cf[_0x3c7c(0x45)]};case _0x3059cf[_0x3c7c(0x46)]:return{'title':_0x3059cf['WZfen'],'instructions':_0x3059cf[_0x3c7c(0x47)],'placeholder':_0x3059cf[_0x3c7c(0x48)]};case _0x3059cf['sYnoD']:return{'title':_0x3c7c(0x49),'instructions':_0x3059cf[_0x3c7c(0x4a)],'placeholder':_0x3059cf[_0x3c7c(0x4b)]};default:return{'title':_0x3c7c(0x4c)+_0x3da7e4,'instructions':_0x3c7c(0x4d),'placeholder':_0x3059cf['fIMOu']};}},{title:_0x362857,instructions:_0x583700,placeholder:_0x28d9ea}=_0x27cbed(),_0x49a138=_0x60f5c5=>{const _0x1fcb0d={'sZkgu':function(_0x33877f,_0x4a08bc){return _0x3059cf[_0x3c7c(0x3e)](_0x33877f,_0x4a08bc);},'hJhpt':function(_0x122066,_0xbf72d9){return _0x3059cf[_0x3c7c(0x4e)](_0x122066,_0xbf72d9);},'AFrJp':function(_0x2edde6,_0x59c8bc){return _0x2edde6+_0x59c8bc;},'VDFpJ':function(_0x36c00d,_0x3720ca){return _0x36c00d!==_0x3720ca;},'NembM':_0x3c7c(0x4f),'udpch':function(_0x39a216,_0x185eb2){return _0x3059cf[_0x3c7c(0x4e)](_0x39a216,_0x185eb2);},'VaZLT':function(_0x1beafb,_0x4889c3){return _0x1beafb+_0x4889c3;},'ENLXI':function(_0x880df0,_0x3f33eb){return _0x3059cf[_0x3c7c(0x50)](_0x880df0,_0x3f33eb);},'SNgqJ':function(_0x260983,_0x5da4df){return _0x3059cf[_0x3c7c(0x51)](_0x260983,_0x5da4df);},'OFRMV':_0x3059cf[_0x3c7c(0x52)],'yePSG':'XBnIq','gzgxF':function(_0x3f1c60,_0x207f1d){return _0x3059cf[_0x3c7c(0x53)](_0x3f1c60,_0x207f1d);},'ryKNt':function(_0x621688,_0x42960a){return _0x621688(_0x42960a);},'SRrpE':function(_0x27d744,_0x3b3322){return _0x3059cf[_0x3c7c(0x3d)](_0x27d744,_0x3b3322);},'ddurq':function(_0x2e0f7a,_0x385f42){return _0x3059cf[_0x3c7c(0x3e)](_0x2e0f7a,_0x385f42);},'RAnlz':_0x3059cf[_0x3c7c(0x54)],'ddIOi':function(_0x3c71ff){return _0x3059cf[_0x3c7c(0x55)](_0x3c71ff);},'rFzml':function(_0x416803,_0x1a0006){return _0x3059cf[_0x3c7c(0x56)](_0x416803,_0x1a0006);},'pwQae':function(_0x4343fe,_0x79a5e4){return _0x4343fe(_0x79a5e4);}};try{if(_0x3059cf[_0x3c7c(0x57)](_0x3c7c(0x58),_0x3059cf[_0x3c7c(0x59)]))_0x74d105[_0x3c7c(0x5a)]({'conversationId':_0x1d25c6['id']||_0x3c7c(0x5b)+_0x4f0896+'_'+_0x3f1da8[_0x3c7c(0x5c)](),'messages':_0x122cc2,'context':{'title':_0x2a8db5['title']||_0x3c7c(0x5d)+(_0x3c3733+0x1),'create_time':_0x1b51f8[_0x3c7c(0x5e)],'update_time':_0x286b1b[_0x3c7c(0x5f)]}});else{const _0x245745=JSON['parse'](_0x60f5c5),_0x4b6fd5=[];if(Array['isArray'](_0x245745))_0x245745[_0x3c7c(0x60)]((_0x3038c5,_0x2c3d74)=>{if(_0x1fcb0d[_0x3c7c(0x61)](_0x1fcb0d['NembM'],_0x3c7c(0x62))){const _0x101179=_0x1fcb0d[_0x3c7c(0x63)](_0x21d8e0,_0x3038c5);_0x1fcb0d[_0x3c7c(0x64)](_0x101179['length'],0x0)&&_0x4b6fd5[_0x3c7c(0x5a)]({'conversationId':_0x3038c5['id']||_0x3038c5[_0x3c7c(0x65)]||_0x3c7c(0x5b)+_0x2c3d74+'_'+Date['now'](),'messages':_0x101179,'context':{'title':_0x3038c5[_0x3c7c(0x66)]||_0x3038c5['name']||'Conversation\x20'+_0x1fcb0d[_0x3c7c(0x67)](_0x2c3d74,0x1),'create_time':_0x3038c5['create_time']||_0x3038c5[_0x3c7c(0x68)],'update_time':_0x3038c5[_0x3c7c(0x5f)]||_0x3038c5[_0x3c7c(0x69)]}});}else{const _0x4cc810=_0x1fcb0d['sZkgu'](_0x464e37,_0xb02d8e);_0x1fcb0d[_0x3c7c(0x6a)](_0x4cc810[_0x3c7c(0x6b)],0x0)&&_0x4fde4a[_0x3c7c(0x5a)]({'conversationId':_0x239c35['id']||_0x4bed5c['conversation_id']||_0x3c7c(0x5b)+_0xd6a918+'_'+_0x1115ca[_0x3c7c(0x5c)](),'messages':_0x4cc810,'context':{'title':_0xb12295[_0x3c7c(0x66)]||_0x34219b[_0x3c7c(0x6c)]||_0x3c7c(0x5d)+_0x1fcb0d[_0x3c7c(0x6d)](_0x423975,0x1),'create_time':_0x14e463['create_time']||_0x356892['created_at'],'update_time':_0x58fc24[_0x3c7c(0x5f)]||_0x31e813['updated_at']}});}});else{if(_0x245745[_0x3c7c(0x6e)]&&Array[_0x3c7c(0x6f)](_0x245745['conversations']))_0x245745[_0x3c7c(0x6e)][_0x3c7c(0x60)]((_0x2c3530,_0x4a6341)=>{const _0x4d24da={'nAPXx':function(_0x14a031,_0x36a896){return _0x1fcb0d['ENLXI'](_0x14a031,_0x36a896);},'EOPAm':'unknown','oBLZQ':function(_0x19ac73,_0x3e3e46){return _0x19ac73*_0x3e3e46;}},_0x3dc6fe=_0x21d8e0(_0x2c3530);if(_0x1fcb0d[_0x3c7c(0x70)](_0x3dc6fe[_0x3c7c(0x6b)],0x0)){if(_0x1fcb0d[_0x3c7c(0x61)](_0x1fcb0d[_0x3c7c(0x71)],_0x1fcb0d[_0x3c7c(0x72)]))_0x4b6fd5[_0x3c7c(0x5a)]({'conversationId':_0x2c3530['id']||_0x3c7c(0x5b)+_0x4a6341+'_'+Date[_0x3c7c(0x5c)](),'messages':_0x3dc6fe,'context':{'title':_0x2c3530[_0x3c7c(0x66)]||_0x3c7c(0x5d)+_0x1fcb0d['AFrJp'](_0x4a6341,0x1),'create_time':_0x2c3530[_0x3c7c(0x5e)],'update_time':_0x2c3530[_0x3c7c(0x5f)]}});else{var _0x14efda;_0x5131c7[_0x3c7c(0x5a)]({'id':_0xd39a6['message']['id']||'msg_'+_0x2d8e0c,'role':((_0x14efda=_0x4c5cba[_0x3c7c(0x73)]['author'])===null||_0x4d24da['nAPXx'](_0x14efda,void 0x0)?void 0x0:_0x14efda[_0x3c7c(0x74)])||_0x4d24da['EOPAm'],'content':_0x3cec06,'timestamp':_0x50ea97[_0x3c7c(0x73)]['create_time']?new _0x2ce623(_0x4d24da[_0x3c7c(0x75)](_0x30890e[_0x3c7c(0x73)][_0x3c7c(0x5e)],0x3e8))[_0x3c7c(0x76)]():_0x3c437b});}}});else{if(_0x245745[_0x3c7c(0x77)]||_0x245745[_0x3c7c(0x78)]){if(_0x3059cf[_0x3c7c(0x79)](_0x3059cf[_0x3c7c(0x7a)],_0x3059cf[_0x3c7c(0x7a)]))_0x1fcb0d['sZkgu'](_0x3c44aa,''),_0x1fcb0d[_0x3c7c(0x7b)](_0x3bcb3e,null),_0x1fcb0d[_0x3c7c(0x7c)](_0x292546,null),_0x1fcb0d[_0x3c7c(0x7d)](_0x369a26,null),_0x1fcb0d['ddurq'](_0x15ab62,_0x1fcb0d[_0x3c7c(0x7e)]),_0x1fcb0d[_0x3c7c(0x7f)](_0xefa51b);else{const _0x3b13b0=_0x21d8e0(_0x245745);_0x3059cf[_0x3c7c(0x4e)](_0x3b13b0[_0x3c7c(0x6b)],0x0)&&_0x4b6fd5['push']({'conversationId':_0x245745['id']||_0x3c7c(0x5b)+Date[_0x3c7c(0x5c)](),'messages':_0x3b13b0,'context':{'title':_0x245745['title']||_0x3059cf[_0x3c7c(0x80)],'create_time':_0x245745['create_time'],'update_time':_0x245745['update_time']}});}}else{if(_0x3059cf['VrifE'](_0x3059cf[_0x3c7c(0x81)],_0x3059cf[_0x3c7c(0x82)])){const _0x489f9e=_0x3059cf[_0x3c7c(0x3d)](_0x21d8e0,_0x245745);_0x3059cf['qZEVE'](_0x489f9e[_0x3c7c(0x6b)],0x0)&&(_0x3059cf['RKbkA']!==_0x3059cf[_0x3c7c(0x83)]?_0x4b6fd5[_0x3c7c(0x5a)]({'conversationId':_0x3c7c(0x5b)+Date[_0x3c7c(0x5c)](),'messages':_0x489f9e,'context':{'title':_0x245745[_0x3c7c(0x66)]||_0x3059cf[_0x3c7c(0x80)]}}):_0x48029a['push']({'conversationId':_0x3c7c(0x5b)+_0x28b1cc[_0x3c7c(0x5c)](),'messages':_0x45aae2,'context':{'title':_0x1b96ff[_0x3c7c(0x66)]||'Imported\x20Conversation'}}));}else _0x5bb290(_0x3059cf['UasJt']),_0x3059cf[_0x3c7c(0x3e)](_0x4ac752,_0x2e889b[_0x3c7c(0x84)]);}}}return _0x4b6fd5;}}catch(_0xa978ee){if(_0x3059cf[_0x3c7c(0x85)]===_0x3059cf['UBZZL']){console[_0x3c7c(0x86)](_0x3059cf['OUzuj'],_0xa978ee);throw new Error(_0x3059cf[_0x3c7c(0x87)]);}else _0x1fcb0d[_0x3c7c(0x88)](_0x2b6db7,_0x3c7c(0x89)),_0x1fcb0d['pwQae'](_0x2dab7f,_0x22b9d7[_0x3c7c(0x8a)]);}},_0x21d8e0=_0x36403f=>{const _0xe9ab8a={'sKSwY':function(_0x8364d4,_0x28b8f4){return _0x3059cf[_0x3c7c(0x8b)](_0x8364d4,_0x28b8f4);}};if(_0x3059cf[_0x3c7c(0x8c)]===_0x3c7c(0x1b)){const _0x1ddd84=[];return _0x36403f[_0x3c7c(0x77)]&&Object[_0x3c7c(0x8d)](_0x36403f['mapping'])[_0x3c7c(0x60)]((_0x5387f0,_0x320beb)=>{const _0x19b645={'ZOPTi':function(_0x3ff9bf,_0x1a5834){return _0x3059cf[_0x3c7c(0x53)](_0x3ff9bf,_0x1a5834);},'GTnDg':function(_0x2bd7de,_0xe599f2){return _0x3059cf['qZEVE'](_0x2bd7de,_0xe599f2);},'qwedU':_0x3059cf[_0x3c7c(0x80)]};if(_0x3059cf[_0x3c7c(0x8e)]===_0x3c7c(0x8f)){var _0x4b4207;if(_0x3059cf['VrifE'](_0x5387f0,null)&&_0x3059cf[_0x3c7c(0x90)](_0x5387f0,void 0x0)&&(_0x4b4207=_0x5387f0[_0x3c7c(0x73)])!==null&&_0x3059cf[_0x3c7c(0x91)](_0x4b4207,void 0x0)&&(_0x4b4207=_0x4b4207[_0x3c7c(0x92)])!==null&&_0x3059cf[_0x3c7c(0x79)](_0x4b4207,void 0x0)&&_0x4b4207[_0x3c7c(0x93)]){if(_0x3059cf[_0x3c7c(0x50)](_0x3059cf[_0x3c7c(0x94)],'JZcqC'))_0x2bab8d[_0x3c7c(0x5a)]({'conversationId':_0x7e05df['id']||_0x2b9f56['conversation_id']||_0x3c7c(0x5b)+_0x26d9f5+'_'+_0x46589e[_0x3c7c(0x5c)](),'messages':_0x2592af,'context':{'title':_0x186282[_0x3c7c(0x66)]||_0x35d680[_0x3c7c(0x6c)]||'Conversation\x20'+_0xe9ab8a[_0x3c7c(0x95)](_0x1a1d90,0x1),'create_time':_0x357323['create_time']||_0x4d34f1[_0x3c7c(0x68)],'update_time':_0x424ce1['update_time']||_0x2b2be5[_0x3c7c(0x69)]}});else{const _0x39fe31=_0x5387f0['message'][_0x3c7c(0x92)][_0x3c7c(0x93)][_0x3c7c(0x96)]('\x0a');if(_0x39fe31[_0x3c7c(0x97)]()){var _0x1905cf;_0x1ddd84[_0x3c7c(0x5a)]({'id':_0x5387f0[_0x3c7c(0x73)]['id']||_0x3c7c(0x98)+_0x320beb,'role':(_0x3059cf[_0x3c7c(0x57)](_0x1905cf=_0x5387f0[_0x3c7c(0x73)]['author'],null)||_0x3059cf['ksXOa'](_0x1905cf,void 0x0)?void 0x0:_0x1905cf[_0x3c7c(0x74)])||_0x3059cf[_0x3c7c(0x99)],'content':_0x39fe31,'timestamp':_0x5387f0[_0x3c7c(0x73)][_0x3c7c(0x5e)]?new Date(_0x5387f0[_0x3c7c(0x73)][_0x3c7c(0x5e)]*0x3e8)[_0x3c7c(0x76)]():undefined});}}}}else{const _0x301656=_0x19b645[_0x3c7c(0x9a)](_0x20ecb0,_0x4f1aa1);_0x19b645['GTnDg'](_0x301656['length'],0x0)&&_0x4402ca['push']({'conversationId':_0x3ad5b0['id']||_0x3c7c(0x5b)+_0x4228ed[_0x3c7c(0x5c)](),'messages':_0x301656,'context':{'title':_0x2ce762[_0x3c7c(0x66)]||_0x19b645[_0x3c7c(0x9b)],'create_time':_0x420703[_0x3c7c(0x5e)],'update_time':_0x5917fa[_0x3c7c(0x5f)]}});}}),_0x36403f['messages']&&Array[_0x3c7c(0x6f)](_0x36403f['messages'])&&_0x36403f['messages']['forEach']((_0x280836,_0x54afcb)=>{var _0x56391b;const _0x3fd886=_0x280836['content']||_0x280836[_0x3c7c(0x9c)]||_0x280836[_0x3c7c(0x73)]||'';if(_0x3059cf[_0x3c7c(0x9d)](typeof _0x3fd886,_0x3059cf[_0x3c7c(0x9e)])&&_0x3fd886[_0x3c7c(0x97)]())_0x1ddd84[_0x3c7c(0x5a)]({'id':_0x280836['id']||_0x3c7c(0x98)+_0x54afcb,'role':_0x280836['role']||_0x280836[_0x3c7c(0x9f)]||_0x3059cf[_0x3c7c(0xa0)],'content':_0x3fd886,'timestamp':_0x280836[_0x3c7c(0xa1)]||_0x280836[_0x3c7c(0x68)]});else _0x3059cf[_0x3c7c(0x79)](_0x56391b=_0x280836[_0x3c7c(0x92)],null)&&_0x56391b!==void 0x0&&_0x56391b[_0x3c7c(0x93)]&&_0x1ddd84[_0x3c7c(0x5a)]({'id':_0x280836['id']||'msg_'+_0x54afcb,'role':_0x280836[_0x3c7c(0x74)]||_0x3059cf[_0x3c7c(0xa0)],'content':_0x280836[_0x3c7c(0x92)][_0x3c7c(0x93)][_0x3c7c(0x96)]('\x0a'),'timestamp':_0x280836[_0x3c7c(0xa1)]});}),_0x36403f[_0x3c7c(0xa2)]&&Array[_0x3c7c(0x6f)](_0x36403f[_0x3c7c(0xa2)])&&_0x36403f[_0x3c7c(0xa2)][_0x3c7c(0x60)]((_0x909d61,_0x3dcdd8)=>{const _0x4a9073={'OVUpA':function(_0x3e0e67,_0x237686){return _0x3e0e67(_0x237686);},'fnLsT':function(_0x4af675,_0x330b86){return _0x3059cf[_0x3c7c(0xa3)](_0x4af675,_0x330b86);},'SajrX':function(_0x4824c2,_0x33696b){return _0x4824c2+_0x33696b;}};if(_0x3059cf[_0x3c7c(0xa4)]!==_0x3059cf[_0x3c7c(0xa4)]){const _0x60a5ed=_0x4a9073[_0x3c7c(0xa5)](_0x1e27ee,_0x688be6);_0x4a9073[_0x3c7c(0xa6)](_0x60a5ed[_0x3c7c(0x6b)],0x0)&&_0x314c4b[_0x3c7c(0x5a)]({'conversationId':'conv_'+_0x33908b[_0x3c7c(0x5c)](),'messages':_0x60a5ed,'context':{'title':_0x36d036[_0x3c7c(0x66)]||'Imported\x20Conversation'}});}else(_0x909d61[_0x3c7c(0x9c)]||_0x909d61['content'])&&(_0x3059cf[_0x3c7c(0xa7)](_0x3059cf[_0x3c7c(0xa8)],_0x3059cf[_0x3c7c(0xa9)])?_0x2d9d8e[_0x3c7c(0x6e)][_0x3c7c(0x60)]((_0x5ea944,_0x3907bf)=>{const _0x4dfd7b=_0x354590(_0x5ea944);_0x4dfd7b[_0x3c7c(0x6b)]>0x0&&_0x1da998[_0x3c7c(0x5a)]({'conversationId':_0x5ea944['id']||_0x3c7c(0x5b)+_0x3907bf+'_'+_0x475b6b[_0x3c7c(0x5c)](),'messages':_0x4dfd7b,'context':{'title':_0x5ea944[_0x3c7c(0x66)]||_0x3c7c(0x5d)+_0x4a9073['SajrX'](_0x3907bf,0x1),'create_time':_0x5ea944['create_time'],'update_time':_0x5ea944[_0x3c7c(0x5f)]}});}):_0x1ddd84[_0x3c7c(0x5a)]({'id':_0x909d61['uuid']||_0x3c7c(0x98)+_0x3dcdd8,'role':_0x3059cf[_0x3c7c(0xaa)](_0x909d61[_0x3c7c(0xab)],_0x3c7c(0x24))?_0x3059cf[_0x3c7c(0xa0)]:_0x3059cf['unXfW'],'content':_0x909d61[_0x3c7c(0x9c)]||_0x909d61[_0x3c7c(0x92)],'timestamp':_0x909d61[_0x3c7c(0x68)]}));}),_0x1ddd84;}else{const _0x8e7a6e=_0x15470e(_0x406df3);_0x3059cf[_0x3c7c(0xac)](_0x8e7a6e[_0x3c7c(0x6b)],0x0)&&_0x3e9311[_0x3c7c(0x5a)]({'conversationId':_0x173657['id']||_0x3c7c(0x5b)+_0x1712cb+'_'+_0x34c3ac[_0x3c7c(0x5c)](),'messages':_0x8e7a6e,'context':{'title':_0x257988['title']||_0x3c7c(0x5d)+_0x3059cf[_0x3c7c(0xad)](_0x3ad9b9,0x1),'create_time':_0x3d4ecc[_0x3c7c(0x5e)],'update_time':_0x3e2346['update_time']}});}},_0x56dda5=async()=>{const _0x271c9f={'kmiyy':function(_0x34850c,_0x4b2455){return _0x3059cf[_0x3c7c(0x3d)](_0x34850c,_0x4b2455);},'ARZuj':_0x3059cf[_0x3c7c(0xae)],'ZwzKX':function(_0x309898,_0x1901b4){return _0x3059cf[_0x3c7c(0x3e)](_0x309898,_0x1901b4);},'KAUAJ':_0x3059cf[_0x3c7c(0xa0)]};if(!FILE_UPLOAD_AVAILABLE){_0x3059cf[_0x3c7c(0x3e)](_0x3c35ec,'File upload requires react-native-document-picker and react-native-fs. Please paste data instead.');return;}try{if(_0x3059cf[_0x3c7c(0x57)](_0x3059cf[_0x3c7c(0xaf)],'SrskY'))_0x271c9f[_0x3c7c(0xb0)](_0x25f827,_0x271c9f[_0x3c7c(0xb1)]),_0x271c9f[_0x3c7c(0xb2)](_0xd94330,_0x45a604['BUTTON_PRESS']);else{_0x3059cf['pCHUb'](_0x3c35ec,null);const {pick:_0xb0760f,types:_0x88a6cd}=DocumentPicker,_0x3ac4db=await _0x3059cf[_0x3c7c(0x3e)](_0xb0760f,{'type':[_0x88a6cd[_0x3c7c(0xb3)],_0x88a6cd['plainText'],_0x88a6cd[_0x3c7c(0xb4)]]});if(_0x3ac4db&&_0x3ac4db[0x0]){const _0x216532=_0x3ac4db[0x0];_0x4c24cc(_0x216532[_0x3c7c(0x6c)]||_0x3c7c(0xb5));let _0x487178;_0x216532[_0x3c7c(0xb6)]['startsWith'](_0x3059cf[_0x3c7c(0xb7)])?_0x487178=await RNFS[_0x3c7c(0xb8)](_0x216532[_0x3c7c(0xb6)],_0x3059cf['hZSvY']):_0x487178=await RNFS[_0x3c7c(0xb8)](_0x216532[_0x3c7c(0xb6)],_0x3059cf[_0x3c7c(0xb9)]),_0x3059cf[_0x3c7c(0x53)](_0x4737e0,_0x487178),_0x3059cf[_0x3c7c(0xba)](_0x59c841,_0x487178),triggerHaptic(HapticType[_0x3c7c(0xbb)]);}}}catch(_0x5e155d){_0x3059cf[_0x3c7c(0xbc)]===_0x3059cf['hNMXI']?_0x5e155d[_0x3c7c(0xbd)]!==_0x3059cf['TQWvw']&&(_0x3059cf[_0x3c7c(0x90)](_0x3059cf[_0x3c7c(0xbe)],_0x3059cf[_0x3c7c(0xbe)])?_0xa34d61[_0x3c7c(0x0)]('react-native-fs not available - file upload disabled'):(console[_0x3c7c(0x86)](_0x3059cf['DSQJy'],_0x5e155d),_0x3059cf[_0x3c7c(0xba)](_0x3c35ec,_0x3c7c(0x2e)),triggerHaptic(HapticType[_0x3c7c(0x8a)]))):_0x45744e[_0x3c7c(0x5a)]({'id':_0x105b0a['id']||_0x3c7c(0x98)+_0x5c7e3b,'role':_0x2a866b[_0x3c7c(0x74)]||_0x271c9f[_0x3c7c(0xbf)],'content':_0x4aa526[_0x3c7c(0x92)]['parts'][_0x3c7c(0x96)]('\x0a'),'timestamp':_0x5dc54d['timestamp']});}},_0x4bb796=async()=>{const _0x1001b5={'CRdYD':_0x3059cf['OUzuj'],'kvBdO':_0x3059cf[_0x3c7c(0xc0)]},_0x273a3b=_0x3059cf[_0x3c7c(0xc1)](_0x574d5d,_0x3059cf[_0x3c7c(0xae)])&&_0x244c6d?_0x244c6d:_0x3884ad;if(!_0x273a3b[_0x3c7c(0x97)]()){_0x3059cf[_0x3c7c(0x56)](_0x3c35ec,_0x3059cf['Xuzzu']),_0x3059cf[_0x3c7c(0x56)](triggerHaptic,HapticType[_0x3c7c(0x8a)]);return;}_0x3059cf[_0x3c7c(0xc2)](_0x388eed,!![]),_0x3059cf[_0x3c7c(0xc3)](_0x3c35ec,null);try{const _0x583ec7=_0x3059cf[_0x3c7c(0xc4)](_0x49a138,_0x273a3b);if(_0x583ec7['length']===0x0){if(_0x3059cf['VrifE'](_0x3059cf['hwmDB'],_0x3059cf[_0x3c7c(0xc5)]))throw new Error(_0x3059cf[_0x3c7c(0xc6)]);else{_0x23ec2a[_0x3c7c(0x86)](_0x1001b5[_0x3c7c(0xc7)],_0x350abe);throw new _0x276a77(_0x3c7c(0x15));}}const _0x4ca719=await AsyncStorage[_0x3c7c(0xc8)](_0x3059cf[_0x3c7c(0xc9)])||await AsyncStorage[_0x3c7c(0xc8)](_0x3059cf[_0x3c7c(0xca)])||await AsyncStorage[_0x3c7c(0xc8)](_0x3059cf[_0x3c7c(0xcb)]);if(!_0x4ca719)throw new Error('Authentication\x20required.\x20Please\x20sign\x20in\x20first.');const _0x22f209=_0x3c7c(0xcc)+_0x57898b;let _0xd1f634=0x0;for(const _0x4655a6 of _0x583ec7){if(_0x3059cf['OJWeq']!==_0x3059cf[_0x3c7c(0xcd)]){const _0x584daf={'gPVki':_0x3059cf['dPGwG']};_0x3f32c9[_0x3c7c(0xa2)][_0x3c7c(0x60)]((_0xc6571e,_0x3a979c)=>{(_0xc6571e[_0x3c7c(0x9c)]||_0xc6571e['content'])&&_0x44f43b[_0x3c7c(0x5a)]({'id':_0xc6571e[_0x3c7c(0xce)]||_0x3c7c(0x98)+_0x3a979c,'role':_0xc6571e[_0x3c7c(0xab)]===_0x584daf[_0x3c7c(0xcf)]?_0x3c7c(0x18):_0x3c7c(0x1a),'content':_0xc6571e[_0x3c7c(0x9c)]||_0xc6571e[_0x3c7c(0x92)],'timestamp':_0xc6571e['created_at']});});}else try{if(_0x3059cf[_0x3c7c(0xd0)](_0x3059cf[_0x3c7c(0xd1)],_0x3059cf['szicz']))throw new _0x5ca085(_0x1001b5[_0x3c7c(0xd2)]);else{const _0x124a5b=await _0x3059cf[_0x3c7c(0xd3)](fetch,API_CONFIG[_0x3c7c(0xd4)]+_0x3c7c(0xd5),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x3c7c(0xd6)+_0x4ca719},'body':JSON['stringify']({'platform':_0x22f209,'conversationData':{'conversationId':_0x4655a6[_0x3c7c(0xd7)],'messages':_0x4655a6[_0x3c7c(0x78)],'context':_0x4655a6[_0x3c7c(0xd8)],'mobileMetadata':{'platform':Platform['OS'],'appVersion':_0x3c7c(0xd9),'osVersion':Platform['Version'],'isOfflineSync':![]}},'memoryType':_0x3059cf[_0x3c7c(0xda)],'metadata':{'source':_0x3059cf['Semaw'],'importedAt':new Date()[_0x3c7c(0x76)](),'originalPlatform':_0x57898b}})});if(_0x124a5b['ok'])_0xd1f634++;else{const _0x31b01c=await _0x124a5b[_0x3c7c(0x9c)]();console['error'](_0x3c7c(0xdb)+_0x4655a6['conversationId']+':',_0x31b01c);}}}catch(_0x5d24d1){_0x3059cf[_0x3c7c(0xd0)](_0x3059cf[_0x3c7c(0xdc)],_0x3059cf[_0x3c7c(0xdd)])?(_0x2a4f66['error'](_0x3c7c(0xde),_0x4046a2),_0x3059cf[_0x3c7c(0x3e)](_0x1d58af,_0x531349[_0x3c7c(0x73)]||_0x3c7c(0xdf)),_0x471913(_0x3d82c7[_0x3c7c(0x8a)])):console[_0x3c7c(0x86)](_0x3c7c(0xe0),_0x5d24d1);}}if(_0x3059cf[_0x3c7c(0x4e)](_0xd1f634,0x0))await AsyncStorage['setItem']('@onairos:llm_connected:'+_0x57898b,JSON[_0x3c7c(0xe1)]({'connected':!![],'platform':_0x57898b,'conversationsCount':_0xd1f634,'lastSyncAt':new Date()[_0x3c7c(0x76)]()})),_0x3059cf[_0x3c7c(0x3d)](triggerHaptic,HapticType[_0x3c7c(0xbb)]),Alert[_0x3c7c(0xe2)](_0x3059cf[_0x3c7c(0xe3)],_0x3c7c(0xe4)+_0xd1f634+_0x3c7c(0xe5)+(_0x3059cf[_0x3c7c(0x51)](_0xd1f634,0x1)?'s':'')+_0x3c7c(0xe6)+_0x3da7e4+'.',[{'text':'OK','onPress':()=>_0x301a34(_0x57898b)}]);else throw new Error(_0x3059cf['HyJUU']);}catch(_0x2117b3){console[_0x3c7c(0x86)](_0x3c7c(0xde),_0x2117b3),_0x3059cf['zINKK'](_0x3c35ec,_0x2117b3[_0x3c7c(0x73)]||_0x3059cf[_0x3c7c(0xe7)]),_0x3059cf[_0x3c7c(0xe8)](triggerHaptic,HapticType['ERROR']);}finally{_0x388eed(![]);}},_0xe7a32e=()=>{const _0x2a613b='3|1|5|0|4|2'['split']('|');let _0x51d6fb=0x0;while(!![]){switch(_0x2a613b[_0x51d6fb++]){case'0':_0x3059cf[_0x3c7c(0xe9)](_0x3c35ec,null);continue;case'1':_0x3059cf[_0x3c7c(0xc4)](_0x4737e0,null);continue;case'2':_0x3059cf[_0x3c7c(0x55)](_0x2f3caa);continue;case'3':_0x3059cf['waemc'](_0x59c841,'');continue;case'4':_0x379afd(_0x3059cf[_0x3c7c(0x54)]);continue;case'5':_0x3059cf[_0x3c7c(0xea)](_0x4c24cc,null);continue;}break;}};return React[_0x3c7c(0xeb)](Modal,{'visible':_0x327846,'animationType':_0x3059cf['RLuPr'],'presentationStyle':_0x3059cf[_0x3c7c(0xec)],'onRequestClose':_0xe7a32e},React[_0x3c7c(0xeb)](KeyboardAvoidingView,{'style':styles[_0x3c7c(0xed)],'behavior':Platform['OS']==='ios'?_0x3059cf[_0x3c7c(0xee)]:_0x3059cf[_0x3c7c(0xef)]},React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0xf0)]},React['createElement'](TouchableOpacity,{'style':styles['closeButton'],'onPress':_0xe7a32e},React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0xf1)]},_0x3c7c(0xf2))),React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0xf3)]},_0x362857),React['createElement'](View,{'style':styles[_0x3c7c(0xf4)]})),React[_0x3c7c(0xeb)](ScrollView,{'style':styles[_0x3c7c(0x92)],'contentContainerStyle':styles['contentContainer'],'keyboardShouldPersistTaps':_0x3059cf[_0x3c7c(0xf5)]},React['createElement'](View,{'style':styles[_0x3c7c(0xf6)]},React['createElement'](Text,{'style':styles[_0x3c7c(0xf7)]},_0x583700)),React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0xf8)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x3c7c(0xf9)],_0x3059cf[_0x3c7c(0x57)](_0x574d5d,_0x3059cf[_0x3c7c(0x54)])&&styles[_0x3c7c(0xfa)]],'onPress':()=>{const _0x55bbdf={'inDkZ':_0x3c7c(0x2e),'uhHzV':function(_0xdb7399,_0x1e1b01){return _0x3059cf[_0x3c7c(0xea)](_0xdb7399,_0x1e1b01);}};_0x3059cf[_0x3c7c(0xa7)](_0x3059cf['AoVRN'],_0x3059cf[_0x3c7c(0xfb)])?(_0x3059cf[_0x3c7c(0xfc)](_0x379afd,_0x3059cf[_0x3c7c(0x54)]),triggerHaptic(HapticType[_0x3c7c(0x84)])):(_0x34b067['error']('File\x20pick\x20error:',_0xd93f95),_0x17dd19(_0x55bbdf[_0x3c7c(0xfd)]),_0x55bbdf[_0x3c7c(0xfe)](_0x2d9f27,_0x38079b[_0x3c7c(0x8a)]));}},React['createElement'](Text,{'style':[styles[_0x3c7c(0xff)],_0x3059cf[_0x3c7c(0x100)](_0x574d5d,_0x3059cf[_0x3c7c(0x54)])&&styles[_0x3c7c(0x101)]]},_0x3059cf[_0x3c7c(0x102)])),React[_0x3c7c(0xeb)](TouchableOpacity,{'style':[styles[_0x3c7c(0xf9)],_0x3059cf['wBgeF'](_0x574d5d,_0x3059cf[_0x3c7c(0xae)])&&styles['tabActive'],!FILE_UPLOAD_AVAILABLE&&styles['tabDisabled']],'onPress':()=>{FILE_UPLOAD_AVAILABLE?(_0x3059cf['LZgJY'](_0x379afd,_0x3059cf[_0x3c7c(0xae)]),triggerHaptic(HapticType[_0x3c7c(0x84)])):_0x3059cf[_0x3c7c(0x103)](_0x3059cf['HxhYR'],_0x3c7c(0x104))?(_0x3059cf[_0x3c7c(0x105)](_0x3c35ec,'File\x20upload\x20requires\x20additional\x20dependencies.\x20Please\x20paste\x20data\x20instead.'),_0x3059cf['AtCMv'](triggerHaptic,HapticType[_0x3c7c(0x8a)])):_0x3059cf[_0x3c7c(0x91)](_0x23ed70[_0x3c7c(0xbd)],_0x3059cf[_0x3c7c(0x106)])&&(_0x461c91[_0x3c7c(0x86)](_0x3059cf[_0x3c7c(0x107)],_0x5a0bcf),_0x3059cf[_0x3c7c(0xfc)](_0x3dce53,_0x3059cf['HjCVK']),_0x3059cf[_0x3c7c(0x108)](_0x1a8650,_0x33f772[_0x3c7c(0x8a)]));}},React[_0x3c7c(0xeb)](Text,{'style':[styles[_0x3c7c(0xff)],_0x3059cf[_0x3c7c(0x109)](_0x574d5d,_0x3059cf[_0x3c7c(0xae)])&&styles['tabTextActive'],!FILE_UPLOAD_AVAILABLE&&styles[_0x3c7c(0x10a)]]},_0x3059cf['xECXL'],!FILE_UPLOAD_AVAILABLE&&_0x3059cf[_0x3c7c(0x10b)]))),_0x574d5d===_0x3059cf['UasJt']?React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x10c)]},React['createElement'](TextInput,{'style':styles[_0x3c7c(0x10d)],'multiline':!![],'placeholder':_0x28d9ea,'placeholderTextColor':COLORS[_0x3c7c(0x10e)],'value':_0x3884ad,'onChangeText':_0x59c841,'textAlignVertical':'top','autoCapitalize':_0x3059cf[_0x3c7c(0x10f)],'autoCorrect':![]})):React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x110)]},React['createElement'](TouchableOpacity,{'style':styles['filePickButton'],'onPress':_0x56dda5},React['createElement'](Text,{'style':styles[_0x3c7c(0x111)]},'📁'),React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0x112)]},_0x3059cf[_0x3c7c(0x113)](_0x1e4d5b,_0x3059cf[_0x3c7c(0x114)]))),_0x1e4d5b&&React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x115)]},React['createElement'](Text,{'style':styles[_0x3c7c(0x116)]},'✓\x20',_0x1e4d5b))),_0x4c6d8d&&React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x117)]},React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0x118)]},_0x4c6d8d)),_0x3884ad[_0x3c7c(0x6b)]>0x0&&React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x119)]},React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0x11a)]},_0x3059cf[_0x3c7c(0x11b)]),React[_0x3c7c(0xeb)](Text,{'style':styles['previewText'],'numberOfLines':0x5},_0x3884ad[_0x3c7c(0x11c)](0x0,0x1f4),_0x3884ad[_0x3c7c(0x6b)]>0x1f4?_0x3059cf[_0x3c7c(0x11d)]:''),React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0x11e)]},_0x3884ad[_0x3c7c(0x6b)]['toLocaleString'](),_0x3059cf[_0x3c7c(0x11f)]))),React[_0x3c7c(0xeb)](View,{'style':styles[_0x3c7c(0x120)]},React[_0x3c7c(0xeb)](TouchableOpacity,{'style':[styles[_0x3c7c(0x121)],(!_0x3884ad[_0x3c7c(0x97)]()||_0x3f2aa0)&&styles[_0x3c7c(0x122)]],'onPress':_0x4bb796,'disabled':!_0x3884ad['trim']()||_0x3f2aa0},_0x3f2aa0?React[_0x3c7c(0xeb)](ActivityIndicator,{'color':_0x3c7c(0x123),'size':_0x3059cf[_0x3c7c(0x124)]}):React[_0x3c7c(0xeb)](Text,{'style':styles[_0x3c7c(0x125)]},_0x3059cf[_0x3c7c(0x126)])))));},styles=StyleSheet[_0x3c7c(0x127)]({'container':{'flex':0x1,'backgroundColor':COLORS[_0x3c7c(0x128)]},'header':{'flexDirection':_0x3c7c(0x129),'alignItems':'center','justifyContent':_0x3c7c(0x12a),'paddingHorizontal':0x10,'paddingTop':Platform['OS']==='ios'?0xc:0x10,'paddingBottom':0xc,'borderBottomWidth':0x1,'borderBottomColor':_0x3c7c(0x12b)},'headerTitle':{'fontSize':0x11,'fontWeight':_0x3c7c(0x12c),'color':COLORS[_0x3c7c(0x12d)],'fontFamily':_0x3c7c(0x12e)},'closeButton':{'width':0x3c},'closeButtonText':{'fontSize':0x10,'color':_0x3c7c(0x12f),'fontFamily':_0x3c7c(0x130)},'content':{'flex':0x1},'contentContainer':{'padding':0x14,'paddingBottom':0x28},'instructionsContainer':{'backgroundColor':_0x3c7c(0x131),'borderRadius':0xc,'padding':0x10,'marginBottom':0x14},'instructionsText':{'fontSize':0xe,'lineHeight':0x14,'color':_0x3c7c(0x132),'fontFamily':_0x3c7c(0x130)},'tabContainer':{'flexDirection':_0x3c7c(0x129),'backgroundColor':'#F3F4F6','borderRadius':0xa,'padding':0x4,'marginBottom':0x14},'tab':{'flex':0x1,'paddingVertical':0xa,'borderRadius':0x8,'alignItems':_0x3c7c(0x133)},'tabActive':{'backgroundColor':'#FFFFFF','shadowColor':_0x3c7c(0x134),'shadowOffset':{'width':0x0,'height':0x1},'shadowOpacity':0.1,'shadowRadius':0x2,'elevation':0x2},'tabText':{'fontSize':0xe,'fontWeight':_0x3c7c(0x135),'color':COLORS[_0x3c7c(0x136)],'fontFamily':'Inter'},'tabTextActive':{'color':COLORS[_0x3c7c(0x12d)]},'tabDisabled':{'opacity':0.5},'tabTextDisabled':{'color':COLORS[_0x3c7c(0x10e)]},'inputContainer':{'marginBottom':0x14},'textInput':{'backgroundColor':'#FFFFFF','borderWidth':0x1,'borderColor':COLORS[_0x3c7c(0x137)],'borderRadius':0xc,'padding':0x10,'minHeight':0xc8,'fontSize':0xe,'fontFamily':Platform['OS']===_0x3c7c(0x138)?_0x3c7c(0x139):_0x3c7c(0x13a),'color':COLORS[_0x3c7c(0x12d)]},'fileInputContainer':{'marginBottom':0x14},'filePickButton':{'backgroundColor':_0x3c7c(0x123),'borderWidth':0x2,'borderColor':COLORS[_0x3c7c(0x137)],'borderStyle':_0x3c7c(0x13b),'borderRadius':0xc,'padding':0x28,'alignItems':_0x3c7c(0x133),'justifyContent':_0x3c7c(0x133)},'filePickIcon':{'fontSize':0x28,'marginBottom':0xc},'filePickText':{'fontSize':0xf,'color':COLORS['grey600'],'fontFamily':_0x3c7c(0x130)},'fileSelectedContainer':{'marginTop':0xc,'backgroundColor':_0x3c7c(0x13c),'borderRadius':0x8,'padding':0xc},'fileSelectedText':{'fontSize':0xe,'color':'#166534','fontFamily':'Inter','fontWeight':_0x3c7c(0x135)},'errorContainer':{'backgroundColor':_0x3c7c(0x13d),'borderRadius':0x8,'padding':0xc,'marginBottom':0x10},'errorText':{'fontSize':0xe,'color':_0x3c7c(0x13e),'fontFamily':_0x3c7c(0x130)},'previewContainer':{'backgroundColor':_0x3c7c(0x13f),'borderRadius':0xc,'padding':0x10},'previewTitle':{'fontSize':0xe,'fontWeight':_0x3c7c(0x12c),'color':COLORS[_0x3c7c(0x12d)],'marginBottom':0x8,'fontFamily':_0x3c7c(0x130)},'previewText':{'fontSize':0xc,'color':COLORS['grey600'],'fontFamily':Platform['OS']===_0x3c7c(0x138)?_0x3c7c(0x139):_0x3c7c(0x13a),'lineHeight':0x12},'previewInfo':{'fontSize':0xc,'color':COLORS['grey500'],'marginTop':0x8,'fontFamily':'Inter'},'footer':{'padding':0x14,'paddingBottom':Platform['OS']===_0x3c7c(0x138)?0x22:0x14,'borderTopWidth':0x1,'borderTopColor':'#E5E7EB','backgroundColor':COLORS[_0x3c7c(0x128)]},'submitButton':{'backgroundColor':_0x3c7c(0x140),'borderRadius':0xc,'paddingVertical':0x10,'alignItems':_0x3c7c(0x133),'justifyContent':_0x3c7c(0x133)},'submitButtonDisabled':{'backgroundColor':COLORS['grey300']},'submitButtonText':{'fontSize':0x10,'fontWeight':_0x3c7c(0x12c),'color':_0x3c7c(0x123),'fontFamily':_0x3c7c(0x130)}});export default LLMDataInputModal;
@@ -1 +1 @@
1
- import React from'react';import{View,StyleSheet,TouchableOpacity,Text}from'react-native';import{COLORS,SPACING}from'../theme';function _0x54bc(){const _0x74a64a=['Go\x20back','button','Close','Fragment','createElement','grabber','container','closeButton','Uoidc','TzCxE','backText','fxfgN','closeText','centerSpacer','spacer','100%','center','#D0D0D0','flex-start','grey800','500'];_0x54bc=function(){return _0x74a64a;};return _0x54bc();}const ModalHeader=({onClose:_0x3da6f2,onBack:_0x46f119,showGrabber:showGrabber=!![],showBackButton:showBackButton=![]})=>{const _0x4eb5de={'Uoidc':_0x4e6b(0x0),'TzCxE':_0x4e6b(0x1),'fxfgN':_0x4e6b(0x2)};return React['createElement'](React[_0x4e6b(0x3)],null,showGrabber&&React[_0x4e6b(0x4)](View,{'style':styles['grabberContainer']},React[_0x4e6b(0x4)](View,{'style':styles[_0x4e6b(0x5)]})),React[_0x4e6b(0x4)](View,{'style':styles[_0x4e6b(0x6)]},showBackButton?React[_0x4e6b(0x4)](TouchableOpacity,{'style':styles[_0x4e6b(0x7)],'onPress':_0x46f119,'activeOpacity':0.7,'accessibilityLabel':_0x4eb5de[_0x4e6b(0x8)],'accessibilityRole':_0x4eb5de[_0x4e6b(0x9)]},React['createElement'](Text,{'style':styles[_0x4e6b(0xa)]},'←')):React[_0x4e6b(0x4)](TouchableOpacity,{'style':styles[_0x4e6b(0x7)],'onPress':_0x3da6f2,'activeOpacity':0.7,'accessibilityLabel':_0x4eb5de[_0x4e6b(0xb)],'accessibilityRole':_0x4eb5de[_0x4e6b(0x9)]},React[_0x4e6b(0x4)](Text,{'style':styles[_0x4e6b(0xc)]},'✕')),React[_0x4e6b(0x4)](View,{'style':styles[_0x4e6b(0xd)]}),React[_0x4e6b(0x4)](View,{'style':styles[_0x4e6b(0xe)]})));},styles=StyleSheet['create']({'grabberContainer':{'width':_0x4e6b(0xf),'alignItems':_0x4e6b(0x10),'paddingTop':0xc,'paddingBottom':0x4},'grabber':{'width':0x64,'height':0x6,'backgroundColor':_0x4e6b(0x11),'borderRadius':0x3},'container':{'flexDirection':'row','alignItems':_0x4e6b(0x12),'justifyContent':_0x4e6b(0x12),'height':0x2c,'paddingTop':0x0,'paddingLeft':0x4,'marginBottom':SPACING['md']},'closeButton':{'width':0x24,'height':0x24,'justifyContent':'center','alignItems':'center','marginTop':0x0},'closeText':{'fontSize':0x14,'color':COLORS[_0x4e6b(0x13)],'fontWeight':_0x4e6b(0x14)},'backText':{'fontSize':0x18,'color':COLORS[_0x4e6b(0x13)],'fontWeight':_0x4e6b(0x14)},'centerSpacer':{'flex':0x1},'spacer':{'width':0x2c,'height':0x2c}});function _0x4e6b(_0x54bc2c,_0x4e6b6b){_0x54bc2c=_0x54bc2c-0x0;const _0x235a58=_0x54bc();let _0x1eb635=_0x235a58[_0x54bc2c];return _0x1eb635;}export{ModalHeader};export default ModalHeader;
1
+ import React from'react';import{View,StyleSheet,TouchableOpacity,Text}from'react-native';import{COLORS,SPACING}from'../theme';const ModalHeader=({onClose:_0x166400,onBack:_0x246381,showGrabber:showGrabber=!![],showBackButton:showBackButton=![]})=>{const _0x5eade7={'XFslP':_0x21d5(0x0),'WJcfX':_0x21d5(0x1),'NSwlg':_0x21d5(0x2)};return React['createElement'](React[_0x21d5(0x3)],null,showGrabber&&React[_0x21d5(0x4)](View,{'style':styles[_0x21d5(0x5)]},React[_0x21d5(0x4)](View,{'style':styles[_0x21d5(0x6)]})),React[_0x21d5(0x4)](View,{'style':styles[_0x21d5(0x7)]},showBackButton?React[_0x21d5(0x4)](TouchableOpacity,{'style':styles[_0x21d5(0x8)],'onPress':_0x246381,'activeOpacity':0.7,'accessibilityLabel':_0x5eade7[_0x21d5(0x9)],'accessibilityRole':_0x5eade7[_0x21d5(0xa)]},React[_0x21d5(0x4)](Text,{'style':styles['backText']},'←')):React[_0x21d5(0x4)](TouchableOpacity,{'style':styles[_0x21d5(0x8)],'onPress':_0x166400,'activeOpacity':0.7,'accessibilityLabel':_0x5eade7[_0x21d5(0xb)],'accessibilityRole':_0x5eade7[_0x21d5(0xa)]},React[_0x21d5(0x4)](Text,{'style':styles['closeText']},'✕')),React['createElement'](View,{'style':styles[_0x21d5(0xc)]}),React['createElement'](View,{'style':styles['spacer']})));},styles=StyleSheet[_0x21d5(0xd)]({'grabberContainer':{'width':'100%','alignItems':_0x21d5(0xe),'paddingTop':0xc,'paddingBottom':0x4},'grabber':{'width':0x64,'height':0x6,'backgroundColor':_0x21d5(0xf),'borderRadius':0x3},'container':{'flexDirection':_0x21d5(0x10),'alignItems':_0x21d5(0x11),'justifyContent':_0x21d5(0x11),'height':0x2c,'paddingTop':0x0,'paddingLeft':0x4,'marginBottom':SPACING['md']},'closeButton':{'width':0x24,'height':0x24,'justifyContent':_0x21d5(0xe),'alignItems':'center','marginTop':0x0},'closeText':{'fontSize':0x14,'color':COLORS['grey800'],'fontWeight':'500'},'backText':{'fontSize':0x18,'color':COLORS[_0x21d5(0x12)],'fontWeight':_0x21d5(0x13)},'centerSpacer':{'flex':0x1},'spacer':{'width':0x2c,'height':0x2c}});export{ModalHeader};export default ModalHeader;function _0x21d5(_0x5269f6,_0x21d5f9){_0x5269f6=_0x5269f6-0x0;const _0x6dd4ca=_0x5269();let _0x3cf17d=_0x6dd4ca[_0x5269f6];return _0x3cf17d;}function _0x5269(){const _0x458fd2=['Go\x20back','button','Close','Fragment','createElement','grabberContainer','grabber','container','closeButton','XFslP','WJcfX','NSwlg','centerSpacer','create','center','#D0D0D0','row','flex-start','grey800','500'];_0x5269=function(){return _0x458fd2;};return _0x5269();}
@@ -1 +1 @@
1
- import React from'react';function _0x3137(_0x1fdad1,_0x3137d9){_0x1fdad1=_0x1fdad1-0x0;const _0x267f41=_0x1fda();let _0x4f7f5b=_0x267f41[_0x1fdad1];return _0x4f7f5b;}function _0x1fda(){const _0x318266=['modalTopPadding','createElement','container','bottom','create','surface','modalTop','modalHorizontal','80%'];_0x1fda=function(){return _0x318266;};return _0x1fda();}import{View,StyleSheet}from'react-native';import{COLORS,BORDER_RADIUS,SPACING}from'../theme';const ModalSheet=({children:_0x5a39ee,topPadding:topPadding=SPACING[_0x3137(0x0)],onClose:_0x3a6316,showGrabber:showGrabber=!![],style:_0x3e09e4})=>{const _0xb0c0bd={'bottom':0x14};return React[_0x3137(0x1)](View,{'style':[styles[_0x3137(0x2)],{'paddingTop':topPadding,'paddingBottom':_0xb0c0bd[_0x3137(0x3)]||SPACING['lg']},_0x3e09e4]},_0x5a39ee);},styles=StyleSheet[_0x3137(0x4)]({'container':{'backgroundColor':COLORS[_0x3137(0x5)],'borderTopLeftRadius':BORDER_RADIUS[_0x3137(0x6)],'borderTopRightRadius':BORDER_RADIUS[_0x3137(0x6)],'borderBottomLeftRadius':0x0,'borderBottomRightRadius':0x0,'paddingHorizontal':SPACING[_0x3137(0x7)],'flex':0x1,'minHeight':_0x3137(0x8)}});export{ModalSheet};export default ModalSheet;
1
+ function _0x3059(_0xd51ac6,_0x3059d3){_0xd51ac6=_0xd51ac6-0x0;const _0x5a735e=_0xd51a();let _0x27213c=_0x5a735e[_0xd51ac6];return _0x27213c;}import React from'react';function _0xd51a(){const _0x2388cb=['modalTopPadding','createElement','container','bottom','create','surface','modalTop','modalHorizontal','80%'];_0xd51a=function(){return _0x2388cb;};return _0xd51a();}import{View,StyleSheet}from'react-native';import{COLORS,BORDER_RADIUS,SPACING}from'../theme';const ModalSheet=({children:_0x368004,topPadding:topPadding=SPACING[_0x3059(0x0)],onClose:_0x297293,showGrabber:showGrabber=!![],style:_0x3f3fac})=>{const _0x3fa15f={'bottom':0x14};return React[_0x3059(0x1)](View,{'style':[styles[_0x3059(0x2)],{'paddingTop':topPadding,'paddingBottom':_0x3fa15f[_0x3059(0x3)]||SPACING['lg']},_0x3f3fac]},_0x368004);},styles=StyleSheet[_0x3059(0x4)]({'container':{'backgroundColor':COLORS[_0x3059(0x5)],'borderTopLeftRadius':BORDER_RADIUS['modalTop'],'borderTopRightRadius':BORDER_RADIUS[_0x3059(0x6)],'borderBottomLeftRadius':0x0,'borderBottomRightRadius':0x0,'paddingHorizontal':SPACING[_0x3059(0x7)],'flex':0x1,'minHeight':_0x3059(0x8)}});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';function _0x3f48(_0x2d6e4b,_0x3f48d6){_0x2d6e4b=_0x2d6e4b-0x0;const _0x1b46a6=_0x2d6e();let _0x5c1ad1=_0x1b46a6[_0x2d6e4b];return _0x5c1ad1;}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((_0x10a256,_0x3234f6)=>{const _0x2758ce={'yujqT':function(_0x5ea5aa,_0x173996){return _0x5ea5aa===_0x173996;},'HOaTG':'NBsQR','mdAyY':function(_0x41e8ad,_0x43b1f0){return _0x41e8ad(_0x43b1f0);},'bZHpV':function(_0x54319f,_0x1797a5){return _0x54319f(_0x1797a5);},'IsfSB':_0x3f48(0x0),'vdaXa':function(_0x3ea13f,_0x40996c){return _0x3ea13f(_0x40996c);},'HDtHH':_0x3f48(0x1),'QbMbe':function(_0x2782aa,_0x2c79c1){return _0x2782aa instanceof _0x2c79c1;},'UJqXG':_0x3f48(0x2),'opQHE':_0x3f48(0x3),'bpWXI':function(_0x3f28ae,_0x515f99){return _0x3f28ae(_0x515f99);},'RUBrm':_0x3f48(0x4),'SWize':_0x3f48(0x5),'EzdaA':_0x3f48(0x6),'GJkrf':'2.\x20Verify\x20you\x20have\x20the\x20right\x20permissions\x20for\x20your\x20use\x20case','ZZLxf':_0x3f48(0x7),'wNwgw':'4.\x20Check\x20your\x20internet\x20connection','FAPsY':_0x3f48(0x8),'RdgQx':function(_0x531183,_0x336551){return _0x531183===_0x336551;},'MDpSU':_0x3f48(0x9),'MmwFG':function(_0x578687,_0x2c9d81){return _0x578687!==_0x2c9d81;},'Benea':_0x3f48(0xa),'gQeyi':_0x3f48(0xb),'INHux':_0x3f48(0xc),'OiCwR':function(_0x4b2749,_0xcab116){return _0x4b2749/_0xcab116;},'KEwOh':_0x3f48(0xd),'bPvIB':_0x3f48(0xe),'Qyehx':_0x3f48(0xf),'RSLOb':function(_0x1e6ecc,_0x2891a2){return _0x1e6ecc(_0x2891a2);},'XYkAz':_0x3f48(0x10),'BjarA':'uzyPg','jbCVX':function(_0x20bc7e){return _0x20bc7e();},'twCon':function(_0x2a2854,_0x3a48b5){return _0x2a2854!==_0x3a48b5;},'wTkdf':_0x3f48(0x11),'fqlAk':function(_0x2af8e5,_0x3377b0){return _0x2af8e5(_0x3377b0);},'LsquG':_0x3f48(0x12),'KLDrK':_0x3f48(0x13),'swusP':function(_0x5e71b3,_0x459a70){return _0x5e71b3(_0x459a70);},'bhXSX':function(_0x141ab9,_0x571420){return _0x141ab9(_0x571420);},'EUOtA':'🔽\x20showOverlay\x20set\x20to\x20false','ZHqVl':_0x3f48(0x14),'atvTL':_0x3f48(0x15),'sZgVC':function(_0x2fe6d6,_0x5adc97){return _0x2fe6d6||_0x5adc97;},'wRzTx':_0x3f48(0x16),'SQnnw':function(_0x29f4aa,_0x14cdfd){return _0x29f4aa!==_0x14cdfd;},'HWsuv':_0x3f48(0x17),'TisPy':_0x3f48(0x18),'mvtPF':function(_0x331687,_0x50a60e){return _0x331687(_0x50a60e);},'BGpBD':'lpjiA','cmtRI':_0x3f48(0x19),'GrHyS':'OKkRZ','mqkKM':_0x3f48(0x1a),'GAVor':function(_0x82f7c2){return _0x82f7c2();},'aVYTL':_0x3f48(0x1b),'BwqxF':_0x3f48(0x1c),'DQGFp':_0x3f48(0x1d),'qAsXt':_0x3f48(0x1e),'QCYZU':function(_0x47e07a,_0x333782){return _0x47e07a(_0x333782);},'YmIzB':_0x3f48(0x1f),'MAnpl':function(_0x3400da){return _0x3400da();},'ckxSR':_0x3f48(0x20),'udvfH':function(_0x20210d){return _0x20210d();},'DWQtj':function(_0x33d3ae,_0x669d30){return _0x33d3ae&&_0x669d30;},'aUpfF':_0x3f48(0x21),'boAyY':_0x3f48(0x22),'pSQtE':_0x3f48(0x23),'QIUHo':function(_0x4aa57f,_0x1b0a24){return _0x4aa57f(_0x1b0a24);},'iniwt':function(_0x3cc048,_0x3653ae){return _0x3cc048(_0x3653ae);},'mQziq':_0x3f48(0x24),'uPjIM':_0x3f48(0x25),'OGgUv':'🔽\x20Closing\x20Onairos\x20overlay,\x20result:','xnshU':function(_0x5ae74a,_0x34cf5e,_0x4e35b7,_0x1c074f){return _0x5ae74a(_0x34cf5e,_0x4e35b7,_0x1c074f);},'tfuuj':_0x3f48(0x26),'AqkDN':_0x3f48(0x27),'HtYDV':function(_0x2e364c,_0x39f597){return _0x2e364c(_0x39f597);},'QkeMC':function(_0x123375,_0x6940fe){return _0x123375(_0x6940fe);},'IsrgY':_0x3f48(0x28),'usXFK':'pill','TByXz':_0x3f48(0x29),'qGEox':_0x3f48(0x2a),'WDHvi':_0x3f48(0x2b),'PVZnd':_0x3f48(0x2c),'HqXMR':function(_0x48986c,_0x35137e){return _0x48986c(_0x35137e);},'DAXQY':function(_0x4858bb,_0x35fb97){return _0x4858bb(_0x35fb97);},'rbJfg':function(_0x318d18,_0x543386){return _0x318d18(_0x543386);},'GtZSa':function(_0x33bfef,_0x50e29e,_0x39acf3){return _0x33bfef(_0x50e29e,_0x39acf3);},'hjxEg':function(_0x2d08ba,_0x4a6939,_0x584977){return _0x2d08ba(_0x4a6939,_0x584977);},'UlNjn':function(_0x39fbc2,_0x5849c0,_0x30ff6f){return _0x39fbc2(_0x5849c0,_0x30ff6f);},'rrLeS':_0x3f48(0x2d),'WBggU':'#999','DoQcu':function(_0x436cc8,_0x27a995){return _0x436cc8||_0x27a995;}},{returnLink:_0x4f3cd3,prefillUrl:_0x29783a,AppName:_0x196170,buttonType:buttonType=_0x2758ce[_0x3f48(0x2e)],requestData:_0x3637f2,buttonWidth:buttonWidth=0xc8,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x2758ce[_0x3f48(0x2f)],onRejection:_0x4166d8,onResolved:_0x344df2,preCheck:_0x3db2a0,color:color=COLORS[_0x3f48(0x30)],debug:debug=![],darkMode:darkMode=![],preferredPlatform:_0x31aa35,testMode:testMode=![],apiKey:_0x3dacfd,environment:environment=_0x3f48(0x31),enableLogging:enableLogging=!![],timeout:timeout=0x7530,retryAttempts:retryAttempts=0x3}=_0x10a256,[_0x1030d6,_0x5c4da0]=_0x2758ce[_0x3f48(0x32)](useState,![]),[_0x154efa,_0x14f526]=_0x2758ce[_0x3f48(0x33)](useState,![]),[_0x30b8be,_0x58fa8e]=_0x2758ce['DAXQY'](useState,null),[_0x22cd27,_0x17e286]=_0x2758ce[_0x3f48(0x34)](useState,![]);_0x2758ce['GtZSa'](useEffect,()=>{const _0x42201f={'xUejC':function(_0x418700,_0xf025f5){return _0x2758ce['RSLOb'](_0x418700,_0xf025f5);},'TxFZh':_0x2758ce[_0x3f48(0x35)]};if(_0x2758ce[_0x3f48(0x36)]!==_0x3f48(0x37)){var _0x9418aa;let _0x25bb0d=!![];const _0x25d5b5=async()=>{const _0x237dbb={'jbtln':_0x3f48(0x28)};if(_0x2758ce[_0x3f48(0x38)](_0x2758ce[_0x3f48(0x39)],_0x2758ce[_0x3f48(0x39)])){if(_0x22cd27)return;_0x2758ce[_0x3f48(0x3a)](_0x17e286,!![]),_0x2758ce[_0x3f48(0x3b)](_0x58fa8e,null);try{console[_0x3f48(0x3c)]('🚀\x20Onairos\x20SDK:\x20Starting\x20API\x20key\x20initialization...');if(!_0x3dacfd)throw new Error(_0x2758ce[_0x3f48(0x3d)]);const _0x194dc8={'apiKey':_0x3dacfd,'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts};await initializeApiKey(_0x194dc8),_0x25bb0d&&(_0x2758ce[_0x3f48(0x3e)](_0x14f526,!![]),_0x58fa8e(null),enableLogging&&(console[_0x3f48(0x3c)]('✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully'),console['log'](_0x2758ce[_0x3f48(0x3f)],{'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts,'apiKeyLength':_0x3dacfd['length']})));}catch(_0x29bc7f){const _0x1e773a=_0x2758ce[_0x3f48(0x40)](_0x29bc7f,Error)?_0x29bc7f[_0x3f48(0x41)]:_0x2758ce[_0x3f48(0x42)];console[_0x3f48(0x43)](_0x2758ce[_0x3f48(0x44)],_0x1e773a),_0x25bb0d&&(_0x2758ce[_0x3f48(0x3e)](_0x14f526,![]),_0x2758ce['bpWXI'](_0x58fa8e,_0x1e773a),enableLogging&&(_0x2758ce[_0x3f48(0x45)]===_0x2758ce[_0x3f48(0x46)]?_0x42201f[_0x3f48(0x47)](_0x1f59bf,![]):(console[_0x3f48(0x48)](_0x2758ce['EzdaA']),console[_0x3f48(0x3c)](_0x3f48(0x13)),console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x49)]),console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x4a)]),console['log'](_0x2758ce['wNwgw']),console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x4b)]),console[_0x3f48(0x4c)]())),_0x4166d8&&_0x2758ce[_0x3f48(0x3e)](_0x4166d8,'SDK\x20initialization\x20failed:\x20'+_0x1e773a));}finally{_0x2758ce[_0x3f48(0x4d)]('oLXIO',_0x2758ce['MDpSU'])?_0x25bb0d&&(_0x2758ce[_0x3f48(0x4e)](_0x2758ce[_0x3f48(0x4f)],'UxZfp')?_0x2848cb[_0x3f48(0x3c)](_0x42201f[_0x3f48(0x50)]):_0x2758ce[_0x3f48(0x51)](_0x17e286,![])):_0x7e6235[_0x3f48(0x3c)](_0x3f48(0x27),_0x386969);}}else Alert[_0x3f48(0x52)](_0x237dbb['jbtln'],_0x3f48(0x53)+_0x5ee44a+_0x3f48(0x54),[{'text':'OK'}]);};if(_0x3dacfd&&(!_0x2758ce[_0x3f48(0x55)](isApiKeyInitialized)||_0x2758ce[_0x3f48(0x56)](_0x2758ce[_0x3f48(0x4d)](_0x9418aa=_0x2758ce['jbCVX'](getApiConfig),null)||_0x9418aa===void 0x0?void 0x0:_0x9418aa[_0x3f48(0x57)],_0x3dacfd)))_0x2758ce[_0x3f48(0x55)](_0x25d5b5);else isApiKeyInitialized()&&(_0x2758ce[_0x3f48(0x38)](_0x2758ce[_0x3f48(0x58)],'rHJyp')?_0x2758ce['vdaXa'](_0x1324a8,_0x3f48(0x59)+_0x292493):(_0x2758ce[_0x3f48(0x3e)](_0x14f526,!![]),_0x2758ce[_0x3f48(0x5a)](_0x17e286,![]),enableLogging&&console[_0x3f48(0x3c)](_0x2758ce['LsquG'])));return()=>{const _0x4daf5f={'mSNzs':function(_0x4941d3,_0x245d00){return _0x4941d3(_0x245d00);},'nItyl':_0x2758ce['gQeyi']};'XYQPV'===_0x2758ce[_0x3f48(0x5b)]?_0x25bb0d=![]:(_0x4daf5f[_0x3f48(0x5c)](_0x4036bd,!![]),_0x4daf5f[_0x3f48(0x5c)](_0x5a3f09,null),_0x5ee65f&&(_0x5df935['log'](_0x4daf5f['nItyl']),_0x40936c[_0x3f48(0x3c)](_0x3f48(0x1),{'environment':_0x482bb2,'enableLogging':_0x1059a0,'timeout':_0x47933a,'retryAttempts':_0x29eb63,'apiKeyLength':_0x12f893[_0x3f48(0x5d)]})));};}else{const _0x2562bf={'width':_0x21a0f9,'height':_0x286449,'backgroundColor':_0x5f4459,'borderRadius':_0x2758ce[_0x3f48(0x4d)](_0x3e1ec5,_0x3f48(0x5e))?_0x2758ce[_0x3f48(0x5f)](_0x2bdae4,0x2):0x8,'alignItems':_0x2758ce[_0x3f48(0x60)],'justifyContent':_0x2758ce['KEwOh'],'flexDirection':_0x3f48(0x29),'opacity':_0x4ac8b3?0x1:0.6};return _0xb61f3&&(_0x2562bf[_0x3f48(0x61)]=0x2,_0x2562bf[_0x3f48(0x62)]=_0x29012c?_0x2758ce[_0x3f48(0x63)]:_0x2758ce[_0x3f48(0x64)]),_0x2562bf;}},[_0x3dacfd,environment,enableLogging,timeout,retryAttempts,_0x4166d8]),_0x2758ce[_0x3f48(0x65)](useImperativeHandle,_0x3234f6,()=>({'openOverlay':_0x13dc9b,'closeOverlay':_0x3ed747,'isInitialized':()=>_0x154efa,'getApiConfig':()=>getApiConfig()}));const _0x13dc9b=_0x2758ce['GtZSa'](useCallback,async()=>{const _0x26b96e={'xibrh':_0x2758ce[_0x3f48(0x66)],'kyRCu':function(_0x32961d,_0x23c43b){return _0x2758ce['swusP'](_0x32961d,_0x23c43b);},'PsJmJ':_0x2758ce[_0x3f48(0x67)]};console['log'](_0x2758ce['ZHqVl'],_0x154efa,_0x3f48(0x68),_0x22cd27,_0x2758ce[_0x3f48(0x69)],_0x1030d6);try{if(!_0x154efa){const _0x51fee1=_0x2758ce['sZgVC'](_0x30b8be,_0x3f48(0x6a));console[_0x3f48(0x43)](_0x2758ce[_0x3f48(0x6b)]);_0x4166d8?_0x2758ce[_0x3f48(0x6c)](_0x2758ce[_0x3f48(0x6d)],_0x2758ce[_0x3f48(0x6e)])?_0x2758ce['mvtPF'](_0x4166d8,_0x51fee1):(_0x288742[_0x3f48(0x48)](_0x2758ce[_0x3f48(0x6f)]),_0x5cfde9[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x70)]),_0x3b7855['log'](_0x3f48(0x71)),_0xb03479[_0x3f48(0x3c)](_0x2758ce['ZZLxf']),_0x38b7e5[_0x3f48(0x3c)](_0x2758ce['wNwgw']),_0x2b6cc4[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x4b)]),_0x2c2d95[_0x3f48(0x4c)]()):Alert[_0x3f48(0x52)](_0x3f48(0x28),_0x51fee1,[{'text':'OK'}]);return;}if(_0x3db2a0){enableLogging&&(_0x2758ce['yujqT'](_0x2758ce[_0x3f48(0x72)],_0x2758ce[_0x3f48(0x73)])?_0x459093&&_0x422708(![]):console[_0x3f48(0x3c)](_0x3f48(0x74)));try{if(_0x2758ce[_0x3f48(0x75)]!==_0x2758ce[_0x3f48(0x76)]){const _0x4bc891=await _0x2758ce[_0x3f48(0x77)](_0x3db2a0);if(!_0x4bc891){if(_0x2758ce[_0x3f48(0x38)](_0x2758ce['aVYTL'],_0x3f48(0x78)))_0x2758ce[_0x3f48(0x79)](_0x1c2a10,'Failed\x20to\x20open\x20overlay:\x20'+_0x1bd503[_0x3f48(0x41)]);else{enableLogging&&console['log'](_0x2758ce['BwqxF']);return;}}enableLogging&&console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x7a)]);}else _0x30eff2['log'](_0x26b96e['xibrh']);}catch(_0x16f59c){console[_0x3f48(0x43)](_0x2758ce['qAsXt'],_0x16f59c);_0x4166d8&&_0x2758ce[_0x3f48(0x7b)](_0x4166d8,_0x3f48(0x7c)+_0x16f59c[_0x3f48(0x41)]);return;}}enableLogging&&console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x7d)]);const _0xffc96a=await _0x2758ce[_0x3f48(0x7e)](hasCredentials);if(_0xffc96a){enableLogging&&console[_0x3f48(0x3c)](_0x2758ce['ckxSR']);try{if(_0x3f48(0x7f)===_0x3f48(0x80))_0x3bb30e[_0x3f48(0x3c)](_0x3f48(0x81),_0x4327cc),_0x26b96e[_0x3f48(0x82)](_0x805e91,![]),_0x58bb37[_0x3f48(0x3c)](_0x26b96e[_0x3f48(0x83)]),_0x2a36ab&&_0x342ace&&_0x2e01f5(_0x2ea3ed[_0x3f48(0x84)],_0x18f48c[_0x3f48(0x85)],_0x45838a[_0x3f48(0x86)]);else{const _0x1fe8f0=await _0x2758ce[_0x3f48(0x87)](getCredentials);if(_0x2758ce[_0x3f48(0x88)](_0x1fe8f0,_0x344df2)){const _0x5adf00=API_CONFIG[_0x3f48(0x89)]+'/user/data',_0x8365e0=_0x2758ce['aUpfF'];enableLogging&&console[_0x3f48(0x3c)](_0x3f48(0x10));_0x344df2(_0x5adf00,_0x8365e0,_0x1fe8f0);return;}}}catch(_0x377feb){console[_0x3f48(0x8a)](_0x3f48(0x8b),_0x377feb);}}enableLogging&&(_0x2758ce['twCon'](_0x2758ce[_0x3f48(0x8c)],_0x2758ce[_0x3f48(0x8d)])?console['log']('🎨\x20Opening\x20Onairos\x20overlay...'):(_0x2758ce[_0x3f48(0x51)](_0x3958a5,!![]),_0x2758ce[_0x3f48(0x8e)](_0x63a90,![]),_0xc0335a&&_0x3e956c['log'](_0x2758ce[_0x3f48(0x66)]))),_0x2758ce[_0x3f48(0x8f)](_0x5c4da0,!![]);}catch(_0x7db673){console['error'](_0x3f48(0x90),_0x7db673),_0x4166d8&&_0x2758ce[_0x3f48(0x91)](_0x4166d8,_0x3f48(0x92)+_0x7db673[_0x3f48(0x41)]);}},[_0x154efa,_0x30b8be,_0x3db2a0,enableLogging,_0x4166d8,_0x344df2]),_0x3ed747=useCallback(_0x13a968=>{_0x2758ce[_0x3f48(0x93)]!==_0x2758ce['uPjIM']?(console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x94)],_0x13a968),_0x2758ce['iniwt'](_0x5c4da0,![]),console[_0x3f48(0x3c)](_0x2758ce['EUOtA']),_0x2758ce[_0x3f48(0x88)](_0x13a968,_0x344df2)&&_0x2758ce[_0x3f48(0x95)](_0x344df2,_0x13a968[_0x3f48(0x84)],_0x13a968[_0x3f48(0x85)],_0x13a968[_0x3f48(0x86)])):_0x3376f7(_0x4bd117);},[enableLogging,_0x344df2]),_0x45a0ef=_0x2758ce[_0x3f48(0x96)](useCallback,_0x32776e=>{const _0xcdf10c={'HTIQd':_0x2758ce[_0x3f48(0x97)]};if(enableLogging){if(_0x3f48(0x26)!==_0x2758ce[_0x3f48(0x98)]){_0x3bb7ba&&_0x48dac4[_0x3f48(0x3c)](_0xcdf10c[_0x3f48(0x99)]);return;}else console[_0x3f48(0x3c)](_0x2758ce[_0x3f48(0x9a)],_0x32776e);}_0x2758ce[_0x3f48(0x9b)](_0x5c4da0,![]),_0x4166d8&&_0x2758ce[_0x3f48(0x9c)](_0x4166d8,_0x32776e);},[enableLogging,_0x4166d8]);if(_0x2758ce[_0x3f48(0x88)](_0x30b8be,!_0x22cd27))return React[_0x3f48(0x9d)](View,{'style':styles[_0x3f48(0x9e)]},React[_0x3f48(0x9d)](TouchableOpacity,{'style':[styles[_0x3f48(0x9f)],{'backgroundColor':_0x3f48(0xa0)}],'onPress':()=>{Alert[_0x3f48(0x52)](_0x2758ce['IsrgY'],_0x3f48(0x53)+_0x30b8be+_0x3f48(0x54),[{'text':'OK'}]);}},React[_0x3f48(0x9d)](Text,{'style':styles['errorButtonText']},_0x2758ce[_0x3f48(0xa1)])));if(_0x22cd27||!_0x154efa)return React[_0x3f48(0x9d)](View,{'style':styles[_0x3f48(0xa2)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x3f48(0xa3)],{'backgroundColor':_0x2758ce[_0x3f48(0xa4)]}],'disabled':!![]},React[_0x3f48(0x9d)](Text,{'style':styles[_0x3f48(0xa5)]},_0x3f48(0xa6))));const _0x280245=()=>{const _0x4ed194={'width':buttonWidth,'height':buttonHeight,'backgroundColor':color,'borderRadius':buttonType===_0x2758ce['usXFK']?_0x2758ce[_0x3f48(0x5f)](buttonHeight,0x2):0x8,'alignItems':_0x3f48(0xd),'justifyContent':_0x2758ce['KEwOh'],'flexDirection':_0x2758ce[_0x3f48(0xa7)],'opacity':enabled?0x1:0.6};return hasStroke&&(_0x4ed194[_0x3f48(0x61)]=0x2,_0x4ed194[_0x3f48(0x62)]=darkMode?_0x2758ce[_0x3f48(0x63)]:_0x2758ce[_0x3f48(0x64)]),_0x4ed194;},_0x5d5b17=()=>{switch(buttonForm){case _0x2758ce[_0x3f48(0xa8)]:return _0x3f48(0xa9);default:return _0x3f48(0xaa);}};return React[_0x3f48(0x9d)](React['Fragment'],null,React[_0x3f48(0x9d)](TouchableOpacity,{'style':_0x280245(),'onPress':_0x13dc9b,'disabled':_0x2758ce[_0x3f48(0xab)](!enabled,_0x22cd27)||!_0x154efa,'activeOpacity':0.8},React[_0x3f48(0x9d)](Image,{'source':BRAND_IMAGES[_0x3f48(0xac)],'style':styles[_0x3f48(0xad)],'resizeMode':'contain'}),React[_0x3f48(0x9d)](Text,{'style':[styles['buttonText'],{'color':darkMode?_0x2758ce['Qyehx']:_0x2758ce[_0x3f48(0x63)]}]},_0x5d5b17())),React[_0x3f48(0x9d)](UniversalOnboarding,{'visible':_0x1030d6,'onClose':_0x3ed747,'AppName':_0x196170,'requestData':_0x2758ce['DoQcu'](_0x3637f2,{}),'returnLink':_0x4f3cd3,'onComplete':_0x3ed747,'embedd':![],'debug':debug,'testMode':testMode,'preferredPlatform':_0x31aa35}));});const styles=StyleSheet[_0x3f48(0xae)]({'button':{'flexDirection':_0x3f48(0x29),'alignItems':_0x3f48(0xd),'justifyContent':_0x3f48(0xd),'paddingVertical':0xc,'paddingHorizontal':0x10,'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'buttonContent':{'flexDirection':_0x3f48(0x29),'alignItems':_0x3f48(0xd),'justifyContent':'center'},'logo':{'width':0x18,'height':0x18,'marginRight':0x8},'buttonText':{'fontSize':0x10,'fontWeight':_0x3f48(0xaf),'textAlign':_0x3f48(0xd)},'errorContainer':{'flex':0x1,'justifyContent':_0x3f48(0xd),'alignItems':'center'},'errorButton':{'padding':0x10,'borderRadius':0x8},'errorButtonText':{'fontSize':0x10,'fontWeight':_0x3f48(0xaf),'color':_0x3f48(0xe)},'loadingContainer':{'flex':0x1,'justifyContent':_0x3f48(0xd),'alignItems':_0x3f48(0xd)},'loadingButton':{'padding':0x10,'borderRadius':0x8},'loadingButtonText':{'fontSize':0x10,'fontWeight':_0x3f48(0xaf),'color':'#fff'}});function _0x2d6e(){const _0x14329a=['API\x20key\x20is\x20required.\x20Please\x20provide\x20a\x20valid\x20API\x20key\x20from\x20your\x20Onairos\x20dashboard.','📊\x20Configuration:','Unknown\x20initialization\x20error','❌\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20failed:','BBpvT','YFXKM','🔧\x20API\x20Key\x20Troubleshooting\x20Guide','3.\x20Ensure\x20your\x20environment\x20setting\x20matches\x20your\x20API\x20key','5.\x20Visit\x20https://dashboard.onairos.uk\x20to\x20manage\x20your\x20API\x20keys','oLXIO','UxZfp','✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully','XYQPV','center','#fff','#000','✅\x20Resolving\x20with\x20existing\x20credentials','pFsqa','✅\x20Onairos\x20component:\x20SDK\x20already\x20initialized,\x20syncing\x20state','1.\x20Check\x20that\x20your\x20API\x20key\x20is\x20correct\x20and\x20not\x20expired','🔘\x20Button\x20pressed!\x20isInitialized:','showOverlay:','❌\x20Cannot\x20open\x20overlay:\x20SDK\x20not\x20initialized','BSNAS','qmuZY','xZYYf','NqoOl','NdGqB','⛔\x20Pre-check\x20failed,\x20aborting\x20overlay','✅\x20Pre-check\x20passed','❌\x20Pre-check\x20error:','🔍\x20Checking\x20for\x20existing\x20credentials...','🔑\x20Existing\x20credentials\x20found,\x20attempting\x20automatic\x20resolution...','existing_user_token','FHEfm','HtYiO','FmWip','NdTxB','SDJPQ','❌\x20Overlay\x20rejected:','SDK\x20Error','row','connect','normal','default','⚠️\x20SDK\x20Error','WDHvi','PVZnd','primary','production','HqXMR','DAXQY','rbJfg','XYkAz','BjarA','xentV','yujqT','HOaTG','mdAyY','bZHpV','log','IsfSB','vdaXa','HDtHH','QbMbe','message','UJqXG','error','opQHE','RUBrm','SWize','xUejC','group','GJkrf','ZZLxf','FAPsY','groupEnd','RdgQx','MmwFG','Benea','TxFZh','bpWXI','alert','Onairos\x20SDK\x20initialization\x20failed:\x0a\x0a','\x0a\x0aPlease\x20check\x20your\x20API\x20key\x20and\x20try\x20again.','jbCVX','twCon','apiKey','wTkdf','SDK\x20initialization\x20failed:\x20','fqlAk','INHux','mSNzs','length','pill','OiCwR','KEwOh','borderWidth','borderColor','bPvIB','Qyehx','hjxEg','LsquG','EUOtA','isInitializing:','atvTL','SDK\x20not\x20initialized.\x20Please\x20check\x20your\x20API\x20key.','wRzTx','SQnnw','HWsuv','TisPy','EzdaA','KLDrK','2.\x20Verify\x20you\x20have\x20the\x20right\x20permissions\x20for\x20your\x20use\x20case','BGpBD','cmtRI','🔍\x20Running\x20pre-check\x20validation...','GrHyS','mqkKM','GAVor','wsHiv','swusP','DQGFp','QCYZU','Pre-check\x20failed:\x20','YmIzB','MAnpl','OvnuY','PKKxH','🔽\x20Closing\x20Onairos\x20overlay,\x20result:','kyRCu','PsJmJ','apiUrl','token','userData','udvfH','DWQtj','BASE_URL','warn','⚠️\x20Failed\x20to\x20retrieve\x20existing\x20credentials:','boAyY','pSQtE','bhXSX','QIUHo','❌\x20Error\x20opening\x20overlay:','iniwt','Failed\x20to\x20open\x20overlay:\x20','mQziq','OGgUv','xnshU','UlNjn','BwqxF','tfuuj','HTIQd','AqkDN','HtYDV','QkeMC','createElement','errorContainer','errorButton','#FF6B6B','rrLeS','loadingContainer','loadingButton','WBggU','loadingButtonText','🔄\x20Initializing...','TByXz','qGEox','Connect\x20with\x20Onairos','Continue\x20with\x20Onairos','sZgVC','onairosLogoAlt','logo','create','600'];_0x2d6e=function(){return _0x14329a;};return _0x2d6e();}
1
+ import React,{forwardRef,useImperativeHandle,useState,useCallback,useEffect}from'react';import{StyleSheet,View,TouchableOpacity,Text,Image,Alert}from'react-native';function _0x4a90(){const _0x49c08a=['✅\x20Pre-check\x20passed','NSNJO','TmXQu','WqbTD','Yjrcm','✅\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20completed\x20successfully','FPUWR','Unknown\x20initialization\x20error','nEwiO','5.\x20Visit\x20https://dashboard.onairos.uk\x20to\x20manage\x20your\x20API\x20keys','2.\x20Verify\x20you\x20have\x20the\x20right\x20permissions\x20for\x20your\x20use\x20case','SDK\x20Error','#FF6B6B','⚠️\x20SDK\x20Error','DEtrY','⚠️\x20Failed\x20to\x20retrieve\x20existing\x20credentials:','#999','connect','🔧\x20API\x20Key\x20Troubleshooting\x20Guide','1|2|6|0|3|4|5','SDK\x20not\x20initialized.\x20Please\x20check\x20your\x20API\x20key.','❌\x20Cannot\x20open\x20overlay:\x20SDK\x20not\x20initialized','voCbk','🔘\x20Button\x20pressed!\x20isInitialized:','showOverlay:','jdLjH','dIWYz','uxKWc','dMwrO','ffdgh','GbiXE','AudPk','EdmPt','WoWKt','QCokk','🔍\x20Checking\x20for\x20existing\x20credentials...','🔑\x20Existing\x20credentials\x20found,\x20attempting\x20automatic\x20resolution...','jhHYO','dJMLU','existing_user_token','TwrZK','DUGJU','🔽\x20Closing\x20Onairos\x20overlay,\x20result:','moAWt','❌\x20Overlay\x20rejected:','ixzxi','DLxAS','center','row','#fff','#000','production','nIvln','normal','default','Hptgh','DRdbe','HPPkk','vALUJ','oZnrm','tjhMU','sjsCj','pZQTL','createElement','errorContainer','errorButton','MzvsP','Onairos\x20SDK\x20initialization\x20failed:\x0a\x0a','\x0a\x0aPlease\x20check\x20your\x20API\x20key\x20and\x20try\x20again.','errorButtonText','RENfU','✅\x20Onairos\x20component:\x20SDK\x20already\x20initialized,\x20syncing\x20state','MQtQO','tnVcZ','log','yjcZG','ifQms','JEtnG','jGOjm','XQXdf','iUekn','UZtXY','Aqgid','xzDmH','length','NxTRc','tzVrl','qWhgP','bFswc','EAxKc','message','pFbBC','error','SINDl','adYTl','WQxFj','IUVYc','qCTqs','TPcgT','groupEnd','WggcY','EAbku','group','TwFiO','1.\x20Check\x20that\x20your\x20API\x20key\x20is\x20correct\x20and\x20not\x20expired','VvLzi','Pre-check\x20failed:\x20','zMmKG','QkdKT','vujUp','apiKey','xTxpX','JIeTE','❌\x20Error\x20opening\x20overlay:','xSSJm','ZZGQl','⛔\x20Pre-check\x20failed,\x20aborting\x20overlay','PBOEW','isInitializing:','zWoVa','MAEnE','dQyXq','fVcyV','qjwBK','iHLCu','bbAhB','UfxMf','gudtm','EUbnK','KEdlF','warn','hypcA','jVnhG','skjfh','loadingContainer','KOxGF','loadingButtonText','IBYeI','alert','VxHFV','xfnsj','dHnXz','Connect\x20with\x20Onairos','xnUtZ','iuufE','🔍\x20Running\x20pre-check\x20validation...','BASE_URL','/user/data','✅\x20Resolving\x20with\x20existing\x20credentials','mWQoZ','XnaOT','AbvKP','SDK\x20initialization\x20failed:\x20','AXktt','jWXqx','LqIKN','SoqoD','❌\x20Pre-check\x20error:','QGiPR','bZzfh','oBPzZ','qQhbr','qmdXw','LubDE','tXkqg','CSMXL','FqgbY','pkEud','iWMmP','SKkhA','BcSvj','EMysq','3.\x20Ensure\x20your\x20environment\x20setting\x20matches\x20your\x20API\x20key','IVyyr','dAJeX','ccEiy','Failed\x20to\x20open\x20overlay:\x20','YONNV','fXsMA','qbutg','TKcMT','yrmBL','GgEKs','zJSoB','taGzP','JItuq','apiUrl','userData','amkvu','UefWn','Igguh','colSI','SXlkQ','FNwOE','nOnDN','loadingButton','oOIad','pill','juGWR','borderWidth','borderColor','bASGM','kWUCh','csUcv','nIqPG','VjYHh','onairosLogoAlt','logo','ANHvo','create','600'];_0x4a90=function(){return _0x49c08a;};return _0x4a90();}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';function _0x1e23(_0x4a90b3,_0x1e23b8){_0x4a90b3=_0x4a90b3-0x0;const _0x42fcc2=_0x4a90();let _0x3d6373=_0x42fcc2[_0x4a90b3];return _0x3d6373;}import{BRAND_IMAGES}from'../utils/assetRegistry';export const Onairos=forwardRef((_0x3fe5a9,_0x29a5d3)=>{const _0x1f079d={'RENfU':_0x1e23(0x0),'MQtQO':function(_0x495d63,_0x2965d7){return _0x495d63===_0x2965d7;},'tnVcZ':_0x1e23(0x1),'QNqqb':_0x1e23(0x2),'ifQms':function(_0x2f57af,_0x250e04){return _0x2f57af(_0x250e04);},'JEtnG':_0x1e23(0x3),'jGOjm':'smhxB','XQXdf':'🚀\x20Onairos\x20SDK:\x20Starting\x20API\x20key\x20initialization...','iUekn':function(_0xba410e,_0x17d9f6){return _0xba410e===_0x17d9f6;},'Aqgid':_0x1e23(0x4),'pkEud':_0x1e23(0x5),'xzDmH':'📊\x20Configuration:','NxTRc':function(_0x2e65c6,_0x3cabe4){return _0x2e65c6===_0x3cabe4;},'tzVrl':_0x1e23(0x6),'EAxKc':function(_0x410c53,_0x56d633){return _0x410c53 instanceof _0x56d633;},'pFbBC':_0x1e23(0x7),'SINDl':'❌\x20Onairos\x20SDK:\x20API\x20key\x20initialization\x20failed:','adYTl':function(_0x1d57f2,_0x3ad3c7){return _0x1d57f2!==_0x3ad3c7;},'Oxttr':_0x1e23(0x8),'IUVYc':function(_0x28d7aa,_0x3e2d79){return _0x28d7aa(_0x3e2d79);},'qCTqs':'4|6|2|3|5|0|1','TPcgT':_0x1e23(0x9),'WggcY':_0x1e23(0xa),'EAbku':'3.\x20Ensure\x20your\x20environment\x20setting\x20matches\x20your\x20API\x20key','TwFiO':'4.\x20Check\x20your\x20internet\x20connection','VxHFV':_0x1e23(0xb),'oZnrm':_0x1e23(0xc),'tjhMU':_0x1e23(0xd),'sjsCj':function(_0x44954b,_0x4f218d){return _0x44954b(_0x4f218d);},'pZQTL':_0x1e23(0xe),'zMmKG':function(_0xac16f1){return _0xac16f1();},'QkdKT':function(_0x3c52fe,_0x1e9117){return _0x3c52fe!==_0x1e9117;},'vujUp':function(_0x109617){return _0x109617();},'hypcA':_0x1e23(0xf),'KOxGF':_0x1e23(0x10),'IBYeI':'🔄\x20Initializing...','dHnXz':_0x1e23(0x11),'csUcv':'Continue\x20with\x20Onairos','mWQoZ':function(_0x222745,_0x4c60c1,_0x5ac3aa,_0x1fd0c8){return _0x222745(_0x4c60c1,_0x5ac3aa,_0x1fd0c8);},'IVyyr':_0x1e23(0x12),'AbvKP':'1.\x20Check\x20that\x20your\x20API\x20key\x20is\x20correct\x20and\x20not\x20expired','FqgbY':function(_0x1fbd66,_0xce73f7){return _0x1fbd66(_0xce73f7);},'EMysq':_0x1e23(0x13),'HPPkk':function(_0x4716fd,_0x234ef7){return _0x4716fd(_0x234ef7);},'xTxpX':function(_0x12289e,_0x39997f){return _0x12289e||_0x39997f;},'JIeTE':_0x1e23(0x14),'bbAhB':_0x1e23(0x15),'ZZGQl':_0x1e23(0x16),'PBOEW':_0x1e23(0x17),'Iffxq':_0x1e23(0x18),'zWoVa':function(_0x1055c8,_0x342a46){return _0x1055c8!==_0x342a46;},'dQyXq':_0x1e23(0x19),'fVcyV':function(_0x378b82,_0x5a7cbc){return _0x378b82!==_0x5a7cbc;},'qjwBK':_0x1e23(0x1a),'iHLCu':function(_0x4448c,_0x3f8a9c){return _0x4448c||_0x3f8a9c;},'UfxMf':function(_0x59f530,_0x28c877){return _0x59f530!==_0x28c877;},'KEdlF':function(_0x37b2c3,_0x2876e6){return _0x37b2c3(_0x2876e6);},'zskIS':function(_0x233919,_0x43eff1){return _0x233919===_0x43eff1;},'jVnhG':_0x1e23(0x1b),'skjfh':_0x1e23(0x1c),'gGPFm':function(_0x10f396,_0x25d1e6){return _0x10f396!==_0x25d1e6;},'xfnsj':_0x1e23(0x1d),'xnUtZ':function(_0x1411ca,_0x4af81a){return _0x1411ca===_0x4af81a;},'iuufE':_0x1e23(0x1e),'XnaOT':_0x1e23(0x1f),'VlBwo':_0x1e23(0x20),'AXktt':function(_0x3b608d,_0xad56c8){return _0x3b608d===_0xad56c8;},'jWXqx':_0x1e23(0x21),'LqIKN':_0x1e23(0x22),'rruQT':function(_0x277989,_0x240e04){return _0x277989(_0x240e04);},'QGiPR':_0x1e23(0x23),'meexj':function(_0x3a4f47){return _0x3a4f47();},'bZzfh':function(_0x8b9bc5,_0x28c085){return _0x8b9bc5===_0x28c085;},'oBPzZ':'StvYR','WyHuN':_0x1e23(0x24),'qmdXw':_0x1e23(0x25),'LubDE':function(_0x54ed08){return _0x54ed08();},'tXkqg':function(_0x57beb9,_0x20f976){return _0x57beb9&&_0x20f976;},'CSMXL':_0x1e23(0x26),'RdTUC':_0x1e23(0x27),'iWMmP':function(_0x103271,_0x1f622b){return _0x103271!==_0x1f622b;},'BcSvj':_0x1e23(0x28),'dAJeX':function(_0x41501b,_0x332c3e){return _0x41501b!==_0x332c3e;},'ccEiy':_0x1e23(0x29),'YONNV':'🎨\x20Opening\x20Onairos\x20overlay...','fXsMA':function(_0x40bbdb,_0xf545d2){return _0x40bbdb(_0xf545d2);},'qbutg':'❌\x20Error\x20opening\x20overlay:','TKcMT':function(_0x1bd665,_0x3192a3){return _0x1bd665(_0x3192a3);},'kPxSw':'❌\x20Pre-check\x20error:','GgEKs':function(_0x6be5a6,_0x2a9622){return _0x6be5a6!==_0x2a9622;},'zJSoB':'KetJW','taGzP':_0x1e23(0x2a),'JItuq':function(_0x5b5d8d,_0x554117){return _0x5b5d8d(_0x554117);},'nDghn':'🔽\x20showOverlay\x20set\x20to\x20false','UefWn':function(_0x21d0b6,_0x40613f){return _0x21d0b6!==_0x40613f;},'Igguh':_0x1e23(0x2b),'xpgrD':_0x1e23(0x2c),'SBZoe':function(_0x4bd3fc,_0x1e2e15){return _0x4bd3fc(_0x1e2e15);},'colSI':_0x1e23(0x2d),'EPGjI':_0x1e23(0x2e),'SXlkQ':function(_0x17a32d,_0x20200d){return _0x17a32d(_0x20200d);},'oOIad':function(_0x1e2d8a,_0x2414e2){return _0x1e2d8a===_0x2414e2;},'juGWR':_0x1e23(0x2f),'cqOFa':_0x1e23(0x30),'dDjqD':_0x1e23(0x31),'QJFjx':_0x1e23(0x32),'bASGM':function(_0x530410,_0xf022e){return _0x530410!==_0xf022e;},'ORhod':'BcPUA','Hptgh':_0x1e23(0x33),'DRdbe':function(_0x196fa2,_0x1df134){return _0x196fa2(_0x1df134);},'HmzHl':function(_0x34bc20,_0x5a62b5){return _0x34bc20(_0x5a62b5);},'vALUJ':function(_0x2f6bd3,_0x214d43,_0x27945a){return _0x2f6bd3(_0x214d43,_0x27945a);},'yrmBL':function(_0x125630,_0x13cf6e,_0x140c2b){return _0x125630(_0x13cf6e,_0x140c2b);},'amkvu':function(_0x5086f5,_0x1065fa,_0x36c80a){return _0x5086f5(_0x1065fa,_0x36c80a);},'FNwOE':function(_0x8abecc,_0x13c399){return _0x8abecc&&_0x13c399;},'SEtUJ':function(_0x193d0c,_0x37fc71){return _0x193d0c||_0x37fc71;},'nOnDN':_0x1e23(0x34),'yZbQB':function(_0x1636fd){return _0x1636fd();},'VjYHh':function(_0xc2f236,_0x2e4bc9){return _0xc2f236||_0x2e4bc9;},'ANHvo':'contain'},{returnLink:_0xf22616,prefillUrl:_0x4d8d83,AppName:_0x5d3564,buttonType:buttonType=_0x1e23(0x35),requestData:_0x3b7b00,buttonWidth:buttonWidth=0xc8,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x1e23(0x36),onRejection:_0xe03328,onResolved:_0x22bfb5,preCheck:_0x192ff2,color:color=COLORS['primary'],debug:debug=![],darkMode:darkMode=![],preferredPlatform:_0x9c7650,testMode:testMode=![],apiKey:_0x18d7f1,environment:environment=_0x1f079d[_0x1e23(0x37)],enableLogging:enableLogging=!![],timeout:timeout=0x7530,retryAttempts:retryAttempts=0x3}=_0x3fe5a9,[_0x25ec06,_0x1370d1]=_0x1f079d['fXsMA'](useState,![]),[_0x134d3c,_0x5be2a8]=_0x1f079d[_0x1e23(0x38)](useState,![]),[_0x1d08d0,_0x286df8]=_0x1f079d['HmzHl'](useState,null),[_0x16a93a,_0x4e2fe8]=_0x1f079d[_0x1e23(0x39)](useState,![]);_0x1f079d[_0x1e23(0x3a)](useEffect,()=>{const _0x27b6e2={'etGPZ':_0x1f079d['VxHFV'],'MzvsP':_0x1f079d[_0x1e23(0x3b)],'QyEzk':_0x1f079d[_0x1e23(0x3c)],'DVduS':function(_0x529ab8,_0x230bfe){return _0x1f079d[_0x1e23(0x3d)](_0x529ab8,_0x230bfe);}};if(_0x1f079d['adYTl'](_0x1f079d[_0x1e23(0x3e)],'DEtrY'))return React[_0x1e23(0x3f)](View,{'style':_0x43f698[_0x1e23(0x40)]},React[_0x1e23(0x3f)](TouchableOpacity,{'style':[_0xb134af[_0x1e23(0x41)],{'backgroundColor':_0x27b6e2[_0x1e23(0x42)]}],'onPress':()=>{Alert['alert'](_0x27b6e2['etGPZ'],_0x1e23(0x43)+_0x1152b0+_0x1e23(0x44),[{'text':'OK'}]);}},React['createElement'](Text,{'style':_0x2336eb[_0x1e23(0x45)]},_0x27b6e2['QyEzk'])));else{var _0x3f5aca;let _0x51fa33=!![];const _0x3eb303=async()=>{const _0x11f178={'yjcZG':_0x1f079d[_0x1e23(0x46)],'bFswc':_0x1e23(0x47),'VvLzi':function(_0x3bc6d3,_0x20380e){return _0x3bc6d3(_0x20380e);}};if(_0x1f079d[_0x1e23(0x48)](_0x1f079d[_0x1e23(0x49)],_0x1f079d['QNqqb']))_0xe2c9f2[_0x1e23(0x4a)](_0x11f178[_0x1e23(0x4b)]);else{if(_0x16a93a)return;_0x1f079d['ifQms'](_0x4e2fe8,!![]),_0x1f079d[_0x1e23(0x4c)](_0x286df8,null);try{if(_0x1f079d[_0x1e23(0x4d)]===_0x1f079d[_0x1e23(0x4e)])_0x27b6e2['DVduS'](_0x2ffe0f,!![]),_0x58bf5d(![]),_0xa56ee1&&_0x201994['log'](_0x1e23(0x47));else{console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x4f)]);if(!_0x18d7f1)throw new Error('API\x20key\x20is\x20required.\x20Please\x20provide\x20a\x20valid\x20API\x20key\x20from\x20your\x20Onairos\x20dashboard.');const _0x420bf3={'apiKey':_0x18d7f1,'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts};await _0x1f079d[_0x1e23(0x4c)](initializeApiKey,_0x420bf3),_0x51fa33&&(_0x1f079d['ifQms'](_0x5be2a8,!![]),_0x286df8(null),enableLogging&&(_0x1f079d[_0x1e23(0x50)](_0x1e23(0x51),_0x1f079d[_0x1e23(0x52)])?_0x27b6e2['DVduS'](_0x1a9b77,_0x3dd470):(console[_0x1e23(0x4a)](_0x1f079d['pkEud']),console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x53)],{'environment':environment,'enableLogging':enableLogging,'timeout':timeout,'retryAttempts':retryAttempts,'apiKeyLength':_0x18d7f1[_0x1e23(0x54)]}))));}}catch(_0x374ee8){if(_0x1f079d[_0x1e23(0x55)](_0x1f079d[_0x1e23(0x56)],_0x1e23(0x57)))_0x37dbf5[_0x1e23(0x4a)](_0x11f178[_0x1e23(0x58)]);else{const _0x789919=_0x1f079d[_0x1e23(0x59)](_0x374ee8,Error)?_0x374ee8[_0x1e23(0x5a)]:_0x1f079d[_0x1e23(0x5b)];console[_0x1e23(0x5c)](_0x1f079d[_0x1e23(0x5d)],_0x789919);if(_0x51fa33){if(_0x1f079d[_0x1e23(0x5e)](_0x1e23(0x5f),_0x1f079d['Oxttr'])){_0x1f079d[_0x1e23(0x4c)](_0x5be2a8,![]),_0x1f079d[_0x1e23(0x60)](_0x286df8,_0x789919);if(enableLogging){const _0x399364=_0x1f079d[_0x1e23(0x61)]['split']('|');let _0x3cc658=0x0;while(!![]){switch(_0x399364[_0x3cc658++]){case'0':console['log'](_0x1f079d[_0x1e23(0x62)]);continue;case'1':console[_0x1e23(0x63)]();continue;case'2':console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x64)]);continue;case'3':console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x65)]);continue;case'4':console[_0x1e23(0x66)]('🔧\x20API\x20Key\x20Troubleshooting\x20Guide');continue;case'5':console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x67)]);continue;case'6':console[_0x1e23(0x4a)](_0x1e23(0x68));continue;}break;}}_0xe03328&&_0xe03328('SDK\x20initialization\x20failed:\x20'+_0x789919);}else _0x11f178[_0x1e23(0x69)](_0x50e5b2,_0x1e23(0x6a)+_0x15bf6e[_0x1e23(0x5a)]);}}}finally{_0x51fa33&&_0x1f079d['ifQms'](_0x4e2fe8,![]);}}};if(_0x18d7f1&&(!_0x1f079d[_0x1e23(0x6b)](isApiKeyInitialized)||_0x1f079d[_0x1e23(0x6c)](_0x1f079d[_0x1e23(0x50)](_0x3f5aca=_0x1f079d[_0x1e23(0x6d)](getApiConfig),null)||_0x3f5aca===void 0x0?void 0x0:_0x3f5aca[_0x1e23(0x6e)],_0x18d7f1)))_0x3eb303();else isApiKeyInitialized()&&(_0x5be2a8(!![]),_0x1f079d[_0x1e23(0x4c)](_0x4e2fe8,![]),enableLogging&&console['log']('✅\x20Onairos\x20component:\x20SDK\x20already\x20initialized,\x20syncing\x20state'));return()=>{_0x51fa33=![];};}},[_0x18d7f1,environment,enableLogging,timeout,retryAttempts,_0xe03328]),_0x1f079d[_0x1e23(0x3a)](useImperativeHandle,_0x29a5d3,()=>({'openOverlay':_0x437394,'closeOverlay':_0x50f7fb,'isInitialized':()=>_0x134d3c,'getApiConfig':()=>getApiConfig()}));const _0x437394=useCallback(async()=>{const _0x10a502={'SoqoD':function(_0x50e64b,_0x3678c1){return _0x1f079d['HPPkk'](_0x50e64b,_0x3678c1);},'cAUjy':function(_0x4a8965,_0x48fd82){return _0x1f079d[_0x1e23(0x6f)](_0x4a8965,_0x48fd82);},'cqoik':_0x1f079d[_0x1e23(0x70)],'qQhbr':_0x1f079d['bbAhB'],'uDGpA':_0x1f079d['VxHFV'],'rTHKs':_0x1e23(0x71)};if(_0x1f079d['NxTRc'](_0x1e23(0x72),_0x1f079d[_0x1e23(0x73)])){_0x5ccca1&&_0x161fb2['log'](_0x1e23(0x74));return;}else{console['log'](_0x1f079d[_0x1e23(0x75)],_0x134d3c,_0x1e23(0x76),_0x16a93a,_0x1f079d['Iffxq'],_0x25ec06);try{if(_0x1f079d[_0x1e23(0x77)](_0x1e23(0x78),_0x1f079d[_0x1e23(0x79)])){if(!_0x134d3c){if(_0x1f079d[_0x1e23(0x7a)](_0x1f079d[_0x1e23(0x7b)],_0x1f079d[_0x1e23(0x7b)]))_0x3bfb2d[_0x1e23(0x4a)](_0x1e23(0x2c),_0x109b37);else{const _0x1513ee=_0x1f079d[_0x1e23(0x7c)](_0x1d08d0,_0x1e23(0x14));console['error'](_0x1f079d[_0x1e23(0x7d)]);if(_0xe03328)_0x1f079d[_0x1e23(0x7e)](_0x1e23(0x7f),_0x1e23(0x80))?_0x1f079d[_0x1e23(0x81)](_0xe03328,_0x1513ee):_0x379c74[_0x1e23(0x82)](_0x1f079d[_0x1e23(0x83)],_0x199c96);else{if(_0x1f079d['zskIS'](_0x1f079d[_0x1e23(0x84)],_0x1f079d[_0x1e23(0x85)]))return React['createElement'](View,{'style':_0x52b30c[_0x1e23(0x86)]},React[_0x1e23(0x3f)](TouchableOpacity,{'style':[_0x5294e1['loadingButton'],{'backgroundColor':_0x1f079d[_0x1e23(0x87)]}],'disabled':!![]},React[_0x1e23(0x3f)](Text,{'style':_0x27c34d[_0x1e23(0x88)]},_0x1f079d[_0x1e23(0x89)])));else Alert[_0x1e23(0x8a)](_0x1f079d[_0x1e23(0x8b)],_0x1513ee,[{'text':'OK'}]);}return;}}if(_0x192ff2){if(_0x1f079d['gGPFm'](_0x1f079d[_0x1e23(0x8c)],_0x1e23(0x1d)))switch(_0x130537){case _0x1f079d[_0x1e23(0x8d)]:return _0x1e23(0x8e);default:return _0x1f079d['csUcv'];}else{if(enableLogging){if(_0x1f079d[_0x1e23(0x8f)](_0x1f079d[_0x1e23(0x90)],_0x1f079d[_0x1e23(0x90)]))console[_0x1e23(0x4a)](_0x1e23(0x91));else{const _0x2e46af=_0x71369a[_0x1e23(0x92)]+_0x1e23(0x93),_0x5f11f8='existing_user_token';_0x14f18e&&_0x35e096[_0x1e23(0x4a)](_0x1e23(0x94));_0x1f079d[_0x1e23(0x95)](_0x2f1b3d,_0x2e46af,_0x5f11f8,_0x574c7b);return;}}try{const _0x8edb02=await _0x1f079d['zMmKG'](_0x192ff2);if(!_0x8edb02){enableLogging&&console[_0x1e23(0x4a)]('⛔\x20Pre-check\x20failed,\x20aborting\x20overlay');return;}enableLogging&&(_0x1f079d[_0x1e23(0x96)]===_0x1f079d['VlBwo']?(_0x1f079d[_0x1e23(0x4c)](_0x489ec3,![]),_0xb77902(_0x2fcb67),_0x4b67c9&&(_0x27df57[_0x1e23(0x66)](_0x1f079d['IVyyr']),_0x4c02c3[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x97)]),_0x4b5833[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x64)]),_0x403ec2[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x65)]),_0xafc515[_0x1e23(0x4a)](_0x1f079d['TwFiO']),_0x47dbbb[_0x1e23(0x4a)](_0x1f079d['TPcgT']),_0x308f49['groupEnd']()),_0x2c39d8&&_0x1f079d[_0x1e23(0x4c)](_0x15daf4,_0x1e23(0x98)+_0x405511)):console[_0x1e23(0x4a)](_0x1e23(0x0)));}catch(_0x40397a){if(_0x1f079d[_0x1e23(0x99)](_0x1f079d[_0x1e23(0x9a)],_0x1f079d[_0x1e23(0x9b)]))_0x10a502[_0x1e23(0x9c)](_0x2fada1,'SDK\x20initialization\x20failed:\x20'+_0xa837a9);else{console[_0x1e23(0x5c)](_0x1e23(0x9d),_0x40397a);_0xe03328&&_0x1f079d['rruQT'](_0xe03328,_0x1e23(0x6a)+_0x40397a[_0x1e23(0x5a)]);return;}}}}enableLogging&&console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x9e)]);const _0x2860ad=await _0x1f079d['meexj'](hasCredentials);if(_0x2860ad){if(enableLogging){if(_0x1f079d[_0x1e23(0x9f)](_0x1f079d[_0x1e23(0xa0)],_0x1f079d[_0x1e23(0xa0)]))console[_0x1e23(0x4a)](_0x1f079d['WyHuN']);else{const _0x143667=_0x10a502['cAUjy'](_0x3add87,_0x10a502['cqoik']);_0x19b0ba[_0x1e23(0x5c)](_0x10a502[_0x1e23(0xa1)]);_0x1fd4d8?_0x10a502[_0x1e23(0x9c)](_0x4d9ea,_0x143667):Alert[_0x1e23(0x8a)](_0x10a502['uDGpA'],_0x143667,[{'text':'OK'}]);return;}}try{if(_0x1f079d['adYTl'](_0x1f079d[_0x1e23(0xa2)],_0x1f079d['qmdXw']))Alert[_0x1e23(0x8a)](_0x1f079d[_0x1e23(0x8b)],_0x1e23(0x43)+_0x35331b+_0x1e23(0x44),[{'text':'OK'}]);else{const _0x4cf3c1=await _0x1f079d[_0x1e23(0xa3)](getCredentials);if(_0x1f079d[_0x1e23(0xa4)](_0x4cf3c1,_0x22bfb5)){if(_0x1f079d[_0x1e23(0x6c)]('dJMLU',_0x1f079d[_0x1e23(0xa5)]))_0x25d7d2(!![]),_0x1f079d[_0x1e23(0xa6)](_0x497785,null),_0x366824&&(_0x551c8f['log'](_0x1f079d[_0x1e23(0xa7)]),_0x53dfd0[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x53)],{'environment':_0x17c7f8,'enableLogging':_0x879a3b,'timeout':_0x450e49,'retryAttempts':_0x238464,'apiKeyLength':_0x435157[_0x1e23(0x54)]}));else{const _0x377c99=API_CONFIG[_0x1e23(0x92)]+'/user/data',_0x194db6=_0x1f079d['RdTUC'];if(enableLogging){if(_0x1f079d[_0x1e23(0xa8)](_0x1e23(0xa9),_0x1f079d[_0x1e23(0xaa)]))console[_0x1e23(0x4a)](_0x1e23(0x94));else{const _0x5f728b=_0x1f079d[_0x1e23(0xab)]['split']('|');let _0x5e48b2=0x0;while(!![]){switch(_0x5f728b[_0x5e48b2++]){case'0':_0x3d6d27[_0x1e23(0x4a)](_0x1e23(0xac));continue;case'1':_0x325d49[_0x1e23(0x66)](_0x1f079d[_0x1e23(0xad)]);continue;case'2':_0x3f9e6f[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x97)]);continue;case'3':_0xf377c[_0x1e23(0x4a)](_0x1f079d['TwFiO']);continue;case'4':_0x146609['log'](_0x1f079d['TPcgT']);continue;case'5':_0x447492[_0x1e23(0x63)]();continue;case'6':_0x148873[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x64)]);continue;}break;}}}_0x1f079d[_0x1e23(0x95)](_0x22bfb5,_0x377c99,_0x194db6,_0x4cf3c1);return;}}}}catch(_0x27fa40){console[_0x1e23(0x82)](_0x1f079d[_0x1e23(0x83)],_0x27fa40);}}enableLogging&&(_0x1f079d[_0x1e23(0xae)](_0x1f079d[_0x1e23(0xaf)],_0x1f079d[_0x1e23(0xaf)])?_0x9e03d1(_0x1e23(0xb0)+_0xb88afc[_0x1e23(0x5a)]):console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0xb1)])),_0x1f079d[_0x1e23(0xb2)](_0x1370d1,!![]);}else _0x287b6b[_0x1e23(0x5c)](_0x10a502['rTHKs'],_0x524074),_0x54b2cb&&_0x10a502[_0x1e23(0x9c)](_0xac966f,'Failed\x20to\x20open\x20overlay:\x20'+_0x66792e[_0x1e23(0x5a)]);}catch(_0x4155fe){console['error'](_0x1f079d[_0x1e23(0xb3)],_0x4155fe),_0xe03328&&_0x1f079d[_0x1e23(0xb4)](_0xe03328,_0x1e23(0xb0)+_0x4155fe['message']);}}},[_0x134d3c,_0x1d08d0,_0x192ff2,enableLogging,_0xe03328,_0x22bfb5]),_0x50f7fb=_0x1f079d[_0x1e23(0xb5)](useCallback,_0x424434=>{const _0x216d9d={'saQEH':_0x1f079d['kPxSw']};if(_0x1f079d[_0x1e23(0xb6)](_0x1f079d[_0x1e23(0xb7)],_0x1f079d[_0x1e23(0xb7)])){_0x4acc26[_0x1e23(0x5c)](_0x216d9d['saQEH'],_0x38f34f);_0x181628&&_0x59aebb(_0x1e23(0x6a)+_0x8fa5bb[_0x1e23(0x5a)]);return;}else console[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0xb8)],_0x424434),_0x1f079d[_0x1e23(0xb9)](_0x1370d1,![]),console[_0x1e23(0x4a)](_0x1f079d['nDghn']),_0x1f079d[_0x1e23(0xa4)](_0x424434,_0x22bfb5)&&_0x1f079d[_0x1e23(0x95)](_0x22bfb5,_0x424434[_0x1e23(0xba)],_0x424434['token'],_0x424434[_0x1e23(0xbb)]);},[enableLogging,_0x22bfb5]),_0x3ba484=_0x1f079d[_0x1e23(0xbc)](useCallback,_0xfb8306=>{enableLogging&&(_0x1f079d[_0x1e23(0xbd)](_0x1f079d[_0x1e23(0xbe)],_0x1f079d[_0x1e23(0xbe)])?_0x3b2bae[_0x1e23(0x4a)](_0x1f079d[_0x1e23(0x9e)]):console[_0x1e23(0x4a)](_0x1f079d['xpgrD'],_0xfb8306)),_0x1f079d['SBZoe'](_0x1370d1,![]),_0xe03328&&(_0x1f079d[_0x1e23(0xbf)]!==_0x1f079d['EPGjI']?_0x1f079d[_0x1e23(0xc0)](_0xe03328,_0xfb8306):_0x510662=![]);},[enableLogging,_0xe03328]);if(_0x1f079d[_0x1e23(0xc1)](_0x1d08d0,!_0x16a93a))return React[_0x1e23(0x3f)](View,{'style':styles[_0x1e23(0x40)]},React['createElement'](TouchableOpacity,{'style':[styles[_0x1e23(0x41)],{'backgroundColor':_0x1f079d[_0x1e23(0x3b)]}],'onPress':()=>{Alert[_0x1e23(0x8a)]('SDK\x20Error',_0x1e23(0x43)+_0x1d08d0+_0x1e23(0x44),[{'text':'OK'}]);}},React['createElement'](Text,{'style':styles[_0x1e23(0x45)]},_0x1f079d[_0x1e23(0x3c)])));if(_0x1f079d['SEtUJ'](_0x16a93a,!_0x134d3c)){if(_0x1f079d['GgEKs'](_0x1f079d[_0x1e23(0xc2)],_0x1f079d[_0x1e23(0xc2)]))_0x227946['log'](_0x1e23(0x74));else return React[_0x1e23(0x3f)](View,{'style':styles['loadingContainer']},React['createElement'](TouchableOpacity,{'style':[styles[_0x1e23(0xc3)],{'backgroundColor':_0x1f079d[_0x1e23(0x87)]}],'disabled':!![]},React['createElement'](Text,{'style':styles[_0x1e23(0x88)]},'🔄\x20Initializing...')));}const _0xef9ecd=()=>{const _0xbb0292={'width':buttonWidth,'height':buttonHeight,'backgroundColor':color,'borderRadius':_0x1f079d[_0x1e23(0xc4)](buttonType,_0x1e23(0xc5))?buttonHeight/0x2:0x8,'alignItems':_0x1f079d['juGWR'],'justifyContent':_0x1f079d[_0x1e23(0xc6)],'flexDirection':_0x1f079d['cqOFa'],'opacity':enabled?0x1:0.6};return hasStroke&&(_0xbb0292[_0x1e23(0xc7)]=0x2,_0xbb0292[_0x1e23(0xc8)]=darkMode?_0x1f079d['dDjqD']:_0x1f079d['QJFjx']),_0xbb0292;},_0x8e6bfe=()=>{const _0x31f12f={'nIqPG':function(_0x1f5823,_0x331549){return _0x1f079d[_0x1e23(0xb9)](_0x1f5823,_0x331549);}};if(_0x1f079d[_0x1e23(0xc9)](_0x1e23(0xca),_0x1f079d['ORhod']))switch(buttonForm){case _0x1e23(0x11):return'Connect\x20with\x20Onairos';default:return _0x1f079d[_0x1e23(0xcb)];}else _0x31f12f[_0x1e23(0xcc)](_0x317690,_0x196757);};return React[_0x1e23(0x3f)](React['Fragment'],null,React['createElement'](TouchableOpacity,{'style':_0x1f079d['yZbQB'](_0xef9ecd),'onPress':_0x437394,'disabled':_0x1f079d[_0x1e23(0xcd)](!enabled,_0x16a93a)||!_0x134d3c,'activeOpacity':0.8},React['createElement'](Image,{'source':BRAND_IMAGES[_0x1e23(0xce)],'style':styles[_0x1e23(0xcf)],'resizeMode':_0x1f079d[_0x1e23(0xd0)]}),React['createElement'](Text,{'style':[styles['buttonText'],{'color':darkMode?_0x1e23(0x32):_0x1e23(0x31)}]},_0x8e6bfe())),React[_0x1e23(0x3f)](UniversalOnboarding,{'visible':_0x25ec06,'onClose':_0x50f7fb,'AppName':_0x5d3564,'requestData':_0x3b7b00||{},'returnLink':_0xf22616,'onComplete':_0x50f7fb,'embedd':![],'debug':debug,'testMode':testMode,'preferredPlatform':_0x9c7650}));});const styles=StyleSheet[_0x1e23(0xd1)]({'button':{'flexDirection':_0x1e23(0x30),'alignItems':_0x1e23(0x2f),'justifyContent':_0x1e23(0x2f),'paddingVertical':0xc,'paddingHorizontal':0x10,'shadowColor':_0x1e23(0x32),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2},'buttonContent':{'flexDirection':_0x1e23(0x30),'alignItems':_0x1e23(0x2f),'justifyContent':_0x1e23(0x2f)},'logo':{'width':0x18,'height':0x18,'marginRight':0x8},'buttonText':{'fontSize':0x10,'fontWeight':_0x1e23(0xd2),'textAlign':_0x1e23(0x2f)},'errorContainer':{'flex':0x1,'justifyContent':'center','alignItems':'center'},'errorButton':{'padding':0x10,'borderRadius':0x8},'errorButtonText':{'fontSize':0x10,'fontWeight':'600','color':_0x1e23(0x31)},'loadingContainer':{'flex':0x1,'justifyContent':'center','alignItems':'center'},'loadingButton':{'padding':0x10,'borderRadius':0x8},'loadingButtonText':{'fontSize':0x10,'fontWeight':'600','color':_0x1e23(0x31)}});
@@ -1 +1 @@
1
- import React,{useState,useCallback,forwardRef,useImperativeHandle,useEffect}from'react';import{TouchableOpacity,Text,StyleSheet,View,ActivityIndicator,Dimensions,Image,Alert}from'react-native';function _0x3fbe(_0xe8ce40,_0x3fbe8b){_0xe8ce40=_0xe8ce40-0x0;const _0x53e7b1=_0xe8ce();let _0x4d5aac=_0x53e7b1[_0xe8ce40];return _0x4d5aac;}import _0x318324 from'react-native-linear-gradient';import{UniversalOnboarding}from'./UniversalOnboarding';import _0x3f23a9 from'./WelcomeScreen';import{isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{BRAND_IMAGES}from'../utils/assetRegistry';function _0xe8ce(){const _0x45db4f=['get','normal','#1BA9D4','connect','Connect\x20Onairos','signup','Sign\x20up\x20with\x20Onairos','WXUMh','[OnairosButton]\x20handlePress\x20called.','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','The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.','...','RGUJq','[OnairosButton]\x20Precheck\x20failed.\x20Setting\x20showOnboarding\x20to\x20false\x20(indirectly,\x20by\x20not\x20setting\x20to\x20true).','Precheck\x20validation\x20failed','[OnairosButton]\x20handlePress:\x20Setting\x20showOnboarding\x20to\x20true.','login','Sign\x20in\x20with\x20Onairos','iVVKz','GnVOx','zyNqW','Unknown\x20error','zBUQl','[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','User\x20closed\x20onboarding','pill','#f5e7c1','#C7A047','absolute','small','contain','Small','Basic\x20tier','Standard\x20tier','Large','PvETl','log','FCiAg','traUy','pUXKq','VhkRb','[OnairosButton]\x20LogEffect:\x20showOnboarding\x20state\x20changed\x20to:','yxmUP','rQFfV','Ryyow','aMAvj','TsXgS','resolve','uGqGv','ccksx','lRoUC','ZTfto','BXGcy','YjSNq','cDGdF','KSnSj','WshHQ','error','nglbl','qrWnX','zxcIj','alert','IkgMj','kSGds','[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:','ZQCBQ','substring','BLSEn','WDmEF','MtqnJ','vDmOG','OeRGb','bjiGD','iDuKS','[OnairosButton]\x20Error\x20in\x20handlePress:','WSpHK','message','mYTcD','bnloq','PtgAh','UDHTB','LPCQD','RdJfC','IvVQz','zCESz','MQhzB','KWCoA','hpOJb','[OnairosButton]\x20Rendering\x20JSX\x20with\x20props:','createElement','button','luiWZ','pillButton','strokedButton','disabledButton','mXdYm','IaWnD','BisWN','HrZQJ','BQXTP','buttonContent','logoContainer','buttonText','#FFFFFF','Lfhet','UOQcx','eKypl','Free\x20access','apeHr','mzNyP','QyNBa','uURUr','NVRzj','create','row','center','#000','hidden','bold','transparent'];_0xe8ce=function(){return _0x45db4f;};return _0xe8ce();}const {width}=Dimensions[_0x3fbe(0x0)]('window');export const OnairosButton=forwardRef(({AppName:_0x52021a,buttonType:buttonType=_0x3fbe(0x1),buttonWidth:buttonWidth=0xb4,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm='default',onResolved:_0x4cda9f,onRejection:_0x574650,preCheck:_0x5cb53b,color:color=_0x3fbe(0x2),swerv:swerv=![],darkMode:darkMode=![],returnLink:_0x370afa,preferredPlatform:_0x322d7c,autoFetch:autoFetch=![],inferenceData:_0x22b91b,textLayout:textLayout='right',textColor:textColor='black',proofMode:proofMode=![],webpageName:_0x4e70f1,debug:debug=![],testMode:testMode=![],requestData:_0x493fe7,onPress:_0x4d1cb5,primaryAuthOnly:primaryAuthOnly=![],useNewWelcomeFlow:useNewWelcomeFlow=![]},_0xa9bd83)=>{const _0x1a048e={'uXbTf':_0x3fbe(0x3),'traUy':_0x3fbe(0x4),'PtgAh':_0x3fbe(0x5),'pUXKq':_0x3fbe(0x6),'VhkRb':_0x3fbe(0x7),'KSnSj':function(_0x4a6827){return _0x4a6827();},'uGqGv':function(_0x36a77b,_0x16ad2a){return _0x36a77b(_0x16ad2a);},'ccksx':'orStl','kSGds':function(_0x4228c3){return _0x4228c3();},'BXGcy':_0x3fbe(0x8),'YjSNq':function(_0x37dccb,_0x12295d){return _0x37dccb||_0x12295d;},'cDGdF':function(_0x4e3962,_0x565512){return _0x4e3962(_0x565512);},'WshHQ':_0x3fbe(0x9),'nglbl':function(_0x412a0d,_0x15c063){return _0x412a0d!==_0x15c063;},'zxcIj':'GNMuE','IkgMj':'SDK\x20Not\x20Initialized','Htwtb':_0x3fbe(0xa),'ZQCBQ':function(_0x82469c,_0x265443){return _0x82469c+_0x265443;},'luiWZ':function(_0x3cb4dc,_0x4f1be5){return _0x3cb4dc===_0x4f1be5;},'BLSEn':_0x3fbe(0xb),'WDmEF':_0x3fbe(0xc),'MtqnJ':_0x3fbe(0xd),'Ymffh':function(_0x583188,_0x1f8992){return _0x583188===_0x1f8992;},'vDmOG':function(_0x450a4a,_0x54f3a3){return _0x450a4a===_0x54f3a3;},'iDuKS':function(_0x2cc601,_0x34aff2){return _0x2cc601(_0x34aff2);},'OeRGb':_0x3fbe(0xe),'bjiGD':_0x3fbe(0xf),'WSpHK':function(_0xd8d8,_0x489103){return _0xd8d8 instanceof _0x489103;},'mYTcD':_0x3fbe(0x10),'bnloq':_0x3fbe(0x11),'PvETl':function(_0x223a6d,_0x18bd52){return _0x223a6d(_0x18bd52);},'UDHTB':function(_0x522ecc,_0x5f58a1){return _0x522ecc!==_0x5f58a1;},'PwRQx':_0x3fbe(0x12),'LPCQD':'[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.','RdJfC':function(_0x42ca61,_0x206dae){return _0x42ca61(_0x206dae);},'IvVQz':_0x3fbe(0x13),'fABVC':_0x3fbe(0x14),'lTGKC':_0x3fbe(0x15),'zCESz':_0x3fbe(0x16),'MQhzB':_0x3fbe(0x17),'KWCoA':function(_0x438c0a,_0x5fddb3){return _0x438c0a(_0x5fddb3);},'hpOJb':_0x3fbe(0x18),'XTIGk':'[OnairosButton]\x20Initializing.\x20Initial\x20showOnboarding:','FCiAg':function(_0x160bc0,_0x17d998,_0x14ae8c){return _0x160bc0(_0x17d998,_0x14ae8c);},'TsXgS':function(_0xed062,_0x50cb80,_0x1368c6){return _0xed062(_0x50cb80,_0x1368c6);},'HrZQJ':_0x3fbe(0x19),'mXdYm':_0x3fbe(0x1a),'IaWnD':_0x3fbe(0x1b),'BisWN':'#8B6914','oDUSM':_0x3fbe(0x1c),'UMsEN':function(_0x397cbb,_0x390e48){return _0x397cbb===_0x390e48;},'BQXTP':_0x3fbe(0x1d),'pbqGj':_0x3fbe(0x1e),'Lfhet':function(_0x311ee4){return _0x311ee4();},'UOQcx':_0x3fbe(0x1f),'eKypl':_0x3fbe(0x20),'apeHr':'Medium','mzNyP':_0x3fbe(0x21),'QyNBa':'Premium\x20features','uURUr':_0x3fbe(0x22),'wkQjF':'Premium\x20tier','NVRzj':'onairosevents://auth/callback'},[_0x3eb3f0,_0x2313f]=_0x1a048e['KWCoA'](useState,![]),[_0xe52ca1,_0x3ef3a5]=useState(![]),[_0xb0a8cb,_0xc827bf]=_0x1a048e[_0x3fbe(0x23)](useState,![]);console[_0x3fbe(0x24)](_0x1a048e['XTIGk'],_0xb0a8cb),_0x1a048e[_0x3fbe(0x25)](useEffect,()=>{const _0x5494e6={'yxmUP':_0x1a048e['uXbTf'],'rQFfV':_0x1a048e[_0x3fbe(0x26)],'Ryyow':_0x1a048e['PtgAh'],'aMAvj':_0x1a048e[_0x3fbe(0x27)]};if(_0x1a048e[_0x3fbe(0x28)]===_0x1a048e['VhkRb'])console['log'](_0x3fbe(0x29),_0xb0a8cb);else switch(_0x238e3d){case _0x5494e6[_0x3fbe(0x2a)]:return _0x5494e6[_0x3fbe(0x2b)];case _0x3fbe(0x10):return _0x3fbe(0x11);case _0x5494e6[_0x3fbe(0x2c)]:return _0x5494e6[_0x3fbe(0x2d)];default:return _0x5494e6[_0x3fbe(0x2b)];}},[_0xb0a8cb]),_0x1a048e[_0x3fbe(0x2e)](useImperativeHandle,_0xa9bd83,()=>({'trigger':async()=>{return await _0x1a048e['KSnSj'](_0x4690e8),Promise[_0x3fbe(0x2f)]();},'reset':async()=>{const _0x4c8129={'lRoUC':function(_0x2108de,_0x1d8808){return _0x1a048e[_0x3fbe(0x30)](_0x2108de,_0x1d8808);},'ZTfto':_0x3fbe(0x18)};if(_0x1a048e[_0x3fbe(0x31)]===_0x1a048e['ccksx'])return Promise[_0x3fbe(0x2f)]();else _0x4c8129[_0x3fbe(0x32)](_0x48249c,_0x4c8129[_0x3fbe(0x33)]);}}));const _0x4690e8=async()=>{const _0xe75ad9={'TwLWp':function(_0x532b12,_0x3e6f08,_0x40bc83){return _0x532b12(_0x3e6f08,_0x40bc83);},'Pvgua':function(_0x4cc7ba){return _0x1a048e['kSGds'](_0x4cc7ba);}};console[_0x3fbe(0x24)](_0x1a048e[_0x3fbe(0x34)]);if(_0x1a048e[_0x3fbe(0x35)](!enabled,_0x3eb3f0))return;_0x1a048e[_0x3fbe(0x36)](_0x2313f,!![]);try{if(!_0x1a048e[_0x3fbe(0x37)](isApiKeyInitialized)){const _0x2556cc=_0x1a048e[_0x3fbe(0x38)];console[_0x3fbe(0x39)]('❌\x20[OnairosButton]\x20SDK\x20NOT\x20INITIALIZED:',_0x2556cc);_0x574650?_0x1a048e[_0x3fbe(0x3a)](_0x3fbe(0x3b),_0x1a048e[_0x3fbe(0x3c)])?_0x574650(_0x2556cc):(_0x7aa50e[_0x3fbe(0x24)]('[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.'),_0x1494be(![]),_0x48de43&&_0xe75ad9['TwLWp'](_0x456f87,_0x4c0f46,_0x3a3f72),_0x2f578b&&_0xe75ad9['Pvgua'](_0x4a10ba)):Alert[_0x3fbe(0x3d)](_0x1a048e[_0x3fbe(0x3e)],_0x1a048e['Htwtb'],[{'text':'OK'}]);_0x2313f(![]);return;}const _0x51ed3d=_0x1a048e[_0x3fbe(0x3f)](getApiConfig);if(debug){var _0x5572fe;console[_0x3fbe(0x24)](_0x3fbe(0x40),_0x1a048e[_0x3fbe(0x41)](_0x51ed3d===null||_0x1a048e['luiWZ'](_0x51ed3d,void 0x0)||(_0x5572fe=_0x51ed3d['apiKey'])===null||_0x5572fe===void 0x0?void 0x0:_0x5572fe[_0x3fbe(0x42)](0x0,0x8),_0x1a048e[_0x3fbe(0x43)]));}if(_0x5cb53b){if(_0x1a048e[_0x3fbe(0x3a)](_0x1a048e[_0x3fbe(0x44)],_0x1a048e['WDmEF']))return _0x1e31f9[_0x3fbe(0x2f)]();else{const _0x10be16=await _0x5cb53b();if(!_0x10be16){console['log'](_0x1a048e[_0x3fbe(0x45)]),_0x1a048e['Ymffh'](_0x574650,null)||_0x1a048e[_0x3fbe(0x46)](_0x574650,void 0x0)||_0x1a048e['iDuKS'](_0x574650,_0x1a048e[_0x3fbe(0x47)]),_0x1a048e[_0x3fbe(0x30)](_0x2313f,![]);return;}}}console[_0x3fbe(0x24)](_0x1a048e[_0x3fbe(0x48)]),_0xc827bf(!![]),_0x1a048e[_0x3fbe(0x49)](_0x2313f,![]);}catch(_0x16dd29){console[_0x3fbe(0x39)](_0x3fbe(0x4a),_0x16dd29),_0x574650===null||_0x574650===void 0x0||_0x574650(_0x1a048e[_0x3fbe(0x4b)](_0x16dd29,Error)?_0x16dd29[_0x3fbe(0x4c)]:_0x3fbe(0x15)),_0x1a048e[_0x3fbe(0x30)](_0x2313f,![]);}},_0x97c0ca=()=>{switch(buttonForm){case _0x1a048e['uXbTf']:return _0x1a048e[_0x3fbe(0x26)];case _0x1a048e[_0x3fbe(0x4d)]:return _0x1a048e[_0x3fbe(0x4e)];case _0x1a048e[_0x3fbe(0x4f)]:return _0x1a048e[_0x3fbe(0x27)];default:return _0x3fbe(0x4);}},_0x4105a8=_0x1a048e['FCiAg'](useCallback,(_0x1970aa,_0x50b972)=>{_0x1a048e[_0x3fbe(0x50)](_0x1a048e['PwRQx'],_0x1a048e['PwRQx'])?_0x1a048e['PvETl'](_0x2bfa59,_0x5ef45a):(console[_0x3fbe(0x24)](_0x1a048e[_0x3fbe(0x51)]),_0x1a048e[_0x3fbe(0x52)](_0xc827bf,![]),_0x4cda9f&&_0x4cda9f(_0x1970aa,_0x50b972),_0x4d1cb5&&(_0x1a048e[_0x3fbe(0x53)]===_0x1a048e['fABVC']?_0x2b04f4():_0x4d1cb5()));},[_0x4cda9f,_0x4d1cb5]),_0xe7ee29=_0x1a048e[_0x3fbe(0x25)](useCallback,()=>{_0x1a048e[_0x3fbe(0x54)]!=='qHUKy'?(console[_0x3fbe(0x24)](_0x1a048e[_0x3fbe(0x55)]),_0x1a048e[_0x3fbe(0x56)](_0xc827bf,![]),_0x574650&&_0x574650(_0x1a048e[_0x3fbe(0x57)])):(_0x5dfb54[_0x3fbe(0x39)](_0x3fbe(0x4a),_0x368bfd),_0x1a048e[_0x3fbe(0x46)](_0x35f161,null)||_0x1c538a===void 0x0||_0x1a048e[_0x3fbe(0x49)](_0x43c09c,_0x1a048e[_0x3fbe(0x4b)](_0x2e3cb7,_0x271e71)?_0x2d4aee['message']:_0x1a048e['lTGKC']),_0x1a048e['iDuKS'](_0x4a7dbb,![]));},[_0x574650]);return console[_0x3fbe(0x24)](_0x3fbe(0x58),{'AppName':_0x52021a,'buttonType':buttonType,'buttonWidth':buttonWidth,'buttonHeight':buttonHeight,'hasStroke':hasStroke,'enabled':enabled,'buttonForm':buttonForm,'onResolved':_0x4cda9f,'onRejection':_0x574650,'preCheck':_0x5cb53b,'color':color,'swerv':swerv,'darkMode':darkMode,'returnLink':_0x370afa,'preferredPlatform':_0x322d7c,'autoFetch':autoFetch,'inferenceData':_0x22b91b,'textLayout':textLayout,'textColor':textColor,'proofMode':proofMode,'webpageName':_0x4e70f1,'debug':debug,'testMode':testMode,'requestData':_0x493fe7,'onPress':_0x4d1cb5,'primaryAuthOnly':primaryAuthOnly,'useNewWelcomeFlow':useNewWelcomeFlow}),React[_0x3fbe(0x59)](React['Fragment'],null,React[_0x3fbe(0x59)](View,null,React[_0x3fbe(0x59)](TouchableOpacity,{'style':[styles[_0x3fbe(0x5a)],_0x1a048e[_0x3fbe(0x5b)](buttonType,_0x1a048e['HrZQJ'])&&styles[_0x3fbe(0x5c)],hasStroke&&styles[_0x3fbe(0x5d)],{'width':buttonWidth,'height':buttonHeight},swerv&&styles['swervButton'],!enabled&&styles[_0x3fbe(0x5e)]],'onPress':_0x4690e8,'disabled':_0x1a048e[_0x3fbe(0x35)](!enabled,_0x3eb3f0),'onPressIn':()=>_0x3ef3a5(!![]),'onPressOut':()=>_0x3ef3a5(![])},React['createElement'](_0x318324,{'colors':[_0x1a048e[_0x3fbe(0x5f)],_0x1a048e[_0x3fbe(0x60)],_0x1a048e[_0x3fbe(0x61)]],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':{'position':_0x1a048e['oDUSM'],'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'borderRadius':_0x1a048e['UMsEN'](buttonType,_0x1a048e[_0x3fbe(0x62)])?0x18:0x8}}),_0x3eb3f0?React[_0x3fbe(0x59)](ActivityIndicator,{'size':_0x1a048e[_0x3fbe(0x63)],'color':'#FFFFFF'}):React['createElement'](View,{'style':styles[_0x3fbe(0x64)]},React[_0x3fbe(0x59)](View,{'style':styles[_0x3fbe(0x65)]},React[_0x3fbe(0x59)](Image,{'source':BRAND_IMAGES['onairosLogoAlt'],'style':styles['logoImage'],'resizeMode':_0x1a048e['pbqGj']})),React[_0x3fbe(0x59)](Text,{'style':[styles[_0x3fbe(0x66)],{'color':_0x3fbe(0x67)}]},_0x1a048e[_0x3fbe(0x68)](_0x97c0ca))))),useNewWelcomeFlow?React[_0x3fbe(0x59)](_0x3f23a9,{'visible':_0xb0a8cb,'onClose':_0xe7ee29,'onComplete':_0x4105a8}):React['createElement'](UniversalOnboarding,{'visible':_0xb0a8cb,'onClose':_0xe7ee29,'AppName':_0x52021a,'requestData':_0x1a048e[_0x3fbe(0x35)](_0x493fe7,{'Small':{'type':_0x1a048e[_0x3fbe(0x69)],'descriptions':_0x1a048e[_0x3fbe(0x6a)],'reward':_0x3fbe(0x6b)},'Medium':{'type':_0x1a048e[_0x3fbe(0x6c)],'descriptions':_0x1a048e[_0x3fbe(0x6d)],'reward':_0x1a048e[_0x3fbe(0x6e)]},'Large':{'type':_0x1a048e[_0x3fbe(0x6f)],'descriptions':_0x1a048e['wkQjF'],'reward':'Full\x20personalization'}}),'returnLink':_0x1a048e[_0x3fbe(0x35)](_0x370afa,_0x1a048e[_0x3fbe(0x70)]),'onComplete':_0x4105a8,'debug':debug,'test':testMode,'preferredPlatform':_0x322d7c,'primaryAuthOnly':primaryAuthOnly}));});const styles=StyleSheet[_0x3fbe(0x71)]({'button':{'flexDirection':_0x3fbe(0x72),'alignItems':'center','justifyContent':_0x3fbe(0x73),'paddingVertical':0xc,'paddingHorizontal':0x10,'borderRadius':0x8,'shadowColor':_0x3fbe(0x74),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.2,'shadowRadius':0x4,'elevation':0x3,'overflow':_0x3fbe(0x75)},'buttonContent':{'flexDirection':_0x3fbe(0x72),'alignItems':_0x3fbe(0x73),'justifyContent':'center'},'logoContainer':{'width':0x18,'height':0x18,'alignItems':_0x3fbe(0x73),'justifyContent':_0x3fbe(0x73),'marginRight':0x4},'logoText':{'color':_0x3fbe(0x1b),'fontWeight':_0x3fbe(0x76),'fontSize':0xe},'logoImage':{'width':0x14,'height':0x14},'pillButton':{'borderRadius':0x18},'strokedButton':{'backgroundColor':_0x3fbe(0x77),'borderWidth':0x1},'swervButton':{'transform':[{'rotate':'-2deg'}]},'disabledButton':{'opacity':0.6},'buttonText':{'fontSize':0x10,'fontWeight':'600','textAlign':_0x3fbe(0x73)}});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';import _0x21f4cd from'react-native-linear-gradient';import{UniversalOnboarding}from'./UniversalOnboarding';import _0x324901 from'./WelcomeScreen';import{isApiKeyInitialized,getApiConfig}from'../services/apiKeyService';import{BRAND_IMAGES}from'../utils/assetRegistry';function _0x1839(_0x1856b3,_0x183912){_0x1856b3=_0x1856b3-0x0;const _0x31ec15=_0x1856();let _0x18ad9b=_0x31ec15[_0x1856b3];return _0x18ad9b;}const {width}=Dimensions[_0x1839(0x0)](_0x1839(0x1));export const OnairosButton=forwardRef(({AppName:_0x4d0e64,buttonType:buttonType=_0x1839(0x2),buttonWidth:buttonWidth=0xb4,buttonHeight:buttonHeight=0x30,hasStroke:hasStroke=![],enabled:enabled=!![],buttonForm:buttonForm=_0x1839(0x3),onResolved:_0x3e8ec1,onRejection:_0x23d2e0,preCheck:_0x35b166,color:color='#1BA9D4',swerv:swerv=![],darkMode:darkMode=![],returnLink:_0x2b3737,preferredPlatform:_0x458d0a,autoFetch:autoFetch=![],inferenceData:_0x57a783,textLayout:textLayout=_0x1839(0x4),textColor:textColor=_0x1839(0x5),proofMode:proofMode=![],webpageName:_0x11cf2e,debug:debug=![],testMode:testMode=![],requestData:_0x31867f,onPress:_0x947cf5,primaryAuthOnly:primaryAuthOnly=![],useNewWelcomeFlow:useNewWelcomeFlow=![]},_0x4c79bb)=>{const _0x1cbc7f={'GnszY':_0x1839(0x6),'SYOBB':function(_0x57b55c){return _0x57b55c();},'etUIA':_0x1839(0x7),'HlUpi':function(_0x210fd5,_0x2e99e0){return _0x210fd5===_0x2e99e0;},'PDWHw':function(_0x4563aa,_0x14e6a8){return _0x4563aa(_0x14e6a8);},'ojvuy':function(_0x32c620,_0x5eee41){return _0x32c620(_0x5eee41);},'GGuwG':_0x1839(0x8),'fnFMY':function(_0x12b214,_0x5229d6){return _0x12b214||_0x5229d6;},'TmHKB':'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','cJkLX':'❌\x20[OnairosButton]\x20SDK\x20NOT\x20INITIALIZED:','tMlCa':_0x1839(0x9),'nCswF':_0x1839(0xa),'derga':_0x1839(0xb),'FeOuR':function(_0x4c8880,_0x376a36){return _0x4c8880+_0x376a36;},'qoodG':function(_0x34074e,_0x580e30){return _0x34074e===_0x580e30;},'NrMLI':function(_0x27d98a,_0x164c19){return _0x27d98a===_0x164c19;},'XjiqF':'...','IMFhD':function(_0x1b1c8f,_0x2c75b4){return _0x1b1c8f===_0x2c75b4;},'Pulrm':function(_0x12d313,_0x52368d){return _0x12d313(_0x52368d);},'qcbbJ':_0x1839(0xc),'SwbGa':_0x1839(0xd),'sQvOe':function(_0x1b05cf,_0x3c484f){return _0x1b05cf===_0x3c484f;},'lUFQt':function(_0x275fd8,_0x231355){return _0x275fd8 instanceof _0x231355;},'BukGQ':'Unknown\x20error','yPsEU':function(_0x2c70bb,_0x33c1c2){return _0x2c70bb!==_0x33c1c2;},'YFpOW':_0x1839(0xe),'zOlSN':_0x1839(0xf),'SgOqN':_0x1839(0x10),'jpQWf':_0x1839(0x11),'tgmhs':_0x1839(0x12),'IJnid':_0x1839(0x13),'pfvQO':_0x1839(0x14),'HHJMl':'Sign\x20up\x20with\x20Onairos','mmBoc':function(_0x1b0d75,_0x162a15,_0x512551){return _0x1b0d75(_0x162a15,_0x512551);},'Jmxiv':function(_0x309f51,_0x1cf121){return _0x309f51(_0x1cf121);},'RDhke':_0x1839(0x15),'tpDce':function(_0x346de1,_0x43a59b,_0xf41436){return _0x346de1(_0x43a59b,_0xf41436);},'itsTe':'SDK\x20Not\x20Initialized','XivNr':function(_0x567bfb,_0x112684){return _0x567bfb===_0x112684;},'ewQNV':_0x1839(0x16),'VgoUb':_0x1839(0x17),'JxlFA':function(_0xb36b00,_0x5b89c7){return _0xb36b00(_0x5b89c7);},'Emuoo':function(_0x20b005,_0x1e4969){return _0x20b005(_0x1e4969);},'rMYAj':_0x1839(0x18),'kjpks':'[OnairosButton]\x20Initializing.\x20Initial\x20showOnboarding:','ZXgIS':function(_0x4f80bc,_0x473b89,_0x4fe58f){return _0x4f80bc(_0x473b89,_0x4fe58f);},'TxILC':function(_0x422ad5,_0x2a70fc,_0x3f2592){return _0x422ad5(_0x2a70fc,_0x3f2592);},'vbkjx':_0x1839(0x19),'CQRIN':function(_0x3d252a,_0x804ea5){return _0x3d252a||_0x804ea5;},'uuYxe':'#f5e7c1','FyYWl':'#C7A047','RhjpH':_0x1839(0x1a),'gbJPn':_0x1839(0x1b),'etUxP':_0x1839(0x1c),'gCKlS':_0x1839(0x1d),'bAwsH':'contain','POeFp':'Small','tutwL':_0x1839(0x1e),'blPyb':'Medium','HlRDT':'Premium\x20features','RiMIF':_0x1839(0x1f),'wVlnt':_0x1839(0x20),'sphpc':_0x1839(0x21),'GYSGc':function(_0x5639bd,_0x5c5ab9){return _0x5639bd||_0x5c5ab9;},'clbyQ':'onairosevents://auth/callback'},[_0x4fd3c9,_0x304c09]=_0x1cbc7f[_0x1839(0x22)](useState,![]),[_0x4fb3df,_0x4acd89]=_0x1cbc7f[_0x1839(0x23)](useState,![]),[_0x616862,_0x1675ec]=useState(![]);console[_0x1839(0x24)](_0x1cbc7f[_0x1839(0x25)],_0x616862),_0x1cbc7f['ZXgIS'](useEffect,()=>{console[_0x1839(0x24)](_0x1cbc7f[_0x1839(0x26)],_0x616862);},[_0x616862]),_0x1cbc7f[_0x1839(0x27)](useImperativeHandle,_0x4c79bb,()=>({'trigger':async()=>{return await _0x1cbc7f[_0x1839(0x28)](_0x478371),Promise['resolve']();},'reset':async()=>{return Promise[_0x1839(0x29)]();}}));const _0x478371=async()=>{const _0x326661={'XIqDs':_0x1cbc7f['etUIA'],'VFzLg':function(_0xbd826a,_0x199623){return _0x1cbc7f[_0x1839(0x2a)](_0xbd826a,_0x199623);},'sIpTo':function(_0xea8b1d,_0x2da8c6){return _0x1cbc7f[_0x1839(0x2b)](_0xea8b1d,_0x2da8c6);},'DAwJh':function(_0x492b6d,_0x2a66b9){return _0x1cbc7f[_0x1839(0x2c)](_0x492b6d,_0x2a66b9);}};console[_0x1839(0x24)](_0x1cbc7f['GGuwG']);if(_0x1cbc7f[_0x1839(0x2d)](!enabled,_0x4fd3c9))return;_0x1cbc7f['PDWHw'](_0x304c09,!![]);try{if(!_0x1cbc7f[_0x1839(0x28)](isApiKeyInitialized)){const _0xf44185=_0x1cbc7f[_0x1839(0x2e)];console[_0x1839(0x2f)](_0x1cbc7f[_0x1839(0x30)],_0xf44185);if(_0x23d2e0)_0x23d2e0(_0xf44185);else{if(_0x1cbc7f[_0x1839(0x2a)](_0x1839(0x9),_0x1cbc7f['tMlCa']))Alert[_0x1839(0x31)]('SDK\x20Not\x20Initialized',_0x1cbc7f[_0x1839(0x32)],[{'text':'OK'}]);else{_0x3b58ee['log'](_0x326661[_0x1839(0x33)]),_0x1b22f3===null||_0x326661[_0x1839(0x34)](_0xc971a3,void 0x0)||_0x326661[_0x1839(0x35)](_0x1d0447,'Precheck\x20validation\x20failed'),_0x326661[_0x1839(0x36)](_0x226a1b,![]);return;}}_0x1cbc7f[_0x1839(0x2b)](_0x304c09,![]);return;}const _0x58fc73=_0x1cbc7f['SYOBB'](getApiConfig);if(debug){var _0x55b0a3;console[_0x1839(0x24)](_0x1cbc7f[_0x1839(0x37)],_0x1cbc7f[_0x1839(0x38)](_0x1cbc7f[_0x1839(0x39)](_0x58fc73,null)||_0x1cbc7f['HlUpi'](_0x58fc73,void 0x0)||_0x1cbc7f[_0x1839(0x3a)](_0x55b0a3=_0x58fc73[_0x1839(0x3b)],null)||_0x55b0a3===void 0x0?void 0x0:_0x55b0a3[_0x1839(0x3c)](0x0,0x8),_0x1cbc7f[_0x1839(0x3d)]));}if(_0x35b166){const _0x3bf627=await _0x1cbc7f['SYOBB'](_0x35b166);if(!_0x3bf627){console[_0x1839(0x24)](_0x1cbc7f[_0x1839(0x3e)]),_0x1cbc7f['HlUpi'](_0x23d2e0,null)||_0x1cbc7f['IMFhD'](_0x23d2e0,void 0x0)||_0x1cbc7f[_0x1839(0x22)](_0x23d2e0,'Precheck\x20validation\x20failed'),_0x304c09(![]);return;}}console[_0x1839(0x24)](_0x1cbc7f['qcbbJ']),_0x1675ec(!![]),_0x304c09(![]);}catch(_0xb2796){console['error'](_0x1cbc7f[_0x1839(0x3f)],_0xb2796),_0x1cbc7f[_0x1839(0x39)](_0x23d2e0,null)||_0x1cbc7f[_0x1839(0x40)](_0x23d2e0,void 0x0)||_0x23d2e0(_0x1cbc7f[_0x1839(0x41)](_0xb2796,Error)?_0xb2796[_0x1839(0x42)]:_0x1cbc7f[_0x1839(0x43)]),_0x1cbc7f[_0x1839(0x2c)](_0x304c09,![]);}},_0x4c8c4b=()=>{if(_0x1cbc7f['yPsEU'](_0x1cbc7f[_0x1839(0x44)],_0x1cbc7f['zOlSN']))switch(buttonForm){case _0x1cbc7f['SgOqN']:return _0x1cbc7f[_0x1839(0x45)];case _0x1cbc7f['tgmhs']:return _0x1cbc7f[_0x1839(0x46)];case _0x1cbc7f['pfvQO']:return _0x1cbc7f[_0x1839(0x47)];default:return _0x1839(0x11);}else _0x5241e5(_0x1a2696);},_0x2ad661=_0x1cbc7f[_0x1839(0x48)](useCallback,(_0x8dea45,_0x4305fc)=>{console[_0x1839(0x24)](_0x1839(0x49)),_0x1cbc7f['Jmxiv'](_0x1675ec,![]),_0x3e8ec1&&(_0x1cbc7f['yPsEU'](_0x1cbc7f['RDhke'],_0x1cbc7f[_0x1839(0x4a)])?_0x1cbc7f['mmBoc'](_0xdf0cf0,_0x4e938c,_0x51fa1a):_0x1cbc7f[_0x1839(0x4b)](_0x3e8ec1,_0x8dea45,_0x4305fc)),_0x947cf5&&_0x1cbc7f[_0x1839(0x28)](_0x947cf5);},[_0x3e8ec1,_0x947cf5]),_0x4e7574=_0x1cbc7f[_0x1839(0x48)](useCallback,()=>{if(_0x1cbc7f[_0x1839(0x4c)](_0x1cbc7f['ewQNV'],_0x1cbc7f['VgoUb'])){const _0x2cc909=_0x1839(0x4d);_0x3fde89['error'](_0x1cbc7f[_0x1839(0x30)],_0x2cc909);_0x496227?_0x31f615(_0x2cc909):Alert[_0x1839(0x31)](_0x1cbc7f[_0x1839(0x4e)],_0x1cbc7f[_0x1839(0x32)],[{'text':'OK'}]);_0x5b7431(![]);return;}else console['log'](_0x1839(0x4f)),_0x1cbc7f[_0x1839(0x50)](_0x1675ec,![]),_0x23d2e0&&_0x1cbc7f[_0x1839(0x51)](_0x23d2e0,_0x1cbc7f['rMYAj']);},[_0x23d2e0]);return console[_0x1839(0x24)]('[OnairosButton]\x20Rendering\x20JSX\x20with\x20props:',{'AppName':_0x4d0e64,'buttonType':buttonType,'buttonWidth':buttonWidth,'buttonHeight':buttonHeight,'hasStroke':hasStroke,'enabled':enabled,'buttonForm':buttonForm,'onResolved':_0x3e8ec1,'onRejection':_0x23d2e0,'preCheck':_0x35b166,'color':color,'swerv':swerv,'darkMode':darkMode,'returnLink':_0x2b3737,'preferredPlatform':_0x458d0a,'autoFetch':autoFetch,'inferenceData':_0x57a783,'textLayout':textLayout,'textColor':textColor,'proofMode':proofMode,'webpageName':_0x11cf2e,'debug':debug,'testMode':testMode,'requestData':_0x31867f,'onPress':_0x947cf5,'primaryAuthOnly':primaryAuthOnly,'useNewWelcomeFlow':useNewWelcomeFlow}),React[_0x1839(0x52)](React['Fragment'],null,React[_0x1839(0x52)](View,null,React[_0x1839(0x52)](TouchableOpacity,{'style':[styles[_0x1839(0x53)],_0x1cbc7f[_0x1839(0x39)](buttonType,_0x1cbc7f[_0x1839(0x54)])&&styles['pillButton'],hasStroke&&styles['strokedButton'],{'width':buttonWidth,'height':buttonHeight},swerv&&styles['swervButton'],!enabled&&styles[_0x1839(0x55)]],'onPress':_0x478371,'disabled':_0x1cbc7f['CQRIN'](!enabled,_0x4fd3c9),'onPressIn':()=>_0x4acd89(!![]),'onPressOut':()=>_0x4acd89(![])},React[_0x1839(0x52)](_0x21f4cd,{'colors':[_0x1cbc7f['uuYxe'],_0x1cbc7f['FyYWl'],_0x1cbc7f[_0x1839(0x56)]],'start':{'x':0x0,'y':0x0},'end':{'x':0x1,'y':0x0},'style':{'position':_0x1cbc7f[_0x1839(0x57)],'left':0x0,'right':0x0,'top':0x0,'bottom':0x0,'borderRadius':_0x1cbc7f[_0x1839(0x39)](buttonType,_0x1cbc7f[_0x1839(0x54)])?0x18:0x8}}),_0x4fd3c9?React[_0x1839(0x52)](ActivityIndicator,{'size':_0x1cbc7f['etUxP'],'color':_0x1cbc7f[_0x1839(0x58)]}):React[_0x1839(0x52)](View,{'style':styles[_0x1839(0x59)]},React[_0x1839(0x52)](View,{'style':styles[_0x1839(0x5a)]},React[_0x1839(0x52)](Image,{'source':BRAND_IMAGES[_0x1839(0x5b)],'style':styles[_0x1839(0x5c)],'resizeMode':_0x1cbc7f[_0x1839(0x5d)]})),React[_0x1839(0x52)](Text,{'style':[styles[_0x1839(0x5e)],{'color':_0x1cbc7f[_0x1839(0x58)]}]},_0x4c8c4b())))),useNewWelcomeFlow?React[_0x1839(0x52)](_0x324901,{'visible':_0x616862,'onClose':_0x4e7574,'onComplete':_0x2ad661}):React[_0x1839(0x52)](UniversalOnboarding,{'visible':_0x616862,'onClose':_0x4e7574,'AppName':_0x4d0e64,'requestData':_0x1cbc7f[_0x1839(0x2d)](_0x31867f,{'Small':{'type':_0x1cbc7f[_0x1839(0x5f)],'descriptions':_0x1cbc7f[_0x1839(0x60)],'reward':_0x1839(0x61)},'Medium':{'type':_0x1cbc7f[_0x1839(0x62)],'descriptions':_0x1839(0x63),'reward':_0x1cbc7f['HlRDT']},'Large':{'type':_0x1cbc7f[_0x1839(0x64)],'descriptions':_0x1cbc7f[_0x1839(0x65)],'reward':_0x1cbc7f[_0x1839(0x66)]}}),'returnLink':_0x1cbc7f['GYSGc'](_0x2b3737,_0x1cbc7f[_0x1839(0x67)]),'onComplete':_0x2ad661,'debug':debug,'test':testMode,'preferredPlatform':_0x458d0a,'primaryAuthOnly':primaryAuthOnly}));});const styles=StyleSheet[_0x1839(0x68)]({'button':{'flexDirection':_0x1839(0x69),'alignItems':_0x1839(0x6a),'justifyContent':_0x1839(0x6a),'paddingVertical':0xc,'paddingHorizontal':0x10,'borderRadius':0x8,'shadowColor':_0x1839(0x6b),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.2,'shadowRadius':0x4,'elevation':0x3,'overflow':_0x1839(0x6c)},'buttonContent':{'flexDirection':_0x1839(0x69),'alignItems':_0x1839(0x6a),'justifyContent':'center'},'logoContainer':{'width':0x18,'height':0x18,'alignItems':_0x1839(0x6a),'justifyContent':_0x1839(0x6a),'marginRight':0x4},'logoText':{'color':'#C7A047','fontWeight':_0x1839(0x6d),'fontSize':0xe},'logoImage':{'width':0x14,'height':0x14},'pillButton':{'borderRadius':0x18},'strokedButton':{'backgroundColor':_0x1839(0x6e),'borderWidth':0x1},'swervButton':{'transform':[{'rotate':_0x1839(0x6f)}]},'disabledButton':{'opacity':0.6},'buttonText':{'fontSize':0x10,'fontWeight':_0x1839(0x70),'textAlign':_0x1839(0x6a)}});function _0x1856(){const _0x24f422=['get','window','normal','default','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.','VTyqU','The\x20Onairos\x20SDK\x20requires\x20initialization\x20with\x20a\x20valid\x20API\x20key.\x0a\x0aDevelopers:\x20Please\x20call\x20initializeApiKey()\x20before\x20using\x20OnairosButton.','[OnairosButton]\x20SDK\x20initialized\x20with\x20API\x20key:','[OnairosButton]\x20handlePress:\x20Setting\x20showOnboarding\x20to\x20true.','[OnairosButton]\x20Error\x20in\x20handlePress:','ZTMTh','dEtSb','connect','Connect\x20Onairos','login','Sign\x20in\x20with\x20Onairos','signup','QbESY','qNLrY','Zpjtw','User\x20closed\x20onboarding','pill','#8B6914','absolute','small','#FFFFFF','Basic\x20tier','Large','Premium\x20tier','Full\x20personalization','Pulrm','Jmxiv','log','kjpks','GnszY','mmBoc','SYOBB','resolve','HlUpi','PDWHw','ojvuy','fnFMY','TmHKB','error','cJkLX','alert','nCswF','XIqDs','VFzLg','sIpTo','DAwJh','derga','FeOuR','qoodG','NrMLI','apiKey','substring','XjiqF','etUIA','SwbGa','sQvOe','lUFQt','message','BukGQ','YFpOW','jpQWf','IJnid','HHJMl','TxILC','[OnairosButton]\x20handleOnboardingComplete:\x20Setting\x20showOnboarding\x20to\x20false.','RDhke','tpDce','XivNr','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','itsTe','[OnairosButton]\x20handleOnboardingClose:\x20Setting\x20showOnboarding\x20to\x20false.','JxlFA','Emuoo','createElement','button','vbkjx','disabledButton','RhjpH','gbJPn','gCKlS','buttonContent','logoContainer','onairosLogoAlt','logoImage','bAwsH','buttonText','POeFp','tutwL','Free\x20access','blPyb','Standard\x20tier','RiMIF','wVlnt','sphpc','clbyQ','create','row','center','#000','hidden','bold','transparent','-2deg','600'];_0x1856=function(){return _0x24f422;};return _0x1856();}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';import _0x514103 from'./WelcomeScreen';import{triggerHaptic,HapticType}from'../utils/haptics';import{BRAND_IMAGES}from'../utils/assetRegistry';export const OnairosSignInButton=({AppName:_0x357cf7,buttonWidth:buttonWidth=0x118,buttonHeight:buttonHeight=0x2c,color:color=_0x251d(0x0),textColor:textColor=_0x251d(0x1),onResolved:_0x1adc52,onRejection:_0x178a64,autoFocusEmailInput:autoFocusEmailInput=!![]})=>{const _0x2ac175={'IaCOI':function(_0x169e22,_0x2fbe0f){return _0x169e22||_0x2fbe0f;},'fLtEf':_0x251d(0x2),'PSPHm':_0x251d(0x3),'YZnhT':function(_0x1fadf4,_0x300be7){return _0x1fadf4===_0x300be7;},'FavlV':_0x251d(0x4),'niFzF':function(_0x1b851f,_0x13ff87){return _0x1b851f||_0x13ff87;},'HSapx':function(_0x229138,_0x201eb5,_0x347f7b){return _0x229138(_0x201eb5,_0x347f7b);},'zISgi':'🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:','zrkTn':_0x251d(0x5),'JJZgH':_0x251d(0x6),'faOVY':function(_0x53d512,_0x2d8529){return _0x53d512(_0x2d8529);},'qxElm':function(_0xd56c,_0x18306d){return _0xd56c!==_0x18306d;},'SktTj':_0x251d(0x7),'PGwfk':_0x251d(0x8),'hXQmy':function(_0x4e7bab,_0x31f3ca){return _0x4e7bab||_0x31f3ca;},'hjbkC':function(_0x5f590a,_0x2994b2){return _0x5f590a(_0x2994b2);},'hXkKF':_0x251d(0x9),'IqhEr':'🔘\x20showWelcomeScreen\x20state\x20set\x20to\x20true','KfwyB':function(_0x4e0b1a,_0xcea0df){return _0x4e0b1a(_0xcea0df);},'IDtnN':_0x251d(0xa)},[_0x937656,_0xa92767]=useState(![]),[_0x5105eb,_0x11c813]=_0x2ac175['KfwyB'](useState,''),_0x20ba9e=_0x2ac175[_0x251d(0xb)](useCallback,(_0x2a0bc0,_0x332491)=>{console['log'](_0x2ac175[_0x251d(0xc)],{'token':_0x2a0bc0,'email':_0x332491});const _0x48e5f5=_0x2a0bc0&&_0x2a0bc0[_0x251d(0xd)]('.')&&_0x2ac175[_0x251d(0xe)](_0x2a0bc0[_0x251d(0xf)]('.')[_0x251d(0x10)],0x3);console[_0x251d(0x11)](_0x2ac175[_0x251d(0x12)],_0x48e5f5),_0x2ac175['faOVY'](_0xa92767,![]);if(_0x1adc52){if(_0x48e5f5)console[_0x251d(0x11)]('🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in'),AsyncStorage['getItem'](_0x2ac175[_0x251d(0x13)])[_0x251d(0x14)](_0x275463=>{const _0x2b303b={'TddPe':function(_0x5d9885,_0x1263b5){return _0x2ac175['IaCOI'](_0x5d9885,_0x1263b5);},'vvpGI':_0x2ac175['fLtEf'],'idzVk':_0x2ac175[_0x251d(0x13)]};if(_0x2ac175['YZnhT']('YFBKH',_0x2ac175[_0x251d(0x15)])){const _0xe75dfd=_0x2ac175[_0x251d(0x16)](_0x332491,_0x275463)||_0x5105eb;console[_0x251d(0x11)](_0x251d(0x17),_0xe75dfd),_0x2ac175['HSapx'](_0x1adc52,_0x2a0bc0,_0xe75dfd);}else{const _0x420db3={'YAlHF':function(_0x2c42e1,_0x3f8aa5){return _0x2b303b[_0x251d(0x18)](_0x2c42e1,_0x3f8aa5);}};_0x2b4aa0[_0x251d(0x11)](_0x2b303b[_0x251d(0x19)]),AsyncStorage['getItem'](_0x2b303b[_0x251d(0x1a)])[_0x251d(0x14)](_0x3ee4b7=>{const _0x5e8c55=_0x420db3[_0x251d(0x1b)](_0x3f6226,_0x3ee4b7)||_0x54c177;_0x1e9e12[_0x251d(0x11)]('🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:',_0x5e8c55),_0x49f843(_0x487935,_0x5e8c55);});}});else{if(_0x2ac175['qxElm'](_0x251d(0x1c),_0x2ac175['SktTj'])){console['log'](_0x2ac175[_0x251d(0x1d)]);const _0x3f4ca3=_0x2ac175['hXQmy'](_0x332491,_0x5105eb);console[_0x251d(0x11)](_0x251d(0x1e),_0x3f4ca3),_0x1adc52(_0x2a0bc0,_0x3f4ca3);}else{const _0x5d4ccf=_0x8aac5e||_0x2e4a2f||_0x2716d8;_0x4ec520[_0x251d(0x11)](_0x2ac175['zISgi'],_0x5d4ccf),_0x2ac175[_0x251d(0xb)](_0x13cf71,_0x58f9eb,_0x5d4ccf);}}}},[_0x1adc52,_0x5105eb]),_0x5223a4=_0x2ac175[_0x251d(0xb)](useCallback,()=>{_0x2ac175[_0x251d(0x1f)](_0xa92767,![]),_0x178a64&&_0x2ac175[_0x251d(0x20)](_0x178a64,_0x251d(0x21));},[_0x178a64]);return React['createElement'](View,{'style':styles['container']},React[_0x251d(0x22)](TouchableOpacity,{'style':[styles[_0x251d(0x23)],{'width':buttonWidth,'height':buttonHeight,'backgroundColor':color}],'onPress':()=>{console[_0x251d(0x11)](_0x2ac175[_0x251d(0x24)]),triggerHaptic(HapticType[_0x251d(0x25)]),_0x2ac175[_0x251d(0x20)](_0xa92767,!![]),console[_0x251d(0x11)](_0x2ac175[_0x251d(0x26)]);},'activeOpacity':0.85},React['createElement'](View,{'style':styles[_0x251d(0x27)]},React['createElement'](Image,{'source':BRAND_IMAGES[_0x251d(0x28)],'style':styles['logo'],'resizeMode':'contain','accessibilityLabel':_0x2ac175[_0x251d(0x29)]}),React[_0x251d(0x22)](Text,{'style':[styles[_0x251d(0x2a)],{'color':textColor}]},_0x251d(0x2b)))),React[_0x251d(0x22)](_0x514103,{'visible':_0x937656,'onClose':_0x5223a4,'onComplete':_0x20ba9e}));};const styles=StyleSheet['create']({'button':{'borderRadius':0x18,'justifyContent':'center','alignItems':_0x251d(0x2c),'shadowColor':'#000','shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2,'marginVertical':0x8},'contentRow':{'flexDirection':_0x251d(0x2d),'alignItems':'center','justifyContent':_0x251d(0x2c)},'logo':{'width':0x1a,'height':0x1a,'marginRight':0xa},'buttonText':{'fontSize':0x10,'fontWeight':_0x251d(0x2e),'textAlign':_0x251d(0x2c)},'container':{}});function _0x251d(_0x1e5eda,_0x251d36){_0x1e5eda=_0x1e5eda-0x0;const _0x26ee78=_0x1e5e();let _0x41abea=_0x26ee78[_0x1e5eda];return _0x41abea;}function _0x1e5e(){const _0x2e120b=['#D4A536','#000','🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','user_email','YFBKH','🔍\x20OnairosSignInButton:\x20handleWelcomeComplete\x20called\x20with:','🔍\x20OnairosSignInButton:\x20Is\x20JWT\x20token?','elyJf','🔑\x20Received\x20placeholder\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔘\x20OnairosSignInButton\x20pressed,\x20showing\x20WelcomeScreen','Onairos\x20logo','HSapx','zrkTn','includes','YZnhT','split','length','log','JJZgH','PSPHm','then','FavlV','niFzF','🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:','TddPe','vvpGI','idzVk','YAlHF','QNIbA','PGwfk','🔑\x20OnairosSignInButton:\x20Returning\x20token\x20with\x20email:','faOVY','hjbkC','User\x20closed\x20welcome\x20screen','createElement','button','hXkKF','BUTTON_PRESS','IqhEr','contentRow','onairosLogoAlt','IDtnN','buttonText','Sign\x20in\x20with\x20Onairos','center','row','600'];_0x1e5e=function(){return _0x2e120b;};return _0x1e5e();}
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 _0xc762(_0x24ba69,_0xc762b0){_0x24ba69=_0x24ba69-0x0;const _0x23b021=_0x24ba();let _0x21289e=_0x23b021[_0x24ba69];return _0x21289e;}import _0x566bb9 from'./WelcomeScreen';import{triggerHaptic,HapticType}from'../utils/haptics';import{BRAND_IMAGES}from'../utils/assetRegistry';export const OnairosSignInButton=({AppName:_0x1655d9,buttonWidth:buttonWidth=0x118,buttonHeight:buttonHeight=0x2c,color:color=_0xc762(0x0),textColor:textColor='#000',onResolved:_0x2a4450,onRejection:_0x48da78,autoFocusEmailInput:autoFocusEmailInput=!![]})=>{const _0x463963={'cFVnY':_0xc762(0x1),'IXwBg':_0xc762(0x2),'jvRli':function(_0x12a4ad,_0x31b71a){return _0x12a4ad(_0x31b71a);},'DNoRq':_0xc762(0x3),'Glbhx':function(_0x4847ca,_0x2524b4,_0x319df7){return _0x4847ca(_0x2524b4,_0x319df7);},'FfUSp':_0xc762(0x4),'kIpWK':_0xc762(0x5),'LvvJU':function(_0x4f3a7b,_0x5bde34){return _0x4f3a7b(_0x5bde34);},'UlmEW':'hYdvb','mPLuY':_0xc762(0x6),'rBxDr':function(_0x3200a4,_0x31400e){return _0x3200a4===_0x31400e;},'pWkrA':'OqLjl','sNPNP':_0xc762(0x7),'rhqvB':_0xc762(0x8),'lklBb':_0xc762(0x9),'ftMjv':function(_0x28ed62,_0x362c96){return _0x28ed62||_0x362c96;},'TOpfI':_0xc762(0xa),'NYxVB':function(_0x3733a7,_0x103ac9){return _0x3733a7(_0x103ac9);},'sJLOw':function(_0x546204,_0x49675b){return _0x546204!==_0x49675b;},'iJxrd':_0xc762(0xb),'NpYNp':_0xc762(0xc),'JqEaM':_0xc762(0xd),'LYGia':_0xc762(0xe),'xDKWV':function(_0x4a0fbb,_0x17c5ba){return _0x4a0fbb(_0x17c5ba);},'vvMuz':'contain','uONNl':_0xc762(0xf)},[_0x1f5f75,_0xc995eb]=_0x463963['xDKWV'](useState,![]),[_0x34e0a1,_0x3ed923]=useState(''),_0x3df120=useCallback((_0x423a85,_0x54a3d8)=>{const _0x3f3b7a={'dTUuT':function(_0x59b4cd,_0x4b992c){return _0x463963[_0xc762(0x10)](_0x59b4cd,_0x4b992c);},'Cjdky':_0x463963[_0xc762(0x11)],'hpSjI':function(_0x353e73,_0x1eb33d){return _0x353e73||_0x1eb33d;},'zxVYu':_0xc762(0x1),'ZWuJw':function(_0x5933c9,_0x263ba7,_0x2ea1bb){return _0x463963['Glbhx'](_0x5933c9,_0x263ba7,_0x2ea1bb);}};console[_0xc762(0x12)](_0x463963['FfUSp'],{'token':_0x423a85,'email':_0x54a3d8});const _0x564795=_0x423a85&&_0x423a85[_0xc762(0x13)]('.')&&_0x423a85[_0xc762(0x14)]('.')[_0xc762(0x15)]===0x3;console['log'](_0x463963['kIpWK'],_0x564795),_0x463963['LvvJU'](_0xc995eb,![]);if(_0x2a4450){if(_0x463963[_0xc762(0x16)]===_0x463963[_0xc762(0x17)])_0x3f3b7a['dTUuT'](_0x4b787b,_0x3f3b7a[_0xc762(0x18)]);else{if(_0x564795){if(_0x463963[_0xc762(0x19)](_0x463963[_0xc762(0x1a)],_0x463963['sNPNP'])){const _0x8fdce1={'vtZjG':function(_0x22d08d,_0x1dafc2){return _0x22d08d||_0x1dafc2;},'gTbow':_0x463963[_0xc762(0x1b)],'oxpNh':function(_0x55506a,_0x2a0530,_0x8b8a01){return _0x55506a(_0x2a0530,_0x8b8a01);}};_0xc59a33[_0xc762(0x12)](_0xc762(0x8)),AsyncStorage[_0xc762(0x1c)](_0x463963[_0xc762(0x1d)])[_0xc762(0x1e)](_0x380e53=>{const _0x531881=_0x8fdce1[_0xc762(0x1f)](_0x371807,_0x380e53)||_0x42d59d;_0xa2a26e[_0xc762(0x12)](_0x8fdce1[_0xc762(0x20)],_0x531881),_0x8fdce1[_0xc762(0x21)](_0x52029f,_0x81e088,_0x531881);});}else console['log'](_0x463963[_0xc762(0x22)]),AsyncStorage[_0xc762(0x1c)](_0x463963['IXwBg'])[_0xc762(0x1e)](_0x230acb=>{const _0x25aac4=_0x3f3b7a[_0xc762(0x23)](_0x54a3d8,_0x230acb)||_0x34e0a1;console[_0xc762(0x12)](_0x3f3b7a[_0xc762(0x24)],_0x25aac4),_0x3f3b7a[_0xc762(0x25)](_0x2a4450,_0x423a85,_0x25aac4);});}else{console[_0xc762(0x12)](_0x463963['lklBb']);const _0x5ecc44=_0x463963[_0xc762(0x26)](_0x54a3d8,_0x34e0a1);console[_0xc762(0x12)](_0x463963['TOpfI'],_0x5ecc44),_0x463963[_0xc762(0x27)](_0x2a4450,_0x423a85,_0x5ecc44);}}}},[_0x2a4450,_0x34e0a1]),_0x541887=_0x463963[_0xc762(0x27)](useCallback,()=>{const _0x15c849={'IbCKB':_0x463963[_0xc762(0x1b)],'lcbAo':function(_0x28c714,_0x39da1c,_0x18b2e6){return _0x28c714(_0x39da1c,_0x18b2e6);}};_0x463963['NYxVB'](_0xc995eb,![]);if(_0x48da78){if(_0x463963[_0xc762(0x28)](_0x463963[_0xc762(0x29)],_0xc762(0xb))){if(_0x2bfc10)_0x10b4f3[_0xc762(0x12)](_0x463963[_0xc762(0x22)]),AsyncStorage['getItem'](_0x463963[_0xc762(0x1d)])[_0xc762(0x1e)](_0x343321=>{const _0x265ffc=_0x5a2c42||_0x343321||_0x3cd723;_0x34de5a['log'](_0x15c849[_0xc762(0x2a)],_0x265ffc),_0x15c849[_0xc762(0x2b)](_0x222e54,_0x46d05d,_0x265ffc);});else{_0x5e8e05['log'](_0x463963[_0xc762(0x2c)]);const _0x41e0ac=_0x463963[_0xc762(0x26)](_0x17a22c,_0xf57ddd);_0x213ccc['log'](_0x463963[_0xc762(0x2d)],_0x41e0ac),_0x463963['Glbhx'](_0x4c1b67,_0x2902a8,_0x41e0ac);}}else _0x48da78(_0xc762(0x3));}},[_0x48da78]);return React[_0xc762(0x2e)](View,{'style':styles[_0xc762(0x2f)]},React[_0xc762(0x2e)](TouchableOpacity,{'style':[styles[_0xc762(0x30)],{'width':buttonWidth,'height':buttonHeight,'backgroundColor':color}],'onPress':()=>{const _0x231779={'lNgaU':_0x463963[_0xc762(0x2c)],'jUVhd':function(_0x955fc3,_0x23cb83){return _0x463963[_0xc762(0x26)](_0x955fc3,_0x23cb83);},'mWody':_0x463963[_0xc762(0x2d)],'jYCBU':function(_0x40a1ce,_0x3dbbb1,_0xb086e6){return _0x40a1ce(_0x3dbbb1,_0xb086e6);}};if(_0x463963[_0xc762(0x28)](_0x463963['NpYNp'],_0xc762(0x31)))console['log'](_0x463963[_0xc762(0x32)]),triggerHaptic(HapticType[_0xc762(0x33)]),_0x463963['jvRli'](_0xc995eb,!![]),console[_0xc762(0x12)](_0x463963[_0xc762(0x34)]);else{_0x186d49[_0xc762(0x12)](_0x231779['lNgaU']);const _0x5b76da=_0x231779[_0xc762(0x35)](_0x51eab0,_0x6c8fe2);_0x22b377[_0xc762(0x12)](_0x231779[_0xc762(0x36)],_0x5b76da),_0x231779['jYCBU'](_0x17bcc7,_0x1887a0,_0x5b76da);}},'activeOpacity':0.85},React['createElement'](View,{'style':styles['contentRow']},React[_0xc762(0x2e)](Image,{'source':BRAND_IMAGES[_0xc762(0x37)],'style':styles[_0xc762(0x38)],'resizeMode':_0x463963[_0xc762(0x39)],'accessibilityLabel':_0x463963[_0xc762(0x3a)]}),React[_0xc762(0x2e)](Text,{'style':[styles['buttonText'],{'color':textColor}]},_0xc762(0x3b)))),React['createElement'](_0x566bb9,{'visible':_0x1f5f75,'onClose':_0x541887,'onComplete':_0x3df120}));};const styles=StyleSheet['create']({'button':{'borderRadius':0x18,'justifyContent':_0xc762(0x3c),'alignItems':_0xc762(0x3c),'shadowColor':_0xc762(0x3d),'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.1,'shadowRadius':0x4,'elevation':0x2,'marginVertical':0x8},'contentRow':{'flexDirection':'row','alignItems':'center','justifyContent':_0xc762(0x3c)},'logo':{'width':0x1a,'height':0x1a,'marginRight':0xa},'buttonText':{'fontSize':0x10,'fontWeight':_0xc762(0x3e),'textAlign':_0xc762(0x3c)},'container':{}});function _0x24ba(){const _0x599dfe=['#D4A536','🔑\x20OnairosSignInButton:\x20Returning\x20JWT\x20token\x20with\x20email:','user_email','User\x20closed\x20welcome\x20screen','🔍\x20OnairosSignInButton:\x20handleWelcomeComplete\x20called\x20with:','🔍\x20OnairosSignInButton:\x20Is\x20JWT\x20token?','CoWTr','MZIfg','🔑\x20Received\x20JWT\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20Received\x20placeholder\x20token\x20from\x20WelcomeScreen,\x20completing\x20sign-in','🔑\x20OnairosSignInButton:\x20Returning\x20token\x20with\x20email:','ngWDi','MnyEh','🔘\x20OnairosSignInButton\x20pressed,\x20showing\x20WelcomeScreen','🔘\x20showWelcomeScreen\x20state\x20set\x20to\x20true','Onairos\x20logo','jvRli','DNoRq','log','includes','split','length','UlmEW','mPLuY','Cjdky','rBxDr','pWkrA','cFVnY','getItem','IXwBg','then','vtZjG','gTbow','oxpNh','rhqvB','hpSjI','zxVYu','ZWuJw','ftMjv','Glbhx','sJLOw','iJxrd','IbCKB','lcbAo','lklBb','TOpfI','createElement','container','button','JoLSZ','JqEaM','BUTTON_PRESS','LYGia','jUVhd','mWody','onairosLogoAlt','logo','vvMuz','uONNl','Sign\x20in\x20with\x20Onairos','center','#000','600'];_0x24ba=function(){return _0x599dfe;};return _0x24ba();}