@onairos/react-native 3.4.1 → 3.6.0

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 (574) hide show
  1. package/README.md +423 -374
  2. package/lib/commonjs/api/index.js +9 -145
  3. package/lib/commonjs/assets/animations/loaderani.json +1 -0
  4. package/lib/commonjs/assets/animations/persona-animation.json +1 -0
  5. package/lib/commonjs/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  7. package/lib/commonjs/assets/icons/Facebookicon.png +0 -0
  8. package/lib/commonjs/assets/icons/Gmail.png +0 -0
  9. package/lib/commonjs/assets/icons/Linkedinicon.png +0 -0
  10. package/lib/commonjs/assets/icons/Redditicon.png +0 -0
  11. package/lib/commonjs/assets/icons/YouTubeicon2.png +0 -0
  12. package/lib/commonjs/assets/icons/YouTubeicon3.png +0 -0
  13. package/lib/commonjs/assets/icons/chatgpt.png +0 -0
  14. package/lib/commonjs/assets/icons/claude.png +0 -0
  15. package/lib/commonjs/assets/icons/gemini.png +0 -0
  16. package/lib/commonjs/assets/icons/grok.png +0 -0
  17. package/lib/commonjs/assets/images/Checkbox.svg +3 -0
  18. package/lib/commonjs/assets/images/EnochE.svg +19 -0
  19. package/lib/commonjs/assets/images/Enochicon1.png +0 -0
  20. package/lib/commonjs/assets/images/Face_ID_logo.png +0 -0
  21. package/lib/commonjs/assets/images/Facebookicon.png +0 -0
  22. package/lib/commonjs/assets/images/Gmail.png +0 -0
  23. package/lib/commonjs/assets/images/Googlelogo.png +0 -0
  24. package/lib/commonjs/assets/images/Linkedinicon.png +0 -0
  25. package/lib/commonjs/assets/images/OnairosNewLogo.png +0 -0
  26. package/lib/commonjs/assets/images/Onairoslogo.png +0 -0
  27. package/lib/commonjs/assets/images/Personalityprofile.svg +3 -0
  28. package/lib/commonjs/assets/images/Personalitytraits.svg +3 -0
  29. package/lib/commonjs/assets/images/Redditicon.png +0 -0
  30. package/lib/commonjs/assets/images/Userpreferences.svg +3 -0
  31. package/lib/commonjs/assets/images/YouTubeicon3.png +0 -0
  32. package/lib/commonjs/assets/images/arrow.svg +20 -0
  33. package/lib/commonjs/assets/images/basicproficon.svg +43 -0
  34. package/lib/commonjs/assets/images/basicprofile.svg +3 -0
  35. package/lib/commonjs/assets/images/chatgpt.png +0 -0
  36. package/lib/commonjs/assets/images/checkmark.svg +4 -0
  37. package/lib/commonjs/assets/images/claude.png +0 -0
  38. package/lib/commonjs/assets/images/contentanalysis.svg +3 -0
  39. package/lib/commonjs/assets/images/contenticon.svg +23 -0
  40. package/lib/commonjs/assets/images/gemini.png +0 -0
  41. package/lib/commonjs/assets/images/grok.png +0 -0
  42. package/lib/commonjs/assets/images/persona1.png +0 -0
  43. package/lib/commonjs/assets/images/persona2.png +0 -0
  44. package/lib/commonjs/assets/images/persona3.png +0 -0
  45. package/lib/commonjs/assets/images/persona4.png +0 -0
  46. package/lib/commonjs/assets/images/persona5.png +0 -0
  47. package/lib/commonjs/assets/images/personalityicon.svg +18 -0
  48. package/lib/commonjs/assets/images/x-close.svg +3 -0
  49. package/lib/commonjs/components/BodyText.js +9 -0
  50. package/lib/commonjs/components/BrandMark.js +10 -0
  51. package/lib/commonjs/components/CodeInput.js +9 -0
  52. package/lib/commonjs/components/EmailInput.js +8 -0
  53. package/lib/commonjs/components/GoogleButton.js +9 -0
  54. package/lib/commonjs/components/HeadingGroup.js +9 -0
  55. package/lib/commonjs/components/LLMDataInputModal.js +14 -0
  56. package/lib/commonjs/components/ModalHeader.js +9 -0
  57. package/lib/commonjs/components/ModalSheet.js +9 -0
  58. package/lib/commonjs/components/Onairos.js +14 -374
  59. package/lib/commonjs/components/OnairosButton.js +13 -309
  60. package/lib/commonjs/components/OnairosSignInButton.js +12 -0
  61. package/lib/commonjs/components/Overlay.js +13 -483
  62. package/lib/commonjs/components/PersonaImage.js +10 -0
  63. package/lib/commonjs/components/PersonaLoadingScreen.js +12 -0
  64. package/lib/commonjs/components/PersonalizationConsentScreen.js +13 -0
  65. package/lib/commonjs/components/PinCreationScreen.js +12 -0
  66. package/lib/commonjs/components/PinInput.js +9 -302
  67. package/lib/commonjs/components/PlatformConnectorsStep.js +23 -0
  68. package/lib/commonjs/components/PlatformList.js +10 -137
  69. package/lib/commonjs/components/PlatformToggle.js +9 -0
  70. package/lib/commonjs/components/PrimaryButton.js +10 -0
  71. package/lib/commonjs/components/SignInMatchAnimation.js +9 -0
  72. package/lib/commonjs/components/SignInStep.js +12 -0
  73. package/lib/commonjs/components/UniversalOnboarding.js +30 -1702
  74. package/lib/commonjs/components/VerificationStep.js +11 -0
  75. package/lib/commonjs/components/WelcomeScreen.js +22 -0
  76. package/lib/commonjs/components/icons/Basicproficon.js +8 -0
  77. package/lib/commonjs/components/icons/Basicprofile.js +8 -0
  78. package/lib/commonjs/components/icons/Checkbox.js +8 -0
  79. package/lib/commonjs/components/icons/Checkmark.js +8 -0
  80. package/lib/commonjs/components/icons/Contentanalysis.js +8 -0
  81. package/lib/commonjs/components/icons/Contenticon.js +8 -0
  82. package/lib/commonjs/components/icons/EnochE.js +8 -0
  83. package/lib/commonjs/components/icons/Personalityicon.js +8 -0
  84. package/lib/commonjs/components/icons/Personalityprofile.js +8 -0
  85. package/lib/commonjs/components/icons/Personalitytraits.js +8 -0
  86. package/lib/commonjs/components/icons/Userpreferences.js +8 -0
  87. package/lib/commonjs/components/icons/index.js +17 -0
  88. package/lib/commonjs/components/onboarding/OAuthWebView.js +18 -827
  89. package/lib/commonjs/components/onboarding/OnboardingHeader.js +10 -74
  90. package/lib/commonjs/components/onboarding/PinInput.js +10 -283
  91. package/lib/commonjs/components/onboarding/PlatformConnector.js +11 -249
  92. package/lib/commonjs/config/api.js +7 -0
  93. package/lib/commonjs/constants/index.js +7 -83
  94. package/lib/commonjs/context/AuthContext.js +10 -0
  95. package/lib/commonjs/hooks/useConnectedAccounts.js +9 -0
  96. package/lib/commonjs/hooks/useConnections.js +8 -159
  97. package/lib/commonjs/hooks/useCredentials.js +10 -177
  98. package/lib/commonjs/hooks/useUserConnections.js +10 -0
  99. package/lib/commonjs/index.js +34 -106
  100. package/lib/commonjs/services/SDK_API_KEY_VALIDATION.md +421 -421
  101. package/lib/commonjs/services/apiClient.js +8 -0
  102. package/lib/commonjs/services/apiKeyService.js +9 -952
  103. package/lib/commonjs/services/authService.js +10 -0
  104. package/lib/commonjs/services/biometricPinService.js +8 -0
  105. package/lib/commonjs/services/chatGPTConversationExtractor.js +8 -0
  106. package/lib/commonjs/services/chatGPTConversationService.js +9 -0
  107. package/lib/commonjs/services/claudeConversationExtractor.js +8 -0
  108. package/lib/commonjs/services/claudeConversationService.js +9 -0
  109. package/lib/commonjs/services/connectedAccountsService.js +10 -0
  110. package/lib/commonjs/services/googleAuthService.js +11 -0
  111. package/lib/commonjs/services/hingeDataExtractor.js +8 -0
  112. package/lib/commonjs/services/hingeDataService.js +9 -0
  113. package/lib/commonjs/services/imageCompressionService.js +7 -0
  114. package/lib/commonjs/services/instagramDataExtractor.js +8 -0
  115. package/lib/commonjs/services/instagramDataService.js +9 -0
  116. package/lib/commonjs/services/jwtStorageService.js +7 -0
  117. package/lib/commonjs/services/linkedinDOMExtractor.js +7 -0
  118. package/lib/commonjs/services/linkedinProfileService.js +9 -0
  119. package/lib/commonjs/services/linkedinScrapingService.js +8 -0
  120. package/lib/commonjs/services/llmDataStorage.js +8 -0
  121. package/lib/commonjs/services/mobileTrainingService.js +8 -0
  122. package/lib/commonjs/services/oauthService.js +11 -390
  123. package/lib/commonjs/services/pinEncryptionService.js +8 -0
  124. package/lib/commonjs/services/pinStorageUtils.js +7 -0
  125. package/lib/commonjs/services/platformAuthService.js +12 -1067
  126. package/lib/commonjs/services/sephoraDataExtractor.js +8 -0
  127. package/lib/commonjs/services/sephoraDataService.js +9 -0
  128. package/lib/commonjs/services/storageService.js +8 -0
  129. package/lib/commonjs/services/telegramDataExtractor.js +8 -0
  130. package/lib/commonjs/services/telegramDataService.js +11 -0
  131. package/lib/commonjs/services/trainingApiHelpers.js +7 -0
  132. package/lib/commonjs/services/userConnectionsService.js +10 -0
  133. package/lib/commonjs/services/youtubeMigrationService.js +10 -0
  134. package/lib/commonjs/theme/index.js +7 -0
  135. package/lib/commonjs/types/ambient.d.js +1 -2
  136. package/lib/commonjs/types/declarations.d.js +1 -2
  137. package/lib/commonjs/types/index.js +1 -6
  138. package/lib/commonjs/types/node-fix.d.js +1 -2
  139. package/lib/commonjs/types/node-override.d.js +1 -2
  140. package/lib/commonjs/types/opacity.d.js +1 -2
  141. package/lib/commonjs/types.js +1 -14
  142. package/lib/commonjs/utils/Portal.js +8 -98
  143. package/lib/commonjs/utils/api.js +9 -129
  144. package/lib/commonjs/utils/assetRegistry.js +33 -0
  145. package/lib/commonjs/utils/auth.js +9 -111
  146. package/lib/commonjs/utils/connectorTests.js +29 -0
  147. package/lib/commonjs/utils/crypto.js +8 -62
  148. package/lib/commonjs/utils/debugHelper.js +1 -64
  149. package/lib/commonjs/utils/encryption.js +7 -76
  150. package/lib/commonjs/utils/eventUtils.js +1 -0
  151. package/lib/commonjs/utils/haptics.js +9 -0
  152. package/lib/commonjs/utils/imagePreloader.js +1 -0
  153. package/lib/commonjs/utils/networkDiagnostics.js +8 -0
  154. package/lib/commonjs/utils/onairosApi.js +9 -350
  155. package/lib/commonjs/utils/programmaticFlow.js +9 -117
  156. package/lib/commonjs/utils/retryHelper.js +1 -220
  157. package/lib/commonjs/utils/secureStorage.js +10 -349
  158. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -0
  159. package/lib/commonjs/utils/webviewScripts/claude.js +1 -0
  160. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -0
  161. package/lib/commonjs/utils/webviewScripts/index.js +13 -0
  162. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -0
  163. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -0
  164. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -0
  165. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -0
  166. package/lib/module/api/index.js +1 -139
  167. package/lib/module/assets/animations/loaderani.json +1 -0
  168. package/lib/module/assets/animations/persona-animation.json +1 -0
  169. package/lib/module/assets/fonts/EBGaramond-VariableFont_wght.ttf +0 -0
  170. package/lib/module/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf +0 -0
  171. package/lib/module/assets/icons/Facebookicon.png +0 -0
  172. package/lib/module/assets/icons/Gmail.png +0 -0
  173. package/lib/module/assets/icons/Linkedinicon.png +0 -0
  174. package/lib/module/assets/icons/Redditicon.png +0 -0
  175. package/lib/module/assets/icons/YouTubeicon2.png +0 -0
  176. package/lib/module/assets/icons/YouTubeicon3.png +0 -0
  177. package/lib/module/assets/icons/chatgpt.png +0 -0
  178. package/lib/module/assets/icons/claude.png +0 -0
  179. package/lib/module/assets/icons/farcaster.png +0 -0
  180. package/lib/module/assets/icons/gemini.png +0 -0
  181. package/lib/module/assets/icons/grok.png +0 -0
  182. package/lib/module/assets/icons/instagram.png +0 -0
  183. package/lib/module/assets/icons/pinterest.png +0 -0
  184. package/lib/module/assets/icons/swerv_logo.png +0 -0
  185. package/lib/module/assets/icons/twitter.jpg +0 -0
  186. package/lib/module/assets/images/Checkbox.svg +3 -0
  187. package/lib/module/assets/images/EnochE.svg +19 -0
  188. package/lib/module/assets/images/Enochicon1.png +0 -0
  189. package/lib/module/assets/images/Face_ID_logo.png +0 -0
  190. package/lib/module/assets/images/Facebookicon.png +0 -0
  191. package/lib/module/assets/images/Gmail.png +0 -0
  192. package/lib/module/assets/images/Googlelogo.png +0 -0
  193. package/lib/module/assets/images/Linkedinicon.png +0 -0
  194. package/lib/module/assets/images/OnairosNewLogo.png +0 -0
  195. package/lib/module/assets/images/Onairoslogo.png +0 -0
  196. package/lib/module/assets/images/Personalityprofile.svg +3 -0
  197. package/lib/module/assets/images/Personalitytraits.svg +3 -0
  198. package/lib/module/assets/images/Redditicon.png +0 -0
  199. package/lib/module/assets/images/Userpreferences.svg +3 -0
  200. package/lib/module/assets/images/YouTubeicon3.png +0 -0
  201. package/lib/module/assets/images/arrow.svg +20 -0
  202. package/lib/module/assets/images/basicproficon.svg +43 -0
  203. package/lib/module/assets/images/basicprofile.svg +3 -0
  204. package/lib/module/assets/images/chatgpt.png +0 -0
  205. package/lib/module/assets/images/checkmark.svg +4 -0
  206. package/lib/module/assets/images/claude.png +0 -0
  207. package/lib/module/assets/images/contentanalysis.svg +3 -0
  208. package/lib/module/assets/images/contenticon.svg +23 -0
  209. package/lib/module/assets/images/gemini.png +0 -0
  210. package/lib/module/assets/images/grok.png +0 -0
  211. package/lib/module/assets/images/persona1.png +0 -0
  212. package/lib/module/assets/images/persona2.png +0 -0
  213. package/lib/module/assets/images/persona3.png +0 -0
  214. package/lib/module/assets/images/persona4.png +0 -0
  215. package/lib/module/assets/images/persona5.png +0 -0
  216. package/lib/module/assets/images/personalityicon.svg +18 -0
  217. package/lib/module/assets/images/x-close.svg +3 -0
  218. package/lib/module/components/BodyText.js +1 -0
  219. package/lib/module/components/BrandMark.js +1 -0
  220. package/lib/module/components/CodeInput.js +1 -0
  221. package/lib/module/components/EmailInput.js +1 -0
  222. package/lib/module/components/GoogleButton.js +1 -0
  223. package/lib/module/components/HeadingGroup.js +1 -0
  224. package/lib/module/components/LLMDataInputModal.js +8 -0
  225. package/lib/module/components/ModalHeader.js +1 -0
  226. package/lib/module/components/ModalSheet.js +1 -0
  227. package/lib/module/components/Onairos.js +1 -367
  228. package/lib/module/components/OnairosButton.js +1 -302
  229. package/lib/module/components/OnairosSignInButton.js +1 -0
  230. package/lib/module/components/Overlay.js +1 -474
  231. package/lib/module/components/PersonaImage.js +1 -0
  232. package/lib/module/components/PersonaLoadingScreen.js +1 -0
  233. package/lib/module/components/PersonalizationConsentScreen.js +1 -0
  234. package/lib/module/components/PinCreationScreen.js +1 -0
  235. package/lib/module/components/PinInput.js +1 -293
  236. package/lib/module/components/PlatformConnectorsStep.js +7 -0
  237. package/lib/module/components/PlatformList.js +1 -129
  238. package/lib/module/components/PlatformToggle.js +1 -0
  239. package/lib/module/components/PrimaryButton.js +1 -0
  240. package/lib/module/components/SignInMatchAnimation.js +1 -0
  241. package/lib/module/components/SignInStep.js +1 -0
  242. package/lib/module/components/UniversalOnboarding.js +1 -1693
  243. package/lib/module/components/VerificationStep.js +1 -0
  244. package/lib/module/components/WelcomeScreen.js +1 -0
  245. package/lib/module/components/icons/Basicproficon.js +1 -0
  246. package/lib/module/components/icons/Basicprofile.js +1 -0
  247. package/lib/module/components/icons/Checkbox.js +1 -0
  248. package/lib/module/components/icons/Checkmark.js +1 -0
  249. package/lib/module/components/icons/Contentanalysis.js +1 -0
  250. package/lib/module/components/icons/Contenticon.js +1 -0
  251. package/lib/module/components/icons/EnochE.js +1 -0
  252. package/lib/module/components/icons/Personalityicon.js +1 -0
  253. package/lib/module/components/icons/Personalityprofile.js +1 -0
  254. package/lib/module/components/icons/Personalitytraits.js +1 -0
  255. package/lib/module/components/icons/Userpreferences.js +1 -0
  256. package/lib/module/components/icons/index.js +1 -0
  257. package/lib/module/components/onboarding/OAuthWebView.js +1 -818
  258. package/lib/module/components/onboarding/OnboardingHeader.js +1 -66
  259. package/lib/module/components/onboarding/PinInput.js +1 -274
  260. package/lib/module/components/onboarding/PlatformConnector.js +1 -240
  261. package/lib/module/config/api.js +1 -0
  262. package/lib/module/constants/index.js +1 -77
  263. package/lib/module/context/AuthContext.js +1 -0
  264. package/lib/module/hooks/useConnectedAccounts.js +1 -0
  265. package/lib/module/hooks/useConnections.js +1 -152
  266. package/lib/module/hooks/useCredentials.js +6 -169
  267. package/lib/module/hooks/useUserConnections.js +1 -0
  268. package/lib/module/index.js +1 -32
  269. package/lib/module/services/SDK_API_KEY_VALIDATION.md +421 -421
  270. package/lib/module/services/apiClient.js +1 -0
  271. package/lib/module/services/apiKeyService.js +1 -925
  272. package/lib/module/services/authService.js +1 -0
  273. package/lib/module/services/biometricPinService.js +1 -0
  274. package/lib/module/services/chatGPTConversationExtractor.js +1 -0
  275. package/lib/module/services/chatGPTConversationService.js +1 -0
  276. package/lib/module/services/claudeConversationExtractor.js +1 -0
  277. package/lib/module/services/claudeConversationService.js +1 -0
  278. package/lib/module/services/connectedAccountsService.js +1 -0
  279. package/lib/module/services/googleAuthService.js +1 -0
  280. package/lib/module/services/hingeDataExtractor.js +1 -0
  281. package/lib/module/services/hingeDataService.js +1 -0
  282. package/lib/module/services/imageCompressionService.js +1 -0
  283. package/lib/module/services/instagramDataExtractor.js +1 -0
  284. package/lib/module/services/instagramDataService.js +1 -0
  285. package/lib/module/services/jwtStorageService.js +1 -0
  286. package/lib/module/services/linkedinDOMExtractor.js +1 -0
  287. package/lib/module/services/linkedinProfileService.js +1 -0
  288. package/lib/module/services/linkedinScrapingService.js +1 -0
  289. package/lib/module/services/llmDataStorage.js +1 -0
  290. package/lib/module/services/mobileTrainingService.js +1 -0
  291. package/lib/module/services/oauthService.js +1 -380
  292. package/lib/module/services/pinEncryptionService.js +7 -0
  293. package/lib/module/services/pinStorageUtils.js +1 -0
  294. package/lib/module/services/platformAuthService.js +1 -1041
  295. package/lib/module/services/sephoraDataExtractor.js +1 -0
  296. package/lib/module/services/sephoraDataService.js +1 -0
  297. package/lib/module/services/storageService.js +1 -0
  298. package/lib/module/services/telegramDataExtractor.js +1 -0
  299. package/lib/module/services/telegramDataService.js +8 -0
  300. package/lib/module/services/trainingApiHelpers.js +1 -0
  301. package/lib/module/services/userConnectionsService.js +1 -0
  302. package/lib/module/services/youtubeMigrationService.js +1 -0
  303. package/lib/module/theme/index.js +1 -0
  304. package/lib/module/types.js +1 -10
  305. package/lib/module/utils/Portal.js +1 -90
  306. package/lib/module/utils/api.js +1 -117
  307. package/lib/module/utils/assetRegistry.js +33 -0
  308. package/lib/module/utils/auth.js +1 -99
  309. package/lib/module/utils/connectorTests.js +28 -0
  310. package/lib/module/utils/crypto.js +1 -54
  311. package/lib/module/utils/debugHelper.js +1 -54
  312. package/lib/module/utils/encryption.js +1 -67
  313. package/lib/module/utils/eventUtils.js +1 -0
  314. package/lib/module/utils/haptics.js +8 -0
  315. package/lib/module/utils/imagePreloader.js +1 -0
  316. package/lib/module/utils/networkDiagnostics.js +1 -0
  317. package/lib/module/utils/onairosApi.js +1 -333
  318. package/lib/module/utils/programmaticFlow.js +1 -111
  319. package/lib/module/utils/retryHelper.js +1 -211
  320. package/lib/module/utils/secureStorage.js +6 -330
  321. package/lib/module/utils/webviewScripts/chatgpt.js +1 -0
  322. package/lib/module/utils/webviewScripts/claude.js +1 -0
  323. package/lib/module/utils/webviewScripts/hinge.js +1 -0
  324. package/lib/module/utils/webviewScripts/index.js +1 -0
  325. package/lib/module/utils/webviewScripts/instagram.js +1 -0
  326. package/lib/module/utils/webviewScripts/linkedin.js +1 -0
  327. package/lib/module/utils/webviewScripts/sephora.js +1 -0
  328. package/lib/module/utils/webviewScripts/telegram.js +1 -0
  329. package/package.json +62 -39
  330. package/lib/commonjs/api/index.js.map +0 -1
  331. package/lib/commonjs/assets/images/email.png +0 -0
  332. package/lib/commonjs/assets/images/linkedin.png +0 -0
  333. package/lib/commonjs/assets/images/reddit.png +0 -0
  334. package/lib/commonjs/assets/images/youtube.png +0 -0
  335. package/lib/commonjs/components/DataRequestModal.js +0 -228
  336. package/lib/commonjs/components/DataRequestModal.js.map +0 -1
  337. package/lib/commonjs/components/DataRequestScreen.js +0 -329
  338. package/lib/commonjs/components/DataRequestScreen.js.map +0 -1
  339. package/lib/commonjs/components/EmailVerificationModal.js +0 -320
  340. package/lib/commonjs/components/EmailVerificationModal.js.map +0 -1
  341. package/lib/commonjs/components/Onairos.js.map +0 -1
  342. package/lib/commonjs/components/OnairosButton.js.map +0 -1
  343. package/lib/commonjs/components/Overlay.js.map +0 -1
  344. package/lib/commonjs/components/PinInput.js.map +0 -1
  345. package/lib/commonjs/components/PlatformList.js.map +0 -1
  346. package/lib/commonjs/components/TrainingModal.js +0 -717
  347. package/lib/commonjs/components/TrainingModal.js.map +0 -1
  348. package/lib/commonjs/components/UniversalOnboarding.js.map +0 -1
  349. package/lib/commonjs/components/UniversalOnboarding.tsx.new +0 -455
  350. package/lib/commonjs/components/onboarding/OAuthWebView.js.map +0 -1
  351. package/lib/commonjs/components/onboarding/OnboardingHeader.js.map +0 -1
  352. package/lib/commonjs/components/onboarding/PinInput.js.map +0 -1
  353. package/lib/commonjs/components/onboarding/PlatformConnector.js.map +0 -1
  354. package/lib/commonjs/components/screens/ConnectorScreen.js +0 -146
  355. package/lib/commonjs/components/screens/ConnectorScreen.js.map +0 -1
  356. package/lib/commonjs/components/screens/LoadingScreen.js +0 -91
  357. package/lib/commonjs/components/screens/LoadingScreen.js.map +0 -1
  358. package/lib/commonjs/components/screens/PinCreationScreen.js +0 -61
  359. package/lib/commonjs/components/screens/PinCreationScreen.js.map +0 -1
  360. package/lib/commonjs/constants/index.js.map +0 -1
  361. package/lib/commonjs/hooks/useConnections.js.map +0 -1
  362. package/lib/commonjs/hooks/useCredentials.js.map +0 -1
  363. package/lib/commonjs/index.js.map +0 -1
  364. package/lib/commonjs/services/apiKeyService.js.map +0 -1
  365. package/lib/commonjs/services/oauthService.js.map +0 -1
  366. package/lib/commonjs/services/platformAuthService.js.map +0 -1
  367. package/lib/commonjs/types/ambient.d.js.map +0 -1
  368. package/lib/commonjs/types/declarations.d.js.map +0 -1
  369. package/lib/commonjs/types/index.d.js.map +0 -1
  370. package/lib/commonjs/types/index.js.map +0 -1
  371. package/lib/commonjs/types/node-fix.d.js.map +0 -1
  372. package/lib/commonjs/types/node-override.d.js.map +0 -1
  373. package/lib/commonjs/types/opacity.d.js.map +0 -1
  374. package/lib/commonjs/types/types.d.js.map +0 -1
  375. package/lib/commonjs/types.js.map +0 -1
  376. package/lib/commonjs/utils/Portal.js.map +0 -1
  377. package/lib/commonjs/utils/api.js.map +0 -1
  378. package/lib/commonjs/utils/auth.js.map +0 -1
  379. package/lib/commonjs/utils/crypto.js.map +0 -1
  380. package/lib/commonjs/utils/debugHelper.js.map +0 -1
  381. package/lib/commonjs/utils/encryption.js.map +0 -1
  382. package/lib/commonjs/utils/onairosApi.js.map +0 -1
  383. package/lib/commonjs/utils/programmaticFlow.js.map +0 -1
  384. package/lib/commonjs/utils/retryHelper.js.map +0 -1
  385. package/lib/commonjs/utils/secureStorage.js.map +0 -1
  386. package/lib/module/api/index.js.map +0 -1
  387. package/lib/module/assets/images/email.png +0 -0
  388. package/lib/module/assets/images/linkedin.png +0 -0
  389. package/lib/module/assets/images/reddit.png +0 -0
  390. package/lib/module/assets/images/youtube.png +0 -0
  391. package/lib/module/components/DataRequestModal.js +0 -220
  392. package/lib/module/components/DataRequestModal.js.map +0 -1
  393. package/lib/module/components/DataRequestScreen.js +0 -321
  394. package/lib/module/components/DataRequestScreen.js.map +0 -1
  395. package/lib/module/components/EmailVerificationModal.js +0 -311
  396. package/lib/module/components/EmailVerificationModal.js.map +0 -1
  397. package/lib/module/components/Onairos.js.map +0 -1
  398. package/lib/module/components/OnairosButton.js.map +0 -1
  399. package/lib/module/components/Overlay.js.map +0 -1
  400. package/lib/module/components/PinInput.js.map +0 -1
  401. package/lib/module/components/PlatformList.js.map +0 -1
  402. package/lib/module/components/TrainingModal.js +0 -708
  403. package/lib/module/components/TrainingModal.js.map +0 -1
  404. package/lib/module/components/UniversalOnboarding.js.map +0 -1
  405. package/lib/module/components/UniversalOnboarding.tsx.new +0 -455
  406. package/lib/module/components/onboarding/OAuthWebView.js.map +0 -1
  407. package/lib/module/components/onboarding/OnboardingHeader.js.map +0 -1
  408. package/lib/module/components/onboarding/PinInput.js.map +0 -1
  409. package/lib/module/components/onboarding/PlatformConnector.js.map +0 -1
  410. package/lib/module/components/screens/ConnectorScreen.js +0 -138
  411. package/lib/module/components/screens/ConnectorScreen.js.map +0 -1
  412. package/lib/module/components/screens/LoadingScreen.js +0 -83
  413. package/lib/module/components/screens/LoadingScreen.js.map +0 -1
  414. package/lib/module/components/screens/PinCreationScreen.js +0 -53
  415. package/lib/module/components/screens/PinCreationScreen.js.map +0 -1
  416. package/lib/module/constants/index.js.map +0 -1
  417. package/lib/module/hooks/useConnections.js.map +0 -1
  418. package/lib/module/hooks/useCredentials.js.map +0 -1
  419. package/lib/module/index.js.map +0 -1
  420. package/lib/module/services/apiKeyService.js.map +0 -1
  421. package/lib/module/services/oauthService.js.map +0 -1
  422. package/lib/module/services/platformAuthService.js.map +0 -1
  423. package/lib/module/types/ambient.d.js.map +0 -1
  424. package/lib/module/types/declarations.d.js.map +0 -1
  425. package/lib/module/types/index.d.js.map +0 -1
  426. package/lib/module/types/index.js.map +0 -1
  427. package/lib/module/types/node-fix.d.js.map +0 -1
  428. package/lib/module/types/node-override.d.js.map +0 -1
  429. package/lib/module/types/opacity.d.js.map +0 -1
  430. package/lib/module/types/types.d.js.map +0 -1
  431. package/lib/module/types.js.map +0 -1
  432. package/lib/module/utils/Portal.js.map +0 -1
  433. package/lib/module/utils/api.js.map +0 -1
  434. package/lib/module/utils/auth.js.map +0 -1
  435. package/lib/module/utils/crypto.js.map +0 -1
  436. package/lib/module/utils/debugHelper.js.map +0 -1
  437. package/lib/module/utils/encryption.js.map +0 -1
  438. package/lib/module/utils/onairosApi.js.map +0 -1
  439. package/lib/module/utils/programmaticFlow.js.map +0 -1
  440. package/lib/module/utils/retryHelper.js.map +0 -1
  441. package/lib/module/utils/secureStorage.js.map +0 -1
  442. package/lib/typescript/api/index.d.ts +0 -8
  443. package/lib/typescript/api/index.d.ts.map +0 -1
  444. package/lib/typescript/components/DataRequestModal.d.ts +0 -11
  445. package/lib/typescript/components/DataRequestModal.d.ts.map +0 -1
  446. package/lib/typescript/components/DataRequestScreen.d.ts +0 -11
  447. package/lib/typescript/components/DataRequestScreen.d.ts.map +0 -1
  448. package/lib/typescript/components/EmailVerificationModal.d.ts +0 -11
  449. package/lib/typescript/components/EmailVerificationModal.d.ts.map +0 -1
  450. package/lib/typescript/components/Onairos.d.ts +0 -4
  451. package/lib/typescript/components/Onairos.d.ts.map +0 -1
  452. package/lib/typescript/components/OnairosButton.d.ts +0 -12
  453. package/lib/typescript/components/OnairosButton.d.ts.map +0 -1
  454. package/lib/typescript/components/Overlay.d.ts +0 -4
  455. package/lib/typescript/components/Overlay.d.ts.map +0 -1
  456. package/lib/typescript/components/PinInput.d.ts +0 -4
  457. package/lib/typescript/components/PinInput.d.ts.map +0 -1
  458. package/lib/typescript/components/PlatformList.d.ts +0 -4
  459. package/lib/typescript/components/PlatformList.d.ts.map +0 -1
  460. package/lib/typescript/components/TrainingModal.d.ts +0 -4
  461. package/lib/typescript/components/TrainingModal.d.ts.map +0 -1
  462. package/lib/typescript/components/UniversalOnboarding.d.ts +0 -4
  463. package/lib/typescript/components/UniversalOnboarding.d.ts.map +0 -1
  464. package/lib/typescript/components/onboarding/OAuthWebView.d.ts +0 -10
  465. package/lib/typescript/components/onboarding/OAuthWebView.d.ts.map +0 -1
  466. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts +0 -11
  467. package/lib/typescript/components/onboarding/OnboardingHeader.d.ts.map +0 -1
  468. package/lib/typescript/components/onboarding/PinInput.d.ts +0 -4
  469. package/lib/typescript/components/onboarding/PinInput.d.ts.map +0 -1
  470. package/lib/typescript/components/onboarding/PlatformConnector.d.ts +0 -13
  471. package/lib/typescript/components/onboarding/PlatformConnector.d.ts.map +0 -1
  472. package/lib/typescript/components/screens/ConnectorScreen.d.ts +0 -9
  473. package/lib/typescript/components/screens/ConnectorScreen.d.ts.map +0 -1
  474. package/lib/typescript/components/screens/LoadingScreen.d.ts +0 -9
  475. package/lib/typescript/components/screens/LoadingScreen.d.ts.map +0 -1
  476. package/lib/typescript/components/screens/PinCreationScreen.d.ts +0 -10
  477. package/lib/typescript/components/screens/PinCreationScreen.d.ts.map +0 -1
  478. package/lib/typescript/constants/index.d.ts +0 -53
  479. package/lib/typescript/constants/index.d.ts.map +0 -1
  480. package/lib/typescript/hooks/useConnections.d.ts +0 -9
  481. package/lib/typescript/hooks/useConnections.d.ts.map +0 -1
  482. package/lib/typescript/hooks/useCredentials.d.ts +0 -9
  483. package/lib/typescript/hooks/useCredentials.d.ts.map +0 -1
  484. package/lib/typescript/index.d.ts +0 -18
  485. package/lib/typescript/index.d.ts.map +0 -1
  486. package/lib/typescript/services/apiKeyService.d.ts +0 -132
  487. package/lib/typescript/services/apiKeyService.d.ts.map +0 -1
  488. package/lib/typescript/services/oauthService.d.ts +0 -50
  489. package/lib/typescript/services/oauthService.d.ts.map +0 -1
  490. package/lib/typescript/services/platformAuthService.d.ts +0 -144
  491. package/lib/typescript/services/platformAuthService.d.ts.map +0 -1
  492. package/lib/typescript/types/index.d.ts +0 -231
  493. package/lib/typescript/types/index.d.ts.map +0 -1
  494. package/lib/typescript/types.d.ts +0 -270
  495. package/lib/typescript/types.d.ts.map +0 -1
  496. package/lib/typescript/utils/Portal.d.ts +0 -14
  497. package/lib/typescript/utils/Portal.d.ts.map +0 -1
  498. package/lib/typescript/utils/api.d.ts +0 -6
  499. package/lib/typescript/utils/api.d.ts.map +0 -1
  500. package/lib/typescript/utils/auth.d.ts +0 -6
  501. package/lib/typescript/utils/auth.d.ts.map +0 -1
  502. package/lib/typescript/utils/crypto.d.ts +0 -4
  503. package/lib/typescript/utils/crypto.d.ts.map +0 -1
  504. package/lib/typescript/utils/debugHelper.d.ts +0 -29
  505. package/lib/typescript/utils/debugHelper.d.ts.map +0 -1
  506. package/lib/typescript/utils/encryption.d.ts +0 -19
  507. package/lib/typescript/utils/encryption.d.ts.map +0 -1
  508. package/lib/typescript/utils/onairosApi.d.ts +0 -87
  509. package/lib/typescript/utils/onairosApi.d.ts.map +0 -1
  510. package/lib/typescript/utils/programmaticFlow.d.ts +0 -23
  511. package/lib/typescript/utils/programmaticFlow.d.ts.map +0 -1
  512. package/lib/typescript/utils/retryHelper.d.ts +0 -69
  513. package/lib/typescript/utils/retryHelper.d.ts.map +0 -1
  514. package/lib/typescript/utils/secureStorage.d.ts +0 -94
  515. package/lib/typescript/utils/secureStorage.d.ts.map +0 -1
  516. package/src/api/index.ts +0 -111
  517. package/src/assets/images/email.png +0 -0
  518. package/src/assets/images/linkedin.png +0 -0
  519. package/src/assets/images/onairos_logo.png +0 -0
  520. package/src/assets/images/reddit.png +0 -0
  521. package/src/assets/images/youtube.png +0 -0
  522. package/src/components/DataRequestModal.tsx +0 -227
  523. package/src/components/DataRequestScreen.tsx +0 -356
  524. package/src/components/EmailVerificationModal.tsx +0 -364
  525. package/src/components/Onairos.tsx +0 -425
  526. package/src/components/OnairosButton.tsx +0 -359
  527. package/src/components/Overlay.tsx +0 -506
  528. package/src/components/PinInput.tsx +0 -343
  529. package/src/components/PlatformList.tsx +0 -145
  530. package/src/components/TrainingModal.tsx +0 -737
  531. package/src/components/UniversalOnboarding.tsx +0 -1839
  532. package/src/components/UniversalOnboarding.tsx.new +0 -455
  533. package/src/components/onboarding/OAuthWebView.tsx +0 -838
  534. package/src/components/onboarding/OnboardingHeader.tsx +0 -70
  535. package/src/components/onboarding/PinInput.tsx +0 -356
  536. package/src/components/onboarding/PlatformConnector.tsx +0 -302
  537. package/src/components/screens/ConnectorScreen.tsx +0 -153
  538. package/src/components/screens/LoadingScreen.tsx +0 -100
  539. package/src/components/screens/PinCreationScreen.tsx +0 -67
  540. package/src/constants/index.ts +0 -83
  541. package/src/hooks/useConnections.ts +0 -163
  542. package/src/hooks/useCredentials.ts +0 -175
  543. package/src/index.js +0 -14
  544. package/src/index.ts +0 -50
  545. package/src/services/SDK_API_KEY_VALIDATION.md +0 -421
  546. package/src/services/apiKeyService.ts +0 -984
  547. package/src/services/oauthService.ts +0 -412
  548. package/src/services/platformAuthService.ts +0 -1113
  549. package/src/types/ambient.d.ts +0 -29
  550. package/src/types/declarations.d.ts +0 -26
  551. package/src/types/index.d.ts +0 -274
  552. package/src/types/index.ts +0 -244
  553. package/src/types/node-fix.d.ts +0 -19
  554. package/src/types/node-override.d.ts +0 -24
  555. package/src/types/opacity.d.ts +0 -16
  556. package/src/types/types.d.ts +0 -18
  557. package/src/types.ts +0 -298
  558. package/src/utils/Portal.tsx +0 -83
  559. package/src/utils/api.js +0 -112
  560. package/src/utils/auth.js +0 -104
  561. package/src/utils/crypto.js +0 -60
  562. package/src/utils/debugHelper.ts +0 -53
  563. package/src/utils/encryption.ts +0 -69
  564. package/src/utils/onairosApi.ts +0 -391
  565. package/src/utils/programmaticFlow.ts +0 -113
  566. package/src/utils/retryHelper.ts +0 -275
  567. package/src/utils/secureStorage.ts +0 -361
  568. package/types/index.d.ts +0 -218
  569. package/types/node-env.d.ts +0 -15
  570. /package/{src/assets/images → lib/commonjs/assets/icons}/farcaster.png +0 -0
  571. /package/{src/assets/images → lib/commonjs/assets/icons}/instagram.png +0 -0
  572. /package/{src/assets/images → lib/commonjs/assets/icons}/pinterest.png +0 -0
  573. /package/{src/assets/images → lib/commonjs/assets/icons}/swerv_logo.png +0 -0
  574. /package/{src/assets/images → lib/commonjs/assets/icons}/twitter.jpg +0 -0
@@ -0,0 +1 @@
1
+ import{storeSephoraData}from'./sephoraDataService';function _0x34a9(){const _0x381a5a=['⚠️\x20[SEPHORA_EXTRACTOR]\x20Invalid\x20order:','tPxLy','number','⚠️\x20[SEPHORA_EXTRACTOR]\x20Invalid\x20rating:','rAXUh','❌\x20[SEPHORA_EXTRACTOR]\x20Username\x20is\x20required','default','ℹ️\x20[SEPHORA_EXTRACTOR]\x20No\x20data\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','📡\x20[SEPHORA_EXTRACTOR]\x20Sending\x20to\x20backend...','ToSap','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20data\x20storage.','Export\x20Error','Failed\x20to\x20connect\x20to\x20the\x20data\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','kphaz','tglLk','PYxzs','iygQf','rGqnz','KOyDU','HXiFS','oQheg','iMBVl','warn','nroco','log','🚀\x20[SEPHORA_EXTRACTOR]\x20Initiating\x20data\x20export','wrQfo','KTnHp','alert','Error','LwMDT','MIigB','basket','yjHlx','items','JPEbP','orders','length','loves','aqCbH','ratings','EQTBn','LTITE','filter','YHCHI','name','RiyDW','FCLXp','BUEvZ','SUQzd','orderId','date','GSaRF','EkmJJ','DoNDW','XlSfg','kPdYY','productId','bMPLi','rating','aieKm','HSDXB','qQEME','XVtaD','cBiST','⚠️\x20[SEPHORA_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20items','XaUch','aBEbI','total','userId','success','✅\x20[SEPHORA_EXTRACTOR]\x20Export\x20completed\x20successfully','📊\x20[SEPHORA_EXTRACTOR]\x20Backend\x20response:','data','LgvJc','ZNwmi','error','❌\x20[SEPHORA_EXTRACTOR]\x20Backend\x20storage\x20failed:','avRmC','KYbQh','AGxTc','TaXUx','LrQAS'];_0x34a9=function(){return _0x381a5a;};return _0x34a9();}function _0x3cd0(_0x34a9ac,_0x3cd08d){_0x34a9ac=_0x34a9ac-0x0;const _0x3f68b7=_0x34a9();let _0x44c35a=_0x3f68b7[_0x34a9ac];return _0x44c35a;}import{Alert}from'react-native';export const useSephoraDataExtractor=()=>{const _0x212791={'KOyDU':_0x3cd0(0x0),'TurDq':'⚠️\x20[SEPHORA_EXTRACTOR]\x20Invalid\x20loved\x20item:','kphaz':'⚠️\x20[SEPHORA_EXTRACTOR]\x20Invalid\x20basket\x20item:','tglLk':function(_0x51edee,_0x4e8a55){return _0x51edee!==_0x4e8a55;},'PYxzs':function(_0x142111,_0x378613){return _0x142111===_0x378613;},'iygQf':_0x3cd0(0x1),'HXiFS':function(_0x3a267b,_0x191011){return _0x3a267b===_0x191011;},'PMAFK':_0x3cd0(0x2),'oQheg':_0x3cd0(0x3),'iMBVl':_0x3cd0(0x4),'wrQfo':'👤\x20[SEPHORA_EXTRACTOR]\x20Username:','KTnHp':_0x3cd0(0x5),'oBrXg':'Username\x20is\x20required\x20to\x20export\x20Sephora\x20data.','LwMDT':_0x3cd0(0x6),'MIigB':function(_0x3f069f,_0x3b5201){return _0x3f069f===_0x3b5201;},'yjHlx':function(_0x52cd37,_0x43d40a){return _0x52cd37===_0x43d40a;},'JPEbP':function(_0x5cf8b3,_0x2497e3){return _0x5cf8b3===_0x2497e3;},'aqCbH':function(_0x30f64f,_0x743614){return _0x30f64f===_0x743614;},'DTOvI':function(_0x1179a4,_0x5993e3){return _0x1179a4===_0x5993e3;},'EQTBn':function(_0x7a2dc8,_0x5001f9){return _0x7a2dc8===_0x5001f9;},'rCFWF':function(_0x554f87,_0x27fdfa){return _0x554f87===_0x27fdfa;},'YROlz':_0x3cd0(0x7),'LTITE':function(_0x468e00,_0x17bfda){return _0x468e00===_0x17bfda;},'HSDXB':function(_0x2a81dc,_0x572c25){return _0x2a81dc+_0x572c25;},'qQEME':function(_0x1f70c2,_0x2ac056){return _0x1f70c2===_0x2ac056;},'XVtaD':function(_0x57bdef,_0x17d188){return _0x57bdef===_0x17d188;},'fnhIk':function(_0x583ebd,_0x5d4501){return _0x583ebd===_0x5d4501;},'cBiST':function(_0x140ac1,_0x95f6ae){return _0x140ac1<_0x95f6ae;},'ATAjk':function(_0x1cc6fc,_0x139483){return _0x1cc6fc-_0x139483;},'XaUch':_0x3cd0(0x8),'aBEbI':function(_0x144e9c,_0x25bea9){return _0x144e9c===_0x25bea9;},'LgvJc':function(_0x3fc524,_0x5e2b18){return _0x3fc524===_0x5e2b18;},'ZNwmi':_0x3cd0(0x9),'avRmC':_0x3cd0(0xa),'KYbQh':_0x3cd0(0xb),'AGxTc':'❌\x20[SEPHORA_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','TaXUx':_0x3cd0(0xc),'LrQAS':_0x3cd0(0xd)},_0x1f45a3=async(_0x2b74b7,_0x4099f6)=>{const _0x8e478e={'nroco':_0x212791['TurDq'],'YHCHI':_0x212791[_0x3cd0(0xe)],'RiyDW':function(_0x373461,_0x1b7032){return _0x212791[_0x3cd0(0xf)](_0x373461,_0x1b7032);},'FCLXp':'BUEvZ','GSaRF':function(_0x58b9fb,_0x508d9f){return _0x212791[_0x3cd0(0x10)](_0x58b9fb,_0x508d9f);},'EkmJJ':_0x212791[_0x3cd0(0x11)],'ktvZT':_0x3cd0(0x12),'DoNDW':_0x212791[_0x3cd0(0x13)],'bMPLi':function(_0x2c6d00,_0x3c8699){return _0x212791[_0x3cd0(0x14)](_0x2c6d00,_0x3c8699);},'aieKm':_0x212791['PMAFK'],'OVDOZ':_0x212791[_0x3cd0(0x15)]};if(_0x212791[_0x3cd0(0xf)](_0x3cd0(0x4),_0x212791[_0x3cd0(0x16)]))_0x38c4f9[_0x3cd0(0x17)](_0x8e478e[_0x3cd0(0x18)],_0x213126);else{var _0x2578eb,_0x1dafc1,_0x5f65a6,_0xbb1ccf,_0x57ad08,_0x3d1d0b,_0x4fb959,_0x52818d,_0x2e44cc;console[_0x3cd0(0x19)](_0x3cd0(0x1a)),console['log'](_0x212791[_0x3cd0(0x1b)],_0x2b74b7),console[_0x3cd0(0x19)]('📊\x20[SEPHORA_EXTRACTOR]\x20Summary:',_0x4099f6['summary']);if(!_0x2b74b7)return console['error'](_0x212791[_0x3cd0(0x1c)]),Alert[_0x3cd0(0x1d)](_0x3cd0(0x1e),_0x212791['oBrXg'],[{'text':'OK','style':_0x212791[_0x3cd0(0x1f)]}]),![];const _0x4960c3=((_0x212791[_0x3cd0(0x20)](_0x2578eb=_0x4099f6[_0x3cd0(0x21)],null)||_0x212791[_0x3cd0(0x20)](_0x2578eb,void 0x0)||_0x212791[_0x3cd0(0x22)](_0x2578eb=_0x2578eb[_0x3cd0(0x23)],null)||_0x212791[_0x3cd0(0x24)](_0x2578eb,void 0x0)?void 0x0:_0x2578eb['length'])||0x0)+((_0x212791['yjHlx'](_0x1dafc1=_0x4099f6[_0x3cd0(0x25)],null)||_0x1dafc1===void 0x0?void 0x0:_0x1dafc1[_0x3cd0(0x26)])||0x0)+((_0x212791['aqCbH'](_0x5f65a6=_0x4099f6[_0x3cd0(0x27)],null)||_0x212791['DTOvI'](_0x5f65a6,void 0x0)?void 0x0:_0x5f65a6['length'])||0x0)+((_0x212791[_0x3cd0(0x28)](_0xbb1ccf=_0x4099f6[_0x3cd0(0x29)],null)||_0x212791[_0x3cd0(0x2a)](_0xbb1ccf,void 0x0)?void 0x0:_0xbb1ccf[_0x3cd0(0x26)])||0x0);if(_0x212791['rCFWF'](_0x4960c3,0x0))return console['log'](_0x212791['YROlz']),!![];const _0x48a6fa=((_0x212791[_0x3cd0(0x2b)](_0x57ad08=_0x4099f6[_0x3cd0(0x21)],null)||_0x57ad08===void 0x0?void 0x0:_0x57ad08['items'])||[])[_0x3cd0(0x2c)](_0x2c36d0=>{const _0x8c3b1a={'SUQzd':_0x8e478e[_0x3cd0(0x2d)]},_0x2b3b32=_0x2c36d0['id']&&_0x2c36d0[_0x3cd0(0x2e)];return!_0x2b3b32&&(_0x8e478e[_0x3cd0(0x2f)](_0x8e478e[_0x3cd0(0x30)],_0x3cd0(0x31))?_0x3e0758['warn'](_0x8c3b1a[_0x3cd0(0x32)],_0x574539):console[_0x3cd0(0x17)](_0x8e478e['YHCHI'],_0x2c36d0)),_0x2b3b32;}),_0x6765bf=(_0x4099f6['orders']||[])[_0x3cd0(0x2c)](_0xf5548=>{const _0xd1a5e4=_0xf5548[_0x3cd0(0x33)]&&_0xf5548[_0x3cd0(0x34)];if(!_0xd1a5e4){if(_0x8e478e[_0x3cd0(0x35)](_0x8e478e[_0x3cd0(0x36)],_0x8e478e['ktvZT']))return _0x225afa[_0x3cd0(0x19)]('ℹ️\x20[SEPHORA_EXTRACTOR]\x20No\x20data\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)'),!![];else console[_0x3cd0(0x17)](_0x8e478e[_0x3cd0(0x37)],_0xf5548);}return _0xd1a5e4;}),_0x442b53=(_0x4099f6[_0x3cd0(0x27)]||[])[_0x3cd0(0x2c)](_0x1445b6=>{const _0x5cbb75=_0x1445b6['id']&&_0x1445b6[_0x3cd0(0x2e)];return!_0x5cbb75&&(_0x3cd0(0x38)===_0x3cd0(0x39)?_0x697e22[_0x3cd0(0x17)](_0x3cd0(0x3),_0xe83c77):console[_0x3cd0(0x17)]('⚠️\x20[SEPHORA_EXTRACTOR]\x20Invalid\x20loved\x20item:',_0x1445b6)),_0x5cbb75;}),_0x384d31=(_0x4099f6['ratings']||[])[_0x3cd0(0x2c)](_0x462e21=>{const _0x377f7f=_0x462e21[_0x3cd0(0x3a)]&&_0x8e478e[_0x3cd0(0x3b)](typeof _0x462e21[_0x3cd0(0x3c)],_0x8e478e[_0x3cd0(0x3d)]);return!_0x377f7f&&console[_0x3cd0(0x17)](_0x8e478e['OVDOZ'],_0x462e21),_0x377f7f;}),_0x532c71=_0x212791[_0x3cd0(0x3e)](_0x212791['HSDXB'](((_0x212791[_0x3cd0(0x3f)](_0x3d1d0b=_0x4099f6[_0x3cd0(0x21)],null)||_0x212791[_0x3cd0(0x2a)](_0x3d1d0b,void 0x0)||_0x212791[_0x3cd0(0x40)](_0x3d1d0b=_0x3d1d0b[_0x3cd0(0x23)],null)||_0x3d1d0b===void 0x0?void 0x0:_0x3d1d0b[_0x3cd0(0x26)])||0x0)+((_0x212791['rCFWF'](_0x4fb959=_0x4099f6['orders'],null)||_0x212791['rCFWF'](_0x4fb959,void 0x0)?void 0x0:_0x4fb959[_0x3cd0(0x26)])||0x0),((_0x52818d=_0x4099f6[_0x3cd0(0x27)])===null||_0x212791['qQEME'](_0x52818d,void 0x0)?void 0x0:_0x52818d['length'])||0x0),((_0x2e44cc=_0x4099f6[_0x3cd0(0x29)])===null||_0x212791['fnhIk'](_0x2e44cc,void 0x0)?void 0x0:_0x2e44cc['length'])||0x0),_0xeb8069=_0x212791['HSDXB'](_0x48a6fa[_0x3cd0(0x26)]+_0x6765bf[_0x3cd0(0x26)]+_0x442b53['length'],_0x384d31[_0x3cd0(0x26)]);_0x212791[_0x3cd0(0x41)](_0xeb8069,_0x532c71)&&console['warn'](_0x3cd0(0x42)+_0x212791['ATAjk'](_0x532c71,_0xeb8069)+_0x3cd0(0x43));try{var _0x3e1c01;console[_0x3cd0(0x19)](_0x212791[_0x3cd0(0x44)]);const _0x2ee773=await storeSephoraData(_0x2b74b7,{'basket':{'items':_0x48a6fa,'total':(_0x212791[_0x3cd0(0x45)](_0x3e1c01=_0x4099f6['basket'],null)||_0x212791['fnhIk'](_0x3e1c01,void 0x0)?void 0x0:_0x3e1c01[_0x3cd0(0x46)])||0x0,'itemCount':_0x48a6fa[_0x3cd0(0x26)]},'orders':_0x6765bf,'loves':_0x442b53,'ratings':_0x384d31,'userId':_0x4099f6[_0x3cd0(0x47)]});if(_0x2ee773[_0x3cd0(0x48)])return console['log'](_0x3cd0(0x49)),console[_0x3cd0(0x19)](_0x3cd0(0x4a),_0x2ee773[_0x3cd0(0x4b)]),!![];else{if(_0x212791[_0x3cd0(0x4c)]('CRAZh',_0x212791[_0x3cd0(0x4d)])){const _0x386523=_0x58b393[_0x3cd0(0x33)]&&_0x1a505c[_0x3cd0(0x34)];return!_0x386523&&_0x26ed12[_0x3cd0(0x17)](_0x212791[_0x3cd0(0x13)],_0x321232),_0x386523;}else return console[_0x3cd0(0x4e)](_0x3cd0(0x4f),_0x2ee773[_0x3cd0(0x4e)]),Alert['alert'](_0x212791[_0x3cd0(0x50)],_0x2ee773[_0x3cd0(0x4e)]||_0x212791[_0x3cd0(0x51)],[{'text':'OK','style':_0x3cd0(0x6)}]),![];}}catch(_0x1681dd){return console[_0x3cd0(0x4e)](_0x212791[_0x3cd0(0x52)],_0x1681dd),Alert[_0x3cd0(0x1d)](_0x212791[_0x3cd0(0x53)],_0x212791[_0x3cd0(0x54)],[{'text':'OK','style':_0x3cd0(0x6)}]),![];}}};return{'initiateDataExport':_0x1f45a3};};
@@ -0,0 +1 @@
1
+ import{API_CONFIG}from'../config/api';import AsyncStorage from'@react-native-async-storage/async-storage';import{Platform}from'react-native';function _0x3252(){const _0xb97481=['🚀\x20[SEPHORA_SERVICE]\x20Storing\x20Sephora\x20data\x20for:','📊\x20[SEPHORA_SERVICE]\x20Basket\x20items:','📊\x20[SEPHORA_SERVICE]\x20Orders:','📊\x20[SEPHORA_SERVICE]\x20Loved\x20items:','Invalid\x20input:\x20userId\x20missing.','onairos_jwt_token','enoch_token','❌\x20[SEPHORA_SERVICE]\x20No\x20auth\x20token\x20found','🔑\x20[SEPHORA_SERVICE]\x20Auth\x20token\x20found','17.0','ios','iPhone','Android','mobile-sephora','ecommerce','HZewq','kBDQK','Sephora\x20data\x20stored\x20successfully','Unknown\x20error','MYDcy','uADsR','Network\x20error.\x20Please\x20check\x20your\x20connection.','log','YkvLd','mUyAU','basket','items','length','UIXbq','orders','kZXvk','loves','lQGxA','ratings','UICpO','getItem','lxSUb','iIKsI','auth_token','okksE','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','exFrl','ErxOB','iYjbz','FstKz','CbRmn','toISOString','dkcEa','map','name','brand','price','quantity','category','total','itemCount','orderId','date','addedAt','love','productId','review','isRecommended','type','positive','filter','negative','EAqxc','📍\x20[SEPHORA_SERVICE]\x20URL:','BASE_URL','/platform-data/store','IirgU','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','message','xTROu','nyOcj','📝\x20[SEPHORA_SERVICE]\x20Backend\x20response:\x20','⚠️\x20[SEPHORA_SERVICE]\x20Backend\x20returned\x20status:\x20','status','warn','gHeQT','HTTP\x20','VTBqc','sZnEy','error','PgNMO','wPvdf'];_0x3252=function(){return _0xb97481;};return _0x3252();}function _0xd640(_0x325259,_0xd640c1){_0x325259=_0x325259-0x0;const _0x1fb923=_0x3252();let _0x2a4235=_0x1fb923[_0x325259];return _0x2a4235;}export const storeSephoraData=async(_0x48925c,_0x4d20f4)=>{const _0x8d09d6={'PgNMO':'❌\x20[SEPHORA_SERVICE]\x20Network\x20error:','YkvLd':_0xd640(0x0),'mUyAU':_0xd640(0x1),'UIXbq':_0xd640(0x2),'kZXvk':_0xd640(0x3),'lQGxA':'📊\x20[SEPHORA_SERVICE]\x20Ratings:','UICpO':_0xd640(0x4),'lxSUb':_0xd640(0x5),'iIKsI':_0xd640(0x6),'okksE':_0xd640(0x7),'exFrl':_0xd640(0x8),'ErxOB':'1.0.0','iYjbz':function(_0x1e1842,_0x10bf9){return _0x1e1842===_0x10bf9;},'FstKz':_0xd640(0x9),'jXnfV':_0xd640(0xa),'CbRmn':_0xd640(0xb),'lnyad':_0xd640(0xc),'KpGqA':_0xd640(0xd),'dkcEa':_0xd640(0xe),'EAqxc':'📡\x20[SEPHORA_SERVICE]\x20Sending\x20to\x20backend...','IirgU':function(_0x2570b3,_0xb3a4ba,_0x2c5fe7){return _0x2570b3(_0xb3a4ba,_0x2c5fe7);},'jQWrn':'✅\x20[SEPHORA_SERVICE]\x20Successfully\x20stored\x20Sephora\x20data','xTROu':function(_0x337ae9,_0x491b6b){return _0x337ae9!==_0x491b6b;},'mccvB':_0xd640(0xf),'nyOcj':_0xd640(0x10),'lZWPO':_0xd640(0x11),'gHeQT':_0xd640(0x12),'VTBqc':_0xd640(0x13),'sZnEy':_0xd640(0x14),'wPvdf':_0xd640(0x15)};console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x17)],_0x48925c),console['log'](_0x8d09d6[_0xd640(0x18)],_0x4d20f4[_0xd640(0x19)][_0xd640(0x1a)][_0xd640(0x1b)]),console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x1c)],_0x4d20f4[_0xd640(0x1d)]['length']),console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x1e)],_0x4d20f4[_0xd640(0x1f)]['length']),console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x20)],_0x4d20f4[_0xd640(0x21)][_0xd640(0x1b)]);if(!_0x48925c)return console['error']('❌\x20[SEPHORA_SERVICE]\x20Invalid\x20input:\x20userId\x20missing'),{'success':![],'error':_0x8d09d6[_0xd640(0x22)]};try{const _0x29a4f3=await AsyncStorage[_0xd640(0x23)](_0x8d09d6[_0xd640(0x24)])||await AsyncStorage['getItem'](_0x8d09d6[_0xd640(0x25)])||await AsyncStorage['getItem'](_0xd640(0x26));if(!_0x29a4f3)return console['error'](_0x8d09d6[_0xd640(0x27)]),{'success':![],'error':_0xd640(0x28)};console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x29)]);const _0x1a6670={'platform':Platform['OS'],'appVersion':_0x8d09d6[_0xd640(0x2a)],'osVersion':_0x8d09d6[_0xd640(0x2b)](Platform['OS'],_0xd640(0xa))?_0x8d09d6[_0xd640(0x2c)]:Platform['OS'],'deviceModel':Platform['OS']===_0x8d09d6['jXnfV']?_0x8d09d6[_0xd640(0x2d)]:_0x8d09d6['lnyad'],'isOfflineSync':![],'extractedAt':new Date()[_0xd640(0x2e)]()},_0x4a9edc={'platform':_0x8d09d6['KpGqA'],'dataType':_0x8d09d6[_0xd640(0x2f)],'data':{'basket':{'items':_0x4d20f4['basket']['items'][_0xd640(0x30)](_0x1948f7=>({'productId':_0x1948f7['id'],'name':_0x1948f7[_0xd640(0x31)],'brand':_0x1948f7[_0xd640(0x32)],'price':_0x1948f7[_0xd640(0x33)],'quantity':_0x1948f7[_0xd640(0x34)],'category':_0x1948f7[_0xd640(0x35)],'imageUrl':_0x1948f7['imageUrl']})),'total':_0x4d20f4[_0xd640(0x19)][_0xd640(0x36)],'itemCount':_0x4d20f4['basket'][_0xd640(0x37)]},'orders':_0x4d20f4['orders']['map'](_0x560dea=>({'orderId':_0x560dea[_0xd640(0x38)],'date':_0x560dea[_0xd640(0x39)],'total':_0x560dea[_0xd640(0x36)],'status':_0x560dea['status'],'items':_0x560dea[_0xd640(0x1a)][_0xd640(0x30)](_0x5f2bd8=>({'productId':_0x5f2bd8['id'],'name':_0x5f2bd8[_0xd640(0x31)],'brand':_0x5f2bd8[_0xd640(0x32)],'price':_0x5f2bd8[_0xd640(0x33)],'quantity':_0x5f2bd8['quantity']}))})),'loves':_0x4d20f4[_0xd640(0x1f)][_0xd640(0x30)](_0x9d2af0=>({'productId':_0x9d2af0['id'],'name':_0x9d2af0['name'],'brand':_0x9d2af0[_0xd640(0x32)],'category':_0x9d2af0[_0xd640(0x35)],'price':_0x9d2af0[_0xd640(0x33)],'rating':_0x9d2af0['rating'],'addedAt':_0x9d2af0[_0xd640(0x3a)],'type':_0xd640(0x3b)})),'ratings':_0x4d20f4[_0xd640(0x21)]['map'](_0x1b4d85=>({'productId':_0x1b4d85[_0xd640(0x3c)],'productName':_0x1b4d85['productName'],'score':_0x1b4d85['rating'],'review':_0x1b4d85[_0xd640(0x3d)],'date':_0x1b4d85['date'],'isRecommended':_0x1b4d85[_0xd640(0x3e)],'sentiment':_0x1b4d85[_0xd640(0x3f)]})),'sephoraUserId':_0x4d20f4['userId']},'summary':{'basketItemCount':_0x4d20f4['basket'][_0xd640(0x1a)][_0xd640(0x1b)],'basketTotal':_0x4d20f4[_0xd640(0x19)][_0xd640(0x36)],'orderCount':_0x4d20f4[_0xd640(0x1d)][_0xd640(0x1b)],'lovedProductCount':_0x4d20f4[_0xd640(0x1f)][_0xd640(0x1b)],'ratingCount':_0x4d20f4[_0xd640(0x21)][_0xd640(0x1b)],'positiveRatings':_0x4d20f4[_0xd640(0x21)]['filter'](_0x50bf3f=>_0x50bf3f['type']===_0xd640(0x40))['length'],'negativeRatings':_0x4d20f4['ratings'][_0xd640(0x41)](_0x3cc043=>_0x3cc043[_0xd640(0x3f)]===_0xd640(0x42))[_0xd640(0x1b)]},'mobileMetadata':_0x1a6670};console[_0xd640(0x16)](_0x8d09d6[_0xd640(0x43)]),console['log'](_0xd640(0x44),API_CONFIG[_0xd640(0x45)]+_0xd640(0x46));const _0x39c22b=await _0x8d09d6[_0xd640(0x47)](fetch,API_CONFIG[_0xd640(0x45)]+_0xd640(0x46),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0xd640(0x48)+_0x29a4f3,'User-Agent':_0xd640(0x49)+Platform['OS']+')'},'body':JSON[_0xd640(0x4a)](_0x4a9edc)}),_0x11433f=await _0x39c22b['json']();return _0x39c22b['ok']?(console[_0xd640(0x16)](_0x8d09d6['jQWrn']),_0x11433f[_0xd640(0x4b)]&&(_0x8d09d6[_0xd640(0x4c)](_0x8d09d6['mccvB'],_0x8d09d6[_0xd640(0x4d)])?console['log'](_0xd640(0x4e)+_0x11433f[_0xd640(0x4b)]):_0x383ed0[_0xd640(0x16)](_0xd640(0x4e)+_0x513742['message'])),{'success':!![],'message':_0x11433f['message']||_0x8d09d6['lZWPO'],'data':_0x11433f['data']}):(console['warn'](_0xd640(0x4f)+_0x39c22b[_0xd640(0x50)]),console[_0xd640(0x51)]('⚠️\x20[SEPHORA_SERVICE]\x20Error:\x20'+(_0x11433f['error']||_0x8d09d6[_0xd640(0x52)])),{'success':![],'error':_0x11433f['error']||_0xd640(0x53)+_0x39c22b[_0xd640(0x50)]});}catch(_0x4d6b09){return _0x8d09d6[_0xd640(0x54)]===_0x8d09d6[_0xd640(0x55)]?(_0x39a458[_0xd640(0x56)](_0x8d09d6[_0xd640(0x57)],_0x1d8a0b),{'success':![],'error':_0x52409c[_0xd640(0x4b)]||_0xd640(0x15)}):(console['error'](_0x8d09d6['PgNMO'],_0x4d6b09),{'success':![],'error':_0x4d6b09['message']||_0x8d09d6[_0xd640(0x58)]});}};
@@ -0,0 +1 @@
1
+ import AsyncStorage from'@react-native-async-storage/async-storage';import{clearStoredPin}from'./pinStorageUtils';export const STORAGE_KEYS={'AUTH_TOKEN':_0x35ae(0x0),'ONAIROS_JWT_TOKEN':_0x35ae(0x1),'ENOCH_TOKEN':_0x35ae(0x2),'USER':'user','USER_PROFILE':_0x35ae(0x3),'USER_PROFILE_FALLBACK':_0x35ae(0x4),'USER_PROGRESS':_0x35ae(0x5),'ONBOARDING_COMPLETED':_0x35ae(0x6),'IS_FIRST_TIME_USER':_0x35ae(0x7),'USER_ATTENDANCE_CONFIRMED':_0x35ae(0x8),'ONBOARDING_COMPLETE_TOKEN':_0x35ae(0x9),'EVENT_ACCESS_TOKEN':_0x35ae(0xa),'ONAIROS_USER':'onairos_user','APPLE_USER':_0x35ae(0xb),'AUTH_METHOD':'auth_method','CURRENT_EVENT_DATA':_0x35ae(0xc),'CONNECTED_PLATFORMS':_0x35ae(0xd),'PROFILE_IMAGE':'profileImage','USER_ADMIN_STATUS':_0x35ae(0xe)};export const saveUserProgress=async _0x1b845f=>{const _0x36ee53={'PmQsZ':function(_0x4fae21){return _0x4fae21();},'JtAXb':'✅\x20User\x20progress\x20saved:','XozNn':_0x35ae(0xf)};try{const _0x314b79=await _0x36ee53['PmQsZ'](getUserProgress),_0x4d7ef2={..._0x314b79,..._0x1b845f,'timestamp':Date[_0x35ae(0x10)]()};await AsyncStorage[_0x35ae(0x11)](STORAGE_KEYS[_0x35ae(0x12)],JSON['stringify'](_0x4d7ef2)),console['log'](_0x36ee53['JtAXb'],_0x4d7ef2);}catch(_0x1983c5){console['error'](_0x36ee53[_0x35ae(0x13)],_0x1983c5);}};export const getUserProgress=async()=>{const _0x411c9a={'ZYSvj':'❌\x20Error\x20saving\x20user\x20progress:','CZrLg':_0x35ae(0x14),'tTsht':function(_0x3f953b,_0x40e575){return _0x3f953b===_0x40e575;},'OWYhC':_0x35ae(0x15),'lYmSD':_0x35ae(0x16),'PJzuy':_0x35ae(0x17),'GufBC':_0x35ae(0x18)};try{if(_0x411c9a[_0x35ae(0x19)](_0x411c9a[_0x35ae(0x1a)],_0x35ae(0x1b)))_0x460163[_0x35ae(0x1c)](_0x411c9a[_0x35ae(0x1d)],_0x594449);else{const _0x3a087c=await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS[_0x35ae(0x12)]);if(_0x3a087c)return JSON[_0x35ae(0x1f)](_0x3a087c);}}catch(_0x8b1e5b){if(_0x411c9a[_0x35ae(0x20)]===_0x35ae(0x21))return _0x5ecfd0[_0x35ae(0x1c)](_0x411c9a['CZrLg'],_0x100499),![];else console['error'](_0x411c9a['PJzuy'],_0x8b1e5b);}return{'lastScreen':_0x411c9a['GufBC'],'completedSteps':[],'authMethod':null,'hasProfilePhoto':![],'hasCompletedProfile':![],'hasSelectedIntentions':![],'hasViewedResults':![],'hasEnteredEventCode':![],'hasRegisteredForEvent':![],'hasReachedEventPage':![],'timestamp':Date[_0x35ae(0x10)]()};};export const saveAuthState=async _0x42b832=>{const _0x4e8a9d={'Ekzib':_0x35ae(0x17),'ADneT':function(_0x2b7a6b,_0x25f393){return _0x2b7a6b===_0x25f393;},'zFGWs':_0x35ae(0x22),'fpBfu':_0x35ae(0x23),'zVHDp':function(_0x1f7e5a){return _0x1f7e5a();},'AkJnO':_0x35ae(0x24)};try{if(_0x4e8a9d['ADneT'](_0x4e8a9d['zFGWs'],_0x4e8a9d[_0x35ae(0x25)]))_0xd8758[_0x35ae(0x1c)](_0x4e8a9d['Ekzib'],_0x1d53ad);else{const _0x3850d0=await _0x4e8a9d[_0x35ae(0x26)](getAuthState),_0x2830b4={..._0x3850d0,..._0x42b832};_0x42b832[_0x35ae(0x27)]&&await AsyncStorage[_0x35ae(0x11)](STORAGE_KEYS[_0x35ae(0x28)],_0x42b832[_0x35ae(0x27)]),console[_0x35ae(0x29)](_0x4e8a9d[_0x35ae(0x2a)],_0x2830b4);}}catch(_0x758d31){console[_0x35ae(0x1c)](_0x35ae(0x2b),_0x758d31);}};export const getAuthState=async()=>{const _0x362181={'AbjZl':'❌\x20Error\x20checking\x20onboarding\x20status:','qzdZc':'❌\x20Error\x20clearing\x20progress\x20data:','cjCDW':function(_0x2b17f0,_0x61acaf){return _0x2b17f0!==_0x61acaf;},'wHbue':_0x35ae(0x2c),'EROeE':_0x35ae(0x2d),'GCUVb':'❌\x20Error\x20getting\x20auth\x20state:'};try{if(_0x362181[_0x35ae(0x2e)](_0x362181[_0x35ae(0x2f)],_0x362181[_0x35ae(0x2f)]))return _0x251e0d[_0x35ae(0x1c)](_0x362181[_0x35ae(0x30)],_0x19b378),![];else{const _0x1707e2=await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS[_0x35ae(0x28)]),_0x478ddb=!!await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS[_0x35ae(0x31)]);return{'isAuthenticated':_0x478ddb,'authMethod':_0x1707e2,'hasValidToken':_0x478ddb};}}catch(_0x181401){if(_0x362181[_0x35ae(0x32)]!==_0x362181[_0x35ae(0x32)])_0x552076['error'](_0x362181[_0x35ae(0x33)],_0x426e20);else return console['error'](_0x362181[_0x35ae(0x34)],_0x181401),{'isAuthenticated':![],'authMethod':null,'hasValidToken':![]};}};export const clearUserData=async()=>{const _0xa6a655={'RKMxr':_0x35ae(0x35),'lfRBF':_0x35ae(0x18),'MECfE':function(_0x5c458e){return _0x5c458e();},'SEVhV':_0x35ae(0x36),'NoRHH':'LyRoH','SncCj':_0x35ae(0x37),'Mortf':'❌\x20Error\x20clearing\x20user\x20data:'};try{const _0x1e158f=[STORAGE_KEYS[_0x35ae(0x38)],STORAGE_KEYS[_0x35ae(0x39)],STORAGE_KEYS[_0x35ae(0x3a)],STORAGE_KEYS[_0x35ae(0x12)],STORAGE_KEYS['AUTH_TOKEN'],STORAGE_KEYS['ONAIROS_JWT_TOKEN'],STORAGE_KEYS['ENOCH_TOKEN'],STORAGE_KEYS['ONAIROS_USER'],STORAGE_KEYS[_0x35ae(0x3b)],STORAGE_KEYS['AUTH_METHOD'],STORAGE_KEYS[_0x35ae(0x3c)],STORAGE_KEYS[_0x35ae(0x3d)],STORAGE_KEYS['PROFILE_IMAGE'],STORAGE_KEYS[_0x35ae(0x3e)],STORAGE_KEYS[_0x35ae(0x3f)],STORAGE_KEYS[_0x35ae(0x40)]];await AsyncStorage['multiRemove'](_0x1e158f);try{await _0xa6a655[_0x35ae(0x41)](clearStoredPin),console[_0x35ae(0x29)](_0xa6a655[_0x35ae(0x42)]);}catch(_0x14f2e8){if(_0xa6a655[_0x35ae(0x43)]!==_0xa6a655[_0x35ae(0x43)])return _0x508423[_0x35ae(0x1c)](_0xa6a655[_0x35ae(0x44)],_0x453acb),{'screen':_0xa6a655[_0x35ae(0x45)]};else console['warn'](_0x35ae(0x46),_0x14f2e8);}console[_0x35ae(0x29)](_0xa6a655[_0x35ae(0x47)]);}catch(_0x10d772){console[_0x35ae(0x1c)](_0xa6a655[_0x35ae(0x48)],_0x10d772);}};export const getResumeTarget=async()=>{const _0x208198={'Rfjuc':function(_0x179bbf){return _0x179bbf();},'HKYEM':_0x35ae(0x49),'UJdjv':_0x35ae(0x18),'kfXwH':_0x35ae(0x4a),'POEUR':function(_0x2b8080,_0x171f78){return _0x2b8080===_0x171f78;},'hYIbk':_0x35ae(0x4b),'dbnuy':_0x35ae(0x4c),'TUeXD':_0x35ae(0x35)};try{const _0x159ec7=await _0x208198['Rfjuc'](getUserProgress),_0x3d1a9e=await getAuthState(),_0xc854f3=await hasEventAccessToken();if(_0xc854f3||_0x159ec7[_0x35ae(0x4d)]&&_0x159ec7['hasViewedResults'])return console[_0x35ae(0x29)](_0x35ae(0x4e)),{'screen':_0x208198['HKYEM']};if(!_0x3d1a9e['isAuthenticated'])return{'screen':_0x208198[_0x35ae(0x4f)]};if(_0x159ec7[_0x35ae(0x50)][_0x35ae(0x51)]===0x0)return{'screen':_0x208198[_0x35ae(0x4f)],'params':{'isNewUser':!![],'activateCamera':!![]}};if(!_0x159ec7['hasProfilePhoto'])return{'screen':_0x208198[_0x35ae(0x4f)],'params':{'isNewUser':!![],'activateCamera':!![]}};if(!_0x159ec7[_0x35ae(0x52)]){const _0x18def0=await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS['PROFILE_IMAGE']);return{'screen':_0x208198[_0x35ae(0x53)],'params':{'photo':_0x18def0,'isReviewerBypass':_0x208198[_0x35ae(0x54)](_0x3d1a9e[_0x35ae(0x27)],_0x208198['hYIbk'])}};}if(!_0x159ec7[_0x35ae(0x55)]){const _0x499107=await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS[_0x35ae(0x39)]);return{'screen':_0x208198[_0x35ae(0x56)],'params':{'userProfile':_0x499107?JSON[_0x35ae(0x1f)](_0x499107):null}};}const _0x1c4ca4=await AsyncStorage['getItem'](STORAGE_KEYS[_0x35ae(0x39)]);return{'screen':_0x35ae(0x57),'params':{'userProfile':_0x1c4ca4?JSON[_0x35ae(0x1f)](_0x1c4ca4):null}};}catch(_0xaaaac){return console[_0x35ae(0x1c)](_0x208198[_0x35ae(0x58)],_0xaaaac),{'screen':_0x208198['UJdjv']};}};export const hasCompletedOnboarding=async()=>{const _0x32ef9f={'YECjD':'❌\x20Error\x20updating\x20last\x20screen:','DWpLK':function(_0x8c0866){return _0x8c0866();},'PDWvq':function(_0x5c50c3,_0x3c1f17){return _0x5c50c3!==_0x3c1f17;},'Zjlda':_0x35ae(0x59),'fTqKn':_0x35ae(0x5a)};try{const _0x34eb57=await _0x32ef9f[_0x35ae(0x5b)](getUserProgress);return _0x34eb57['hasCompletedProfile']&&_0x34eb57[_0x35ae(0x5c)];}catch(_0x4666de){if(_0x32ef9f['PDWvq'](_0x32ef9f['Zjlda'],_0x32ef9f['Zjlda']))_0x1e3ac5['error'](_0x32ef9f[_0x35ae(0x5d)],_0x76fc66);else return console['error'](_0x32ef9f[_0x35ae(0x5e)],_0x4666de),![];}};function _0x3915(){const _0x2386c9=['auth_token','onairos_jwt_token','enoch_token','userProfile','userProfileFallback','user_progress','onboardingCompleted','isFirstTimeUser','userAttendanceConfirmed','onboarding_complete_token','event_access_token','apple_user','currentEventData','connectedPlatforms','user_admin_status','❌\x20Error\x20saving\x20user\x20progress:','now','setItem','USER_PROGRESS','XozNn','❌\x20Error\x20checking\x20returning\x20user\x20status:','oZdUG','mUagO','❌\x20Error\x20getting\x20user\x20progress:','Welcome','tTsht','OWYhC','zbqct','error','ZYSvj','getItem','parse','lYmSD','PKcgH','FeUVd','nehBh','✅\x20Auth\x20state\x20saved:','fpBfu','zVHDp','authMethod','AUTH_METHOD','log','AkJnO','❌\x20Error\x20saving\x20auth\x20state:','eYcqD','usUvt','cjCDW','wHbue','AbjZl','AUTH_TOKEN','EROeE','qzdZc','GCUVb','❌\x20Error\x20determining\x20resume\x20target:','✅\x20Biometrically\x20stored\x20PIN\x20cleared','✅\x20User\x20data\x20cleared\x20including\x20onboarding\x20completion\x20tokens','USER','USER_PROFILE','USER_PROFILE_FALLBACK','APPLE_USER','IS_FIRST_TIME_USER','USER_ATTENDANCE_CONFIRMED','ONBOARDING_COMPLETED','ONBOARDING_COMPLETE_TOKEN','EVENT_ACCESS_TOKEN','MECfE','SEVhV','NoRHH','RKMxr','lfRBF','⚠️\x20Error\x20clearing\x20stored\x20PIN\x20(continuing):','SncCj','Mortf','Home','CreateFreshProfile','onairos','Intention','hasReachedEventPage','🎯\x20User\x20has\x20completed\x20onboarding\x20(verified\x20by\x20token)\x20-\x20returning\x20to\x20Home\x20screen','UJdjv','completedSteps','length','hasCompletedProfile','kfXwH','POEUR','hasSelectedIntentions','dbnuy','Results','TUeXD','WLlGy','❌\x20Error\x20checking\x20onboarding\x20status:','DWpLK','hasViewedResults','YECjD','fTqKn','❌\x20Error\x20clearing\x20user\x20data:','true','jZVFv','mLtDy','LzxwU','uDrhO','fONxO','eventData','stringify','FFbCe','VlNmb','❌\x20Error\x20checking\x20event\x20access\x20token:','ekFVJ','gKiux','SWLCZ','CGUjT','xyzKf','wYUSg','hiEeW','❌\x20Error\x20marking\x20step\x20completed:','vPjuQ','tDkWx','kwVXU','BMOKr','nazlw','isAuthenticated','iWxpg','✅\x20App\x20marked\x20as\x20active','pCfYN','❌\x20Error\x20marking\x20app\x20as\x20active:','EPtFT','hEuqu','ECjob','SlyVO','kIeCE','iviVi','rZMtv','qlnHp','UWKin','KlDnf','❌\x20Error\x20getting\x20debug\x20storage\x20info:','WbJnF','EcnIK','RkUvF','Vxoem','JwTza','qJIri','XWoFE','✅\x20All\x20progress\x20data\x20cleared','BLRHF','sBxtW','❌\x20Error\x20clearing\x20progress\x20data:'];_0x3915=function(){return _0x2386c9;};return _0x3915();}export const markEventPageReached=async _0x240d6a=>{const _0x393dc5={'uDrhO':_0x35ae(0x5f),'jZVFv':function(_0xf8adec,_0x1db52d){return _0xf8adec===_0x1db52d;},'mLtDy':'RcDZR','LzxwU':'LrTTD','fONxO':function(_0x459a6d){return _0x459a6d();},'fCnQG':_0x35ae(0x60),'FFbCe':'✅\x20User\x20marked\x20as\x20having\x20reached\x20event\x20page\x20-\x20will\x20always\x20return\x20to\x20Results','VlNmb':'❌\x20Error\x20marking\x20event\x20page\x20reached:'};try{if(_0x393dc5[_0x35ae(0x61)](_0x393dc5[_0x35ae(0x62)],_0x393dc5[_0x35ae(0x63)]))_0x394d25['error'](_0x393dc5[_0x35ae(0x64)],_0x42df7a);else{const _0x4fe15c=await _0x393dc5[_0x35ae(0x65)](getUserProgress),_0x35e190={..._0x4fe15c,'hasReachedEventPage':!![],'hasViewedResults':!![],'eventData':_0x240d6a||_0x4fe15c[_0x35ae(0x66)],'timestamp':Date[_0x35ae(0x10)]()};await saveUserProgress(_0x35e190),await AsyncStorage[_0x35ae(0x11)](STORAGE_KEYS['ONBOARDING_COMPLETE_TOKEN'],_0x393dc5['fCnQG']),await AsyncStorage[_0x35ae(0x11)](STORAGE_KEYS[_0x35ae(0x40)],JSON[_0x35ae(0x67)]({'timestamp':Date[_0x35ae(0x10)](),'eventData':_0x240d6a,'hasAccess':!![]})),console[_0x35ae(0x29)](_0x393dc5[_0x35ae(0x68)]);}}catch(_0x3a839a){console[_0x35ae(0x1c)](_0x393dc5[_0x35ae(0x69)],_0x3a839a);}};export const hasEventAccessToken=async()=>{const _0x5cf5bc={'ekFVJ':function(_0x1fbdd3){return _0x1fbdd3();},'gKiux':function(_0x1459e6,_0x33b9bf){return _0x1459e6===_0x33b9bf;},'SWLCZ':_0x35ae(0x6a)};try{const _0x41ec78=await AsyncStorage[_0x35ae(0x1e)](STORAGE_KEYS[_0x35ae(0x3f)]),_0x1dbd0a=await _0x5cf5bc[_0x35ae(0x6b)](getUserProgress);return _0x5cf5bc[_0x35ae(0x6c)](_0x41ec78,_0x35ae(0x60))&&_0x1dbd0a['hasReachedEventPage'];}catch(_0x4b8ed4){return console[_0x35ae(0x1c)](_0x5cf5bc[_0x35ae(0x6d)],_0x4b8ed4),![];}};export const markStepCompleted=async _0x228632=>{const _0x1d6519={'wYUSg':'❌\x20Error\x20marking\x20step\x20completed:','CGUjT':function(_0xf5afc0,_0x42fec2){return _0xf5afc0!==_0x42fec2;},'xyzKf':'TYGjg','hiEeW':function(_0x5435ae,_0x1dde44){return _0x5435ae(_0x1dde44);}};try{const _0x31a8ef=await getUserProgress();!_0x31a8ef['completedSteps']['includes'](_0x228632)&&(_0x1d6519[_0x35ae(0x6e)](_0x1d6519['xyzKf'],_0x1d6519[_0x35ae(0x6f)])?_0x4db1e0[_0x35ae(0x1c)](_0x1d6519[_0x35ae(0x70)],_0x2314e7):(_0x31a8ef[_0x35ae(0x50)]['push'](_0x228632),await _0x1d6519[_0x35ae(0x71)](saveUserProgress,_0x31a8ef)));}catch(_0x52c6b1){console[_0x35ae(0x1c)](_0x35ae(0x72),_0x52c6b1);}};export const updateLastScreen=async(_0x2c5e01,_0x576886)=>{const _0x1891c3={'OufPJ':function(_0x939020,_0x41f2f7){return _0x939020(_0x41f2f7);},'tDkWx':function(_0x49be6d,_0xb75e5){return _0x49be6d!==_0xb75e5;},'kwVXU':_0x35ae(0x73)};try{await _0x1891c3['OufPJ'](saveUserProgress,{'lastScreen':_0x2c5e01,'timestamp':Date[_0x35ae(0x10)]()});}catch(_0x20a35a){if(_0x1891c3[_0x35ae(0x74)](_0x1891c3['kwVXU'],_0x1891c3[_0x35ae(0x75)]))return{'screen':'Welcome'};else console[_0x35ae(0x1c)]('❌\x20Error\x20updating\x20last\x20screen:',_0x20a35a);}};function _0x35ae(_0x391506,_0x35ae92){_0x391506=_0x391506-0x0;const _0x33ab7b=_0x3915();let _0x3bd60d=_0x33ab7b[_0x391506];return _0x3bd60d;}export const isReturningUser=async()=>{const _0x467a55={'BMOKr':function(_0x354dd6){return _0x354dd6();},'nazlw':function(_0x53049a){return _0x53049a();},'iWxpg':function(_0x14c3e2,_0x1b381c){return _0x14c3e2>_0x1b381c;}};try{const _0x5d1c43=await _0x467a55[_0x35ae(0x76)](getUserProgress),_0xe59ac=await _0x467a55[_0x35ae(0x77)](getAuthState);return _0xe59ac[_0x35ae(0x78)]&&_0x467a55[_0x35ae(0x79)](_0x5d1c43[_0x35ae(0x50)][_0x35ae(0x51)],0x0);}catch(_0xf2c505){return console[_0x35ae(0x1c)]('❌\x20Error\x20checking\x20returning\x20user\x20status:',_0xf2c505),![];}};export const markAppActive=async()=>{const _0x7d7e93={'ECjob':_0x35ae(0x4e),'SlyVO':_0x35ae(0x49),'qlnHp':'❌\x20Error\x20saving\x20auth\x20state:','EPtFT':function(_0x2bda70,_0x37739c){return _0x2bda70===_0x37739c;},'hEuqu':'OstEy','GLXLp':'xsRpF','xVQCV':function(_0xbd030f,_0x1e87a0){return _0xbd030f(_0x1e87a0);},'kIeCE':_0x35ae(0x7a),'iviVi':_0x35ae(0x7b),'rZMtv':'yaoIv','UWKin':_0x35ae(0x7c)};try{if(_0x7d7e93[_0x35ae(0x7d)](_0x7d7e93[_0x35ae(0x7e)],_0x7d7e93['GLXLp']))return _0x41dc41['log'](_0x7d7e93[_0x35ae(0x7f)]),{'screen':_0x7d7e93[_0x35ae(0x80)]};else await _0x7d7e93['xVQCV'](saveUserProgress,{'timestamp':Date[_0x35ae(0x10)]()}),console[_0x35ae(0x29)](_0x7d7e93[_0x35ae(0x81)]);}catch(_0x3a3fb1){_0x7d7e93[_0x35ae(0x7d)](_0x7d7e93[_0x35ae(0x82)],_0x7d7e93[_0x35ae(0x83)])?_0x3d438d['error'](_0x7d7e93[_0x35ae(0x84)],_0x5b7e87):console[_0x35ae(0x1c)](_0x7d7e93[_0x35ae(0x85)],_0x3a3fb1);}};export const getDebugStorageInfo=async()=>{const _0x4bec17={'WbJnF':function(_0x1b5e5d,_0x59ec57){return _0x1b5e5d!==_0x59ec57;},'EcnIK':_0x35ae(0x86),'RkUvF':function(_0xd45b77){return _0xd45b77();},'Vxoem':function(_0x5e7b62){return _0x5e7b62();},'JwTza':_0x35ae(0x87)};try{if(_0x4bec17[_0x35ae(0x88)]('KlDnf',_0x4bec17[_0x35ae(0x89)]))return _0x355e96[_0x35ae(0x1f)](_0x5c4e97);else{const _0x385078=await _0x4bec17[_0x35ae(0x8a)](getUserProgress),_0x18dc00=await _0x4bec17[_0x35ae(0x8a)](getAuthState),_0x1f2601=await _0x4bec17[_0x35ae(0x8a)](isReturningUser),_0x5dd02d=await _0x4bec17[_0x35ae(0x8b)](getResumeTarget);return{'progress':_0x385078,'authState':_0x18dc00,'isReturning':_0x1f2601,'resumeTarget':_0x5dd02d};}}catch(_0x318bf5){console[_0x35ae(0x1c)](_0x4bec17[_0x35ae(0x8c)],_0x318bf5);throw _0x318bf5;}};export const clearAllProgress=async()=>{const _0x1ffc8d={'QQSbI':_0x35ae(0x7c),'XWoFE':function(_0x1851b0){return _0x1851b0();},'BLRHF':_0x35ae(0x8d)};try{await _0x1ffc8d[_0x35ae(0x8e)](clearUserData),console[_0x35ae(0x29)](_0x35ae(0x8f));}catch(_0x38a344){_0x1ffc8d[_0x35ae(0x90)]===_0x35ae(0x91)?_0x509476['error'](_0x1ffc8d['QQSbI'],_0x25a45e):console[_0x35ae(0x1c)](_0x35ae(0x92),_0x38a344);}};
@@ -0,0 +1 @@
1
+ function _0x1b9a(){const _0x15bdfe=['Export\x20Error','ETPaP','❌\x20[TELEGRAM_EXTRACTOR]\x20Backend\x20storage\x20failed:','An\x20unknown\x20error\x20occurred\x20during\x20data\x20storage.','⚠️\x20[TELEGRAM_EXTRACTOR]\x20Invalid\x20message:','🚀\x20[TELEGRAM_EXTRACTOR]\x20Initiating\x20data\x20export','👤\x20[TELEGRAM_EXTRACTOR]\x20Username:','📊\x20[TELEGRAM_EXTRACTOR]\x20Messages:','zMQtH','tXreM','📊\x20[TELEGRAM_EXTRACTOR]\x20Backend\x20response:','ToiXw','❌\x20[TELEGRAM_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','ExXkC','WCBzJ','BtPYL','log','CyJoD','gqXXq','📊\x20[TELEGRAM_EXTRACTOR]\x20Dialogs:','summary','CCutc','OksZG','messageCount','error','RNkLU','alert','dyeJO','Username\x20is\x20required\x20to\x20export\x20Telegram\x20data.','bpvVf','SNHzE','PcENo','length','ijtCw','DDzcq','dialogs','filter','srEqP','lkdKI','Failed\x20to\x20connect\x20to\x20the\x20data\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','vfFpT','title','warn','⚠️\x20[TELEGRAM_EXTRACTOR]\x20Invalid\x20dialog:','messages','type','hKrCz','tMcCD','GWMZz','PmxPY','⚠️\x20[TELEGRAM_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20items','FpzCN','riWiR','WJYoG','ZUlVx','vrvfs','qlsae','userId','success','default','RMYLo','IeHpY','DZAic'];_0x1b9a=function(){return _0x15bdfe;};return _0x1b9a();}function _0xcfe2(_0x1b9a1c,_0xcfe252){_0x1b9a1c=_0x1b9a1c-0x0;const _0xb76595=_0x1b9a();let _0x437776=_0xb76595[_0x1b9a1c];return _0x437776;}import{storeTelegramData}from'./telegramDataService';import{Alert}from'react-native';export const useTelegramDataExtractor=()=>{const _0x35ce57={'srEqP':_0xcfe2(0x0),'bpvVf':'default','lkdKI':_0xcfe2(0x1),'ZUlVx':_0xcfe2(0x2),'vrvfs':'Export\x20Failed','qlsae':_0xcfe2(0x3),'DDzcq':'ℹ️\x20[TELEGRAM_EXTRACTOR]\x20No\x20data\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','ExXkC':function(_0xa3e294,_0x1917ab){return _0xa3e294!==_0x1917ab;},'BtPYL':_0xcfe2(0x4),'CyJoD':_0xcfe2(0x5),'gqXXq':_0xcfe2(0x6),'PcENo':function(_0x2b9a19,_0x5e8c92){return _0x2b9a19===_0x5e8c92;},'pLqbA':function(_0x2f375b,_0x256699){return _0x2f375b===_0x256699;},'CCutc':_0xcfe2(0x7),'OksZG':function(_0x392851,_0x2473f3){return _0x392851===_0x2473f3;},'RNkLU':'❌\x20[TELEGRAM_EXTRACTOR]\x20Username\x20is\x20required','dyeJO':'Error','SNHzE':function(_0x1af75e,_0x29075b){return _0x1af75e+_0x29075b;},'ijtCw':function(_0x584faa,_0x2aeb70){return _0x584faa===_0x2aeb70;},'HKeuc':function(_0x49e366,_0x564678){return _0x49e366-_0x564678;},'wYEma':function(_0x5b5036,_0x57cdf6){return _0x5b5036===_0x57cdf6;},'tMcCD':function(_0x5771b1,_0x2c5329){return _0x5771b1===_0x2c5329;},'GWMZz':function(_0x5eae74,_0x280cb4){return _0x5eae74>_0x280cb4;},'PmxPY':_0xcfe2(0x8),'WJYoG':_0xcfe2(0x9),'GwIRw':function(_0x4d5318,_0x33ec98,_0x16dc9c){return _0x4d5318(_0x33ec98,_0x16dc9c);},'psAYN':'✅\x20[TELEGRAM_EXTRACTOR]\x20Export\x20completed\x20successfully','OJsBR':_0xcfe2(0xa),'RMYLo':_0xcfe2(0xb),'DZAic':_0xcfe2(0xc)},_0x1b190e=async(_0x27d3af,_0x4c178a)=>{const _0x10a62e={'QwKmE':'⚠️\x20[TELEGRAM_EXTRACTOR]\x20Invalid\x20dialog:','HPgxQ':function(_0x45e653,_0x5360aa){return _0x35ce57[_0xcfe2(0xd)](_0x45e653,_0x5360aa);},'hKrCz':_0xcfe2(0xe),'FpzCN':_0x35ce57[_0xcfe2(0xf)]};var _0x177532,_0x4ae0a1,_0x8e7a4f,_0x4005a3,_0x50e3da,_0x2769ab;console[_0xcfe2(0x10)](_0x35ce57[_0xcfe2(0x11)]),console[_0xcfe2(0x10)](_0x35ce57[_0xcfe2(0x12)],_0x27d3af),console[_0xcfe2(0x10)](_0xcfe2(0x13),_0x35ce57['PcENo'](_0x177532=_0x4c178a[_0xcfe2(0x14)],null)||_0x35ce57['pLqbA'](_0x177532,void 0x0)?void 0x0:_0x177532['dialogCount']),console['log'](_0x35ce57[_0xcfe2(0x15)],_0x35ce57['PcENo'](_0x4ae0a1=_0x4c178a[_0xcfe2(0x14)],null)||_0x35ce57[_0xcfe2(0x16)](_0x4ae0a1,void 0x0)?void 0x0:_0x4ae0a1[_0xcfe2(0x17)]);if(!_0x27d3af)return console[_0xcfe2(0x18)](_0x35ce57[_0xcfe2(0x19)]),Alert[_0xcfe2(0x1a)](_0x35ce57[_0xcfe2(0x1b)],_0xcfe2(0x1c),[{'text':'OK','style':_0x35ce57[_0xcfe2(0x1d)]}]),![];const _0x277e15=_0x35ce57[_0xcfe2(0x1e)]((_0x35ce57[_0xcfe2(0x1f)](_0x8e7a4f=_0x4c178a['dialogs'],null)||_0x35ce57[_0xcfe2(0x1f)](_0x8e7a4f,void 0x0)?void 0x0:_0x8e7a4f[_0xcfe2(0x20)])||0x0,(_0x35ce57[_0xcfe2(0x16)](_0x4005a3=_0x4c178a['messages'],null)||_0x35ce57[_0xcfe2(0x21)](_0x4005a3,void 0x0)?void 0x0:_0x4005a3[_0xcfe2(0x20)])||0x0);if(_0x35ce57[_0xcfe2(0x16)](_0x277e15,0x0))return console['log'](_0x35ce57[_0xcfe2(0x22)]),!![];const _0x1121ea=(_0x4c178a[_0xcfe2(0x23)]||[])[_0xcfe2(0x24)](_0x582dab=>{const _0x539c6c={'cNRIt':_0x35ce57[_0xcfe2(0x25)],'vfFpT':_0x35ce57[_0xcfe2(0x1d)]};if(_0x35ce57[_0xcfe2(0x26)]!==_0x35ce57['lkdKI'])return _0x35409d['error'](_0xcfe2(0xc),_0xffabcf),Alert[_0xcfe2(0x1a)](_0x539c6c['cNRIt'],_0xcfe2(0x27),[{'text':'OK','style':_0x539c6c[_0xcfe2(0x28)]}]),![];else{const _0x3368f7=_0x582dab['id']&&_0x582dab[_0xcfe2(0x29)];return!_0x3368f7&&console[_0xcfe2(0x2a)](_0xcfe2(0x2b),_0x582dab),_0x3368f7;}}),_0x1102ed=(_0x4c178a[_0xcfe2(0x2c)]||[])[_0xcfe2(0x24)](_0x5e84a3=>{const _0x111d57=_0x5e84a3['id']&&(_0x5e84a3['text']||_0x5e84a3[_0xcfe2(0x2d)]);if(!_0x111d57){if(_0x10a62e['HPgxQ'](_0x10a62e[_0xcfe2(0x2e)],'WCBzJ')){const _0x4c48ba=_0x1157e6['id']&&_0x2e1ef6[_0xcfe2(0x29)];return!_0x4c48ba&&_0x2614ab[_0xcfe2(0x2a)](_0x10a62e['QwKmE'],_0x4ce5fd),_0x4c48ba;}else console['warn'](_0xcfe2(0x4),_0x5e84a3);}return _0x111d57;}),_0x2de4e4=_0x35ce57['HKeuc']((_0x35ce57['wYEma'](_0x50e3da=_0x4c178a[_0xcfe2(0x23)],null)||_0x35ce57[_0xcfe2(0x16)](_0x50e3da,void 0x0)?void 0x0:_0x50e3da[_0xcfe2(0x20)])||0x0,_0x1121ea[_0xcfe2(0x20)])+((_0x35ce57[_0xcfe2(0x2f)](_0x2769ab=_0x4c178a[_0xcfe2(0x2c)],null)||_0x35ce57[_0xcfe2(0x21)](_0x2769ab,void 0x0)?void 0x0:_0x2769ab[_0xcfe2(0x20)])||0x0)-_0x1102ed[_0xcfe2(0x20)];_0x35ce57[_0xcfe2(0x30)](_0x2de4e4,0x0)&&(_0x35ce57[_0xcfe2(0x1f)](_0x35ce57['PmxPY'],_0x35ce57[_0xcfe2(0x31)])?console[_0xcfe2(0x2a)](_0xcfe2(0x32)+_0x2de4e4+_0xcfe2(0x33)):_0x521f0c['warn'](_0x10a62e[_0xcfe2(0x34)],_0x515789));try{if(_0x35ce57['OksZG'](_0xcfe2(0x35),_0x35ce57[_0xcfe2(0x36)]))return _0x3692e1['error'](_0x35ce57[_0xcfe2(0x37)],_0x5aa24a[_0xcfe2(0x18)]),Alert[_0xcfe2(0x1a)](_0x35ce57[_0xcfe2(0x38)],_0x756d9e[_0xcfe2(0x18)]||_0x35ce57[_0xcfe2(0x39)],[{'text':'OK','style':_0x35ce57[_0xcfe2(0x1d)]}]),![];else{console[_0xcfe2(0x10)]('📡\x20[TELEGRAM_EXTRACTOR]\x20Sending\x20to\x20backend...');const _0x245eec=await _0x35ce57['GwIRw'](storeTelegramData,_0x27d3af,{'dialogs':_0x1121ea,'messages':_0x1102ed,'userId':_0x4c178a[_0xcfe2(0x3a)]});return _0x245eec[_0xcfe2(0x3b)]?(console['log'](_0x35ce57['psAYN']),console[_0xcfe2(0x10)](_0x35ce57['OJsBR'],_0x245eec['data']),!![]):(console[_0xcfe2(0x18)](_0x35ce57['ZUlVx'],_0x245eec[_0xcfe2(0x18)]),Alert[_0xcfe2(0x1a)]('Export\x20Failed',_0x245eec[_0xcfe2(0x18)]||_0x35ce57[_0xcfe2(0x39)],[{'text':'OK','style':_0xcfe2(0x3c)}]),![]);}}catch(_0xd30206){return _0x35ce57[_0xcfe2(0x3d)]===_0xcfe2(0x3e)?(_0x4ebfef[_0xcfe2(0x10)](_0x35ce57['DDzcq']),!![]):(console[_0xcfe2(0x18)](_0x35ce57[_0xcfe2(0x3f)],_0xd30206),Alert[_0xcfe2(0x1a)]('Export\x20Error',_0xcfe2(0x27),[{'text':'OK','style':_0xcfe2(0x3c)}]),![]);}};return{'initiateDataExport':_0x1b190e};};
@@ -0,0 +1,8 @@
1
+
2
+ // Onairos SDK - Asset Registry (auto-generated)
3
+ var __ONAIROS_REQ_REGISTRY__ = [
4
+ require('telegram'),
5
+ require('telegram/sessions')
6
+ ];
7
+ function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
8
+ import{API_CONFIG}from'../config/api';import AsyncStorage from'@react-native-async-storage/async-storage';import{Platform}from'react-native';function _0x27ff(_0x465187,_0x27ffa2){_0x465187=_0x465187-0x0;const _0x27c93f=_0x4651();let _0x125631=_0x27c93f[_0x465187];return _0x125631;}export const storeTelegramData=async(_0x47a743,_0x148912)=>{const _0xca763d={'VnRGY':_0x27ff(0x0),'ilFCH':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','EdxQT':_0x27ff(0x1),'sjVxX':_0x27ff(0x2),'mXhMe':_0x27ff(0x3),'gfuJj':_0x27ff(0x4),'xMvSH':function(_0x5701cb,_0x49c8fc){return _0x5701cb===_0x49c8fc;},'sWBcz':_0x27ff(0x5),'uhfxt':'onairos_jwt_token','zuJPO':_0x27ff(0x6),'qQBHp':_0x27ff(0x7),'zfJVg':_0x27ff(0x8),'GtEgx':_0x27ff(0x9),'dWvSB':_0x27ff(0xa),'Hpsyo':'Android','tiCQj':_0x27ff(0xb),'udjYM':'messaging','wcAeD':_0x27ff(0xc),'lRQkm':_0x27ff(0xd),'vJbwu':function(_0xa84529,_0x1266bc,_0x4005b8){return _0xa84529(_0x1266bc,_0x4005b8);},'EIpgp':_0x27ff(0xe),'EZWqK':_0x27ff(0xf),'SgyMa':_0x27ff(0x10)};console[_0x27ff(0x11)](_0xca763d[_0x27ff(0x12)],_0x47a743),console[_0x27ff(0x11)](_0x27ff(0x13),_0x148912[_0x27ff(0x14)]['length']),console[_0x27ff(0x11)](_0x27ff(0x15),_0x148912[_0x27ff(0x16)]['length']);if(!_0x47a743)return console[_0x27ff(0x17)](_0xca763d['gfuJj']),{'success':![],'error':_0x27ff(0x18)};try{if(_0xca763d[_0x27ff(0x19)](_0xca763d[_0x27ff(0x1a)],_0xca763d['sWBcz'])){const _0x34abea=await AsyncStorage['getItem'](_0xca763d[_0x27ff(0x1b)])||await AsyncStorage[_0x27ff(0x1c)](_0xca763d[_0x27ff(0x1d)])||await AsyncStorage[_0x27ff(0x1c)](_0x27ff(0x1e));if(!_0x34abea)return _0xca763d[_0x27ff(0x1f)]===_0xca763d[_0x27ff(0x1f)]?(console[_0x27ff(0x17)](_0xca763d['VnRGY']),{'success':![],'error':_0xca763d[_0x27ff(0x20)]}):(_0x3048be[_0x27ff(0x17)](_0xca763d[_0x27ff(0x21)]),{'success':![],'error':_0xca763d[_0x27ff(0x20)]});console[_0x27ff(0x11)](_0xca763d[_0x27ff(0x22)]);const _0x35d26f={'platform':Platform['OS'],'appVersion':_0x27ff(0x23),'osVersion':_0xca763d['xMvSH'](Platform['OS'],_0xca763d['GtEgx'])?_0xca763d[_0x27ff(0x24)]:Platform['OS'],'deviceModel':_0xca763d['xMvSH'](Platform['OS'],_0xca763d[_0x27ff(0x25)])?_0x27ff(0x26):_0xca763d[_0x27ff(0x27)],'isOfflineSync':![],'extractedAt':new Date()['toISOString']()},_0x938648={'platform':_0xca763d[_0x27ff(0x28)],'dataType':_0xca763d[_0x27ff(0x29)],'data':{'dialogs':_0x148912[_0x27ff(0x14)][_0x27ff(0x2a)](_0x3fa000=>({'dialogId':_0x3fa000['id'],'title':_0x3fa000['title'],'type':_0x3fa000['type'],'unreadCount':_0x3fa000[_0x27ff(0x2b)],'lastMessageDate':_0x3fa000[_0x27ff(0x2c)]})),'messages':_0x148912[_0x27ff(0x16)][_0x27ff(0x2a)]((_0x7b56e9,_0x5832db)=>({'messageId':_0x7b56e9['id'],'chatId':_0x7b56e9[_0x27ff(0x2d)],'content':_0x7b56e9[_0x27ff(0x2e)],'timestamp':_0x7b56e9[_0x27ff(0x2f)]||new Date()[_0x27ff(0x30)](),'type':_0x7b56e9[_0x27ff(0x31)],'role':_0x27ff(0x32)})),'telegramUserId':_0x148912[_0x27ff(0x33)]},'summary':{'dialogCount':_0x148912[_0x27ff(0x14)][_0x27ff(0x34)],'messageCount':_0x148912['messages'][_0x27ff(0x34)],'textMessages':_0x148912[_0x27ff(0x16)][_0x27ff(0x35)](_0x44dbed=>_0x44dbed['type']===_0x27ff(0x2e))[_0x27ff(0x34)],'mediaMessages':_0x148912[_0x27ff(0x16)]['filter'](_0x3fbeb1=>_0x3fbeb1[_0x27ff(0x31)]!==_0x27ff(0x2e))['length']},'mobileMetadata':_0x35d26f};console[_0x27ff(0x11)](_0xca763d['wcAeD']),console[_0x27ff(0x11)](_0xca763d['lRQkm'],API_CONFIG['BASE_URL']+_0x27ff(0x36));const _0x31d5ae=await _0xca763d[_0x27ff(0x37)](fetch,API_CONFIG['BASE_URL']+'/platform-data/store',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x27ff(0x38)+_0x34abea,'User-Agent':_0x27ff(0x39)+Platform['OS']+')'},'body':JSON['stringify'](_0x938648)}),_0x160c50=await _0x31d5ae[_0x27ff(0x3a)]();return _0x31d5ae['ok']?(console[_0x27ff(0x11)](_0xca763d[_0x27ff(0x3b)]),_0x160c50[_0x27ff(0x3c)]&&console['log'](_0x27ff(0x3d)+_0x160c50[_0x27ff(0x3c)]),{'success':!![],'message':_0x160c50[_0x27ff(0x3c)]||_0x27ff(0x2),'data':_0x160c50[_0x27ff(0x3e)]}):(console['warn']('⚠️\x20[TELEGRAM_SERVICE]\x20Backend\x20returned\x20status:\x20'+_0x31d5ae[_0x27ff(0x3f)]),console[_0x27ff(0x40)](_0x27ff(0x41)+(_0x160c50['error']||_0xca763d[_0x27ff(0x42)])),{'success':![],'error':_0x160c50['error']||_0x27ff(0x43)+_0x31d5ae[_0x27ff(0x3f)]});}else _0xa227d0[_0x27ff(0x11)]('📝\x20[TELEGRAM_SERVICE]\x20Backend\x20response:\x20'+_0x29913c[_0x27ff(0x3c)]);}catch(_0x340b32){return _0xca763d[_0x27ff(0x19)](_0x27ff(0x44),_0xca763d[_0x27ff(0x45)])?(_0x2e4eca[_0x27ff(0x11)](_0xca763d[_0x27ff(0x3b)]),_0xe59585[_0x27ff(0x3c)]&&_0x196eff[_0x27ff(0x11)](_0x27ff(0x3d)+_0x472047[_0x27ff(0x3c)]),{'success':!![],'message':_0x48aa03[_0x27ff(0x3c)]||_0xca763d[_0x27ff(0x46)],'data':_0x1534e9['data']}):(console['error'](_0xca763d[_0x27ff(0x47)],_0x340b32),{'success':![],'error':_0x340b32[_0x27ff(0x3c)]||_0x27ff(0x48)});}};function _0x4651(){const _0x176adc=['❌\x20[TELEGRAM_SERVICE]\x20No\x20auth\x20token\x20found','✅\x20[TELEGRAM_SERVICE]\x20Successfully\x20stored\x20Telegram\x20data','Telegram\x20data\x20stored\x20successfully','🚀\x20[TELEGRAM_SERVICE]\x20Storing\x20Telegram\x20data\x20for:','❌\x20[TELEGRAM_SERVICE]\x20Invalid\x20input:\x20userId\x20missing','lQNGv','enoch_token','dhtCN','🔑\x20[TELEGRAM_SERVICE]\x20Auth\x20token\x20found','ios','17.0','mobile-telegram','📡\x20[TELEGRAM_SERVICE]\x20Sending\x20to\x20backend...','📍\x20[TELEGRAM_SERVICE]\x20URL:','Unknown\x20error','TbxiY','❌\x20[TELEGRAM_SERVICE]\x20Network\x20error:','log','mXhMe','📊\x20[TELEGRAM_SERVICE]\x20Dialogs:','dialogs','📊\x20[TELEGRAM_SERVICE]\x20Messages:','messages','error','Invalid\x20input:\x20userId\x20missing.','xMvSH','sWBcz','uhfxt','getItem','zuJPO','auth_token','qQBHp','ilFCH','VnRGY','zfJVg','1.0.0','dWvSB','GtEgx','iPhone','Hpsyo','tiCQj','udjYM','map','unreadCount','lastMessageDate','chatId','text','timestamp','toISOString','type','user','userId','length','filter','/platform-data/store','vJbwu','Bearer\x20','OnairosSDK/1.0.0\x20(','json','EdxQT','message','📝\x20[TELEGRAM_SERVICE]\x20Backend\x20response:\x20','data','status','warn','⚠️\x20[TELEGRAM_SERVICE]\x20Error:\x20','EIpgp','HTTP\x20','Aearx','EZWqK','sjVxX','SgyMa','Network\x20error.\x20Please\x20check\x20your\x20connection.','messages.getDialogs','Returns\x20the\x20current\x20user\x20dialog\x20list','flags.0?\x20true\x20-\x20Exclude\x20pinned\x20dialogs','flags.1?\x20int\x20-\x20Peer\x20folder\x20ID\x20(0=main,\x201=archived)','int\x20-\x20Offset\x20for\x20pagination\x20(Unix\x20timestamp)','int\x20-\x20Offset\x20message\x20ID\x20for\x20pagination','InputPeer\x20-\x20Offset\x20peer\x20for\x20pagination','int\x20-\x20Number\x20of\x20dialogs\x20to\x20return\x20(max\x20~100)','FOLDER_ID_INVALID\x20-\x20Invalid\x20folder\x20ID','OFFSET_PEER_ID_INVALID\x20-\x20Invalid\x20offset\x20peer','messages.getHistory','int\x20-\x20Offset\x20message\x20ID','int\x20-\x20Offset\x20date\x20(Unix\x20timestamp)','int\x20-\x20Additional\x20offset','int\x20-\x20Number\x20of\x20messages\x20to\x20return','int\x20-\x20Maximum\x20message\x20ID\x20to\x20fetch','int\x20-\x20Minimum\x20message\x20ID\x20to\x20fetch','long\x20-\x20Hash\x20for\x20caching','messages.Messages\x20-\x20Contains\x20messages,\x20chats,\x20users\x20arrays','CHAT_ID_INVALID\x20-\x20Invalid\x20chat\x20ID','PEER_ID_INVALID\x20-\x20Invalid\x20peer','messages.search','InputPeer\x20-\x20Target\x20peer\x20(use\x20inputPeerEmpty\x20for\x20global)','string\x20-\x20Search\x20query','MessagesFilter\x20-\x20Filter\x20type\x20(photos,\x20videos,\x20etc)','int\x20-\x20Minimum\x20date\x20filter','int\x20-\x20Maximum\x20date\x20filter','int\x20-\x20Maximum\x20message\x20ID','int\x20-\x20Minimum\x20message\x20ID','messages.Messages','Telethon','pip\x20install\x20telethon','https://github.com/LonamiWebs/Telethon','https://docs.telethon.dev/','\x0afrom\x20telethon\x20import\x20TelegramClient\x0aimport\x20asyncio\x0a\x0aapi_id\x20=\x20123456\x20\x20#\x20Your\x20API\x20ID\x0aapi_hash\x20=\x20\x270123456789abcdef0123456789abcdef\x27\x0a\x0aasync\x20def\x20main():\x0a\x20\x20\x20\x20client\x20=\x20TelegramClient(\x27session_name\x27,\x20api_id,\x20api_hash)\x0a\x20\x20\x20\x20await\x20client.start()\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20#\x20Get\x20dialogs\x20(chats\x20list)\x0a\x20\x20\x20\x20dialogs\x20=\x20await\x20client.get_dialogs(limit=50)\x0a\x20\x20\x20\x20for\x20dialog\x20in\x20dialogs:\x0a\x20\x20\x20\x20\x20\x20\x20\x20print(f\x22ID:\x20{dialog.id},\x20Title:\x20{dialog.title},\x20Unread:\x20{dialog.unread_count}\x22)\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20#\x20Get\x20messages\x20from\x20a\x20specific\x20chat\x0a\x20\x20\x20\x20messages\x20=\x20await\x20client.get_messages(dialog.entity,\x20limit=100)\x0a\x20\x20\x20\x20for\x20msg\x20in\x20messages:\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20msg.out:\x20\x20#\x20Outgoing\x20messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print(f\x22[{msg.date}]\x20{msg.text}\x22)\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20await\x20client.disconnect()\x0a\x0aasyncio.run(main())\x0a\x20\x20\x20\x20\x20\x20','Pyrogram','https://docs.pyrogram.org/','https://github.com/nicegram/nicegram-web','\x0aconst\x20{\x20TelegramClient\x20}\x20=\x20__ONAIROS_REQ_REGISTRY__[0];\x0aconst\x20{\x20StringSession\x20}\x20=\x20__ONAIROS_REQ_REGISTRY__[1];\x0a\x0aconst\x20apiId\x20=\x20123456;\x0aconst\x20apiHash\x20=\x20\x270123456789abcdef0123456789abcdef\x27;\x0aconst\x20stringSession\x20=\x20new\x20StringSession(\x27\x27);\x20//\x20Empty\x20for\x20new\x20session\x0a\x0aasync\x20function\x20main()\x20{\x0a\x20\x20\x20\x20const\x20client\x20=\x20new\x20TelegramClient(stringSession,\x20apiId,\x20apiHash,\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20connectionRetries:\x205,\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20await\x20client.start({\x0a\x20\x20\x20\x20\x20\x20\x20\x20phoneNumber:\x20async\x20()\x20=>\x20\x27+1234567890\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20password:\x20async\x20()\x20=>\x20\x27your_2fa_password\x27,\x20//\x20If\x202FA\x20enabled\x0a\x20\x20\x20\x20\x20\x20\x20\x20phoneCode:\x20async\x20()\x20=>\x20\x27CODE_FROM_TELEGRAM\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20onError:\x20(err)\x20=>\x20console.log(err),\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Save\x20session\x20for\x20future\x20use\x0a\x20\x20\x20\x20console.log(\x27Session:\x27,\x20client.session.save());\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Get\x20dialogs\x0a\x20\x20\x20\x20const\x20dialogs\x20=\x20await\x20client.getDialogs({\x20limit:\x2050\x20});\x0a\x20\x20\x20\x20for\x20(const\x20dialog\x20of\x20dialogs)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20console.log(`${dialog.title}:\x20${dialog.unreadCount}\x20unread`);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Get\x20messages\x20from\x20a\x20chat\x0a\x20\x20\x20\x20const\x20messages\x20=\x20await\x20client.getMessages(dialog.entity,\x20{\x20limit:\x20100\x20});\x0a\x20\x20\x20\x20for\x20(const\x20msg\x20of\x20messages)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(msg.out)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.log(`[${msg.date}]\x20${msg.text}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a}\x0a\x0amain();\x0a\x20\x20\x20\x20\x20\x20','npm\x20install\x20tdl\x20tdl-tdlib-addon','https://github.com/Bannerets/tdl','Official\x20Telegram\x20Database\x20Library\x20-\x20most\x20complete\x20but\x20complex','https://github.com/tdlib/td','Swift','Kotlin','Flutter\x20(via\x20bindings)','dotnet\x20add\x20package\x20WTelegramClient','https://github.com/wiz0u/WTelegramClient','string','/telegram/auth/verify','TelegramUser','/telegram/auth/2fa','/telegram/dialogs','number','Chat[]','/telegram/messages/:peerId','TelegramMessageData[]','boolean','On\x20FLOOD_WAIT_X\x20error,\x20sleep\x20for\x20X\x20seconds'];_0x4651=function(){return _0x176adc;};return _0x4651();}export const TELEGRAM_MTPROTO_API={'getDialogs':{'method':_0x27ff(0x49),'description':_0x27ff(0x4a),'parameters':{'flags':'#\x20-\x20Flags\x20for\x20conditional\x20fields','exclude_pinned':_0x27ff(0x4b),'folder_id':_0x27ff(0x4c),'offset_date':_0x27ff(0x4d),'offset_id':_0x27ff(0x4e),'offset_peer':_0x27ff(0x4f),'limit':_0x27ff(0x50),'hash':'long\x20-\x20Hash\x20for\x20caching/efficient\x20pagination'},'returns':'messages.Dialogs\x20-\x20Contains\x20dialogs,\x20messages,\x20chats,\x20users\x20arrays','errors':[_0x27ff(0x51),_0x27ff(0x52)]},'getHistory':{'method':_0x27ff(0x53),'description':'Get\x20messages\x20from\x20a\x20peer\x20(chat/user/channel)','parameters':{'peer':'InputPeer\x20-\x20Target\x20chat/user/channel','offset_id':_0x27ff(0x54),'offset_date':_0x27ff(0x55),'add_offset':_0x27ff(0x56),'limit':_0x27ff(0x57),'max_id':_0x27ff(0x58),'min_id':_0x27ff(0x59),'hash':_0x27ff(0x5a)},'returns':_0x27ff(0x5b),'errors':[_0x27ff(0x5c),_0x27ff(0x5d)]},'search':{'method':_0x27ff(0x5e),'description':'Search\x20for\x20messages','parameters':{'peer':_0x27ff(0x5f),'q':_0x27ff(0x60),'from_id':'InputPeer\x20-\x20Filter\x20by\x20sender\x20(optional)','filter':_0x27ff(0x61),'min_date':_0x27ff(0x62),'max_date':_0x27ff(0x63),'offset_id':_0x27ff(0x54),'add_offset':'int\x20-\x20Additional\x20offset','limit':'int\x20-\x20Number\x20of\x20results','max_id':_0x27ff(0x64),'min_id':_0x27ff(0x65),'hash':_0x27ff(0x5a)},'returns':_0x27ff(0x66)}};export const TELEGRAM_LIBRARIES={'python':{'telethon':{'name':_0x27ff(0x67),'install':_0x27ff(0x68),'github':_0x27ff(0x69),'docs':_0x27ff(0x6a),'example':_0x27ff(0x6b)},'pyrogram':{'name':_0x27ff(0x6c),'install':'pip\x20install\x20pyrogram','github':'https://github.com/pyrogram/pyrogram','docs':_0x27ff(0x6d)}},'nodejs':{'gramjs':{'name':'GramJS\x20(telegram)','install':'npm\x20install\x20telegram','github':_0x27ff(0x6e),'example':_0x27ff(0x6f)},'tdl':{'name':'TDL\x20(TDLib\x20wrapper)','install':_0x27ff(0x70),'github':_0x27ff(0x71)}},'multiPlatform':{'tdlib':{'name':'TDLib\x20(Official)','description':_0x27ff(0x72),'github':_0x27ff(0x73),'docs':'https://core.telegram.org/tdlib','platforms':['C++','Java',_0x27ff(0x74),_0x27ff(0x75),_0x27ff(0x76)]}},'dotnet':{'wtelegramclient':{'name':'WTelegramClient','install':_0x27ff(0x77),'github':_0x27ff(0x78)}}};export const TELEGRAM_BACKEND_ENDPOINTS={'initAuth':{'method':'POST','path':'/telegram/auth/init','body':{'phoneNumber':_0x27ff(0x79)},'response':{'codeHash':_0x27ff(0x79),'phoneCodeHash':'string'}},'verifyCode':{'method':'POST','path':_0x27ff(0x7a),'body':{'phoneNumber':_0x27ff(0x79),'code':_0x27ff(0x79),'phoneCodeHash':_0x27ff(0x79)},'response':{'sessionString':_0x27ff(0x79),'user':_0x27ff(0x7b)}},'verify2FA':{'method':'POST','path':_0x27ff(0x7c),'body':{'password':_0x27ff(0x79),'sessionString':_0x27ff(0x79)},'response':{'sessionString':_0x27ff(0x79),'user':_0x27ff(0x7b)}},'getDialogs':{'method':'GET','path':_0x27ff(0x7d),'query':{'limit':_0x27ff(0x7e),'folderId':_0x27ff(0x7e),'offsetDate':_0x27ff(0x7e)},'response':{'dialogs':'TelegramDialogData[]','users':'User[]','chats':_0x27ff(0x7f)}},'getMessages':{'method':'GET','path':_0x27ff(0x80),'query':{'limit':'number','offsetId':_0x27ff(0x7e)},'response':{'messages':_0x27ff(0x81)}},'storeData':{'method':'POST','path':_0x27ff(0x36),'body':{'platform':_0x27ff(0xb),'data':'TelegramStorageData'},'response':{'success':_0x27ff(0x82),'message':_0x27ff(0x79)}}};export const TELEGRAM_RATE_LIMITS={'requests_per_second':0x1,'flood_wait_handling':_0x27ff(0x83),'batch_size':0x64,'telethon_config':{'flood_sleep_threshold':0x3c}};
@@ -0,0 +1 @@
1
+ function _0x4fc6(_0x4895a2,_0x4fc61f){_0x4895a2=_0x4895a2-0x0;const _0x491f4c=_0x4895();let _0x305ea6=_0x491f4c[_0x4895a2];return _0x305ea6;}import{getEncryptedPinForAPI}from'./pinEncryptionService';function _0x4895(){const _0x4dae83=['⚠️\x20No\x20PIN\x20available\x20for\x20training\x20data','log','IAmXw','error','❌\x20Error\x20adding\x20encrypted\x20PIN\x20to\x20training\x20data:'];_0x4895=function(){return _0x4dae83;};return _0x4895();}export const addEncryptedPinToTrainingData=async _0x52dcb=>{const _0x3f0ce6={'IAmXw':'✅\x20Adding\x20encrypted\x20PIN\x20to\x20training\x20data','aOltl':_0x4fc6(0x0)};try{const _0xf4705b=await getEncryptedPinForAPI();return _0xf4705b?(console[_0x4fc6(0x1)](_0x3f0ce6[_0x4fc6(0x2)]),{..._0x52dcb,'encryptedPin':_0xf4705b,'hasPinData':!![]}):(console[_0x4fc6(0x1)](_0x3f0ce6['aOltl']),{..._0x52dcb,'hasPinData':![]});}catch(_0x559e9c){return console[_0x4fc6(0x3)](_0x4fc6(0x4),_0x559e9c),{..._0x52dcb,'hasPinData':![]};}};
@@ -0,0 +1 @@
1
+ import{getAuthToken,getUserProfile,ensureAuthentication}from'./authService';function _0x4fb7(_0x2bb9b0,_0x4fb745){_0x2bb9b0=_0x2bb9b0-0x0;const _0x312e15=_0x2bb9();let _0x1b268a=_0x312e15[_0x2bb9b0];return _0x1b268a;}import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const getUserIdWithFallbacks=async()=>{const _0x1f5ce3={'vjIac':_0x4fb7(0x0),'GVTmN':_0x4fb7(0x1),'ZzBKQ':_0x4fb7(0x2),'KGbnC':'❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','HZuCa':function(_0x4398ce,_0x1fb5e4){return _0x4398ce===_0x1fb5e4;},'ByuAQ':function(_0x394639,_0x335d24){return _0x394639*_0x335d24;},'mzXPm':_0x4fb7(0x3),'Qrjoz':_0x4fb7(0x4),'nXRdV':'Hi!\x20Nice\x20to\x20meet\x20you.','BvvsE':function(_0x170f8d,_0x7366b5){return _0x170f8d===_0x7366b5;},'GauYe':'qIiTY','hRxBc':function(_0x25f356){return _0x25f356();},'FiWxI':function(_0x572036,_0x1e5677){return _0x572036!==_0x1e5677;},'BnPqP':'fallback_user','vmweE':_0x4fb7(0x5),'SHGiy':_0x4fb7(0x6),'JsEpN':_0x4fb7(0x7),'EUuXc':'⚠️\x20[USER\x20ID]\x20getUserProfile\x20returned\x20invalid/fallback\x20ID:','WEXTT':function(_0x71d47,_0x42ef82){return _0x71d47===_0x42ef82;},'vCjJF':'ybaTe','qOOcc':_0x4fb7(0x8),'qnngV':_0x4fb7(0x9),'nWYxk':function(_0x29890d,_0x296041){return _0x29890d!==_0x296041;},'ZPSwj':_0x4fb7(0xa),'uumtn':function(_0x21b964,_0x2a6ea9){return _0x21b964!==_0x2a6ea9;},'jxiUa':function(_0x36a300,_0x10cbb3){return _0x36a300>_0x10cbb3;},'wEeen':_0x4fb7(0xb),'sCkxl':_0x4fb7(0xc),'UDLkN':_0x4fb7(0xd),'tMMgt':function(_0x3f23f4,_0x333d0c){return _0x3f23f4>_0x333d0c;},'hDOtv':function(_0x3b5335,_0x2768b5){return _0x3b5335!==_0x2768b5;},'wNNbz':_0x4fb7(0xe),'ZWiLU':_0x4fb7(0xf),'xKxAW':function(_0x27e1aa,_0x442bbc){return _0x27e1aa>_0x442bbc;},'VcWAF':function(_0x314f7b,_0x2e57f3){return _0x314f7b!==_0x2e57f3;},'WDBjN':_0x4fb7(0x10),'KFIcv':function(_0x2df466,_0x1bc6a7){return _0x2df466!==_0x1bc6a7;},'SPuRm':_0x4fb7(0x11),'yvuPt':_0x4fb7(0x12),'VLDhq':function(_0x303ae0){return _0x303ae0();},'iBKPj':function(_0x8ec33c,_0x790e72){return _0x8ec33c===_0x790e72;},'TaPSk':_0x4fb7(0x13),'CCCFD':_0x4fb7(0x14),'NQoRc':'❌\x20[USER\x20ID]\x20Error\x20getting\x20user\x20identifier:'};try{if(_0x4fb7(0x15)!==_0x1f5ce3[_0x4fb7(0x16)]){console['log'](_0x4fb7(0x17));try{const _0x3b900b=await _0x1f5ce3[_0x4fb7(0x18)](getUserProfile);if(_0x1f5ce3[_0x4fb7(0x19)](_0x3b900b,null)&&_0x3b900b!==void 0x0&&_0x3b900b['id']&&_0x1f5ce3[_0x4fb7(0x19)](_0x3b900b['id'],_0x1f5ce3[_0x4fb7(0x1a)])){if(_0x1f5ce3['vmweE']===_0x1f5ce3[_0x4fb7(0x1b)])_0x4b6861['warn'](_0x4fb7(0x1c),_0x4100ea);else return console[_0x4fb7(0x1d)]('✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20getUserProfile:',_0x3b900b['id']),_0x3b900b['id'];}else{if(_0x1f5ce3['HZuCa'](_0x1f5ce3['JsEpN'],_0x1f5ce3[_0x4fb7(0x1e)]))console[_0x4fb7(0x1f)](_0x1f5ce3[_0x4fb7(0x20)],_0x1f5ce3[_0x4fb7(0x21)](_0x3b900b,null)||_0x3b900b===void 0x0?void 0x0:_0x3b900b['id']);else{const _0x4e1ef5=_0x495858['connections'][_0x4fb7(0x22)](_0x14c70c);return _0x12411c[_0x4fb7(0x1d)](_0x1f5ce3[_0x4fb7(0x23)],_0x4e1ef5[_0x4fb7(0x24)]),_0x4e1ef5;}}}catch(_0x6f62dd){_0x1f5ce3['WEXTT'](_0x1f5ce3[_0x4fb7(0x25)],_0x1f5ce3['qOOcc'])?(_0x1c960f[_0x4fb7(0x1d)](_0x1f5ce3['GVTmN'],_0x512b4e),_0x352b40=_0x5783ec):console[_0x4fb7(0x1f)](_0x1f5ce3[_0x4fb7(0x26)],_0x6f62dd);}const _0x24946f=await AsyncStorage['getItem'](_0x4fb7(0x27));if(_0x24946f&&_0x1f5ce3[_0x4fb7(0x28)](_0x24946f,_0x1f5ce3[_0x4fb7(0x29)])&&_0x1f5ce3[_0x4fb7(0x2a)](_0x24946f,_0x1f5ce3[_0x4fb7(0x1a)])&&_0x1f5ce3[_0x4fb7(0x2b)](_0x24946f['length'],0xa))return console[_0x4fb7(0x1d)](_0x1f5ce3[_0x4fb7(0x2c)],_0x24946f),_0x24946f;else _0x24946f&&console['warn'](_0x1f5ce3[_0x4fb7(0x2d)],_0x24946f);const _0xb1f562=await AsyncStorage[_0x4fb7(0x2e)](_0x1f5ce3['UDLkN']);if(_0xb1f562&&_0x1f5ce3[_0x4fb7(0x2f)](_0xb1f562[_0x4fb7(0x24)],0x2)&&_0x1f5ce3['hDOtv'](_0xb1f562,_0x1f5ce3[_0x4fb7(0x29)]))return console[_0x4fb7(0x1d)](_0x4fb7(0x30),_0xb1f562),_0xb1f562;else _0xb1f562&&console['warn'](_0x1f5ce3[_0x4fb7(0x31)],_0xb1f562);const _0x2d2e2c=await AsyncStorage[_0x4fb7(0x2e)](_0x1f5ce3[_0x4fb7(0x32)]);if(_0x2d2e2c&&_0x2d2e2c[_0x4fb7(0x33)]('@')&&_0x1f5ce3[_0x4fb7(0x34)](_0x2d2e2c[_0x4fb7(0x24)],0x5))return _0x1f5ce3[_0x4fb7(0x35)](_0x1f5ce3[_0x4fb7(0x36)],_0x1f5ce3['WDBjN'])?(_0x2bc242[_0x4fb7(0x1d)](_0x1f5ce3[_0x4fb7(0x37)],_0x31e9cf),_0x4710e1[_0x4fb7(0x1d)](_0x1f5ce3['KGbnC'],_0x18c323['stringify'](_0x3376e0,_0x2b7a89['getOwnPropertyNames'](_0x2f4f32))),[]):(console[_0x4fb7(0x1d)](_0x4fb7(0x38),_0x2d2e2c),_0x2d2e2c);else{if(_0x2d2e2c){if(_0x1f5ce3[_0x4fb7(0x39)](_0x1f5ce3['SPuRm'],_0x1f5ce3[_0x4fb7(0x3a)])){const _0x13594e=_0xb85c3d[_0x4fb7(0x3b)][_0x4fb7(0x22)](_0x5b5a98);return _0x592803[_0x4fb7(0x1d)](_0x4fb7(0x3c),_0x13594e['length']),_0x13594e;}else console[_0x4fb7(0x1f)](_0x1f5ce3[_0x4fb7(0x3d)],_0x2d2e2c);}}try{const _0x1396fc=await _0x1f5ce3[_0x4fb7(0x3e)](getAuthToken);_0x1396fc&&_0x1f5ce3[_0x4fb7(0x3f)](_0x1396fc[_0x4fb7(0x40)]('.')[_0x4fb7(0x24)],0x3)&&console['log'](_0x1f5ce3[_0x4fb7(0x41)]);}catch(_0x4ded5d){console[_0x4fb7(0x1f)](_0x4fb7(0x1c),_0x4ded5d);}return console[_0x4fb7(0x42)](_0x1f5ce3[_0x4fb7(0x43)]),null;}else{var _0x4e955a,_0x42de0d;return _0xc02589[_0x4fb7(0x1d)](_0x4fb7(0x44),{'id':_0x434abb['id'],'name':_0x5c49d7[_0x4fb7(0x45)],'description':_0x3cce10['description'],'hasPhoto':!!_0x56ca95[_0x4fb7(0x46)],'photoLength':_0x1f5ce3['HZuCa'](_0x4e955a=_0x478d10[_0x4fb7(0x46)],null)||_0x1f5ce3[_0x4fb7(0x47)](_0x4e955a,void 0x0)?void 0x0:_0x4e955a[_0x4fb7(0x24)],'interests':_0x1263f4['interests'],'sharedPassions':_0x422654[_0x4fb7(0x48)],'complementaryQualities':_0x25fb90['complementaryQualities'],'compatibility':_0x37854f[_0x4fb7(0x49)]}),{'id':_0x2d29f6(_0x45e590['id'])||_0x35f9cc(_0x2064ce[_0x4fb7(0x4a)]||'')||_0x1f5ce3['ByuAQ'](_0x538ff7['random'](),0x3e8),'name':_0x293b13['name']||_0x1f5ce3['mzXPm'],'description':_0x69793f[_0x4fb7(0x4b)]||_0x1f5ce3['Qrjoz'],'photo':_0x49724c[_0x4fb7(0x46)]||'','bio':_0x98306a[_0x4fb7(0x4c)]||'','interests':_0x52b1a6[_0x4fb7(0x4d)]||[],'mutualConnections':_0x1beb8e[_0x4fb7(0x4e)]||0x0,'compatibility':_0xc67ad[_0x4fb7(0x49)]||0x0,'conversationStarters':_0x4bce9b[_0x4fb7(0x4f)]||[_0x1f5ce3[_0x4fb7(0x50)]],'sharedPassions':_0x632fee['sharedPassions']||[],'complementaryQualities':_0x1a0eed[_0x4fb7(0x51)]||[],'meaningfulCoincidences':_0x28d13f['meaningfulCoincidences']||[],'mutualConnectionsList':(_0x1f5ce3['BvvsE'](_0x42de0d=_0x536594[_0x4fb7(0x52)],null)||_0x1f5ce3[_0x4fb7(0x47)](_0x42de0d,void 0x0)?void 0x0:_0x42de0d['map'](_0x36e6bb=>({'name':_0x36e6bb[_0x4fb7(0x45)],'photo':_0x36e6bb[_0x4fb7(0x46)],'context':_0x36e6bb[_0x4fb7(0x53)]})))||[]};}}catch(_0x411dc8){return console[_0x4fb7(0x42)](_0x1f5ce3['NQoRc'],_0x411dc8),null;}};import{PERSONA_IMAGES}from'../utils/assetRegistry';const samImage=PERSONA_IMAGES['level1'],anandImage=PERSONA_IMAGES['level2'],chrisImage=PERSONA_IMAGES['level3'],katieImage=PERSONA_IMAGES[_0x4fb7(0x54)],yanniImage=PERSONA_IMAGES['level5'],API_BASE_URL=API_CONFIG[_0x4fb7(0x55)],transformAPIConnection=_0x3793ce=>{const _0x9a0f61={'xzksH':_0x4fb7(0x44),'vrMds':function(_0x1e38e3,_0x2fc644){return _0x1e38e3===_0x2fc644;},'MDxrW':function(_0x2bd18d,_0x201fb4){return _0x2bd18d===_0x201fb4;},'ykFWm':function(_0x55fcc5,_0x1009c4){return _0x55fcc5(_0x1009c4);},'uazAT':function(_0x117942,_0x4ee15f){return _0x117942*_0x4ee15f;},'ypkxt':'Unknown\x20User','UOZWU':_0x4fb7(0x4),'WVbXT':_0x4fb7(0x56)};var _0x398197,_0x1392ca;return console[_0x4fb7(0x1d)](_0x9a0f61[_0x4fb7(0x57)],{'id':_0x3793ce['id'],'name':_0x3793ce[_0x4fb7(0x45)],'description':_0x3793ce[_0x4fb7(0x4b)],'hasPhoto':!!_0x3793ce[_0x4fb7(0x46)],'photoLength':_0x9a0f61[_0x4fb7(0x58)](_0x398197=_0x3793ce[_0x4fb7(0x46)],null)||_0x9a0f61[_0x4fb7(0x59)](_0x398197,void 0x0)?void 0x0:_0x398197[_0x4fb7(0x24)],'interests':_0x3793ce[_0x4fb7(0x4d)],'sharedPassions':_0x3793ce[_0x4fb7(0x48)],'complementaryQualities':_0x3793ce['complementaryQualities'],'compatibility':_0x3793ce['compatibility']}),{'id':parseInt(_0x3793ce['id'])||_0x9a0f61[_0x4fb7(0x5a)](parseInt,_0x3793ce[_0x4fb7(0x4a)]||'')||_0x9a0f61[_0x4fb7(0x5b)](Math['random'](),0x3e8),'name':_0x3793ce[_0x4fb7(0x45)]||_0x9a0f61[_0x4fb7(0x5c)],'description':_0x3793ce[_0x4fb7(0x4b)]||_0x9a0f61[_0x4fb7(0x5d)],'photo':_0x3793ce[_0x4fb7(0x46)]||'','bio':_0x3793ce[_0x4fb7(0x4c)]||'','interests':_0x3793ce[_0x4fb7(0x4d)]||[],'mutualConnections':_0x3793ce['mutualConnections']||0x0,'compatibility':_0x3793ce['compatibility']||0x0,'conversationStarters':_0x3793ce[_0x4fb7(0x4f)]||[_0x9a0f61[_0x4fb7(0x5e)]],'sharedPassions':_0x3793ce[_0x4fb7(0x48)]||[],'complementaryQualities':_0x3793ce[_0x4fb7(0x51)]||[],'meaningfulCoincidences':_0x3793ce[_0x4fb7(0x5f)]||[],'mutualConnectionsList':(_0x9a0f61[_0x4fb7(0x58)](_0x1392ca=_0x3793ce['mutualConnectionsList'],null)||_0x9a0f61['MDxrW'](_0x1392ca,void 0x0)?void 0x0:_0x1392ca[_0x4fb7(0x22)](_0x1d50a9=>({'name':_0x1d50a9[_0x4fb7(0x45)],'photo':_0x1d50a9[_0x4fb7(0x46)],'context':_0x1d50a9['context']})))||[]};};export const getUserConnectionsByUsername=async _0x571b39=>{const _0x54b2e4={'vNtYj':_0x4fb7(0x60),'sMjph':function(_0x141209,_0x202e59){return _0x141209!==_0x202e59;},'axVSO':_0x4fb7(0x61),'CdEha':_0x4fb7(0x62),'ZdhEN':_0x4fb7(0x63),'tKsBZ':_0x4fb7(0x64),'DwdTI':_0x4fb7(0x65),'esMIB':_0x4fb7(0x66),'UxQVT':_0x4fb7(0x67),'kasZK':function(_0x1560dd,_0x2cd76c){return _0x1560dd===_0x2cd76c;},'RKlSx':function(_0x5e3422,_0x430baa){return _0x5e3422===_0x430baa;},'BcrQp':function(_0x500f22,_0x48bd49){return _0x500f22!==_0x48bd49;},'ThSeC':function(_0x4b0fe4,_0x89cb93){return _0x4b0fe4>_0x89cb93;},'ijmll':_0x4fb7(0x0),'HjUnU':_0x4fb7(0x68),'QHZgZ':'❌\x20[NETWORK\x20ERROR]\x20Full\x20error\x20details:'};try{var _0x58099c,_0x577e0f;console[_0x4fb7(0x1d)](_0x4fb7(0x69),_0x571b39);const _0x374546=await getAuthToken();if(!_0x374546)return _0x54b2e4[_0x4fb7(0x6a)](_0x54b2e4[_0x4fb7(0x6b)],_0x54b2e4[_0x4fb7(0x6b)])?(_0x13606a[_0x4fb7(0x1f)](_0x4fb7(0x6c)),_0x4bfe9a['warn']('ℹ️\x20Consuming\x20apps\x20should\x20call\x20/enoch/users/{id}/profile-picture/base64\x20directly'),{'success':![],'error':_0x54b2e4['vNtYj']}):(console[_0x4fb7(0x1f)](_0x54b2e4[_0x4fb7(0x6d)]),console[_0x4fb7(0x1f)](_0x54b2e4['ZdhEN']),[]);console[_0x4fb7(0x1d)](_0x54b2e4[_0x4fb7(0x6e)],_0x374546['substring'](0x0,0x14)+_0x4fb7(0x6f));const _0x3c702b={'success':![],'message':_0x54b2e4[_0x4fb7(0x70)],'connections':[],'source':_0x54b2e4[_0x4fb7(0x71)]};console[_0x4fb7(0x1d)](_0x54b2e4['UxQVT'],{'success':_0x3c702b[_0x4fb7(0x72)],'connectionsCount':(_0x54b2e4[_0x4fb7(0x73)](_0x58099c=_0x3c702b[_0x4fb7(0x3b)],null)||_0x54b2e4[_0x4fb7(0x74)](_0x58099c,void 0x0)?void 0x0:_0x58099c['length'])||0x0,'source':_0x3c702b[_0x4fb7(0x75)],'firstConnection':_0x54b2e4[_0x4fb7(0x6a)](_0x577e0f=_0x3c702b[_0x4fb7(0x3b)],null)&&_0x54b2e4[_0x4fb7(0x76)](_0x577e0f,void 0x0)&&_0x577e0f[0x0]?{'id':_0x3c702b[_0x4fb7(0x3b)][0x0]['id'],'name':_0x3c702b[_0x4fb7(0x3b)][0x0][_0x4fb7(0x45)],'description':_0x3c702b['connections'][0x0][_0x4fb7(0x4b)]}:null});if(_0x3c702b[_0x4fb7(0x72)]&&_0x3c702b[_0x4fb7(0x3b)]&&_0x54b2e4[_0x4fb7(0x77)](_0x3c702b[_0x4fb7(0x3b)][_0x4fb7(0x24)],0x0)){const _0x4c7397=_0x3c702b[_0x4fb7(0x3b)][_0x4fb7(0x22)](transformAPIConnection);return console[_0x4fb7(0x1d)](_0x54b2e4[_0x4fb7(0x78)],_0x4c7397[_0x4fb7(0x24)]),_0x4c7397;}return[];}catch(_0x4632a0){return console[_0x4fb7(0x1d)](_0x54b2e4[_0x4fb7(0x79)],_0x4632a0),console[_0x4fb7(0x1d)](_0x54b2e4[_0x4fb7(0x7a)],JSON[_0x4fb7(0x7b)](_0x4632a0,Object[_0x4fb7(0x7c)](_0x4632a0))),[];}};export const getUserConnectionsByUserId=async _0x31f4b9=>{const _0x18cb91={'qVhYz':'⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','kWzGm':_0x4fb7(0x7d),'oFCqN':_0x4fb7(0x7e),'BhKuG':function(_0x20bc69){return _0x20bc69();},'MKnqn':'⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections\x20request','nJFey':_0x4fb7(0x64),'GHSaQ':'API\x20function\x20not\x20available','UytKi':_0x4fb7(0x7f),'xWpZl':function(_0x21dfbd,_0x4cafa7){return _0x21dfbd===_0x4cafa7;},'hzKDv':function(_0xc5eec9,_0x2a9373){return _0xc5eec9!==_0x2a9373;},'mmAqa':function(_0x17e048,_0x2f5217){return _0x17e048>_0x2f5217;},'yUlKZ':function(_0x158a46,_0x4920ee){return _0x158a46!==_0x4920ee;},'kpQAe':'kvmwC','eeiLX':'🔄\x20Transformed\x20connections\x20by\x20userId:','FZZsg':'❌\x20Error\x20fetching\x20connections\x20by\x20userId:','FDtrg':_0x4fb7(0x80)};try{if(_0x18cb91[_0x4fb7(0x81)]!==_0x4fb7(0x7d))_0x4630d5[_0x4fb7(0x1f)](_0x18cb91[_0x4fb7(0x82)],_0x115ee1);else{var _0x374df5,_0x52f6ec;console['log'](_0x18cb91[_0x4fb7(0x83)],_0x31f4b9);const _0xaaf5c3=await _0x18cb91['BhKuG'](getAuthToken);if(!_0xaaf5c3)return console[_0x4fb7(0x1f)](_0x18cb91[_0x4fb7(0x84)]),[];console[_0x4fb7(0x1d)](_0x18cb91[_0x4fb7(0x85)],_0xaaf5c3[_0x4fb7(0x86)](0x0,0x14)+'...');const _0x3b825a={'success':![],'message':_0x18cb91[_0x4fb7(0x87)],'connections':[],'source':_0x4fb7(0x66)};console[_0x4fb7(0x1d)](_0x18cb91[_0x4fb7(0x88)],{'success':_0x3b825a[_0x4fb7(0x72)],'connectionsCount':((_0x374df5=_0x3b825a['connections'])===null||_0x18cb91[_0x4fb7(0x89)](_0x374df5,void 0x0)?void 0x0:_0x374df5[_0x4fb7(0x24)])||0x0,'source':_0x3b825a['source'],'firstConnection':_0x18cb91[_0x4fb7(0x8a)](_0x52f6ec=_0x3b825a['connections'],null)&&_0x18cb91['hzKDv'](_0x52f6ec,void 0x0)&&_0x52f6ec[0x0]?{'id':_0x3b825a['connections'][0x0]['id'],'name':_0x3b825a[_0x4fb7(0x3b)][0x0][_0x4fb7(0x45)],'description':_0x3b825a[_0x4fb7(0x3b)][0x0][_0x4fb7(0x4b)]}:null});if(_0x3b825a[_0x4fb7(0x72)]&&_0x3b825a[_0x4fb7(0x3b)]&&_0x18cb91[_0x4fb7(0x8b)](_0x3b825a[_0x4fb7(0x3b)][_0x4fb7(0x24)],0x0)){if(_0x18cb91[_0x4fb7(0x8c)](_0x18cb91[_0x4fb7(0x8d)],_0x18cb91[_0x4fb7(0x8d)]))return _0x365166['log'](_0x4fb7(0x8e),_0xefacda['length']),_0xcc614;else{const _0x513faf=_0x3b825a['connections'][_0x4fb7(0x22)](transformAPIConnection);return console[_0x4fb7(0x1d)](_0x18cb91[_0x4fb7(0x8f)],_0x513faf['length']),_0x513faf;}}return[];}}catch(_0x2b4091){return console['log'](_0x18cb91[_0x4fb7(0x90)],_0x2b4091),console[_0x4fb7(0x1d)](_0x18cb91[_0x4fb7(0x91)],JSON[_0x4fb7(0x7b)](_0x2b4091,Object['getOwnPropertyNames'](_0x2b4091))),[];}};export const getUserConnections=async()=>{const _0x1a8701={'CVttO':_0x4fb7(0x92),'IVFDJ':_0x4fb7(0x30),'JhboC':_0x4fb7(0x93),'hNeEd':function(_0x28600e,_0x22e08f){return _0x28600e(_0x22e08f);},'TvRDI':_0x4fb7(0x94),'nCvyM':_0x4fb7(0x95),'DSSrK':_0x4fb7(0x27),'PTDxC':_0x4fb7(0x96),'PnEmR':function(_0x3e4904){return _0x3e4904();},'rpkCP':function(_0x49f998,_0x2011bb){return _0x49f998!==_0x2011bb;},'nMmNO':function(_0x2f687f,_0x5d2153){return _0x2f687f!==_0x5d2153;},'YpkXp':function(_0x2e88f6,_0x2a335c){return _0x2e88f6===_0x2a335c;},'BTzup':function(_0x47f783,_0x62ef4b){return _0x47f783===_0x62ef4b;},'uywKB':function(_0x382a26,_0x299144){return _0x382a26===_0x299144;},'dTIWg':_0x4fb7(0x97),'ePxSC':function(_0x12a5b9,_0x14f630){return _0x12a5b9&&_0x14f630;},'ULBAy':function(_0x23a671,_0x38f83e){return _0x23a671===_0x38f83e;},'FSuUx':_0x4fb7(0x98),'bQTyI':'🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20user\x20ID\x20as\x20fallback:','ezUiT':_0x4fb7(0x99),'YwOyh':function(_0x46b6f4,_0x290eb5){return _0x46b6f4>_0x290eb5;},'eZWou':_0x4fb7(0x9a),'ViiHm':function(_0x214232,_0x2aec77){return _0x214232!==_0x2aec77;},'ontMS':_0x4fb7(0x9b),'MIrgT':_0x4fb7(0x9c),'lNFee':function(_0x27e502,_0x114969){return _0x27e502>_0x114969;},'daCsY':_0x4fb7(0x9d),'qQNOx':_0x4fb7(0x9e),'ykNte':function(_0x5233c2,_0x38a557){return _0x5233c2!==_0x38a557;},'rXCiF':_0x4fb7(0x9f)};try{await _0x1a8701['hNeEd'](ensureAuthentication,_0x1a8701[_0x4fb7(0xa0)]),console[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xa1)]);const _0x17af0b=await AsyncStorage[_0x4fb7(0x2e)](_0x4fb7(0xd)),_0x3116e0=await AsyncStorage[_0x4fb7(0x2e)](_0x4fb7(0xf)),_0xa36511=await AsyncStorage[_0x4fb7(0x2e)](_0x1a8701[_0x4fb7(0xa2)]),_0x53fb05=await AsyncStorage[_0x4fb7(0x2e)]('auth_token');console['log'](_0x1a8701[_0x4fb7(0xa3)],{'storedUsername':_0x17af0b,'storedEmail':_0x3116e0,'storedUserId':_0xa36511,'hasAuthToken':!!_0x53fb05,'authTokenPreview':_0x53fb05?_0x53fb05['substring'](0x0,0x14)+'...':_0x4fb7(0xa4)});const _0x275498=await _0x1a8701[_0x4fb7(0xa5)](getUserProfile);console[_0x4fb7(0x1d)](_0x4fb7(0xa6),{'hasId':!!(_0x1a8701[_0x4fb7(0xa7)](_0x275498,null)&&_0x1a8701['nMmNO'](_0x275498,void 0x0)&&_0x275498['id']),'hasEmail':!!(_0x1a8701[_0x4fb7(0xa7)](_0x275498,null)&&_0x1a8701['nMmNO'](_0x275498,void 0x0)&&_0x275498[_0x4fb7(0xa8)]),'email':_0x275498===null||_0x1a8701[_0x4fb7(0xa9)](_0x275498,void 0x0)?void 0x0:_0x275498[_0x4fb7(0xa8)],'id':_0x275498===null||_0x1a8701[_0x4fb7(0xa9)](_0x275498,void 0x0)?void 0x0:_0x275498['id']});let _0x1e76bb=_0x1a8701[_0x4fb7(0xaa)](_0x275498,null)||_0x275498===void 0x0?void 0x0:_0x275498[_0x4fb7(0xa8)],_0x16fe56=_0x1a8701[_0x4fb7(0xab)](_0x275498,null)||_0x1a8701[_0x4fb7(0xa9)](_0x275498,void 0x0)?void 0x0:_0x275498['id'];!_0x1e76bb&&_0x17af0b&&(console['log'](_0x1a8701[_0x4fb7(0xac)],_0x17af0b),_0x1e76bb=_0x17af0b);_0x1a8701['ePxSC'](!_0x1e76bb,_0x3116e0)&&(console[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xad)],_0x3116e0),_0x1e76bb=_0x3116e0);if(_0x1a8701[_0x4fb7(0xae)](!_0x16fe56,_0xa36511)){if(_0x1a8701[_0x4fb7(0xaf)](_0x1a8701[_0x4fb7(0xb0)],_0x4fb7(0x98)))console[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xb1)],_0xa36511),_0x16fe56=_0xa36511;else return _0x557ce6[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xb2)],_0x48708e[_0x4fb7(0x24)]),_0x1a3540;}console['log'](_0x4fb7(0xb3),{'userEmail':_0x1e76bb,'userId':_0x16fe56,'willTryEmail':!!_0x1e76bb,'willTryUserId':!!_0x16fe56});if(_0x1e76bb){console['log'](_0x1a8701['ezUiT'],_0x1e76bb);const _0x2c80d1=await _0x1a8701[_0x4fb7(0xb4)](getUserConnectionsByUsername,_0x1e76bb);if(_0x1a8701[_0x4fb7(0xb5)](_0x2c80d1[_0x4fb7(0x24)],0x0))return _0x1a8701[_0x4fb7(0xaf)](_0x1a8701[_0x4fb7(0xb6)],_0x4fb7(0x9a))?(console[_0x4fb7(0x1d)](_0x4fb7(0x8e),_0x2c80d1['length']),_0x2c80d1):(_0x36b493['log'](_0x1a8701[_0x4fb7(0xb7)],_0x21f2f9),_0x56e578);console['log'](_0x4fb7(0xb8));}if(_0x16fe56){if(_0x1a8701[_0x4fb7(0xb9)](_0x1a8701[_0x4fb7(0xba)],_0x4fb7(0x9b)))_0x18df9c[_0x4fb7(0x1d)](_0x1a8701['JhboC'],_0x3cb93a),_0x2e8e35=_0x2968fe;else{console['log'](_0x1a8701[_0x4fb7(0xbb)],_0x16fe56);const _0xfdf0ca=await _0x1a8701['hNeEd'](getUserConnectionsByUserId,_0x16fe56);if(_0x1a8701[_0x4fb7(0xbc)](_0xfdf0ca[_0x4fb7(0x24)],0x0))return console[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xb2)],_0xfdf0ca['length']),_0xfdf0ca;console[_0x4fb7(0x1d)](_0x1a8701[_0x4fb7(0xbd)]);}}return console['log'](_0x1a8701[_0x4fb7(0xbe)]),[];}catch(_0x4fa0af){return _0x1a8701['ykNte'](_0x4fb7(0x9f),_0x1a8701[_0x4fb7(0xbf)])?(_0xc1a155[_0x4fb7(0x42)](_0x4fb7(0xc0),_0x309efc),null):(console[_0x4fb7(0x1d)](_0x4fb7(0xc1),_0x4fa0af),[]);}};function _0x2bb9(){const _0x13f800=['🔄\x20Transformed\x20connections\x20by\x20username:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20user\x20ID\x20as\x20fallback:','❌\x20Error\x20fetching\x20connections\x20by\x20userId:','Unknown\x20User','Looking\x20to\x20connect','cDFvC','EBOnh','Wnnxo','iKIdi','⚠️\x20[USER\x20ID]\x20getUserProfile\x20failed:','marker','✅\x20[USER\x20ID]\x20Got\x20user\x20ID\x20from\x20AsyncStorage:','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20user\x20ID\x20found:','onairos_username','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20username\x20found:','user_email','XTCTU','IskXD','⚠️\x20[USER\x20ID]\x20Invalid\x20stored\x20email\x20found:','🔍\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','eKUgP','GauYe','🔍\x20[USER\x20ID]\x20Attempting\x20to\x20get\x20user\x20identifier\x20with\x20multiple\x20methods...','hRxBc','FiWxI','BnPqP','SHGiy','⚠️\x20[USER\x20ID]\x20JWT\x20token\x20access\x20failed:','log','JsEpN','warn','EUuXc','BvvsE','map','vjIac','length','vCjJF','qnngV','user_id','nWYxk','ZPSwj','uumtn','jxiUa','wEeen','sCkxl','getItem','tMMgt','✅\x20[USER\x20ID]\x20Got\x20username\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','wNNbz','ZWiLU','includes','xKxAW','VcWAF','WDBjN','ZzBKQ','✅\x20[USER\x20ID]\x20Got\x20email\x20from\x20AsyncStorage\x20(backend\x20supports\x20usernames):','KFIcv','SPuRm','connections','🔄\x20Transformed\x20connections\x20by\x20userId:','yvuPt','VLDhq','iBKPj','split','TaPSk','error','CCCFD','🔄\x20Transforming\x20API\x20connection:','name','photo','HZuCa','sharedPassions','compatibility','_id','description','bio','interests','mutualConnections','conversationStarters','nXRdV','complementaryQualities','mutualConnectionsList','context','level4','BASE_URL','Hi!\x20Nice\x20to\x20meet\x20you.','xzksH','vrMds','MDxrW','ykFWm','uazAT','ypkxt','UOZWU','WVbXT','meaningfulCoincidences','uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.','wYOjK','⚠️\x20[CONNECTIONS\x20API]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20request','⚠️\x20[CONNECTIONS\x20API]\x20This\x20may\x20result\x20in\x20limited\x20or\x20cached\x20data\x20from\x20backend','✅\x20[CONNECTIONS\x20API]\x20Using\x20authenticated\x20request\x20with\x20token:','API\x20function\x20not\x20available','mock','✅\x20API\x20connections\x20fetched\x20by\x20username:','❌\x20Error\x20fetching\x20connections\x20by\x20username:','🔍\x20Fetching\x20connections\x20for\x20username:','sMjph','axVSO','⚠️\x20[DEPRECATED]\x20uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK','CdEha','tKsBZ','...','DwdTI','esMIB','success','kasZK','RKlSx','source','BcrQp','ThSeC','ijmll','HjUnU','QHZgZ','stringify','getOwnPropertyNames','ZgbKi','🔍\x20Fetching\x20connections\x20for\x20userId:','✅\x20API\x20connections\x20fetched\x20by\x20userId:','❌\x20[NETWORK\x20ERROR\x20FALLBACK]\x20Full\x20error\x20details:','kWzGm','qVhYz','oFCqN','MKnqn','nJFey','substring','GHSaQ','UytKi','xWpZl','hzKDv','mmAqa','yUlKZ','kpQAe','✅\x20Successfully\x20got\x20connections\x20by\x20email:','eeiLX','FZZsg','FDtrg','✅\x20Successfully\x20got\x20connections\x20by\x20user\x20ID:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20email\x20as\x20fallback:','USER_CONNECTIONS','🔍\x20[USER\x20DEBUG]\x20Checking\x20all\x20available\x20user\x20data\x20sources...','🔍\x20[USER\x20DEBUG]\x20AsyncStorage\x20data:','🔄\x20[USER\x20DEBUG]\x20Using\x20stored\x20username\x20as\x20email\x20fallback:','uPFOe','🎯\x20PRIORITY:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20email\x20(working\x20endpoint):','lHszs','yItsR','🎯\x20FALLBACK:\x20Attempting\x20to\x20fetch\x20connections\x20by\x20user\x20ID:','⚠️\x20No\x20connections\x20found\x20by\x20user\x20ID','⚠️\x20No\x20user\x20identifier\x20available\x20or\x20no\x20connections\x20found','yEtnU','TvRDI','nCvyM','DSSrK','PTDxC','none','PnEmR','🎯\x20getUserConnections\x20-\x20User\x20profile:','rpkCP','email','YpkXp','BTzup','uywKB','dTIWg','JhboC','ePxSC','ULBAy','FSuUx','bQTyI','CVttO','🎯\x20[USER\x20DEBUG]\x20Final\x20user\x20identifiers\x20to\x20use:','hNeEd','YwOyh','eZWou','IVFDJ','⚠️\x20No\x20connections\x20found\x20by\x20email,\x20trying\x20user\x20ID...','ViiHm','ontMS','MIrgT','lNFee','daCsY','qQNOx','rXCiF','❌\x20[USER\x20ID]\x20Error\x20getting\x20user\x20identifier:','❌\x20Error\x20in\x20getUserConnections:','ℹ️\x20Consuming\x20apps\x20should\x20call\x20/enoch/users/{id}/profile-picture/base64\x20directly','lymWB'];_0x2bb9=function(){return _0x13f800;};return _0x2bb9();}export const uploadProfilePicture=async(_0x28ee07,_0x4755eb)=>{const _0x52d3e4={'lymWB':'uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK.\x20Consuming\x20apps\x20should\x20call\x20the\x20Enoch\x20API\x20directly.'};return console['warn']('⚠️\x20[DEPRECATED]\x20uploadProfilePicture\x20has\x20been\x20removed\x20from\x20SDK'),console[_0x4fb7(0x1f)](_0x4fb7(0xc2)),{'success':![],'error':_0x52d3e4[_0x4fb7(0xc3)]};};
@@ -0,0 +1 @@
1
+ import{GoogleSignin}from'@react-native-google-signin/google-signin';function _0x28c5(){const _0x3e65f7=['1030678346906-lovkuds2ouqmoc8eu5qpo98spa6edv4o.apps.googleusercontent.com','https://www.googleapis.com/auth/youtube.readonly','openid','profile','configure','dgtgT','KyQmf','❌\x20[MIGRATION\x20WARNING]\x20Error\x20checking\x20migration\x20warning\x20status:','❌\x20Error\x20getting\x20YouTube\x20connection\x20status:','none','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?','Upgrade\x20Now','default','🔄\x20User\x20using\x20temporary\x20mode\x20-\x20connection\x20working\x20correctly','⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','cusJa','pStLV','❌\x20Error\x20checking\x20YouTube\x20migration\x20status:','MoqNv','UkfuT','lmKBW','BASE_URL','/youtube/validate-connection/','json','success','validation','bAaCM','isTemporaryMode','temporaryMode','JhOiD','enabled','nzjhb','message','ksNvn','needsReconnection','log','🔍\x20YouTube\x20migration\x20check:','KwsWf','Titjq','rjAqC','🔧\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token','HVaXc','syzCG','error','MSXSj','✅\x20YouTube\x20connection\x20fully\x20working\x20with\x20refresh\x20tokens','LEvtN','PxZWZ','UdWZO','IOLkA','vjNUR','cancel','btTRi','HQxYs','pojOJ','⚠️\x20YouTube\x20connected\x20but\x20needs\x20migration','limited','temporary\x20access\x20token\x20mode','🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','✅\x20Training\x20will\x20work,\x20but\x20connection\x20expires\x20in\x20~1\x20hour','temporary','full','XtphX','vAVnF','❌\x20No\x20YouTube\x20connection\x20found','WTOIn','Svntr','mRiHF','TleOY','includes','UdECY','✅\x20YouTube\x20connected\x20with\x20refresh\x20tokens','riewr','xzUpW','cwUqV','izkUX','CHSUF','SxIbG','EFrjl','URxck','alert','pHMAw','Skip\x20for\x20Now','OurJs','uDDes','jrDSK','YouTube\x20Upgraded!\x20✅','Your\x20YouTube\x20connection\x20has\x20been\x20upgraded\x20successfully.\x20Training\x20will\x20now\x20work\x20seamlessly\x20without\x20interruptions.','Great!','🔄\x20Starting\x20YouTube\x20migration\x20for\x20user:','✅\x20Signed\x20out\x20-\x20consent\x20cache\x20cleared','wxOwv','AiYHR','None','Server\x20auth\x20code\x20from\x20sign-in','Current\x20user\x20server\x20auth\x20code','🔍\x20Token\x20Analysis:','Available','\x20\x20\x201.\x20offlineAccess:\x20true\x20is\x20missing\x20from\x20configuration','\x20\x20\x202.\x20forceCodeForRefreshToken:\x20true\x20is\x20missing','\x20\x20\x203.\x20User\x20did\x20not\x20grant\x20offline\x20access\x20permission','✅\x20Got\x20refresh\x20token\x20after\x20consent:','🔑\x20Refresh\x20token\x20source:','auth_token','RKMOQ','⚠️\x20No\x20authentication\x20token\x20found\x20for\x20YouTube\x20migration','migration_token_placeholder','youtube','YouTube\x20Channel','📤\x20Sending\x20migration\x20payload\x20to\x20backend...','fXklQ','BLdul','❌\x20Backend\x20rejected\x20YouTube\x20migration:','❌\x20YouTube\x20migration\x20failed:','Unknown\x20error','wEuGv','JWvZq','signOut','fsShZ','onFgo','xSDmJ','rqTtW','getTokens','accessToken','nJMei','wanEg','SKFlC','HdxcP','hasRefreshToken','BDAPb','OSfct','kPHbG','qULOE','Ydloi','cKFse','naQTZ','getCurrentUser','serverAuthCode','gsxyb','NZogP','uxTeF','xkmIT','QyebK','hpola','user','utFxl','email','RzVdH','eyYOF','rccbN','OLvyj','UKEJq','mPZMI','substring','...','WSGXh','getItem','enoch_token','ZKrud','WxWIq','warn','iaXFM','ifezW','JkguS','name','vUztM','idToken','qXygu','keZRx','IbVzv','/youtube/native-auth','your-api-key','stringify','hVFFK','LxVHA','qZbmr','KZNix','JoILX','gHPCX','pVZIr','XXCrK','IAlWe','gexlF','SLaQM','xRmAc','IJqYl','IgNca','tzwdX','❌\x20Failed\x20to\x20track\x20migration\x20attempt:','aweKH','ROTmP','DEjeF','/youtube/migration-status','HHEJG','iwwOg','johRA','🔍\x20[MIGRATION\x20WARNING]\x20Checking\x20if\x20user\x20should\x20see\x20migration\x20warning:','📊\x20[MIGRATION\x20WARNING]\x20Status\x20check:','qoWtF','⚠️\x20[MIGRATION\x20WARNING]\x20SHOW\x20WARNING\x20-\x20genuinely\x20old\x20connection\x20needs\x20update','✅\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20connection\x20is\x20working\x20properly','kwyTD','TLHNa','scjbA','NcuUF','JhTdN','connectedAt','YdjBg','🚫\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20user\x20is\x20in\x20temporary\x20mode\x20(working\x20correctly)','cVSIH','wrIyI','zZovI','🔄\x20Checking\x20YouTube\x20connection\x20for\x20user:','✅\x20[MIGRATION]\x20User\x20can\x20proceed\x20with\x20training\x20normally','✅\x20[MIGRATION]\x20YouTube\x20connection\x20working\x20properly\x20-\x20no\x20migration\x20needed','🔧\x20[MIGRATION]\x20User\x20needs\x20YouTube\x20migration\x20for\x20refresh\x20token\x20(genuinely\x20old\x20connection)','LWqmi','iMyHd','❌\x20Error\x20in\x20YouTube\x20connection\x20check:','HRFAH','shJES','OWBoJ','batbx','VipiO','VhBQR','XxUDV','Snhow','ZCJxz','dCfeY','SvjnM','YmCLe','JHaxU','HGVxM'];_0x28c5=function(){return _0x3e65f7;};return _0x28c5();}import{Alert}from'react-native';import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const WEB_CLIENT_ID=_0xc77f(0x0),IOS_CLIENT_ID=_0xc77f(0x0),configureGoogleSignInForRefreshTokens=()=>{const _0x5f0447={'dgtgT':_0xc77f(0x1),'KyQmf':_0xc77f(0x2),'UZBKh':_0xc77f(0x3)};GoogleSignin[_0xc77f(0x4)]({'webClientId':WEB_CLIENT_ID,'iosClientId':IOS_CLIENT_ID,'offlineAccess':!![],'forceCodeForRefreshToken':!![],'scopes':[_0x5f0447[_0xc77f(0x5)],_0x5f0447[_0xc77f(0x6)],_0x5f0447['UZBKh'],'email'],'hostedDomain':'','accountName':''});};export const checkYouTubeMigrationNeeded=async _0xe3023a=>{const _0x35d621={'MSXSj':_0xc77f(0x7),'LEvtN':_0xc77f(0x8),'PxZWZ':_0xc77f(0x9),'UdWZO':function(_0x6cdb07,_0x40e59f){return _0x6cdb07 instanceof _0x40e59f;},'lmKBW':function(_0x5eb7f4,_0x45ea7f){return _0x5eb7f4(_0x45ea7f);},'kvynQ':_0xc77f(0xa),'OCWmQ':_0xc77f(0xb),'vjNUR':'Skip\x20for\x20Now','btTRi':_0xc77f(0xc),'HQxYs':_0xc77f(0xd),'MoqNv':function(_0x56dd92,_0x5e9cc2){return _0x56dd92===_0x5e9cc2;},'UkfuT':'OMYdN','bAaCM':function(_0x3f40e6,_0x3b0889){return _0x3f40e6===_0x3b0889;},'JhOiD':function(_0x2a5609,_0x36b7f4){return _0x2a5609===_0x36b7f4;},'nzjhb':function(_0x5765a9,_0x17441e){return _0x5765a9===_0x17441e;},'ksNvn':'temporary\x20access\x20token\x20mode','KwsWf':function(_0x523ee9,_0x2a1d48){return _0x523ee9===_0x2a1d48;},'Titjq':_0xc77f(0xe),'rjAqC':_0xc77f(0xf),'syzCG':_0xc77f(0x10),'IOLkA':'PkyeL','azDus':_0xc77f(0x11),'pojOJ':_0xc77f(0x12)};try{if(_0x35d621[_0xc77f(0x13)](_0x35d621[_0xc77f(0x14)],_0x35d621[_0xc77f(0x14)])){const _0x3ce071=await _0x35d621[_0xc77f(0x15)](fetch,API_CONFIG[_0xc77f(0x16)]+_0xc77f(0x17)+_0xe3023a),_0xdff322=await _0x3ce071[_0xc77f(0x18)]();if(_0xdff322[_0xc77f(0x19)]&&_0xdff322[_0xc77f(0x1a)]){var _0x320dbe,_0x1b8216,_0x345aea;const _0x5d3772=_0x35d621[_0xc77f(0x13)](_0x35d621[_0xc77f(0x13)](_0x320dbe=_0xdff322['validation'],null)||_0x35d621[_0xc77f(0x1b)](_0x320dbe,void 0x0)?void 0x0:_0x320dbe[_0xc77f(0x1c)],!![])||_0x35d621[_0xc77f(0x13)](_0x35d621[_0xc77f(0x1b)](_0x1b8216=_0xdff322[_0xc77f(0x1d)],null)||_0x35d621[_0xc77f(0x1e)](_0x1b8216,void 0x0)?void 0x0:_0x1b8216[_0xc77f(0x1f)],!![])||_0x35d621[_0xc77f(0x20)](_0xdff322[_0xc77f(0x1c)],!![])||_0xdff322['message']&&_0xdff322[_0xc77f(0x21)]['includes'](_0x35d621[_0xc77f(0x22)]),_0x429b6f=_0xdff322['validation'][_0xc77f(0x23)],_0x3d18c8=_0xdff322[_0xc77f(0x1a)]['hasRefreshToken'];console[_0xc77f(0x24)](_0xc77f(0x25),{'username':_0xe3023a,'needsReconnection':_0x429b6f,'hasRefreshToken':_0x3d18c8,'isTemporaryMode':_0x5d3772,'temporaryModeEnabled':_0x35d621[_0xc77f(0x26)](_0x345aea=_0xdff322[_0xc77f(0x1d)],null)||_0x35d621[_0xc77f(0x1b)](_0x345aea,void 0x0)?void 0x0:_0x345aea[_0xc77f(0x1f)],'message':_0xdff322[_0xc77f(0x21)]});if(_0x5d3772)return console[_0xc77f(0x24)](_0x35d621[_0xc77f(0x27)]),console['log'](_0x35d621[_0xc77f(0x28)]),![];else return _0x429b6f?(console[_0xc77f(0x24)](_0xc77f(0x29)),!![]):_0xc77f(0x2a)===_0x35d621[_0xc77f(0x2b)]?(_0x115af1[_0xc77f(0x2c)](_0x35d621[_0xc77f(0x2d)],_0x530f0a),![]):(console[_0xc77f(0x24)](_0xc77f(0x2e)),![]);}return![];}else return _0x103a76[_0xc77f(0x2c)](_0x35d621[_0xc77f(0x2f)],_0x1b1710),{'isReady':![],'mode':_0x35d621[_0xc77f(0x30)],'needsMigration':![],'trainingReady':![],'details':{'error':_0x35d621[_0xc77f(0x31)](_0x47f572,_0x3bb3e1)?_0x282af1[_0xc77f(0x21)]:_0x35d621[_0xc77f(0x15)](_0x4bf498,_0x1f3ad3)}};}catch(_0x18c7be){return _0x35d621[_0xc77f(0x32)]===_0x35d621['azDus']?new _0x4695c0(_0x2105d7=>{Alert['alert'](_0x35d621['kvynQ'],_0x35d621['OCWmQ'],[{'text':_0x35d621[_0xc77f(0x33)],'style':_0xc77f(0x34),'onPress':()=>_0x2105d7(![])},{'text':_0x35d621[_0xc77f(0x35)],'style':_0x35d621[_0xc77f(0x36)],'onPress':()=>_0x2105d7(!![])}]);}):(console[_0xc77f(0x2c)](_0x35d621[_0xc77f(0x37)],_0x18c7be),![]);}};export const getYouTubeConnectionStatus=async _0x2964ff=>{const _0x14c142={'cwUqV':_0xc77f(0x38),'riewr':_0xc77f(0x39),'WTOIn':function(_0x4bb3c6,_0x403856){return _0x4bb3c6(_0x403856);},'Svntr':'📋\x20Complete\x20YouTube\x20status\x20response:','rjqqG':function(_0x3302e7,_0x563c83){return _0x3302e7!==_0x563c83;},'TleOY':function(_0xac3e96,_0x175761){return _0xac3e96===_0x175761;},'nGNrf':_0xc77f(0x3a),'UdECY':function(_0x610aea,_0x161ce5){return _0x610aea===_0x161ce5;},'FegmL':_0xc77f(0x3b),'IjLUe':_0xc77f(0x3c),'IVEPc':_0xc77f(0x3d),'HXZnj':_0xc77f(0x3e),'xzUpW':_0xc77f(0x3f),'ZKeum':_0xc77f(0x40),'izkUX':'❓\x20YouTube\x20connection\x20status\x20unclear','xHdyb':_0xc77f(0x41),'CHSUF':'none','SxIbG':_0xc77f(0x8),'EFrjl':function(_0x4dc4d0,_0x4ed158){return _0x4dc4d0 instanceof _0x4ed158;},'URxck':function(_0x545df9,_0x3c2f53){return _0x545df9(_0x3c2f53);}};try{const _0xa3ad14=await _0x14c142[_0xc77f(0x42)](fetch,API_CONFIG[_0xc77f(0x16)]+_0xc77f(0x17)+_0x2964ff),_0x6e9e20=await _0xa3ad14['json']();console[_0xc77f(0x24)](_0x14c142[_0xc77f(0x43)],_0x6e9e20);if(_0x6e9e20['success']&&_0x6e9e20[_0xc77f(0x1a)]){if(_0x14c142['rjqqG'](_0xc77f(0x44),_0xc77f(0x44)))return _0x38791f['log']('ℹ️\x20User\x20declined\x20YouTube\x20migration'),![];else{var _0x1f2ea9,_0x4232a6;const _0x494494=(_0x14c142[_0xc77f(0x45)](_0x1f2ea9=_0x6e9e20[_0xc77f(0x1a)],null)||_0x14c142[_0xc77f(0x45)](_0x1f2ea9,void 0x0)?void 0x0:_0x1f2ea9['isTemporaryMode'])===!![]||_0x14c142[_0xc77f(0x45)](_0x14c142[_0xc77f(0x45)](_0x4232a6=_0x6e9e20['temporaryMode'],null)||_0x14c142[_0xc77f(0x45)](_0x4232a6,void 0x0)?void 0x0:_0x4232a6[_0xc77f(0x1f)],!![])||_0x14c142[_0xc77f(0x45)](_0x6e9e20[_0xc77f(0x1c)],!![])||_0x6e9e20['message']&&_0x6e9e20['message'][_0xc77f(0x46)](_0x14c142['nGNrf']),_0x47dc1d=_0x14c142[_0xc77f(0x47)](_0x6e9e20[_0xc77f(0x1a)]['hasRefreshToken'],!![]),_0x3036a4=_0x6e9e20[_0xc77f(0x1a)][_0xc77f(0x23)]===!![];if(_0x494494)return console['log'](_0x14c142['FegmL']),console[_0xc77f(0x24)](_0x14c142['IjLUe']),{'isReady':!![],'mode':_0x14c142['IVEPc'],'needsMigration':![],'trainingReady':!![],'details':_0x6e9e20};else{if(_0x47dc1d)return console[_0xc77f(0x24)](_0xc77f(0x48)),{'isReady':!![],'mode':_0x14c142['HXZnj'],'needsMigration':![],'trainingReady':!![],'details':_0x6e9e20};else return _0x3036a4?(console[_0xc77f(0x24)](_0x14c142['cwUqV']),{'isReady':![],'mode':_0x14c142[_0xc77f(0x49)],'needsMigration':!![],'trainingReady':![],'details':_0x6e9e20}):_0x14c142[_0xc77f(0x4a)]===_0x14c142['ZKeum']?(_0x26f6a8[_0xc77f(0x24)](_0x14c142[_0xc77f(0x4b)]),{'isReady':![],'mode':_0x14c142[_0xc77f(0x49)],'needsMigration':!![],'trainingReady':![],'details':_0x42ebbf}):(console[_0xc77f(0x24)](_0x14c142[_0xc77f(0x4c)]),{'isReady':![],'mode':'none','needsMigration':![],'trainingReady':![],'details':_0x6e9e20});}}}return console[_0xc77f(0x24)](_0x14c142['xHdyb']),{'isReady':![],'mode':_0x14c142[_0xc77f(0x4d)],'needsMigration':![],'trainingReady':![],'details':_0x6e9e20};}catch(_0x2a8f9e){return console[_0xc77f(0x2c)](_0x14c142[_0xc77f(0x4e)],_0x2a8f9e),{'isReady':![],'mode':_0xc77f(0x9),'needsMigration':![],'trainingReady':![],'details':{'error':_0x14c142[_0xc77f(0x4f)](_0x2a8f9e,Error)?_0x2a8f9e[_0xc77f(0x21)]:_0x14c142[_0xc77f(0x50)](String,_0x2a8f9e)}};}};const showYouTubeMigrationPrompt=async()=>{const _0x4f831a={'pHMAw':_0xc77f(0xa),'SIcwn':'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?','OurJs':'cancel','uDDes':_0xc77f(0xc),'jrDSK':_0xc77f(0xd)};return new Promise(_0x1bd457=>{Alert[_0xc77f(0x51)](_0x4f831a[_0xc77f(0x52)],_0x4f831a['SIcwn'],[{'text':_0xc77f(0x53),'style':_0x4f831a[_0xc77f(0x54)],'onPress':()=>_0x1bd457(![])},{'text':_0x4f831a[_0xc77f(0x55)],'style':_0x4f831a[_0xc77f(0x56)],'onPress':()=>_0x1bd457(!![])}]);});},forceYouTubeReconnection=async _0x8fc6b9=>{const _0x306f33={'wanEg':function(_0xe0d944,_0x44d8ae){return _0xe0d944===_0x44d8ae;},'SKFlC':function(_0x5a6762,_0x122022){return _0x5a6762===_0x122022;},'jxWAL':function(_0x53b56e,_0x3c4a2c){return _0x53b56e===_0x3c4a2c;},'OSfct':function(_0x261491,_0x34d436){return _0x261491===_0x34d436;},'HdxcP':_0xc77f(0x3a),'jiiTg':'🔍\x20YouTube\x20migration\x20check:','BDAPb':function(_0x5f0d46,_0x3e74b3){return _0x5f0d46===_0x3e74b3;},'kPHbG':'⚠️\x20No\x20refresh\x20capability\x20but\x20training\x20can\x20proceed','lBhWW':_0xc77f(0x57),'zTAOa':_0xc77f(0x58),'naQTZ':_0xc77f(0x59),'qZbmr':_0xc77f(0x48),'KZNix':_0xc77f(0x3e),'gexlF':'🔄\x20YouTube\x20connected\x20in\x20temporary\x20mode','SLaQM':_0xc77f(0x3c),'xRmAc':_0xc77f(0x3d),'wEuGv':_0xc77f(0x5a),'JWvZq':function(_0x46cef3){return _0x46cef3();},'fsShZ':_0xc77f(0x5b),'onFgo':function(_0x367885,_0x2b3ddd){return _0x367885!==_0x2b3ddd;},'xSDmJ':_0xc77f(0x5c),'rqTtW':_0xc77f(0x5d),'nJMei':'✅\x20Token\x20cache\x20cleared','qULOE':function(_0x201e70,_0x3a7852){return _0x201e70===_0x3a7852;},'Ydloi':'cKFse','qkTNp':_0xc77f(0x5e),'gsxyb':_0xc77f(0x5f),'NZogP':function(_0x4c300a,_0x4bc65){return _0x4c300a!==_0x4bc65;},'uxTeF':_0xc77f(0x60),'xkmIT':_0xc77f(0x61),'QyebK':_0xc77f(0x62),'hpola':function(_0x594996,_0x6f43b6){return _0x594996===_0x6f43b6;},'utFxl':function(_0x340a36,_0x13d3a3){return _0x340a36===_0x13d3a3;},'RzVdH':'💡\x20This\x20usually\x20means:','eyYOF':_0xc77f(0x63),'rccbN':_0xc77f(0x64),'OLvyj':_0xc77f(0x65),'UKEJq':_0xc77f(0x66),'mPZMI':function(_0x49052b,_0x2598f6){return _0x49052b+_0x2598f6;},'WSGXh':_0xc77f(0x67),'ZKrud':_0xc77f(0x68),'WxWIq':_0xc77f(0x69),'iaXFM':_0xc77f(0x6a),'tdUku':_0xc77f(0x6b),'ifezW':_0xc77f(0x6c),'JkguS':function(_0x339086,_0x23c7e6){return _0x339086===_0x23c7e6;},'vUztM':_0xc77f(0x6d),'qXygu':function(_0x1f3f29,_0x4b5dc4){return _0x1f3f29===_0x4b5dc4;},'keZRx':function(_0x586c95,_0x5aa6fa){return _0x586c95===_0x5aa6fa;},'IbVzv':_0xc77f(0x6e),'BZxpo':function(_0x5283d4,_0x10046f,_0x239d99){return _0x5283d4(_0x10046f,_0x239d99);},'hVFFK':_0xc77f(0x6f),'LxVHA':_0xc77f(0x70),'JoILX':'✅\x20YouTube\x20migration\x20successful','gHPCX':function(_0xf1f30c,_0x1c63ec,_0x36dbc0){return _0xf1f30c(_0x1c63ec,_0x36dbc0);},'pVZIr':_0xc77f(0x71),'XXCrK':function(_0x1610be,_0x305a22,_0x127cad,_0x11b9ac){return _0x1610be(_0x305a22,_0x127cad,_0x11b9ac);},'bbPxy':'IAlWe','IJqYl':_0xc77f(0x72),'IgNca':function(_0x4578e3,_0x152c6c,_0x4592ab,_0x32dd7b){return _0x4578e3(_0x152c6c,_0x4592ab,_0x32dd7b);},'HGmSu':_0xc77f(0x73)};try{var _0x4c1893,_0x4873a6,_0x28f3d0,_0x488fcb;console[_0xc77f(0x24)](_0x306f33[_0xc77f(0x74)],_0x8fc6b9),_0x306f33[_0xc77f(0x75)](configureGoogleSignInForRefreshTokens),await GoogleSignin[_0xc77f(0x76)](),console[_0xc77f(0x24)](_0x306f33[_0xc77f(0x77)]);try{if(_0x306f33[_0xc77f(0x78)](_0x306f33[_0xc77f(0x79)],_0x306f33[_0xc77f(0x7a)])){const _0x45321a=await GoogleSignin[_0xc77f(0x7b)]();_0x45321a['accessToken']&&(await GoogleSignin['clearCachedAccessToken'](_0x45321a[_0xc77f(0x7c)]),console[_0xc77f(0x24)](_0x306f33[_0xc77f(0x7d)]));}else{var _0x1da087,_0x26650,_0x2eb69a;const _0x3d94e2=_0x306f33[_0xc77f(0x7e)](_0x306f33[_0xc77f(0x7f)](_0x1da087=_0x514057['validation'],null)||_0x306f33['SKFlC'](_0x1da087,void 0x0)?void 0x0:_0x1da087[_0xc77f(0x1c)],!![])||_0x306f33[_0xc77f(0x7f)](_0x306f33['jxWAL'](_0x26650=_0x4cf892[_0xc77f(0x1d)],null)||_0x306f33['OSfct'](_0x26650,void 0x0)?void 0x0:_0x26650['enabled'],!![])||_0x5d79a5['isTemporaryMode']===!![]||_0x5c9257[_0xc77f(0x21)]&&_0x2bb8f5[_0xc77f(0x21)][_0xc77f(0x46)](_0x306f33[_0xc77f(0x80)]),_0x162db5=_0x22779e[_0xc77f(0x1a)][_0xc77f(0x23)],_0x4e4aef=_0x28ecc4[_0xc77f(0x1a)][_0xc77f(0x81)];_0x35ae86['log'](_0x306f33['jiiTg'],{'username':_0x5494f7,'needsReconnection':_0x162db5,'hasRefreshToken':_0x4e4aef,'isTemporaryMode':_0x3d94e2,'temporaryModeEnabled':_0x306f33[_0xc77f(0x82)](_0x2eb69a=_0x28a315[_0xc77f(0x1d)],null)||_0x306f33[_0xc77f(0x83)](_0x2eb69a,void 0x0)?void 0x0:_0x2eb69a['enabled'],'message':_0x3b44f6['message']});if(_0x3d94e2)return _0x3833c4[_0xc77f(0x24)](_0xc77f(0xe)),_0x3f9f13[_0xc77f(0x24)](_0x306f33[_0xc77f(0x84)]),![];else return _0x162db5?(_0x596de1[_0xc77f(0x24)](_0xc77f(0x29)),!![]):(_0x768a4e[_0xc77f(0x24)](_0xc77f(0x2e)),![]);}}catch(_0x2e9147){if(_0x306f33[_0xc77f(0x85)](_0x306f33[_0xc77f(0x86)],_0xc77f(0x87)))console[_0xc77f(0x24)]('ℹ️\x20No\x20token\x20cache\x20to\x20clear');else return Alert[_0xc77f(0x51)](_0x306f33['lBhWW'],_0x306f33['zTAOa'],[{'text':_0x306f33[_0xc77f(0x88)],'style':_0xc77f(0xd)}]),!![];}await GoogleSignin['hasPlayServices'](),console['log']('🔐\x20Initiating\x20sign-in\x20-\x20consent\x20screen\x20should\x20appear...');const _0x43116a=await GoogleSignin['signIn'](),_0x4a7452=await GoogleSignin[_0xc77f(0x7b)](),_0x2b2d43=await GoogleSignin[_0xc77f(0x89)]();let _0x5f3bb9=null,_0x1615a2=_0x306f33['qkTNp'];if(_0x43116a['serverAuthCode'])_0x5f3bb9=_0x43116a[_0xc77f(0x8a)],_0x1615a2=_0x306f33[_0xc77f(0x8b)];else _0x306f33['NZogP'](_0x2b2d43,null)&&_0x306f33[_0xc77f(0x8c)](_0x2b2d43,void 0x0)&&_0x2b2d43[_0xc77f(0x8a)]&&(_0x5f3bb9=_0x2b2d43[_0xc77f(0x8a)],_0x1615a2=_0x306f33[_0xc77f(0x8d)]);console['log'](_0x306f33[_0xc77f(0x8e)],{'hasAccessToken':!!_0x4a7452[_0xc77f(0x7c)],'hasIdToken':!!_0x4a7452['idToken'],'hasServerAuthCode':!!_0x43116a[_0xc77f(0x8a)],'hasCurrentUserAuthCode':!!(_0x306f33[_0xc77f(0x78)](_0x2b2d43,null)&&_0x306f33[_0xc77f(0x78)](_0x2b2d43,void 0x0)&&_0x2b2d43['serverAuthCode']),'refreshTokenSource':_0x1615a2,'finalRefreshToken':_0x5f3bb9?_0x306f33[_0xc77f(0x8f)]:'MISSING!','userEmail':_0x306f33[_0xc77f(0x90)](_0x4c1893=_0x43116a[_0xc77f(0x91)],null)||_0x306f33[_0xc77f(0x92)](_0x4c1893,void 0x0)?void 0x0:_0x4c1893[_0xc77f(0x93)]});if(!_0x5f3bb9)return console[_0xc77f(0x2c)]('❌\x20No\x20refresh\x20token\x20received\x20-\x20Google\x20Console\x20configuration\x20may\x20be\x20incorrect'),console['error'](_0x306f33[_0xc77f(0x94)]),console['error'](_0x306f33[_0xc77f(0x95)]),console['error'](_0x306f33[_0xc77f(0x96)]),console[_0xc77f(0x2c)](_0x306f33[_0xc77f(0x97)]),![];console[_0xc77f(0x24)](_0x306f33[_0xc77f(0x98)],_0x306f33[_0xc77f(0x99)](_0x5f3bb9[_0xc77f(0x9a)](0x0,0x14),_0xc77f(0x9b))),console[_0xc77f(0x24)](_0x306f33[_0xc77f(0x9c)],_0x1615a2);let _0x1199f3=await AsyncStorage[_0xc77f(0x9d)]('onairos_jwt_token')||await AsyncStorage[_0xc77f(0x9d)](_0xc77f(0x9e))||await AsyncStorage[_0xc77f(0x9d)](_0x306f33[_0xc77f(0x9f)]);!_0x1199f3&&(_0xc77f(0x69)===_0x306f33[_0xc77f(0xa0)]?(console[_0xc77f(0xa1)](_0x306f33[_0xc77f(0xa2)]),_0x1199f3=_0x306f33['tdUku']):(_0x28ce33=_0x58a8e0[_0xc77f(0x8a)],_0xcf4b3e=_0xc77f(0x5f)));const _0x1fb0d9={'session':{'username':_0x8fc6b9,'platform':_0x306f33[_0xc77f(0xa3)],'channelName':(_0x306f33[_0xc77f(0x7e)](_0x4873a6=_0x43116a['user'],null)||_0x306f33[_0xc77f(0xa4)](_0x4873a6,void 0x0)?void 0x0:_0x4873a6[_0xc77f(0xa5)])||_0x306f33[_0xc77f(0xa6)],'channelId':null},'googleUser':_0x43116a['user'],'accessToken':_0x4a7452[_0xc77f(0x7c)],'idToken':_0x4a7452[_0xc77f(0xa7)],'refreshToken':_0x5f3bb9,'serverAuthCode':_0x43116a['serverAuthCode'],'userAccountInfo':{'username':_0x8fc6b9,'email':_0x306f33[_0xc77f(0x83)](_0x28f3d0=_0x43116a[_0xc77f(0x91)],null)||_0x306f33[_0xc77f(0xa8)](_0x28f3d0,void 0x0)?void 0x0:_0x28f3d0[_0xc77f(0x93)],'authToken':_0x1199f3,'channelName':((_0x488fcb=_0x43116a[_0xc77f(0x91)])===null||_0x306f33[_0xc77f(0xa9)](_0x488fcb,void 0x0)?void 0x0:_0x488fcb['name'])||_0x306f33['vUztM'],'channelId':null}};console[_0xc77f(0x24)](_0x306f33[_0xc77f(0xaa)]);const _0x96e31b=await _0x306f33['BZxpo'](fetch,API_CONFIG[_0xc77f(0x16)]+_0xc77f(0xab),{'method':'POST','headers':{'Content-Type':'application/json','x-api-key':_0xc77f(0xac),..._0x306f33[_0xc77f(0x8c)](_0x1199f3,'migration_token_placeholder')&&{'Authorization':'Bearer\x20'+_0x1199f3}},'body':JSON[_0xc77f(0xad)](_0x1fb0d9)}),_0x19757f=await _0x96e31b['json']();return _0x19757f[_0xc77f(0x19)]?_0x306f33[_0xc77f(0xae)]===_0x306f33[_0xc77f(0xaf)]?(_0x38f495['log'](_0x306f33[_0xc77f(0xb0)]),{'isReady':!![],'mode':_0x306f33[_0xc77f(0xb1)],'needsMigration':![],'trainingReady':!![],'details':_0x27091b}):(console[_0xc77f(0x24)](_0x306f33[_0xc77f(0xb2)]),await _0x306f33[_0xc77f(0xb3)](trackMigrationAttempt,_0x8fc6b9,!![]),!![]):(console['error'](_0x306f33[_0xc77f(0xb4)],_0x19757f[_0xc77f(0x2c)]),await _0x306f33[_0xc77f(0xb5)](trackMigrationAttempt,_0x8fc6b9,![],_0x19757f[_0xc77f(0x2c)]),![]);}catch(_0x17e7bb){return _0x306f33['onFgo'](_0xc77f(0xb6),_0x306f33['bbPxy'])?(_0x464eba[_0xc77f(0x24)](_0x306f33[_0xc77f(0xb7)]),_0x49ebd6['log'](_0x306f33[_0xc77f(0xb8)]),{'isReady':!![],'mode':_0x306f33[_0xc77f(0xb9)],'needsMigration':![],'trainingReady':!![],'details':_0x37a0e2}):(console[_0xc77f(0x2c)](_0x306f33[_0xc77f(0xba)],_0x17e7bb),await _0x306f33[_0xc77f(0xbb)](trackMigrationAttempt,_0x8fc6b9,![],_0x17e7bb instanceof Error?_0x17e7bb[_0xc77f(0x21)]:_0x306f33['HGmSu']),![]);}},trackMigrationAttempt=async(_0x19c8e9,_0x1b0a3c,_0x563377)=>{const _0x46eba4={'HHEJG':_0xc77f(0x2e),'aweKH':function(_0x1a1031,_0x4da357){return _0x1a1031!==_0x4da357;},'ROTmP':'THSUL','DEjeF':_0xc77f(0xbc),'ziqcB':function(_0x41fc05,_0x1ab705){return _0x41fc05||_0x1ab705;},'iwwOg':_0xc77f(0xbd)};try{if(_0x46eba4[_0xc77f(0xbe)](_0x46eba4[_0xc77f(0xbf)],_0x46eba4[_0xc77f(0xc0)]))await fetch(API_CONFIG[_0xc77f(0x16)]+_0xc77f(0xc1),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'username':_0x19c8e9,'success':_0x1b0a3c,'error':_0x46eba4['ziqcB'](_0x563377,null),'timestamp':new Date()['toISOString']()})});else return _0x2ec884[_0xc77f(0x24)](_0x46eba4[_0xc77f(0xc2)]),![];}catch(_0x1d3fd3){console['error'](_0x46eba4[_0xc77f(0xc3)],_0x1d3fd3);}};function _0xc77f(_0x28c5c6,_0xc77fa9){_0x28c5c6=_0x28c5c6-0x0;const _0xa4f94f=_0x28c5();let _0x1cc850=_0xa4f94f[_0x28c5c6];return _0x1cc850;}export const shouldShowYouTubeMigrationWarning=async _0x44fef4=>{const _0x4b4568={'rNcui':_0xc77f(0xbd),'YdjBg':'❓\x20YouTube\x20connection\x20status\x20unclear','kwyTD':function(_0x47e153,_0xd5a8aa){return _0x47e153!==_0xd5a8aa;},'TLHNa':_0xc77f(0xc4),'scjbA':_0xc77f(0xc5),'YsPeW':function(_0x328c0,_0x35978c){return _0x328c0(_0x35978c);},'NcuUF':function(_0x30078f,_0x391a44){return _0x30078f===_0x391a44;},'JhTdN':function(_0x518bbe,_0x4879da){return _0x518bbe===_0x4879da;},'yfUfa':_0xc77f(0xc6),'lMpYJ':_0xc77f(0xc7),'cVSIH':function(_0x287b30,_0xa5a09a){return _0x287b30&&_0xa5a09a;},'wrIyI':_0xc77f(0xc8),'zZovI':_0xc77f(0xc9)};try{if(_0x4b4568[_0xc77f(0xca)](_0x4b4568[_0xc77f(0xcb)],_0xc77f(0xc4)))_0xe02e6e['error'](_0x4b4568['rNcui'],_0x85938c);else{console[_0xc77f(0x24)](_0x4b4568[_0xc77f(0xcc)],_0x44fef4);const _0x3ce9d2=await _0x4b4568['YsPeW'](fetch,API_CONFIG['BASE_URL']+_0xc77f(0x17)+_0x44fef4),_0x5f5887=await _0x3ce9d2['json']();if(_0x5f5887[_0xc77f(0x19)]&&_0x5f5887[_0xc77f(0x1a)]){var _0x19505f,_0x23e799;const _0xbabddd=(_0x4b4568[_0xc77f(0xcd)](_0x19505f=_0x5f5887[_0xc77f(0x1a)],null)||_0x19505f===void 0x0?void 0x0:_0x19505f[_0xc77f(0x1c)])===!![]||_0x4b4568[_0xc77f(0xce)](_0x4b4568[_0xc77f(0xcd)](_0x23e799=_0x5f5887[_0xc77f(0x1d)],null)||_0x4b4568[_0xc77f(0xcd)](_0x23e799,void 0x0)?void 0x0:_0x23e799[_0xc77f(0x1f)],!![])||_0x5f5887[_0xc77f(0x1c)]===!![],_0x15500a=_0x5f5887[_0xc77f(0x1a)]['hasAccessToken']===!![],_0xf304aa=_0x5f5887[_0xc77f(0x1a)]['hasRefreshToken']===!![],_0x2248fe=_0x4b4568[_0xc77f(0xcd)](_0x5f5887[_0xc77f(0x1a)]['needsReconnection'],!![]);console[_0xc77f(0x24)](_0x4b4568['yfUfa'],{'username':_0x44fef4,'hasAccessToken':_0x15500a,'hasRefreshToken':_0xf304aa,'needsReconnection':_0x2248fe,'isTemporaryMode':_0xbabddd,'connectedAt':_0x5f5887['validation'][_0xc77f(0xcf)]});if(_0xbabddd)return _0x4b4568[_0xc77f(0xcd)]('kruls',_0x4b4568['lMpYJ'])?(_0x1bcc9f[_0xc77f(0x24)](_0x4b4568[_0xc77f(0xd0)]),{'isReady':![],'mode':'none','needsMigration':![],'trainingReady':![],'details':_0x475147}):(console[_0xc77f(0x24)](_0xc77f(0xd1)),![]);else return _0x4b4568[_0xc77f(0xd2)](_0x15500a,!_0xf304aa)&&_0x2248fe?(console['log'](_0x4b4568[_0xc77f(0xd3)]),!![]):(console[_0xc77f(0x24)](_0x4b4568[_0xc77f(0xd4)]),![]);}return console[_0xc77f(0x24)]('ℹ️\x20[MIGRATION\x20WARNING]\x20NO\x20WARNING\x20-\x20no\x20YouTube\x20connection\x20found'),![];}}catch(_0x5e3277){return console[_0xc77f(0x2c)](_0xc77f(0x7),_0x5e3277),![];}};export const checkAndFixYouTubeConnection=async _0x5ef677=>{const _0x2d066c={'MFgao':_0xc77f(0x12),'HRFAH':_0xc77f(0xd5),'shJES':'🚫\x20[MIGRATION]\x20NO\x20MIGRATION\x20NEEDED\x20-\x20user\x20connection\x20is\x20working\x20correctly','OWBoJ':_0xc77f(0xd6),'batbx':function(_0x4ab2a6,_0x130764){return _0x4ab2a6(_0x130764);},'VipiO':_0xc77f(0xd7),'VhBQR':_0xc77f(0xd8),'XxUDV':function(_0x5bc296){return _0x5bc296();},'Snhow':_0xc77f(0x57),'ZCJxz':_0xc77f(0x58),'dCfeY':_0xc77f(0x59),'LWCdX':_0xc77f(0xd),'KaYpT':'Upgrade\x20Failed\x20❌','SvjnM':'YouTube\x20connection\x20upgrade\x20failed.\x20Please\x20try\x20again\x20later\x20or\x20contact\x20support\x20if\x20the\x20problem\x20persists.','YmCLe':_0xc77f(0xd9),'JHaxU':_0xc77f(0xda),'HGVxM':_0xc77f(0xdb)};try{console[_0xc77f(0x24)](_0x2d066c[_0xc77f(0xdc)],_0x5ef677);const _0x27fc04=await shouldShowYouTubeMigrationWarning(_0x5ef677);if(!_0x27fc04)return console['log'](_0x2d066c[_0xc77f(0xdd)]),console[_0xc77f(0x24)](_0x2d066c[_0xc77f(0xde)]),!![];const _0xe9f4de=await _0x2d066c[_0xc77f(0xdf)](checkYouTubeMigrationNeeded,_0x5ef677);if(!_0xe9f4de)return console[_0xc77f(0x24)](_0x2d066c[_0xc77f(0xe0)]),!![];console[_0xc77f(0x24)](_0x2d066c[_0xc77f(0xe1)]);const _0x267260=await _0x2d066c[_0xc77f(0xe2)](showYouTubeMigrationPrompt);if(!_0x267260)return console[_0xc77f(0x24)]('ℹ️\x20User\x20declined\x20YouTube\x20migration'),![];const _0x4d5fb9=await _0x2d066c['batbx'](forceYouTubeReconnection,_0x5ef677);return _0x4d5fb9?(Alert[_0xc77f(0x51)](_0x2d066c[_0xc77f(0xe3)],_0x2d066c[_0xc77f(0xe4)],[{'text':_0x2d066c[_0xc77f(0xe5)],'style':_0x2d066c['LWCdX']}]),!![]):(Alert[_0xc77f(0x51)](_0x2d066c['KaYpT'],_0x2d066c[_0xc77f(0xe6)],[{'text':'OK','style':_0xc77f(0xd)}]),![]);}catch(_0x44d21b){return _0x2d066c[_0xc77f(0xe7)]===_0x2d066c[_0xc77f(0xe8)]?(_0x2b28e0[_0xc77f(0x2c)](_0x2d066c['MFgao'],_0x26c439),![]):(console[_0xc77f(0x2c)](_0x2d066c[_0xc77f(0xe9)],_0x44d21b),![]);}};export const reconnectYouTube=async _0x5cbf0e=>{return console[_0xc77f(0x24)]('🔄\x20Manual\x20YouTube\x20reconnection\x20requested\x20for:',_0x5cbf0e),await forceYouTubeReconnection(_0x5cbf0e);};
@@ -0,0 +1 @@
1
+ import{Platform}from'react-native';export const COLORS={'surface':'#FAFAFA','grey300':'#D1D5DB','grey400':'#9CA3AF','grey500':'#86888E','grey600':_0x5c56(0x0),'grey700':_0x5c56(0x1),'grey800':_0x5c56(0x2),'btnGradStart':_0x5c56(0x3),'btnGradEnd':_0x5c56(0x4),'btnBorder':_0x5c56(0x5),'btnShadowOuter':_0x5c56(0x6),'btnInnerShadow':_0x5c56(0x7),'btnLabel':_0x5c56(0x8),'iconCircleGradientStart':_0x5c56(0x9),'iconCircleGradientEnd':_0x5c56(0xa),'primary':_0x5c56(0xb),'primaryDark':_0x5c56(0xc),'primaryLight':_0x5c56(0xd),'background':{'dark':_0x5c56(0xe),'medium':_0x5c56(0xf),'light':_0x5c56(0x10)},'text':{'primary':_0x5c56(0x8),'secondary':_0x5c56(0x11),'tertiary':_0x5c56(0x12),'gold':_0x5c56(0xb)},'ui':{'cardBackground':_0x5c56(0x13),'divider':_0x5c56(0x13),'inputBackground':_0x5c56(0x13),'buttonBackground':_0x5c56(0x13)},'status':{'success':_0x5c56(0x14),'error':_0x5c56(0x15),'warning':_0x5c56(0x16),'info':_0x5c56(0x17)},'transparent':'transparent','overlay':'rgba(0,\x200,\x200,\x200.7)'};export const FONTS={'families':{'ibmPlexSans':Platform['OS']===_0x5c56(0x18)?_0x5c56(0x19):'IBM\x20Plex\x20Sans','ibmPlexSansBold':Platform['OS']==='ios'?'IBM\x20Plex\x20Sans':_0x5c56(0x19),'inter':Platform['OS']===_0x5c56(0x18)?_0x5c56(0x1a):_0x5c56(0x1b),'base':Platform['OS']===_0x5c56(0x18)?_0x5c56(0x1c):_0x5c56(0x1d),'serif':Platform['OS']==='ios'?_0x5c56(0x1e):'serif'},'weights':{'light':_0x5c56(0x1f),'regular':'400','medium':'500','semibold':_0x5c56(0x20),'bold':_0x5c56(0x21)},'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};function _0x4294(){const _0x449d96=['#62646C','#374151','#1F242F','#29292B','#17181C','rgba(0,0,0,0.20)','rgba(0,0,0,0.10)','rgba(0,0,0,0.06)','#FFFFFF','#0A090E','#17171B','#FFD700','#E9B104','#FFDF33','#000000','#121212','#1C2526','#B0B0B0','#808080','rgba(255,\x20255,\x20255,\x200.1)','#4BB543','#FF3B30','#FF9500','#5AC8FA','ios','IBM\x20Plex\x20Sans','Inter','Inter-Regular','System','Roboto','Georgia','300','600','700','primary','btnInnerShadow','btnShadowOuter','ibmPlexSansBold','weights','sizes','kicker','lineHeights','letterSpacing','families','welcomeTitle','inter','regular','body','center','semibold','buttonLabel'];_0x4294=function(){return _0x449d96;};return _0x4294();}function _0x5c56(_0x429475,_0x5c5696){_0x429475=_0x429475-0x0;const _0x5de8e8=_0x4294();let _0x4c6333=_0x5de8e8[_0x429475];return _0x4c6333;}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[_0x5c56(0x22)],'shadowOffset':{'width':0x0,'height':0x2},'shadowOpacity':0.3,'shadowRadius':0x4,'elevation':0x3},'medium':{'shadowColor':COLORS[_0x5c56(0x22)],'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.5,'shadowRadius':0x8,'elevation':0x5},'large':{'shadowColor':COLORS['primary'],'shadowOffset':{'width':0x0,'height':0x6},'shadowOpacity':0.8,'shadowRadius':0x10,'elevation':0x8},'button':{'inner':{'shadowColor':COLORS[_0x5c56(0x23)],'shadowOffset':{'width':0x0,'height':-0x24},'shadowOpacity':0x1,'shadowRadius':21.1},'outer':{'shadowColor':COLORS[_0x5c56(0x24)],'shadowOffset':{'width':0x14,'height':0x1e},'shadowOpacity':0x1,'shadowRadius':0x28,'elevation':0x8}},'brandMark':{'shadowColor':_0x5c56(0xe),'shadowOffset':{'width':0x0,'height':0x4},'shadowOpacity':0.1,'shadowRadius':0x8,'elevation':0x4}};export const TEXT_STYLES={'kicker':{'fontFamily':FONTS['families'][_0x5c56(0x25)],'fontWeight':FONTS[_0x5c56(0x26)]['bold'],'fontSize':FONTS[_0x5c56(0x27)][_0x5c56(0x28)],'lineHeight':FONTS[_0x5c56(0x29)][_0x5c56(0x28)],'letterSpacing':FONTS[_0x5c56(0x2a)]['kicker'],'color':COLORS['grey500']},'welcomeTitle':{'fontFamily':FONTS[_0x5c56(0x2b)][_0x5c56(0x25)],'fontWeight':FONTS[_0x5c56(0x26)]['bold'],'fontSize':FONTS[_0x5c56(0x27)]['welcomeTitle'],'lineHeight':FONTS[_0x5c56(0x29)][_0x5c56(0x2c)],'color':COLORS['grey800']},'body':{'fontFamily':FONTS[_0x5c56(0x2b)][_0x5c56(0x2d)],'fontWeight':FONTS[_0x5c56(0x26)][_0x5c56(0x2e)],'fontSize':FONTS[_0x5c56(0x27)][_0x5c56(0x2f)],'lineHeight':FONTS[_0x5c56(0x29)][_0x5c56(0x2f)],'textAlign':_0x5c56(0x30),'color':COLORS['grey600']},'buttonLabel':{'fontFamily':FONTS[_0x5c56(0x2b)][_0x5c56(0x2d)],'fontWeight':FONTS[_0x5c56(0x26)][_0x5c56(0x31)],'fontSize':FONTS[_0x5c56(0x27)][_0x5c56(0x32)],'color':COLORS['btnLabel']}};export default{'COLORS':COLORS,'FONTS':FONTS,'SPACING':SPACING,'BORDER_RADIUS':BORDER_RADIUS,'SHADOWS':SHADOWS,'TEXT_STYLES':TEXT_STYLES};
@@ -1,10 +1 @@
1
- // API key types
2
- export let ApiKeyType = /*#__PURE__*/function (ApiKeyType) {
3
- ApiKeyType["DEVELOPER"] = "developer";
4
- ApiKeyType["ADMIN"] = "admin";
5
- ApiKeyType["INVALID"] = "invalid";
6
- return ApiKeyType;
7
- }({});
8
-
9
- // ... rest of the existing types ...
10
- //# sourceMappingURL=types.js.map
1
+ function _0x5edd(_0x64fa5f,_0x5eddca){_0x64fa5f=_0x64fa5f-0x0;const _0x44cc82=_0x64fa();let _0x459447=_0x44cc82[_0x64fa5f];return _0x459447;}export let ApiKeyType=function(_0x5b31c3){const _0x7e59f7={'tDqYS':'DEVELOPER','WyJbx':_0x5edd(0x0),'GpXkd':_0x5edd(0x1),'NWdZl':'INVALID','MCsem':_0x5edd(0x2)};return _0x5b31c3[_0x7e59f7[_0x5edd(0x3)]]=_0x7e59f7[_0x5edd(0x4)],_0x5b31c3[_0x7e59f7[_0x5edd(0x5)]]=_0x5edd(0x6),_0x5b31c3[_0x7e59f7[_0x5edd(0x7)]]=_0x7e59f7[_0x5edd(0x8)],_0x5b31c3;}({});function _0x64fa(){const _0x300d78=['developer','ADMIN','invalid','tDqYS','WyJbx','GpXkd','admin','NWdZl','MCsem'];_0x64fa=function(){return _0x300d78;};return _0x64fa();}
@@ -1,90 +1 @@
1
- import React, { useEffect, useState } from 'react';
2
- import { View } from 'react-native';
3
-
4
- // Store for portal instances
5
- const portalRefs = {};
6
- let portalId = 0;
7
-
8
- // Context to pass portal host state
9
- const PortalContext = /*#__PURE__*/React.createContext({
10
- mount: () => 0,
11
- update: () => {},
12
- unmount: () => {}
13
- });
14
-
15
- /**
16
- * Portal Host component - place this at the root of your app
17
- */
18
- export const PortalHost = ({
19
- children
20
- }) => {
21
- const [portals, setPortals] = useState({});
22
- const mount = children => {
23
- const key = ++portalId;
24
- setPortals(state => ({
25
- ...state,
26
- [key]: children
27
- }));
28
- return key;
29
- };
30
- const update = (key, children) => {
31
- setPortals(state => ({
32
- ...state,
33
- [key]: children
34
- }));
35
- };
36
- const unmount = key => {
37
- setPortals(state => {
38
- const newState = {
39
- ...state
40
- };
41
- delete newState[key];
42
- return newState;
43
- });
44
- };
45
- return /*#__PURE__*/React.createElement(PortalContext.Provider, {
46
- value: {
47
- mount,
48
- update,
49
- unmount
50
- }
51
- }, children, Object.keys(portals).map(key => /*#__PURE__*/React.createElement(View, {
52
- key: key,
53
- style: {
54
- position: 'absolute',
55
- top: 0,
56
- left: 0,
57
- right: 0,
58
- bottom: 0,
59
- zIndex: 9999
60
- }
61
- }, portals[Number(key)])));
62
- };
63
-
64
- /**
65
- * Portal component - renders children into the PortalHost
66
- */
67
- export const Portal = ({
68
- children
69
- }) => {
70
- const {
71
- mount,
72
- update,
73
- unmount
74
- } = React.useContext(PortalContext);
75
- const [portalId, setPortalId] = useState(null);
76
- useEffect(() => {
77
- const id = mount(children);
78
- setPortalId(id);
79
- return () => {
80
- if (portalId) unmount(portalId);
81
- };
82
- }, []);
83
- useEffect(() => {
84
- if (portalId !== null) {
85
- update(portalId, children);
86
- }
87
- }, [children, portalId]);
88
- return null;
89
- };
90
- //# sourceMappingURL=Portal.js.map
1
+ function _0x5ea4(_0x570bc4,_0x5ea497){_0x570bc4=_0x570bc4-0x0;const _0x945f1c=_0x570b();let _0xf253a7=_0x945f1c[_0x570bc4];return _0xf253a7;}import React,{useEffect,useState}from'react';import{View}from'react-native';const portalRefs={};let portalId=0x0;const PortalContext=React[_0x5ea4(0x0)]({'mount':()=>0x0,'update':()=>{},'unmount':()=>{}});function _0x570b(){const _0x494777=['createContext','ZnmDx','NhYzp','OoMRt','FLEYH','yAcLA','IGOIT','peqmD','WHofj','createElement','absolute','useContext','GkfbY','LsrGk'];_0x570b=function(){return _0x494777;};return _0x570b();}export const PortalHost=({children:_0x42eb01})=>{const _0x4f6575={'FLEYH':function(_0x248f1d,_0x879e5a){return _0x248f1d(_0x879e5a);},'WHofj':function(_0x32c8df,_0x21f640){return _0x32c8df(_0x21f640);},'nDxzM':function(_0x502c3a,_0x13eae0){return _0x502c3a===_0x13eae0;},'IGOIT':_0x5ea4(0x1),'ZgaLP':function(_0x5eef33,_0x593f17){return _0x5eef33!==_0x593f17;},'peqmD':_0x5ea4(0x2),'OoMRt':function(_0x3d47c8,_0x433403){return _0x3d47c8(_0x433403);}},[_0x38a2d9,_0x253621]=_0x4f6575[_0x5ea4(0x3)](useState,{}),_0x54d541=_0x37d2b6=>{const _0x1746d1=++portalId;return _0x4f6575[_0x5ea4(0x4)](_0x253621,_0x450557=>({..._0x450557,[_0x1746d1]:_0x37d2b6})),_0x1746d1;},_0x34b543=(_0x23ca2d,_0x336f66)=>{_0x4f6575['nDxzM'](_0x5ea4(0x5),_0x4f6575[_0x5ea4(0x6)])?_0x4f6575['WHofj'](_0x4f41ea,_0xa28199=>{const _0x1b6cf1={..._0xa28199};return delete _0x1b6cf1[_0xbb283a],_0x1b6cf1;}):_0x253621(_0x2df00d=>({..._0x2df00d,[_0x23ca2d]:_0x336f66}));},_0x367eab=_0x337763=>{if(_0x4f6575['ZgaLP'](_0x4f6575[_0x5ea4(0x7)],_0x4f6575['peqmD'])){const _0x2ab00c=_0x55b455(_0x10295e);return _0x4f6575['WHofj'](_0x4225b2,_0x2ab00c),()=>{if(_0x33bd5d)_0x2c4f29(_0x1c2b89);};}else _0x4f6575[_0x5ea4(0x8)](_0x253621,_0x457563=>{const _0x1e4a4a={..._0x457563};return delete _0x1e4a4a[_0x337763],_0x1e4a4a;});};return React['createElement'](PortalContext['Provider'],{'value':{'mount':_0x54d541,'update':_0x34b543,'unmount':_0x367eab}},_0x42eb01,Object['keys'](_0x38a2d9)['map'](_0x5c12ba=>React[_0x5ea4(0x9)](View,{'key':_0x5c12ba,'style':{'position':_0x5ea4(0xa),'top':0x0,'left':0x0,'right':0x0,'bottom':0x0,'zIndex':0x270f}},_0x38a2d9[Number(_0x5c12ba)])));};export const Portal=({children:_0x5d3429})=>{const _0x5ffa66={'LsrGk':function(_0x4142a7,_0x481e9a){return _0x4142a7(_0x481e9a);},'GkfbY':function(_0x45bf75,_0xd98c88,_0x4dd86f){return _0x45bf75(_0xd98c88,_0x4dd86f);},'uvmRl':function(_0x33523,_0x7eb14b,_0x43a4aa){return _0x33523(_0x7eb14b,_0x43a4aa);}},{mount:_0x1412b8,update:_0xf9d310,unmount:_0x2b021b}=React[_0x5ea4(0xb)](PortalContext),[_0xadad95,_0x5ebdf5]=useState(null);return _0x5ffa66[_0x5ea4(0xc)](useEffect,()=>{const _0x1b5013=_0x5ffa66[_0x5ea4(0xd)](_0x1412b8,_0x5d3429);return _0x5ffa66[_0x5ea4(0xd)](_0x5ebdf5,_0x1b5013),()=>{if(_0xadad95)_0x5ffa66[_0x5ea4(0xd)](_0x2b021b,_0xadad95);};},[]),_0x5ffa66['uvmRl'](useEffect,()=>{_0xadad95!==null&&_0x5ffa66[_0x5ea4(0xc)](_0xf9d310,_0xadad95,_0x5d3429);},[_0x5d3429,_0xadad95]),null;};
@@ -1,117 +1 @@
1
- import axios from 'axios';
2
- import AsyncStorage from '@react-native-async-storage/async-storage';
3
- const API_URL = 'https://api2.onairos.uk';
4
-
5
- /**
6
- * Create an API instance with authorization headers
7
- * @returns {Promise<Object>} - The axios instance
8
- */
9
- export const createApiInstance = async () => {
10
- const token = await AsyncStorage.getItem('onairosToken');
11
- return axios.create({
12
- baseURL: API_URL,
13
- headers: {
14
- 'Content-Type': 'application/json',
15
- ...(token ? {
16
- 'Authorization': `Bearer ${token}`
17
- } : {})
18
- }
19
- });
20
- };
21
-
22
- /**
23
- * Validate the domain with the Onairos API
24
- * @returns {Promise<Object>} - The validation response
25
- */
26
- export const validateDomain = async () => {
27
- try {
28
- const api = await createApiInstance();
29
- const response = await api.post('/valid/validate-domain');
30
- return response.data;
31
- } catch (error) {
32
- console.error('Error validating domain:', error);
33
- return {
34
- status: false
35
- };
36
- }
37
- };
38
-
39
- /**
40
- * Fetch account information
41
- * @param {string} identifier - The username or email
42
- * @param {boolean} isEmail - Whether the identifier is an email
43
- * @returns {Promise<Object>} - The account information
44
- */
45
- export const fetchAccountInfo = async (identifier, isEmail = false) => {
46
- try {
47
- const api = await createApiInstance();
48
- const jsonData = isEmail ? {
49
- Info: {
50
- identifier
51
- }
52
- } : {
53
- Info: {
54
- userName: identifier
55
- }
56
- };
57
- const endpoint = isEmail ? '/getAccountInfo/email' : '/getAccountInfo';
58
- const response = await api.post(endpoint, jsonData);
59
- return response.data;
60
- } catch (error) {
61
- console.error('Error fetching account info:', error);
62
- throw error;
63
- }
64
- };
65
-
66
- /**
67
- * Get API URL for data requests
68
- * @param {Array} approvedRequests - The approved data requests
69
- * @param {string} pin - The encrypted PIN
70
- * @param {string} othentSub - The hashed Othent sub
71
- * @returns {Promise<Object>} - The API URL response
72
- */
73
- export const getApiUrl = async (approvedRequests, pin, othentSub) => {
74
- try {
75
- const api = await createApiInstance();
76
- const jsonData = {
77
- Info: {
78
- EncryptedUserPin: pin,
79
- confirmations: approvedRequests,
80
- web3Type: 'othent',
81
- Domain: Platform.OS,
82
- proofMode: false,
83
- OthentSub: othentSub
84
- }
85
- };
86
- const response = await api.post('/getAPIurl', jsonData);
87
- return response.data;
88
- } catch (error) {
89
- console.error('Error getting API URL:', error);
90
- throw error;
91
- }
92
- };
93
-
94
- /**
95
- * Create a new user account
96
- * @param {string} othentSub - The hashed Othent sub
97
- * @param {string} pin - The PIN
98
- * @param {Array} socialAccounts - The selected social accounts
99
- * @param {string} email - The user's email
100
- * @returns {Promise<Object>} - The account creation response
101
- */
102
- export const createAccount = async (othentSub, pin, socialAccounts, email) => {
103
- try {
104
- const api = await createApiInstance();
105
- const response = await api.post('/createAccount', {
106
- othentSub,
107
- pin,
108
- socialAccounts,
109
- email
110
- });
111
- return response.data;
112
- } catch (error) {
113
- console.error('Error creating account:', error);
114
- throw error;
115
- }
116
- };
117
- //# sourceMappingURL=api.js.map
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[_0x112c(0x0)];export const createApiInstance=async()=>{const _0x5cbc3f={'ijdxx':_0x112c(0x1)},_0x2a1053=await AsyncStorage[_0x112c(0x2)](_0x5cbc3f[_0x112c(0x3)]);return axios[_0x112c(0x4)]({'baseURL':API_URL,'headers':{'Content-Type':'application/json',..._0x2a1053?{'Authorization':_0x112c(0x5)+_0x2a1053}:{}}});};export const validateDomain=async()=>{const _0x175e93={'POhra':function(_0x1c1d41){return _0x1c1d41();},'ollDn':_0x112c(0x6),'qeRFx':_0x112c(0x7)};try{const _0x34f30b=await _0x175e93[_0x112c(0x8)](createApiInstance),_0x1374ee=await _0x34f30b[_0x112c(0x9)](_0x175e93[_0x112c(0xa)]);return _0x1374ee[_0x112c(0xb)];}catch(_0x46d9f5){return console['error'](_0x175e93['qeRFx'],_0x46d9f5),{'status':![]};}};export const fetchAccountInfo=async(_0x144b90,_0x4b399a=![])=>{const _0x5ce86e={'kXIsB':function(_0xd59300){return _0xd59300();},'EqSky':_0x112c(0xc),'JKuvb':_0x112c(0xd),'MGTXM':'Error\x20fetching\x20account\x20info:'};try{const _0xdf7480=await _0x5ce86e[_0x112c(0xe)](createApiInstance),_0x322987=_0x4b399a?{'Info':{'identifier':_0x144b90}}:{'Info':{'userName':_0x144b90}},_0x21ec81=_0x4b399a?_0x5ce86e[_0x112c(0xf)]:_0x5ce86e['JKuvb'],_0x9d2c87=await _0xdf7480[_0x112c(0x9)](_0x21ec81,_0x322987);return _0x9d2c87[_0x112c(0xb)];}catch(_0x1eb21e){console['error'](_0x5ce86e[_0x112c(0x10)],_0x1eb21e);throw _0x1eb21e;}};function _0x5098(){const _0x236dab=['BASE_URL','onairosToken','getItem','ijdxx','create','Bearer\x20','/valid/validate-domain','Error\x20validating\x20domain:','POhra','post','ollDn','data','/getAccountInfo/email','/getAccountInfo','kXIsB','EqSky','MGTXM','/getAPIurl','Error\x20getting\x20API\x20URL:','UjjyU','lySIs','NSUxT','error','wGQlj','Error\x20creating\x20account:'];_0x5098=function(){return _0x236dab;};return _0x5098();}function _0x112c(_0x50986d,_0x112c1c){_0x50986d=_0x50986d-0x0;const _0x2ed038=_0x5098();let _0x5210d4=_0x2ed038[_0x50986d];return _0x5210d4;}export const getApiUrl=async(_0x4c8ba4,_0x11912a,_0x451b4a)=>{const _0x3e4def={'UjjyU':function(_0x428c5c){return _0x428c5c();},'lySIs':'othent','NSUxT':_0x112c(0x11),'wGQlj':_0x112c(0x12)};try{const _0x45bf3d=await _0x3e4def[_0x112c(0x13)](createApiInstance),_0x576a7b={'Info':{'EncryptedUserPin':_0x11912a,'confirmations':_0x4c8ba4,'web3Type':_0x3e4def[_0x112c(0x14)],'Domain':Platform['OS'],'proofMode':![],'OthentSub':_0x451b4a}},_0x46a632=await _0x45bf3d[_0x112c(0x9)](_0x3e4def[_0x112c(0x15)],_0x576a7b);return _0x46a632['data'];}catch(_0x31a6fe){console[_0x112c(0x16)](_0x3e4def[_0x112c(0x17)],_0x31a6fe);throw _0x31a6fe;}};export const createAccount=async(_0x39e7ac,_0x3ae4a5,_0x48fc9c,_0x204aed)=>{try{const _0x18c0b1=await createApiInstance(),_0x52945d=await _0x18c0b1[_0x112c(0x9)]('/createAccount',{'othentSub':_0x39e7ac,'pin':_0x3ae4a5,'socialAccounts':_0x48fc9c,'email':_0x204aed});return _0x52945d[_0x112c(0xb)];}catch(_0x468685){console[_0x112c(0x16)](_0x112c(0x18),_0x468685);throw _0x468685;}};