@onairos/react-native 3.7.1 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/lib/commonjs/api/index.js +1 -1
  2. package/lib/commonjs/assets/icons/spotify.png +0 -0
  3. package/lib/commonjs/assets/images/spotify.png +0 -0
  4. package/lib/commonjs/components/BodyText.js +1 -1
  5. package/lib/commonjs/components/BrandMark.js +1 -1
  6. package/lib/commonjs/components/CodeInput.js +1 -1
  7. package/lib/commonjs/components/EmailInput.js +1 -1
  8. package/lib/commonjs/components/GoogleButton.js +1 -1
  9. package/lib/commonjs/components/HeadingGroup.js +1 -1
  10. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  11. package/lib/commonjs/components/ModalHeader.js +1 -1
  12. package/lib/commonjs/components/ModalSheet.js +1 -1
  13. package/lib/commonjs/components/Onairos.js +1 -1
  14. package/lib/commonjs/components/OnairosButton.js +1 -1
  15. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  16. package/lib/commonjs/components/Overlay.js +1 -1
  17. package/lib/commonjs/components/PersonaImage.js +1 -1
  18. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  19. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  20. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  21. package/lib/commonjs/components/PinInput.js +1 -1
  22. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  23. package/lib/commonjs/components/PlatformList.js +1 -1
  24. package/lib/commonjs/components/PlatformToggle.js +1 -1
  25. package/lib/commonjs/components/PrimaryButton.js +1 -1
  26. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  27. package/lib/commonjs/components/SignInStep.js +1 -1
  28. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  29. package/lib/commonjs/components/VerificationStep.js +1 -1
  30. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  31. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  32. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  33. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  34. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  35. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  36. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  37. package/lib/commonjs/components/icons/EnochE.js +1 -1
  38. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  39. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  40. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  41. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  42. package/lib/commonjs/components/icons/index.js +1 -1
  43. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  44. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  45. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  46. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  47. package/lib/commonjs/config/api.js +1 -1
  48. package/lib/commonjs/constants/index.js +1 -1
  49. package/lib/commonjs/context/AuthContext.js +1 -1
  50. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  51. package/lib/commonjs/hooks/useConnections.js +1 -1
  52. package/lib/commonjs/hooks/useCredentials.js +1 -1
  53. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  54. package/lib/commonjs/index.js +1 -1
  55. package/lib/commonjs/services/apiClient.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/netflixDataExtractor.js +1 -1
  75. package/lib/commonjs/services/netflixDataService.js +1 -1
  76. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  77. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  78. package/lib/commonjs/services/platformAuthService.js +1 -1
  79. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  80. package/lib/commonjs/services/sephoraDataService.js +1 -1
  81. package/lib/commonjs/services/spotifyDataExtractor.js +1 -1
  82. package/lib/commonjs/services/spotifyDataService.js +1 -1
  83. package/lib/commonjs/services/storageService.js +1 -1
  84. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  85. package/lib/commonjs/services/telegramDataService.js +1 -1
  86. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  87. package/lib/commonjs/services/userConnectionsService.js +1 -1
  88. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  89. package/lib/commonjs/theme/index.js +1 -1
  90. package/lib/commonjs/types/index.js +1 -1
  91. package/lib/commonjs/types.js +1 -1
  92. package/lib/commonjs/utils/Portal.js +1 -1
  93. package/lib/commonjs/utils/api.js +1 -1
  94. package/lib/commonjs/utils/assetRegistry.js +1 -1
  95. package/lib/commonjs/utils/auth.js +1 -1
  96. package/lib/commonjs/utils/connectorTests.js +1 -1
  97. package/lib/commonjs/utils/crypto.js +1 -1
  98. package/lib/commonjs/utils/debugHelper.js +1 -1
  99. package/lib/commonjs/utils/encryption.js +1 -1
  100. package/lib/commonjs/utils/eventUtils.js +1 -1
  101. package/lib/commonjs/utils/haptics.js +1 -1
  102. package/lib/commonjs/utils/imagePreloader.js +1 -1
  103. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  104. package/lib/commonjs/utils/onairosApi.js +1 -1
  105. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  106. package/lib/commonjs/utils/retryHelper.js +1 -1
  107. package/lib/commonjs/utils/secureStorage.js +1 -1
  108. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  109. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  110. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  111. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  112. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  113. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  114. package/lib/commonjs/utils/webviewScripts/netflix.js +1 -1
  115. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  116. package/lib/commonjs/utils/webviewScripts/spotify.js +1 -1
  117. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  118. package/lib/module/api/index.js +1 -1
  119. package/lib/module/assets/icons/spotify.png +0 -0
  120. package/lib/module/assets/images/spotify.png +0 -0
  121. package/lib/module/components/BodyText.js +1 -1
  122. package/lib/module/components/BrandMark.js +1 -1
  123. package/lib/module/components/CodeInput.js +1 -1
  124. package/lib/module/components/EmailInput.js +1 -1
  125. package/lib/module/components/GoogleButton.js +1 -1
  126. package/lib/module/components/HeadingGroup.js +1 -1
  127. package/lib/module/components/LLMDataInputModal.js +1 -1
  128. package/lib/module/components/ModalHeader.js +1 -1
  129. package/lib/module/components/ModalSheet.js +1 -1
  130. package/lib/module/components/Onairos.js +1 -1
  131. package/lib/module/components/OnairosButton.js +1 -1
  132. package/lib/module/components/OnairosSignInButton.js +1 -1
  133. package/lib/module/components/Overlay.js +1 -1
  134. package/lib/module/components/PersonaImage.js +1 -1
  135. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  136. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  137. package/lib/module/components/PinCreationScreen.js +1 -1
  138. package/lib/module/components/PinInput.js +1 -1
  139. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  140. package/lib/module/components/PlatformList.js +1 -1
  141. package/lib/module/components/PlatformToggle.js +1 -1
  142. package/lib/module/components/PrimaryButton.js +1 -1
  143. package/lib/module/components/SignInMatchAnimation.js +1 -1
  144. package/lib/module/components/SignInStep.js +1 -1
  145. package/lib/module/components/UniversalOnboarding.js +1 -1
  146. package/lib/module/components/VerificationStep.js +1 -1
  147. package/lib/module/components/WelcomeScreen.js +1 -1
  148. package/lib/module/components/icons/Basicproficon.js +1 -1
  149. package/lib/module/components/icons/Basicprofile.js +1 -1
  150. package/lib/module/components/icons/Checkbox.js +1 -1
  151. package/lib/module/components/icons/Checkmark.js +1 -1
  152. package/lib/module/components/icons/Contentanalysis.js +1 -1
  153. package/lib/module/components/icons/Contenticon.js +1 -1
  154. package/lib/module/components/icons/EnochE.js +1 -1
  155. package/lib/module/components/icons/Personalityicon.js +1 -1
  156. package/lib/module/components/icons/Personalityprofile.js +1 -1
  157. package/lib/module/components/icons/Personalitytraits.js +1 -1
  158. package/lib/module/components/icons/Userpreferences.js +1 -1
  159. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  160. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  161. package/lib/module/components/onboarding/PinInput.js +1 -1
  162. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  163. package/lib/module/config/api.js +1 -1
  164. package/lib/module/constants/index.js +1 -1
  165. package/lib/module/context/AuthContext.js +1 -1
  166. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  167. package/lib/module/hooks/useConnections.js +1 -1
  168. package/lib/module/hooks/useCredentials.js +1 -1
  169. package/lib/module/hooks/useUserConnections.js +1 -1
  170. package/lib/module/index.js +1 -1
  171. package/lib/module/services/apiClient.js +1 -1
  172. package/lib/module/services/biometricPinService.js +1 -1
  173. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  174. package/lib/module/services/chatGPTConversationService.js +1 -1
  175. package/lib/module/services/claudeConversationExtractor.js +1 -1
  176. package/lib/module/services/claudeConversationService.js +1 -1
  177. package/lib/module/services/connectedAccountsService.js +1 -1
  178. package/lib/module/services/googleAuthService.js +1 -1
  179. package/lib/module/services/hingeDataExtractor.js +1 -1
  180. package/lib/module/services/hingeDataService.js +1 -1
  181. package/lib/module/services/imageCompressionService.js +1 -1
  182. package/lib/module/services/instagramDataExtractor.js +1 -1
  183. package/lib/module/services/instagramDataService.js +1 -1
  184. package/lib/module/services/jwtStorageService.js +1 -1
  185. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  186. package/lib/module/services/linkedinProfileService.js +1 -1
  187. package/lib/module/services/linkedinScrapingService.js +1 -1
  188. package/lib/module/services/llmDataStorage.js +1 -1
  189. package/lib/module/services/mobileTrainingService.js +1 -1
  190. package/lib/module/services/netflixDataExtractor.js +1 -1
  191. package/lib/module/services/netflixDataService.js +1 -1
  192. package/lib/module/services/pinEncryptionService.js +1 -1
  193. package/lib/module/services/pinStorageUtils.js +1 -1
  194. package/lib/module/services/platformAuthService.js +1 -1
  195. package/lib/module/services/sephoraDataExtractor.js +1 -1
  196. package/lib/module/services/sephoraDataService.js +1 -1
  197. package/lib/module/services/spotifyDataExtractor.js +1 -1
  198. package/lib/module/services/spotifyDataService.js +1 -1
  199. package/lib/module/services/storageService.js +1 -1
  200. package/lib/module/services/telegramDataExtractor.js +1 -1
  201. package/lib/module/services/telegramDataService.js +1 -1
  202. package/lib/module/services/trainingApiHelpers.js +1 -1
  203. package/lib/module/services/userConnectionsService.js +1 -1
  204. package/lib/module/services/youtubeMigrationService.js +1 -1
  205. package/lib/module/theme/index.js +1 -1
  206. package/lib/module/types.js +1 -1
  207. package/lib/module/utils/Portal.js +1 -1
  208. package/lib/module/utils/api.js +1 -1
  209. package/lib/module/utils/assetRegistry.js +1 -1
  210. package/lib/module/utils/auth.js +1 -1
  211. package/lib/module/utils/connectorTests.js +1 -1
  212. package/lib/module/utils/crypto.js +1 -1
  213. package/lib/module/utils/debugHelper.js +1 -1
  214. package/lib/module/utils/encryption.js +1 -1
  215. package/lib/module/utils/eventUtils.js +1 -1
  216. package/lib/module/utils/haptics.js +1 -1
  217. package/lib/module/utils/networkDiagnostics.js +1 -1
  218. package/lib/module/utils/onairosApi.js +1 -1
  219. package/lib/module/utils/programmaticFlow.js +1 -1
  220. package/lib/module/utils/retryHelper.js +1 -1
  221. package/lib/module/utils/secureStorage.js +1 -1
  222. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  223. package/lib/module/utils/webviewScripts/claude.js +1 -1
  224. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  225. package/lib/module/utils/webviewScripts/index.js +1 -1
  226. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  227. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  228. package/lib/module/utils/webviewScripts/netflix.js +1 -1
  229. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  230. package/lib/module/utils/webviewScripts/spotify.js +1 -1
  231. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  232. package/package.json +1 -1
@@ -1 +1 @@
1
- import{getAuthToken,getUserProfile,ensureAuthentication}from'./authService';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const getUserIdWithFallbacks=async()=>{const _0x7ba18d={'snwAi':_0x26ce(0x0),'SugGA':_0x26ce(0x1),'AKRgl':_0x26ce(0x2),'HwagW':_0x26ce(0x3),'cVPkj':'✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20AsyncStorage:','tamvZ':_0x26ce(0x4),'tKDkP':'uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.','nHzTu':_0x26ce(0x5),'yQNHc':_0x26ce(0x6),'xTics':function(_0xcefec1){return _0xcefec1();},'kfifG':function(_0x9ed0d3,_0x4a8bb7){return _0x9ed0d3!==_0x4a8bb7;},'Zlezx':_0x26ce(0x7),'aFpbV':_0x26ce(0x8),'yPvgE':function(_0x3c7ca0,_0x2af4aa){return _0x3c7ca0===_0x2af4aa;},'ACmHw':function(_0x11b372,_0x196d8e){return _0x11b372!==_0x196d8e;},'mxUcu':'epssz','NCuls':'⚠️\x20[USER\x20ID]\x20getUserProfile\x20failed:','Etxlz':_0x26ce(0x9),'aJwJX':_0x26ce(0xa),'SLBLJ':function(_0x4ea52b,_0x4e427f){return _0x4ea52b>_0x4e427f;},'ytMYR':function(_0xa62606,_0x3d9a21){return _0xa62606===_0x3d9a21;},'KffXz':_0x26ce(0xb),'bzRFP':'cvZJA','uooCF':'⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:','CJVuH':_0x26ce(0xc),'qtevu':_0x26ce(0xd),'rTpSm':_0x26ce(0xe),'PKrKY':function(_0x48f322,_0x4afd3a){return _0x48f322>_0x4afd3a;},'zitSQ':function(_0x52a30b,_0x24d20c){return _0x52a30b===_0x24d20c;},'umcIZ':'gncCp','KDRbM':'✅\x20[USER\x20ID]\x20Got\x20email\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','qtwXW':'DivsC','KOkDF':_0x26ce(0xf),'lNRwY':_0x26ce(0x10),'oCYJe':_0x26ce(0x11),'CAMwN':'LdEeu','LpPVl':_0x26ce(0x12)};try{console[_0x26ce(0x13)](_0x26ce(0x14));try{if(_0x7ba18d[_0x26ce(0x15)]!==_0x7ba18d[_0x26ce(0x15)])return _0x370f2f[_0x26ce(0x16)](_0x26ce(0x17)),[];else{const _0x47aa01=await _0x7ba18d['xTics'](getUserProfile);if(_0x7ba18d[_0x26ce(0x18)](_0x47aa01,null)&&_0x47aa01!==void 0x0&&_0x47aa01['id']&&_0x7ba18d['kfifG'](_0x47aa01['id'],_0x7ba18d[_0x26ce(0x19)]))return console[_0x26ce(0x13)](_0x7ba18d[_0x26ce(0x1a)],_0x47aa01['id']),_0x47aa01['id'];else console[_0x26ce(0x16)](_0x26ce(0x1b),_0x7ba18d[_0x26ce(0x1c)](_0x47aa01,null)||_0x47aa01===void 0x0?void 0x0:_0x47aa01['id']);}}catch(_0x153bdf){_0x7ba18d['ACmHw'](_0x26ce(0x1d),_0x7ba18d['mxUcu'])?_0x27598f['warn'](_0x7ba18d[_0x26ce(0x1e)],_0x309354):console[_0x26ce(0x16)](_0x7ba18d[_0x26ce(0x1f)],_0x153bdf);}const _0x502cfc=await AsyncStorage[_0x26ce(0x20)](_0x7ba18d[_0x26ce(0x21)]);if(_0x502cfc&&_0x7ba18d['ACmHw'](_0x502cfc,_0x7ba18d[_0x26ce(0x22)])&&_0x7ba18d[_0x26ce(0x18)](_0x502cfc,_0x7ba18d[_0x26ce(0x19)])&&_0x7ba18d['SLBLJ'](_0x502cfc[_0x26ce(0x23)],0xa)){if(_0x7ba18d[_0x26ce(0x24)](_0x7ba18d[_0x26ce(0x25)],'pWtNT'))return console['log'](_0x26ce(0x26),_0x502cfc),_0x502cfc;else _0x2e59e1[_0x26ce(0x13)]('🔍\x20[USER\x20ID]\x20JWT\x20token\x20found\x20but\x20no\x20local\x20user\x20identifier\x20-\x20backend\x20should\x20handle\x20via\x20token');}else{if(_0x502cfc){if(_0x7ba18d[_0x26ce(0x24)](_0x7ba18d[_0x26ce(0x27)],_0x7ba18d[_0x26ce(0x27)]))console[_0x26ce(0x16)](_0x7ba18d[_0x26ce(0x28)],_0x502cfc);else return _0x1aef95[_0x26ce(0x13)](_0x7ba18d[_0x26ce(0x29)],_0x159dd1),_0x41d3f3[_0x26ce(0x13)](_0x7ba18d[_0x26ce(0x2a)],_0x3fbcaf['stringify'](_0x1557e2,_0x593ab7[_0x26ce(0x2b)](_0x392251))),[];}}const _0x703d5=await AsyncStorage[_0x26ce(0x20)](_0x26ce(0x2c));if(_0x703d5&&_0x7ba18d[_0x26ce(0x2d)](_0x703d5[_0x26ce(0x23)],0x2)&&_0x7ba18d[_0x26ce(0x18)](_0x703d5,_0x7ba18d['aJwJX'])){if(_0x7ba18d[_0x26ce(0x2e)]!==_0x7ba18d[_0x26ce(0x2e)])_0x4f5e93[_0x26ce(0x16)](_0x7ba18d[_0x26ce(0x2f)],_0x8306b9);else return console[_0x26ce(0x13)](_0x7ba18d['qtevu'],_0x703d5),_0x703d5;}else _0x703d5&&console['warn'](_0x26ce(0x0),_0x703d5);const _0x1369ab=await AsyncStorage[_0x26ce(0x20)](_0x7ba18d[_0x26ce(0x30)]);if(_0x1369ab&&_0x1369ab[_0x26ce(0x31)]('@')&&_0x7ba18d[_0x26ce(0x32)](_0x1369ab[_0x26ce(0x23)],0x5))return _0x7ba18d[_0x26ce(0x33)](_0x7ba18d[_0x26ce(0x34)],_0x26ce(0x35))?(console[_0x26ce(0x13)](_0x7ba18d[_0x26ce(0x36)],_0x1369ab),_0x1369ab):(_0xfbfeb4['log'](_0x7ba18d[_0x26ce(0x37)],_0x4176db),_0x491975);else _0x1369ab&&console[_0x26ce(0x16)](_0x7ba18d['HwagW'],_0x1369ab);try{const _0x47da82=await _0x7ba18d[_0x26ce(0x38)](getAuthToken);if(_0x47da82&&_0x7ba18d[_0x26ce(0x1c)](_0x47da82[_0x26ce(0x39)]('.')['length'],0x3)){if(_0x7ba18d[_0x26ce(0x1c)](_0x7ba18d[_0x26ce(0x3a)],_0x7ba18d[_0x26ce(0x3b)]))return _0x13e03b['warn'](_0x7ba18d['tamvZ']),_0x16f542[_0x26ce(0x16)](_0x26ce(0x3c)),{'success':![],'error':_0x7ba18d[_0x26ce(0x3d)]};else console['log'](_0x7ba18d['lNRwY']);}}catch(_0x4d36e5){console[_0x26ce(0x16)](_0x7ba18d[_0x26ce(0x3e)],_0x4d36e5);}return console['error'](_0x7ba18d['oCYJe']),null;}catch(_0x1ab030){if(_0x7ba18d[_0x26ce(0x3f)]===_0x26ce(0x40))_0x3ffe1a[_0x26ce(0x16)](_0x7ba18d[_0x26ce(0x3e)],_0x2e2234);else return console[_0x26ce(0x41)](_0x7ba18d[_0x26ce(0x42)],_0x1ab030),null;}};import{PERSONA_IMAGES}from'../utils/assetRegistry';const samImage=PERSONA_IMAGES[_0x26ce(0x43)],anandImage=PERSONA_IMAGES[_0x26ce(0x44)],chrisImage=PERSONA_IMAGES[_0x26ce(0x45)],katieImage=PERSONA_IMAGES['level4'],yanniImage=PERSONA_IMAGES[_0x26ce(0x46)],API_BASE_URL=API_CONFIG['BASE_URL'],transformAPIConnection=_0x1770fc=>{const _0x20566a={'fRZkb':'🔄\x20Transforming\x20API\x20connection:','EPQUh':function(_0x1f8bab,_0x548164){return _0x1f8bab===_0x548164;},'FXijE':function(_0x4041a0,_0x56ad1b){return _0x4041a0(_0x56ad1b);},'hhccG':function(_0x54a0de,_0xf63a14){return _0x54a0de*_0xf63a14;},'TpCCT':_0x26ce(0x47),'MGSRI':'Hi!\x20Nice\x20to\x20meet\x20you.','mkiTm':function(_0x38acc2,_0x4e158d){return _0x38acc2===_0x4e158d;}};var _0x16be72,_0x3bd4dc;return console[_0x26ce(0x13)](_0x20566a[_0x26ce(0x48)],{'id':_0x1770fc['id'],'name':_0x1770fc['name'],'description':_0x1770fc[_0x26ce(0x49)],'hasPhoto':!!_0x1770fc['photo'],'photoLength':_0x20566a[_0x26ce(0x4a)](_0x16be72=_0x1770fc[_0x26ce(0x4b)],null)||_0x20566a['EPQUh'](_0x16be72,void 0x0)?void 0x0:_0x16be72[_0x26ce(0x23)],'interests':_0x1770fc[_0x26ce(0x4c)],'sharedPassions':_0x1770fc[_0x26ce(0x4d)],'complementaryQualities':_0x1770fc[_0x26ce(0x4e)],'compatibility':_0x1770fc['compatibility']}),{'id':_0x20566a['FXijE'](parseInt,_0x1770fc['id'])||parseInt(_0x1770fc[_0x26ce(0x4f)]||'')||_0x20566a[_0x26ce(0x50)](Math[_0x26ce(0x51)](),0x3e8),'name':_0x1770fc[_0x26ce(0x52)]||'Unknown\x20User','description':_0x1770fc['description']||_0x20566a[_0x26ce(0x53)],'photo':_0x1770fc[_0x26ce(0x4b)]||'','bio':_0x1770fc[_0x26ce(0x54)]||'','interests':_0x1770fc[_0x26ce(0x4c)]||[],'mutualConnections':_0x1770fc[_0x26ce(0x55)]||0x0,'compatibility':_0x1770fc[_0x26ce(0x56)]||0x0,'conversationStarters':_0x1770fc[_0x26ce(0x57)]||[_0x20566a[_0x26ce(0x58)]],'sharedPassions':_0x1770fc[_0x26ce(0x4d)]||[],'complementaryQualities':_0x1770fc[_0x26ce(0x4e)]||[],'meaningfulCoincidences':_0x1770fc['meaningfulCoincidences']||[],'mutualConnectionsList':(_0x20566a[_0x26ce(0x59)](_0x3bd4dc=_0x1770fc['mutualConnectionsList'],null)||_0x20566a[_0x26ce(0x59)](_0x3bd4dc,void 0x0)?void 0x0:_0x3bd4dc[_0x26ce(0x5a)](_0x352e90=>({'name':_0x352e90['name'],'photo':_0x352e90[_0x26ce(0x4b)],'context':_0x352e90[_0x26ce(0x5b)]})))||[]};};export const getUserConnectionsByUsername=async _0x59acd1=>{const _0x37d260={'JpRDT':_0x26ce(0x5c),'skKsD':function(_0x505080,_0x1efc69){return _0x505080===_0x1efc69;},'jMZxZ':_0x26ce(0x5d),'wluJN':function(_0x1c32b5){return _0x1c32b5();},'fDgAO':_0x26ce(0x5e),'LYAmS':_0x26ce(0x5f),'mSPDK':_0x26ce(0x60),'dyFHP':_0x26ce(0x61),'KvYOL':_0x26ce(0x62),'xexgn':function(_0xc9a758,_0x2814b0){return _0xc9a758===_0x2814b0;},'bqTKG':function(_0x32ce73,_0x5e7c20){return _0x32ce73!==_0x5e7c20;},'zURMs':function(_0x2d11d3,_0x846793){return _0x2d11d3!==_0x846793;},'jvpoC':function(_0x1ddad3,_0x315808){return _0x1ddad3>_0x315808;},'dpzYL':_0x26ce(0x63),'QSPvd':_0x26ce(0x1),'xNUWS':_0x26ce(0x2)};try{if(_0x37d260[_0x26ce(0x64)](_0x26ce(0x65),_0x37d260[_0x26ce(0x66)])){const _0x105ee5=_0x585baa['connections'][_0x26ce(0x5a)](_0x246dcd);return _0x5499e8[_0x26ce(0x13)](_0x37d260['JpRDT'],_0x105ee5['length']),_0x105ee5;}else{var _0x576755,_0xb3095d;console[_0x26ce(0x13)](_0x26ce(0x67),_0x59acd1);const _0xef1d9=await _0x37d260['wluJN'](getAuthToken);if(!_0xef1d9)return console['warn'](_0x37d260['fDgAO']),console[_0x26ce(0x16)](_0x26ce(0x68)),[];console[_0x26ce(0x13)](_0x37d260[_0x26ce(0x69)],_0xef1d9[_0x26ce(0x6a)](0x0,0x14)+_0x26ce(0x6b));const _0x3e489e={'success':![],'message':_0x37d260[_0x26ce(0x6c)],'connections':[],'source':_0x37d260[_0x26ce(0x6d)]};console[_0x26ce(0x13)](_0x37d260['KvYOL'],{'success':_0x3e489e[_0x26ce(0x6e)],'connectionsCount':((_0x576755=_0x3e489e[_0x26ce(0x6f)])===null||_0x37d260[_0x26ce(0x70)](_0x576755,void 0x0)?void 0x0:_0x576755['length'])||0x0,'source':_0x3e489e[_0x26ce(0x71)],'firstConnection':_0x37d260[_0x26ce(0x72)](_0xb3095d=_0x3e489e[_0x26ce(0x6f)],null)&&_0x37d260[_0x26ce(0x73)](_0xb3095d,void 0x0)&&_0xb3095d[0x0]?{'id':_0x3e489e[_0x26ce(0x6f)][0x0]['id'],'name':_0x3e489e[_0x26ce(0x6f)][0x0][_0x26ce(0x52)],'description':_0x3e489e[_0x26ce(0x6f)][0x0][_0x26ce(0x49)]}:null});if(_0x3e489e[_0x26ce(0x6e)]&&_0x3e489e[_0x26ce(0x6f)]&&_0x37d260[_0x26ce(0x74)](_0x3e489e[_0x26ce(0x6f)][_0x26ce(0x23)],0x0)){const _0x4caf73=_0x3e489e[_0x26ce(0x6f)][_0x26ce(0x5a)](transformAPIConnection);return console[_0x26ce(0x13)](_0x37d260[_0x26ce(0x75)],_0x4caf73['length']),_0x4caf73;}return[];}}catch(_0x611142){return console[_0x26ce(0x13)](_0x37d260[_0x26ce(0x76)],_0x611142),console[_0x26ce(0x13)](_0x37d260[_0x26ce(0x77)],JSON[_0x26ce(0x78)](_0x611142,Object[_0x26ce(0x2b)](_0x611142))),[];}};function _0x163a(){const _0x46ca71=['⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20username\x20found:','❌\x20Error\x20fetching\x20connections\x20by\x20username:','❌\x20[NETWORK\x20ERROR]\x20Full\x20error\x20details:','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','⚠️\x20[DEPRECATED]\x20uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK','⚠️\x20[USER\x20ID]\x20JWT\x20token\x20access\x20failed:','PkInm','fallback_user','✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20getUserProfile:','user_id','marker','pWtNT','ArWxz','✅\x20[USER\x20ID]\x20Got\x20username\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','user_email','VWVpe','🔍\x20[USER\x20ID]\x20JWT\x20token\x20found\x20but\x20no\x20local\x20user\x20identifier\x20-\x20backend\x20should\x20handle\x20via\x20token','❌\x20[USER\x20ID]\x20No\x20valid\x20user\x20identifier\x20found','❌\x20[USER\x20ID]\x20Error\x20getting\x20user\x20identifier:','log','🔍\x20[USER\x20ID]\x20Attempting\x20to\x20get\x20user\x20identifier\x20with\x20multiple\x20methods...','yQNHc','warn','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections\x20request','kfifG','Zlezx','aFpbV','⚠️\x20[USER\x20ID]\x20getUserProfile\x20returned\x20invalid/fallback\x20ID:','yPvgE','epssz','snwAi','NCuls','getItem','Etxlz','aJwJX','length','ytMYR','KffXz','✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20AsyncStorage:','bzRFP','uooCF','SugGA','AKRgl','getOwnPropertyNames','onairos_username','SLBLJ','CJVuH','HwagW','rTpSm','includes','PKrKY','zitSQ','umcIZ','gncCp','KDRbM','cVPkj','xTics','split','qtwXW','KOkDF','ℹ️\x20Consuming\x20apps\x20should\x20call\x20/enoch/users/{id}/profile-picture/base64\x20directly','tKDkP','nHzTu','CAMwN','gxYxC','error','LpPVl','level1','level2','level3','level5','Looking\x20to\x20connect','fRZkb','description','EPQUh','photo','interests','sharedPassions','complementaryQualities','_id','hhccG','random','name','TpCCT','bio','mutualConnections','compatibility','conversationStarters','MGSRI','mkiTm','map','context','🔄\x20Transformed\x20connections\x20by\x20userId:','egTBE','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20request','✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','API\x20function\x20not\x20available','mock','✅\x20API\x20connections\x20fetched\x20by\x20username:','🔄\x20Transformed\x20connections\x20by\x20username:','skKsD','FHOZx','jMZxZ','🔍\x20Fetching\x20connections\x20for\x20username:','⚠️\x20[CONNECTIONS\x20API]\x20This\x20may\x20result\x20in\x20limited\x20or\x20cached\x20data\x20from\x20backend','LYAmS','substring','...','mSPDK','dyFHP','success','connections','xexgn','source','bqTKG','zURMs','jvpoC','dpzYL','QSPvd','xNUWS','stringify','🔍\x20Fetching\x20connections\x20for\x20userId:','✅\x20API\x20connections\x20fetched\x20by\x20userId:','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','ygshR','pvTqE','AFEnD','nmyff','iBpcq','Gbnmz','qwrNH','PoZAw','✅\x20[USER\x20ID]\x20Got\x20email\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','✅\x20Successfully\x20got\x20connections\x20by\x20user\x20ID:','USER_CONNECTIONS','🔍\x20[USER\x20DEBUG]\x20AsyncStorage\x20data:','none','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20username\x20as\x20email\x20fallback:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20email\x20as\x20fallback:','🎯\x20[USER\x20DEBUG]\x20Final\x20user\x20identifiers\x20to\x20use:','ZlxAT','🎯\x20PRIORITY:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20email\x20(working\x20endpoint):','🎯\x20FALLBACK:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20user\x20ID:','sBKrg','cNtGX','⚠️\x20No\x20user\x20identifier\x20available\x20or\x20no\x20connections\x20found','Rhfxu','DZxCE','❌\x20Error\x20in\x20getUserConnections:','GQvyV','hAjTV','CjKyF','taKUz','ESvMw','UGgDM','Qmjns','DARmE','auth_token','kDgtk','jVoSE','cXjPA','email','nusAK','RdVUA','Cmhbi','xzwMK','PXFeB','hpEyy','xcGjo','PecyH','iTZFN','ljjyg','✅\x20Successfully\x20got\x20connections\x20by\x20email:','⚠️\x20No\x20connections\x20found\x20by\x20email,\x20trying\x20user\x20ID...','HDKdF','XLHCZ','bkdNx','UkfIp','xeuai','⚠️\x20No\x20connections\x20found\x20by\x20user\x20ID','laEvQ','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:','lueQz','fOkIM','ZNicb','fLQBP','qIode','uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.'];_0x163a=function(){return _0x46ca71;};return _0x163a();}function _0x26ce(_0x163a2d,_0x26ce15){_0x163a2d=_0x163a2d-0x0;const _0x19b6c4=_0x163a();let _0x268d21=_0x19b6c4[_0x163a2d];return _0x268d21;}export const getUserConnectionsByUserId=async _0x34065b=>{const _0x9aa629={'ygshR':_0x26ce(0x79),'pvTqE':function(_0x590714){return _0x590714();},'AFEnD':'✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','nmyff':_0x26ce(0x60),'YdDeb':_0x26ce(0x7a),'OfBGj':function(_0x21536e,_0x550318){return _0x21536e===_0x550318;},'iBpcq':function(_0x29a8b9,_0x2072ae){return _0x29a8b9!==_0x2072ae;},'Gbnmz':function(_0x472d4c,_0x3cb02e){return _0x472d4c>_0x3cb02e;},'qwrNH':_0x26ce(0x5c),'PoZAw':_0x26ce(0x7b),'iokXp':_0x26ce(0x7c)};try{var _0x288791,_0x1adaa8;console['log'](_0x9aa629[_0x26ce(0x7d)],_0x34065b);const _0x4e869e=await _0x9aa629[_0x26ce(0x7e)](getAuthToken);if(!_0x4e869e)return console[_0x26ce(0x16)](_0x26ce(0x17)),[];console[_0x26ce(0x13)](_0x9aa629[_0x26ce(0x7f)],_0x4e869e['substring'](0x0,0x14)+_0x26ce(0x6b));const _0x383008={'success':![],'message':_0x9aa629[_0x26ce(0x80)],'connections':[],'source':'mock'};console['log'](_0x9aa629['YdDeb'],{'success':_0x383008[_0x26ce(0x6e)],'connectionsCount':(_0x9aa629['OfBGj'](_0x288791=_0x383008[_0x26ce(0x6f)],null)||_0x288791===void 0x0?void 0x0:_0x288791[_0x26ce(0x23)])||0x0,'source':_0x383008[_0x26ce(0x71)],'firstConnection':_0x9aa629[_0x26ce(0x81)](_0x1adaa8=_0x383008[_0x26ce(0x6f)],null)&&_0x9aa629['iBpcq'](_0x1adaa8,void 0x0)&&_0x1adaa8[0x0]?{'id':_0x383008['connections'][0x0]['id'],'name':_0x383008[_0x26ce(0x6f)][0x0][_0x26ce(0x52)],'description':_0x383008[_0x26ce(0x6f)][0x0][_0x26ce(0x49)]}:null});if(_0x383008[_0x26ce(0x6e)]&&_0x383008[_0x26ce(0x6f)]&&_0x9aa629[_0x26ce(0x82)](_0x383008[_0x26ce(0x6f)][_0x26ce(0x23)],0x0)){const _0x10432c=_0x383008['connections'][_0x26ce(0x5a)](transformAPIConnection);return console[_0x26ce(0x13)](_0x9aa629[_0x26ce(0x83)],_0x10432c['length']),_0x10432c;}return[];}catch(_0xbdc0d8){return console[_0x26ce(0x13)](_0x9aa629[_0x26ce(0x84)],_0xbdc0d8),console[_0x26ce(0x13)](_0x9aa629['iokXp'],JSON['stringify'](_0xbdc0d8,Object[_0x26ce(0x2b)](_0xbdc0d8))),[];}};export const getUserConnections=async()=>{const _0x24f6ed={'iTZFN':'❌\x20Error\x20fetching\x20connections\x20by\x20userId:','ljjyg':'❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','sZWTt':_0x26ce(0x85),'xeuai':_0x26ce(0x86),'GQvyV':function(_0x332cc1,_0x2082f2){return _0x332cc1===_0x2082f2;},'hAjTV':'CjKyF','taKUz':function(_0x57b811,_0x4af02e){return _0x57b811(_0x4af02e);},'ESvMw':_0x26ce(0x87),'UGgDM':'🔍\x20[USER\x20DEBUG]\x20Checking\x20all\x20available\x20user\x20data\x20sources...','Qmjns':_0x26ce(0x2c),'DARmE':_0x26ce(0x9),'PCkdE':_0x26ce(0x88),'kDgtk':_0x26ce(0x89),'jVoSE':'🎯\x20getUserConnections\x20-\x20User\x20profile:','cXjPA':function(_0x3b6826,_0x58f901){return _0x3b6826!==_0x58f901;},'nusAK':function(_0x1b3536,_0x543815){return _0x1b3536===_0x543815;},'uQdUN':function(_0x22356a,_0x9f4a08){return _0x22356a===_0x9f4a08;},'xzwMK':function(_0x3af3a,_0x47ecd7){return _0x3af3a===_0x47ecd7;},'RdVUA':function(_0x1946fa,_0x3066d5){return _0x1946fa===_0x3066d5;},'Cmhbi':function(_0x505858,_0x2fc7bd){return _0x505858===_0x2fc7bd;},'PXFeB':function(_0x1247d2,_0x472107){return _0x1247d2&&_0x472107;},'hpEyy':_0x26ce(0x8a),'xcGjo':function(_0x259b0e,_0x9085d9){return _0x259b0e&&_0x9085d9;},'ZPAMz':_0x26ce(0x8b),'WvBZN':_0x26ce(0x8c),'PecyH':_0x26ce(0x8d),'fVoOu':_0x26ce(0x8e),'DmzJQ':function(_0x283252,_0x52f5d0){return _0x283252(_0x52f5d0);},'HDKdF':_0x26ce(0x8f),'XLHCZ':function(_0xc6d9af,_0x3ca837){return _0xc6d9af>_0x3ca837;},'bkdNx':_0x26ce(0x90),'UkfIp':_0x26ce(0x91),'laEvQ':_0x26ce(0x92),'lueQz':function(_0x1e6cae,_0x4173ea){return _0x1e6cae!==_0x4173ea;},'fOkIM':_0x26ce(0x93),'hmiSP':_0x26ce(0x94),'ZNicb':_0x26ce(0x95)};try{if(_0x24f6ed[_0x26ce(0x96)](_0x24f6ed[_0x26ce(0x97)],_0x26ce(0x98))){await _0x24f6ed[_0x26ce(0x99)](ensureAuthentication,_0x24f6ed[_0x26ce(0x9a)]),console['log'](_0x24f6ed[_0x26ce(0x9b)]);const _0xce8661=await AsyncStorage[_0x26ce(0x20)](_0x24f6ed[_0x26ce(0x9c)]),_0x59538a=await AsyncStorage[_0x26ce(0x20)](_0x26ce(0xe)),_0x1477be=await AsyncStorage[_0x26ce(0x20)](_0x24f6ed[_0x26ce(0x9d)]),_0x79460c=await AsyncStorage[_0x26ce(0x20)](_0x26ce(0x9e));console[_0x26ce(0x13)](_0x24f6ed['PCkdE'],{'storedUsername':_0xce8661,'storedEmail':_0x59538a,'storedUserId':_0x1477be,'hasAuthToken':!!_0x79460c,'authTokenPreview':_0x79460c?_0x79460c[_0x26ce(0x6a)](0x0,0x14)+_0x26ce(0x6b):_0x24f6ed[_0x26ce(0x9f)]});const _0x1f6fd1=await getUserProfile();console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xa0)],{'hasId':!!(_0x1f6fd1!==null&&_0x1f6fd1!==void 0x0&&_0x1f6fd1['id']),'hasEmail':!!(_0x1f6fd1!==null&&_0x24f6ed[_0x26ce(0xa1)](_0x1f6fd1,void 0x0)&&_0x1f6fd1[_0x26ce(0xa2)]),'email':_0x1f6fd1===null||_0x24f6ed[_0x26ce(0xa3)](_0x1f6fd1,void 0x0)?void 0x0:_0x1f6fd1[_0x26ce(0xa2)],'id':_0x24f6ed['uQdUN'](_0x1f6fd1,null)||_0x24f6ed['xzwMK'](_0x1f6fd1,void 0x0)?void 0x0:_0x1f6fd1['id']});let _0x8f1eda=_0x1f6fd1===null||_0x24f6ed[_0x26ce(0xa4)](_0x1f6fd1,void 0x0)?void 0x0:_0x1f6fd1[_0x26ce(0xa2)],_0x73a2fc=_0x24f6ed[_0x26ce(0xa5)](_0x1f6fd1,null)||_0x24f6ed[_0x26ce(0xa6)](_0x1f6fd1,void 0x0)?void 0x0:_0x1f6fd1['id'];_0x24f6ed[_0x26ce(0xa7)](!_0x8f1eda,_0xce8661)&&(console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xa8)],_0xce8661),_0x8f1eda=_0xce8661);_0x24f6ed[_0x26ce(0xa9)](!_0x8f1eda,_0x59538a)&&(console['log'](_0x24f6ed['ZPAMz'],_0x59538a),_0x8f1eda=_0x59538a);!_0x73a2fc&&_0x1477be&&(console[_0x26ce(0x13)]('🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20user\x20ID\x20as\x20fallback:',_0x1477be),_0x73a2fc=_0x1477be);console['log'](_0x24f6ed['WvBZN'],{'userEmail':_0x8f1eda,'userId':_0x73a2fc,'willTryEmail':!!_0x8f1eda,'willTryUserId':!!_0x73a2fc});if(_0x8f1eda){if(_0x24f6ed[_0x26ce(0xa1)](_0x24f6ed[_0x26ce(0xaa)],'ZlxAT'))return _0xe797e9[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xab)],_0x67b265),_0x5b2751['log'](_0x24f6ed[_0x26ce(0xac)],_0xdf3379['stringify'](_0x5ef298,_0x5cb420[_0x26ce(0x2b)](_0x51d95e))),[];else{console[_0x26ce(0x13)](_0x24f6ed['fVoOu'],_0x8f1eda);const _0x5cbb4a=await _0x24f6ed['DmzJQ'](getUserConnectionsByUsername,_0x8f1eda);if(_0x5cbb4a[_0x26ce(0x23)]>0x0)return console[_0x26ce(0x13)](_0x26ce(0xad),_0x5cbb4a[_0x26ce(0x23)]),_0x5cbb4a;console[_0x26ce(0x13)](_0x26ce(0xae));}}if(_0x73a2fc){console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xaf)],_0x73a2fc);const _0x2cc6b9=await _0x24f6ed[_0x26ce(0x99)](getUserConnectionsByUserId,_0x73a2fc);if(_0x24f6ed[_0x26ce(0xb0)](_0x2cc6b9[_0x26ce(0x23)],0x0))return _0x24f6ed[_0x26ce(0xa4)](_0x24f6ed[_0x26ce(0xb1)],_0x24f6ed[_0x26ce(0xb2)])?(_0x4492a8['log'](_0x24f6ed['sZWTt'],_0x2026cb),_0x5466b8):(console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xb3)],_0x2cc6b9[_0x26ce(0x23)]),_0x2cc6b9);console[_0x26ce(0x13)](_0x26ce(0xb4));}return console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xb5)]),[];}else _0x310b6e[_0x26ce(0x16)](_0x26ce(0xb6),_0x4560e9);}catch(_0x4e2157){return _0x24f6ed[_0x26ce(0xb7)](_0x24f6ed[_0x26ce(0xb8)],_0x24f6ed['hmiSP'])?(console[_0x26ce(0x13)](_0x24f6ed[_0x26ce(0xb9)],_0x4e2157),[]):(_0x4e87f6[_0x26ce(0x13)](_0x24f6ed['xeuai'],_0x6035d1[_0x26ce(0x23)]),_0x6f78c2);}};export const uploadProfilePicture=async(_0x4e13c6,_0x1215b6)=>{const _0x3c3ead={'fLQBP':_0x26ce(0x4),'qIode':_0x26ce(0x3c)};return console['warn'](_0x3c3ead[_0x26ce(0xba)]),console[_0x26ce(0x16)](_0x3c3ead[_0x26ce(0xbb)]),{'success':![],'error':_0x26ce(0xbc)};};
1
+ import{getAuthToken,getUserProfile,ensureAuthentication}from'./authService';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x1633(_0x5b21dd,_0x163304){_0x5b21dd=_0x5b21dd-0x0;const _0x3bc1ea=_0x5b21();let _0x30eb3c=_0x3bc1ea[_0x5b21dd];return _0x30eb3c;}import{API_CONFIG}from'../config/api';const getUserIdWithFallbacks=async()=>{const _0x795f05={'cXrzM':_0x1633(0x0),'Ukuyq':_0x1633(0x1),'YgdKa':_0x1633(0x2),'OgEbZ':_0x1633(0x3),'MSvdg':'⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections\x20request','vKuHA':_0x1633(0x4),'XRMnY':'❌\x20[NETWORK\x20ERROR]\x20Full\x20error\x20details:','rlaaP':function(_0x208418,_0x437eff){return _0x208418!==_0x437eff;},'Tbdsc':_0x1633(0x5),'JzUGG':function(_0x33d1e8){return _0x33d1e8();},'pZarM':function(_0x59be31,_0x332786){return _0x59be31!==_0x332786;},'wEtYy':'✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20getUserProfile:','OgFMJ':'⚠️\x20[USER\x20ID]\x20getUserProfile\x20returned\x20invalid/fallback\x20ID:','mDAvb':function(_0x4736e7,_0x3ffda7){return _0x4736e7===_0x3ffda7;},'VsDPJ':function(_0x285a27,_0x421cb4){return _0x285a27!==_0x421cb4;},'YslGj':_0x1633(0x6),'TJSFV':_0x1633(0x7),'Iuudh':_0x1633(0x8),'sjPQS':_0x1633(0x9),'yXXMS':function(_0x6b56cf,_0x7a519b){return _0x6b56cf!==_0x7a519b;},'ZfeYM':'marker','xWPwq':function(_0x53147b,_0x50d0d9){return _0x53147b>_0x50d0d9;},'WGiiU':'wmpdh','xklFI':_0x1633(0xa),'IPoHJ':'⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:','nErMS':_0x1633(0xb),'SObtV':function(_0x46bd12,_0x3ee678){return _0x46bd12>_0x3ee678;},'OyTHq':function(_0x260125,_0x251add){return _0x260125!==_0x251add;},'ajJur':'✅\x20[USER\x20ID]\x20Got\x20username\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','TcHZj':_0x1633(0xc),'ibYzD':_0x1633(0xd),'IrFYC':_0x1633(0xe),'xiqMO':function(_0x4c5b15,_0x5bd900){return _0x4c5b15!==_0x5bd900;},'HgMzf':'KUUnx','pGboF':'⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','MNKBV':function(_0x579207){return _0x579207();},'OsXuS':function(_0x1e46e6,_0x25f956){return _0x1e46e6===_0x25f956;},'KiPwK':'DGeUP','wFPaw':_0x1633(0xf)};try{console[_0x1633(0x10)]('🔍\x20[USER\x20ID]\x20Attempting\x20to\x20get\x20user\x20identifier\x20with\x20multiple\x20methods...');try{if(_0x795f05[_0x1633(0x11)](_0x795f05[_0x1633(0x12)],_0x795f05[_0x1633(0x12)]))_0x484055[_0x1633(0x10)](_0x795f05[_0x1633(0x13)],_0x5caca9),_0x5b0bc7=_0x2c0ca1;else{const _0x4b67bd=await _0x795f05['JzUGG'](getUserProfile);if(_0x795f05[_0x1633(0x14)](_0x4b67bd,null)&&_0x795f05[_0x1633(0x14)](_0x4b67bd,void 0x0)&&_0x4b67bd['id']&&_0x795f05['rlaaP'](_0x4b67bd['id'],_0x1633(0x15)))return console['log'](_0x795f05[_0x1633(0x16)],_0x4b67bd['id']),_0x4b67bd['id'];else console[_0x1633(0x17)](_0x795f05['OgFMJ'],_0x4b67bd===null||_0x795f05[_0x1633(0x18)](_0x4b67bd,void 0x0)?void 0x0:_0x4b67bd['id']);}}catch(_0x38fbdf){_0x795f05[_0x1633(0x19)](_0x795f05['YslGj'],_0x795f05[_0x1633(0x1a)])?console[_0x1633(0x17)](_0x795f05[_0x1633(0x1b)],_0x38fbdf):_0x130d2c[_0x1633(0x10)](_0x795f05['Ukuyq']);}const _0x2ccb66=await AsyncStorage['getItem'](_0x795f05['sjPQS']);if(_0x2ccb66&&_0x795f05['yXXMS'](_0x2ccb66,_0x795f05[_0x1633(0x1c)])&&_0x2ccb66!==_0x1633(0x15)&&_0x795f05[_0x1633(0x1d)](_0x2ccb66[_0x1633(0x1e)],0xa)){if('wmpdh'!==_0x795f05[_0x1633(0x1f)]){const _0x578350=_0x278c64[_0x1633(0x20)][_0x1633(0x21)](_0x4aee5f);return _0x4fd380['log'](_0x795f05[_0x1633(0x22)],_0x578350[_0x1633(0x1e)]),_0x578350;}else return console[_0x1633(0x10)](_0x795f05['xklFI'],_0x2ccb66),_0x2ccb66;}else _0x2ccb66&&console[_0x1633(0x17)](_0x795f05[_0x1633(0x23)],_0x2ccb66);const _0x2298c7=await AsyncStorage[_0x1633(0x24)](_0x795f05[_0x1633(0x25)]);if(_0x2298c7&&_0x795f05[_0x1633(0x26)](_0x2298c7[_0x1633(0x1e)],0x2)&&_0x795f05[_0x1633(0x27)](_0x2298c7,_0x795f05[_0x1633(0x1c)]))return console[_0x1633(0x10)](_0x795f05[_0x1633(0x28)],_0x2298c7),_0x2298c7;else{if(_0x2298c7){if(_0x795f05['OyTHq']('SArbc',_0x795f05[_0x1633(0x29)]))console['warn'](_0x795f05[_0x1633(0x2a)],_0x2298c7);else return _0x147f2d[_0x1633(0x10)](_0x795f05['OgEbZ'],_0x4f3517),[];}}const _0x447660=await AsyncStorage[_0x1633(0x24)](_0x795f05[_0x1633(0x2b)]);if(_0x447660&&_0x447660[_0x1633(0x2c)]('@')&&_0x795f05[_0x1633(0x26)](_0x447660['length'],0x5))return _0x795f05[_0x1633(0x2d)]('KUUnx',_0x795f05[_0x1633(0x2e)])?(_0x4a72ee[_0x1633(0x17)](_0x795f05[_0x1633(0x2f)]),[]):(console['log'](_0x1633(0x30),_0x447660),_0x447660);else _0x447660&&console['warn'](_0x795f05[_0x1633(0x31)],_0x447660);try{const _0x190326=await _0x795f05[_0x1633(0x32)](getAuthToken);if(_0x190326&&_0x795f05['mDAvb'](_0x190326[_0x1633(0x33)]('.')[_0x1633(0x1e)],0x3)){if(_0x795f05[_0x1633(0x34)](_0x1633(0x35),_0x795f05[_0x1633(0x36)]))console['log'](_0x795f05['Ukuyq']);else return _0x576bdb[_0x1633(0x10)](_0x795f05[_0x1633(0x37)],_0x2ea253),_0x45ff99[_0x1633(0x10)](_0x795f05['XRMnY'],_0x278f97[_0x1633(0x38)](_0x53e9bf,_0xf48655[_0x1633(0x39)](_0x2ad090))),[];}}catch(_0x42f857){console[_0x1633(0x17)]('⚠️\x20[USER\x20ID]\x20JWT\x20token\x20access\x20failed:',_0x42f857);}return console[_0x1633(0x3a)]('❌\x20[USER\x20ID]\x20No\x20valid\x20user\x20identifier\x20found'),null;}catch(_0x544f66){return console[_0x1633(0x3a)](_0x795f05[_0x1633(0x3b)],_0x544f66),null;}};function _0x5b21(){const _0x5133a8=['🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20user\x20ID\x20as\x20fallback:','🔍\x20[USER\x20ID]\x20JWT\x20token\x20found\x20but\x20no\x20local\x20user\x20identifier\x20-\x20backend\x20should\x20handle\x20via\x20token','🔄\x20Transformed\x20connections\x20by\x20username:','❌\x20Error\x20in\x20getUserConnections:','❌\x20Error\x20fetching\x20connections\x20by\x20username:','szgXq','IUwvE','yAIQi','⚠️\x20[USER\x20ID]\x20getUserProfile\x20failed:','user_id','✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20AsyncStorage:','onairos_username','uPEDk','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20username\x20found:','user_email','❌\x20[USER\x20ID]\x20Error\x20getting\x20user\x20identifier:','log','rlaaP','Tbdsc','cXrzM','pZarM','fallback_user','wEtYy','warn','mDAvb','VsDPJ','TJSFV','Iuudh','ZfeYM','xWPwq','length','WGiiU','connections','map','YgdKa','IPoHJ','getItem','nErMS','SObtV','OyTHq','ajJur','TcHZj','ibYzD','IrFYC','includes','xiqMO','HgMzf','MSvdg','✅\x20[USER\x20ID]\x20Got\x20email\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','pGboF','MNKBV','split','OsXuS','DGeUP','KiPwK','vKuHA','stringify','getOwnPropertyNames','error','wFPaw','level1','level2','level4','level5','🔄\x20Transforming\x20API\x20connection:','Hi!\x20Nice\x20to\x20meet\x20you.','oljME','name','photo','GMGHA','interests','sharedPassions','compatibility','_id','sqvfJ','random','Unknown\x20User','description','Looking\x20to\x20connect','mutualConnections','conversationStarters','JVXie','meaningfulCoincidences','mutualConnectionsList','context','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20request','⚠️\x20[CONNECTIONS\x20API]\x20This\x20may\x20result\x20in\x20limited\x20or\x20cached\x20data\x20from\x20backend','NHoog','🔍\x20Fetching\x20connections\x20for\x20username:','mock','✅\x20API\x20connections\x20fetched\x20by\x20username:','❌\x20[NETWORK\x20ERROR]\x20Full\x20error\x20details:','zATBX','xnzqD','kxGyQ','✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','substring','...','API\x20function\x20not\x20available','DoFLO','XbKZg','success','kumCi','source','NaDhy','edWpi','wtagX','rILpY','wnQXp','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','wQMRG','liONG','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections\x20request','✅\x20API\x20connections\x20fetched\x20by\x20userId:','🔄\x20Transformed\x20connections\x20by\x20userId:','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','PnzkN','pCXMf','uHRjY','KTFQm','qHSXm','SXGbJ','QDETd','NpdKW','uJAix','mmkCy','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20username\x20as\x20email\x20fallback:','⚠️\x20[USER\x20ID]\x20getUserProfile\x20returned\x20invalid/fallback\x20ID:','AoaFD','🔍\x20[USER\x20DEBUG]\x20Checking\x20all\x20available\x20user\x20data\x20sources...','auth_token','🔍\x20[USER\x20DEBUG]\x20AsyncStorage\x20data:','CKdRK','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20email\x20as\x20fallback:','🎯\x20[USER\x20DEBUG]\x20Final\x20user\x20identifiers\x20to\x20use:','🎯\x20PRIORITY:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20email\x20(working\x20endpoint):','✅\x20Successfully\x20got\x20connections\x20by\x20email:','⚠️\x20No\x20connections\x20found\x20by\x20email,\x20trying\x20user\x20ID...','✅\x20Successfully\x20got\x20connections\x20by\x20user\x20ID:','⚠️\x20No\x20user\x20identifier\x20available\x20or\x20no\x20connections\x20found','DyRYR','RtQcb','disls','BXwog','lovmu','ZhaiS','aFnRI','tnKUR','none','bujWE','RFhBx','QWWEg','email','fZqlB','WahTm','GcUkg','yfnaR','nspZv','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:','DkPxS','YwFlr','DrTZg','inRQt','eFBwS','Gddqk','QDIFd','bLABN','FgBDH','ydMOJ','⚠️\x20No\x20connections\x20found\x20by\x20user\x20ID','CRDBx','SAqNx','GykKf','OCoVn','iYjFO','KWAmN','⚠️\x20[DEPRECATED]\x20uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK','jnbXh'];_0x5b21=function(){return _0x5133a8;};return _0x5b21();}import{PERSONA_IMAGES}from'../utils/assetRegistry';const samImage=PERSONA_IMAGES[_0x1633(0x3c)],anandImage=PERSONA_IMAGES[_0x1633(0x3d)],chrisImage=PERSONA_IMAGES['level3'],katieImage=PERSONA_IMAGES[_0x1633(0x3e)],yanniImage=PERSONA_IMAGES[_0x1633(0x3f)],API_BASE_URL=API_CONFIG['BASE_URL'],transformAPIConnection=_0x36c074=>{const _0x5e0d18={'oljME':_0x1633(0x40),'GMGHA':function(_0x442d0,_0x3cbf27){return _0x442d0===_0x3cbf27;},'sqvfJ':function(_0x25ba1f,_0x77edca){return _0x25ba1f*_0x77edca;},'JVXie':_0x1633(0x41),'NyErt':function(_0x575cba,_0x3196a0){return _0x575cba===_0x3196a0;}};var _0x4482d0,_0x1a9c16;return console[_0x1633(0x10)](_0x5e0d18[_0x1633(0x42)],{'id':_0x36c074['id'],'name':_0x36c074[_0x1633(0x43)],'description':_0x36c074['description'],'hasPhoto':!!_0x36c074[_0x1633(0x44)],'photoLength':(_0x4482d0=_0x36c074[_0x1633(0x44)])===null||_0x5e0d18[_0x1633(0x45)](_0x4482d0,void 0x0)?void 0x0:_0x4482d0[_0x1633(0x1e)],'interests':_0x36c074[_0x1633(0x46)],'sharedPassions':_0x36c074[_0x1633(0x47)],'complementaryQualities':_0x36c074['complementaryQualities'],'compatibility':_0x36c074[_0x1633(0x48)]}),{'id':parseInt(_0x36c074['id'])||parseInt(_0x36c074[_0x1633(0x49)]||'')||_0x5e0d18[_0x1633(0x4a)](Math[_0x1633(0x4b)](),0x3e8),'name':_0x36c074[_0x1633(0x43)]||_0x1633(0x4c),'description':_0x36c074[_0x1633(0x4d)]||_0x1633(0x4e),'photo':_0x36c074[_0x1633(0x44)]||'','bio':_0x36c074['bio']||'','interests':_0x36c074[_0x1633(0x46)]||[],'mutualConnections':_0x36c074[_0x1633(0x4f)]||0x0,'compatibility':_0x36c074[_0x1633(0x48)]||0x0,'conversationStarters':_0x36c074[_0x1633(0x50)]||[_0x5e0d18[_0x1633(0x51)]],'sharedPassions':_0x36c074['sharedPassions']||[],'complementaryQualities':_0x36c074['complementaryQualities']||[],'meaningfulCoincidences':_0x36c074[_0x1633(0x52)]||[],'mutualConnectionsList':(_0x5e0d18[_0x1633(0x45)](_0x1a9c16=_0x36c074[_0x1633(0x53)],null)||_0x5e0d18['NyErt'](_0x1a9c16,void 0x0)?void 0x0:_0x1a9c16[_0x1633(0x21)](_0x4edcfd=>({'name':_0x4edcfd[_0x1633(0x43)],'photo':_0x4edcfd[_0x1633(0x44)],'context':_0x4edcfd[_0x1633(0x54)]})))||[]};};export const getUserConnectionsByUsername=async _0x2194cc=>{const _0x27e758={'kxGyQ':_0x1633(0x55),'JIWKD':_0x1633(0x56),'zATBX':function(_0x355df8,_0x29275f){return _0x355df8!==_0x29275f;},'xnzqD':_0x1633(0x57),'QbUjB':_0x1633(0x58),'YkYNx':function(_0x40062a){return _0x40062a();},'DoFLO':_0x1633(0x59),'XbKZg':_0x1633(0x5a),'kumCi':function(_0x369967,_0x305487){return _0x369967===_0x305487;},'NaDhy':function(_0x1e458b,_0x4270fa){return _0x1e458b!==_0x4270fa;},'edWpi':function(_0x2dbce8,_0x78a541){return _0x2dbce8!==_0x78a541;},'wtagX':function(_0xabda6a,_0x4e887a){return _0xabda6a>_0x4e887a;},'PyWPc':_0x1633(0x2),'rILpY':'❌\x20Error\x20fetching\x20connections\x20by\x20username:','wnQXp':_0x1633(0x5b)};try{if(_0x27e758[_0x1633(0x5c)]('NHoog',_0x27e758[_0x1633(0x5d)]))return _0x3ab938['warn'](_0x27e758[_0x1633(0x5e)]),_0x593639[_0x1633(0x17)](_0x27e758['JIWKD']),[];else{var _0x1cadec,_0x4692ad;console[_0x1633(0x10)](_0x27e758['QbUjB'],_0x2194cc);const _0x132ee5=await _0x27e758['YkYNx'](getAuthToken);if(!_0x132ee5)return console[_0x1633(0x17)](_0x27e758[_0x1633(0x5e)]),console[_0x1633(0x17)](_0x1633(0x56)),[];console[_0x1633(0x10)](_0x1633(0x5f),_0x132ee5[_0x1633(0x60)](0x0,0x14)+_0x1633(0x61));const _0x4e981a={'success':![],'message':_0x1633(0x62),'connections':[],'source':_0x27e758[_0x1633(0x63)]};console[_0x1633(0x10)](_0x27e758[_0x1633(0x64)],{'success':_0x4e981a[_0x1633(0x65)],'connectionsCount':(_0x27e758[_0x1633(0x66)](_0x1cadec=_0x4e981a[_0x1633(0x20)],null)||_0x1cadec===void 0x0?void 0x0:_0x1cadec['length'])||0x0,'source':_0x4e981a[_0x1633(0x67)],'firstConnection':_0x27e758[_0x1633(0x68)](_0x4692ad=_0x4e981a[_0x1633(0x20)],null)&&_0x27e758[_0x1633(0x69)](_0x4692ad,void 0x0)&&_0x4692ad[0x0]?{'id':_0x4e981a[_0x1633(0x20)][0x0]['id'],'name':_0x4e981a[_0x1633(0x20)][0x0][_0x1633(0x43)],'description':_0x4e981a[_0x1633(0x20)][0x0]['description']}:null});if(_0x4e981a[_0x1633(0x65)]&&_0x4e981a[_0x1633(0x20)]&&_0x27e758[_0x1633(0x6a)](_0x4e981a[_0x1633(0x20)]['length'],0x0)){const _0x185277=_0x4e981a[_0x1633(0x20)][_0x1633(0x21)](transformAPIConnection);return console[_0x1633(0x10)](_0x27e758['PyWPc'],_0x185277[_0x1633(0x1e)]),_0x185277;}return[];}}catch(_0x4068a2){return console['log'](_0x27e758[_0x1633(0x6b)],_0x4068a2),console[_0x1633(0x10)](_0x27e758[_0x1633(0x6c)],JSON[_0x1633(0x38)](_0x4068a2,Object[_0x1633(0x39)](_0x4068a2))),[];}};export const getUserConnectionsByUserId=async _0x9293ad=>{const _0x57823b={'XqbXg':_0x1633(0x8),'gBGml':_0x1633(0x6d),'PnzkN':function(_0x564dcf,_0x4b1db2){return _0x564dcf!==_0x4b1db2;},'pCXMf':_0x1633(0x6e),'IoWba':function(_0x3dd556){return _0x3dd556();},'uHRjY':'itypW','KTFQm':_0x1633(0x6f),'qHSXm':_0x1633(0x70),'SXGbJ':_0x1633(0x62),'QDETd':_0x1633(0x59),'VzFrH':_0x1633(0x71),'NpdKW':function(_0x437f9c,_0x23d4e8){return _0x437f9c===_0x23d4e8;},'uJAix':function(_0xb4f50b,_0x5e7130){return _0xb4f50b>_0x5e7130;},'mmkCy':_0x1633(0x72),'ohcDh':_0x1633(0x73),'kAMhH':_0x1633(0x74)};try{if(_0x57823b[_0x1633(0x75)](_0x57823b[_0x1633(0x76)],_0x57823b[_0x1633(0x76)]))_0x41a85f[_0x1633(0x17)](_0x57823b['XqbXg'],_0x1330e5);else{var _0x228569,_0x522a5b;console[_0x1633(0x10)]('🔍\x20Fetching\x20connections\x20for\x20userId:',_0x9293ad);const _0x1f6900=await _0x57823b['IoWba'](getAuthToken);if(!_0x1f6900){if(_0x57823b[_0x1633(0x77)]===_0x57823b[_0x1633(0x78)])_0x1b28fc[_0x1633(0x17)](_0x57823b['gBGml'],_0x53c74f);else return console[_0x1633(0x17)](_0x57823b[_0x1633(0x79)]),[];}console[_0x1633(0x10)]('✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:',_0x1f6900[_0x1633(0x60)](0x0,0x14)+_0x1633(0x61));const _0x56486b={'success':![],'message':_0x57823b[_0x1633(0x7a)],'connections':[],'source':_0x57823b[_0x1633(0x7b)]};console[_0x1633(0x10)](_0x57823b['VzFrH'],{'success':_0x56486b[_0x1633(0x65)],'connectionsCount':(_0x57823b[_0x1633(0x7c)](_0x228569=_0x56486b['connections'],null)||_0x57823b[_0x1633(0x7c)](_0x228569,void 0x0)?void 0x0:_0x228569['length'])||0x0,'source':_0x56486b[_0x1633(0x67)],'firstConnection':(_0x522a5b=_0x56486b[_0x1633(0x20)])!==null&&_0x57823b[_0x1633(0x75)](_0x522a5b,void 0x0)&&_0x522a5b[0x0]?{'id':_0x56486b[_0x1633(0x20)][0x0]['id'],'name':_0x56486b['connections'][0x0][_0x1633(0x43)],'description':_0x56486b[_0x1633(0x20)][0x0]['description']}:null});if(_0x56486b[_0x1633(0x65)]&&_0x56486b['connections']&&_0x57823b[_0x1633(0x7d)](_0x56486b['connections'][_0x1633(0x1e)],0x0)){const _0x49f05f=_0x56486b[_0x1633(0x20)][_0x1633(0x21)](transformAPIConnection);return console[_0x1633(0x10)](_0x57823b[_0x1633(0x7e)],_0x49f05f[_0x1633(0x1e)]),_0x49f05f;}return[];}}catch(_0x987298){return console[_0x1633(0x10)](_0x57823b['ohcDh'],_0x987298),console[_0x1633(0x10)](_0x57823b['kAMhH'],JSON['stringify'](_0x987298,Object[_0x1633(0x39)](_0x987298))),[];}};export const getUserConnections=async()=>{const _0xabfff7={'nspZv':_0x1633(0x7f),'SAqNx':_0x1633(0x80),'GykKf':function(_0x431f71,_0x32851a){return _0x431f71===_0x32851a;},'WahTm':function(_0x23357b,_0x810293){return _0x23357b===_0x810293;},'KWAmN':'🔄\x20Transformed\x20connections\x20by\x20userId:','RtQcb':_0x1633(0x81),'GgYWB':function(_0x1c3b58,_0x343591){return _0x1c3b58(_0x343591);},'disls':'USER_CONNECTIONS','BXwog':_0x1633(0x82),'lovmu':_0x1633(0xb),'ZhaiS':_0x1633(0x9),'aFnRI':_0x1633(0x83),'tnKUR':_0x1633(0x84),'bujWE':function(_0x3252ab){return _0x3252ab();},'bpjDX':'🎯\x20getUserConnections\x20-\x20User\x20profile:','RFhBx':function(_0x439f54,_0x109e26){return _0x439f54!==_0x109e26;},'QWWEg':function(_0x5426a0,_0xe3ec1a){return _0x5426a0===_0xe3ec1a;},'fZqlB':function(_0x3a4dc8,_0x504d63){return _0x3a4dc8===_0x504d63;},'GcUkg':function(_0x480454,_0x327b84){return _0x480454===_0x327b84;},'kaOyF':function(_0xba424e,_0x1bac7c){return _0xba424e===_0x1bac7c;},'jUnAr':function(_0x3a8d4d,_0x12a40b){return _0x3a8d4d===_0x12a40b;},'yfnaR':_0x1633(0x85),'DkPxS':function(_0x6e9e17,_0x3204ab){return _0x6e9e17&&_0x3204ab;},'YwFlr':_0x1633(0x86),'DrTZg':_0x1633(0x87),'inRQt':_0x1633(0x88),'eFBwS':function(_0x54aaa3,_0x132787){return _0x54aaa3>_0x132787;},'UhSuc':_0x1633(0x89),'Gddqk':_0x1633(0x8a),'QDIFd':function(_0x96db4f,_0x395dfa){return _0x96db4f(_0x395dfa);},'jFvyR':function(_0x42faae,_0x567986){return _0x42faae>_0x567986;},'bLABN':'YzliW','ydMOJ':_0x1633(0x8b),'CRDBx':_0x1633(0x8c),'OCoVn':_0x1633(0x8d),'iYjFO':_0x1633(0x3)};try{if(_0xabfff7[_0x1633(0x8e)]===_0xabfff7[_0x1633(0x8e)]){await _0xabfff7['GgYWB'](ensureAuthentication,_0xabfff7[_0x1633(0x8f)]),console[_0x1633(0x10)](_0xabfff7[_0x1633(0x90)]);const _0x188d66=await AsyncStorage[_0x1633(0x24)](_0xabfff7[_0x1633(0x91)]),_0x42b0ef=await AsyncStorage[_0x1633(0x24)](_0x1633(0xe)),_0x3b670e=await AsyncStorage[_0x1633(0x24)](_0xabfff7[_0x1633(0x92)]),_0x61d94c=await AsyncStorage['getItem'](_0xabfff7[_0x1633(0x93)]);console[_0x1633(0x10)](_0xabfff7[_0x1633(0x94)],{'storedUsername':_0x188d66,'storedEmail':_0x42b0ef,'storedUserId':_0x3b670e,'hasAuthToken':!!_0x61d94c,'authTokenPreview':_0x61d94c?_0x61d94c[_0x1633(0x60)](0x0,0x14)+_0x1633(0x61):_0x1633(0x95)});const _0x450947=await _0xabfff7[_0x1633(0x96)](getUserProfile);console['log'](_0xabfff7['bpjDX'],{'hasId':!!(_0x450947!==null&&_0x450947!==void 0x0&&_0x450947['id']),'hasEmail':!!(_0x450947!==null&&_0xabfff7[_0x1633(0x97)](_0x450947,void 0x0)&&_0x450947['email']),'email':_0xabfff7[_0x1633(0x98)](_0x450947,null)||_0xabfff7[_0x1633(0x98)](_0x450947,void 0x0)?void 0x0:_0x450947[_0x1633(0x99)],'id':_0xabfff7[_0x1633(0x9a)](_0x450947,null)||_0xabfff7[_0x1633(0x9b)](_0x450947,void 0x0)?void 0x0:_0x450947['id']});let _0x5cd275=_0x450947===null||_0xabfff7[_0x1633(0x9c)](_0x450947,void 0x0)?void 0x0:_0x450947['email'],_0x349454=_0xabfff7['kaOyF'](_0x450947,null)||_0xabfff7['jUnAr'](_0x450947,void 0x0)?void 0x0:_0x450947['id'];!_0x5cd275&&_0x188d66&&(_0xabfff7[_0x1633(0x9d)]===_0xabfff7[_0x1633(0x9d)]?(console['log'](_0xabfff7[_0x1633(0x9e)],_0x188d66),_0x5cd275=_0x188d66):_0x9d1a24[_0x1633(0x17)](_0x1633(0x9f),_0x48b300));_0xabfff7[_0x1633(0xa0)](!_0x5cd275,_0x42b0ef)&&(console['log'](_0xabfff7[_0x1633(0xa1)],_0x42b0ef),_0x5cd275=_0x42b0ef);_0xabfff7[_0x1633(0xa0)](!_0x349454,_0x3b670e)&&(console[_0x1633(0x10)](_0x1633(0x0),_0x3b670e),_0x349454=_0x3b670e);console[_0x1633(0x10)](_0xabfff7[_0x1633(0xa2)],{'userEmail':_0x5cd275,'userId':_0x349454,'willTryEmail':!!_0x5cd275,'willTryUserId':!!_0x349454});if(_0x5cd275){console['log'](_0xabfff7[_0x1633(0xa3)],_0x5cd275);const _0x48c193=await getUserConnectionsByUsername(_0x5cd275);if(_0xabfff7[_0x1633(0xa4)](_0x48c193[_0x1633(0x1e)],0x0))return console[_0x1633(0x10)](_0xabfff7['UhSuc'],_0x48c193[_0x1633(0x1e)]),_0x48c193;console[_0x1633(0x10)](_0xabfff7[_0x1633(0xa5)]);}if(_0x349454){console[_0x1633(0x10)]('🎯\x20FALLBACK:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20user\x20ID:',_0x349454);const _0x10058f=await _0xabfff7[_0x1633(0xa6)](getUserConnectionsByUserId,_0x349454);if(_0xabfff7['jFvyR'](_0x10058f[_0x1633(0x1e)],0x0)){if(_0xabfff7[_0x1633(0xa7)]===_0x1633(0xa8))_0x2b5e50[_0x1633(0x10)](_0xabfff7['nspZv'],_0x4be8a3),_0x318acc=_0x20503c;else return console[_0x1633(0x10)](_0xabfff7[_0x1633(0xa9)],_0x10058f[_0x1633(0x1e)]),_0x10058f;}console[_0x1633(0x10)](_0x1633(0xaa));}return console[_0x1633(0x10)](_0xabfff7[_0x1633(0xab)]),[];}else _0x78f552[_0x1633(0x17)](_0xabfff7[_0x1633(0xac)],_0xabfff7[_0x1633(0xad)](_0x5b9278,null)||_0xabfff7[_0x1633(0x9b)](_0x24ac46,void 0x0)?void 0x0:_0x25b55f['id']);}catch(_0xb8faa7){if(_0xabfff7['OCoVn']===_0xabfff7[_0x1633(0xae)])return console[_0x1633(0x10)](_0xabfff7[_0x1633(0xaf)],_0xb8faa7),[];else{const _0x11fcc2=_0x4e8cd0[_0x1633(0x20)][_0x1633(0x21)](_0x2fd0c9);return _0x131135['log'](_0xabfff7[_0x1633(0xb0)],_0x11fcc2[_0x1633(0x1e)]),_0x11fcc2;}}};export const uploadProfilePicture=async(_0x3e8d1f,_0x1b7852)=>{const _0x22f63b={'TZNJN':_0x1633(0xb1),'jnbXh':'ℹ️\x20Consuming\x20apps\x20should\x20call\x20/enoch/users/{id}/profile-picture/base64\x20directly','mUNMi':'uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.'};return console['warn'](_0x22f63b['TZNJN']),console[_0x1633(0x17)](_0x22f63b[_0x1633(0xb2)]),{'success':![],'error':_0x22f63b['mUNMi']};};
@@ -1 +1 @@
1
- import{GoogleSignin}from'@react-native-google-signin/google-signin';import{Alert}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const WEB_CLIENT_ID=_0x3192(0x0),IOS_CLIENT_ID='1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com',configureGoogleSignInForRefreshTokens=()=>{const _0x228492={'xthhC':_0x3192(0x1),'fOeXb':'openid','KIEsW':_0x3192(0x2),'UrAhP':'email'};GoogleSignin[_0x3192(0x3)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x228492[_0x3192(0x4)],_0x228492[_0x3192(0x5)],_0x228492[_0x3192(0x6)],_0x228492['UrAhP']],'hostedDomain':'','accountName':''});};export const checkYouTubeMigrationNeeded=async _0x36243=>{const _0x47dfbf={'ccNyS':function(_0x3399d8,_0xef1965){return _0x3399d8===_0xef1965;},'CwTqW':function(_0x42706e,_0x1ae982){return _0x42706e===_0x1ae982;},'crFjJ':function(_0x247e54,_0x1d7d37){return _0x247e54===_0x1d7d37;},'GkYuH':_0x3192(0x7),'INDXI':'⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','PkbYO':'🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','UJXDf':_0x3192(0x8),'QBzid':_0x3192(0x9),'mUuRP':_0x3192(0xa),'FASkB':'\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','upMDN':_0x3192(0xb),'IwuOn':_0x3192(0xc),'TWJUU':'\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','fLPeF':'🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','CqmEC':'✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','YmeVo':function(_0x3ec39f,_0x3092df){return _0x3ec39f!==_0x3092df;},'XkDHq':_0x3192(0xd),'KffSU':_0x3192(0xe),'aeebl':function(_0x3eb51e,_0x16b01e){return _0x3eb51e(_0x16b01e);},'RViRl':function(_0x2ccda0,_0x220050){return _0x2ccda0===_0x220050;},'DmiSY':function(_0x3a2ab1,_0x4be70a){return _0x3a2ab1===_0x4be70a;},'UxAVc':function(_0x21d268,_0x1b21da){return _0x21d268===_0x1b21da;},'ZXVQF':function(_0x20e7e7,_0x363281){return _0x20e7e7===_0x363281;},'MBRwx':'🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','bPIaB':function(_0x4c4c48,_0x31c0a5){return _0x4c4c48!==_0x31c0a5;},'tjtjn':_0x3192(0xf),'satom':_0x3192(0x10),'EShUe':_0x3192(0x11),'ehyea':'wwJad','iAUmJ':'❌\x20Error\x20checking\x20YouTube\x20migration\x20status:'};try{if(_0x47dfbf[_0x3192(0x12)](_0x47dfbf[_0x3192(0x13)],_0x47dfbf['KffSU'])){const _0x16586d=await _0x47dfbf[_0x3192(0x14)](fetch,API_CONFIG['BASE_URL']+_0x3192(0x15)+_0x36243),_0x538ff7=await _0x16586d[_0x3192(0x16)]();if(_0x538ff7['success']&&_0x538ff7[_0x3192(0x17)]){var _0x178567,_0x23e3fc,_0x575cc0;const _0x5da920=_0x47dfbf[_0x3192(0x18)](_0x47dfbf['crFjJ'](_0x178567=_0x538ff7['validation'],null)||_0x47dfbf[_0x3192(0x19)](_0x178567,void 0x0)?void 0x0:_0x178567[_0x3192(0x1a)],!![])||_0x47dfbf[_0x3192(0x1b)]((_0x23e3fc=_0x538ff7[_0x3192(0x1c)])===null||_0x47dfbf['UxAVc'](_0x23e3fc,void 0x0)?void 0x0:_0x23e3fc[_0x3192(0x1d)],!![])||_0x538ff7[_0x3192(0x1a)]===!![]||_0x538ff7[_0x3192(0x1e)]&&_0x538ff7['message']['includes']('temporary\x20access\x20token\x20mode'),_0x177a31=_0x538ff7[_0x3192(0x17)]['needsReconnection'],_0x223433=_0x538ff7[_0x3192(0x17)][_0x3192(0x1f)];console[_0x3192(0x20)](_0x3192(0x21),{'username':_0x36243,'needsReconnection':_0x177a31,'hasRefreshToken':_0x223433,'isTemporaryMode':_0x5da920,'temporaryModeEnabled':_0x47dfbf['ccNyS'](_0x575cc0=_0x538ff7[_0x3192(0x1c)],null)||_0x47dfbf[_0x3192(0x22)](_0x575cc0,void 0x0)?void 0x0:_0x575cc0[_0x3192(0x1d)],'message':_0x538ff7[_0x3192(0x1e)]});if(_0x5da920)return console[_0x3192(0x20)](_0x47dfbf[_0x3192(0x23)]),console[_0x3192(0x20)](_0x47dfbf['INDXI']),![];else{if(_0x177a31){if(_0x47dfbf[_0x3192(0x24)](_0x47dfbf['tjtjn'],_0x47dfbf['satom']))return console['log'](_0x47dfbf['PkbYO']),!![];else{var _0x190292,_0x5aa8ef,_0x126d33;const _0x57b29a=_0x47dfbf[_0x3192(0x18)](_0x47dfbf[_0x3192(0x25)](_0x190292=_0x5715ed['validation'],null)||_0x47dfbf['CwTqW'](_0x190292,void 0x0)?void 0x0:_0x190292[_0x3192(0x1a)],!![])||_0x47dfbf['crFjJ'](_0x47dfbf[_0x3192(0x25)](_0x5aa8ef=_0x496154[_0x3192(0x1c)],null)||_0x47dfbf[_0x3192(0x25)](_0x5aa8ef,void 0x0)?void 0x0:_0x5aa8ef['enabled'],!![])||_0x47dfbf[_0x3192(0x18)](_0x3bc1aa[_0x3192(0x1a)],!![])||_0x805303['message']&&_0x170f73[_0x3192(0x1e)]['includes'](_0x47dfbf['GkYuH']),_0xfd7a8=_0x313159[_0x3192(0x17)][_0x3192(0x26)],_0x48c13d=_0x3a2ce8['validation']['hasRefreshToken'];_0x162f56[_0x3192(0x20)](_0x3192(0x21),{'username':_0x4d6582,'needsReconnection':_0xfd7a8,'hasRefreshToken':_0x48c13d,'isTemporaryMode':_0x57b29a,'temporaryModeEnabled':(_0x126d33=_0x335f46['temporaryMode'])===null||_0x47dfbf['CwTqW'](_0x126d33,void 0x0)?void 0x0:_0x126d33[_0x3192(0x1d)],'message':_0x17f7ee[_0x3192(0x1e)]});if(_0x57b29a)return _0x487e3b[_0x3192(0x20)](_0x3192(0x27)),_0xdb2248['log'](_0x47dfbf['INDXI']),![];else return _0xfd7a8?(_0x15d640[_0x3192(0x20)](_0x47dfbf[_0x3192(0x28)]),!![]):(_0x194396[_0x3192(0x20)](_0x47dfbf[_0x3192(0x29)]),![]);}}else{if(_0x47dfbf[_0x3192(0x2a)]!==_0x3192(0x2b))return console[_0x3192(0x20)](_0x47dfbf['UJXDf']),![];else _0x56b1e6=_0x55b3d9[_0x3192(0x2c)],_0x453526=_0x47dfbf[_0x3192(0x2d)];}}}return![];}else{const _0x3c56ec=_0x47dfbf['mUuRP'][_0x3192(0x2e)]('|');let _0x3cfa39=0x0;while(!![]){switch(_0x3c56ec[_0x3cfa39++]){case'0':_0x30f9df[_0x3192(0x2f)](_0x47dfbf['FASkB']);continue;case'1':_0x27c266[_0x3192(0x2f)](_0x47dfbf[_0x3192(0x30)]);continue;case'2':_0x16fe92['error'](_0x47dfbf[_0x3192(0x31)]);continue;case'3':_0x193523['error']('❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect');continue;case'4':return![];case'5':_0x103845[_0x3192(0x2f)](_0x47dfbf['TWJUU']);continue;}break;}}}catch(_0x34abf6){return _0x47dfbf[_0x3192(0x24)](_0x47dfbf[_0x3192(0x32)],_0x47dfbf[_0x3192(0x32)])?(_0x21c48f[_0x3192(0x20)](_0x47dfbf[_0x3192(0x33)]),_0x46c343[_0x3192(0x20)](_0x47dfbf[_0x3192(0x34)]),!![]):(console[_0x3192(0x2f)](_0x47dfbf[_0x3192(0x35)],_0x34abf6),![]);}};function _0x465a(){const _0x37008d=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','https://www.googleapis.com/auth/youtube.readonly','profile','configure','xthhC','fOeXb','KIEsW','temporary\x20access\x20token\x20mode','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','Current\x20user\x20server\x20auth\x20code','3|2|1|0|5|4','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','💡\x20This\x20usually\x20means:','YjrOl','zymBh','UmgjH','XDAkk','xYpjl','YmeVo','XkDHq','aeebl','/youtube/validate-connection/','json','validation','ccNyS','RViRl','isTemporaryMode','DmiSY','temporaryMode','enabled','message','hasRefreshToken','log','🔍\x20YouTube\x20migration\x20check:','ZXVQF','MBRwx','bPIaB','CwTqW','needsReconnection','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','PkbYO','UJXDf','EShUe','cATVd','serverAuthCode','QBzid','split','error','upMDN','IwuOn','ehyea','fLPeF','CqmEC','iAUmJ','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','xZHli','📋\x20Complete\x20YouTube\x20status\x20response:','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','full','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','limited','none','JLtOU','RnYbs','qqfVR','BASE_URL','tNzim','success','VtUok','QhNEi','FfLys','EeaLh','hDxJt','eKWeL','temporary','xMePX','fyzEj','kmUnz','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','❓\x20YouTube\x20connection\x20status\x20unclear','XNwGF','hEwbS','OXcce','DWXDS','oOfUM','ExUJR','FkDXl','YouTube\x20Connection\x20Upgrade','To\x20improve\x20your\x20training\x20experience,\x20we\x20need\x20to\x20upgrade\x20your\x20YouTube\x20connection.\x20This\x20prevents\x20interruptions\x20during\x20data\x20collection.\x0a\x0a✅\x20One-time\x20upgrade\x0a✅\x20Takes\x2030\x20seconds\x0a✅\x20No\x20data\x20loss\x0a\x0aUpgrade\x20now?','cancel','bTeGf','Wkpwj','htEqx','alert','jVUPh','EOquv','HfQHX','default','✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','ℹ️\x20No\x20token\x20cache\x20to\x20clear','None','XmNwC','🔍\x20Token\x20Analysis:','MISSING!','jbXVr','2|3|1|5|0|4','...','onairos_jwt_token','enoch_token','youtube','YouTube\x20Channel','📤\x20Sending\x20migration\x20payload\x20to\x20backend...','ifIRH','❌\x20YouTube\x20migration\x20failed:','Unknown\x20error','psPjc','miQIt','signOut','JZfLA','clearCachedAccessToken','✅\x20Token\x20cache\x20cleared','ZDwvE','hasPlayServices','🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','getTokens','getCurrentUser','FiwAw','Server\x20auth\x20code\x20from\x20sign-in','yjSPV','NxEUe','DHoWn','accessToken','idToken','XbrYS','Ljnkt','vJGmC','user','mLsmN','ZFGpz','pUPCz','YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','VCcDv','jNWKl','dbNxg','PSTvc','zAjHk','getItem','iPyZW','kobnl','warn','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','OvVul','name','NWSkB','email','CjBhb','zuHua','SXuVn','LAkgJ','CIaql','eyUdJ','Bearer\x20','stringify','tzFHE','✅\x20YouTube\x20migration\x20successful','PnGGS','hllHT','crFzj','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','AzRGz','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','HyAwC','TBbCf','WRpLw','XPbXp','toISOString','usFCQ','cbfyx','nwSaO','connectedAt','PLrKv','TxnWn','ENIYE','agJce','COYPA','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found','❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','vmMmf','DxCwL','nkYyH','RPKIg','hasAccessToken','cZmpg','AGUvM','GQoyq','LOyqf','ogrYQ','rdPPg','pmZiE','ulOno','gRXmZ','Great!','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','IfDGn','ℹ️\x20User\x20declined\x20YouTube\x20migration','Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','dhyYV','Upgrade\x20Failed\x20❌','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','RTCLQ','Mppjs','YXvYa','dhfMC','ebkhW','fvpSW','jwyhp','NHWJn','sNRGW','BTiZL','SxZJp','SvPsE','tBYPo','mAstk','rEqBs','xLlsE','uJocc','ezwBe','zIWBu','🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:','pneWU'];_0x465a=function(){return _0x37008d;};return _0x465a();}export const getYouTubeConnectionStatus=async _0x2f8bb2=>{const _0x4a2166={'kmUnz':_0x3192(0x36),'OXcce':_0x3192(0x27),'DWXDS':_0x3192(0x37),'JLtOU':function(_0x548b51,_0xcc27a0){return _0x548b51!==_0xcc27a0;},'RnYbs':'LFRIZ','YqPSI':_0x3192(0x38),'qqfVR':function(_0x3d8bf3,_0x4528c2){return _0x3d8bf3(_0x4528c2);},'tNzim':_0x3192(0x39),'VtUok':function(_0x114db9,_0xa273bb){return _0x114db9===_0xa273bb;},'QhNEi':function(_0x8d40db,_0xa334c7){return _0x8d40db===_0xa334c7;},'FfLys':function(_0x312b9f,_0x1f89bf){return _0x312b9f===_0x1f89bf;},'EeaLh':_0x3192(0x7),'hDxJt':function(_0x56205f,_0x163ce9){return _0x56205f===_0x163ce9;},'eKWeL':_0x3192(0x3a),'Vkpbo':_0x3192(0x3b),'PVHaB':_0x3192(0x3c),'nEVtg':_0x3192(0x3d),'aeBDw':_0x3192(0x3e),'XNwGF':_0x3192(0x3f),'hEwbS':'❌\x20No\x20YouTube\x20connection\x20found','oOfUM':'❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','ezPfc':function(_0x28aa5a,_0x543e89){return _0x28aa5a(_0x543e89);}};try{if(_0x4a2166[_0x3192(0x40)](_0x4a2166[_0x3192(0x41)],_0x4a2166['YqPSI'])){const _0x42185e=await _0x4a2166[_0x3192(0x42)](fetch,API_CONFIG[_0x3192(0x43)]+_0x3192(0x15)+_0x2f8bb2),_0x8dc1ad=await _0x42185e[_0x3192(0x16)]();console[_0x3192(0x20)](_0x4a2166[_0x3192(0x44)],_0x8dc1ad);if(_0x8dc1ad[_0x3192(0x45)]&&_0x8dc1ad[_0x3192(0x17)]){var _0x522821,_0x28725f;const _0x1fd698=_0x4a2166['VtUok'](_0x4a2166['VtUok'](_0x522821=_0x8dc1ad[_0x3192(0x17)],null)||_0x4a2166['VtUok'](_0x522821,void 0x0)?void 0x0:_0x522821[_0x3192(0x1a)],!![])||_0x4a2166[_0x3192(0x46)](_0x4a2166[_0x3192(0x47)](_0x28725f=_0x8dc1ad['temporaryMode'],null)||_0x4a2166[_0x3192(0x48)](_0x28725f,void 0x0)?void 0x0:_0x28725f[_0x3192(0x1d)],!![])||_0x8dc1ad['isTemporaryMode']===!![]||_0x8dc1ad[_0x3192(0x1e)]&&_0x8dc1ad[_0x3192(0x1e)]['includes'](_0x4a2166[_0x3192(0x49)]),_0x547eb0=_0x8dc1ad['validation'][_0x3192(0x1f)]===!![],_0x210a94=_0x4a2166[_0x3192(0x4a)](_0x8dc1ad['validation'][_0x3192(0x26)],!![]);if(_0x1fd698)return console[_0x3192(0x20)](_0x4a2166[_0x3192(0x4b)]),console[_0x3192(0x20)](_0x4a2166['Vkpbo']),{'isReady':!![],'mode':_0x3192(0x4c),'needsMigration':![],'trainingReady':!![],'details':_0x8dc1ad};else{if(_0x547eb0)return _0x4a2166[_0x3192(0x4a)](_0x3192(0x4d),_0x3192(0x4e))?(_0xcccfdb[_0x3192(0x20)](_0x4a2166[_0x3192(0x4f)]),![]):(console['log'](_0x3192(0x50)),{'isReady':!![],'mode':_0x4a2166['PVHaB'],'needsMigration':![],'trainingReady':!![],'details':_0x8dc1ad});else return _0x210a94?(console[_0x3192(0x20)](_0x4a2166['nEVtg']),{'isReady':![],'mode':_0x4a2166['aeBDw'],'needsMigration':!![],'trainingReady':![],'details':_0x8dc1ad}):(console[_0x3192(0x20)](_0x3192(0x51)),{'isReady':![],'mode':_0x4a2166[_0x3192(0x52)],'needsMigration':![],'trainingReady':![],'details':_0x8dc1ad});}}return console[_0x3192(0x20)](_0x4a2166[_0x3192(0x53)]),{'isReady':![],'mode':_0x4a2166[_0x3192(0x52)],'needsMigration':![],'trainingReady':![],'details':_0x8dc1ad};}else return _0x54fc0d[_0x3192(0x20)](_0x4a2166[_0x3192(0x54)]),_0x2ea3dd[_0x3192(0x20)](_0x4a2166[_0x3192(0x55)]),![];}catch(_0x1dab86){return console[_0x3192(0x2f)](_0x4a2166[_0x3192(0x56)],_0x1dab86),{'isReady':![],'mode':_0x4a2166['XNwGF'],'needsMigration':![],'trainingReady':![],'details':{'error':_0x1dab86 instanceof Error?_0x1dab86['message']:_0x4a2166['ezPfc'](String,_0x1dab86)}};}};const showYouTubeMigrationPrompt=async()=>{const _0x40c33b={'bTeGf':function(_0x3a2643,_0x1e97cf){return _0x3a2643===_0x1e97cf;},'Wkpwj':_0x3192(0x57),'htEqx':_0x3192(0x58),'KhldJ':_0x3192(0x59),'AyDgE':_0x3192(0x5a),'jVUPh':'Skip\x20for\x20Now','EOquv':_0x3192(0x5b),'HfQHX':'Upgrade\x20Now'};return new Promise(_0xaeef4b=>{const _0x3bc30a={'OAwJs':_0x3192(0x3f)};if(_0x40c33b[_0x3192(0x5c)](_0x40c33b[_0x3192(0x5d)],_0x40c33b[_0x3192(0x5e)]))return _0x42b696[_0x3192(0x20)](_0x3192(0x51)),{'isReady':![],'mode':_0x3bc30a['OAwJs'],'needsMigration':![],'trainingReady':![],'details':_0x3f2fbf};else Alert[_0x3192(0x5f)](_0x40c33b['KhldJ'],_0x40c33b['AyDgE'],[{'text':_0x40c33b[_0x3192(0x60)],'style':_0x40c33b[_0x3192(0x61)],'onPress':()=>_0xaeef4b(![])},{'text':_0x40c33b[_0x3192(0x62)],'style':_0x3192(0x63),'onPress':()=>_0xaeef4b(!![])}]);});},forceYouTubeReconnection=async _0x51446e=>{const _0x3f3982={'yjSPV':_0x3192(0x3e),'pUPCz':'Upgrade\x20Failed\x20❌','uUMRW':_0x3192(0x63),'psPjc':'🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','miQIt':function(_0x422e25){return _0x422e25();},'JZfLA':_0x3192(0x64),'ZDwvE':_0x3192(0x65),'XgAQB':_0x3192(0x66),'nWMnh':_0x3192(0x67),'NxEUe':function(_0x28bdaf,_0x2fa98a){return _0x28bdaf!==_0x2fa98a;},'DHoWn':_0x3192(0x68),'XbrYS':function(_0xfda65d,_0x5a4487){return _0xfda65d!==_0x5a4487;},'Ljnkt':'Available','vJGmC':_0x3192(0x69),'mLsmN':function(_0x23b531,_0x463f7f){return _0x23b531===_0x463f7f;},'ZFGpz':_0x3192(0x6a),'QWcaT':_0x3192(0x6b),'evaZc':'\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','VCcDv':'❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','jNWKl':_0x3192(0xc),'WHKOy':'\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','dbNxg':'✅\x20Got\x20refresh\x20token\x20after\x20consent:','PSTvc':function(_0x37a188,_0x2f1a7f){return _0x37a188+_0x2f1a7f;},'zAjHk':_0x3192(0x6c),'qoihp':'🔑\x20Refresh\x20token\x20source:','kIdjh':_0x3192(0x6d),'iPyZW':_0x3192(0x6e),'kobnl':'auth_token','eyUdJ':'migration_token_placeholder','OvVul':_0x3192(0x6f),'NWSkB':_0x3192(0x70),'CjBhb':function(_0x394dcb,_0x412af8){return _0x394dcb===_0x412af8;},'zuHua':function(_0x2f5e17,_0x376f81){return _0x2f5e17===_0x376f81;},'SXuVn':_0x3192(0x71),'LAkgJ':function(_0x4f6362,_0x20f5c3,_0x228f4b){return _0x4f6362(_0x20f5c3,_0x228f4b);},'CIaql':'your-api-key','tzFHE':_0x3192(0x72),'PnGGS':'❌\x20Backend\x20rejected\x20YouTube\x20migration:','ioFJO':function(_0x19d11d,_0x13d7dd,_0x1fefc7,_0x3dabfd){return _0x19d11d(_0x13d7dd,_0x1fefc7,_0x3dabfd);},'FWTjY':_0x3192(0x73),'ZXBNp':function(_0x2c28da,_0x41c9da,_0x5a964e,_0x4c549f){return _0x2c28da(_0x41c9da,_0x5a964e,_0x4c549f);},'hllHT':function(_0x57fe20,_0x3882a2){return _0x57fe20 instanceof _0x3882a2;},'crFzj':_0x3192(0x74)};try{var _0x597d9c,_0x39cbf8,_0x5373a5,_0x23b64f;console[_0x3192(0x20)](_0x3f3982[_0x3192(0x75)],_0x51446e),_0x3f3982[_0x3192(0x76)](configureGoogleSignInForRefreshTokens),await GoogleSignin[_0x3192(0x77)](),console['log'](_0x3f3982[_0x3192(0x78)]);try{const _0x430147=await GoogleSignin['getTokens']();_0x430147['accessToken']&&(await GoogleSignin[_0x3192(0x79)](_0x430147['accessToken']),console[_0x3192(0x20)](_0x3192(0x7a)));}catch(_0x356436){console[_0x3192(0x20)](_0x3f3982[_0x3192(0x7b)]);}await GoogleSignin[_0x3192(0x7c)](),console[_0x3192(0x20)](_0x3192(0x7d));const _0x44999e=await GoogleSignin['signIn'](),_0xce9551=await GoogleSignin[_0x3192(0x7e)](),_0x54c355=await GoogleSignin[_0x3192(0x7f)]();let _0x13b150=null,_0x747afd=_0x3f3982['XgAQB'];if(_0x44999e[_0x3192(0x2c)]){if(_0x3f3982['nWMnh']!==_0x3192(0x80))_0x13b150=_0x44999e[_0x3192(0x2c)],_0x747afd=_0x3192(0x81);else return _0x1a1191[_0x3192(0x20)](_0x3192(0x3d)),{'isReady':![],'mode':_0x3f3982[_0x3192(0x82)],'needsMigration':!![],'trainingReady':![],'details':_0x5a9ca9};}else _0x3f3982[_0x3192(0x83)](_0x54c355,null)&&_0x54c355!==void 0x0&&_0x54c355[_0x3192(0x2c)]&&(_0x13b150=_0x54c355['serverAuthCode'],_0x747afd=_0x3192(0x9));console[_0x3192(0x20)](_0x3f3982[_0x3192(0x84)],{'hasAccessToken':!!_0xce9551[_0x3192(0x85)],'hasIdToken':!!_0xce9551[_0x3192(0x86)],'hasServerAuthCode':!!_0x44999e['serverAuthCode'],'hasCurrentUserAuthCode':!!(_0x54c355!==null&&_0x3f3982[_0x3192(0x87)](_0x54c355,void 0x0)&&_0x54c355[_0x3192(0x2c)]),'refreshTokenSource':_0x747afd,'finalRefreshToken':_0x13b150?_0x3f3982[_0x3192(0x88)]:_0x3f3982[_0x3192(0x89)],'userEmail':(_0x597d9c=_0x44999e[_0x3192(0x8a)])===null||_0x3f3982[_0x3192(0x8b)](_0x597d9c,void 0x0)?void 0x0:_0x597d9c['email']});if(!_0x13b150){if(_0x3f3982[_0x3192(0x8c)]!==_0x3f3982['ZFGpz'])return Alert[_0x3192(0x5f)](_0x3f3982[_0x3192(0x8d)],_0x3192(0x8e),[{'text':'OK','style':_0x3f3982['uUMRW']}]),![];else{const _0x35b3fc=_0x3f3982['QWcaT'][_0x3192(0x2e)]('|');let _0x2a1757=0x0;while(!![]){switch(_0x35b3fc[_0x2a1757++]){case'0':console[_0x3192(0x2f)](_0x3f3982['evaZc']);continue;case'1':console[_0x3192(0x2f)]('\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration');continue;case'2':console['error'](_0x3f3982[_0x3192(0x8f)]);continue;case'3':console['error'](_0x3f3982[_0x3192(0x90)]);continue;case'4':return![];case'5':console[_0x3192(0x2f)](_0x3f3982['WHKOy']);continue;}break;}}}console[_0x3192(0x20)](_0x3f3982[_0x3192(0x91)],_0x3f3982[_0x3192(0x92)](_0x13b150['substring'](0x0,0x14),_0x3f3982[_0x3192(0x93)])),console[_0x3192(0x20)](_0x3f3982['qoihp'],_0x747afd);let _0x592fe8=await AsyncStorage[_0x3192(0x94)](_0x3f3982['kIdjh'])||await AsyncStorage[_0x3192(0x94)](_0x3f3982[_0x3192(0x95)])||await AsyncStorage[_0x3192(0x94)](_0x3f3982[_0x3192(0x96)]);!_0x592fe8&&(console[_0x3192(0x97)](_0x3192(0x98)),_0x592fe8=_0x3f3982['eyUdJ']);const _0x1655e8={'session':{'username':_0x51446e,'platform':_0x3f3982[_0x3192(0x99)],'channelName':((_0x39cbf8=_0x44999e['user'])===null||_0x3f3982[_0x3192(0x8b)](_0x39cbf8,void 0x0)?void 0x0:_0x39cbf8[_0x3192(0x9a)])||_0x3f3982[_0x3192(0x9b)],'channelId':null},'googleUser':_0x44999e[_0x3192(0x8a)],'accessToken':_0xce9551['accessToken'],'idToken':_0xce9551[_0x3192(0x86)],'refreshToken':_0x13b150,'serverAuthCode':_0x44999e['serverAuthCode'],'userAccountInfo':{'username':_0x51446e,'email':_0x3f3982[_0x3192(0x8b)](_0x5373a5=_0x44999e['user'],null)||_0x3f3982[_0x3192(0x8b)](_0x5373a5,void 0x0)?void 0x0:_0x5373a5[_0x3192(0x9c)],'authToken':_0x592fe8,'channelName':(_0x3f3982[_0x3192(0x9d)](_0x23b64f=_0x44999e['user'],null)||_0x3f3982[_0x3192(0x9e)](_0x23b64f,void 0x0)?void 0x0:_0x23b64f['name'])||'YouTube\x20Channel','channelId':null}};console[_0x3192(0x20)](_0x3f3982[_0x3192(0x9f)]);const _0x268b61=await _0x3f3982[_0x3192(0xa0)](fetch,API_CONFIG[_0x3192(0x43)]+'/youtube/native-auth',{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0x3f3982[_0x3192(0xa1)],..._0x3f3982[_0x3192(0x87)](_0x592fe8,_0x3f3982[_0x3192(0xa2)])&&{'Authorization':_0x3192(0xa3)+_0x592fe8}},'body':JSON[_0x3192(0xa4)](_0x1655e8)}),_0x473983=await _0x268b61[_0x3192(0x16)]();return _0x473983[_0x3192(0x45)]?_0x3f3982[_0x3192(0xa5)]!==_0x3f3982[_0x3192(0xa5)]?(_0x24d0d9['log']('✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly'),![]):(console[_0x3192(0x20)](_0x3192(0xa6)),await trackMigrationAttempt(_0x51446e,!![]),!![]):(console['error'](_0x3f3982[_0x3192(0xa7)],_0x473983[_0x3192(0x2f)]),await _0x3f3982['ioFJO'](trackMigrationAttempt,_0x51446e,![],_0x473983[_0x3192(0x2f)]),![]);}catch(_0x3ce877){return console['error'](_0x3f3982['FWTjY'],_0x3ce877),await _0x3f3982['ZXBNp'](trackMigrationAttempt,_0x51446e,![],_0x3f3982[_0x3192(0xa8)](_0x3ce877,Error)?_0x3ce877[_0x3192(0x1e)]:_0x3f3982[_0x3192(0xa9)]),![];}},trackMigrationAttempt=async(_0xdbb515,_0x495bb4,_0x2cabf9)=>{const _0x47627c={'HyAwC':function(_0x1c4333,_0x9d401b){return _0x1c4333===_0x9d401b;},'usFCQ':function(_0x248e0b,_0x17609c){return _0x248e0b===_0x17609c;},'cbfyx':function(_0x3810a0,_0x5d8b81){return _0x3810a0===_0x5d8b81;},'nwSaO':function(_0x2906d2,_0x433096){return _0x2906d2===_0x433096;},'EjsAB':_0x3192(0xaa),'PLrKv':_0x3192(0x36),'TxnWn':function(_0x5594d2,_0x34837f){return _0x5594d2&&_0x34837f;},'ENIYE':'⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','agJce':_0x3192(0xab),'TBbCf':_0x3192(0xac),'WRpLw':function(_0x3e2e3b,_0x47cfa7,_0x12a95e){return _0x3e2e3b(_0x47cfa7,_0x12a95e);},'XPbXp':function(_0x587dd9,_0x5baaa7){return _0x587dd9||_0x5baaa7;},'COYPA':_0x3192(0xad)};try{if(_0x47627c[_0x3192(0xae)](_0x47627c[_0x3192(0xaf)],_0x47627c[_0x3192(0xaf)]))await _0x47627c[_0x3192(0xb0)](fetch,API_CONFIG[_0x3192(0x43)]+'/youtube/migration-status',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x3192(0xa4)]({'username':_0xdbb515,'success':_0x495bb4,'error':_0x47627c[_0x3192(0xb1)](_0x2cabf9,null),'timestamp':new Date()[_0x3192(0xb2)]()})});else{var _0x20326d,_0x36f267;const _0x3cc97c=_0x47627c[_0x3192(0xae)](_0x47627c[_0x3192(0xae)](_0x20326d=_0x5c9fc1[_0x3192(0x17)],null)||_0x47627c['HyAwC'](_0x20326d,void 0x0)?void 0x0:_0x20326d['isTemporaryMode'],!![])||(_0x47627c[_0x3192(0xb3)](_0x36f267=_0xf4e036[_0x3192(0x1c)],null)||_0x36f267===void 0x0?void 0x0:_0x36f267['enabled'])===!![]||_0x47627c[_0x3192(0xb3)](_0x5c8867['isTemporaryMode'],!![]),_0x2339b4=_0x47627c[_0x3192(0xb4)](_0x132e71[_0x3192(0x17)]['hasAccessToken'],!![]),_0x45dc7e=_0x2620c9[_0x3192(0x17)]['hasRefreshToken']===!![],_0x595194=_0x47627c[_0x3192(0xb5)](_0x50246d[_0x3192(0x17)][_0x3192(0x26)],!![]);_0x4b35d6[_0x3192(0x20)](_0x47627c['EjsAB'],{'username':_0x33bbde,'hasAccessToken':_0x2339b4,'hasRefreshToken':_0x45dc7e,'needsReconnection':_0x595194,'isTemporaryMode':_0x3cc97c,'connectedAt':_0x302ec4[_0x3192(0x17)][_0x3192(0xb6)]});if(_0x3cc97c)return _0x24fb44[_0x3192(0x20)](_0x47627c[_0x3192(0xb7)]),![];else return _0x47627c[_0x3192(0xb8)](_0x2339b4,!_0x45dc7e)&&_0x595194?(_0x335a9f['log'](_0x47627c[_0x3192(0xb9)]),!![]):(_0xf06156[_0x3192(0x20)](_0x47627c[_0x3192(0xba)]),![]);}}catch(_0x137072){console['error'](_0x47627c[_0x3192(0xbb)],_0x137072);}};function _0x3192(_0x465ae4,_0x31925c){_0x465ae4=_0x465ae4-0x0;const _0x1658ed=_0x465a();let _0x5c94b4=_0x1658ed[_0x465ae4];return _0x5c94b4;}export const shouldShowYouTubeMigrationWarning=async _0x384ba9=>{const _0x574e43={'ulOno':_0x3192(0xbc),'vmMmf':_0x3192(0xbd),'GWIHY':function(_0x58bae9,_0x1f450d){return _0x58bae9(_0x1f450d);},'DxCwL':function(_0x286dd7,_0x74b11f){return _0x286dd7===_0x74b11f;},'nkYyH':function(_0x2c9dd7,_0x5e9fc0){return _0x2c9dd7===_0x5e9fc0;},'RPKIg':function(_0x3255a2,_0x45f924){return _0x3255a2===_0x45f924;},'cZmpg':function(_0x2fac8d,_0x3dfed8){return _0x2fac8d===_0x3dfed8;},'AGUvM':function(_0x24f702,_0x1bcab6){return _0x24f702===_0x1bcab6;},'GQoyq':_0x3192(0xaa),'LOyqf':function(_0x3fcafd,_0x10d71f){return _0x3fcafd&&_0x10d71f;},'ogrYQ':_0x3192(0xbe),'Oyaju':'✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','gRXmZ':_0x3192(0xbf),'ISFkc':_0x3192(0xc0)};try{console[_0x3192(0x20)](_0x574e43[_0x3192(0xc1)],_0x384ba9);const _0x3a446a=await _0x574e43['GWIHY'](fetch,API_CONFIG[_0x3192(0x43)]+_0x3192(0x15)+_0x384ba9),_0x9fa81a=await _0x3a446a[_0x3192(0x16)]();if(_0x9fa81a[_0x3192(0x45)]&&_0x9fa81a['validation']){var _0x15002a,_0x49db07;const _0x48a180=_0x574e43[_0x3192(0xc2)]((_0x15002a=_0x9fa81a[_0x3192(0x17)])===null||_0x574e43[_0x3192(0xc3)](_0x15002a,void 0x0)?void 0x0:_0x15002a['isTemporaryMode'],!![])||_0x574e43[_0x3192(0xc2)]((_0x49db07=_0x9fa81a[_0x3192(0x1c)])===null||_0x574e43[_0x3192(0xc4)](_0x49db07,void 0x0)?void 0x0:_0x49db07['enabled'],!![])||_0x574e43[_0x3192(0xc2)](_0x9fa81a['isTemporaryMode'],!![]),_0x2ec602=_0x9fa81a[_0x3192(0x17)][_0x3192(0xc5)]===!![],_0x26a9bc=_0x574e43[_0x3192(0xc6)](_0x9fa81a['validation'][_0x3192(0x1f)],!![]),_0x2668e5=_0x574e43[_0x3192(0xc7)](_0x9fa81a[_0x3192(0x17)][_0x3192(0x26)],!![]);console[_0x3192(0x20)](_0x574e43[_0x3192(0xc8)],{'username':_0x384ba9,'hasAccessToken':_0x2ec602,'hasRefreshToken':_0x26a9bc,'needsReconnection':_0x2668e5,'isTemporaryMode':_0x48a180,'connectedAt':_0x9fa81a['validation'][_0x3192(0xb6)]});if(_0x48a180)return console[_0x3192(0x20)](_0x3192(0x36)),![];else return _0x574e43[_0x3192(0xc9)](_0x2ec602,!_0x26a9bc)&&_0x2668e5?(console['log'](_0x574e43[_0x3192(0xca)]),!![]):_0x3192(0xcb)!==_0x3192(0xcc)?(console[_0x3192(0x20)](_0x574e43['Oyaju']),![]):(_0x166be8['log'](_0x574e43[_0x3192(0xcd)]),!![]);}return console[_0x3192(0x20)](_0x574e43[_0x3192(0xce)]),![];}catch(_0x5c5d98){return console['error'](_0x574e43['ISFkc'],_0x5c5d98),![];}};export const checkAndFixYouTubeConnection=async _0x370ee4=>{const _0x23631f={'rVaUI':_0x3192(0x50),'YXvYa':'full','BTiZL':'🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','ezwBe':'YouTube\x20Upgraded!\x20✅','mAstk':_0x3192(0xcf),'rEqBs':_0x3192(0x63),'RTCLQ':function(_0x379590,_0x48c59c){return _0x379590!==_0x48c59c;},'Mppjs':'pCxQm','gfMAM':'🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','dhfMC':'🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','VwJuH':_0x3192(0xd0),'ebkhW':function(_0x48bfb4,_0x2f4cf3){return _0x48bfb4(_0x2f4cf3);},'fvpSW':_0x3192(0xd1),'jwyhp':function(_0x34b751){return _0x34b751();},'NHWJn':function(_0x5cb195,_0xedc577){return _0x5cb195===_0xedc577;},'GdMLa':_0x3192(0xd2),'sNRGW':'KubgX','dRwHl':_0x3192(0xd3),'SxZJp':function(_0x54cdda,_0x5078ca){return _0x54cdda(_0x5078ca);},'nMzRG':'oaZVz','tBYPo':_0x3192(0xd4),'xLlsE':'TgJNy','UtYGK':_0x3192(0xd5),'uJocc':_0x3192(0xd6),'IiLAA':_0x3192(0x8e),'zIWBu':_0x3192(0xd7)};try{if(_0x23631f[_0x3192(0xd8)](_0x23631f[_0x3192(0xd9)],_0x23631f[_0x3192(0xd9)]))return _0x55c34e[_0x3192(0x20)](_0x23631f['rVaUI']),{'isReady':!![],'mode':_0x23631f[_0x3192(0xda)],'needsMigration':![],'trainingReady':!![],'details':_0x3060a6};else{console[_0x3192(0x20)](_0x23631f['gfMAM'],_0x370ee4);const _0x46c6c1=await shouldShowYouTubeMigrationWarning(_0x370ee4);if(!_0x46c6c1)return console[_0x3192(0x20)](_0x23631f[_0x3192(0xdb)]),console[_0x3192(0x20)](_0x23631f['VwJuH']),!![];const _0x5c6a41=await _0x23631f[_0x3192(0xdc)](checkYouTubeMigrationNeeded,_0x370ee4);if(!_0x5c6a41)return console[_0x3192(0x20)](_0x3192(0xbc)),!![];console[_0x3192(0x20)](_0x23631f[_0x3192(0xdd)]);const _0x4cd889=await _0x23631f[_0x3192(0xde)](showYouTubeMigrationPrompt);if(!_0x4cd889)return _0x23631f[_0x3192(0xdf)](_0x23631f['GdMLa'],_0x23631f[_0x3192(0xe0)])?(_0x11c125['log'](_0x23631f[_0x3192(0xe1)]),!![]):(console[_0x3192(0x20)](_0x23631f['dRwHl']),![]);const _0x1c7775=await _0x23631f[_0x3192(0xe2)](forceYouTubeReconnection,_0x370ee4);return _0x1c7775?_0x23631f['NHWJn'](_0x3192(0xe3),_0x23631f['nMzRG'])?(_0x507a1c[_0x3192(0x2f)](_0x3192(0xd7),_0x261a61),![]):(Alert[_0x3192(0x5f)]('YouTube\x20Upgraded!\x20✅',_0x23631f[_0x3192(0xe4)],[{'text':_0x23631f[_0x3192(0xe5)],'style':_0x23631f[_0x3192(0xe6)]}]),!![]):_0x23631f[_0x3192(0xd8)](_0x23631f[_0x3192(0xe7)],_0x23631f['UtYGK'])?(Alert[_0x3192(0x5f)](_0x23631f[_0x3192(0xe8)],_0x23631f['IiLAA'],[{'text':'OK','style':_0x3192(0x63)}]),![]):(Alert[_0x3192(0x5f)](_0x23631f[_0x3192(0xe9)],_0x3192(0xd4),[{'text':_0x23631f[_0x3192(0xe5)],'style':_0x23631f[_0x3192(0xe6)]}]),!![]);}}catch(_0x1ed05b){return console['error'](_0x23631f[_0x3192(0xea)],_0x1ed05b),![];}};export const reconnectYouTube=async _0x432e6c=>{const _0x313e12={'pneWU':_0x3192(0xeb)};return console[_0x3192(0x20)](_0x313e12[_0x3192(0xec)],_0x432e6c),await forceYouTubeReconnection(_0x432e6c);};
1
+ function _0x4b8d(_0x725da6,_0x4b8d47){_0x725da6=_0x725da6-0x0;const _0x393fd9=_0x725d();let _0x5616a0=_0x393fd9[_0x725da6];return _0x5616a0;}import{GoogleSignin}from'@react-native-google-signin/google-signin';import{Alert}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const WEB_CLIENT_ID=_0x4b8d(0x0),IOS_CLIENT_ID=_0x4b8d(0x0),configureGoogleSignInForRefreshTokens=()=>{const _0x2e225a={'qwsvs':'https://www.googleapis.com/auth/youtube.readonly','FmLfg':'openid','LjxAI':_0x4b8d(0x1)};GoogleSignin[_0x4b8d(0x2)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x2e225a[_0x4b8d(0x3)],_0x2e225a[_0x4b8d(0x4)],_0x2e225a[_0x4b8d(0x5)],_0x4b8d(0x6)],'hostedDomain':'','accountName':''});};export const checkYouTubeMigrationNeeded=async _0x144b07=>{const _0x1d4515={'bggGh':_0x4b8d(0x7),'EOipS':function(_0x2585ec,_0x52d451){return _0x2585ec===_0x52d451;},'gTVUv':function(_0x40c631,_0x1e8176){return _0x40c631===_0x1e8176;},'Vpxcg':function(_0x25748c,_0x3110a2){return _0x25748c===_0x3110a2;},'PtfSU':function(_0x157778,_0x217287){return _0x157778===_0x217287;},'kJBvM':_0x4b8d(0x8),'ognYc':_0x4b8d(0x9),'gRKzY':'🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','NDtzN':'NEZuf','HfjRD':'✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','hFyao':function(_0x27dcaf,_0x6df21a){return _0x27dcaf!==_0x6df21a;},'nWrUt':_0x4b8d(0xa),'Dandp':_0x4b8d(0xb),'oufai':_0x4b8d(0xc)};try{const _0x3fb48a=await fetch(API_CONFIG[_0x4b8d(0xd)]+_0x4b8d(0xe)+_0x144b07),_0x3ab737=await _0x3fb48a[_0x4b8d(0xf)]();if(_0x3ab737[_0x4b8d(0x10)]&&_0x3ab737[_0x4b8d(0x11)]){var _0x23645d,_0x52a57b,_0x5679c3;const _0x1abc5f=_0x1d4515['EOipS'](_0x1d4515[_0x4b8d(0x12)](_0x23645d=_0x3ab737[_0x4b8d(0x11)],null)||_0x1d4515[_0x4b8d(0x12)](_0x23645d,void 0x0)?void 0x0:_0x23645d[_0x4b8d(0x13)],!![])||(_0x1d4515[_0x4b8d(0x14)](_0x52a57b=_0x3ab737[_0x4b8d(0x15)],null)||_0x1d4515[_0x4b8d(0x12)](_0x52a57b,void 0x0)?void 0x0:_0x52a57b[_0x4b8d(0x16)])===!![]||_0x1d4515[_0x4b8d(0x17)](_0x3ab737[_0x4b8d(0x13)],!![])||_0x3ab737[_0x4b8d(0x18)]&&_0x3ab737[_0x4b8d(0x18)]['includes'](_0x4b8d(0x19)),_0x4dc2f2=_0x3ab737[_0x4b8d(0x11)]['needsReconnection'],_0x4cdabb=_0x3ab737['validation']['hasRefreshToken'];console[_0x4b8d(0x1a)](_0x4b8d(0x1b),{'username':_0x144b07,'needsReconnection':_0x4dc2f2,'hasRefreshToken':_0x4cdabb,'isTemporaryMode':_0x1abc5f,'temporaryModeEnabled':_0x1d4515[_0x4b8d(0x17)](_0x5679c3=_0x3ab737[_0x4b8d(0x15)],null)||_0x1d4515[_0x4b8d(0x1c)](_0x5679c3,void 0x0)?void 0x0:_0x5679c3[_0x4b8d(0x16)],'message':_0x3ab737['message']});if(_0x1abc5f)return console[_0x4b8d(0x1a)](_0x4b8d(0x7)),console[_0x4b8d(0x1a)](_0x1d4515['kJBvM']),![];else return _0x4dc2f2?_0x4b8d(0x9)!==_0x1d4515[_0x4b8d(0x1d)]?(_0x21b714[_0x4b8d(0x1a)](_0x4b8d(0x1e)),![]):(console[_0x4b8d(0x1a)](_0x1d4515[_0x4b8d(0x1f)]),!![]):_0x1d4515['NDtzN']==='NEZuf'?(console[_0x4b8d(0x1a)](_0x1d4515[_0x4b8d(0x20)]),![]):(_0x1dd509['log'](_0x4b8d(0x21)),!![]);}return![];}catch(_0x2f39a1){return _0x1d4515[_0x4b8d(0x22)](_0x1d4515[_0x4b8d(0x23)],_0x1d4515[_0x4b8d(0x24)])?(console[_0x4b8d(0x25)](_0x1d4515['oufai'],_0x2f39a1),![]):(_0x2ea87e['log'](_0x1d4515['bggGh']),_0x53765c[_0x4b8d(0x1a)](_0x4b8d(0x8)),![]);}};export const getYouTubeConnectionStatus=async _0x3c2243=>{const _0x517199={'obZfB':'migration_token_placeholder','oLKLT':function(_0x20ccb7,_0x5a9258){return _0x20ccb7===_0x5a9258;},'suFKb':function(_0x5c4909,_0x5823e1){return _0x5c4909===_0x5823e1;},'qVGhM':function(_0x1268c2,_0x4dda93){return _0x1268c2===_0x4dda93;},'ZHqvN':function(_0x28a487,_0x19519e){return _0x28a487===_0x19519e;},'iqLoa':function(_0x25cd8a,_0x48eddb){return _0x25cd8a===_0x48eddb;},'UauFl':function(_0x59bbe1,_0x69b7b0){return _0x59bbe1===_0x69b7b0;},'kscvY':function(_0x464718,_0x24ead5){return _0x464718===_0x24ead5;},'iWiOP':_0x4b8d(0x26),'CiLzB':_0x4b8d(0x27),'DICIb':function(_0x48573a,_0x352d95){return _0x48573a&&_0x352d95;},'hXLhn':_0x4b8d(0x28),'LJXHC':_0x4b8d(0x29),'XCAEP':'ℹ️\x20No\x20token\x20cache\x20to\x20clear','aInXj':_0x4b8d(0x2a),'izFcx':function(_0x1dca7c,_0x345d73){return _0x1dca7c===_0x345d73;},'epZSr':function(_0x262f07,_0x531dda){return _0x262f07===_0x531dda;},'xBLRx':function(_0x7c9b0,_0x1504de){return _0x7c9b0===_0x1504de;},'CPrEM':_0x4b8d(0x19),'hQQMy':function(_0x4a16e5,_0x346672){return _0x4a16e5===_0x346672;},'iCAdl':_0x4b8d(0x2b),'MyOzu':_0x4b8d(0x2c),'ZGtAP':_0x4b8d(0x2d),'WvMZn':'TXmhn','NlchJ':_0x4b8d(0x2e),'IDAKp':_0x4b8d(0x2f),'ECHVJ':_0x4b8d(0x30),'PzLrJ':_0x4b8d(0x31),'YdGts':_0x4b8d(0x32),'qmqJW':_0x4b8d(0x33),'YbbZU':function(_0x4ae281,_0x53133e){return _0x4ae281(_0x53133e);}};try{const _0x12ed95=await fetch(API_CONFIG['BASE_URL']+_0x4b8d(0xe)+_0x3c2243),_0x194b16=await _0x12ed95[_0x4b8d(0xf)]();console[_0x4b8d(0x1a)](_0x517199['aInXj'],_0x194b16);if(_0x194b16[_0x4b8d(0x10)]&&_0x194b16[_0x4b8d(0x11)]){var _0x50049f,_0xdbafd2;const _0x25fac2=(_0x517199['izFcx'](_0x50049f=_0x194b16[_0x4b8d(0x11)],null)||_0x517199[_0x4b8d(0x34)](_0x50049f,void 0x0)?void 0x0:_0x50049f['isTemporaryMode'])===!![]||_0x517199[_0x4b8d(0x35)](_0x517199['epZSr'](_0xdbafd2=_0x194b16[_0x4b8d(0x15)],null)||_0x517199[_0x4b8d(0x36)](_0xdbafd2,void 0x0)?void 0x0:_0xdbafd2[_0x4b8d(0x16)],!![])||_0x194b16[_0x4b8d(0x13)]===!![]||_0x194b16[_0x4b8d(0x18)]&&_0x194b16[_0x4b8d(0x18)][_0x4b8d(0x37)](_0x517199[_0x4b8d(0x38)]),_0x4af823=_0x517199['iqLoa'](_0x194b16['validation'][_0x4b8d(0x39)],!![]),_0x2fe13f=_0x194b16[_0x4b8d(0x11)][_0x4b8d(0x3a)]===!![];if(_0x25fac2){if(_0x517199[_0x4b8d(0x3b)](_0x517199[_0x4b8d(0x3c)],_0x517199[_0x4b8d(0x3c)]))return console['log'](_0x517199['MyOzu']),console[_0x4b8d(0x1a)](_0x517199[_0x4b8d(0x3d)]),{'isReady':!![],'mode':'temporary','needsMigration':![],'trainingReady':!![],'details':_0x194b16};else _0x3d9cd1[_0x4b8d(0x3e)](_0x4b8d(0x3f)),_0x3dc0ab=_0x517199[_0x4b8d(0x40)];}else{if(_0x4af823){if(_0x517199['hQQMy'](_0x517199['WvMZn'],_0x4b8d(0x41)))return console['log'](_0x4b8d(0x42)),{'isReady':!![],'mode':_0x517199['NlchJ'],'needsMigration':![],'trainingReady':!![],'details':_0x194b16};else{var _0x3fb0e2,_0xae5478;const _0xc3a1f=_0x517199[_0x4b8d(0x43)](_0x517199[_0x4b8d(0x43)](_0x3fb0e2=_0x495f74['validation'],null)||_0x517199[_0x4b8d(0x44)](_0x3fb0e2,void 0x0)?void 0x0:_0x3fb0e2[_0x4b8d(0x13)],!![])||_0x517199[_0x4b8d(0x36)](_0x517199[_0x4b8d(0x45)](_0xae5478=_0x4094a5[_0x4b8d(0x15)],null)||_0xae5478===void 0x0?void 0x0:_0xae5478[_0x4b8d(0x16)],!![])||_0x517199['iqLoa'](_0x7d7c68['isTemporaryMode'],!![]),_0x420280=_0x517199[_0x4b8d(0x36)](_0x42f93f[_0x4b8d(0x11)][_0x4b8d(0x46)],!![]),_0xebc398=_0x517199[_0x4b8d(0x47)](_0x35006f[_0x4b8d(0x11)][_0x4b8d(0x39)],!![]),_0x71e6cf=_0x517199['kscvY'](_0x65d7b6[_0x4b8d(0x11)][_0x4b8d(0x3a)],!![]);_0x5295c1[_0x4b8d(0x1a)](_0x517199[_0x4b8d(0x48)],{'username':_0x34c2c1,'hasAccessToken':_0x420280,'hasRefreshToken':_0xebc398,'needsReconnection':_0x71e6cf,'isTemporaryMode':_0xc3a1f,'connectedAt':_0x9dc97a['validation'][_0x4b8d(0x49)]});if(_0xc3a1f)return _0x5269d4[_0x4b8d(0x1a)](_0x517199[_0x4b8d(0x4a)]),![];else return _0x517199[_0x4b8d(0x4b)](_0x420280,!_0xebc398)&&_0x71e6cf?(_0x1acb07[_0x4b8d(0x1a)](_0x517199['hXLhn']),!![]):(_0x56a0cd['log'](_0x517199[_0x4b8d(0x4c)]),![]);}}else{if(_0x2fe13f)return console['log'](_0x517199['IDAKp']),{'isReady':![],'mode':_0x4b8d(0x4d),'needsMigration':!![],'trainingReady':![],'details':_0x194b16};else{if(_0x517199['ECHVJ']!=='LzcVX')return console[_0x4b8d(0x1a)](_0x517199[_0x4b8d(0x4e)]),{'isReady':![],'mode':_0x517199[_0x4b8d(0x4f)],'needsMigration':![],'trainingReady':![],'details':_0x194b16};else _0x5c3bd2['log'](_0x517199['XCAEP']);}}}}return console['log'](_0x517199[_0x4b8d(0x50)]),{'isReady':![],'mode':'none','needsMigration':![],'trainingReady':![],'details':_0x194b16};}catch(_0x2a9778){return console[_0x4b8d(0x25)]('❌\x20Error\x20getting\x20YouTube\x20connection\x20status:',_0x2a9778),{'isReady':![],'mode':_0x517199['YdGts'],'needsMigration':![],'trainingReady':![],'details':{'error':_0x2a9778 instanceof Error?_0x2a9778[_0x4b8d(0x18)]:_0x517199[_0x4b8d(0x51)](String,_0x2a9778)}};}};const showYouTubeMigrationPrompt=async()=>{const _0x40c47b={'BZcjN':_0x4b8d(0x52),'meLDi':function(_0x587437,_0x5c52a1){return _0x587437!==_0x5c52a1;},'QfGyr':'oaVud','FcsQu':_0x4b8d(0x53),'lGLCG':_0x4b8d(0x54),'ZDbkB':_0x4b8d(0x55),'yrtVI':_0x4b8d(0x56)};return new Promise(_0x37b01a=>{_0x40c47b['meLDi'](_0x40c47b[_0x4b8d(0x57)],_0x40c47b[_0x4b8d(0x57)])?(_0x2d5445=_0x58e41d['serverAuthCode'],_0xe131b3=_0x40c47b['BZcjN']):Alert['alert'](_0x40c47b[_0x4b8d(0x58)],'To\x20improve\x20your\x20training\x20experience,\x20we\x20need\x20to\x20upgrade\x20your\x20YouTube\x20connection.\x20This\x20prevents\x20interruptions\x20during\x20data\x20collection.\x0a\x0a✅\x20One-time\x20upgrade\x0a✅\x20Takes\x2030\x20seconds\x0a✅\x20No\x20data\x20loss\x0a\x0aUpgrade\x20now?',[{'text':_0x40c47b[_0x4b8d(0x59)],'style':_0x40c47b[_0x4b8d(0x5a)],'onPress':()=>_0x37b01a(![])},{'text':'Upgrade\x20Now','style':_0x40c47b[_0x4b8d(0x5b)],'onPress':()=>_0x37b01a(!![])}]);});},forceYouTubeReconnection=async _0x1dfb64=>{const _0x251f57={'iEGWN':_0x4b8d(0x2c),'KPMUk':_0x4b8d(0x42),'ZKLLU':_0x4b8d(0x5c),'sraDb':'openid','GMpCh':_0x4b8d(0x1),'FoVkh':_0x4b8d(0x6),'rMzeu':function(_0x119b57,_0x3b6dfa){return _0x119b57===_0x3b6dfa;},'FJgMm':_0x4b8d(0x5d),'sGbKv':_0x4b8d(0x5e),'pgJWP':_0x4b8d(0x5f),'eVLAp':_0x4b8d(0x60),'NSqJU':_0x4b8d(0x61),'zHHxV':_0x4b8d(0x62),'MimPC':'ℹ️\x20No\x20token\x20cache\x20to\x20clear','BdBpy':_0x4b8d(0x63),'CwjUN':_0x4b8d(0x64),'fuqql':_0x4b8d(0x52),'shKcr':function(_0x400037,_0x5c71e2){return _0x400037!==_0x5c71e2;},'pBxiM':function(_0x29c0c4,_0x15dc90){return _0x29c0c4!==_0x15dc90;},'qlcDG':_0x4b8d(0x65),'pccwy':_0x4b8d(0x66),'ngguV':'MISSING!','BjShS':function(_0x41b62b,_0x46bd37){return _0x41b62b===_0x46bd37;},'thsIP':_0x4b8d(0x67),'NLLik':'lmvaI','NfSnA':_0x4b8d(0x68),'aSiuH':_0x4b8d(0x69),'yFPpj':_0x4b8d(0x6a),'ZwFeg':_0x4b8d(0x6b),'uFPKC':_0x4b8d(0x6c),'nsSdO':_0x4b8d(0x6d),'kEBHL':function(_0x4fd870,_0x4906c0){return _0x4fd870+_0x4906c0;},'rZLIq':_0x4b8d(0x6e),'egzgx':_0x4b8d(0x6f),'KSJdH':_0x4b8d(0x70),'PeQKD':'enoch_token','USlXV':function(_0x301b33,_0x475edf){return _0x301b33===_0x475edf;},'tCeoY':_0x4b8d(0x3f),'RoiDy':_0x4b8d(0x71),'xwazp':_0x4b8d(0x72),'EzGOT':'YouTube\x20Channel','jJtoq':function(_0x13270c,_0x287559){return _0x13270c===_0x287559;},'mddtJ':function(_0x355e22,_0x3c6718,_0xc70462){return _0x355e22(_0x3c6718,_0xc70462);},'MlMyZ':_0x4b8d(0x73),'ltThx':function(_0xf1ca3c,_0x28a420,_0x2d0586){return _0xf1ca3c(_0x28a420,_0x2d0586);},'BMMUB':function(_0xb4df63,_0x50f256){return _0xb4df63===_0x50f256;},'lNVLv':_0x4b8d(0x74),'rfBhT':'❌\x20YouTube\x20migration\x20failed:','ITFGf':function(_0x24fbe8,_0x444141,_0x151cb9,_0x2ca168){return _0x24fbe8(_0x444141,_0x151cb9,_0x2ca168);},'Eqstd':function(_0x57776d,_0xdbf6b7){return _0x57776d instanceof _0xdbf6b7;},'ScKrw':_0x4b8d(0x75)};try{if(_0x251f57[_0x4b8d(0x76)](_0x251f57[_0x4b8d(0x77)],_0x251f57['FJgMm'])){var _0x512848,_0x2627f6,_0xf424da,_0x298b79;console[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x78)],_0x1dfb64),configureGoogleSignInForRefreshTokens(),await GoogleSignin[_0x4b8d(0x79)](),console[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x7a)]);try{const _0x5228ed=await GoogleSignin[_0x4b8d(0x7b)]();_0x5228ed[_0x4b8d(0x7c)]&&(_0x251f57[_0x4b8d(0x76)](_0x251f57[_0x4b8d(0x7d)],_0x251f57['NSqJU'])?_0xd649ac['error'](_0x4b8d(0x7e),_0x19a51e):(await GoogleSignin[_0x4b8d(0x7f)](_0x5228ed[_0x4b8d(0x7c)]),console[_0x4b8d(0x1a)](_0x251f57['zHHxV'])));}catch(_0x5590ee){console[_0x4b8d(0x1a)](_0x251f57['MimPC']);}await GoogleSignin[_0x4b8d(0x80)](),console[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x81)]);const _0x53d19c=await GoogleSignin['signIn'](),_0x5e9d0d=await GoogleSignin['getTokens'](),_0x5eecba=await GoogleSignin[_0x4b8d(0x82)]();let _0x5b43b5=null,_0x1a85c3=_0x251f57[_0x4b8d(0x83)];if(_0x53d19c[_0x4b8d(0x84)])_0x5b43b5=_0x53d19c['serverAuthCode'],_0x1a85c3=_0x251f57[_0x4b8d(0x85)];else _0x251f57[_0x4b8d(0x86)](_0x5eecba,null)&&_0x251f57[_0x4b8d(0x87)](_0x5eecba,void 0x0)&&_0x5eecba[_0x4b8d(0x84)]&&(_0x5b43b5=_0x5eecba[_0x4b8d(0x84)],_0x1a85c3=_0x251f57['qlcDG']);console[_0x4b8d(0x1a)]('🔍\x20Token\x20Analysis:',{'hasAccessToken':!!_0x5e9d0d[_0x4b8d(0x7c)],'hasIdToken':!!_0x5e9d0d[_0x4b8d(0x88)],'hasServerAuthCode':!!_0x53d19c['serverAuthCode'],'hasCurrentUserAuthCode':!!(_0x5eecba!==null&&_0x251f57[_0x4b8d(0x87)](_0x5eecba,void 0x0)&&_0x5eecba[_0x4b8d(0x84)]),'refreshTokenSource':_0x1a85c3,'finalRefreshToken':_0x5b43b5?_0x251f57[_0x4b8d(0x89)]:_0x251f57[_0x4b8d(0x8a)],'userEmail':(_0x512848=_0x53d19c['user'])===null||_0x251f57[_0x4b8d(0x8b)](_0x512848,void 0x0)?void 0x0:_0x512848[_0x4b8d(0x6)]});if(!_0x5b43b5){if(_0x251f57[_0x4b8d(0x87)](_0x251f57['thsIP'],_0x251f57['NLLik'])){const _0x4cb6de=_0x251f57[_0x4b8d(0x8c)][_0x4b8d(0x8d)]('|');let _0x30c534=0x0;while(!![]){switch(_0x4cb6de[_0x30c534++]){case'0':return![];case'1':console[_0x4b8d(0x25)](_0x251f57['aSiuH']);continue;case'2':console[_0x4b8d(0x25)](_0x251f57[_0x4b8d(0x8e)]);continue;case'3':console[_0x4b8d(0x25)](_0x251f57['ZwFeg']);continue;case'4':console[_0x4b8d(0x25)](_0x4b8d(0x8f));continue;case'5':console[_0x4b8d(0x25)](_0x251f57[_0x4b8d(0x90)]);continue;}break;}}else return _0x2038ab[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x91)]),_0x3dc5af[_0x4b8d(0x1a)]('✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour'),{'isReady':!![],'mode':_0x4b8d(0x92),'needsMigration':![],'trainingReady':!![],'details':_0x4ff712};}console[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x93)],_0x251f57[_0x4b8d(0x94)](_0x5b43b5[_0x4b8d(0x95)](0x0,0x14),_0x251f57[_0x4b8d(0x96)])),console[_0x4b8d(0x1a)](_0x251f57[_0x4b8d(0x97)],_0x1a85c3);let _0x4bc9e9=await AsyncStorage['getItem'](_0x251f57[_0x4b8d(0x98)])||await AsyncStorage[_0x4b8d(0x99)](_0x251f57[_0x4b8d(0x9a)])||await AsyncStorage['getItem'](_0x4b8d(0x9b));if(!_0x4bc9e9){if(_0x251f57[_0x4b8d(0x9c)](_0x4b8d(0x9d),_0x4b8d(0x9d)))console['warn'](_0x251f57[_0x4b8d(0x9e)]),_0x4bc9e9=_0x251f57[_0x4b8d(0x9f)];else return _0x54fb4a['log'](_0x251f57[_0x4b8d(0xa0)]),{'isReady':!![],'mode':'full','needsMigration':![],'trainingReady':!![],'details':_0x408b40};}const _0x88be4e={'session':{'username':_0x1dfb64,'platform':_0x251f57[_0x4b8d(0xa1)],'channelName':(_0x251f57[_0x4b8d(0x9c)](_0x2627f6=_0x53d19c[_0x4b8d(0xa2)],null)||_0x251f57[_0x4b8d(0x76)](_0x2627f6,void 0x0)?void 0x0:_0x2627f6['name'])||_0x251f57[_0x4b8d(0xa3)],'channelId':null},'googleUser':_0x53d19c[_0x4b8d(0xa2)],'accessToken':_0x5e9d0d[_0x4b8d(0x7c)],'idToken':_0x5e9d0d[_0x4b8d(0x88)],'refreshToken':_0x5b43b5,'serverAuthCode':_0x53d19c[_0x4b8d(0x84)],'userAccountInfo':{'username':_0x1dfb64,'email':_0x251f57[_0x4b8d(0x76)](_0xf424da=_0x53d19c[_0x4b8d(0xa2)],null)||_0x251f57[_0x4b8d(0x76)](_0xf424da,void 0x0)?void 0x0:_0xf424da[_0x4b8d(0x6)],'authToken':_0x4bc9e9,'channelName':(_0x251f57[_0x4b8d(0xa4)](_0x298b79=_0x53d19c[_0x4b8d(0xa2)],null)||_0x298b79===void 0x0?void 0x0:_0x298b79[_0x4b8d(0xa5)])||_0x251f57[_0x4b8d(0xa3)],'channelId':null}};console[_0x4b8d(0x1a)](_0x4b8d(0xa6));const _0x193772=await _0x251f57['mddtJ'](fetch,API_CONFIG['BASE_URL']+_0x4b8d(0xa7),{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0x251f57[_0x4b8d(0xa8)],..._0x4bc9e9!==_0x251f57['RoiDy']&&{'Authorization':_0x4b8d(0xa9)+_0x4bc9e9}},'body':JSON['stringify'](_0x88be4e)}),_0x4d313=await _0x193772[_0x4b8d(0xf)]();return _0x4d313['success']?(console[_0x4b8d(0x1a)]('✅\x20YouTube\x20migration\x20successful'),await _0x251f57[_0x4b8d(0xaa)](trackMigrationAttempt,_0x1dfb64,!![]),!![]):(console[_0x4b8d(0x25)](_0x4b8d(0xab),_0x4d313['error']),await trackMigrationAttempt(_0x1dfb64,![],_0x4d313[_0x4b8d(0x25)]),![]);}else GoogleSignin[_0x4b8d(0x2)]({'webClientId':_0xa47b47,'iosClientId':_0x29e838,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x251f57[_0x4b8d(0xac)],_0x251f57[_0x4b8d(0xad)],_0x251f57[_0x4b8d(0xae)],_0x251f57[_0x4b8d(0xaf)]],'hostedDomain':'','accountName':''});}catch(_0x368f5d){return _0x251f57[_0x4b8d(0xb0)](_0x251f57['lNVLv'],_0x251f57['lNVLv'])?(console[_0x4b8d(0x25)](_0x251f57[_0x4b8d(0xb1)],_0x368f5d),await _0x251f57[_0x4b8d(0xb2)](trackMigrationAttempt,_0x1dfb64,![],_0x251f57[_0x4b8d(0xb3)](_0x368f5d,Error)?_0x368f5d[_0x4b8d(0x18)]:_0x251f57[_0x4b8d(0xb4)]),![]):(_0x500776[_0x4b8d(0x1a)](_0x4b8d(0x29)),![]);}},trackMigrationAttempt=async(_0x49ff3d,_0xa37cf4,_0x1d6f73)=>{const _0x2309b9={'tqHdz':_0x4b8d(0xb5),'sJApZ':_0x4b8d(0xb6),'NKKtW':_0x4b8d(0xb7),'XyZvi':_0x4b8d(0x56),'XuzvX':function(_0x3d5ed0,_0x14907e,_0x5e48cc){return _0x3d5ed0(_0x14907e,_0x5e48cc);},'gaXYl':function(_0x41bfa2,_0x22df7b){return _0x41bfa2||_0x22df7b;},'HcgIw':function(_0x1e325e,_0x3fdfe6){return _0x1e325e!==_0x3fdfe6;},'Jvdle':_0x4b8d(0x7e)};try{await _0x2309b9[_0x4b8d(0xb8)](fetch,API_CONFIG[_0x4b8d(0xd)]+_0x4b8d(0xb9),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4b8d(0xba)]({'username':_0x49ff3d,'success':_0xa37cf4,'error':_0x2309b9[_0x4b8d(0xbb)](_0x1d6f73,null),'timestamp':new Date()[_0x4b8d(0xbc)]()})});}catch(_0x291aa2){if(_0x2309b9[_0x4b8d(0xbd)](_0x4b8d(0xbe),_0x4b8d(0xbe)))return Alert['alert'](_0x2309b9[_0x4b8d(0xbf)],_0x2309b9['sJApZ'],[{'text':_0x2309b9[_0x4b8d(0xc0)],'style':_0x2309b9[_0x4b8d(0xc1)]}]),!![];else console['error'](_0x2309b9['Jvdle'],_0x291aa2);}};function _0x725d(){const _0x15f841=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','profile','configure','qwsvs','FmLfg','LjxAI','email','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','tjVSc','dTPqd','KVasR','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','BASE_URL','/youtube/validate-connection/','json','success','validation','gTVUv','isTemporaryMode','EOipS','temporaryMode','enabled','Vpxcg','message','temporary\x20access\x20token\x20mode','log','🔍\x20YouTube\x20migration\x20check:','PtfSU','ognYc','ℹ️\x20User\x20declined\x20YouTube\x20migration','gRKzY','HfjRD','🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','hFyao','nWrUt','Dandp','error','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','📋\x20Complete\x20YouTube\x20status\x20response:','EOmBc','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','full','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','LRTcW','❓\x20YouTube\x20connection\x20status\x20unclear','none','❌\x20No\x20YouTube\x20connection\x20found','epZSr','xBLRx','qVGhM','includes','CPrEM','hasRefreshToken','needsReconnection','hQQMy','iCAdl','ZGtAP','warn','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','obZfB','TXmhn','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','oLKLT','suFKb','ZHqvN','hasAccessToken','UauFl','iWiOP','connectedAt','CiLzB','DICIb','LJXHC','limited','PzLrJ','YdGts','qmqJW','YbbZU','Server\x20auth\x20code\x20from\x20sign-in','YouTube\x20Connection\x20Upgrade','Skip\x20for\x20Now','cancel','default','QfGyr','FcsQu','lGLCG','ZDbkB','yrtVI','https://www.googleapis.com/auth/youtube.readonly','CSZDm','🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','zycYb','uErpz','✅\x20Token\x20cache\x20cleared','🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...','None','Current\x20user\x20server\x20auth\x20code','Available','kuoiz','4|3|1|2|5|0','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','💡\x20This\x20usually\x20means:','\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','✅\x20Got\x20refresh\x20token\x20after\x20consent:','...','🔑\x20Refresh\x20token\x20source:','onairos_jwt_token','migration_token_placeholder','youtube','your-api-key','RdZlM','Unknown\x20error','rMzeu','FJgMm','sGbKv','signOut','pgJWP','getTokens','accessToken','eVLAp','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','clearCachedAccessToken','hasPlayServices','BdBpy','getCurrentUser','CwjUN','serverAuthCode','fuqql','shKcr','pBxiM','idToken','pccwy','ngguV','BjShS','NfSnA','split','yFPpj','❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect','uFPKC','iEGWN','temporary','nsSdO','kEBHL','substring','rZLIq','egzgx','KSJdH','getItem','PeQKD','auth_token','USlXV','mPiZK','tCeoY','RoiDy','KPMUk','xwazp','user','EzGOT','jJtoq','name','📤\x20Sending\x20migration\x20payload\x20to\x20backend...','/youtube/native-auth','MlMyZ','Bearer\x20','ltThx','❌\x20Backend\x20rejected\x20YouTube\x20migration:','ZKLLU','sraDb','GMpCh','FoVkh','BMMUB','rfBhT','ITFGf','Eqstd','ScKrw','YouTube\x20Upgraded!\x20✅','Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','Great!','XuzvX','/youtube/migration-status','stringify','gaXYl','toISOString','HcgIw','pWlXA','tqHdz','NKKtW','XyZvi','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','DBKOs','YmCiH','ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found','kUBYQ','prMMf','xwDPY','apxue','sAdEn','KjMOr','EykDi','RlEbY','rOhJN','iuaPe','dIyYg','AsUTX','YnlLO','To\x20improve\x20your\x20training\x20experience,\x20we\x20need\x20to\x20upgrade\x20your\x20YouTube\x20connection.\x20This\x20prevents\x20interruptions\x20during\x20data\x20collection.\x0a\x0a✅\x20One-time\x20upgrade\x0a✅\x20Takes\x2030\x20seconds\x0a✅\x20No\x20data\x20loss\x0a\x0aUpgrade\x20now?','Upgrade\x20Now','alert','MpdOY','GbAzH','XJDhr','ZlrLd','hFNTw','❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','zhHxB','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','Upgrade\x20Failed\x20❌','YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','jBjtT','VcnCu','OtojC','CsMfA','qbbqT','UcXaA','oFotA','udsfi','iVFky','zWKUG','zSeND','dqHfq','YixDd','zhtqS','Xusfh','gHdNn','PVDhA','sNhYq','dAEMT','🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:'];_0x725d=function(){return _0x15f841;};return _0x725d();}export const shouldShowYouTubeMigrationWarning=async _0x4a0088=>{const _0x446d8a={'rOhJN':'✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','xTRDI':'default','kUBYQ':_0x4b8d(0xc2),'prMMf':function(_0x2cdd8d,_0x2513be){return _0x2cdd8d(_0x2513be);},'xwDPY':function(_0xe17ff2,_0x2068c7){return _0xe17ff2===_0x2068c7;},'apxue':function(_0x51389a,_0x2a8bfc){return _0x51389a===_0x2a8bfc;},'sAdEn':function(_0x270503,_0x2333aa){return _0x270503===_0x2333aa;},'KjMOr':function(_0x31190c,_0x24443f){return _0x31190c===_0x24443f;},'OlNOS':_0x4b8d(0x26),'EykDi':function(_0x515508,_0x28aa12){return _0x515508!==_0x28aa12;},'RlEbY':_0x4b8d(0xc3),'iuaPe':_0x4b8d(0x27),'dIyYg':function(_0x48bf65,_0x2cb4b3){return _0x48bf65&&_0x2cb4b3;},'AsUTX':'⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','YnlLO':_0x4b8d(0xc4),'DbnXu':_0x4b8d(0xc5)};try{console[_0x4b8d(0x1a)](_0x446d8a[_0x4b8d(0xc6)],_0x4a0088);const _0x1bb616=await _0x446d8a[_0x4b8d(0xc7)](fetch,API_CONFIG['BASE_URL']+_0x4b8d(0xe)+_0x4a0088),_0x511326=await _0x1bb616[_0x4b8d(0xf)]();if(_0x511326['success']&&_0x511326['validation']){var _0x4fd741,_0x4dcda6;const _0x1f121c=_0x446d8a[_0x4b8d(0xc8)](_0x446d8a['apxue'](_0x4fd741=_0x511326['validation'],null)||_0x446d8a[_0x4b8d(0xc9)](_0x4fd741,void 0x0)?void 0x0:_0x4fd741[_0x4b8d(0x13)],!![])||(_0x446d8a['xwDPY'](_0x4dcda6=_0x511326[_0x4b8d(0x15)],null)||_0x4dcda6===void 0x0?void 0x0:_0x4dcda6[_0x4b8d(0x16)])===!![]||_0x446d8a['apxue'](_0x511326['isTemporaryMode'],!![]),_0x4f5bb1=_0x446d8a[_0x4b8d(0xca)](_0x511326[_0x4b8d(0x11)][_0x4b8d(0x46)],!![]),_0x5629ce=_0x446d8a[_0x4b8d(0xc9)](_0x511326[_0x4b8d(0x11)]['hasRefreshToken'],!![]),_0x35e1de=_0x446d8a[_0x4b8d(0xcb)](_0x511326[_0x4b8d(0x11)][_0x4b8d(0x3a)],!![]);console[_0x4b8d(0x1a)](_0x446d8a['OlNOS'],{'username':_0x4a0088,'hasAccessToken':_0x4f5bb1,'hasRefreshToken':_0x5629ce,'needsReconnection':_0x35e1de,'isTemporaryMode':_0x1f121c,'connectedAt':_0x511326[_0x4b8d(0x11)][_0x4b8d(0x49)]});if(_0x1f121c)return _0x446d8a[_0x4b8d(0xcc)](_0x446d8a[_0x4b8d(0xcd)],'DBKOs')?(_0x22edcb[_0x4b8d(0x1a)](_0x446d8a[_0x4b8d(0xce)]),!![]):(console[_0x4b8d(0x1a)](_0x446d8a[_0x4b8d(0xcf)]),![]);else{if(_0x446d8a[_0x4b8d(0xd0)](_0x4f5bb1,!_0x5629ce)&&_0x35e1de)return console['log'](_0x446d8a[_0x4b8d(0xd1)]),!![];else{if(_0x446d8a[_0x4b8d(0xd2)]===_0x446d8a['YnlLO'])return console[_0x4b8d(0x1a)](_0x4b8d(0x29)),![];else{const _0xeaf09e={'MpdOY':_0x4b8d(0xd3),'GbAzH':_0x4b8d(0x54),'XJDhr':_0x4b8d(0x55),'ZlrLd':_0x4b8d(0xd4),'hFNTw':_0x446d8a['xTRDI']};return new _0x7004d(_0x31df8a=>{Alert[_0x4b8d(0xd5)](_0x4b8d(0x53),_0xeaf09e[_0x4b8d(0xd6)],[{'text':_0xeaf09e[_0x4b8d(0xd7)],'style':_0xeaf09e[_0x4b8d(0xd8)],'onPress':()=>_0x31df8a(![])},{'text':_0xeaf09e[_0x4b8d(0xd9)],'style':_0xeaf09e[_0x4b8d(0xda)],'onPress':()=>_0x31df8a(!![])}]);});}}}}return console['log'](_0x446d8a['DbnXu']),![];}catch(_0x46259d){return console[_0x4b8d(0x25)](_0x4b8d(0xdb),_0x46259d),![];}};export const checkAndFixYouTubeConnection=async _0x5972d9=>{const _0x15d77b={'eCVyr':function(_0x4149c2,_0x147b5b){return _0x4149c2===_0x147b5b;},'qbbqT':function(_0x5d1bc3,_0x32dc3a){return _0x5d1bc3===_0x32dc3a;},'UcXaA':function(_0x52cad2,_0x5cb34a){return _0x52cad2===_0x5cb34a;},'iVFky':function(_0x5e6783,_0xea3b5e){return _0x5e6783===_0xea3b5e;},'oFotA':_0x4b8d(0x19),'udsfi':_0x4b8d(0x1b),'zWKUG':function(_0x13ecbd,_0x28b36f){return _0x13ecbd===_0x28b36f;},'AQnpU':_0x4b8d(0x7),'zSeND':'✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','jBjtT':function(_0x1d1e6b,_0x2dd679){return _0x1d1e6b(_0x2dd679);},'VcnCu':_0x4b8d(0xdc),'OtojC':_0x4b8d(0xdd),'CsMfA':_0x4b8d(0xde),'dqHfq':_0x4b8d(0xdf),'YixDd':_0x4b8d(0xe0),'zhtqS':function(_0x317a2c){return _0x317a2c();},'Xusfh':_0x4b8d(0x1e),'gHdNn':function(_0x233f51,_0x1e330e){return _0x233f51(_0x1e330e);},'PVDhA':_0x4b8d(0xb5),'DIdFp':'default','sNhYq':_0x4b8d(0xe1),'dAEMT':_0x4b8d(0xe2),'HpOUi':_0x4b8d(0xe3)};try{console[_0x4b8d(0x1a)](_0x4b8d(0xe4),_0x5972d9);const _0x2d0d85=await _0x15d77b[_0x4b8d(0xe5)](shouldShowYouTubeMigrationWarning,_0x5972d9);if(!_0x2d0d85)return console[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xe6)]),console[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xe7)]),!![];const _0x14561a=await _0x15d77b[_0x4b8d(0xe5)](checkYouTubeMigrationNeeded,_0x5972d9);if(!_0x14561a){if(_0x15d77b[_0x4b8d(0xe8)]!==_0x4b8d(0xde)){var _0x501023,_0x40f67b,_0x2cbe97;const _0x14841e=((_0x501023=_0x15f960[_0x4b8d(0x11)])===null||_0x15d77b['eCVyr'](_0x501023,void 0x0)?void 0x0:_0x501023[_0x4b8d(0x13)])===!![]||_0x15d77b[_0x4b8d(0xe9)](_0x15d77b[_0x4b8d(0xe9)](_0x40f67b=_0x631284['temporaryMode'],null)||_0x15d77b[_0x4b8d(0xea)](_0x40f67b,void 0x0)?void 0x0:_0x40f67b['enabled'],!![])||_0x15d77b['iVFky'](_0x1add6d['isTemporaryMode'],!![])||_0x611e35[_0x4b8d(0x18)]&&_0x485b1d[_0x4b8d(0x18)][_0x4b8d(0x37)](_0x15d77b[_0x4b8d(0xeb)]),_0xc2a4c1=_0x300a46['validation'][_0x4b8d(0x3a)],_0x1d98d8=_0xd20d4f[_0x4b8d(0x11)][_0x4b8d(0x39)];_0x130848[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xec)],{'username':_0x54e4ad,'needsReconnection':_0xc2a4c1,'hasRefreshToken':_0x1d98d8,'isTemporaryMode':_0x14841e,'temporaryModeEnabled':_0x15d77b[_0x4b8d(0xed)](_0x2cbe97=_0x3bb27d['temporaryMode'],null)||_0x15d77b[_0x4b8d(0xee)](_0x2cbe97,void 0x0)?void 0x0:_0x2cbe97[_0x4b8d(0x16)],'message':_0x27da81[_0x4b8d(0x18)]});if(_0x14841e)return _0x353fe4[_0x4b8d(0x1a)](_0x15d77b['AQnpU']),_0x4b79a3[_0x4b8d(0x1a)]('⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed'),![];else return _0xc2a4c1?(_0x411ef1['log'](_0x4b8d(0x21)),!![]):(_0x29e3ec[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xef)]),![]);}else return console[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xf0)]),!![];}console[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xf1)]);const _0x4c6098=await _0x15d77b[_0x4b8d(0xf2)](showYouTubeMigrationPrompt);if(!_0x4c6098)return console[_0x4b8d(0x1a)](_0x15d77b[_0x4b8d(0xf3)]),![];const _0x4f37a4=await _0x15d77b[_0x4b8d(0xf4)](forceYouTubeReconnection,_0x5972d9);return _0x4f37a4?(Alert[_0x4b8d(0xd5)](_0x15d77b[_0x4b8d(0xf5)],_0x4b8d(0xb6),[{'text':_0x4b8d(0xb7),'style':_0x15d77b['DIdFp']}]),!![]):(Alert[_0x4b8d(0xd5)](_0x15d77b[_0x4b8d(0xf6)],_0x15d77b[_0x4b8d(0xf7)],[{'text':'OK','style':_0x4b8d(0x56)}]),![]);}catch(_0x52022d){return console[_0x4b8d(0x25)](_0x15d77b['HpOUi'],_0x52022d),![];}};export const reconnectYouTube=async _0x92a2bb=>{return console['log'](_0x4b8d(0xf8),_0x92a2bb),await forceYouTubeReconnection(_0x92a2bb);};
@@ -1 +1 @@
1
- import{Platform}from'react-native';export const COLORS={'surface':_0x484f(0x0),'grey300':_0x484f(0x1),'grey400':_0x484f(0x2),'grey500':_0x484f(0x3),'grey600':'#62646C','grey700':_0x484f(0x4),'grey800':_0x484f(0x5),'btnGradStart':_0x484f(0x6),'btnGradEnd':'#17181C','btnBorder':_0x484f(0x7),'btnShadowOuter':_0x484f(0x8),'btnInnerShadow':_0x484f(0x9),'btnLabel':'#FFFFFF','iconCircleGradientStart':'#0A090E','iconCircleGradientEnd':_0x484f(0xa),'primary':'#FFD700','primaryDark':'#E9B104','primaryLight':_0x484f(0xb),'background':{'dark':'#000000','medium':'#121212','light':_0x484f(0xc)},'text':{'primary':_0x484f(0xd),'secondary':'#B0B0B0','tertiary':_0x484f(0xe),'gold':_0x484f(0xf)},'ui':{'cardBackground':_0x484f(0x10),'divider':'rgba(255,\x20255,\x20255,\x200.1)','inputBackground':'rgba(255,\x20255,\x20255,\x200.1)','buttonBackground':_0x484f(0x10)},'status':{'success':_0x484f(0x11),'error':'#FF3B30','warning':'#FF9500','info':'#5AC8FA'},'transparent':_0x484f(0x12),'overlay':_0x484f(0x13)};function _0x4faa(){const _0x3bd682=['#FAFAFA','#D1D5DB','#9CA3AF','#86888E','#374151','#1F242F','#29292B','rgba(0,0,0,0.20)','rgba(0,0,0,0.10)','rgba(0,0,0,0.06)','#17171B','#FFDF33','#1C2526','#FFFFFF','#808080','#FFD700','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','transparent','rgba(0,\x200,\x200,\x200.7)','IBM\x20Plex\x20Sans','ios','System','Georgia','serif','300','400','500','700','primary','btnInnerShadow','#000000','families','ibmPlexSansBold','weights','sizes','kicker','letterSpacing','grey500','bold','welcomeTitle','lineHeights','grey800','inter','regular','body','center','grey600','semibold','buttonLabel','btnLabel'];_0x4faa=function(){return _0x3bd682;};return _0x4faa();}export const FONTS={'families':{'ibmPlexSans':Platform['OS']==='ios'?_0x484f(0x14):'IBM\x20Plex\x20Sans','ibmPlexSansBold':Platform['OS']==='ios'?_0x484f(0x14):_0x484f(0x14),'inter':Platform['OS']==='ios'?'Inter':'Inter-Regular','base':Platform['OS']===_0x484f(0x15)?_0x484f(0x16):'Roboto','serif':Platform['OS']===_0x484f(0x15)?_0x484f(0x17):_0x484f(0x18)},'weights':{'light':_0x484f(0x19),'regular':_0x484f(0x1a),'medium':_0x484f(0x1b),'semibold':'600','bold':_0x484f(0x1c)},'sizes':{'xs':0xc,'sm':0xe,'md':0x10,'lg':0x12,'xl':0x14,'xxl':0x18,'xxxl':0x1c,'title':0x20,'large':0x2a,'kicker':0x12,'welcomeTitle':0x30,'body':0x10,'buttonLabel':0x10},'lineHeights':{'kicker':0x14,'welcomeTitle':0x36,'body':0x18,'sm':0x10,'md':0x14,'lg':0x18,'xl':0x1c},'letterSpacing':{'kicker':-0.24,'tight':-0.5,'normal':0x0,'wide':0.5}};export const SPACING={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18};export const BORDER_RADIUS={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64};export const SHADOWS={'small':{'shadowColor':COLORS['primary'],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x484f(0x1d)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x484f(0x1d)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS[_0x484f(0x1e)],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS['btnShadowOuter'],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':_0x484f(0x1f),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS[_0x484f(0x20)][_0x484f(0x21)],'fontWeight':FONTS[_0x484f(0x22)]['bold'],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x24)],'lineHeight':FONTS['lineHeights'][_0x484f(0x24)],'letterSpacing':FONTS[_0x484f(0x25)][_0x484f(0x24)],'color':COLORS[_0x484f(0x26)]},'welcomeTitle':{'fontFamily':FONTS[_0x484f(0x20)]['ibmPlexSansBold'],'fontWeight':FONTS['weights'][_0x484f(0x27)],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x28)],'lineHeight':FONTS[_0x484f(0x29)][_0x484f(0x28)],'color':COLORS[_0x484f(0x2a)]},'body':{'fontFamily':FONTS[_0x484f(0x20)][_0x484f(0x2b)],'fontWeight':FONTS[_0x484f(0x22)][_0x484f(0x2c)],'fontSize':FONTS['sizes'][_0x484f(0x2d)],'lineHeight':FONTS[_0x484f(0x29)][_0x484f(0x2d)],'textAlign':_0x484f(0x2e),'color':COLORS[_0x484f(0x2f)]},'buttonLabel':{'fontFamily':FONTS[_0x484f(0x20)]['inter'],'fontWeight':FONTS[_0x484f(0x22)][_0x484f(0x30)],'fontSize':FONTS[_0x484f(0x23)][_0x484f(0x31)],'color':COLORS[_0x484f(0x32)]}};function _0x484f(_0x4faaba,_0x484f4a){_0x4faaba=_0x4faaba-0x0;const _0xa6026d=_0x4faa();let _0x3366e9=_0xa6026d[_0x4faaba];return _0x3366e9;}export default{'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
1
+ import{Platform}from'react-native';export const COLORS={'surface':'#FAFAFA','grey300':_0x5714(0x0),'grey400':_0x5714(0x1),'grey500':_0x5714(0x2),'grey600':_0x5714(0x3),'grey700':_0x5714(0x4),'grey800':_0x5714(0x5),'btnGradStart':_0x5714(0x6),'btnGradEnd':_0x5714(0x7),'btnBorder':'rgba(0,0,0,0.20)','btnShadowOuter':'rgba(0,0,0,0.10)','btnInnerShadow':_0x5714(0x8),'btnLabel':'#FFFFFF','iconCircleGradientStart':_0x5714(0x9),'iconCircleGradientEnd':'#17171B','primary':_0x5714(0xa),'primaryDark':_0x5714(0xb),'primaryLight':_0x5714(0xc),'background':{'dark':_0x5714(0xd),'medium':_0x5714(0xe),'light':_0x5714(0xf)},'text':{'primary':'#FFFFFF','secondary':_0x5714(0x10),'tertiary':_0x5714(0x11),'gold':_0x5714(0xa)},'ui':{'cardBackground':_0x5714(0x12),'divider':_0x5714(0x12),'inputBackground':_0x5714(0x12),'buttonBackground':_0x5714(0x12)},'status':{'success':_0x5714(0x13),'error':_0x5714(0x14),'warning':_0x5714(0x15),'info':'#5AC8FA'},'transparent':_0x5714(0x16),'overlay':_0x5714(0x17)};export const FONTS={'families':{'ibmPlexSans':Platform['OS']==='ios'?_0x5714(0x18):_0x5714(0x18),'ibmPlexSansBold':Platform['OS']===_0x5714(0x19)?_0x5714(0x18):_0x5714(0x18),'inter':Platform['OS']===_0x5714(0x19)?_0x5714(0x1a):_0x5714(0x1b),'base':Platform['OS']==='ios'?_0x5714(0x1c):_0x5714(0x1d),'serif':Platform['OS']==='ios'?_0x5714(0x1e):'serif'},'weights':{'light':_0x5714(0x1f),'regular':_0x5714(0x20),'medium':_0x5714(0x21),'semibold':_0x5714(0x22),'bold':_0x5714(0x23)},'sizes':{'xs':0xc,'sm':0xe,'md':0x10,'lg':0x12,'xl':0x14,'xxl':0x18,'xxxl':0x1c,'title':0x20,'large':0x2a,'kicker':0x12,'welcomeTitle':0x30,'body':0x10,'buttonLabel':0x10},'lineHeights':{'kicker':0x14,'welcomeTitle':0x36,'body':0x18,'sm':0x10,'md':0x14,'lg':0x18,'xl':0x1c},'letterSpacing':{'kicker':-0.24,'tight':-0.5,'normal':0x0,'wide':0.5}};export const SPACING={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'xxl':0x30,'xxxl':0x40,'modalTopPadding':0x76,'modalHorizontal':0x18};export const BORDER_RADIUS={'xs':0x4,'sm':0x8,'md':0x10,'lg':0x18,'xl':0x20,'pill':0x64,'circle':0x3e7,'modalTop':0x18,'buttonPill':0x64};function _0x5714(_0x2b0398,_0x571461){_0x2b0398=_0x2b0398-0x0;const _0x440947=_0x2b03();let _0x5da55f=_0x440947[_0x2b0398];return _0x5da55f;}export const SHADOWS={'small':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS[_0x5714(0x24)],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS['btnInnerShadow'],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS['btnShadowOuter'],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':_0x5714(0xd),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS['families'][_0x5714(0x25)],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x27)],'fontSize':FONTS[_0x5714(0x28)]['kicker'],'lineHeight':FONTS[_0x5714(0x29)]['kicker'],'letterSpacing':FONTS[_0x5714(0x2a)]['kicker'],'color':COLORS['grey500']},'welcomeTitle':{'fontFamily':FONTS[_0x5714(0x2b)][_0x5714(0x25)],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x27)],'fontSize':FONTS[_0x5714(0x28)][_0x5714(0x2c)],'lineHeight':FONTS[_0x5714(0x29)][_0x5714(0x2c)],'color':COLORS['grey800']},'body':{'fontFamily':FONTS[_0x5714(0x2b)]['inter'],'fontWeight':FONTS[_0x5714(0x26)]['regular'],'fontSize':FONTS[_0x5714(0x28)][_0x5714(0x2d)],'lineHeight':FONTS['lineHeights']['body'],'textAlign':_0x5714(0x2e),'color':COLORS[_0x5714(0x2f)]},'buttonLabel':{'fontFamily':FONTS[_0x5714(0x2b)]['inter'],'fontWeight':FONTS[_0x5714(0x26)][_0x5714(0x30)],'fontSize':FONTS[_0x5714(0x28)]['buttonLabel'],'color':COLORS[_0x5714(0x31)]}};function _0x2b03(){const _0x67840f=['#D1D5DB','#9CA3AF','#86888E','#62646C','#374151','#1F242F','#29292B','#17181C','rgba(0,0,0,0.06)','#0A090E','#FFD700','#E9B104','#FFDF33','#000000','#121212','#1C2526','#B0B0B0','#808080','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','#FF3B30','#FF9500','transparent','rgba(0,\x200,\x200,\x200.7)','IBM\x20Plex\x20Sans','ios','Inter','Inter-Regular','System','Roboto','Georgia','300','400','500','600','700','primary','ibmPlexSansBold','weights','bold','sizes','lineHeights','letterSpacing','families','welcomeTitle','body','center','grey600','semibold','btnLabel'];_0x2b03=function(){return _0x67840f;};return _0x2b03();}export default{'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
@@ -1 +1 @@
1
- function _0x1005(_0x3e53e7,_0x1005f4){_0x3e53e7=_0x3e53e7-0x0;const _0x15e82c=_0x3e53();let _0x4a3673=_0x15e82c[_0x3e53e7];return _0x4a3673;}export let ApiKeyType=function(_0x50c644){const _0x208125={'rqrGW':_0x1005(0x0)};return _0x50c644[_0x1005(0x1)]=_0x1005(0x2),_0x50c644[_0x1005(0x3)]=_0x1005(0x4),_0x50c644[_0x1005(0x5)]=_0x208125[_0x1005(0x6)],_0x50c644;}({});function _0x3e53(){const _0x7a852e=['invalid','DEVELOPER','developer','ADMIN','admin','INVALID','rqrGW'];_0x3e53=function(){return _0x7a852e;};return _0x3e53();}
1
+ function _0x446a(_0x5eb13f,_0x446a79){_0x5eb13f=_0x5eb13f-0x0;const _0x476303=_0x5eb1();let _0x14fa6f=_0x476303[_0x5eb13f];return _0x14fa6f;}export let ApiKeyType=function(_0x2687c0){const _0x47d4b1={'QNZta':'DEVELOPER','ocBZX':_0x446a(0x0),'qwyBG':_0x446a(0x1),'hEFVJ':'INVALID','MIHqP':_0x446a(0x2)};return _0x2687c0[_0x47d4b1['QNZta']]='developer',_0x2687c0[_0x47d4b1[_0x446a(0x3)]]=_0x47d4b1[_0x446a(0x4)],_0x2687c0[_0x47d4b1[_0x446a(0x5)]]=_0x47d4b1[_0x446a(0x6)],_0x2687c0;}({});function _0x5eb1(){const _0x9a4e5d=['ADMIN','admin','invalid','ocBZX','qwyBG','hEFVJ','MIHqP'];_0x5eb1=function(){return _0x9a4e5d;};return _0x5eb1();}
@@ -1 +1 @@
1
- import React,{useEffect,useState}from'react';function _0x368b(){const _0xd6ace=['BqGfC','FaFTw','SWUpM','FqUUi','xWWYi','UQxDy','MDsxV','AOZRF','eintc','afVzD','Provider','createElement','absolute','CFHFj','UuSlc','avvmA','CYhAs','cgNLF','VSMLf','qrlbq'];_0x368b=function(){return _0xd6ace;};return _0x368b();}function _0x2d84(_0x368bb2,_0x2d8484){_0x368bb2=_0x368bb2-0x0;const _0x40306a=_0x368b();let _0x17c380=_0x40306a[_0x368bb2];return _0x17c380;}import{View}from'react-native';const portalRefs={};let portalId=0x0;const PortalContext=React['createContext']({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});export const PortalHost=({children:_0x3ddddc})=>{const _0xdeeba4={'xWWYi':function(_0x42fb0b,_0xdae4f3){return _0x42fb0b===_0xdae4f3;},'AwgJG':_0x2d84(0x0),'UQxDy':_0x2d84(0x1),'MDsxV':function(_0x2c38ec,_0x34c22b){return _0x2c38ec(_0x34c22b);},'FqUUi':function(_0x1d206c,_0xb062b9){return _0x1d206c(_0xb062b9);},'AOZRF':function(_0x259386,_0x3314d7){return _0x259386!==_0x3314d7;},'eintc':_0x2d84(0x2),'afVzD':'PDDYN'},[_0x1d6e44,_0x5afd8c]=_0xdeeba4[_0x2d84(0x3)](useState,{}),_0x5ece6c=_0x41dde2=>{if(_0xdeeba4[_0x2d84(0x4)](_0xdeeba4['AwgJG'],_0xdeeba4[_0x2d84(0x5)]))_0x4a2036(_0x473c97=>{const _0x3be27a={..._0x473c97};return delete _0x3be27a[_0xda6685],_0x3be27a;});else{const _0x26fccc=++portalId;return _0xdeeba4[_0x2d84(0x6)](_0x5afd8c,_0x55ba13=>({..._0x55ba13,[_0x26fccc]:_0x41dde2})),_0x26fccc;}},_0x5be3c5=(_0x3b0ff3,_0x4ddfa0)=>{if(_0xdeeba4[_0x2d84(0x7)](_0xdeeba4[_0x2d84(0x8)],_0xdeeba4[_0x2d84(0x9)]))_0xdeeba4[_0x2d84(0x3)](_0x5afd8c,_0x6f06c1=>({..._0x6f06c1,[_0x3b0ff3]:_0x4ddfa0}));else{if(_0x567abe)_0xdeeba4[_0x2d84(0x3)](_0x30a6d9,_0x338ddc);}},_0x3829e0=_0x33c2dd=>{_0xdeeba4['FqUUi'](_0x5afd8c,_0x3e0501=>{const _0x3726d3={..._0x3e0501};return delete _0x3726d3[_0x33c2dd],_0x3726d3;});};return React['createElement'](PortalContext[_0x2d84(0xa)],{'value':{'mount':_0x5ece6c,'update':_0x5be3c5,'unmount':_0x3829e0}},_0x3ddddc,Object['keys'](_0x1d6e44)['map'](_0xa2afce=>React[_0x2d84(0xb)](View,{'key':_0xa2afce,'style':{'position':_0x2d84(0xc),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x1d6e44[Number(_0xa2afce)])));};export const Portal=({children:_0x5369f0})=>{const _0x1353e8={'UuSlc':function(_0x4bdaea,_0x9753bc){return _0x4bdaea(_0x9753bc);},'CYhAs':_0x2d84(0xd),'cgNLF':'XBBwE','VSMLf':function(_0x34fda5,_0x48bf46){return _0x34fda5!==_0x48bf46;},'avvmA':function(_0x3a94b4,_0xb112f3,_0x22cbc0){return _0x3a94b4(_0xb112f3,_0x22cbc0);}},{mount:_0x2cb670,update:_0x3725f5,unmount:_0x280fb1}=React['useContext'](PortalContext),[_0x32d5f2,_0x39f0e7]=_0x1353e8[_0x2d84(0xe)](useState,null);return _0x1353e8[_0x2d84(0xf)](useEffect,()=>{const _0x41c7b2={'VPmMB':function(_0x5bef15,_0x142382){return _0x1353e8['UuSlc'](_0x5bef15,_0x142382);}},_0x3f84b1=_0x2cb670(_0x5369f0);return _0x1353e8['UuSlc'](_0x39f0e7,_0x3f84b1),()=>{if(_0x32d5f2)_0x41c7b2['VPmMB'](_0x280fb1,_0x32d5f2);};},[]),_0x1353e8[_0x2d84(0xf)](useEffect,()=>{const _0x354b70={'qrlbq':function(_0x353c2b,_0x567b94){return _0x1353e8[_0x2d84(0xe)](_0x353c2b,_0x567b94);}};if(_0x1353e8[_0x2d84(0x10)]!==_0x1353e8[_0x2d84(0x11)])_0x1353e8[_0x2d84(0x12)](_0x32d5f2,null)&&_0x3725f5(_0x32d5f2,_0x5369f0);else{const _0x47e1a8=++_0x3f240e;return _0x354b70[_0x2d84(0x13)](_0x1483fd,_0x42eae4=>({..._0x42eae4,[_0x47e1a8]:_0x515591})),_0x47e1a8;}},[_0x5369f0,_0x32d5f2]),null;};
1
+ function _0x8680(_0x2cc7ef,_0x8680bd){_0x2cc7ef=_0x2cc7ef-0x0;const _0x3f9345=_0x2cc7();let _0x4206a6=_0x3f9345[_0x2cc7ef];return _0x4206a6;}import React,{useEffect,useState}from'react';import{View}from'react-native';const portalRefs={};let portalId=0x0;const PortalContext=React['createContext']({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});export const PortalHost=({children:_0x315331})=>{const _0xac6063={'ctOxp':function(_0x269b88,_0x53afe4){return _0x269b88(_0x53afe4);},'WWaIb':function(_0x4341ac,_0x4a4f49){return _0x4341ac(_0x4a4f49);}},[_0x1c8d8a,_0x43117f]=_0xac6063[_0x8680(0x0)](useState,{}),_0x344cae=_0x443be1=>{const _0x42ba55=++portalId;return _0xac6063[_0x8680(0x1)](_0x43117f,_0x111588=>({..._0x111588,[_0x42ba55]:_0x443be1})),_0x42ba55;},_0xa52434=(_0x2db2aa,_0xe8f2c8)=>{_0xac6063['ctOxp'](_0x43117f,_0x52ddbc=>({..._0x52ddbc,[_0x2db2aa]:_0xe8f2c8}));},_0x44b8ba=_0x212c58=>{_0xac6063[_0x8680(0x1)](_0x43117f,_0x493267=>{const _0x409f4e={..._0x493267};return delete _0x409f4e[_0x212c58],_0x409f4e;});};return React[_0x8680(0x2)](PortalContext[_0x8680(0x3)],{'value':{'mount':_0x344cae,'update':_0xa52434,'unmount':_0x44b8ba}},_0x315331,Object['keys'](_0x1c8d8a)[_0x8680(0x4)](_0x2b1352=>React[_0x8680(0x2)](View,{'key':_0x2b1352,'style':{'position':_0x8680(0x5),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x1c8d8a[Number(_0x2b1352)])));};function _0x2cc7(){const _0x4b3529=['WWaIb','ctOxp','createElement','Provider','map','absolute','useContext','MOxya','wdfwh','HGTaF','uhQRi','hhjYM','CrUjk','rtcZp','wQCUQ','KTZPO','GbIdx','eFqpj','UByyj'];_0x2cc7=function(){return _0x4b3529;};return _0x2cc7();}export const Portal=({children:_0x1f03f1})=>{const _0x230261={'grKfP':'HGTaF','wdfwh':function(_0x25da16,_0x4aa257){return _0x25da16(_0x4aa257);},'rtcZp':function(_0x201efc,_0x227ae5){return _0x201efc(_0x227ae5);},'wQCUQ':function(_0x1b84ad,_0x375819){return _0x1b84ad===_0x375819;},'GbIdx':function(_0x4a8cb6,_0x1ca2b2){return _0x4a8cb6!==_0x1ca2b2;},'eFqpj':function(_0x1c4b1a,_0x2bc0ee,_0x470968){return _0x1c4b1a(_0x2bc0ee,_0x470968);},'MOxya':function(_0x32c82c,_0x2dbfb3,_0x2129cd){return _0x32c82c(_0x2dbfb3,_0x2129cd);},'CrUjk':function(_0x262a20,_0x4f85d4,_0x9cc464){return _0x262a20(_0x4f85d4,_0x9cc464);}},{mount:_0x208513,update:_0x44fe7a,unmount:_0x19221a}=React[_0x8680(0x6)](PortalContext),[_0x3d603c,_0x21e6aa]=useState(null);return _0x230261[_0x8680(0x7)](useEffect,()=>{const _0x3d5ec9={'uhQRi':_0x230261['grKfP']},_0x5438b1=_0x230261[_0x8680(0x8)](_0x208513,_0x1f03f1);return _0x21e6aa(_0x5438b1),()=>{const _0x5e3a00={'hhjYM':function(_0x3ec6fa,_0x5eed54){return _0x3ec6fa(_0x5eed54);}};if(_0x8680(0x9)===_0x3d5ec9[_0x8680(0xa)]){if(_0x3d603c)_0x19221a(_0x3d603c);}else{const _0x4accad=_0x5e3a00[_0x8680(0xb)](_0x1707db,_0x452319);return _0x5e3a00['hhjYM'](_0x38b27a,_0x4accad),()=>{if(_0x4a95c7)_0x5e3a00[_0x8680(0xb)](_0x486d58,_0x2eb3f5);};}};},[]),_0x230261[_0x8680(0xc)](useEffect,()=>{const _0x28f772={'UByyj':function(_0x589327,_0x2995a7){return _0x230261[_0x8680(0xd)](_0x589327,_0x2995a7);}};_0x230261[_0x8680(0xe)](_0x8680(0xf),_0x8680(0xf))?_0x230261[_0x8680(0x10)](_0x3d603c,null)&&_0x230261[_0x8680(0x11)](_0x44fe7a,_0x3d603c,_0x1f03f1):_0x28f772[_0x8680(0x12)](_0x2d3afd,_0x3e58cf=>{const _0x12459d={..._0x3e58cf};return delete _0x12459d[_0x20c579],_0x12459d;});},[_0x1f03f1,_0x3d603c]),null;};
@@ -1 +1 @@
1
- import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG[_0x101f(0x0)];export const createApiInstance=async()=>{const _0x4177d3=await AsyncStorage[_0x101f(0x1)](_0x101f(0x2));return axios['create']({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x4177d3?{'Authorization':_0x101f(0x3)+_0x4177d3}:{}}});};function _0x2b1f(){const _0x246fa6=['BASE_URL','getItem','onairosToken','Bearer\x20','/valid/validate-domain','post','FWZoe','data','Error\x20validating\x20domain:','/getAccountInfo/email','/getAccountInfo','Error\x20fetching\x20account\x20info:','VhsNk','plJFL','QneGc','error','rfjrX','YDzoj','ZAouZ','Error\x20creating\x20account:','hhSuD','iUZCF'];_0x2b1f=function(){return _0x246fa6;};return _0x2b1f();}export const validateDomain=async()=>{const _0x4a62a5={'FWZoe':_0x101f(0x4)};try{const _0x4de5f8=await createApiInstance(),_0x5d507f=await _0x4de5f8[_0x101f(0x5)](_0x4a62a5[_0x101f(0x6)]);return _0x5d507f[_0x101f(0x7)];}catch(_0x494951){return console['error'](_0x101f(0x8),_0x494951),{'status':![]};}};export const fetchAccountInfo=async(_0x186830,_0x47abdc=![])=>{const _0xe5f0e2={'VhsNk':function(_0x5a71c6){return _0x5a71c6();},'plJFL':_0x101f(0x9),'QneGc':_0x101f(0xa),'rfjrX':_0x101f(0xb)};try{const _0x10540=await _0xe5f0e2[_0x101f(0xc)](createApiInstance),_0x2bff88=_0x47abdc?{'Info':{'identifier':_0x186830}}:{'Info':{'userName':_0x186830}},_0x147959=_0x47abdc?_0xe5f0e2[_0x101f(0xd)]:_0xe5f0e2[_0x101f(0xe)],_0x3ed5e9=await _0x10540[_0x101f(0x5)](_0x147959,_0x2bff88);return _0x3ed5e9[_0x101f(0x7)];}catch(_0x4fa448){console[_0x101f(0xf)](_0xe5f0e2[_0x101f(0x10)],_0x4fa448);throw _0x4fa448;}};function _0x101f(_0x2b1fcd,_0x101f6a){_0x2b1fcd=_0x2b1fcd-0x0;const _0x16ca12=_0x2b1f();let _0x18af6d=_0x16ca12[_0x2b1fcd];return _0x18af6d;}export const getApiUrl=async(_0x483270,_0x5746f5,_0xffc3bc)=>{const _0xc01111={'WNXId':'othent','YDzoj':'/getAPIurl','ZAouZ':'Error\x20getting\x20API\x20URL:'};try{const _0x5643e5=await createApiInstance(),_0x267e25={'Info':{'EncryptedUserPin':_0x5746f5,'confirmations':_0x483270,'web3Type':_0xc01111['WNXId'],'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0xffc3bc}},_0x399097=await _0x5643e5[_0x101f(0x5)](_0xc01111[_0x101f(0x11)],_0x267e25);return _0x399097[_0x101f(0x7)];}catch(_0x43d5fb){console[_0x101f(0xf)](_0xc01111[_0x101f(0x12)],_0x43d5fb);throw _0x43d5fb;}};export const createAccount=async(_0x1903e5,_0x4f2ea4,_0x4b53bb,_0x4cc7e2)=>{const _0x5e2a5a={'hhSuD':'/createAccount','iUZCF':_0x101f(0x13)};try{const _0x150ae4=await createApiInstance(),_0x2c9b25=await _0x150ae4['post'](_0x5e2a5a[_0x101f(0x14)],{'othentSub':_0x1903e5,'pin':_0x4f2ea4,'socialAccounts':_0x4b53bb,'email':_0x4cc7e2});return _0x2c9b25['data'];}catch(_0x583733){console['error'](_0x5e2a5a[_0x101f(0x15)],_0x583733);throw _0x583733;}};
1
+ function _0x19d1(_0xef52ed,_0x19d128){_0xef52ed=_0xef52ed-0x0;const _0x17f980=_0xef52();let _0x3a630a=_0x17f980[_0xef52ed];return _0x3a630a;}import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';function _0xef52(){const _0x2f3a00=['BASE_URL','onairosToken','create','Bearer\x20','/valid/validate-domain','post','data','error','nKoIt','/getAccountInfo','wAVCP','othent','/getAPIurl','Aqkcl','HTYrv','kStmw','ElLvq','/createAccount','giQdc','iVbCv','RYKhj'];_0xef52=function(){return _0x2f3a00;};return _0xef52();}import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG[_0x19d1(0x0)];export const createApiInstance=async()=>{const _0x28fdda={'xLJnj':_0x19d1(0x1)},_0x3b164c=await AsyncStorage['getItem'](_0x28fdda['xLJnj']);return axios[_0x19d1(0x2)]({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x3b164c?{'Authorization':_0x19d1(0x3)+_0x3b164c}:{}}});};export const validateDomain=async()=>{const _0x558ad2={'sAsEG':_0x19d1(0x4),'nKoIt':'Error\x20validating\x20domain:'};try{const _0x44ba3e=await createApiInstance(),_0x18eea1=await _0x44ba3e[_0x19d1(0x5)](_0x558ad2['sAsEG']);return _0x18eea1[_0x19d1(0x6)];}catch(_0x32fbfa){return console[_0x19d1(0x7)](_0x558ad2[_0x19d1(0x8)],_0x32fbfa),{'status':![]};}};export const fetchAccountInfo=async(_0x51fce3,_0x272f90=![])=>{const _0x550ae5={'ItEif':function(_0x1f67f8){return _0x1f67f8();},'wAVCP':_0x19d1(0x9)};try{const _0x5b0377=await _0x550ae5['ItEif'](createApiInstance),_0x124c28=_0x272f90?{'Info':{'identifier':_0x51fce3}}:{'Info':{'userName':_0x51fce3}},_0x5e84dd=_0x272f90?'/getAccountInfo/email':_0x550ae5[_0x19d1(0xa)],_0x230848=await _0x5b0377[_0x19d1(0x5)](_0x5e84dd,_0x124c28);return _0x230848[_0x19d1(0x6)];}catch(_0x56062e){console['error']('Error\x20fetching\x20account\x20info:',_0x56062e);throw _0x56062e;}};export const getApiUrl=async(_0x5608f1,_0x26fbc7,_0x316878)=>{const _0x2eedbd={'Aqkcl':function(_0x510acb){return _0x510acb();},'HTYrv':_0x19d1(0xb),'kStmw':_0x19d1(0xc),'ElLvq':'Error\x20getting\x20API\x20URL:'};try{const _0xa562df=await _0x2eedbd[_0x19d1(0xd)](createApiInstance),_0x5b9666={'Info':{'EncryptedUserPin':_0x26fbc7,'confirmations':_0x5608f1,'web3Type':_0x2eedbd[_0x19d1(0xe)],'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x316878}},_0x2c23b2=await _0xa562df[_0x19d1(0x5)](_0x2eedbd[_0x19d1(0xf)],_0x5b9666);return _0x2c23b2[_0x19d1(0x6)];}catch(_0x30bfdb){console[_0x19d1(0x7)](_0x2eedbd[_0x19d1(0x10)],_0x30bfdb);throw _0x30bfdb;}};export const createAccount=async(_0x262fbc,_0x23bab6,_0xf897a4,_0x25ef27)=>{const _0x175124={'giQdc':function(_0x33ae3b){return _0x33ae3b();},'iVbCv':_0x19d1(0x11),'RYKhj':'Error\x20creating\x20account:'};try{const _0xb78343=await _0x175124[_0x19d1(0x12)](createApiInstance),_0x3338ac=await _0xb78343[_0x19d1(0x5)](_0x175124[_0x19d1(0x13)],{'othentSub':_0x262fbc,'pin':_0x23bab6,'socialAccounts':_0xf897a4,'email':_0x25ef27});return _0x3338ac[_0x19d1(0x6)];}catch(_0x19532a){console[_0x19d1(0x7)](_0x175124[_0x19d1(0x14)],_0x19532a);throw _0x19532a;}};
@@ -32,4 +32,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
32
32
  require('../assets/animations/persona-animation.json')
33
33
  ];
34
34
  function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
35
- export const PLATFORM_ICONS={'youtube':__ONAIROS_REQ_FUNC__(0x0),'youtube2':__ONAIROS_REQ_FUNC__(0x1),'reddit':__ONAIROS_REQ_FUNC__(0x2),'linkedin':__ONAIROS_REQ_FUNC__(0x3),'instagram':__ONAIROS_REQ_FUNC__(0x4),'facebook':__ONAIROS_REQ_FUNC__(0x5),'pinterest':__ONAIROS_REQ_FUNC__(0x6),'gmail':__ONAIROS_REQ_FUNC__(0x7),'twitter':__ONAIROS_REQ_FUNC__(0x8),'farcaster':__ONAIROS_REQ_FUNC__(0x9),'chatgpt':__ONAIROS_REQ_FUNC__(0xa),'claude':__ONAIROS_REQ_FUNC__(0xb),'grok':__ONAIROS_REQ_FUNC__(0xc),'gemini':__ONAIROS_REQ_FUNC__(0xd),'netflix':__ONAIROS_REQ_FUNC__(0xe),'default':__ONAIROS_REQ_FUNC__(0x10)};export const getPlatformIconFromRegistry=_0x441b22=>{const _0x17c47e={'sFZhD':_0x1b1c(0x0),'lnWfX':_0x1b1c(0x1),'koDWI':_0x1b1c(0x2),'alOoc':_0x1b1c(0x3),'IfsXz':'farcaster','WtWOK':_0x1b1c(0x4),'wFBlm':_0x1b1c(0x5),'VdHfU':'google_ai','bDjsJ':_0x1b1c(0x6),'hASHc':'spotify'},_0x2ff342=_0x441b22[_0x1b1c(0x7)]();switch(_0x2ff342){case _0x1b1c(0x8):return PLATFORM_ICONS[_0x1b1c(0x8)];case _0x1b1c(0x9):return PLATFORM_ICONS['reddit'];case _0x17c47e['sFZhD']:return PLATFORM_ICONS[_0x1b1c(0x0)];case _0x17c47e[_0x1b1c(0xa)]:return PLATFORM_ICONS[_0x1b1c(0x1)];case _0x1b1c(0xb):return PLATFORM_ICONS[_0x1b1c(0xb)];case _0x17c47e[_0x1b1c(0xc)]:return PLATFORM_ICONS['pinterest'];case _0x1b1c(0xd):case _0x17c47e[_0x1b1c(0xe)]:return PLATFORM_ICONS[_0x1b1c(0xd)];case _0x1b1c(0xf):case'x':return PLATFORM_ICONS[_0x1b1c(0xf)];case _0x17c47e[_0x1b1c(0x10)]:return PLATFORM_ICONS[_0x1b1c(0x11)];case _0x17c47e[_0x1b1c(0x12)]:case'openai':return PLATFORM_ICONS[_0x1b1c(0x4)];case _0x17c47e['wFBlm']:case _0x1b1c(0x13):return PLATFORM_ICONS[_0x1b1c(0x5)];case _0x1b1c(0x14):return PLATFORM_ICONS['grok'];case'gemini':case _0x17c47e[_0x1b1c(0x15)]:return PLATFORM_ICONS[_0x1b1c(0x16)];case _0x17c47e[_0x1b1c(0x17)]:return PLATFORM_ICONS[_0x1b1c(0x6)];case _0x17c47e[_0x1b1c(0x18)]:return PLATFORM_ICONS['default'];default:return PLATFORM_ICONS['default'];}};function _0x1b1c(_0x207471,_0x1b1c81){_0x207471=_0x207471-0x0;const _0x5cc94e=_0x2074();let _0x27cfac=_0x5cc94e[_0x207471];return _0x27cfac;}export const PERSONA_IMAGES={'level1':__ONAIROS_REQ_FUNC__(0x11),'level2':__ONAIROS_REQ_FUNC__(0x12),'level3':__ONAIROS_REQ_FUNC__(0x13),'level4':__ONAIROS_REQ_FUNC__(0x14),'level5':__ONAIROS_REQ_FUNC__(0x15)};export const getPersonaImage=_0x3a031b=>{const _0xc37666=_0x1b1c(0x19)+_0x3a031b;return PERSONA_IMAGES[_0xc37666]||PERSONA_IMAGES['level1'];};function _0x2074(){const _0x4621ff=['linkedin','instagram','pinterest','email','chatgpt','claude','netflix','toLowerCase','youtube','reddit','lnWfX','facebook','koDWI','gmail','alOoc','twitter','IfsXz','farcaster','WtWOK','anthropic','grok','VdHfU','gemini','bDjsJ','hASHc','level','Instagram','YouTube','youtube2','Reddit','zYFXy','default'];_0x2074=function(){return _0x4621ff;};return _0x2074();}export const BRAND_IMAGES={'onairosLogo':__ONAIROS_REQ_FUNC__(0x16),'onairosLogoAlt':__ONAIROS_REQ_FUNC__(0x17),'googleLogo':__ONAIROS_REQ_FUNC__(0x18),'faceIdLogo':__ONAIROS_REQ_FUNC__(0x19),'enochIcon':__ONAIROS_REQ_FUNC__(0x1a)};export const ANIMATIONS={'loader':__ONAIROS_REQ_FUNC__(0x1b),'persona':__ONAIROS_REQ_FUNC__(0x1c)};export const OVERLAY_PLATFORMS=[{'id':'instagram','name':_0x1b1c(0x1a),'icon':PLATFORM_ICONS['instagram']},{'id':'youtube','name':_0x1b1c(0x1b),'icon':PLATFORM_ICONS[_0x1b1c(0x1c)]},{'id':'reddit','name':_0x1b1c(0x1d),'icon':PLATFORM_ICONS[_0x1b1c(0x9)]},{'id':_0x1b1c(0x2),'name':'Pinterest','icon':PLATFORM_ICONS['pinterest']},{'id':_0x1b1c(0x3),'name':'Email','icon':PLATFORM_ICONS['gmail']}];export const getUniversalOnboardingIcon=_0x3c6d0e=>{const _0x1f9ca1={'zYFXy':'instagram','ycokE':'email'},_0x4a4a79=_0x3c6d0e[_0x1b1c(0x7)]();switch(_0x4a4a79){case _0x1f9ca1[_0x1b1c(0x1e)]:return PLATFORM_ICONS[_0x1b1c(0x1)];case _0x1b1c(0x8):return PLATFORM_ICONS[_0x1b1c(0x1c)];case _0x1b1c(0x9):return PLATFORM_ICONS['reddit'];case _0x1b1c(0x2):return PLATFORM_ICONS[_0x1b1c(0x2)];case'facebook':return PLATFORM_ICONS[_0x1b1c(0xb)];case _0x1b1c(0x0):return PLATFORM_ICONS[_0x1b1c(0x0)];case'gmail':case _0x1f9ca1['ycokE']:return PLATFORM_ICONS[_0x1b1c(0xd)];default:return PLATFORM_ICONS[_0x1b1c(0x1f)];}};
35
+ export const PLATFORM_ICONS={'youtube':__ONAIROS_REQ_FUNC__(0x0),'youtube2':__ONAIROS_REQ_FUNC__(0x1),'reddit':__ONAIROS_REQ_FUNC__(0x2),'linkedin':__ONAIROS_REQ_FUNC__(0x3),'instagram':__ONAIROS_REQ_FUNC__(0x4),'facebook':__ONAIROS_REQ_FUNC__(0x5),'pinterest':__ONAIROS_REQ_FUNC__(0x6),'gmail':__ONAIROS_REQ_FUNC__(0x7),'twitter':__ONAIROS_REQ_FUNC__(0x8),'farcaster':__ONAIROS_REQ_FUNC__(0x9),'chatgpt':__ONAIROS_REQ_FUNC__(0xa),'claude':__ONAIROS_REQ_FUNC__(0xb),'grok':__ONAIROS_REQ_FUNC__(0xc),'gemini':__ONAIROS_REQ_FUNC__(0xd),'netflix':__ONAIROS_REQ_FUNC__(0xe),'spotify':__ONAIROS_REQ_FUNC__(0xf),'default':__ONAIROS_REQ_FUNC__(0x10)};export const getPlatformIconFromRegistry=_0x549790=>{const _0x272a31={'HxcZX':_0x8278(0x0),'Wnqcu':_0x8278(0x1),'PitXC':_0x8278(0x2),'FmTMu':_0x8278(0x3),'WGMul':_0x8278(0x4),'rLvbv':_0x8278(0x5)},_0x8e84c=_0x549790[_0x8278(0x6)]();switch(_0x8e84c){case _0x8278(0x7):return PLATFORM_ICONS['youtube'];case _0x272a31['HxcZX']:return PLATFORM_ICONS[_0x8278(0x0)];case _0x8278(0x8):return PLATFORM_ICONS['linkedin'];case _0x8278(0x9):return PLATFORM_ICONS[_0x8278(0x9)];case _0x272a31[_0x8278(0xa)]:return PLATFORM_ICONS['facebook'];case _0x8278(0xb):return PLATFORM_ICONS[_0x8278(0xb)];case _0x8278(0xc):case _0x272a31['PitXC']:return PLATFORM_ICONS[_0x8278(0xc)];case _0x8278(0xd):case'x':return PLATFORM_ICONS[_0x8278(0xd)];case'farcaster':return PLATFORM_ICONS[_0x8278(0xe)];case _0x272a31[_0x8278(0xf)]:case'openai':return PLATFORM_ICONS[_0x8278(0x3)];case _0x272a31[_0x8278(0x10)]:case'anthropic':return PLATFORM_ICONS['claude'];case'grok':return PLATFORM_ICONS[_0x8278(0x11)];case _0x8278(0x12):case _0x8278(0x13):return PLATFORM_ICONS['gemini'];case'netflix':return PLATFORM_ICONS[_0x8278(0x14)];case _0x272a31[_0x8278(0x15)]:return PLATFORM_ICONS[_0x8278(0x5)];default:return PLATFORM_ICONS['default'];}};function _0x8278(_0x599d53,_0x827888){_0x599d53=_0x599d53-0x0;const _0x2692ee=_0x599d();let _0x3f8578=_0x2692ee[_0x599d53];return _0x3f8578;}function _0x599d(){const _0x1a468b=['reddit','facebook','email','chatgpt','claude','spotify','toLowerCase','youtube','linkedin','instagram','Wnqcu','pinterest','gmail','twitter','farcaster','FmTMu','WGMul','grok','gemini','google_ai','netflix','rLvbv','level','Instagram','youtube2','Reddit','Pinterest','Email','xOmzV','PnIZf','POXXP'];_0x599d=function(){return _0x1a468b;};return _0x599d();}export const PERSONA_IMAGES={'level1':__ONAIROS_REQ_FUNC__(0x11),'level2':__ONAIROS_REQ_FUNC__(0x12),'level3':__ONAIROS_REQ_FUNC__(0x13),'level4':__ONAIROS_REQ_FUNC__(0x14),'level5':__ONAIROS_REQ_FUNC__(0x15)};export const getPersonaImage=_0x5e739f=>{const _0x5b2ae6=_0x8278(0x16)+_0x5e739f;return PERSONA_IMAGES[_0x5b2ae6]||PERSONA_IMAGES['level1'];};export const BRAND_IMAGES={'onairosLogo':__ONAIROS_REQ_FUNC__(0x16),'onairosLogoAlt':__ONAIROS_REQ_FUNC__(0x17),'googleLogo':__ONAIROS_REQ_FUNC__(0x18),'faceIdLogo':__ONAIROS_REQ_FUNC__(0x19),'enochIcon':__ONAIROS_REQ_FUNC__(0x1a)};export const ANIMATIONS={'loader':__ONAIROS_REQ_FUNC__(0x1b),'persona':__ONAIROS_REQ_FUNC__(0x1c)};export const OVERLAY_PLATFORMS=[{'id':_0x8278(0x9),'name':_0x8278(0x17),'icon':PLATFORM_ICONS['instagram']},{'id':_0x8278(0x7),'name':'YouTube','icon':PLATFORM_ICONS[_0x8278(0x18)]},{'id':_0x8278(0x0),'name':_0x8278(0x19),'icon':PLATFORM_ICONS[_0x8278(0x0)]},{'id':_0x8278(0xb),'name':_0x8278(0x1a),'icon':PLATFORM_ICONS[_0x8278(0xb)]},{'id':'email','name':_0x8278(0x1b),'icon':PLATFORM_ICONS[_0x8278(0xc)]}];export const getUniversalOnboardingIcon=_0x24737d=>{const _0x5938f3={'xOmzV':'instagram','PnIZf':_0x8278(0xb),'POXXP':'facebook'},_0x7508c5=_0x24737d[_0x8278(0x6)]();switch(_0x7508c5){case _0x5938f3[_0x8278(0x1c)]:return PLATFORM_ICONS[_0x8278(0x9)];case _0x8278(0x7):return PLATFORM_ICONS[_0x8278(0x18)];case _0x8278(0x0):return PLATFORM_ICONS[_0x8278(0x0)];case _0x5938f3[_0x8278(0x1d)]:return PLATFORM_ICONS[_0x8278(0xb)];case _0x5938f3[_0x8278(0x1e)]:return PLATFORM_ICONS[_0x8278(0x1)];case _0x8278(0x8):return PLATFORM_ICONS[_0x8278(0x8)];case _0x8278(0xc):case'email':return PLATFORM_ICONS['gmail'];default:return PLATFORM_ICONS['default'];}};
@@ -1 +1 @@
1
- import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';function _0x2d27(){const _0x1046a0=['BASE_URL','Error\x20storing\x20auth\x20data:','UbnPk','Error\x20getting\x20PIN:','kBcqh','GvVUa','post','data','error','Error\x20verifying\x20token:','/verifyToken','Bearer\x20','valid','CflNN','onairosToken','bGNbf','username','othentToken','MZwPe','ZsOhy','setItem','CpTHj','Kxotu','qzfpB','OCQio','stringify','Error\x20getting\x20stored\x20auth\x20data:','MobCC','removeItem','UGcbw','MVDfv','kQnRf','Error\x20clearing\x20auth\x20data:','LDfyj','NCpWX','IJzNh','getItem','GkTiK','MqJno','RmOvg','RCJnY'];_0x2d27=function(){return _0x1046a0;};return _0x2d27();}import{API_CONFIG}from'../config/api';const API_URL=API_CONFIG[_0x12b7(0x0)];export const getPin=async _0x59bbfd=>{const _0x58fdeb={'gEZZi':_0x12b7(0x1),'GvVUa':_0x12b7(0x2),'NkBxZ':_0x12b7(0x3)};try{if(_0x12b7(0x4)!==_0x58fdeb[_0x12b7(0x5)]){const _0x29e50b=await axios[_0x12b7(0x6)](API_URL+'/getPin',{'hashedOthentSub':_0x59bbfd});return _0x29e50b[_0x12b7(0x7)];}else{_0x3a08c8[_0x12b7(0x8)](_0x58fdeb['gEZZi'],_0x4fc389);throw _0x1333d9;}}catch(_0x4284a7){console[_0x12b7(0x8)](_0x58fdeb['NkBxZ'],_0x4284a7);throw _0x4284a7;}};function _0x12b7(_0x2d2759,_0x12b78e){_0x2d2759=_0x2d2759-0x0;const _0x29265a=_0x2d27();let _0x4b66b6=_0x29265a[_0x2d2759];return _0x4b66b6;}export const verifyToken=async _0x6f3fe9=>{const _0x3dce3a={'CflNN':_0x12b7(0x9)};try{const _0x17cdd1=await axios[_0x12b7(0x6)](API_URL+_0x12b7(0xa),{},{'headers':{'Authorization':_0x12b7(0xb)+_0x6f3fe9}});return _0x17cdd1[_0x12b7(0x7)][_0x12b7(0xc)];}catch(_0x30b1cb){return console[_0x12b7(0x8)](_0x3dce3a[_0x12b7(0xd)],_0x30b1cb),![];}};export const storeAuthData=async(_0x29fc92,_0x59d47f=null,_0x457d65=null)=>{const _0xdb9bc1={'qzfpB':_0x12b7(0x9),'wuwJf':_0x12b7(0x3),'ZsOhy':'MZwPe','CpTHj':_0x12b7(0xe),'vukqb':function(_0x24d5cb,_0x599b7d){return _0x24d5cb===_0x599b7d;},'VoEJP':_0x12b7(0xf),'Kxotu':'xUdCr','OCQio':_0x12b7(0x10),'fVlmp':_0x12b7(0x11)};try{if(_0x12b7(0x12)===_0xdb9bc1[_0x12b7(0x13)]){await AsyncStorage[_0x12b7(0x14)](_0xdb9bc1[_0x12b7(0x15)],_0x29fc92);if(_0x59d47f){if(_0xdb9bc1['vukqb'](_0xdb9bc1['VoEJP'],_0xdb9bc1[_0x12b7(0x16)]))return _0x15e338[_0x12b7(0x8)](_0xdb9bc1[_0x12b7(0x17)],_0x525866),![];else await AsyncStorage[_0x12b7(0x14)](_0xdb9bc1[_0x12b7(0x18)],_0x59d47f);}_0x457d65&&await AsyncStorage[_0x12b7(0x14)](_0xdb9bc1['fVlmp'],JSON[_0x12b7(0x19)](_0x457d65));}else{_0x8fe46d['error'](_0xdb9bc1['wuwJf'],_0x22552b);throw _0x27e740;}}catch(_0x834abb){console[_0x12b7(0x8)](_0x12b7(0x1),_0x834abb);throw _0x834abb;}};export const clearAuthData=async()=>{const _0x36554e={'LDfyj':_0x12b7(0x1a),'UGcbw':_0x12b7(0xe),'MVDfv':function(_0x1a5961,_0x2d588b){return _0x1a5961===_0x2d588b;},'kQnRf':_0x12b7(0x1b)};try{await AsyncStorage[_0x12b7(0x1c)](_0x36554e[_0x12b7(0x1d)]),await AsyncStorage[_0x12b7(0x1c)](_0x12b7(0x10)),await AsyncStorage['removeItem'](_0x12b7(0x11));}catch(_0x1354eb){if(_0x36554e[_0x12b7(0x1e)](_0x36554e[_0x12b7(0x1f)],_0x36554e[_0x12b7(0x1f)])){console['error'](_0x12b7(0x20),_0x1354eb);throw _0x1354eb;}else return _0x25abc2[_0x12b7(0x8)](_0x36554e[_0x12b7(0x21)],_0xc11daf),{'token':null,'username':null,'othentToken':null};}};export const getStoredAuthData=async()=>{const _0x59c729={'RCJnY':_0x12b7(0x20),'IJzNh':_0x12b7(0xe),'WiFas':_0x12b7(0x10),'GkTiK':_0x12b7(0x11),'MqJno':_0x12b7(0x22),'RmOvg':_0x12b7(0x1a)};try{const _0x5b3865=await AsyncStorage['getItem'](_0x59c729[_0x12b7(0x23)]),_0x5506bb=await AsyncStorage[_0x12b7(0x24)](_0x59c729['WiFas']),_0x53b61d=await AsyncStorage[_0x12b7(0x24)](_0x59c729[_0x12b7(0x25)]);return{'token':_0x5b3865,'username':_0x5506bb,'othentToken':_0x53b61d?JSON['parse'](_0x53b61d):null};}catch(_0x1f08e4){if(_0x59c729[_0x12b7(0x26)]===_0x59c729['MqJno'])return console['error'](_0x59c729[_0x12b7(0x27)],_0x1f08e4),{'token':null,'username':null,'othentToken':null};else{_0x5b15b1[_0x12b7(0x8)](_0x59c729[_0x12b7(0x28)],_0x22b393);throw _0x505af3;}}};
1
+ import axios from'axios';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';function _0x2e80(_0x12bcc2,_0x2e80b1){_0x12bcc2=_0x12bcc2-0x0;const _0x8136d8=_0x12bc();let _0x909dc7=_0x8136d8[_0x12bcc2];return _0x909dc7;}const API_URL=API_CONFIG[_0x2e80(0x0)];export const getPin=async _0x2d539c=>{const _0x206b02={'zeEzw':'Error\x20clearing\x20auth\x20data:','Rkzol':_0x2e80(0x1),'tKEMK':function(_0x15153c,_0x1d56ae){return _0x15153c!==_0x1d56ae;},'pyqJG':_0x2e80(0x2),'qNZwB':_0x2e80(0x3),'QkrXp':function(_0x182f50,_0x206d65){return _0x182f50!==_0x206d65;},'ATDnP':'YTaHv','IilJH':'Error\x20getting\x20PIN:'};try{if(_0x206b02[_0x2e80(0x4)](_0x206b02[_0x2e80(0x5)],_0x206b02[_0x2e80(0x6)])){const _0x21f3d6=await axios['post'](API_URL+_0x2e80(0x7),{'hashedOthentSub':_0x2d539c});return _0x21f3d6['data'];}else{_0x569e22[_0x2e80(0x8)](_0x206b02['zeEzw'],_0x4f3489);throw _0x529c08;}}catch(_0x589232){if(_0x206b02[_0x2e80(0x9)](_0x206b02[_0x2e80(0xa)],_0x206b02[_0x2e80(0xa)]))return _0x3ea23a['error'](_0x206b02[_0x2e80(0xb)],_0x44a201),![];else{console[_0x2e80(0x8)](_0x206b02[_0x2e80(0xc)],_0x589232);throw _0x589232;}}};function _0x12bc(){const _0x1fbf0f=['BASE_URL','Error\x20verifying\x20token:','StDEy','UqCIT','tKEMK','pyqJG','qNZwB','/getPin','error','QkrXp','ATDnP','Rkzol','IilJH','JhHiO','post','Bearer\x20','data','valid','BYxVF','Error\x20getting\x20stored\x20auth\x20data:','Error\x20getting\x20PIN:','onairosToken','uHVIT','username','Error\x20storing\x20auth\x20data:','CygDP','HrPDZ','itclZ','shdxH','MoNix','setItem','othentToken','tQGfq','VTXqo','Error\x20clearing\x20auth\x20data:','DkCxH','DBLAY','removeItem','JuNNg','ZjNZC','xhOLO','qfiqz','SxjYz','getItem','pXByi','cxdkA'];_0x12bc=function(){return _0x1fbf0f;};return _0x12bc();}export const verifyToken=async _0x1e1c6f=>{const _0x4a439={'BYxVF':_0x2e80(0xd)};try{const _0x2c2701=await axios[_0x2e80(0xe)](API_URL+'/verifyToken',{},{'headers':{'Authorization':_0x2e80(0xf)+_0x1e1c6f}});return _0x2c2701[_0x2e80(0x10)][_0x2e80(0x11)];}catch(_0x510486){return _0x2e80(0xd)===_0x4a439[_0x2e80(0x12)]?(console['error'](_0x2e80(0x1),_0x510486),![]):(_0x1acf30['error'](_0x2e80(0x13),_0x844d77),{'token':null,'username':null,'othentToken':null});}};export const storeAuthData=async(_0x1a9480,_0x585b87=null,_0x2cb628=null)=>{const _0xd75293={'MoNix':_0x2e80(0x14),'CygDP':_0x2e80(0x15),'HrPDZ':function(_0x2064ee,_0xd05c98){return _0x2064ee===_0xd05c98;},'itclZ':_0x2e80(0x16),'shdxH':_0x2e80(0x17),'tQGfq':_0x2e80(0x18)};try{await AsyncStorage['setItem'](_0xd75293[_0x2e80(0x19)],_0x1a9480);if(_0x585b87){if(_0xd75293[_0x2e80(0x1a)](_0xd75293[_0x2e80(0x1b)],'uHVIT'))await AsyncStorage['setItem'](_0xd75293[_0x2e80(0x1c)],_0x585b87);else{_0x47f994[_0x2e80(0x8)](_0xd75293[_0x2e80(0x1d)],_0x158927);throw _0x3eb091;}}_0x2cb628&&await AsyncStorage[_0x2e80(0x1e)](_0x2e80(0x1f),JSON['stringify'](_0x2cb628));}catch(_0x20ec51){console[_0x2e80(0x8)](_0xd75293[_0x2e80(0x20)],_0x20ec51);throw _0x20ec51;}};export const clearAuthData=async()=>{const _0xcde6d={'xhOLO':_0x2e80(0x18),'DkCxH':function(_0x5b0263,_0x355fd1){return _0x5b0263!==_0x355fd1;},'gpvgi':_0x2e80(0x21),'DBLAY':'CDXvK','JuNNg':_0x2e80(0x17),'ZjNZC':_0x2e80(0x1f),'qfiqz':_0x2e80(0x22)};try{if(_0xcde6d[_0x2e80(0x23)](_0xcde6d['gpvgi'],_0xcde6d[_0x2e80(0x24)]))await AsyncStorage[_0x2e80(0x25)](_0x2e80(0x15)),await AsyncStorage[_0x2e80(0x25)](_0xcde6d[_0x2e80(0x26)]),await AsyncStorage[_0x2e80(0x25)](_0xcde6d[_0x2e80(0x27)]);else{_0x2238df[_0x2e80(0x8)](_0xcde6d[_0x2e80(0x28)],_0x1f66b5);throw _0x24693f;}}catch(_0xc130a9){console['error'](_0xcde6d[_0x2e80(0x29)],_0xc130a9);throw _0xc130a9;}};export const getStoredAuthData=async()=>{const _0x8917b6={'SxjYz':_0x2e80(0x15),'pXByi':_0x2e80(0x17),'cxdkA':_0x2e80(0x13)};try{const _0x7e87c4=await AsyncStorage['getItem'](_0x8917b6[_0x2e80(0x2a)]),_0x3b5535=await AsyncStorage[_0x2e80(0x2b)](_0x8917b6[_0x2e80(0x2c)]),_0x5e0169=await AsyncStorage[_0x2e80(0x2b)](_0x2e80(0x1f));return{'token':_0x7e87c4,'username':_0x3b5535,'othentToken':_0x5e0169?JSON['parse'](_0x5e0169):null};}catch(_0x37c87d){return console[_0x2e80(0x8)](_0x8917b6[_0x2e80(0x2d)],_0x37c87d),{'token':null,'username':null,'othentToken':null};}};